Download wp-calypso/client/state/automated-transfer/constants.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 2.03 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/automated-transfer/constants.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/automated-transfer/constants.ts
-
curl -L -o constants.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/automated-transfer/constants.ts
2.03 kB
| export const transferStates = { | |
| /** | |
| * This is when the request to fetch the transfer returns the error 'An invalid transfer ID was passed.' | |
| */ | |
| NONE: 'none', | |
| PENDING: 'pending', | |
| INQUIRING: 'inquiring', | |
| PROVISIONED: 'provisioned', | |
| FAILURE: 'failure', | |
| START: 'start', | |
| SETUP: 'setup', | |
| CONFLICTS: 'conflicts', | |
| ACTIVE: 'active', | |
| UPLOADING: 'uploading', | |
| BACKFILLING: 'backfilling', | |
| RELOCATING: 'relocating_switcheroo', | |
| COMPLETE: 'complete', | |
| COMPLETED: 'completed', // there seems to be two spellings for this state | |
| NULL: null, | |
| /** | |
| * Similar to 'none' there is no existing transfer, but this is when the site has been already reverted from atomic | |
| */ | |
| REVERTED: 'reverted', | |
| RELOCATING_REVERT: 'relocating_revert', | |
| ERROR: 'error', | |
| /** | |
| * This is when the request to fetch the transfer status failed with an unknown error | |
| */ | |
| REQUEST_FAILURE: 'request_failure', | |
| } as const; | |
| export const transferInProgress = [ | |
| transferStates.START, | |
| transferStates.PENDING, | |
| transferStates.ACTIVE, | |
| transferStates.PROVISIONED, | |
| ] as const; | |
| export const transferRevertingInProgress = [ transferStates.RELOCATING_REVERT ] as const; | |
| export type TransferStates = ( typeof transferStates )[ keyof typeof transferStates ]; | |
| export const eligibilityHolds = { | |
| BLOCKED_ATOMIC_TRANSFER: 'BLOCKED_ATOMIC_TRANSFER', | |
| TRANSFER_ALREADY_EXISTS: 'TRANSFER_ALREADY_EXISTS', | |
| NO_BUSINESS_PLAN: 'NO_BUSINESS_PLAN', | |
| NO_JETPACK_SITES: 'NO_JETPACK_SITES', | |
| NO_VIP_SITES: 'NO_VIP_SITES', | |
| SITE_PRIVATE: 'SITE_PRIVATE', | |
| // SITE_UNLAUNCHED is a client constant to differentiate between launched private sites, and unlaunched sites. | |
| // See: client/state/data-layer/wpcom/sites/automated-transfer/eligibility/index.js | |
| SITE_UNLAUNCHED: 'SITE_UNLAUNCHED', | |
| SITE_GRAYLISTED: 'SITE_GRAYLISTED', | |
| NON_ADMIN_USER: 'NON_ADMIN_USER', | |
| NOT_RESOLVING_TO_WPCOM: 'NOT_RESOLVING_TO_WPCOM', | |
| NO_SSL_CERTIFICATE: 'NO_SSL_CERTIFICATE', | |
| EMAIL_UNVERIFIED: 'EMAIL_UNVERIFIED', | |
| EXCESSIVE_DISK_SPACE: 'EXCESSIVE_DISK_SPACE', | |
| IS_STAGING_SITE: 'IS_STAGING_SITE', | |
| }; | |