@feedmepos/mf-order-setting 0.0.79 → 0.0.80

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 (35) hide show
  1. package/dist/{DisplaySystemView-BKTYE0GI.js → DisplaySystemView-B4Ja1kBe.js} +2 -2
  2. package/dist/{KioskDevicesView-B3AWg9QR.js → KioskDevicesView-jYkKGyRX.js} +1 -1
  3. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-s79NGSsG.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-Wicz8r3Q.js} +4 -4
  4. package/dist/{KioskSettingView-D8-2hQT9.js → KioskSettingView-CDO8VdiK.js} +4 -4
  5. package/dist/{KioskView-CrbUYY75.js → KioskView-Dex_N5wi.js} +6 -6
  6. package/dist/{OrderSettingsView-BPv13A7B.js → OrderSettingsView-D4YqwLji.js} +9728 -9551
  7. package/dist/{app-rzXWOYA2.js → app-DxJcADSR.js} +296 -236
  8. package/dist/app.js +1 -1
  9. package/dist/{firebase-storage-BTc4aPcq.js → firebase-storage-GDIc9Lze.js} +1 -1
  10. package/dist/frontend/mf-order/src/app.d.ts +60 -0
  11. package/dist/frontend/mf-order/src/main.d.ts +60 -0
  12. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +27 -0
  13. package/dist/frontend/mf-order/src/views/order-settings/queue/code-setting-band.d.ts +19 -0
  14. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  15. package/dist/{index-BQLc4wu7.js → index-BOw_SLS3.js} +1 -1
  16. package/dist/{index-DMgNRp_k.js → index-BP2ZDwqX.js} +2 -2
  17. package/dist/{index-1TKkR2Bs.js → index-CTRKXPzk.js} +3 -3
  18. package/dist/{index-BoJCd-Jk.js → index-Dl-iHqtg.js} +1 -1
  19. package/dist/{order.dto-Ck2nw6IY.js → order.dto-BkJSHx_a.js} +197 -170
  20. package/dist/package/entity/order-setting/order-setting.do.d.ts +79 -0
  21. package/dist/package/entity/order-setting/order-setting.dto.d.ts +158 -0
  22. package/dist/package/entity/order-setting/queue/queue.do.d.ts +158 -0
  23. package/dist/package/entity/order-setting/queue/queue.dto.d.ts +62 -0
  24. package/dist/package/entity/queue/queue.dto.d.ts +62 -0
  25. package/dist/package/entity/restaurant/restaurant.dto.d.ts +158 -0
  26. package/package.json +1 -1
  27. package/src/locales/en-US.json +15 -0
  28. package/src/locales/ja-JP.json +15 -0
  29. package/src/locales/th-TH.json +16 -1
  30. package/src/locales/zh-CN.json +16 -1
  31. package/src/views/order-settings/queue/QueueSetting.vue +294 -2
  32. package/src/views/order-settings/queue/code-setting-band.spec.ts +69 -0
  33. package/src/views/order-settings/queue/code-setting-band.ts +27 -0
  34. package/src/views/order-settings/queue/queue-wait-estimate-dto.spec.ts +131 -0
  35. package/vite.config.ts +1 -1
