@feedmepos/mf-order-setting 0.0.24 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{KioskDevicesView-DGkvW2mH.js → KioskDevicesView-BiF6v7Zj.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-BGZLd8T_.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-1r_DBAc-.js} +3 -3
- package/dist/{KioskSettingView-DLb5nnCu.js → KioskSettingView-COhGcRtP.js} +1 -1
- package/dist/{KioskView-kZZYSfUh.js → KioskView-C1T-n1MY.js} +38 -28
- package/dist/{OrderSettingsView-Cil4j9G5.js → OrderSettingsView-CI5bdVXr.js} +6297 -6251
- package/dist/{app-D47VRl5B.js → app-BfWp4ow3.js} +38 -26
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-R4180ukF.js → dayjs.min-BHDLv42p.js} +36 -36
- package/dist/frontend/mf-order/src/app.d.ts +12 -0
- package/dist/frontend/mf-order/src/main.d.ts +797 -0
- package/dist/frontend/mf-order/src/stores/iframe/index.d.ts +6 -6
- package/dist/frontend/mf-order/src/stores/kiosk/index.d.ts +8 -260
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +17 -722
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +449 -2369
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-DgLlDwJK.js → index-B5kfsi9C.js} +2 -2
- package/dist/package/entity/delivery/delivery.dto.d.ts +11 -6
- package/dist/package/entity/food-court/food-court.dto.d.ts +1 -1
- package/dist/package/entity/food-court/order.dto.d.ts +727 -378
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +6 -6
- package/dist/package/entity/incoming-order/incoming-order.do.d.ts +8 -8
- package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +16 -16
- package/dist/package/entity/index.d.ts +1 -0
- package/dist/package/entity/kiosk/marketing/marketing.dto.d.ts +1337 -656
- package/dist/package/entity/order/order.dto.d.ts +4942 -2401
- package/dist/package/entity/order/order.enum.d.ts +1 -1
- package/dist/package/entity/order/payment/payment.dto.d.ts +2899 -1419
- package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +9 -21
- package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +19 -51
- package/dist/package/entity/order-setting/order-setting.do.d.ts +8 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +16 -0
- package/dist/package/entity/order-setting/v3/v3.do.d.ts +3 -0
- package/dist/package/entity/order-setting/v3/v3.dto.d.ts +3 -0
- package/dist/package/entity/order-setting/v3/v3.enum.d.ts +3 -0
- package/dist/package/entity/payment/payment.dto.d.ts +3 -3
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +19 -11
- package/dist/{queue.do-CNMuossU.js → queue.do-y-ubeoKZ.js} +17139 -16655
- package/package.json +3 -3
- package/src/Entry.vue +3 -3
- package/src/locales/en-US.json +6 -0
- package/src/locales/th-TH.json +257 -0
- package/src/locales/zh-CN.json +6 -0
- package/src/main.ts +9 -1
- package/src/stores/iframe/index.ts +1 -1
- package/src/stores/kiosk/index.ts +1 -1
- package/src/stores/order-setting/index.ts +1 -1
- package/src/stores/order-setting/mapper.ts +12 -2
- package/src/stores/restaurant/index.ts +92 -84
- package/src/views/order-settings/delivery/DeliverySetting.vue +11 -11
- package/src/views/order-settings/delivery/inhouse/InHouseDelivery.vue +39 -35
- package/src/views/order-settings/dine-in/DineInSetting.vue +158 -24
- package/src/views/order-settings/general/GeneralSetting.vue +29 -33
- package/src/views/order-settings/pickup/PickUpSetting.vue +4 -2
- package/src/views/order-settings/pickup/PickUpSettingDialogContent.vue +23 -12
- package/src/views/order-settings/servicecharge/ServiceChargeSetting.vue +20 -8
|
@@ -1,414 +1,919 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const KioskVerifyMemberDto: z.ZodObject<{
|
|
3
3
|
member: z.ZodObject<z.extendShape<{
|
|
4
|
-
|
|
5
|
-
joinedAt: z.
|
|
6
|
-
business: z.
|
|
7
|
-
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
joinedAt: z.ZodString;
|
|
6
|
+
business: z.ZodString;
|
|
7
|
+
membership: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
|
+
benefits: z.ZodArray<z.ZodObject<{
|
|
8
9
|
_id: z.ZodEffects<z.ZodString, string, string>;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
restaurantQuota: z.ZodNumber;
|
|
12
|
-
warehouseQuota: z.ZodNumber;
|
|
13
|
-
menuVersion: z.ZodString;
|
|
14
|
-
internal: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
15
|
-
expiredAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
16
|
-
url: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
17
|
-
agentId: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
18
|
-
attributeSettings: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
19
|
-
key: z.ZodString;
|
|
20
|
-
type: z.ZodUnion<[z.ZodLiteral<"string">, z.ZodLiteral<"number">, z.ZodLiteral<"date">, z.ZodLiteral<"boolean">]>;
|
|
21
|
-
entity: z.ZodUnion<[z.ZodLiteral<"restaurant">, z.ZodLiteral<"item">, z.ZodLiteral<"inventorySku">, z.ZodLiteral<"inventoryRecipe">, z.ZodLiteral<"warehouse">]>;
|
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
type: "string" | "number" | "boolean" | "date";
|
|
24
|
-
key: string;
|
|
25
|
-
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
10
|
+
options: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
|
|
11
|
+
type: z.ZodEnum<["BASIC", "VOUCHER"]>;
|
|
26
12
|
}, {
|
|
27
|
-
type: "
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
code: z.ZodString;
|
|
35
|
-
isReseller: z.ZodBoolean;
|
|
36
|
-
clickupId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
37
|
-
members: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
|
-
userId: z.ZodString;
|
|
39
|
-
pf_user: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
40
|
-
_id: z.ZodString;
|
|
41
|
-
birthday: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
42
|
-
gender: z.ZodNullable<z.ZodOptional<z.ZodEnum<["MALE", "FEMALE"]>>>;
|
|
43
|
-
addresses: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
44
|
-
name: z.ZodString;
|
|
45
|
-
address: z.ZodString;
|
|
46
|
-
coordinates: z.ZodArray<z.ZodNumber, "many">;
|
|
13
|
+
type: z.ZodLiteral<"BASIC">;
|
|
14
|
+
effect: z.ZodObject<{
|
|
15
|
+
adjustment: z.ZodObject<{
|
|
16
|
+
type: z.ZodEnum<["BY_PERCENTAGE", "BY_AMOUNT", "TO_AMOUNT"]>;
|
|
17
|
+
amount: z.ZodObject<{
|
|
18
|
+
amount: z.ZodNumber;
|
|
19
|
+
precision: z.ZodNumber;
|
|
47
20
|
}, "strip", z.ZodTypeAny, {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
coordinates: number[];
|
|
21
|
+
amount: number;
|
|
22
|
+
precision: number;
|
|
51
23
|
}, {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
24
|
+
amount: number;
|
|
25
|
+
precision: number;
|
|
26
|
+
}>;
|
|
27
|
+
inclusive: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
inclusive?: boolean | null | undefined;
|
|
30
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
31
|
+
amount: {
|
|
32
|
+
amount: number;
|
|
33
|
+
precision: number;
|
|
34
|
+
};
|
|
35
|
+
}, {
|
|
36
|
+
inclusive?: boolean | null | undefined;
|
|
37
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
38
|
+
amount: {
|
|
39
|
+
amount: number;
|
|
40
|
+
precision: number;
|
|
41
|
+
};
|
|
42
|
+
}>;
|
|
43
|
+
availableOnlineOrder: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodEnum<["DINE_IN", "PICKUP", "DELIVERY"]>, "many">>>;
|
|
44
|
+
options: z.ZodDiscriminatedUnion<"target", z.Primitive, z.ZodObject<z.extendShape<{
|
|
45
|
+
target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
|
|
46
|
+
}, {
|
|
47
|
+
target: z.ZodLiteral<"BILL">;
|
|
48
|
+
excludeIds: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
|
+
minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
50
|
+
amount: z.ZodNumber;
|
|
51
|
+
precision: z.ZodNumber;
|
|
63
52
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
|
|
65
|
-
|
|
53
|
+
amount: number;
|
|
54
|
+
precision: number;
|
|
66
55
|
}, {
|
|
67
|
-
|
|
68
|
-
|
|
56
|
+
amount: number;
|
|
57
|
+
precision: number;
|
|
69
58
|
}>>>;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
addresses?: {
|
|
76
|
-
name: string;
|
|
77
|
-
address: string;
|
|
78
|
-
coordinates: number[];
|
|
79
|
-
}[] | null | undefined;
|
|
80
|
-
photoURL?: string | null | undefined;
|
|
81
|
-
displayName?: string | null | undefined;
|
|
82
|
-
imported?: {
|
|
83
|
-
raw: Record<string, any>;
|
|
84
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
59
|
+
}>, "strip", z.ZodTypeAny, {
|
|
60
|
+
excludeIds?: string[] | null | undefined;
|
|
61
|
+
minPurchase?: {
|
|
62
|
+
amount: number;
|
|
63
|
+
precision: number;
|
|
85
64
|
} | null | undefined;
|
|
86
|
-
|
|
65
|
+
target: "BILL";
|
|
87
66
|
}, {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
addresses?: {
|
|
93
|
-
name: string;
|
|
94
|
-
address: string;
|
|
95
|
-
coordinates: number[];
|
|
96
|
-
}[] | null | undefined;
|
|
97
|
-
photoURL?: string | null | undefined;
|
|
98
|
-
displayName?: string | null | undefined;
|
|
99
|
-
imported?: {
|
|
100
|
-
raw: Record<string, any>;
|
|
101
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
67
|
+
excludeIds?: string[] | null | undefined;
|
|
68
|
+
minPurchase?: {
|
|
69
|
+
amount: number;
|
|
70
|
+
precision: number;
|
|
102
71
|
} | null | undefined;
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
|
|
72
|
+
target: "BILL";
|
|
73
|
+
}> | z.ZodObject<z.extendShape<{
|
|
74
|
+
target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
|
|
75
|
+
}, {
|
|
76
|
+
target: z.ZodLiteral<"ITEM">;
|
|
77
|
+
strategy: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
|
|
78
|
+
type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
|
|
79
|
+
}, {
|
|
80
|
+
type: z.ZodLiteral<"SIMPLE">;
|
|
81
|
+
withAddons: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
82
|
+
}>, "strip", z.ZodTypeAny, {
|
|
83
|
+
withAddons?: string[] | null | undefined;
|
|
84
|
+
type: "SIMPLE";
|
|
85
|
+
}, {
|
|
86
|
+
withAddons?: string[] | null | undefined;
|
|
87
|
+
type: "SIMPLE";
|
|
88
|
+
}> | z.ZodObject<z.extendShape<{
|
|
89
|
+
type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
|
|
90
|
+
}, {
|
|
91
|
+
type: z.ZodLiteral<"BUY_X_GET_Y">;
|
|
92
|
+
x: z.ZodNumber;
|
|
93
|
+
y: z.ZodNumber;
|
|
94
|
+
}>, "strip", z.ZodTypeAny, {
|
|
95
|
+
type: "BUY_X_GET_Y";
|
|
96
|
+
x: number;
|
|
97
|
+
y: number;
|
|
98
|
+
}, {
|
|
99
|
+
type: "BUY_X_GET_Y";
|
|
100
|
+
x: number;
|
|
101
|
+
y: number;
|
|
102
|
+
}> | z.ZodObject<z.extendShape<{
|
|
103
|
+
type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
|
|
104
|
+
}, {
|
|
105
|
+
type: z.ZodLiteral<"BUY_X_ITEM_A_GET_Y_ITEM_B">;
|
|
106
|
+
itemAIds: z.ZodArray<z.ZodString, "many">;
|
|
107
|
+
x: z.ZodNumber;
|
|
108
|
+
y: z.ZodNumber;
|
|
109
|
+
}>, "strip", z.ZodTypeAny, {
|
|
110
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
111
|
+
x: number;
|
|
112
|
+
y: number;
|
|
113
|
+
itemAIds: string[];
|
|
114
|
+
}, {
|
|
115
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
116
|
+
x: number;
|
|
117
|
+
y: number;
|
|
118
|
+
itemAIds: string[];
|
|
119
|
+
}> | z.ZodObject<z.extendShape<{
|
|
120
|
+
type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
|
|
121
|
+
}, {
|
|
122
|
+
type: z.ZodLiteral<"BUY_X_GET_Y_V2">;
|
|
123
|
+
priority: z.ZodEnum<["CHEAPEST_FIRST", "MOST_EXPENSIVE_FIRST"]>;
|
|
124
|
+
itemAIds: z.ZodArray<z.ZodString, "many">;
|
|
125
|
+
x: z.ZodNumber;
|
|
126
|
+
y: z.ZodNumber;
|
|
127
|
+
}>, "strip", z.ZodTypeAny, {
|
|
128
|
+
type: "BUY_X_GET_Y_V2";
|
|
129
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
130
|
+
x: number;
|
|
131
|
+
y: number;
|
|
132
|
+
itemAIds: string[];
|
|
133
|
+
}, {
|
|
134
|
+
type: "BUY_X_GET_Y_V2";
|
|
135
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
136
|
+
x: number;
|
|
137
|
+
y: number;
|
|
138
|
+
itemAIds: string[];
|
|
139
|
+
}> | z.ZodObject<z.extendShape<{
|
|
140
|
+
type: z.ZodEnum<["SIMPLE", "BUY_X_GET_Y", "BUY_X_ITEM_A_GET_Y_ITEM_B", "BUY_X_GET_Y_V2", "COMBO"]>;
|
|
141
|
+
}, {
|
|
142
|
+
type: z.ZodLiteral<"COMBO">;
|
|
143
|
+
groups: z.ZodArray<z.ZodObject<{
|
|
144
|
+
itemIds: z.ZodArray<z.ZodString, "many">;
|
|
145
|
+
count: z.ZodNumber;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
count: number;
|
|
148
|
+
itemIds: string[];
|
|
149
|
+
}, {
|
|
150
|
+
count: number;
|
|
151
|
+
itemIds: string[];
|
|
152
|
+
}>, "many">;
|
|
153
|
+
atLeast: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
154
|
+
}>, "strip", z.ZodTypeAny, {
|
|
155
|
+
atLeast?: boolean | null | undefined;
|
|
156
|
+
groups: {
|
|
157
|
+
count: number;
|
|
158
|
+
itemIds: string[];
|
|
159
|
+
}[];
|
|
160
|
+
type: "COMBO";
|
|
161
|
+
}, {
|
|
162
|
+
atLeast?: boolean | null | undefined;
|
|
163
|
+
groups: {
|
|
164
|
+
count: number;
|
|
165
|
+
itemIds: string[];
|
|
166
|
+
}[];
|
|
167
|
+
type: "COMBO";
|
|
168
|
+
}>>;
|
|
169
|
+
targetIds: z.ZodArray<z.ZodString, "many">;
|
|
170
|
+
maxQuantity: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
171
|
+
excludeAddonPrice: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
172
|
+
}>, "strip", z.ZodTypeAny, {
|
|
173
|
+
maxQuantity?: number | null | undefined;
|
|
174
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
175
|
+
target: "ITEM";
|
|
176
|
+
strategy: {
|
|
177
|
+
withAddons?: string[] | null | undefined;
|
|
178
|
+
type: "SIMPLE";
|
|
179
|
+
} | {
|
|
180
|
+
type: "BUY_X_GET_Y";
|
|
181
|
+
x: number;
|
|
182
|
+
y: number;
|
|
183
|
+
} | {
|
|
184
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
185
|
+
x: number;
|
|
186
|
+
y: number;
|
|
187
|
+
itemAIds: string[];
|
|
188
|
+
} | {
|
|
189
|
+
type: "BUY_X_GET_Y_V2";
|
|
190
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
191
|
+
x: number;
|
|
192
|
+
y: number;
|
|
193
|
+
itemAIds: string[];
|
|
194
|
+
} | {
|
|
195
|
+
atLeast?: boolean | null | undefined;
|
|
196
|
+
groups: {
|
|
197
|
+
count: number;
|
|
198
|
+
itemIds: string[];
|
|
199
|
+
}[];
|
|
200
|
+
type: "COMBO";
|
|
201
|
+
};
|
|
202
|
+
targetIds: string[];
|
|
203
|
+
}, {
|
|
204
|
+
maxQuantity?: number | null | undefined;
|
|
205
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
206
|
+
target: "ITEM";
|
|
207
|
+
strategy: {
|
|
208
|
+
withAddons?: string[] | null | undefined;
|
|
209
|
+
type: "SIMPLE";
|
|
210
|
+
} | {
|
|
211
|
+
type: "BUY_X_GET_Y";
|
|
212
|
+
x: number;
|
|
213
|
+
y: number;
|
|
214
|
+
} | {
|
|
215
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
216
|
+
x: number;
|
|
217
|
+
y: number;
|
|
218
|
+
itemAIds: string[];
|
|
219
|
+
} | {
|
|
220
|
+
type: "BUY_X_GET_Y_V2";
|
|
221
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
222
|
+
x: number;
|
|
223
|
+
y: number;
|
|
224
|
+
itemAIds: string[];
|
|
225
|
+
} | {
|
|
226
|
+
atLeast?: boolean | null | undefined;
|
|
227
|
+
groups: {
|
|
228
|
+
count: number;
|
|
229
|
+
itemIds: string[];
|
|
230
|
+
}[];
|
|
231
|
+
type: "COMBO";
|
|
232
|
+
};
|
|
233
|
+
targetIds: string[];
|
|
234
|
+
}> | z.ZodObject<z.extendShape<{
|
|
235
|
+
target: z.ZodEnum<["BILL", "ITEM", "ADVANCE", "PAYMENT"]>;
|
|
236
|
+
}, {
|
|
237
|
+
target: z.ZodLiteral<"PAYMENT">;
|
|
238
|
+
minPurchase: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
239
|
+
amount: z.ZodNumber;
|
|
240
|
+
precision: z.ZodNumber;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
amount: number;
|
|
243
|
+
precision: number;
|
|
244
|
+
}, {
|
|
245
|
+
amount: number;
|
|
246
|
+
precision: number;
|
|
247
|
+
}>>>;
|
|
248
|
+
}>, "strip", z.ZodTypeAny, {
|
|
249
|
+
minPurchase?: {
|
|
250
|
+
amount: number;
|
|
251
|
+
precision: number;
|
|
252
|
+
} | null | undefined;
|
|
253
|
+
target: "PAYMENT";
|
|
254
|
+
}, {
|
|
255
|
+
minPurchase?: {
|
|
256
|
+
amount: number;
|
|
257
|
+
precision: number;
|
|
258
|
+
} | null | undefined;
|
|
259
|
+
target: "PAYMENT";
|
|
260
|
+
}>>;
|
|
261
|
+
priority: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
106
262
|
}, "strip", z.ZodTypeAny, {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
address: string;
|
|
115
|
-
coordinates: number[];
|
|
116
|
-
}[] | null | undefined;
|
|
117
|
-
photoURL?: string | null | undefined;
|
|
118
|
-
displayName?: string | null | undefined;
|
|
119
|
-
imported?: {
|
|
120
|
-
raw: Record<string, any>;
|
|
121
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
263
|
+
priority?: number | null | undefined;
|
|
264
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
265
|
+
options: {
|
|
266
|
+
excludeIds?: string[] | null | undefined;
|
|
267
|
+
minPurchase?: {
|
|
268
|
+
amount: number;
|
|
269
|
+
precision: number;
|
|
122
270
|
} | null | undefined;
|
|
123
|
-
|
|
124
|
-
} |
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
271
|
+
target: "BILL";
|
|
272
|
+
} | {
|
|
273
|
+
maxQuantity?: number | null | undefined;
|
|
274
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
275
|
+
target: "ITEM";
|
|
276
|
+
strategy: {
|
|
277
|
+
withAddons?: string[] | null | undefined;
|
|
278
|
+
type: "SIMPLE";
|
|
279
|
+
} | {
|
|
280
|
+
type: "BUY_X_GET_Y";
|
|
281
|
+
x: number;
|
|
282
|
+
y: number;
|
|
283
|
+
} | {
|
|
284
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
285
|
+
x: number;
|
|
286
|
+
y: number;
|
|
287
|
+
itemAIds: string[];
|
|
288
|
+
} | {
|
|
289
|
+
type: "BUY_X_GET_Y_V2";
|
|
290
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
291
|
+
x: number;
|
|
292
|
+
y: number;
|
|
293
|
+
itemAIds: string[];
|
|
294
|
+
} | {
|
|
295
|
+
atLeast?: boolean | null | undefined;
|
|
296
|
+
groups: {
|
|
297
|
+
count: number;
|
|
298
|
+
itemIds: string[];
|
|
299
|
+
}[];
|
|
300
|
+
type: "COMBO";
|
|
301
|
+
};
|
|
302
|
+
targetIds: string[];
|
|
303
|
+
} | {
|
|
304
|
+
minPurchase?: {
|
|
305
|
+
amount: number;
|
|
306
|
+
precision: number;
|
|
143
307
|
} | null | undefined;
|
|
144
|
-
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
photoURL?: string | null | undefined;
|
|
163
|
-
displayName?: string | null | undefined;
|
|
164
|
-
imported?: {
|
|
165
|
-
raw: Record<string, any>;
|
|
166
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
308
|
+
target: "PAYMENT";
|
|
309
|
+
};
|
|
310
|
+
adjustment: {
|
|
311
|
+
inclusive?: boolean | null | undefined;
|
|
312
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
313
|
+
amount: {
|
|
314
|
+
amount: number;
|
|
315
|
+
precision: number;
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
}, {
|
|
319
|
+
priority?: number | null | undefined;
|
|
320
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
321
|
+
options: {
|
|
322
|
+
excludeIds?: string[] | null | undefined;
|
|
323
|
+
minPurchase?: {
|
|
324
|
+
amount: number;
|
|
325
|
+
precision: number;
|
|
167
326
|
} | null | undefined;
|
|
168
|
-
|
|
169
|
-
} |
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
327
|
+
target: "BILL";
|
|
328
|
+
} | {
|
|
329
|
+
maxQuantity?: number | null | undefined;
|
|
330
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
331
|
+
target: "ITEM";
|
|
332
|
+
strategy: {
|
|
333
|
+
withAddons?: string[] | null | undefined;
|
|
334
|
+
type: "SIMPLE";
|
|
335
|
+
} | {
|
|
336
|
+
type: "BUY_X_GET_Y";
|
|
337
|
+
x: number;
|
|
338
|
+
y: number;
|
|
339
|
+
} | {
|
|
340
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
341
|
+
x: number;
|
|
342
|
+
y: number;
|
|
343
|
+
itemAIds: string[];
|
|
344
|
+
} | {
|
|
345
|
+
type: "BUY_X_GET_Y_V2";
|
|
346
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
347
|
+
x: number;
|
|
348
|
+
y: number;
|
|
349
|
+
itemAIds: string[];
|
|
350
|
+
} | {
|
|
351
|
+
atLeast?: boolean | null | undefined;
|
|
352
|
+
groups: {
|
|
353
|
+
count: number;
|
|
354
|
+
itemIds: string[];
|
|
355
|
+
}[];
|
|
356
|
+
type: "COMBO";
|
|
357
|
+
};
|
|
358
|
+
targetIds: string[];
|
|
359
|
+
} | {
|
|
360
|
+
minPurchase?: {
|
|
361
|
+
amount: number;
|
|
362
|
+
precision: number;
|
|
195
363
|
} | null | undefined;
|
|
196
|
-
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
364
|
+
target: "PAYMENT";
|
|
365
|
+
};
|
|
366
|
+
adjustment: {
|
|
367
|
+
inclusive?: boolean | null | undefined;
|
|
368
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
369
|
+
amount: {
|
|
370
|
+
amount: number;
|
|
371
|
+
precision: number;
|
|
372
|
+
};
|
|
373
|
+
};
|
|
374
|
+
}>;
|
|
375
|
+
scheduler: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
376
|
+
start: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
|
|
377
|
+
type: z.ZodEnum<["CRON", "BIRTHDAY"]>;
|
|
378
|
+
}, {
|
|
379
|
+
type: z.ZodLiteral<"CRON">;
|
|
380
|
+
cron: z.ZodString;
|
|
381
|
+
}>, "strip", z.ZodTypeAny, {
|
|
382
|
+
type: "CRON";
|
|
383
|
+
cron: string;
|
|
384
|
+
}, {
|
|
385
|
+
type: "CRON";
|
|
386
|
+
cron: string;
|
|
387
|
+
}> | z.ZodObject<z.extendShape<{
|
|
388
|
+
type: z.ZodEnum<["CRON", "BIRTHDAY"]>;
|
|
389
|
+
}, {
|
|
390
|
+
type: z.ZodLiteral<"BIRTHDAY">;
|
|
391
|
+
option: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<{
|
|
392
|
+
type: z.ZodEnum<["START_OF", "BEFORE"]>;
|
|
393
|
+
}, {
|
|
394
|
+
type: z.ZodLiteral<"START_OF">;
|
|
395
|
+
unit: z.ZodEnum<["WEEK", "MONTH"]>;
|
|
396
|
+
}>, "strip", z.ZodTypeAny, {
|
|
397
|
+
unit: "WEEK" | "MONTH";
|
|
398
|
+
type: "START_OF";
|
|
399
|
+
}, {
|
|
400
|
+
unit: "WEEK" | "MONTH";
|
|
401
|
+
type: "START_OF";
|
|
402
|
+
}> | z.ZodObject<z.extendShape<{
|
|
403
|
+
type: z.ZodEnum<["START_OF", "BEFORE"]>;
|
|
404
|
+
}, {
|
|
405
|
+
type: z.ZodLiteral<"BEFORE">;
|
|
406
|
+
day: z.ZodNumber;
|
|
407
|
+
}>, "strip", z.ZodTypeAny, {
|
|
408
|
+
type: "BEFORE";
|
|
409
|
+
day: number;
|
|
410
|
+
}, {
|
|
411
|
+
type: "BEFORE";
|
|
412
|
+
day: number;
|
|
413
|
+
}>>;
|
|
414
|
+
}>, "strip", z.ZodTypeAny, {
|
|
415
|
+
type: "BIRTHDAY";
|
|
416
|
+
option: {
|
|
417
|
+
unit: "WEEK" | "MONTH";
|
|
418
|
+
type: "START_OF";
|
|
419
|
+
} | {
|
|
420
|
+
type: "BEFORE";
|
|
421
|
+
day: number;
|
|
422
|
+
};
|
|
423
|
+
}, {
|
|
424
|
+
type: "BIRTHDAY";
|
|
425
|
+
option: {
|
|
426
|
+
unit: "WEEK" | "MONTH";
|
|
427
|
+
type: "START_OF";
|
|
428
|
+
} | {
|
|
429
|
+
type: "BEFORE";
|
|
430
|
+
day: number;
|
|
431
|
+
};
|
|
432
|
+
}>>;
|
|
433
|
+
validity: z.ZodNumber;
|
|
434
|
+
timePeriod: z.ZodArray<z.ZodObject<{
|
|
435
|
+
start: z.ZodString;
|
|
436
|
+
end: z.ZodString;
|
|
437
|
+
}, "strip", z.ZodTypeAny, {
|
|
438
|
+
end: string;
|
|
439
|
+
start: string;
|
|
440
|
+
}, {
|
|
441
|
+
end: string;
|
|
442
|
+
start: string;
|
|
443
|
+
}>, "many">;
|
|
221
444
|
}, "strip", z.ZodTypeAny, {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
445
|
+
start: {
|
|
446
|
+
type: "CRON";
|
|
447
|
+
cron: string;
|
|
448
|
+
} | {
|
|
449
|
+
type: "BIRTHDAY";
|
|
450
|
+
option: {
|
|
451
|
+
unit: "WEEK" | "MONTH";
|
|
452
|
+
type: "START_OF";
|
|
453
|
+
} | {
|
|
454
|
+
type: "BEFORE";
|
|
455
|
+
day: number;
|
|
456
|
+
};
|
|
457
|
+
};
|
|
458
|
+
validity: number;
|
|
459
|
+
timePeriod: {
|
|
460
|
+
end: string;
|
|
461
|
+
start: string;
|
|
462
|
+
}[];
|
|
229
463
|
}, {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
464
|
+
start: {
|
|
465
|
+
type: "CRON";
|
|
466
|
+
cron: string;
|
|
467
|
+
} | {
|
|
468
|
+
type: "BIRTHDAY";
|
|
469
|
+
option: {
|
|
470
|
+
unit: "WEEK" | "MONTH";
|
|
471
|
+
type: "START_OF";
|
|
472
|
+
} | {
|
|
473
|
+
type: "BEFORE";
|
|
474
|
+
day: number;
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
validity: number;
|
|
478
|
+
timePeriod: {
|
|
479
|
+
end: string;
|
|
480
|
+
start: string;
|
|
481
|
+
}[];
|
|
482
|
+
}>>>;
|
|
483
|
+
}>, "strip", z.ZodTypeAny, {
|
|
484
|
+
scheduler?: {
|
|
485
|
+
start: {
|
|
486
|
+
type: "CRON";
|
|
487
|
+
cron: string;
|
|
488
|
+
} | {
|
|
489
|
+
type: "BIRTHDAY";
|
|
490
|
+
option: {
|
|
491
|
+
unit: "WEEK" | "MONTH";
|
|
492
|
+
type: "START_OF";
|
|
493
|
+
} | {
|
|
494
|
+
type: "BEFORE";
|
|
495
|
+
day: number;
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
validity: number;
|
|
499
|
+
timePeriod: {
|
|
500
|
+
end: string;
|
|
501
|
+
start: string;
|
|
502
|
+
}[];
|
|
503
|
+
} | null | undefined;
|
|
504
|
+
type: "BASIC";
|
|
505
|
+
effect: {
|
|
506
|
+
priority?: number | null | undefined;
|
|
507
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
508
|
+
options: {
|
|
509
|
+
excludeIds?: string[] | null | undefined;
|
|
510
|
+
minPurchase?: {
|
|
511
|
+
amount: number;
|
|
512
|
+
precision: number;
|
|
513
|
+
} | null | undefined;
|
|
514
|
+
target: "BILL";
|
|
515
|
+
} | {
|
|
516
|
+
maxQuantity?: number | null | undefined;
|
|
517
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
518
|
+
target: "ITEM";
|
|
519
|
+
strategy: {
|
|
520
|
+
withAddons?: string[] | null | undefined;
|
|
521
|
+
type: "SIMPLE";
|
|
522
|
+
} | {
|
|
523
|
+
type: "BUY_X_GET_Y";
|
|
524
|
+
x: number;
|
|
525
|
+
y: number;
|
|
526
|
+
} | {
|
|
527
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
528
|
+
x: number;
|
|
529
|
+
y: number;
|
|
530
|
+
itemAIds: string[];
|
|
531
|
+
} | {
|
|
532
|
+
type: "BUY_X_GET_Y_V2";
|
|
533
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
534
|
+
x: number;
|
|
535
|
+
y: number;
|
|
536
|
+
itemAIds: string[];
|
|
537
|
+
} | {
|
|
538
|
+
atLeast?: boolean | null | undefined;
|
|
539
|
+
groups: {
|
|
540
|
+
count: number;
|
|
541
|
+
itemIds: string[];
|
|
542
|
+
}[];
|
|
543
|
+
type: "COMBO";
|
|
544
|
+
};
|
|
545
|
+
targetIds: string[];
|
|
546
|
+
} | {
|
|
547
|
+
minPurchase?: {
|
|
548
|
+
amount: number;
|
|
549
|
+
precision: number;
|
|
550
|
+
} | null | undefined;
|
|
551
|
+
target: "PAYMENT";
|
|
552
|
+
};
|
|
553
|
+
adjustment: {
|
|
554
|
+
inclusive?: boolean | null | undefined;
|
|
555
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
556
|
+
amount: {
|
|
557
|
+
amount: number;
|
|
558
|
+
precision: number;
|
|
559
|
+
};
|
|
560
|
+
};
|
|
249
561
|
};
|
|
250
|
-
email: string;
|
|
251
|
-
companyName: string;
|
|
252
|
-
contact: string;
|
|
253
562
|
}, {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
563
|
+
scheduler?: {
|
|
564
|
+
start: {
|
|
565
|
+
type: "CRON";
|
|
566
|
+
cron: string;
|
|
567
|
+
} | {
|
|
568
|
+
type: "BIRTHDAY";
|
|
569
|
+
option: {
|
|
570
|
+
unit: "WEEK" | "MONTH";
|
|
571
|
+
type: "START_OF";
|
|
572
|
+
} | {
|
|
573
|
+
type: "BEFORE";
|
|
574
|
+
day: number;
|
|
575
|
+
};
|
|
576
|
+
};
|
|
577
|
+
validity: number;
|
|
578
|
+
timePeriod: {
|
|
579
|
+
end: string;
|
|
580
|
+
start: string;
|
|
581
|
+
}[];
|
|
582
|
+
} | null | undefined;
|
|
583
|
+
type: "BASIC";
|
|
584
|
+
effect: {
|
|
585
|
+
priority?: number | null | undefined;
|
|
586
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
587
|
+
options: {
|
|
588
|
+
excludeIds?: string[] | null | undefined;
|
|
589
|
+
minPurchase?: {
|
|
590
|
+
amount: number;
|
|
591
|
+
precision: number;
|
|
592
|
+
} | null | undefined;
|
|
593
|
+
target: "BILL";
|
|
594
|
+
} | {
|
|
595
|
+
maxQuantity?: number | null | undefined;
|
|
596
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
597
|
+
target: "ITEM";
|
|
598
|
+
strategy: {
|
|
599
|
+
withAddons?: string[] | null | undefined;
|
|
600
|
+
type: "SIMPLE";
|
|
601
|
+
} | {
|
|
602
|
+
type: "BUY_X_GET_Y";
|
|
603
|
+
x: number;
|
|
604
|
+
y: number;
|
|
605
|
+
} | {
|
|
606
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
607
|
+
x: number;
|
|
608
|
+
y: number;
|
|
609
|
+
itemAIds: string[];
|
|
610
|
+
} | {
|
|
611
|
+
type: "BUY_X_GET_Y_V2";
|
|
612
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
613
|
+
x: number;
|
|
614
|
+
y: number;
|
|
615
|
+
itemAIds: string[];
|
|
616
|
+
} | {
|
|
617
|
+
atLeast?: boolean | null | undefined;
|
|
618
|
+
groups: {
|
|
619
|
+
count: number;
|
|
620
|
+
itemIds: string[];
|
|
621
|
+
}[];
|
|
622
|
+
type: "COMBO";
|
|
623
|
+
};
|
|
624
|
+
targetIds: string[];
|
|
625
|
+
} | {
|
|
626
|
+
minPurchase?: {
|
|
627
|
+
amount: number;
|
|
628
|
+
precision: number;
|
|
629
|
+
} | null | undefined;
|
|
630
|
+
target: "PAYMENT";
|
|
631
|
+
};
|
|
632
|
+
adjustment: {
|
|
633
|
+
inclusive?: boolean | null | undefined;
|
|
634
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
635
|
+
amount: {
|
|
636
|
+
amount: number;
|
|
637
|
+
precision: number;
|
|
638
|
+
};
|
|
639
|
+
};
|
|
264
640
|
};
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
641
|
+
}> | z.ZodObject<z.extendShape<{
|
|
642
|
+
type: z.ZodEnum<["BASIC", "VOUCHER"]>;
|
|
643
|
+
}, {
|
|
644
|
+
type: z.ZodLiteral<"VOUCHER">;
|
|
645
|
+
vouchers: z.ZodArray<z.ZodString, "many">;
|
|
646
|
+
freeCredit: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
647
|
+
day: z.ZodNumber;
|
|
648
|
+
amount: z.ZodNumber;
|
|
649
|
+
remark: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
650
|
+
}, "strip", z.ZodTypeAny, {
|
|
651
|
+
remark?: string | null | undefined;
|
|
652
|
+
day: number;
|
|
653
|
+
amount: number;
|
|
654
|
+
}, {
|
|
655
|
+
remark?: string | null | undefined;
|
|
656
|
+
day: number;
|
|
657
|
+
amount: number;
|
|
658
|
+
}>>>;
|
|
659
|
+
triggerer: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
660
|
+
distributedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
661
|
+
}>, "strip", z.ZodTypeAny, {
|
|
662
|
+
freeCredit?: {
|
|
663
|
+
remark?: string | null | undefined;
|
|
664
|
+
day: number;
|
|
665
|
+
amount: number;
|
|
666
|
+
} | null | undefined;
|
|
667
|
+
distributedAt?: string | null | undefined;
|
|
668
|
+
type: "VOUCHER";
|
|
669
|
+
vouchers: string[];
|
|
670
|
+
triggerer: {};
|
|
671
|
+
}, {
|
|
672
|
+
freeCredit?: {
|
|
673
|
+
remark?: string | null | undefined;
|
|
674
|
+
day: number;
|
|
675
|
+
amount: number;
|
|
676
|
+
} | null | undefined;
|
|
677
|
+
distributedAt?: string | null | undefined;
|
|
678
|
+
type: "VOUCHER";
|
|
679
|
+
vouchers: string[];
|
|
680
|
+
triggerer: {};
|
|
681
|
+
}>>;
|
|
682
|
+
name: z.ZodString;
|
|
683
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
684
|
+
image: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
685
|
+
minLevel: z.ZodNumber;
|
|
686
|
+
maxLevel: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
687
|
+
minTier: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
688
|
+
maxTier: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
689
|
+
targetRestaurant: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
690
|
+
requiredTitle: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
691
|
+
frontend: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
692
|
+
hide: z.ZodBoolean;
|
|
693
|
+
disable: z.ZodBoolean;
|
|
694
|
+
reason: z.ZodString;
|
|
272
695
|
}, "strip", z.ZodTypeAny, {
|
|
273
|
-
|
|
274
|
-
|
|
696
|
+
reason: string;
|
|
697
|
+
hide: boolean;
|
|
698
|
+
disable: boolean;
|
|
275
699
|
}, {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
700
|
+
reason: string;
|
|
701
|
+
hide: boolean;
|
|
702
|
+
disable: boolean;
|
|
703
|
+
}>>>;
|
|
279
704
|
}, "strip", z.ZodTypeAny, {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
members?: {
|
|
292
|
-
pf_user?: {
|
|
293
|
-
email?: string | null | undefined;
|
|
294
|
-
phoneNumber?: string | null | undefined;
|
|
295
|
-
birthday?: string | null | undefined;
|
|
296
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
|
297
|
-
addresses?: {
|
|
298
|
-
name: string;
|
|
299
|
-
address: string;
|
|
300
|
-
coordinates: number[];
|
|
301
|
-
}[] | null | undefined;
|
|
302
|
-
photoURL?: string | null | undefined;
|
|
303
|
-
displayName?: string | null | undefined;
|
|
304
|
-
imported?: {
|
|
305
|
-
raw: Record<string, any>;
|
|
306
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
307
|
-
} | null | undefined;
|
|
308
|
-
_id: string;
|
|
309
|
-
} | null | undefined;
|
|
310
|
-
role: "ADMIN";
|
|
311
|
-
userId: string;
|
|
312
|
-
}[] | null | undefined;
|
|
313
|
-
code: string;
|
|
314
|
-
name: string;
|
|
315
|
-
_id: string;
|
|
316
|
-
isReseller: boolean;
|
|
705
|
+
image?: string | null | undefined;
|
|
706
|
+
description?: string | null | undefined;
|
|
707
|
+
maxLevel?: number | null | undefined;
|
|
708
|
+
minTier?: number | null | undefined;
|
|
709
|
+
maxTier?: number | null | undefined;
|
|
710
|
+
targetRestaurant?: string[] | null | undefined;
|
|
711
|
+
requiredTitle?: string | null | undefined;
|
|
712
|
+
frontend?: {
|
|
713
|
+
reason: string;
|
|
714
|
+
hide: boolean;
|
|
715
|
+
disable: boolean;
|
|
317
716
|
} | null | undefined;
|
|
318
|
-
thumbnail?: string | null | undefined;
|
|
319
|
-
billingInfos?: {
|
|
320
|
-
_id?: string | null | undefined;
|
|
321
|
-
name: string;
|
|
322
|
-
address: {
|
|
323
|
-
coordinates?: number[] | null | undefined;
|
|
324
|
-
line2?: string | null | undefined;
|
|
325
|
-
state: string;
|
|
326
|
-
country: string;
|
|
327
|
-
line1: string;
|
|
328
|
-
city: string;
|
|
329
|
-
postcode: string;
|
|
330
|
-
};
|
|
331
|
-
email: string;
|
|
332
|
-
companyName: string;
|
|
333
|
-
contact: string;
|
|
334
|
-
}[] | null | undefined;
|
|
335
|
-
customerDisplayImages?: {
|
|
336
|
-
url: string;
|
|
337
|
-
restaurantIds: string[];
|
|
338
|
-
}[] | null | undefined;
|
|
339
717
|
name: string;
|
|
718
|
+
options: {
|
|
719
|
+
scheduler?: {
|
|
720
|
+
start: {
|
|
721
|
+
type: "CRON";
|
|
722
|
+
cron: string;
|
|
723
|
+
} | {
|
|
724
|
+
type: "BIRTHDAY";
|
|
725
|
+
option: {
|
|
726
|
+
unit: "WEEK" | "MONTH";
|
|
727
|
+
type: "START_OF";
|
|
728
|
+
} | {
|
|
729
|
+
type: "BEFORE";
|
|
730
|
+
day: number;
|
|
731
|
+
};
|
|
732
|
+
};
|
|
733
|
+
validity: number;
|
|
734
|
+
timePeriod: {
|
|
735
|
+
end: string;
|
|
736
|
+
start: string;
|
|
737
|
+
}[];
|
|
738
|
+
} | null | undefined;
|
|
739
|
+
type: "BASIC";
|
|
740
|
+
effect: {
|
|
741
|
+
priority?: number | null | undefined;
|
|
742
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
743
|
+
options: {
|
|
744
|
+
excludeIds?: string[] | null | undefined;
|
|
745
|
+
minPurchase?: {
|
|
746
|
+
amount: number;
|
|
747
|
+
precision: number;
|
|
748
|
+
} | null | undefined;
|
|
749
|
+
target: "BILL";
|
|
750
|
+
} | {
|
|
751
|
+
maxQuantity?: number | null | undefined;
|
|
752
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
753
|
+
target: "ITEM";
|
|
754
|
+
strategy: {
|
|
755
|
+
withAddons?: string[] | null | undefined;
|
|
756
|
+
type: "SIMPLE";
|
|
757
|
+
} | {
|
|
758
|
+
type: "BUY_X_GET_Y";
|
|
759
|
+
x: number;
|
|
760
|
+
y: number;
|
|
761
|
+
} | {
|
|
762
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
763
|
+
x: number;
|
|
764
|
+
y: number;
|
|
765
|
+
itemAIds: string[];
|
|
766
|
+
} | {
|
|
767
|
+
type: "BUY_X_GET_Y_V2";
|
|
768
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
769
|
+
x: number;
|
|
770
|
+
y: number;
|
|
771
|
+
itemAIds: string[];
|
|
772
|
+
} | {
|
|
773
|
+
atLeast?: boolean | null | undefined;
|
|
774
|
+
groups: {
|
|
775
|
+
count: number;
|
|
776
|
+
itemIds: string[];
|
|
777
|
+
}[];
|
|
778
|
+
type: "COMBO";
|
|
779
|
+
};
|
|
780
|
+
targetIds: string[];
|
|
781
|
+
} | {
|
|
782
|
+
minPurchase?: {
|
|
783
|
+
amount: number;
|
|
784
|
+
precision: number;
|
|
785
|
+
} | null | undefined;
|
|
786
|
+
target: "PAYMENT";
|
|
787
|
+
};
|
|
788
|
+
adjustment: {
|
|
789
|
+
inclusive?: boolean | null | undefined;
|
|
790
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
791
|
+
amount: {
|
|
792
|
+
amount: number;
|
|
793
|
+
precision: number;
|
|
794
|
+
};
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
} | {
|
|
798
|
+
freeCredit?: {
|
|
799
|
+
remark?: string | null | undefined;
|
|
800
|
+
day: number;
|
|
801
|
+
amount: number;
|
|
802
|
+
} | null | undefined;
|
|
803
|
+
distributedAt?: string | null | undefined;
|
|
804
|
+
type: "VOUCHER";
|
|
805
|
+
vouchers: string[];
|
|
806
|
+
triggerer: {};
|
|
807
|
+
};
|
|
340
808
|
_id: string;
|
|
341
|
-
|
|
342
|
-
restaurantQuota: number;
|
|
343
|
-
warehouseQuota: number;
|
|
344
|
-
menuVersion: string;
|
|
809
|
+
minLevel: number;
|
|
345
810
|
}, {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
members?: {
|
|
358
|
-
pf_user?: {
|
|
359
|
-
email?: string | null | undefined;
|
|
360
|
-
phoneNumber?: string | null | undefined;
|
|
361
|
-
birthday?: string | null | undefined;
|
|
362
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
|
363
|
-
addresses?: {
|
|
364
|
-
name: string;
|
|
365
|
-
address: string;
|
|
366
|
-
coordinates: number[];
|
|
367
|
-
}[] | null | undefined;
|
|
368
|
-
photoURL?: string | null | undefined;
|
|
369
|
-
displayName?: string | null | undefined;
|
|
370
|
-
imported?: {
|
|
371
|
-
raw: Record<string, any>;
|
|
372
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
373
|
-
} | null | undefined;
|
|
374
|
-
_id: string;
|
|
375
|
-
} | null | undefined;
|
|
376
|
-
role: "ADMIN";
|
|
377
|
-
userId: string;
|
|
378
|
-
}[] | null | undefined;
|
|
379
|
-
code: string;
|
|
380
|
-
name: string;
|
|
381
|
-
_id: string;
|
|
382
|
-
isReseller: boolean;
|
|
811
|
+
image?: string | null | undefined;
|
|
812
|
+
description?: string | null | undefined;
|
|
813
|
+
maxLevel?: number | null | undefined;
|
|
814
|
+
minTier?: number | null | undefined;
|
|
815
|
+
maxTier?: number | null | undefined;
|
|
816
|
+
targetRestaurant?: string[] | null | undefined;
|
|
817
|
+
requiredTitle?: string | null | undefined;
|
|
818
|
+
frontend?: {
|
|
819
|
+
reason: string;
|
|
820
|
+
hide: boolean;
|
|
821
|
+
disable: boolean;
|
|
383
822
|
} | null | undefined;
|
|
384
|
-
thumbnail?: string | null | undefined;
|
|
385
|
-
billingInfos?: {
|
|
386
|
-
_id?: string | null | undefined;
|
|
387
|
-
name: string;
|
|
388
|
-
address: {
|
|
389
|
-
coordinates?: number[] | null | undefined;
|
|
390
|
-
line2?: string | null | undefined;
|
|
391
|
-
state: string;
|
|
392
|
-
country: string;
|
|
393
|
-
line1: string;
|
|
394
|
-
city: string;
|
|
395
|
-
postcode: string;
|
|
396
|
-
};
|
|
397
|
-
email: string;
|
|
398
|
-
companyName: string;
|
|
399
|
-
contact: string;
|
|
400
|
-
}[] | null | undefined;
|
|
401
|
-
customerDisplayImages?: {
|
|
402
|
-
url: string;
|
|
403
|
-
restaurantIds: string[];
|
|
404
|
-
}[] | null | undefined;
|
|
405
823
|
name: string;
|
|
824
|
+
options: {
|
|
825
|
+
scheduler?: {
|
|
826
|
+
start: {
|
|
827
|
+
type: "CRON";
|
|
828
|
+
cron: string;
|
|
829
|
+
} | {
|
|
830
|
+
type: "BIRTHDAY";
|
|
831
|
+
option: {
|
|
832
|
+
unit: "WEEK" | "MONTH";
|
|
833
|
+
type: "START_OF";
|
|
834
|
+
} | {
|
|
835
|
+
type: "BEFORE";
|
|
836
|
+
day: number;
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
validity: number;
|
|
840
|
+
timePeriod: {
|
|
841
|
+
end: string;
|
|
842
|
+
start: string;
|
|
843
|
+
}[];
|
|
844
|
+
} | null | undefined;
|
|
845
|
+
type: "BASIC";
|
|
846
|
+
effect: {
|
|
847
|
+
priority?: number | null | undefined;
|
|
848
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
849
|
+
options: {
|
|
850
|
+
excludeIds?: string[] | null | undefined;
|
|
851
|
+
minPurchase?: {
|
|
852
|
+
amount: number;
|
|
853
|
+
precision: number;
|
|
854
|
+
} | null | undefined;
|
|
855
|
+
target: "BILL";
|
|
856
|
+
} | {
|
|
857
|
+
maxQuantity?: number | null | undefined;
|
|
858
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
859
|
+
target: "ITEM";
|
|
860
|
+
strategy: {
|
|
861
|
+
withAddons?: string[] | null | undefined;
|
|
862
|
+
type: "SIMPLE";
|
|
863
|
+
} | {
|
|
864
|
+
type: "BUY_X_GET_Y";
|
|
865
|
+
x: number;
|
|
866
|
+
y: number;
|
|
867
|
+
} | {
|
|
868
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
869
|
+
x: number;
|
|
870
|
+
y: number;
|
|
871
|
+
itemAIds: string[];
|
|
872
|
+
} | {
|
|
873
|
+
type: "BUY_X_GET_Y_V2";
|
|
874
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
875
|
+
x: number;
|
|
876
|
+
y: number;
|
|
877
|
+
itemAIds: string[];
|
|
878
|
+
} | {
|
|
879
|
+
atLeast?: boolean | null | undefined;
|
|
880
|
+
groups: {
|
|
881
|
+
count: number;
|
|
882
|
+
itemIds: string[];
|
|
883
|
+
}[];
|
|
884
|
+
type: "COMBO";
|
|
885
|
+
};
|
|
886
|
+
targetIds: string[];
|
|
887
|
+
} | {
|
|
888
|
+
minPurchase?: {
|
|
889
|
+
amount: number;
|
|
890
|
+
precision: number;
|
|
891
|
+
} | null | undefined;
|
|
892
|
+
target: "PAYMENT";
|
|
893
|
+
};
|
|
894
|
+
adjustment: {
|
|
895
|
+
inclusive?: boolean | null | undefined;
|
|
896
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
897
|
+
amount: {
|
|
898
|
+
amount: number;
|
|
899
|
+
precision: number;
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
};
|
|
903
|
+
} | {
|
|
904
|
+
freeCredit?: {
|
|
905
|
+
remark?: string | null | undefined;
|
|
906
|
+
day: number;
|
|
907
|
+
amount: number;
|
|
908
|
+
} | null | undefined;
|
|
909
|
+
distributedAt?: string | null | undefined;
|
|
910
|
+
type: "VOUCHER";
|
|
911
|
+
vouchers: string[];
|
|
912
|
+
triggerer: {};
|
|
913
|
+
};
|
|
406
914
|
_id: string;
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
warehouseQuota: number;
|
|
410
|
-
menuVersion: string;
|
|
411
|
-
}>>>>;
|
|
915
|
+
minLevel: number;
|
|
916
|
+
}>, "many">;
|
|
412
917
|
user: z.ZodString;
|
|
413
918
|
cardNo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
414
919
|
level: z.ZodNumber;
|
|
@@ -483,93 +988,32 @@ export declare const KioskVerifyMemberDto: z.ZodObject<{
|
|
|
483
988
|
}[];
|
|
484
989
|
}>;
|
|
485
990
|
titles: z.ZodArray<z.ZodObject<{
|
|
486
|
-
_id: z.
|
|
487
|
-
|
|
488
|
-
|
|
991
|
+
_id: z.ZodString;
|
|
992
|
+
name: z.ZodString;
|
|
993
|
+
acquiredAt: z.ZodEffects<z.ZodString, string, string>;
|
|
994
|
+
expiredAt: z.ZodEffects<z.ZodString, string, string>;
|
|
489
995
|
}, "strip", z.ZodTypeAny, {
|
|
996
|
+
name: string;
|
|
490
997
|
_id: string;
|
|
491
998
|
expiredAt: string;
|
|
492
999
|
acquiredAt: string;
|
|
493
1000
|
}, {
|
|
1001
|
+
name: string;
|
|
494
1002
|
_id: string;
|
|
495
1003
|
expiredAt: string;
|
|
496
1004
|
acquiredAt: string;
|
|
497
1005
|
}>, "many">;
|
|
498
1006
|
}, {
|
|
499
1007
|
name: z.ZodDefault<z.ZodString>;
|
|
1008
|
+
userId: z.ZodString;
|
|
500
1009
|
}>, "strip", z.ZodTypeAny, {
|
|
501
|
-
joinedAt?: string | null | undefined;
|
|
502
|
-
pf_business?: {
|
|
503
|
-
internal?: boolean | null | undefined;
|
|
504
|
-
url?: string | null | undefined;
|
|
505
|
-
expiredAt?: string | null | undefined;
|
|
506
|
-
agentId?: string | null | undefined;
|
|
507
|
-
attributeSettings?: {
|
|
508
|
-
type: "string" | "number" | "boolean" | "date";
|
|
509
|
-
key: string;
|
|
510
|
-
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
511
|
-
}[] | null | undefined;
|
|
512
|
-
pf_agent?: {
|
|
513
|
-
clickupId?: string | null | undefined;
|
|
514
|
-
members?: {
|
|
515
|
-
pf_user?: {
|
|
516
|
-
email?: string | null | undefined;
|
|
517
|
-
phoneNumber?: string | null | undefined;
|
|
518
|
-
birthday?: string | null | undefined;
|
|
519
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
|
520
|
-
addresses?: {
|
|
521
|
-
name: string;
|
|
522
|
-
address: string;
|
|
523
|
-
coordinates: number[];
|
|
524
|
-
}[] | null | undefined;
|
|
525
|
-
photoURL?: string | null | undefined;
|
|
526
|
-
displayName?: string | null | undefined;
|
|
527
|
-
imported?: {
|
|
528
|
-
raw: Record<string, any>;
|
|
529
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
530
|
-
} | null | undefined;
|
|
531
|
-
_id: string;
|
|
532
|
-
} | null | undefined;
|
|
533
|
-
role: "ADMIN";
|
|
534
|
-
userId: string;
|
|
535
|
-
}[] | null | undefined;
|
|
536
|
-
code: string;
|
|
537
|
-
name: string;
|
|
538
|
-
_id: string;
|
|
539
|
-
isReseller: boolean;
|
|
540
|
-
} | null | undefined;
|
|
541
|
-
thumbnail?: string | null | undefined;
|
|
542
|
-
billingInfos?: {
|
|
543
|
-
_id?: string | null | undefined;
|
|
544
|
-
name: string;
|
|
545
|
-
address: {
|
|
546
|
-
coordinates?: number[] | null | undefined;
|
|
547
|
-
line2?: string | null | undefined;
|
|
548
|
-
state: string;
|
|
549
|
-
country: string;
|
|
550
|
-
line1: string;
|
|
551
|
-
city: string;
|
|
552
|
-
postcode: string;
|
|
553
|
-
};
|
|
554
|
-
email: string;
|
|
555
|
-
companyName: string;
|
|
556
|
-
contact: string;
|
|
557
|
-
}[] | null | undefined;
|
|
558
|
-
customerDisplayImages?: {
|
|
559
|
-
url: string;
|
|
560
|
-
restaurantIds: string[];
|
|
561
|
-
}[] | null | undefined;
|
|
562
|
-
name: string;
|
|
563
|
-
_id: string;
|
|
564
|
-
ownerId: string;
|
|
565
|
-
restaurantQuota: number;
|
|
566
|
-
warehouseQuota: number;
|
|
567
|
-
menuVersion: string;
|
|
568
|
-
} | null | undefined;
|
|
569
1010
|
cardNo?: string | null | undefined;
|
|
1011
|
+
membership?: string | null | undefined;
|
|
570
1012
|
name: string;
|
|
571
|
-
|
|
1013
|
+
id: string;
|
|
572
1014
|
user: string;
|
|
1015
|
+
userId: string;
|
|
1016
|
+
joinedAt: string;
|
|
573
1017
|
business: string;
|
|
574
1018
|
level: number;
|
|
575
1019
|
experience: number;
|
|
@@ -595,83 +1039,126 @@ export declare const KioskVerifyMemberDto: z.ZodObject<{
|
|
|
595
1039
|
}[];
|
|
596
1040
|
};
|
|
597
1041
|
titles: {
|
|
1042
|
+
name: string;
|
|
598
1043
|
_id: string;
|
|
599
1044
|
expiredAt: string;
|
|
600
1045
|
acquiredAt: string;
|
|
601
1046
|
}[];
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
}[] | null | undefined;
|
|
615
|
-
pf_agent?: {
|
|
616
|
-
clickupId?: string | null | undefined;
|
|
617
|
-
members?: {
|
|
618
|
-
pf_user?: {
|
|
619
|
-
email?: string | null | undefined;
|
|
620
|
-
phoneNumber?: string | null | undefined;
|
|
621
|
-
birthday?: string | null | undefined;
|
|
622
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
|
623
|
-
addresses?: {
|
|
624
|
-
name: string;
|
|
625
|
-
address: string;
|
|
626
|
-
coordinates: number[];
|
|
627
|
-
}[] | null | undefined;
|
|
628
|
-
photoURL?: string | null | undefined;
|
|
629
|
-
displayName?: string | null | undefined;
|
|
630
|
-
imported?: {
|
|
631
|
-
raw: Record<string, any>;
|
|
632
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
633
|
-
} | null | undefined;
|
|
634
|
-
_id: string;
|
|
635
|
-
} | null | undefined;
|
|
636
|
-
role: "ADMIN";
|
|
637
|
-
userId: string;
|
|
638
|
-
}[] | null | undefined;
|
|
639
|
-
code: string;
|
|
640
|
-
name: string;
|
|
641
|
-
_id: string;
|
|
642
|
-
isReseller: boolean;
|
|
1047
|
+
benefits: {
|
|
1048
|
+
image?: string | null | undefined;
|
|
1049
|
+
description?: string | null | undefined;
|
|
1050
|
+
maxLevel?: number | null | undefined;
|
|
1051
|
+
minTier?: number | null | undefined;
|
|
1052
|
+
maxTier?: number | null | undefined;
|
|
1053
|
+
targetRestaurant?: string[] | null | undefined;
|
|
1054
|
+
requiredTitle?: string | null | undefined;
|
|
1055
|
+
frontend?: {
|
|
1056
|
+
reason: string;
|
|
1057
|
+
hide: boolean;
|
|
1058
|
+
disable: boolean;
|
|
643
1059
|
} | null | undefined;
|
|
644
|
-
thumbnail?: string | null | undefined;
|
|
645
|
-
billingInfos?: {
|
|
646
|
-
_id?: string | null | undefined;
|
|
647
|
-
name: string;
|
|
648
|
-
address: {
|
|
649
|
-
coordinates?: number[] | null | undefined;
|
|
650
|
-
line2?: string | null | undefined;
|
|
651
|
-
state: string;
|
|
652
|
-
country: string;
|
|
653
|
-
line1: string;
|
|
654
|
-
city: string;
|
|
655
|
-
postcode: string;
|
|
656
|
-
};
|
|
657
|
-
email: string;
|
|
658
|
-
companyName: string;
|
|
659
|
-
contact: string;
|
|
660
|
-
}[] | null | undefined;
|
|
661
|
-
customerDisplayImages?: {
|
|
662
|
-
url: string;
|
|
663
|
-
restaurantIds: string[];
|
|
664
|
-
}[] | null | undefined;
|
|
665
1060
|
name: string;
|
|
1061
|
+
options: {
|
|
1062
|
+
scheduler?: {
|
|
1063
|
+
start: {
|
|
1064
|
+
type: "CRON";
|
|
1065
|
+
cron: string;
|
|
1066
|
+
} | {
|
|
1067
|
+
type: "BIRTHDAY";
|
|
1068
|
+
option: {
|
|
1069
|
+
unit: "WEEK" | "MONTH";
|
|
1070
|
+
type: "START_OF";
|
|
1071
|
+
} | {
|
|
1072
|
+
type: "BEFORE";
|
|
1073
|
+
day: number;
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
validity: number;
|
|
1077
|
+
timePeriod: {
|
|
1078
|
+
end: string;
|
|
1079
|
+
start: string;
|
|
1080
|
+
}[];
|
|
1081
|
+
} | null | undefined;
|
|
1082
|
+
type: "BASIC";
|
|
1083
|
+
effect: {
|
|
1084
|
+
priority?: number | null | undefined;
|
|
1085
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
1086
|
+
options: {
|
|
1087
|
+
excludeIds?: string[] | null | undefined;
|
|
1088
|
+
minPurchase?: {
|
|
1089
|
+
amount: number;
|
|
1090
|
+
precision: number;
|
|
1091
|
+
} | null | undefined;
|
|
1092
|
+
target: "BILL";
|
|
1093
|
+
} | {
|
|
1094
|
+
maxQuantity?: number | null | undefined;
|
|
1095
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
1096
|
+
target: "ITEM";
|
|
1097
|
+
strategy: {
|
|
1098
|
+
withAddons?: string[] | null | undefined;
|
|
1099
|
+
type: "SIMPLE";
|
|
1100
|
+
} | {
|
|
1101
|
+
type: "BUY_X_GET_Y";
|
|
1102
|
+
x: number;
|
|
1103
|
+
y: number;
|
|
1104
|
+
} | {
|
|
1105
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
1106
|
+
x: number;
|
|
1107
|
+
y: number;
|
|
1108
|
+
itemAIds: string[];
|
|
1109
|
+
} | {
|
|
1110
|
+
type: "BUY_X_GET_Y_V2";
|
|
1111
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
1112
|
+
x: number;
|
|
1113
|
+
y: number;
|
|
1114
|
+
itemAIds: string[];
|
|
1115
|
+
} | {
|
|
1116
|
+
atLeast?: boolean | null | undefined;
|
|
1117
|
+
groups: {
|
|
1118
|
+
count: number;
|
|
1119
|
+
itemIds: string[];
|
|
1120
|
+
}[];
|
|
1121
|
+
type: "COMBO";
|
|
1122
|
+
};
|
|
1123
|
+
targetIds: string[];
|
|
1124
|
+
} | {
|
|
1125
|
+
minPurchase?: {
|
|
1126
|
+
amount: number;
|
|
1127
|
+
precision: number;
|
|
1128
|
+
} | null | undefined;
|
|
1129
|
+
target: "PAYMENT";
|
|
1130
|
+
};
|
|
1131
|
+
adjustment: {
|
|
1132
|
+
inclusive?: boolean | null | undefined;
|
|
1133
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
1134
|
+
amount: {
|
|
1135
|
+
amount: number;
|
|
1136
|
+
precision: number;
|
|
1137
|
+
};
|
|
1138
|
+
};
|
|
1139
|
+
};
|
|
1140
|
+
} | {
|
|
1141
|
+
freeCredit?: {
|
|
1142
|
+
remark?: string | null | undefined;
|
|
1143
|
+
day: number;
|
|
1144
|
+
amount: number;
|
|
1145
|
+
} | null | undefined;
|
|
1146
|
+
distributedAt?: string | null | undefined;
|
|
1147
|
+
type: "VOUCHER";
|
|
1148
|
+
vouchers: string[];
|
|
1149
|
+
triggerer: {};
|
|
1150
|
+
};
|
|
666
1151
|
_id: string;
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
} | null | undefined;
|
|
1152
|
+
minLevel: number;
|
|
1153
|
+
}[];
|
|
1154
|
+
}, {
|
|
1155
|
+
name?: string | undefined;
|
|
672
1156
|
cardNo?: string | null | undefined;
|
|
673
|
-
|
|
1157
|
+
membership?: string | null | undefined;
|
|
1158
|
+
id: string;
|
|
674
1159
|
user: string;
|
|
1160
|
+
userId: string;
|
|
1161
|
+
joinedAt: string;
|
|
675
1162
|
business: string;
|
|
676
1163
|
level: number;
|
|
677
1164
|
experience: number;
|
|
@@ -697,10 +1184,118 @@ export declare const KioskVerifyMemberDto: z.ZodObject<{
|
|
|
697
1184
|
}[];
|
|
698
1185
|
};
|
|
699
1186
|
titles: {
|
|
1187
|
+
name: string;
|
|
700
1188
|
_id: string;
|
|
701
1189
|
expiredAt: string;
|
|
702
1190
|
acquiredAt: string;
|
|
703
1191
|
}[];
|
|
1192
|
+
benefits: {
|
|
1193
|
+
image?: string | null | undefined;
|
|
1194
|
+
description?: string | null | undefined;
|
|
1195
|
+
maxLevel?: number | null | undefined;
|
|
1196
|
+
minTier?: number | null | undefined;
|
|
1197
|
+
maxTier?: number | null | undefined;
|
|
1198
|
+
targetRestaurant?: string[] | null | undefined;
|
|
1199
|
+
requiredTitle?: string | null | undefined;
|
|
1200
|
+
frontend?: {
|
|
1201
|
+
reason: string;
|
|
1202
|
+
hide: boolean;
|
|
1203
|
+
disable: boolean;
|
|
1204
|
+
} | null | undefined;
|
|
1205
|
+
name: string;
|
|
1206
|
+
options: {
|
|
1207
|
+
scheduler?: {
|
|
1208
|
+
start: {
|
|
1209
|
+
type: "CRON";
|
|
1210
|
+
cron: string;
|
|
1211
|
+
} | {
|
|
1212
|
+
type: "BIRTHDAY";
|
|
1213
|
+
option: {
|
|
1214
|
+
unit: "WEEK" | "MONTH";
|
|
1215
|
+
type: "START_OF";
|
|
1216
|
+
} | {
|
|
1217
|
+
type: "BEFORE";
|
|
1218
|
+
day: number;
|
|
1219
|
+
};
|
|
1220
|
+
};
|
|
1221
|
+
validity: number;
|
|
1222
|
+
timePeriod: {
|
|
1223
|
+
end: string;
|
|
1224
|
+
start: string;
|
|
1225
|
+
}[];
|
|
1226
|
+
} | null | undefined;
|
|
1227
|
+
type: "BASIC";
|
|
1228
|
+
effect: {
|
|
1229
|
+
priority?: number | null | undefined;
|
|
1230
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
1231
|
+
options: {
|
|
1232
|
+
excludeIds?: string[] | null | undefined;
|
|
1233
|
+
minPurchase?: {
|
|
1234
|
+
amount: number;
|
|
1235
|
+
precision: number;
|
|
1236
|
+
} | null | undefined;
|
|
1237
|
+
target: "BILL";
|
|
1238
|
+
} | {
|
|
1239
|
+
maxQuantity?: number | null | undefined;
|
|
1240
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
1241
|
+
target: "ITEM";
|
|
1242
|
+
strategy: {
|
|
1243
|
+
withAddons?: string[] | null | undefined;
|
|
1244
|
+
type: "SIMPLE";
|
|
1245
|
+
} | {
|
|
1246
|
+
type: "BUY_X_GET_Y";
|
|
1247
|
+
x: number;
|
|
1248
|
+
y: number;
|
|
1249
|
+
} | {
|
|
1250
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
1251
|
+
x: number;
|
|
1252
|
+
y: number;
|
|
1253
|
+
itemAIds: string[];
|
|
1254
|
+
} | {
|
|
1255
|
+
type: "BUY_X_GET_Y_V2";
|
|
1256
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
1257
|
+
x: number;
|
|
1258
|
+
y: number;
|
|
1259
|
+
itemAIds: string[];
|
|
1260
|
+
} | {
|
|
1261
|
+
atLeast?: boolean | null | undefined;
|
|
1262
|
+
groups: {
|
|
1263
|
+
count: number;
|
|
1264
|
+
itemIds: string[];
|
|
1265
|
+
}[];
|
|
1266
|
+
type: "COMBO";
|
|
1267
|
+
};
|
|
1268
|
+
targetIds: string[];
|
|
1269
|
+
} | {
|
|
1270
|
+
minPurchase?: {
|
|
1271
|
+
amount: number;
|
|
1272
|
+
precision: number;
|
|
1273
|
+
} | null | undefined;
|
|
1274
|
+
target: "PAYMENT";
|
|
1275
|
+
};
|
|
1276
|
+
adjustment: {
|
|
1277
|
+
inclusive?: boolean | null | undefined;
|
|
1278
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
1279
|
+
amount: {
|
|
1280
|
+
amount: number;
|
|
1281
|
+
precision: number;
|
|
1282
|
+
};
|
|
1283
|
+
};
|
|
1284
|
+
};
|
|
1285
|
+
} | {
|
|
1286
|
+
freeCredit?: {
|
|
1287
|
+
remark?: string | null | undefined;
|
|
1288
|
+
day: number;
|
|
1289
|
+
amount: number;
|
|
1290
|
+
} | null | undefined;
|
|
1291
|
+
distributedAt?: string | null | undefined;
|
|
1292
|
+
type: "VOUCHER";
|
|
1293
|
+
vouchers: string[];
|
|
1294
|
+
triggerer: {};
|
|
1295
|
+
};
|
|
1296
|
+
_id: string;
|
|
1297
|
+
minLevel: number;
|
|
1298
|
+
}[];
|
|
704
1299
|
}>;
|
|
705
1300
|
benefits: z.ZodArray<z.ZodObject<{
|
|
706
1301
|
_id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -15929,78 +16524,13 @@ export declare const KioskVerifyMemberDto: z.ZodObject<{
|
|
|
15929
16524
|
}>, "many">;
|
|
15930
16525
|
}, "strip", z.ZodTypeAny, {
|
|
15931
16526
|
member: {
|
|
15932
|
-
joinedAt?: string | null | undefined;
|
|
15933
|
-
pf_business?: {
|
|
15934
|
-
internal?: boolean | null | undefined;
|
|
15935
|
-
url?: string | null | undefined;
|
|
15936
|
-
expiredAt?: string | null | undefined;
|
|
15937
|
-
agentId?: string | null | undefined;
|
|
15938
|
-
attributeSettings?: {
|
|
15939
|
-
type: "string" | "number" | "boolean" | "date";
|
|
15940
|
-
key: string;
|
|
15941
|
-
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
15942
|
-
}[] | null | undefined;
|
|
15943
|
-
pf_agent?: {
|
|
15944
|
-
clickupId?: string | null | undefined;
|
|
15945
|
-
members?: {
|
|
15946
|
-
pf_user?: {
|
|
15947
|
-
email?: string | null | undefined;
|
|
15948
|
-
phoneNumber?: string | null | undefined;
|
|
15949
|
-
birthday?: string | null | undefined;
|
|
15950
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
|
15951
|
-
addresses?: {
|
|
15952
|
-
name: string;
|
|
15953
|
-
address: string;
|
|
15954
|
-
coordinates: number[];
|
|
15955
|
-
}[] | null | undefined;
|
|
15956
|
-
photoURL?: string | null | undefined;
|
|
15957
|
-
displayName?: string | null | undefined;
|
|
15958
|
-
imported?: {
|
|
15959
|
-
raw: Record<string, any>;
|
|
15960
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
15961
|
-
} | null | undefined;
|
|
15962
|
-
_id: string;
|
|
15963
|
-
} | null | undefined;
|
|
15964
|
-
role: "ADMIN";
|
|
15965
|
-
userId: string;
|
|
15966
|
-
}[] | null | undefined;
|
|
15967
|
-
code: string;
|
|
15968
|
-
name: string;
|
|
15969
|
-
_id: string;
|
|
15970
|
-
isReseller: boolean;
|
|
15971
|
-
} | null | undefined;
|
|
15972
|
-
thumbnail?: string | null | undefined;
|
|
15973
|
-
billingInfos?: {
|
|
15974
|
-
_id?: string | null | undefined;
|
|
15975
|
-
name: string;
|
|
15976
|
-
address: {
|
|
15977
|
-
coordinates?: number[] | null | undefined;
|
|
15978
|
-
line2?: string | null | undefined;
|
|
15979
|
-
state: string;
|
|
15980
|
-
country: string;
|
|
15981
|
-
line1: string;
|
|
15982
|
-
city: string;
|
|
15983
|
-
postcode: string;
|
|
15984
|
-
};
|
|
15985
|
-
email: string;
|
|
15986
|
-
companyName: string;
|
|
15987
|
-
contact: string;
|
|
15988
|
-
}[] | null | undefined;
|
|
15989
|
-
customerDisplayImages?: {
|
|
15990
|
-
url: string;
|
|
15991
|
-
restaurantIds: string[];
|
|
15992
|
-
}[] | null | undefined;
|
|
15993
|
-
name: string;
|
|
15994
|
-
_id: string;
|
|
15995
|
-
ownerId: string;
|
|
15996
|
-
restaurantQuota: number;
|
|
15997
|
-
warehouseQuota: number;
|
|
15998
|
-
menuVersion: string;
|
|
15999
|
-
} | null | undefined;
|
|
16000
16527
|
cardNo?: string | null | undefined;
|
|
16528
|
+
membership?: string | null | undefined;
|
|
16001
16529
|
name: string;
|
|
16002
|
-
|
|
16530
|
+
id: string;
|
|
16003
16531
|
user: string;
|
|
16532
|
+
userId: string;
|
|
16533
|
+
joinedAt: string;
|
|
16004
16534
|
business: string;
|
|
16005
16535
|
level: number;
|
|
16006
16536
|
experience: number;
|
|
@@ -16026,10 +16556,118 @@ export declare const KioskVerifyMemberDto: z.ZodObject<{
|
|
|
16026
16556
|
}[];
|
|
16027
16557
|
};
|
|
16028
16558
|
titles: {
|
|
16559
|
+
name: string;
|
|
16029
16560
|
_id: string;
|
|
16030
16561
|
expiredAt: string;
|
|
16031
16562
|
acquiredAt: string;
|
|
16032
16563
|
}[];
|
|
16564
|
+
benefits: {
|
|
16565
|
+
image?: string | null | undefined;
|
|
16566
|
+
description?: string | null | undefined;
|
|
16567
|
+
maxLevel?: number | null | undefined;
|
|
16568
|
+
minTier?: number | null | undefined;
|
|
16569
|
+
maxTier?: number | null | undefined;
|
|
16570
|
+
targetRestaurant?: string[] | null | undefined;
|
|
16571
|
+
requiredTitle?: string | null | undefined;
|
|
16572
|
+
frontend?: {
|
|
16573
|
+
reason: string;
|
|
16574
|
+
hide: boolean;
|
|
16575
|
+
disable: boolean;
|
|
16576
|
+
} | null | undefined;
|
|
16577
|
+
name: string;
|
|
16578
|
+
options: {
|
|
16579
|
+
scheduler?: {
|
|
16580
|
+
start: {
|
|
16581
|
+
type: "CRON";
|
|
16582
|
+
cron: string;
|
|
16583
|
+
} | {
|
|
16584
|
+
type: "BIRTHDAY";
|
|
16585
|
+
option: {
|
|
16586
|
+
unit: "WEEK" | "MONTH";
|
|
16587
|
+
type: "START_OF";
|
|
16588
|
+
} | {
|
|
16589
|
+
type: "BEFORE";
|
|
16590
|
+
day: number;
|
|
16591
|
+
};
|
|
16592
|
+
};
|
|
16593
|
+
validity: number;
|
|
16594
|
+
timePeriod: {
|
|
16595
|
+
end: string;
|
|
16596
|
+
start: string;
|
|
16597
|
+
}[];
|
|
16598
|
+
} | null | undefined;
|
|
16599
|
+
type: "BASIC";
|
|
16600
|
+
effect: {
|
|
16601
|
+
priority?: number | null | undefined;
|
|
16602
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
16603
|
+
options: {
|
|
16604
|
+
excludeIds?: string[] | null | undefined;
|
|
16605
|
+
minPurchase?: {
|
|
16606
|
+
amount: number;
|
|
16607
|
+
precision: number;
|
|
16608
|
+
} | null | undefined;
|
|
16609
|
+
target: "BILL";
|
|
16610
|
+
} | {
|
|
16611
|
+
maxQuantity?: number | null | undefined;
|
|
16612
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
16613
|
+
target: "ITEM";
|
|
16614
|
+
strategy: {
|
|
16615
|
+
withAddons?: string[] | null | undefined;
|
|
16616
|
+
type: "SIMPLE";
|
|
16617
|
+
} | {
|
|
16618
|
+
type: "BUY_X_GET_Y";
|
|
16619
|
+
x: number;
|
|
16620
|
+
y: number;
|
|
16621
|
+
} | {
|
|
16622
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
16623
|
+
x: number;
|
|
16624
|
+
y: number;
|
|
16625
|
+
itemAIds: string[];
|
|
16626
|
+
} | {
|
|
16627
|
+
type: "BUY_X_GET_Y_V2";
|
|
16628
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
16629
|
+
x: number;
|
|
16630
|
+
y: number;
|
|
16631
|
+
itemAIds: string[];
|
|
16632
|
+
} | {
|
|
16633
|
+
atLeast?: boolean | null | undefined;
|
|
16634
|
+
groups: {
|
|
16635
|
+
count: number;
|
|
16636
|
+
itemIds: string[];
|
|
16637
|
+
}[];
|
|
16638
|
+
type: "COMBO";
|
|
16639
|
+
};
|
|
16640
|
+
targetIds: string[];
|
|
16641
|
+
} | {
|
|
16642
|
+
minPurchase?: {
|
|
16643
|
+
amount: number;
|
|
16644
|
+
precision: number;
|
|
16645
|
+
} | null | undefined;
|
|
16646
|
+
target: "PAYMENT";
|
|
16647
|
+
};
|
|
16648
|
+
adjustment: {
|
|
16649
|
+
inclusive?: boolean | null | undefined;
|
|
16650
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
16651
|
+
amount: {
|
|
16652
|
+
amount: number;
|
|
16653
|
+
precision: number;
|
|
16654
|
+
};
|
|
16655
|
+
};
|
|
16656
|
+
};
|
|
16657
|
+
} | {
|
|
16658
|
+
freeCredit?: {
|
|
16659
|
+
remark?: string | null | undefined;
|
|
16660
|
+
day: number;
|
|
16661
|
+
amount: number;
|
|
16662
|
+
} | null | undefined;
|
|
16663
|
+
distributedAt?: string | null | undefined;
|
|
16664
|
+
type: "VOUCHER";
|
|
16665
|
+
vouchers: string[];
|
|
16666
|
+
triggerer: {};
|
|
16667
|
+
};
|
|
16668
|
+
_id: string;
|
|
16669
|
+
minLevel: number;
|
|
16670
|
+
}[];
|
|
16033
16671
|
};
|
|
16034
16672
|
benefits: {
|
|
16035
16673
|
image?: string | null | undefined;
|
|
@@ -17525,77 +18163,12 @@ export declare const KioskVerifyMemberDto: z.ZodObject<{
|
|
|
17525
18163
|
}, {
|
|
17526
18164
|
member: {
|
|
17527
18165
|
name?: string | undefined;
|
|
17528
|
-
joinedAt?: string | null | undefined;
|
|
17529
|
-
pf_business?: {
|
|
17530
|
-
internal?: boolean | null | undefined;
|
|
17531
|
-
url?: string | null | undefined;
|
|
17532
|
-
expiredAt?: string | null | undefined;
|
|
17533
|
-
agentId?: string | null | undefined;
|
|
17534
|
-
attributeSettings?: {
|
|
17535
|
-
type: "string" | "number" | "boolean" | "date";
|
|
17536
|
-
key: string;
|
|
17537
|
-
entity: "restaurant" | "item" | "inventorySku" | "inventoryRecipe" | "warehouse";
|
|
17538
|
-
}[] | null | undefined;
|
|
17539
|
-
pf_agent?: {
|
|
17540
|
-
clickupId?: string | null | undefined;
|
|
17541
|
-
members?: {
|
|
17542
|
-
pf_user?: {
|
|
17543
|
-
email?: string | null | undefined;
|
|
17544
|
-
phoneNumber?: string | null | undefined;
|
|
17545
|
-
birthday?: string | null | undefined;
|
|
17546
|
-
gender?: "MALE" | "FEMALE" | null | undefined;
|
|
17547
|
-
addresses?: {
|
|
17548
|
-
name: string;
|
|
17549
|
-
address: string;
|
|
17550
|
-
coordinates: number[];
|
|
17551
|
-
}[] | null | undefined;
|
|
17552
|
-
photoURL?: string | null | undefined;
|
|
17553
|
-
displayName?: string | null | undefined;
|
|
17554
|
-
imported?: {
|
|
17555
|
-
raw: Record<string, any>;
|
|
17556
|
-
source: "FEEDME" | "CITY_POS" | "STOREHUB" | "KERUYUn" | "QISOFT" | "WECHAT" | "TEABAR" | "NULL_MEMBER" | "UMAI_POS" | "QASHIER" | "XILNET" | "GENIUSPOS" | "YHOFOODIE";
|
|
17557
|
-
} | null | undefined;
|
|
17558
|
-
_id: string;
|
|
17559
|
-
} | null | undefined;
|
|
17560
|
-
role: "ADMIN";
|
|
17561
|
-
userId: string;
|
|
17562
|
-
}[] | null | undefined;
|
|
17563
|
-
code: string;
|
|
17564
|
-
name: string;
|
|
17565
|
-
_id: string;
|
|
17566
|
-
isReseller: boolean;
|
|
17567
|
-
} | null | undefined;
|
|
17568
|
-
thumbnail?: string | null | undefined;
|
|
17569
|
-
billingInfos?: {
|
|
17570
|
-
_id?: string | null | undefined;
|
|
17571
|
-
name: string;
|
|
17572
|
-
address: {
|
|
17573
|
-
coordinates?: number[] | null | undefined;
|
|
17574
|
-
line2?: string | null | undefined;
|
|
17575
|
-
state: string;
|
|
17576
|
-
country: string;
|
|
17577
|
-
line1: string;
|
|
17578
|
-
city: string;
|
|
17579
|
-
postcode: string;
|
|
17580
|
-
};
|
|
17581
|
-
email: string;
|
|
17582
|
-
companyName: string;
|
|
17583
|
-
contact: string;
|
|
17584
|
-
}[] | null | undefined;
|
|
17585
|
-
customerDisplayImages?: {
|
|
17586
|
-
url: string;
|
|
17587
|
-
restaurantIds: string[];
|
|
17588
|
-
}[] | null | undefined;
|
|
17589
|
-
name: string;
|
|
17590
|
-
_id: string;
|
|
17591
|
-
ownerId: string;
|
|
17592
|
-
restaurantQuota: number;
|
|
17593
|
-
warehouseQuota: number;
|
|
17594
|
-
menuVersion: string;
|
|
17595
|
-
} | null | undefined;
|
|
17596
18166
|
cardNo?: string | null | undefined;
|
|
17597
|
-
|
|
18167
|
+
membership?: string | null | undefined;
|
|
18168
|
+
id: string;
|
|
17598
18169
|
user: string;
|
|
18170
|
+
userId: string;
|
|
18171
|
+
joinedAt: string;
|
|
17599
18172
|
business: string;
|
|
17600
18173
|
level: number;
|
|
17601
18174
|
experience: number;
|
|
@@ -17621,10 +18194,118 @@ export declare const KioskVerifyMemberDto: z.ZodObject<{
|
|
|
17621
18194
|
}[];
|
|
17622
18195
|
};
|
|
17623
18196
|
titles: {
|
|
18197
|
+
name: string;
|
|
17624
18198
|
_id: string;
|
|
17625
18199
|
expiredAt: string;
|
|
17626
18200
|
acquiredAt: string;
|
|
17627
18201
|
}[];
|
|
18202
|
+
benefits: {
|
|
18203
|
+
image?: string | null | undefined;
|
|
18204
|
+
description?: string | null | undefined;
|
|
18205
|
+
maxLevel?: number | null | undefined;
|
|
18206
|
+
minTier?: number | null | undefined;
|
|
18207
|
+
maxTier?: number | null | undefined;
|
|
18208
|
+
targetRestaurant?: string[] | null | undefined;
|
|
18209
|
+
requiredTitle?: string | null | undefined;
|
|
18210
|
+
frontend?: {
|
|
18211
|
+
reason: string;
|
|
18212
|
+
hide: boolean;
|
|
18213
|
+
disable: boolean;
|
|
18214
|
+
} | null | undefined;
|
|
18215
|
+
name: string;
|
|
18216
|
+
options: {
|
|
18217
|
+
scheduler?: {
|
|
18218
|
+
start: {
|
|
18219
|
+
type: "CRON";
|
|
18220
|
+
cron: string;
|
|
18221
|
+
} | {
|
|
18222
|
+
type: "BIRTHDAY";
|
|
18223
|
+
option: {
|
|
18224
|
+
unit: "WEEK" | "MONTH";
|
|
18225
|
+
type: "START_OF";
|
|
18226
|
+
} | {
|
|
18227
|
+
type: "BEFORE";
|
|
18228
|
+
day: number;
|
|
18229
|
+
};
|
|
18230
|
+
};
|
|
18231
|
+
validity: number;
|
|
18232
|
+
timePeriod: {
|
|
18233
|
+
end: string;
|
|
18234
|
+
start: string;
|
|
18235
|
+
}[];
|
|
18236
|
+
} | null | undefined;
|
|
18237
|
+
type: "BASIC";
|
|
18238
|
+
effect: {
|
|
18239
|
+
priority?: number | null | undefined;
|
|
18240
|
+
availableOnlineOrder?: ("DINE_IN" | "PICKUP" | "DELIVERY")[] | null | undefined;
|
|
18241
|
+
options: {
|
|
18242
|
+
excludeIds?: string[] | null | undefined;
|
|
18243
|
+
minPurchase?: {
|
|
18244
|
+
amount: number;
|
|
18245
|
+
precision: number;
|
|
18246
|
+
} | null | undefined;
|
|
18247
|
+
target: "BILL";
|
|
18248
|
+
} | {
|
|
18249
|
+
maxQuantity?: number | null | undefined;
|
|
18250
|
+
excludeAddonPrice?: boolean | null | undefined;
|
|
18251
|
+
target: "ITEM";
|
|
18252
|
+
strategy: {
|
|
18253
|
+
withAddons?: string[] | null | undefined;
|
|
18254
|
+
type: "SIMPLE";
|
|
18255
|
+
} | {
|
|
18256
|
+
type: "BUY_X_GET_Y";
|
|
18257
|
+
x: number;
|
|
18258
|
+
y: number;
|
|
18259
|
+
} | {
|
|
18260
|
+
type: "BUY_X_ITEM_A_GET_Y_ITEM_B";
|
|
18261
|
+
x: number;
|
|
18262
|
+
y: number;
|
|
18263
|
+
itemAIds: string[];
|
|
18264
|
+
} | {
|
|
18265
|
+
type: "BUY_X_GET_Y_V2";
|
|
18266
|
+
priority: "CHEAPEST_FIRST" | "MOST_EXPENSIVE_FIRST";
|
|
18267
|
+
x: number;
|
|
18268
|
+
y: number;
|
|
18269
|
+
itemAIds: string[];
|
|
18270
|
+
} | {
|
|
18271
|
+
atLeast?: boolean | null | undefined;
|
|
18272
|
+
groups: {
|
|
18273
|
+
count: number;
|
|
18274
|
+
itemIds: string[];
|
|
18275
|
+
}[];
|
|
18276
|
+
type: "COMBO";
|
|
18277
|
+
};
|
|
18278
|
+
targetIds: string[];
|
|
18279
|
+
} | {
|
|
18280
|
+
minPurchase?: {
|
|
18281
|
+
amount: number;
|
|
18282
|
+
precision: number;
|
|
18283
|
+
} | null | undefined;
|
|
18284
|
+
target: "PAYMENT";
|
|
18285
|
+
};
|
|
18286
|
+
adjustment: {
|
|
18287
|
+
inclusive?: boolean | null | undefined;
|
|
18288
|
+
type: "BY_PERCENTAGE" | "BY_AMOUNT" | "TO_AMOUNT";
|
|
18289
|
+
amount: {
|
|
18290
|
+
amount: number;
|
|
18291
|
+
precision: number;
|
|
18292
|
+
};
|
|
18293
|
+
};
|
|
18294
|
+
};
|
|
18295
|
+
} | {
|
|
18296
|
+
freeCredit?: {
|
|
18297
|
+
remark?: string | null | undefined;
|
|
18298
|
+
day: number;
|
|
18299
|
+
amount: number;
|
|
18300
|
+
} | null | undefined;
|
|
18301
|
+
distributedAt?: string | null | undefined;
|
|
18302
|
+
type: "VOUCHER";
|
|
18303
|
+
vouchers: string[];
|
|
18304
|
+
triggerer: {};
|
|
18305
|
+
};
|
|
18306
|
+
_id: string;
|
|
18307
|
+
minLevel: number;
|
|
18308
|
+
}[];
|
|
17628
18309
|
};
|
|
17629
18310
|
benefits: {
|
|
17630
18311
|
image?: string | null | undefined;
|