UNPKG

@supernovaio/cli

Version:

Supernova.io Command Line Interface

51 lines 2.2 kB
import { z, ZodType } from "zod"; import { SentryCommand } from "../types/index.js"; declare const ImportStorybookConfig: z.ZodObject<{ brandId: z.ZodOptional<z.ZodString>; designSystemId: z.ZodOptional<z.ZodString>; from: z.ZodOptional<z.ZodString>; name: z.ZodOptional<z.ZodString>; sourceId: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { designSystemId?: string | undefined; sourceId?: string | undefined; brandId?: string | undefined; name?: string | undefined; from?: string | undefined; }, { designSystemId?: string | undefined; sourceId?: string | undefined; brandId?: string | undefined; name?: string | undefined; from?: string | undefined; }>; type ImportStorybookConfig = z.infer<typeof ImportStorybookConfig>; export default class ImportStorybook extends SentryCommand<ImportStorybookConfig> { static args: {}; static description: string; static examples: string[]; static flags: { brandId: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>; designSystemId: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>; from: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>; name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>; sourceId: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>; }; get commandId(): string; get configSchema(): ZodType<ImportStorybookConfig>; run(): Promise<void>; private getStorybookName; private getDesignSystemId; private getBrandId; private getStorybookDirectory; private createZipFromDirectory; private getIndexJson; private uploadArchiveToSignedUrl; private waitForPublishing; private importStorybookStories; private validateStorybookDirectory; private validateZipSize; private validateDatasource; } export {}; //# sourceMappingURL=storybook-import.d.ts.map