UNPKG

@wishcbg/bobcode

Version:

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

36 lines (35 loc) 1.28 kB
import { z } from 'zod'; import { BaseResourceSchema } from './base.js'; export declare const appointmentServiceAttachResourceSettingSchema: z.ZodObject<{ name: z.ZodString; price: z.ZodNumber; showPrice: z.ZodString; showTime: z.ZodNumber; bookingTime: z.ZodNumber; order: z.ZodDefault<z.ZodNumber>; isPublic: z.ZodDefault<z.ZodBoolean>; isPubApt: z.ZodDefault<z.ZodBoolean>; appointmentServiceLogicIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { name: string; order: number; isPublic: boolean; isPubApt: boolean; price: number; showPrice: string; bookingTime: number; showTime: number; appointmentServiceLogicIds?: string[] | undefined; }, { name: string; price: number; showPrice: string; bookingTime: number; showTime: number; order?: number | undefined; isPublic?: boolean | undefined; isPubApt?: boolean | undefined; appointmentServiceLogicIds?: string[] | undefined; }>; export type IAppointmentServiceAttachResourceSettingSchema = z.infer<typeof appointmentServiceAttachResourceSettingSchema>; export declare const AppointmentServiceAttachResourceSchema: BaseResourceSchema<typeof appointmentServiceAttachResourceSettingSchema>;