@feedmepos/mf-order-setting 0.0.100 → 0.0.101

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 (43) hide show
  1. package/dist/{DisplaySystemView-bnG_JNDd.js → DisplaySystemView-B0OFPhT_.js} +4 -4
  2. package/dist/{FoodCourtInvitationsView-DbuetF4z.js → FoodCourtInvitationsView-B334lj_D.js} +4 -4
  3. package/dist/{FoodCourtOrderSettingsView-BXgApCVG.js → FoodCourtOrderSettingsView-DEYQ6O7B.js} +1 -1
  4. package/dist/{FoodCourtOrdersView-K0iC1arR.js → FoodCourtOrdersView-kt9JfcJs.js} +3 -3
  5. package/dist/{FoodCourtStallsView-DijfdyBw.js → FoodCourtStallsView-ptDjHESk.js} +2 -2
  6. package/dist/{FoodCourtStatusView-DTriHcSD.js → FoodCourtStatusView-CjNnTpE5.js} +1 -1
  7. package/dist/{KioskDevicesView-d2SWWkhC.js → KioskDevicesView-BQhgFAGI.js} +1 -1
  8. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-DA6c96uZ.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-Dt3ShVeD.js} +5 -5
  9. package/dist/{KioskSettingView-I7Hgzrvr.js → KioskSettingView-BUXtHLZR.js} +3 -3
  10. package/dist/{KioskView-B_lLNsaU.js → KioskView-5qVlW-kC.js} +6 -6
  11. package/dist/{OrderSettingsView-8OS93YGL.js → OrderSettingsView-BI9fe4ks.js} +10603 -10595
  12. package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-K0oCZMt8.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-BXLhWx3Z.js} +1 -1
  13. package/dist/{app-qdN8kXAM.js → app-DCKPiyKq.js} +511 -507
  14. package/dist/app.js +1 -1
  15. package/dist/{dayjs.min-C-IKwmsU.js → dayjs.min-D7WjNGf-.js} +1 -1
  16. package/dist/{featureFlag-z_-AhzUC.js → featureFlag-Dr-_Iams.js} +1 -1
  17. package/dist/frontend/mf-order/src/api/order-setting/index.d.ts +3 -1
  18. package/dist/frontend/mf-order/src/api/order-setting/queue-counter.d.ts +14 -0
  19. package/dist/frontend/mf-order/src/app.d.ts +4 -0
  20. package/dist/frontend/mf-order/src/main.d.ts +4 -0
  21. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  22. package/dist/{index-DjtNAyFp.js → index-4UdKsfrs.js} +4 -4
  23. package/dist/{index-WSlqpTW2.js → index-DKUkKt64.js} +1 -1
  24. package/dist/{index-BK-RT8YN.js → index-DWbgaGih.js} +1 -1
  25. package/dist/{index-DfsaaxdM.js → index-DctLjb3F.js} +1 -1
  26. package/dist/{index-BxK-mqfV.js → index-DuWgIluk.js} +1 -1
  27. package/dist/index-cDKD4gwv.js +39 -0
  28. package/dist/{order.dto-BTF8MlM5.js → order.dto-CGpR_O3X.js} +1119 -1116
  29. package/dist/package/entity/order-setting/order-setting.dto.d.ts +236 -2
  30. package/dist/package/entity/order-setting/queue/queue.dto.d.ts +263 -0
  31. package/package.json +1 -1
  32. package/src/api/order-setting/index.ts +4 -2
  33. package/src/api/order-setting/queue-counter.spec.ts +74 -0
  34. package/src/api/order-setting/queue-counter.ts +34 -0
  35. package/src/locales/en-US.json +1 -0
  36. package/src/locales/ja-JP.json +1 -0
  37. package/src/locales/th-TH.json +1 -0
  38. package/src/locales/zh-CN.json +1 -0
  39. package/src/views/order-settings/queue/QueueSetting.source.spec.ts +29 -0
  40. package/src/views/order-settings/queue/QueueSetting.vue +22 -1
  41. package/src/views/order-settings/reservation/ReservationSetting.vue +8 -0
  42. package/src/views/order-settings/reservation/reservation-pos-note.spec.ts +42 -0
  43. package/dist/index-DeUtM1Z8.js +0 -24
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as e, x as r, y as o } from "./app-qdN8kXAM.js";
1
+ import { _ as e, x as r, y as o } from "./app-DCKPiyKq.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,4 +1,4 @@
1
- import { c as R, g as K } from "./app-qdN8kXAM.js";
1
+ import { c as R, g as K } from "./app-DCKPiyKq.js";
2
2
  var N = { exports: {} }, E;
