@hubspot/cli 7.4.8 → 7.4.9-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/commands/account/createOverride.js +9 -0
- package/commands/account/remove.js +6 -1
- package/commands/account/removeOverride.js +9 -0
- package/commands/cms/convertFields.d.ts +7 -1
- package/commands/cms/convertFields.js +57 -41
- package/commands/cms/getReactModule.d.ts +7 -1
- package/commands/cms/getReactModule.js +52 -34
- package/commands/cms/lighthouseScore.d.ts +8 -1
- package/commands/cms/lighthouseScore.js +129 -100
- package/commands/cms.d.ts +3 -1
- package/commands/cms.js +24 -15
- package/commands/completion.d.ts +3 -1
- package/commands/completion.js +25 -12
- package/commands/create/api-sample.d.ts +3 -1
- package/commands/create/api-sample.js +34 -38
- package/commands/create/app.d.ts +3 -1
- package/commands/create/app.js +9 -7
- package/commands/create/function.d.ts +3 -1
- package/commands/create/function.js +11 -10
- package/commands/create/index.d.ts +5 -1
- package/commands/create/index.js +23 -11
- package/commands/create/module.d.ts +3 -1
- package/commands/create/module.js +14 -13
- package/commands/create/react-app.d.ts +3 -1
- package/commands/create/react-app.js +10 -7
- package/commands/create/template.d.ts +3 -1
- package/commands/create/template.js +14 -14
- package/commands/create/vue-app.d.ts +3 -1
- package/commands/create/vue-app.js +10 -7
- package/commands/create/webpack-serverless.d.ts +3 -1
- package/commands/create/webpack-serverless.js +10 -7
- package/commands/create/website-theme.d.ts +3 -1
- package/commands/create/website-theme.js +10 -9
- package/commands/create.d.ts +4 -24
- package/commands/create.js +55 -73
- package/commands/customObject/create.d.ts +4 -9
- package/commands/customObject/create.js +17 -10
- package/commands/customObject/schema/create.d.ts +4 -9
- package/commands/customObject/schema/create.js +18 -11
- package/commands/customObject/schema/delete.d.ts +4 -9
- package/commands/customObject/schema/delete.js +17 -10
- package/commands/customObject/schema/fetch-all.d.ts +4 -9
- package/commands/customObject/schema/fetch-all.js +17 -10
- package/commands/customObject/schema/fetch.d.ts +4 -9
- package/commands/customObject/schema/fetch.js +17 -10
- package/commands/customObject/schema/list.d.ts +4 -8
- package/commands/customObject/schema/list.js +17 -10
- package/commands/customObject/schema/update.d.ts +4 -9
- package/commands/customObject/schema/update.js +18 -11
- package/commands/customObject/schema.d.ts +3 -5
- package/commands/customObject/schema.js +27 -54
- package/commands/customObject.d.ts +3 -4
- package/commands/customObject.js +20 -45
- package/commands/feedback.d.ts +7 -1
- package/commands/feedback.js +36 -20
- package/commands/fetch.d.ts +12 -1
- package/commands/fetch.js +49 -33
- package/commands/function/deploy.d.ts +6 -1
- package/commands/function/deploy.js +70 -50
- package/commands/function/list.d.ts +6 -1
- package/commands/function/list.js +44 -32
- package/commands/function/server.d.ts +10 -1
- package/commands/function/server.js +49 -38
- package/commands/function.d.ts +5 -1
- package/commands/function.js +24 -10
- package/commands/hubdb/clear.d.ts +4 -9
- package/commands/hubdb/clear.js +17 -10
- package/commands/hubdb/create.d.ts +4 -9
- package/commands/hubdb/create.js +17 -10
- package/commands/hubdb/delete.d.ts +4 -9
- package/commands/hubdb/delete.js +17 -10
- package/commands/hubdb/fetch.d.ts +4 -9
- package/commands/hubdb/fetch.js +17 -10
- package/commands/hubdb.d.ts +3 -2
- package/commands/hubdb.js +23 -45
- package/commands/lint.d.ts +6 -4
- package/commands/lint.js +44 -43
- package/commands/logs.d.ts +10 -1
- package/commands/logs.js +53 -44
- package/commands/module/marketplace-validate.d.ts +6 -1
- package/commands/module/marketplace-validate.js +39 -27
- package/commands/module.d.ts +3 -1
- package/commands/module.js +22 -10
- package/commands/project/dev/unifiedFlow.js +28 -5
- package/commands/sandbox/create.d.ts +4 -9
- package/commands/sandbox/create.js +18 -11
- package/commands/sandbox/delete.d.ts +4 -9
- package/commands/sandbox/delete.js +18 -11
- package/commands/sandbox.d.ts +3 -4
- package/commands/sandbox.js +20 -43
- package/commands/secret/addSecret.d.ts +4 -9
- package/commands/secret/addSecret.js +17 -10
- package/commands/secret/deleteSecret.d.ts +4 -9
- package/commands/secret/deleteSecret.js +17 -10
- package/commands/secret/listSecret.d.ts +4 -9
- package/commands/secret/listSecret.js +17 -10
- package/commands/secret/updateSecret.d.ts +4 -9
- package/commands/secret/updateSecret.js +17 -10
- package/commands/secret.d.ts +3 -4
- package/commands/secret.js +25 -48
- package/commands/upload.d.ts +12 -1
- package/commands/upload.js +118 -97
- package/commands/watch.d.ts +14 -1
- package/commands/watch.js +76 -65
- package/lang/en.d.ts +565 -543
- package/lang/en.js +360 -338
- package/lang/en.lyaml +3 -0
- package/lib/constants.d.ts +5 -0
- package/lib/constants.js +6 -1
- package/lib/errorHandlers/suppressError.js +12 -19
- package/lib/filesystem.d.ts +1 -1
- package/lib/interpolation.d.ts +2 -3
- package/lib/lang.d.ts +2 -3
- package/lib/projects/buildAndDeploy.js +17 -2
- package/lib/projects/localDev/AppDevModeInterface.d.ts +25 -0
- package/lib/projects/localDev/AppDevModeInterface.js +117 -0
- package/lib/projects/localDev/DevServerManagerV2.d.ts +11 -22
- package/lib/projects/localDev/DevServerManagerV2.js +19 -15
- package/lib/projects/localDev/LocalDevLogger.d.ts +30 -0
- package/lib/projects/localDev/LocalDevLogger.js +158 -0
- package/lib/projects/localDev/LocalDevManager.js +2 -3
- package/lib/projects/localDev/LocalDevProcess.d.ts +41 -0
- package/lib/projects/localDev/LocalDevProcess.js +178 -0
- package/lib/projects/localDev/LocalDevWatcher.d.ts +10 -0
- package/lib/projects/localDev/LocalDevWatcher.js +55 -0
- package/lib/projects/localDev/LocalDevWebsocketServer.d.ts +15 -0
- package/lib/projects/localDev/LocalDevWebsocketServer.js +80 -0
- package/lib/prompts/createApiSamplePrompt.d.ts +2 -10
- package/lib/prompts/createTemplatePrompt.d.ts +22 -4
- package/lib/upload.d.ts +1 -1
- package/lib/yargsUtils.d.ts +4 -0
- package/lib/yargsUtils.js +6 -0
- package/package.json +5 -3
- package/types/Cms.d.ts +30 -0
- package/types/Cms.js +2 -0
- package/types/LocalDev.d.ts +22 -0
- package/types/LocalDev.js +2 -0
- package/types/Yargs.d.ts +5 -0
- package/lib/projects/localDev/LocalDevManagerV2.d.ts +0 -64
- package/lib/projects/localDev/LocalDevManagerV2.js +0 -345
package/lang/en.js
CHANGED
|
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.lib = exports.commands = void 0;
|
|
7
|
-
// @ts-nocheck
|
|
8
7
|
const chalk_1 = __importDefault(require("chalk"));
|
|
9
8
|
const ui_1 = require("../lib/ui");
|
|
10
9
|
const urls_1 = require("../lib/projects/urls");
|
|
10
|
+
const ui_2 = require("../lib/ui");
|
|
11
11
|
exports.commands = {
|
|
12
12
|
generalErrors: {
|
|
13
13
|
updateNotify: {
|
|
@@ -20,7 +20,7 @@ exports.commands = {
|
|
|
20
20
|
portalEnvVarDeprecated: 'The HUBSPOT_PORTAL_ID environment variable is deprecated. Please use HUBSPOT_ACCOUNT_ID instead.',
|
|
21
21
|
},
|
|
22
22
|
loadConfigMiddleware: {
|
|
23
|
-
configFileExists: configPath => `A configuration file already exists at ${configPath}. To specify a new configuration file, delete the existing one and try again.`,
|
|
23
|
+
configFileExists: (configPath) => `A configuration file already exists at ${configPath}. To specify a new configuration file, delete the existing one and try again.`,
|
|
24
24
|
},
|
|
25
25
|
},
|
|
26
26
|
completion: {
|
|
@@ -34,9 +34,9 @@ exports.commands = {
|
|
|
34
34
|
subcommands: {
|
|
35
35
|
list: {
|
|
36
36
|
accounts: `${chalk_1.default.bold('Accounts')}:`,
|
|
37
|
-
defaultAccount: account => `${chalk_1.default.bold('Default account')}: ${account}`,
|
|
37
|
+
defaultAccount: (account) => `${chalk_1.default.bold('Default account')}: ${account}`,
|
|
38
38
|
describe: 'List names of accounts defined in config.',
|
|
39
|
-
configPath: configPath => `${chalk_1.default.bold('Config path')}: ${configPath}`,
|
|
39
|
+
configPath: (configPath) => `${chalk_1.default.bold('Config path')}: ${configPath}`,
|
|
40
40
|
labels: {
|
|
41
41
|
accountId: 'Account ID',
|
|
42
42
|
authType: 'Auth Type',
|
|
@@ -74,7 +74,7 @@ exports.commands = {
|
|
|
74
74
|
},
|
|
75
75
|
promptMessage: 'Select an account to use as the default',
|
|
76
76
|
success: {
|
|
77
|
-
defaultAccountUpdated: accountName => `Default account updated to "${accountName}"`,
|
|
77
|
+
defaultAccountUpdated: (accountName) => `Default account updated to "${accountName}"`,
|
|
78
78
|
},
|
|
79
79
|
},
|
|
80
80
|
remove: {
|
|
@@ -99,11 +99,11 @@ exports.commands = {
|
|
|
99
99
|
},
|
|
100
100
|
promptMessage: 'Select an account to remove',
|
|
101
101
|
success: {
|
|
102
|
-
accountRemoved: accountName => `Account "${accountName}" removed from the config`,
|
|
102
|
+
accountRemoved: (accountName) => `Account "${accountName}" removed from the config`,
|
|
103
103
|
},
|
|
104
104
|
},
|
|
105
105
|
info: {
|
|
106
|
-
accountId: accountId => `${chalk_1.default.bold('Account ID')}: ${accountId}`,
|
|
106
|
+
accountId: (accountId) => `${chalk_1.default.bold('Account ID')}: ${accountId}`,
|
|
107
107
|
describe: 'Print information about the default account, or about the account specified with the "account" option.',
|
|
108
108
|
errors: {
|
|
109
109
|
notUsingPersonalAccessKey: 'This command currently only supports fetching scopes for the personal access key auth type.',
|
|
@@ -113,7 +113,7 @@ exports.commands = {
|
|
|
113
113
|
idBased: 'Print information for the account with accountId equal to "1234567"',
|
|
114
114
|
nameBased: 'Print information for the account in the config with name equal to "MyAccount"',
|
|
115
115
|
},
|
|
116
|
-
name: name => `${chalk_1.default.bold('Account name')}: ${name}`,
|
|
116
|
+
name: (name) => `${chalk_1.default.bold('Account name')}: ${name}`,
|
|
117
117
|
scopeGroups: `${chalk_1.default.bold('Scopes available')}:`,
|
|
118
118
|
},
|
|
119
119
|
clean: {
|
|
@@ -124,18 +124,18 @@ exports.commands = {
|
|
|
124
124
|
},
|
|
125
125
|
inactiveAccountsFound: {
|
|
126
126
|
one: '1 inactive account found:',
|
|
127
|
-
other: count => `${count} inactive accounts found:`,
|
|
127
|
+
other: (count) => `${count} inactive accounts found:`,
|
|
128
128
|
},
|
|
129
129
|
confirm: {
|
|
130
130
|
one: 'Remove 1 inactive account from the CLI config?',
|
|
131
|
-
other: count => `Remove ${count} inactive accounts from the CLI config?`,
|
|
131
|
+
other: (count) => `Remove ${count} inactive accounts from the CLI config?`,
|
|
132
132
|
},
|
|
133
|
-
removeSuccess: accountName => `Removed ${accountName} from the CLI config.`,
|
|
133
|
+
removeSuccess: (accountName) => `Removed ${accountName} from the CLI config.`,
|
|
134
134
|
},
|
|
135
135
|
},
|
|
136
136
|
},
|
|
137
137
|
auth: {
|
|
138
|
-
describe: configName => `Configure authentication for your HubSpot account. This will update the ${configName} file that stores your account information.`,
|
|
138
|
+
describe: (configName) => `Configure authentication for your HubSpot account. This will update the ${configName} file that stores your account information.`,
|
|
139
139
|
errors: {
|
|
140
140
|
noConfigFileFound: 'No config file was found. To create a new config file, use the "hs init" command.',
|
|
141
141
|
unsupportedAuthType: (type, supportedProtocols) => `Unsupported auth type: ${type}. The only supported authentication protocols are ${supportedProtocols}.`,
|
|
@@ -143,7 +143,7 @@ exports.commands = {
|
|
|
143
143
|
options: {
|
|
144
144
|
authType: {
|
|
145
145
|
describe: 'Authentication mechanism',
|
|
146
|
-
defaultDescription: authMethod => `"${authMethod}": An access token tied to a specific user account. This is the recommended way of authenticating with local development tools.`,
|
|
146
|
+
defaultDescription: (authMethod) => `"${authMethod}": An access token tied to a specific user account. This is the recommended way of authenticating with local development tools.`,
|
|
147
147
|
},
|
|
148
148
|
account: {
|
|
149
149
|
describe: 'HubSpot account to authenticate',
|
|
@@ -166,13 +166,13 @@ exports.commands = {
|
|
|
166
166
|
defaultMode: {
|
|
167
167
|
describe: 'Set the default CMS publish mode',
|
|
168
168
|
promptMessage: 'Select CMS publish mode to be used as the default',
|
|
169
|
-
error: validModes => `The provided CMS publish mode is invalid. Valid values are ${validModes}.`,
|
|
170
|
-
success: mode => `Default mode updated to: ${mode}`,
|
|
169
|
+
error: (validModes) => `The provided CMS publish mode is invalid. Valid values are ${validModes}.`,
|
|
170
|
+
success: (mode) => `Default mode updated to: ${mode}`,
|
|
171
171
|
},
|
|
172
172
|
allowUsageTracking: {
|
|
173
173
|
describe: 'Enable or disable usage tracking',
|
|
174
174
|
promptMessage: 'Choose to enable or disable usage tracking',
|
|
175
|
-
success: isEnabled => `Allow usage tracking set to: "${isEnabled}"`,
|
|
175
|
+
success: (isEnabled) => `Allow usage tracking set to: "${isEnabled}"`,
|
|
176
176
|
labels: {
|
|
177
177
|
enabled: 'Enabled',
|
|
178
178
|
disabled: 'Disabled',
|
|
@@ -181,7 +181,7 @@ exports.commands = {
|
|
|
181
181
|
httpTimeout: {
|
|
182
182
|
describe: 'Set the http timeout duration',
|
|
183
183
|
promptMessage: 'Enter http timeout duration',
|
|
184
|
-
success: timeout => `The http timeout has been set to: ${timeout}`,
|
|
184
|
+
success: (timeout) => `The http timeout has been set to: ${timeout}`,
|
|
185
185
|
},
|
|
186
186
|
},
|
|
187
187
|
},
|
|
@@ -198,8 +198,8 @@ exports.commands = {
|
|
|
198
198
|
info: {
|
|
199
199
|
promptMessage: 'Select a theme to score',
|
|
200
200
|
fetchingThemes: 'Fetching available themes',
|
|
201
|
-
generatingScore: theme => `Generating Google Lighthouse score for ${theme}`,
|
|
202
|
-
targetDeviceNote: target => `Scores are being shown for ${target} only.`,
|
|
201
|
+
generatingScore: (theme) => `Generating Google Lighthouse score for ${theme}`,
|
|
202
|
+
targetDeviceNote: (target) => `Scores are being shown for ${target} only.`,
|
|
203
203
|
verboseOptionNote: 'Theme scores are averages of all theme templates. Use the [--verbose] option to include individual template scores.',
|
|
204
204
|
pageTemplateScoreTitle: 'Page template scores',
|
|
205
205
|
lighthouseLinksTitle: 'Lighthouse links',
|
|
@@ -208,7 +208,7 @@ exports.commands = {
|
|
|
208
208
|
errors: {
|
|
209
209
|
targetOptionRequired: '[--target] is required for detailed view',
|
|
210
210
|
invalidTargetOption: '[--target] can only be used for detailed view',
|
|
211
|
-
themeNotFound: theme => `Theme "${theme}" not found. Please rerun using a valid theme path.`,
|
|
211
|
+
themeNotFound: (theme) => `Theme "${theme}" not found. Please rerun using a valid theme path.`,
|
|
212
212
|
failedToFetchThemes: 'Failed to fetch available themes. Try running again with the [--theme] option',
|
|
213
213
|
failedToGetLighthouseScore: 'Failed to generate a Google Lighthouse score',
|
|
214
214
|
},
|
|
@@ -239,18 +239,18 @@ exports.commands = {
|
|
|
239
239
|
moduleDownloaded: (moduleName, path) => `"${moduleName}" successfully downloaded to "${path}"`,
|
|
240
240
|
},
|
|
241
241
|
errors: {
|
|
242
|
-
pathExists: path => `Folder already exists at "${path}"`,
|
|
242
|
+
pathExists: (path) => `Folder already exists at "${path}"`,
|
|
243
243
|
invalidName: 'Module not found with that name, please check the spelling of the module you are trying to download.',
|
|
244
244
|
},
|
|
245
245
|
},
|
|
246
246
|
},
|
|
247
247
|
},
|
|
248
248
|
create: {
|
|
249
|
-
describe: supportedAssetTypes => `Create HubSpot sample apps and CMS assets. Supported assets are ${supportedAssetTypes}.`,
|
|
249
|
+
describe: (supportedAssetTypes) => `Create HubSpot sample apps and CMS assets. Supported assets are ${supportedAssetTypes}.`,
|
|
250
250
|
errors: {
|
|
251
|
-
deprecatedAssetType: (assetType, newCommand, type) => `The CLI command for asset type ${assetType} has been deprecated in an effort to make it easier to know what asset types can be created. Run the
|
|
251
|
+
deprecatedAssetType: (assetType, newCommand, type) => `The CLI command for asset type ${assetType} has been deprecated in an effort to make it easier to know what asset types can be created. Run the ${(0, ui_1.uiCommandReference)(newCommand)}" command instead. Then when prompted select "${type}".`,
|
|
252
252
|
unsupportedAssetType: (assetType, supportedAssetTypes) => `The asset type ${assetType} is not supported. Supported asset types are ${supportedAssetTypes}.`,
|
|
253
|
-
unusablePath: path => `The "${path}" is not a usable path to a directory.`,
|
|
253
|
+
unusablePath: (path) => `The "${path}" is not a usable path to a directory.`,
|
|
254
254
|
},
|
|
255
255
|
positionals: {
|
|
256
256
|
dest: {
|
|
@@ -265,7 +265,7 @@ exports.commands = {
|
|
|
265
265
|
},
|
|
266
266
|
subcommands: {
|
|
267
267
|
apiSample: {
|
|
268
|
-
folderOverwritePrompt: folderName => `The folder with name "${folderName}" already exists. Overwrite?`,
|
|
268
|
+
folderOverwritePrompt: (folderName) => `The folder with name "${folderName}" already exists. Overwrite?`,
|
|
269
269
|
errors: {
|
|
270
270
|
nameRequired: 'The "name" argument is required when creating an API Sample.',
|
|
271
271
|
noSamples: 'Currently there are no samples available. Please try again later.',
|
|
@@ -274,7 +274,7 @@ exports.commands = {
|
|
|
274
274
|
sampleChosen: (sampleType, sampleLanguage) => `You've chosen ${sampleType} sample written on ${sampleLanguage} language`,
|
|
275
275
|
},
|
|
276
276
|
success: {
|
|
277
|
-
sampleCreated: filePath => `Please follow ${filePath}/README.md to find out how to run the sample`,
|
|
277
|
+
sampleCreated: (filePath) => `Please follow ${filePath}/README.md to find out how to run the sample`,
|
|
278
278
|
},
|
|
279
279
|
},
|
|
280
280
|
module: {
|
|
@@ -298,7 +298,7 @@ exports.commands = {
|
|
|
298
298
|
describe: 'Create custom object instances.',
|
|
299
299
|
errors: {
|
|
300
300
|
invalidObjectDefinition: 'The object definition is invalid. Please check the schema and try again.',
|
|
301
|
-
creationFailed: definition => `Object creation from ${definition} failed`,
|
|
301
|
+
creationFailed: (definition) => `Object creation from ${definition} failed`,
|
|
302
302
|
},
|
|
303
303
|
options: {
|
|
304
304
|
path: {
|
|
@@ -323,7 +323,7 @@ exports.commands = {
|
|
|
323
323
|
describe: 'Create a custom object schema.',
|
|
324
324
|
errors: {
|
|
325
325
|
invalidSchema: 'The schema definition is invalid. Please check the schema and try again.',
|
|
326
|
-
creationFailed: definition => `Schema creation from ${definition} failed`,
|
|
326
|
+
creationFailed: (definition) => `Schema creation from ${definition} failed`,
|
|
327
327
|
},
|
|
328
328
|
options: {
|
|
329
329
|
definition: {
|
|
@@ -331,14 +331,14 @@ exports.commands = {
|
|
|
331
331
|
},
|
|
332
332
|
},
|
|
333
333
|
success: {
|
|
334
|
-
schemaCreated: accountId => `Your schema has been created in account "${accountId}"`,
|
|
335
|
-
schemaViewable: url => `Schema can be viewed at ${url}`,
|
|
334
|
+
schemaCreated: (accountId) => `Your schema has been created in account "${accountId}"`,
|
|
335
|
+
schemaViewable: (url) => `Schema can be viewed at ${url}`,
|
|
336
336
|
},
|
|
337
337
|
},
|
|
338
338
|
delete: {
|
|
339
339
|
describe: 'Delete a custom object schema.',
|
|
340
340
|
errors: {
|
|
341
|
-
delete: name => `Unable to delete ${name}`,
|
|
341
|
+
delete: (name) => `Unable to delete ${name}`,
|
|
342
342
|
},
|
|
343
343
|
examples: {
|
|
344
344
|
default: 'Delete "schemaName" schema',
|
|
@@ -354,10 +354,10 @@ exports.commands = {
|
|
|
354
354
|
},
|
|
355
355
|
},
|
|
356
356
|
success: {
|
|
357
|
-
delete: name => `Successfully initiated deletion of ${name}`,
|
|
357
|
+
delete: (name) => `Successfully initiated deletion of ${name}`,
|
|
358
358
|
},
|
|
359
|
-
confirmDelete: name => `Are you sure you want to delete the schema "${name}"?`,
|
|
360
|
-
deleteCancelled: name => `Deletion of schema "${name}" cancelled.`,
|
|
359
|
+
confirmDelete: (name) => `Are you sure you want to delete the schema "${name}"?`,
|
|
360
|
+
deleteCancelled: (name) => `Deletion of schema "${name}" cancelled.`,
|
|
361
361
|
selectSchema: 'Which schema would you like to delete?',
|
|
362
362
|
},
|
|
363
363
|
fetchAll: {
|
|
@@ -375,14 +375,14 @@ exports.commands = {
|
|
|
375
375
|
},
|
|
376
376
|
},
|
|
377
377
|
success: {
|
|
378
|
-
fetch: path => `Saved schemas to ${path}`,
|
|
378
|
+
fetch: (path) => `Saved schemas to ${path}`,
|
|
379
379
|
},
|
|
380
380
|
inputDest: 'Where would you like to save the schemas?',
|
|
381
381
|
},
|
|
382
382
|
fetch: {
|
|
383
383
|
describe: 'Fetch a custom object schema.',
|
|
384
384
|
errors: {
|
|
385
|
-
fetch: name => `Unable to fetch ${name}`,
|
|
385
|
+
fetch: (name) => `Unable to fetch ${name}`,
|
|
386
386
|
},
|
|
387
387
|
examples: {
|
|
388
388
|
default: 'Fetch "schemaId" schema and put it in the current working directory',
|
|
@@ -400,7 +400,7 @@ exports.commands = {
|
|
|
400
400
|
inputDest: 'What would you like to name the destination file?',
|
|
401
401
|
success: {
|
|
402
402
|
save: (name, path) => `The schema "${name}" has been saved to "${path}"`,
|
|
403
|
-
savedToPath: path => `Saved schema to ${path}`,
|
|
403
|
+
savedToPath: (path) => `Saved schema to ${path}`,
|
|
404
404
|
},
|
|
405
405
|
},
|
|
406
406
|
list: {
|
|
@@ -413,7 +413,7 @@ exports.commands = {
|
|
|
413
413
|
describe: 'Update an existing custom object schema.',
|
|
414
414
|
errors: {
|
|
415
415
|
invalidSchema: 'The schema definition is invalid. Please check the schema and try again.',
|
|
416
|
-
update: definition => `Schema update from ${definition} failed`,
|
|
416
|
+
update: (definition) => `Schema update from ${definition} failed`,
|
|
417
417
|
},
|
|
418
418
|
options: {
|
|
419
419
|
path: {
|
|
@@ -426,8 +426,8 @@ exports.commands = {
|
|
|
426
426
|
},
|
|
427
427
|
},
|
|
428
428
|
success: {
|
|
429
|
-
update: accountId => `Your schema has been updated in account "${accountId}"`,
|
|
430
|
-
viewAtUrl: url => `Schema can be viewed at ${url}`,
|
|
429
|
+
update: (accountId) => `Your schema has been updated in account "${accountId}"`,
|
|
430
|
+
viewAtUrl: (url) => `Schema can be viewed at ${url}`,
|
|
431
431
|
},
|
|
432
432
|
selectSchema: 'Which schema would you like to update?',
|
|
433
433
|
},
|
|
@@ -444,7 +444,7 @@ exports.commands = {
|
|
|
444
444
|
generatingDiagnosis: 'Error generating diagnosis',
|
|
445
445
|
unableToWriteOutputFile: (file, errorMessage) => `Unable to write output to ${chalk_1.default.bold(file)}, ${errorMessage}`,
|
|
446
446
|
},
|
|
447
|
-
outputWritten: filename => `Output written to ${chalk_1.default.bold(filename)}`,
|
|
447
|
+
outputWritten: (filename) => `Output written to ${chalk_1.default.bold(filename)}`,
|
|
448
448
|
},
|
|
449
449
|
fetch: {
|
|
450
450
|
describe: 'Fetch a file, directory or module from HubSpot and write to a path on your computer.',
|
|
@@ -494,8 +494,8 @@ exports.commands = {
|
|
|
494
494
|
describe: 'Upload a folder or file to the File Manager.',
|
|
495
495
|
errors: {
|
|
496
496
|
destinationRequired: 'A destination path needs to be passed',
|
|
497
|
-
fileIgnored: path => `The file "${path}" is being ignored via an .hsignore rule`,
|
|
498
|
-
invalidPath: path => `The path "${path}" is not a path to a file or folder`,
|
|
497
|
+
fileIgnored: (path) => `The file "${path}" is being ignored via an .hsignore rule`,
|
|
498
|
+
invalidPath: (path) => `The path "${path}" is not a path to a file or folder`,
|
|
499
499
|
upload: (src, dest) => `Uploading file "${src}" to "${dest}" failed`,
|
|
500
500
|
uploadingFailed: 'Uploading failed',
|
|
501
501
|
},
|
|
@@ -512,7 +512,7 @@ exports.commands = {
|
|
|
512
512
|
},
|
|
513
513
|
success: {
|
|
514
514
|
upload: (src, dest, accountId) => `Uploaded file from "${src}" to "${dest}" in the File Manager of account ${accountId}`,
|
|
515
|
-
uploadComplete: dest => `Uploading files to "${dest}" in the File Manager is complete`,
|
|
515
|
+
uploadComplete: (dest) => `Uploading files to "${dest}" in the File Manager is complete`,
|
|
516
516
|
},
|
|
517
517
|
},
|
|
518
518
|
},
|
|
@@ -522,12 +522,12 @@ exports.commands = {
|
|
|
522
522
|
subcommands: {
|
|
523
523
|
deploy: {
|
|
524
524
|
debug: {
|
|
525
|
-
startingBuildAndDeploy: functionPath => `Starting build and deploy for .functions folder with path: ${functionPath}`,
|
|
525
|
+
startingBuildAndDeploy: (functionPath) => `Starting build and deploy for .functions folder with path: ${functionPath}`,
|
|
526
526
|
},
|
|
527
527
|
errors: {
|
|
528
|
-
buildError: details => `Build error: ${details}`,
|
|
529
|
-
noPackageJson: functionPath => `Unable to find package.json for function ${functionPath}.`,
|
|
530
|
-
notFunctionsFolder: functionPath => `Specified path ${functionPath} is not a .functions folder.`,
|
|
528
|
+
buildError: (details) => `Build error: ${details}`,
|
|
529
|
+
noPackageJson: (functionPath) => `Unable to find package.json for function ${functionPath}.`,
|
|
530
|
+
notFunctionsFolder: (functionPath) => `Specified path ${functionPath} is not a .functions folder.`,
|
|
531
531
|
},
|
|
532
532
|
examples: {
|
|
533
533
|
default: 'Build and deploy a new bundle for all functions within the myFunctionFolder.functions folder',
|
|
@@ -559,7 +559,7 @@ exports.commands = {
|
|
|
559
559
|
},
|
|
560
560
|
server: {
|
|
561
561
|
debug: {
|
|
562
|
-
startingServer: functionPath => `Starting local test server for .functions folder with path: ${functionPath}`,
|
|
562
|
+
startingServer: (functionPath) => `Starting local test server for .functions folder with path: ${functionPath}`,
|
|
563
563
|
},
|
|
564
564
|
examples: {
|
|
565
565
|
default: 'Run a local function test server.',
|
|
@@ -594,7 +594,7 @@ exports.commands = {
|
|
|
594
594
|
logs: {
|
|
595
595
|
removedRows: (deletedRowCount, tableId) => `Removed ${deletedRowCount} rows from HubDB table ${tableId}`,
|
|
596
596
|
rowCount: (tableId, rowCount) => `HubDB table ${tableId} now contains ${rowCount} rows`,
|
|
597
|
-
tableEmpty: tableId => `HubDB table ${tableId} is already empty`,
|
|
597
|
+
tableEmpty: (tableId) => `HubDB table ${tableId} is already empty`,
|
|
598
598
|
},
|
|
599
599
|
positionals: {
|
|
600
600
|
tableId: {
|
|
@@ -606,7 +606,7 @@ exports.commands = {
|
|
|
606
606
|
describe: 'Create a HubDB table.',
|
|
607
607
|
enterPath: '[--path] Enter the local path to the file used for import:',
|
|
608
608
|
errors: {
|
|
609
|
-
create: filePath => `Creating the table at "${filePath}" failed`,
|
|
609
|
+
create: (filePath) => `Creating the table at "${filePath}" failed`,
|
|
610
610
|
pathRequired: 'A path to a local file with a HubDB schema is required to create a HubDB table',
|
|
611
611
|
invalidCharacters: 'The selected file path contains invalid characters. Please provide a new path and try again.',
|
|
612
612
|
},
|
|
@@ -621,9 +621,9 @@ exports.commands = {
|
|
|
621
621
|
},
|
|
622
622
|
delete: {
|
|
623
623
|
describe: 'Delete a HubDB table.',
|
|
624
|
-
shouldDeleteTable: tableId => `Proceed with deleting HubDB table ${tableId}?`,
|
|
624
|
+
shouldDeleteTable: (tableId) => `Proceed with deleting HubDB table ${tableId}?`,
|
|
625
625
|
errors: {
|
|
626
|
-
delete: tableId => `Deleting the table ${tableId} failed`,
|
|
626
|
+
delete: (tableId) => `Deleting the table ${tableId} failed`,
|
|
627
627
|
},
|
|
628
628
|
positionals: {
|
|
629
629
|
tableId: {
|
|
@@ -656,11 +656,11 @@ exports.commands = {
|
|
|
656
656
|
},
|
|
657
657
|
},
|
|
658
658
|
init: {
|
|
659
|
-
describe: configName => `Configure authentication for your HubSpot account. This will create a ${configName} file to store your account information.`,
|
|
659
|
+
describe: (configName) => `Configure authentication for your HubSpot account. This will create a ${configName} file to store your account information.`,
|
|
660
660
|
options: {
|
|
661
661
|
authType: {
|
|
662
662
|
describe: 'Authentication mechanism',
|
|
663
|
-
defaultDescription: authMethod => `"${authMethod}": An access token tied to a specific user account. This is the recommended way of authenticating with local development tools.`,
|
|
663
|
+
defaultDescription: (authMethod) => `"${authMethod}": An access token tied to a specific user account. This is the recommended way of authenticating with local development tools.`,
|
|
664
664
|
},
|
|
665
665
|
account: {
|
|
666
666
|
describe: 'HubSpot account to authenticate',
|
|
@@ -670,20 +670,20 @@ exports.commands = {
|
|
|
670
670
|
},
|
|
671
671
|
},
|
|
672
672
|
success: {
|
|
673
|
-
configFileCreated: configPath => `Created config file "${configPath}"`,
|
|
673
|
+
configFileCreated: (configPath) => `Created config file "${configPath}"`,
|
|
674
674
|
configFileUpdated: (account, authType) => `Connected account "${account}" using "${authType}" and set it as the default account`,
|
|
675
675
|
},
|
|
676
676
|
logs: {
|
|
677
677
|
updateConfig: 'To update an existing config file, use the "hs auth" command.',
|
|
678
678
|
},
|
|
679
679
|
errors: {
|
|
680
|
-
configFileExists: configPath => `The config file ${configPath} already exists.`,
|
|
681
|
-
bothConfigFilesNotAllowed: path => `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.`,
|
|
680
|
+
configFileExists: (configPath) => `The config file ${configPath} already exists.`,
|
|
681
|
+
bothConfigFilesNotAllowed: (path) => `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.`,
|
|
682
682
|
},
|
|
683
683
|
},
|
|
684
684
|
lint: {
|
|
685
|
-
issuesFound: count => `${count} issues found.`,
|
|
686
|
-
groupName: path => `Linting ${path}`,
|
|
685
|
+
issuesFound: (count) => `${count} issues found.`,
|
|
686
|
+
groupName: (path) => `Linting ${path}`,
|
|
687
687
|
positionals: {
|
|
688
688
|
path: {
|
|
689
689
|
describe: 'Local folder to lint',
|
|
@@ -692,8 +692,8 @@ exports.commands = {
|
|
|
692
692
|
},
|
|
693
693
|
list: {
|
|
694
694
|
describe: 'List remote contents of a directory.',
|
|
695
|
-
gettingPathContents: path => `Getting contents of ${path}.`,
|
|
696
|
-
noFilesFoundAtPath: path => `No files found in ${path}.`,
|
|
695
|
+
gettingPathContents: (path) => `Getting contents of ${path}.`,
|
|
696
|
+
noFilesFoundAtPath: (path) => `No files found in ${path}.`,
|
|
697
697
|
positionals: {
|
|
698
698
|
path: {
|
|
699
699
|
describe: 'Remote directory to list contents',
|
|
@@ -766,9 +766,9 @@ exports.commands = {
|
|
|
766
766
|
errors: {
|
|
767
767
|
noProjectConfig: 'No project detected. Please run this command again from a project directory.',
|
|
768
768
|
noAccount: (accountId, authCommand) => `An error occurred while reading account ${accountId} from your config. Run ${chalk_1.default.bold(authCommand)} to re-auth this account.`,
|
|
769
|
-
noAccountsInConfig: authCommand => `No accounts found in your config. Run ${chalk_1.default.bold(authCommand)} to configure a HubSpot account with the CLI.`,
|
|
769
|
+
noAccountsInConfig: (authCommand) => `No accounts found in your config. Run ${chalk_1.default.bold(authCommand)} to configure a HubSpot account with the CLI.`,
|
|
770
770
|
invalidProjectComponents: 'Projects cannot contain both private and public apps. Move your apps to separate projects before attempting local development.',
|
|
771
|
-
noRunnableComponents: command => `No supported components were found in this project. Run ${chalk_1.default.bold(command)} to see a list of available components and add one to your project.`,
|
|
771
|
+
noRunnableComponents: (command) => `No supported components were found in this project. Run ${chalk_1.default.bold(command)} to see a list of available components and add one to your project.`,
|
|
772
772
|
},
|
|
773
773
|
examples: {
|
|
774
774
|
default: 'Start local dev for the current project',
|
|
@@ -780,7 +780,7 @@ exports.commands = {
|
|
|
780
780
|
failedToDownloadProject: 'Failed to download project. Please try again later.',
|
|
781
781
|
invalidTemplateSource: 'Invalid template source provided. Use the format <Owner>/<Repo> and try again.',
|
|
782
782
|
failedToFetchProjectList: 'Failed to fetch the list of available project templates. Please try again later.',
|
|
783
|
-
cannotNestProjects: projectDir => `A project already exists at ${projectDir}. Projects cannot be nested within other projects. Please choose a different destination and try again.`,
|
|
783
|
+
cannotNestProjects: (projectDir) => `A project already exists at ${projectDir}. Projects cannot be nested within other projects. Please choose a different destination and try again.`,
|
|
784
784
|
},
|
|
785
785
|
logs: {
|
|
786
786
|
success: (projectName, projectDest) => `Project ${chalk_1.default.bold(projectName)} was successfully created in ${projectDest}`,
|
|
@@ -848,7 +848,7 @@ exports.commands = {
|
|
|
848
848
|
preamble: (platformVersion) => `This command will migrate an existing project to platformVersion ${platformVersion}. It will walk you through the fields required to complete the migration and download the new project source code into the project source directory. It will also copy all of your existing files to a new directory (archive) in case you need access to your old files later.`,
|
|
849
849
|
describe: 'Migrate an existing project to the new version of the projects framework.',
|
|
850
850
|
errors: {
|
|
851
|
-
noProjectConfig: command => `No project detected. Please run this command again from a project directory. If you are trying to migrate an app, run ${command}`,
|
|
851
|
+
noProjectConfig: (command) => `No project detected. Please run this command again from a project directory. If you are trying to migrate an app, run ${command}`,
|
|
852
852
|
},
|
|
853
853
|
examples: {
|
|
854
854
|
default: 'Migrate an existing project to the new version of the projects framework.',
|
|
@@ -870,13 +870,13 @@ exports.commands = {
|
|
|
870
870
|
cloneStatus: {
|
|
871
871
|
inProgress: () => `Cloning app configuration to ${chalk_1.default.bold('public-app.json')} component definition ...`,
|
|
872
872
|
done: 'Cloning app configuration to public-app.json component definition ... DONE',
|
|
873
|
-
success: dest => `Your cloned project was created in ${dest}`,
|
|
873
|
+
success: (dest) => `Your cloned project was created in ${dest}`,
|
|
874
874
|
failure: 'Cloning app configuration to public-app.json component definition ... FAILED',
|
|
875
875
|
},
|
|
876
876
|
errors: {
|
|
877
877
|
invalidAccountTypeTitle: () => `${chalk_1.default.bold('Developer account not targeted')}`,
|
|
878
878
|
invalidAccountTypeDescription: (useCommand, authCommand) => `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.`,
|
|
879
|
-
couldNotWriteConfigPath: configPath => `Failed to write project config at ${configPath}`,
|
|
879
|
+
couldNotWriteConfigPath: (configPath) => `Failed to write project config at ${configPath}`,
|
|
880
880
|
},
|
|
881
881
|
},
|
|
882
882
|
add: {
|
|
@@ -889,8 +889,8 @@ exports.commands = {
|
|
|
889
889
|
describe: "The path to the component type's location within the hubspot-project-components Github repo: https://github.com/HubSpot/hubspot-project-components",
|
|
890
890
|
},
|
|
891
891
|
},
|
|
892
|
-
creatingComponent: projectName => `Adding a new component to ${chalk_1.default.bold(projectName)}`,
|
|
893
|
-
success: componentName => `${componentName} was successfully added to your project.`,
|
|
892
|
+
creatingComponent: (projectName) => `Adding a new component to ${chalk_1.default.bold(projectName)}`,
|
|
893
|
+
success: (componentName) => `${componentName} was successfully added to your project.`,
|
|
894
894
|
error: {
|
|
895
895
|
failedToDownloadComponent: 'Failed to download project component. Please try again later.',
|
|
896
896
|
locationInProject: 'This command must be run from within a project directory.',
|
|
@@ -906,10 +906,10 @@ exports.commands = {
|
|
|
906
906
|
describe: 'Deploy a project build.',
|
|
907
907
|
deployBuildIdPrompt: '[--build] Deploy which build?',
|
|
908
908
|
debug: {
|
|
909
|
-
deploying: path => `Deploying project at path: ${path}`,
|
|
909
|
+
deploying: (path) => `Deploying project at path: ${path}`,
|
|
910
910
|
},
|
|
911
911
|
errors: {
|
|
912
|
-
deploy: details => `Deploy error: ${details}`,
|
|
912
|
+
deploy: (details) => `Deploy error: ${details}`,
|
|
913
913
|
noBuilds: 'Deploy error: no builds for this project were found.',
|
|
914
914
|
noBuildId: 'You must specify a build to deploy',
|
|
915
915
|
projectNotFound: (projectName, accountIdentifier, command) => `The project ${chalk_1.default.bold(projectName)} does not exist in account ${accountIdentifier}. Run ${command} to upload your project files to HubSpot.`,
|
|
@@ -938,7 +938,7 @@ exports.commands = {
|
|
|
938
938
|
showingRecentBuilds: (count, projectName, viewAllBuildsLink) => `Showing the most ${count} recent builds for ${projectName}. ${viewAllBuildsLink}.`,
|
|
939
939
|
errors: {
|
|
940
940
|
noBuilds: 'No builds for this project were found.',
|
|
941
|
-
projectNotFound: projectName => `Project ${projectName} not found.`,
|
|
941
|
+
projectNotFound: (projectName) => `Project ${projectName} not found.`,
|
|
942
942
|
},
|
|
943
943
|
options: {
|
|
944
944
|
project: {
|
|
@@ -959,15 +959,15 @@ exports.commands = {
|
|
|
959
959
|
failedToFetchProjectDetails: 'There was an error fetching project details',
|
|
960
960
|
noFunctionsLinkText: 'Visit developer docs',
|
|
961
961
|
noFunctionsInProject: `There aren't any functions in this project\n\t- Run ${(0, ui_1.uiCommandReference)('hs project logs --help')} to learn more about logs\n\t- ${(0, ui_1.uiLink)('Visit developer docs', 'https://developers.hubspot.com/docs/platform/serverless-functions')} to learn more about serverless functions`,
|
|
962
|
-
noFunctionWithName: name => `No function with name "${name}"`,
|
|
963
|
-
functionNotDeployed: name => `The function with name "${name}" is not deployed`,
|
|
962
|
+
noFunctionWithName: (name) => `No function with name "${name}"`,
|
|
963
|
+
functionNotDeployed: (name) => `The function with name "${name}" is not deployed`,
|
|
964
964
|
projectLogsManagerNotInitialized: 'Function called on ProjectLogsManager before initialization',
|
|
965
965
|
generic: 'Error fetching logs',
|
|
966
966
|
},
|
|
967
967
|
logs: {
|
|
968
968
|
showingLogs: 'Showing logs for:',
|
|
969
969
|
hubspotLogsDirectLink: 'View function logs in HubSpot',
|
|
970
|
-
noLogsFound: name => `No logs were found for "${name}"`,
|
|
970
|
+
noLogsFound: (name) => `No logs were found for "${name}"`,
|
|
971
971
|
},
|
|
972
972
|
table: {
|
|
973
973
|
accountHeader: 'Account',
|
|
@@ -1005,10 +1005,10 @@ exports.commands = {
|
|
|
1005
1005
|
default: 'Upload a project into your HubSpot account',
|
|
1006
1006
|
},
|
|
1007
1007
|
logs: {
|
|
1008
|
-
buildSucceeded: buildId => `Build #${buildId} succeeded\n`,
|
|
1008
|
+
buildSucceeded: (buildId) => `Build #${buildId} succeeded\n`,
|
|
1009
1009
|
readyToGoLive: '🚀 Ready to take your project live?',
|
|
1010
|
-
runCommand: command => `Run \`${command}\``,
|
|
1011
|
-
autoDeployDisabled: deployCommand => `Automatic deploys are disabled for this project. Run ${deployCommand} to deploy this build.`,
|
|
1010
|
+
runCommand: (command) => `Run \`${command}\``,
|
|
1011
|
+
autoDeployDisabled: (deployCommand) => `Automatic deploys are disabled for this project. Run ${deployCommand} to deploy this build.`,
|
|
1012
1012
|
},
|
|
1013
1013
|
errors: {
|
|
1014
1014
|
projectLockedError: () => `Your project is locked. This may mean that another user is running the ${chalk_1.default.bold('`hs project dev`')} command for this project. If this is you, unlock the project in Projects UI.`,
|
|
@@ -1032,9 +1032,9 @@ exports.commands = {
|
|
|
1032
1032
|
watchCancelledFromUi: `The watch process has been cancelled from the UI. Any changes made since cancelling have not been uploaded. To resume watching, rerun ${(0, ui_1.uiCommandReference)('hs project watch')}.`,
|
|
1033
1033
|
resuming: 'Resuming watcher...',
|
|
1034
1034
|
uploadSucceeded: (remotePath, filePath) => `Uploaded file "${filePath}" to "${remotePath}"`,
|
|
1035
|
-
deleteFileSucceeded: remotePath => `Deleted file "${remotePath}"`,
|
|
1036
|
-
deleteFolderSucceeded: remotePath => `Deleted folder "${remotePath}"`,
|
|
1037
|
-
watching: projectDir => `Watcher is ready and watching "${projectDir}". Any changes detected will be automatically uploaded.`,
|
|
1035
|
+
deleteFileSucceeded: (remotePath) => `Deleted file "${remotePath}"`,
|
|
1036
|
+
deleteFolderSucceeded: (remotePath) => `Deleted folder "${remotePath}"`,
|
|
1037
|
+
watching: (projectDir) => `Watcher is ready and watching "${projectDir}". Any changes detected will be automatically uploaded.`,
|
|
1038
1038
|
previousStagingBuildCancelled: 'Killed the previous watch process. Please try running `hs project watch` again',
|
|
1039
1039
|
},
|
|
1040
1040
|
options: {
|
|
@@ -1045,18 +1045,18 @@ exports.commands = {
|
|
|
1045
1045
|
debug: {
|
|
1046
1046
|
pause: 'Pausing watcher, attempting to queue build',
|
|
1047
1047
|
buildStarted: 'Build queued.',
|
|
1048
|
-
extensionNotAllowed: filePath => `Skipping "${filePath}" due to unsupported extension`,
|
|
1049
|
-
ignored: filePath => `Skipping "${filePath}" due to an ignore rule`,
|
|
1048
|
+
extensionNotAllowed: (filePath) => `Skipping "${filePath}" due to unsupported extension`,
|
|
1049
|
+
ignored: (filePath) => `Skipping "${filePath}" due to an ignore rule`,
|
|
1050
1050
|
uploading: (filePath, remotePath) => `Attempting to upload file "${filePath}" to "${remotePath}"`,
|
|
1051
1051
|
attemptNewBuild: 'Attempting to create a new build',
|
|
1052
|
-
fileAlreadyQueued: filePath => `File "${filePath}" is already queued for upload`,
|
|
1052
|
+
fileAlreadyQueued: (filePath) => `File "${filePath}" is already queued for upload`,
|
|
1053
1053
|
},
|
|
1054
1054
|
errors: {
|
|
1055
1055
|
projectConfigNotFound: 'No project config found. Please ensure that you are in a project directory.',
|
|
1056
1056
|
projectLockedError: `Your project is locked. This may mean that another user is running the ${chalk_1.default.bold(`hs project dev`)} command for this project. If this is you, unlock the project in Projects UI.`,
|
|
1057
1057
|
uploadFailed: (remotePath, filePath) => `Failed to upload file "${filePath}" to "${remotePath}"`,
|
|
1058
|
-
deleteFileFailed: remotePath => `Failed to delete file "${remotePath}"`,
|
|
1059
|
-
deleteFolderFailed: remotePath => `Failed to delete folder "${remotePath}"`,
|
|
1058
|
+
deleteFileFailed: (remotePath) => `Failed to delete file "${remotePath}"`,
|
|
1059
|
+
deleteFolderFailed: (remotePath) => `Failed to delete folder "${remotePath}"`,
|
|
1060
1060
|
},
|
|
1061
1061
|
},
|
|
1062
1062
|
download: {
|
|
@@ -1097,7 +1097,7 @@ exports.commands = {
|
|
|
1097
1097
|
examples: {
|
|
1098
1098
|
default: 'Opens the projects page for the specified account',
|
|
1099
1099
|
},
|
|
1100
|
-
success: projectName => `Successfully opened "${projectName}"`,
|
|
1100
|
+
success: (projectName) => `Successfully opened "${projectName}"`,
|
|
1101
1101
|
},
|
|
1102
1102
|
feedback: {
|
|
1103
1103
|
describe: 'Leave feedback on HubSpot projects or file a bug report.',
|
|
@@ -1107,7 +1107,7 @@ exports.commands = {
|
|
|
1107
1107
|
general: "[--general] Tell us about your experience with HubSpot's developer tools",
|
|
1108
1108
|
},
|
|
1109
1109
|
openPrompt: 'Create a Github issue in your browser?',
|
|
1110
|
-
success: url => `We opened ${url} in your browser.`,
|
|
1110
|
+
success: (url) => `We opened ${url} in your browser.`,
|
|
1111
1111
|
options: {
|
|
1112
1112
|
bug: {
|
|
1113
1113
|
describe: 'Open Github issues in your browser to report a bug.',
|
|
@@ -1125,10 +1125,10 @@ exports.commands = {
|
|
|
1125
1125
|
},
|
|
1126
1126
|
installLocationPrompt: 'Choose the project components to install the dependencies:',
|
|
1127
1127
|
installLocationPromptRequired: 'You must choose at least one subcomponent',
|
|
1128
|
-
installingDependencies: directory => `Installing dependencies in ${directory}`,
|
|
1129
|
-
installationSuccessful: directory => `Installed dependencies in ${directory}`,
|
|
1128
|
+
installingDependencies: (directory) => `Installing dependencies in ${directory}`,
|
|
1129
|
+
installationSuccessful: (directory) => `Installed dependencies in ${directory}`,
|
|
1130
1130
|
addingDependenciesToLocation: (dependencies, directory) => `Installing ${dependencies} in ${directory}`,
|
|
1131
|
-
installingDependenciesFailed: directory => `Installing dependencies for ${directory} failed`,
|
|
1131
|
+
installingDependenciesFailed: (directory) => `Installing dependencies for ${directory} failed`,
|
|
1132
1132
|
noProjectConfig: 'No project detected. Run this command from a project directory.',
|
|
1133
1133
|
noPackageJsonInProject: (projectName, link) => `No dependencies to install. The project ${projectName} folder might be missing component or subcomponent files. ${link}`,
|
|
1134
1134
|
packageManagerNotInstalled: (packageManager, link) => `This command depends on ${packageManager}, install ${chalk_1.default.bold(link)}`,
|
|
@@ -1152,8 +1152,8 @@ exports.commands = {
|
|
|
1152
1152
|
create: {
|
|
1153
1153
|
developer: {
|
|
1154
1154
|
loading: {
|
|
1155
|
-
add: accountName => `Creating developer sandbox ${chalk_1.default.bold(accountName)}`,
|
|
1156
|
-
fail: accountName => `Failed to create a developer sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
1155
|
+
add: (accountName) => `Creating developer sandbox ${chalk_1.default.bold(accountName)}`,
|
|
1156
|
+
fail: (accountName) => `Failed to create a developer sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
1157
1157
|
succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
|
|
1158
1158
|
},
|
|
1159
1159
|
success: {
|
|
@@ -1171,8 +1171,8 @@ exports.commands = {
|
|
|
1171
1171
|
},
|
|
1172
1172
|
standard: {
|
|
1173
1173
|
loading: {
|
|
1174
|
-
add: accountName => `Creating standard sandbox ${chalk_1.default.bold(accountName)}`,
|
|
1175
|
-
fail: accountName => `Failed to create a standard sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
1174
|
+
add: (accountName) => `Creating standard sandbox ${chalk_1.default.bold(accountName)}`,
|
|
1175
|
+
fail: (accountName) => `Failed to create a standard sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
1176
1176
|
succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
|
|
1177
1177
|
},
|
|
1178
1178
|
success: {
|
|
@@ -1192,14 +1192,14 @@ exports.commands = {
|
|
|
1192
1192
|
delete: {
|
|
1193
1193
|
describe: 'Delete a sandbox account.',
|
|
1194
1194
|
debug: {
|
|
1195
|
-
deleting: account => `Deleting sandbox account "${account}"`,
|
|
1195
|
+
deleting: (account) => `Deleting sandbox account "${account}"`,
|
|
1196
1196
|
error: 'Error deleting sandbox account:',
|
|
1197
1197
|
},
|
|
1198
1198
|
examples: {
|
|
1199
1199
|
default: 'Deletes the sandbox account named MySandboxAccount.',
|
|
1200
1200
|
},
|
|
1201
|
-
confirm: account => `Delete sandbox ${chalk_1.default.bold(account)}? All data for this sandbox will be permanently deleted.`,
|
|
1202
|
-
defaultAccountWarning: account => `The sandbox ${chalk_1.default.bold(account)} is currently set as the default account.`,
|
|
1201
|
+
confirm: (account) => `Delete sandbox ${chalk_1.default.bold(account)}? All data for this sandbox will be permanently deleted.`,
|
|
1202
|
+
defaultAccountWarning: (account) => `The sandbox ${chalk_1.default.bold(account)} is currently set as the default account.`,
|
|
1203
1203
|
success: {
|
|
1204
1204
|
delete: (account, sandboxHubId) => `Sandbox "${account}" with portalId "${sandboxHubId}" was deleted successfully.`,
|
|
1205
1205
|
deleteDefault: (account, sandboxHubId) => `Sandbox "${account}" with portalId "${sandboxHubId}" was deleted successfully and removed as the default account.`,
|
|
@@ -1208,10 +1208,10 @@ exports.commands = {
|
|
|
1208
1208
|
failure: {
|
|
1209
1209
|
invalidUser: (accountName, parentAccountName) => `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}.`,
|
|
1210
1210
|
noAccount: 'No account specified. Specify an account by using the --account flag.',
|
|
1211
|
-
noSandboxAccounts: authCommand => `There are no sandboxes connected to the CLI. To add a sandbox, run ${authCommand}.`,
|
|
1211
|
+
noSandboxAccounts: (authCommand) => `There are no sandboxes connected to the CLI. To add a sandbox, run ${authCommand}.`,
|
|
1212
1212
|
noSandboxAccountId: "This sandbox can't be deleted from the CLI because we could not find the associated sandbox account.",
|
|
1213
|
-
noParentAccount: authCommand => `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.`,
|
|
1214
|
-
objectNotFound: account => `Sandbox ${chalk_1.default.bold(account)} may have been deleted through the UI. The account has been removed from the config.`,
|
|
1213
|
+
noParentAccount: (authCommand) => `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.`,
|
|
1214
|
+
objectNotFound: (account) => `Sandbox ${chalk_1.default.bold(account)} may have been deleted through the UI. The account has been removed from the config.`,
|
|
1215
1215
|
noParentPortalAvailable: (command, url) => `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: ${chalk_1.default.bold(url)}.`,
|
|
1216
1216
|
invalidKey: (account, authCommand) => `Your personal access key for account ${chalk_1.default.bold(account)} is inactive. To re-authenticate, please run ${authCommand}.`,
|
|
1217
1217
|
},
|
|
@@ -1227,9 +1227,9 @@ exports.commands = {
|
|
|
1227
1227
|
},
|
|
1228
1228
|
sync: {
|
|
1229
1229
|
loading: {
|
|
1230
|
-
add: accountName => `Syncing sandbox ${chalk_1.default.bold(accountName)}`,
|
|
1231
|
-
fail: accountName => `Failed to sync sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
1232
|
-
succeed: accountName => `Successfully synced sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
1230
|
+
add: (accountName) => `Syncing sandbox ${chalk_1.default.bold(accountName)}`,
|
|
1231
|
+
fail: (accountName) => `Failed to sync sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
1232
|
+
succeed: (accountName) => `Successfully synced sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
1233
1233
|
},
|
|
1234
1234
|
success: {
|
|
1235
1235
|
configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
|
|
@@ -1249,7 +1249,7 @@ exports.commands = {
|
|
|
1249
1249
|
add: {
|
|
1250
1250
|
describe: 'Create a new secret.',
|
|
1251
1251
|
errors: {
|
|
1252
|
-
add: secretName => `The secret "${secretName}" was not added`,
|
|
1252
|
+
add: (secretName) => `The secret "${secretName}" was not added`,
|
|
1253
1253
|
alreadyExists: (secretName, command) => `The secret "${secretName}" already exists, it's value can be modified with ${command}`,
|
|
1254
1254
|
},
|
|
1255
1255
|
positionals: {
|
|
@@ -1265,10 +1265,10 @@ exports.commands = {
|
|
|
1265
1265
|
describe: 'Delete a secret.',
|
|
1266
1266
|
selectSecret: 'Select the secret you want to delete',
|
|
1267
1267
|
deleteCanceled: 'Delete canceled',
|
|
1268
|
-
confirmDelete: secretName => `Are you sure you want to delete the secret "${secretName}"?`,
|
|
1268
|
+
confirmDelete: (secretName) => `Are you sure you want to delete the secret "${secretName}"?`,
|
|
1269
1269
|
errors: {
|
|
1270
|
-
delete: secretName => `The secret "${secretName}" was not deleted`,
|
|
1271
|
-
noSecret: secretName => `Unable to delete secret with name "${secretName}", it does not exist`,
|
|
1270
|
+
delete: (secretName) => `The secret "${secretName}" was not deleted`,
|
|
1271
|
+
noSecret: (secretName) => `Unable to delete secret with name "${secretName}", it does not exist`,
|
|
1272
1272
|
},
|
|
1273
1273
|
positionals: {
|
|
1274
1274
|
name: {
|
|
@@ -1284,14 +1284,14 @@ exports.commands = {
|
|
|
1284
1284
|
errors: {
|
|
1285
1285
|
list: 'The secrets could not be listed',
|
|
1286
1286
|
},
|
|
1287
|
-
groupLabel: accountIdentifier => `Secrets for account ${accountIdentifier}:`,
|
|
1287
|
+
groupLabel: (accountIdentifier) => `Secrets for account ${accountIdentifier}:`,
|
|
1288
1288
|
},
|
|
1289
1289
|
update: {
|
|
1290
1290
|
describe: 'Update an existing secret.',
|
|
1291
1291
|
selectSecret: 'Select the secret you want to update',
|
|
1292
1292
|
errors: {
|
|
1293
|
-
update: secretName => `The secret "${secretName}" was not updated`,
|
|
1294
|
-
noSecret: secretName => `Unable to update secret with name "${secretName}", it does not exist`,
|
|
1293
|
+
update: (secretName) => `The secret "${secretName}" was not updated`,
|
|
1294
|
+
noSecret: (secretName) => `Unable to update secret with name "${secretName}", it does not exist`,
|
|
1295
1295
|
},
|
|
1296
1296
|
positionals: {
|
|
1297
1297
|
name: {
|
|
@@ -1311,7 +1311,7 @@ exports.commands = {
|
|
|
1311
1311
|
generateSelectors: {
|
|
1312
1312
|
describe: 'Automatically generates an editor-preview.json file for the given theme. The selectors this command generates are not perfect, so please edit editor-preview.json after running.',
|
|
1313
1313
|
errors: {
|
|
1314
|
-
invalidPath: themePath => `Could not find directory "${themePath}"`,
|
|
1314
|
+
invalidPath: (themePath) => `Could not find directory "${themePath}"`,
|
|
1315
1315
|
fieldsNotFound: "Unable to find theme's fields.json.",
|
|
1316
1316
|
noSelectorsFound: 'No selectors found.',
|
|
1317
1317
|
},
|
|
@@ -1325,17 +1325,17 @@ exports.commands = {
|
|
|
1325
1325
|
marketplaceValidate: {
|
|
1326
1326
|
describe: 'Validate a theme for the marketplace.',
|
|
1327
1327
|
errors: {
|
|
1328
|
-
invalidPath: path => `The path "${path}" is not a path to a folder in the Design Manager`,
|
|
1328
|
+
invalidPath: (path) => `The path "${path}" is not a path to a folder in the Design Manager`,
|
|
1329
1329
|
},
|
|
1330
1330
|
logs: {
|
|
1331
|
-
validatingTheme: path => `Validating theme "${path}" \n`,
|
|
1331
|
+
validatingTheme: (path) => `Validating theme "${path}" \n`,
|
|
1332
1332
|
},
|
|
1333
1333
|
results: {
|
|
1334
1334
|
required: 'Required validation results:',
|
|
1335
1335
|
recommended: 'Recommended validation results:',
|
|
1336
1336
|
warnings: {
|
|
1337
|
-
file: file => `File: ${file}`,
|
|
1338
|
-
lineNumber: line => `Line number: ${line}`,
|
|
1337
|
+
file: (file) => `File: ${file}`,
|
|
1338
|
+
lineNumber: (line) => `Line number: ${line}`,
|
|
1339
1339
|
},
|
|
1340
1340
|
noErrors: 'No errors',
|
|
1341
1341
|
},
|
|
@@ -1348,7 +1348,7 @@ exports.commands = {
|
|
|
1348
1348
|
preview: {
|
|
1349
1349
|
describe: 'Upload and watch a theme directory on your computer for changes and start a local development server to preview theme changes on a site.',
|
|
1350
1350
|
errors: {
|
|
1351
|
-
invalidPath: path => `The path "${path}" is not a path to a directory`,
|
|
1351
|
+
invalidPath: (path) => `The path "${path}" is not a path to a directory`,
|
|
1352
1352
|
noThemeComponents: 'Your project has no theme components available to preview.',
|
|
1353
1353
|
},
|
|
1354
1354
|
positionals: {
|
|
@@ -1387,10 +1387,10 @@ exports.commands = {
|
|
|
1387
1387
|
marketplaceValidate: {
|
|
1388
1388
|
describe: 'Validate a module for the marketplace. Make sure to include the suffix .module in the path to the module within the Design Manager.',
|
|
1389
1389
|
errors: {
|
|
1390
|
-
invalidPath: path => `The path "${path}" is not a path to a module within the Design Manager.`,
|
|
1390
|
+
invalidPath: (path) => `The path "${path}" is not a path to a module within the Design Manager.`,
|
|
1391
1391
|
},
|
|
1392
1392
|
logs: {
|
|
1393
|
-
validatingModule: path => `Validating module "${path}" \n`,
|
|
1393
|
+
validatingModule: (path) => `Validating module "${path}" \n`,
|
|
1394
1394
|
},
|
|
1395
1395
|
options: {
|
|
1396
1396
|
json: {
|
|
@@ -1401,8 +1401,8 @@ exports.commands = {
|
|
|
1401
1401
|
required: 'Required validation results:',
|
|
1402
1402
|
recommended: 'Recommended validation results:',
|
|
1403
1403
|
warnings: {
|
|
1404
|
-
file: file => `File: ${file}`,
|
|
1405
|
-
lineNumber: line => `Line number: ${line}`,
|
|
1404
|
+
file: (file) => `File: ${file}`,
|
|
1405
|
+
lineNumber: (line) => `Line number: ${line}`,
|
|
1406
1406
|
},
|
|
1407
1407
|
noErrors: 'No errors',
|
|
1408
1408
|
},
|
|
@@ -1418,10 +1418,10 @@ exports.commands = {
|
|
|
1418
1418
|
describe: 'Upload a folder or file from your computer to the HubSpot CMS.',
|
|
1419
1419
|
errors: {
|
|
1420
1420
|
destinationRequired: 'A destination path needs to be passed',
|
|
1421
|
-
fileIgnored: path => `The file "${path}" is being ignored via an .hsignore rule`,
|
|
1422
|
-
invalidPath: path => `The path "${path}" is not a path to a file or folder`,
|
|
1421
|
+
fileIgnored: (path) => `The file "${path}" is being ignored via an .hsignore rule`,
|
|
1422
|
+
invalidPath: (path) => `The path "${path}" is not a path to a file or folder`,
|
|
1423
1423
|
uploadFailed: (src, dest) => `Uploading file "${src}" to "${dest}" failed`,
|
|
1424
|
-
someFilesFailed: dest => `One or more files failed to upload to "${dest}" in the Design Manager`,
|
|
1424
|
+
someFilesFailed: (dest) => `One or more files failed to upload to "${dest}" in the Design Manager`,
|
|
1425
1425
|
deleteFailed: (path, accountId) => `Deleting "${path}" from account ${accountId} failed`,
|
|
1426
1426
|
},
|
|
1427
1427
|
options: {
|
|
@@ -1441,7 +1441,7 @@ exports.commands = {
|
|
|
1441
1441
|
describe: 'Skips confirmation prompts when doing a clean upload.',
|
|
1442
1442
|
},
|
|
1443
1443
|
},
|
|
1444
|
-
previewUrl: previewUrl => `To preview this theme, visit: ${previewUrl}`,
|
|
1444
|
+
previewUrl: (previewUrl) => `To preview this theme, visit: ${previewUrl}`,
|
|
1445
1445
|
positionals: {
|
|
1446
1446
|
src: {
|
|
1447
1447
|
describe: 'Path to the local file, relative to your current working directory.',
|
|
@@ -1452,10 +1452,10 @@ exports.commands = {
|
|
|
1452
1452
|
},
|
|
1453
1453
|
success: {
|
|
1454
1454
|
fileUploaded: (src, dest, accountId) => `Uploaded file from "${src}" to "${dest}" in the Design Manager of account ${accountId}`,
|
|
1455
|
-
uploadComplete: dest => `Uploading files to "${dest}" in the Design Manager is complete`,
|
|
1455
|
+
uploadComplete: (dest) => `Uploading files to "${dest}" in the Design Manager is complete`,
|
|
1456
1456
|
},
|
|
1457
1457
|
uploading: (src, dest, accountId) => `Uploading files from "${src}" to "${dest}" in the Design Manager of account ${accountId}`,
|
|
1458
|
-
notUploaded: src => `There was an error processing "${src}". The file has not been uploaded.`,
|
|
1458
|
+
notUploaded: (src) => `There was an error processing "${src}". The file has not been uploaded.`,
|
|
1459
1459
|
cleaning: (filePath, accountId) => `Removing "${filePath}" from account ${accountId} and uploading local...`,
|
|
1460
1460
|
confirmCleanUpload: (filePath, accountId) => `You are about to delete the directory "${filePath}" and its contents on HubSpot account ${accountId} before uploading. This will also clear the global content associated with any global partial templates and modules. Are you sure you want to do this?`,
|
|
1461
1461
|
},
|
|
@@ -1465,7 +1465,7 @@ exports.commands = {
|
|
|
1465
1465
|
folderFailed: (src, dest, accountId) => `Initial uploading of folder "${src}" to "${dest}" in account ${accountId} had failures`,
|
|
1466
1466
|
fileFailed: (file, dest, accountId) => `Upload of file "${file}" to "${dest}" in account ${accountId} failed`,
|
|
1467
1467
|
destinationRequired: 'A destination directory needs to be passed',
|
|
1468
|
-
invalidPath: path => `The "${path}" is not a path to a directory`,
|
|
1468
|
+
invalidPath: (path) => `The "${path}" is not a path to a directory`,
|
|
1469
1469
|
},
|
|
1470
1470
|
options: {
|
|
1471
1471
|
disableInitial: {
|
|
@@ -1501,7 +1501,7 @@ exports.commands = {
|
|
|
1501
1501
|
warnings: {
|
|
1502
1502
|
disableInitial: () => `Passing the "${chalk_1.default.bold('--disable-initial')}" option is no longer necessary. Running "${chalk_1.default.bold('hs watch')}" no longer uploads the watched directory by default.`,
|
|
1503
1503
|
initialUpload: () => `To upload the directory run "${chalk_1.default.bold('hs upload')}" beforehand or add the "${chalk_1.default.bold('--initial-upload')}" option when running "${chalk_1.default.bold('hs watch')}".`,
|
|
1504
|
-
notUploaded: path => `The "${chalk_1.default.bold('hs watch')}" command no longer uploads the watched directory when started. The directory "${path}" was not uploaded.`,
|
|
1504
|
+
notUploaded: (path) => `The "${chalk_1.default.bold('hs watch')}" command no longer uploads the watched directory when started. The directory "${path}" was not uploaded.`,
|
|
1505
1505
|
},
|
|
1506
1506
|
},
|
|
1507
1507
|
convertFields: {
|
|
@@ -1517,16 +1517,16 @@ exports.commands = {
|
|
|
1517
1517
|
},
|
|
1518
1518
|
},
|
|
1519
1519
|
errors: {
|
|
1520
|
-
invalidPath: path => `The path "${path}" specified in the "--src" flag is not a path to a file or directory`,
|
|
1520
|
+
invalidPath: (path) => `The path "${path}" specified in the "--src" flag is not a path to a file or directory`,
|
|
1521
1521
|
missingSrc: 'Please specify the path to your javascript fields file or directory with the --src flag.',
|
|
1522
1522
|
},
|
|
1523
1523
|
},
|
|
1524
1524
|
secrets: {
|
|
1525
1525
|
add: {
|
|
1526
1526
|
loading: {
|
|
1527
|
-
add: secretName => `Adding secret ${chalk_1.default.bold(secretName)}`,
|
|
1528
|
-
fail: secretName => `Failed to add secret ${chalk_1.default.bold(secretName)}.`,
|
|
1529
|
-
succeed: secretName => `Successfully added secret ${chalk_1.default.bold(secretName)}.`,
|
|
1527
|
+
add: (secretName) => `Adding secret ${chalk_1.default.bold(secretName)}`,
|
|
1528
|
+
fail: (secretName) => `Failed to add secret ${chalk_1.default.bold(secretName)}.`,
|
|
1529
|
+
succeed: (secretName) => `Successfully added secret ${chalk_1.default.bold(secretName)}.`,
|
|
1530
1530
|
},
|
|
1531
1531
|
success: {
|
|
1532
1532
|
configFileUpdated: (secretName, authType) => `Secret "${secretName}" updated using "${authType}"`,
|
|
@@ -1541,9 +1541,9 @@ exports.commands = {
|
|
|
1541
1541
|
},
|
|
1542
1542
|
delete: {
|
|
1543
1543
|
loading: {
|
|
1544
|
-
add: secretName => `Deleting secret ${chalk_1.default.bold(secretName)}`,
|
|
1545
|
-
fail: secretName => `Failed to delete secret ${chalk_1.default.bold(secretName)}.`,
|
|
1546
|
-
succeed: secretName => `Successfully deleted secret ${chalk_1.default.bold(secretName)}.`,
|
|
1544
|
+
add: (secretName) => `Deleting secret ${chalk_1.default.bold(secretName)}`,
|
|
1545
|
+
fail: (secretName) => `Failed to delete secret ${chalk_1.default.bold(secretName)}.`,
|
|
1546
|
+
succeed: (secretName) => `Successfully deleted secret ${chalk_1.default.bold(secretName)}.`,
|
|
1547
1547
|
},
|
|
1548
1548
|
success: {
|
|
1549
1549
|
configFileUpdated: (secretName, authType) => `Secret "${secretName}" updated using "${authType}"`,
|
|
@@ -1563,13 +1563,13 @@ exports.commands = {
|
|
|
1563
1563
|
succeed: () => `Successfully listed secrets.`,
|
|
1564
1564
|
},
|
|
1565
1565
|
success: {
|
|
1566
|
-
configFileUpdated: authType => `Secrets updated using "${authType}"`,
|
|
1566
|
+
configFileUpdated: (authType) => `Secrets updated using "${authType}"`,
|
|
1567
1567
|
},
|
|
1568
1568
|
failure: {
|
|
1569
|
-
invalidUser: parentAccountName => `Couldn't list secrets because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list secrets. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1569
|
+
invalidUser: (parentAccountName) => `Couldn't list secrets because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list secrets. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1570
1570
|
scopes: {
|
|
1571
1571
|
message: "The personal access key you provided doesn't include secrets permissions.",
|
|
1572
|
-
instructions: url => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1572
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes secrets permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1573
1573
|
},
|
|
1574
1574
|
},
|
|
1575
1575
|
},
|
|
@@ -1577,9 +1577,9 @@ exports.commands = {
|
|
|
1577
1577
|
serverless: {
|
|
1578
1578
|
add: {
|
|
1579
1579
|
loading: {
|
|
1580
|
-
add: functionName => `Adding serverless function ${chalk_1.default.bold(functionName)}`,
|
|
1581
|
-
fail: functionName => `Failed to add serverless function ${chalk_1.default.bold(functionName)}.`,
|
|
1582
|
-
succeed: functionName => `Successfully added serverless function ${chalk_1.default.bold(functionName)}.`,
|
|
1580
|
+
add: (functionName) => `Adding serverless function ${chalk_1.default.bold(functionName)}`,
|
|
1581
|
+
fail: (functionName) => `Failed to add serverless function ${chalk_1.default.bold(functionName)}.`,
|
|
1582
|
+
succeed: (functionName) => `Successfully added serverless function ${chalk_1.default.bold(functionName)}.`,
|
|
1583
1583
|
},
|
|
1584
1584
|
success: {
|
|
1585
1585
|
configFileUpdated: (functionName, authType) => `Serverless function "${functionName}" updated using "${authType}"`,
|
|
@@ -1594,9 +1594,9 @@ exports.commands = {
|
|
|
1594
1594
|
},
|
|
1595
1595
|
delete: {
|
|
1596
1596
|
loading: {
|
|
1597
|
-
add: functionName => `Deleting serverless function ${chalk_1.default.bold(functionName)}`,
|
|
1598
|
-
fail: functionName => `Failed to delete serverless function ${chalk_1.default.bold(functionName)}.`,
|
|
1599
|
-
succeed: functionName => `Successfully deleted serverless function ${chalk_1.default.bold(functionName)}.`,
|
|
1597
|
+
add: (functionName) => `Deleting serverless function ${chalk_1.default.bold(functionName)}`,
|
|
1598
|
+
fail: (functionName) => `Failed to delete serverless function ${chalk_1.default.bold(functionName)}.`,
|
|
1599
|
+
succeed: (functionName) => `Successfully deleted serverless function ${chalk_1.default.bold(functionName)}.`,
|
|
1600
1600
|
},
|
|
1601
1601
|
success: {
|
|
1602
1602
|
configFileUpdated: (functionName, authType) => `Serverless function "${functionName}" updated using "${authType}"`,
|
|
@@ -1616,13 +1616,13 @@ exports.commands = {
|
|
|
1616
1616
|
succeed: () => `Successfully listed serverless functions.`,
|
|
1617
1617
|
},
|
|
1618
1618
|
success: {
|
|
1619
|
-
configFileUpdated: authType => `Serverless functions updated using "${authType}"`,
|
|
1619
|
+
configFileUpdated: (authType) => `Serverless functions updated using "${authType}"`,
|
|
1620
1620
|
},
|
|
1621
1621
|
failure: {
|
|
1622
|
-
invalidUser: parentAccountName => `Couldn't list serverless functions because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless functions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1622
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless functions because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless functions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1623
1623
|
scopes: {
|
|
1624
1624
|
message: "The personal access key you provided doesn't include serverless function permissions.",
|
|
1625
|
-
instructions: url => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1625
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1626
1626
|
},
|
|
1627
1627
|
},
|
|
1628
1628
|
},
|
|
@@ -1630,9 +1630,9 @@ exports.commands = {
|
|
|
1630
1630
|
serverlessFunctionLogs: {
|
|
1631
1631
|
add: {
|
|
1632
1632
|
loading: {
|
|
1633
|
-
add: functionName => `Adding serverless function logs ${chalk_1.default.bold(functionName)}`,
|
|
1634
|
-
fail: functionName => `Failed to add serverless function logs ${chalk_1.default.bold(functionName)}.`,
|
|
1635
|
-
succeed: functionName => `Successfully added serverless function logs ${chalk_1.default.bold(functionName)}.`,
|
|
1633
|
+
add: (functionName) => `Adding serverless function logs ${chalk_1.default.bold(functionName)}`,
|
|
1634
|
+
fail: (functionName) => `Failed to add serverless function logs ${chalk_1.default.bold(functionName)}.`,
|
|
1635
|
+
succeed: (functionName) => `Successfully added serverless function logs ${chalk_1.default.bold(functionName)}.`,
|
|
1636
1636
|
},
|
|
1637
1637
|
success: {
|
|
1638
1638
|
configFileUpdated: (functionName, authType) => `Serverless function logs "${functionName}" updated using "${authType}"`,
|
|
@@ -1647,9 +1647,9 @@ exports.commands = {
|
|
|
1647
1647
|
},
|
|
1648
1648
|
delete: {
|
|
1649
1649
|
loading: {
|
|
1650
|
-
add: functionName => `Deleting serverless function logs ${chalk_1.default.bold(functionName)}`,
|
|
1651
|
-
fail: functionName => `Failed to delete serverless function logs ${chalk_1.default.bold(functionName)}.`,
|
|
1652
|
-
succeed: functionName => `Successfully deleted serverless function logs ${chalk_1.default.bold(functionName)}.`,
|
|
1650
|
+
add: (functionName) => `Deleting serverless function logs ${chalk_1.default.bold(functionName)}`,
|
|
1651
|
+
fail: (functionName) => `Failed to delete serverless function logs ${chalk_1.default.bold(functionName)}.`,
|
|
1652
|
+
succeed: (functionName) => `Successfully deleted serverless function logs ${chalk_1.default.bold(functionName)}.`,
|
|
1653
1653
|
},
|
|
1654
1654
|
success: {
|
|
1655
1655
|
configFileUpdated: (functionName, authType) => `Serverless function logs "${functionName}" updated using "${authType}"`,
|
|
@@ -1669,13 +1669,13 @@ exports.commands = {
|
|
|
1669
1669
|
succeed: () => `Successfully listed serverless function logs.`,
|
|
1670
1670
|
},
|
|
1671
1671
|
success: {
|
|
1672
|
-
configFileUpdated: authType => `Serverless function logs updated using "${authType}"`,
|
|
1672
|
+
configFileUpdated: (authType) => `Serverless function logs updated using "${authType}"`,
|
|
1673
1673
|
},
|
|
1674
1674
|
failure: {
|
|
1675
|
-
invalidUser: parentAccountName => `Couldn't list serverless function logs because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function logs. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1675
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function logs because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function logs. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1676
1676
|
scopes: {
|
|
1677
1677
|
message: "The personal access key you provided doesn't include serverless function log permissions.",
|
|
1678
|
-
instructions: url => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1678
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function log permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1679
1679
|
},
|
|
1680
1680
|
},
|
|
1681
1681
|
},
|
|
@@ -1683,9 +1683,9 @@ exports.commands = {
|
|
|
1683
1683
|
serverlessFunctionMetrics: {
|
|
1684
1684
|
add: {
|
|
1685
1685
|
loading: {
|
|
1686
|
-
add: functionName => `Adding serverless function metrics ${chalk_1.default.bold(functionName)}`,
|
|
1687
|
-
fail: functionName => `Failed to add serverless function metrics ${chalk_1.default.bold(functionName)}.`,
|
|
1688
|
-
succeed: functionName => `Successfully added serverless function metrics ${chalk_1.default.bold(functionName)}.`,
|
|
1686
|
+
add: (functionName) => `Adding serverless function metrics ${chalk_1.default.bold(functionName)}`,
|
|
1687
|
+
fail: (functionName) => `Failed to add serverless function metrics ${chalk_1.default.bold(functionName)}.`,
|
|
1688
|
+
succeed: (functionName) => `Successfully added serverless function metrics ${chalk_1.default.bold(functionName)}.`,
|
|
1689
1689
|
},
|
|
1690
1690
|
success: {
|
|
1691
1691
|
configFileUpdated: (functionName, authType) => `Serverless function metrics "${functionName}" updated using "${authType}"`,
|
|
@@ -1700,9 +1700,9 @@ exports.commands = {
|
|
|
1700
1700
|
},
|
|
1701
1701
|
delete: {
|
|
1702
1702
|
loading: {
|
|
1703
|
-
add: functionName => `Deleting serverless function metrics ${chalk_1.default.bold(functionName)}`,
|
|
1704
|
-
fail: functionName => `Failed to delete serverless function metrics ${chalk_1.default.bold(functionName)}.`,
|
|
1705
|
-
succeed: functionName => `Successfully deleted serverless function metrics ${chalk_1.default.bold(functionName)}.`,
|
|
1703
|
+
add: (functionName) => `Deleting serverless function metrics ${chalk_1.default.bold(functionName)}`,
|
|
1704
|
+
fail: (functionName) => `Failed to delete serverless function metrics ${chalk_1.default.bold(functionName)}.`,
|
|
1705
|
+
succeed: (functionName) => `Successfully deleted serverless function metrics ${chalk_1.default.bold(functionName)}.`,
|
|
1706
1706
|
},
|
|
1707
1707
|
success: {
|
|
1708
1708
|
configFileUpdated: (functionName, authType) => `Serverless function metrics "${functionName}" updated using "${authType}"`,
|
|
@@ -1722,13 +1722,13 @@ exports.commands = {
|
|
|
1722
1722
|
succeed: () => `Successfully listed serverless function metrics.`,
|
|
1723
1723
|
},
|
|
1724
1724
|
success: {
|
|
1725
|
-
configFileUpdated: authType => `Serverless function metrics updated using "${authType}"`,
|
|
1725
|
+
configFileUpdated: (authType) => `Serverless function metrics updated using "${authType}"`,
|
|
1726
1726
|
},
|
|
1727
1727
|
failure: {
|
|
1728
|
-
invalidUser: parentAccountName => `Couldn't list serverless function metrics because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function metrics. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1728
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function metrics because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function metrics. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1729
1729
|
scopes: {
|
|
1730
1730
|
message: "The personal access key you provided doesn't include serverless function metric permissions.",
|
|
1731
|
-
instructions: url => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1731
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function metric permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1732
1732
|
},
|
|
1733
1733
|
},
|
|
1734
1734
|
},
|
|
@@ -1736,9 +1736,9 @@ exports.commands = {
|
|
|
1736
1736
|
serverlessFunctionSettings: {
|
|
1737
1737
|
add: {
|
|
1738
1738
|
loading: {
|
|
1739
|
-
add: functionName => `Adding serverless function settings ${chalk_1.default.bold(functionName)}`,
|
|
1740
|
-
fail: functionName => `Failed to add serverless function settings ${chalk_1.default.bold(functionName)}.`,
|
|
1741
|
-
succeed: functionName => `Successfully added serverless function settings ${chalk_1.default.bold(functionName)}.`,
|
|
1739
|
+
add: (functionName) => `Adding serverless function settings ${chalk_1.default.bold(functionName)}`,
|
|
1740
|
+
fail: (functionName) => `Failed to add serverless function settings ${chalk_1.default.bold(functionName)}.`,
|
|
1741
|
+
succeed: (functionName) => `Successfully added serverless function settings ${chalk_1.default.bold(functionName)}.`,
|
|
1742
1742
|
},
|
|
1743
1743
|
success: {
|
|
1744
1744
|
configFileUpdated: (functionName, authType) => `Serverless function settings "${functionName}" updated using "${authType}"`,
|
|
@@ -1753,9 +1753,9 @@ exports.commands = {
|
|
|
1753
1753
|
},
|
|
1754
1754
|
delete: {
|
|
1755
1755
|
loading: {
|
|
1756
|
-
add: functionName => `Deleting serverless function settings ${chalk_1.default.bold(functionName)}`,
|
|
1757
|
-
fail: functionName => `Failed to delete serverless function settings ${chalk_1.default.bold(functionName)}.`,
|
|
1758
|
-
succeed: functionName => `Successfully deleted serverless function settings ${chalk_1.default.bold(functionName)}.`,
|
|
1756
|
+
add: (functionName) => `Deleting serverless function settings ${chalk_1.default.bold(functionName)}`,
|
|
1757
|
+
fail: (functionName) => `Failed to delete serverless function settings ${chalk_1.default.bold(functionName)}.`,
|
|
1758
|
+
succeed: (functionName) => `Successfully deleted serverless function settings ${chalk_1.default.bold(functionName)}.`,
|
|
1759
1759
|
},
|
|
1760
1760
|
success: {
|
|
1761
1761
|
configFileUpdated: (functionName, authType) => `Serverless function settings "${functionName}" updated using "${authType}"`,
|
|
@@ -1775,13 +1775,13 @@ exports.commands = {
|
|
|
1775
1775
|
succeed: () => `Successfully listed serverless function settings.`,
|
|
1776
1776
|
},
|
|
1777
1777
|
success: {
|
|
1778
|
-
configFileUpdated: authType => `Serverless function settings updated using "${authType}"`,
|
|
1778
|
+
configFileUpdated: (authType) => `Serverless function settings updated using "${authType}"`,
|
|
1779
1779
|
},
|
|
1780
1780
|
failure: {
|
|
1781
|
-
invalidUser: parentAccountName => `Couldn't list serverless function settings because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function settings. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1781
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function settings because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function settings. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1782
1782
|
scopes: {
|
|
1783
1783
|
message: "The personal access key you provided doesn't include serverless function setting permissions.",
|
|
1784
|
-
instructions: url => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1784
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function setting permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1785
1785
|
},
|
|
1786
1786
|
},
|
|
1787
1787
|
},
|
|
@@ -1789,9 +1789,9 @@ exports.commands = {
|
|
|
1789
1789
|
serverlessFunctionVersions: {
|
|
1790
1790
|
add: {
|
|
1791
1791
|
loading: {
|
|
1792
|
-
add: functionName => `Adding serverless function versions ${chalk_1.default.bold(functionName)}`,
|
|
1793
|
-
fail: functionName => `Failed to add serverless function versions ${chalk_1.default.bold(functionName)}.`,
|
|
1794
|
-
succeed: functionName => `Successfully added serverless function versions ${chalk_1.default.bold(functionName)}.`,
|
|
1792
|
+
add: (functionName) => `Adding serverless function versions ${chalk_1.default.bold(functionName)}`,
|
|
1793
|
+
fail: (functionName) => `Failed to add serverless function versions ${chalk_1.default.bold(functionName)}.`,
|
|
1794
|
+
succeed: (functionName) => `Successfully added serverless function versions ${chalk_1.default.bold(functionName)}.`,
|
|
1795
1795
|
},
|
|
1796
1796
|
success: {
|
|
1797
1797
|
configFileUpdated: (functionName, authType) => `Serverless function versions "${functionName}" updated using "${authType}"`,
|
|
@@ -1806,9 +1806,9 @@ exports.commands = {
|
|
|
1806
1806
|
},
|
|
1807
1807
|
delete: {
|
|
1808
1808
|
loading: {
|
|
1809
|
-
add: functionName => `Deleting serverless function versions ${chalk_1.default.bold(functionName)}`,
|
|
1810
|
-
fail: functionName => `Failed to delete serverless function versions ${chalk_1.default.bold(functionName)}.`,
|
|
1811
|
-
succeed: functionName => `Successfully deleted serverless function versions ${chalk_1.default.bold(functionName)}.`,
|
|
1809
|
+
add: (functionName) => `Deleting serverless function versions ${chalk_1.default.bold(functionName)}`,
|
|
1810
|
+
fail: (functionName) => `Failed to delete serverless function versions ${chalk_1.default.bold(functionName)}.`,
|
|
1811
|
+
succeed: (functionName) => `Successfully deleted serverless function versions ${chalk_1.default.bold(functionName)}.`,
|
|
1812
1812
|
},
|
|
1813
1813
|
success: {
|
|
1814
1814
|
configFileUpdated: (functionName, authType) => `Serverless function versions "${functionName}" updated using "${authType}"`,
|
|
@@ -1828,13 +1828,13 @@ exports.commands = {
|
|
|
1828
1828
|
succeed: () => `Successfully listed serverless function versions.`,
|
|
1829
1829
|
},
|
|
1830
1830
|
success: {
|
|
1831
|
-
configFileUpdated: authType => `Serverless function versions updated using "${authType}"`,
|
|
1831
|
+
configFileUpdated: (authType) => `Serverless function versions updated using "${authType}"`,
|
|
1832
1832
|
},
|
|
1833
1833
|
failure: {
|
|
1834
|
-
invalidUser: parentAccountName => `Couldn't list serverless function versions because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function versions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1834
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function versions because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function versions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1835
1835
|
scopes: {
|
|
1836
1836
|
message: "The personal access key you provided doesn't include serverless function version permissions.",
|
|
1837
|
-
instructions: url => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1837
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function version permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1838
1838
|
},
|
|
1839
1839
|
},
|
|
1840
1840
|
},
|
|
@@ -1842,9 +1842,9 @@ exports.commands = {
|
|
|
1842
1842
|
serverlessFunctionWebhooks: {
|
|
1843
1843
|
add: {
|
|
1844
1844
|
loading: {
|
|
1845
|
-
add: functionName => `Adding serverless function webhooks ${chalk_1.default.bold(functionName)}`,
|
|
1846
|
-
fail: functionName => `Failed to add serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
|
|
1847
|
-
succeed: functionName => `Successfully added serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
|
|
1845
|
+
add: (functionName) => `Adding serverless function webhooks ${chalk_1.default.bold(functionName)}`,
|
|
1846
|
+
fail: (functionName) => `Failed to add serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
|
|
1847
|
+
succeed: (functionName) => `Successfully added serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
|
|
1848
1848
|
},
|
|
1849
1849
|
success: {
|
|
1850
1850
|
configFileUpdated: (functionName, authType) => `Serverless function webhooks "${functionName}" updated using "${authType}"`,
|
|
@@ -1859,9 +1859,9 @@ exports.commands = {
|
|
|
1859
1859
|
},
|
|
1860
1860
|
delete: {
|
|
1861
1861
|
loading: {
|
|
1862
|
-
add: functionName => `Deleting serverless function webhooks ${chalk_1.default.bold(functionName)}`,
|
|
1863
|
-
fail: functionName => `Failed to delete serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
|
|
1864
|
-
succeed: functionName => `Successfully deleted serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
|
|
1862
|
+
add: (functionName) => `Deleting serverless function webhooks ${chalk_1.default.bold(functionName)}`,
|
|
1863
|
+
fail: (functionName) => `Failed to delete serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
|
|
1864
|
+
succeed: (functionName) => `Successfully deleted serverless function webhooks ${chalk_1.default.bold(functionName)}.`,
|
|
1865
1865
|
},
|
|
1866
1866
|
success: {
|
|
1867
1867
|
configFileUpdated: (functionName, authType) => `Serverless function webhooks "${functionName}" updated using "${authType}"`,
|
|
@@ -1881,13 +1881,13 @@ exports.commands = {
|
|
|
1881
1881
|
succeed: () => `Successfully listed serverless function webhooks.`,
|
|
1882
1882
|
},
|
|
1883
1883
|
success: {
|
|
1884
|
-
configFileUpdated: authType => `Serverless function webhooks updated using "${authType}"`,
|
|
1884
|
+
configFileUpdated: (authType) => `Serverless function webhooks updated using "${authType}"`,
|
|
1885
1885
|
},
|
|
1886
1886
|
failure: {
|
|
1887
|
-
invalidUser: parentAccountName => `Couldn't list serverless function webhooks because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhooks. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1887
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function webhooks because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhooks. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1888
1888
|
scopes: {
|
|
1889
1889
|
message: "The personal access key you provided doesn't include serverless function webhook permissions.",
|
|
1890
|
-
instructions: url => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1890
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1891
1891
|
},
|
|
1892
1892
|
},
|
|
1893
1893
|
},
|
|
@@ -1895,9 +1895,9 @@ exports.commands = {
|
|
|
1895
1895
|
serverlessFunctionWebhookSubscriptions: {
|
|
1896
1896
|
add: {
|
|
1897
1897
|
loading: {
|
|
1898
|
-
add: functionName => `Adding serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}`,
|
|
1899
|
-
fail: functionName => `Failed to add serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
|
|
1900
|
-
succeed: functionName => `Successfully added serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
|
|
1898
|
+
add: (functionName) => `Adding serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}`,
|
|
1899
|
+
fail: (functionName) => `Failed to add serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
|
|
1900
|
+
succeed: (functionName) => `Successfully added serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
|
|
1901
1901
|
},
|
|
1902
1902
|
success: {
|
|
1903
1903
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscriptions "${functionName}" updated using "${authType}"`,
|
|
@@ -1912,9 +1912,9 @@ exports.commands = {
|
|
|
1912
1912
|
},
|
|
1913
1913
|
delete: {
|
|
1914
1914
|
loading: {
|
|
1915
|
-
add: functionName => `Deleting serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}`,
|
|
1916
|
-
fail: functionName => `Failed to delete serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
|
|
1917
|
-
succeed: functionName => `Successfully deleted serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
|
|
1915
|
+
add: (functionName) => `Deleting serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}`,
|
|
1916
|
+
fail: (functionName) => `Failed to delete serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
|
|
1917
|
+
succeed: (functionName) => `Successfully deleted serverless function webhook subscriptions ${chalk_1.default.bold(functionName)}.`,
|
|
1918
1918
|
},
|
|
1919
1919
|
success: {
|
|
1920
1920
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscriptions "${functionName}" updated using "${authType}"`,
|
|
@@ -1934,13 +1934,13 @@ exports.commands = {
|
|
|
1934
1934
|
succeed: () => `Successfully listed serverless function webhook subscriptions.`,
|
|
1935
1935
|
},
|
|
1936
1936
|
success: {
|
|
1937
|
-
configFileUpdated: authType => `Serverless function webhook subscriptions updated using "${authType}"`,
|
|
1937
|
+
configFileUpdated: (authType) => `Serverless function webhook subscriptions updated using "${authType}"`,
|
|
1938
1938
|
},
|
|
1939
1939
|
failure: {
|
|
1940
|
-
invalidUser: parentAccountName => `Couldn't list serverless function webhook subscriptions because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1940
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscriptions because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscriptions. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1941
1941
|
scopes: {
|
|
1942
1942
|
message: "The personal access key you provided doesn't include serverless function webhook subscription permissions.",
|
|
1943
|
-
instructions: url => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1943
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1944
1944
|
},
|
|
1945
1945
|
},
|
|
1946
1946
|
},
|
|
@@ -1948,9 +1948,9 @@ exports.commands = {
|
|
|
1948
1948
|
serverlessFunctionWebhookSubscriptionEvents: {
|
|
1949
1949
|
add: {
|
|
1950
1950
|
loading: {
|
|
1951
|
-
add: functionName => `Adding serverless function webhook subscription events ${chalk_1.default.bold(functionName)}`,
|
|
1952
|
-
fail: functionName => `Failed to add serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
|
|
1953
|
-
succeed: functionName => `Successfully added serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
|
|
1951
|
+
add: (functionName) => `Adding serverless function webhook subscription events ${chalk_1.default.bold(functionName)}`,
|
|
1952
|
+
fail: (functionName) => `Failed to add serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
|
|
1953
|
+
succeed: (functionName) => `Successfully added serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
|
|
1954
1954
|
},
|
|
1955
1955
|
success: {
|
|
1956
1956
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscription events "${functionName}" updated using "${authType}"`,
|
|
@@ -1965,9 +1965,9 @@ exports.commands = {
|
|
|
1965
1965
|
},
|
|
1966
1966
|
delete: {
|
|
1967
1967
|
loading: {
|
|
1968
|
-
add: functionName => `Deleting serverless function webhook subscription events ${chalk_1.default.bold(functionName)}`,
|
|
1969
|
-
fail: functionName => `Failed to delete serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
|
|
1970
|
-
succeed: functionName => `Successfully deleted serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
|
|
1968
|
+
add: (functionName) => `Deleting serverless function webhook subscription events ${chalk_1.default.bold(functionName)}`,
|
|
1969
|
+
fail: (functionName) => `Failed to delete serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
|
|
1970
|
+
succeed: (functionName) => `Successfully deleted serverless function webhook subscription events ${chalk_1.default.bold(functionName)}.`,
|
|
1971
1971
|
},
|
|
1972
1972
|
success: {
|
|
1973
1973
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscription events "${functionName}" updated using "${authType}"`,
|
|
@@ -1987,13 +1987,13 @@ exports.commands = {
|
|
|
1987
1987
|
succeed: () => `Successfully listed serverless function webhook subscription events.`,
|
|
1988
1988
|
},
|
|
1989
1989
|
success: {
|
|
1990
|
-
configFileUpdated: authType => `Serverless function webhook subscription events updated using "${authType}"`,
|
|
1990
|
+
configFileUpdated: (authType) => `Serverless function webhook subscription events updated using "${authType}"`,
|
|
1991
1991
|
},
|
|
1992
1992
|
failure: {
|
|
1993
|
-
invalidUser: parentAccountName => `Couldn't list serverless function webhook subscription events because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1993
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription events because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription events. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
1994
1994
|
scopes: {
|
|
1995
1995
|
message: "The personal access key you provided doesn't include serverless function webhook subscription event permissions.",
|
|
1996
|
-
instructions: url => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1996
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
1997
1997
|
},
|
|
1998
1998
|
},
|
|
1999
1999
|
},
|
|
@@ -2001,9 +2001,9 @@ exports.commands = {
|
|
|
2001
2001
|
serverlessFunctionWebhookSubscriptionEventTypes: {
|
|
2002
2002
|
add: {
|
|
2003
2003
|
loading: {
|
|
2004
|
-
add: functionName => `Adding serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}`,
|
|
2005
|
-
fail: functionName => `Failed to add serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
|
|
2006
|
-
succeed: functionName => `Successfully added serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
|
|
2004
|
+
add: (functionName) => `Adding serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}`,
|
|
2005
|
+
fail: (functionName) => `Failed to add serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
|
|
2006
|
+
succeed: (functionName) => `Successfully added serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
|
|
2007
2007
|
},
|
|
2008
2008
|
success: {
|
|
2009
2009
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event types "${functionName}" updated using "${authType}"`,
|
|
@@ -2018,9 +2018,9 @@ exports.commands = {
|
|
|
2018
2018
|
},
|
|
2019
2019
|
delete: {
|
|
2020
2020
|
loading: {
|
|
2021
|
-
add: functionName => `Deleting serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}`,
|
|
2022
|
-
fail: functionName => `Failed to delete serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
|
|
2023
|
-
succeed: functionName => `Successfully deleted serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
|
|
2021
|
+
add: (functionName) => `Deleting serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}`,
|
|
2022
|
+
fail: (functionName) => `Failed to delete serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
|
|
2023
|
+
succeed: (functionName) => `Successfully deleted serverless function webhook subscription event types ${chalk_1.default.bold(functionName)}.`,
|
|
2024
2024
|
},
|
|
2025
2025
|
success: {
|
|
2026
2026
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event types "${functionName}" updated using "${authType}"`,
|
|
@@ -2040,13 +2040,13 @@ exports.commands = {
|
|
|
2040
2040
|
succeed: () => `Successfully listed serverless function webhook subscription event types.`,
|
|
2041
2041
|
},
|
|
2042
2042
|
success: {
|
|
2043
|
-
configFileUpdated: authType => `Serverless function webhook subscription event types updated using "${authType}"`,
|
|
2043
|
+
configFileUpdated: (authType) => `Serverless function webhook subscription event types updated using "${authType}"`,
|
|
2044
2044
|
},
|
|
2045
2045
|
failure: {
|
|
2046
|
-
invalidUser: parentAccountName => `Couldn't list serverless function webhook subscription event types because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
2046
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event types because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event types. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
2047
2047
|
scopes: {
|
|
2048
2048
|
message: "The personal access key you provided doesn't include serverless function webhook subscription event type permissions.",
|
|
2049
|
-
instructions: url => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
2049
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
2050
2050
|
},
|
|
2051
2051
|
},
|
|
2052
2052
|
},
|
|
@@ -2054,9 +2054,9 @@ exports.commands = {
|
|
|
2054
2054
|
serverlessFunctionWebhookSubscriptionEventTypeOptions: {
|
|
2055
2055
|
add: {
|
|
2056
2056
|
loading: {
|
|
2057
|
-
add: functionName => `Adding serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}`,
|
|
2058
|
-
fail: functionName => `Failed to add serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
|
|
2059
|
-
succeed: functionName => `Successfully added serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
|
|
2057
|
+
add: (functionName) => `Adding serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}`,
|
|
2058
|
+
fail: (functionName) => `Failed to add serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
|
|
2059
|
+
succeed: (functionName) => `Successfully added serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
|
|
2060
2060
|
},
|
|
2061
2061
|
success: {
|
|
2062
2062
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event type options "${functionName}" updated using "${authType}"`,
|
|
@@ -2071,9 +2071,9 @@ exports.commands = {
|
|
|
2071
2071
|
},
|
|
2072
2072
|
delete: {
|
|
2073
2073
|
loading: {
|
|
2074
|
-
add: functionName => `Deleting serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}`,
|
|
2075
|
-
fail: functionName => `Failed to delete serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
|
|
2076
|
-
succeed: functionName => `Successfully deleted serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
|
|
2074
|
+
add: (functionName) => `Deleting serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}`,
|
|
2075
|
+
fail: (functionName) => `Failed to delete serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
|
|
2076
|
+
succeed: (functionName) => `Successfully deleted serverless function webhook subscription event type options ${chalk_1.default.bold(functionName)}.`,
|
|
2077
2077
|
},
|
|
2078
2078
|
success: {
|
|
2079
2079
|
configFileUpdated: (functionName, authType) => `Serverless function webhook subscription event type options "${functionName}" updated using "${authType}"`,
|
|
@@ -2093,13 +2093,13 @@ exports.commands = {
|
|
|
2093
2093
|
succeed: () => `Successfully listed serverless function webhook subscription event type options.`,
|
|
2094
2094
|
},
|
|
2095
2095
|
success: {
|
|
2096
|
-
configFileUpdated: authType => `Serverless function webhook subscription event type options updated using "${authType}"`,
|
|
2096
|
+
configFileUpdated: (authType) => `Serverless function webhook subscription event type options updated using "${authType}"`,
|
|
2097
2097
|
},
|
|
2098
2098
|
failure: {
|
|
2099
|
-
invalidUser: parentAccountName => `Couldn't list serverless function webhook subscription event type options because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
2099
|
+
invalidUser: (parentAccountName) => `Couldn't list serverless function webhook subscription event type options because your account has been removed from ${chalk_1.default.bold(parentAccountName)} or your permission set doesn't allow you to list serverless function webhook subscription event type options. To update your permissions, contact a super admin in ${chalk_1.default.bold(parentAccountName)}.`,
|
|
2100
2100
|
scopes: {
|
|
2101
2101
|
message: "The personal access key you provided doesn't include serverless function webhook subscription event type option permissions.",
|
|
2102
|
-
instructions: url => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
2102
|
+
instructions: (url) => `To update CLI permissions: \n- Go to ${url}, deactivate the existing personal access key, and create a new one that includes serverless function webhook subscription event type option permissions. \n- Update the CLI config for this account by running ${chalk_1.default.bold('hs auth')} and entering the new key.\n`,
|
|
2103
2103
|
},
|
|
2104
2104
|
},
|
|
2105
2105
|
},
|
|
@@ -2107,22 +2107,22 @@ exports.commands = {
|
|
|
2107
2107
|
};
|
|
2108
2108
|
exports.lib = {
|
|
2109
2109
|
process: {
|
|
2110
|
-
exitDebug: signal => `Attempting to gracefully exit. Triggered by ${signal}`,
|
|
2110
|
+
exitDebug: (signal) => `Attempting to gracefully exit. Triggered by ${signal}`,
|
|
2111
2111
|
},
|
|
2112
2112
|
DevServerManager: {
|
|
2113
|
-
portConflict: port => `The port ${port} is already in use.`,
|
|
2113
|
+
portConflict: (port) => `The port ${port} is already in use.`,
|
|
2114
2114
|
notInitialized: 'The Dev Server Manager must be initialized before it is started.',
|
|
2115
|
-
noCompatibleComponents: serverKey => `Skipping call to ${serverKey} because there are no compatible components in the project.`,
|
|
2115
|
+
noCompatibleComponents: (serverKey) => `Skipping call to ${serverKey} because there are no compatible components in the project.`,
|
|
2116
2116
|
},
|
|
2117
2117
|
LocalDevManager: {
|
|
2118
2118
|
failedToInitialize: 'Missing required arguments to initialize Local Dev',
|
|
2119
2119
|
noDeployedBuild: (projectName, accountIdentifier, uploadCommand) => `Your project ${chalk_1.default.bold(projectName)} exists in ${accountIdentifier}, but has no deployed build. Projects must be successfully deployed to be developed locally. Address any build and deploy errors your project may have, then run ${uploadCommand} to upload and deploy your project.`,
|
|
2120
2120
|
noComponents: 'There are no components in this project.',
|
|
2121
2121
|
betaMessage: 'HubSpot projects local development',
|
|
2122
|
-
learnMoreLocalDevServer: 'Learn more about the projects local dev server',
|
|
2123
|
-
running: (projectName, accountIdentifier) => `Running ${chalk_1.default.bold(projectName)} locally on ${accountIdentifier}, waiting for changes
|
|
2122
|
+
learnMoreLocalDevServer: (0, ui_1.uiLink)('Learn more about the projects local dev server', 'https://developers.hubspot.com/docs/platform/project-cli-commands#start-a-local-development-server'),
|
|
2123
|
+
running: (projectName, accountIdentifier) => chalk_1.default.hex(ui_2.UI_COLORS.SORBET)(`Running ${chalk_1.default.bold(projectName)} locally on ${accountIdentifier}, waiting for changes ...`),
|
|
2124
2124
|
quitHelper: `Press ${chalk_1.default.bold('q')} to stop the local dev server`,
|
|
2125
|
-
viewProjectLink: 'View project in HubSpot',
|
|
2125
|
+
viewProjectLink: (name, accountId) => (0, ui_1.uiLink)('View project in HubSpot', (0, urls_1.getProjectDetailUrl)(name, accountId) || ''),
|
|
2126
2126
|
viewTestAccountLink: 'View developer test account in HubSpot',
|
|
2127
2127
|
exitingStart: 'Stopping local dev server ...',
|
|
2128
2128
|
exitingSucceed: 'Successfully exited',
|
|
@@ -2131,29 +2131,51 @@ exports.lib = {
|
|
|
2131
2131
|
uploadWarning: {
|
|
2132
2132
|
appLabel: '[App]',
|
|
2133
2133
|
uiExtensionLabel: '[UI Extension]',
|
|
2134
|
-
missingComponents: missingComponents => `Couldn't find the following components in the deployed build for this project: ${chalk_1.default.bold(missingComponents)}. This may cause issues in local development.`,
|
|
2134
|
+
missingComponents: (missingComponents) => `Couldn't find the following components in the deployed build for this project: ${chalk_1.default.bold(missingComponents)}. This may cause issues in local development.`,
|
|
2135
2135
|
defaultWarning: chalk_1.default.bold('Changing project configuration requires a new project build.'),
|
|
2136
2136
|
defaultPublicAppWarning: (installCount, installText) => `${chalk_1.default.bold('Changing project configuration requires a new project build.')}\n\nThis will affect your public app's ${chalk_1.default.bold(`${installCount} existing ${installText}`)}. If your app has users in production, we strongly recommend creating a copy of this app to test your changes before proceding.`,
|
|
2137
|
-
header: warning => `${warning} To reflect these changes and continue testing:`,
|
|
2137
|
+
header: (warning) => `${warning} To reflect these changes and continue testing:`,
|
|
2138
|
+
instructionsHeader: 'To reflect these changes and continue testing:',
|
|
2138
2139
|
stopDev: ` * Stop ${(0, ui_1.uiCommandReference)('hs project dev')}`,
|
|
2139
|
-
runUpload: command => ` * Run ${command}`,
|
|
2140
|
+
runUpload: (command) => ` * Run ${command}`,
|
|
2140
2141
|
restartDev: ` * Re-run ${(0, ui_1.uiCommandReference)('hs project dev')}`,
|
|
2141
2142
|
pushToGithub: ' * Commit and push your changes to GitHub',
|
|
2142
2143
|
defaultMarketplaceAppWarning: (installCount, accountText) => `${chalk_1.default.bold('Changing project configuration requires creating a new project build.')}\n\nYour marketplace app is currently installed in ${chalk_1.default.bold(`${installCount} ${accountText}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
|
|
2143
2144
|
},
|
|
2144
2145
|
activeInstallWarning: {
|
|
2145
|
-
installCount: (appName, installCount
|
|
2146
|
+
installCount: (appName, installCount) => `${chalk_1.default.bold(`The app ${appName} is installed in ${installCount} production ${installCount === 1 ? 'account' : 'accounts'}`)}`,
|
|
2146
2147
|
explanation: 'Some changes made during local development may need to be synced to HubSpot, which will impact those existing installs. We strongly recommend creating a copy of this app to use instead.',
|
|
2147
2148
|
confirmation: `You will always be asked to confirm any permanent changes to your app's configuration before uploading them.`,
|
|
2148
2149
|
confirmationPrompt: `Proceed with local development of this ${chalk_1.default.bold('production')} app?`,
|
|
2149
2150
|
},
|
|
2150
2151
|
devServer: {
|
|
2151
|
-
cleanupError: message => `Failed to cleanup local dev server: ${message}`,
|
|
2152
|
-
setupError: message => `Failed to setup local dev server: ${message}`,
|
|
2153
|
-
startError: message => `Failed to start local dev server: ${message}`,
|
|
2154
|
-
fileChangeError: message => `Failed to notify local dev server of file change: ${message}`,
|
|
2152
|
+
cleanupError: (message) => `Failed to cleanup local dev server: ${message}`,
|
|
2153
|
+
setupError: (message) => `Failed to setup local dev server: ${message}`,
|
|
2154
|
+
startError: (message) => `Failed to start local dev server: ${message}`,
|
|
2155
|
+
fileChangeError: (message) => `Failed to notify local dev server of file change: ${message}`,
|
|
2155
2156
|
},
|
|
2156
2157
|
},
|
|
2158
|
+
AppDevModeInterface: {
|
|
2159
|
+
defaultMarketplaceAppWarning: (installCount) => `\n\nYour marketplace app is currently installed in ${chalk_1.default.bold(`${installCount} ${installCount === 1 ? 'account' : 'accounts'}`)}. Any uploaded changes will impact your app's users. We strongly recommend creating a copy of this app to test your changes before proceding.`,
|
|
2160
|
+
},
|
|
2161
|
+
LocalDevWebsocketServer: {
|
|
2162
|
+
errors: {
|
|
2163
|
+
notInitialized: (prefix) => `${prefix}Error: Attempted to access websocket before initialization`,
|
|
2164
|
+
missingTypeField: (data) => `Unsupported message received. Missing type field: ${data}`,
|
|
2165
|
+
unknownMessageType: (type) => `Unsupported message received. Unknown message type: ${type}`,
|
|
2166
|
+
invalidJSON: (data) => `Unsupported message received. Invalid JSON: ${data}`,
|
|
2167
|
+
portManagerNotRunning: (prefix) => `${prefix}Error: PortManagerServing must be running before starting LocalDevWebsocketServer.`,
|
|
2168
|
+
},
|
|
2169
|
+
logs: {
|
|
2170
|
+
startup: (port) => `LocalDevWebsocketServer running on port ${port}`,
|
|
2171
|
+
},
|
|
2172
|
+
},
|
|
2173
|
+
LocalDevProcess: {
|
|
2174
|
+
projectConfigMismatch: `Unable to upload project. The project config has been modified since starting ${(0, ui_1.uiCommandReference)('hs project dev')}.`,
|
|
2175
|
+
uploadInitiated: 'Project upload initiated from Local Dev UI.',
|
|
2176
|
+
uploadFailed: 'Project upload failed. To proceed with local development, fix any necessary errors, then re-upload your project.',
|
|
2177
|
+
uploadSuccess: 'Project upload completed successfully. Resuming local dev...',
|
|
2178
|
+
},
|
|
2157
2179
|
localDevHelpers: {
|
|
2158
2180
|
confirmDefaultAccountIsTarget: {
|
|
2159
2181
|
configError: `An error occurred while reading the default account from your config. Run ${(0, ui_1.uiCommandReference)('hs auth')} to re-auth this account`,
|
|
@@ -2211,7 +2233,7 @@ exports.lib = {
|
|
|
2211
2233
|
notFound: (projectName, accountIdentifier) => `Your project ${chalk_1.default.bold(projectName)} could not be found in ${chalk_1.default.bold(accountIdentifier)}.`,
|
|
2212
2234
|
},
|
|
2213
2235
|
pollFetchProject: {
|
|
2214
|
-
checkingProject: accountIdentifier => `Checking if project exists in ${accountIdentifier}`,
|
|
2236
|
+
checkingProject: (accountIdentifier) => `Checking if project exists in ${accountIdentifier}`,
|
|
2215
2237
|
},
|
|
2216
2238
|
logFeedbackMessage: {
|
|
2217
2239
|
feedbackHeader: "We'd love to hear your feedback!",
|
|
@@ -2222,15 +2244,15 @@ exports.lib = {
|
|
|
2222
2244
|
makePollTaskStatusFunc: {
|
|
2223
2245
|
errorSummary: 'See below for a summary of errors.',
|
|
2224
2246
|
componentCountSingular: 'Found 1 component in this project\n',
|
|
2225
|
-
componentCount: numComponents => `Found ${numComponents} components in this project\n`,
|
|
2247
|
+
componentCount: (numComponents) => `Found ${numComponents} components in this project\n`,
|
|
2226
2248
|
successStatusText: 'DONE',
|
|
2227
2249
|
failedStatusText: 'FAILED',
|
|
2228
|
-
errorFetchingTaskStatus: taskType => `Error fetching ${taskType} status`,
|
|
2250
|
+
errorFetchingTaskStatus: (taskType) => `Error fetching ${taskType} status`,
|
|
2229
2251
|
},
|
|
2230
|
-
pollBuildAutodeployStatusError: buildId => `Error fetching autodeploy status for build #${buildId}`,
|
|
2252
|
+
pollBuildAutodeployStatusError: (buildId) => `Error fetching autodeploy status for build #${buildId}`,
|
|
2231
2253
|
pollProjectBuildAndDeploy: {
|
|
2232
2254
|
buildSucceededAutomaticallyDeploying: (buildId, accountIdentifier) => `Build #${buildId} succeeded. ${chalk_1.default.bold('Automatically deploying')} to ${accountIdentifier}\n`,
|
|
2233
|
-
cleanedUpTempFile: path => `Cleaned up temporary file ${path}`,
|
|
2255
|
+
cleanedUpTempFile: (path) => `Cleaned up temporary file ${path}`,
|
|
2234
2256
|
viewDeploys: 'View all deploys for this project in HubSpot',
|
|
2235
2257
|
unableToFindAutodeployStatus: (buildId, viewDeploysLink) => `Unable to find the auto deploy for build #${buildId}. This deploy may have been skipped. ${viewDeploysLink}.`,
|
|
2236
2258
|
},
|
|
@@ -2243,10 +2265,10 @@ exports.lib = {
|
|
|
2243
2265
|
buildCreated: (projectName, buildId) => `Project "${projectName}" uploaded and build #${buildId} created`,
|
|
2244
2266
|
},
|
|
2245
2267
|
handleProjectUpload: {
|
|
2246
|
-
emptySource: srcDir => `Source directory "${srcDir}" is empty. Add files to your project and rerun ${(0, ui_1.uiCommandReference)('hs project upload')} to upload them to HubSpot.`,
|
|
2247
|
-
compressed: byteCount => `Project files compressed: ${byteCount} bytes`,
|
|
2248
|
-
compressing: path => `Compressing build files to "${path}"`,
|
|
2249
|
-
fileFiltered: filename => `Ignore rule triggered for "${filename}"`,
|
|
2268
|
+
emptySource: (srcDir) => `Source directory "${srcDir}" is empty. Add files to your project and rerun ${(0, ui_1.uiCommandReference)('hs project upload')} to upload them to HubSpot.`,
|
|
2269
|
+
compressed: (byteCount) => `Project files compressed: ${byteCount} bytes`,
|
|
2270
|
+
compressing: (path) => `Compressing build files to "${path}"`,
|
|
2271
|
+
fileFiltered: (filename) => `Ignore rule triggered for "${filename}"`,
|
|
2250
2272
|
},
|
|
2251
2273
|
},
|
|
2252
2274
|
boxen: {
|
|
@@ -2271,71 +2293,71 @@ exports.lib = {
|
|
|
2271
2293
|
featureKeys: {
|
|
2272
2294
|
accountOption: {
|
|
2273
2295
|
command: '--account',
|
|
2274
|
-
message: command => `Use the ${command} option with any command to override the default account`,
|
|
2296
|
+
message: (command) => `Use the ${command} option with any command to override the default account`,
|
|
2275
2297
|
},
|
|
2276
2298
|
accountsListCommand: {
|
|
2277
2299
|
command: 'hs accounts list',
|
|
2278
|
-
message: command => `Run ${command} to see a list of configured HubSpot accounts`,
|
|
2300
|
+
message: (command) => `Run ${command} to see a list of configured HubSpot accounts`,
|
|
2279
2301
|
},
|
|
2280
2302
|
accountsUseCommand: {
|
|
2281
2303
|
command: 'hs accounts use',
|
|
2282
|
-
message: command => `Run ${command} to set the Hubspot account that the CLI will target by default`,
|
|
2304
|
+
message: (command) => `Run ${command} to set the Hubspot account that the CLI will target by default`,
|
|
2283
2305
|
},
|
|
2284
2306
|
authCommand: {
|
|
2285
2307
|
command: 'hs auth',
|
|
2286
|
-
message: command => `Run ${command} to connect the CLI to additional HubSpot accounts`,
|
|
2308
|
+
message: (command) => `Run ${command} to connect the CLI to additional HubSpot accounts`,
|
|
2287
2309
|
},
|
|
2288
2310
|
feedbackCommand: {
|
|
2289
2311
|
command: 'hs feedback',
|
|
2290
|
-
message: command => `Run ${command} to report a bug or leave feedback`,
|
|
2312
|
+
message: (command) => `Run ${command} to report a bug or leave feedback`,
|
|
2291
2313
|
},
|
|
2292
2314
|
helpCommand: {
|
|
2293
2315
|
command: 'hs help',
|
|
2294
|
-
message: command => `Run ${command} to see a list of available commands`,
|
|
2316
|
+
message: (command) => `Run ${command} to see a list of available commands`,
|
|
2295
2317
|
},
|
|
2296
2318
|
projectCreateCommand: {
|
|
2297
2319
|
command: 'hs project create',
|
|
2298
|
-
message: command => `Run ${command} to create a new project`,
|
|
2320
|
+
message: (command) => `Run ${command} to create a new project`,
|
|
2299
2321
|
},
|
|
2300
2322
|
projectDeployCommand: {
|
|
2301
2323
|
command: 'hs project deploy',
|
|
2302
|
-
message: command => `Ready to take your project live? Run ${command}`,
|
|
2324
|
+
message: (command) => `Ready to take your project live? Run ${command}`,
|
|
2303
2325
|
},
|
|
2304
2326
|
projectHelpCommand: {
|
|
2305
2327
|
command: 'hs project --help',
|
|
2306
|
-
message: command => `Run ${command} to learn more about available project commands`,
|
|
2328
|
+
message: (command) => `Run ${command} to learn more about available project commands`,
|
|
2307
2329
|
},
|
|
2308
2330
|
projectUploadCommand: {
|
|
2309
2331
|
command: 'hs project upload',
|
|
2310
|
-
message: command => `Run ${command} to upload your project to HubSpot and trigger builds`,
|
|
2332
|
+
message: (command) => `Run ${command} to upload your project to HubSpot and trigger builds`,
|
|
2311
2333
|
},
|
|
2312
2334
|
projectDevCommand: {
|
|
2313
2335
|
command: 'hs project dev',
|
|
2314
|
-
message: command => `Run ${command} to set up your test environment and start local development`,
|
|
2336
|
+
message: (command) => `Run ${command} to set up your test environment and start local development`,
|
|
2315
2337
|
},
|
|
2316
2338
|
projectInstallDepsCommand: {
|
|
2317
2339
|
command: 'hs project install-deps',
|
|
2318
|
-
message: command => `Run ${command} to install dependencies for your project components`,
|
|
2340
|
+
message: (command) => `Run ${command} to install dependencies for your project components`,
|
|
2319
2341
|
},
|
|
2320
2342
|
sampleProjects: {
|
|
2321
2343
|
linkText: "HubSpot's sample projects",
|
|
2322
2344
|
url: 'https://developers.hubspot.com/docs/platform/sample-projects?utm_source=cli&utm_content=project_create_whats_next',
|
|
2323
|
-
message: link => `See ${link}`,
|
|
2345
|
+
message: (link) => `See ${link}`,
|
|
2324
2346
|
},
|
|
2325
2347
|
},
|
|
2326
2348
|
},
|
|
2327
2349
|
git: {
|
|
2328
2350
|
securityIssue: 'Security Issue Detected',
|
|
2329
2351
|
configFileTracked: 'The HubSpot config file can be tracked by git.',
|
|
2330
|
-
fileName: configPath => `File: "${configPath}"`,
|
|
2352
|
+
fileName: (configPath) => `File: "${configPath}"`,
|
|
2331
2353
|
remediate: 'To remediate:',
|
|
2332
|
-
moveConfig: homeDir => `- Move the config file to your home directory: '${homeDir}'`,
|
|
2333
|
-
addGitignore: configPath => `- Add gitignore pattern '${configPath}' to a .gitignore file in root of your repository.`,
|
|
2354
|
+
moveConfig: (homeDir) => `- Move the config file to your home directory: '${homeDir}'`,
|
|
2355
|
+
addGitignore: (configPath) => `- Add gitignore pattern '${configPath}' to a .gitignore file in root of your repository.`,
|
|
2334
2356
|
noRemote: '- Ensure that the config file has not already been pushed to a remote repository.',
|
|
2335
2357
|
checkFailed: 'Unable to determine if config file is properly ignored by git.',
|
|
2336
2358
|
},
|
|
2337
2359
|
serverlessFunctionLogs: {
|
|
2338
|
-
unableToProcessLog: log => `Unable to process log ${log}`,
|
|
2360
|
+
unableToProcessLog: (log) => `Unable to process log ${log}`,
|
|
2339
2361
|
noLogsFound: 'No logs found.',
|
|
2340
2362
|
},
|
|
2341
2363
|
},
|
|
@@ -2352,9 +2374,9 @@ exports.lib = {
|
|
|
2352
2374
|
},
|
|
2353
2375
|
modes: {
|
|
2354
2376
|
describe: {
|
|
2355
|
-
default: modes => `${modes}`,
|
|
2356
|
-
read: modes => `Read from ${modes}`,
|
|
2357
|
-
write: modes => `Write to ${modes}`,
|
|
2377
|
+
default: (modes) => `${modes}`,
|
|
2378
|
+
read: (modes) => `Read from ${modes}`,
|
|
2379
|
+
write: (modes) => `Write to ${modes}`,
|
|
2358
2380
|
},
|
|
2359
2381
|
},
|
|
2360
2382
|
qa: {
|
|
@@ -2374,33 +2396,33 @@ exports.lib = {
|
|
|
2374
2396
|
createNewDeveloperTestAccountOption: '<Test on a new developer test account>',
|
|
2375
2397
|
chooseDefaultAccountOption: () => `<${chalk_1.default.bold('❗')} Test on this production account ${chalk_1.default.bold('❗')}>`,
|
|
2376
2398
|
promptMessage: (accountType, accountIdentifier) => `[--account] Choose a ${accountType} under ${accountIdentifier} to test with:`,
|
|
2377
|
-
sandboxLimit: limit => `Your account reached the limit of ${limit} development sandboxes`,
|
|
2399
|
+
sandboxLimit: (limit) => `Your account reached the limit of ${limit} development sandboxes`,
|
|
2378
2400
|
sandboxLimitWithSuggestion: (limit, authCommand) => `Your account reached the limit of ${limit} development sandboxes. Run ${authCommand} to add an existing one to the config.`,
|
|
2379
|
-
developerTestAccountLimit: limit => `Your account reached the limit of ${limit} developer test accounts.`,
|
|
2401
|
+
developerTestAccountLimit: (limit) => `Your account reached the limit of ${limit} developer test accounts.`,
|
|
2380
2402
|
confirmDefaultAccount: (accountName, accountType) => `Continue testing on ${chalk_1.default.bold(`${accountName} (${accountType})`)}? (Y/n)`,
|
|
2381
|
-
confirmUseExistingDeveloperTestAccount: accountName => `Continue with ${accountName}? This account isn't currently connected to the HubSpot CLI. By continuing, you'll be prompted to generate a personal access key and connect it.`,
|
|
2403
|
+
confirmUseExistingDeveloperTestAccount: (accountName) => `Continue with ${accountName}? This account isn't currently connected to the HubSpot CLI. By continuing, you'll be prompted to generate a personal access key and connect it.`,
|
|
2382
2404
|
noAccountId: 'No account ID found for the selected account. Please try again.',
|
|
2383
2405
|
},
|
|
2384
2406
|
projectLogsPrompt: {
|
|
2385
|
-
functionName: projectName => `[--function] Select function in ${chalk_1.default.bold(projectName)} project`,
|
|
2407
|
+
functionName: (projectName) => `[--function] Select function in ${chalk_1.default.bold(projectName)} project`,
|
|
2386
2408
|
},
|
|
2387
2409
|
setAsDefaultAccountPrompt: {
|
|
2388
2410
|
setAsDefaultAccountMessage: 'Set this account as the default?',
|
|
2389
|
-
setAsDefaultAccount: accountName => `Account "${accountName}" set as the default account`,
|
|
2390
|
-
keepingCurrentDefault: accountName => `Account "${accountName}" will continue to be the default account`,
|
|
2411
|
+
setAsDefaultAccount: (accountName) => `Account "${accountName}" set as the default account`,
|
|
2412
|
+
keepingCurrentDefault: (accountName) => `Account "${accountName}" will continue to be the default account`,
|
|
2391
2413
|
},
|
|
2392
2414
|
accountNamePrompt: {
|
|
2393
2415
|
enterAccountName: 'Enter a unique name to reference this account in the CLI:',
|
|
2394
2416
|
enterDeveloperTestAccountName: 'Name your developer test account:',
|
|
2395
2417
|
enterStandardSandboxName: 'Name your standard sandbox:',
|
|
2396
2418
|
enterDevelopmentSandboxName: 'Name your development sandbox:',
|
|
2397
|
-
sandboxDefaultName: sandboxType => `New ${sandboxType} sandbox`,
|
|
2398
|
-
developerTestAccountDefaultName: count => `Developer test account ${count}`,
|
|
2419
|
+
sandboxDefaultName: (sandboxType) => `New ${sandboxType} sandbox`,
|
|
2420
|
+
developerTestAccountDefaultName: (count) => `Developer test account ${count}`,
|
|
2399
2421
|
errors: {
|
|
2400
2422
|
invalidName: 'You entered an invalid name. Please try again.',
|
|
2401
2423
|
nameRequired: 'The name may not be blank. Please try again.',
|
|
2402
2424
|
spacesInName: 'The name may not contain spaces. Please try again.',
|
|
2403
|
-
accountNameExists: name => `Account with name "${name}" already exists in the CLI config, please enter a different name.`,
|
|
2425
|
+
accountNameExists: (name) => `Account with name "${name}" already exists in the CLI config, please enter a different name.`,
|
|
2404
2426
|
},
|
|
2405
2427
|
},
|
|
2406
2428
|
personalAccessKeyPrompt: {
|
|
@@ -2413,7 +2435,7 @@ exports.lib = {
|
|
|
2413
2435
|
personalAccessKeyBrowserOpenPrep: "A personal access key is required to authenticate the CLI to interact with your HubSpot account. We'll open a secure page in your default browser where you can view and copy your personal access key.",
|
|
2414
2436
|
personalAccessKeyBrowserOpenPrompt: 'Open HubSpot to copy your personal access key?',
|
|
2415
2437
|
logs: {
|
|
2416
|
-
openingWebBrowser: url => `Opening ${url} in your web browser`,
|
|
2438
|
+
openingWebBrowser: (url) => `Opening ${url} in your web browser`,
|
|
2417
2439
|
},
|
|
2418
2440
|
errors: {
|
|
2419
2441
|
invalidAccountId: 'You did not enter a valid account ID. Please try again.',
|
|
@@ -2469,19 +2491,19 @@ exports.lib = {
|
|
|
2469
2491
|
destRequired: 'A project dest is required',
|
|
2470
2492
|
invalidDest: 'There is an existing project at this destination. Please provide a new path for this project.',
|
|
2471
2493
|
invalidCharacters: 'The selected destination contains invalid characters. Please provide a new path and try again.',
|
|
2472
|
-
invalidTemplate: template => `[--template] Could not find template "${template}". Please choose an available template:`,
|
|
2494
|
+
invalidTemplate: (template) => `[--template] Could not find template "${template}". Please choose an available template:`,
|
|
2473
2495
|
projectTemplateRequired: 'Project template is required when projectTemplates is provided',
|
|
2474
2496
|
},
|
|
2475
2497
|
},
|
|
2476
2498
|
selectPublicAppPrompt: {
|
|
2477
|
-
selectAppIdMigrate: accountName => `[--appId] Choose an app under ${accountName} to migrate:`,
|
|
2478
|
-
selectAppIdClone: accountName => `[--appId] Choose an app under ${accountName} to clone:`,
|
|
2499
|
+
selectAppIdMigrate: (accountName) => `[--appId] Choose an app under ${accountName} to migrate:`,
|
|
2500
|
+
selectAppIdClone: (accountName) => `[--appId] Choose an app under ${accountName} to clone:`,
|
|
2479
2501
|
errors: {
|
|
2480
2502
|
noAccountId: 'An account ID is required to select an app.',
|
|
2481
2503
|
noAppsMigration: () => `${chalk_1.default.bold('No apps to migrate')}`,
|
|
2482
2504
|
noAppsClone: () => `${chalk_1.default.bold('No apps to clone')}`,
|
|
2483
|
-
noAppsMigrationMessage: accountName => `The selected developer account ${chalk_1.default.bold(accountName)} doesn't have any apps that can be migrated to the projects framework.`,
|
|
2484
|
-
noAppsCloneMessage: accountName => `The selected developer account ${chalk_1.default.bold(accountName)} doesn't have any apps that can be cloned to the projects framework.`,
|
|
2505
|
+
noAppsMigrationMessage: (accountName) => `The selected developer account ${chalk_1.default.bold(accountName)} doesn't have any apps that can be migrated to the projects framework.`,
|
|
2506
|
+
noAppsCloneMessage: (accountName) => `The selected developer account ${chalk_1.default.bold(accountName)} doesn't have any apps that can be cloned to the projects framework.`,
|
|
2485
2507
|
errorFetchingApps: 'There was an error fetching public apps.',
|
|
2486
2508
|
cannotBeMigrated: 'Cannot be migrated',
|
|
2487
2509
|
},
|
|
@@ -2498,7 +2520,7 @@ exports.lib = {
|
|
|
2498
2520
|
enterName: '[--name] Give your component a name: ',
|
|
2499
2521
|
errors: {
|
|
2500
2522
|
nameRequired: 'A component name is required',
|
|
2501
|
-
invalidType: type => `[--type] Could not find type "${type}". Please choose an available type:`,
|
|
2523
|
+
invalidType: (type) => `[--type] Could not find type "${type}". Please choose an available type:`,
|
|
2502
2524
|
},
|
|
2503
2525
|
},
|
|
2504
2526
|
secretPrompt: {
|
|
@@ -2526,7 +2548,7 @@ exports.lib = {
|
|
|
2526
2548
|
srcRequired: 'You must specify a source directory.',
|
|
2527
2549
|
destRequired: 'You must specify a destination directory.',
|
|
2528
2550
|
},
|
|
2529
|
-
fieldsPrompt: dir => `Multiple fields files located in "${dir}". Please choose which to upload: `,
|
|
2551
|
+
fieldsPrompt: (dir) => `Multiple fields files located in "${dir}". Please choose which to upload: `,
|
|
2530
2552
|
},
|
|
2531
2553
|
projectNamePrompt: {
|
|
2532
2554
|
enterName: '[--project] Enter project name:',
|
|
@@ -2555,8 +2577,8 @@ exports.lib = {
|
|
|
2555
2577
|
selectTable: 'Select a HubDB table:',
|
|
2556
2578
|
enterDest: 'Enter the destination path:',
|
|
2557
2579
|
errors: {
|
|
2558
|
-
noTables: accountId => `No HubDB tables found in account ${accountId}`,
|
|
2559
|
-
errorFetchingTables: accountId => `Unable to fetch HubDB tables in account ${accountId}`,
|
|
2580
|
+
noTables: (accountId) => `No HubDB tables found in account ${accountId}`,
|
|
2581
|
+
errorFetchingTables: (accountId) => `Unable to fetch HubDB tables in account ${accountId}`,
|
|
2560
2582
|
destRequired: 'A destination is required',
|
|
2561
2583
|
invalidDest: 'The selected destination already exists. Please provide a new path.',
|
|
2562
2584
|
invalidCharacters: 'The selected destination contains invalid characters. Please provide a new path and try again.',
|
|
@@ -2578,8 +2600,8 @@ exports.lib = {
|
|
|
2578
2600
|
developerTestAccount: {
|
|
2579
2601
|
create: {
|
|
2580
2602
|
loading: {
|
|
2581
|
-
add: accountName => `Creating developer test account ${chalk_1.default.bold(accountName)}`,
|
|
2582
|
-
fail: accountName => `Failed to create a developer test account ${chalk_1.default.bold(accountName)}.`,
|
|
2603
|
+
add: (accountName) => `Creating developer test account ${chalk_1.default.bold(accountName)}`,
|
|
2604
|
+
fail: (accountName) => `Failed to create a developer test account ${chalk_1.default.bold(accountName)}.`,
|
|
2583
2605
|
succeed: (accountName, accountId) => `Successfully created a developer test account ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
|
|
2584
2606
|
},
|
|
2585
2607
|
success: {
|
|
@@ -2600,8 +2622,8 @@ exports.lib = {
|
|
|
2600
2622
|
create: {
|
|
2601
2623
|
developer: {
|
|
2602
2624
|
loading: {
|
|
2603
|
-
add: accountName => `Creating developer sandbox ${chalk_1.default.bold(accountName)}`,
|
|
2604
|
-
fail: accountName => `Failed to create a developer sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
2625
|
+
add: (accountName) => `Creating developer sandbox ${chalk_1.default.bold(accountName)}`,
|
|
2626
|
+
fail: (accountName) => `Failed to create a developer sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
2605
2627
|
succeed: (accountName, accountId) => `Successfully created a developer sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
|
|
2606
2628
|
},
|
|
2607
2629
|
success: {
|
|
@@ -2620,8 +2642,8 @@ exports.lib = {
|
|
|
2620
2642
|
},
|
|
2621
2643
|
standard: {
|
|
2622
2644
|
loading: {
|
|
2623
|
-
add: accountName => `Creating standard sandbox ${chalk_1.default.bold(accountName)}`,
|
|
2624
|
-
fail: accountName => `Failed to create a standard sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
2645
|
+
add: (accountName) => `Creating standard sandbox ${chalk_1.default.bold(accountName)}`,
|
|
2646
|
+
fail: (accountName) => `Failed to create a standard sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
2625
2647
|
succeed: (accountName, accountId) => `Successfully created a standard sandbox ${chalk_1.default.bold(accountName)} with portalId ${chalk_1.default.bold(accountId)}.`,
|
|
2626
2648
|
},
|
|
2627
2649
|
success: {
|
|
@@ -2640,9 +2662,9 @@ exports.lib = {
|
|
|
2640
2662
|
},
|
|
2641
2663
|
sync: {
|
|
2642
2664
|
loading: {
|
|
2643
|
-
add: accountName => `Syncing sandbox ${chalk_1.default.bold(accountName)}`,
|
|
2644
|
-
fail: accountName => `Failed to sync sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
2645
|
-
succeed: accountName => `Successfully synced sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
2665
|
+
add: (accountName) => `Syncing sandbox ${chalk_1.default.bold(accountName)}`,
|
|
2666
|
+
fail: (accountName) => `Failed to sync sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
2667
|
+
succeed: (accountName) => `Successfully synced sandbox ${chalk_1.default.bold(accountName)}.`,
|
|
2646
2668
|
},
|
|
2647
2669
|
success: {
|
|
2648
2670
|
configFileUpdated: (accountName, authType) => `Account "${accountName}" updated using "${authType}"`,
|
|
@@ -2658,27 +2680,27 @@ exports.lib = {
|
|
|
2658
2680
|
},
|
|
2659
2681
|
errorHandlers: {
|
|
2660
2682
|
index: {
|
|
2661
|
-
errorOccurred: error => `Error: ${error}`,
|
|
2662
|
-
errorContext: context => `Context: ${context}`,
|
|
2663
|
-
errorCause: cause => `Cause: ${cause}`,
|
|
2683
|
+
errorOccurred: (error) => `Error: ${error}`,
|
|
2684
|
+
errorContext: (context) => `Context: ${context}`,
|
|
2685
|
+
errorCause: (cause) => `Cause: ${cause}`,
|
|
2664
2686
|
unknownErrorOccurred: 'An unknown error has occurred.',
|
|
2665
2687
|
},
|
|
2666
2688
|
suppressErrors: {
|
|
2667
2689
|
platformVersionErrors: {
|
|
2668
2690
|
header: 'Platform version update required',
|
|
2669
|
-
unspecifiedPlatformVersion: platformVersion => `Projects with an ${chalk_1.default.bold(platformVersion)} are no longer supported.`,
|
|
2670
|
-
platformVersionRetired: platformVersion => `Projects with ${chalk_1.default.bold(`platformVersion ${platformVersion}`)} are no longer supported.`,
|
|
2671
|
-
nonExistentPlatformVersion: platformVersion => `Projects with ${chalk_1.default.bold(`platformVersion ${platformVersion}`)} are not supported.`,
|
|
2691
|
+
unspecifiedPlatformVersion: (platformVersion) => `Projects with an ${chalk_1.default.bold(platformVersion)} are no longer supported.`,
|
|
2692
|
+
platformVersionRetired: (platformVersion) => `Projects with ${chalk_1.default.bold(`platformVersion ${platformVersion}`)} are no longer supported.`,
|
|
2693
|
+
nonExistentPlatformVersion: (platformVersion) => `Projects with ${chalk_1.default.bold(`platformVersion ${platformVersion}`)} are not supported.`,
|
|
2672
2694
|
updateProject: 'Please update your project to the latest version and try again.',
|
|
2673
2695
|
docsLink: 'Projects platform versioning (BETA)',
|
|
2674
|
-
betaLink: docsLink => `For more info, see ${docsLink}.`,
|
|
2696
|
+
betaLink: (docsLink) => `For more info, see ${docsLink}.`,
|
|
2675
2697
|
},
|
|
2676
2698
|
missingScopeError: (request, accountName, authCommand) => `Couldn't execute the ${request} because the access key for ${accountName} is missing required scopes. To update scopes, run ${authCommand}. Then deactivate the existing key and generate a new one that includes the missing scopes.`,
|
|
2677
2699
|
},
|
|
2678
2700
|
},
|
|
2679
2701
|
serverless: {
|
|
2680
2702
|
verifyAccessKeyAndUserAccess: {
|
|
2681
|
-
fetchScopeDataError: scopeGroup => `Error verifying access of scopeGroup ${scopeGroup}:`,
|
|
2703
|
+
fetchScopeDataError: (scopeGroup) => `Error verifying access of scopeGroup ${scopeGroup}:`,
|
|
2682
2704
|
portalMissingScope: 'Your account does not have access to this action. Talk to an account admin to request it.',
|
|
2683
2705
|
userMissingScope: "You don't have access to this action. Ask an account admin to change your permissions in Users & Teams settings.",
|
|
2684
2706
|
genericMissingScope: 'Your access key does not allow this action. Please generate a new access key by running `hs auth personalaccesskey`.',
|
|
@@ -2690,49 +2712,49 @@ exports.lib = {
|
|
|
2690
2712
|
accountChecks: {
|
|
2691
2713
|
active: 'Default account active',
|
|
2692
2714
|
inactive: "Default account isn't active",
|
|
2693
|
-
inactiveSecondary: command => `Run ${command} to remove inactive accounts from your CLI config`,
|
|
2715
|
+
inactiveSecondary: (command) => `Run ${command} to remove inactive accounts from your CLI config`,
|
|
2694
2716
|
unableToDetermine: 'Unable to determine if the portal is active',
|
|
2695
2717
|
pak: {
|
|
2696
2718
|
incomplete: 'Personal access key is valid, but there are more scopes available to your user that are not included in your key.',
|
|
2697
2719
|
incompleteSecondary: (command, link) => `To add the available scopes, run ${command} and re-authenticate your account with a new key that has those scopes. Visit HubSpot to view selected and available scopes for your personal access key. ${link}`,
|
|
2698
2720
|
invalid: 'Personal access key is invalid',
|
|
2699
|
-
invalidSecondary: command => `To get a new key, run ${command}, deactivate your access key, and generate a new one. Then use that new key to authenticate your account.`,
|
|
2700
|
-
valid: link => `Personal Access Key is valid. ${link}`,
|
|
2721
|
+
invalidSecondary: (command) => `To get a new key, run ${command}, deactivate your access key, and generate a new one. Then use that new key to authenticate your account.`,
|
|
2722
|
+
valid: (link) => `Personal Access Key is valid. ${link}`,
|
|
2701
2723
|
viewScopes: 'View selected scopes',
|
|
2702
2724
|
},
|
|
2703
2725
|
},
|
|
2704
2726
|
nodeChecks: {
|
|
2705
2727
|
unableToDetermine: 'Unable to determine what version of node is installed',
|
|
2706
|
-
minimumNotMet: nodeVersion => `Minimum Node version is not met. Upgrade to ${nodeVersion} or higher`,
|
|
2707
|
-
success: nodeVersion => `node v${nodeVersion} is installed`,
|
|
2728
|
+
minimumNotMet: (nodeVersion) => `Minimum Node version is not met. Upgrade to ${nodeVersion} or higher`,
|
|
2729
|
+
success: (nodeVersion) => `node v${nodeVersion} is installed`,
|
|
2708
2730
|
},
|
|
2709
2731
|
npmChecks: {
|
|
2710
2732
|
notInstalled: 'npm is not installed',
|
|
2711
|
-
installed: npmVersion => `npm v${npmVersion} is installed`,
|
|
2733
|
+
installed: (npmVersion) => `npm v${npmVersion} is installed`,
|
|
2712
2734
|
unableToDetermine: 'Unable to determine if npm is installed',
|
|
2713
2735
|
},
|
|
2714
2736
|
hsChecks: {
|
|
2715
|
-
notLatest: hsVersion => `Version ${hsVersion} outdated`,
|
|
2737
|
+
notLatest: (hsVersion) => `Version ${hsVersion} outdated`,
|
|
2716
2738
|
notLatestSecondary: (command, hsVersion) => `Run ${command} to upgrade to the latest version ${hsVersion}`,
|
|
2717
|
-
latest: hsVersion => `HubSpot CLI v${hsVersion} up to date`,
|
|
2739
|
+
latest: (hsVersion) => `HubSpot CLI v${hsVersion} up to date`,
|
|
2718
2740
|
unableToDetermine: 'Unable to determine if HubSpot CLI is up to date.',
|
|
2719
2741
|
unableToDetermineSecondary: (command, link) => `Run ${command} to check your installed version; then visit the ${link} to validate whether you have the latest version`,
|
|
2720
2742
|
unableToDetermineSecondaryLink: 'npm HubSpot CLI version history',
|
|
2721
2743
|
},
|
|
2722
2744
|
projectDependenciesChecks: {
|
|
2723
|
-
missingDependencies: dir => `missing dependencies in ${chalk_1.default.bold(dir)}`,
|
|
2724
|
-
missingDependenciesSecondary: command => `Run ${command} to install all project dependencies locally`,
|
|
2725
|
-
unableToDetermine: dir => `Unable to determine if dependencies are installed ${dir}`,
|
|
2745
|
+
missingDependencies: (dir) => `missing dependencies in ${chalk_1.default.bold(dir)}`,
|
|
2746
|
+
missingDependenciesSecondary: (command) => `Run ${command} to install all project dependencies locally`,
|
|
2747
|
+
unableToDetermine: (dir) => `Unable to determine if dependencies are installed ${dir}`,
|
|
2726
2748
|
success: 'App dependencies are installed and up to date',
|
|
2727
2749
|
},
|
|
2728
2750
|
files: {
|
|
2729
|
-
invalidJson: filename => `invalid JSON in ${chalk_1.default.bold(filename)}`,
|
|
2751
|
+
invalidJson: (filename) => `invalid JSON in ${chalk_1.default.bold(filename)}`,
|
|
2730
2752
|
validJson: 'JSON files valid',
|
|
2731
2753
|
},
|
|
2732
2754
|
port: {
|
|
2733
|
-
inUse: port => `Port ${port} is in use`,
|
|
2734
|
-
inUseSecondary: command => `Make sure it is available before running ${command}`,
|
|
2735
|
-
available: port => `Port ${port} available for local development`,
|
|
2755
|
+
inUse: (port) => `Port ${port} is in use`,
|
|
2756
|
+
inUseSecondary: (command) => `Make sure it is available before running ${command}`,
|
|
2757
|
+
available: (port) => `Port ${port} available for local development`,
|
|
2736
2758
|
},
|
|
2737
2759
|
diagnosis: {
|
|
2738
2760
|
cli: {
|
|
@@ -2740,19 +2762,19 @@ exports.lib = {
|
|
|
2740
2762
|
},
|
|
2741
2763
|
cliConfig: {
|
|
2742
2764
|
header: 'CLI configuration',
|
|
2743
|
-
configFileSubHeader: filename => `Config File: ${chalk_1.default.bold(filename)}`,
|
|
2744
|
-
defaultAccountSubHeader: accountDetails => `Default Account: ${accountDetails}`,
|
|
2765
|
+
configFileSubHeader: (filename) => `Config File: ${chalk_1.default.bold(filename)}`,
|
|
2766
|
+
defaultAccountSubHeader: (accountDetails) => `Default Account: ${accountDetails}`,
|
|
2745
2767
|
noConfigFile: 'CLI configuration not found',
|
|
2746
|
-
noConfigFileSecondary: command => `Run ${command} and follow the prompts to create your CLI configuration file and connect it to your HubSpot account`,
|
|
2768
|
+
noConfigFileSecondary: (command) => `Run ${command} and follow the prompts to create your CLI configuration file and connect it to your HubSpot account`,
|
|
2747
2769
|
},
|
|
2748
2770
|
projectConfig: {
|
|
2749
2771
|
header: 'Project configuration',
|
|
2750
|
-
projectDirSubHeader: projectDir => `Project dir: ${chalk_1.default.bold(projectDir)}`,
|
|
2751
|
-
projectNameSubHeader: projectName => `Project name: ${chalk_1.default.bold(projectName)}`,
|
|
2772
|
+
projectDirSubHeader: (projectDir) => `Project dir: ${chalk_1.default.bold(projectDir)}`,
|
|
2773
|
+
projectNameSubHeader: (projectName) => `Project name: ${chalk_1.default.bold(projectName)}`,
|
|
2752
2774
|
},
|
|
2753
2775
|
counts: {
|
|
2754
|
-
errors: count => `${chalk_1.default.bold('Errors:')} ${count}`,
|
|
2755
|
-
warnings: count => `${chalk_1.default.bold('Warning:')} ${count}`,
|
|
2776
|
+
errors: (count) => `${chalk_1.default.bold('Errors:')} ${count}`,
|
|
2777
|
+
warnings: (count) => `${chalk_1.default.bold('Warning:')} ${count}`,
|
|
2756
2778
|
},
|
|
2757
2779
|
},
|
|
2758
2780
|
},
|
|
@@ -2760,8 +2782,8 @@ exports.lib = {
|
|
|
2760
2782
|
missingClientId: 'Error building oauth URL: missing client ID.',
|
|
2761
2783
|
},
|
|
2762
2784
|
migrate: {
|
|
2763
|
-
componentsToBeMigrated: components => `The following features will be migrated: ${components}`,
|
|
2764
|
-
componentsThatWillNotBeMigrated: components => `[NOTE] These features are not yet supported for migration but will be available later: ${components}`,
|
|
2785
|
+
componentsToBeMigrated: (components) => `The following features will be migrated: ${components}`,
|
|
2786
|
+
componentsThatWillNotBeMigrated: (components) => `[NOTE] These features are not yet supported for migration but will be available later: ${components}`,
|
|
2765
2787
|
sourceContentsMoved: (newLocation) => `The contents of your old source directory have been moved to ${newLocation}, move any required files to the new source directory.`,
|
|
2766
2788
|
projectMigrationWarningTitle: '⚠️ Important: Migrating to platformVersion 2025.2 is irreversible ⚠️',
|
|
2767
2789
|
projectMigrationWarning: (0, ui_1.uiBetaTag)(`Running the ${(0, ui_1.uiCommandReference)('hs project migrate')} command will permanently upgrade your project to platformVersion 2025.2. This action cannot be undone. To ensure you have access to your original files, they will be copied to a new directory (archive) for safekeeping.\n\nThis command will guide you through the process, prompting you to enter the required fields and will download the new project source code into your project source directory.`, false),
|
|
@@ -2770,7 +2792,7 @@ exports.lib = {
|
|
|
2770
2792
|
invalidConfig: 'The project configuration file is invalid. Please check the config file and try again.',
|
|
2771
2793
|
doesNotExist: (account) => `Project does not exist in ${(0, ui_1.uiAccountDescription)(account)}. Migrations are only supported for existing projects.`,
|
|
2772
2794
|
multipleApps: 'Multiple apps found in project, this is not allowed in 2025.2',
|
|
2773
|
-
alreadyExists: projectName => `A project with name ${projectName} already exists. Please choose another name.`,
|
|
2795
|
+
alreadyExists: (projectName) => `A project with name ${projectName} already exists. Please choose another name.`,
|
|
2774
2796
|
},
|
|
2775
2797
|
unmigratableReasons: {
|
|
2776
2798
|
upToDate: 'App is already up to date',
|
|
@@ -2778,21 +2800,21 @@ exports.lib = {
|
|
|
2778
2800
|
listedInMarketplace: 'Listed apps are not currently migratable',
|
|
2779
2801
|
projectConnectedToGitHub: (projectName, accountId) => `The project is linked to a GitHub repository. ${(0, ui_1.uiLink)('Visit the project settings page to unlink it', (0, urls_1.getProjectSettingsUrl)(projectName, accountId))}`,
|
|
2780
2802
|
partOfProjectAlready: `This app is part of a project, run ${(0, ui_1.uiCommandReference)('hs project migrate')} from the project directory to migrate it`,
|
|
2781
|
-
generic: reasonCode => `Unable to migrate app: ${reasonCode}`,
|
|
2803
|
+
generic: (reasonCode) => `Unable to migrate app: ${reasonCode}`,
|
|
2782
2804
|
},
|
|
2783
2805
|
noAppsEligible: (accountId, reasons) => `No apps in account ${accountId} are currently migratable${reasons.length ? `\n - ${reasons.join('\n - ')}` : ''}`,
|
|
2784
2806
|
invalidAccountTypeTitle: `${chalk_1.default.bold('Developer account not targeted')}`,
|
|
2785
2807
|
invalidAccountTypeDescription: (useCommand, authCommand) => `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.`,
|
|
2786
|
-
appWithAppIdNotFound: appId => `Could not find an app with the id ${appId} `,
|
|
2808
|
+
appWithAppIdNotFound: (appId) => `Could not find an app with the id ${appId} `,
|
|
2787
2809
|
noAppsForProject: (projectName) => `No apps associated with project ${projectName}`,
|
|
2788
2810
|
migrationFailed: 'Migration Failed',
|
|
2789
|
-
notUngatedForUnifiedApps: account => `Your account ${account} isn't enrolled in the required product beta to access this command.`,
|
|
2811
|
+
notUngatedForUnifiedApps: (account) => `Your account ${account} isn't enrolled in the required product beta to access this command.`,
|
|
2790
2812
|
},
|
|
2791
2813
|
prompt: {
|
|
2792
2814
|
chooseApp: 'Which app would you like to migrate?',
|
|
2793
2815
|
inputName: '[--name] What would you like to name the project?',
|
|
2794
2816
|
inputDest: '[--dest] Where would you like to save the project?',
|
|
2795
|
-
uidForComponent: componentName => `What UID would you like to use for ${componentName}?`,
|
|
2817
|
+
uidForComponent: (componentName) => `What UID would you like to use for ${componentName}?`,
|
|
2796
2818
|
proceed: 'Would you like to proceed?',
|
|
2797
2819
|
},
|
|
2798
2820
|
spinners: {
|