@feedmepos/mf-order-setting 0.0.106 → 0.0.107
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-aLqc6lz9.js → DisplaySystemView-D4I6fQwr.js} +4 -4
- package/dist/{FoodCourtInvitationsView-B30qld2i.js → FoodCourtInvitationsView-DODbUcup.js} +4 -4
- package/dist/{FoodCourtOrderSettingsView-CWmaKgbe.js → FoodCourtOrderSettingsView-BPb_clxQ.js} +1 -1
- package/dist/{FoodCourtOrdersView-FfrganVo.js → FoodCourtOrdersView-B4jGHCvq.js} +4 -4
- package/dist/{FoodCourtStallsView-CpGZNP6p.js → FoodCourtStallsView-Yo5imZIL.js} +2 -2
- package/dist/{FoodCourtStatusView-ljQUwIwk.js → FoodCourtStatusView-Qmg07OHi.js} +1 -1
- package/dist/{KioskDevicesView-BwDAYIhX.js → KioskDevicesView-gnKpLlRc.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-VidDJfGG.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-BvLOXC6b.js} +5 -5
- package/dist/{KioskSettingView-mfhi9vuf.js → KioskSettingView-CarJ2tfl.js} +3 -3
- package/dist/{KioskView-6p5h92fk.js → KioskView-BQxmKeWX.js} +8 -8
- package/dist/{OrderSettingsView-Cf_Ye9U_.js → OrderSettingsView-DvThEQW-.js} +38157 -32660
- package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-TJJ3PBlq.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-CiZeQGB6.js} +1 -1
- package/dist/{app-BorqCaJT.js → app-BvIV73_P.js} +312 -300
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CTTY2vkL.js → dayjs.min-B5uDRIkW.js} +1 -1
- package/dist/{featureFlag-DFenoxmg.js → featureFlag-BYngu4rF.js} +1 -1
- package/dist/frontend/mf-order/src/app.d.ts +12 -0
- package/dist/frontend/mf-order/src/main.d.ts +12 -0
- package/dist/frontend/mf-order/src/stores/menu/menu.d.ts +134 -0
- package/dist/frontend/mf-order/src/views/order-settings/components/SmsCreditCard.vue.d.ts +15 -0
- package/dist/frontend/mf-order/src/views/order-settings/pos-status/pos-status.d.ts +19 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-BZkJr7iu.js → index-BBXEB6tY.js} +1 -1
- package/dist/{index-C4Isv-r7.js → index-BWR9_xAj.js} +1 -1
- package/dist/{index-tLkJL436.js → index-CGf3YUfs.js} +2 -2
- package/dist/{index-nUvyt9Wm.js → index-DWIzd_V1.js} +1 -1
- package/dist/{index-DuJOWWP8.js → index-Mnxpcwdy.js} +4 -4
- package/dist/{order.dto-nVwtcdX2.js → order.dto-DBYyEQ7c.js} +82 -78
- package/dist/package/entity/order/order.do.d.ts +21 -0
- package/dist/style.css +1 -1
- package/dist/{useInternalUser-HhxjbzGl.js → useInternalUser-DxmgUn4T.js} +1 -1
- package/package.json +2 -2
- package/src/locales/en-US.json +10 -7
- package/src/locales/ja-JP.json +5 -2
- package/src/locales/th-TH.json +10 -7
- package/src/locales/zh-CN.json +5 -2
- package/src/views/all-orders/UpdateDeliveryOrderDialog.vue +9 -9
- package/src/views/order-settings/components/NotifyChannelEditor.vue +1 -1
- package/src/views/order-settings/components/SmsCreditCard.vue +31 -0
- package/src/views/order-settings/components/push-availability.ts +1 -1
- package/src/views/order-settings/delivery/DeliverySetting.vue +2 -1
- package/src/views/order-settings/delivery/inhouse/InHouseDelivery.vue +2 -2
- package/src/views/order-settings/discount-rule/DiscountRuleSetting.vue +1 -1
- package/src/views/order-settings/pos-status/PosOrderingStatus.spec.ts +96 -1
- package/src/views/order-settings/pos-status/PosOrderingStatus.vue +24 -2
- package/src/views/order-settings/pos-status/pos-status.spec.ts +22 -0
- package/src/views/order-settings/pos-status/pos-status.ts +23 -0
- package/src/views/order-settings/reservation/ReservationSetting.vue +36 -1
- package/src/views/order-settings/reservation/reservation-sms-credit.source.spec.ts +66 -0
- package/src/views/order-settings/sms/SmsSetting.vue +11 -23
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var dn = Object.defineProperty;
|
|
2
2
|
var pn = (e, t, n) => t in e ? dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var je = (e, t, n) => pn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { e as Ct } from "./app-
|
|
4
|
+
import { e as Ct } from "./app-BvIV73_P.js";
|
|
5
5
|
import { useCoreStore as Y } from "@feedmepos/mf-common";
|
|
6
6
|
function Ut(e, t) {
|
|
7
7
|
return function() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as s, s as o, S as g, r as u } from "./index-
|
|
2
|
-
import "./order.dto-
|
|
1
|
+
import { g as s, s as o, S as g, r as u } from "./index-BWR9_xAj.js";
|
|
2
|
+
import "./order.dto-DBYyEQ7c.js";
|
|
3
3
|
function S(t, n = () => !1) {
|
|
4
4
|
var i;
|
|
5
5
|
const e = (i = t.queueSettings) == null ? void 0 : i.codeSettings;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Le, j as ea } from "./app-
|
|
1
|
+
import { c as Le, j as ea } from "./app-BvIV73_P.js";
|
|
2
2
|
function Ct(me) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + me + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as Q, ref as V, resolveComponent as R, openBlock as f, createElementBlock as T, createElementVNode as w, toDisplayString as S, createVNode as $, unref as x, createBlock as z, computed as U, watch as oe, onMounted as re, withCtx as N, createTextVNode as se, createCommentVNode as E, Fragment as ie, renderList as ue, renderSlot as ae } from "vue";
|
|
2
|
-
import { e as g } from "./app-
|
|
2
|
+
import { e as g } from "./app-BvIV73_P.js";
|
|
3
3
|
import { useDialog as le } from "@feedmepos/ui-library";
|
|
4
4
|
import { useI18n as Y, useCoreStore as ne } from "@feedmepos/mf-common";
|
|
5
5
|
import { defineStore as de } from "pinia";
|
|
6
|
-
import { r as O, g as a, b as F, S as H } from "./index-
|
|
7
|
-
import "./order.dto-
|
|
8
|
-
import { a as q } from "./index-
|
|
6
|
+
import { r as O, g as a, b as F, S as H } from "./index-BWR9_xAj.js";
|
|
7
|
+
import "./order.dto-DBYyEQ7c.js";
|
|
8
|
+
import { a as q } from "./index-DWIzd_V1.js";
|
|
9
9
|
const ce = /* @__PURE__ */ Q({
|
|
10
10
|
__name: "OfflinePaymentTypeDialogContent",
|
|
11
11
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { w as e, e as p, x as ce, k as w, c as R, i as Rc, j as Cu } from "./app-
|
|
2
|
-
import { a as ut } from "./index-
|
|
1
|
+
import { w as e, e as p, x as ce, k as w, c as R, i as Rc, j as Cu } from "./app-BvIV73_P.js";
|
|
2
|
+
import { a as ut } from "./index-DWIzd_V1.js";
|
|
3
3
|
const Te = e.enum([
|
|
4
4
|
"CREATING",
|
|
5
5
|
"NEW",
|
|
@@ -705,7 +705,7 @@ const ge = e.enum([
|
|
|
705
705
|
"SCANPAY",
|
|
706
706
|
"SOFTPOS",
|
|
707
707
|
"TERMINAL"
|
|
708
|
-
]),
|
|
708
|
+
]), Nf = e.enum([
|
|
709
709
|
"SCANPAY",
|
|
710
710
|
"QRPAY",
|
|
711
711
|
"TERMINAL",
|
|
@@ -12713,7 +12713,7 @@ e.object({
|
|
|
12713
12713
|
catalogId: e.string().nullish(),
|
|
12714
12714
|
enable: e.boolean().optional()
|
|
12715
12715
|
});
|
|
12716
|
-
const sp = e.enum(["dineIn", "pickup", "reservation"]),
|
|
12716
|
+
const sp = e.enum(["dineIn", "pickup", "reservation"]), Df = sp.options;
|
|
12717
12717
|
e.enum(["DINE_IN", "PICK_UP", "RESERVATION"]);
|
|
12718
12718
|
e.enum(["ONLINE_PAYMENT"]);
|
|
12719
12719
|
const up = e.enum(["TNGD", "CASHIER"]);
|
|
@@ -12793,7 +12793,7 @@ const cp = e.object({
|
|
|
12793
12793
|
// See the note in pickup.dto.ts for why omitting it silently deleted the
|
|
12794
12794
|
// stored value rather than just making it unwritable.
|
|
12795
12795
|
allowReject: e.boolean().nullish()
|
|
12796
|
-
}), Hn = e.string(),
|
|
12796
|
+
}), Hn = e.string(), Cf = [
|
|
12797
12797
|
"en-US",
|
|
12798
12798
|
"zh-CN",
|
|
12799
12799
|
"th-TH",
|
|
@@ -13336,7 +13336,7 @@ const Gp = e.object({
|
|
|
13336
13336
|
* Enable transferring queue pre-orders to tablet devices by scanning a QR code
|
|
13337
13337
|
*/
|
|
13338
13338
|
enableQueueToTabletTransfer: e.boolean().nullish()
|
|
13339
|
-
}),
|
|
13339
|
+
}), Mf = {
|
|
13340
13340
|
autoCalledLimit: 0,
|
|
13341
13341
|
enableOrder: !0,
|
|
13342
13342
|
duration: 20,
|
|
@@ -13720,7 +13720,7 @@ const uT = e.object({
|
|
|
13720
13720
|
// Omitted from OrderSettingUpdateDto below so it can never be echoed back
|
|
13721
13721
|
// into the Mongo document by a whole-object save.
|
|
13722
13722
|
channelAutoAccept: gT.nullish()
|
|
13723
|
-
}),
|
|
13723
|
+
}), vf = hT.omit({
|
|
13724
13724
|
_id: !0,
|
|
13725
13725
|
channelAutoAccept: !0
|
|
13726
13726
|
}).extend({
|
|
@@ -13731,7 +13731,7 @@ const uT = e.object({
|
|
|
13731
13731
|
}), Du = [
|
|
13732
13732
|
Ye.Enum.SMS
|
|
13733
13733
|
];
|
|
13734
|
-
function
|
|
13734
|
+
function wf({
|
|
13735
13735
|
configured: n,
|
|
13736
13736
|
hasAppInboxUid: t
|
|
13737
13737
|
}) {
|
|
@@ -13739,7 +13739,7 @@ function vf({
|
|
|
13739
13739
|
const r = /* @__PURE__ */ new Set(), i = n.filter((s) => r.has(s) || s === Ye.Enum.EMAIL || (s === Ye.Enum.APP_INBOX || s === Ye.Enum.PUSH_NOTIFICATION) && !t ? !1 : (r.add(s), !0));
|
|
13740
13740
|
return i.length ? i : [...Du];
|
|
13741
13741
|
}
|
|
13742
|
-
function
|
|
13742
|
+
function jf(n) {
|
|
13743
13743
|
const { APP_INBOX: t, PUSH_NOTIFICATION: r } = Ye.Enum;
|
|
13744
13744
|
return !n.includes(t) || !n.includes(r) ? { alongside: [], chain: n } : {
|
|
13745
13745
|
alongside: [t],
|
|
@@ -14170,6 +14170,9 @@ const wT = e.object({
|
|
|
14170
14170
|
/** This stall's customer-facing name, snapshot at order time. */
|
|
14171
14171
|
displayName: e.string().nullish()
|
|
14172
14172
|
}), qT = e.object({
|
|
14173
|
+
catalogId: e.string(),
|
|
14174
|
+
catalogName: e.string()
|
|
14175
|
+
}), VT = e.object({
|
|
14173
14176
|
/**
|
|
14174
14177
|
* Last heartbeat, ISO-8601 UTC. NOT the acquisition time — the holder refreshes this
|
|
14175
14178
|
* every SEAT_LOCK_RENEW_MS, and staleness is measured against it.
|
|
@@ -14177,7 +14180,7 @@ const wT = e.object({
|
|
|
14177
14180
|
at: e.string().superRefine(M.isISODateString),
|
|
14178
14181
|
/** Opaque id of the seat attempt holding the lock; used for logging and release. */
|
|
14179
14182
|
by: e.string()
|
|
14180
|
-
}),
|
|
14183
|
+
}), HT = e.object({
|
|
14181
14184
|
_id: e.string().superRefine(M.isObjectId),
|
|
14182
14185
|
billId: e.string().nullish(),
|
|
14183
14186
|
billRev: e.string().nullish(),
|
|
@@ -14213,8 +14216,9 @@ const wT = e.object({
|
|
|
14213
14216
|
// single atomic write. While the lock is live, customer cart saves are refused so
|
|
14214
14217
|
// they cannot clobber server-owned fields mid-flight. Stale locks are stolen after
|
|
14215
14218
|
// SEAT_LOCK_TTL_MS — a crashed seat must never wedge an order permanently.
|
|
14216
|
-
seatLock:
|
|
14217
|
-
|
|
14219
|
+
seatLock: VT.nullish(),
|
|
14220
|
+
appliedCatalog: qT.nullish()
|
|
14221
|
+
}).describe(M.ZodMeta.mongo().repo("Orders").build()), Xn = HT, WT = e.any(), fn = e.object({
|
|
14218
14222
|
name: e.array(e.string()),
|
|
14219
14223
|
name_locale: e.record(e.array(e.string())).nullish(),
|
|
14220
14224
|
combinationKey: e.string()
|
|
@@ -14262,11 +14266,11 @@ const wT = e.object({
|
|
|
14262
14266
|
upsellingId: e.string().nullish()
|
|
14263
14267
|
}), hc = gc.extend({
|
|
14264
14268
|
subItems: e.array(e.lazy(() => hc))
|
|
14265
|
-
}),
|
|
14269
|
+
}), QT = gc.extend({
|
|
14266
14270
|
product: Aa.extend({
|
|
14267
14271
|
price: p.FdoDinero.nullish()
|
|
14268
14272
|
}).nullish()
|
|
14269
|
-
}), _c =
|
|
14273
|
+
}), _c = QT.extend({
|
|
14270
14274
|
subItems: e.array(e.lazy(() => _c))
|
|
14271
14275
|
}), Ea = e.object({
|
|
14272
14276
|
takeaway: e.boolean(),
|
|
@@ -14293,15 +14297,15 @@ const wT = e.object({
|
|
|
14293
14297
|
adjustments: e.record(e.any()).default({}),
|
|
14294
14298
|
taxes: e.record(e.any()).default({}),
|
|
14295
14299
|
nettTotal: p.FdoDinero.nullish()
|
|
14296
|
-
}),
|
|
14300
|
+
}), XT = Zn.extend({
|
|
14297
14301
|
subItems: e.array(_c)
|
|
14298
|
-
}),
|
|
14302
|
+
}), ZT = e.object({
|
|
14299
14303
|
name: e.string(),
|
|
14300
14304
|
price: p.FdoDinero,
|
|
14301
14305
|
serveDelayId: e.string().nullish(),
|
|
14302
14306
|
serveDelayName: e.string().nullish(),
|
|
14303
14307
|
serveDelayInMins: e.number().nullish()
|
|
14304
|
-
}),
|
|
14308
|
+
}), $T = e.object({
|
|
14305
14309
|
selection: e.string(),
|
|
14306
14310
|
price: p.FdoDinero.nullish(),
|
|
14307
14311
|
name: e.string(),
|
|
@@ -14313,17 +14317,17 @@ const wT = e.object({
|
|
|
14313
14317
|
name: e.string(),
|
|
14314
14318
|
quantity: e.number(),
|
|
14315
14319
|
variantSelected: fn.nullish(),
|
|
14316
|
-
subItems: e.array(
|
|
14320
|
+
subItems: e.array($T).nullish()
|
|
14317
14321
|
}), Ra = e.object({
|
|
14318
14322
|
id: e.string().nullish(),
|
|
14319
14323
|
productId: e.string().nullish(),
|
|
14320
14324
|
subItems: e.array(pc),
|
|
14321
14325
|
quantity: e.number(),
|
|
14322
14326
|
remark: e.string().nullish(),
|
|
14323
|
-
product:
|
|
14327
|
+
product: ZT,
|
|
14324
14328
|
variantSelected: fn.nullish(),
|
|
14325
14329
|
is: Ea.nullish()
|
|
14326
|
-
}),
|
|
14330
|
+
}), xT = e.any();
|
|
14327
14331
|
e.object({
|
|
14328
14332
|
id: e.string().nullish(),
|
|
14329
14333
|
productId: e.string().nullish(),
|
|
@@ -14333,15 +14337,15 @@ e.object({
|
|
|
14333
14337
|
is: e.lazy(() => Ea).nullish(),
|
|
14334
14338
|
_raw: e.any(),
|
|
14335
14339
|
price: p.FdoDinero,
|
|
14336
|
-
variantSelectionGroups: e.array(e.lazy(() =>
|
|
14340
|
+
variantSelectionGroups: e.array(e.lazy(() => xT)),
|
|
14337
14341
|
product: e.any(),
|
|
14338
14342
|
nettTotal: p.FdoDinero.nullish(),
|
|
14339
14343
|
variantSelected: fn,
|
|
14340
14344
|
count: e.number()
|
|
14341
14345
|
});
|
|
14342
|
-
const
|
|
14346
|
+
const JT = e.object({
|
|
14343
14347
|
taxAndChargeSetting: p.FdtoTaxAndChargeSetting,
|
|
14344
|
-
menu:
|
|
14348
|
+
menu: WT.nullish(),
|
|
14345
14349
|
roundToNearest: e.number().optional(),
|
|
14346
14350
|
restaurant: e.object({
|
|
14347
14351
|
_id: e.string(),
|
|
@@ -14351,14 +14355,14 @@ const xT = e.object({
|
|
|
14351
14355
|
e.object({
|
|
14352
14356
|
order: Xn,
|
|
14353
14357
|
oldDraft: e.array(fa),
|
|
14354
|
-
draftOption: e.lazy(() =>
|
|
14358
|
+
draftOption: e.lazy(() => JT),
|
|
14355
14359
|
notify: e.function().args(e.string(), e.record(e.string(), p.FdoBillItem)).returns(e.void())
|
|
14356
14360
|
});
|
|
14357
|
-
const
|
|
14361
|
+
const ef = e.object({
|
|
14358
14362
|
name: e.string(),
|
|
14359
14363
|
address: e.string(),
|
|
14360
14364
|
coordinates: e.array(e.number())
|
|
14361
|
-
}),
|
|
14365
|
+
}), nf = e.object({
|
|
14362
14366
|
name: e.string(),
|
|
14363
14367
|
address: e.string(),
|
|
14364
14368
|
coordinates: e.array(e.number())
|
|
@@ -14367,7 +14371,7 @@ e.object({
|
|
|
14367
14371
|
orderNumber: e.string(),
|
|
14368
14372
|
customerName: e.string(),
|
|
14369
14373
|
phoneNumber: e.string(),
|
|
14370
|
-
pickupPoint:
|
|
14374
|
+
pickupPoint: ef.nullish()
|
|
14371
14375
|
});
|
|
14372
14376
|
e.object({
|
|
14373
14377
|
id: e.string(),
|
|
@@ -14414,7 +14418,7 @@ const Ia = e.object({
|
|
|
14414
14418
|
profile: p.FdoProfile.extend({ url: e.string().nullish().default("") }),
|
|
14415
14419
|
dineIn: e.lazy(() => p.FdoRestaurantDineIn).nullish(),
|
|
14416
14420
|
pickup: e.lazy(() => p.FdoRestaurantPickup).nullish()
|
|
14417
|
-
}),
|
|
14421
|
+
}), tf = e.object({
|
|
14418
14422
|
restaurantId: e.string(),
|
|
14419
14423
|
roundToNearest: e.number().optional(),
|
|
14420
14424
|
roundingType: p.FdoDineroRoundingType.nullish(),
|
|
@@ -14437,7 +14441,7 @@ e.object({
|
|
|
14437
14441
|
hideProductCode: e.boolean().nullish(),
|
|
14438
14442
|
paymentGateways: e.array(ze.FdoPaymentGateway),
|
|
14439
14443
|
posHeartbeat: e.string().nullish(),
|
|
14440
|
-
pricingContext:
|
|
14444
|
+
pricingContext: tf.nullish(),
|
|
14441
14445
|
// Restaurant-setting custom attributes; inventory binding rules match against them.
|
|
14442
14446
|
// Sent to kiosk devices as-is: never store secrets or personal data here.
|
|
14443
14447
|
// Clients overlay profile-derived keys (outlet, address). An empty merged context makes
|
|
@@ -14449,20 +14453,20 @@ e.object({
|
|
|
14449
14453
|
success: e.boolean(),
|
|
14450
14454
|
user: p.FdoUser
|
|
14451
14455
|
});
|
|
14452
|
-
const
|
|
14456
|
+
const rf = e.object({
|
|
14453
14457
|
start: e.string().superRefine(M.isISODateString),
|
|
14454
14458
|
end: e.string().superRefine(M.isISODateString)
|
|
14455
|
-
}),
|
|
14459
|
+
}), af = e.object({
|
|
14456
14460
|
start: e.string(),
|
|
14457
14461
|
end: e.string()
|
|
14458
|
-
}),
|
|
14462
|
+
}), of = e.enum(["SHOW", "HIDDEN", "DISABLE"]);
|
|
14459
14463
|
e.object({
|
|
14460
14464
|
from: p.F_ADJUSTMENT_CAUSE,
|
|
14461
14465
|
referenceId: e.string(),
|
|
14462
14466
|
items: e.array(e.string()),
|
|
14463
14467
|
status: e.string()
|
|
14464
14468
|
});
|
|
14465
|
-
const
|
|
14469
|
+
const sf = e.object({
|
|
14466
14470
|
adjustment: p.FdoAdjustmentOption,
|
|
14467
14471
|
/**
|
|
14468
14472
|
* The ceiling on what the effect may take off, e.g. "50% off, but never more
|
|
@@ -14492,9 +14496,9 @@ const of = e.object({
|
|
|
14492
14496
|
availableOnlineOrder: e.array(kn).nullish(),
|
|
14493
14497
|
priority: e.number().nullish()
|
|
14494
14498
|
}), za = e.object({
|
|
14495
|
-
raw:
|
|
14499
|
+
raw: sf,
|
|
14496
14500
|
name: e.string(),
|
|
14497
|
-
visible:
|
|
14501
|
+
visible: of,
|
|
14498
14502
|
from: p.F_ADJUSTMENT_CAUSE,
|
|
14499
14503
|
referenceId: e.string(),
|
|
14500
14504
|
returnId: e.string().optional(),
|
|
@@ -14518,12 +14522,12 @@ const fc = e.any(), $n = e.object({
|
|
|
14518
14522
|
breakdown: e.record(e.object({
|
|
14519
14523
|
count: e.number()
|
|
14520
14524
|
}))
|
|
14521
|
-
}),
|
|
14525
|
+
}), uf = $n.extend({
|
|
14522
14526
|
type: e.literal(p.F_ORDER_TYPE.enum.DINE_IN),
|
|
14523
14527
|
pax: e.number().nullish(),
|
|
14524
14528
|
personMeta: bc.nullish(),
|
|
14525
14529
|
sub: bT
|
|
14526
|
-
}),
|
|
14530
|
+
}), lf = $n.extend({
|
|
14527
14531
|
type: e.literal(p.F_ORDER_TYPE.enum.DINE_IN),
|
|
14528
14532
|
slot: e.string().nullish(),
|
|
14529
14533
|
pax: e.number().nullish(),
|
|
@@ -14534,7 +14538,7 @@ const fc = e.any(), $n = e.object({
|
|
|
14534
14538
|
type: e.literal(p.F_ORDER_TYPE.enum.PICKUP),
|
|
14535
14539
|
contactNumber: e.string(),
|
|
14536
14540
|
pickupAt: e.string(),
|
|
14537
|
-
pickupPoint: e.lazy(() =>
|
|
14541
|
+
pickupPoint: e.lazy(() => nf).nullish(),
|
|
14538
14542
|
slot: e.string().nullish()
|
|
14539
14543
|
}), Ec = $n.extend({
|
|
14540
14544
|
type: e.literal(p.F_ORDER_TYPE.enum.DELIVERY),
|
|
@@ -14551,30 +14555,30 @@ const fc = e.any(), $n = e.object({
|
|
|
14551
14555
|
slot: e.string().nullish(),
|
|
14552
14556
|
...Wi.shape
|
|
14553
14557
|
}), xn = e.discriminatedUnion("type", [
|
|
14554
|
-
|
|
14558
|
+
uf,
|
|
14555
14559
|
Ac,
|
|
14556
14560
|
Ec
|
|
14557
14561
|
]), Pa = e.discriminatedUnion("type", [
|
|
14558
|
-
|
|
14562
|
+
lf,
|
|
14559
14563
|
Ac,
|
|
14560
14564
|
Ec
|
|
14561
14565
|
]), Fa = $n.omit({ remark: !0 }).extend({
|
|
14562
14566
|
restaurantId: e.string()
|
|
14563
|
-
}),
|
|
14567
|
+
}), cf = Fa.extend({
|
|
14564
14568
|
type: e.literal(p.F_ORDER_TYPE.Enum.DINE_IN),
|
|
14565
14569
|
slot: e.string(),
|
|
14566
14570
|
userId: e.string().nullish()
|
|
14567
|
-
}),
|
|
14571
|
+
}), df = Fa.extend({
|
|
14568
14572
|
type: e.literal(p.F_ORDER_TYPE.Enum.PICKUP),
|
|
14569
14573
|
userId: e.string()
|
|
14570
|
-
}),
|
|
14574
|
+
}), mf = Fa.extend({
|
|
14571
14575
|
type: e.literal(p.F_ORDER_TYPE.Enum.DELIVERY),
|
|
14572
14576
|
userId: e.string()
|
|
14573
14577
|
});
|
|
14574
14578
|
e.discriminatedUnion("type", [
|
|
14575
|
-
lf,
|
|
14576
14579
|
cf,
|
|
14577
|
-
df
|
|
14580
|
+
df,
|
|
14581
|
+
mf
|
|
14578
14582
|
]);
|
|
14579
14583
|
e.object({
|
|
14580
14584
|
restaurantId: e.string(),
|
|
@@ -14585,7 +14589,7 @@ e.object({
|
|
|
14585
14589
|
slots: e.array(e.string())
|
|
14586
14590
|
});
|
|
14587
14591
|
e.object({
|
|
14588
|
-
orderAt:
|
|
14592
|
+
orderAt: af.nullish(),
|
|
14589
14593
|
skip: e.number().nullish(),
|
|
14590
14594
|
limit: e.number().nullish(),
|
|
14591
14595
|
type: e.array(p.F_ORDER_TYPE).nullish(),
|
|
@@ -14599,7 +14603,7 @@ e.object({
|
|
|
14599
14603
|
slot: e.string().nullish(),
|
|
14600
14604
|
subType: ge.nullish()
|
|
14601
14605
|
});
|
|
14602
|
-
const
|
|
14606
|
+
const yf = e.object({
|
|
14603
14607
|
id: e.string().nullish(),
|
|
14604
14608
|
// Customer V3 need this to identify item effect
|
|
14605
14609
|
target: e.any(),
|
|
@@ -14607,17 +14611,17 @@ const mf = e.object({
|
|
|
14607
14611
|
referenceId: e.string(),
|
|
14608
14612
|
returnId: e.string().nullish(),
|
|
14609
14613
|
items: e.array(e.string())
|
|
14610
|
-
}),
|
|
14614
|
+
}), gf = e.object({
|
|
14611
14615
|
draft: e.array(Zn).default([]),
|
|
14612
14616
|
option: xn,
|
|
14613
14617
|
payment: lc.omit({ pf_transactions: !0 }).nullish(),
|
|
14614
14618
|
userId: e.string().nullish(),
|
|
14615
|
-
effects: e.array(
|
|
14619
|
+
effects: e.array(yf).default([])
|
|
14616
14620
|
});
|
|
14617
14621
|
e.object({
|
|
14618
14622
|
restaurant: e.string(),
|
|
14619
14623
|
orderMetadata: ba.nullish()
|
|
14620
|
-
}).extend(
|
|
14624
|
+
}).extend(gf.shape);
|
|
14621
14625
|
e.object({
|
|
14622
14626
|
itemIds: e.array(e.string()).nullish(),
|
|
14623
14627
|
effectIds: e.array(e.string()).nullish()
|
|
@@ -14632,7 +14636,7 @@ e.object({
|
|
|
14632
14636
|
e.object({
|
|
14633
14637
|
reason: e.string().nullish()
|
|
14634
14638
|
});
|
|
14635
|
-
const
|
|
14639
|
+
const hf = e.object({
|
|
14636
14640
|
_id: e.string(),
|
|
14637
14641
|
billId: e.string().nullish(),
|
|
14638
14642
|
draft: e.array(Zn),
|
|
@@ -14652,7 +14656,7 @@ const gf = e.object({
|
|
|
14652
14656
|
// bill: FdoBill.nullish(),
|
|
14653
14657
|
bill: e.any().nullish(),
|
|
14654
14658
|
rejectReason: e.string().nullish()
|
|
14655
|
-
}),
|
|
14659
|
+
}), _f = hf.omit({
|
|
14656
14660
|
draft: !0,
|
|
14657
14661
|
pf_restaurant: !0,
|
|
14658
14662
|
pf_user: !0
|
|
@@ -14671,7 +14675,7 @@ e.object({
|
|
|
14671
14675
|
* `orders[n].restaurant` is the id there.
|
|
14672
14676
|
*/
|
|
14673
14677
|
pf_restaurant: Ia.nullish(),
|
|
14674
|
-
orders: e.array(
|
|
14678
|
+
orders: e.array(_f)
|
|
14675
14679
|
});
|
|
14676
14680
|
e.object({
|
|
14677
14681
|
_id: e.string(),
|
|
@@ -14750,7 +14754,7 @@ e.object({
|
|
|
14750
14754
|
e.object({
|
|
14751
14755
|
_id: e.string(),
|
|
14752
14756
|
billId: e.string().nullish(),
|
|
14753
|
-
draft: e.array(
|
|
14757
|
+
draft: e.array(XT),
|
|
14754
14758
|
pf_user: e.lazy(() => e.any()).nullish(),
|
|
14755
14759
|
userId: e.string().nullish(),
|
|
14756
14760
|
userName: e.string().nullish(),
|
|
@@ -14798,7 +14802,7 @@ e.object({
|
|
|
14798
14802
|
restaurantId: e.string(),
|
|
14799
14803
|
slot: e.string()
|
|
14800
14804
|
});
|
|
14801
|
-
const
|
|
14805
|
+
const pf = e.object({
|
|
14802
14806
|
id: e.string().nullish(),
|
|
14803
14807
|
// Customer V3 need this to identify item effect
|
|
14804
14808
|
target: p.F_EFFECT_TARGET,
|
|
@@ -14806,7 +14810,7 @@ const _f = e.object({
|
|
|
14806
14810
|
referenceId: e.string(),
|
|
14807
14811
|
returnId: e.string().nullish(),
|
|
14808
14812
|
items: e.array(e.string()).default([])
|
|
14809
|
-
}),
|
|
14813
|
+
}), Tf = e.object({
|
|
14810
14814
|
id: e.string().nullish(),
|
|
14811
14815
|
// Customer V3 need this to identify item effect
|
|
14812
14816
|
from: p.F_ADJUSTMENT_CAUSE,
|
|
@@ -14815,19 +14819,19 @@ const _f = e.object({
|
|
|
14815
14819
|
items: e.array(e.string()).nullish()
|
|
14816
14820
|
}), Sa = It.omit({ remark: !0 }).extend({
|
|
14817
14821
|
restaurantId: e.string()
|
|
14818
|
-
}),
|
|
14822
|
+
}), ff = Sa.extend({
|
|
14819
14823
|
type: e.literal(p.F_ORDER_TYPE.enum.DINE_IN),
|
|
14820
14824
|
slot: e.string(),
|
|
14821
14825
|
userId: e.string().nullish()
|
|
14822
|
-
}),
|
|
14826
|
+
}), bf = Sa.extend({
|
|
14823
14827
|
type: e.literal(p.F_ORDER_TYPE.enum.PICKUP),
|
|
14824
14828
|
userId: e.string()
|
|
14825
|
-
}),
|
|
14829
|
+
}), Af = Sa.extend({
|
|
14826
14830
|
type: e.literal(p.F_ORDER_TYPE.enum.DELIVERY),
|
|
14827
14831
|
userId: e.string()
|
|
14828
14832
|
});
|
|
14829
14833
|
e.object({
|
|
14830
|
-
orderAt:
|
|
14834
|
+
orderAt: rf.nullish(),
|
|
14831
14835
|
skip: e.number().nullish(),
|
|
14832
14836
|
limit: e.number().nullish(),
|
|
14833
14837
|
type: e.array(p.F_ORDER_TYPE).nullish(),
|
|
@@ -14845,7 +14849,7 @@ e.object({
|
|
|
14845
14849
|
subType: ge.nullish(),
|
|
14846
14850
|
billIds: e.array(e.string()).nullish()
|
|
14847
14851
|
});
|
|
14848
|
-
const
|
|
14852
|
+
const Ef = e.object({
|
|
14849
14853
|
draft: e.array(fa),
|
|
14850
14854
|
option: mc,
|
|
14851
14855
|
payment: yc.omit({
|
|
@@ -14853,21 +14857,21 @@ const Af = e.object({
|
|
|
14853
14857
|
pf_credits: !0
|
|
14854
14858
|
}).nullish(),
|
|
14855
14859
|
userId: e.string().nullish(),
|
|
14856
|
-
effects: e.array(
|
|
14860
|
+
effects: e.array(pf)
|
|
14857
14861
|
});
|
|
14858
14862
|
e.object({
|
|
14859
14863
|
itemIds: e.array(e.string()).nullish(),
|
|
14860
14864
|
effectIds: e.array(e.string()).nullish()
|
|
14861
14865
|
});
|
|
14862
14866
|
e.discriminatedUnion("type", [
|
|
14863
|
-
Tf,
|
|
14864
14867
|
ff,
|
|
14865
|
-
bf
|
|
14868
|
+
bf,
|
|
14869
|
+
Af
|
|
14866
14870
|
]);
|
|
14867
14871
|
e.object({
|
|
14868
14872
|
restaurant: e.string(),
|
|
14869
14873
|
orderMetadata: ba.default({ orderPlatform: dt.Enum.UNKNOWN })
|
|
14870
|
-
}).extend(
|
|
14874
|
+
}).extend(Ef.shape);
|
|
14871
14875
|
e.object({
|
|
14872
14876
|
bill: p.FdoBill,
|
|
14873
14877
|
order: Xn,
|
|
@@ -14878,7 +14882,7 @@ e.object({
|
|
|
14878
14882
|
dynamicQrSession: p.FdoDynamicQrSession.optional(),
|
|
14879
14883
|
user: p.FdoUser.optional()
|
|
14880
14884
|
});
|
|
14881
|
-
const
|
|
14885
|
+
const Rf = e.object({
|
|
14882
14886
|
roundToNearest: e.number().optional(),
|
|
14883
14887
|
roundingType: p.FdoDineroRoundingType.nullish(),
|
|
14884
14888
|
calculatorVersion: e.number().optional(),
|
|
@@ -14889,7 +14893,7 @@ const Ef = e.object({
|
|
|
14889
14893
|
e.object({
|
|
14890
14894
|
order: Xn,
|
|
14891
14895
|
orderType: p.F_ORDER_TYPE,
|
|
14892
|
-
billCalculateOption:
|
|
14896
|
+
billCalculateOption: Rf
|
|
14893
14897
|
});
|
|
14894
14898
|
e.object({
|
|
14895
14899
|
id: e.string().nullish(),
|
|
@@ -14897,9 +14901,9 @@ e.object({
|
|
|
14897
14901
|
items: e.array(e.string()).optional(),
|
|
14898
14902
|
customer: p.FdoBillCustomerRef.optional()
|
|
14899
14903
|
});
|
|
14900
|
-
const
|
|
14901
|
-
effects:
|
|
14902
|
-
}),
|
|
14904
|
+
const If = e.array(Tf), zf = Xn.extend({
|
|
14905
|
+
effects: If
|
|
14906
|
+
}), Pf = zf;
|
|
14903
14907
|
e.object({
|
|
14904
14908
|
user: p.FdoUser.optional(),
|
|
14905
14909
|
restaurant: p.FdoRestaurant,
|
|
@@ -14916,7 +14920,7 @@ e.object({
|
|
|
14916
14920
|
transaction: e.boolean()
|
|
14917
14921
|
});
|
|
14918
14922
|
e.object({
|
|
14919
|
-
order:
|
|
14923
|
+
order: Pf,
|
|
14920
14924
|
user: p.FdoUser.optional(),
|
|
14921
14925
|
restaurant: p.FdoRestaurant,
|
|
14922
14926
|
taxAndChargeSetting: p.FdtoTaxAndChargeSetting,
|
|
@@ -14939,11 +14943,11 @@ export {
|
|
|
14939
14943
|
Sl as C,
|
|
14940
14944
|
rl as D,
|
|
14941
14945
|
Ql as F,
|
|
14942
|
-
|
|
14946
|
+
Cf as K,
|
|
14943
14947
|
eT as O,
|
|
14944
|
-
|
|
14948
|
+
Df as T,
|
|
14945
14949
|
Yp as a,
|
|
14946
|
-
|
|
14950
|
+
Nf as b,
|
|
14947
14951
|
fe as c,
|
|
14948
14952
|
Su as d,
|
|
14949
14953
|
mg as e,
|
|
@@ -14957,10 +14961,10 @@ export {
|
|
|
14957
14961
|
tT as m,
|
|
14958
14962
|
rT as n,
|
|
14959
14963
|
nc as o,
|
|
14960
|
-
|
|
14961
|
-
|
|
14962
|
-
|
|
14963
|
-
|
|
14964
|
+
jf as p,
|
|
14965
|
+
Mf as q,
|
|
14966
|
+
wf as r,
|
|
14967
|
+
vf as s,
|
|
14964
14968
|
Mp as t,
|
|
14965
14969
|
yd as u,
|
|
14966
14970
|
el as v
|
|
@@ -11612,6 +11612,26 @@ export declare const SEAT_LOCK_TTL_MS = 10000;
|
|
|
11612
11612
|
* tolerates two consecutive missed beats before becoming stealable.
|
|
11613
11613
|
*/
|
|
11614
11614
|
export declare const SEAT_LOCK_RENEW_MS = 3000;
|
|
11615
|
+
/**
|
|
11616
|
+
* The menu catalog an online order was priced from (ITS-003108). order-backend writes it
|
|
11617
|
+
* on the move out of DRAFT, from the menu it re-priced the order against, and copies it onto
|
|
11618
|
+
* every item product when it sends the order to POS, so the bill records the catalog the way
|
|
11619
|
+
* POS-built and partner-built bills do. `''` / `''` is the base menu; null is an order that
|
|
11620
|
+
* left DRAFT before this existed, or with an empty draft (its bill keeps null). Server-only: `OrderDto`,
|
|
11621
|
+
* `FdtoOrderUpdate` and `FdtoOrderCreate` list their fields and leave it out, so a client can
|
|
11622
|
+
* neither read nor write it (the item-level pair stays client-unsafe, see above).
|
|
11623
|
+
*/
|
|
11624
|
+
export declare const FdoOrderAppliedCatalog: z.ZodObject<{
|
|
11625
|
+
catalogId: z.ZodString;
|
|
11626
|
+
catalogName: z.ZodString;
|
|
11627
|
+
}, "strip", z.ZodTypeAny, {
|
|
11628
|
+
catalogId: string;
|
|
11629
|
+
catalogName: string;
|
|
11630
|
+
}, {
|
|
11631
|
+
catalogId: string;
|
|
11632
|
+
catalogName: string;
|
|
11633
|
+
}>;
|
|
11634
|
+
export type FdoOrderAppliedCatalog = z.infer<typeof FdoOrderAppliedCatalog>;
|
|
11615
11635
|
export declare const FdoOrderSeatLock: z.ZodObject<{
|
|
11616
11636
|
/**
|
|
11617
11637
|
* Last heartbeat, ISO-8601 UTC. NOT the acquisition time — the holder refreshes this
|
|
@@ -11672,6 +11692,7 @@ export type FdoOrder = {
|
|
|
11672
11692
|
orderMetadata?: FdoOrderMetadata | null | undefined;
|
|
11673
11693
|
foodCourt?: FdoOrderFoodCourt | null | undefined;
|
|
11674
11694
|
seatLock?: FdoOrderSeatLock | null | undefined;
|
|
11695
|
+
appliedCatalog?: FdoOrderAppliedCatalog | null | undefined;
|
|
11675
11696
|
};
|
|
11676
11697
|
export type FdoOrderSeatLock = z.infer<typeof FdoOrderSeatLock>;
|
|
11677
11698
|
export type FdoOrderMetadata = z.infer<typeof FdoOrderMetadata>;
|