File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import {
14
14
cliux ,
15
15
isAuthenticated ,
16
16
} from "@contentstack/cli-utilities" ;
17
+ import { ContentstackClient as MarketplaceContentstackClient } from "@contentstack/marketplace-sdk" ;
17
18
18
19
import config from "./config" ;
19
20
import { ConfigType , LogFn } from "./types" ;
@@ -39,6 +40,7 @@ export abstract class BaseCommand<T extends typeof Command> extends Command {
39
40
} ;
40
41
protected managementSdk ! : ContentstackClient ;
41
42
protected managementAppSdk ! : ContentstackClient ;
43
+ protected marketplaceAppSdk ! : MarketplaceContentstackClient ;
42
44
43
45
protected flags ! : Flags < T > ;
44
46
protected args ! : Args < T > ;
Original file line number Diff line number Diff line change @@ -266,8 +266,8 @@ export default class Create extends BaseCommand<typeof Create> {
266
266
appName : this . sharedConfig . appName ,
267
267
} )
268
268
) ;
269
- await this . managementAppSdk
270
- . organization ( this . sharedConfig . org )
269
+ await this . marketplaceAppSdk
270
+ . marketplace ( this . sharedConfig . org )
271
271
. app ( )
272
272
. create ( this . appData as AppData )
273
273
. then ( ( response ) => {
Original file line number Diff line number Diff line change 1
1
import { ContentstackClient , FlagInput } from "@contentstack/cli-utilities" ;
2
+ import { ContentstackClient as MarketplaceContentstackClient } from "@contentstack/marketplace-sdk" ;
2
3
import { AppLocation , Extension , LogFn } from "../types" ;
3
4
import { cliux , Stack } from "@contentstack/cli-utilities" ;
4
5
import { apiRequestHandler } from "./api-request-handler" ;
@@ -7,6 +8,10 @@ export type CommonOptions = {
7
8
log : LogFn ;
8
9
managementSdk : ContentstackClient ;
9
10
} ;
11
+ export type MarketPlaceOptions = {
12
+ log : LogFn ;
13
+ marketplaceSdk : MarketplaceContentstackClient ;
14
+ } ;
10
15
11
16
async function getOrganizations (
12
17
options : CommonOptions ,
You can’t perform that action at this time.
0 commit comments