From a4d8d20862dc1398322df45ea6538b81284d3a49 Mon Sep 17 00:00:00 2001 From: harshithad0703 Date: Thu, 6 Jun 2024 12:46:36 +0530 Subject: [PATCH 1/3] feat: updated old install api call to new marketplace api call --- .gitignore | 2 -- src/commands/app/install.ts | 2 +- src/messages/index.ts | 2 +- src/util/common-utils.ts | 8 ++++---- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 9828920..9761729 100644 --- a/.gitignore +++ b/.gitignore @@ -19,5 +19,3 @@ dependabot.yml oclif.manifest.json *.env .vscode/ -/app-boilerplate -/app-boilerplate+1 \ No newline at end of file diff --git a/src/commands/app/install.ts b/src/commands/app/install.ts index 9223286..323e3d9 100644 --- a/src/commands/app/install.ts +++ b/src/commands/app/install.ts @@ -108,7 +108,7 @@ export default class Install extends AppCLIBaseCommand { "info" ); await installApp(this.flags, this.sharedConfig.org, appType, { - managementSdk: this.managementAppSdk, + marketplaceSdk: this.marketplaceAppSdk, log: this.log, }); this.log( diff --git a/src/messages/index.ts b/src/messages/index.ts index 739c54e..d83e1e9 100644 --- a/src/messages/index.ts +++ b/src/messages/index.ts @@ -25,7 +25,7 @@ const errors = { const commonMsg = { CONFIG: "Path of the external config", MAX_RETRY_LIMIT: "Maximum retry limit reached.", - PROVIDE_ORG_UID: "Provide the organization UID to fetch the app details for the desired operation.", + PROVIDE_ORG_UID: "Provide the organization UID to fetch the app details for the operation.", CURRENT_WORKING_DIR: "Current working directory.", SKIP_CONFIRMATION: "Use this flag to skip the confirmation.", DEVELOPER_HUB_URL_PROMPT: diff --git a/src/util/common-utils.ts b/src/util/common-utils.ts index 1731094..b0f570b 100644 --- a/src/util/common-utils.ts +++ b/src/util/common-utils.ts @@ -127,11 +127,11 @@ function installApp( flags: FlagInput, orgUid: string, type: string, - options: CommonOptions + options: MarketPlaceOptions ) { - const { managementSdk } = options; - return managementSdk - .organization(orgUid) + const { marketplaceSdk } = options; + return marketplaceSdk + .marketplace(orgUid) .app(flags["app-uid"] as any) .install({ targetUid: (flags["stack-api-key"] as any) || orgUid, From 4fab8837ec3ac5c19d46bd6634bab3d2f89e5389 Mon Sep 17 00:00:00 2001 From: harshithad0703 Date: Thu, 6 Jun 2024 12:49:35 +0530 Subject: [PATCH 2/3] docs: updated org_uid description --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 36f3e9f..96d33b6 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ $ npm install -g @contentstack/apps-cli $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/apps-cli/1.1.0 darwin-arm64 node-v18.17.0 +@contentstack/apps-cli/1.1.0 darwin-arm64 node-v18.16.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND @@ -82,7 +82,7 @@ FLAGS -n, --name= [default: app-boilerplate] Name of the app to be created --app-type=