-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NEOS-146: added new docs table and rearranged docs layouts (#565)
- Loading branch information
1 parent
2ca3157
commit ce32d2d
Showing
42 changed files
with
432 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
--- | ||
title: Email | ||
id: email | ||
hide_title: true | ||
slug: /transformers/system/email | ||
--- | ||
|
||
import { TransformerPageHeader } from '@site/src/CustomComponents/TransformerPageHeader.tsx'; | ||
|
||
import { DocsTable } from '@site/src/CustomComponents/DocsTable.tsx'; | ||
|
||
<TransformerPageHeader | ||
title="Email" | ||
type="string" | ||
apiRef="https://github.com/nucleuscloud/neosync/blob/main/worker/internal/benthos/transformers/email.go" | ||
/> | ||
|
||
## Definition | ||
|
||
The email transformer can anonymize an existing email address or completely generate a new one. An email is made up of three parts: | ||
|
||
`<username>@<domain>.<top-level-domain>` | ||
|
||
By default, the transformer randomizes the username, domain and top-level domain while always preserving the email format by retaining the @ and . characters. | ||
|
||
For example, the following input value: | ||
`[email protected]` | ||
|
||
Would produce the following ouput value: | ||
`[email protected]` | ||
|
||
You can see we generated new privacy-safe values for the username and the domain. You can update this structure using the configurations below. Lastly, the email transformer takes in a `string` and returns a `string`. | ||
|
||
## Configurations | ||
|
||
Depending on your validations, you may want to configure the output email. The email transformer has the following configurations: | ||
|
||
<DocsTable | ||
headers={[ | ||
'Name', | ||
'Description', | ||
'Default', | ||
'Example Input', | ||
'Example Output', | ||
]} | ||
rowData={[ | ||
{ | ||
data: [ | ||
'PreserveDomain', | ||
'Preserve Domain carries over the input domain to the output email address. This includes the domain and top-level domain.', | ||
'false', | ||
'[email protected]', | ||
'[email protected]', | ||
], | ||
}, | ||
{ | ||
data: [ | ||
'PreserveLength', | ||
'Preserve Length will ensure that the output email address is the same length as the input email address. This includes the domain as well.', | ||
'false', | ||
'[email protected]', | ||
'[email protected]', | ||
], | ||
}, | ||
]} | ||
/> | ||
|
||
## Examples | ||
|
||
There are several ways you can mix-and-match configurations to get different potential email formats. Here are some possible combinations: | ||
|
||
<DocsTable | ||
headers={[ | ||
'PreserveLength', | ||
'PreserveDomain', | ||
'Example Input', | ||
'Example Output', | ||
]} | ||
rowData={[ | ||
{ | ||
data: ['false', 'true', '[email protected]', '[email protected]'], | ||
}, | ||
{ | ||
data: ['true', 'false', '[email protected]', '[email protected]'], | ||
}, | ||
{ | ||
data: ['true', 'true', '[email protected]', '[email protected]'], | ||
}, | ||
{ | ||
data: ['false', 'false', '[email protected]', '[email protected]'], | ||
}, | ||
]} | ||
/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: Phone | ||
id: phone | ||
hide_title: true | ||
slug: /transformers/system/phone | ||
--- | ||
|
||
import { DocPageHeader } from '@site/src/CustomComponents/DocPageHeader.tsx'; | ||
|
||
<DocPageHeader title="Phone" /> | ||
|
||
## More coming soon! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
title: SSN | ||
id: ssn | ||
hide_title: true | ||
slug: /transformers/system/ssn | ||
--- | ||
|
||
import { DocPageHeader } from '@site/src/CustomComponents/DocPageHeader.tsx'; | ||
|
||
<DocPageHeader title="ssn" /> | ||
|
||
## More coming soon! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.