Skip to content

Commit af8818e

Browse files
author
naman-contentstack
committed
Merge branch 'development' into fix/DX-8587
2 parents 08b53a9 + b894e01 commit af8818e

74 files changed

Lines changed: 1992 additions & 1606 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/issues-jira.yml

Lines changed: 0 additions & 118 deletions
This file was deleted.

.talismanrc

Lines changed: 72 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,74 @@
11
fileignoreconfig:
2-
- filename: pnpm-lock.yaml
3-
checksum: 07642e8dd04d580185a459e5b088d8a1bb4e91be4e04f4842bf4fe4775205bf6
4-
- filename: packages/contentstack-export/src/config/index.ts
5-
checksum: 6fa4bba2174bbf33f5611098f49a02bf2fc789f59634e99be58de7e370f5fcd3
2+
- filename: pnpm-lock.yaml
3+
checksum: cb3710ff4c9d3b8f45a8f0b3ff868d49451872ac6d085ae3ccf83d31055cf50d
4+
- filename: packages/contentstack-bulk-operations/src/messages/index.ts
5+
checksum: 097f7ed876622aed6edc3f12995a92e219f96c3d053ec078d45c762f7ebe085e
6+
- filename: packages/contentstack-bulk-operations/test/unit/base-bulk-command.test.ts
7+
checksum: 522b91a2d4bb6a73ebe5ab92c0111e74d567c4360470beefd6a7ca8d30a6e311
8+
- filename: packages/contentstack-import/test/unit/import/modules/assets.test.ts
9+
checksum: 64e3af1e307d0f001370870267fa4cedd2ae81d0f3c38c2e184e69a9a68b2b30
10+
- filename: packages/contentstack-query-export/test/unit/common-helper.test.ts
11+
checksum: a0aa399a2ec15760fe25f7e952d64792b55d3c38d2281858a48e64f0f9081344
12+
- filename: packages/contentstack-import/test/unit/utils/interactive.test.ts
13+
checksum: dad20e229e02e847b5e939fdaf987b1a6c9ff4e1529b6d96a51130f7293285a9
14+
- filename: packages/contentstack-import/test/unit/utils/common-helper.test.ts
15+
checksum: 12c8161a1cb313fa98b612d72e605f6e5190b9f9561d6e73c269c7d106e1a196
16+
- filename: packages/contentstack-apps-cli/src/messages/index.ts
17+
checksum: 5d7991adb5056a14359c5a43db995460a72234916138dbc5ec14f726faf0054b
18+
- filename: packages/contentstack-import/test/unit/utils/marketplace-app-helper.test.ts
19+
checksum: 878be77164311c0ab86629fe18fd3d1be7ff187447e4e5ab65a241b3be0a8d24
20+
- filename: packages/contentstack-import/test/unit/import/modules/global-fields.test.ts
21+
checksum: 4bd86f40b28433470eea876acc9254042c3b24556acdfdb7b15375a948acc094
22+
- filename: packages/contentstack-import/test/unit/import/modules/base-class.test.ts
23+
checksum: 7616f13a4c908eead76c1625cb146320a8a23f31732acb2ea8472e2e0a8b2692
24+
- filename: packages/contentstack-import/test/unit/import/modules/entries.test.ts
25+
checksum: 02332fc203e92039b5fcab6e2e14d14ea5444a4cba2be853009b4c4994692637
26+
- filename: packages/contentstack-import/test/unit/import/modules/index.test.ts
27+
checksum: 6c2bc4bb09dc750532e84a2d6a8198e145bd142bc21ce0d97ae0c8da55dea723
28+
- filename: packages/contentstack-import/test/unit/commands/cm/stacks/import.test.ts
29+
checksum: a52fbd82e4296734d5eb5b06cc9a10d7e2c1fe7b58d15a44d3246f0f2762d5a1
30+
- filename: packages/contentstack-migrate-rte/test/utils/index.js
31+
checksum: f67235e607a446e5b2dd624046966a1ac5af7bce128aa080ec3c420c48b8bddc
32+
- filename: packages/contentstack-bulk-operations/test/unit/utils/config-builder.test.ts
33+
checksum: e5891257999e9e940956ca77f5a7834be35d259edccd41c06f77736194ad7454
34+
- filename: packages/contentstack-import/test/unit/import/modules/content-types.test.ts
35+
checksum: cd47b1694cb1edffb11fed0f2024fac631b0279ebf55113510d9121c4b957ab1
36+
- filename: packages/contentstack-bulk-operations/test/unit/utils/bulk-operation-log-handler.test.ts
37+
checksum: 8698f77bbb828df10ddc3a94726076a262fbf47d2468233c7e10e66cac42f97d
38+
- filename: packages/contentstack-migrate-rte/test/commands/json-migration.test.js
39+
checksum: 0d18641a32f7cf33d013a5a7c447c1067ba77022513b42304a727f873c741e99
40+
- filename: packages/contentstack-export/test/unit/utils/interactive.test.ts
41+
checksum: 0ea47db305f576c8c9da8cb34ae915f6b01992208ff1c4380cb7ffd93f538e5d
42+
- filename: packages/contentstack-clone/test/lib/helpers/command-helpers.test.ts
43+
checksum: 32d385a677a76faa54cb3ddfe92fb1f1f53cfab878a78e2792c823a363956bd2
44+
- filename: packages/contentstack-export-to-csv/src/messages/index.ts
45+
checksum: 54cbfb3fb83d06ce46766897066ace927c190b2383154b45423e668f63fa4392
46+
- filename: packages/contentstack-clone/test/commands/stack-clone.test.ts
47+
checksum: 4547ba010cc3c9954de49e2b2bef45288dd070c4ad000b6ae3e9a8c9bb1ad296
48+
- filename: packages/contentstack-content-type/tests/utils/index.test.ts
49+
checksum: 8510fedf5eb6078c27d6a0d65d8bff4aa2d41b545246aed220d1a6a643188ad8
50+
- filename: packages/contentstack-bulk-operations/test/unit/utils/revert-retry-handler.test.ts
51+
checksum: c34a4bdea186f4ce48171d90b8ab0f1c94162e441acb23e3a0e00cb9f9f9255f
52+
- filename: packages/contentstack-export-to-csv/test/unit/utils/error-handler.test.ts
53+
checksum: 7216dd610334e6f4a0e2701712408a273a5a2bd4a5ec30b6d6aae043e2b53cc8
54+
- filename: packages/contentstack-export/test/unit/utils/marketplace-app-helper.test.ts
55+
checksum: 3734c4cf7145ef32ad424ccbc160ea8be9b38157762aa66ade51879ab369cee9
56+
- filename: packages/contentstack-import-setup/test/unit/common-helper.test.ts
57+
checksum: 7ac4645401fd3629347a8a182f8a320f177de545a96b8027422bd68040513068
58+
- filename: packages/contentstack-export/test/unit/utils/common-helper.test.ts
59+
checksum: 928f173ca03855a516ac468dba84092fd5f66d2e41b0100bb548e0af364a4ef5
60+
- filename: packages/contentstack-export/test/unit/utils/export-config-handler.test.ts
61+
checksum: 0e7777f73da4f41f4e01e768dba1f3f62ab36778c4f9cd0b519fd1e3bb5c410f
62+
- filename: packages/contentstack-clone/test/lib/util/clone-handler.branch.test.ts
63+
checksum: db8c090aaada21d3952c5bc382228a0a11cebb63926512a5e2581bdaf5f4c2f6
64+
- filename: packages/contentstack-import-setup/test/unit/login-handler.test.ts
65+
checksum: fa7cb2aeb0873e5650beed42096ef4a8edd012a7217818ab0cab2ba6c4611934
66+
- filename: packages/contentstack-import/test/unit/import/modules/marketplace-apps.test.ts
67+
checksum: 42f4d0a15080a69423d4e82b11a6a1933c5f72930cdc4a55b86f27fdc980aeea
68+
- filename: packages/contentstack-import/test/unit/utils/login-handler.test.ts
69+
checksum: 49dd751f846f50fe00d60e7f02b5bd237d36480048bf5e06a24f1cf9fe752a1b
70+
- filename: packages/contentstack-content-type/tests/core/command.test.ts
71+
checksum: 81da32fc47083a3421f5f1d9c04149ab313cb238d6416d3182f8b6d64dc8827d
72+
- filename: packages/contentstack-content-type/tests/core/contentstack/client.test.ts
73+
checksum: da15b04aa0a7ab0e48f70b847e68c05372943279e51c22f8539b01bb48033183
674
version: '1.0'

