Skip to content

Commit 6f7c43f

Browse files
Merge pull request #2339 from contentstack/development
Staging PR
2 parents a05b0bf + c783205 commit 6f7c43f

50 files changed

Lines changed: 6462 additions & 2335 deletions

Some content is hidden

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

.talismanrc

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
fileignoreconfig:
22
- filename: package-lock.json
3-
checksum: 7fe633822937ac8ac6153c796e02ad26f31a4cdbf28d62650fe7bc990ccabac4
3+
checksum: 48479bae69c08b32d71c6f749328e14d903a578061271d67edcb96617b8b0e3b
44
- filename: pnpm-lock.yaml
5-
checksum: 096da506eea94052c82ddf88d0167be7511c4ce136d3de8cb1e6cc11c2444fd5
5+
checksum: d0d9f53b699a4def858a869f2237b73543e3e4d3085e6a05266b882a4027ec5b
66
- filename: packages/contentstack-import-setup/test/unit/backup-handler.test.ts
77
checksum: 0582d62b88834554cf12951c8690a73ef3ddbb78b82d2804d994cf4148e1ef93
88
- filename: packages/contentstack-import-setup/test/config.json
@@ -66,7 +66,7 @@ fileignoreconfig:
6666
- filename: packages/contentstack-bulk-publish/src/producer/publish-unpublished-env.js
6767
checksum: 44dbc966df086f835fdca11cb305d0a5f448ca0be811c14b894e0024f9491385
6868
- filename: packages/contentstack-import/src/import/modules/entries.ts
69-
checksum: 290730774c61220645ec211b85b9e218cdbd8addc2d8fd8f061dfa5ede5b5c75
69+
checksum: bdf26bd2b71c1b7a0d5540ba98c53bf917d8d7d3813447073a89439fb789970b
7070
- filename: packages/contentstack-utilities/src/logger/logger.ts
7171
checksum: 76429bc87e279624b386f00e7eb3f4ec25621ace7056289f812b9a076d6e184e
7272
- filename: packages/contentstack-bootstrap/src/bootstrap/utils.ts
@@ -75,10 +75,6 @@ fileignoreconfig:
7575
checksum: c435ceaa709a7504da303a6ea674e07a89030d8ad4152e7917cd17e7f3e58052
7676
- filename: packages/contentstack-bootstrap/src/config.ts
7777
checksum: cc3270acd9d37479b24792f45a108e0f1c99265f92d59c35c0ec3ee2d1cc390d
78-
- filename: packages/contentstack-clone/src/commands/cm/stacks/clone.js
79-
checksum: 433a84a882ea3f12b27127d47d289dfc64dda6b6fc956369f5851daaa57ae493
80-
- filename: packages/contentstack-clone/src/lib/util/clone-handler.js
81-
checksum: f901c84eac8545b328952332216de516697da2de098298496ba6ff1e75a0a659
8278
- filename: packages/contentstack-bulk-publish/src/util/generate-bulk-publish-url.js
8379
checksum: 5f7c1e2fac3e7fab21e861d609c54ca7191ee09fd076dd0adc66604043bf7a43
8480
- filename: packages/contentstack-import/src/utils/interactive.ts
@@ -267,6 +263,14 @@ fileignoreconfig:
267263
checksum: e8714ef41940f3a9be782dfaa43a15df57bd1eb4c3f0e4d5f305e68681c1bd93
268264
- filename: packages/contentstack-import/src/import/modules-js/environments.js
269265
checksum: d484342c25462a7052c8aae6cad0baed9a01e1eaa67d6a09f175981c53092301
266+
- filename: packages/contentstack-clone/.eslintrc
267+
checksum: a7230ffa600c58047ac73f2dec7a23ca5862e36e68f04f2671379496739bd818
268+
- filename: packages/contentstack-clone/test/commands/cm/stacks/clone.test.ts
269+
checksum: b30adfbbd25aa76fe41b0ffebdb3bc61eb4981063c3a38b890c3cb3a6660ecca
270+
- filename: packages/contentstack-clone/test/lib/util/clone-handler.execution.test.ts
271+
checksum: 7ed8fa62d9aba7135a142134c36535e3722471cabc81d2ea3437cd67b2e87d58
272+
- filename: packages/contentstack-clone/test/lib/util/clone-handler.commands.test.ts
273+
checksum: d0427ddfa6d338e6b5c4e6f8d94f32332e3e9858626356d07e5690471e062f49
270274
- filename: packages/contentstack-audit/test/unit/mock/contents/composable_studio/environments/environments.json
271275
checksum: 0402604e5919a7e38ecb5ff0916d6ae5ab7d98fe78ff6ac9eba8a9b8130af34d
272276
- filename: packages/contentstack-audit/test/unit/mock/contents/composable_studio/composable_studio.json
@@ -277,4 +281,13 @@ fileignoreconfig:
277281
checksum: 1e6c1fba1172512401038d5454c8d218201ec62262449c5c878609592e0124c4
278282
- filename: packages/contentstack-audit/src/modules/composable-studio.ts
279283
checksum: 4fc97ff582d6dff9a54b3a50dfa3cbb5febd38a55aeb8737034b97188ad543ba
284+
- filename: packages/contentstack-config/src/utils/interactive.ts
285+
checksum: 09ebc9918e5161e423238df8879b782daf673e52a5ca97e000a9618517a40b96
286+
- filename: packages/contentstack-config/src/commands/config/set/proxy.ts
287+
checksum: 058c98f96a2de7e75a65536933e5fcd88f0fb7e8a487d9c172f4daacd0d05bea
288+
- filename: packages/contentstack-utilities/src/proxy-helper.ts
289+
checksum: 2a8379d7a34acb3c14093599fb4ba7307c94b0f280ea70d6d862ecb2448fe924
290+
- filename: packages/contentstack-config/src/commands/config/get/proxy.ts
291+
checksum: 9c49c2e6246ecdc5a4141c7e5f413d34f1fc799e25b3bbf60b61372c7a9a6f36
280292
version: '1.0'
293+

