@wishcbg/bobcode
Version:
基於店家同步功能的需求,讓店家能夠在不同的店家之間同步各項功能設定,並且能夠檢視各項功能的異動情況。 規劃出一套店家設定即程式碼的機制,讓店家能夠以 config file (.sac) 來定義各項功能設定,並且能夠還原店家各項功能設定。 暫且稱這個機制為「Settings as Code」「店家設定即程式碼」。
35 lines (34 loc) • 1.46 kB
TypeScript
import { z } from 'zod';
import { BaseResourceSchema } from './base.js';
export declare const customCardTemplateResourceSettingSchema: z.ZodObject<{
name: z.ZodString;
cardSettings: z.ZodArray<z.ZodObject<{
level: z.ZodNumber;
style: z.ZodEnum<["classic", "peaceful", "lively", "nature", "fresh", "simple", "custom"]>;
customImageId: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
level: number;
style: "custom" | "classic" | "peaceful" | "lively" | "nature" | "fresh" | "simple";
customImageId?: string | undefined;
}, {
level: number;
style: "custom" | "classic" | "peaceful" | "lively" | "nature" | "fresh" | "simple";
customImageId?: string | undefined;
}>, "many">;
}, "strip", z.ZodTypeAny, {
name: string;
cardSettings: {
level: number;
style: "custom" | "classic" | "peaceful" | "lively" | "nature" | "fresh" | "simple";
customImageId?: string | undefined;
}[];
}, {
name: string;
cardSettings: {
level: number;
style: "custom" | "classic" | "peaceful" | "lively" | "nature" | "fresh" | "simple";
customImageId?: string | undefined;
}[];
}>;
export type ICustomCardTemplateResourceSettingSchema = z.infer<typeof customCardTemplateResourceSettingSchema>;
export declare const CustomCardTemplateResourceSchema: BaseResourceSchema<typeof customCardTemplateResourceSettingSchema>;