@hubspot/cli 7.7.27-experimental.1 → 7.7.28-experimental.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -4
- package/api/__tests__/migrate.test.js +5 -5
- package/api/migrate.d.ts +10 -4
- package/api/migrate.js +2 -2
- package/commands/__tests__/create.test.js +20 -0
- package/commands/__tests__/testAccount.test.js +2 -0
- package/commands/app/__tests__/migrate.test.js +1 -0
- package/commands/create/function.js +2 -2
- package/commands/create/module.js +2 -2
- package/commands/create/template.js +2 -2
- package/commands/create.js +47 -0
- package/commands/getStarted.js +66 -4
- package/commands/mcp/setup.d.ts +0 -1
- package/commands/mcp/setup.js +3 -11
- package/commands/project/__tests__/create.test.js +57 -0
- package/commands/project/__tests__/devUnifiedFlow.test.js +18 -30
- package/commands/project/create.js +6 -1
- package/commands/project/deploy.js +31 -1
- package/commands/project/dev/deprecatedFlow.js +2 -1
- package/commands/project/dev/index.js +32 -12
- package/commands/project/dev/unifiedFlow.d.ts +1 -1
- package/commands/project/dev/unifiedFlow.js +10 -16
- package/commands/project/profile/delete.js +26 -14
- package/commands/project/upload.d.ts +2 -2
- package/commands/project/upload.js +1 -1
- package/commands/testAccount/__tests__/importData.test.d.ts +1 -0
- package/commands/testAccount/__tests__/importData.test.js +93 -0
- package/commands/testAccount/create.js +23 -13
- package/commands/testAccount/importData.d.ts +9 -0
- package/commands/testAccount/importData.js +61 -0
- package/commands/testAccount.js +2 -0
- package/lang/en.d.ts +160 -46
- package/lang/en.js +175 -59
- package/lang/en.lyaml +35 -14
- package/lib/__tests__/importData.test.d.ts +1 -0
- package/lib/__tests__/importData.test.js +89 -0
- package/lib/accountTypes.js +2 -3
- package/lib/app/__tests__/migrate.test.js +81 -36
- package/lib/app/migrate.d.ts +17 -4
- package/lib/app/migrate.js +97 -19
- package/lib/constants.d.ts +1 -0
- package/lib/constants.js +1 -0
- package/lib/hasFeature.d.ts +1 -0
- package/lib/hasFeature.js +7 -0
- package/lib/importData.d.ts +3 -0
- package/lib/importData.js +50 -0
- package/lib/mcp/setup.d.ts +0 -2
- package/lib/mcp/setup.js +0 -24
- package/lib/process.js +15 -4
- package/lib/projectProfiles.d.ts +1 -1
- package/lib/projectProfiles.js +10 -2
- package/lib/projects/__tests__/AppDevModeInterface.test.js +3 -3
- package/lib/projects/__tests__/LocalDevProcess.test.js +5 -95
- package/lib/projects/__tests__/LocalDevWebsocketServer.test.js +6 -6
- package/lib/projects/__tests__/components.test.js +164 -7
- package/lib/projects/__tests__/localDevProjectHelpers.test.d.ts +1 -0
- package/lib/projects/__tests__/localDevProjectHelpers.test.js +118 -0
- package/lib/projects/add/v3AddComponent.js +16 -4
- package/lib/projects/components.d.ts +1 -0
- package/lib/projects/components.js +27 -1
- package/lib/projects/localDev/AppDevModeInterface.js +35 -3
- package/lib/projects/localDev/LocalDevLogger.d.ts +0 -4
- package/lib/projects/localDev/LocalDevLogger.js +2 -19
- package/lib/projects/localDev/LocalDevManager.js +1 -1
- package/lib/projects/localDev/LocalDevProcess.d.ts +1 -2
- package/lib/projects/localDev/LocalDevProcess.js +3 -26
- package/lib/projects/localDev/LocalDevState.d.ts +6 -7
- package/lib/projects/localDev/LocalDevState.js +16 -15
- package/lib/projects/localDev/LocalDevWebsocketServer.d.ts +1 -0
- package/lib/projects/localDev/LocalDevWebsocketServer.js +17 -2
- package/lib/projects/localDev/{helpers.d.ts → helpers/account.d.ts} +1 -7
- package/lib/projects/localDev/{helpers.js → helpers/account.js} +44 -144
- package/lib/projects/localDev/helpers/project.d.ts +12 -0
- package/lib/projects/localDev/helpers/project.js +173 -0
- package/lib/projects/urls.d.ts +1 -0
- package/lib/projects/urls.js +4 -0
- package/lib/prompts/__tests__/createFunctionPrompt.test.d.ts +1 -0
- package/lib/prompts/__tests__/createFunctionPrompt.test.js +129 -0
- package/lib/prompts/__tests__/createModulePrompt.test.d.ts +1 -0
- package/lib/prompts/__tests__/createModulePrompt.test.js +187 -0
- package/lib/prompts/__tests__/createTemplatePrompt.test.d.ts +1 -0
- package/lib/prompts/__tests__/createTemplatePrompt.test.js +102 -0
- package/lib/prompts/confirmImportDataPrompt.d.ts +1 -0
- package/lib/prompts/confirmImportDataPrompt.js +12 -0
- package/lib/prompts/createFunctionPrompt.d.ts +2 -1
- package/lib/prompts/createFunctionPrompt.js +36 -7
- package/lib/prompts/createModulePrompt.d.ts +2 -1
- package/lib/prompts/createModulePrompt.js +48 -1
- package/lib/prompts/createTemplatePrompt.d.ts +3 -24
- package/lib/prompts/createTemplatePrompt.js +9 -1
- package/lib/prompts/importDataFilePathPrompt.d.ts +1 -0
- package/lib/prompts/importDataFilePathPrompt.js +24 -0
- package/lib/prompts/importDataTestAccountSelectPrompt.d.ts +3 -0
- package/lib/prompts/importDataTestAccountSelectPrompt.js +29 -0
- package/lib/prompts/projectDevTargetAccountPrompt.js +1 -0
- package/lib/prompts/promptUtils.d.ts +7 -1
- package/lib/prompts/promptUtils.js +14 -1
- package/lib/ui/__tests__/removeAnsiCodes.test.d.ts +1 -0
- package/lib/ui/__tests__/removeAnsiCodes.test.js +84 -0
- package/lib/ui/index.js +3 -6
- package/lib/ui/removeAnsiCodes.d.ts +1 -0
- package/lib/ui/removeAnsiCodes.js +4 -0
- package/mcp-server/server.js +2 -1
- package/mcp-server/tools/cms/HsListTool.d.ts +23 -0
- package/mcp-server/tools/cms/HsListTool.js +58 -0
- package/mcp-server/tools/cms/__tests__/HsListTool.test.d.ts +1 -0
- package/mcp-server/tools/cms/__tests__/HsListTool.test.js +120 -0
- package/mcp-server/tools/index.d.ts +1 -0
- package/mcp-server/tools/index.js +8 -0
- package/mcp-server/tools/project/DocFetchTool.d.ts +17 -0
- package/mcp-server/tools/project/DocFetchTool.js +49 -0
- package/mcp-server/tools/project/DocsSearchTool.d.ts +26 -0
- package/mcp-server/tools/project/DocsSearchTool.js +62 -0
- package/mcp-server/tools/project/GetConfigValuesTool.js +3 -2
- package/mcp-server/tools/project/__tests__/DocFetchTool.test.d.ts +1 -0
- package/mcp-server/tools/project/__tests__/DocFetchTool.test.js +117 -0
- package/mcp-server/tools/project/__tests__/DocsSearchTool.test.d.ts +1 -0
- package/mcp-server/tools/project/__tests__/DocsSearchTool.test.js +190 -0
- package/mcp-server/tools/project/__tests__/GetConfigValuesTool.test.js +1 -1
- package/mcp-server/tools/project/constants.d.ts +2 -0
- package/mcp-server/tools/project/constants.js +6 -0
- package/mcp-server/utils/toolUsageTracking.d.ts +3 -1
- package/mcp-server/utils/toolUsageTracking.js +2 -1
- package/package.json +9 -6
- package/types/Cms.d.ts +16 -0
- package/types/Cms.js +25 -1
- package/types/LocalDev.d.ts +0 -3
- package/types/Prompts.d.ts +1 -0
- package/types/Yargs.d.ts +1 -1
- package/ui/index.d.ts +1 -0
- package/ui/index.js +6 -0
package/lang/en.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CLIAccount } from '@hubspot/local-dev-lib/types/Accounts';
|
|
1
2
|
export declare const commands: {
|
|
2
3
|
readonly generalErrors: {
|
|
3
4
|
readonly srcIsProject: (src: string, command: string) => string;
|
|
@@ -31,12 +32,12 @@ export declare const commands: {
|
|
|
31
32
|
readonly openInstallUrl: "Open HubSpot to install your app in your account?";
|
|
32
33
|
readonly openedDeveloperOverview: "HubSpot opened!";
|
|
33
34
|
readonly prompts: {
|
|
34
|
-
readonly selectOption: "Are you looking to build apps or CMS?";
|
|
35
|
+
readonly selectOption: "Are you looking to build apps or CMS assets?";
|
|
35
36
|
readonly options: {
|
|
36
37
|
readonly app: "App";
|
|
37
|
-
readonly cms: "CMS";
|
|
38
|
+
readonly cms: "CMS assets";
|
|
38
39
|
};
|
|
39
|
-
readonly uploadProject:
|
|
40
|
+
readonly uploadProject: (accountName: string) => string;
|
|
40
41
|
readonly projectCreated: {
|
|
41
42
|
readonly title: string;
|
|
42
43
|
readonly description: `Let's prepare and upload your project to HubSpot.
|
|
@@ -45,7 +46,7 @@ You can use ${string} to ${string} and ${string} to ${string} your project.`;
|
|
|
45
46
|
};
|
|
46
47
|
readonly logs: {
|
|
47
48
|
readonly appSelected: `We'll create a new project with a sample app for you.
|
|
48
|
-
Projects are what you can use to create apps
|
|
49
|
+
Projects are what you can use to create apps with HubSpot.
|
|
49
50
|
Usually you'll use the ${string} command, but we'll go ahead and make one now.`;
|
|
50
51
|
readonly dependenciesInstalled: "Dependencies installed successfully.";
|
|
51
52
|
readonly uploadingProject: "Uploading your project to HubSpot...";
|
|
@@ -336,6 +337,38 @@ Global configuration replaces hubspot.config.yml, and you will be prompted to mi
|
|
|
336
337
|
readonly describe: "Type of asset";
|
|
337
338
|
};
|
|
338
339
|
};
|
|
340
|
+
readonly flags: {
|
|
341
|
+
readonly templateType: {
|
|
342
|
+
readonly describe: "Template type for template creation - only used when type is template";
|
|
343
|
+
};
|
|
344
|
+
readonly moduleLabel: {
|
|
345
|
+
readonly describe: "Label for module creation - only used when type is module";
|
|
346
|
+
};
|
|
347
|
+
readonly reactType: {
|
|
348
|
+
readonly describe: "Whether to create a React module - only used when type is module";
|
|
349
|
+
};
|
|
350
|
+
readonly contentTypes: {
|
|
351
|
+
readonly describe: (contentTypes: readonly string[]) => string;
|
|
352
|
+
};
|
|
353
|
+
readonly global: {
|
|
354
|
+
readonly describe: "Whether to create a global module - only used when type is module";
|
|
355
|
+
};
|
|
356
|
+
readonly availableForNewContent: {
|
|
357
|
+
readonly describe: "Whether the template is available for new content - only used when type is template";
|
|
358
|
+
};
|
|
359
|
+
readonly functionsFolder: {
|
|
360
|
+
readonly describe: "Folder to create functions in - only used when type is function";
|
|
361
|
+
};
|
|
362
|
+
readonly filename: {
|
|
363
|
+
readonly describe: "Filename for the function - only used when type is function";
|
|
364
|
+
};
|
|
365
|
+
readonly endpointMethod: {
|
|
366
|
+
readonly describe: "HTTP method for the function endpoint - only used when type is function";
|
|
367
|
+
};
|
|
368
|
+
readonly endpointPath: {
|
|
369
|
+
readonly describe: "API endpoint path for the function - only used when type is function";
|
|
370
|
+
};
|
|
371
|
+
};
|
|
339
372
|
readonly subcommands: {
|
|
340
373
|
readonly apiSample: {
|
|
341
374
|
readonly folderOverwritePrompt: (folderName: string) => string;
|
|
@@ -964,6 +997,7 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
964
997
|
readonly noProfileFound: (profileName: string) => string;
|
|
965
998
|
readonly noProfilesFound: "No profiles found in your project.";
|
|
966
999
|
readonly failedToDeleteProfile: (profileName: string) => string;
|
|
1000
|
+
readonly failedToDeleteProject: (accountId: number) => string;
|
|
967
1001
|
};
|
|
968
1002
|
readonly positionals: {
|
|
969
1003
|
readonly name: "The name of the project profile";
|
|
@@ -975,10 +1009,15 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
975
1009
|
readonly logs: {
|
|
976
1010
|
readonly betaMessage: "HubSpot projects local development";
|
|
977
1011
|
readonly placeholderAccountSelection: "Using default account as target account (for now)";
|
|
978
|
-
readonly learnMoreLocalDevServer: "Learn more about the projects local dev server";
|
|
979
1012
|
readonly accountTypeInformation: "Testing in a developer test account is strongly recommended, but you can use a sandbox account if your plan allows you to create one.";
|
|
980
|
-
readonly
|
|
981
|
-
|
|
1013
|
+
readonly learnMoreMessageV3: `Learn more about ${string} | ${string}`;
|
|
1014
|
+
readonly learnMoreMessageLegacy: string;
|
|
1015
|
+
readonly profileProjectAccountExplanation: (accountId: number, profileName: string) => string;
|
|
1016
|
+
readonly defaultProjectAccountExplanation: (accountId: number) => string;
|
|
1017
|
+
readonly projectAccountFlagExplanation: (accountId: number) => string;
|
|
1018
|
+
readonly accountFlagExplanation: (accountId: number) => string;
|
|
1019
|
+
readonly defaultSandboxOrDevTestTestingAccountExplanation: (accountId: number) => string;
|
|
1020
|
+
readonly testingAccountFlagExplanation: (accountId: number) => string;
|
|
982
1021
|
};
|
|
983
1022
|
readonly errors: {
|
|
984
1023
|
readonly noProjectConfig: "No project detected. Please run this command again from a project directory.";
|
|
@@ -988,8 +1027,8 @@ Visit our ${string} to learn more.`;
|
|
|
988
1027
|
readonly noRunnableComponents: `No supported components were found in this project. Run ${string} to see a list of available components and add one to your project.`;
|
|
989
1028
|
readonly accountNotCombined: `
|
|
990
1029
|
Local development of unified apps is currently only compatible with accounts that are opted into the unified apps beta. Make sure that this account is opted in or switch accounts using ${string}.`;
|
|
991
|
-
readonly unsupportedAccountFlagLegacy: "The --
|
|
992
|
-
readonly unsupportedAccountFlagV3: "The --account flag is is not supported supported for projects with platform versions 2025.2 and newer. Use --
|
|
1030
|
+
readonly unsupportedAccountFlagLegacy: "The --project-account and --testing-account flags are not supported for projects with platform versions earlier than 2025.2.";
|
|
1031
|
+
readonly unsupportedAccountFlagV3: "The --account flag is is not supported supported for projects with platform versions 2025.2 and newer. Use --testing-account and --project-account flags to specify accounts to use for local dev";
|
|
993
1032
|
};
|
|
994
1033
|
readonly examples: {
|
|
995
1034
|
readonly default: "Start local dev for the current project";
|
|
@@ -1175,6 +1214,10 @@ ${string}`;
|
|
|
1175
1214
|
readonly buildIdDoesNotExist: (accountId: number, buildId: number, projectName: string) => string;
|
|
1176
1215
|
readonly buildAlreadyDeployed: (accountId: number, buildId: number, projectName: string) => string;
|
|
1177
1216
|
readonly deployContainsRemovals: (componentName: string) => string;
|
|
1217
|
+
readonly deployBlockedHeader: "This build couldn't be deployed because it will be too disruptive for existing users. Fix the following issues and try again:";
|
|
1218
|
+
readonly deployWarningsHeader: `Deploying this build might have unintended consequences for users. Review the following issues and run ${string} to try again:`;
|
|
1219
|
+
readonly deployIssueComponentGeneric: (uid: string, componentTypeName: string) => string;
|
|
1220
|
+
readonly deployIssueComponentWarning: (uid: string, componentTypeName: string, message: string) => string;
|
|
1178
1221
|
};
|
|
1179
1222
|
readonly examples: {
|
|
1180
1223
|
readonly default: "Deploy the latest build of the current project";
|
|
@@ -1802,6 +1845,19 @@ ${string}`;
|
|
|
1802
1845
|
};
|
|
1803
1846
|
readonly testAccount: {
|
|
1804
1847
|
readonly describe: "Commands for working with test accounts.";
|
|
1848
|
+
readonly subcommands: {
|
|
1849
|
+
readonly importData: {
|
|
1850
|
+
readonly describe: "Import data into the CRM";
|
|
1851
|
+
readonly options: {
|
|
1852
|
+
readonly skipConfirm: {
|
|
1853
|
+
readonly describe: "Skip the confirmation prompt";
|
|
1854
|
+
};
|
|
1855
|
+
readonly filePath: {
|
|
1856
|
+
readonly describe: "The path to the JSON file containing the import schema";
|
|
1857
|
+
};
|
|
1858
|
+
};
|
|
1859
|
+
};
|
|
1860
|
+
};
|
|
1805
1861
|
readonly create: {
|
|
1806
1862
|
readonly describe: "Create a test account from a config file";
|
|
1807
1863
|
readonly configPathPrompt: "[--config-path] Enter the path to the test account config: ";
|
|
@@ -1811,6 +1867,7 @@ ${string}`;
|
|
|
1811
1867
|
readonly errors: {
|
|
1812
1868
|
readonly configFileNotFound: (configPath: string) => string;
|
|
1813
1869
|
readonly configFileParseFailed: (configPath: string) => string;
|
|
1870
|
+
readonly saveAccountToConfigFailure: (accountName: string) => string;
|
|
1814
1871
|
};
|
|
1815
1872
|
readonly polling: {
|
|
1816
1873
|
readonly start: (testAccountName: string) => string;
|
|
@@ -2505,6 +2562,13 @@ export declare const lib: {
|
|
|
2505
2562
|
readonly autoInstallDeclined: "You must install your app on your target test account to proceed with local development.";
|
|
2506
2563
|
readonly autoInstallSuccess: (appName: string, targetTestAccountId: number) => string;
|
|
2507
2564
|
readonly autoInstallError: (appName: string, targetTestAccountId: number) => string;
|
|
2565
|
+
readonly fetchAppData: {
|
|
2566
|
+
readonly checking: (appName: string) => string;
|
|
2567
|
+
readonly success: (appName: string, accountId: number) => string;
|
|
2568
|
+
readonly notInstalled: (appName: string, accountId: number) => string;
|
|
2569
|
+
readonly activeInstallations: (appName: string, installCount: number) => string;
|
|
2570
|
+
readonly error: "An error occurred while checking installations for your app";
|
|
2571
|
+
};
|
|
2508
2572
|
};
|
|
2509
2573
|
readonly LocalDevWebsocketServer: {
|
|
2510
2574
|
readonly errors: {
|
|
@@ -2526,43 +2590,54 @@ export declare const lib: {
|
|
|
2526
2590
|
readonly uploadSuccess: "Project upload completed successfully. Resuming local dev...";
|
|
2527
2591
|
};
|
|
2528
2592
|
readonly localDevHelpers: {
|
|
2529
|
-
readonly
|
|
2530
|
-
readonly
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
readonly
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
};
|
|
2552
|
-
readonly
|
|
2553
|
-
readonly
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
readonly
|
|
2564
|
-
|
|
2565
|
-
|
|
2593
|
+
readonly project: {
|
|
2594
|
+
readonly compareLocalProjectToDeployed: {
|
|
2595
|
+
readonly noDeployedBuild: (projectName: string, accountIdentifier: string) => string;
|
|
2596
|
+
readonly checking: "Checking if your deployed build is up to date...";
|
|
2597
|
+
readonly upToDate: "Deployed build is up to date.";
|
|
2598
|
+
readonly notUpToDate: "Your project contains undeployed local changes.";
|
|
2599
|
+
readonly notUpToDateExplanation: `Run ${string} to upload these changes to HubSpot, then re-run ${string} to continue local development.`;
|
|
2600
|
+
};
|
|
2601
|
+
readonly createNewProjectForLocalDev: {
|
|
2602
|
+
readonly projectMustExistExplanation: (projectName: string, accountId: number) => string;
|
|
2603
|
+
readonly publicAppProjectMustExistExplanation: (projectName: string, accountId: number) => string;
|
|
2604
|
+
readonly createProject: (projectName: string, accountIdentifier: string) => string;
|
|
2605
|
+
readonly choseNotToCreateProject: "Exiting because this command requires the project to exist in the target account.";
|
|
2606
|
+
readonly creatingProject: (projectName: string, accountIdentifier: string) => string;
|
|
2607
|
+
readonly createdProject: (projectName: string, accountIdentifier: string) => string;
|
|
2608
|
+
readonly failedToCreateProject: "Failed to create project in the target account.";
|
|
2609
|
+
};
|
|
2610
|
+
readonly createInitialBuildForNewProject: {
|
|
2611
|
+
readonly initialUploadMessage: "HubSpot Local Dev Server Startup";
|
|
2612
|
+
readonly projectLockedError: "Your project is locked. This may mean that another user is running the `hs project watch` command for this project. If this is you, unlock the project in Projects UI.";
|
|
2613
|
+
readonly genericError: `An error occurred while creating the initial build for this project. Run ${string} to try again.`;
|
|
2614
|
+
};
|
|
2615
|
+
};
|
|
2616
|
+
readonly account: {
|
|
2617
|
+
readonly checkIfDefaultAccountIsSupported: {
|
|
2618
|
+
readonly publicApp: `This project contains a public app. Local development of public apps is only supported on developer accounts and developer test accounts. Change your default account using ${string}, or link a new account with ${string}.`;
|
|
2619
|
+
readonly privateApp: `This project contains a private app. Local development of private apps is not supported in developer accounts. Change your default account using ${string}, or link a new account with ${string}.`;
|
|
2620
|
+
};
|
|
2621
|
+
readonly validateAccountOption: {
|
|
2622
|
+
readonly invalidPublicAppAccount: `This project contains a public app. The "--account" flag must point to a developer test account to develop this project locally. Alternatively, change your default account to an App Developer Account using ${string} and run ${string} to set up a new Developer Test Account.`;
|
|
2623
|
+
readonly invalidPrivateAppAccount: `This project contains a private app. The account specified with the "--account" flag points to a developer account, which do not support the local development of private apps. Update the "--account" flag to point to a standard, sandbox, or developer test account, or change your default account by running ${string}.`;
|
|
2624
|
+
readonly nonSandboxWarning: `Testing in a sandbox is strongly recommended. To switch the target account, select an option below or run ${string} before running the command again.`;
|
|
2625
|
+
readonly publicAppNonDeveloperTestAccountWarning: `Local development of public apps is only supported in ${string}.`;
|
|
2626
|
+
};
|
|
2627
|
+
readonly checkIfParentAccountIsAuthed: {
|
|
2628
|
+
readonly notAuthedError: (parentAccountId: number | string, accountIdentifier: string) => string;
|
|
2629
|
+
};
|
|
2630
|
+
readonly selectAccountTypePrompt: {
|
|
2631
|
+
readonly message: "[--testing-account] Choose the type of account to test on";
|
|
2632
|
+
readonly developerTestAccountOption: "Test on a developer test account (recommended)";
|
|
2633
|
+
readonly sandboxAccountOption: "Test on a sandbox account";
|
|
2634
|
+
readonly sandboxAccountOptionDisabled: "Disabled - requires access to sandbox accounts";
|
|
2635
|
+
readonly productionAccountOption: (accountId?: number) => string;
|
|
2636
|
+
};
|
|
2637
|
+
readonly confirmDefaultAccountIsTarget: {
|
|
2638
|
+
readonly configError: `An error occurred while reading the default account from your config. Run ${string} to re-auth this account`;
|
|
2639
|
+
readonly declineDefaultAccountExplanation: `To develop on a different account, run ${string} to change your default account, then re-run ${string}.`;
|
|
2640
|
+
};
|
|
2566
2641
|
};
|
|
2567
2642
|
};
|
|
2568
2643
|
readonly middleware: {
|
|
@@ -2621,6 +2696,11 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2621
2696
|
readonly add: {
|
|
2622
2697
|
readonly nothingAdded: "No features added.";
|
|
2623
2698
|
};
|
|
2699
|
+
readonly updateHsMetaFilesWithAutoGeneratedFields: {
|
|
2700
|
+
readonly header: "Created the following components and features:";
|
|
2701
|
+
readonly applicationLog: (componentType: string, uid: string, name: string) => string;
|
|
2702
|
+
readonly componentLog: (componentType: string, uid: string) => string;
|
|
2703
|
+
};
|
|
2624
2704
|
readonly validateProjectConfig: {
|
|
2625
2705
|
readonly configNotFound: `Unable to locate a project configuration file. Try running again from a project directory, or run ${string} to create a new project.`;
|
|
2626
2706
|
readonly configMissingFields: "The project configuration file is missing required fields.";
|
|
@@ -2681,6 +2761,16 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2681
2761
|
readonly boxen: {
|
|
2682
2762
|
readonly failedToLoad: "Failed to load boxen util.";
|
|
2683
2763
|
};
|
|
2764
|
+
readonly importData: {
|
|
2765
|
+
readonly errors: {
|
|
2766
|
+
readonly incorrectAccountType: (derivedAccountId: number) => string;
|
|
2767
|
+
readonly failedToImportData: "Failed to import data into portal.";
|
|
2768
|
+
readonly notDeveloperTestAccount: "The account is not a developer test account.";
|
|
2769
|
+
readonly noAccountConfig: (accountId: number) => string;
|
|
2770
|
+
};
|
|
2771
|
+
readonly inProgress: (portalId: number, fileNames: string[]) => string;
|
|
2772
|
+
readonly viewImportLink: (baseUrl: string, accountId: number, importId: string) => string;
|
|
2773
|
+
};
|
|
2684
2774
|
readonly ui: {
|
|
2685
2775
|
readonly betaTag: string;
|
|
2686
2776
|
readonly betaWarning: {
|
|
@@ -2840,6 +2930,19 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2840
2930
|
};
|
|
2841
2931
|
};
|
|
2842
2932
|
readonly prompts: {
|
|
2933
|
+
readonly importDataFilePathPrompt: {
|
|
2934
|
+
readonly promptContext: `To view the JSON schema for data imports, visit ${string}`;
|
|
2935
|
+
readonly promptMessage: "[--file-path] Select the JSON file that will be used to import your data.";
|
|
2936
|
+
};
|
|
2937
|
+
readonly confirmImportDataPrompt: {
|
|
2938
|
+
readonly message: (dataFileNames: string[], cliAccount: CLIAccount | null) => string;
|
|
2939
|
+
};
|
|
2940
|
+
readonly importDataTestAccountSelectPrompt: {
|
|
2941
|
+
readonly errors: {
|
|
2942
|
+
readonly noAccountsFound: "No accounts found.";
|
|
2943
|
+
readonly noChildTestAccountsFound: (parentAccountId: number) => string;
|
|
2944
|
+
};
|
|
2945
|
+
};
|
|
2843
2946
|
readonly projectDevTargetAccountPrompt: {
|
|
2844
2947
|
readonly createNewSandboxOption: "<Test on a new development sandbox>";
|
|
2845
2948
|
readonly createNewDeveloperTestAccountOption: "<Test on a new developer test account>";
|
|
@@ -3279,12 +3382,21 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
3279
3382
|
readonly sourceContentsMoved: (newLocation: string) => string;
|
|
3280
3383
|
readonly projectMigrationWarningTitle: "⚠️ Important: Migrating to platformVersion 2025.2 is irreversible ⚠️";
|
|
3281
3384
|
readonly projectMigrationWarning: string;
|
|
3385
|
+
readonly success: {
|
|
3386
|
+
readonly downloadedProject: (projectName: string, projectDest: string) => string;
|
|
3387
|
+
readonly themesMigrationSuccess: (platformVersion: string) => string;
|
|
3388
|
+
};
|
|
3282
3389
|
readonly errors: {
|
|
3283
3390
|
readonly project: {
|
|
3284
3391
|
readonly invalidConfig: "The project configuration file is invalid. Please check the config file and try again.";
|
|
3285
3392
|
readonly doesNotExist: (account: number) => string;
|
|
3393
|
+
readonly themesAlreadyMigrated: "This project has already been migrated to the latest platform version.";
|
|
3394
|
+
readonly noProjectForThemesMigration: "Theme migrations are only supported for projects. Please try again from a project directory.";
|
|
3395
|
+
readonly themesAndAppsNotAllowed: "Support for migrating projects containing both themes and apps to the latest platform version is coming soon. Try again later.";
|
|
3286
3396
|
readonly multipleApps: "Multiple apps found in project, this is not allowed in 2025.2";
|
|
3287
3397
|
readonly alreadyExists: (projectName: string) => string;
|
|
3398
|
+
readonly failedToMigrateThemes: "Failed to migrate project themes. Please verify that you have propoerly formatted themes before trying again.";
|
|
3399
|
+
readonly failedToUpdateProjectConfig: "Failed to update project config file. Please update the platformVersion in the project config file manually.";
|
|
3288
3400
|
};
|
|
3289
3401
|
readonly unmigratableReasons: {
|
|
3290
3402
|
readonly upToDate: "App is already up to date";
|
|
@@ -3303,6 +3415,7 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
3303
3415
|
readonly notUngatedForUnifiedApps: (account: string) => string;
|
|
3304
3416
|
};
|
|
3305
3417
|
readonly prompt: {
|
|
3418
|
+
readonly themesMigration: (count: number) => string;
|
|
3306
3419
|
readonly chooseApp: "Which app would you like to migrate?";
|
|
3307
3420
|
readonly inputName: "[--name] What would you like to name the project?";
|
|
3308
3421
|
readonly inputDest: "[--dest] Where would you like to save the project?";
|
|
@@ -3310,6 +3423,7 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
3310
3423
|
readonly proceed: "Would you like to proceed?";
|
|
3311
3424
|
};
|
|
3312
3425
|
readonly spinners: {
|
|
3426
|
+
readonly checkingForMigratableComponents: "Checking project for migratable components...";
|
|
3313
3427
|
readonly beginningMigration: "Beginning migration";
|
|
3314
3428
|
readonly unableToStartMigration: "Unable to begin migration";
|
|
3315
3429
|
readonly finishingMigration: "Wrapping up migration";
|