Skip to content

@morph-mapper/source


@morph-mapper/source / createTemplateResourceDtoSchema

Variable: createTemplateResourceDtoSchema

const createTemplateResourceDtoSchema: 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; 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: ZodString; templatetype: ZodString; }, "id">, "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; inputsource: SchemaSource; isStatic: boolean; name: string; operatorId: number; priority: number; recentFiles?: object[]; save: string; 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; inputsource: SchemaSource; isStatic: boolean; name: string; operatorId: number; priority: number; recentFiles?: object[]; save: string; templatetype: string; }>

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