Skip to content

@morph-mapper/source


@morph-mapper/source / templateResourceSchema

Variable: templateResourceSchema

const templateResourceSchema: ZodObject<Omit<{ categoryId: ZodString; deleted: ZodOptional<ZodBoolean>; deployPath: ZodNullable<ZodString>; description: ZodOptional<ZodString>; domain: ZodString; ediType: ZodOptional<ZodNativeEnum<typeof EdiType>>; ediVariables: ZodOptional<ZodRecord<ZodString, ZodObject<{ schemaVariable: ZodString; value: ZodUnion<[ZodString, ZodNumber]>; }, "strip", ZodTypeAny, { schemaVariable: string; value: string | number; }, { schemaVariable: string; value: string | number; }>>>; enabled: ZodBoolean; id: ZodString; inputsource: ZodNativeEnum<typeof SchemaSource>; isStatic: ZodBoolean; name: ZodString; operatorId: ZodNumber; path: ZodNullable<ZodString>; priority: ZodNumber; recentFiles: ZodOptional<ZodArray<ZodObject<{ fileId: ZodString; fileName: ZodString; mimeType: ZodString; usedAt: ZodDate; userId: ZodString; }, "strip", ZodTypeAny, { fileId: string; fileName: string; mimeType: string; usedAt: Date; userId: string; }, { fileId: string; fileName: string; mimeType: string; usedAt: Date; userId: string; }>, "many">>; save: ZodObject<{ config: ZodObject<{ configSnapshot: ZodOptional<ZodAny>; lastTextContentHash: ZodNullable<ZodString>; preconfiguration: ZodAny; updateDiscardIds: ZodArray<ZodString, "many">; }, "strip", ZodTypeAny, { configSnapshot?: any; lastTextContentHash: string | null; preconfiguration?: any; updateDiscardIds: string[]; }, { configSnapshot?: any; lastTextContentHash: string | null; preconfiguration?: any; updateDiscardIds: string[]; }>; domain: ZodString; entries: ZodRecord<ZodString, ZodAny>; graphs: ZodRecord<ZodString, ZodAny>; id: ZodString; name: ZodString; operatorId: ZodNumber; plugins: ZodObject<{ global: ZodObject<{ bootstrapped: ZodRecord<ZodString, ZodBoolean>; plugins: ZodArray<ZodAny, "many">; versions: ZodRecord<ZodString, ZodString>; }, "strip", ZodTypeAny, { bootstrapped: Record<string, boolean>; plugins: any[]; versions: Record<string, string>; }, { bootstrapped: Record<string, boolean>; plugins: any[]; versions: Record<string, string>; }>; registered: ZodRecord<ZodString, ZodObject<{ slice: ZodAny; version: ZodString; }, "strip", ZodTypeAny, { slice?: any; version: string; }, { slice?: any; version: string; }>>; }, "strip", ZodTypeAny, { global: { bootstrapped: Record<string, boolean>; plugins: any[]; versions: Record<string, string>; }; registered: Record<string, { slice?: any; version: string; }>; }, { global: { bootstrapped: Record<string, boolean>; plugins: any[]; versions: Record<string, string>; }; registered: Record<string, { slice?: any; version: string; }>; }>; schemaId: ZodString; type: ZodString; variant: ZodNativeEnum<typeof SchemaVariant>; }, "strip", ZodTypeAny, { config: { configSnapshot?: any; lastTextContentHash: string | null; preconfiguration?: any; updateDiscardIds: string[]; }; domain: string; entries: Record<string, any>; graphs: Record<string, any>; id: string; name: string; operatorId: number; plugins: { global: { bootstrapped: Record<string, boolean>; plugins: any[]; versions: Record<string, string>; }; registered: Record<string, { slice?: any; version: string; }>; }; schemaId: string; type: string; variant: SchemaVariant; }, { config: { configSnapshot?: any; lastTextContentHash: string | null; preconfiguration?: any; updateDiscardIds: string[]; }; domain: string; entries: Record<string, any>; graphs: Record<string, any>; id: string; name: string; operatorId: number; plugins: { global: { bootstrapped: Record<string, boolean>; plugins: any[]; versions: Record<string, string>; }; registered: Record<string, { slice?: any; version: string; }>; }; schemaId: string; type: string; variant: SchemaVariant; }>; templatetype: ZodString; }, "path">, "strip", ZodTypeAny, { categoryId: string; deleted?: boolean; deployPath: string | null; description?: string; domain: string; ediType?: POST | GET | TokenBased; ediVariables?: Record<string, { schemaVariable: string; value: string | number; }>; enabled: boolean; id: string; inputsource: SchemaSource; isStatic: boolean; name: string; operatorId: number; priority: number; recentFiles?: object[]; save: { config: { configSnapshot?: any; lastTextContentHash: string | null; preconfiguration?: any; updateDiscardIds: string[]; }; domain: string; entries: Record<string, any>; graphs: Record<string, any>; id: string; name: string; operatorId: number; plugins: { global: { bootstrapped: Record<string, boolean>; plugins: any[]; versions: Record<string, string>; }; registered: Record<string, { slice?: any; version: string; }>; }; schemaId: string; type: string; variant: SchemaVariant; }; templatetype: string; }, { categoryId: string; deleted?: boolean; deployPath: string | null; description?: string; domain: string; ediType?: POST | GET | TokenBased; ediVariables?: Record<string, { schemaVariable: string; value: string | number; }>; enabled: boolean; id: string; inputsource: SchemaSource; isStatic: boolean; name: string; operatorId: number; priority: number; recentFiles?: object[]; save: { config: { configSnapshot?: any; lastTextContentHash: string | null; preconfiguration?: any; updateDiscardIds: string[]; }; domain: string; entries: Record<string, any>; graphs: Record<string, any>; id: string; name: string; operatorId: number; plugins: { global: { bootstrapped: Record<string, boolean>; plugins: any[]; versions: Record<string, string>; }; registered: Record<string, { slice?: any; version: string; }>; }; schemaId: string; type: string; variant: SchemaVariant; }; templatetype: string; }>

Defined in: templates-api/template-ref.ts:81