|
| 1 | +export const PATH_CONSTANTS = { |
| 2 | + /** Root mapper directory (contains module-specific mapper subdirs) */ |
| 3 | + MAPPER: 'mapper', |
| 4 | + |
| 5 | + /** Common mapper file names */ |
| 6 | + FILES: { |
| 7 | + SUCCESS: 'success.json', |
| 8 | + FAILS: 'fails.json', |
| 9 | + UID_MAPPING: 'uid-mapping.json', |
| 10 | + URL_MAPPING: 'url-mapping.json', |
| 11 | + UID_MAPPER: 'uid-mapper.json', |
| 12 | + SCHEMA: 'schema.json', |
| 13 | + SETTINGS: 'settings.json', |
| 14 | + MODIFIED_SCHEMAS: 'modified-schemas.json', |
| 15 | + UNIQUE_MAPPING: 'unique-mapping.json', |
| 16 | + TAXONOMIES: 'taxonomies.json', |
| 17 | + ENVIRONMENTS: 'environments.json', |
| 18 | + PENDING_EXTENSIONS: 'pending_extensions.js', |
| 19 | + PENDING_GLOBAL_FIELDS: 'pending_global_fields.js', |
| 20 | + INDEX: 'index.json', |
| 21 | + FOLDER_MAPPING: 'folder-mapping.json', |
| 22 | + VERSIONED_ASSETS: 'versioned-assets.json', |
| 23 | + }, |
| 24 | + |
| 25 | + /** Module subdirectory names within mapper */ |
| 26 | + MAPPER_MODULES: { |
| 27 | + ASSETS: 'assets', |
| 28 | + ENTRIES: 'entries', |
| 29 | + CONTENT_TYPES: 'content_types', |
| 30 | + TAXONOMIES: 'taxonomies', |
| 31 | + TAXONOMY_TERMS: 'terms', |
| 32 | + GLOBAL_FIELDS: 'global_fields', |
| 33 | + EXTENSIONS: 'extensions', |
| 34 | + WORKFLOWS: 'workflows', |
| 35 | + WEBHOOKS: 'webhooks', |
| 36 | + LABELS: 'labels', |
| 37 | + ENVIRONMENTS: 'environments', |
| 38 | + MARKETPLACE_APPS: 'marketplace_apps', |
| 39 | + CUSTOM_ROLES: 'custom-roles', |
| 40 | + LANGUAGES: 'languages', |
| 41 | + }, |
| 42 | + |
| 43 | + /** Content directory names (used in both import and export) */ |
| 44 | + CONTENT_DIRS: { |
| 45 | + ASSETS: 'assets', |
| 46 | + ENTRIES: 'entries', |
| 47 | + CONTENT_TYPES: 'content_types', |
| 48 | + TAXONOMIES: 'taxonomies', |
| 49 | + GLOBAL_FIELDS: 'global_fields', |
| 50 | + EXTENSIONS: 'extensions', |
| 51 | + WEBHOOKS: 'webhooks', |
| 52 | + WORKFLOWS: 'workflows', |
| 53 | + LABELS: 'labels', |
| 54 | + ENVIRONMENTS: 'environments', |
| 55 | + STACK: 'stack', |
| 56 | + LOCALES: 'locales', |
| 57 | + MARKETPLACE_APPS: 'marketplace_apps', |
| 58 | + }, |
| 59 | +} as const; |
| 60 | + |
| 61 | +export type PathConstants = typeof PATH_CONSTANTS; |
0 commit comments