Skip to content

Commit a4d8d20

Browse files
feat: updated old install api call to new marketplace api call
1 parent d2068dd commit a4d8d20

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ dependabot.yml
1919
oclif.manifest.json
2020
*.env
2121
.vscode/
22-
/app-boilerplate
23-
/app-boilerplate+1

src/commands/app/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export default class Install extends AppCLIBaseCommand {
108108
"info"
109109
);
110110
await installApp(this.flags, this.sharedConfig.org, appType, {
111-
managementSdk: this.managementAppSdk,
111+
marketplaceSdk: this.marketplaceAppSdk,
112112
log: this.log,
113113
});
114114
this.log(

src/messages/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const errors = {
2525
const commonMsg = {
2626
CONFIG: "Path of the external config",
2727
MAX_RETRY_LIMIT: "Maximum retry limit reached.",
28-
PROVIDE_ORG_UID: "Provide the organization UID to fetch the app details for the desired operation.",
28+
PROVIDE_ORG_UID: "Provide the organization UID to fetch the app details for the operation.",
2929
CURRENT_WORKING_DIR: "Current working directory.",
3030
SKIP_CONFIRMATION: "Use this flag to skip the confirmation.",
3131
DEVELOPER_HUB_URL_PROMPT:

src/util/common-utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ function installApp(
127127
flags: FlagInput,
128128
orgUid: string,
129129
type: string,
130-
options: CommonOptions
130+
options: MarketPlaceOptions
131131
) {
132-
const { managementSdk } = options;
133-
return managementSdk
134-
.organization(orgUid)
132+
const { marketplaceSdk } = options;
133+
return marketplaceSdk
134+
.marketplace(orgUid)
135135
.app(flags["app-uid"] as any)
136136
.install({
137137
targetUid: (flags["stack-api-key"] as any) || orgUid,

0 commit comments

Comments
 (0)