@feedmepos/mf-order-setting 0.0.88 → 0.0.89
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-BiKFL6UY.js → DisplaySystemView-BA-5JObJ.js} +1 -1
- package/dist/{KioskDevicesView-DQPue13D.js → KioskDevicesView-CgdnW9N9.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-BAe1eQvx.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-C9X9ziUm.js} +3 -3
- package/dist/KioskSettingView-CVck01e7.js +860 -0
- package/dist/{KioskView-BfTNsmN1.js → KioskView-DKY2QEh5.js} +54 -48
- package/dist/{OrderSettingsView-CowX8_oN.js → OrderSettingsView-CEPIZmHA.js} +774 -768
- package/dist/{app-DgZSoUgk.js → app-C9nnuR9O.js} +206 -190
- package/dist/app.js +1 -1
- package/dist/frontend/mf-order/src/app.d.ts +16 -0
- package/dist/frontend/mf-order/src/main.d.ts +16 -0
- package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +2 -0
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +6 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-CGJIcLNE.js → index-BaC_Douy.js} +2 -2
- package/dist/{index-CWm0u6lo.js → index-DGAU5Dhc.js} +1 -1
- package/dist/{index-DzmXxFJu.js → index-Gk7389CW.js} +1 -1
- package/dist/{order.dto-DQWf-RVV.js → order.dto-CfCfBJYu.js} +43 -6
- package/dist/package/entity/food-court/food-court.dto.d.ts +51 -121
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +10 -0
- package/dist/package/entity/kiosk/kiosk.do.d.ts +16 -16
- package/dist/package/entity/kiosk/kiosk.dto.d.ts +19 -19
- package/dist/package/entity/order/order-item/order-item.dto.d.ts +20 -0
- package/dist/package/entity/order/order.do.d.ts +19 -3
- package/dist/package/entity/order/order.dto.d.ts +107 -91
- package/dist/package/entity/order/order.enum.d.ts +1 -1
- package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +3 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +6 -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 +13 -0
- package/dist/package/entity/queue/queue.dto.d.ts +23 -36
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +10 -15
- package/dist/package/entity/websocket/websocket.dto.d.ts +12 -0
- package/package.json +1 -1
- package/src/locales/en-US.json +4 -0
- package/src/locales/ja-JP.json +4 -0
- package/src/locales/th-TH.json +4 -0
- package/src/locales/zh-CN.json +4 -0
- package/src/modules/order-setting/kiosk/interface.ts +10 -0
- package/src/stores/order-setting/mapper.spec.ts +21 -0
- package/src/stores/order-setting/mapper.ts +8 -2
- package/src/views/kiosk/settings/KioskSettingView.vue +37 -0
- package/src/views/order-settings/delivery/delivery.spec.ts +23 -3
- package/src/views/order-settings/delivery/delivery.ts +4 -0
- package/dist/KioskSettingView-M3pBFSwt.js +0 -839
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as W, ref as x, resolveComponent as R, openBlock as g, createElementBlock as D, createElementVNode as h, toDisplayString as C, createVNode as T, unref as F, 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 v } from "./app-
|
|
2
|
+
import { e as v } from "./app-C9nnuR9O.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, j as V, b as Q, i as q } from "./order.dto-
|
|
6
|
+
import { r as O, g as a, j as V, b as Q, i as q } from "./order.dto-CfCfBJYu.js";
|
|
7
7
|
import { u as ce } from "./snackbar-DZQ0_reQ.js";
|
|
8
8
|
const pe = /* @__PURE__ */ W({
|
|
9
9
|
__name: "OfflinePaymentTypeDialogContent",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Cf = Object.defineProperty;
|
|
2
2
|
var kf = (c, f, p) => f in c ? Cf(c, f, { enumerable: !0, configurable: !0, writable: !0, value: p }) : c[f] = p;
|
|
3
3
|
var ka = (c, f, p) => kf(c, typeof f != "symbol" ? f + "" : f, p);
|
|
4
|
-
import { e as te, k as Te, c as le, j as Oi, v as lt, i as Ff } from "./app-
|
|
4
|
+
import { e as te, k as Te, c as le, j as Oi, v as lt, i as Ff } from "./app-C9nnuR9O.js";
|
|
5
5
|
import { useCoreStore as Pn } from "@feedmepos/mf-common";
|
|
6
6
|
function dd(c, f) {
|
|
7
7
|
return function() {
|
|
@@ -26277,7 +26277,11 @@ const Xr = o.z.enum([
|
|
|
26277
26277
|
"WEB_V3_APP",
|
|
26278
26278
|
"KIOSK_APP",
|
|
26279
26279
|
"TABLET_APP",
|
|
26280
|
-
"UNKNOWN"
|
|
26280
|
+
"UNKNOWN",
|
|
26281
|
+
// A merchant's own app on the mp-sdk (The Toast, Feeds). WHICH app is
|
|
26282
|
+
// `orderMetadata.appName`. Last on purpose: the generated proto numbers values by
|
|
26283
|
+
// position, so a new value only ever goes at the end.
|
|
26284
|
+
"MINIPROGRAM_APP"
|
|
26281
26285
|
]), ts = o.z.object({
|
|
26282
26286
|
deliveryType: o.z.lazy(() => Tr).nullish(),
|
|
26283
26287
|
deliveryRemark: o.z.string().nullish()
|
|
@@ -38389,7 +38393,12 @@ const O4 = o.z.object({
|
|
|
38389
38393
|
// restriction" — the kiosk shows every language it ships (KIOSK_LOCALES).
|
|
38390
38394
|
// Order is not meaningful; the kiosk renders them in its own fixed order and
|
|
38391
38395
|
// silently ignores any code it has no message bundle for.
|
|
38392
|
-
languages: o.z.array(ia).nullish()
|
|
38396
|
+
languages: o.z.array(ia).nullish(),
|
|
38397
|
+
// Smallest weight, in whole grams, a kiosk may sell for an item sold by
|
|
38398
|
+
// weight (KDI-5138). Nullish = no minimum beyond "more than 0 g", the same
|
|
38399
|
+
// as POS. The kiosk will not lock a lighter reading, and the server rejects
|
|
38400
|
+
// a lighter weight at submit on the kiosk route.
|
|
38401
|
+
minWeighGrams: o.z.number().nullish()
|
|
38393
38402
|
}), ld = o.z.record(ia, o.z.string()), $s = o.z.object({
|
|
38394
38403
|
payAtCounter: ld.nullish(),
|
|
38395
38404
|
paid: ld.nullish()
|
|
@@ -38444,7 +38453,11 @@ const O4 = o.z.object({
|
|
|
38444
38453
|
// restriction" — the kiosk shows every language it ships (KIOSK_LOCALES).
|
|
38445
38454
|
// Order is not meaningful; the kiosk renders them in its own fixed order and
|
|
38446
38455
|
// silently ignores any code it has no message bundle for.
|
|
38447
|
-
languages: o.z.array(ia).nullish()
|
|
38456
|
+
languages: o.z.array(ia).nullish(),
|
|
38457
|
+
// Minimum sellable weight in whole grams for sold-by-weight items (KDI-5138);
|
|
38458
|
+
// see FdoOrderKioskSettings. Must be listed here, or a kiosk-settings save
|
|
38459
|
+
// would drop the stored value (same trap as allowReject above).
|
|
38460
|
+
minWeighGrams: o.z.number().nullish()
|
|
38448
38461
|
}).default({
|
|
38449
38462
|
canTakeaway: !1
|
|
38450
38463
|
}), J4 = af.extend({
|
|
@@ -39371,6 +39384,14 @@ const Xz = o.z.object({
|
|
|
39371
39384
|
productId: o.z.string().nullish(),
|
|
39372
39385
|
subItems: o.z.array(vf),
|
|
39373
39386
|
quantity: o.z.number(),
|
|
39387
|
+
/**
|
|
39388
|
+
* Weight of a sold-by-weight item, in whole grams (the POS contract), e.g. 250.
|
|
39389
|
+
* Only meaningful when the menu item has a `unit` and a `perXUnit`: the line is
|
|
39390
|
+
* then priced price x unitQuantity / perXUnit and `quantity` is ignored.
|
|
39391
|
+
* Null for every other item. The server keeps it only for a weighed menu item
|
|
39392
|
+
* and only as a positive integer (`rectifyOrderItems`).
|
|
39393
|
+
*/
|
|
39394
|
+
unitQuantity: o.z.number().nullish(),
|
|
39374
39395
|
remark: o.z.string().nullish(),
|
|
39375
39396
|
product: Xz,
|
|
39376
39397
|
variantSelected: tv.nullish(),
|
|
@@ -39448,7 +39469,12 @@ const Xz = o.z.object({
|
|
|
39448
39469
|
// NFC tag the customer tapped to open the app, when they arrived that way. An NFC tap resolves
|
|
39449
39470
|
// to the same `/dine?id=&seat=` URL a printed table QR uses, so without this the two entry
|
|
39450
39471
|
// points are indistinguishable on the order. Absent = not an NFC tap.
|
|
39451
|
-
nfcId: o.z.string().nullish()
|
|
39472
|
+
nfcId: o.z.string().nullish(),
|
|
39473
|
+
// Which app placed the order, in the app's own words ("The Toast"), and its build
|
|
39474
|
+
// (a commit or version). Free text beside the `orderPlatform` enum: the enum says
|
|
39475
|
+
// what KIND of client it was, these say which one.
|
|
39476
|
+
appName: o.z.string().nullish(),
|
|
39477
|
+
appBuild: o.z.string().nullish()
|
|
39452
39478
|
}), sv = o.z.object({
|
|
39453
39479
|
/**
|
|
39454
39480
|
* Last heartbeat, ISO-8601 UTC. NOT the acquisition time — the holder refreshes this
|
|
@@ -39555,6 +39581,14 @@ const Xz = o.z.object({
|
|
|
39555
39581
|
productId: o.z.string().nullish(),
|
|
39556
39582
|
subItems: o.z.array(Ef),
|
|
39557
39583
|
quantity: o.z.number(),
|
|
39584
|
+
/**
|
|
39585
|
+
* Weight of a sold-by-weight item, in whole grams (the POS contract), e.g. 250.
|
|
39586
|
+
* Only meaningful when the menu item has a `unit` and a `perXUnit`: the line is
|
|
39587
|
+
* then priced price x unitQuantity / perXUnit and `quantity` is ignored.
|
|
39588
|
+
* Null for every other item. The server keeps it only for a weighed menu item
|
|
39589
|
+
* and only as a positive integer (`rectifyOrderItems`).
|
|
39590
|
+
*/
|
|
39591
|
+
unitQuantity: o.z.number().nullish(),
|
|
39558
39592
|
remark: o.z.string().nullish(),
|
|
39559
39593
|
product: js,
|
|
39560
39594
|
variantSelected: Hn.nullish(),
|
|
@@ -39678,7 +39712,10 @@ const ks = o.z.object({
|
|
|
39678
39712
|
catalogId: o.z.string().nullish(),
|
|
39679
39713
|
businessId: o.z.string(),
|
|
39680
39714
|
expiredAt: o.z.string(),
|
|
39681
|
-
|
|
39715
|
+
// Not core's F_RESTAURANT_FEATURE: the licence team owns these values and adds new ones
|
|
39716
|
+
// (e.g. `queuePremium`) without a core release. A strict enum here fails the whole
|
|
39717
|
+
// response for any value we don't know yet (prod MY 2026-10-09). Validate at the point of use.
|
|
39718
|
+
features: o.z.array(o.z.string()).nullish().default([]),
|
|
39682
39719
|
profile: te.FdoProfile.extend({ url: o.z.string().nullish().default("") }),
|
|
39683
39720
|
dineIn: o.z.lazy(() => te.FdoRestaurantDineIn).nullish(),
|
|
39684
39721
|
pickup: o.z.lazy(() => te.FdoRestaurantPickup).nullish()
|