UNPKG

@tapcart/app-studio-utils

Version:

A utility library for Tapcart's App Studio

40 lines 1.06 kB
export type ComponentCommitDetails = { componentHistoryId: string; timestamp: Date; author: string; }; export type AppStudioComponentContext = { type: "product" | "collection" | "authentication"; inputMapping?: Record<string, string>; }; export type AppStudioComponent = { _id: string; createdAt: Date; updatedAt: Date; owner: Owner; label: string; key: string; code?: string; context?: AppStudioComponentContext[]; transpiledCode: string; manifestOptionsList: ManifestOption[]; manifestConfig: MappedManifestValues; componentHistoryId: string; latestCommit?: ComponentCommitDetails; componentParentId: string; useComponentParent: boolean; versions: string[]; }; export type Owner = TapcartOwner | AppOwner; type TapcartOwner = { type: "tapcart"; }; type AppOwner = { id: string; type: "app"; }; export type ManifestOption = any; export type MappedManifestValues = any; export type BlockScope = Record<string, any>; export {}; //# sourceMappingURL=types.d.ts.map