@hubspot/cli 7.2.2-experimental.0 → 7.2.3-experimental.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +5 -52
- package/commands/account/list.js +0 -4
- package/commands/account.js +0 -4
- package/commands/app/migrate.d.ts +6 -0
- package/commands/app/migrate.js +80 -0
- package/commands/app.d.ts +4 -0
- package/commands/app.js +47 -0
- package/commands/auth.js +5 -9
- package/commands/config/set.d.ts +0 -12
- package/commands/config/set.js +29 -30
- package/commands/config.d.ts +1 -4
- package/commands/config.js +10 -45
- package/commands/create/api-sample.js +14 -4
- package/commands/customObject/create.d.ts +11 -0
- package/commands/customObject/create.js +37 -28
- package/commands/customObject/schema/create.d.ts +10 -0
- package/commands/customObject/schema/create.js +40 -42
- package/commands/customObject/schema/delete.d.ts +11 -0
- package/commands/customObject/schema/delete.js +34 -27
- package/commands/customObject/schema/fetch-all.d.ts +10 -0
- package/commands/customObject/schema/fetch-all.js +31 -24
- package/commands/customObject/schema/fetch.d.ts +11 -0
- package/commands/customObject/schema/fetch.js +34 -42
- package/commands/customObject/schema/list.d.ts +7 -0
- package/commands/customObject/schema/list.js +23 -14
- package/commands/customObject/schema/update.d.ts +11 -0
- package/commands/customObject/schema/update.js +44 -46
- package/commands/customObject/schema.d.ts +5 -1
- package/commands/customObject/schema.js +49 -11
- package/commands/customObject.d.ts +4 -1
- package/commands/customObject.js +54 -21
- package/commands/filemanager/fetch.d.ts +12 -0
- package/commands/filemanager/fetch.js +33 -30
- package/commands/filemanager/upload.d.ts +11 -0
- package/commands/filemanager/upload.js +53 -47
- package/commands/filemanager.d.ts +4 -1
- package/commands/filemanager.js +41 -7
- package/commands/init.js +26 -15
- package/commands/project/add.js +62 -16
- package/commands/project/cloneApp.d.ts +5 -1
- package/commands/project/cloneApp.js +80 -77
- package/commands/project/create.js +70 -15
- package/commands/project/dev.d.ts +7 -0
- package/commands/project/dev.js +96 -75
- package/commands/project/migrateApp.d.ts +6 -1
- package/commands/project/migrateApp.js +17 -184
- package/commands/sandbox/create.d.ts +12 -0
- package/commands/sandbox/create.js +90 -72
- package/commands/sandbox/delete.d.ts +11 -0
- package/commands/sandbox/delete.js +112 -95
- package/commands/sandbox.d.ts +4 -1
- package/commands/sandbox.js +44 -10
- package/commands/theme/generate-selectors.d.ts +9 -0
- package/commands/theme/generate-selectors.js +61 -43
- package/commands/theme/marketplace-validate.d.ts +10 -0
- package/commands/theme/marketplace-validate.js +32 -26
- package/commands/theme/preview.d.ts +16 -0
- package/commands/theme/preview.js +104 -97
- package/commands/theme.d.ts +4 -1
- package/commands/theme.js +44 -10
- package/lang/en.lyaml +62 -67
- package/lib/LocalDevManager.d.ts +2 -2
- package/lib/app/migrate.d.ts +6 -0
- package/lib/app/migrate.js +277 -0
- package/lib/buildAccount.d.ts +2 -3
- package/lib/constants.d.ts +0 -3
- package/lib/constants.js +1 -4
- package/lib/customObject.d.ts +3 -0
- package/lib/customObject.js +15 -0
- package/lib/doctor/Diagnosis.d.ts +0 -1
- package/lib/doctor/Diagnosis.js +0 -7
- package/lib/doctor/DiagnosticInfoBuilder.d.ts +0 -1
- package/lib/doctor/DiagnosticInfoBuilder.js +0 -1
- package/lib/doctor/Doctor.d.ts +0 -1
- package/lib/doctor/Doctor.js +0 -18
- package/lib/localDev.d.ts +2 -1
- package/lib/marketplaceValidate.d.ts +2 -2
- package/lib/projects/buildAndDeploy.js +4 -1
- package/lib/projects/create.d.ts +5 -0
- package/lib/projects/create.js +51 -0
- package/lib/projects/index.d.ts +1 -5
- package/lib/projects/index.js +1 -62
- package/lib/prompts/accountNamePrompt.d.ts +1 -1
- package/lib/prompts/createProjectPrompt.d.ts +6 -8
- package/lib/prompts/createProjectPrompt.js +26 -54
- package/lib/prompts/projectAddPrompt.d.ts +3 -3
- package/lib/prompts/projectAddPrompt.js +16 -6
- package/lib/prompts/projectDevTargetAccountPrompt.d.ts +3 -2
- package/lib/prompts/promptUtils.d.ts +3 -3
- package/lib/prompts/sandboxesPrompt.d.ts +3 -2
- package/lib/prompts/sandboxesPrompt.js +1 -1
- package/lib/sandboxSync.js +6 -2
- package/lib/sandboxes.d.ts +2 -5
- package/lib/testUtils.d.ts +12 -0
- package/lib/testUtils.js +10 -0
- package/lib/ui/index.d.ts +3 -3
- package/lib/ui/index.js +8 -4
- package/lib/upload.d.ts +1 -1
- package/lib/upload.js +20 -20
- package/lib/usageTracking.d.ts +2 -1
- package/lib/validation.d.ts +1 -1
- package/package.json +4 -3
- package/types/Projects.d.ts +1 -6
- package/types/Prompts.d.ts +9 -2
- package/types/Sandboxes.d.ts +2 -0
- package/types/Yargs.d.ts +13 -0
- package/commands/account/auth.d.ts +0 -10
- package/commands/account/auth.js +0 -154
- package/commands/account/createOverride.d.ts +0 -10
- package/commands/account/createOverride.js +0 -62
- package/commands/config/migrate.d.ts +0 -10
- package/commands/config/migrate.js +0 -86
- package/lib/configMigrate.d.ts +0 -2
- package/lib/configMigrate.js +0 -83
package/commands/theme.js
CHANGED
|
@@ -1,20 +1,54 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
36
|
+
exports.describe = exports.command = void 0;
|
|
37
|
+
exports.builder = builder;
|
|
38
|
+
const marketplaceValidate = __importStar(require("./theme/marketplace-validate"));
|
|
39
|
+
const generateSelectors = __importStar(require("./theme/generate-selectors"));
|
|
40
|
+
const previewCommand = __importStar(require("./theme/preview"));
|
|
41
|
+
const commonOpts_1 = require("../lib/commonOpts");
|
|
42
|
+
const lang_1 = require("../lib/lang");
|
|
9
43
|
const i18nKey = 'commands.theme';
|
|
10
44
|
exports.command = ['theme', 'themes'];
|
|
11
|
-
exports.describe = i18n(`${i18nKey}.describe`);
|
|
12
|
-
|
|
13
|
-
addGlobalOptions(yargs);
|
|
45
|
+
exports.describe = (0, lang_1.i18n)(`${i18nKey}.describe`);
|
|
46
|
+
function builder(yargs) {
|
|
47
|
+
(0, commonOpts_1.addGlobalOptions)(yargs);
|
|
14
48
|
yargs
|
|
15
49
|
.command(previewCommand)
|
|
16
50
|
.command(marketplaceValidate)
|
|
17
51
|
.command(generateSelectors)
|
|
18
52
|
.demandCommand(1, '');
|
|
19
53
|
return yargs;
|
|
20
|
-
}
|
|
54
|
+
}
|
package/lang/en.lyaml
CHANGED
|
@@ -11,9 +11,6 @@ en:
|
|
|
11
11
|
portalEnvVarDeprecated: "The HUBSPOT_PORTAL_ID environment variable is deprecated. Please use HUBSPOT_ACCOUNT_ID instead."
|
|
12
12
|
loadConfigMiddleware:
|
|
13
13
|
configFileExists: "A configuration file already exists at {{ configPath }}. To specify a new configuration file, delete the existing one and try again."
|
|
14
|
-
injectAccountIdMiddleware:
|
|
15
|
-
invalidAccountId: "In the default override file ({{ hsAccountFileName }}), the account ID must be a number. Please delete the current file and generate a new one using {{ overrideCommand }}."
|
|
16
|
-
accountNotFound: "The account in the default override file ({{ hsAccountFileName }}) wasn't found in your configured accounts. You can authorize this account using {{ authCommand }}."
|
|
17
14
|
completion:
|
|
18
15
|
describe: "Enable bash completion shortcuts for commands. Concat the generated script to your .bashrc, .bash_profile, or .zshrc file."
|
|
19
16
|
examples:
|
|
@@ -21,35 +18,11 @@ en:
|
|
|
21
18
|
account:
|
|
22
19
|
describe: "Commands for managing configured accounts."
|
|
23
20
|
subcommands:
|
|
24
|
-
auth:
|
|
25
|
-
describe: "Configure authentication for your HubSpot account."
|
|
26
|
-
options:
|
|
27
|
-
account:
|
|
28
|
-
describe: "HubSpot account to authenticate"
|
|
29
|
-
errors:
|
|
30
|
-
failedToUpdateConfig: "Failed to update the configuration file. Please try again."
|
|
31
|
-
bothConfigFilesNotAllowed: "Unable to create config file, because there is an existing \"{{ deprecatedConfig }}\" file. To create a new config file, delete the existing one and try again."
|
|
32
|
-
success:
|
|
33
|
-
configFileCreated: "Created config file \"{{ configPath }}\""
|
|
34
|
-
configFileUpdated: "Connected account \"{{ account }}\" and set it as the default account"
|
|
35
|
-
createOverride:
|
|
36
|
-
describe: "Create a new default account override file (.hs-account) in the current working directory."
|
|
37
|
-
success: "Default account override file created at {{ overrideFilePath }}"
|
|
38
|
-
errors:
|
|
39
|
-
accountNotFound: "The specified account could not be found in the config file {{ configPath }}"
|
|
40
|
-
options:
|
|
41
|
-
account:
|
|
42
|
-
describe: "Name or ID of the account to create an override file for."
|
|
43
|
-
examples:
|
|
44
|
-
default: "Create a new default account override file (.hs-account) in the current working directory"
|
|
45
|
-
idBased: "Create a new default account override file (.hs-account) in the current working directory, using the account with accountId \"1234567\""
|
|
46
|
-
nameBased: "Create a new default account override file (.hs-account) in the current working directory, using the account with name \"MyAccount\""
|
|
47
21
|
list:
|
|
48
22
|
accounts: "{{#bold}}Accounts{{/bold}}:"
|
|
49
23
|
defaultAccount: "{{#bold}}Default account{{/bold}}: {{ account }}"
|
|
50
24
|
describe: "List names of accounts defined in config."
|
|
51
25
|
configPath: "{{#bold}}Config path{{/bold}}: {{ configPath }}"
|
|
52
|
-
overrideFilePath: "{{#bold}}Default account override file path{{/bold}}: {{ overrideFilePath }}"
|
|
53
26
|
labels:
|
|
54
27
|
accountId: "Account ID"
|
|
55
28
|
authType: "Auth Type"
|
|
@@ -120,8 +93,8 @@ en:
|
|
|
120
93
|
auth:
|
|
121
94
|
describe: "Configure authentication for your HubSpot account. This will update the {{ configName }} file that stores your account information."
|
|
122
95
|
errors:
|
|
96
|
+
noConfigFileFound: "No config file was found. To create a new config file, use the \"hs init\" command."
|
|
123
97
|
unsupportedAuthType: "Unsupported auth type: {{ type }}. The only supported authentication protocols are {{ supportedProtocols }}."
|
|
124
|
-
globalConfigFileExists: "A global config file exists at {{ configPath }}. To authorize an account, please use {{ authCommand }}."
|
|
125
98
|
options:
|
|
126
99
|
authType:
|
|
127
100
|
describe: "Authentication mechanism"
|
|
@@ -133,16 +106,6 @@ en:
|
|
|
133
106
|
config:
|
|
134
107
|
describe: "Commands for managing the CLI config file."
|
|
135
108
|
subcommands:
|
|
136
|
-
migrate:
|
|
137
|
-
describe: "Migrate from the deprecated {{ deprecatedConfigPath }} file to the new global config file at {{ globalConfigPath }}."
|
|
138
|
-
migrationAlreadyCompleted: "A global configuration file already exists at {{ globalConfigPath }}. No migration necessary."
|
|
139
|
-
errors:
|
|
140
|
-
configNotFound: "A configuration file at {{ configPath }} could not be found. Please try again with a valid file path."
|
|
141
|
-
options:
|
|
142
|
-
force: "When merging a deprecated configuration file with an existing global configuration file, overwrite any conflicting values in the global config with the deprecated config values."
|
|
143
|
-
examples:
|
|
144
|
-
default: "Migrate from the deprecated {{ deprecatedConfigPath }} file to the new global config file at {{ globalConfigPath }}"
|
|
145
|
-
configFlag: "Migrate a specific config file (specified with the config flag) to the new global config file at {{ globalConfigPath }}"
|
|
146
109
|
set:
|
|
147
110
|
describe: "Set various configuration options within the hubspot.config.yml file."
|
|
148
111
|
promptMessage: "Select a config option to update"
|
|
@@ -244,6 +207,7 @@ en:
|
|
|
244
207
|
create:
|
|
245
208
|
describe: "Create custom object instances."
|
|
246
209
|
errors:
|
|
210
|
+
invalidObjectDefinition: "The object definition is invalid. Please check the schema and try again."
|
|
247
211
|
creationFailed: "Object creation from {{ definition }} failed"
|
|
248
212
|
options:
|
|
249
213
|
path:
|
|
@@ -261,6 +225,7 @@ en:
|
|
|
261
225
|
create:
|
|
262
226
|
describe: "Create a custom object schema."
|
|
263
227
|
errors:
|
|
228
|
+
invalidSchema: "The schema definition is invalid. Please check the schema and try again."
|
|
264
229
|
creationFailed: "Schema creation from {{ definition }} failed"
|
|
265
230
|
options:
|
|
266
231
|
definition:
|
|
@@ -322,6 +287,7 @@ en:
|
|
|
322
287
|
update:
|
|
323
288
|
describe: "Update an existing custom object schema."
|
|
324
289
|
errors:
|
|
290
|
+
invalidSchema: "The schema definition is invalid. Please check the schema and try again."
|
|
325
291
|
update: "Schema update from {{ definition }} failed"
|
|
326
292
|
options:
|
|
327
293
|
path:
|
|
@@ -487,6 +453,8 @@ en:
|
|
|
487
453
|
defaultDescription: "\"{{ authMethod }}\": An access token tied to a specific user account. This is the recommended way of authenticating with local development tools."
|
|
488
454
|
account:
|
|
489
455
|
describe: "HubSpot account to authenticate"
|
|
456
|
+
useHiddenConfig:
|
|
457
|
+
describe: "Use the new HubSpot configuration file located in a hidden file in the user's home directory"
|
|
490
458
|
success:
|
|
491
459
|
configFileCreated: "Created config file \"{{ configPath }}\""
|
|
492
460
|
configFileUpdated: "Connected account \"{{ account }}\" using \"{{ authType }}\" and set it as the default account"
|
|
@@ -494,7 +462,7 @@ en:
|
|
|
494
462
|
updateConfig: "To update an existing config file, use the \"hs auth\" command."
|
|
495
463
|
errors:
|
|
496
464
|
configFileExists: "The config file {{ configPath }} already exists."
|
|
497
|
-
|
|
465
|
+
bothConfigFilesNotAllowed: "Unable to create config file, because there is an existing one at \"{{ path }}\". To create a new config file, delete the existing one and try again."
|
|
498
466
|
lint:
|
|
499
467
|
issuesFound: "{{ count }} issues found."
|
|
500
468
|
groupName: "Linting {{ path }}"
|
|
@@ -557,13 +525,20 @@ en:
|
|
|
557
525
|
learnMoreLocalDevServer: "Learn more about the projects local dev server"
|
|
558
526
|
errors:
|
|
559
527
|
noProjectConfig: "No project detected. Please run this command again from a project directory."
|
|
528
|
+
noAccount: "An error occurred while reading account {{ accountId }} from your config. Run {{ authCommand }} to re-auth this account."
|
|
529
|
+
noAccountsInConfig: "No accounts found in your config. Run {{ authCommand }} to configure a HubSpot account with the CLI."
|
|
560
530
|
invalidProjectComponents: "Projects cannot contain both private and public apps. Move your apps to separate projects before attempting local development."
|
|
561
531
|
noRunnableComponents: "No supported components were found in this project. Run {{ command }} to see a list of available components and add one to your project."
|
|
562
532
|
examples:
|
|
563
533
|
default: "Start local dev for the current project"
|
|
564
534
|
create:
|
|
565
535
|
describe: "Create a new project."
|
|
536
|
+
errors:
|
|
537
|
+
failedToDownloadProject: "Failed to download project. Please try again later."
|
|
538
|
+
failedToFetchProjectList: "Failed to fetch the list of available project templates. Please try again later."
|
|
539
|
+
cannotNestProjects: "A project already exists at {{ projectDir }}. Projects cannot be nested within other projects. Please choose a different destination and try again."
|
|
566
540
|
logs:
|
|
541
|
+
success: "Project {{#bold}}{{ projectName }}{{/bold}} was successfully created in {{ projectDest }}"
|
|
567
542
|
welcomeMessage: "Welcome to HubSpot Developer Projects!"
|
|
568
543
|
examples:
|
|
569
544
|
default: "Create a new project"
|
|
@@ -591,6 +566,7 @@ en:
|
|
|
591
566
|
header:
|
|
592
567
|
text: "Migrate an app to the projects framework"
|
|
593
568
|
link: "Learn more about migrating apps to the projects framework"
|
|
569
|
+
deprecationWarning: "The {{ oldCommand }} command is deprecated and will be removed. Use {{ newCommand }} going forward."
|
|
594
570
|
migrationStatus:
|
|
595
571
|
inProgress: "Converting app configuration to {{#bold}}public-app.json{{/bold}} component definition ..."
|
|
596
572
|
success: "{{#bold}}Your app was converted and build #1 is deployed{{/bold}}"
|
|
@@ -607,10 +583,35 @@ en:
|
|
|
607
583
|
createAppPrompt: "Proceed with migrating this app to a project component (this process can't be aborted)?"
|
|
608
584
|
projectDetailsLink: "View project details in your developer account"
|
|
609
585
|
errors:
|
|
586
|
+
noApps: "No apps found in account {{ accountId }}"
|
|
587
|
+
noAppsEligible: "No apps in account {{ accountId }} are currently migratable"
|
|
610
588
|
invalidAccountTypeTitle: "{{#bold}}Developer account not targeted{{/bold}}"
|
|
611
589
|
invalidAccountTypeDescription: "Only public apps created in a developer account can be converted to a project component. Select a connected developer account with {{useCommand}} or {{authCommand}} and try again."
|
|
612
590
|
projectAlreadyExists: "A project with name {{ projectName }} already exists. Please choose another name."
|
|
613
591
|
invalidApp: "Could not migrate appId {{ appId }}. This app cannot be migrated at this time. Please choose another public app."
|
|
592
|
+
prompt:
|
|
593
|
+
chooseApp: 'Which app would you like to migrate?'
|
|
594
|
+
inputName: '[--name] What would you like to name the project?'
|
|
595
|
+
inputDest: '[--dest] Where would you like to save the project?'
|
|
596
|
+
uidForComponent: 'What UID would you like to use for {{ componentName }}?'
|
|
597
|
+
spinners:
|
|
598
|
+
beginningMigration: "Beginning migration"
|
|
599
|
+
migrationStarted: "Migration started"
|
|
600
|
+
unableToStartMigration: "Unable to begin migration"
|
|
601
|
+
finishingMigration: "Wrapping up migration"
|
|
602
|
+
migrationComplete: "Migration completed"
|
|
603
|
+
migrationFailed: "Migration failed"
|
|
604
|
+
downloadingProjectContents: "Downloading migrated project files"
|
|
605
|
+
downloadingProjectContentsComplete: "Migrated project files downloaded"
|
|
606
|
+
downloadingProjectContentsFailed: "Unable to download migrated project files"
|
|
607
|
+
copyingProjectFiles: "Copying migrated project files"
|
|
608
|
+
copyingProjectFilesComplete: "Migrated project files copied"
|
|
609
|
+
copyingProjectFilesFailed: "Unable to copy migrated project files"
|
|
610
|
+
migrationNotAllowedReasons:
|
|
611
|
+
upToDate: 'App is already up to date'
|
|
612
|
+
isPrivateApp: 'Private apps are not currently migratable'
|
|
613
|
+
listedInMarketplace: 'Listed apps are not currently migratable'
|
|
614
|
+
generic: "Unable to migrate app: {{ reasonCode }}"
|
|
614
615
|
cloneApp:
|
|
615
616
|
describe: "Clone a public app using the projects framework."
|
|
616
617
|
examples:
|
|
@@ -636,12 +637,13 @@ en:
|
|
|
636
637
|
describe: "The name for your newly created component"
|
|
637
638
|
type:
|
|
638
639
|
describe: "The path to the component type's location within the hubspot-project-components Github repo: https://github.com/HubSpot/hubspot-project-components"
|
|
639
|
-
creatingComponent:
|
|
640
|
-
|
|
641
|
-
success:
|
|
642
|
-
message: "{{ componentName }} was added to your project"
|
|
640
|
+
creatingComponent: "Adding a new component to {{#bold}}{{ projectName }}{{/bold}}"
|
|
641
|
+
success: "{{ componentName }} was successfully added to your project."
|
|
643
642
|
error:
|
|
644
|
-
|
|
643
|
+
failedToDownloadComponent: "Failed to download project component. Please try again later."
|
|
644
|
+
locationInProject: "This command must be run from within a project directory."
|
|
645
|
+
failedToFetchComponentList: "Failed to fetch the list of available components. Please try again later."
|
|
646
|
+
projectContainsPublicApp: "This project contains a public app. This command is currently only compatible with projects that contain private apps."
|
|
645
647
|
examples:
|
|
646
648
|
default: "Create a component within your project"
|
|
647
649
|
withFlags: "Use --name and --type flags to bypass the prompt."
|
|
@@ -848,6 +850,8 @@ en:
|
|
|
848
850
|
invalidAccountType: "Sandboxes must be created from a production account. Your current default account {{#bold}}{{ accountName }}{{/bold}} is a {{ accountType }}.
|
|
849
851
|
\n- Run {{#bold}}hs accounts use{{/bold}} to switch to your default account to your production account.
|
|
850
852
|
\n- Run {{#bold}}hs auth{{/bold}} to connect a production account to the HubSpot CLI.\n"
|
|
853
|
+
noAccountConfig: "There is no account associated with {{ accountId }} in the config file. Please choose another account and try again, or authenticate {{ accountId }} using {{ authCommand }}."
|
|
854
|
+
noSandboxAccountConfig: "There is no sandbox account associated with {{ accountId }} in the config file. Please try to re-authenticate your sandbox account using {{ authCommand}}."
|
|
851
855
|
delete:
|
|
852
856
|
describe: "Delete a sandbox account."
|
|
853
857
|
debug:
|
|
@@ -864,11 +868,12 @@ en:
|
|
|
864
868
|
failure:
|
|
865
869
|
invalidUser: "Couldn't delete {{ accountName }} because your account has been removed from {{ parentAccountName }} or your permission set doesn't allow you to delete the sandbox. To update your permissions, contact a super admin in {{ parentAccountName }}."
|
|
866
870
|
noAccount: "No account specified. Specify an account by using the --account flag."
|
|
867
|
-
noSandboxAccounts: "There are no sandboxes connected to the CLI. To add a sandbox, run {{
|
|
868
|
-
|
|
871
|
+
noSandboxAccounts: "There are no sandboxes connected to the CLI. To add a sandbox, run {{ authCommand }}."
|
|
872
|
+
noSandboxAccountId: "This sandbox can't be deleted from the CLI because we could not find the associated sandbox account."
|
|
873
|
+
noParentAccount: "This sandbox can't be deleted from the CLI because you haven't given the CLI access to its parent account. To do this, run {{ authCommand }} and add the parent account."
|
|
869
874
|
objectNotFound: "Sandbox {{#bold}}{{ account }}{{/bold}} may have been deleted through the UI. The account has been removed from the config."
|
|
870
|
-
noParentPortalAvailable: "This sandbox can't be deleted from the CLI because you haven't given the CLI access to its parent account. To do this, run {{
|
|
871
|
-
invalidKey: "Your personal access key for account {{#bold}}{{ account }}{{/bold}} is inactive. To re-authenticate, please run {{
|
|
875
|
+
noParentPortalAvailable: "This sandbox can't be deleted from the CLI because you haven't given the CLI access to its parent account. To do this, run {{ command }}. You can also delete the sandbox from the HubSpot management tool: {{#bold}}{{ url }}{{/bold}}."
|
|
876
|
+
invalidKey: "Your personal access key for account {{#bold}}{{ account }}{{/bold}} is inactive. To re-authenticate, please run {{ authCommand }}."
|
|
872
877
|
options:
|
|
873
878
|
force:
|
|
874
879
|
describe: "Skips all confirmation prompts when deleting a sandbox account."
|
|
@@ -1136,6 +1141,11 @@ en:
|
|
|
1136
1141
|
checkIfParentAccountIsAuthed:
|
|
1137
1142
|
notAuthedError: "To develop this project locally, run {{ authCommand }} to authenticate the App Developer Account {{ accountId }} associated with {{ accountIdentifier }}."
|
|
1138
1143
|
projects:
|
|
1144
|
+
create:
|
|
1145
|
+
errors:
|
|
1146
|
+
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."
|
|
1147
|
+
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."
|
|
1148
|
+
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\", \"insertPath\"]."
|
|
1139
1149
|
validateProjectConfig:
|
|
1140
1150
|
configNotFound: "Unable to locate a project configuration file. Try running again from a project directory, or run {{ createCommand }} to create a new project."
|
|
1141
1151
|
configMissingFields: "The project configuruation file is missing required fields."
|
|
@@ -1259,13 +1269,6 @@ en:
|
|
|
1259
1269
|
describe: "Use environment variable config"
|
|
1260
1270
|
debug:
|
|
1261
1271
|
describe: "Set log level to debug"
|
|
1262
|
-
configMigrate:
|
|
1263
|
-
migrateConfigPrompt: "Migrate config?\n From deprecated config file: {{ deprecatedConfigPath }}\n To new global config file: {{ globalConfigPath }}\n (This action will delete the deprecated config file).\n"
|
|
1264
|
-
mergeConfigConflictPrompt: "Overwrite the conflicting property in the global config?\n {{ property }}: {{ values }} "
|
|
1265
|
-
mergeConfigsPrompt: "Two config files detected. Merge them?\n Deprecated config file: {{ deprecatedConfigPath }}\n Global config: {{ globalConfigPath }}\n (This action will delete the deprecated config file).\n"
|
|
1266
|
-
migrationSuccess: "The deprecated config file has been migrated to the new global config file at {{ globalConfigPath }}."
|
|
1267
|
-
mergeSuccess: "The deprecated config file has been merged with the global config file at {{ globalConfigPath }}."
|
|
1268
|
-
skippedExistingAccounts: "\nThe following accounts were not merged, because they already exist in the global config: {{ skippedAccountIds }}.\n"
|
|
1269
1272
|
prompts:
|
|
1270
1273
|
projectDevTargetAccountPrompt:
|
|
1271
1274
|
createNewSandboxOption: "<Test on a new development sandbox>"
|
|
@@ -1350,12 +1353,9 @@ en:
|
|
|
1350
1353
|
errors:
|
|
1351
1354
|
nameRequired: "A project name is required"
|
|
1352
1355
|
destRequired: "A project dest is required"
|
|
1353
|
-
invalidDest: "
|
|
1356
|
+
invalidDest: "There is an existing project at this destination. Please provide a new path for this project."
|
|
1354
1357
|
invalidCharacters: "The selected destination contains invalid characters. Please provide a new path and try again."
|
|
1355
|
-
invalidTemplate: "[--template] Could not find template {{ template }}. Please choose an available template
|
|
1356
|
-
noProjectsInConfig: "Please ensure that there is a config.json file that contains a \"projects\" field."
|
|
1357
|
-
missingConfigFileTemplateSource: "Please ensure that there is a config.json file in the repository used as the --template-source"
|
|
1358
|
-
missingPropertiesInConfig: "Please ensure that each of the projects in your config.json file contain the following properties: [\"name\", \"label\", \"path\", \"insertPath\"]."
|
|
1358
|
+
invalidTemplate: "[--template] Could not find template \"{{ template }}\". Please choose an available template:"
|
|
1359
1359
|
selectPublicAppPrompt:
|
|
1360
1360
|
selectAppIdMigrate: "[--appId] Choose an app under {{ accountName }} to migrate:"
|
|
1361
1361
|
selectAppIdClone: "[--appId] Choose an app under {{ accountName }} to clone:"
|
|
@@ -1373,11 +1373,11 @@ en:
|
|
|
1373
1373
|
projectNotFound: "Your project {{ projectName }} could not be found in {{ accountId }}. Please select a valid project:"
|
|
1374
1374
|
accountIdRequired: "An account ID is required to download a project."
|
|
1375
1375
|
projectAddPrompt:
|
|
1376
|
-
selectType: "[--type] Select
|
|
1376
|
+
selectType: "[--type] Select a component to add: "
|
|
1377
1377
|
enterName: "[--name] Give your component a name: "
|
|
1378
1378
|
errors:
|
|
1379
1379
|
nameRequired: "A component name is required"
|
|
1380
|
-
invalidType: "[--type] Could not find type {{ type }}. Please choose an available type
|
|
1380
|
+
invalidType: "[--type] Could not find type \"{{ type }}\". Please choose an available type:"
|
|
1381
1381
|
secretPrompt:
|
|
1382
1382
|
enterValue: "Enter a value for your secret: "
|
|
1383
1383
|
enterName: "Enter a name for your secret: "
|
|
@@ -1553,9 +1553,6 @@ en:
|
|
|
1553
1553
|
doctor:
|
|
1554
1554
|
runningDiagnostics: "Running diagnostics..."
|
|
1555
1555
|
diagnosticsComplete: "Diagnostics complete"
|
|
1556
|
-
defaultAccountOverrideFileChecks:
|
|
1557
|
-
overrideActive: "Default account override file active: {{ defaultAccountOverrideFile }}"
|
|
1558
|
-
overrideAccountId: "Active account ID: {{ overrideAccountId }}"
|
|
1559
1556
|
accountChecks:
|
|
1560
1557
|
active: "Default account active"
|
|
1561
1558
|
inactive: "Default account isn't active"
|
|
@@ -1604,8 +1601,6 @@ en:
|
|
|
1604
1601
|
defaultAccountSubHeader: "Default Account: {{accountDetails}}"
|
|
1605
1602
|
noConfigFile: "CLI configuration not found"
|
|
1606
1603
|
noConfigFileSecondary: "Run {{command}} and follow the prompts to create your CLI configuration file and connect it to your HubSpot account"
|
|
1607
|
-
defaultAccountOverrideFile:
|
|
1608
|
-
header: "Default account override file path:"
|
|
1609
1604
|
projectConfig:
|
|
1610
1605
|
header: "Project configuration"
|
|
1611
1606
|
projectDirSubHeader: "Project dir: {{#bold}}{{ projectDir }}{{/bold}}"
|
package/lib/LocalDevManager.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ type LocalDevManagerConstructorOptions = {
|
|
|
10
10
|
projectDir: string;
|
|
11
11
|
projectId: number;
|
|
12
12
|
debug?: boolean;
|
|
13
|
-
deployedBuild
|
|
13
|
+
deployedBuild?: Build;
|
|
14
14
|
isGithubLinked: boolean;
|
|
15
15
|
runnableComponents: Component[];
|
|
16
16
|
env: Environment;
|
|
@@ -22,7 +22,7 @@ declare class LocalDevManager {
|
|
|
22
22
|
projectDir: string;
|
|
23
23
|
projectId: number;
|
|
24
24
|
debug: boolean;
|
|
25
|
-
deployedBuild
|
|
25
|
+
deployedBuild?: Build;
|
|
26
26
|
isGithubLinked: boolean;
|
|
27
27
|
watcher: FSWatcher | null;
|
|
28
28
|
uploadWarnings: {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CLIAccount } from '@hubspot/local-dev-lib/types/Accounts';
|
|
2
|
+
import { ArgumentsCamelCase } from 'yargs';
|
|
3
|
+
import { MigrateAppOptions } from '../../types/Yargs';
|
|
4
|
+
export declare function migrateApp2025_2(derivedAccountId: number, options: ArgumentsCamelCase<MigrateAppOptions>): Promise<never>;
|
|
5
|
+
export declare function logInvalidAccountError(i18nKey: string): void;
|
|
6
|
+
export declare function migrateApp2023_2(derivedAccountId: number, options: ArgumentsCamelCase<MigrateAppOptions>, accountConfig: CLIAccount): Promise<void>;
|