Download wp-calypso/client/state/email-accounts/schema.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.13 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/email-accounts/schema.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/email-accounts/schema.js
-
curl -L -o schema.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/email-accounts/schema.js
1.13 kB
| export default { | |
| type: 'array', | |
| items: { | |
| oneOf: [ | |
| { | |
| type: 'object', | |
| required: [ | |
| 'domain_name', | |
| 'product_name', | |
| 'product_slug', | |
| 'product_type', | |
| 'site_id', | |
| 'mailboxes', | |
| ], | |
| properties: { | |
| domain_name: { type: 'string' }, | |
| product_name: { type: 'string' }, | |
| product_slug: { type: 'string' }, | |
| product_type: { type: 'string' }, | |
| site_id: { type: 'integer' }, | |
| mailboxes: { | |
| type: 'array', | |
| items: { | |
| type: 'object', | |
| required: [ 'name', 'first_name', 'last_name', 'state' ], | |
| properties: { | |
| name: { type: 'string' }, | |
| first_name: { type: 'string' }, | |
| last_name: { type: 'string' }, | |
| state: { type: 'string', enum: [ 'active', 'suspended' ] }, | |
| meta: { type: 'object' }, | |
| }, | |
| }, | |
| }, | |
| }, | |
| }, | |
| { | |
| type: 'object', | |
| required: [ 'domain_name', 'error', 'product_slug', 'site_id' ], | |
| properties: { | |
| domain_name: { type: 'string' }, | |
| error: { type: 'string' }, | |
| product_slug: { type: 'string' }, | |
| site_id: { type: 'integer' }, | |
| }, | |
| }, | |
| ], | |
| }, | |
| }; | |