@feedmepos/mf-order-setting 0.0.83 → 0.0.84
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/{DisplaySystemView-BXy_OnbY.js → DisplaySystemView-4Bz8p26A.js} +1 -1
- package/dist/{KioskDevicesView-D3YR1e6K.js → KioskDevicesView-DdwFuenU.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CuhL_Q5C.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CxtLm_oh.js} +3 -3
- package/dist/{KioskSettingView-C3L9_8ag.js → KioskSettingView-D57KtQ-t.js} +289 -240
- package/dist/{KioskView-Cs6VBCj5.js → KioskView-fwBwUGCQ.js} +113 -103
- package/dist/{OrderSettingsView-BdaHRXda.js → OrderSettingsView-RhlyZmzs.js} +1772 -1766
- package/dist/{app-CP6AFTEu.js → app-ClOkRxOZ.js} +26 -6
- package/dist/app.js +1 -1
- package/dist/common/util/index.d.ts +9 -0
- package/dist/frontend/mf-order/src/app.d.ts +20 -0
- package/dist/frontend/mf-order/src/main.d.ts +20 -0
- package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +2 -0
- package/dist/frontend/mf-order/src/modules/order-setting/kiosk/languages.d.ts +7 -0
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +6 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +8 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue.d.ts +9 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-LCS8oexE.js → index-5k7kGCpJ.js} +2 -2
- package/dist/{index-BckeUsPc.js → index-CKEbr9Es.js} +1 -1
- package/dist/{index-DoJzzpyh.js → index-I2YGevce.js} +1 -1
- package/dist/{order.dto-Bm04C1sQ.js → order.dto-Dbn-hRrm.js} +3294 -3235
- package/dist/package/entity/alert/alert-base.dto.d.ts +306 -0
- package/dist/package/entity/alert/alert.dto.d.ts +956 -0
- package/dist/package/entity/alert/alert.enum.d.ts +7 -0
- package/dist/package/entity/alert/categories/integration.d.ts +333 -0
- package/dist/package/entity/alert/categories/kiosk.d.ts +297 -0
- package/dist/package/entity/alert/categories/mini-program.d.ts +297 -0
- package/dist/package/entity/alert/investigation.dto.d.ts +86 -0
- package/dist/package/entity/alert/lark-callback.dto.d.ts +106 -0
- package/dist/package/entity/alert/suggestion.dto.d.ts +31 -0
- package/dist/package/entity/alert/suggestion.enum.d.ts +7 -0
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +80 -0
- package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +575 -0
- package/dist/package/entity/index.d.ts +12 -0
- package/dist/package/entity/index.frontend.d.ts +1 -0
- package/dist/package/entity/member/member.dto.d.ts +2 -1
- package/dist/package/entity/order/order.do.d.ts +64 -7
- package/dist/package/entity/order/order.dto.d.ts +85 -67
- package/dist/package/entity/order/payment/payment.dto.d.ts +36 -28
- package/dist/package/entity/order-platform/external/auth/external-auth.dto.d.ts +9 -15
- package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +33 -0
- package/dist/package/entity/order-platform/external/menu/external-menu.do.d.ts +1185 -23
- package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +1104 -52
- package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +2914 -88
- package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +38 -0
- package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +26 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-availability.dto.d.ts +75 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.do.d.ts +9 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.do.d.ts +13 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.dto.d.ts +3 -0
- package/dist/package/entity/order-platform/shopeefood/shopeefood.enum.d.ts +6 -0
- package/dist/package/entity/order-platform/tng/tng-order.do.d.ts +6 -6
- package/dist/package/entity/order-platform/tng/tng.dto.d.ts +2 -2
- package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +3 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +3 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.enum.d.ts +12 -0
- package/dist/package/entity/order-setting/order-setting.do.d.ts +5 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +10 -0
- package/dist/package/entity/payment/payment.dto.d.ts +2 -2
- package/dist/package/entity/payment/transaction.d.ts +115 -30
- package/dist/package/entity/queue/queue.dto.d.ts +13 -11
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +5 -0
- package/dist/package/entity/websocket/websocket.dto.d.ts +12 -0
- package/package.json +1 -1
- package/src/locales/en-US.json +5 -0
- package/src/locales/ja-JP.json +5 -0
- package/src/locales/th-TH.json +5 -0
- package/src/locales/zh-CN.json +5 -0
- package/src/modules/order-setting/kiosk/interface.ts +8 -0
- package/src/modules/order-setting/kiosk/languages.ts +29 -0
- package/src/stores/order-setting/mapper.spec.ts +44 -0
- package/src/stores/order-setting/mapper.ts +9 -2
- package/src/views/kiosk/settings/KioskSettingView.vue +63 -0
- package/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue +6 -1
- package/src/views/order-settings/delivery/integrated-delivery/LinemanSetting.vue +2 -1
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const MiniProgramEnvelope: z.ZodObject<z.extendShape<{
|
|
3
|
+
timestamp: z.ZodString;
|
|
4
|
+
country: z.ZodNativeEnum<{
|
|
5
|
+
AF: string;
|
|
6
|
+
AX: string;
|
|
7
|
+
AL: string;
|
|
8
|
+
DZ: string;
|
|
9
|
+
AS: string;
|
|
10
|
+
AD: string;
|
|
11
|
+
AO: string;
|
|
12
|
+
AI: string;
|
|
13
|
+
AQ: string;
|
|
14
|
+
AG: string;
|
|
15
|
+
AR: string;
|
|
16
|
+
AM: string;
|
|
17
|
+
AW: string;
|
|
18
|
+
AU: string;
|
|
19
|
+
AT: string;
|
|
20
|
+
AZ: string;
|
|
21
|
+
BS: string;
|
|
22
|
+
BH: string;
|
|
23
|
+
BD: string;
|
|
24
|
+
BB: string;
|
|
25
|
+
BY: string;
|
|
26
|
+
BE: string;
|
|
27
|
+
BZ: string;
|
|
28
|
+
BJ: string;
|
|
29
|
+
BM: string;
|
|
30
|
+
BT: string;
|
|
31
|
+
BO: string;
|
|
32
|
+
BQ: string;
|
|
33
|
+
BA: string;
|
|
34
|
+
BW: string;
|
|
35
|
+
BV: string;
|
|
36
|
+
BR: string;
|
|
37
|
+
IO: string;
|
|
38
|
+
BN: string;
|
|
39
|
+
BG: string;
|
|
40
|
+
BF: string;
|
|
41
|
+
BI: string;
|
|
42
|
+
KH: string;
|
|
43
|
+
CM: string;
|
|
44
|
+
CA: string;
|
|
45
|
+
CV: string;
|
|
46
|
+
KY: string;
|
|
47
|
+
CF: string;
|
|
48
|
+
TD: string;
|
|
49
|
+
CL: string;
|
|
50
|
+
CN: string;
|
|
51
|
+
CX: string;
|
|
52
|
+
CC: string;
|
|
53
|
+
CO: string;
|
|
54
|
+
KM: string;
|
|
55
|
+
CG: string;
|
|
56
|
+
CD: string;
|
|
57
|
+
CK: string;
|
|
58
|
+
CR: string;
|
|
59
|
+
CI: string;
|
|
60
|
+
HR: string;
|
|
61
|
+
CU: string;
|
|
62
|
+
CW: string;
|
|
63
|
+
CY: string;
|
|
64
|
+
CZ: string;
|
|
65
|
+
DK: string;
|
|
66
|
+
DJ: string;
|
|
67
|
+
DM: string;
|
|
68
|
+
DO: string;
|
|
69
|
+
EC: string;
|
|
70
|
+
EG: string;
|
|
71
|
+
SV: string;
|
|
72
|
+
GQ: string;
|
|
73
|
+
ER: string;
|
|
74
|
+
EE: string;
|
|
75
|
+
ET: string;
|
|
76
|
+
FK: string;
|
|
77
|
+
FO: string;
|
|
78
|
+
FJ: string;
|
|
79
|
+
FI: string;
|
|
80
|
+
FR: string;
|
|
81
|
+
GF: string;
|
|
82
|
+
PF: string;
|
|
83
|
+
TF: string;
|
|
84
|
+
GA: string;
|
|
85
|
+
GM: string;
|
|
86
|
+
GE: string;
|
|
87
|
+
DE: string;
|
|
88
|
+
GH: string;
|
|
89
|
+
GI: string;
|
|
90
|
+
GR: string;
|
|
91
|
+
GL: string;
|
|
92
|
+
GD: string;
|
|
93
|
+
GP: string;
|
|
94
|
+
GU: string;
|
|
95
|
+
GT: string;
|
|
96
|
+
GG: string;
|
|
97
|
+
GN: string;
|
|
98
|
+
GW: string;
|
|
99
|
+
GY: string;
|
|
100
|
+
HT: string;
|
|
101
|
+
HM: string;
|
|
102
|
+
VA: string;
|
|
103
|
+
HN: string;
|
|
104
|
+
HK: string;
|
|
105
|
+
HU: string;
|
|
106
|
+
IS: string;
|
|
107
|
+
IN: string;
|
|
108
|
+
ID: string;
|
|
109
|
+
IR: string;
|
|
110
|
+
IQ: string;
|
|
111
|
+
IE: string;
|
|
112
|
+
IM: string;
|
|
113
|
+
IL: string;
|
|
114
|
+
IT: string;
|
|
115
|
+
JM: string;
|
|
116
|
+
JP: string;
|
|
117
|
+
JE: string;
|
|
118
|
+
JO: string;
|
|
119
|
+
KZ: string;
|
|
120
|
+
KE: string;
|
|
121
|
+
KI: string;
|
|
122
|
+
KR: string;
|
|
123
|
+
KP: string;
|
|
124
|
+
KW: string;
|
|
125
|
+
KG: string;
|
|
126
|
+
LA: string;
|
|
127
|
+
LV: string;
|
|
128
|
+
LB: string;
|
|
129
|
+
LS: string;
|
|
130
|
+
LR: string;
|
|
131
|
+
LY: string;
|
|
132
|
+
LI: string;
|
|
133
|
+
LT: string;
|
|
134
|
+
LU: string;
|
|
135
|
+
MO: string;
|
|
136
|
+
MK: string;
|
|
137
|
+
MG: string;
|
|
138
|
+
MW: string;
|
|
139
|
+
MY: string;
|
|
140
|
+
MV: string;
|
|
141
|
+
ML: string;
|
|
142
|
+
MT: string;
|
|
143
|
+
MH: string;
|
|
144
|
+
MQ: string;
|
|
145
|
+
MR: string;
|
|
146
|
+
MU: string;
|
|
147
|
+
YT: string;
|
|
148
|
+
MX: string;
|
|
149
|
+
FM: string;
|
|
150
|
+
MD: string;
|
|
151
|
+
MC: string;
|
|
152
|
+
MN: string;
|
|
153
|
+
ME: string;
|
|
154
|
+
MS: string;
|
|
155
|
+
MA: string;
|
|
156
|
+
MZ: string;
|
|
157
|
+
MM: string;
|
|
158
|
+
NA: string;
|
|
159
|
+
NR: string;
|
|
160
|
+
NP: string;
|
|
161
|
+
NL: string;
|
|
162
|
+
NC: string;
|
|
163
|
+
NZ: string;
|
|
164
|
+
NI: string;
|
|
165
|
+
NE: string;
|
|
166
|
+
NG: string;
|
|
167
|
+
NU: string;
|
|
168
|
+
NF: string;
|
|
169
|
+
MP: string;
|
|
170
|
+
NO: string;
|
|
171
|
+
OM: string;
|
|
172
|
+
PK: string;
|
|
173
|
+
PW: string;
|
|
174
|
+
PS: string;
|
|
175
|
+
PA: string;
|
|
176
|
+
PG: string;
|
|
177
|
+
PY: string;
|
|
178
|
+
PE: string;
|
|
179
|
+
PH: string;
|
|
180
|
+
PN: string;
|
|
181
|
+
PL: string;
|
|
182
|
+
PT: string;
|
|
183
|
+
PR: string;
|
|
184
|
+
QA: string;
|
|
185
|
+
RE: string;
|
|
186
|
+
RO: string;
|
|
187
|
+
RU: string;
|
|
188
|
+
RW: string;
|
|
189
|
+
BL: string;
|
|
190
|
+
SH: string;
|
|
191
|
+
KN: string;
|
|
192
|
+
LC: string;
|
|
193
|
+
MF: string;
|
|
194
|
+
PM: string;
|
|
195
|
+
VC: string;
|
|
196
|
+
WS: string;
|
|
197
|
+
SM: string;
|
|
198
|
+
ST: string;
|
|
199
|
+
SA: string;
|
|
200
|
+
SN: string;
|
|
201
|
+
RS: string;
|
|
202
|
+
SC: string;
|
|
203
|
+
SL: string;
|
|
204
|
+
SG: string;
|
|
205
|
+
SX: string;
|
|
206
|
+
SK: string;
|
|
207
|
+
SI: string;
|
|
208
|
+
SB: string;
|
|
209
|
+
SO: string;
|
|
210
|
+
ZA: string;
|
|
211
|
+
GS: string;
|
|
212
|
+
SS: string;
|
|
213
|
+
ES: string;
|
|
214
|
+
LK: string;
|
|
215
|
+
SD: string;
|
|
216
|
+
SR: string;
|
|
217
|
+
SJ: string;
|
|
218
|
+
SZ: string;
|
|
219
|
+
SE: string;
|
|
220
|
+
CH: string;
|
|
221
|
+
SY: string;
|
|
222
|
+
TW: string;
|
|
223
|
+
TJ: string;
|
|
224
|
+
TZ: string;
|
|
225
|
+
TH: string;
|
|
226
|
+
TL: string;
|
|
227
|
+
TG: string;
|
|
228
|
+
TK: string;
|
|
229
|
+
TO: string;
|
|
230
|
+
TT: string;
|
|
231
|
+
TN: string;
|
|
232
|
+
TR: string;
|
|
233
|
+
TM: string;
|
|
234
|
+
TC: string;
|
|
235
|
+
TV: string;
|
|
236
|
+
UG: string;
|
|
237
|
+
UA: string;
|
|
238
|
+
AE: string;
|
|
239
|
+
GB: string;
|
|
240
|
+
US: string;
|
|
241
|
+
UM: string;
|
|
242
|
+
UY: string;
|
|
243
|
+
UZ: string;
|
|
244
|
+
VU: string;
|
|
245
|
+
VE: string;
|
|
246
|
+
VN: string;
|
|
247
|
+
VG: string;
|
|
248
|
+
VI: string;
|
|
249
|
+
WF: string;
|
|
250
|
+
EH: string;
|
|
251
|
+
YE: string;
|
|
252
|
+
ZM: string;
|
|
253
|
+
ZW: string;
|
|
254
|
+
}>;
|
|
255
|
+
environment: z.ZodEnum<["development", "test", "staging", "production"]>;
|
|
256
|
+
level: z.ZodEnum<["info", "warn", "error"]>;
|
|
257
|
+
category: z.ZodEnum<["integration", "kiosk", "mini_program"]>;
|
|
258
|
+
message: z.ZodString;
|
|
259
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
260
|
+
type: z.ZodString;
|
|
261
|
+
message: z.ZodString;
|
|
262
|
+
}, "strip", z.ZodTypeAny, {
|
|
263
|
+
type: string;
|
|
264
|
+
message: string;
|
|
265
|
+
}, {
|
|
266
|
+
type: string;
|
|
267
|
+
message: string;
|
|
268
|
+
}>>;
|
|
269
|
+
restaurantId: z.ZodOptional<z.ZodString>;
|
|
270
|
+
}, {
|
|
271
|
+
category: z.ZodLiteral<"mini_program">;
|
|
272
|
+
}>, "strip", z.ZodTypeAny, {
|
|
273
|
+
error?: {
|
|
274
|
+
type: string;
|
|
275
|
+
message: string;
|
|
276
|
+
} | undefined;
|
|
277
|
+
restaurantId?: string | undefined;
|
|
278
|
+
message: string;
|
|
279
|
+
timestamp: string;
|
|
280
|
+
country: string;
|
|
281
|
+
category: "mini_program";
|
|
282
|
+
level: "error" | "info" | "warn";
|
|
283
|
+
environment: "test" | "development" | "staging" | "production";
|
|
284
|
+
}, {
|
|
285
|
+
error?: {
|
|
286
|
+
type: string;
|
|
287
|
+
message: string;
|
|
288
|
+
} | undefined;
|
|
289
|
+
restaurantId?: string | undefined;
|
|
290
|
+
message: string;
|
|
291
|
+
timestamp: string;
|
|
292
|
+
country: string;
|
|
293
|
+
category: "mini_program";
|
|
294
|
+
level: "error" | "info" | "warn";
|
|
295
|
+
environment: "test" | "development" | "staging" | "production";
|
|
296
|
+
}>;
|
|
297
|
+
export declare const MINI_PROGRAM_EVENT_FIELDS: {};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* One investigation lifecycle, keyed by `issueKey`. Every other field is optional because a write only
|
|
4
|
+
* carries what the agent actually established.
|
|
5
|
+
*
|
|
6
|
+
* SHAPE only. The select-valued fields stay `string` on purpose: the consumer matches them against the
|
|
7
|
+
* Base's own option list and drops an unrecognised one into `ignoredFields`, which records the row minus
|
|
8
|
+
* a cell rather than refusing it. Turning them into enums here would move that decision to a 400 and
|
|
9
|
+
* lose the row. What this does catch is the shape — `escalatedTo` arriving as a string rather than a
|
|
10
|
+
* list used to throw a TypeError deep in the writer and get reported as "the write failed".
|
|
11
|
+
*/
|
|
12
|
+
export declare const FdtoInvestigationLog: z.ZodObject<{
|
|
13
|
+
issueKey: z.ZodString;
|
|
14
|
+
restaurantId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
ticketNumber: z.ZodOptional<z.ZodString>;
|
|
16
|
+
backlogId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
18
|
+
merchant: z.ZodOptional<z.ZodString>;
|
|
19
|
+
category: z.ZodOptional<z.ZodString>;
|
|
20
|
+
source: z.ZodOptional<z.ZodString>;
|
|
21
|
+
status: z.ZodOptional<z.ZodString>;
|
|
22
|
+
ownership: z.ZodOptional<z.ZodString>;
|
|
23
|
+
confidence: z.ZodOptional<z.ZodString>;
|
|
24
|
+
symptom: z.ZodOptional<z.ZodString>;
|
|
25
|
+
rootCause: z.ZodOptional<z.ZodString>;
|
|
26
|
+
evidence: z.ZodOptional<z.ZodString>;
|
|
27
|
+
recommendation: z.ZodOptional<z.ZodString>;
|
|
28
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
29
|
+
toolsUsed: z.ZodOptional<z.ZodString>;
|
|
30
|
+
escalatedTo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
31
|
+
larkLink: z.ZodOptional<z.ZodString>;
|
|
32
|
+
suggestionRefs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
33
|
+
alertRecordIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
source?: string | undefined;
|
|
36
|
+
summary?: string | undefined;
|
|
37
|
+
status?: string | undefined;
|
|
38
|
+
restaurantId?: string | undefined;
|
|
39
|
+
category?: string | undefined;
|
|
40
|
+
ticketNumber?: string | undefined;
|
|
41
|
+
backlogId?: string | undefined;
|
|
42
|
+
subject?: string | undefined;
|
|
43
|
+
merchant?: string | undefined;
|
|
44
|
+
ownership?: string | undefined;
|
|
45
|
+
confidence?: string | undefined;
|
|
46
|
+
symptom?: string | undefined;
|
|
47
|
+
rootCause?: string | undefined;
|
|
48
|
+
evidence?: string | undefined;
|
|
49
|
+
recommendation?: string | undefined;
|
|
50
|
+
toolsUsed?: string | undefined;
|
|
51
|
+
escalatedTo?: string[] | undefined;
|
|
52
|
+
larkLink?: string | undefined;
|
|
53
|
+
suggestionRefs?: string[] | undefined;
|
|
54
|
+
alertRecordIds?: string[] | undefined;
|
|
55
|
+
issueKey: string;
|
|
56
|
+
}, {
|
|
57
|
+
source?: string | undefined;
|
|
58
|
+
summary?: string | undefined;
|
|
59
|
+
status?: string | undefined;
|
|
60
|
+
restaurantId?: string | undefined;
|
|
61
|
+
category?: string | undefined;
|
|
62
|
+
ticketNumber?: string | undefined;
|
|
63
|
+
backlogId?: string | undefined;
|
|
64
|
+
subject?: string | undefined;
|
|
65
|
+
merchant?: string | undefined;
|
|
66
|
+
ownership?: string | undefined;
|
|
67
|
+
confidence?: string | undefined;
|
|
68
|
+
symptom?: string | undefined;
|
|
69
|
+
rootCause?: string | undefined;
|
|
70
|
+
evidence?: string | undefined;
|
|
71
|
+
recommendation?: string | undefined;
|
|
72
|
+
toolsUsed?: string | undefined;
|
|
73
|
+
escalatedTo?: string[] | undefined;
|
|
74
|
+
larkLink?: string | undefined;
|
|
75
|
+
suggestionRefs?: string[] | undefined;
|
|
76
|
+
alertRecordIds?: string[] | undefined;
|
|
77
|
+
issueKey: string;
|
|
78
|
+
}>;
|
|
79
|
+
export declare function parseInvestigationLogPayload(input: unknown): {
|
|
80
|
+
success: true;
|
|
81
|
+
data: FdtoInvestigationLog;
|
|
82
|
+
} | {
|
|
83
|
+
success: false;
|
|
84
|
+
error: string;
|
|
85
|
+
};
|
|
86
|
+
export type FdtoInvestigationLog = z.infer<typeof FdtoInvestigationLog>;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* What Lark POSTs to /lark/card_callback when someone presses a button on an alert card, plus the
|
|
4
|
+
* one-off `url_verification` handshake Lark sends when the endpoint is first configured.
|
|
5
|
+
*
|
|
6
|
+
* Every field is optional because Lark sends two different shapes down the same route and the
|
|
7
|
+
* handshake carries none of the action fields. The parse still earns its place: it is the only spot
|
|
8
|
+
* that fails loudly if Lark's payload drifts. Without it the drift lands as `undefined` in the
|
|
9
|
+
* service, falls through the optional chaining, and surfaces to the on-call engineer as
|
|
10
|
+
* "Unrecognized action" — a message that blames the button.
|
|
11
|
+
*/
|
|
12
|
+
export declare const FdtoCardActionValue: z.ZodObject<{
|
|
13
|
+
action: z.ZodOptional<z.ZodString>;
|
|
14
|
+
record_id: z.ZodOptional<z.ZodString>;
|
|
15
|
+
record_url: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
action?: string | undefined;
|
|
18
|
+
record_id?: string | undefined;
|
|
19
|
+
record_url?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
action?: string | undefined;
|
|
22
|
+
record_id?: string | undefined;
|
|
23
|
+
record_url?: string | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
export declare const FdtoCardCallback: z.ZodObject<{
|
|
26
|
+
type: z.ZodOptional<z.ZodString>;
|
|
27
|
+
challenge: z.ZodOptional<z.ZodString>;
|
|
28
|
+
event: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
action: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
value: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
action: z.ZodOptional<z.ZodString>;
|
|
32
|
+
record_id: z.ZodOptional<z.ZodString>;
|
|
33
|
+
record_url: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
action?: string | undefined;
|
|
36
|
+
record_id?: string | undefined;
|
|
37
|
+
record_url?: string | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
action?: string | undefined;
|
|
40
|
+
record_id?: string | undefined;
|
|
41
|
+
record_url?: string | undefined;
|
|
42
|
+
}>>;
|
|
43
|
+
}, "strip", z.ZodTypeAny, {
|
|
44
|
+
value?: {
|
|
45
|
+
action?: string | undefined;
|
|
46
|
+
record_id?: string | undefined;
|
|
47
|
+
record_url?: string | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
value?: {
|
|
51
|
+
action?: string | undefined;
|
|
52
|
+
record_id?: string | undefined;
|
|
53
|
+
record_url?: string | undefined;
|
|
54
|
+
} | undefined;
|
|
55
|
+
}>>;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
action?: {
|
|
58
|
+
value?: {
|
|
59
|
+
action?: string | undefined;
|
|
60
|
+
record_id?: string | undefined;
|
|
61
|
+
record_url?: string | undefined;
|
|
62
|
+
} | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
action?: {
|
|
66
|
+
value?: {
|
|
67
|
+
action?: string | undefined;
|
|
68
|
+
record_id?: string | undefined;
|
|
69
|
+
record_url?: string | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
} | undefined;
|
|
72
|
+
}>>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
event?: {
|
|
75
|
+
action?: {
|
|
76
|
+
value?: {
|
|
77
|
+
action?: string | undefined;
|
|
78
|
+
record_id?: string | undefined;
|
|
79
|
+
record_url?: string | undefined;
|
|
80
|
+
} | undefined;
|
|
81
|
+
} | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
type?: string | undefined;
|
|
84
|
+
challenge?: string | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
event?: {
|
|
87
|
+
action?: {
|
|
88
|
+
value?: {
|
|
89
|
+
action?: string | undefined;
|
|
90
|
+
record_id?: string | undefined;
|
|
91
|
+
record_url?: string | undefined;
|
|
92
|
+
} | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
type?: string | undefined;
|
|
96
|
+
challenge?: string | undefined;
|
|
97
|
+
}>;
|
|
98
|
+
export type FdtoCardActionValue = z.infer<typeof FdtoCardActionValue>;
|
|
99
|
+
export type FdtoCardCallback = z.infer<typeof FdtoCardCallback>;
|
|
100
|
+
export declare function parseCardCallbackPayload(input: unknown): {
|
|
101
|
+
success: true;
|
|
102
|
+
data: FdtoCardCallback;
|
|
103
|
+
} | {
|
|
104
|
+
success: false;
|
|
105
|
+
error: string;
|
|
106
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FdtoSuggestion: z.ZodObject<{
|
|
3
|
+
signature: z.ZodString;
|
|
4
|
+
category: z.ZodEnum<["mcp", "skill", "config", "other"]>;
|
|
5
|
+
summary: z.ZodString;
|
|
6
|
+
details: z.ZodString;
|
|
7
|
+
urgency: z.ZodEnum<["low", "medium", "high"]>;
|
|
8
|
+
alertRecordId: z.ZodString;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
details: string;
|
|
11
|
+
summary: string;
|
|
12
|
+
signature: string;
|
|
13
|
+
category: "config" | "other" | "mcp" | "skill";
|
|
14
|
+
urgency: "low" | "medium" | "high";
|
|
15
|
+
alertRecordId: string;
|
|
16
|
+
}, {
|
|
17
|
+
details: string;
|
|
18
|
+
summary: string;
|
|
19
|
+
signature: string;
|
|
20
|
+
category: "config" | "other" | "mcp" | "skill";
|
|
21
|
+
urgency: "low" | "medium" | "high";
|
|
22
|
+
alertRecordId: string;
|
|
23
|
+
}>;
|
|
24
|
+
export declare function parseSuggestionPayload(input: unknown): {
|
|
25
|
+
success: true;
|
|
26
|
+
data: FdtoSuggestion;
|
|
27
|
+
} | {
|
|
28
|
+
success: false;
|
|
29
|
+
error: string;
|
|
30
|
+
};
|
|
31
|
+
export type FdtoSuggestion = z.infer<typeof FdtoSuggestion>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const F_SUGGESTION_CATEGORY: z.ZodEnum<["mcp", "skill", "config", "other"]>;
|
|
3
|
+
export declare const F_SUGGESTION_URGENCY: z.ZodEnum<["low", "medium", "high"]>;
|
|
4
|
+
export declare const F_SUGGESTION_STATUS: z.ZodEnum<["new", "triaged", "shipped"]>;
|
|
5
|
+
export type F_SUGGESTION_CATEGORY = z.infer<typeof F_SUGGESTION_CATEGORY>;
|
|
6
|
+
export type F_SUGGESTION_URGENCY = z.infer<typeof F_SUGGESTION_URGENCY>;
|
|
7
|
+
export type F_SUGGESTION_STATUS = z.infer<typeof F_SUGGESTION_STATUS>;
|
|
@@ -16861,7 +16861,11 @@ export declare const FdtoItemTaxOverride: z.ZodObject<{
|
|
|
16861
16861
|
systemCode: z.ZodString;
|
|
16862
16862
|
taxCode: z.ZodString;
|
|
16863
16863
|
name: z.ZodString;
|
|
16864
|
+
ignoreDiscount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
16865
|
+
level: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
16864
16866
|
}, "strip", z.ZodTypeAny, {
|
|
16867
|
+
ignoreDiscount?: boolean | null | undefined;
|
|
16868
|
+
level?: number | null | undefined;
|
|
16865
16869
|
name: string;
|
|
16866
16870
|
inclusive: boolean;
|
|
16867
16871
|
rate: {
|
|
@@ -16871,6 +16875,8 @@ export declare const FdtoItemTaxOverride: z.ZodObject<{
|
|
|
16871
16875
|
systemCode: string;
|
|
16872
16876
|
taxCode: string;
|
|
16873
16877
|
}, {
|
|
16878
|
+
ignoreDiscount?: boolean | null | undefined;
|
|
16879
|
+
level?: number | null | undefined;
|
|
16874
16880
|
name: string;
|
|
16875
16881
|
inclusive: boolean;
|
|
16876
16882
|
rate: {
|
|
@@ -17328,7 +17334,11 @@ export declare const FdtoOrderItem: z.ZodObject<{
|
|
|
17328
17334
|
systemCode: z.ZodString;
|
|
17329
17335
|
taxCode: z.ZodString;
|
|
17330
17336
|
name: z.ZodString;
|
|
17337
|
+
ignoreDiscount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
17338
|
+
level: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
17331
17339
|
}, "strip", z.ZodTypeAny, {
|
|
17340
|
+
ignoreDiscount?: boolean | null | undefined;
|
|
17341
|
+
level?: number | null | undefined;
|
|
17332
17342
|
name: string;
|
|
17333
17343
|
inclusive: boolean;
|
|
17334
17344
|
rate: {
|
|
@@ -17338,6 +17348,8 @@ export declare const FdtoOrderItem: z.ZodObject<{
|
|
|
17338
17348
|
systemCode: string;
|
|
17339
17349
|
taxCode: string;
|
|
17340
17350
|
}, {
|
|
17351
|
+
ignoreDiscount?: boolean | null | undefined;
|
|
17352
|
+
level?: number | null | undefined;
|
|
17341
17353
|
name: string;
|
|
17342
17354
|
inclusive: boolean;
|
|
17343
17355
|
rate: {
|
|
@@ -17347,11 +17359,53 @@ export declare const FdtoOrderItem: z.ZodObject<{
|
|
|
17347
17359
|
systemCode: string;
|
|
17348
17360
|
taxCode: string;
|
|
17349
17361
|
}>>>;
|
|
17362
|
+
taxOverrides: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
17363
|
+
rate: z.ZodObject<{
|
|
17364
|
+
amount: z.ZodNumber;
|
|
17365
|
+
precision: z.ZodNumber;
|
|
17366
|
+
}, "strip", z.ZodTypeAny, {
|
|
17367
|
+
amount: number;
|
|
17368
|
+
precision: number;
|
|
17369
|
+
}, {
|
|
17370
|
+
amount: number;
|
|
17371
|
+
precision: number;
|
|
17372
|
+
}>;
|
|
17373
|
+
inclusive: z.ZodBoolean;
|
|
17374
|
+
systemCode: z.ZodString;
|
|
17375
|
+
taxCode: z.ZodString;
|
|
17376
|
+
name: z.ZodString;
|
|
17377
|
+
ignoreDiscount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
17378
|
+
level: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
17379
|
+
}, "strip", z.ZodTypeAny, {
|
|
17380
|
+
ignoreDiscount?: boolean | null | undefined;
|
|
17381
|
+
level?: number | null | undefined;
|
|
17382
|
+
name: string;
|
|
17383
|
+
inclusive: boolean;
|
|
17384
|
+
rate: {
|
|
17385
|
+
amount: number;
|
|
17386
|
+
precision: number;
|
|
17387
|
+
};
|
|
17388
|
+
systemCode: string;
|
|
17389
|
+
taxCode: string;
|
|
17390
|
+
}, {
|
|
17391
|
+
ignoreDiscount?: boolean | null | undefined;
|
|
17392
|
+
level?: number | null | undefined;
|
|
17393
|
+
name: string;
|
|
17394
|
+
inclusive: boolean;
|
|
17395
|
+
rate: {
|
|
17396
|
+
amount: number;
|
|
17397
|
+
precision: number;
|
|
17398
|
+
};
|
|
17399
|
+
systemCode: string;
|
|
17400
|
+
taxCode: string;
|
|
17401
|
+
}>, "many">>>;
|
|
17350
17402
|
}, "strip", z.ZodTypeAny, {
|
|
17351
17403
|
id?: string | null | undefined;
|
|
17352
17404
|
remark?: string | null | undefined;
|
|
17353
17405
|
productId?: string | null | undefined;
|
|
17354
17406
|
taxOverride?: {
|
|
17407
|
+
ignoreDiscount?: boolean | null | undefined;
|
|
17408
|
+
level?: number | null | undefined;
|
|
17355
17409
|
name: string;
|
|
17356
17410
|
inclusive: boolean;
|
|
17357
17411
|
rate: {
|
|
@@ -17404,6 +17458,18 @@ export declare const FdtoOrderItem: z.ZodObject<{
|
|
|
17404
17458
|
afterTaxLevel: number;
|
|
17405
17459
|
}> | null | undefined;
|
|
17406
17460
|
externalItemId?: string | null | undefined;
|
|
17461
|
+
taxOverrides?: {
|
|
17462
|
+
ignoreDiscount?: boolean | null | undefined;
|
|
17463
|
+
level?: number | null | undefined;
|
|
17464
|
+
name: string;
|
|
17465
|
+
inclusive: boolean;
|
|
17466
|
+
rate: {
|
|
17467
|
+
amount: number;
|
|
17468
|
+
precision: number;
|
|
17469
|
+
};
|
|
17470
|
+
systemCode: string;
|
|
17471
|
+
taxCode: string;
|
|
17472
|
+
}[] | null | undefined;
|
|
17407
17473
|
quantity: number;
|
|
17408
17474
|
product: {
|
|
17409
17475
|
code?: string | null | undefined;
|
|
@@ -17475,6 +17541,8 @@ export declare const FdtoOrderItem: z.ZodObject<{
|
|
|
17475
17541
|
remark?: string | null | undefined;
|
|
17476
17542
|
productId?: string | null | undefined;
|
|
17477
17543
|
taxOverride?: {
|
|
17544
|
+
ignoreDiscount?: boolean | null | undefined;
|
|
17545
|
+
level?: number | null | undefined;
|
|
17478
17546
|
name: string;
|
|
17479
17547
|
inclusive: boolean;
|
|
17480
17548
|
rate: {
|
|
@@ -17527,6 +17595,18 @@ export declare const FdtoOrderItem: z.ZodObject<{
|
|
|
17527
17595
|
afterTaxLevel: number;
|
|
17528
17596
|
}> | null | undefined;
|
|
17529
17597
|
externalItemId?: string | null | undefined;
|
|
17598
|
+
taxOverrides?: {
|
|
17599
|
+
ignoreDiscount?: boolean | null | undefined;
|
|
17600
|
+
level?: number | null | undefined;
|
|
17601
|
+
name: string;
|
|
17602
|
+
inclusive: boolean;
|
|
17603
|
+
rate: {
|
|
17604
|
+
amount: number;
|
|
17605
|
+
precision: number;
|
|
17606
|
+
};
|
|
17607
|
+
systemCode: string;
|
|
17608
|
+
taxCode: string;
|
|
17609
|
+
}[] | null | undefined;
|
|
17530
17610
|
quantity: number;
|
|
17531
17611
|
product: {
|
|
17532
17612
|
code?: string | null | undefined;
|