packages/contentstack-apps-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/apps-cli",
3-
"version": "1.7.1",
3+
"version": "1.7.2",
44
"description": "App ClI",
55
"author": "Contentstack CLI",
66
"homepage": "https://github.com/contentstack/cli-plugins/tree/main/packages/contentstack-apps-cli",

packages/contentstack-apps-cli/src/commands/app/install.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default class Install extends AppCLIBaseCommand {
2626
description: commonMsg.APP_UID,
2727
}),
2828
"stack-api-key": flags.string({
29-
description: commonMsg.STACK_API_KEY,
29+
description: commonMsg.STACK_API_KEY_placeholder,
3030
}),
3131
...AppCLIBaseCommand.baseFlags,
3232
};
@@ -88,7 +88,7 @@ export default class Install extends AppCLIBaseCommand {
8888
// in case a stack app is selected and no stack-api-key is provided
8989
if (appType === "stack" && !this.flags["stack-api-key"]) {
9090
this.log(
91-
$t(installAppMsg.MISSING_STACK_API_KEY, {
91+
$t(installAppMsg.MISSING_STACK_API_KEY_placeholder, {
9292
app: app?.name || app?.uid,
9393
}),
9494
"warn"

packages/contentstack-apps-cli/src/commands/app/reinstall.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class Reinstall extends AppCLIBaseCommand {
2525
description: commonMsg.APP_UID,
2626
}),
2727
"stack-api-key": flags.string({
28-
description: commonMsg.STACK_API_KEY,
28+
description: commonMsg.STACK_API_KEY_placeholder,
2929
}),
3030
...AppCLIBaseCommand.baseFlags,
3131
};
@@ -84,7 +84,7 @@ export default class Reinstall extends AppCLIBaseCommand {
8484
appType = "stack";
8585

8686
this.log(
87-
$t(reinstallAppMsg.MISSING_STACK_API_KEY, {
87+
$t(reinstallAppMsg.MISSING_STACK_API_KEY_placeholder, {
8888
app: app?.name || app?.uid,
8989
}),
9090
"warn"

packages/contentstack-apps-cli/src/messages/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const commonMsg = {
3838
APP_UID: "Provide the app UID of an existing app.",
3939
APP_TYPE_DESCRIPTION: "Type of app",
4040
CONTACT_SUPPORT: "Contact the support team for help.",
41-
STACK_API_KEY: "API key of the stack where the app operation is to be performed.",
41+
STACK_API_KEY_placeholder: "API key of the stack where the app operation is to be performed.",
4242
USER_TERMINATION: "Process terminated by the user.",
4343
CLI_APP_CLI_LOGIN_FAILED: "You're not logged in. Run $ csdx auth:login to continue."
4444
};
@@ -97,7 +97,7 @@ const installAppMsg = {
9797
CHOOSE_A_STACK: "Please select a stack",
9898
APP_INSTALLED_SUCCESSFULLY: "{app} installed successfully in {target}.",
9999
INSTALL_ORG_APP_TO_STACK: "{app} is an organization app. It cannot be installed to a stack. Do you want to proceed?",
100-
MISSING_STACK_API_KEY: "As {app} is a stack app, it can only be installed in a stack. Please select a stack.",
100+
MISSING_STACK_API_KEY_placeholder: "As {app} is a stack app, it can only be installed in a stack. Please select a stack.",
101101
INSTALLING_APP_NOTICE: "Installing {app} on {type} {target}.",
102102
APP_ALREADY_INSTALLED: "Please use $ csdx app:reinstall to reinstall the app.",
103103
}
@@ -115,7 +115,7 @@ const reinstallAppMsg = {
115115
CHOOSE_A_STACK: "Please select a stack",
116116
APP_REINSTALLED_SUCCESSFULLY: "{app} reinstalled successfully in {target}.",
117117
REINSTALL_ORG_APP_TO_STACK: "{app} is an organization app. It cannot be reinstalled to a stack. Do you want to proceed?",
118-
MISSING_STACK_API_KEY: "As {app} is a stack app, it can only be reinstalled in a stack. Please select a stack.",
118+
MISSING_STACK_API_KEY_placeholder: "As {app} is a stack app, it can only be reinstalled in a stack. Please select a stack.",
119119
REINSTALLING_APP_NOTICE: "Reinstalling {app} on {type} {target}.",
120120
APP_UID: "Provide the app UID of an existing app to be reinstalled.",
121121
APP_ALREADY_LATEST_VERSION: "The application is already up to date; no new version is available.",

packages/contentstack-bulk-operations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/cli-bulk-operations",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Contentstack CLI plugin for bulk operations",
55
"author": "Contentstack CLI",
66
"homepage": "https://github.com/contentstack/cli-plugins/tree/main/packages/contentstack-bulk-operations",

packages/contentstack-bulk-operations/src/base-bulk-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export abstract class BaseBulkCommand extends Command {
6161
}),
6262
'stack-api-key': flags.string({
6363
char: 'k',
64-
description: messages.STACK_API_KEY,
64+
description: messages.STACK_API_KEY_placeholder,
6565
}),
6666
operation: flags.string({
6767
description: messages.OPERATION,

packages/contentstack-bulk-operations/src/messages/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ const interactiveMsg = {
291291
ENTER_ENVIRONMENTS: 'Enter target environments (comma-separated):',
292292
ENTER_LOCALES: 'Enter locales (comma-separated):',
293293
SELECT_ALIAS: 'Select alias:',
294-
ENTER_API_KEY: 'Enter stack API key:',
294+
ENTER_API_KEY_placeholder: 'Enter stack API key:',
295295
ENTER_SOURCE_ENV: 'Enter source environment name:',
296296
SELECT_SOURCE_ALIAS: 'Select delivery token alias for source environment:',
297297

@@ -322,7 +322,8 @@ const flagDescriptions = {
322322
// Common flags
323323
ALIAS:
324324
'Uses the name of a saved Management Token to authenticate the command. The command can only access the branches allowed for that token. This option can be used as an alternative to` --stack-api-key.`',
325-
STACK_API_KEY: 'API key of the source stack. You must use either the --stack-api-key flag or the --alias flag.',
325+
STACK_API_KEY_placeholder:
326+
'API key of the source stack. You must use either the --stack-api-key flag or the --alias flag.',
326327
OPERATION: 'Specifies whether to `publish` or `unpublish` content.',
327328
ENVIRONMENTS:
328329
'Specifies one or more environments where the entries or assets should be published. Separate multiple environments with spaces.',

packages/contentstack-bulk-operations/src/utils/interactive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async function promptForStackCredentials(): Promise<{ alias?: string; apiKey?: s
6262
const apiKey = await cliux.inquire<string>({
6363
type: 'input',
6464
name: 'apiKey',
65-
message: messages.ENTER_API_KEY,
65+
message: messages.ENTER_API_KEY_placeholder,
6666
validate: (value) => {
6767
if (!value || value.trim().length === 0) {
6868
return messages.API_KEY_REQUIRED;
@@ -97,7 +97,7 @@ async function promptForStackCredentials(): Promise<{ alias?: string; apiKey?: s
9797
const apiKey = await cliux.inquire<string>({
9898
type: 'input',
9999
name: 'apiKey',
100-
message: messages.ENTER_API_KEY,
100+
message: messages.ENTER_API_KEY_placeholder,
101101
validate: (value) => {
102102
if (!value || value.trim().length === 0) {
103103
return messages.API_KEY_REQUIRED;

0 commit comments

Comments
 (0)