@hubspot/cli 7.6.0-experimental.0 → 7.6.1-beta.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.d.ts +1 -0
- package/api/__tests__/migrate.test.js +181 -0
- package/api/migrate.d.ts +10 -4
- package/api/migrate.js +14 -22
- package/bin/cli.js +60 -53
- package/bin/hs +2 -2
- package/bin/hscms +2 -2
- package/bin/silenceErrors.js +1 -2
- package/commands/__tests__/account.test.d.ts +1 -0
- package/commands/__tests__/account.test.js +69 -0
- package/commands/__tests__/auth.test.d.ts +1 -0
- package/commands/__tests__/auth.test.js +38 -0
- package/commands/__tests__/cms.test.d.ts +1 -0
- package/commands/__tests__/cms.test.js +44 -0
- package/commands/__tests__/config.test.d.ts +1 -0
- package/commands/__tests__/config.test.js +44 -0
- package/commands/__tests__/create.test.d.ts +1 -0
- package/commands/__tests__/create.test.js +53 -0
- package/commands/__tests__/customObject.test.d.ts +1 -0
- package/commands/__tests__/customObject.test.js +49 -0
- package/commands/__tests__/doctor.test.d.ts +1 -0
- package/commands/__tests__/doctor.test.js +134 -0
- package/commands/__tests__/feedback.test.d.ts +1 -0
- package/commands/__tests__/feedback.test.js +24 -0
- package/commands/__tests__/fetch.test.d.ts +1 -0
- package/commands/__tests__/fetch.test.js +57 -0
- package/commands/__tests__/filemanager.test.d.ts +1 -0
- package/commands/__tests__/filemanager.test.js +45 -0
- package/commands/__tests__/function.test.d.ts +1 -0
- package/commands/__tests__/function.test.js +46 -0
- package/commands/__tests__/getStarted.test.d.ts +1 -0
- package/commands/__tests__/getStarted.test.js +155 -0
- package/commands/__tests__/hubdb.test.d.ts +1 -0
- package/commands/__tests__/hubdb.test.js +50 -0
- package/commands/__tests__/init.test.d.ts +1 -0
- package/commands/__tests__/init.test.js +42 -0
- package/commands/__tests__/lint.test.d.ts +1 -0
- package/commands/__tests__/lint.test.js +33 -0
- package/commands/__tests__/list.test.d.ts +1 -0
- package/commands/__tests__/list.test.js +42 -0
- package/commands/__tests__/logs.test.d.ts +1 -0
- package/commands/__tests__/logs.test.js +71 -0
- package/commands/__tests__/mcp.test.d.ts +1 -0
- package/commands/__tests__/mcp.test.js +46 -0
- package/commands/__tests__/mv.test.d.ts +1 -0
- package/commands/__tests__/mv.test.js +46 -0
- package/commands/__tests__/open.test.d.ts +1 -0
- package/commands/__tests__/open.test.js +58 -0
- package/commands/__tests__/project.test.d.ts +1 -0
- package/commands/__tests__/project.test.js +92 -0
- package/commands/__tests__/remove.test.d.ts +1 -0
- package/commands/__tests__/remove.test.js +39 -0
- package/commands/__tests__/sandbox.test.d.ts +1 -0
- package/commands/__tests__/sandbox.test.js +44 -0
- package/commands/__tests__/secret.test.d.ts +1 -0
- package/commands/__tests__/secret.test.js +49 -0
- package/commands/__tests__/testAccount.test.d.ts +1 -0
- package/commands/__tests__/testAccount.test.js +57 -0
- package/commands/__tests__/theme.test.d.ts +1 -0
- package/commands/__tests__/theme.test.js +47 -0
- package/commands/account/__tests__/auth.test.d.ts +1 -0
- package/commands/account/__tests__/auth.test.js +26 -0
- package/commands/account/__tests__/clean.test.d.ts +1 -0
- package/commands/account/__tests__/clean.test.js +28 -0
- package/commands/account/__tests__/createOverride.test.d.ts +1 -0
- package/commands/account/__tests__/createOverride.test.js +32 -0
- package/commands/account/__tests__/info.test.d.ts +1 -0
- package/commands/account/__tests__/info.test.js +28 -0
- package/commands/account/__tests__/list.test.d.ts +1 -0
- package/commands/account/__tests__/list.test.js +28 -0
- package/commands/account/__tests__/remove.test.d.ts +1 -0
- package/commands/account/__tests__/remove.test.js +36 -0
- package/commands/account/__tests__/removeOverride.d.ts +1 -0
- package/commands/account/__tests__/removeOverride.js +25 -0
- package/commands/account/__tests__/rename.test.d.ts +1 -0
- package/commands/account/__tests__/rename.test.js +42 -0
- package/commands/account/__tests__/use.test.d.ts +1 -0
- package/commands/account/__tests__/use.test.js +32 -0
- package/commands/account/auth.d.ts +3 -1
- package/commands/account/auth.js +109 -123
- package/commands/account/clean.d.ts +1 -1
- package/commands/account/clean.js +55 -60
- package/commands/account/createOverride.d.ts +1 -1
- package/commands/account/createOverride.js +52 -57
- package/commands/account/info.d.ts +1 -1
- package/commands/account/info.js +33 -35
- package/commands/account/list.d.ts +1 -1
- package/commands/account/list.js +43 -45
- package/commands/account/remove.d.ts +1 -1
- package/commands/account/remove.js +37 -42
- package/commands/account/removeOverride.d.ts +1 -1
- package/commands/account/removeOverride.js +38 -43
- package/commands/account/rename.d.ts +1 -1
- package/commands/account/rename.js +18 -20
- package/commands/account/use.d.ts +1 -1
- package/commands/account/use.js +29 -31
- package/commands/account.d.ts +1 -1
- package/commands/account.js +23 -30
- package/commands/app/__tests__/migrate.test.d.ts +1 -0
- package/commands/app/__tests__/migrate.test.js +124 -0
- package/commands/app/migrate.d.ts +2 -2
- package/commands/app/migrate.js +41 -45
- package/commands/app/secret/__tests__/add.test.d.ts +1 -0
- package/commands/app/secret/__tests__/add.test.js +28 -0
- package/commands/app/secret/__tests__/delete.test.d.ts +1 -0
- package/commands/app/secret/__tests__/delete.test.js +28 -0
- package/commands/app/secret/__tests__/list.test.d.ts +1 -0
- package/commands/app/secret/__tests__/list.test.js +25 -0
- package/commands/app/secret/__tests__/update.test.d.ts +1 -0
- package/commands/app/secret/__tests__/update.test.js +28 -0
- package/commands/app/secret/add.d.ts +1 -1
- package/commands/app/secret/add.js +29 -30
- package/commands/app/secret/delete.d.ts +1 -1
- package/commands/app/secret/delete.js +35 -36
- package/commands/app/secret/list.d.ts +1 -1
- package/commands/app/secret/list.js +26 -27
- package/commands/app/secret/update.d.ts +1 -1
- package/commands/app/secret/update.js +33 -34
- package/commands/app/secret.d.ts +1 -1
- package/commands/app/secret.js +14 -18
- package/commands/app.d.ts +1 -1
- package/commands/app.js +8 -15
- package/commands/auth.d.ts +3 -1
- package/commands/auth.js +89 -99
- package/commands/cms/convertFields.d.ts +1 -1
- package/commands/cms/convertFields.js +34 -39
- package/commands/cms/getReactModule.d.ts +1 -1
- package/commands/cms/getReactModule.js +32 -37
- package/commands/cms/lighthouseScore.d.ts +1 -1
- package/commands/cms/lighthouseScore.js +67 -72
- package/commands/cms.d.ts +1 -1
- package/commands/cms.js +11 -18
- package/commands/completion.d.ts +1 -1
- package/commands/completion.js +10 -17
- package/commands/config/migrate.d.ts +1 -1
- package/commands/config/migrate.js +29 -53
- package/commands/config/set.d.ts +2 -1
- package/commands/config/set.js +39 -32
- package/commands/config.d.ts +1 -1
- package/commands/config.js +8 -15
- package/commands/create/api-sample.d.ts +1 -1
- package/commands/create/api-sample.js +28 -33
- package/commands/create/app.d.ts +1 -1
- package/commands/create/app.js +3 -5
- package/commands/create/function.d.ts +1 -1
- package/commands/create/function.js +10 -12
- package/commands/create/index.d.ts +1 -1
- package/commands/create/index.js +19 -24
- package/commands/create/module.d.ts +1 -1
- package/commands/create/module.js +13 -15
- package/commands/create/react-app.d.ts +1 -1
- package/commands/create/react-app.js +3 -5
- package/commands/create/template.d.ts +1 -1
- package/commands/create/template.js +13 -15
- package/commands/create/vue-app.d.ts +1 -1
- package/commands/create/vue-app.js +3 -5
- package/commands/create/webpack-serverless.d.ts +1 -1
- package/commands/create/webpack-serverless.js +3 -5
- package/commands/create/website-theme.d.ts +1 -1
- package/commands/create/website-theme.js +5 -7
- package/commands/create.d.ts +2 -2
- package/commands/create.js +77 -37
- package/commands/customObject/__tests__/create.test.d.ts +1 -0
- package/commands/customObject/__tests__/create.test.js +40 -0
- package/commands/customObject/__tests__/schema.test.d.ts +1 -0
- package/commands/customObject/__tests__/schema.test.js +53 -0
- package/commands/customObject/create.d.ts +1 -1
- package/commands/customObject/create.js +28 -30
- package/commands/customObject/schema/__tests__/create.test.d.ts +1 -0
- package/commands/customObject/schema/__tests__/create.test.js +28 -0
- package/commands/customObject/schema/__tests__/delete.test.d.ts +1 -0
- package/commands/customObject/schema/__tests__/delete.test.js +42 -0
- package/commands/customObject/schema/__tests__/fetch-all.test.d.ts +1 -0
- package/commands/customObject/schema/__tests__/fetch-all.test.js +41 -0
- package/commands/customObject/schema/__tests__/fetch.test.d.ts +1 -0
- package/commands/customObject/schema/__tests__/fetch.test.js +45 -0
- package/commands/customObject/schema/__tests__/list.test.d.ts +1 -0
- package/commands/customObject/schema/__tests__/list.test.js +29 -0
- package/commands/customObject/schema/__tests__/update.test.d.ts +1 -0
- package/commands/customObject/schema/__tests__/update.test.js +40 -0
- package/commands/customObject/schema/create.d.ts +1 -1
- package/commands/customObject/schema/create.js +28 -30
- package/commands/customObject/schema/delete.d.ts +1 -1
- package/commands/customObject/schema/delete.js +24 -26
- package/commands/customObject/schema/fetch-all.d.ts +1 -1
- package/commands/customObject/schema/fetch-all.js +22 -24
- package/commands/customObject/schema/fetch.d.ts +1 -1
- package/commands/customObject/schema/fetch.js +24 -26
- package/commands/customObject/schema/list.d.ts +1 -1
- package/commands/customObject/schema/list.js +13 -15
- package/commands/customObject/schema/update.d.ts +1 -1
- package/commands/customObject/schema/update.js +32 -34
- package/commands/customObject/schema.d.ts +1 -1
- package/commands/customObject/schema.js +17 -22
- package/commands/customObject.d.ts +1 -1
- package/commands/customObject.js +13 -20
- package/commands/doctor.d.ts +1 -1
- package/commands/doctor.js +28 -35
- package/commands/feedback.d.ts +1 -1
- package/commands/feedback.js +18 -25
- package/commands/fetch.d.ts +1 -1
- package/commands/fetch.js +28 -31
- package/commands/filemanager/__tests__/fetch.test.d.ts +1 -0
- package/commands/filemanager/__tests__/fetch.test.js +32 -0
- package/commands/filemanager/__tests__/upload.test.d.ts +1 -0
- package/commands/filemanager/__tests__/upload.test.js +30 -0
- package/commands/filemanager/fetch.d.ts +1 -1
- package/commands/filemanager/fetch.js +23 -25
- package/commands/filemanager/upload.d.ts +1 -1
- package/commands/filemanager/upload.js +39 -44
- package/commands/filemanager.d.ts +1 -1
- package/commands/filemanager.js +8 -15
- package/commands/function/deploy.d.ts +1 -1
- package/commands/function/deploy.js +35 -40
- package/commands/function/list.d.ts +1 -1
- package/commands/function/list.js +24 -29
- package/commands/function/server.d.ts +1 -1
- package/commands/function/server.js +15 -17
- package/commands/function.d.ts +1 -1
- package/commands/function.js +12 -20
- package/commands/getStarted.d.ts +7 -0
- package/commands/getStarted.js +296 -0
- package/commands/hubdb/__tests__/clear.test.d.ts +1 -0
- package/commands/hubdb/__tests__/clear.test.js +28 -0
- package/commands/hubdb/__tests__/create.test.d.ts +1 -0
- package/commands/hubdb/__tests__/create.test.js +28 -0
- package/commands/hubdb/__tests__/delete.test.d.ts +1 -0
- package/commands/hubdb/__tests__/delete.test.js +28 -0
- package/commands/hubdb/__tests__/fetch.test.d.ts +1 -0
- package/commands/hubdb/__tests__/fetch.test.js +28 -0
- package/commands/hubdb/__tests__/list.test.d.ts +1 -0
- package/commands/hubdb/__tests__/list.test.js +96 -0
- package/commands/hubdb/clear.d.ts +1 -1
- package/commands/hubdb/clear.js +20 -22
- package/commands/hubdb/create.d.ts +1 -1
- package/commands/hubdb/create.js +30 -35
- package/commands/hubdb/delete.d.ts +1 -1
- package/commands/hubdb/delete.js +24 -26
- package/commands/hubdb/fetch.d.ts +1 -1
- package/commands/hubdb/fetch.js +17 -19
- package/commands/hubdb/list.d.ts +4 -0
- package/commands/hubdb/list.js +81 -0
- package/commands/hubdb.d.ts +1 -1
- package/commands/hubdb.js +18 -24
- package/commands/init.d.ts +1 -1
- package/commands/init.js +97 -102
- package/commands/lint.d.ts +1 -1
- package/commands/lint.js +24 -28
- package/commands/list.d.ts +1 -1
- package/commands/list.js +32 -39
- package/commands/logs.d.ts +1 -1
- package/commands/logs.js +35 -38
- package/commands/mcp/__tests__/setup.test.d.ts +1 -0
- package/commands/mcp/__tests__/setup.test.js +26 -0
- package/commands/mcp/__tests__/start.test.d.ts +1 -0
- package/commands/mcp/__tests__/start.test.js +27 -0
- package/commands/mcp/setup.d.ts +6 -0
- package/commands/mcp/setup.js +52 -0
- package/commands/mcp/start.d.ts +6 -0
- package/commands/mcp/start.js +80 -0
- package/commands/mcp.d.ts +3 -0
- package/commands/mcp.js +21 -0
- package/commands/module/marketplace-validate.d.ts +1 -1
- package/commands/module/marketplace-validate.js +21 -28
- package/commands/module.d.ts +1 -1
- package/commands/module.js +7 -12
- package/commands/mv.d.ts +1 -1
- package/commands/mv.js +20 -24
- package/commands/open.d.ts +1 -1
- package/commands/open.js +29 -31
- package/commands/project/__tests__/add.test.d.ts +1 -0
- package/commands/project/__tests__/add.test.js +107 -0
- package/commands/project/__tests__/create.test.d.ts +1 -0
- package/commands/project/__tests__/create.test.js +97 -0
- package/commands/project/__tests__/deploy.test.d.ts +1 -0
- package/commands/project/__tests__/deploy.test.js +306 -0
- package/commands/project/__tests__/devUnifiedFlow.test.d.ts +1 -0
- package/commands/project/__tests__/devUnifiedFlow.test.js +403 -0
- package/commands/project/__tests__/download.test.d.ts +1 -0
- package/commands/project/__tests__/download.test.js +39 -0
- package/commands/project/__tests__/fixtures/exampleProject.json +33 -0
- package/commands/project/__tests__/installDeps.test.d.ts +1 -0
- package/commands/project/__tests__/installDeps.test.js +142 -0
- package/commands/project/__tests__/listBuilds.test.d.ts +1 -0
- package/commands/project/__tests__/listBuilds.test.js +38 -0
- package/commands/project/__tests__/logs.test.d.ts +1 -0
- package/commands/project/__tests__/logs.test.js +205 -0
- package/commands/project/__tests__/migrate.test.d.ts +1 -0
- package/commands/project/__tests__/migrate.test.js +110 -0
- package/commands/project/__tests__/migrateApp.test.d.ts +1 -0
- package/commands/project/__tests__/migrateApp.test.js +81 -0
- package/commands/project/__tests__/open.test.d.ts +1 -0
- package/commands/project/__tests__/open.test.js +39 -0
- package/commands/project/__tests__/profile.test.d.ts +1 -0
- package/commands/project/__tests__/profile.test.js +42 -0
- package/commands/project/__tests__/upload.test.d.ts +1 -0
- package/commands/project/__tests__/upload.test.js +43 -0
- package/commands/project/__tests__/watch.test.d.ts +1 -0
- package/commands/project/__tests__/watch.test.js +35 -0
- package/commands/project/add.d.ts +7 -4
- package/commands/project/add.js +47 -92
- package/commands/project/cloneApp.d.ts +1 -1
- package/commands/project/cloneApp.js +69 -74
- package/commands/project/create.d.ts +2 -8
- package/commands/project/create.js +109 -86
- package/commands/project/deploy.d.ts +4 -2
- package/commands/project/deploy.js +103 -95
- package/commands/project/dev/deprecatedFlow.d.ts +10 -4
- package/commands/project/dev/deprecatedFlow.js +61 -58
- package/commands/project/dev/index.d.ts +1 -1
- package/commands/project/dev/index.js +103 -60
- package/commands/project/dev/unifiedFlow.d.ts +13 -5
- package/commands/project/dev/unifiedFlow.js +90 -103
- package/commands/project/download.d.ts +1 -1
- package/commands/project/download.js +34 -40
- package/commands/project/installDeps.d.ts +1 -1
- package/commands/project/installDeps.js +28 -34
- package/commands/project/listBuilds.d.ts +1 -1
- package/commands/project/listBuilds.js +40 -48
- package/commands/project/logs.d.ts +1 -1
- package/commands/project/logs.js +52 -54
- package/commands/project/migrate.d.ts +1 -1
- package/commands/project/migrate.js +60 -34
- package/commands/project/migrateApp.d.ts +2 -2
- package/commands/project/migrateApp.js +19 -22
- package/commands/project/open.d.ts +1 -1
- package/commands/project/open.js +24 -30
- package/commands/project/profile/add.d.ts +1 -1
- package/commands/project/profile/add.js +68 -73
- package/commands/project/profile/delete.d.ts +1 -1
- package/commands/project/profile/delete.js +67 -61
- package/commands/project/profile.d.ts +1 -1
- package/commands/project/profile.js +9 -15
- package/commands/project/upload.d.ts +2 -2
- package/commands/project/upload.js +63 -73
- package/commands/project/validate.d.ts +6 -0
- package/commands/project/validate.js +78 -0
- package/commands/project/watch.d.ts +1 -1
- package/commands/project/watch.js +59 -61
- package/commands/project.d.ts +1 -1
- package/commands/project.js +37 -43
- package/commands/remove.d.ts +1 -1
- package/commands/remove.js +15 -25
- package/commands/sandbox/__tests__/create.test.d.ts +1 -0
- package/commands/sandbox/__tests__/create.test.js +238 -0
- package/commands/sandbox/__tests__/delete.test.d.ts +1 -0
- package/commands/sandbox/__tests__/delete.test.js +31 -0
- package/commands/sandbox/create.d.ts +2 -2
- package/commands/sandbox/create.js +92 -79
- package/commands/sandbox/delete.d.ts +1 -1
- package/commands/sandbox/delete.js +98 -100
- package/commands/sandbox.d.ts +1 -1
- package/commands/sandbox.js +9 -16
- package/commands/secret/__tests__/addSecret.test.d.ts +1 -0
- package/commands/secret/__tests__/addSecret.test.js +29 -0
- package/commands/secret/__tests__/deleteSecret.test.d.ts +1 -0
- package/commands/secret/__tests__/deleteSecret.test.js +41 -0
- package/commands/secret/__tests__/listSecret.test.d.ts +1 -0
- package/commands/secret/__tests__/listSecret.test.js +29 -0
- package/commands/secret/__tests__/updateSecret.test.d.ts +1 -0
- package/commands/secret/__tests__/updateSecret.test.js +29 -0
- package/commands/secret/addSecret.d.ts +1 -1
- package/commands/secret/addSecret.js +26 -28
- package/commands/secret/deleteSecret.d.ts +1 -1
- package/commands/secret/deleteSecret.js +27 -29
- package/commands/secret/listSecret.d.ts +1 -1
- package/commands/secret/listSecret.js +19 -21
- package/commands/secret/updateSecret.d.ts +1 -1
- package/commands/secret/updateSecret.js +25 -27
- package/commands/secret.d.ts +1 -1
- package/commands/secret.js +13 -20
- package/commands/testAccount/__tests__/create.test.d.ts +1 -0
- package/commands/testAccount/__tests__/create.test.js +33 -0
- package/commands/testAccount/__tests__/createConfig.test.d.ts +1 -0
- package/commands/testAccount/__tests__/createConfig.test.js +32 -0
- package/commands/testAccount/__tests__/delete.test.d.ts +1 -0
- package/commands/testAccount/__tests__/delete.test.js +31 -0
- package/commands/testAccount/__tests__/importData.test.d.ts +1 -0
- package/commands/testAccount/__tests__/importData.test.js +93 -0
- package/commands/testAccount/create.d.ts +3 -4
- package/commands/testAccount/create.js +104 -92
- package/commands/testAccount/createConfig.d.ts +8 -0
- package/commands/testAccount/createConfig.js +92 -0
- package/commands/testAccount/delete.d.ts +6 -0
- package/commands/testAccount/delete.js +46 -0
- package/commands/testAccount/importData.d.ts +9 -0
- package/commands/testAccount/importData.js +61 -0
- package/commands/testAccount.d.ts +1 -1
- package/commands/testAccount.js +16 -14
- package/commands/theme/__tests__/generate-selectors.test.d.ts +1 -0
- package/commands/theme/__tests__/generate-selectors.test.js +28 -0
- package/commands/theme/__tests__/marketplace-validate.test.d.ts +1 -0
- package/commands/theme/__tests__/marketplace-validate.test.js +36 -0
- package/commands/theme/__tests__/preview.test.d.ts +1 -0
- package/commands/theme/__tests__/preview.test.js +60 -0
- package/commands/theme/generate-selectors.d.ts +1 -1
- package/commands/theme/generate-selectors.js +23 -31
- package/commands/theme/marketplace-validate.d.ts +1 -1
- package/commands/theme/marketplace-validate.js +19 -26
- package/commands/theme/preview.d.ts +1 -1
- package/commands/theme/preview.js +61 -67
- package/commands/theme.d.ts +1 -1
- package/commands/theme.js +11 -18
- package/commands/upload.d.ts +1 -1
- package/commands/upload.js +77 -121
- package/commands/watch.d.ts +1 -1
- package/commands/watch.js +45 -63
- package/lang/en.d.ts +624 -186
- package/lang/en.js +939 -505
- package/lang/en.lyaml +46 -237
- package/lib/__tests__/accountTypes.test.d.ts +1 -0
- package/lib/__tests__/accountTypes.test.js +98 -0
- package/lib/__tests__/buildAccount.test.d.ts +1 -0
- package/lib/__tests__/buildAccount.test.js +282 -0
- package/lib/__tests__/commonOpts.test.d.ts +1 -0
- package/lib/__tests__/commonOpts.test.js +85 -0
- package/lib/__tests__/dependencyManagement.test.d.ts +1 -0
- package/lib/__tests__/dependencyManagement.test.js +175 -0
- package/lib/__tests__/developerTestAccounts.test.d.ts +1 -0
- package/lib/__tests__/developerTestAccounts.test.js +145 -0
- package/lib/__tests__/hasFeature.test.d.ts +1 -0
- package/lib/__tests__/hasFeature.test.js +173 -0
- package/lib/__tests__/importData.test.d.ts +1 -0
- package/lib/__tests__/importData.test.js +89 -0
- package/lib/__tests__/npm.test.d.ts +1 -0
- package/lib/__tests__/npm.test.js +57 -0
- package/lib/__tests__/oauth.test.d.ts +1 -0
- package/lib/__tests__/oauth.test.js +108 -0
- package/lib/__tests__/parsing.test.d.ts +1 -0
- package/lib/__tests__/parsing.test.js +34 -0
- package/lib/__tests__/polling.test.d.ts +1 -0
- package/lib/__tests__/polling.test.js +76 -0
- package/lib/__tests__/process.test.d.ts +1 -0
- package/lib/__tests__/process.test.js +85 -0
- package/lib/__tests__/projectProfiles.test.d.ts +1 -0
- package/lib/__tests__/projectProfiles.test.js +129 -0
- package/lib/__tests__/sandboxSync.test.d.ts +1 -0
- package/lib/__tests__/sandboxSync.test.js +126 -0
- package/lib/__tests__/sandboxes.test.d.ts +1 -0
- package/lib/__tests__/sandboxes.test.js +146 -0
- package/lib/__tests__/serverlessLogs.test.d.ts +1 -0
- package/lib/__tests__/serverlessLogs.test.js +149 -0
- package/lib/__tests__/usageTracking.test.d.ts +1 -0
- package/lib/__tests__/usageTracking.test.js +164 -0
- package/lib/__tests__/validation.test.d.ts +1 -0
- package/lib/__tests__/validation.test.js +143 -0
- package/lib/__tests__/yargsUtils.test.d.ts +1 -0
- package/lib/__tests__/yargsUtils.test.js +50 -0
- package/lib/accountTypes.d.ts +1 -0
- package/lib/accountTypes.js +31 -33
- package/lib/app/__tests__/migrate.test.d.ts +1 -0
- package/lib/app/__tests__/migrate.test.js +498 -0
- package/lib/app/__tests__/migrate_legacy.test.d.ts +1 -0
- package/lib/app/__tests__/migrate_legacy.test.js +134 -0
- package/lib/app/migrate.d.ts +13 -6
- package/lib/app/migrate.js +154 -154
- package/lib/app/migrate_legacy.d.ts +1 -1
- package/lib/app/migrate_legacy.js +72 -79
- package/lib/app/urls.d.ts +1 -1
- package/lib/app/urls.js +5 -9
- package/lib/buildAccount.d.ts +12 -3
- package/lib/buildAccount.js +165 -69
- package/lib/commonOpts.d.ts +4 -4
- package/lib/commonOpts.js +78 -58
- package/lib/configMigrate.d.ts +2 -2
- package/lib/configMigrate.js +44 -83
- package/lib/configOptions.d.ts +5 -0
- package/lib/configOptions.js +44 -40
- package/lib/constants.d.ts +46 -5
- package/lib/constants.js +67 -29
- package/lib/customObject.js +2 -6
- package/lib/dependencyManagement.d.ts +1 -1
- package/lib/dependencyManagement.js +37 -45
- package/lib/developerTestAccounts.d.ts +1 -1
- package/lib/developerTestAccounts.js +34 -39
- package/lib/doctor/Diagnosis.d.ts +1 -1
- package/lib/doctor/Diagnosis.js +15 -19
- package/lib/doctor/DiagnosticInfoBuilder.d.ts +1 -1
- package/lib/doctor/DiagnosticInfoBuilder.js +30 -37
- package/lib/doctor/Doctor.d.ts +1 -1
- package/lib/doctor/Doctor.js +56 -63
- package/lib/doctor/__tests__/Diagnosis.test.d.ts +1 -0
- package/lib/doctor/__tests__/Diagnosis.test.js +82 -0
- package/lib/doctor/__tests__/DiagnosticInfoBuilder.test.d.ts +1 -0
- package/lib/doctor/__tests__/DiagnosticInfoBuilder.test.js +167 -0
- package/lib/doctor/__tests__/Doctor.test.d.ts +1 -0
- package/lib/doctor/__tests__/Doctor.test.js +396 -0
- package/lib/enums/exitCodes.js +1 -4
- package/lib/errorHandlers/index.d.ts +4 -0
- package/lib/errorHandlers/index.js +37 -41
- package/lib/errorHandlers/suppressError.d.ts +1 -1
- package/lib/errorHandlers/suppressError.js +28 -31
- package/lib/errors/ProjectValidationError.d.ts +4 -0
- package/lib/errors/ProjectValidationError.js +9 -0
- package/lib/filesystem.js +8 -15
- package/lib/generateSelectors.js +18 -31
- package/lib/hasFeature.d.ts +2 -1
- package/lib/hasFeature.js +16 -6
- package/lib/importData.d.ts +3 -0
- package/lib/importData.js +50 -0
- package/lib/interpolation.js +11 -18
- package/lib/lang.d.ts +1 -1
- package/lib/lang.js +22 -27
- package/lib/links.d.ts +1 -0
- package/lib/links.js +26 -27
- package/lib/marketplaceValidate.d.ts +12 -2
- package/lib/marketplaceValidate.js +35 -52
- package/lib/mcp/setup.d.ts +23 -0
- package/lib/mcp/setup.js +238 -0
- package/lib/middleware/__test__/configMiddleware.test.js +34 -69
- package/lib/middleware/__test__/gitMiddleware.test.js +11 -46
- package/lib/middleware/__test__/notificationsMiddleware.test.js +1 -3
- package/lib/middleware/__test__/requestMiddleware.test.js +8 -13
- package/lib/middleware/__test__/utils.test.js +9 -11
- package/lib/middleware/__test__/yargsChecksMiddleware.test.js +16 -51
- package/lib/middleware/autoUpdateMiddleware.js +33 -40
- package/lib/middleware/configMiddleware.js +56 -39
- package/lib/middleware/fireAlarmMiddleware.d.ts +2 -2
- package/lib/middleware/fireAlarmMiddleware.js +29 -23
- package/lib/middleware/gitMiddleware.js +5 -8
- package/lib/middleware/notificationsMiddleware.js +7 -11
- package/lib/middleware/requestMiddleware.js +4 -10
- package/lib/middleware/utils.js +1 -4
- package/lib/middleware/yargsChecksMiddleware.js +10 -13
- package/lib/npm.js +14 -23
- package/lib/oauth.js +29 -35
- package/lib/parsing.d.ts +1 -0
- package/lib/parsing.js +8 -0
- package/lib/polling.d.ts +1 -1
- package/lib/polling.js +19 -13
- package/lib/process.js +26 -23
- package/lib/projectProfiles.d.ts +3 -2
- package/lib/projectProfiles.js +46 -38
- package/lib/projects/ProjectLogsManager.js +18 -21
- package/lib/projects/__tests__/AppDevModeInterface.test.d.ts +1 -0
- package/lib/projects/__tests__/AppDevModeInterface.test.js +539 -0
- package/lib/projects/__tests__/LocalDevProcess.test.d.ts +1 -0
- package/lib/projects/__tests__/LocalDevProcess.test.js +466 -0
- package/lib/projects/__tests__/LocalDevWebsocketServer.test.d.ts +1 -0
- package/lib/projects/__tests__/LocalDevWebsocketServer.test.js +334 -0
- package/lib/projects/__tests__/ProjectLogsManager.test.d.ts +1 -0
- package/lib/projects/__tests__/ProjectLogsManager.test.js +189 -0
- package/lib/projects/__tests__/components.test.d.ts +1 -0
- package/lib/projects/__tests__/components.test.js +338 -0
- package/lib/projects/__tests__/deploy.test.d.ts +1 -0
- package/lib/projects/__tests__/deploy.test.js +229 -0
- package/lib/projects/__tests__/localDevProjectHelpers.test.d.ts +1 -0
- package/lib/projects/__tests__/localDevProjectHelpers.test.js +120 -0
- package/lib/projects/__tests__/platformVersion.test.d.ts +1 -0
- package/lib/projects/__tests__/platformVersion.test.js +23 -0
- package/lib/projects/__tests__/projects.test.d.ts +1 -0
- package/lib/projects/__tests__/projects.test.js +84 -0
- package/lib/projects/__tests__/structure.test.d.ts +1 -0
- package/lib/projects/__tests__/structure.test.js +211 -0
- package/lib/projects/add/__tests__/legacyAddComponent.test.d.ts +1 -0
- package/lib/projects/add/__tests__/legacyAddComponent.test.js +247 -0
- package/lib/projects/add/__tests__/v3AddComponent.test.d.ts +1 -0
- package/lib/projects/add/__tests__/v3AddComponent.test.js +319 -0
- package/lib/projects/add/legacyAddComponent.d.ts +5 -0
- package/lib/projects/add/legacyAddComponent.js +46 -0
- package/lib/projects/add/v3AddComponent.d.ts +9 -0
- package/lib/projects/add/v3AddComponent.js +101 -0
- package/lib/projects/components.d.ts +3 -0
- package/lib/projects/components.js +102 -0
- package/lib/projects/config.d.ts +1 -1
- package/lib/projects/config.js +32 -41
- package/lib/projects/create/__tests__/legacy.test.d.ts +1 -0
- package/lib/projects/create/__tests__/legacy.test.js +91 -0
- package/lib/projects/create/__tests__/v3.test.d.ts +1 -0
- package/lib/projects/create/__tests__/v3.test.js +241 -0
- package/lib/projects/create/index.d.ts +24 -0
- package/lib/projects/create/index.js +36 -0
- package/lib/projects/create/legacy.d.ts +6 -0
- package/lib/projects/create/legacy.js +53 -0
- package/lib/projects/create/v3.d.ts +26 -0
- package/lib/projects/create/v3.js +171 -0
- package/lib/projects/deploy.d.ts +13 -0
- package/lib/projects/deploy.js +63 -0
- package/lib/projects/ensureProjectExists.js +31 -37
- package/lib/projects/localDev/AppDevModeInterface.d.ts +11 -5
- package/lib/projects/localDev/AppDevModeInterface.js +209 -68
- package/lib/projects/localDev/DevServerManager.d.ts +1 -1
- package/lib/projects/localDev/DevServerManager.js +22 -27
- package/lib/projects/localDev/DevServerManagerV2.d.ts +2 -2
- package/lib/projects/localDev/DevServerManagerV2.js +16 -22
- package/lib/projects/localDev/LocalDevLogger.d.ts +5 -5
- package/lib/projects/localDev/LocalDevLogger.js +88 -78
- package/lib/projects/localDev/LocalDevManager.d.ts +1 -1
- package/lib/projects/localDev/LocalDevManager.js +106 -111
- package/lib/projects/localDev/LocalDevProcess.d.ts +19 -8
- package/lib/projects/localDev/LocalDevProcess.js +155 -61
- package/lib/projects/localDev/LocalDevState.d.ts +33 -11
- package/lib/projects/localDev/LocalDevState.js +77 -25
- package/lib/projects/localDev/LocalDevWatcher.d.ts +1 -1
- package/lib/projects/localDev/LocalDevWatcher.js +9 -17
- package/lib/projects/localDev/LocalDevWebsocketServer.d.ts +9 -3
- package/lib/projects/localDev/LocalDevWebsocketServer.js +141 -47
- package/lib/projects/localDev/{helpers.d.ts → helpers/account.d.ts} +3 -9
- package/lib/projects/localDev/helpers/account.js +233 -0
- package/lib/projects/localDev/helpers/project.d.ts +12 -0
- package/lib/projects/localDev/helpers/project.js +176 -0
- package/lib/projects/localDev/localDevWebsocketServerUtils.d.ts +4 -0
- package/lib/projects/localDev/localDevWebsocketServerUtils.js +10 -0
- package/lib/projects/platformVersion.d.ts +1 -0
- package/lib/projects/platformVersion.js +10 -0
- package/lib/projects/{buildAndDeploy.d.ts → pollProjectBuildAndDeploy.d.ts} +1 -2
- package/lib/projects/{buildAndDeploy.js → pollProjectBuildAndDeploy.js} +90 -109
- package/lib/projects/structure.d.ts +3 -3
- package/lib/projects/structure.js +32 -78
- package/lib/projects/ui.js +10 -13
- package/lib/projects/upload.d.ts +4 -1
- package/lib/projects/upload.js +82 -58
- package/lib/projects/urls.d.ts +5 -0
- package/lib/projects/urls.js +30 -17
- package/lib/projects/watch.d.ts +1 -1
- package/lib/projects/watch.js +48 -54
- 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/__tests__/downloadProjectPrompt.test.d.ts +1 -0
- package/lib/prompts/__tests__/downloadProjectPrompt.test.js +28 -0
- package/lib/prompts/__tests__/projectAddPrompt.test.d.ts +1 -0
- package/lib/prompts/__tests__/projectAddPrompt.test.js +143 -0
- package/lib/prompts/__tests__/projectsLogsPrompt.test.d.ts +1 -0
- package/lib/prompts/__tests__/projectsLogsPrompt.test.js +37 -0
- package/lib/prompts/__tests__/selectProjectTemplatePrompt.test.d.ts +1 -0
- package/lib/prompts/__tests__/selectProjectTemplatePrompt.test.js +160 -0
- package/lib/prompts/accountNamePrompt.d.ts +1 -1
- package/lib/prompts/accountNamePrompt.js +26 -31
- package/lib/prompts/accountsPrompt.js +12 -15
- package/lib/prompts/cmsFieldPrompt.js +13 -19
- package/lib/prompts/confirmImportDataPrompt.d.ts +1 -0
- package/lib/prompts/confirmImportDataPrompt.js +12 -0
- package/lib/prompts/createApiSamplePrompt.d.ts +1 -1
- package/lib/prompts/createApiSamplePrompt.js +9 -12
- package/lib/prompts/createDeveloperTestAccountConfigPrompt.d.ts +18 -0
- package/lib/prompts/createDeveloperTestAccountConfigPrompt.js +137 -0
- package/lib/prompts/createFunctionPrompt.d.ts +2 -1
- package/lib/prompts/createFunctionPrompt.js +51 -25
- package/lib/prompts/createModulePrompt.d.ts +2 -1
- package/lib/prompts/createModulePrompt.js +60 -17
- package/lib/prompts/createTemplatePrompt.d.ts +3 -24
- package/lib/prompts/createTemplatePrompt.js +13 -8
- package/lib/prompts/downloadProjectPrompt.js +17 -20
- package/lib/prompts/importDataFilePathPrompt.d.ts +1 -0
- package/lib/prompts/importDataFilePathPrompt.js +26 -0
- package/lib/prompts/importDataTestAccountSelectPrompt.d.ts +3 -0
- package/lib/prompts/importDataTestAccountSelectPrompt.js +29 -0
- package/lib/prompts/installAppPrompt.d.ts +7 -1
- package/lib/prompts/installAppPrompt.js +29 -21
- package/lib/prompts/personalAccessKeyPrompt.d.ts +2 -2
- package/lib/prompts/personalAccessKeyPrompt.js +53 -49
- package/lib/prompts/previewPrompt.js +15 -22
- package/lib/prompts/projectAddPrompt.d.ts +6 -1
- package/lib/prompts/projectAddPrompt.js +39 -13
- package/lib/prompts/projectDevTargetAccountPrompt.d.ts +1 -1
- package/lib/prompts/projectDevTargetAccountPrompt.js +49 -54
- package/lib/prompts/projectNameAndDestPrompt.d.ts +3 -0
- package/lib/prompts/projectNameAndDestPrompt.js +53 -0
- package/lib/prompts/projectNamePrompt.js +11 -14
- package/lib/prompts/projectsLogsPrompt.js +5 -8
- package/lib/prompts/promptUtils.d.ts +11 -4
- package/lib/prompts/promptUtils.js +191 -45
- package/lib/prompts/sandboxesPrompt.d.ts +1 -1
- package/lib/prompts/sandboxesPrompt.js +26 -30
- package/lib/prompts/secretPrompt.js +10 -15
- package/lib/prompts/selectAppPrompt.js +11 -14
- package/lib/prompts/selectHubDBTablePrompt.js +24 -30
- package/lib/prompts/selectProjectTemplatePrompt.d.ts +27 -0
- package/lib/prompts/selectProjectTemplatePrompt.js +71 -0
- package/lib/prompts/selectPublicAppForMigrationPrompt.js +22 -25
- package/lib/prompts/setAsDefaultAccountPrompt.js +18 -11
- package/lib/prompts/uploadPrompt.js +11 -17
- package/lib/sandboxSync.d.ts +1 -1
- package/lib/sandboxSync.js +58 -65
- package/lib/sandboxes.d.ts +5 -1
- package/lib/sandboxes.js +72 -76
- package/lib/schema.js +16 -19
- package/lib/serverlessLogs.js +45 -52
- package/lib/testUtils.js +5 -10
- package/lib/theme/__tests__/migrate.test.d.ts +1 -0
- package/lib/theme/__tests__/migrate.test.js +233 -0
- package/lib/theme/migrate.d.ts +13 -0
- package/lib/theme/migrate.js +90 -0
- package/lib/ui/SpinniesManager.d.ts +1 -1
- package/lib/ui/SpinniesManager.js +29 -35
- package/lib/ui/__tests__/removeAnsiCodes.test.d.ts +1 -0
- package/lib/ui/__tests__/removeAnsiCodes.test.js +84 -0
- package/lib/ui/boxen.js +11 -14
- package/lib/ui/git.js +14 -20
- package/lib/ui/index.d.ts +6 -0
- package/lib/ui/index.js +58 -81
- package/lib/ui/logger.d.ts +1 -0
- package/lib/ui/logger.js +11 -13
- package/lib/ui/removeAnsiCodes.d.ts +1 -0
- package/lib/ui/removeAnsiCodes.js +4 -0
- package/lib/ui/serverlessFunctionLogs.js +14 -20
- package/lib/ui/spinniesUtils.js +24 -39
- package/lib/ui/supportHyperlinks.js +3 -6
- package/lib/ui/supportsColor.js +11 -17
- package/lib/ui/table.js +6 -13
- package/lib/upload.js +15 -21
- package/lib/usageTracking.d.ts +11 -0
- package/lib/usageTracking.js +88 -103
- package/lib/utils/hasFlag.d.ts +1 -0
- package/lib/utils/hasFlag.js +9 -0
- package/lib/validation.d.ts +1 -1
- package/lib/validation.js +50 -89
- package/lib/yargsUtils.d.ts +4 -1
- package/lib/yargsUtils.js +21 -25
- package/mcp-server/server.d.ts +1 -0
- package/mcp-server/server.js +17 -0
- package/mcp-server/tools/cms/HsCreateFunctionTool.d.ts +32 -0
- package/mcp-server/tools/cms/HsCreateFunctionTool.js +96 -0
- package/mcp-server/tools/cms/HsCreateModuleTool.d.ts +38 -0
- package/mcp-server/tools/cms/HsCreateModuleTool.js +118 -0
- package/mcp-server/tools/cms/HsCreateTemplateTool.d.ts +26 -0
- package/mcp-server/tools/cms/HsCreateTemplateTool.js +75 -0
- package/mcp-server/tools/cms/HsFunctionLogsTool.d.ts +32 -0
- package/mcp-server/tools/cms/HsFunctionLogsTool.js +76 -0
- package/mcp-server/tools/cms/HsListFunctionsTool.d.ts +23 -0
- package/mcp-server/tools/cms/HsListFunctionsTool.js +58 -0
- 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__/HsCreateFunctionTool.test.d.ts +1 -0
- package/mcp-server/tools/cms/__tests__/HsCreateFunctionTool.test.js +251 -0
- package/mcp-server/tools/cms/__tests__/HsCreateModuleTool.test.d.ts +1 -0
- package/mcp-server/tools/cms/__tests__/HsCreateModuleTool.test.js +224 -0
- package/mcp-server/tools/cms/__tests__/HsCreateTemplateTool.test.d.ts +1 -0
- package/mcp-server/tools/cms/__tests__/HsCreateTemplateTool.test.js +206 -0
- package/mcp-server/tools/cms/__tests__/HsFunctionLogsTool.test.d.ts +1 -0
- package/mcp-server/tools/cms/__tests__/HsFunctionLogsTool.test.js +183 -0
- package/mcp-server/tools/cms/__tests__/HsListFunctionsTool.test.d.ts +1 -0
- package/mcp-server/tools/cms/__tests__/HsListFunctionsTool.test.js +120 -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 +3 -0
- package/mcp-server/tools/index.js +38 -0
- package/mcp-server/tools/project/AddFeatureToProjectTool.d.ts +29 -0
- package/mcp-server/tools/project/AddFeatureToProjectTool.js +76 -0
- package/mcp-server/tools/project/CreateProjectTool.d.ts +35 -0
- package/mcp-server/tools/project/CreateProjectTool.js +93 -0
- package/mcp-server/tools/project/DeployProjectTool.d.ts +20 -0
- package/mcp-server/tools/project/DeployProjectTool.js +49 -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 +29 -0
- package/mcp-server/tools/project/DocsSearchTool.js +62 -0
- package/mcp-server/tools/project/GetConfigValuesTool.d.ts +23 -0
- package/mcp-server/tools/project/GetConfigValuesTool.js +58 -0
- package/mcp-server/tools/project/GuidedWalkthroughTool.d.ts +17 -0
- package/mcp-server/tools/project/GuidedWalkthroughTool.js +57 -0
- package/mcp-server/tools/project/UploadProjectTools.d.ts +17 -0
- package/mcp-server/tools/project/UploadProjectTools.js +31 -0
- package/mcp-server/tools/project/ValidateProjectTool.d.ts +17 -0
- package/mcp-server/tools/project/ValidateProjectTool.js +34 -0
- package/mcp-server/tools/project/__tests__/AddFeatureToProjectTool.test.d.ts +1 -0
- package/mcp-server/tools/project/__tests__/AddFeatureToProjectTool.test.js +151 -0
- package/mcp-server/tools/project/__tests__/CreateProjectTool.test.d.ts +1 -0
- package/mcp-server/tools/project/__tests__/CreateProjectTool.test.js +127 -0
- package/mcp-server/tools/project/__tests__/DeployProjectTool.test.d.ts +1 -0
- package/mcp-server/tools/project/__tests__/DeployProjectTool.test.js +119 -0
- 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 +192 -0
- package/mcp-server/tools/project/__tests__/GetConfigValuesTool.test.d.ts +1 -0
- package/mcp-server/tools/project/__tests__/GetConfigValuesTool.test.js +199 -0
- package/mcp-server/tools/project/__tests__/GuidedWalkthroughTool.test.d.ts +1 -0
- package/mcp-server/tools/project/__tests__/GuidedWalkthroughTool.test.js +126 -0
- package/mcp-server/tools/project/__tests__/UploadProjectTools.test.d.ts +1 -0
- package/mcp-server/tools/project/__tests__/UploadProjectTools.test.js +107 -0
- package/mcp-server/tools/project/__tests__/ValidateProjectTool.test.d.ts +1 -0
- package/mcp-server/tools/project/__tests__/ValidateProjectTool.test.js +110 -0
- package/mcp-server/tools/project/constants.d.ts +6 -0
- package/mcp-server/tools/project/constants.js +32 -0
- package/mcp-server/types.d.ts +14 -0
- package/mcp-server/types.js +13 -0
- package/mcp-server/utils/__tests__/cliConfig.test.d.ts +1 -0
- package/mcp-server/utils/__tests__/cliConfig.test.js +110 -0
- package/mcp-server/utils/__tests__/command.test.d.ts +1 -0
- package/mcp-server/utils/__tests__/command.test.js +45 -0
- package/mcp-server/utils/__tests__/project.test.d.ts +1 -0
- package/mcp-server/utils/__tests__/project.test.js +79 -0
- package/mcp-server/utils/cliConfig.d.ts +1 -0
- package/mcp-server/utils/cliConfig.js +12 -0
- package/mcp-server/utils/command.d.ts +3 -0
- package/mcp-server/utils/command.js +9 -0
- package/mcp-server/utils/content.d.ts +3 -0
- package/mcp-server/utils/content.js +17 -0
- package/mcp-server/utils/project.d.ts +5 -0
- package/mcp-server/utils/project.js +14 -0
- package/mcp-server/utils/toolUsageTracking.d.ts +3 -0
- package/mcp-server/utils/toolUsageTracking.js +23 -0
- package/package.json +41 -29
- package/types/Cms.d.ts +17 -1
- package/types/Cms.js +25 -2
- package/types/LocalDev.d.ts +34 -8
- package/types/LocalDev.js +1 -2
- package/types/ProjectComponents.d.ts +2 -2
- package/types/ProjectComponents.js +1 -2
- package/types/Projects.d.ts +20 -2
- package/types/Projects.js +2 -5
- package/types/Prompts.d.ts +5 -2
- package/types/Prompts.js +1 -2
- package/types/Sandboxes.js +1 -2
- package/types/Yargs.d.ts +7 -1
- package/types/Yargs.js +1 -2
- package/ui/components/BoxWithTitle.d.ts +8 -0
- package/ui/components/BoxWithTitle.js +9 -0
- package/ui/components/HorizontalSelectPrompt.d.ts +8 -0
- package/ui/components/HorizontalSelectPrompt.js +30 -0
- package/ui/components/StatusMessageBoxes.d.ts +12 -0
- package/ui/components/StatusMessageBoxes.js +31 -0
- package/ui/index.d.ts +1 -0
- package/ui/index.js +6 -0
- package/ui/lib/ui-testing-utils.d.ts +9 -0
- package/ui/lib/ui-testing-utils.js +47 -0
- package/ui/lib/useTerminalSize.d.ts +13 -0
- package/ui/lib/useTerminalSize.js +31 -0
- package/ui/styles.d.ts +18 -0
- package/ui/styles.js +18 -0
- package/ui/views/UiSandbox.d.ts +5 -0
- package/ui/views/UiSandbox.js +25 -0
- package/lib/projects/create.d.ts +0 -5
- package/lib/projects/create.js +0 -50
- package/lib/projects/localDev/helpers.js +0 -351
- package/lib/prompts/createProjectPrompt.d.ts +0 -19
- package/lib/prompts/createProjectPrompt.js +0 -95
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;
|
|
@@ -8,6 +9,58 @@ export declare const commands: {
|
|
|
8
9
|
readonly configFileExists: (configPath: string) => string;
|
|
9
10
|
};
|
|
10
11
|
};
|
|
12
|
+
readonly getStarted: {
|
|
13
|
+
readonly describe: "A step-by-step command to get you started with a HubSpot project.";
|
|
14
|
+
readonly options: {
|
|
15
|
+
readonly dest: {
|
|
16
|
+
readonly describe: "Directory where the project should be created";
|
|
17
|
+
};
|
|
18
|
+
readonly name: {
|
|
19
|
+
readonly describe: "Project name (cannot be changed)";
|
|
20
|
+
};
|
|
21
|
+
readonly templateSource: {
|
|
22
|
+
readonly describe: "Path to custom GitHub repository from which to create project template";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
readonly startTitle: "Welcome to HubSpot Development!";
|
|
26
|
+
readonly verboseDescribe: "A step-by-step command to get you started with a HubSpot project.";
|
|
27
|
+
readonly startDescription: "You can use the HubSpot CLI to build apps, CMS themes, and more.\n";
|
|
28
|
+
readonly guideOverview: (accountName: string) => string;
|
|
29
|
+
readonly designManager: "To onboard with CMS, please visit the HubSpot Design Manager in your account and follow the checklist items.";
|
|
30
|
+
readonly openDesignManager: "Click here to go to the HubSpot Design Manager";
|
|
31
|
+
readonly openDesignManagerPrompt: "Open Design Manager in your browser?";
|
|
32
|
+
readonly openedDesignManager: "Redirected to Design Manager!";
|
|
33
|
+
readonly developerOverviewBrowserOpenPrep: "We'll take you to your HubSpot account and walk you through installing and previewing your new app.";
|
|
34
|
+
readonly openInstallUrl: "Open HubSpot to install your app in your account?";
|
|
35
|
+
readonly openedDeveloperOverview: "HubSpot opened!";
|
|
36
|
+
readonly prompts: {
|
|
37
|
+
readonly selectOption: "Are you looking to build apps or CMS assets?";
|
|
38
|
+
readonly options: {
|
|
39
|
+
readonly app: "App";
|
|
40
|
+
readonly cms: "CMS assets";
|
|
41
|
+
};
|
|
42
|
+
readonly uploadProject: (accountName: string) => string;
|
|
43
|
+
readonly projectCreated: {
|
|
44
|
+
readonly title: string;
|
|
45
|
+
readonly description: `Let's prepare and upload your project to HubSpot.
|
|
46
|
+
You can use ${string} to ${string} and ${string} to ${string} your project.`;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
readonly logs: {
|
|
50
|
+
readonly appSelected: `We'll create a new project with a sample app for you.
|
|
51
|
+
Projects are what you can use to create apps with HubSpot.
|
|
52
|
+
Usually you'll use the ${string} command, but we'll go ahead and make one now.`;
|
|
53
|
+
readonly dependenciesInstalled: "Dependencies installed successfully.";
|
|
54
|
+
readonly uploadingProject: "Uploading your project to HubSpot...";
|
|
55
|
+
readonly uploadSuccess: "Project uploaded successfully!";
|
|
56
|
+
readonly developerOverviewLink: "Open this link to navigate to your HubSpot developer portal";
|
|
57
|
+
};
|
|
58
|
+
readonly errors: {
|
|
59
|
+
readonly uploadFailed: "Failed to upload project to HubSpot.";
|
|
60
|
+
readonly configFileNotFound: "Could not find project configuration for upload.";
|
|
61
|
+
readonly installDepsFailed: "Failed to install dependencies.";
|
|
62
|
+
};
|
|
63
|
+
};
|
|
11
64
|
readonly completion: {
|
|
12
65
|
readonly describe: "Enable bash completion shortcuts for commands. Concat the generated script to your .bashrc, .bash_profile, or .zshrc file.";
|
|
13
66
|
readonly examples: {
|
|
@@ -17,6 +70,28 @@ export declare const commands: {
|
|
|
17
70
|
readonly account: {
|
|
18
71
|
readonly describe: "Commands for managing configured accounts.";
|
|
19
72
|
readonly subcommands: {
|
|
73
|
+
readonly auth: {
|
|
74
|
+
readonly describe: "Configure authentication for your HubSpot account.";
|
|
75
|
+
readonly verboseDescribe: `Configure authentication for a HubSpot account. This will create or update the global config file at ${string} that stores your account information.
|
|
76
|
+
|
|
77
|
+
The authentication method is ${string}, which is an access token tied to a specific user account.
|
|
78
|
+
|
|
79
|
+
Global configuration replaces hubspot.config.yml, and you will be prompted to migrate your existing config if one exists.`;
|
|
80
|
+
readonly options: {
|
|
81
|
+
readonly account: "HubSpot account to authenticate";
|
|
82
|
+
readonly personalAccessKey: "Enter existing personal access key";
|
|
83
|
+
};
|
|
84
|
+
readonly errors: {
|
|
85
|
+
readonly invalidAccountIdProvided: "--account must be a number.";
|
|
86
|
+
readonly failedToUpdateConfig: "Failed to update the configuration file. Please try again.";
|
|
87
|
+
readonly migrationNotConfirmed: `Did not migrate your configuration file. Run ${string} to update your existing config, or use ${string} to switch to the new global configuration.`;
|
|
88
|
+
readonly mergeNotConfirmed: `Did not merge configuration files. When you are ready to merge the deprecated config file with the global config file, run ${string}.`;
|
|
89
|
+
};
|
|
90
|
+
readonly success: {
|
|
91
|
+
readonly configFileCreated: (configPath: string) => string;
|
|
92
|
+
readonly configFileUpdated: (accountId: number) => string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
20
95
|
readonly list: {
|
|
21
96
|
readonly accounts: `${string}:`;
|
|
22
97
|
readonly defaultAccount: (account: string) => string;
|
|
@@ -120,8 +195,11 @@ export declare const commands: {
|
|
|
120
195
|
};
|
|
121
196
|
};
|
|
122
197
|
readonly auth: {
|
|
123
|
-
readonly describe:
|
|
198
|
+
readonly describe: "Configure authentication for your HubSpot account.";
|
|
199
|
+
readonly verboseDescribe: (configName: string, authMethod: string) => string;
|
|
124
200
|
readonly errors: {
|
|
201
|
+
readonly invalidAccountIdProvided: "--account must be a number.";
|
|
202
|
+
readonly globalConfigFileExists: (accountAuthCommand: string) => string;
|
|
125
203
|
readonly noConfigFileFound: "No config file was found. To create a new config file, use the \"hs init\" command.";
|
|
126
204
|
readonly unsupportedAuthType: (type: string, supportedProtocols: string) => string;
|
|
127
205
|
};
|
|
@@ -133,6 +211,9 @@ export declare const commands: {
|
|
|
133
211
|
readonly account: {
|
|
134
212
|
readonly describe: "HubSpot account to authenticate";
|
|
135
213
|
};
|
|
214
|
+
readonly personalAccessKey: {
|
|
215
|
+
readonly describe: "Enter existing personal access key";
|
|
216
|
+
};
|
|
136
217
|
};
|
|
137
218
|
readonly success: {
|
|
138
219
|
readonly configFileUpdated: (accountName: string, configFilename: string, authType: string) => string;
|
|
@@ -141,6 +222,21 @@ export declare const commands: {
|
|
|
141
222
|
readonly config: {
|
|
142
223
|
readonly describe: "Commands for managing the CLI config file.";
|
|
143
224
|
readonly subcommands: {
|
|
225
|
+
readonly migrate: {
|
|
226
|
+
readonly describe: `Migrate from the deprecated hubspot.config.yml file to the new global config file at ${string}.`;
|
|
227
|
+
readonly verboseDescribe: "This command will create or update the global configuration file in your root directory. It will archive the current config as archived.hubspot.config.yml.";
|
|
228
|
+
readonly errors: {
|
|
229
|
+
readonly noConfigToMigrate: "No hubspot.config.yml was found. There is nothing to migrate.";
|
|
230
|
+
readonly configNotFound: (configPath: string) => string;
|
|
231
|
+
};
|
|
232
|
+
readonly options: {
|
|
233
|
+
readonly force: "Bypass prompts and overwrite any conflicting values in the global config with the deprecated config values.";
|
|
234
|
+
};
|
|
235
|
+
readonly examples: {
|
|
236
|
+
readonly default: `Migrate from the deprecated hubspot.config.yml file to the new global config file at ${string}`;
|
|
237
|
+
readonly configFlag: `Migrate a specific config file (specified with the config flag) to the new global config file at ${string}`;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
144
240
|
readonly set: {
|
|
145
241
|
readonly describe: "Set various configuration options within the hubspot CLI config file.";
|
|
146
242
|
readonly promptMessage: "Select a config option to update";
|
|
@@ -160,6 +256,9 @@ export declare const commands: {
|
|
|
160
256
|
readonly allowAutoUpdates: {
|
|
161
257
|
readonly describe: "Enable or disable auto updates";
|
|
162
258
|
};
|
|
259
|
+
readonly autoOpenBrowser: {
|
|
260
|
+
readonly describe: "Enable or disable automatic opening of the browser";
|
|
261
|
+
};
|
|
163
262
|
};
|
|
164
263
|
};
|
|
165
264
|
};
|
|
@@ -240,6 +339,38 @@ export declare const commands: {
|
|
|
240
339
|
readonly describe: "Type of asset";
|
|
241
340
|
};
|
|
242
341
|
};
|
|
342
|
+
readonly flags: {
|
|
343
|
+
readonly templateType: {
|
|
344
|
+
readonly describe: "Template type for template creation - only used when type is template";
|
|
345
|
+
};
|
|
346
|
+
readonly moduleLabel: {
|
|
347
|
+
readonly describe: "Label for module creation - only used when type is module";
|
|
348
|
+
};
|
|
349
|
+
readonly reactType: {
|
|
350
|
+
readonly describe: "Whether to create a React module - only used when type is module";
|
|
351
|
+
};
|
|
352
|
+
readonly contentTypes: {
|
|
353
|
+
readonly describe: (contentTypes: readonly string[]) => string;
|
|
354
|
+
};
|
|
355
|
+
readonly global: {
|
|
356
|
+
readonly describe: "Whether to create a global module - only used when type is module";
|
|
357
|
+
};
|
|
358
|
+
readonly availableForNewContent: {
|
|
359
|
+
readonly describe: "Whether the template is available for new content - only used when type is template";
|
|
360
|
+
};
|
|
361
|
+
readonly functionsFolder: {
|
|
362
|
+
readonly describe: "Folder to create functions in - only used when type is function";
|
|
363
|
+
};
|
|
364
|
+
readonly filename: {
|
|
365
|
+
readonly describe: "Filename for the function - only used when type is function";
|
|
366
|
+
};
|
|
367
|
+
readonly endpointMethod: {
|
|
368
|
+
readonly describe: "HTTP method for the function endpoint - only used when type is function";
|
|
369
|
+
};
|
|
370
|
+
readonly endpointPath: {
|
|
371
|
+
readonly describe: "API endpoint path for the function - only used when type is function";
|
|
372
|
+
};
|
|
373
|
+
};
|
|
243
374
|
readonly subcommands: {
|
|
244
375
|
readonly apiSample: {
|
|
245
376
|
readonly folderOverwritePrompt: (folderName: string) => string;
|
|
@@ -630,10 +761,26 @@ export declare const commands: {
|
|
|
630
761
|
readonly fetch: (tableId: string, path: string) => string;
|
|
631
762
|
};
|
|
632
763
|
};
|
|
764
|
+
readonly list: {
|
|
765
|
+
readonly tables: `${string}:`;
|
|
766
|
+
readonly describe: "List HubDB tables.";
|
|
767
|
+
readonly labels: {
|
|
768
|
+
readonly label: "Label";
|
|
769
|
+
readonly id: "ID";
|
|
770
|
+
readonly name: "Name";
|
|
771
|
+
readonly columns: "Columns";
|
|
772
|
+
readonly rows: "Rows";
|
|
773
|
+
};
|
|
774
|
+
readonly success: (accountId: number) => string;
|
|
775
|
+
readonly noTables: (accountId: number) => string;
|
|
776
|
+
readonly tablesDisplayed: (displayed: number, total: number, truncated?: number) => string;
|
|
777
|
+
readonly viewTablesLink: (baseUrl: string, accountId: number) => string;
|
|
778
|
+
};
|
|
633
779
|
};
|
|
634
780
|
};
|
|
635
781
|
readonly init: {
|
|
636
|
-
readonly describe:
|
|
782
|
+
readonly describe: "Create a CLI config file and configure authentication for your HubSpot account.";
|
|
783
|
+
readonly verboseDescribe: (configName: string, command: string, authMethod: string) => string;
|
|
637
784
|
readonly options: {
|
|
638
785
|
readonly authType: {
|
|
639
786
|
readonly describe: "Authentication mechanism";
|
|
@@ -648,14 +795,16 @@ export declare const commands: {
|
|
|
648
795
|
};
|
|
649
796
|
readonly success: {
|
|
650
797
|
readonly configFileCreated: (configPath: string) => string;
|
|
651
|
-
readonly configFileUpdated: (
|
|
798
|
+
readonly configFileUpdated: (authType: string, account: string | number) => string;
|
|
652
799
|
};
|
|
653
800
|
readonly logs: {
|
|
654
801
|
readonly updateConfig: "To update an existing config file, use the \"hs auth\" command.";
|
|
655
802
|
};
|
|
656
803
|
readonly errors: {
|
|
804
|
+
readonly invalidAccountIdProvided: "--account must be a number.";
|
|
657
805
|
readonly configFileExists: (configPath: string) => string;
|
|
658
806
|
readonly bothConfigFilesNotAllowed: (path: string) => string;
|
|
807
|
+
readonly globalConfigFileExists: `You are using our new global configuration for account management, which is not compatible with this command. Please use ${string} instead.`;
|
|
659
808
|
};
|
|
660
809
|
};
|
|
661
810
|
readonly lint: {
|
|
@@ -710,6 +859,61 @@ export declare const commands: {
|
|
|
710
859
|
};
|
|
711
860
|
readonly tailLogs: (functionPath: string, accountId: string) => string;
|
|
712
861
|
};
|
|
862
|
+
readonly mcp: {
|
|
863
|
+
readonly describe: "Commands for managing HubSpot MCP servers.";
|
|
864
|
+
readonly setup: {
|
|
865
|
+
readonly describe: "Setup the HubSpot development MCP servers.";
|
|
866
|
+
readonly installingDocSearch: "Adding the docs-search mcp server";
|
|
867
|
+
readonly claudeCode: "Claude Code";
|
|
868
|
+
readonly cursor: "Cursor";
|
|
869
|
+
readonly windsurf: "Windsurf";
|
|
870
|
+
readonly vsCode: "VSCode";
|
|
871
|
+
readonly args: {
|
|
872
|
+
readonly client: "Target applications to configure";
|
|
873
|
+
readonly docsSearch: "Should the docs search mcp server be installed";
|
|
874
|
+
};
|
|
875
|
+
readonly success: (derivedTargets: string[]) => string;
|
|
876
|
+
readonly errors: {
|
|
877
|
+
readonly needsMcpAccess: (accountId?: number) => string;
|
|
878
|
+
readonly needsNode20: "This feature requires node >=20";
|
|
879
|
+
readonly errorParsingJsonFIle: (filename: string, errorMessage: string) => string;
|
|
880
|
+
};
|
|
881
|
+
readonly spinners: {
|
|
882
|
+
readonly failedToConfigure: "Failed to configure the HubSpot mcp server.";
|
|
883
|
+
readonly configuringClaudeCode: "Configuring Claude Code...";
|
|
884
|
+
readonly configuredClaudeCode: "Configured Claude Code";
|
|
885
|
+
readonly claudeCodeNotFound: "Claude Code not found - skipping configuration";
|
|
886
|
+
readonly claudeCodeInstallFailed: "Claude Code CLI not working - skipping configuration";
|
|
887
|
+
readonly failedToConfigureClaudeDesktop: "Failed to configure Claude Desktop";
|
|
888
|
+
readonly configuringCursor: "Configuring Cursor...";
|
|
889
|
+
readonly failedToConfigureCursor: "Failed to configure Cursor";
|
|
890
|
+
readonly configuredCursor: "Configured Cursor";
|
|
891
|
+
readonly alreadyInstalled: "HubSpot CLI mcp server already installed, reinstalling";
|
|
892
|
+
readonly configuringWindsurf: "Configuring Windsurf...";
|
|
893
|
+
readonly failedToConfigureWindsurf: "Failed to configure Windsurf";
|
|
894
|
+
readonly configuredWindsurf: "Configured Windsurf";
|
|
895
|
+
readonly configuringVsCode: "Configuring VSCode...";
|
|
896
|
+
readonly failedToConfigureVsCode: "Failed to configure VSCode";
|
|
897
|
+
readonly configuredVsCode: "Configured VSCode";
|
|
898
|
+
readonly vsCodeNotFound: "VSCode not found - skipping configuration";
|
|
899
|
+
};
|
|
900
|
+
readonly prompts: {
|
|
901
|
+
readonly targets: "[--client] Which tools would you like to add the HubSpot CLI MCP server to?";
|
|
902
|
+
readonly targetsRequired: "Must choose at least one application to configure.";
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
readonly start: {
|
|
906
|
+
readonly errors: {
|
|
907
|
+
readonly needsNode20: "This feature requires node >=20";
|
|
908
|
+
readonly serverFileNotFound: (serverPath: string) => string;
|
|
909
|
+
readonly failedToStart: "Failed to start MCP server";
|
|
910
|
+
};
|
|
911
|
+
readonly startingServer: "Starting HubSpot CLI MCP server...";
|
|
912
|
+
readonly stopInstructions: "Press Ctrl+C to stop the server";
|
|
913
|
+
readonly stoppedSuccessfully: "Stopped successfully.";
|
|
914
|
+
readonly shuttingDown: "Shutting down MCP server...";
|
|
915
|
+
};
|
|
916
|
+
};
|
|
713
917
|
readonly mv: {
|
|
714
918
|
readonly describe: "Move a remote file or folder in HubSpot. This feature is currently in beta and the CLI contract is subject to change.";
|
|
715
919
|
readonly errors: {
|
|
@@ -797,6 +1001,7 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
797
1001
|
readonly noProfileFound: (profileName: string) => string;
|
|
798
1002
|
readonly noProfilesFound: "No profiles found in your project.";
|
|
799
1003
|
readonly failedToDeleteProfile: (profileName: string) => string;
|
|
1004
|
+
readonly failedToDeleteProject: (accountId: number) => string;
|
|
800
1005
|
};
|
|
801
1006
|
readonly positionals: {
|
|
802
1007
|
readonly name: "The name of the project profile";
|
|
@@ -806,22 +1011,37 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
806
1011
|
readonly dev: {
|
|
807
1012
|
readonly describe: "Start local dev for the current project.";
|
|
808
1013
|
readonly logs: {
|
|
809
|
-
readonly
|
|
1014
|
+
readonly header: "HubSpot projects local development";
|
|
810
1015
|
readonly placeholderAccountSelection: "Using default account as target account (for now)";
|
|
811
|
-
readonly learnMoreLocalDevServer: "Learn more about the projects local dev server";
|
|
812
1016
|
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.";
|
|
813
|
-
readonly
|
|
1017
|
+
readonly learnMoreMessageV3: `Learn more about ${string} | ${string}`;
|
|
1018
|
+
readonly learnMoreMessageLegacy: string;
|
|
1019
|
+
readonly profileProjectAccountExplanation: (accountId: number, profileName: string) => string;
|
|
1020
|
+
readonly defaultProjectAccountExplanation: (accountId: number) => string;
|
|
1021
|
+
readonly projectAccountFlagExplanation: (accountId: number) => string;
|
|
1022
|
+
readonly accountFlagExplanation: (accountId: number) => string;
|
|
1023
|
+
readonly defaultSandboxOrDevTestTestingAccountExplanation: (accountId: number) => string;
|
|
1024
|
+
readonly testingAccountFlagExplanation: (accountId: number) => string;
|
|
814
1025
|
};
|
|
815
1026
|
readonly errors: {
|
|
816
1027
|
readonly noProjectConfig: "No project detected. Please run this command again from a project directory.";
|
|
817
|
-
readonly noAccount: (accountId:
|
|
1028
|
+
readonly noAccount: (accountId: number) => string;
|
|
818
1029
|
readonly noAccountsInConfig: (authCommand: string) => string;
|
|
819
1030
|
readonly invalidProjectComponents: "Projects cannot contain both private and public apps. Move your apps to separate projects before attempting local development.";
|
|
820
|
-
readonly noRunnableComponents:
|
|
1031
|
+
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.`;
|
|
1032
|
+
readonly accountNotCombined: `
|
|
1033
|
+
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}.`;
|
|
1034
|
+
readonly unsupportedAccountFlagLegacy: "The --project-account and --testing-account flags are not supported for projects with platform versions earlier than 2025.2.";
|
|
1035
|
+
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";
|
|
821
1036
|
};
|
|
822
1037
|
readonly examples: {
|
|
823
1038
|
readonly default: "Start local dev for the current project";
|
|
824
1039
|
};
|
|
1040
|
+
readonly options: {
|
|
1041
|
+
readonly profile: "The profile to target during local dev";
|
|
1042
|
+
readonly projectAccount: "The id of the account to upload your project to. Only compatible with platform versions 2025.2 and above.";
|
|
1043
|
+
readonly testingAccount: "The id of the account to install apps and test on. Only compatible with platform versions 2025.2 and above.";
|
|
1044
|
+
};
|
|
825
1045
|
};
|
|
826
1046
|
readonly create: {
|
|
827
1047
|
readonly describe: "Create a new project.";
|
|
@@ -833,7 +1053,13 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
833
1053
|
};
|
|
834
1054
|
readonly logs: {
|
|
835
1055
|
readonly success: (projectName: string, projectDest: string) => string;
|
|
836
|
-
readonly welcomeMessage:
|
|
1056
|
+
readonly welcomeMessage: `
|
|
1057
|
+
${string}`;
|
|
1058
|
+
};
|
|
1059
|
+
readonly prompts: {
|
|
1060
|
+
readonly parentComponents: "[--project-base] What would you like in your project?";
|
|
1061
|
+
readonly emptyProject: "Empty Project";
|
|
1062
|
+
readonly app: "App";
|
|
837
1063
|
};
|
|
838
1064
|
readonly examples: {
|
|
839
1065
|
readonly default: "Create a new project";
|
|
@@ -847,11 +1073,26 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
847
1073
|
readonly describe: "Project name (cannot be changed)";
|
|
848
1074
|
};
|
|
849
1075
|
readonly template: {
|
|
850
|
-
readonly describe: "The starting template";
|
|
1076
|
+
readonly describe: "The starting template. Only applies when platform version is less than 2025.2.";
|
|
851
1077
|
};
|
|
852
1078
|
readonly templateSource: {
|
|
853
1079
|
readonly describe: "Path to custom GitHub repository from which to create project template";
|
|
854
1080
|
};
|
|
1081
|
+
readonly platformVersion: {
|
|
1082
|
+
readonly describe: "The target platform version for the new project.";
|
|
1083
|
+
};
|
|
1084
|
+
readonly projectBase: {
|
|
1085
|
+
readonly describe: "The top level component to include in the project.";
|
|
1086
|
+
};
|
|
1087
|
+
readonly distribution: {
|
|
1088
|
+
readonly describe: "How the app will be distributed.";
|
|
1089
|
+
};
|
|
1090
|
+
readonly auth: {
|
|
1091
|
+
readonly describe: "Authentication model for the application.";
|
|
1092
|
+
};
|
|
1093
|
+
readonly features: {
|
|
1094
|
+
readonly describe: "Features to include in the project. Only valid if project-base is app";
|
|
1095
|
+
};
|
|
855
1096
|
};
|
|
856
1097
|
};
|
|
857
1098
|
readonly migrateApp: {
|
|
@@ -898,6 +1139,7 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
898
1139
|
readonly describe: "Migrate an existing project to the new version of the projects framework.";
|
|
899
1140
|
readonly errors: {
|
|
900
1141
|
readonly noProjectConfig: (command: string) => string;
|
|
1142
|
+
readonly noThemeMigrationAccess: (accountId?: number) => string;
|
|
901
1143
|
};
|
|
902
1144
|
readonly examples: {
|
|
903
1145
|
readonly default: "Migrate an existing project to the new version of the projects framework.";
|
|
@@ -937,17 +1179,31 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
937
1179
|
readonly type: {
|
|
938
1180
|
readonly describe: "The path to the component type's location within the hubspot-project-components Github repo: https://github.com/HubSpot/hubspot-project-components";
|
|
939
1181
|
};
|
|
1182
|
+
readonly distribution: {
|
|
1183
|
+
readonly describe: "The distribution method for the application.";
|
|
1184
|
+
};
|
|
1185
|
+
readonly auth: {
|
|
1186
|
+
readonly describe: "The authentication type for the application.";
|
|
1187
|
+
};
|
|
1188
|
+
readonly features: {
|
|
1189
|
+
readonly describe: "Which features to include with the application.";
|
|
1190
|
+
};
|
|
940
1191
|
};
|
|
941
1192
|
readonly creatingComponent: (projectName: string) => string;
|
|
942
|
-
readonly success: (componentName: string) => string;
|
|
1193
|
+
readonly success: (componentName: string, multiple?: boolean) => string;
|
|
943
1194
|
readonly error: {
|
|
944
|
-
readonly failedToDownloadComponent: "Failed to download project
|
|
1195
|
+
readonly failedToDownloadComponent: "Failed to download project. Please try again later.";
|
|
1196
|
+
readonly invalidComponentType: (componentType: string) => string;
|
|
1197
|
+
readonly maxExceeded: (maxCount: number) => string;
|
|
1198
|
+
readonly authTypeNotAllowed: (authType: string) => string;
|
|
1199
|
+
readonly distributionNotAllowed: (dist: string) => string;
|
|
1200
|
+
readonly portalDoesNotHaveAccessToThisFeature: (accountId: number) => string;
|
|
945
1201
|
readonly locationInProject: "This command must be run from within a project directory.";
|
|
946
|
-
readonly failedToFetchComponentList: "Failed to fetch the list of available
|
|
1202
|
+
readonly failedToFetchComponentList: "Failed to fetch the list of available features. Please try again later.";
|
|
947
1203
|
readonly projectContainsPublicApp: "This project contains a public app. This command is currently only compatible with projects that contain private apps.";
|
|
948
1204
|
};
|
|
949
1205
|
readonly examples: {
|
|
950
|
-
readonly default: "Create
|
|
1206
|
+
readonly default: "Create an app feature within your project";
|
|
951
1207
|
readonly withFlags: "Use --name and --type flags to bypass the prompt.";
|
|
952
1208
|
};
|
|
953
1209
|
};
|
|
@@ -958,25 +1214,28 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
958
1214
|
readonly deploying: (path: string) => string;
|
|
959
1215
|
};
|
|
960
1216
|
readonly errors: {
|
|
961
|
-
readonly deploy:
|
|
1217
|
+
readonly deploy: "Deploy error: an unknown error occurred.";
|
|
962
1218
|
readonly noBuilds: "Deploy error: no builds for this project were found.";
|
|
963
1219
|
readonly noBuildId: "You must specify a build to deploy";
|
|
964
|
-
readonly projectNotFound: (
|
|
965
|
-
readonly buildIdDoesNotExist: (
|
|
966
|
-
readonly buildAlreadyDeployed: (buildId:
|
|
967
|
-
readonly
|
|
1220
|
+
readonly projectNotFound: (accountId: number, projectName: string) => string;
|
|
1221
|
+
readonly buildIdDoesNotExist: (accountId: number, buildId: number, projectName: string) => string;
|
|
1222
|
+
readonly buildAlreadyDeployed: (accountId: number, buildId: number, projectName: string) => string;
|
|
1223
|
+
readonly deployContainsRemovals: (componentName: string) => string;
|
|
1224
|
+
readonly deployBlockedHeader: "This build couldn't be deployed because it will be too disruptive for existing users. Fix the following issues and try again:";
|
|
1225
|
+
readonly deployWarningsHeader: `Deploying this build might have unintended consequences for users. Review the following issues and run ${string} to try again:`;
|
|
1226
|
+
readonly deployIssueComponentGeneric: (uid: string, componentTypeName: string) => string;
|
|
1227
|
+
readonly deployIssueComponentWarning: (uid: string, componentTypeName: string, message: string) => string;
|
|
968
1228
|
};
|
|
969
1229
|
readonly examples: {
|
|
970
1230
|
readonly default: "Deploy the latest build of the current project";
|
|
971
1231
|
readonly withOptions: "Deploy build 5 of the project my-project";
|
|
972
1232
|
};
|
|
973
1233
|
readonly options: {
|
|
974
|
-
readonly build:
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
readonly
|
|
978
|
-
|
|
979
|
-
};
|
|
1234
|
+
readonly build: "Project build ID to be deployed";
|
|
1235
|
+
readonly project: "Project name";
|
|
1236
|
+
readonly profile: "The profile to target with this deploy";
|
|
1237
|
+
readonly force: "Skip warnings and force deploy. Use this carefully as it will bypass warnings for destructive actions.";
|
|
1238
|
+
readonly deployLatestBuild: "Deploy the latest build of the current project";
|
|
980
1239
|
};
|
|
981
1240
|
};
|
|
982
1241
|
readonly listBuilds: {
|
|
@@ -984,7 +1243,7 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
984
1243
|
readonly continueOrExitPrompt: "Press <enter> to load more, or ctrl+c to exit";
|
|
985
1244
|
readonly viewAllBuildsLink: "View all builds";
|
|
986
1245
|
readonly showingNextBuilds: (count: string, projectName: string) => string;
|
|
987
|
-
readonly showingRecentBuilds: (count:
|
|
1246
|
+
readonly showingRecentBuilds: (count: number, projectName: string, viewAllBuildsLink: string) => string;
|
|
988
1247
|
readonly errors: {
|
|
989
1248
|
readonly noBuilds: "No builds for this project were found.";
|
|
990
1249
|
readonly projectNotFound: (projectName: string) => string;
|
|
@@ -1172,17 +1431,30 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
1172
1431
|
readonly noPackageJsonInProject: (projectName: string, link: string) => string;
|
|
1173
1432
|
readonly packageManagerNotInstalled: (packageManager: string, link: string) => string;
|
|
1174
1433
|
};
|
|
1434
|
+
readonly validate: {
|
|
1435
|
+
readonly describe: "Validate the project before uploading";
|
|
1436
|
+
readonly mustBeRanWithinAProject: "This command must be run from within a project directory.";
|
|
1437
|
+
readonly badVersion: "This command is only available for projects 2025.2 and later.";
|
|
1438
|
+
readonly examples: {
|
|
1439
|
+
readonly default: "Validate the project before uploading";
|
|
1440
|
+
};
|
|
1441
|
+
readonly success: (projectName: string) => string;
|
|
1442
|
+
readonly failure: (projectName: string) => string;
|
|
1443
|
+
readonly options: {
|
|
1444
|
+
readonly profile: {
|
|
1445
|
+
readonly describe: "The profile to target for this validation";
|
|
1446
|
+
};
|
|
1447
|
+
};
|
|
1448
|
+
};
|
|
1175
1449
|
};
|
|
1176
1450
|
readonly remove: {
|
|
1177
|
-
readonly describe: "Delete a file or folder from HubSpot.";
|
|
1178
|
-
readonly deleted: (path: string, accountId:
|
|
1451
|
+
readonly describe: "Delete a file or folder from the HubSpot CMS.";
|
|
1452
|
+
readonly deleted: (path: string, accountId: number) => string;
|
|
1179
1453
|
readonly errors: {
|
|
1180
|
-
readonly deleteFailed: (path: string, accountId:
|
|
1454
|
+
readonly deleteFailed: (path: string, accountId: number) => string;
|
|
1181
1455
|
};
|
|
1182
1456
|
readonly positionals: {
|
|
1183
|
-
readonly path:
|
|
1184
|
-
readonly describe: "Remote hubspot path";
|
|
1185
|
-
};
|
|
1457
|
+
readonly path: "Remote hubspot path";
|
|
1186
1458
|
};
|
|
1187
1459
|
};
|
|
1188
1460
|
readonly sandbox: {
|
|
@@ -1424,9 +1696,7 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
1424
1696
|
};
|
|
1425
1697
|
readonly success: (themePath: string, selectorsPath: string) => string;
|
|
1426
1698
|
readonly positionals: {
|
|
1427
|
-
readonly path:
|
|
1428
|
-
readonly describe: "The path of the theme you'd like to generate an editor-preview.json for.";
|
|
1429
|
-
};
|
|
1699
|
+
readonly path: "The path of the theme you'd like to generate an editor-preview.json for.";
|
|
1430
1700
|
};
|
|
1431
1701
|
};
|
|
1432
1702
|
readonly marketplaceValidate: {
|
|
@@ -1457,25 +1727,16 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
1457
1727
|
readonly errors: {
|
|
1458
1728
|
readonly invalidPath: (path: string) => string;
|
|
1459
1729
|
readonly noThemeComponents: "Your project has no theme components available to preview.";
|
|
1730
|
+
readonly uploadFailed: (src: string, dest: string) => string;
|
|
1460
1731
|
};
|
|
1461
1732
|
readonly positionals: {
|
|
1462
|
-
readonly src:
|
|
1463
|
-
|
|
1464
|
-
};
|
|
1465
|
-
readonly dest: {
|
|
1466
|
-
readonly describe: "Path in HubSpot Design Tools. Can be a net new path. If you wish to preview a site page using your theme changes it must match the path of the theme used by the site.";
|
|
1467
|
-
};
|
|
1733
|
+
readonly src: "Path to the local directory your theme is in, relative to your current working directory";
|
|
1734
|
+
readonly dest: "Path in HubSpot Design Tools. Can be a net new path. If you wish to preview a site page using your theme changes it must match the path of the theme used by the site.";
|
|
1468
1735
|
};
|
|
1469
1736
|
readonly options: {
|
|
1470
|
-
readonly notify:
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
readonly noSsl: {
|
|
1474
|
-
readonly describe: "Disable HTTPS";
|
|
1475
|
-
};
|
|
1476
|
-
readonly port: {
|
|
1477
|
-
readonly describe: "The port on which to start the local server";
|
|
1478
|
-
};
|
|
1737
|
+
readonly notify: "Log to specified file when a watch task is triggered and after workers have gone idle. Ex. --notify path/to/file";
|
|
1738
|
+
readonly noSsl: "Disable HTTPS";
|
|
1739
|
+
readonly port: "The port on which to start the local server";
|
|
1479
1740
|
};
|
|
1480
1741
|
readonly initialUploadProgressBar: {
|
|
1481
1742
|
readonly start: "Starting...";
|
|
@@ -1499,11 +1760,6 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
1499
1760
|
readonly logs: {
|
|
1500
1761
|
readonly validatingModule: (path: string) => string;
|
|
1501
1762
|
};
|
|
1502
|
-
readonly options: {
|
|
1503
|
-
readonly json: {
|
|
1504
|
-
readonly describe: "Output raw json data";
|
|
1505
|
-
};
|
|
1506
|
-
};
|
|
1507
1763
|
readonly results: {
|
|
1508
1764
|
readonly required: "Required validation results:";
|
|
1509
1765
|
readonly recommended: "Recommended validation results:";
|
|
@@ -1514,9 +1770,7 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
1514
1770
|
readonly noErrors: "No errors";
|
|
1515
1771
|
};
|
|
1516
1772
|
readonly positionals: {
|
|
1517
|
-
readonly src:
|
|
1518
|
-
readonly describe: "Path to the module within the Design Manager.";
|
|
1519
|
-
};
|
|
1773
|
+
readonly src: "Path to the module within the Design Manager.";
|
|
1520
1774
|
};
|
|
1521
1775
|
};
|
|
1522
1776
|
};
|
|
@@ -1529,85 +1783,53 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
1529
1783
|
readonly invalidPath: (path: string) => string;
|
|
1530
1784
|
readonly uploadFailed: (src: string, dest: string) => string;
|
|
1531
1785
|
readonly someFilesFailed: (dest: string) => string;
|
|
1532
|
-
readonly deleteFailed: (path: string, accountId:
|
|
1786
|
+
readonly deleteFailed: (path: string, accountId: number) => string;
|
|
1533
1787
|
};
|
|
1534
1788
|
readonly options: {
|
|
1535
|
-
readonly options:
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
readonly
|
|
1539
|
-
|
|
1540
|
-
};
|
|
1541
|
-
readonly convertFields: {
|
|
1542
|
-
readonly describe: "If true, converts any javascript fields files contained in module folder or project root.";
|
|
1543
|
-
};
|
|
1544
|
-
readonly clean: {
|
|
1545
|
-
readonly describe: "Will delete the destination directory and its contents before uploading. This will also clear the global content associated with any global partial templates and modules.";
|
|
1546
|
-
};
|
|
1547
|
-
readonly force: {
|
|
1548
|
-
readonly describe: "Skips confirmation prompts when doing a clean upload.";
|
|
1549
|
-
};
|
|
1789
|
+
readonly options: "Options to pass to javascript fields files";
|
|
1790
|
+
readonly saveOutput: "If true, saves all output from javascript fields files as 'fields.output.json'.";
|
|
1791
|
+
readonly convertFields: "If true, converts any javascript fields files contained in module folder or project root.";
|
|
1792
|
+
readonly clean: "Will delete the destination directory and its contents before uploading. This will also clear the global content associated with any global partial templates and modules.";
|
|
1793
|
+
readonly force: "Skips confirmation prompts when doing a clean upload.";
|
|
1550
1794
|
};
|
|
1551
1795
|
readonly previewUrl: (previewUrl: string) => string;
|
|
1552
1796
|
readonly positionals: {
|
|
1553
|
-
readonly src:
|
|
1554
|
-
|
|
1555
|
-
};
|
|
1556
|
-
readonly dest: {
|
|
1557
|
-
readonly describe: "Path in HubSpot Design Tools, can be a net new path.";
|
|
1558
|
-
};
|
|
1797
|
+
readonly src: "Path to the local file, relative to your current working directory.";
|
|
1798
|
+
readonly dest: "Path in HubSpot Design Tools, can be a net new path.";
|
|
1559
1799
|
};
|
|
1560
1800
|
readonly success: {
|
|
1561
|
-
readonly fileUploaded: (src: string, dest: string, accountId:
|
|
1801
|
+
readonly fileUploaded: (src: string, dest: string, accountId: number) => string;
|
|
1562
1802
|
readonly uploadComplete: (dest: string) => string;
|
|
1563
1803
|
};
|
|
1564
|
-
readonly uploading: (src: string, dest: string, accountId:
|
|
1804
|
+
readonly uploading: (src: string, dest: string, accountId: number) => string;
|
|
1565
1805
|
readonly notUploaded: (src: string) => string;
|
|
1566
|
-
readonly cleaning: (filePath: string, accountId:
|
|
1567
|
-
readonly confirmCleanUpload: (filePath: string, accountId:
|
|
1806
|
+
readonly cleaning: (filePath: string, accountId: number) => string;
|
|
1807
|
+
readonly confirmCleanUpload: (filePath: string, accountId: number) => string;
|
|
1568
1808
|
};
|
|
1569
1809
|
readonly watch: {
|
|
1570
1810
|
readonly describe: "Watch a directory on your computer for changes and upload the changed files to the HubSpot CMS.";
|
|
1571
1811
|
readonly errors: {
|
|
1572
|
-
readonly folderFailed: (src: string, dest: string, accountId:
|
|
1573
|
-
readonly fileFailed: (file: string, dest: string, accountId:
|
|
1812
|
+
readonly folderFailed: (src: string, dest: string, accountId: number) => string;
|
|
1813
|
+
readonly fileFailed: (file: string, dest: string, accountId: number) => string;
|
|
1574
1814
|
readonly destinationRequired: "A destination directory needs to be passed";
|
|
1575
1815
|
readonly invalidPath: (path: string) => string;
|
|
1576
1816
|
};
|
|
1577
1817
|
readonly options: {
|
|
1578
|
-
readonly disableInitial:
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
readonly
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
readonly
|
|
1585
|
-
readonly describe: "Log to specified file when a watch task is triggered and after workers have gone idle. Ex. --notify path/to/file";
|
|
1586
|
-
};
|
|
1587
|
-
readonly remove: {
|
|
1588
|
-
readonly describe: "Will cause watch to delete files in your HubSpot account that are not found locally.";
|
|
1589
|
-
};
|
|
1590
|
-
readonly convertFields: {
|
|
1591
|
-
readonly describe: "If true, converts any javascript fields files contained in module folder or project root.";
|
|
1592
|
-
};
|
|
1593
|
-
readonly saveOutput: {
|
|
1594
|
-
readonly describe: "If true, saves all output from javascript fields files as 'fields.output.json'.";
|
|
1595
|
-
};
|
|
1596
|
-
readonly options: {
|
|
1597
|
-
readonly describe: "Options to pass to javascript fields files";
|
|
1598
|
-
};
|
|
1818
|
+
readonly disableInitial: "Disable the initial upload when watching a directory (default)";
|
|
1819
|
+
readonly initialUpload: "Upload directory before watching for updates";
|
|
1820
|
+
readonly notify: "Log to specified file when a watch task is triggered and after workers have gone idle. Ex. --notify path/to/file";
|
|
1821
|
+
readonly remove: "Will cause watch to delete files in your HubSpot account that are not found locally.";
|
|
1822
|
+
readonly convertFields: "If true, converts any javascript fields files contained in module folder or project root.";
|
|
1823
|
+
readonly saveOutput: "If true, saves all output from javascript fields files as 'fields.output.json'.";
|
|
1824
|
+
readonly options: "Options to pass to javascript fields files";
|
|
1599
1825
|
};
|
|
1600
1826
|
readonly positionals: {
|
|
1601
|
-
readonly src:
|
|
1602
|
-
|
|
1603
|
-
};
|
|
1604
|
-
readonly dest: {
|
|
1605
|
-
readonly describe: "Path in HubSpot Design Tools. Can be a net new path";
|
|
1606
|
-
};
|
|
1827
|
+
readonly src: "Path to the local directory your files are in, relative to your current working directory";
|
|
1828
|
+
readonly dest: "Path in HubSpot Design Tools. Can be a net new path";
|
|
1607
1829
|
};
|
|
1608
1830
|
readonly warnings: {
|
|
1609
|
-
readonly disableInitial:
|
|
1610
|
-
readonly initialUpload:
|
|
1831
|
+
readonly disableInitial: `Passing the "${string}" option is no longer necessary. Running "${string}" no longer uploads the watched directory by default.`;
|
|
1832
|
+
readonly initialUpload: `To upload the directory run "${string}" beforehand or add the "${string}" option when running "${string}".`;
|
|
1611
1833
|
readonly notUploaded: (path: string) => string;
|
|
1612
1834
|
};
|
|
1613
1835
|
};
|
|
@@ -1628,6 +1850,77 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
1628
1850
|
readonly missingSrc: "Please specify the path to your javascript fields file or directory with the --src flag.";
|
|
1629
1851
|
};
|
|
1630
1852
|
};
|
|
1853
|
+
readonly testAccount: {
|
|
1854
|
+
readonly describe: "Commands for working with test accounts.";
|
|
1855
|
+
readonly subcommands: {
|
|
1856
|
+
readonly importData: {
|
|
1857
|
+
readonly describe: "Import data into the CRM";
|
|
1858
|
+
readonly options: {
|
|
1859
|
+
readonly skipConfirm: {
|
|
1860
|
+
readonly describe: "Skip the confirmation prompt";
|
|
1861
|
+
};
|
|
1862
|
+
readonly filePath: {
|
|
1863
|
+
readonly describe: "The path to the JSON file containing the import schema";
|
|
1864
|
+
};
|
|
1865
|
+
};
|
|
1866
|
+
};
|
|
1867
|
+
};
|
|
1868
|
+
readonly create: {
|
|
1869
|
+
readonly describe: "Create a test account from a config file";
|
|
1870
|
+
readonly configPathPrompt: "[--config-path] Enter the path to the test account config: ";
|
|
1871
|
+
readonly createTestAccountFromConfigPrompt: "How would you like to create your test account?";
|
|
1872
|
+
readonly createFromConfigOption: "Create test account from config file";
|
|
1873
|
+
readonly createFromScratchOption: "Create test account from scratch";
|
|
1874
|
+
readonly errors: {
|
|
1875
|
+
readonly configFileNotFound: (configPath: string) => string;
|
|
1876
|
+
readonly configFileParseFailed: (configPath: string) => string;
|
|
1877
|
+
readonly saveAccountToConfigFailure: (accountName: string) => string;
|
|
1878
|
+
};
|
|
1879
|
+
readonly polling: {
|
|
1880
|
+
readonly start: (testAccountName: string) => string;
|
|
1881
|
+
readonly syncing: "Test account created! Syncing account data... (may take a few minutes - you can exit and the sync will continue)";
|
|
1882
|
+
readonly success: (testAccountName: string, testAccountId: number) => string;
|
|
1883
|
+
readonly createFailure: "Failed to create test account.";
|
|
1884
|
+
};
|
|
1885
|
+
readonly options: {
|
|
1886
|
+
readonly configPath: "The path to the test account config";
|
|
1887
|
+
};
|
|
1888
|
+
readonly example: (configPath: string) => string;
|
|
1889
|
+
};
|
|
1890
|
+
readonly createConfig: {
|
|
1891
|
+
readonly describe: "Create a test account config file.";
|
|
1892
|
+
readonly pathPrompt: "[--path] Enter the name of the Test Account config file: ";
|
|
1893
|
+
readonly errors: {
|
|
1894
|
+
readonly pathError: "Path is required";
|
|
1895
|
+
readonly pathFormatError: "Path must end with .json";
|
|
1896
|
+
readonly failedToCreate: "Failed to create test account config";
|
|
1897
|
+
readonly pathExistsError: "A file already exists at this path. Please try again with a different path.";
|
|
1898
|
+
};
|
|
1899
|
+
readonly success: {
|
|
1900
|
+
readonly configFileCreated: (path: string) => string;
|
|
1901
|
+
};
|
|
1902
|
+
readonly options: {
|
|
1903
|
+
readonly name: "The name of the test account";
|
|
1904
|
+
readonly description: "The description of the test account";
|
|
1905
|
+
readonly path: "The path to the test account config";
|
|
1906
|
+
};
|
|
1907
|
+
readonly example: (name: string) => string;
|
|
1908
|
+
};
|
|
1909
|
+
readonly delete: {
|
|
1910
|
+
readonly describe: "Delete a test account config file.";
|
|
1911
|
+
readonly pathPrompt: "[--path] What is the path to the test account config?";
|
|
1912
|
+
readonly errors: {
|
|
1913
|
+
readonly failedToDelete: "Failed to delete test account";
|
|
1914
|
+
};
|
|
1915
|
+
readonly success: {
|
|
1916
|
+
readonly testAccountDeleted: (testAccountId: number) => string;
|
|
1917
|
+
};
|
|
1918
|
+
readonly positionals: {
|
|
1919
|
+
readonly testAccountId: "The id of the test account";
|
|
1920
|
+
};
|
|
1921
|
+
readonly example: (testAccountId: number) => string;
|
|
1922
|
+
};
|
|
1923
|
+
};
|
|
1631
1924
|
readonly secrets: {
|
|
1632
1925
|
readonly add: {
|
|
1633
1926
|
readonly loading: {
|
|
@@ -2213,6 +2506,12 @@ Profiles enable you to reference variables in your component configuration files
|
|
|
2213
2506
|
};
|
|
2214
2507
|
};
|
|
2215
2508
|
export declare const lib: {
|
|
2509
|
+
readonly parsing: {
|
|
2510
|
+
readonly unableToParseStringToNumber: "Unable to parse string to number";
|
|
2511
|
+
};
|
|
2512
|
+
readonly configMiddleWare: {
|
|
2513
|
+
readonly invalidAccountIdEnvironmentVariable: "Unable to parse `HUBSPOT_ACCOUNT_ID` environment variable into a number";
|
|
2514
|
+
};
|
|
2216
2515
|
readonly process: {
|
|
2217
2516
|
readonly exitDebug: (signal: string) => string;
|
|
2218
2517
|
};
|
|
@@ -2222,7 +2521,6 @@ export declare const lib: {
|
|
|
2222
2521
|
readonly noCompatibleComponents: (serverKey: string) => string;
|
|
2223
2522
|
};
|
|
2224
2523
|
readonly LocalDevManager: {
|
|
2225
|
-
readonly staticAuthAccountsMustMatch: "You must test static auth apps in the account the project exists in";
|
|
2226
2524
|
readonly appNotFound: (accountId: number, appUid: string | undefined) => string;
|
|
2227
2525
|
readonly failedToInitialize: "Missing required arguments to initialize Local Dev";
|
|
2228
2526
|
readonly noDeployedBuild: (projectName: string, accountIdentifier: string, uploadCommand: string) => string;
|
|
@@ -2232,6 +2530,8 @@ export declare const lib: {
|
|
|
2232
2530
|
readonly running: (projectName: string, accountIdentifier: string) => string;
|
|
2233
2531
|
readonly quitHelper: `Press ${string} to stop the local dev server`;
|
|
2234
2532
|
readonly viewProjectLink: (name: string, accountId: number) => string;
|
|
2533
|
+
readonly viewLocalDevUILink: (accountId: number, showWelcomeScreen: boolean) => string;
|
|
2534
|
+
readonly localDevUIAutoMessage: (accountId: number, showWelcomeScreen: boolean) => string;
|
|
2235
2535
|
readonly viewTestAccountLink: "View developer test account in HubSpot";
|
|
2236
2536
|
readonly exitingStart: "Stopping local dev server ...";
|
|
2237
2537
|
readonly exitingSucceed: "Successfully exited";
|
|
@@ -2266,6 +2566,18 @@ export declare const lib: {
|
|
|
2266
2566
|
};
|
|
2267
2567
|
readonly AppDevModeInterface: {
|
|
2268
2568
|
readonly defaultMarketplaceAppWarning: (installCount: number) => string;
|
|
2569
|
+
readonly autoInstallDeclined: "You must install your app on your target test account to proceed with local development.";
|
|
2570
|
+
readonly autoInstallSuccess: (appName: string, targetTestAccountId: number) => string;
|
|
2571
|
+
readonly autoInstallError: (appName: string, targetTestAccountId: number) => string;
|
|
2572
|
+
readonly fetchAppData: {
|
|
2573
|
+
readonly checking: (appName: string) => string;
|
|
2574
|
+
readonly success: (appName: string, accountId: number) => string;
|
|
2575
|
+
readonly notInstalled: (appName: string, accountId: number) => string;
|
|
2576
|
+
readonly activeInstallations: (appName: string, installCount: number) => string;
|
|
2577
|
+
readonly error: "An error occurred while checking installations for your app";
|
|
2578
|
+
};
|
|
2579
|
+
readonly distributionChanged: `Your app's distribution type has been changed from private to marketplace. Once uploaded, this change cannot be reversed. Before uploading your project, confirm that you want to ${string} change your app's distribution type. This will uninstall your app from all accounts.`;
|
|
2580
|
+
readonly authTypeChanged: `Your app's auth type has been changed from static to oauth. Once uploaded, this change cannot be reversed. Before uploading your project, confirm that you want to ${string} change your app's auth type. This will uninstall your app from all accounts.`;
|
|
2269
2581
|
};
|
|
2270
2582
|
readonly LocalDevWebsocketServer: {
|
|
2271
2583
|
readonly errors: {
|
|
@@ -2274,6 +2586,7 @@ export declare const lib: {
|
|
|
2274
2586
|
readonly unknownMessageType: (type: string) => string;
|
|
2275
2587
|
readonly invalidJSON: (data: string) => string;
|
|
2276
2588
|
readonly portManagerNotRunning: (prefix: string) => string;
|
|
2589
|
+
readonly originNotAllowed: (origin?: string) => string;
|
|
2277
2590
|
};
|
|
2278
2591
|
readonly logs: {
|
|
2279
2592
|
readonly startup: (port: number) => string;
|
|
@@ -2282,47 +2595,63 @@ export declare const lib: {
|
|
|
2282
2595
|
readonly LocalDevProcess: {
|
|
2283
2596
|
readonly projectConfigMismatch: `Unable to upload project. The project config has been modified since starting ${string}.`;
|
|
2284
2597
|
readonly uploadInitiated: "Project upload initiated from Local Dev UI.";
|
|
2598
|
+
readonly deployInitiated: "Project deploy initiated from Local Dev UI.";
|
|
2285
2599
|
readonly uploadFailed: "Project upload failed. To proceed with local development, fix any necessary errors, then re-upload your project.";
|
|
2600
|
+
readonly deployFailed: "Project deploy failed. To proceed with local development, fix any necessary errors, then re-deploy your project.";
|
|
2286
2601
|
readonly uploadSuccess: "Project upload completed successfully. Resuming local dev...";
|
|
2602
|
+
readonly uploadSuccessAutoDeployDisabled: "Project upload completed successfully, but auto-deploy is disabled for this project. Deploy your latest build to proceed with local development.";
|
|
2603
|
+
readonly deploySuccess: "Project deploy completed successfully. Resuming local dev...";
|
|
2604
|
+
readonly noBuildToDeploy: "Error deploying project. No build was found to deploy.";
|
|
2287
2605
|
};
|
|
2288
2606
|
readonly localDevHelpers: {
|
|
2289
|
-
readonly
|
|
2290
|
-
readonly
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
readonly
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
};
|
|
2312
|
-
readonly
|
|
2313
|
-
readonly
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
readonly
|
|
2324
|
-
|
|
2325
|
-
|
|
2607
|
+
readonly project: {
|
|
2608
|
+
readonly compareLocalProjectToDeployed: {
|
|
2609
|
+
readonly noDeployedBuild: (projectName: string, accountIdentifier: string) => string;
|
|
2610
|
+
readonly checking: "Checking if your deployed build is up to date...";
|
|
2611
|
+
readonly upToDate: "Deployed build is up to date.";
|
|
2612
|
+
readonly notUpToDate: "Your project contains undeployed local changes.";
|
|
2613
|
+
readonly notUpToDateExplanation: (profile?: string) => string;
|
|
2614
|
+
};
|
|
2615
|
+
readonly createNewProjectForLocalDev: {
|
|
2616
|
+
readonly projectMustExistExplanation: (projectName: string, accountId: number) => string;
|
|
2617
|
+
readonly publicAppProjectMustExistExplanation: (projectName: string, accountId: number) => string;
|
|
2618
|
+
readonly createProject: (projectName: string, accountIdentifier: string) => string;
|
|
2619
|
+
readonly choseNotToCreateProject: "Exiting because this command requires the project to exist in the target account.";
|
|
2620
|
+
readonly creatingProject: (projectName: string, accountIdentifier: string) => string;
|
|
2621
|
+
readonly createdProject: (projectName: string, accountIdentifier: string) => string;
|
|
2622
|
+
readonly failedToCreateProject: "Failed to create project in the target account.";
|
|
2623
|
+
};
|
|
2624
|
+
readonly createInitialBuildForNewProject: {
|
|
2625
|
+
readonly initialUploadMessage: "HubSpot Local Dev Server Startup";
|
|
2626
|
+
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.";
|
|
2627
|
+
readonly genericError: `An error occurred while creating the initial build for this project. Run ${string} to try again.`;
|
|
2628
|
+
};
|
|
2629
|
+
};
|
|
2630
|
+
readonly account: {
|
|
2631
|
+
readonly checkIfDefaultAccountIsSupported: {
|
|
2632
|
+
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}.`;
|
|
2633
|
+
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}.`;
|
|
2634
|
+
};
|
|
2635
|
+
readonly validateAccountOption: {
|
|
2636
|
+
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.`;
|
|
2637
|
+
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}.`;
|
|
2638
|
+
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.`;
|
|
2639
|
+
readonly publicAppNonDeveloperTestAccountWarning: `Local development of public apps is only supported in ${string}.`;
|
|
2640
|
+
};
|
|
2641
|
+
readonly checkIfParentAccountIsAuthed: {
|
|
2642
|
+
readonly notAuthedError: (parentAccountId: number | string, accountIdentifier: string) => string;
|
|
2643
|
+
};
|
|
2644
|
+
readonly selectAccountTypePrompt: {
|
|
2645
|
+
readonly message: "[--testing-account] Choose the type of account to test on";
|
|
2646
|
+
readonly developerTestAccountOption: "Test on a developer test account (recommended)";
|
|
2647
|
+
readonly sandboxAccountOption: "Test on a sandbox account";
|
|
2648
|
+
readonly sandboxAccountOptionDisabled: "Disabled - requires access to sandbox accounts";
|
|
2649
|
+
readonly productionAccountOption: (accountId?: number) => string;
|
|
2650
|
+
};
|
|
2651
|
+
readonly confirmDefaultAccountIsTarget: {
|
|
2652
|
+
readonly configError: `An error occurred while reading the default account from your config. Run ${string} to re-auth this account`;
|
|
2653
|
+
readonly declineDefaultAccountExplanation: `To develop on a different account, run ${string} to change your default account, then re-run ${string}.`;
|
|
2654
|
+
};
|
|
2326
2655
|
};
|
|
2327
2656
|
};
|
|
2328
2657
|
readonly middleware: {
|
|
@@ -2361,12 +2690,31 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2361
2690
|
};
|
|
2362
2691
|
readonly projects: {
|
|
2363
2692
|
readonly create: {
|
|
2693
|
+
readonly prompt: {
|
|
2694
|
+
readonly marketPlaceDistribution: "On the HubSpot marketplace";
|
|
2695
|
+
readonly privateDistribution: "Privately";
|
|
2696
|
+
readonly distribution: "[--distribution] How would you like to distribute your application?";
|
|
2697
|
+
readonly auth: "[--auth] What type of authentication would you like your application to use";
|
|
2698
|
+
readonly staticAuth: "Static Auth";
|
|
2699
|
+
readonly oauth: "OAuth";
|
|
2700
|
+
};
|
|
2364
2701
|
readonly errors: {
|
|
2365
2702
|
readonly noProjectsInConfig: "Unable to find any projects in the target repository's config.json file. Please ensure that there is a \"projects\" array in the config file.";
|
|
2366
2703
|
readonly missingConfigFileTemplateSource: "Failed to fetch the config.json file from the target repository. Please ensure that there is a valid config.json file at the root of the repository and try again.";
|
|
2367
|
-
readonly missingPropertiesInConfig: "Found misconfigured projects in the target repository's config.json file. Please ensure that each project in the target repository's config.json file contains the following properties: [\"name\", \"label\", \"path\"
|
|
2704
|
+
readonly missingPropertiesInConfig: "Found misconfigured projects in the target repository's config.json file. Please ensure that each project in the target repository's config.json file contains the following properties: [\"name\", \"label\", \"path\"].";
|
|
2705
|
+
readonly exceededMaxNumberOfApps: (max: number) => string;
|
|
2706
|
+
readonly unableToParseAppConfig: (file: string) => string;
|
|
2707
|
+
readonly invalidAuthDistCombo: (authType: string, distribution: string) => string;
|
|
2368
2708
|
};
|
|
2369
2709
|
};
|
|
2710
|
+
readonly add: {
|
|
2711
|
+
readonly nothingAdded: "No features added.";
|
|
2712
|
+
};
|
|
2713
|
+
readonly updateHsMetaFilesWithAutoGeneratedFields: {
|
|
2714
|
+
readonly header: "Created the following components and features:";
|
|
2715
|
+
readonly applicationLog: (componentType: string, uid: string, name: string) => string;
|
|
2716
|
+
readonly componentLog: (componentType: string, uid: string) => string;
|
|
2717
|
+
};
|
|
2370
2718
|
readonly validateProjectConfig: {
|
|
2371
2719
|
readonly configNotFound: `Unable to locate a project configuration file. Try running again from a project directory, or run ${string} to create a new project.`;
|
|
2372
2720
|
readonly configMissingFields: "The project configuration file is missing required fields.";
|
|
@@ -2405,11 +2753,12 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2405
2753
|
readonly pollProjectBuildAndDeploy: {
|
|
2406
2754
|
readonly buildSucceededAutomaticallyDeploying: (buildId: number, accountIdentifier: string) => string;
|
|
2407
2755
|
readonly cleanedUpTempFile: (path: string) => string;
|
|
2408
|
-
readonly viewDeploys: "
|
|
2756
|
+
readonly viewDeploys: "view all deploys for this project in HubSpot";
|
|
2409
2757
|
readonly unableToFindAutodeployStatus: (buildId: number, viewDeploysLink: string) => string;
|
|
2410
2758
|
};
|
|
2411
2759
|
};
|
|
2412
2760
|
readonly projectUpload: {
|
|
2761
|
+
readonly wrongPlatformVersionMetaFiles: `Detected components that require a minimum platform version of ${string}. You need to update your platform version in your hsproject.json and run ${string}`;
|
|
2413
2762
|
readonly uploadProjectFiles: {
|
|
2414
2763
|
readonly add: (projectName: string, accountIdentifier: string) => string;
|
|
2415
2764
|
readonly fail: (projectName: string, accountIdentifier: string) => string;
|
|
@@ -2426,6 +2775,16 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2426
2775
|
readonly boxen: {
|
|
2427
2776
|
readonly failedToLoad: "Failed to load boxen util.";
|
|
2428
2777
|
};
|
|
2778
|
+
readonly importData: {
|
|
2779
|
+
readonly errors: {
|
|
2780
|
+
readonly incorrectAccountType: (derivedAccountId: number) => string;
|
|
2781
|
+
readonly failedToImportData: "Failed to import data into portal.";
|
|
2782
|
+
readonly notDeveloperTestAccount: "The account is not a developer test account.";
|
|
2783
|
+
readonly noAccountConfig: (accountId: number) => string;
|
|
2784
|
+
};
|
|
2785
|
+
readonly inProgress: (portalId: number, fileNames: string[]) => string;
|
|
2786
|
+
readonly viewImportLink: (baseUrl: string, accountId: number, importId: string) => string;
|
|
2787
|
+
};
|
|
2429
2788
|
readonly ui: {
|
|
2430
2789
|
readonly betaTag: string;
|
|
2431
2790
|
readonly betaWarning: {
|
|
@@ -2513,6 +2872,12 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2513
2872
|
readonly noLogsFound: "No logs found.";
|
|
2514
2873
|
};
|
|
2515
2874
|
};
|
|
2875
|
+
readonly buildAccount: {
|
|
2876
|
+
readonly createDeveloperTestAccountV3: {
|
|
2877
|
+
readonly syncFailure: "Failed to sync developer test account";
|
|
2878
|
+
readonly pakFailure: "Failed to generate personal access key for developer test account";
|
|
2879
|
+
};
|
|
2880
|
+
};
|
|
2516
2881
|
readonly configOptions: {
|
|
2517
2882
|
readonly enableOrDisableBooleanFieldPrompt: {
|
|
2518
2883
|
readonly message: (fieldName: string) => string;
|
|
@@ -2538,37 +2903,60 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2538
2903
|
readonly promptMessage: "Enter http timeout duration";
|
|
2539
2904
|
readonly success: (timeout: string) => string;
|
|
2540
2905
|
};
|
|
2906
|
+
readonly setAutoOpenBrowser: {
|
|
2907
|
+
readonly fieldName: "auto open browser";
|
|
2908
|
+
readonly enabled: "Auto opening your browser has been enabled";
|
|
2909
|
+
readonly disabled: "Auto opening your browser has been disabled";
|
|
2910
|
+
};
|
|
2541
2911
|
};
|
|
2542
2912
|
readonly commonOpts: {
|
|
2543
2913
|
readonly options: {
|
|
2544
|
-
readonly account:
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
readonly config: {
|
|
2548
|
-
readonly describe: "Path to a config file";
|
|
2549
|
-
};
|
|
2550
|
-
readonly overwrite: {
|
|
2551
|
-
readonly describe: "Overwrite existing files";
|
|
2552
|
-
};
|
|
2914
|
+
readonly account: "HubSpot account id or name from config";
|
|
2915
|
+
readonly config: "Path to a config file";
|
|
2916
|
+
readonly overwrite: "Overwrite existing files";
|
|
2553
2917
|
readonly modes: {
|
|
2554
|
-
readonly
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
readonly write: (modes: string) => string;
|
|
2558
|
-
};
|
|
2559
|
-
};
|
|
2560
|
-
readonly qa: {
|
|
2561
|
-
readonly describe: "Run command in QA mode";
|
|
2562
|
-
};
|
|
2563
|
-
readonly useEnv: {
|
|
2564
|
-
readonly describe: "Use environment variable config";
|
|
2565
|
-
};
|
|
2566
|
-
readonly debug: {
|
|
2567
|
-
readonly describe: "Set log level to debug";
|
|
2918
|
+
readonly default: (modes: string) => string;
|
|
2919
|
+
readonly read: (modes: string) => string;
|
|
2920
|
+
readonly write: (modes: string) => string;
|
|
2568
2921
|
};
|
|
2922
|
+
readonly qa: "Run command in QA mode";
|
|
2923
|
+
readonly useEnv: "Use environment variable config";
|
|
2924
|
+
readonly jsonOutput: "Format output as JSON";
|
|
2925
|
+
readonly debug: "Set log level to debug";
|
|
2926
|
+
};
|
|
2927
|
+
};
|
|
2928
|
+
readonly configMigrate: {
|
|
2929
|
+
readonly deprecatedConfigWarning: (deprecatedConfigPath: string) => string;
|
|
2930
|
+
readonly handleMigration: {
|
|
2931
|
+
readonly description: (archivedConfigName: string) => string;
|
|
2932
|
+
readonly confirmPrompt: "Migrate the deprecated config to the global location?";
|
|
2933
|
+
readonly success: "Your deprecated config file has been successfully migrated.";
|
|
2934
|
+
};
|
|
2935
|
+
readonly handleMergeConfigProperties: {
|
|
2936
|
+
readonly mergeConflictMessage: (count: number, propertyList: string) => string;
|
|
2937
|
+
readonly mergeConfigConflictPrompt: (property: string, newValue: string, oldValue: string) => string;
|
|
2938
|
+
};
|
|
2939
|
+
readonly handleMerge: {
|
|
2940
|
+
readonly description: (archivedConfigName: string) => string;
|
|
2941
|
+
readonly confirmPrompt: "Merge the deprecated config into your global config?";
|
|
2942
|
+
readonly skippedExistingAccounts: (accountIds: (string | number)[]) => string;
|
|
2943
|
+
readonly success: "Your deprecated config file has been successfully merged with the global config file.";
|
|
2569
2944
|
};
|
|
2570
2945
|
};
|
|
2571
2946
|
readonly prompts: {
|
|
2947
|
+
readonly importDataFilePathPrompt: {
|
|
2948
|
+
readonly promptContext: `To view the JSON schema for data imports, visit ${string}`;
|
|
2949
|
+
readonly promptMessage: "[--file-path] Select the JSON file that will be used to import your data.";
|
|
2950
|
+
};
|
|
2951
|
+
readonly confirmImportDataPrompt: {
|
|
2952
|
+
readonly message: (dataFileNames: string[], cliAccount: CLIAccount | null) => string;
|
|
2953
|
+
};
|
|
2954
|
+
readonly importDataTestAccountSelectPrompt: {
|
|
2955
|
+
readonly errors: {
|
|
2956
|
+
readonly noAccountsFound: "No accounts found.";
|
|
2957
|
+
readonly noChildTestAccountsFound: (parentAccountId: number) => string;
|
|
2958
|
+
};
|
|
2959
|
+
};
|
|
2572
2960
|
readonly projectDevTargetAccountPrompt: {
|
|
2573
2961
|
readonly createNewSandboxOption: "<Test on a new development sandbox>";
|
|
2574
2962
|
readonly createNewDeveloperTestAccountOption: "<Test on a new developer test account>";
|
|
@@ -2589,6 +2977,28 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2589
2977
|
readonly setAsDefaultAccount: (accountName: string) => string;
|
|
2590
2978
|
readonly keepingCurrentDefault: (accountName: string) => string;
|
|
2591
2979
|
};
|
|
2980
|
+
readonly createDeveloperTestAccountConfigPrompt: {
|
|
2981
|
+
readonly namePrompt: (withFlag?: boolean) => string;
|
|
2982
|
+
readonly descriptionPrompt: (withFlag?: boolean) => string;
|
|
2983
|
+
readonly useDefaultAccountLevelsPrompt: {
|
|
2984
|
+
readonly message: "Would you like to create a default Test Account, or customize your own?";
|
|
2985
|
+
readonly default: "Default (All Hubs, ENTERPRISE)";
|
|
2986
|
+
readonly manual: "Customize my own";
|
|
2987
|
+
};
|
|
2988
|
+
readonly tiersPrompt: "Select an option per hub to customize tiers. If left blank, default is ENTERPRISE";
|
|
2989
|
+
readonly hubTypes: {
|
|
2990
|
+
readonly marketing: "Marketing";
|
|
2991
|
+
readonly ops: "Ops";
|
|
2992
|
+
readonly service: "Service";
|
|
2993
|
+
readonly sales: "Sales";
|
|
2994
|
+
readonly content: "Content";
|
|
2995
|
+
};
|
|
2996
|
+
readonly errors: {
|
|
2997
|
+
readonly allHubsRequired: "Select a tier for each hub";
|
|
2998
|
+
readonly tiersError: "Cannot have more than one tier per hub";
|
|
2999
|
+
readonly nameRequired: "The name may not be blank. Please add a name for the Test Account.";
|
|
3000
|
+
};
|
|
3001
|
+
};
|
|
2592
3002
|
readonly accountNamePrompt: {
|
|
2593
3003
|
readonly enterAccountName: "Enter a unique name to reference this account in the CLI:";
|
|
2594
3004
|
readonly enterDeveloperTestAccountName: "Name your developer test account:";
|
|
@@ -2607,11 +3017,14 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2607
3017
|
readonly enterAccountId: "Enter the account ID for your account (the number under the DOMAIN column at https://app.hubspot.com/myaccounts-beta ): ";
|
|
2608
3018
|
readonly enterClientId: "Enter your OAuth2 client ID: ";
|
|
2609
3019
|
readonly enterClientSecret: "Enter your OAuth2 client secret: ";
|
|
2610
|
-
readonly enterPersonalAccessKey: "Enter your personal access key: ";
|
|
3020
|
+
readonly enterPersonalAccessKey: "[--personal-access-key] Enter your personal access key: ";
|
|
2611
3021
|
readonly selectScopes: "Select access scopes (see https://developers.hubspot.com/docs/methods/oauth2/initiate-oauth-integration#scopes)";
|
|
2612
3022
|
readonly personalAccessKeySetupTitle: "HubSpot Personal Access Key Setup";
|
|
2613
|
-
readonly personalAccessKeyBrowserOpenPrep: "A personal access key is required to authenticate the CLI to interact with your HubSpot account.
|
|
2614
|
-
readonly
|
|
3023
|
+
readonly personalAccessKeyBrowserOpenPrep: "A personal access key is required to authenticate the CLI to interact with your HubSpot account.";
|
|
3024
|
+
readonly personalAccessKeyPromptChoices: {
|
|
3025
|
+
readonly OPEN_BROWSER: "Open HubSpot to copy your personal access key";
|
|
3026
|
+
readonly PASTE_EXISTING: "Enter existing personal access key";
|
|
3027
|
+
};
|
|
2615
3028
|
readonly logs: {
|
|
2616
3029
|
readonly openingWebBrowser: (url: string) => string;
|
|
2617
3030
|
};
|
|
@@ -2660,15 +3073,20 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2660
3073
|
readonly languageRequired: "Please select API sample app's language";
|
|
2661
3074
|
};
|
|
2662
3075
|
};
|
|
2663
|
-
readonly
|
|
3076
|
+
readonly projectNameAndDestPrompt: {
|
|
2664
3077
|
readonly enterName: "[--name] Give your project a name: ";
|
|
2665
3078
|
readonly enterDest: "[--dest] Enter the folder to create the project in:";
|
|
2666
|
-
readonly selectTemplate: "[--template] Choose a project template: ";
|
|
2667
3079
|
readonly errors: {
|
|
2668
3080
|
readonly nameRequired: "A project name is required";
|
|
2669
3081
|
readonly destRequired: "A project dest is required";
|
|
2670
3082
|
readonly invalidDest: "There is an existing project at this destination. Please provide a new path for this project.";
|
|
2671
3083
|
readonly invalidCharacters: "The selected destination contains invalid characters. Please provide a new path and try again.";
|
|
3084
|
+
};
|
|
3085
|
+
};
|
|
3086
|
+
readonly selectProjectTemplatePrompt: {
|
|
3087
|
+
readonly selectTemplate: "[--template] Choose a project template: ";
|
|
3088
|
+
readonly features: "[--features] Which features would you like your app to include?";
|
|
3089
|
+
readonly errors: {
|
|
2672
3090
|
readonly invalidTemplate: (template: string) => string;
|
|
2673
3091
|
readonly projectTemplateRequired: "Project template is required when projectTemplates is provided";
|
|
2674
3092
|
};
|
|
@@ -2701,11 +3119,14 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2701
3119
|
};
|
|
2702
3120
|
};
|
|
2703
3121
|
readonly projectAddPrompt: {
|
|
2704
|
-
readonly selectType: "[--type] Select
|
|
3122
|
+
readonly selectType: "[--type] Select an app feature to add: ";
|
|
3123
|
+
readonly selectFeatures: "[--features] Select an app feature to add: ";
|
|
2705
3124
|
readonly enterName: "[--name] Give your component a name: ";
|
|
2706
3125
|
readonly errors: {
|
|
2707
3126
|
readonly nameRequired: "A component name is required";
|
|
3127
|
+
readonly componentRequired: "Must select a feature to add";
|
|
2708
3128
|
readonly invalidType: (type: string) => string;
|
|
3129
|
+
readonly cannotAddFeature: (feature: string, reasons: string | boolean) => string;
|
|
2709
3130
|
};
|
|
2710
3131
|
};
|
|
2711
3132
|
readonly secretPrompt: {
|
|
@@ -2752,9 +3173,11 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2752
3173
|
};
|
|
2753
3174
|
};
|
|
2754
3175
|
readonly installAppPrompt: {
|
|
2755
|
-
readonly explanation: "Local development requires this app to be installed in the target test account";
|
|
3176
|
+
readonly explanation: "Local development requires this app to be installed in the target test account.";
|
|
2756
3177
|
readonly reinstallExplanation: "This app's required scopes have been updated since it was last installed on the target test account. To avoid issues with local development, we recommend reinstalling the app with the updated scopes.";
|
|
3178
|
+
readonly staticAuthExplanation: (projectAccountId: number, testingAccountId: number, projectName: string, appUid: string) => string;
|
|
2757
3179
|
readonly prompt: "Open HubSpot to install this app?";
|
|
3180
|
+
readonly autoPrompt: "Install this app in your target test account?";
|
|
2758
3181
|
readonly reinstallPrompt: "Open HubSpot to reinstall this app?";
|
|
2759
3182
|
readonly decline: `To continue local development of this app, install it in your target test account and re-run ${string}`;
|
|
2760
3183
|
};
|
|
@@ -2770,6 +3193,9 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2770
3193
|
};
|
|
2771
3194
|
};
|
|
2772
3195
|
};
|
|
3196
|
+
readonly polling: {
|
|
3197
|
+
readonly timeoutError: (timeoutMs: number) => string;
|
|
3198
|
+
};
|
|
2773
3199
|
readonly convertFields: {
|
|
2774
3200
|
readonly positionals: {
|
|
2775
3201
|
readonly src: {
|
|
@@ -2970,14 +3396,24 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2970
3396
|
readonly componentsToBeMigrated: (components: string) => string;
|
|
2971
3397
|
readonly componentsThatWillNotBeMigrated: (components: string) => string;
|
|
2972
3398
|
readonly sourceContentsMoved: (newLocation: string) => string;
|
|
2973
|
-
readonly projectMigrationWarningTitle: "
|
|
3399
|
+
readonly projectMigrationWarningTitle: "Important: Migrating to platformVersion 2025.2 is irreversible";
|
|
2974
3400
|
readonly projectMigrationWarning: string;
|
|
3401
|
+
readonly exitWithoutMigrating: "Exiting without migrating";
|
|
3402
|
+
readonly success: {
|
|
3403
|
+
readonly downloadedProject: (projectName: string, projectDest: string) => string;
|
|
3404
|
+
readonly themesMigrationSuccess: (platformVersion: string) => string;
|
|
3405
|
+
};
|
|
2975
3406
|
readonly errors: {
|
|
2976
3407
|
readonly project: {
|
|
2977
3408
|
readonly invalidConfig: "The project configuration file is invalid. Please check the config file and try again.";
|
|
2978
3409
|
readonly doesNotExist: (account: number) => string;
|
|
3410
|
+
readonly themesAlreadyMigrated: "This project has already been migrated to the latest platform version.";
|
|
3411
|
+
readonly noProjectForThemesMigration: "Theme migrations are only supported for projects. Please try again from a project directory.";
|
|
3412
|
+
readonly themesAndAppsNotAllowed: "Support for migrating projects containing both themes and apps to the latest platform version is coming soon. Try again later.";
|
|
2979
3413
|
readonly multipleApps: "Multiple apps found in project, this is not allowed in 2025.2";
|
|
2980
3414
|
readonly alreadyExists: (projectName: string) => string;
|
|
3415
|
+
readonly failedToMigrateThemes: "Failed to migrate project themes. Please verify that your themes are properly formatted before trying again.";
|
|
3416
|
+
readonly failedToUpdateProjectConfig: "Failed to update project config file. Please update the platformVersion in the project config file manually.";
|
|
2981
3417
|
};
|
|
2982
3418
|
readonly unmigratableReasons: {
|
|
2983
3419
|
readonly upToDate: "App is already up to date";
|
|
@@ -2996,6 +3432,7 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2996
3432
|
readonly notUngatedForUnifiedApps: (account: string) => string;
|
|
2997
3433
|
};
|
|
2998
3434
|
readonly prompt: {
|
|
3435
|
+
readonly themesMigration: (count: number) => string;
|
|
2999
3436
|
readonly chooseApp: "Which app would you like to migrate?";
|
|
3000
3437
|
readonly inputName: "[--name] What would you like to name the project?";
|
|
3001
3438
|
readonly inputDest: "[--dest] Where would you like to save the project?";
|
|
@@ -3003,6 +3440,7 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
3003
3440
|
readonly proceed: "Would you like to proceed?";
|
|
3004
3441
|
};
|
|
3005
3442
|
readonly spinners: {
|
|
3443
|
+
readonly checkingForMigratableComponents: "Checking project for migratable components...";
|
|
3006
3444
|
readonly beginningMigration: "Beginning migration";
|
|
3007
3445
|
readonly unableToStartMigration: "Unable to begin migration";
|
|
3008
3446
|
readonly finishingMigration: "Wrapping up migration";
|