package/dist/app.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as e, w as r, x as o } from "./app-rzXWOYA2.js";
1
+ import { _ as e, w as r, x as o } from "./app-DxJcADSR.js";
2
2
  export {
3
3
  e as FmApp,
4
4
  r as i18nMessages,
@@ -1,5 +1,5 @@
1
1
  import { FeedMeAuth as u } from "@feedmepos/mf-common";
2
- import { o as p, s as f, p as g, q as s, t as c, v as m } from "./app-rzXWOYA2.js";
2
+ import { o as p, s as f, p as g, q as s, t as c, v as m } from "./app-DxJcADSR.js";
3
3
  var d = { firebase: {} }, l = {};
4
4
  let r = null;
5
5
  function h(e) {
@@ -3,6 +3,21 @@ export type AppMessagesSchema = typeof enUS;
3
3
  export declare const i18nMessages: {
4
4
  "en-US": {
5
5
  order: {
6
+ waitEstimateMinutesHeader: string;
7
+ waitEstimateMinutesUnit: string;
8
+ waitEstimateRemoveBand: string;
9
+ waitEstimateAheadHeader: string;
10
+ showWaitEstimate: string;
11
+ waitEstimate: string;
12
+ waitEstimateHint: string;
13
+ waitEstimateEnable: string;
14
+ waitEstimateClear: string;
15
+ waitEstimateAddBand: string;
16
+ waitEstimateNoBands: string;
17
+ waitEstimateBandTail: string;
18
+ waitEstimateBandOrder: string;
19
+ waitEstimateMinutesInvalid: string;
20
+ waitEstimateMinutesOrder: string;
6
21
  stores: string;
7
22
  addStore: string;
8
23
  editStore: string;
@@ -1439,6 +1454,21 @@ export declare const i18nMessages: {
1439
1454
  promotion: string;
1440
1455
  voucher: string;
1441
1456
  };
1457
+ showWaitEstimate: string;
1458
+ waitEstimate: string;
1459
+ waitEstimateHint: string;
1460
+ waitEstimateClear: string;
1461
+ waitEstimateEnable: string;
1462
+ waitEstimateAheadHeader: string;
1463
+ waitEstimateAddBand: string;
1464
+ waitEstimateNoBands: string;
1465
+ waitEstimateBandTail: string;
1466
+ waitEstimateBandOrder: string;
1467
+ waitEstimateMinutesInvalid: string;
1468
+ waitEstimateMinutesOrder: string;
1469
+ waitEstimateMinutesHeader: string;
1470
+ waitEstimateMinutesUnit: string;
1471
+ waitEstimateRemoveBand: string;
1442
1472
  };
1443
1473
  };
1444
1474
  "th-TH": {
@@ -2147,10 +2177,40 @@ export declare const i18nMessages: {
2147
2177
  promotion: string;
2148
2178
  voucher: string;
2149
2179
  };
2180
+ showWaitEstimate: string;
2181
+ waitEstimate: string;
2182
+ waitEstimateHint: string;
2183
+ waitEstimateEnable: string;
2184
+ waitEstimateClear: string;
2185
+ waitEstimateAheadHeader: string;
2186
+ waitEstimateAddBand: string;
2187
+ waitEstimateNoBands: string;
2188
+ waitEstimateBandTail: string;
2189
+ waitEstimateBandOrder: string;
2190
+ waitEstimateMinutesInvalid: string;
2191
+ waitEstimateMinutesOrder: string;
2192
+ waitEstimateMinutesHeader: string;
2193
+ waitEstimateMinutesUnit: string;
2194
+ waitEstimateRemoveBand: string;
2150
2195
  };
2151
2196
  };
2152
2197
  "ja-JP": {
2153
2198
  order: {
2199
+ waitEstimateMinutesHeader: string;
2200
+ waitEstimateMinutesUnit: string;
2201
+ waitEstimateRemoveBand: string;
2202
+ waitEstimateAheadHeader: string;
2203
+ showWaitEstimate: string;
2204
+ waitEstimate: string;
2205
+ waitEstimateHint: string;
2206
+ waitEstimateEnable: string;
2207
+ waitEstimateClear: string;
2208
+ waitEstimateAddBand: string;
2209
+ waitEstimateNoBands: string;
2210
+ waitEstimateBandTail: string;
2211
+ waitEstimateBandOrder: string;
2212
+ waitEstimateMinutesInvalid: string;
2213
+ waitEstimateMinutesOrder: string;
2154
2214
  activate: string;
2155
2215
  addStore: string;
2156
2216
  additionalStores: string;
@@ -2,6 +2,21 @@ import './assets/main.css';
2
2
  export declare const i18nMessages: {
3
3
  "en-US": {
4
4
  order: {
5
+ waitEstimateMinutesHeader: string;
6
+ waitEstimateMinutesUnit: string;
7
+ waitEstimateRemoveBand: string;
8
+ waitEstimateAheadHeader: string;
9
+ showWaitEstimate: string;
10
+ waitEstimate: string;
11
+ waitEstimateHint: string;
12
+ waitEstimateEnable: string;
13
+ waitEstimateClear: string;
14
+ waitEstimateAddBand: string;
15
+ waitEstimateNoBands: string;
16
+ waitEstimateBandTail: string;
17
+ waitEstimateBandOrder: string;
18
+ waitEstimateMinutesInvalid: string;
19
+ waitEstimateMinutesOrder: string;
5
20
  stores: string;
6
21
  addStore: string;
7
22
  editStore: string;
@@ -1438,6 +1453,21 @@ export declare const i18nMessages: {
1438
1453
  promotion: string;
1439
1454
  voucher: string;
1440
1455
  };
1456
+ showWaitEstimate: string;
1457
+ waitEstimate: string;
1458
+ waitEstimateHint: string;
1459
+ waitEstimateClear: string;
1460
+ waitEstimateEnable: string;
1461
+ waitEstimateAheadHeader: string;
1462
+ waitEstimateAddBand: string;
1463
+ waitEstimateNoBands: string;
1464
+ waitEstimateBandTail: string;
1465
+ waitEstimateBandOrder: string;
1466
+ waitEstimateMinutesInvalid: string;
1467
+ waitEstimateMinutesOrder: string;
1468
+ waitEstimateMinutesHeader: string;
1469
+ waitEstimateMinutesUnit: string;
1470
+ waitEstimateRemoveBand: string;
1441
1471
  };
1442
1472
  };
1443
1473
  "th-TH": {
@@ -2146,10 +2176,40 @@ export declare const i18nMessages: {
2146
2176
  promotion: string;
2147
2177
  voucher: string;
2148
2178
  };
2179
+ showWaitEstimate: string;
2180
+ waitEstimate: string;
2181
+ waitEstimateHint: string;
2182
+ waitEstimateEnable: string;
2183
+ waitEstimateClear: string;
2184
+ waitEstimateAheadHeader: string;
2185
+ waitEstimateAddBand: string;
2186
+ waitEstimateNoBands: string;
2187
+ waitEstimateBandTail: string;
2188
+ waitEstimateBandOrder: string;
2189
+ waitEstimateMinutesInvalid: string;
2190
+ waitEstimateMinutesOrder: string;
2191
+ waitEstimateMinutesHeader: string;
2192
+ waitEstimateMinutesUnit: string;
2193
+ waitEstimateRemoveBand: string;
2149
2194
  };
2150
2195
  };
2151
2196
  "ja-JP": {
2152
2197
  order: {
2198
+ waitEstimateMinutesHeader: string;
2199
+ waitEstimateMinutesUnit: string;
2200
+ waitEstimateRemoveBand: string;
2201
+ waitEstimateAheadHeader: string;
2202
+ showWaitEstimate: string;
2203
+ waitEstimate: string;
2204
+ waitEstimateHint: string;
2205
+ waitEstimateEnable: string;
2206
+ waitEstimateClear: string;
2207
+ waitEstimateAddBand: string;
2208
+ waitEstimateNoBands: string;
2209
+ waitEstimateBandTail: string;
2210
+ waitEstimateBandOrder: string;
2211
+ waitEstimateMinutesInvalid: string;
2212
+ waitEstimateMinutesOrder: string;
2153
2213
  activate: string;
2154
2214
  addStore: string;
2155
2215
  additionalStores: string;
@@ -69,9 +69,18 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
69
69
  } | undefined;
70
70
  orderSetting?: {
71
71
  queueSettings?: {
72
+ showWaitEstimate?: boolean | null | undefined;
72
73
  codeSettings?: {
74
+ id?: string | null | undefined;
73
75
  end?: number | null | undefined;
74
76
  prefix?: string | null | undefined;
77
+ waitEstimate?: {
78
+ paxUpTo: number | null;
79
+ bands: {
80
+ upTo: number | null;
81
+ minutes: number;
82
+ }[];
83
+ }[] | null | undefined;
75
84
  start: number;
76
85
  current: number;
77
86
  pax: {
@@ -356,9 +365,18 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
356
365
  } | undefined;
357
366
  orderSetting?: {
358
367
  queueSettings?: {
368
+ showWaitEstimate?: boolean | null | undefined;
359
369
  codeSettings?: {
370
+ id?: string | null | undefined;
360
371
  end?: number | null | undefined;
361
372
  prefix?: string | null | undefined;
373
+ waitEstimate?: {
374
+ paxUpTo: number | null;
375
+ bands: {
376
+ upTo: number | null;
377
+ minutes: number;
378
+ }[];
379
+ }[] | null | undefined;
362
380
  start: number;
363
381
  current: number;
364
382
  pax: {
@@ -643,9 +661,18 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
643
661
  } | undefined;
644
662
  orderSetting?: {
645
663
  queueSettings?: {
664
+ showWaitEstimate?: boolean | null | undefined;
646
665
  codeSettings?: {
666
+ id?: string | null | undefined;
647
667
  end?: number | null | undefined;
648
668
  prefix?: string | null | undefined;
669
+ waitEstimate?: {
670
+ paxUpTo: number | null;
671
+ bands: {
672
+ upTo: number | null;
673
+ minutes: number;
674
+ }[];
675
+ }[] | null | undefined;
649
676
  start: number;
650
677
  current: number;
651
678
  pax: {
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Where a newly added queue segment's pax band should start.
3
+ *
4
+ * A party is assigned to a segment by FIRST match — `getCodeAndUpdateSetting`
5
+ * uses `findIndex`, `matchSegment` uses `find` — so overlapping bands are not
6
+ * two lines the server can distinguish: everything the earlier band covers is
7
+ * issued the earlier prefix, and the customer's "parties ahead" would count a
8
+ * series they are not in. The backend defends against overlap it finds in
9
+ * stored data, but the UI should not mint it in the first place.
10
+ *
11
+ * This used to seed `{ min: 1, max: 99 }` for every segment, so a merchant who
12
+ * narrowed segment 0 and then clicked "add" got a total overlap by default.
13
+ */
14
+ export declare const MAX_PAX = 999;
15
+ export type PaxBand = {
16
+ min: number;
17
+ max: number;
18
+ };
19
+ export declare function nextCodeSettingBand(previous?: PaxBand | null): PaxBand;