UNPKG

@wishcbg/bobcode

Version:

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

253 lines (252 loc) 10.4 kB
import { z } from 'zod'; import { BaseResourceSchema } from './base.js'; export declare const linePushConfigResourceSettingSchema: z.ZodObject<{ appointmentOpen: z.ZodDefault<z.ZodBoolean>; appointmentChangeTime: z.ZodDefault<z.ZodBoolean>; appointmentCancel: z.ZodDefault<z.ZodBoolean>; appointmentTomorrow: z.ZodDefault<z.ZodBoolean>; appointmentEnd: z.ZodDefault<z.ZodBoolean>; appointmentDepositRefund: z.ZodDefault<z.ZodBoolean>; walletDeposit: z.ZodDefault<z.ZodBoolean>; walletUse: z.ZodDefault<z.ZodBoolean>; classTicketOpen: z.ZodDefault<z.ZodBoolean>; classTicketUse: z.ZodDefault<z.ZodBoolean>; cancelClassTicket: z.ZodDefault<z.ZodBoolean>; cancelClassTicketUse: z.ZodDefault<z.ZodBoolean>; phoneVerifyHelp: z.ZodDefault<z.ZodBoolean>; allianceActivityAddQualification: z.ZodDefault<z.ZodBoolean>; couponRecordOpen: z.ZodDefault<z.ZodBoolean>; couponRecordExpireNotification: z.ZodDefault<z.ZodBoolean>; shopCashbackExpirationNotify: z.ZodDefault<z.ZodBoolean>; shopCashbackAddPoint: z.ZodDefault<z.ZodBoolean>; shopCashbackUsePoint: z.ZodDefault<z.ZodBoolean>; shopCashbackCancelPoint: z.ZodDefault<z.ZodBoolean>; classTicketExpireNotification: z.ZodDefault<z.ZodBoolean>; shopPointExpirationNotify: z.ZodDefault<z.ZodBoolean>; shopPointAddPoint: z.ZodDefault<z.ZodBoolean>; shopPointUsePoint: z.ZodDefault<z.ZodBoolean>; shopPointCancelPoint: z.ZodDefault<z.ZodBoolean>; memberLevelUp: z.ZodDefault<z.ZodBoolean>; memberLevelDown: z.ZodDefault<z.ZodBoolean>; memberLevelRemain: z.ZodDefault<z.ZodBoolean>; memberLevelExpire: z.ZodDefault<z.ZodBoolean>; memberSuccessReferral: z.ZodDefault<z.ZodBoolean>; punchCardOpen: z.ZodDefault<z.ZodBoolean>; punchCardUse: z.ZodDefault<z.ZodBoolean>; punchCardExpireNotification: z.ZodDefault<z.ZodBoolean>; pointCardOpen: z.ZodDefault<z.ZodBoolean>; pointCardUse: z.ZodDefault<z.ZodBoolean>; pointCardExpireNotification: z.ZodDefault<z.ZodBoolean>; periodicBenefitRecordOpen: z.ZodDefault<z.ZodBoolean>; periodicBenefitRecordPause: z.ZodDefault<z.ZodBoolean>; periodicBenefitRecordTerminate: z.ZodDefault<z.ZodBoolean>; bindLineVisibleNotify: z.ZodDefault<z.ZodBoolean>; couponRecordOpenAdvancedSetting: z.ZodObject<{ defaultCouponSetting: z.ZodOptional<z.ZodObject<{ notify: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { notify?: boolean | undefined; }, { notify?: boolean | undefined; }>>; couponSettings: z.ZodOptional<z.ZodArray<z.ZodOptional<z.ZodObject<{ couponId: z.ZodOptional<z.ZodString>; notify: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { couponId?: string | undefined; notify?: boolean | undefined; }, { couponId?: string | undefined; notify?: boolean | undefined; }>>, "many">>; }, "strip", z.ZodTypeAny, { defaultCouponSetting?: { notify?: boolean | undefined; } | undefined; couponSettings?: ({ couponId?: string | undefined; notify?: boolean | undefined; } | undefined)[] | undefined; }, { defaultCouponSetting?: { notify?: boolean | undefined; } | undefined; couponSettings?: ({ couponId?: string | undefined; notify?: boolean | undefined; } | undefined)[] | undefined; }>; couponRecordExpireNotificationAdvancedSetting: z.ZodObject<{ defaultCouponSetting: z.ZodOptional<z.ZodObject<{ notify: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { notify?: boolean | undefined; }, { notify?: boolean | undefined; }>>; couponSettings: z.ZodOptional<z.ZodArray<z.ZodOptional<z.ZodObject<{ couponId: z.ZodOptional<z.ZodString>; notify: z.ZodOptional<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { couponId?: string | undefined; notify?: boolean | undefined; }, { couponId?: string | undefined; notify?: boolean | undefined; }>>, "many">>; }, "strip", z.ZodTypeAny, { defaultCouponSetting?: { notify?: boolean | undefined; } | undefined; couponSettings?: ({ couponId?: string | undefined; notify?: boolean | undefined; } | undefined)[] | undefined; }, { defaultCouponSetting?: { notify?: boolean | undefined; } | undefined; couponSettings?: ({ couponId?: string | undefined; notify?: boolean | undefined; } | undefined)[] | undefined; }>; courseOrderConfirm: z.ZodDefault<z.ZodBoolean>; courseOrderCancel: z.ZodDefault<z.ZodBoolean>; courseOrderChange: z.ZodDefault<z.ZodBoolean>; courseSessionCancel: z.ZodDefault<z.ZodBoolean>; courseOrderRefundSuccess: z.ZodDefault<z.ZodBoolean>; courseOrderRefundFail: z.ZodDefault<z.ZodBoolean>; }, "strip", z.ZodTypeAny, { appointmentOpen: boolean; appointmentChangeTime: boolean; appointmentCancel: boolean; appointmentTomorrow: boolean; appointmentEnd: boolean; appointmentDepositRefund: boolean; walletDeposit: boolean; walletUse: boolean; classTicketOpen: boolean; classTicketUse: boolean; cancelClassTicket: boolean; cancelClassTicketUse: boolean; phoneVerifyHelp: boolean; allianceActivityAddQualification: boolean; couponRecordOpen: boolean; couponRecordExpireNotification: boolean; shopCashbackExpirationNotify: boolean; shopCashbackAddPoint: boolean; shopCashbackUsePoint: boolean; shopCashbackCancelPoint: boolean; classTicketExpireNotification: boolean; shopPointExpirationNotify: boolean; shopPointAddPoint: boolean; shopPointUsePoint: boolean; shopPointCancelPoint: boolean; memberLevelUp: boolean; memberLevelDown: boolean; memberLevelRemain: boolean; memberLevelExpire: boolean; memberSuccessReferral: boolean; punchCardOpen: boolean; punchCardUse: boolean; punchCardExpireNotification: boolean; pointCardOpen: boolean; pointCardUse: boolean; pointCardExpireNotification: boolean; periodicBenefitRecordOpen: boolean; periodicBenefitRecordPause: boolean; periodicBenefitRecordTerminate: boolean; bindLineVisibleNotify: boolean; couponRecordOpenAdvancedSetting: { defaultCouponSetting?: { notify?: boolean | undefined; } | undefined; couponSettings?: ({ couponId?: string | undefined; notify?: boolean | undefined; } | undefined)[] | undefined; }; couponRecordExpireNotificationAdvancedSetting: { defaultCouponSetting?: { notify?: boolean | undefined; } | undefined; couponSettings?: ({ couponId?: string | undefined; notify?: boolean | undefined; } | undefined)[] | undefined; }; courseOrderConfirm: boolean; courseOrderCancel: boolean; courseOrderChange: boolean; courseSessionCancel: boolean; courseOrderRefundSuccess: boolean; courseOrderRefundFail: boolean; }, { couponRecordOpenAdvancedSetting: { defaultCouponSetting?: { notify?: boolean | undefined; } | undefined; couponSettings?: ({ couponId?: string | undefined; notify?: boolean | undefined; } | undefined)[] | undefined; }; couponRecordExpireNotificationAdvancedSetting: { defaultCouponSetting?: { notify?: boolean | undefined; } | undefined; couponSettings?: ({ couponId?: string | undefined; notify?: boolean | undefined; } | undefined)[] | undefined; }; appointmentOpen?: boolean | undefined; appointmentChangeTime?: boolean | undefined; appointmentCancel?: boolean | undefined; appointmentTomorrow?: boolean | undefined; appointmentEnd?: boolean | undefined; appointmentDepositRefund?: boolean | undefined; walletDeposit?: boolean | undefined; walletUse?: boolean | undefined; classTicketOpen?: boolean | undefined; classTicketUse?: boolean | undefined; cancelClassTicket?: boolean | undefined; cancelClassTicketUse?: boolean | undefined; phoneVerifyHelp?: boolean | undefined; allianceActivityAddQualification?: boolean | undefined; couponRecordOpen?: boolean | undefined; couponRecordExpireNotification?: boolean | undefined; shopCashbackExpirationNotify?: boolean | undefined; shopCashbackAddPoint?: boolean | undefined; shopCashbackUsePoint?: boolean | undefined; shopCashbackCancelPoint?: boolean | undefined; classTicketExpireNotification?: boolean | undefined; shopPointExpirationNotify?: boolean | undefined; shopPointAddPoint?: boolean | undefined; shopPointUsePoint?: boolean | undefined; shopPointCancelPoint?: boolean | undefined; memberLevelUp?: boolean | undefined; memberLevelDown?: boolean | undefined; memberLevelRemain?: boolean | undefined; memberLevelExpire?: boolean | undefined; memberSuccessReferral?: boolean | undefined; punchCardOpen?: boolean | undefined; punchCardUse?: boolean | undefined; punchCardExpireNotification?: boolean | undefined; pointCardOpen?: boolean | undefined; pointCardUse?: boolean | undefined; pointCardExpireNotification?: boolean | undefined; periodicBenefitRecordOpen?: boolean | undefined; periodicBenefitRecordPause?: boolean | undefined; periodicBenefitRecordTerminate?: boolean | undefined; bindLineVisibleNotify?: boolean | undefined; courseOrderConfirm?: boolean | undefined; courseOrderCancel?: boolean | undefined; courseOrderChange?: boolean | undefined; courseSessionCancel?: boolean | undefined; courseOrderRefundSuccess?: boolean | undefined; courseOrderRefundFail?: boolean | undefined; }>; export type ILinePushConfigResourceSettingSchema = z.infer<typeof linePushConfigResourceSettingSchema>; export declare const LinePushConfigResourceSchema: BaseResourceSchema<typeof linePushConfigResourceSettingSchema>;