From c520707375c5cfa4090f113c6b05550994c5e89a Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 7 Jul 2023 18:51:44 +0000 Subject: [PATCH 01/30] feat: upgrade mkdirp from 1.0.4 to 3.0.1 Snyk has created this PR to upgrade mkdirp from 1.0.4 to 3.0.1. See this package in npm: https://www.npmjs.com/package/mkdirp See this project in Snyk: https://app.snyk.io/org/contentstack-cli/project/c1924463-c45f-4119-b6db-e942b0e78eb2?utm_source=github&utm_medium=referral&page=upgrade-pr --- packages/contentstack-export-to-csv/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/contentstack-export-to-csv/package.json b/packages/contentstack-export-to-csv/package.json index 97ad391796..0cdd4f448f 100644 --- a/packages/contentstack-export-to-csv/package.json +++ b/packages/contentstack-export-to-csv/package.json @@ -11,7 +11,7 @@ "fast-csv": "^4.3.6", "inquirer": "8.2.4", "inquirer-checkbox-plus-prompt": "1.0.1", - "mkdirp": "^1.0.4" + "mkdirp": "^3.0.1" }, "devDependencies": { "@oclif/test": "^2.2.10", From c89b143f7919f50451be2519e54185192e37741d Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Fri, 18 Aug 2023 11:10:42 +0100 Subject: [PATCH 02/30] fix(import): fixed field rules issue in content-types module --- .../src/import/modules-js/content-types.js | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/packages/contentstack-import/src/import/modules-js/content-types.js b/packages/contentstack-import/src/import/modules-js/content-types.js index d252b826de..7a1f000068 100755 --- a/packages/contentstack-import/src/import/modules-js/content-types.js +++ b/packages/contentstack-import/src/import/modules-js/content-types.js @@ -143,8 +143,11 @@ class ContentTypesImport { if (typeof contentType !== 'object') return; const requestObject = cloneDeep(this.requestOptions); if (contentType.field_rules) { + contentType.field_rules = this.updateFieldRules(contentType); + if (!contentType.field_rules.length) { + delete contentType.field_rules; + } this.fieldRules.push(contentType.uid); - delete contentType.field_rules; } lookupExtension( @@ -197,6 +200,31 @@ class ContentTypesImport { this.titleToUIdMap.set(ct.uid, ct.title); }); } + + updateFieldRules(contentType) { + const fieldDataTypeMap = {}; + for (let i = 0; i < contentType.schema.length; i++) { + const field = contentType.schema[i]; + fieldDataTypeMap[field.uid] = field.data_type; + } + const fieldRules = [...contentType.field_rules]; + let len = fieldRules.length; + // Looping backwards as we need to delete elements as we move. + for (let i = len - 1; i >= 0; i--) { + const conditions = fieldRules[i].conditions; + let isReference = false; + for (let j = 0; j < conditions.length; j++) { + const field = conditions[j].operand_field; + if (fieldDataTypeMap[field] === 'reference') { + isReference = true; + } + } + if (isReference) { + fieldRules.splice(i, 1); + } + } + return fieldRules; + } } module.exports = ContentTypesImport; From efb9ceb499e572012df3a9bf8eb06c2f1faaf688 Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Mon, 21 Aug 2023 13:12:16 +0100 Subject: [PATCH 03/30] fix: added changes for ts version --- .../src/import/modules/content-types.ts | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/packages/contentstack-import/src/import/modules/content-types.ts b/packages/contentstack-import/src/import/modules/content-types.ts index 850c638376..6098d07ce8 100644 --- a/packages/contentstack-import/src/import/modules/content-types.ts +++ b/packages/contentstack-import/src/import/modules/content-types.ts @@ -179,8 +179,11 @@ export default class ContentTypesImport extends BaseClass { serializeUpdateCTs(apiOptions: ApiOptions): ApiOptions { const { apiData: contentType } = apiOptions; if (contentType.field_rules) { + contentType.field_rules = this.updateFieldRules(contentType); + if (!contentType.field_rules.length) { + delete contentType.field_rules; + } this.fieldRules.push(contentType.uid); - delete contentType.field_rules; } lookupExtension( this.importConfig, @@ -241,4 +244,29 @@ export default class ContentTypesImport extends BaseClass { apiOptions.apiData = globalFieldPayload; return apiOptions; } + + updateFieldRules(contentType: any) { + const fieldDataTypeMap: { [key: string]: string } = {}; + for (let i = 0; i < contentType.schema.length; i++) { + const field = contentType.schema[i]; + fieldDataTypeMap[field.uid] = field.data_type; + } + const fieldRules = [...contentType.field_rules]; + let len = fieldRules.length; + // Looping backwards as we need to delete elements as we move. + for (let i = len - 1; i >= 0; i--) { + const conditions = fieldRules[i].conditions; + let isReference = false; + for (let j = 0; j < conditions.length; j++) { + const field = conditions[j].operand_field; + if (fieldDataTypeMap[field] === 'reference') { + isReference = true; + } + } + if (isReference) { + fieldRules.splice(i, 1); + } + } + return fieldRules; + } } From ac1a228c5aa8316261f06bd9ce94f90bb114e773 Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Tue, 22 Aug 2023 12:00:35 +0100 Subject: [PATCH 04/30] fix: moved field rules update method to content-types util --- .../src/import/modules/content-types.ts | 28 ++----------------- .../src/utils/content-type-helper.ts | 25 +++++++++++++++++ 2 files changed, 27 insertions(+), 26 deletions(-) diff --git a/packages/contentstack-import/src/import/modules/content-types.ts b/packages/contentstack-import/src/import/modules/content-types.ts index 6098d07ce8..86557f6a8b 100644 --- a/packages/contentstack-import/src/import/modules/content-types.ts +++ b/packages/contentstack-import/src/import/modules/content-types.ts @@ -10,6 +10,7 @@ import { isEmpty, find, cloneDeep, map } from 'lodash'; import { fsUtil, log, formatError, schemaTemplate, lookupExtension } from '../../utils'; import { ImportConfig, ModuleClassParams } from '../../types'; import BaseClass, { ApiOptions } from './base-class'; +import { updateFieldRules } from '../../utils/content-type-helper'; export default class ContentTypesImport extends BaseClass { private cTsMapperPath: string; @@ -179,7 +180,7 @@ export default class ContentTypesImport extends BaseClass { serializeUpdateCTs(apiOptions: ApiOptions): ApiOptions { const { apiData: contentType } = apiOptions; if (contentType.field_rules) { - contentType.field_rules = this.updateFieldRules(contentType); + contentType.field_rules = updateFieldRules(contentType); if (!contentType.field_rules.length) { delete contentType.field_rules; } @@ -244,29 +245,4 @@ export default class ContentTypesImport extends BaseClass { apiOptions.apiData = globalFieldPayload; return apiOptions; } - - updateFieldRules(contentType: any) { - const fieldDataTypeMap: { [key: string]: string } = {}; - for (let i = 0; i < contentType.schema.length; i++) { - const field = contentType.schema[i]; - fieldDataTypeMap[field.uid] = field.data_type; - } - const fieldRules = [...contentType.field_rules]; - let len = fieldRules.length; - // Looping backwards as we need to delete elements as we move. - for (let i = len - 1; i >= 0; i--) { - const conditions = fieldRules[i].conditions; - let isReference = false; - for (let j = 0; j < conditions.length; j++) { - const field = conditions[j].operand_field; - if (fieldDataTypeMap[field] === 'reference') { - isReference = true; - } - } - if (isReference) { - fieldRules.splice(i, 1); - } - } - return fieldRules; - } } diff --git a/packages/contentstack-import/src/utils/content-type-helper.ts b/packages/contentstack-import/src/utils/content-type-helper.ts index 72c2778143..e4de2c12a6 100644 --- a/packages/contentstack-import/src/utils/content-type-helper.ts +++ b/packages/contentstack-import/src/utils/content-type-helper.ts @@ -142,3 +142,28 @@ export const removeReferenceFields = async function ( } } }; + +export const updateFieldRules = function (contentType: any) { + const fieldDataTypeMap: { [key: string]: string } = {}; + for (let i = 0; i < contentType.schema.length; i++) { + const field = contentType.schema[i]; + fieldDataTypeMap[field.uid] = field.data_type; + } + const fieldRules = [...contentType.field_rules]; + let len = fieldRules.length; + // Looping backwards as we need to delete elements as we move. + for (let i = len - 1; i >= 0; i--) { + const conditions = fieldRules[i].conditions; + let isReference = false; + for (let j = 0; j < conditions.length; j++) { + const field = conditions[j].operand_field; + if (fieldDataTypeMap[field] === 'reference') { + isReference = true; + } + } + if (isReference) { + fieldRules.splice(i, 1); + } + } + return fieldRules; +} From 1ddd784cb6ef9fc634246ac720769b7707c3105a Mon Sep 17 00:00:00 2001 From: raj pandey Date: Tue, 22 Aug 2023 19:19:40 +0530 Subject: [PATCH 05/30] added Optional chaining while finding the workflow name for case where workflow was empty --- packages/contentstack-export-to-csv/src/util/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/contentstack-export-to-csv/src/util/index.js b/packages/contentstack-export-to-csv/src/util/index.js index 5bbc2ad453..bd9ec827bf 100644 --- a/packages/contentstack-export-to-csv/src/util/index.js +++ b/packages/contentstack-export-to-csv/src/util/index.js @@ -384,8 +384,10 @@ function cleanEntries(entries, language, environments, contentTypeUid) { }); delete entry.publish_details; if ('_workflow' in entry) { - workflow = entry['_workflow']['name']; - delete entry['_workflow']; + if(entry._workflow?.name) { + workflow = entry['_workflow']['name']; + delete entry['_workflow']; + } } entry = flatten(entry); entry['publish_details'] = envArr; From 6acfbc533415311fbaf544f9510e2df632ed54b4 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Wed, 23 Aug 2023 19:28:16 +0530 Subject: [PATCH 06/30] modified setWorkflowStage to include the object as a string, and added message in chooseContentType to select, version bump --- package-lock.json | 6 +++--- packages/contentstack-export-to-csv/package.json | 2 +- packages/contentstack-export-to-csv/src/util/index.js | 8 ++++++-- packages/contentstack/package.json | 2 +- pnpm-lock.yaml | 2 +- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index e277ebb260..0ad655b583 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20307,7 +20307,7 @@ "@contentstack/cli-cm-bulk-publish": "^1.3.10", "@contentstack/cli-cm-clone": "^1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-export-to-csv": "^1.4.1", "@contentstack/cli-cm-import": "~1.8.0", "@contentstack/cli-cm-migrate-rte": "^1.4.10", "@contentstack/cli-cm-seed": "^1.4.14", @@ -21072,7 +21072,7 @@ }, "packages/contentstack-export-to-csv": { "name": "@contentstack/cli-cm-export-to-csv", - "version": "1.4.0", + "version": "1.4.1", "license": "MIT", "dependencies": { "@contentstack/cli-command": "^1.2.11", @@ -23707,7 +23707,7 @@ "@contentstack/cli-cm-bulk-publish": "^1.3.10", "@contentstack/cli-cm-clone": "^1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-export-to-csv": "^1.4.1", "@contentstack/cli-cm-import": "~1.8.0", "@contentstack/cli-cm-migrate-rte": "^1.4.10", "@contentstack/cli-cm-seed": "^1.4.14", diff --git a/packages/contentstack-export-to-csv/package.json b/packages/contentstack-export-to-csv/package.json index 1b77029b43..8e04ba0461 100644 --- a/packages/contentstack-export-to-csv/package.json +++ b/packages/contentstack-export-to-csv/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-export-to-csv", "description": "Export entities to csv", - "version": "1.4.0", + "version": "1.4.1", "author": "Abhinav Gupta @abhinav-from-contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack-export-to-csv/src/util/index.js b/packages/contentstack-export-to-csv/src/util/index.js index cefdf6cb4f..ab9a8bf716 100644 --- a/packages/contentstack-export-to-csv/src/util/index.js +++ b/packages/contentstack-export-to-csv/src/util/index.js @@ -199,7 +199,7 @@ function chooseContentType(stackAPIClient, skip) { let _chooseContentType = [ { type: 'checkbox', - message: 'Choose Content Type', + message: 'Choose Content Type (Press Space to select all the content type) ', choices: contentTypesList, name: 'chosenContentTypes', loop: false, @@ -218,7 +218,7 @@ function chooseInMemContentTypes(contentTypesList) { let _chooseContentType = [ { type: 'checkbox-plus', - message: 'Choose Content Type', + message: 'Choose Content Type (Press Space to select all the content type)', choices: contentTypesList, name: 'chosenContentTypes', loop: false, @@ -379,10 +379,12 @@ function cleanEntries(entries, language, environments, contentTypeUid) { return filteredEntries.map((entry) => { let workflow = ''; const envArr = []; + const workFlowStage = JSON.stringify(entry.setWorkflowStage); entry.publish_details.forEach((env) => { envArr.push(JSON.stringify([environments[env['environment']], env['locale'], env['time']])); }); delete entry.publish_details; + delete entry.setWorkflowStage; if ('_workflow' in entry) { workflow = entry['_workflow']['name']; delete entry['_workflow']; @@ -392,6 +394,8 @@ function cleanEntries(entries, language, environments, contentTypeUid) { entry['_workflow'] = workflow; entry['ACL'] = JSON.stringify({}); // setting ACL to empty obj entry['content_type_uid'] = contentTypeUid; // content_type_uid is being returned as 'uid' from the sdk for some reason + entry['setWorkflowStage'] = workFlowStage; + // entry['url'] might also be wrong delete entry.stackHeaders; delete entry.update; diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index d4fbe99fd9..fa5f3ac245 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -27,7 +27,7 @@ "@contentstack/cli-cm-bulk-publish": "^1.3.10", "@contentstack/cli-cm-clone": "^1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-export-to-csv": "^1.4.1", "@contentstack/cli-cm-import": "~1.8.0", "@contentstack/cli-cm-migrate-rte": "^1.4.10", "@contentstack/cli-cm-seed": "^1.4.14", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 114cb024aa..fb95c30a93 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,7 +16,7 @@ importers: '@contentstack/cli-cm-bulk-publish': ^1.3.10 '@contentstack/cli-cm-clone': ^1.4.15 '@contentstack/cli-cm-export': ~1.8.0 - '@contentstack/cli-cm-export-to-csv': ^1.4.0 + '@contentstack/cli-cm-export-to-csv': ^1.4.1 '@contentstack/cli-cm-import': ~1.8.0 '@contentstack/cli-cm-migrate-rte': ^1.4.10 '@contentstack/cli-cm-seed': ^1.4.14 From c85580f39b01e5e91a37d6ba32ff270541b9b9cf Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Thu, 24 Aug 2023 09:48:06 +0100 Subject: [PATCH 07/30] fix: fixed referenced fields in field rules issue --- .../contentstack-import/src/import/modules/entries.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/contentstack-import/src/import/modules/entries.ts b/packages/contentstack-import/src/import/modules/entries.ts index cf84edfe08..580abe7df9 100644 --- a/packages/contentstack-import/src/import/modules/entries.ts +++ b/packages/contentstack-import/src/import/modules/entries.ts @@ -536,13 +536,19 @@ export default class EntriesImport extends BaseClass { return; } for (let cTUid of cTsWithFieldRules) { - const contentType = find(this.cTs, { uid: cTUid }); + const cTs: Record[] = fsUtil.readFile(path.join(this.cTsPath, 'schema.json')) as Record[]; + const contentType: any = find(cTs, { uid: cTUid }); if (contentType.field_rules) { let fieldRuleLength = contentType.field_rules.length; + const fieldDatatypeMap: {[key: string]: string} = {}; + for (let i = 0; i < contentType.schema.length; i++) { + const field = contentType.schema[i].uid; + fieldDatatypeMap[field] = contentType.schema[i].data_type; + } for (let k = 0; k < fieldRuleLength; k++) { let fieldRuleConditionLength = contentType.field_rules[k].conditions.length; for (let i = 0; i < fieldRuleConditionLength; i++) { - if (contentType.field_rules[k].conditions[i].operand_field === 'reference') { + if (fieldDatatypeMap[contentType.field_rules[k].conditions[i].operand_field] === 'reference') { let fieldRulesValue = contentType.field_rules[k].conditions[i].value; let fieldRulesArray = fieldRulesValue.split('.'); let updatedValue = []; From a443ff6fe73ba0f79a272fc6f5076ffa60a8b9fa Mon Sep 17 00:00:00 2001 From: raj pandey Date: Thu, 24 Aug 2023 15:21:23 +0530 Subject: [PATCH 08/30] Version bump after merging development --- package-lock.json | 4 ++-- packages/contentstack/package.json | 2 +- pnpm-lock.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index a29c504c69..a8270074c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20307,7 +20307,7 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-export-to-csv": "^1.4.1", "@contentstack/cli-cm-import": "~1.8.1", "@contentstack/cli-cm-migrate-rte": "^1.4.10", "@contentstack/cli-cm-seed": "^1.4.14", @@ -23707,7 +23707,7 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-export-to-csv": "^1.4.1", "@contentstack/cli-cm-import": "~1.8.1", "@contentstack/cli-cm-migrate-rte": "^1.4.10", "@contentstack/cli-cm-seed": "^1.4.14", diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 1f15fab899..adf4303dfa 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -27,7 +27,7 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-export-to-csv": "^1.4.1", "@contentstack/cli-cm-import": "~1.8.1", "@contentstack/cli-cm-migrate-rte": "^1.4.10", "@contentstack/cli-cm-seed": "^1.4.14", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e37aa87617..27ac1eb1f1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,7 +16,7 @@ importers: '@contentstack/cli-cm-bulk-publish': ~1.3.10 '@contentstack/cli-cm-clone': ~1.4.15 '@contentstack/cli-cm-export': ~1.8.0 - '@contentstack/cli-cm-export-to-csv': ^1.4.0 + '@contentstack/cli-cm-export-to-csv': ^1.4.1 '@contentstack/cli-cm-import': ~1.8.1 '@contentstack/cli-cm-migrate-rte': ^1.4.10 '@contentstack/cli-cm-seed': ^1.4.14 From 40ed09be5018b4a93eb07c16a944422f449d66c1 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Thu, 24 Aug 2023 16:36:45 +0530 Subject: [PATCH 09/30] Merged development and version bump --- package-lock.json | 6 +++--- packages/contentstack-export-to-csv/package.json | 2 +- packages/contentstack/package.json | 2 +- pnpm-lock.yaml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index a13078a8f1..a8270074c7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20307,7 +20307,7 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-export-to-csv": "^1.4.1", "@contentstack/cli-cm-import": "~1.8.1", "@contentstack/cli-cm-migrate-rte": "^1.4.10", "@contentstack/cli-cm-seed": "^1.4.14", @@ -21072,7 +21072,7 @@ }, "packages/contentstack-export-to-csv": { "name": "@contentstack/cli-cm-export-to-csv", - "version": "1.4.0", + "version": "1.4.1", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.11", @@ -23707,7 +23707,7 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-export-to-csv": "^1.4.1", "@contentstack/cli-cm-import": "~1.8.1", "@contentstack/cli-cm-migrate-rte": "^1.4.10", "@contentstack/cli-cm-seed": "^1.4.14", diff --git a/packages/contentstack-export-to-csv/package.json b/packages/contentstack-export-to-csv/package.json index 349a41827d..60842081dd 100644 --- a/packages/contentstack-export-to-csv/package.json +++ b/packages/contentstack-export-to-csv/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-export-to-csv", "description": "Export entities to csv", - "version": "1.4.0", + "version": "1.4.1", "author": "Abhinav Gupta @abhinav-from-contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 1f15fab899..adf4303dfa 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -27,7 +27,7 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-export-to-csv": "^1.4.1", "@contentstack/cli-cm-import": "~1.8.1", "@contentstack/cli-cm-migrate-rte": "^1.4.10", "@contentstack/cli-cm-seed": "^1.4.14", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e37aa87617..27ac1eb1f1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,7 +16,7 @@ importers: '@contentstack/cli-cm-bulk-publish': ~1.3.10 '@contentstack/cli-cm-clone': ~1.4.15 '@contentstack/cli-cm-export': ~1.8.0 - '@contentstack/cli-cm-export-to-csv': ^1.4.0 + '@contentstack/cli-cm-export-to-csv': ^1.4.1 '@contentstack/cli-cm-import': ~1.8.1 '@contentstack/cli-cm-migrate-rte': ^1.4.10 '@contentstack/cli-cm-seed': ^1.4.14 From baf8927868ff0ab3685adff312b5cede5bd0660e Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Thu, 24 Aug 2023 16:03:15 +0530 Subject: [PATCH 10/30] refactor: version bump --- package-lock.json | 24 ++++++++++---------- packages/contentstack-branches/README.md | 2 +- packages/contentstack-branches/package.json | 2 +- packages/contentstack-import/README.md | 2 +- packages/contentstack-import/package.json | 2 +- packages/contentstack-migration/README.md | 2 +- packages/contentstack-migration/package.json | 2 +- packages/contentstack/README.md | 2 +- packages/contentstack/package.json | 10 ++++---- pnpm-lock.yaml | 8 +++---- 10 files changed, 28 insertions(+), 28 deletions(-) diff --git a/package-lock.json b/package-lock.json index a8270074c7..d5d620ac1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20298,23 +20298,23 @@ }, "packages/contentstack": { "name": "@contentstack/cli", - "version": "1.8.1", + "version": "1.8.2", "license": "MIT", "dependencies": { "@contentstack/cli-auth": "~1.3.12", "@contentstack/cli-cm-bootstrap": "~1.4.14", - "@contentstack/cli-cm-branches": "~1.0.10", + "@contentstack/cli-cm-branches": "~1.0.11", "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.1", - "@contentstack/cli-cm-import": "~1.8.1", + "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-import": "~1.8.2", "@contentstack/cli-cm-migrate-rte": "^1.4.10", "@contentstack/cli-cm-seed": "^1.4.14", "@contentstack/cli-command": "^1.2.11", "@contentstack/cli-config": "^1.4.10", "@contentstack/cli-launch": "^1.0.10", - "@contentstack/cli-migration": "^1.3.10", + "@contentstack/cli-migration": "^1.3.11", "@contentstack/cli-utilities": "^1.5.1", "@contentstack/management": "~1.10.0", "@oclif/core": "^2.9.3", @@ -20485,7 +20485,7 @@ }, "packages/contentstack-branches": { "name": "@contentstack/cli-cm-branches", - "version": "1.0.10", + "version": "1.0.11", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.11", @@ -21323,7 +21323,7 @@ }, "packages/contentstack-import": { "name": "@contentstack/cli-cm-import", - "version": "1.8.1", + "version": "1.8.2", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.11", @@ -21985,7 +21985,7 @@ }, "packages/contentstack-migration": { "name": "@contentstack/cli-migration", - "version": "1.3.10", + "version": "1.3.11", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.11", @@ -23703,18 +23703,18 @@ "requires": { "@contentstack/cli-auth": "~1.3.12", "@contentstack/cli-cm-bootstrap": "~1.4.14", - "@contentstack/cli-cm-branches": "~1.0.10", + "@contentstack/cli-cm-branches": "~1.0.11", "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.1", - "@contentstack/cli-cm-import": "~1.8.1", + "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-import": "~1.8.2", "@contentstack/cli-cm-migrate-rte": "^1.4.10", "@contentstack/cli-cm-seed": "^1.4.14", "@contentstack/cli-command": "^1.2.11", "@contentstack/cli-config": "^1.4.10", "@contentstack/cli-launch": "^1.0.10", - "@contentstack/cli-migration": "^1.3.10", + "@contentstack/cli-migration": "^1.3.11", "@contentstack/cli-utilities": "^1.5.1", "@contentstack/management": "~1.10.0", "@oclif/core": "^2.9.3", diff --git a/packages/contentstack-branches/README.md b/packages/contentstack-branches/README.md index e961926c4c..c82e0abf23 100755 --- a/packages/contentstack-branches/README.md +++ b/packages/contentstack-branches/README.md @@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-branches/1.0.10 darwin-arm64 node-v20.3.1 +@contentstack/cli-cm-branches/1.0.11 darwin-arm64 node-v18.14.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-branches/package.json b/packages/contentstack-branches/package.json index 7ed7022517..7d788ef48f 100644 --- a/packages/contentstack-branches/package.json +++ b/packages/contentstack-branches/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-branches", "description": "Contentstack CLI plugin to do branches operations", - "version": "1.0.10", + "version": "1.0.11", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack-import/README.md b/packages/contentstack-import/README.md index d4e8c90c41..ae6eaa55d9 100644 --- a/packages/contentstack-import/README.md +++ b/packages/contentstack-import/README.md @@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-import/1.8.1 darwin-arm64 node-v20.3.1 +@contentstack/cli-cm-import/1.8.2 darwin-arm64 node-v18.14.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-import/package.json b/packages/contentstack-import/package.json index 0a6f07f064..0712d83cdc 100644 --- a/packages/contentstack-import/package.json +++ b/packages/contentstack-import/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-import", "description": "Contentstack CLI plugin to import content into stack", - "version": "1.8.1", + "version": "1.8.2", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack-migration/README.md b/packages/contentstack-migration/README.md index fb6fdebcb9..48aa79fc52 100644 --- a/packages/contentstack-migration/README.md +++ b/packages/contentstack-migration/README.md @@ -21,7 +21,7 @@ $ npm install -g @contentstack/cli-migration $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-migration/1.3.10 darwin-arm64 node-v20.3.1 +@contentstack/cli-migration/1.3.11 darwin-arm64 node-v18.14.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-migration/package.json b/packages/contentstack-migration/package.json index f0f02f3961..606e4204b8 100644 --- a/packages/contentstack-migration/package.json +++ b/packages/contentstack-migration/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/cli-migration", - "version": "1.3.10", + "version": "1.3.11", "author": "@contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack/README.md b/packages/contentstack/README.md index 2747f10302..ad474f5c17 100644 --- a/packages/contentstack/README.md +++ b/packages/contentstack/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli/1.8.1 darwin-arm64 node-v20.3.1 +@contentstack/cli/1.8.2 darwin-arm64 node-v18.14.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index adf4303dfa..6546441c91 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli", "description": "Command-line tool (CLI) to interact with Contentstack", - "version": "1.8.1", + "version": "1.8.2", "author": "Contentstack", "bin": { "csdx": "./bin/run" @@ -27,17 +27,17 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.1", - "@contentstack/cli-cm-import": "~1.8.1", + "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-import": "~1.8.2", "@contentstack/cli-cm-migrate-rte": "^1.4.10", "@contentstack/cli-cm-seed": "^1.4.14", "@contentstack/cli-command": "^1.2.11", "@contentstack/cli-config": "^1.4.10", "@contentstack/cli-launch": "^1.0.10", - "@contentstack/cli-migration": "^1.3.10", + "@contentstack/cli-migration": "^1.3.11", "@contentstack/cli-utilities": "^1.5.1", "@contentstack/management": "~1.10.0", - "@contentstack/cli-cm-branches": "~1.0.10", + "@contentstack/cli-cm-branches": "~1.0.11", "@oclif/plugin-help": "^5", "@oclif/plugin-not-found": "^2.3.9", "@oclif/plugin-plugins": "^2.1.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 27ac1eb1f1..efa0b9b112 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,18 +12,18 @@ importers: specifiers: '@contentstack/cli-auth': ~1.3.12 '@contentstack/cli-cm-bootstrap': ~1.4.14 - '@contentstack/cli-cm-branches': ~1.0.10 + '@contentstack/cli-cm-branches': ~1.0.11 '@contentstack/cli-cm-bulk-publish': ~1.3.10 '@contentstack/cli-cm-clone': ~1.4.15 '@contentstack/cli-cm-export': ~1.8.0 - '@contentstack/cli-cm-export-to-csv': ^1.4.1 - '@contentstack/cli-cm-import': ~1.8.1 + '@contentstack/cli-cm-export-to-csv': ^1.4.0 + '@contentstack/cli-cm-import': ~1.8.2 '@contentstack/cli-cm-migrate-rte': ^1.4.10 '@contentstack/cli-cm-seed': ^1.4.14 '@contentstack/cli-command': ^1.2.11 '@contentstack/cli-config': ^1.4.10 '@contentstack/cli-launch': ^1.0.10 - '@contentstack/cli-migration': ^1.3.10 + '@contentstack/cli-migration': ^1.3.11 '@contentstack/cli-utilities': ^1.5.1 '@contentstack/management': ~1.10.0 '@oclif/core': ^2.9.3 From 63509475c5139db7b92cf7f93b07127c335257f8 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Thu, 24 Aug 2023 18:48:58 +0530 Subject: [PATCH 11/30] fix: changed ^ to ~ --- packages/contentstack/package.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 6546441c91..14e61aab08 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -27,15 +27,15 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-export-to-csv": "~1.4.0", "@contentstack/cli-cm-import": "~1.8.2", - "@contentstack/cli-cm-migrate-rte": "^1.4.10", - "@contentstack/cli-cm-seed": "^1.4.14", - "@contentstack/cli-command": "^1.2.11", - "@contentstack/cli-config": "^1.4.10", - "@contentstack/cli-launch": "^1.0.10", - "@contentstack/cli-migration": "^1.3.11", - "@contentstack/cli-utilities": "^1.5.1", + "@contentstack/cli-cm-migrate-rte": "~1.4.10", + "@contentstack/cli-cm-seed": "~1.4.14", + "@contentstack/cli-command": "~1.2.11", + "@contentstack/cli-config": "~1.4.10", + "@contentstack/cli-launch": "~1.0.10", + "@contentstack/cli-migration": "~1.3.11", + "@contentstack/cli-utilities": "~1.5.1", "@contentstack/management": "~1.10.0", "@contentstack/cli-cm-branches": "~1.0.11", "@oclif/plugin-help": "^5", From d9d37b446ad96213d36b98db763234b36eacaf6a Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Thu, 24 Aug 2023 18:51:40 +0530 Subject: [PATCH 12/30] updated lock files and READMEs --- package-lock.json | 32 +++++++++++------------ packages/contentstack-branches/README.md | 2 +- packages/contentstack-import/README.md | 2 +- packages/contentstack-migration/README.md | 2 +- packages/contentstack/README.md | 2 +- pnpm-lock.yaml | 16 ++++++------ 6 files changed, 28 insertions(+), 28 deletions(-) diff --git a/package-lock.json b/package-lock.json index d5d620ac1b..47034f3041 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20307,15 +20307,15 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-export-to-csv": "~1.4.0", "@contentstack/cli-cm-import": "~1.8.2", - "@contentstack/cli-cm-migrate-rte": "^1.4.10", - "@contentstack/cli-cm-seed": "^1.4.14", - "@contentstack/cli-command": "^1.2.11", - "@contentstack/cli-config": "^1.4.10", - "@contentstack/cli-launch": "^1.0.10", - "@contentstack/cli-migration": "^1.3.11", - "@contentstack/cli-utilities": "^1.5.1", + "@contentstack/cli-cm-migrate-rte": "~1.4.10", + "@contentstack/cli-cm-seed": "~1.4.14", + "@contentstack/cli-command": "~1.2.11", + "@contentstack/cli-config": "~1.4.10", + "@contentstack/cli-launch": "~1.0.10", + "@contentstack/cli-migration": "~1.3.11", + "@contentstack/cli-utilities": "~1.5.1", "@contentstack/management": "~1.10.0", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", @@ -23707,15 +23707,15 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-export-to-csv": "~1.4.0", "@contentstack/cli-cm-import": "~1.8.2", - "@contentstack/cli-cm-migrate-rte": "^1.4.10", - "@contentstack/cli-cm-seed": "^1.4.14", - "@contentstack/cli-command": "^1.2.11", - "@contentstack/cli-config": "^1.4.10", - "@contentstack/cli-launch": "^1.0.10", - "@contentstack/cli-migration": "^1.3.11", - "@contentstack/cli-utilities": "^1.5.1", + "@contentstack/cli-cm-migrate-rte": "~1.4.10", + "@contentstack/cli-cm-seed": "~1.4.14", + "@contentstack/cli-command": "~1.2.11", + "@contentstack/cli-config": "~1.4.10", + "@contentstack/cli-launch": "~1.0.10", + "@contentstack/cli-migration": "~1.3.11", + "@contentstack/cli-utilities": "~1.5.1", "@contentstack/management": "~1.10.0", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", diff --git a/packages/contentstack-branches/README.md b/packages/contentstack-branches/README.md index c82e0abf23..d6c9aeb884 100755 --- a/packages/contentstack-branches/README.md +++ b/packages/contentstack-branches/README.md @@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-branches/1.0.11 darwin-arm64 node-v18.14.0 +@contentstack/cli-cm-branches/1.0.11 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-import/README.md b/packages/contentstack-import/README.md index ae6eaa55d9..20b53af987 100644 --- a/packages/contentstack-import/README.md +++ b/packages/contentstack-import/README.md @@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-import/1.8.2 darwin-arm64 node-v18.14.0 +@contentstack/cli-cm-import/1.8.2 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-migration/README.md b/packages/contentstack-migration/README.md index 48aa79fc52..23933f2703 100644 --- a/packages/contentstack-migration/README.md +++ b/packages/contentstack-migration/README.md @@ -21,7 +21,7 @@ $ npm install -g @contentstack/cli-migration $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-migration/1.3.11 darwin-arm64 node-v18.14.0 +@contentstack/cli-migration/1.3.11 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack/README.md b/packages/contentstack/README.md index ad474f5c17..71f2806b2b 100644 --- a/packages/contentstack/README.md +++ b/packages/contentstack/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli/1.8.2 darwin-arm64 node-v18.14.0 +@contentstack/cli/1.8.2 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index efa0b9b112..e2237033dc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,15 +16,15 @@ importers: '@contentstack/cli-cm-bulk-publish': ~1.3.10 '@contentstack/cli-cm-clone': ~1.4.15 '@contentstack/cli-cm-export': ~1.8.0 - '@contentstack/cli-cm-export-to-csv': ^1.4.0 + '@contentstack/cli-cm-export-to-csv': ~1.4.0 '@contentstack/cli-cm-import': ~1.8.2 - '@contentstack/cli-cm-migrate-rte': ^1.4.10 - '@contentstack/cli-cm-seed': ^1.4.14 - '@contentstack/cli-command': ^1.2.11 - '@contentstack/cli-config': ^1.4.10 - '@contentstack/cli-launch': ^1.0.10 - '@contentstack/cli-migration': ^1.3.11 - '@contentstack/cli-utilities': ^1.5.1 + '@contentstack/cli-cm-migrate-rte': ~1.4.10 + '@contentstack/cli-cm-seed': ~1.4.14 + '@contentstack/cli-command': ~1.2.11 + '@contentstack/cli-config': ~1.4.10 + '@contentstack/cli-launch': ~1.0.10 + '@contentstack/cli-migration': ~1.3.11 + '@contentstack/cli-utilities': ~1.5.1 '@contentstack/management': ~1.10.0 '@oclif/core': ^2.9.3 '@oclif/plugin-help': ^5 From 918ec821fd68209a46cf2e53af69036f2e990599 Mon Sep 17 00:00:00 2001 From: Aman Kumar Date: Thu, 24 Aug 2023 16:03:15 +0530 Subject: [PATCH 13/30] refactor: version bump --- package-lock.json | 24 ++++++++++---------- packages/contentstack-branches/README.md | 2 +- packages/contentstack-branches/package.json | 2 +- packages/contentstack-import/README.md | 2 +- packages/contentstack-import/package.json | 2 +- packages/contentstack-migration/README.md | 2 +- packages/contentstack-migration/package.json | 2 +- packages/contentstack/README.md | 2 +- packages/contentstack/package.json | 10 ++++---- pnpm-lock.yaml | 8 +++---- 10 files changed, 28 insertions(+), 28 deletions(-) diff --git a/package-lock.json b/package-lock.json index a8270074c7..d5d620ac1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20298,23 +20298,23 @@ }, "packages/contentstack": { "name": "@contentstack/cli", - "version": "1.8.1", + "version": "1.8.2", "license": "MIT", "dependencies": { "@contentstack/cli-auth": "~1.3.12", "@contentstack/cli-cm-bootstrap": "~1.4.14", - "@contentstack/cli-cm-branches": "~1.0.10", + "@contentstack/cli-cm-branches": "~1.0.11", "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.1", - "@contentstack/cli-cm-import": "~1.8.1", + "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-import": "~1.8.2", "@contentstack/cli-cm-migrate-rte": "^1.4.10", "@contentstack/cli-cm-seed": "^1.4.14", "@contentstack/cli-command": "^1.2.11", "@contentstack/cli-config": "^1.4.10", "@contentstack/cli-launch": "^1.0.10", - "@contentstack/cli-migration": "^1.3.10", + "@contentstack/cli-migration": "^1.3.11", "@contentstack/cli-utilities": "^1.5.1", "@contentstack/management": "~1.10.0", "@oclif/core": "^2.9.3", @@ -20485,7 +20485,7 @@ }, "packages/contentstack-branches": { "name": "@contentstack/cli-cm-branches", - "version": "1.0.10", + "version": "1.0.11", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.11", @@ -21323,7 +21323,7 @@ }, "packages/contentstack-import": { "name": "@contentstack/cli-cm-import", - "version": "1.8.1", + "version": "1.8.2", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.11", @@ -21985,7 +21985,7 @@ }, "packages/contentstack-migration": { "name": "@contentstack/cli-migration", - "version": "1.3.10", + "version": "1.3.11", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.11", @@ -23703,18 +23703,18 @@ "requires": { "@contentstack/cli-auth": "~1.3.12", "@contentstack/cli-cm-bootstrap": "~1.4.14", - "@contentstack/cli-cm-branches": "~1.0.10", + "@contentstack/cli-cm-branches": "~1.0.11", "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.1", - "@contentstack/cli-cm-import": "~1.8.1", + "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-import": "~1.8.2", "@contentstack/cli-cm-migrate-rte": "^1.4.10", "@contentstack/cli-cm-seed": "^1.4.14", "@contentstack/cli-command": "^1.2.11", "@contentstack/cli-config": "^1.4.10", "@contentstack/cli-launch": "^1.0.10", - "@contentstack/cli-migration": "^1.3.10", + "@contentstack/cli-migration": "^1.3.11", "@contentstack/cli-utilities": "^1.5.1", "@contentstack/management": "~1.10.0", "@oclif/core": "^2.9.3", diff --git a/packages/contentstack-branches/README.md b/packages/contentstack-branches/README.md index e961926c4c..c82e0abf23 100755 --- a/packages/contentstack-branches/README.md +++ b/packages/contentstack-branches/README.md @@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-branches/1.0.10 darwin-arm64 node-v20.3.1 +@contentstack/cli-cm-branches/1.0.11 darwin-arm64 node-v18.14.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-branches/package.json b/packages/contentstack-branches/package.json index 7ed7022517..7d788ef48f 100644 --- a/packages/contentstack-branches/package.json +++ b/packages/contentstack-branches/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-branches", "description": "Contentstack CLI plugin to do branches operations", - "version": "1.0.10", + "version": "1.0.11", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack-import/README.md b/packages/contentstack-import/README.md index d4e8c90c41..ae6eaa55d9 100644 --- a/packages/contentstack-import/README.md +++ b/packages/contentstack-import/README.md @@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-import/1.8.1 darwin-arm64 node-v20.3.1 +@contentstack/cli-cm-import/1.8.2 darwin-arm64 node-v18.14.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-import/package.json b/packages/contentstack-import/package.json index 0a6f07f064..0712d83cdc 100644 --- a/packages/contentstack-import/package.json +++ b/packages/contentstack-import/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-import", "description": "Contentstack CLI plugin to import content into stack", - "version": "1.8.1", + "version": "1.8.2", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack-migration/README.md b/packages/contentstack-migration/README.md index fb6fdebcb9..48aa79fc52 100644 --- a/packages/contentstack-migration/README.md +++ b/packages/contentstack-migration/README.md @@ -21,7 +21,7 @@ $ npm install -g @contentstack/cli-migration $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-migration/1.3.10 darwin-arm64 node-v20.3.1 +@contentstack/cli-migration/1.3.11 darwin-arm64 node-v18.14.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-migration/package.json b/packages/contentstack-migration/package.json index f0f02f3961..606e4204b8 100644 --- a/packages/contentstack-migration/package.json +++ b/packages/contentstack-migration/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/cli-migration", - "version": "1.3.10", + "version": "1.3.11", "author": "@contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack/README.md b/packages/contentstack/README.md index 2747f10302..ad474f5c17 100644 --- a/packages/contentstack/README.md +++ b/packages/contentstack/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli/1.8.1 darwin-arm64 node-v20.3.1 +@contentstack/cli/1.8.2 darwin-arm64 node-v18.14.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index adf4303dfa..6546441c91 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli", "description": "Command-line tool (CLI) to interact with Contentstack", - "version": "1.8.1", + "version": "1.8.2", "author": "Contentstack", "bin": { "csdx": "./bin/run" @@ -27,17 +27,17 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.1", - "@contentstack/cli-cm-import": "~1.8.1", + "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-import": "~1.8.2", "@contentstack/cli-cm-migrate-rte": "^1.4.10", "@contentstack/cli-cm-seed": "^1.4.14", "@contentstack/cli-command": "^1.2.11", "@contentstack/cli-config": "^1.4.10", "@contentstack/cli-launch": "^1.0.10", - "@contentstack/cli-migration": "^1.3.10", + "@contentstack/cli-migration": "^1.3.11", "@contentstack/cli-utilities": "^1.5.1", "@contentstack/management": "~1.10.0", - "@contentstack/cli-cm-branches": "~1.0.10", + "@contentstack/cli-cm-branches": "~1.0.11", "@oclif/plugin-help": "^5", "@oclif/plugin-not-found": "^2.3.9", "@oclif/plugin-plugins": "^2.1.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 27ac1eb1f1..efa0b9b112 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,18 +12,18 @@ importers: specifiers: '@contentstack/cli-auth': ~1.3.12 '@contentstack/cli-cm-bootstrap': ~1.4.14 - '@contentstack/cli-cm-branches': ~1.0.10 + '@contentstack/cli-cm-branches': ~1.0.11 '@contentstack/cli-cm-bulk-publish': ~1.3.10 '@contentstack/cli-cm-clone': ~1.4.15 '@contentstack/cli-cm-export': ~1.8.0 - '@contentstack/cli-cm-export-to-csv': ^1.4.1 - '@contentstack/cli-cm-import': ~1.8.1 + '@contentstack/cli-cm-export-to-csv': ^1.4.0 + '@contentstack/cli-cm-import': ~1.8.2 '@contentstack/cli-cm-migrate-rte': ^1.4.10 '@contentstack/cli-cm-seed': ^1.4.14 '@contentstack/cli-command': ^1.2.11 '@contentstack/cli-config': ^1.4.10 '@contentstack/cli-launch': ^1.0.10 - '@contentstack/cli-migration': ^1.3.10 + '@contentstack/cli-migration': ^1.3.11 '@contentstack/cli-utilities': ^1.5.1 '@contentstack/management': ~1.10.0 '@oclif/core': ^2.9.3 From 5fcd9c8b4b4085ac99c2ac41d12b0e1bbccb0ef0 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Thu, 24 Aug 2023 18:48:58 +0530 Subject: [PATCH 14/30] fix: changed ^ to ~ --- packages/contentstack/package.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 6546441c91..14e61aab08 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -27,15 +27,15 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-export-to-csv": "~1.4.0", "@contentstack/cli-cm-import": "~1.8.2", - "@contentstack/cli-cm-migrate-rte": "^1.4.10", - "@contentstack/cli-cm-seed": "^1.4.14", - "@contentstack/cli-command": "^1.2.11", - "@contentstack/cli-config": "^1.4.10", - "@contentstack/cli-launch": "^1.0.10", - "@contentstack/cli-migration": "^1.3.11", - "@contentstack/cli-utilities": "^1.5.1", + "@contentstack/cli-cm-migrate-rte": "~1.4.10", + "@contentstack/cli-cm-seed": "~1.4.14", + "@contentstack/cli-command": "~1.2.11", + "@contentstack/cli-config": "~1.4.10", + "@contentstack/cli-launch": "~1.0.10", + "@contentstack/cli-migration": "~1.3.11", + "@contentstack/cli-utilities": "~1.5.1", "@contentstack/management": "~1.10.0", "@contentstack/cli-cm-branches": "~1.0.11", "@oclif/plugin-help": "^5", From cfd557f82919036a196d61b51f1f49fd93cd8370 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Thu, 24 Aug 2023 18:51:40 +0530 Subject: [PATCH 15/30] updated lock files and READMEs --- package-lock.json | 32 +++++++++++------------ packages/contentstack-branches/README.md | 2 +- packages/contentstack-import/README.md | 2 +- packages/contentstack-migration/README.md | 2 +- packages/contentstack/README.md | 2 +- pnpm-lock.yaml | 16 ++++++------ 6 files changed, 28 insertions(+), 28 deletions(-) diff --git a/package-lock.json b/package-lock.json index d5d620ac1b..47034f3041 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20307,15 +20307,15 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-export-to-csv": "~1.4.0", "@contentstack/cli-cm-import": "~1.8.2", - "@contentstack/cli-cm-migrate-rte": "^1.4.10", - "@contentstack/cli-cm-seed": "^1.4.14", - "@contentstack/cli-command": "^1.2.11", - "@contentstack/cli-config": "^1.4.10", - "@contentstack/cli-launch": "^1.0.10", - "@contentstack/cli-migration": "^1.3.11", - "@contentstack/cli-utilities": "^1.5.1", + "@contentstack/cli-cm-migrate-rte": "~1.4.10", + "@contentstack/cli-cm-seed": "~1.4.14", + "@contentstack/cli-command": "~1.2.11", + "@contentstack/cli-config": "~1.4.10", + "@contentstack/cli-launch": "~1.0.10", + "@contentstack/cli-migration": "~1.3.11", + "@contentstack/cli-utilities": "~1.5.1", "@contentstack/management": "~1.10.0", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", @@ -23707,15 +23707,15 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "^1.4.0", + "@contentstack/cli-cm-export-to-csv": "~1.4.0", "@contentstack/cli-cm-import": "~1.8.2", - "@contentstack/cli-cm-migrate-rte": "^1.4.10", - "@contentstack/cli-cm-seed": "^1.4.14", - "@contentstack/cli-command": "^1.2.11", - "@contentstack/cli-config": "^1.4.10", - "@contentstack/cli-launch": "^1.0.10", - "@contentstack/cli-migration": "^1.3.11", - "@contentstack/cli-utilities": "^1.5.1", + "@contentstack/cli-cm-migrate-rte": "~1.4.10", + "@contentstack/cli-cm-seed": "~1.4.14", + "@contentstack/cli-command": "~1.2.11", + "@contentstack/cli-config": "~1.4.10", + "@contentstack/cli-launch": "~1.0.10", + "@contentstack/cli-migration": "~1.3.11", + "@contentstack/cli-utilities": "~1.5.1", "@contentstack/management": "~1.10.0", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", diff --git a/packages/contentstack-branches/README.md b/packages/contentstack-branches/README.md index c82e0abf23..d6c9aeb884 100755 --- a/packages/contentstack-branches/README.md +++ b/packages/contentstack-branches/README.md @@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-branches/1.0.11 darwin-arm64 node-v18.14.0 +@contentstack/cli-cm-branches/1.0.11 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-import/README.md b/packages/contentstack-import/README.md index ae6eaa55d9..20b53af987 100644 --- a/packages/contentstack-import/README.md +++ b/packages/contentstack-import/README.md @@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-import/1.8.2 darwin-arm64 node-v18.14.0 +@contentstack/cli-cm-import/1.8.2 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-migration/README.md b/packages/contentstack-migration/README.md index 48aa79fc52..23933f2703 100644 --- a/packages/contentstack-migration/README.md +++ b/packages/contentstack-migration/README.md @@ -21,7 +21,7 @@ $ npm install -g @contentstack/cli-migration $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-migration/1.3.11 darwin-arm64 node-v18.14.0 +@contentstack/cli-migration/1.3.11 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack/README.md b/packages/contentstack/README.md index ad474f5c17..71f2806b2b 100644 --- a/packages/contentstack/README.md +++ b/packages/contentstack/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli/1.8.2 darwin-arm64 node-v18.14.0 +@contentstack/cli/1.8.2 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index efa0b9b112..e2237033dc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,15 +16,15 @@ importers: '@contentstack/cli-cm-bulk-publish': ~1.3.10 '@contentstack/cli-cm-clone': ~1.4.15 '@contentstack/cli-cm-export': ~1.8.0 - '@contentstack/cli-cm-export-to-csv': ^1.4.0 + '@contentstack/cli-cm-export-to-csv': ~1.4.0 '@contentstack/cli-cm-import': ~1.8.2 - '@contentstack/cli-cm-migrate-rte': ^1.4.10 - '@contentstack/cli-cm-seed': ^1.4.14 - '@contentstack/cli-command': ^1.2.11 - '@contentstack/cli-config': ^1.4.10 - '@contentstack/cli-launch': ^1.0.10 - '@contentstack/cli-migration': ^1.3.11 - '@contentstack/cli-utilities': ^1.5.1 + '@contentstack/cli-cm-migrate-rte': ~1.4.10 + '@contentstack/cli-cm-seed': ~1.4.14 + '@contentstack/cli-command': ~1.2.11 + '@contentstack/cli-config': ~1.4.10 + '@contentstack/cli-launch': ~1.0.10 + '@contentstack/cli-migration': ~1.3.11 + '@contentstack/cli-utilities': ~1.5.1 '@contentstack/management': ~1.10.0 '@oclif/core': ^2.9.3 '@oclif/plugin-help': ^5 From e3917c8853aa481216baffeb37697f4eb9f6d759 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Mon, 28 Aug 2023 16:19:27 +0530 Subject: [PATCH 16/30] version bump after merge --- package-lock.json | 4 ++-- packages/contentstack/package.json | 2 +- pnpm-lock.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 47034f3041..c336e89ccc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20307,7 +20307,7 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "~1.4.0", + "@contentstack/cli-cm-export-to-csv": "~1.4.1", "@contentstack/cli-cm-import": "~1.8.2", "@contentstack/cli-cm-migrate-rte": "~1.4.10", "@contentstack/cli-cm-seed": "~1.4.14", @@ -23707,7 +23707,7 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "~1.4.0", + "@contentstack/cli-cm-export-to-csv": "~1.4.1", "@contentstack/cli-cm-import": "~1.8.2", "@contentstack/cli-cm-migrate-rte": "~1.4.10", "@contentstack/cli-cm-seed": "~1.4.14", diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 14e61aab08..8964ca5366 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -27,7 +27,7 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "~1.4.0", + "@contentstack/cli-cm-export-to-csv": "~1.4.1", "@contentstack/cli-cm-import": "~1.8.2", "@contentstack/cli-cm-migrate-rte": "~1.4.10", "@contentstack/cli-cm-seed": "~1.4.14", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e2237033dc..45420abb25 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -16,7 +16,7 @@ importers: '@contentstack/cli-cm-bulk-publish': ~1.3.10 '@contentstack/cli-cm-clone': ~1.4.15 '@contentstack/cli-cm-export': ~1.8.0 - '@contentstack/cli-cm-export-to-csv': ~1.4.0 + '@contentstack/cli-cm-export-to-csv': ~1.4.1 '@contentstack/cli-cm-import': ~1.8.2 '@contentstack/cli-cm-migrate-rte': ~1.4.10 '@contentstack/cli-cm-seed': ~1.4.14 From 6a98bac8843e6a4643b95c770ad68e496bf496db Mon Sep 17 00:00:00 2001 From: raj pandey Date: Tue, 29 Aug 2023 19:07:28 +0530 Subject: [PATCH 17/30] Fixed excess entries addition in export to csv --- .../src/commands/cm/export-to-csv.js | 2 +- packages/contentstack-export-to-csv/src/util/index.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/contentstack-export-to-csv/src/commands/cm/export-to-csv.js b/packages/contentstack-export-to-csv/src/commands/cm/export-to-csv.js index 0258d91064..8fa579906c 100644 --- a/packages/contentstack-export-to-csv/src/commands/cm/export-to-csv.js +++ b/packages/contentstack-export-to-csv/src/commands/cm/export-to-csv.js @@ -207,7 +207,7 @@ class ExportToCsvCommand extends Command { const entriesCount = await util.getEntriesCount(stackAPIClient, contentType, language.code); let flatEntries = []; for (let index = 0; index < entriesCount / 100; index++) { - const entriesResult = await util.getEntries(stackAPIClient, contentType, language.code, index); + const entriesResult = await util.getEntries(stackAPIClient, contentType, language.code, index, 100); const flatEntriesResult = util.cleanEntries( entriesResult.items, language.code, diff --git a/packages/contentstack-export-to-csv/src/util/index.js b/packages/contentstack-export-to-csv/src/util/index.js index 84a8cf8817..a60f5aca19 100644 --- a/packages/contentstack-export-to-csv/src/util/index.js +++ b/packages/contentstack-export-to-csv/src/util/index.js @@ -316,12 +316,12 @@ function getLanguages(stackAPIClient) { }); } -function getEntries(stackAPIClient, contentType, language, skip) { +function getEntries(stackAPIClient, contentType, language, skip, limit) { return new Promise((resolve, reject) => { stackAPIClient .contentType(contentType) .entry() - .query({ include_publish_details: true, locale: language, skip: skip * 100 }) + .query({ include_publish_details: true, locale: language, skip: skip * 100, limit: limit }) .find() .then((entries) => resolve(entries)) .catch((error) => reject(error)); @@ -373,9 +373,8 @@ function exitProgram() { function cleanEntries(entries, language, environments, contentTypeUid) { const filteredEntries = entries.filter((entry) => { - return entry['locale'] === language && entry.publish_details.length > 0; + return entry['locale'] === language; }); - return filteredEntries.map((entry) => { let workflow = ''; const envArr = []; @@ -405,6 +404,7 @@ function cleanEntries(entries, language, environments, contentTypeUid) { delete entry.publishRequest; return entry; }); + console.log(filteredEntries.length); } function getDateTime() { From f861991ac61c7e06d46fe074a7bf0e377b7dbbc2 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Wed, 30 Aug 2023 10:18:20 +0530 Subject: [PATCH 18/30] Added check if the published details exist for an entry or not --- packages/contentstack-export-to-csv/src/util/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/contentstack-export-to-csv/src/util/index.js b/packages/contentstack-export-to-csv/src/util/index.js index a60f5aca19..da50b4c5ad 100644 --- a/packages/contentstack-export-to-csv/src/util/index.js +++ b/packages/contentstack-export-to-csv/src/util/index.js @@ -378,9 +378,11 @@ function cleanEntries(entries, language, environments, contentTypeUid) { return filteredEntries.map((entry) => { let workflow = ''; const envArr = []; - entry.publish_details.forEach((env) => { - envArr.push(JSON.stringify([environments[env['environment']], env['locale'], env['time']])); - }); + if(entry.publish_details.length) { + entry.publish_details.forEach((env) => { + envArr.push(JSON.stringify([environments[env['environment']], env['locale'], env['time']])); + }); + } delete entry.publish_details; if ('_workflow' in entry) { if(entry._workflow?.name) { From 952489b60b885d36f3a564d3ea51abc0684fd3fc Mon Sep 17 00:00:00 2001 From: raj pandey Date: Wed, 30 Aug 2023 10:34:24 +0530 Subject: [PATCH 19/30] Changed the required text for selecting content types and moved setWorkflowStage column --- packages/contentstack-export-to-csv/src/util/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/contentstack-export-to-csv/src/util/index.js b/packages/contentstack-export-to-csv/src/util/index.js index 2e1f7596dd..24ff17c770 100644 --- a/packages/contentstack-export-to-csv/src/util/index.js +++ b/packages/contentstack-export-to-csv/src/util/index.js @@ -199,7 +199,7 @@ function chooseContentType(stackAPIClient, skip) { let _chooseContentType = [ { type: 'checkbox', - message: 'Choose Content Type (Press Space to select all the content type) ', + message: 'Choose Content Type (Press Space to select the content types) ', choices: contentTypesList, name: 'chosenContentTypes', loop: false, @@ -218,7 +218,7 @@ function chooseInMemContentTypes(contentTypesList) { let _chooseContentType = [ { type: 'checkbox-plus', - message: 'Choose Content Type (Press Space to select all the content type)', + message: 'Choose Content Type (Press Space to select the content types)', choices: contentTypesList, name: 'chosenContentTypes', loop: false, @@ -394,11 +394,11 @@ function cleanEntries(entries, language, environments, contentTypeUid) { } } entry = flatten(entry); + entry['setWorkflowStage'] = workFlowStage; entry['publish_details'] = envArr; entry['_workflow'] = workflow; entry['ACL'] = JSON.stringify({}); // setting ACL to empty obj entry['content_type_uid'] = contentTypeUid; // content_type_uid is being returned as 'uid' from the sdk for some reason - entry['setWorkflowStage'] = workFlowStage; // entry['url'] might also be wrong delete entry.stackHeaders; From 358a6a533ed22e9f16db5f60230f09698841531a Mon Sep 17 00:00:00 2001 From: Vikram Kalta Date: Wed, 30 Aug 2023 11:33:18 +0100 Subject: [PATCH 20/30] fix: updated package-lock.json --- package-lock.json | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4eb63ff6ff..e7d838cf89 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21081,7 +21081,7 @@ "fast-csv": "^4.3.6", "inquirer": "8.2.4", "inquirer-checkbox-plus-prompt": "1.0.1", - "mkdirp": "^1.0.4" + "mkdirp": "^3.0.1" }, "devDependencies": { "@oclif/test": "^2.2.10", @@ -21309,6 +21309,20 @@ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true }, + "packages/contentstack-export-to-csv/node_modules/mkdirp": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", + "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==", + "bin": { + "mkdirp": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "packages/contentstack-export/node_modules/@oclif/test": { "version": "1.2.9", "resolved": "https://registry.npmjs.org/@oclif/test/-/test-1.2.9.tgz", @@ -24062,7 +24076,7 @@ "globby": "^10.0.2", "inquirer": "8.2.4", "inquirer-checkbox-plus-prompt": "1.0.1", - "mkdirp": "^1.0.4", + "mkdirp": "^3.0.1", "mocha": "^10.0.0", "nyc": "^15.1.0", "oclif": "^3.8.1" @@ -24233,6 +24247,11 @@ "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", "dev": true + }, + "mkdirp": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-3.0.1.tgz", + "integrity": "sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==" } } }, From c2aafc6e9b53fef2f72f6555ef8e093e26ec5e08 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Thu, 31 Aug 2023 12:03:59 +0530 Subject: [PATCH 21/30] Modified sdk call to include the workflow and removed the setWorkFlowStage changes to remove addition of empty column --- packages/contentstack-export-to-csv/src/util/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/contentstack-export-to-csv/src/util/index.js b/packages/contentstack-export-to-csv/src/util/index.js index 24ff17c770..73a232f0dc 100644 --- a/packages/contentstack-export-to-csv/src/util/index.js +++ b/packages/contentstack-export-to-csv/src/util/index.js @@ -321,7 +321,7 @@ function getEntries(stackAPIClient, contentType, language, skip, limit) { stackAPIClient .contentType(contentType) .entry() - .query({ include_publish_details: true, locale: language, skip: skip * 100, limit: limit }) + .query({ include_publish_details: true, locale: language, skip: skip * 100, limit: limit, include_workflow: true }) .find() .then((entries) => resolve(entries)) .catch((error) => reject(error)); @@ -378,7 +378,6 @@ function cleanEntries(entries, language, environments, contentTypeUid) { return filteredEntries.map((entry) => { let workflow = ''; const envArr = []; - const workFlowStage = JSON.stringify(entry.setWorkflowStage); if(entry.publish_details.length) { entry.publish_details.forEach((env) => { envArr.push(JSON.stringify([environments[env['environment']], env['locale'], env['time']])); @@ -394,7 +393,6 @@ function cleanEntries(entries, language, environments, contentTypeUid) { } } entry = flatten(entry); - entry['setWorkflowStage'] = workFlowStage; entry['publish_details'] = envArr; entry['_workflow'] = workflow; entry['ACL'] = JSON.stringify({}); // setting ACL to empty obj From 1d0d13b5651cebeb9da9ca2988469fc760f00eb9 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Fri, 1 Sep 2023 11:28:14 +0530 Subject: [PATCH 22/30] Changed the sequence of prompts for base branch and compare branch --- package-lock.json | 6 +++--- packages/contentstack-branches/package.json | 2 +- .../src/utils/merge-helper.ts | 14 +++++++------- packages/contentstack/package.json | 2 +- pnpm-lock.yaml | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index c336e89ccc..5f887e380c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20303,7 +20303,7 @@ "dependencies": { "@contentstack/cli-auth": "~1.3.12", "@contentstack/cli-cm-bootstrap": "~1.4.14", - "@contentstack/cli-cm-branches": "~1.0.11", + "@contentstack/cli-cm-branches": "~1.0.12", "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", @@ -20485,7 +20485,7 @@ }, "packages/contentstack-branches": { "name": "@contentstack/cli-cm-branches", - "version": "1.0.11", + "version": "1.0.12", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.11", @@ -23703,7 +23703,7 @@ "requires": { "@contentstack/cli-auth": "~1.3.12", "@contentstack/cli-cm-bootstrap": "~1.4.14", - "@contentstack/cli-cm-branches": "~1.0.11", + "@contentstack/cli-cm-branches": "~1.0.12", "@contentstack/cli-cm-bulk-publish": "~1.3.10", "@contentstack/cli-cm-clone": "~1.4.15", "@contentstack/cli-cm-export": "~1.8.0", diff --git a/packages/contentstack-branches/package.json b/packages/contentstack-branches/package.json index 7d788ef48f..ff4599dafe 100644 --- a/packages/contentstack-branches/package.json +++ b/packages/contentstack-branches/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-branches", "description": "Contentstack CLI plugin to do branches operations", - "version": "1.0.11", + "version": "1.0.12", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack-branches/src/utils/merge-helper.ts b/packages/contentstack-branches/src/utils/merge-helper.ts index 6dc60d2234..e456268c3b 100644 --- a/packages/contentstack-branches/src/utils/merge-helper.ts +++ b/packages/contentstack-branches/src/utils/merge-helper.ts @@ -60,13 +60,6 @@ export const setupMergeInputs = async (mergeFlags) => { if (!mergeFlags['stack-api-key']) { mergeFlags['stack-api-key'] = await askStackAPIKey(); } - if (!mergeFlags['compare-branch']) { - if (!compare_branch) { - mergeFlags['compare-branch'] = await askCompareBranch(); - } else { - mergeFlags['compare-branch'] = compare_branch; - } - } if (!mergeFlags['base-branch']) { if (!base_branch) { mergeFlags['base-branch'] = getbranchConfig(mergeFlags['stack-api-key']); @@ -79,6 +72,13 @@ export const setupMergeInputs = async (mergeFlags) => { mergeFlags['base-branch'] = base_branch; } } + if (!mergeFlags['compare-branch']) { + if (!compare_branch) { + mergeFlags['compare-branch'] = await askCompareBranch(); + } else { + mergeFlags['compare-branch'] = compare_branch; + } + } return mergeFlags; }; diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 8964ca5366..b3365f12b9 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -37,7 +37,7 @@ "@contentstack/cli-migration": "~1.3.11", "@contentstack/cli-utilities": "~1.5.1", "@contentstack/management": "~1.10.0", - "@contentstack/cli-cm-branches": "~1.0.11", + "@contentstack/cli-cm-branches": "~1.0.12", "@oclif/plugin-help": "^5", "@oclif/plugin-not-found": "^2.3.9", "@oclif/plugin-plugins": "^2.1.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 45420abb25..182c5d1953 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,7 +12,7 @@ importers: specifiers: '@contentstack/cli-auth': ~1.3.12 '@contentstack/cli-cm-bootstrap': ~1.4.14 - '@contentstack/cli-cm-branches': ~1.0.11 + '@contentstack/cli-cm-branches': ~1.0.12 '@contentstack/cli-cm-bulk-publish': ~1.3.10 '@contentstack/cli-cm-clone': ~1.4.15 '@contentstack/cli-cm-export': ~1.8.0 From f6e7295a7a4c4439d9162f9543eb174db270a955 Mon Sep 17 00:00:00 2001 From: Antony Date: Fri, 1 Sep 2023 19:30:14 +0530 Subject: [PATCH 23/30] Feat: Enable users to generate a CLI configuration file in their chosen directory path. --- .../src/config-handler.ts | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/packages/contentstack-utilities/src/config-handler.ts b/packages/contentstack-utilities/src/config-handler.ts index 77be21a907..48cde18f54 100644 --- a/packages/contentstack-utilities/src/config-handler.ts +++ b/packages/contentstack-utilities/src/config-handler.ts @@ -19,6 +19,8 @@ const oldConfigDirectory = xdgBasedir.config || path.join(os.tmpdir(), uniqueStr const pathPrefix = path.join('configstore', `${CONFIG_NAME}.json`); const oldConfigPath = path.join(oldConfigDirectory, pathPrefix); +const cwd = process.env.CS_CLI_CONFIG_PATH; + class Config { private config: Conf; @@ -81,7 +83,7 @@ class Config { private getObfuscationKey() { const obfuscationKeyName = 'obfuscation_key'; - const encConfig = new Conf({ configName: ENC_CONFIG_NAME }); + const encConfig = new Conf({ configName: ENC_CONFIG_NAME, cwd }); let obfuscationKey: any = encConfig?.get(obfuscationKeyName); if (!obfuscationKey) { @@ -110,7 +112,7 @@ class Config { try { // NOTE reading current code base encrypted file if exist const encryptionKey: any = this.getObfuscationKey(); - this.config = new Conf({ configName: CONFIG_NAME, encryptionKey }); + this.config = new Conf({ configName: CONFIG_NAME, encryptionKey, cwd }); if (Object.keys(configData || {})?.length) { this.config.set(configData); // NOTE set config data if passed any @@ -122,7 +124,7 @@ class Config { const oldConfigData = this.getConfigDataAndUnlinkConfigFile(config); this.getEncryptedConfig(oldConfigData, true); } catch (_error) { - cliux.print(chalk.red("Error: Config file is corrupted")); + cliux.print(chalk.red('Error: Config file is corrupted')); cliux.print(_error); process.exit(1); } @@ -148,7 +150,7 @@ class Config { private getDecryptedConfig(configData?: Record) { try { - this.config = new Conf({ configName: CONFIG_NAME }); + this.config = new Conf({ configName: CONFIG_NAME, cwd }); if (Object.keys(configData || {})?.length) { this.config.set(configData); // NOTE set config data if passed any @@ -158,7 +160,7 @@ class Config { try { const encryptionKey: any = this.getObfuscationKey(); - let config = new Conf({ configName: CONFIG_NAME, encryptionKey }); + let config = new Conf({ configName: CONFIG_NAME, encryptionKey, cwd }); const oldConfigData = this.getConfigDataAndUnlinkConfigFile(config); this.getDecryptedConfig(oldConfigData); // NOTE NOTE reinitialize the config with old data and new decrypted file } catch (_error) { @@ -170,8 +172,8 @@ class Config { this.getDecryptedConfig(_configData); // NOTE reinitialize the config with old data and new decrypted file } catch (__error) { // console.trace(error.message) - cliux.print(chalk.red("Error: Config file is corrupted")); - cliux.print(_error) + cliux.print(chalk.red('Error: Config file is corrupted')); + cliux.print(_error); process.exit(1); } } @@ -184,7 +186,7 @@ class Config { return this.config?.get(key); } - async set(key, value) { + set(key, value) { this.config?.set(key, value); return this.config; } From 16367310077c7278ebd3e428044ac4c9b8fe092f Mon Sep 17 00:00:00 2001 From: Antony Date: Fri, 1 Sep 2023 19:31:52 +0530 Subject: [PATCH 24/30] Fix: Workflow update API issue fix --- .../contentstack-import/src/import/modules-js/workflows.js | 4 +--- packages/contentstack-import/src/import/modules/workflows.ts | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/packages/contentstack-import/src/import/modules-js/workflows.js b/packages/contentstack-import/src/import/modules-js/workflows.js index ca5dcadaea..4bc51dfb82 100644 --- a/packages/contentstack-import/src/import/modules-js/workflows.js +++ b/packages/contentstack-import/src/import/modules-js/workflows.js @@ -188,10 +188,8 @@ module.exports = class importWorkflows { return newStage; }); - workflow.workflow_stages = newWorkflowStages; - const updateWorkflow = this.stackAPIClient.workflow(workflow.uid); - Object.assign(updateWorkflow, workflow); + Object.assign(updateWorkflow, { workflow_stages: newWorkflowStages, name: workflow.name }); return updateWorkflow.update(); } }; diff --git a/packages/contentstack-import/src/import/modules/workflows.ts b/packages/contentstack-import/src/import/modules/workflows.ts index c1ab96975a..b4f4db4a0b 100644 --- a/packages/contentstack-import/src/import/modules/workflows.ts +++ b/packages/contentstack-import/src/import/modules/workflows.ts @@ -184,10 +184,9 @@ export default class ImportWorkflows extends BaseClass { return newStage; }); - workflow.workflow_stages = newWorkflowStages; - const updateWorkflow = this.stack.workflow(workflow.uid); - Object.assign(updateWorkflow, workflow); + Object.assign(updateWorkflow, { workflow_stages: newWorkflowStages, name: workflow.name }); + return updateWorkflow.update(); } From 024dedf0a33e5bc8a5a27fba99be9a71a86f5b8f Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Tue, 5 Sep 2023 16:51:14 +0530 Subject: [PATCH 25/30] WIP: oauth logout --- .../src/commands/auth/logout.ts | 1 + .../src/auth-handler.ts | 38 +++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/packages/contentstack-auth/src/commands/auth/logout.ts b/packages/contentstack-auth/src/commands/auth/logout.ts index 7021cb073a..9b01df3dff 100644 --- a/packages/contentstack-auth/src/commands/auth/logout.ts +++ b/packages/contentstack-auth/src/commands/auth/logout.ts @@ -60,6 +60,7 @@ export default class LogoutCommand extends Command { } } else { cliux.loader('CLI_AUTH_LOGOUT_LOADER_START'); + await oauthHandler.oauthLogout() cliux.loader(''); logger.info('successfully logged out'); cliux.success('CLI_AUTH_LOGOUT_SUCCESS'); diff --git a/packages/contentstack-utilities/src/auth-handler.ts b/packages/contentstack-utilities/src/auth-handler.ts index fc104d5ca3..fd389f8e3b 100644 --- a/packages/contentstack-utilities/src/auth-handler.ts +++ b/packages/contentstack-utilities/src/auth-handler.ts @@ -409,6 +409,44 @@ class AuthHandler { }); } + async oauthLogout(): Promise { + const authorization = await this.listOauthAppAuthorizations(); + const response = await this.revokeOauthAppAuthorization(authorization) + debugger + } + + async listOauthAppAuthorizations(): Promise { + const headers = { + authorization: `Bearer ${configHandler.get(this.oauthAccessTokenKeyName)}`, + organization_uid: configHandler.get(this.oauthOrgUidKeyName), + 'Content-type': 'application/json' + } + const httpClient = new HttpClient().headers(headers) + await this.setOAuthBaseURL(); + return httpClient + .get(`${this.OAuthBaseURL}/apps-api/manifests/${this.OAuthAppId}/authorizations`) + .then(({data}) => { + let userUid = configHandler.get(this.oauthUserUidKeyName) + let currentUserAuthorization = data.data.filter(element => element.user.uid === userUid); + return currentUserAuthorization[0].authorization_uid // filter authorizations by current logged in user + }) + } + + async revokeOauthAppAuthorization(authorizationId): Promise { + const headers = { + authorization: `Bearer ${configHandler.get(this.oauthAccessTokenKeyName)}`, + organization_uid: configHandler.get(this.oauthOrgUidKeyName), + 'Content-type': 'application/json' + } + const httpClient = new HttpClient().headers(headers) + await this.setOAuthBaseURL(); + return httpClient + .delete(`${this.OAuthBaseURL}/apps-api/manifests/${this.OAuthAppId}/authorizations/${authorizationId}`) + .then(({data}) => { + return data + }) + } + isAuthenticated(): boolean { const authorizationType = configHandler.get(this.authorisationTypeKeyName); return ( From 4285aa2274e4c23a4a04bc2cb2913a37274e35e4 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Tue, 5 Sep 2023 18:40:39 +0530 Subject: [PATCH 26/30] fix: added validations and error messages --- .../contentstack-auth/messages/index.json | 1 + .../src/commands/auth/logout.ts | 16 +++--- .../contentstack-utilities/messages/auth.json | 2 + .../src/auth-handler.ts | 52 ++++++++++++------- 4 files changed, 43 insertions(+), 28 deletions(-) diff --git a/packages/contentstack-auth/messages/index.json b/packages/contentstack-auth/messages/index.json index 94bfa2857c..d9c93793de 100644 --- a/packages/contentstack-auth/messages/index.json +++ b/packages/contentstack-auth/messages/index.json @@ -17,6 +17,7 @@ "CLI_AUTH_LOGOUT_FAILED": "Error in logout, please login again", "CLI_AUTH_LOGOUT_DESCRIPTION": "User session logout", "CLI_AUTH_LOGOUT_FLAG_FORCE": "Force logging out for skipping the confirmation", + "CLI_AUTH_LOGOUT_ALREADY": "You're already logged out", "CLI_AUTH_WHOAMI_LOGGED_IN_AS": "You are currently logged in with email", "CLI_AUTH_WHOAMI_FAILED": "Failed to get the current user details", "CLI_AUTH_WHOAMI_DESCRIPTION": "Display current users email address", diff --git a/packages/contentstack-auth/src/commands/auth/logout.ts b/packages/contentstack-auth/src/commands/auth/logout.ts index 9b01df3dff..4196ccbbcd 100644 --- a/packages/contentstack-auth/src/commands/auth/logout.ts +++ b/packages/contentstack-auth/src/commands/auth/logout.ts @@ -50,20 +50,18 @@ export default class LogoutCommand extends Command { try { const managementAPIClient = await managementSDKClient({ host: this.cmaHost, skipTokenValidity: true }); authHandler.client = managementAPIClient; - if ((await oauthHandler.isAuthenticated()) && (await oauthHandler.isAuthorisationTypeBasic())) { - if (confirm === true) { - cliux.loader('CLI_AUTH_LOGOUT_LOADER_START'); + if (confirm === true && (await oauthHandler.isAuthenticated())) { + cliux.loader('CLI_AUTH_LOGOUT_LOADER_START'); + if (await oauthHandler.isAuthorisationTypeBasic()) { await authHandler.logout(configHandler.get('authtoken')); - cliux.loader(''); - logger.info('successfully logged out'); - cliux.success('CLI_AUTH_LOGOUT_SUCCESS'); + } else if (await oauthHandler.isAuthorisationTypeOAuth()) { + await oauthHandler.oauthLogout() } - } else { - cliux.loader('CLI_AUTH_LOGOUT_LOADER_START'); - await oauthHandler.oauthLogout() cliux.loader(''); logger.info('successfully logged out'); cliux.success('CLI_AUTH_LOGOUT_SUCCESS'); + } else { + cliux.success('CLI_AUTH_LOGOUT_ALREADY'); } } catch (error) { let errorMessage = ''; diff --git a/packages/contentstack-utilities/messages/auth.json b/packages/contentstack-utilities/messages/auth.json index d057a1a9ab..87635b9090 100644 --- a/packages/contentstack-utilities/messages/auth.json +++ b/packages/contentstack-utilities/messages/auth.json @@ -15,6 +15,8 @@ "CLI_AUTH_LOGOUT_FAILED": "Error in logout, please login again", "CLI_AUTH_LOGOUT_DESCRIPTION": "User session logout", "CLI_AUTH_LOGOUT_FLAG_FORCE": "Force logging out for skipping the confirmation", + "CLI_AUTH_LOGOUT_NO_AUTHORIZATIONS": "No authorizations found", + "CLI_AUTH_LOGOUT_NO_AUTHORIZATIONS_USER": "No authorizations found for current user", "CLI_AUTH_WHOAMI_LOGGED_IN_AS": "You are currently logged in with email", "CLI_AUTH_WHOAMI_FAILED": "Failed to get the current user details", "CLI_AUTH_WHOAMI_DESCRIPTION": "Display current users email address", diff --git a/packages/contentstack-utilities/src/auth-handler.ts b/packages/contentstack-utilities/src/auth-handler.ts index fd389f8e3b..2177e04274 100644 --- a/packages/contentstack-utilities/src/auth-handler.ts +++ b/packages/contentstack-utilities/src/auth-handler.ts @@ -3,6 +3,7 @@ import logger from './logger'; import HttpClient from './http-client'; import configHandler from './config-handler'; import * as ContentstackManagementSDK from '@contentstack/management'; +import messageHandler from './message-handler'; const http = require('http'); const url = require('url'); import open from 'open'; @@ -409,13 +410,17 @@ class AuthHandler { }); } - async oauthLogout(): Promise { - const authorization = await this.listOauthAppAuthorizations(); - const response = await this.revokeOauthAppAuthorization(authorization) - debugger + async oauthLogout(): Promise { + const authorization: string = await this.getOauthAppAuthorization() || ""; + const response: {} = await this.revokeOauthAppAuthorization(authorization) + return response || {} } - async listOauthAppAuthorizations(): Promise { + /** + * Fetches all authorizations for the Oauth App, returns authorizationUid for current user. + * @returns authorizationUid for the current user + */ + async getOauthAppAuthorization(): Promise { const headers = { authorization: `Bearer ${configHandler.get(this.oauthAccessTokenKeyName)}`, organization_uid: configHandler.get(this.oauthOrgUidKeyName), @@ -426,25 +431,34 @@ class AuthHandler { return httpClient .get(`${this.OAuthBaseURL}/apps-api/manifests/${this.OAuthAppId}/authorizations`) .then(({data}) => { - let userUid = configHandler.get(this.oauthUserUidKeyName) - let currentUserAuthorization = data.data.filter(element => element.user.uid === userUid); - return currentUserAuthorization[0].authorization_uid // filter authorizations by current logged in user + if (data.data.length > 0) { + const userUid = configHandler.get(this.oauthUserUidKeyName) + const currentUserAuthorization = data.data.filter(element => element.user.uid === userUid); + if (currentUserAuthorization.length === 0) { + throw new Error(messageHandler.parse("CLI_AUTH_LOGOUT_NO_AUTHORIZATIONS_USER")) + } + return currentUserAuthorization[0].authorization_uid // filter authorizations by current logged in user + } else { + throw new Error(messageHandler.parse("CLI_AUTH_LOGOUT_NO_AUTHORIZATIONS")) + } }) } async revokeOauthAppAuthorization(authorizationId): Promise { - const headers = { - authorization: `Bearer ${configHandler.get(this.oauthAccessTokenKeyName)}`, - organization_uid: configHandler.get(this.oauthOrgUidKeyName), - 'Content-type': 'application/json' + if (authorizationId.length > 1) { + const headers = { + authorization: `Bearer ${configHandler.get(this.oauthAccessTokenKeyName)}`, + organization_uid: configHandler.get(this.oauthOrgUidKeyName), + 'Content-type': 'application/json' + } + const httpClient = new HttpClient().headers(headers) + await this.setOAuthBaseURL(); + return httpClient + .delete(`${this.OAuthBaseURL}/apps-api/manifests/${this.OAuthAppId}/authorizations/${authorizationId}`) + .then(({data}) => { + return data + }) } - const httpClient = new HttpClient().headers(headers) - await this.setOAuthBaseURL(); - return httpClient - .delete(`${this.OAuthBaseURL}/apps-api/manifests/${this.OAuthAppId}/authorizations/${authorizationId}`) - .then(({data}) => { - return data - }) } isAuthenticated(): boolean { From 8fbc29bd5556c3403f62183e30326c11151dbd3d Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Wed, 6 Sep 2023 12:01:27 +0530 Subject: [PATCH 27/30] fix: added optional chaining --- packages/contentstack-utilities/src/auth-handler.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/contentstack-utilities/src/auth-handler.ts b/packages/contentstack-utilities/src/auth-handler.ts index 2177e04274..14fa3e7c4a 100644 --- a/packages/contentstack-utilities/src/auth-handler.ts +++ b/packages/contentstack-utilities/src/auth-handler.ts @@ -431,9 +431,9 @@ class AuthHandler { return httpClient .get(`${this.OAuthBaseURL}/apps-api/manifests/${this.OAuthAppId}/authorizations`) .then(({data}) => { - if (data.data.length > 0) { + if (data?.data?.length > 0) { const userUid = configHandler.get(this.oauthUserUidKeyName) - const currentUserAuthorization = data.data.filter(element => element.user.uid === userUid); + const currentUserAuthorization = data?.data?.filter(element => element.user.uid === userUid) || []; if (currentUserAuthorization.length === 0) { throw new Error(messageHandler.parse("CLI_AUTH_LOGOUT_NO_AUTHORIZATIONS_USER")) } From 32cdffde022d854438e7d44c03908c091f986b31 Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Thu, 7 Sep 2023 11:12:30 +0530 Subject: [PATCH 28/30] updated: bumped versions --- packages/contentstack-auth/package.json | 6 ++-- packages/contentstack-bootstrap/package.json | 8 ++--- packages/contentstack-branches/package.json | 10 +++--- .../contentstack-bulk-publish/package.json | 6 ++-- packages/contentstack-clone/package.json | 10 +++--- packages/contentstack-command/package.json | 4 +-- packages/contentstack-config/package.json | 6 ++-- .../contentstack-export-to-csv/package.json | 6 ++-- packages/contentstack-export/package.json | 10 +++--- packages/contentstack-import/package.json | 6 ++-- packages/contentstack-launch/package.json | 6 ++-- .../contentstack-migrate-rte/package.json | 6 ++-- packages/contentstack-migration/package.json | 6 ++-- packages/contentstack-seed/package.json | 8 ++--- packages/contentstack-utilities/package.json | 2 +- packages/contentstack/package.json | 32 +++++++++---------- 16 files changed, 66 insertions(+), 66 deletions(-) diff --git a/packages/contentstack-auth/package.json b/packages/contentstack-auth/package.json index 2b931ec9bc..ea6c102315 100644 --- a/packages/contentstack-auth/package.json +++ b/packages/contentstack-auth/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-auth", "description": "Contentstack CLI plugin for authentication activities", - "version": "1.3.12", + "version": "1.3.13", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "scripts": { @@ -22,8 +22,8 @@ "test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\"" }, "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "chalk": "^4.0.0", "debug": "^4.1.1", "inquirer": "8.2.4", diff --git a/packages/contentstack-bootstrap/package.json b/packages/contentstack-bootstrap/package.json index ba1c090620..37b5ef7fdd 100644 --- a/packages/contentstack-bootstrap/package.json +++ b/packages/contentstack-bootstrap/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-bootstrap", "description": "Bootstrap contentstack apps", - "version": "1.4.14", + "version": "1.4.15", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "scripts": { @@ -17,9 +17,9 @@ "test:report": "nyc --reporter=lcov mocha \"test/**/*.test.js\"" }, "dependencies": { - "@contentstack/cli-cm-seed": "~1.4.14", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-cm-seed": "~1.4.15", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "inquirer": "8.2.4", "mkdirp": "^1.0.4", "tar": "^6.1.13" diff --git a/packages/contentstack-branches/package.json b/packages/contentstack-branches/package.json index ff4599dafe..3191c8c4e9 100644 --- a/packages/contentstack-branches/package.json +++ b/packages/contentstack-branches/package.json @@ -1,12 +1,12 @@ { "name": "@contentstack/cli-cm-branches", "description": "Contentstack CLI plugin to do branches operations", - "version": "1.0.12", + "version": "1.0.13", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/command": "^1.8.16", "@oclif/config": "^1.18.3", "@oclif/core": "^2.9.3", @@ -27,8 +27,8 @@ "winston": "^3.7.2" }, "devDependencies": { - "@contentstack/cli-auth": "~1.3.11", - "@contentstack/cli-config": "~1.4.9", + "@contentstack/cli-auth": "~1.3.13", + "@contentstack/cli-config": "~1.4.11", "@contentstack/cli-dev-dependencies": "~1.2.3", "@oclif/plugin-help": "^5.1.19", "@oclif/test": "^1.2.6", diff --git a/packages/contentstack-bulk-publish/package.json b/packages/contentstack-bulk-publish/package.json index 650f8ea220..9bedcf0094 100644 --- a/packages/contentstack-bulk-publish/package.json +++ b/packages/contentstack-bulk-publish/package.json @@ -1,12 +1,12 @@ { "name": "@contentstack/cli-cm-bulk-publish", "description": "Contentstack CLI plugin for bulk publish actions", - "version": "1.3.10", + "version": "1.3.11", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "bluebird": "^3.7.2", "chalk": "^4.1.2", "dotenv": "^16.1.4", diff --git a/packages/contentstack-clone/package.json b/packages/contentstack-clone/package.json index 77ff385980..467e6cf762 100644 --- a/packages/contentstack-clone/package.json +++ b/packages/contentstack-clone/package.json @@ -1,14 +1,14 @@ { "name": "@contentstack/cli-cm-clone", "description": "Contentstack stack clone plugin", - "version": "1.4.15", + "version": "1.4.16", "author": "Contentstack", "bugs": "https://github.com/rohitmishra209/cli-cm-clone/issues", "dependencies": { - "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-import": "~1.8.0", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-cm-export": "~1.8.1", + "@contentstack/cli-cm-import": "~1.8.3", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@colors/colors": "^1.5.0", "async": "^3.2.4", "chalk": "^4.1.0", diff --git a/packages/contentstack-command/package.json b/packages/contentstack-command/package.json index d9788f9e50..ece807b3ed 100644 --- a/packages/contentstack-command/package.json +++ b/packages/contentstack-command/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-command", "description": "Contentstack CLI plugin for configuration", - "version": "1.2.11", + "version": "1.2.12", "author": "Contentstack", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -17,7 +17,7 @@ "format": "eslint src/**/*.ts --fix" }, "dependencies": { - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-utilities": "~1.5.2", "contentstack": "^3.10.1" }, "devDependencies": { diff --git a/packages/contentstack-config/package.json b/packages/contentstack-config/package.json index c97ab376da..e7a59ec04c 100644 --- a/packages/contentstack-config/package.json +++ b/packages/contentstack-config/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-config", "description": "Contentstack CLI plugin for configuration", - "version": "1.4.10", + "version": "1.4.11", "author": "Contentstack", "scripts": { "build": "npm run clean && npm run compile", @@ -21,8 +21,8 @@ "test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\"" }, "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "chalk": "^4.0.0", "debug": "^4.1.1", "mkdirp": "^1.0.4", diff --git a/packages/contentstack-export-to-csv/package.json b/packages/contentstack-export-to-csv/package.json index 3ed9faa616..a18250c162 100644 --- a/packages/contentstack-export-to-csv/package.json +++ b/packages/contentstack-export-to-csv/package.json @@ -1,12 +1,12 @@ { "name": "@contentstack/cli-cm-export-to-csv", "description": "Export entities to csv", - "version": "1.4.1", + "version": "1.4.2", "author": "Abhinav Gupta @abhinav-from-contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "chalk": "^4.1.0", "fast-csv": "^4.3.6", "inquirer": "8.2.4", diff --git a/packages/contentstack-export/package.json b/packages/contentstack-export/package.json index 45aac8ab41..c611b2637e 100644 --- a/packages/contentstack-export/package.json +++ b/packages/contentstack-export/package.json @@ -1,12 +1,12 @@ { "name": "@contentstack/cli-cm-export", "description": "Contentstack CLI plugin to export content from stack", - "version": "1.8.0", + "version": "1.8.1", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/command": "^1.8.16", "@oclif/config": "^1.18.3", "@oclif/core": "^2.9.3", @@ -26,8 +26,8 @@ "winston": "^3.7.2" }, "devDependencies": { - "@contentstack/cli-auth": "~1.3.11", - "@contentstack/cli-config": "~1.4.9", + "@contentstack/cli-auth": "~1.3.13", + "@contentstack/cli-config": "~1.4.11", "@contentstack/cli-dev-dependencies": "~1.2.3", "@oclif/plugin-help": "^5.1.19", "@oclif/test": "^1.2.6", diff --git a/packages/contentstack-import/package.json b/packages/contentstack-import/package.json index 0712d83cdc..858cb0bdbf 100644 --- a/packages/contentstack-import/package.json +++ b/packages/contentstack-import/package.json @@ -1,12 +1,12 @@ { "name": "@contentstack/cli-cm-import", "description": "Contentstack CLI plugin to import content into stack", - "version": "1.8.2", + "version": "1.8.3", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@contentstack/management": "~1.10.0", "@oclif/config": "^1.18.3", "@oclif/core": "^2.9.3", diff --git a/packages/contentstack-launch/package.json b/packages/contentstack-launch/package.json index d4858f0546..ececf894b6 100755 --- a/packages/contentstack-launch/package.json +++ b/packages/contentstack-launch/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/cli-launch", - "version": "1.0.10", + "version": "1.0.11", "description": "Launch related operations", "author": "Contentstack CLI", "bin": { @@ -18,8 +18,8 @@ ], "dependencies": { "@apollo/client": "^3.7.9", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/plugin-help": "^5", "@oclif/plugin-plugins": "^2.3.2", "@oclif/core": "^2.9.3", diff --git a/packages/contentstack-migrate-rte/package.json b/packages/contentstack-migrate-rte/package.json index 6420093053..2e32cf7ecc 100644 --- a/packages/contentstack-migrate-rte/package.json +++ b/packages/contentstack-migrate-rte/package.json @@ -1,12 +1,12 @@ { "name": "@contentstack/cli-cm-migrate-rte", "description": "Contentstack CLI plugin to migrate HTML RTE to JSON RTE", - "version": "1.4.10", + "version": "1.4.11", "author": "contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@contentstack/json-rte-serializer": "~2.0.2", "collapse-whitespace": "^1.1.7", "chalk": "^4.1.2", diff --git a/packages/contentstack-migration/package.json b/packages/contentstack-migration/package.json index 606e4204b8..80cf254b7a 100644 --- a/packages/contentstack-migration/package.json +++ b/packages/contentstack-migration/package.json @@ -1,11 +1,11 @@ { "name": "@contentstack/cli-migration", - "version": "1.3.11", + "version": "1.3.12", "author": "@contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/command": "^1.8.16", "@oclif/config": "^1.18.3", "async": "^3.2.4", diff --git a/packages/contentstack-seed/package.json b/packages/contentstack-seed/package.json index 5a3af51d0b..bfeeeeb65a 100644 --- a/packages/contentstack-seed/package.json +++ b/packages/contentstack-seed/package.json @@ -1,13 +1,13 @@ { "name": "@contentstack/cli-cm-seed", "description": "create a Stack from existing content types, entries, assets, etc.", - "version": "1.4.14", + "version": "1.4.15", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { - "@contentstack/cli-cm-import": "~1.8.0", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-cm-import": "~1.8.3", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "axios": "1.3.4", "inquirer": "8.2.4", "mkdirp": "^1.0.4", diff --git a/packages/contentstack-utilities/package.json b/packages/contentstack-utilities/package.json index 8b71070971..495e5b5297 100644 --- a/packages/contentstack-utilities/package.json +++ b/packages/contentstack-utilities/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/cli-utilities", - "version": "1.5.1", + "version": "1.5.2", "description": "Utilities for contentstack projects", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 5118f8fe7a..75465bda97 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli", "description": "Command-line tool (CLI) to interact with Contentstack", - "version": "1.8.3", + "version": "1.8.4", "author": "Contentstack", "bin": { "csdx": "./bin/run" @@ -22,22 +22,22 @@ "prepack": "pnpm compile && oclif manifest && oclif readme" }, "dependencies": { - "@contentstack/cli-auth": "~1.3.12", - "@contentstack/cli-cm-bootstrap": "~1.4.14", - "@contentstack/cli-cm-bulk-publish": "~1.3.10", - "@contentstack/cli-cm-clone": "~1.4.15", - "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "~1.4.1", - "@contentstack/cli-cm-import": "~1.8.2", - "@contentstack/cli-cm-migrate-rte": "~1.4.10", - "@contentstack/cli-cm-seed": "~1.4.14", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-config": "~1.4.10", - "@contentstack/cli-launch": "~1.0.10", - "@contentstack/cli-migration": "~1.3.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-auth": "~1.3.13", + "@contentstack/cli-cm-bootstrap": "~1.4.15", + "@contentstack/cli-cm-bulk-publish": "~1.3.11", + "@contentstack/cli-cm-clone": "~1.4.16", + "@contentstack/cli-cm-export": "~1.8.1", + "@contentstack/cli-cm-export-to-csv": "~1.4.2", + "@contentstack/cli-cm-import": "~1.8.3", + "@contentstack/cli-cm-migrate-rte": "~1.4.11", + "@contentstack/cli-cm-seed": "~1.4.15", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-config": "~1.4.11", + "@contentstack/cli-launch": "~1.0.11", + "@contentstack/cli-migration": "~1.3.12", + "@contentstack/cli-utilities": "~1.5.2", "@contentstack/management": "~1.10.0", - "@contentstack/cli-cm-branches": "~1.0.12", + "@contentstack/cli-cm-branches": "~1.0.13", "@oclif/plugin-help": "^5", "@oclif/plugin-not-found": "^2.3.9", "@oclif/plugin-plugins": "^2.1.7", From 9ab63f9411977a151831ba11d7a3b0aa0cbc1a0b Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Thu, 7 Sep 2023 11:14:57 +0530 Subject: [PATCH 29/30] update: updated lock files and READMEs --- package-lock.json | 232 +++++++++---------- packages/contentstack-auth/README.md | 2 +- packages/contentstack-bootstrap/README.md | 2 +- packages/contentstack-branches/README.md | 2 +- packages/contentstack-bulk-publish/README.md | 2 +- packages/contentstack-clone/README.md | 2 +- packages/contentstack-config/README.md | 2 +- packages/contentstack-export/README.md | 2 +- packages/contentstack-import/README.md | 2 +- packages/contentstack-launch/README.md | 2 +- packages/contentstack-migrate-rte/README.md | 2 +- packages/contentstack-migration/README.md | 2 +- packages/contentstack/README.md | 2 +- pnpm-lock.yaml | 110 ++++----- 14 files changed, 186 insertions(+), 180 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2d8f67f74c..c92f2ac14b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20298,24 +20298,24 @@ }, "packages/contentstack": { "name": "@contentstack/cli", - "version": "1.8.3", + "version": "1.8.4", "license": "MIT", "dependencies": { - "@contentstack/cli-auth": "~1.3.12", - "@contentstack/cli-cm-bootstrap": "~1.4.14", - "@contentstack/cli-cm-branches": "~1.0.12", - "@contentstack/cli-cm-bulk-publish": "~1.3.10", - "@contentstack/cli-cm-clone": "~1.4.15", - "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "~1.4.1", - "@contentstack/cli-cm-import": "~1.8.2", - "@contentstack/cli-cm-migrate-rte": "~1.4.10", - "@contentstack/cli-cm-seed": "~1.4.14", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-config": "~1.4.10", - "@contentstack/cli-launch": "~1.0.10", - "@contentstack/cli-migration": "~1.3.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-auth": "~1.3.13", + "@contentstack/cli-cm-bootstrap": "~1.4.15", + "@contentstack/cli-cm-branches": "~1.0.13", + "@contentstack/cli-cm-bulk-publish": "~1.3.11", + "@contentstack/cli-cm-clone": "~1.4.16", + "@contentstack/cli-cm-export": "~1.8.1", + "@contentstack/cli-cm-export-to-csv": "~1.4.2", + "@contentstack/cli-cm-import": "~1.8.3", + "@contentstack/cli-cm-migrate-rte": "~1.4.11", + "@contentstack/cli-cm-seed": "~1.4.15", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-config": "~1.4.11", + "@contentstack/cli-launch": "~1.0.11", + "@contentstack/cli-migration": "~1.3.12", + "@contentstack/cli-utilities": "~1.5.2", "@contentstack/management": "~1.10.0", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", @@ -20365,11 +20365,11 @@ }, "packages/contentstack-auth": { "name": "@contentstack/cli-auth", - "version": "1.3.12", + "version": "1.3.13", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "chalk": "^4.0.0", "debug": "^4.1.1", "inquirer": "8.2.4", @@ -20406,12 +20406,12 @@ }, "packages/contentstack-bootstrap": { "name": "@contentstack/cli-cm-bootstrap", - "version": "1.4.14", + "version": "1.4.15", "license": "MIT", "dependencies": { - "@contentstack/cli-cm-seed": "~1.4.14", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-cm-seed": "~1.4.15", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "inquirer": "8.2.4", "mkdirp": "^1.0.4", "tar": "^6.1.13" @@ -20485,11 +20485,11 @@ }, "packages/contentstack-branches": { "name": "@contentstack/cli-cm-branches", - "version": "1.0.12", + "version": "1.0.13", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/command": "^1.8.16", "@oclif/config": "^1.18.3", "@oclif/core": "^2.9.3", @@ -20510,8 +20510,8 @@ "winston": "^3.7.2" }, "devDependencies": { - "@contentstack/cli-auth": "~1.3.11", - "@contentstack/cli-config": "~1.4.9", + "@contentstack/cli-auth": "~1.3.13", + "@contentstack/cli-config": "~1.4.11", "@contentstack/cli-dev-dependencies": "~1.2.3", "@oclif/plugin-help": "^5.1.19", "@oclif/test": "^1.2.6", @@ -20548,11 +20548,11 @@ }, "packages/contentstack-bulk-publish": { "name": "@contentstack/cli-cm-bulk-publish", - "version": "1.3.10", + "version": "1.3.11", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "bluebird": "^3.7.2", "chalk": "^4.1.2", "dotenv": "^16.1.4", @@ -20597,14 +20597,14 @@ }, "packages/contentstack-clone": { "name": "@contentstack/cli-cm-clone", - "version": "1.4.15", + "version": "1.4.16", "license": "MIT", "dependencies": { "@colors/colors": "^1.5.0", - "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-import": "~1.8.0", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-cm-export": "~1.8.1", + "@contentstack/cli-cm-import": "~1.8.3", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "async": "^3.2.4", "chalk": "^4.1.0", "child_process": "^1.0.2", @@ -20659,10 +20659,10 @@ }, "packages/contentstack-command": { "name": "@contentstack/cli-command", - "version": "1.2.11", + "version": "1.2.12", "license": "MIT", "dependencies": { - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-utilities": "~1.5.2", "contentstack": "^3.10.1" }, "devDependencies": { @@ -20733,11 +20733,11 @@ }, "packages/contentstack-config": { "name": "@contentstack/cli-config", - "version": "1.4.10", + "version": "1.4.11", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "chalk": "^4.0.0", "debug": "^4.1.1", "inquirer": "8.2.4", @@ -21021,11 +21021,11 @@ }, "packages/contentstack-export": { "name": "@contentstack/cli-cm-export", - "version": "1.8.0", + "version": "1.8.1", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/command": "^1.8.16", "@oclif/config": "^1.18.3", "@oclif/core": "^2.9.3", @@ -21045,8 +21045,8 @@ "winston": "^3.7.2" }, "devDependencies": { - "@contentstack/cli-auth": "~1.3.11", - "@contentstack/cli-config": "~1.4.9", + "@contentstack/cli-auth": "~1.3.13", + "@contentstack/cli-config": "~1.4.11", "@contentstack/cli-dev-dependencies": "~1.2.3", "@oclif/plugin-help": "^5.1.19", "@oclif/test": "^1.2.6", @@ -21072,11 +21072,11 @@ }, "packages/contentstack-export-to-csv": { "name": "@contentstack/cli-cm-export-to-csv", - "version": "1.4.1", + "version": "1.4.2", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "chalk": "^4.1.0", "fast-csv": "^4.3.6", "inquirer": "8.2.4", @@ -21337,11 +21337,11 @@ }, "packages/contentstack-import": { "name": "@contentstack/cli-cm-import", - "version": "1.8.2", + "version": "1.8.3", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@contentstack/management": "~1.10.0", "@oclif/config": "^1.18.3", "@oclif/core": "^2.9.3", @@ -21469,12 +21469,12 @@ }, "packages/contentstack-launch": { "name": "@contentstack/cli-launch", - "version": "1.0.10", + "version": "1.0.11", "license": "MIT", "dependencies": { "@apollo/client": "^3.7.9", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", "@oclif/plugin-plugins": "^2.3.2", @@ -21960,11 +21960,11 @@ }, "packages/contentstack-migrate-rte": { "name": "@contentstack/cli-cm-migrate-rte", - "version": "1.4.10", + "version": "1.4.11", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@contentstack/json-rte-serializer": "~2.0.2", "chalk": "^4.1.2", "collapse-whitespace": "^1.1.7", @@ -21999,11 +21999,11 @@ }, "packages/contentstack-migration": { "name": "@contentstack/cli-migration", - "version": "1.3.11", + "version": "1.3.12", "license": "MIT", "dependencies": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/command": "^1.8.16", "@oclif/config": "^1.18.3", "async": "^3.2.4", @@ -22034,12 +22034,12 @@ }, "packages/contentstack-seed": { "name": "@contentstack/cli-cm-seed", - "version": "1.4.14", + "version": "1.4.15", "license": "MIT", "dependencies": { - "@contentstack/cli-cm-import": "~1.8.0", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-cm-import": "~1.8.3", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "axios": "1.3.4", "inquirer": "8.2.4", "mkdirp": "^1.0.4", @@ -22115,7 +22115,7 @@ }, "packages/contentstack-utilities": { "name": "@contentstack/cli-utilities", - "version": "1.5.1", + "version": "1.5.2", "license": "MIT", "dependencies": { "@contentstack/management": "~1.10.0", @@ -23715,21 +23715,21 @@ "@contentstack/cli": { "version": "file:packages/contentstack", "requires": { - "@contentstack/cli-auth": "~1.3.12", - "@contentstack/cli-cm-bootstrap": "~1.4.14", - "@contentstack/cli-cm-branches": "~1.0.12", - "@contentstack/cli-cm-bulk-publish": "~1.3.10", - "@contentstack/cli-cm-clone": "~1.4.15", - "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-export-to-csv": "~1.4.1", - "@contentstack/cli-cm-import": "~1.8.2", - "@contentstack/cli-cm-migrate-rte": "~1.4.10", - "@contentstack/cli-cm-seed": "~1.4.14", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-config": "~1.4.10", - "@contentstack/cli-launch": "~1.0.10", - "@contentstack/cli-migration": "~1.3.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-auth": "~1.3.13", + "@contentstack/cli-cm-bootstrap": "~1.4.15", + "@contentstack/cli-cm-branches": "~1.0.13", + "@contentstack/cli-cm-bulk-publish": "~1.3.11", + "@contentstack/cli-cm-clone": "~1.4.16", + "@contentstack/cli-cm-export": "~1.8.1", + "@contentstack/cli-cm-export-to-csv": "~1.4.2", + "@contentstack/cli-cm-import": "~1.8.3", + "@contentstack/cli-cm-migrate-rte": "~1.4.11", + "@contentstack/cli-cm-seed": "~1.4.15", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-config": "~1.4.11", + "@contentstack/cli-launch": "~1.0.11", + "@contentstack/cli-migration": "~1.3.12", + "@contentstack/cli-utilities": "~1.5.2", "@contentstack/management": "~1.10.0", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", @@ -23772,8 +23772,8 @@ "@contentstack/cli-auth": { "version": "file:packages/contentstack-auth", "requires": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@fancy-test/nock": "^0.1.1", "@oclif/plugin-help": "^5.1.19", "@oclif/test": "^2.2.10", @@ -23806,9 +23806,9 @@ "@contentstack/cli-cm-bootstrap": { "version": "file:packages/contentstack-bootstrap", "requires": { - "@contentstack/cli-cm-seed": "~1.4.14", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-cm-seed": "~1.4.15", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/test": "^2.2.10", "@types/inquirer": "^9.0.3", "@types/mkdirp": "^1.0.1", @@ -23865,11 +23865,11 @@ "@contentstack/cli-cm-branches": { "version": "file:packages/contentstack-branches", "requires": { - "@contentstack/cli-auth": "~1.3.11", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-config": "~1.4.9", + "@contentstack/cli-auth": "~1.3.13", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-config": "~1.4.11", "@contentstack/cli-dev-dependencies": "~1.2.3", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/command": "^1.8.16", "@oclif/config": "^1.18.3", "@oclif/core": "^2.9.3", @@ -23920,8 +23920,8 @@ "@contentstack/cli-cm-bulk-publish": { "version": "file:packages/contentstack-bulk-publish", "requires": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/test": "^1.2.6", "bluebird": "^3.7.2", "chai": "^4.2.0", @@ -23962,10 +23962,10 @@ "version": "file:packages/contentstack-clone", "requires": { "@colors/colors": "^1.5.0", - "@contentstack/cli-cm-export": "~1.8.0", - "@contentstack/cli-cm-import": "~1.8.0", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-cm-export": "~1.8.1", + "@contentstack/cli-cm-import": "~1.8.3", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/test": "^1.2.7", "async": "^3.2.4", "chai": "^4.2.0", @@ -24009,11 +24009,11 @@ "@contentstack/cli-cm-export": { "version": "file:packages/contentstack-export", "requires": { - "@contentstack/cli-auth": "~1.3.11", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-config": "~1.4.9", + "@contentstack/cli-auth": "~1.3.13", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-config": "~1.4.11", "@contentstack/cli-dev-dependencies": "~1.2.3", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/command": "^1.8.16", "@oclif/config": "^1.18.3", "@oclif/core": "^2.9.3", @@ -24064,8 +24064,8 @@ "@contentstack/cli-cm-export-to-csv": { "version": "file:packages/contentstack-export-to-csv", "requires": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/test": "^2.2.10", "chai": "^4.2.0", "chalk": "^4.1.0", @@ -24258,8 +24258,8 @@ "@contentstack/cli-cm-import": { "version": "file:packages/contentstack-import", "requires": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@contentstack/management": "~1.10.0", "@oclif/config": "^1.18.3", "@oclif/core": "^2.9.3", @@ -24375,8 +24375,8 @@ "@contentstack/cli-cm-migrate-rte": { "version": "file:packages/contentstack-migrate-rte", "requires": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@contentstack/json-rte-serializer": "~2.0.2", "@oclif/test": "^2.2.10", "chai": "^4.3.4", @@ -24409,9 +24409,9 @@ "@contentstack/cli-cm-seed": { "version": "file:packages/contentstack-seed", "requires": { - "@contentstack/cli-cm-import": "~1.8.0", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-cm-import": "~1.8.3", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/plugin-help": "^5.1.19", "@types/inquirer": "^9.0.3", "@types/jest": "^26.0.15", @@ -24470,7 +24470,7 @@ "@contentstack/cli-command": { "version": "file:packages/contentstack-command", "requires": { - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/test": "^2.2.10", "@types/chai": "^4.2.18", "@types/mkdirp": "^1.0.1", @@ -24524,8 +24524,8 @@ "@contentstack/cli-config": { "version": "file:packages/contentstack-config", "requires": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/test": "^2.2.10", "@types/chai": "^4.2.18", "@types/inquirer": "^9.0.3", @@ -24756,8 +24756,8 @@ "version": "file:packages/contentstack-launch", "requires": { "@apollo/client": "^3.7.9", - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", "@oclif/plugin-plugins": "^2.3.2", @@ -25100,8 +25100,8 @@ "@contentstack/cli-migration": { "version": "file:packages/contentstack-migration", "requires": { - "@contentstack/cli-command": "~1.2.11", - "@contentstack/cli-utilities": "~1.5.1", + "@contentstack/cli-command": "~1.2.12", + "@contentstack/cli-utilities": "~1.5.2", "@oclif/command": "^1.8.16", "@oclif/config": "^1.18.3", "@oclif/test": "^2.2.10", diff --git a/packages/contentstack-auth/README.md b/packages/contentstack-auth/README.md index 3ca095069f..1f7c27c0ad 100644 --- a/packages/contentstack-auth/README.md +++ b/packages/contentstack-auth/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-auth $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-auth/1.3.12 darwin-arm64 node-v20.3.1 +@contentstack/cli-auth/1.3.13 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-bootstrap/README.md b/packages/contentstack-bootstrap/README.md index 993ef9d09c..0af118066b 100644 --- a/packages/contentstack-bootstrap/README.md +++ b/packages/contentstack-bootstrap/README.md @@ -15,7 +15,7 @@ $ npm install -g @contentstack/cli-cm-bootstrap $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-bootstrap/1.4.14 darwin-arm64 node-v20.3.1 +@contentstack/cli-cm-bootstrap/1.4.15 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-branches/README.md b/packages/contentstack-branches/README.md index d6c9aeb884..a1bb8fe49b 100755 --- a/packages/contentstack-branches/README.md +++ b/packages/contentstack-branches/README.md @@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-branches/1.0.11 darwin-arm64 node-v20.3.1 +@contentstack/cli-cm-branches/1.0.13 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-bulk-publish/README.md b/packages/contentstack-bulk-publish/README.md index c7295eccb1..931815c3ef 100644 --- a/packages/contentstack-bulk-publish/README.md +++ b/packages/contentstack-bulk-publish/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-cm-bulk-publish $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-bulk-publish/1.3.10 darwin-arm64 node-v20.3.1 +@contentstack/cli-cm-bulk-publish/1.3.11 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-clone/README.md b/packages/contentstack-clone/README.md index f270ae94b7..f17baaeff2 100644 --- a/packages/contentstack-clone/README.md +++ b/packages/contentstack-clone/README.md @@ -16,7 +16,7 @@ $ npm install -g @contentstack/cli-cm-clone $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-clone/1.4.15 darwin-arm64 node-v20.3.1 +@contentstack/cli-cm-clone/1.4.16 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-config/README.md b/packages/contentstack-config/README.md index 831a9ddd87..87ccd849d7 100644 --- a/packages/contentstack-config/README.md +++ b/packages/contentstack-config/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-config $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-config/1.4.10 darwin-arm64 node-v20.3.1 +@contentstack/cli-config/1.4.11 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-export/README.md b/packages/contentstack-export/README.md index 7d803b6478..cb332687cc 100755 --- a/packages/contentstack-export/README.md +++ b/packages/contentstack-export/README.md @@ -48,7 +48,7 @@ $ npm install -g @contentstack/cli-cm-export $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-export/1.8.0 darwin-arm64 node-v20.3.1 +@contentstack/cli-cm-export/1.8.1 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-import/README.md b/packages/contentstack-import/README.md index 20b53af987..50f83e0961 100644 --- a/packages/contentstack-import/README.md +++ b/packages/contentstack-import/README.md @@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-import/1.8.2 darwin-arm64 node-v20.3.1 +@contentstack/cli-cm-import/1.8.3 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-launch/README.md b/packages/contentstack-launch/README.md index 02c7a6cc48..e762ba9995 100755 --- a/packages/contentstack-launch/README.md +++ b/packages/contentstack-launch/README.md @@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-launch $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli-launch/1.0.10 darwin-arm64 node-v20.3.1 +@contentstack/cli-launch/1.0.11 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-migrate-rte/README.md b/packages/contentstack-migrate-rte/README.md index 77f51af25e..b3287fdef9 100644 --- a/packages/contentstack-migrate-rte/README.md +++ b/packages/contentstack-migrate-rte/README.md @@ -16,7 +16,7 @@ $ npm install -g @contentstack/cli-cm-migrate-rte $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-migrate-rte/1.4.10 darwin-arm64 node-v20.3.1 +@contentstack/cli-cm-migrate-rte/1.4.11 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-migration/README.md b/packages/contentstack-migration/README.md index 23933f2703..3514180a57 100644 --- a/packages/contentstack-migration/README.md +++ b/packages/contentstack-migration/README.md @@ -21,7 +21,7 @@ $ npm install -g @contentstack/cli-migration $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-migration/1.3.11 darwin-arm64 node-v20.3.1 +@contentstack/cli-migration/1.3.12 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack/README.md b/packages/contentstack/README.md index 71f2806b2b..8d33344a78 100644 --- a/packages/contentstack/README.md +++ b/packages/contentstack/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli/1.8.2 darwin-arm64 node-v20.3.1 +@contentstack/cli/1.8.4 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 182c5d1953..27fdb8d7db 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,21 +10,21 @@ importers: packages/contentstack: specifiers: - '@contentstack/cli-auth': ~1.3.12 - '@contentstack/cli-cm-bootstrap': ~1.4.14 - '@contentstack/cli-cm-branches': ~1.0.12 - '@contentstack/cli-cm-bulk-publish': ~1.3.10 - '@contentstack/cli-cm-clone': ~1.4.15 - '@contentstack/cli-cm-export': ~1.8.0 - '@contentstack/cli-cm-export-to-csv': ~1.4.1 - '@contentstack/cli-cm-import': ~1.8.2 - '@contentstack/cli-cm-migrate-rte': ~1.4.10 - '@contentstack/cli-cm-seed': ~1.4.14 - '@contentstack/cli-command': ~1.2.11 - '@contentstack/cli-config': ~1.4.10 - '@contentstack/cli-launch': ~1.0.10 - '@contentstack/cli-migration': ~1.3.11 - '@contentstack/cli-utilities': ~1.5.1 + '@contentstack/cli-auth': ~1.3.13 + '@contentstack/cli-cm-bootstrap': ~1.4.15 + '@contentstack/cli-cm-branches': ~1.0.13 + '@contentstack/cli-cm-bulk-publish': ~1.3.11 + '@contentstack/cli-cm-clone': ~1.4.16 + '@contentstack/cli-cm-export': ~1.8.1 + '@contentstack/cli-cm-export-to-csv': ~1.4.2 + '@contentstack/cli-cm-import': ~1.8.3 + '@contentstack/cli-cm-migrate-rte': ~1.4.11 + '@contentstack/cli-cm-seed': ~1.4.15 + '@contentstack/cli-command': ~1.2.12 + '@contentstack/cli-config': ~1.4.11 + '@contentstack/cli-launch': ~1.0.11 + '@contentstack/cli-migration': ~1.3.12 + '@contentstack/cli-utilities': ~1.5.2 '@contentstack/management': ~1.10.0 '@oclif/core': ^2.9.3 '@oclif/plugin-help': ^5 @@ -119,8 +119,8 @@ importers: packages/contentstack-auth: specifiers: - '@contentstack/cli-command': ~1.2.11 - '@contentstack/cli-utilities': ~1.5.1 + '@contentstack/cli-command': ~1.2.12 + '@contentstack/cli-utilities': ~1.5.2 '@fancy-test/nock': ^0.1.1 '@oclif/plugin-help': ^5.1.19 '@oclif/test': ^2.2.10 @@ -182,9 +182,9 @@ importers: packages/contentstack-bootstrap: specifiers: - '@contentstack/cli-cm-seed': ~1.4.14 - '@contentstack/cli-command': ~1.2.11 - '@contentstack/cli-utilities': ~1.5.1 + '@contentstack/cli-cm-seed': ~1.4.15 + '@contentstack/cli-command': ~1.2.12 + '@contentstack/cli-utilities': ~1.5.2 '@oclif/test': ^2.2.10 '@types/inquirer': ^9.0.3 '@types/mkdirp': ^1.0.1 @@ -233,11 +233,11 @@ importers: packages/contentstack-branches: specifiers: - '@contentstack/cli-auth': ~1.3.11 - '@contentstack/cli-command': ~1.2.11 - '@contentstack/cli-config': ~1.4.9 + '@contentstack/cli-auth': ~1.3.13 + '@contentstack/cli-command': ~1.2.12 + '@contentstack/cli-config': ~1.4.11 '@contentstack/cli-dev-dependencies': ~1.2.3 - '@contentstack/cli-utilities': ~1.5.1 + '@contentstack/cli-utilities': ~1.5.2 '@oclif/command': ^1.8.16 '@oclif/config': ^1.18.3 '@oclif/core': ^2.9.3 @@ -316,8 +316,8 @@ importers: packages/contentstack-bulk-publish: specifiers: - '@contentstack/cli-command': ~1.2.11 - '@contentstack/cli-utilities': ~1.5.1 + '@contentstack/cli-command': ~1.2.12 + '@contentstack/cli-utilities': ~1.5.2 '@oclif/test': ^1.2.6 bluebird: ^3.7.2 chai: ^4.2.0 @@ -360,10 +360,10 @@ importers: packages/contentstack-clone: specifiers: '@colors/colors': ^1.5.0 - '@contentstack/cli-cm-export': ~1.8.0 - '@contentstack/cli-cm-import': ~1.8.0 - '@contentstack/cli-command': ~1.2.11 - '@contentstack/cli-utilities': ~1.5.1 + '@contentstack/cli-cm-export': ~1.8.1 + '@contentstack/cli-cm-import': ~1.8.3 + '@contentstack/cli-command': ~1.2.12 + '@contentstack/cli-utilities': ~1.5.2 '@oclif/test': ^1.2.7 async: ^3.2.4 chai: ^4.2.0 @@ -412,7 +412,7 @@ importers: packages/contentstack-command: specifiers: - '@contentstack/cli-utilities': ~1.5.1 + '@contentstack/cli-utilities': ~1.5.2 '@oclif/test': ^2.2.10 '@types/chai': ^4.2.18 '@types/mkdirp': ^1.0.1 @@ -453,8 +453,8 @@ importers: packages/contentstack-config: specifiers: - '@contentstack/cli-command': ~1.2.11 - '@contentstack/cli-utilities': ~1.5.1 + '@contentstack/cli-command': ~1.2.12 + '@contentstack/cli-utilities': ~1.5.2 '@oclif/test': ^2.2.10 '@types/chai': ^4.2.18 '@types/inquirer': ^9.0.3 @@ -537,11 +537,11 @@ importers: packages/contentstack-export: specifiers: - '@contentstack/cli-auth': ~1.3.11 - '@contentstack/cli-command': ~1.2.11 - '@contentstack/cli-config': ~1.4.9 + '@contentstack/cli-auth': ~1.3.13 + '@contentstack/cli-command': ~1.2.12 + '@contentstack/cli-config': ~1.4.11 '@contentstack/cli-dev-dependencies': ~1.2.3 - '@contentstack/cli-utilities': ~1.5.1 + '@contentstack/cli-utilities': ~1.5.2 '@oclif/command': ^1.8.16 '@oclif/config': ^1.18.3 '@oclif/core': ^2.9.3 @@ -620,8 +620,8 @@ importers: packages/contentstack-export-to-csv: specifiers: - '@contentstack/cli-command': ~1.2.11 - '@contentstack/cli-utilities': ~1.5.1 + '@contentstack/cli-command': ~1.2.12 + '@contentstack/cli-utilities': ~1.5.2 '@oclif/test': ^2.2.10 chai: ^4.2.0 chalk: ^4.1.0 @@ -632,7 +632,7 @@ importers: globby: ^10.0.2 inquirer: 8.2.4 inquirer-checkbox-plus-prompt: 1.0.1 - mkdirp: ^1.0.4 + mkdirp: ^3.0.1 mocha: ^10.0.0 nyc: ^15.1.0 oclif: ^3.8.1 @@ -643,7 +643,7 @@ importers: fast-csv: 4.3.6 inquirer: 8.2.4 inquirer-checkbox-plus-prompt: 1.0.1 - mkdirp: 1.0.4 + mkdirp: 3.0.1 devDependencies: '@oclif/test': 2.3.31 chai: 4.3.7 @@ -657,8 +657,8 @@ importers: packages/contentstack-import: specifiers: - '@contentstack/cli-command': ~1.2.11 - '@contentstack/cli-utilities': ~1.5.1 + '@contentstack/cli-command': ~1.2.12 + '@contentstack/cli-utilities': ~1.5.2 '@contentstack/management': ~1.10.0 '@oclif/config': ^1.18.3 '@oclif/core': ^2.9.3 @@ -741,8 +741,8 @@ importers: packages/contentstack-launch: specifiers: '@apollo/client': ^3.7.9 - '@contentstack/cli-command': ~1.2.11 - '@contentstack/cli-utilities': ~1.5.1 + '@contentstack/cli-command': ~1.2.12 + '@contentstack/cli-utilities': ~1.5.2 '@oclif/core': ^2.9.3 '@oclif/plugin-help': ^5 '@oclif/plugin-plugins': ^2.3.2 @@ -817,8 +817,8 @@ importers: packages/contentstack-migrate-rte: specifiers: - '@contentstack/cli-command': ~1.2.11 - '@contentstack/cli-utilities': ~1.5.1 + '@contentstack/cli-command': ~1.2.12 + '@contentstack/cli-utilities': ~1.5.2 '@contentstack/json-rte-serializer': ~2.0.2 '@oclif/test': ^2.2.10 chai: ^4.3.4 @@ -864,8 +864,8 @@ importers: packages/contentstack-migration: specifiers: - '@contentstack/cli-command': ~1.2.11 - '@contentstack/cli-utilities': ~1.5.1 + '@contentstack/cli-command': ~1.2.12 + '@contentstack/cli-utilities': ~1.5.2 '@oclif/command': ^1.8.16 '@oclif/config': ^1.18.3 '@oclif/test': ^2.2.10 @@ -915,9 +915,9 @@ importers: packages/contentstack-seed: specifiers: - '@contentstack/cli-cm-import': ~1.8.0 - '@contentstack/cli-command': ~1.2.11 - '@contentstack/cli-utilities': ~1.5.1 + '@contentstack/cli-cm-import': ~1.8.3 + '@contentstack/cli-command': ~1.2.12 + '@contentstack/cli-utilities': ~1.5.2 '@oclif/plugin-help': ^5.1.19 '@types/inquirer': ^9.0.3 '@types/jest': ^26.0.15 @@ -9187,6 +9187,12 @@ packages: engines: {node: '>=10'} hasBin: true + /mkdirp/3.0.1: + resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==} + engines: {node: '>=10'} + hasBin: true + dev: false + /mkdirp2/1.0.5: resolution: {integrity: sha512-xOE9xbICroUDmG1ye2h4bZ8WBie9EGmACaco8K8cx6RlkJJrxGIqjGqztAI+NMhexXBcdGbSEzI6N3EJPevxZw==} dev: true From 9712398cdd5192806889df29b830acdf1542709f Mon Sep 17 00:00:00 2001 From: Abhinav Gupta Date: Thu, 7 Sep 2023 11:30:14 +0530 Subject: [PATCH 30/30] update: corrected versions for export-to-csv and branches --- package-lock.json | 12 ++++++------ packages/contentstack-branches/README.md | 2 +- packages/contentstack-branches/package.json | 2 +- packages/contentstack-export-to-csv/package.json | 2 +- packages/contentstack/package.json | 4 ++-- pnpm-lock.yaml | 4 ++-- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index c92f2ac14b..e382f98027 100644 --- a/package-lock.json +++ b/package-lock.json @@ -20303,11 +20303,11 @@ "dependencies": { "@contentstack/cli-auth": "~1.3.13", "@contentstack/cli-cm-bootstrap": "~1.4.15", - "@contentstack/cli-cm-branches": "~1.0.13", + "@contentstack/cli-cm-branches": "~1.0.12", "@contentstack/cli-cm-bulk-publish": "~1.3.11", "@contentstack/cli-cm-clone": "~1.4.16", "@contentstack/cli-cm-export": "~1.8.1", - "@contentstack/cli-cm-export-to-csv": "~1.4.2", + "@contentstack/cli-cm-export-to-csv": "~1.4.1", "@contentstack/cli-cm-import": "~1.8.3", "@contentstack/cli-cm-migrate-rte": "~1.4.11", "@contentstack/cli-cm-seed": "~1.4.15", @@ -20485,7 +20485,7 @@ }, "packages/contentstack-branches": { "name": "@contentstack/cli-cm-branches", - "version": "1.0.13", + "version": "1.0.12", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.12", @@ -21072,7 +21072,7 @@ }, "packages/contentstack-export-to-csv": { "name": "@contentstack/cli-cm-export-to-csv", - "version": "1.4.2", + "version": "1.4.1", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.12", @@ -23717,11 +23717,11 @@ "requires": { "@contentstack/cli-auth": "~1.3.13", "@contentstack/cli-cm-bootstrap": "~1.4.15", - "@contentstack/cli-cm-branches": "~1.0.13", + "@contentstack/cli-cm-branches": "~1.0.12", "@contentstack/cli-cm-bulk-publish": "~1.3.11", "@contentstack/cli-cm-clone": "~1.4.16", "@contentstack/cli-cm-export": "~1.8.1", - "@contentstack/cli-cm-export-to-csv": "~1.4.2", + "@contentstack/cli-cm-export-to-csv": "~1.4.1", "@contentstack/cli-cm-import": "~1.8.3", "@contentstack/cli-cm-migrate-rte": "~1.4.11", "@contentstack/cli-cm-seed": "~1.4.15", diff --git a/packages/contentstack-branches/README.md b/packages/contentstack-branches/README.md index a1bb8fe49b..70d66f973c 100755 --- a/packages/contentstack-branches/README.md +++ b/packages/contentstack-branches/README.md @@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-branches/1.0.13 darwin-arm64 node-v20.3.1 +@contentstack/cli-cm-branches/1.0.12 darwin-arm64 node-v20.3.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-branches/package.json b/packages/contentstack-branches/package.json index 3191c8c4e9..a71b0f3200 100644 --- a/packages/contentstack-branches/package.json +++ b/packages/contentstack-branches/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-branches", "description": "Contentstack CLI plugin to do branches operations", - "version": "1.0.13", + "version": "1.0.12", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack-export-to-csv/package.json b/packages/contentstack-export-to-csv/package.json index a18250c162..082157f604 100644 --- a/packages/contentstack-export-to-csv/package.json +++ b/packages/contentstack-export-to-csv/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-export-to-csv", "description": "Export entities to csv", - "version": "1.4.2", + "version": "1.4.1", "author": "Abhinav Gupta @abhinav-from-contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { diff --git a/packages/contentstack/package.json b/packages/contentstack/package.json index 75465bda97..558b60b6fe 100755 --- a/packages/contentstack/package.json +++ b/packages/contentstack/package.json @@ -27,7 +27,7 @@ "@contentstack/cli-cm-bulk-publish": "~1.3.11", "@contentstack/cli-cm-clone": "~1.4.16", "@contentstack/cli-cm-export": "~1.8.1", - "@contentstack/cli-cm-export-to-csv": "~1.4.2", + "@contentstack/cli-cm-export-to-csv": "~1.4.1", "@contentstack/cli-cm-import": "~1.8.3", "@contentstack/cli-cm-migrate-rte": "~1.4.11", "@contentstack/cli-cm-seed": "~1.4.15", @@ -37,7 +37,7 @@ "@contentstack/cli-migration": "~1.3.12", "@contentstack/cli-utilities": "~1.5.2", "@contentstack/management": "~1.10.0", - "@contentstack/cli-cm-branches": "~1.0.13", + "@contentstack/cli-cm-branches": "~1.0.12", "@oclif/plugin-help": "^5", "@oclif/plugin-not-found": "^2.3.9", "@oclif/plugin-plugins": "^2.1.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 27fdb8d7db..6b5dfb1c31 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,11 +12,11 @@ importers: specifiers: '@contentstack/cli-auth': ~1.3.13 '@contentstack/cli-cm-bootstrap': ~1.4.15 - '@contentstack/cli-cm-branches': ~1.0.13 + '@contentstack/cli-cm-branches': ~1.0.12 '@contentstack/cli-cm-bulk-publish': ~1.3.11 '@contentstack/cli-cm-clone': ~1.4.16 '@contentstack/cli-cm-export': ~1.8.1 - '@contentstack/cli-cm-export-to-csv': ~1.4.2 + '@contentstack/cli-cm-export-to-csv': ~1.4.1 '@contentstack/cli-cm-import': ~1.8.3 '@contentstack/cli-cm-migrate-rte': ~1.4.11 '@contentstack/cli-cm-seed': ~1.4.15