diff --git a/package-lock.json b/package-lock.json index a1ecc18b1a..e382f98027 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.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.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-auth": "~1.3.13", + "@contentstack/cli-cm-bootstrap": "~1.4.15", + "@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.1", + "@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.11", + "version": "1.0.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", "@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,16 +21072,16 @@ }, "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", - "@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", "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", @@ -21323,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", @@ -21455,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", @@ -21946,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", @@ -21985,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", @@ -22020,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", @@ -22101,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", @@ -23701,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.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.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-auth": "~1.3.13", + "@contentstack/cli-cm-bootstrap": "~1.4.15", + "@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.1", + "@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", @@ -23758,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", @@ -23792,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", @@ -23851,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", @@ -23906,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", @@ -23948,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", @@ -23995,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", @@ -24050,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", @@ -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,14 +24247,19 @@ "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==" } } }, "@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", @@ -24356,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", @@ -24390,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", @@ -24451,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", @@ -24505,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", @@ -24737,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", @@ -25081,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-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/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-auth/src/commands/auth/logout.ts b/packages/contentstack-auth/src/commands/auth/logout.ts index 7021cb073a..4196ccbbcd 100644 --- a/packages/contentstack-auth/src/commands/auth/logout.ts +++ b/packages/contentstack-auth/src/commands/auth/logout.ts @@ -50,19 +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'); 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-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-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/README.md b/packages/contentstack-branches/README.md index d6c9aeb884..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.11 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 7d788ef48f..a71b0f3200 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.11", + "version": "1.0.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", "@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-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-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-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/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-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/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-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 349a41827d..082157f604 100644 --- a/packages/contentstack-export-to-csv/package.json +++ b/packages/contentstack-export-to-csv/package.json @@ -1,17 +1,17 @@ { "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": { - "@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", "inquirer-checkbox-plus-prompt": "1.0.1", - "mkdirp": "^1.0.4" + "mkdirp": "^3.0.1" }, "devDependencies": { "@oclif/test": "^2.2.10", 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 cefdf6cb4f..73a232f0dc 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 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', + message: 'Choose Content Type (Press Space to select the content types)', choices: contentTypesList, name: 'chosenContentTypes', loop: false, @@ -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, include_workflow: true }) .find() .then((entries) => resolve(entries)) .catch((error) => reject(error)); @@ -373,25 +373,31 @@ 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 = []; - 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; + delete entry.setWorkflowStage; 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; 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['url'] might also be wrong delete entry.stackHeaders; delete entry.update; @@ -403,6 +409,7 @@ function cleanEntries(entries, language, environments, contentTypeUid) { delete entry.publishRequest; return entry; }); + console.log(filteredEntries.length); } function getDateTime() { 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-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/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-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-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; 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/content-types.ts b/packages/contentstack-import/src/import/modules/content-types.ts index 850c638376..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,8 +180,11 @@ export default class ContentTypesImport extends BaseClass { serializeUpdateCTs(apiOptions: ApiOptions): ApiOptions { const { apiData: contentType } = apiOptions; if (contentType.field_rules) { + contentType.field_rules = updateFieldRules(contentType); + if (!contentType.field_rules.length) { + delete contentType.field_rules; + } this.fieldRules.push(contentType.uid); - delete contentType.field_rules; } lookupExtension( this.importConfig, 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 = []; 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(); } diff --git a/packages/contentstack-import/src/utils/content-type-helper.ts b/packages/contentstack-import/src/utils/content-type-helper.ts index 140576af8f..9fe732c849 100644 --- a/packages/contentstack-import/src/utils/content-type-helper.ts +++ b/packages/contentstack-import/src/utils/content-type-helper.ts @@ -149,3 +149,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; +} 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-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/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-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/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-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/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/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-utilities/src/auth-handler.ts b/packages/contentstack-utilities/src/auth-handler.ts index fc104d5ca3..14fa3e7c4a 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,6 +410,57 @@ class AuthHandler { }); } + async oauthLogout(): Promise { + const authorization: string = await this.getOauthAppAuthorization() || ""; + const response: {} = await this.revokeOauthAppAuthorization(authorization) + return response || {} + } + + /** + * 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), + '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}) => { + 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 { + 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 + }) + } + } + isAuthenticated(): boolean { const authorizationType = configHandler.get(this.authorisationTypeKeyName); return ( 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; } 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/packages/contentstack/package.json b/packages/contentstack/package.json index 397f8d18b3..558b60b6fe 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.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-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.1", + "@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.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 e2237033dc..6b5dfb1c31 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.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.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-auth': ~1.3.13 + '@contentstack/cli-cm-bootstrap': ~1.4.15 + '@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.1 + '@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