UNPKG

@wishcbg/bobcode

Version:

基於店家同步功能的需求,讓店家能夠在不同的店家之間同步各項功能設定,並且能夠檢視各項功能的異動情況。 規劃出一套店家設定即程式碼的機制,讓店家能夠以 config file (.sac) 來定義各項功能設定,並且能夠還原店家各項功能設定。 暫且稱這個機制為「Settings as Code」「店家設定即程式碼」。

27 lines (26 loc) 1.12 kB
import { z } from 'zod'; import { BaseResourceSchema } from './base.js'; export declare const appointmentCategoryResourceSettingSchema: z.ZodObject<{ name: z.ZodString; order: z.ZodOptional<z.ZodNumber>; isPublic: z.ZodOptional<z.ZodBoolean>; isPubApt: z.ZodOptional<z.ZodBoolean>; imageId: z.ZodOptional<z.ZodString>; appointmentServiceLogicIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { name: string; order?: number | undefined; isPublic?: boolean | undefined; isPubApt?: boolean | undefined; imageId?: string | undefined; appointmentServiceLogicIds?: string[] | undefined; }, { name: string; order?: number | undefined; isPublic?: boolean | undefined; isPubApt?: boolean | undefined; imageId?: string | undefined; appointmentServiceLogicIds?: string[] | undefined; }>; export type IAppointmentCategoryResourceSettingSchema = z.infer<typeof appointmentCategoryResourceSettingSchema>; export declare const AppointmentCategoryResourceSchema: BaseResourceSchema<typeof appointmentCategoryResourceSettingSchema>;