@kontent-ai/model-generator
Version:
This utility generates strongly-typed models for Delivery JS SDK, Migration toolkit or just general scripting to improve the experience when referencing Kontent.ai related objects.
13 lines (12 loc) • 691 B
TypeScript
import type { Options } from "prettier";
import { type CreateFilesConfig, type EnvironmentEntity, type GeneratedFile, type ModuleFileExtension } from "../../core/core.models.js";
export type GenerateEnvironmentModelsConfig = {
readonly environmentId: string;
readonly addTimestamp: boolean;
readonly managementApiKey: string;
readonly entities?: readonly EnvironmentEntity[];
readonly moduleFileExtension: ModuleFileExtension;
readonly managementBaseUrl?: string;
readonly formatOptions?: Readonly<Options>;
} & CreateFilesConfig;
export declare function generateEnvironmentModelsAsync(config: GenerateEnvironmentModelsConfig): Promise<readonly GeneratedFile[]>;