UNPKG

@contentstack/cli-cm-seed

Version:

create a Stack from existing content types, entries, assets, etc.

42 lines (41 loc) 1.43 kB
import { Organization } from '../seed/contentstack/client'; import { InquireStackResponse } from '../seed/interactive'; export declare const ENGLISH_LOCALE = "en-us"; export interface ContentModelSeederOptions { parent?: any; cdaHost: string; cmaHost: string; gitHubPath: string | undefined; orgUid: string | undefined; stackUid: string | undefined; stackName: string | undefined; fetchLimit: string | undefined; skipStackConfirmation: string | undefined; isAuthenticated: boolean | false; managementToken?: string | undefined; alias?: string | undefined; master_locale?: string | undefined; } export default class ContentModelSeeder { options: ContentModelSeederOptions; private readonly parent; private readonly csClient; private readonly ghClient; private readonly _options; private ghUsername; private ghRepo; managementToken?: string | undefined; get ghPath(): string; constructor(options: ContentModelSeederOptions); run(): Promise<{ api_key: string; } | undefined>; getInput(): Promise<{ organizationResponse: Organization; stackResponse: InquireStackResponse; } | any>; createStack(organization: Organization, stackName: string): Promise<string>; shouldProceed(api_key: string): Promise<boolean>; downloadRelease(): Promise<string>; inquireGitHubRepo(): Promise<void>; }