package-lock.json

Lines changed: 642 additions & 532 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/contentstack-audit/README.md

Lines changed: 23 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-audit
1919
$ csdx COMMAND
2020
running command...
2121
$ csdx (--version|-v)
22-
@contentstack/cli-audit/1.16.2 darwin-arm64 node-v22.13.1
22+
@contentstack/cli-audit/1.17.0 darwin-arm64 node-v22.14.0
2323
$ csdx --help [COMMAND]
2424
USAGE
2525
$ csdx COMMAND
@@ -53,13 +53,14 @@ Perform audits and find possible errors in the exported Contentstack data
5353
```
5454
USAGE
5555
$ csdx audit [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
56-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...] [--columns <value>]
57-
[--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
56+
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules|composable-studio...]
57+
[--columns <value>] [--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output
58+
csv|json|yaml]
5859
5960
FLAGS
6061
--modules=<option>... Provide the list of modules to be audited
61-
<options:
62-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules>
62+
<options: content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-ru
63+
les|composable-studio>
6364
--report-path=<value> Path to store the audit reports
6465
6566
COMMON FLAGS
@@ -103,18 +104,19 @@ Perform audits and fix possible errors in the exported Contentstack data.
103104
```
104105
USAGE
105106
$ csdx audit:fix [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
106-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...] [--copy-path <value>
107-
--copy-dir] [--fix-only reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns
108-
<value>] [--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
107+
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules|composable-studio...]
108+
[--copy-path <value> --copy-dir] [--fix-only
109+
reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns <value>] [--sort <value>]
110+
[--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
109111
110112
FLAGS
111113
--copy-dir Create backup from the original data.
112114
--copy-path=<value> Provide the path to backup the copied data
113115
--fix-only=<option>... Provide the list of fix options
114116
<options: reference|global_field|json:rte|json:extension|blocks|group|content_types>
115117
--modules=<option>... Provide the list of modules to be audited
116-
<options:
117-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules>
118+
<options: content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-r
119+
ules|composable-studio>
118120
--report-path=<value> Path to store the audit reports
119121
120122
COMMON FLAGS
@@ -160,13 +162,14 @@ Perform audits and find possible errors in the exported Contentstack data
160162
```
161163
USAGE
162164
$ csdx cm:stacks:audit [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
163-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...] [--columns <value>]
164-
[--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
165+
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules|composable-studio...]
166+
[--columns <value>] [--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output
167+
csv|json|yaml]
165168
166169
FLAGS
167170
--modules=<option>... Provide the list of modules to be audited
168-
<options:
169-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules>
171+
<options: content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-ru
172+
les|composable-studio>
170173
--report-path=<value> Path to store the audit reports
171174
172175
COMMON FLAGS
@@ -212,18 +215,19 @@ Perform audits and fix possible errors in the exported Contentstack data.
212215
```
213216
USAGE
214217
$ csdx cm:stacks:audit:fix [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
215-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...] [--copy-path <value>
216-
--copy-dir] [--fix-only reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns
217-
<value>] [--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
218+
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules|composable-studio...]
219+
[--copy-path <value> --copy-dir] [--fix-only
220+
reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns <value>] [--sort <value>]
221+
[--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
218222
219223
FLAGS
220224
--copy-dir Create backup from the original data.
221225
--copy-path=<value> Provide the path to backup the copied data
222226
--fix-only=<option>... Provide the list of fix options
223227
<options: reference|global_field|json:rte|json:extension|blocks|group|content_types>
224228
--modules=<option>... Provide the list of modules to be audited
225-
<options:
226-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules>
229+
<options: content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-r
230+
ules|composable-studio>
227231
--report-path=<value> Path to store the audit reports
228232
229233
COMMON FLAGS

packages/contentstack-audit/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/cli-audit",
3-
"version": "1.17.0",
3+
"version": "1.17.1",
44
"description": "Contentstack audit plugin",
55
"author": "Contentstack CLI",
66
"homepage": "https://github.com/contentstack/cli",
@@ -18,8 +18,8 @@
1818
"/oclif.manifest.json"
1919
],
2020
"dependencies": {
21-
"@contentstack/cli-command": "~1.7.1",
22-
"@contentstack/cli-utilities": "~1.16.1",
21+
"@contentstack/cli-command": "~1.7.2",
22+
"@contentstack/cli-utilities": "~1.17.0",
2323
"@oclif/core": "^4.3.0",
2424
"@oclif/plugin-help": "^6.2.28",
2525
"@oclif/plugin-plugins": "^5.4.54",
@@ -45,7 +45,7 @@
4545
"nyc": "^15.1.0",
4646
"oclif": "^4.17.46",
4747
"shx": "^0.4.0",
48-
"sinon": "^19.0.5",
48+
"sinon": "^21.0.1",
4949
"ts-node": "^10.9.2",
5050
"typescript": "^5.8.3"
5151
},

packages/contentstack-bootstrap/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@contentstack/cli-cm-bootstrap",
33
"description": "Bootstrap contentstack apps",
4-
"version": "1.18.1",
4+
"version": "1.18.2",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"scripts": {
@@ -16,9 +16,9 @@
1616
"test:report": "nyc --reporter=lcov mocha \"test/**/*.test.js\""
1717
},
1818
"dependencies": {
19-
"@contentstack/cli-cm-seed": "~1.14.1",
20-
"@contentstack/cli-command": "~1.7.1",
21-
"@contentstack/cli-utilities": "~1.16.1",
19+
"@contentstack/cli-cm-seed": "~1.14.2",
20+
"@contentstack/cli-command": "~1.7.2",
21+
"@contentstack/cli-utilities": "~1.17.0",
2222
"@oclif/core": "^4.3.0",
2323
"@oclif/plugin-help": "^6.2.28",
2424
"inquirer": "8.2.7",

packages/contentstack-branches/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "@contentstack/cli-cm-branches",
33
"description": "Contentstack CLI plugin to do branches operations",
4-
"version": "1.6.2",
4+
"version": "1.6.3",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"dependencies": {
8-
"@contentstack/cli-command": "~1.7.1",
8+
"@contentstack/cli-command": "~1.7.2",
99
"@oclif/core": "^4.3.0",
1010
"@oclif/plugin-help": "^6.2.28",
11-
"@contentstack/cli-utilities": "~1.16.1",
11+
"@contentstack/cli-utilities": "~1.17.0",
1212
"chalk": "^4.1.2",
1313
"just-diff": "^6.0.2",
1414
"lodash": "^4.17.21"
@@ -25,7 +25,7 @@
2525
"mocha": "10.8.2",
2626
"nyc": "^15.1.0",
2727
"oclif": "^4.17.46",
28-
"sinon": "^19.0.5",
28+
"sinon": "^21.0.1",
2929
"ts-node": "^10.9.2",
3030
"typescript": "^4.9.5"
3131
},

packages/contentstack-bulk-publish/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-cm-bulk-publish
1818
$ csdx COMMAND
1919
running command...
2020
$ csdx (--version)
21-
@contentstack/cli-cm-bulk-publish/1.10.5 darwin-arm64 node-v22.14.0
21+
@contentstack/cli-cm-bulk-publish/1.10.4 darwin-arm64 node-v22.14.0
2222
$ csdx --help [COMMAND]
2323
USAGE
2424
$ csdx COMMAND

packages/contentstack-bulk-publish/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "@contentstack/cli-cm-bulk-publish",
33
"description": "Contentstack CLI plugin for bulk publish actions",
4-
"version": "1.10.5",
4+
"version": "1.10.6",
55
"author": "Contentstack",
66
"bugs": "https://github.com/contentstack/cli/issues",
77
"dependencies": {
8-
"@contentstack/cli-command": "~1.7.1",
9-
"@contentstack/cli-config": "~1.17.0",
10-
"@contentstack/cli-utilities": "~1.16.1",
8+
"@contentstack/cli-command": "~1.7.2",
9+
"@contentstack/cli-config": "~1.18.0",
10+
"@contentstack/cli-utilities": "~1.17.0",
1111
"@oclif/core": "^4.3.0",
1212
"@oclif/plugin-help": "^6.2.28",
1313
"chalk": "^4.1.2",
Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,54 @@
11
{
2-
"extends": "oclif"
2+
"env": {
3+
"node": true,
4+
"es2021": true
5+
},
6+
"parser": "@typescript-eslint/parser",
7+
"parserOptions": {
8+
"project": "tsconfig.json",
9+
"sourceType": "module"
10+
},
11+
"plugins": [
12+
"@typescript-eslint"
13+
],
14+
"extends": [
15+
"plugin:@typescript-eslint/recommended",
16+
"plugin:@typescript-eslint/recommended-requiring-type-checking"
17+
],
18+
"ignorePatterns": [
19+
"lib/**/*",
20+
"test/**/*",
21+
"node_modules/**/*",
22+
"*.js"
23+
],
24+
"rules": {
25+
"@typescript-eslint/no-unused-vars": [
26+
"error",
27+
{
28+
"args": "none",
29+
"argsIgnorePattern": "^_",
30+
"varsIgnorePattern": "^_"
31+
}
32+
],
33+
"@typescript-eslint/prefer-namespace-keyword": "error",
34+
"@typescript-eslint/no-floating-promises": "error",
35+
"@typescript-eslint/no-misused-promises": "error",
36+
"@typescript-eslint/await-thenable": "error",
37+
"quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
38+
"semi": "off",
39+
"@typescript-eslint/no-redeclare": "off",
40+
"eqeqeq": ["error", "smart"],
41+
"id-match": "error",
42+
"no-eval": "error",
43+
"no-var": "error",
44+
"@typescript-eslint/no-explicit-any": "warn",
45+
"@typescript-eslint/no-require-imports": "off",
46+
"prefer-const": "error",
47+
"@typescript-eslint/no-unsafe-call": "off",
48+
"@typescript-eslint/no-unsafe-member-access": "off",
49+
"@typescript-eslint/no-unsafe-assignment": "off",
50+
"@typescript-eslint/no-unsafe-return": "off",
51+
"@typescript-eslint/no-unsafe-argument": "off",
52+
"@typescript-eslint/require-await": "off"
53+
}
354
}

packages/contentstack-clone/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@
66
/yarn.lock
77
node_modules
88
coverage
9+
/lib

0 commit comments

Comments
 (0)