3
3
  function X() {
4
4
  return E || (E = 1, function(V, et) {
@@ -2,7 +2,7 @@ var le = Object.defineProperty;
2
2
  var ue = (S, c, v) => c in S ? le(S, c, { enumerable: !0, configurable: !0, writable: !0, value: v }) : S[c] = v;
3
3
  var ot = (S, c, v) => ue(S, typeof c != "symbol" ? c + "" : c, v);
4
4
  import { readonly as Pt, ref as Ut } from "vue";
5
- import { c as st } from "./app-qdN8kXAM.js";
5
+ import { c as st } from "./app-DCKPiyKq.js";
6
6
  const _e = (S, c) => {
7
7
  const v = S.__vccOpts || S;
8
8
  for (const [d, s] of c)
@@ -1,6 +1,8 @@
1
1
  import { OrderSettingsDto, OrderSettingUpdateDto } from '@entity';
2
+ import { withoutQueueCounters } from './queue-counter';
2
3
  declare function getOrderSetting(): Promise<OrderSettingsDto>;
3
- declare function updateOrderSetting(payload: OrderSettingUpdateDto): Promise<OrderSettingsDto>;
4
+ /** Queue running numbers are left out unless `keepQueueCounter` keeps them: see `withoutQueueCounters`. */
5
+ declare function updateOrderSetting(payload: OrderSettingUpdateDto, keepQueueCounter?: Parameters<typeof withoutQueueCounters>[1]): Promise<OrderSettingsDto>;
4
6
  export declare const OrderSettingApi: {
5
7
  getOrderSetting: typeof getOrderSetting;
6
8
  updateOrderSetting: typeof updateOrderSetting;
@@ -0,0 +1,14 @@
1
+ import type { OrderSettingUpdateDto } from '@entity';
2
+ type QueueSegment = NonNullable<NonNullable<OrderSettingUpdateDto['queueSettings']>['codeSettings']>[number];
3
+ /**
4
+ * Leaves each queue segment's running number (`codeSettings[].current`) out of a
5
+ * settings save, except where `keep` says the save means to set it.
6
+ *
7
+ * Every settings page saves the whole document it loaded, and the running number in
8
+ * it is the one from when the page opened. Queue-backend moves that number on every
9
+ * new queue, so writing it back set the counter back and the next customers got
10
+ * codes already issued. Left out, order-backend keeps the stored number
11
+ * (`mergeQueueSegments`).
12
+ */
13
+ export declare function withoutQueueCounters(payload: OrderSettingUpdateDto, keep?: (segment: QueueSegment, index: number) => boolean): OrderSettingUpdateDto;
14
+ export {};
@@ -618,6 +618,7 @@ export declare const i18nMessages: {
618
618
  paxMaxHint: string;
619
619
  reservation: string;
620
620
  reservationStatus: string;
621
+ reservationNeedsPosV8: string;
621
622
  reservationAvailability: string;
622
623
  notificationSettings: string;
623
624
  smsEnabled: string;
@@ -2041,6 +2042,7 @@ export declare const i18nMessages: {
2041
2042
  paxMaxHint: string;
2042
2043
  reservation: string;
2043
2044
  reservationStatus: string;
2045
+ reservationNeedsPosV8: string;
2044
2046
  reservationAvailability: string;
2045
2047
  notificationSettings: string;
2046
2048
  smsEnabled: string;
@@ -3409,6 +3411,7 @@ export declare const i18nMessages: {
3409
3411
  paxMaxHint: string;
3410
3412
  reservation: string;
3411
3413
  reservationStatus: string;
3414
+ reservationNeedsPosV8: string;
3412
3415
  reservationAvailability: string;
3413
3416
  notificationSettings: string;
3414
3417
  smsEnabled: string;
@@ -4518,6 +4521,7 @@ export declare const i18nMessages: {
4518
4521
  paxMaxHint: string;
4519
4522
  reservation: string;
4520
4523
  reservationStatus: string;
4524
+ reservationNeedsPosV8: string;
4521
4525
  reservationAvailability: string;
4522
4526
  notificationSettings: string;
4523
4527
  smsEnabled: string;
@@ -617,6 +617,7 @@ export declare const i18nMessages: {
617
617
  paxMaxHint: string;
618
618
  reservation: string;
619
619
  reservationStatus: string;
620
+ reservationNeedsPosV8: string;
620
621
  reservationAvailability: string;
621
622
  notificationSettings: string;
622
623
  smsEnabled: string;
@@ -2040,6 +2041,7 @@ export declare const i18nMessages: {
2040
2041
  paxMaxHint: string;
2041
2042
  reservation: string;
2042
2043
  reservationStatus: string;
2044
+ reservationNeedsPosV8: string;
2043
2045
  reservationAvailability: string;
2044
2046
  notificationSettings: string;
2045
2047
  smsEnabled: string;
@@ -3408,6 +3410,7 @@ export declare const i18nMessages: {
3408
3410
  paxMaxHint: string;
3409
3411
  reservation: string;
3410
3412
  reservationStatus: string;
3413
+ reservationNeedsPosV8: string;
3411
3414
  reservationAvailability: string;
3412
3415
  notificationSettings: string;
3413
3416
  smsEnabled: string;
@@ -4517,6 +4520,7 @@ export declare const i18nMessages: {
4517
4520
  paxMaxHint: string;
4518
4521
  reservation: string;
4519
4522
  reservationStatus: string;
4523
+ reservationNeedsPosV8: string;
4520
4524
  reservationAvailability: string;
4521
4525
  notificationSettings: string;
4522
4526
  smsEnabled: string;