@feedmepos/mf-order-setting 0.0.102 → 0.0.103

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 (139) hide show
  1. package/dist/{DisplaySystemView-jnt6letY.js → DisplaySystemView-BBiZqcWq.js} +1497 -1468
  2. package/dist/{FoodCourtInvitationsView-DoynqFWB.js → FoodCourtInvitationsView-DwOkVs9m.js} +4 -4
  3. package/dist/{FoodCourtOrderSettingsView-DYZLhTHy.js → FoodCourtOrderSettingsView-C9Ag5Bsg.js} +1 -1
  4. package/dist/FoodCourtOrdersView-y4EwK3sn.js +1173 -0
  5. package/dist/{FoodCourtStallsView-CRMTt5BB.js → FoodCourtStallsView-Bi8H-yR7.js} +2 -2
  6. package/dist/{FoodCourtStatusView-C-b-eI-8.js → FoodCourtStatusView-jugAzTKg.js} +1 -1
  7. package/dist/KioskDevicesView-CYiew4X5.js +4 -0
  8. package/dist/KioskDevicesView.vue_vue_type_script_setup_true_lang-BCvbeo7R.js +1497 -0
  9. package/dist/KioskSettingView-AKBiij9a.js +1124 -0
  10. package/dist/KioskView-zKB6mC8I.js +765 -0
  11. package/dist/{OrderSettingsView-BBCnekaj.js → OrderSettingsView-CoV_yX3m.js} +22064 -21635
  12. package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-DjoTyV6m.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-KSMU_jGl.js} +1 -1
  13. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  14. package/dist/{app-Dvk30CIa.js → app-CmuI6uSl.js} +3589 -2902
  15. package/dist/app.js +1 -1
  16. package/dist/{dayjs.min-DUFHhM7O.js → dayjs.min-B3MssMma.js} +1 -1
  17. package/dist/{featureFlag-BvcirzHS.js → featureFlag-CWvkPOBY.js} +123 -130
  18. package/dist/frontend/mf-order/src/api/food-court/index.d.ts +51 -0
  19. package/dist/frontend/mf-order/src/api/kiosk/index.d.ts +4 -0
  20. package/dist/frontend/mf-order/src/api/payment/index.d.ts +8 -0
  21. package/dist/frontend/mf-order/src/api/queue/index.d.ts +13 -0
  22. package/dist/frontend/mf-order/src/api/restaurant-setting/index.d.ts +9 -1
  23. package/dist/frontend/mf-order/src/app.d.ts +687 -0
  24. package/dist/frontend/mf-order/src/main.d.ts +687 -0
  25. package/dist/frontend/mf-order/src/modules/display-system/interface.d.ts +5 -0
  26. package/dist/frontend/mf-order/src/modules/kiosk/interface.d.ts +4 -0
  27. package/dist/frontend/mf-order/src/modules/kiosk/license.d.ts +92 -0
  28. package/dist/frontend/mf-order/src/modules/kiosk/outletLoad.d.ts +15 -0
  29. package/dist/frontend/mf-order/src/modules/kiosk/settingsSections.d.ts +24 -0
  30. package/dist/frontend/mf-order/src/modules/kiosk/useKioskSettings.d.ts +29 -0
  31. package/dist/frontend/mf-order/src/modules/payment/paymentDevice.d.ts +58 -0
  32. package/dist/frontend/mf-order/src/stores/kiosk/index.d.ts +67 -1
  33. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +19 -10
  34. package/dist/frontend/mf-order/src/stores/payment/index.d.ts +59 -1
  35. package/dist/frontend/mf-order/src/views/food-court/food-court-export.d.ts +38 -0
  36. package/dist/frontend/mf-order/src/views/kiosk/devices/KioskDeviceCard.vue.d.ts +3 -0
  37. package/dist/frontend/mf-order/src/views/kiosk/devices/KioskDevicesView.vue.d.ts +7 -0
  38. package/dist/frontend/mf-order/src/views/kiosk/devices/KioskLicenseSummary.vue.d.ts +7 -0
  39. package/dist/frontend/mf-order/src/views/kiosk/devices/KioskLicensesView.vue.d.ts +6 -0
  40. package/dist/frontend/mf-order/src/views/kiosk/devices/KioskOtpDialog.vue.d.ts +3 -0
  41. package/dist/frontend/mf-order/src/views/kiosk/devices/KioskPaymentDeviceCard.vue.d.ts +17 -0
  42. package/dist/frontend/mf-order/src/views/kiosk/settings/KioskSettingView.vue.d.ts +5 -2
  43. package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpSettingDialogContent.vue.d.ts +0 -9
  44. package/dist/frontend/mf-order/src/views/order-settings/pos-status/PosOrderingStatus.vue.d.ts +17 -0
  45. package/dist/frontend/mf-order/src/views/order-settings/pos-status/pos-status.d.ts +44 -0
  46. package/dist/frontend/mf-order/src/views/order-settings/queue/called-message.d.ts +1 -0
  47. package/dist/frontend/mf-order/src/views/order-settings/queue/phone-join-mode.d.ts +25 -0
  48. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  49. package/dist/{index-C4n5H7t3.js → index-BQa8AudZ.js} +3 -3
  50. package/dist/index-CMOvrim4.js +147 -0
  51. package/dist/{index-CW4VlFWz.js → index-D5qh2_4b.js} +1 -1
  52. package/dist/{index-C5n6lil6.js → index-Dup6kWLX.js} +6 -6
  53. package/dist/{index-CGxCWKHB.js → index-wuFIsXHT.js} +188 -179
  54. package/dist/{order.dto-Cb_gh3iB.js → order.dto-BD9raQG5.js} +2782 -2735
  55. package/dist/package/entity/display/blocks.d.ts +12 -2
  56. package/dist/package/entity/marketing/marketing.dto.d.ts +18 -18
  57. package/dist/package/entity/order-platform/external/reconciliation/external-reconciliation.do.d.ts +24 -24
  58. package/dist/package/entity/order-platform/menu.dto.d.ts +20 -20
  59. package/dist/package/entity/order-setting/order-setting.do.d.ts +10 -0
  60. package/dist/package/entity/order-setting/order-setting.dto.d.ts +26 -0
  61. package/dist/package/entity/order-setting/queue/queue.do.d.ts +23 -0
  62. package/dist/package/entity/order-setting/queue/queue.dto.d.ts +14 -0
  63. package/dist/package/entity/queue/queue.do.d.ts +153 -0
  64. package/dist/package/entity/queue/queue.dto.d.ts +221 -2
  65. package/dist/package/entity/queue/queue.enum.d.ts +5 -0
  66. package/dist/package/entity/restaurant/restaurant.dto.d.ts +20 -0
  67. package/dist/style.css +1 -1
  68. package/dist/{index-ILnighyU.js → useInternalUser-CHtaur9A.js} +93 -81
  69. package/package.json +2 -1
  70. package/src/api/food-court/index.ts +63 -0
  71. package/src/api/kiosk/index.ts +8 -0
  72. package/src/api/payment/index.ts +18 -1
  73. package/src/api/queue/index.ts +39 -0
  74. package/src/api/restaurant-setting/index.ts +14 -0
  75. package/src/locales/en-US.json +197 -26
  76. package/src/locales/ja-JP.json +193 -23
  77. package/src/locales/th-TH.json +193 -21
  78. package/src/locales/zh-CN.json +197 -23
  79. package/src/modules/display-system/interface.spec.ts +26 -1
  80. package/src/modules/display-system/interface.ts +20 -0
  81. package/src/modules/kiosk/interface.ts +4 -0
  82. package/src/modules/kiosk/license.spec.ts +167 -0
  83. package/src/modules/kiosk/license.ts +175 -0
  84. package/src/modules/kiosk/outletLoad.spec.ts +25 -0
  85. package/src/modules/kiosk/outletLoad.ts +19 -0
  86. package/src/modules/kiosk/settingsSections.spec.ts +85 -0
  87. package/src/modules/kiosk/settingsSections.ts +82 -0
  88. package/src/modules/kiosk/useKioskSettings.spec.ts +157 -0
  89. package/src/modules/kiosk/useKioskSettings.ts +61 -0
  90. package/src/modules/payment/paymentDevice.spec.ts +175 -0
  91. package/src/modules/payment/paymentDevice.ts +156 -0
  92. package/src/stores/kiosk/index.ts +16 -1
  93. package/src/stores/kiosk/mapper.ts +2 -0
  94. package/src/stores/order-setting/index.spec.ts +83 -0
  95. package/src/stores/order-setting/index.ts +49 -27
  96. package/src/stores/payment/index.spec.ts +86 -0
  97. package/src/stores/payment/index.ts +48 -2
  98. package/src/views/display-system/DisplayInspector.vue +17 -8
  99. package/src/views/display-system/DisplayTemplateEditor.vue +3 -1
  100. package/src/views/food-court/FoodCourtOrdersView.vue +46 -1
  101. package/src/views/food-court/food-court-export.spec.ts +151 -0
  102. package/src/views/food-court/food-court-export.ts +283 -0
  103. package/src/views/kiosk/KioskStatePanel.vue +2 -2
  104. package/src/views/kiosk/KioskView.vue +219 -82
  105. package/src/views/kiosk/devices/KioskDeviceCard.vue +148 -23
  106. package/src/views/kiosk/devices/KioskDevicesView.vue +48 -10
  107. package/src/views/kiosk/devices/KioskLicenseSummary.vue +79 -0
  108. package/src/views/kiosk/devices/KioskLicensesView.vue +152 -0
  109. package/src/views/kiosk/devices/KioskOtpDialog.vue +41 -1
  110. package/src/views/kiosk/devices/KioskPaymentDeviceCard.spec.ts +97 -0
  111. package/src/views/kiosk/devices/KioskPaymentDeviceCard.vue +221 -0
  112. package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +1 -1
  113. package/src/views/kiosk/settings/KioskSettingView.vue +702 -419
  114. package/src/views/order-settings/delivery/DeliverySetting.vue +4 -0
  115. package/src/views/order-settings/dine-in/DineInSetting.vue +4 -0
  116. package/src/views/order-settings/pickup/PickUpSetting.vue +4 -4
  117. package/src/views/order-settings/pickup/PickUpSettingDialogContent.vue +0 -23
  118. package/src/views/order-settings/pos-status/PosOrderingStatus.spec.ts +207 -0
  119. package/src/views/order-settings/pos-status/PosOrderingStatus.vue +209 -0
  120. package/src/views/order-settings/pos-status/pos-status.spec.ts +103 -0
  121. package/src/views/order-settings/pos-status/pos-status.ts +86 -0
  122. package/src/views/order-settings/queue/QueueSetting.source.spec.ts +43 -0
  123. package/src/views/order-settings/queue/QueueSetting.vue +289 -15
  124. package/src/views/order-settings/queue/called-message.spec.ts +29 -1
  125. package/src/views/order-settings/queue/called-message.ts +18 -0
  126. package/src/views/order-settings/queue/phone-join-mode.spec.ts +90 -0
  127. package/src/views/order-settings/queue/phone-join-mode.ts +49 -0
  128. package/dist/FoodCourtOrdersView-CAPOycT3.js +0 -544
  129. package/dist/KioskDevicesView-B0U9JxRl.js +0 -4
  130. package/dist/KioskDevicesView.vue_vue_type_script_setup_true_lang-V3ai4FVI.js +0 -937
  131. package/dist/KioskSettingView-rdom_aS8.js +0 -880
  132. package/dist/KioskView-DOON9zR6.js +0 -516
  133. package/dist/frontend/mf-order/src/views/kiosk/settings/KioskDisplayStandSection.vue.d.ts +0 -10
  134. package/dist/frontend/mf-order/src/views/kiosk/settings/KioskInstructionSection.vue.d.ts +0 -15
  135. package/dist/frontend/mf-order/src/views/kiosk/settings/KioskPickAtCounterSection.vue.d.ts +0 -10
  136. package/dist/index-CaHG3M7C.js +0 -135
  137. package/src/views/kiosk/settings/KioskDisplayStandSection.vue +0 -189
  138. package/src/views/kiosk/settings/KioskInstructionSection.vue +0 -40
  139. package/src/views/kiosk/settings/KioskPickAtCounterSection.vue +0 -68
