@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.
Files changed (44) hide show
  1. package/dist/{DisplaySystemView-BiKFL6UY.js → DisplaySystemView-BA-5JObJ.js} +1 -1
  2. package/dist/{KioskDevicesView-DQPue13D.js → KioskDevicesView-CgdnW9N9.js} +1 -1
  3. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-BAe1eQvx.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-C9X9ziUm.js} +3 -3
  4. package/dist/KioskSettingView-CVck01e7.js +860 -0
  5. package/dist/{KioskView-BfTNsmN1.js → KioskView-DKY2QEh5.js} +54 -48
  6. package/dist/{OrderSettingsView-CowX8_oN.js → OrderSettingsView-CEPIZmHA.js} +774 -768
  7. package/dist/{app-DgZSoUgk.js → app-C9nnuR9O.js} +206 -190
  8. package/dist/app.js +1 -1
  9. package/dist/frontend/mf-order/src/app.d.ts +16 -0
  10. package/dist/frontend/mf-order/src/main.d.ts +16 -0
  11. package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +2 -0
  12. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +6 -0
  13. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  14. package/dist/{index-CGJIcLNE.js → index-BaC_Douy.js} +2 -2
  15. package/dist/{index-CWm0u6lo.js → index-DGAU5Dhc.js} +1 -1
  16. package/dist/{index-DzmXxFJu.js → index-Gk7389CW.js} +1 -1
  17. package/dist/{order.dto-DQWf-RVV.js → order.dto-CfCfBJYu.js} +43 -6
  18. package/dist/package/entity/food-court/food-court.dto.d.ts +51 -121
  19. package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +10 -0
  20. package/dist/package/entity/kiosk/kiosk.do.d.ts +16 -16
  21. package/dist/package/entity/kiosk/kiosk.dto.d.ts +19 -19
  22. package/dist/package/entity/order/order-item/order-item.dto.d.ts +20 -0
  23. package/dist/package/entity/order/order.do.d.ts +19 -3
  24. package/dist/package/entity/order/order.dto.d.ts +107 -91
  25. package/dist/package/entity/order/order.enum.d.ts +1 -1
  26. package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +3 -0
  27. package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +6 -0
  28. package/dist/package/entity/order-setting/order-setting.do.d.ts +5 -0
  29. package/dist/package/entity/order-setting/order-setting.dto.d.ts +13 -0
  30. package/dist/package/entity/queue/queue.dto.d.ts +23 -36
  31. package/dist/package/entity/restaurant/restaurant.dto.d.ts +10 -15
  32. package/dist/package/entity/websocket/websocket.dto.d.ts +12 -0
  33. package/package.json +1 -1
  34. package/src/locales/en-US.json +4 -0
  35. package/src/locales/ja-JP.json +4 -0
  36. package/src/locales/th-TH.json +4 -0
  37. package/src/locales/zh-CN.json +4 -0
  38. package/src/modules/order-setting/kiosk/interface.ts +10 -0
  39. package/src/stores/order-setting/mapper.spec.ts +21 -0
  40. package/src/stores/order-setting/mapper.ts +8 -2
  41. package/src/views/kiosk/settings/KioskSettingView.vue +37 -0
  42. package/src/views/order-settings/delivery/delivery.spec.ts +23 -3
  43. package/src/views/order-settings/delivery/delivery.ts +4 -0
  44. 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-DgZSoUgk.js";
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-DQWf-RVV.js";
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,4 +1,4 @@
1
- import { c as st, g as Kr } from "./app-DgZSoUgk.js";
1
+ import { c as st, g as Kr } from "./app-C9nnuR9O.js";
2
2
  var oe = { exports: {} }, ir;
3
3
  function nt() {
4
4
  return ir || (ir = 1, function(u, p) {
@@ -1,4 +1,4 @@
1
- import { g as n, B as a, b as r, r as e } from "./order.dto-DQWf-RVV.js";
1
+ import { g as n, B as a, b as r, r as e } from "./order.dto-CfCfBJYu.js";
2
2
  async function i() {
3
3
  const t = await e().get("/order-settings");
4
4
  return n(t);
@@ -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-DgZSoUgk.js";
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
- features: o.z.array(te.F_RESTAURANT_FEATURE).nullish().default([]),
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()