UNPKG

@wishcbg/bobcode

Version:

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

97 lines (96 loc) 5.42 kB
import { z } from 'zod'; import { BaseResourceSchema } from './base.js'; declare const appointmentConfigResourceSettingSchema: z.ZodObject<{ timeUnit: z.ZodOptional<z.ZodNumber>; timeUnitOffset: z.ZodOptional<z.ZodNumber>; minReservationInterval: z.ZodOptional<z.ZodNumber>; maxReservationInterval: z.ZodOptional<z.ZodNumber>; cancelInterval: z.ZodOptional<z.ZodNumber>; useNotSpecify: z.ZodOptional<z.ZodBoolean>; notSpecifyOrderRule: z.ZodOptional<z.ZodEnum<["first", "last"]>>; notSpecifySkipUnit: z.ZodOptional<z.ZodBoolean>; notSpecifyName: z.ZodOptional<z.ZodString>; notSpecifyRule: z.ZodOptional<z.ZodEnum<["order", "reservation", "notSpecifyReservation", "random"]>>; pageStyle: z.ZodOptional<z.ZodEnum<["beauty", "ohbot"]>>; pageText: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>; clientOrderMode: z.ZodOptional<z.ZodEnum<["normal", "otherReservation", "batchOrder"]>>; allowOrderMorePeople: z.ZodOptional<z.ZodBoolean>; maxOrderMorePeopleCount: z.ZodOptional<z.ZodNumber>; allowOtherReservation: z.ZodOptional<z.ZodBoolean>; secondOrderStartDefault: z.ZodOptional<z.ZodEnum<["continue", "same"]>>; secondOrderStartClientChange: z.ZodOptional<z.ZodBoolean>; orderServiceAttachClientCheck: z.ZodOptional<z.ZodBoolean>; orderServiceAttachClientNullOption: z.ZodOptional<z.ZodBoolean>; orderServiceAttachClientNullOptionPosition: z.ZodOptional<z.ZodEnum<["first", "last"]>>; orderServiceAttachClientMultipleSelection: z.ZodOptional<z.ZodBoolean>; enableUserAddress: z.ZodOptional<z.ZodBoolean>; orderSystemCommentTemplate: z.ZodOptional<z.ZodString>; chargeType: z.ZodOptional<z.ZodEnum<["none", "deposit", "checkout"]>>; allowBatchOrder: z.ZodOptional<z.ZodBoolean>; batchOrderNotifyMode: z.ZodOptional<z.ZodEnum<["merge", "independent"]>>; notSpecifyImageLogicId: z.ZodOptional<z.ZodString>; notSpecifyUnitLogicIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "strip", z.ZodTypeAny, { timeUnit?: number | undefined; timeUnitOffset?: number | undefined; minReservationInterval?: number | undefined; maxReservationInterval?: number | undefined; cancelInterval?: number | undefined; useNotSpecify?: boolean | undefined; notSpecifyOrderRule?: "first" | "last" | undefined; notSpecifySkipUnit?: boolean | undefined; notSpecifyName?: string | undefined; notSpecifyRule?: "order" | "reservation" | "notSpecifyReservation" | "random" | undefined; pageStyle?: "beauty" | "ohbot" | undefined; pageText?: Record<string, string> | undefined; clientOrderMode?: "normal" | "otherReservation" | "batchOrder" | undefined; allowOrderMorePeople?: boolean | undefined; maxOrderMorePeopleCount?: number | undefined; allowOtherReservation?: boolean | undefined; secondOrderStartDefault?: "continue" | "same" | undefined; secondOrderStartClientChange?: boolean | undefined; orderServiceAttachClientCheck?: boolean | undefined; orderServiceAttachClientNullOption?: boolean | undefined; orderServiceAttachClientNullOptionPosition?: "first" | "last" | undefined; orderServiceAttachClientMultipleSelection?: boolean | undefined; enableUserAddress?: boolean | undefined; orderSystemCommentTemplate?: string | undefined; chargeType?: "none" | "deposit" | "checkout" | undefined; allowBatchOrder?: boolean | undefined; batchOrderNotifyMode?: "merge" | "independent" | undefined; notSpecifyImageLogicId?: string | undefined; notSpecifyUnitLogicIds?: string[] | undefined; }, { timeUnit?: number | undefined; timeUnitOffset?: number | undefined; minReservationInterval?: number | undefined; maxReservationInterval?: number | undefined; cancelInterval?: number | undefined; useNotSpecify?: boolean | undefined; notSpecifyOrderRule?: "first" | "last" | undefined; notSpecifySkipUnit?: boolean | undefined; notSpecifyName?: string | undefined; notSpecifyRule?: "order" | "reservation" | "notSpecifyReservation" | "random" | undefined; pageStyle?: "beauty" | "ohbot" | undefined; pageText?: Record<string, string> | undefined; clientOrderMode?: "normal" | "otherReservation" | "batchOrder" | undefined; allowOrderMorePeople?: boolean | undefined; maxOrderMorePeopleCount?: number | undefined; allowOtherReservation?: boolean | undefined; secondOrderStartDefault?: "continue" | "same" | undefined; secondOrderStartClientChange?: boolean | undefined; orderServiceAttachClientCheck?: boolean | undefined; orderServiceAttachClientNullOption?: boolean | undefined; orderServiceAttachClientNullOptionPosition?: "first" | "last" | undefined; orderServiceAttachClientMultipleSelection?: boolean | undefined; enableUserAddress?: boolean | undefined; orderSystemCommentTemplate?: string | undefined; chargeType?: "none" | "deposit" | "checkout" | undefined; allowBatchOrder?: boolean | undefined; batchOrderNotifyMode?: "merge" | "independent" | undefined; notSpecifyImageLogicId?: string | undefined; notSpecifyUnitLogicIds?: string[] | undefined; }>; export type IAppointmentConfigResourceSettingSchema = z.infer<typeof appointmentConfigResourceSettingSchema>; export declare const AppointmentConfigResourceSchema: BaseResourceSchema<typeof appointmentConfigResourceSettingSchema>; export {};