@@ -14,10 +14,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
14
14
  type: PropType<OrderSettingChannelAutoAccept | null>;
15
15
  default: null;
16
16
  };
17
- acceptPickup: {
18
- type: BooleanConstructor;
19
- default: boolean;
20
- };
21
17
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
22
18
  "update-pickup": (v: {
23
19
  catalogId?: string | null | undefined;
@@ -63,10 +59,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
63
59
  type: PropType<OrderSettingChannelAutoAccept | null>;
64
60
  default: null;
65
61
  };
66
- acceptPickup: {
67
- type: BooleanConstructor;
68
- default: boolean;
69
- };
70
62
  }>> & Readonly<{
71
63
  "onUpdate-pickup"?: ((v: {
72
64
  catalogId?: string | null | undefined;
@@ -104,7 +96,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
104
96
  autoAccept: boolean;
105
97
  autoAcceptPaidOnly: boolean;
106
98
  } | null;
107
- acceptPickup: boolean;
108
99
  orderPickupSettings: {
109
100
  autoCloseBill?: boolean | null | undefined;
110
101
  allowReject?: boolean | null | undefined;
@@ -0,0 +1,17 @@
1
+ import { type PropType } from 'vue';
2
+ import { type PosOrderChannel } from './pos-status';
3
+ declare function load(): Promise<void>;
4
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
5
+ channel: {
6
+ type: PropType<PosOrderChannel>;
7
+ required: true;
8
+ };
9
+ }>, {
10
+ load: typeof load;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
+ channel: {
13
+ type: PropType<PosOrderChannel>;
14
+ required: true;
15
+ };
16
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
17
+ export default _default;
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Read-only POS facts that decide whether a customer's online order is refused,
3
+ * shown at the top of the Order Setting tabs so support staff see the cause at
4
+ * once (Hock Kee Bangsar South, 2026-11-05: `acceptDineIn` was off on the POS
5
+ * while every portal toggle was on, and the refusal was blamed on the network).
6
+ *
7
+ * The rules here MUST stay in lockstep with the server's submit gate:
8
+ * - heartbeat: `Restaurant.isHeartbeatExpired` (backend/libs/manager/restaurant.ts)
9
+ * and Go `manager.IsHeartbeatExpired` (go/packages/ordering_backend/pkg/manager/restaurant.go);
10
+ * - accept toggles: `validateDineInCanSubmit` / `validatePickupCanSubmit` /
11
+ * `validateDeliveryCanSubmit` (backend/libs/manager/order/fn.ts), which refuse
12
+ * on any falsy value, so a missing toggle counts as off.
13
+ */
14
+ export type PosOrderChannel = 'dineIn' | 'pickup' | 'delivery';
15
+ /** The restaurant-setting toggle (set on the POS) that gates each channel. */
16
+ export declare const CHANNEL_ACCEPT_KEY: {
17
+ readonly dineIn: "acceptDineIn";
18
+ readonly pickup: "acceptPickup";
19
+ readonly delivery: "acceptDelivery";
20
+ };
21
+ type AcceptKey = (typeof CHANNEL_ACCEPT_KEY)[PosOrderChannel];
22
+ /** Seconds a heartbeat stays fresh: 120 for POS major 8 (pre-releases too), else 30. */
23
+ export declare function posHeartbeatTimeoutSeconds(posVersion?: string | null): number;
24
+ /**
25
+ * Whether the server would treat the Main POS as online at `now`. A missing or
26
+ * unreadable heartbeat is offline; the exact timeout boundary is offline too
27
+ * (`!moment().isBefore(heartbeat + timeout)` on the server).
28
+ */
29
+ export declare function isPosOnline(heartbeat: string | Date | null | undefined, posVersion: string | null | undefined, now?: number): boolean;
30
+ export type AcceptState = 'on' | 'off' | 'unknown';
31
+ /**
32
+ * The channel's POS toggle as the server reads it. A missing setting means the
33
+ * read failed, which is "unknown": never guess "on".
34
+ */
35
+ export declare function channelAcceptState(setting: Partial<Record<AcceptKey, boolean | null>> | null | undefined, channel: PosOrderChannel): AcceptState;
36
+ /**
37
+ * A heartbeat dated more than a minute after `now` means the POS clock is ahead.
38
+ * The server still counts it as online until that time passes, so a POS that is
39
+ * really off can look online: support staff must be told the status is not proof.
40
+ */
41
+ export declare function isHeartbeatInFuture(heartbeat: string | Date | null | undefined, now?: number): boolean;
42
+ /** Short age of the last heartbeat: "45 s", "12 min", "3 h", "2 d". */
43
+ export declare function formatAge(heartbeat: string | Date, now?: number): string;
44
+ export {};
@@ -9,6 +9,7 @@ export declare function previewQueueCode(codeSettings: {
9
9
  end?: number | null;
10
10
  }[] | null | undefined): string;
11
11
  export type CalledMessageWarning = 'multiPart' | 'notSevenBit' | 'linkOrPhone' | 'timerNotMentioned' | 'placeholderWhileTimerOff';
12
+ export declare function isLineWarning(warning: CalledMessageWarning): boolean;
12
13
  export type CalledMessageCheck = {
13
14
  /** The whole SMS as queue-backend would send it, with the outlet's longest code. */
14
15
  preview: string;
@@ -0,0 +1,25 @@
1
+ import type { FdoOrderQueueSettings } from '@entity';
2
+ /**
3
+ * "Phone join" on the Queue page (ITS-002803): where a customer may join the queue from their
4
+ * own phone. One setting on the page, two stored flags:
5
+ *
6
+ * - Anywhere: `disableRemoteQueue: false, requireEntranceCode: false`
7
+ * - Only with entrance QR: `disableRemoteQueue: false, requireEntranceCode: true`
8
+ * - Off (counter only): `disableRemoteQueue: true`, `requireEntranceCode` left as stored
9
+ *
10
+ * Off wins on the server whatever `requireEntranceCode` says, so leaving it alone keeps the
11
+ * merchant's choice for when they switch phone joins back on. Queues created at the POS are
12
+ * never affected by any of the three.
13
+ */
14
+ export declare const PHONE_JOIN_MODES: readonly ["anywhere", "entrance", "off"];
15
+ export type PhoneJoinMode = (typeof PHONE_JOIN_MODES)[number];
16
+ type PhoneJoinFields = Pick<FdoOrderQueueSettings, 'disableRemoteQueue' | 'requireEntranceCode'>;
17
+ export declare function phoneJoinModeOf(settings: PhoneJoinFields): PhoneJoinMode;
18
+ /** `settings` set to `mode`, as a new object. */
19
+ export declare function withPhoneJoinMode<T extends PhoneJoinFields>(settings: T, mode: PhoneJoinMode): T;
20
+ /** queue-backend's own default for an absent or unreadable reset time. */
21
+ export declare const DEFAULT_ENTRANCE_CODE_RESET_TIME = "04:00";
22
+ export declare function isEntranceCodeResetTimeValid(value: unknown): value is string;
23
+ /** The reset time queue-backend will use: the stored one, or its default when absent or invalid. */
24
+ export declare function effectiveEntranceCodeResetTime(value: string | null | undefined): string;
25
+ export {};