@feedmepos/mf-order-setting 0.0.56-dev.1 → 0.0.56-dev.2

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 (64) hide show
  1. package/.tsbuildinfo +1 -1
  2. package/dist/{KioskDevicesView-CccsAZqK.js → KioskDevicesView-Qv-xd_kZ.js} +1 -1
  3. package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-dF1jgi53.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CCF1mKni.js} +2 -2
  4. package/dist/KioskSettingView-CvvrK6Bv.js +643 -0
  5. package/dist/{KioskView-DmaCjLcw.js → KioskView-CppTVBv-.js} +117 -117
  6. package/dist/OrderSettingsView-C38N61dM.js +36564 -0
  7. package/dist/{app-EGmxrjDM.js → app-Bss1GkKY.js} +4 -4
  8. package/dist/app.js +1 -1
  9. package/dist/{dayjs.min-lCwCAXUZ.js → dayjs.min-DZfxGUk4.js} +1 -1
  10. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +3 -0
  11. package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +1 -1
  12. package/dist/frontend/mf-order/src/views/kiosk/settings/KioskPaymentTypeSection.vue.d.ts +13 -3
  13. package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +12 -4
  14. package/dist/frontend/mf-order/src/views/order-settings/dine-in/OfflinePaymentTypeDialog.vue.d.ts +4 -4
  15. package/dist/frontend/mf-order/src/views/order-settings/dine-in/PaymentType.vue.d.ts +38 -4
  16. package/dist/frontend/mf-order/src/views/order-settings/pickup/PaymentSidesheet.vue.d.ts +1 -0
  17. package/dist/frontend/mf-order/src/views/order-settings/reservation/CustomTimePicker.vue.d.ts +1 -0
  18. package/dist/{index-CWrX79Jg.js → index-B6AGCsrw.js} +6 -6
  19. package/dist/index-BpKR-Cxd.js +19757 -0
  20. package/dist/{menu.dto-CgymySda.js → menu.dto-C_B3M2fs.js} +44222 -46755
  21. package/dist/package/entity/incoming-order/incoming-order.do.d.ts +22443 -3
  22. package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +3 -3
  23. package/dist/package/entity/incoming-order/incoming-order.enum.d.ts +1 -1
  24. package/dist/package/entity/index.d.ts +1 -0
  25. package/dist/package/entity/marketing/marketing.dto.d.ts +1 -1
  26. package/dist/package/entity/order/dine-in/qr.dto.d.ts +38 -0
  27. package/dist/package/entity/order/order.do.d.ts +6358 -2
  28. package/dist/package/entity/order/order.dto.d.ts +22 -0
  29. package/dist/package/entity/order-platform/deliveroo/deliveroo-dto.d.ts +3 -0
  30. package/dist/package/entity/order-platform/deliveroo/deliveroo-setting.do.d.ts +3 -0
  31. package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +12 -12
  32. package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +32 -32
  33. package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +21 -3
  34. package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +12 -2
  35. package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.do.d.ts +3 -0
  36. package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.dto.d.ts +3 -0
  37. package/dist/package/entity/order-platform/grabfood/grabfood-edit-order.do.d.ts +9 -1
  38. package/dist/package/entity/order-platform/grabfood/grabfood-settings.do.d.ts +2 -2
  39. package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +3 -3
  40. package/dist/package/entity/order-platform/order-platform.dto.d.ts +2 -2
  41. package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.do.d.ts +3 -0
  42. package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.dto.d.ts +3 -0
  43. package/dist/package/entity/order-setting/order-setting.do.d.ts +3 -0
  44. package/dist/package/entity/order-setting/order-setting.dto.d.ts +6 -0
  45. package/dist/package/entity/queue/queue.do.d.ts +3 -8
  46. package/dist/package/entity/queue/queue.dto.d.ts +10 -0
  47. package/dist/package/entity/reservation/reservation.do.d.ts +4 -0
  48. package/dist/package/entity/reservation/reservation.dto.d.ts +10 -0
  49. package/dist/package/entity/reservation/reservation.utils.d.ts +2 -2
  50. package/dist/style.css +1 -1
  51. package/package.json +1 -1
  52. package/src/views/kiosk/KioskSummary.vue +3 -0
  53. package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +99 -211
  54. package/src/views/kiosk/settings/KioskSettingView.vue +27 -11
  55. package/src/views/order-settings/dine-in/DineInSetting.vue +1 -0
  56. package/src/views/order-settings/dine-in/OfflinePaymentTypeDialog.vue +2 -3
  57. package/src/views/order-settings/dine-in/PaymentType.vue +151 -43
  58. package/src/views/order-settings/pickup/PaymentSidesheet.vue +33 -172
  59. package/src/views/order-settings/pickup/PickUpSettingDialogContent.vue +1 -0
  60. package/src/views/order-settings/reservation/CustomTimePicker.vue +129 -49
  61. package/src/views/order-settings/reservation/ReservationSetting.vue +547 -303
  62. package/dist/KioskSettingView-8GY7AT-N.js +0 -722
  63. package/dist/OrderSettingsView-BZcU4t9L.js +0 -56240
  64. package/dist/index-BXsnV_eO.js +0 -150
@@ -13,7 +13,7 @@ import { z } from 'zod';
13
13
  * Important Notes:
14
14
  * - ALL ordered items must be included regardless of changes
15
15
  * - After edit, GF sends webhook with `isMexEditOrder: true`
16
- * - Update item's price is NOT supported
16
+ * - Update item's price via adjustedPriceInMin
17
17
  * - Replacement items append to end of existing item array
18
18
  */
19
19
  export declare const GFEditOrderItemModifier: z.ZodObject<{
@@ -48,12 +48,14 @@ export declare const GFEditOrderItem: z.ZodObject<{
48
48
  id: string;
49
49
  quantity: number;
50
50
  }>, "many">>>;
51
+ adjustedPriceInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
51
52
  }, "strip", z.ZodTypeAny, {
52
53
  modifiers?: {
53
54
  id: string;
54
55
  quantity: number;
55
56
  }[] | null | undefined;
56
57
  isExternalItemID?: boolean | null | undefined;
58
+ adjustedPriceInMin?: number | null | undefined;
57
59
  status: "" | "DELETED" | "UPDATED" | "ADDED";
58
60
  quantity: number;
59
61
  itemID: string;
@@ -63,6 +65,7 @@ export declare const GFEditOrderItem: z.ZodObject<{
63
65
  quantity: number;
64
66
  }[] | null | undefined;
65
67
  isExternalItemID?: boolean | null | undefined;
68
+ adjustedPriceInMin?: number | null | undefined;
66
69
  status: "" | "DELETED" | "UPDATED" | "ADDED";
67
70
  quantity: number;
68
71
  itemID: string;
@@ -85,12 +88,14 @@ export declare const GFEditOrderDto: z.ZodObject<{
85
88
  id: string;
86
89
  quantity: number;
87
90
  }>, "many">>>;
91
+ adjustedPriceInMin: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
88
92
  }, "strip", z.ZodTypeAny, {
89
93
  modifiers?: {
90
94
  id: string;
91
95
  quantity: number;
92
96
  }[] | null | undefined;
93
97
  isExternalItemID?: boolean | null | undefined;
98
+ adjustedPriceInMin?: number | null | undefined;
94
99
  status: "" | "DELETED" | "UPDATED" | "ADDED";
95
100
  quantity: number;
96
101
  itemID: string;
@@ -100,6 +105,7 @@ export declare const GFEditOrderDto: z.ZodObject<{
100
105
  quantity: number;
101
106
  }[] | null | undefined;
102
107
  isExternalItemID?: boolean | null | undefined;
108
+ adjustedPriceInMin?: number | null | undefined;
103
109
  status: "" | "DELETED" | "UPDATED" | "ADDED";
104
110
  quantity: number;
105
111
  itemID: string;
@@ -117,6 +123,7 @@ export declare const GFEditOrderDto: z.ZodObject<{
117
123
  quantity: number;
118
124
  }[] | null | undefined;
119
125
  isExternalItemID?: boolean | null | undefined;
126
+ adjustedPriceInMin?: number | null | undefined;
120
127
  status: "" | "DELETED" | "UPDATED" | "ADDED";
121
128
  quantity: number;
122
129
  itemID: string;
@@ -132,6 +139,7 @@ export declare const GFEditOrderDto: z.ZodObject<{
132
139
  quantity: number;
133
140
  }[] | null | undefined;
134
141
  isExternalItemID?: boolean | null | undefined;
142
+ adjustedPriceInMin?: number | null | undefined;
135
143
  status: "" | "DELETED" | "UPDATED" | "ADDED";
136
144
  quantity: number;
137
145
  itemID: string;
@@ -24,8 +24,8 @@ export declare const FdoGrabfoodSettings: z.ZodObject<z.extendShape<{
24
24
  lastSynchronize?: string | null | undefined;
25
25
  showProductAddon?: boolean | null | undefined;
26
26
  menuSyncError?: string | null | undefined;
27
- syncV2?: boolean | null | undefined;
28
27
  syncIGI?: boolean | null | undefined;
28
+ syncV2?: boolean | null | undefined;
29
29
  enable: boolean;
30
30
  autoCloseBill: boolean;
31
31
  commissionRate: number;
@@ -39,8 +39,8 @@ export declare const FdoGrabfoodSettings: z.ZodObject<z.extendShape<{
39
39
  lastSynchronize?: string | null | undefined;
40
40
  showProductAddon?: boolean | null | undefined;
41
41
  menuSyncError?: string | null | undefined;
42
- syncV2?: boolean | null | undefined;
43
42
  syncIGI?: boolean | null | undefined;
43
+ syncV2?: boolean | null | undefined;
44
44
  enable: boolean;
45
45
  autoCloseBill: boolean;
46
46
  commissionRate: number;
@@ -1702,9 +1702,9 @@ export declare const FdtoGrabfoodCreateOrUpdateSettings: z.ZodObject<{
1702
1702
  commissionRate: z.ZodOptional<z.ZodNumber>;
1703
1703
  showProductAddon: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1704
1704
  menuSyncError: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodString>>>;
1705
+ syncIGI: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1705
1706
  merchantID: z.ZodOptional<z.ZodString>;
1706
1707
  syncV2: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1707
- syncIGI: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodBoolean>>>;
1708
1708
  partnerMerchantID: z.ZodOptional<z.ZodString>;
1709
1709
  }, "strip", z.ZodTypeAny, {
1710
1710
  status?: string | null | undefined;
@@ -1718,10 +1718,10 @@ export declare const FdtoGrabfoodCreateOrUpdateSettings: z.ZodObject<{
1718
1718
  commissionRate?: number | undefined;
1719
1719
  showProductAddon?: boolean | null | undefined;
1720
1720
  menuSyncError?: string | null | undefined;
1721
+ syncIGI?: boolean | null | undefined;
1721
1722
  partnerMerchantID?: string | undefined;
1722
1723
  merchantID?: string | undefined;
1723
1724
  syncV2?: boolean | null | undefined;
1724
- syncIGI?: boolean | null | undefined;
1725
1725
  }, {
1726
1726
  status?: string | null | undefined;
1727
1727
  _id?: string | undefined;
@@ -1734,10 +1734,10 @@ export declare const FdtoGrabfoodCreateOrUpdateSettings: z.ZodObject<{
1734
1734
  commissionRate?: number | undefined;
1735
1735
  showProductAddon?: boolean | null | undefined;
1736
1736
  menuSyncError?: string | null | undefined;
1737
+ syncIGI?: boolean | null | undefined;
1737
1738
  partnerMerchantID?: string | undefined;
1738
1739
  merchantID?: string | undefined;
1739
1740
  syncV2?: boolean | null | undefined;
1740
- syncIGI?: boolean | null | undefined;
1741
1741
  }>;
1742
1742
  export declare const FdtoGrabfoodUpdateMenuItem: z.ZodObject<{
1743
1743
  merchantId: z.ZodString;
@@ -6464,8 +6464,8 @@ export declare const FdtoIntegrationUpdateOrderRequest: z.ZodObject<z.extendShap
6464
6464
  status: "COMPLETED" | "CANCELLED" | "ACCEPT" | "REJECT" | "DONE_PREPARED" | "COLLECTED" | "REFUND";
6465
6465
  orderId: string;
6466
6466
  action: "SYNC_MENU" | "UPDATE_ORDER" | "GET_OR_UPDATE_SETTING";
6467
- platform: string;
6468
6467
  billId: string;
6468
+ platform: string;
6469
6469
  }, {
6470
6470
  reason?: string | null | undefined;
6471
6471
  bill?: {
@@ -7335,8 +7335,8 @@ export declare const FdtoIntegrationUpdateOrderRequest: z.ZodObject<z.extendShap
7335
7335
  status: "COMPLETED" | "CANCELLED" | "ACCEPT" | "REJECT" | "DONE_PREPARED" | "COLLECTED" | "REFUND";
7336
7336
  orderId: string;
7337
7337
  action: "SYNC_MENU" | "UPDATE_ORDER" | "GET_OR_UPDATE_SETTING";
7338
- platform: string;
7339
7338
  billId: string;
7339
+ platform: string;
7340
7340
  }>;
7341
7341
  export declare const FdtoUpdateOrderPlatformSettingReq: z.ZodObject<z.extendShape<{
7342
7342
  platform: z.ZodString;
@@ -143,6 +143,7 @@ export declare const FdoShopeeFoodSettings: z.ZodObject<z.extendShape<{
143
143
  updatedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
144
144
  menuSyncError: z.ZodNullable<z.ZodOptional<z.ZodString>>;
145
145
  syncV2: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
146
+ syncIGI: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
146
147
  }>, "strip", z.ZodTypeAny, {
147
148
  status?: string | null | undefined;
148
149
  _id?: string | undefined;
@@ -152,6 +153,7 @@ export declare const FdoShopeeFoodSettings: z.ZodObject<z.extendShape<{
152
153
  lastSynchronize?: string | null | undefined;
153
154
  showProductAddon?: boolean | null | undefined;
154
155
  menuSyncError?: string | null | undefined;
156
+ syncIGI?: boolean | null | undefined;
155
157
  syncV2?: boolean | null | undefined;
156
158
  enable: boolean;
157
159
  autoCloseBill: boolean;
@@ -176,6 +178,7 @@ export declare const FdoShopeeFoodSettings: z.ZodObject<z.extendShape<{
176
178
  lastSynchronize?: string | null | undefined;
177
179
  showProductAddon?: boolean | null | undefined;
178
180
  menuSyncError?: string | null | undefined;
181
+ syncIGI?: boolean | null | undefined;
179
182
  syncV2?: boolean | null | undefined;
180
183
  enable: boolean;
181
184
  autoCloseBill: boolean;
@@ -64,6 +64,7 @@ export declare const FdtoCreateOrUpdateShopeeFoodSettings: z.ZodObject<Omit<z.ex
64
64
  updatedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
65
65
  menuSyncError: z.ZodNullable<z.ZodOptional<z.ZodString>>;
66
66
  syncV2: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
67
+ syncIGI: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
67
68
  }>, never>, "strip", z.ZodTypeAny, {
68
69
  status?: string | null | undefined;
69
70
  _id?: string | undefined;
@@ -73,6 +74,7 @@ export declare const FdtoCreateOrUpdateShopeeFoodSettings: z.ZodObject<Omit<z.ex
73
74
  lastSynchronize?: string | null | undefined;
74
75
  showProductAddon?: boolean | null | undefined;
75
76
  menuSyncError?: string | null | undefined;
77
+ syncIGI?: boolean | null | undefined;
76
78
  syncV2?: boolean | null | undefined;
77
79
  enable: boolean;
78
80
  autoCloseBill: boolean;
@@ -97,6 +99,7 @@ export declare const FdtoCreateOrUpdateShopeeFoodSettings: z.ZodObject<Omit<z.ex
97
99
  lastSynchronize?: string | null | undefined;
98
100
  showProductAddon?: boolean | null | undefined;
99
101
  menuSyncError?: string | null | undefined;
102
+ syncIGI?: boolean | null | undefined;
100
103
  syncV2?: boolean | null | undefined;
101
104
  enable: boolean;
102
105
  autoCloseBill: boolean;
@@ -1752,6 +1752,7 @@ export declare const FdoOrderSettings: z.ZodObject<{
1752
1752
  } | null | undefined;
1753
1753
  }>>>;
1754
1754
  lastOrderMinutesBeforeClose: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1755
+ dynamicQrSessionSource: z.ZodNullable<z.ZodOptional<z.ZodEnum<["remote", "couchdb"]>>>;
1755
1756
  }, "strip", z.ZodTypeAny, {
1756
1757
  autoSendKitchen?: boolean | null | undefined;
1757
1758
  customization?: {
@@ -1944,6 +1945,7 @@ export declare const FdoOrderSettings: z.ZodObject<{
1944
1945
  action: "ACCEPT" | "SERVE";
1945
1946
  }[] | null | undefined;
1946
1947
  lastOrderMinutesBeforeClose?: number | null | undefined;
1948
+ dynamicQrSessionSource?: "remote" | "couchdb" | null | undefined;
1947
1949
  reservationSettingsV2?: {
1948
1950
  smsEnabled: boolean;
1949
1951
  ranges: {
@@ -2225,6 +2227,7 @@ export declare const FdoOrderSettings: z.ZodObject<{
2225
2227
  action: "ACCEPT" | "SERVE";
2226
2228
  }[] | null | undefined;
2227
2229
  lastOrderMinutesBeforeClose?: number | null | undefined;
2230
+ dynamicQrSessionSource?: "remote" | "couchdb" | null | undefined;
2228
2231
  reservationSettingsV2?: {
2229
2232
  smsEnabled?: boolean | undefined;
2230
2233
  emailEnabled?: boolean | undefined;
@@ -1034,6 +1034,7 @@ export declare const OrderSettingsDto: z.ZodObject<{
1034
1034
  } | null | undefined;
1035
1035
  }>>>;
1036
1036
  lastOrderMinutesBeforeClose: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
1037
+ dynamicQrSessionSource: z.ZodNullable<z.ZodOptional<z.ZodEnum<["remote", "couchdb"]>>>;
1037
1038
  }, "strip", z.ZodTypeAny, {
1038
1039
  autoSendKitchen?: boolean | null | undefined;
1039
1040
  customization?: {
@@ -1221,6 +1222,7 @@ export declare const OrderSettingsDto: z.ZodObject<{
1221
1222
  action: "ACCEPT" | "SERVE";
1222
1223
  }[] | null | undefined;
1223
1224
  lastOrderMinutesBeforeClose?: number | null | undefined;
1225
+ dynamicQrSessionSource?: "remote" | "couchdb" | null | undefined;
1224
1226
  _id: string;
1225
1227
  v3Settings: {
1226
1228
  anonymousLoginDialog?: boolean | null | undefined;
@@ -1419,6 +1421,7 @@ export declare const OrderSettingsDto: z.ZodObject<{
1419
1421
  action: "ACCEPT" | "SERVE";
1420
1422
  }[] | null | undefined;
1421
1423
  lastOrderMinutesBeforeClose?: number | null | undefined;
1424
+ dynamicQrSessionSource?: "remote" | "couchdb" | null | undefined;
1422
1425
  _id: string;
1423
1426
  }>;
1424
1427
  export type OrderSettingsDto = z.infer<typeof OrderSettingsDto>;
@@ -2457,6 +2460,7 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
2457
2460
  } | null | undefined;
2458
2461
  }>>>;
2459
2462
  lastOrderMinutesBeforeClose: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
2463
+ dynamicQrSessionSource: z.ZodNullable<z.ZodOptional<z.ZodEnum<["remote", "couchdb"]>>>;
2460
2464
  }, "_id">, "strip", z.ZodTypeAny, {
2461
2465
  autoSendKitchen?: boolean | null | undefined;
2462
2466
  customization?: {
@@ -2644,6 +2648,7 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
2644
2648
  action: "ACCEPT" | "SERVE";
2645
2649
  }[] | null | undefined;
2646
2650
  lastOrderMinutesBeforeClose?: number | null | undefined;
2651
+ dynamicQrSessionSource?: "remote" | "couchdb" | null | undefined;
2647
2652
  v3Settings: {
2648
2653
  anonymousLoginDialog?: boolean | null | undefined;
2649
2654
  subItemDisplayMode?: "LIST" | null | undefined;
@@ -2841,5 +2846,6 @@ export declare const OrderSettingUpdateDto: z.ZodObject<Omit<{
2841
2846
  action: "ACCEPT" | "SERVE";
2842
2847
  }[] | null | undefined;
2843
2848
  lastOrderMinutesBeforeClose?: number | null | undefined;
2849
+ dynamicQrSessionSource?: "remote" | "couchdb" | null | undefined;
2844
2850
  }>;
2845
2851
  export type OrderSettingUpdateDto = z.infer<typeof OrderSettingUpdateDto>;
@@ -51,9 +51,6 @@ export declare const FdoTimeSetting: z.ZodObject<{
51
51
  }>, "many">;
52
52
  }, "strip", z.ZodTypeAny, {
53
53
  hours: {
54
- /**
55
- * @deprecated
56
- */
57
54
  end: string;
58
55
  start: string;
59
56
  }[];
@@ -1709,9 +1706,7 @@ export declare const FdoRestaurantQueueCart: z.ZodObject<{
1709
1706
  coordinates: number[];
1710
1707
  }>, "many">>>;
1711
1708
  email: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1712
- photoURL: z.ZodNullable<z.ZodOptional<z.ZodString>>; /**
1713
- * @deprecated
1714
- */
1709
+ photoURL: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1715
1710
  displayName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1716
1711
  phoneNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
1717
1712
  imported: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -3455,7 +3450,7 @@ export declare const FdoRestaurantQueueCart: z.ZodObject<{
3455
3450
  };
3456
3451
  }>;
3457
3452
  export type FdoRestaurantQueueCart = z.infer<typeof FdoRestaurantQueueCart>;
3458
- export declare const FdoRestaurantQueue: z.AnyZodObject;
3459
- export declare const FdoRestaurantQueues: z.AnyZodObject;
3453
+ export declare const FdoRestaurantQueue: any;
3454
+ export declare const FdoRestaurantQueues: any;
3460
3455
  export type FdoRestaurantQueue = z.infer<typeof FdoRestaurantQueue>;
3461
3456
  export type FdoRestaurantQueues = z.infer<typeof FdoRestaurantQueues>;
@@ -3434,6 +3434,8 @@ export declare const RestaurantQueueDto: z.ZodObject<{
3434
3434
  }[] | null | undefined;
3435
3435
  type: "cash" | "ePayment" | "ePaymentNonPayout" | "credit" | "ePaymentSandbox";
3436
3436
  }>>>;
3437
+ freeCreditAsDiscount: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
3438
+ creditDiscountTransaction: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
3437
3439
  effects: z.ZodDefault<z.ZodArray<z.ZodIntersection<z.ZodObject<{
3438
3440
  id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3439
3441
  }, "strip", z.ZodTypeAny, {
@@ -5600,6 +5602,8 @@ export declare const RestaurantQueueDto: z.ZodObject<{
5600
5602
  }[] | null | undefined;
5601
5603
  type: "cash" | "ePayment" | "ePaymentNonPayout" | "credit" | "ePaymentSandbox";
5602
5604
  } | null | undefined;
5605
+ freeCreditAsDiscount?: boolean | null | undefined;
5606
+ creditDiscountTransaction?: any;
5603
5607
  option: {
5604
5608
  remark?: string | null | undefined;
5605
5609
  pax?: number | null | undefined;
@@ -6293,6 +6297,8 @@ export declare const RestaurantQueueDto: z.ZodObject<{
6293
6297
  }[] | null | undefined;
6294
6298
  type: "cash" | "ePayment" | "ePaymentNonPayout" | "credit" | "ePaymentSandbox";
6295
6299
  } | null | undefined;
6300
+ freeCreditAsDiscount?: boolean | null | undefined;
6301
+ creditDiscountTransaction?: any;
6296
6302
  effects?: ({
6297
6303
  id?: string | null | undefined;
6298
6304
  } & {
@@ -6988,6 +6994,8 @@ export declare const RestaurantQueueDto: z.ZodObject<{
6988
6994
  }[] | null | undefined;
6989
6995
  type: "cash" | "ePayment" | "ePaymentNonPayout" | "credit" | "ePaymentSandbox";
6990
6996
  } | null | undefined;
6997
+ freeCreditAsDiscount?: boolean | null | undefined;
6998
+ creditDiscountTransaction?: any;
6991
6999
  option: {
6992
7000
  remark?: string | null | undefined;
6993
7001
  pax?: number | null | undefined;
@@ -7817,6 +7825,8 @@ export declare const RestaurantQueueDto: z.ZodObject<{
7817
7825
  }[] | null | undefined;
7818
7826
  type: "cash" | "ePayment" | "ePaymentNonPayout" | "credit" | "ePaymentSandbox";
7819
7827
  } | null | undefined;
7828
+ freeCreditAsDiscount?: boolean | null | undefined;
7829
+ creditDiscountTransaction?: any;
7820
7830
  effects?: ({
7821
7831
  id?: string | null | undefined;
7822
7832
  } & {
@@ -40,6 +40,8 @@ export declare const FdoRestaurantReservation: z.ZodObject<{
40
40
  userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
41
41
  /** POS assigned slot number */
42
42
  slotNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
43
+ /** POS table lock timestamp. Null means unlocked. */
44
+ slotLockedAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
43
45
  /** Customer remarks, can be preset/custom */
44
46
  customerRemarks: z.ZodNullable<z.ZodOptional<z.ZodString>>;
45
47
  /** Guest preferences - customer's selections from range preferences */
@@ -62,6 +64,7 @@ export declare const FdoRestaurantReservation: z.ZodObject<{
62
64
  userPhone?: string | null | undefined;
63
65
  userEmail?: string | null | undefined;
64
66
  slotNumber?: string | null | undefined;
67
+ slotLockedAt?: string | null | undefined;
65
68
  customerRemarks?: string | null | undefined;
66
69
  guestPreferences?: {
67
70
  name: string;
@@ -83,6 +86,7 @@ export declare const FdoRestaurantReservation: z.ZodObject<{
83
86
  userPhone?: string | null | undefined;
84
87
  userEmail?: string | null | undefined;
85
88
  slotNumber?: string | null | undefined;
89
+ slotLockedAt?: string | null | undefined;
86
90
  customerRemarks?: string | null | undefined;
87
91
  guestPreferences?: {
88
92
  name: string;
@@ -84,6 +84,8 @@ export declare const RestaurantReservationPOSDto: z.ZodObject<{
84
84
  userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
85
85
  /** POS assigned slot number */
86
86
  slotNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
87
+ /** POS table lock timestamp. Null means unlocked. */
88
+ slotLockedAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
87
89
  /** Customer remarks */
88
90
  customerRemarks: z.ZodNullable<z.ZodOptional<z.ZodString>>;
89
91
  /** Guest preferences - customer's selections from range preferences */
@@ -105,6 +107,7 @@ export declare const RestaurantReservationPOSDto: z.ZodObject<{
105
107
  userPhone?: string | null | undefined;
106
108
  userEmail?: string | null | undefined;
107
109
  slotNumber?: string | null | undefined;
110
+ slotLockedAt?: string | null | undefined;
108
111
  customerRemarks?: string | null | undefined;
109
112
  guestPreferences?: {
110
113
  name: string;
@@ -125,6 +128,7 @@ export declare const RestaurantReservationPOSDto: z.ZodObject<{
125
128
  userPhone?: string | null | undefined;
126
129
  userEmail?: string | null | undefined;
127
130
  slotNumber?: string | null | undefined;
131
+ slotLockedAt?: string | null | undefined;
128
132
  customerRemarks?: string | null | undefined;
129
133
  guestPreferences?: {
130
134
  name: string;
@@ -159,6 +163,7 @@ export declare const UpdateReservationPOSDto: z.ZodObject<{
159
163
  userPhone: z.ZodNullable<z.ZodOptional<z.ZodString>>;
160
164
  userEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
161
165
  slotNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
166
+ slotLockedAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
162
167
  customerRemarks: z.ZodNullable<z.ZodOptional<z.ZodString>>;
163
168
  /** Guest preferences - customer's selections from range preferences */
164
169
  guestPreferences: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -176,6 +181,7 @@ export declare const UpdateReservationPOSDto: z.ZodObject<{
176
181
  userPhone?: string | null | undefined;
177
182
  userEmail?: string | null | undefined;
178
183
  slotNumber?: string | null | undefined;
184
+ slotLockedAt?: string | null | undefined;
179
185
  customerRemarks?: string | null | undefined;
180
186
  guestPreferences?: {
181
187
  name: string;
@@ -192,6 +198,7 @@ export declare const UpdateReservationPOSDto: z.ZodObject<{
192
198
  userPhone?: string | null | undefined;
193
199
  userEmail?: string | null | undefined;
194
200
  slotNumber?: string | null | undefined;
201
+ slotLockedAt?: string | null | undefined;
195
202
  customerRemarks?: string | null | undefined;
196
203
  guestPreferences?: {
197
204
  name: string;
@@ -217,6 +224,7 @@ export declare const CreateReservationPOSDto: z.ZodObject<{
217
224
  userEmail: z.ZodNullable<z.ZodOptional<z.ZodString>>;
218
225
  customerRemarks: z.ZodNullable<z.ZodOptional<z.ZodString>>;
219
226
  slotNumber: z.ZodNullable<z.ZodOptional<z.ZodString>>;
227
+ slotLockedAt: z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
220
228
  /** Guest preferences - customer's selections from range preferences */
221
229
  guestPreferences: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
222
230
  name: z.ZodString;
@@ -233,6 +241,7 @@ export declare const CreateReservationPOSDto: z.ZodObject<{
233
241
  userPhone?: string | null | undefined;
234
242
  userEmail?: string | null | undefined;
235
243
  slotNumber?: string | null | undefined;
244
+ slotLockedAt?: string | null | undefined;
236
245
  customerRemarks?: string | null | undefined;
237
246
  guestPreferences?: {
238
247
  name: string;
@@ -248,6 +257,7 @@ export declare const CreateReservationPOSDto: z.ZodObject<{
248
257
  userPhone?: string | null | undefined;
249
258
  userEmail?: string | null | undefined;
250
259
  slotNumber?: string | null | undefined;
260
+ slotLockedAt?: string | null | undefined;
251
261
  customerRemarks?: string | null | undefined;
252
262
  guestPreferences?: {
253
263
  name: string;
@@ -51,9 +51,9 @@ export declare function validateLeadDuration(minLead: Duration, maxLead: Duratio
51
51
  */
52
52
  export declare function validateTimeRangeOverlap(range1: TimeRange, range2: TimeRange): boolean;
53
53
  /**
54
- * Validates that end time is after start time for the same day
54
+ * Validates that a time range spans a positive duration.
55
55
  * @param timeRange - Time range to validate
56
- * @returns True if valid (end > start), false otherwise
56
+ * @returns True if valid, false otherwise
57
57
  */
58
58
  export declare function validateSameDayTimeRange(timeRange: TimeRange): boolean;
59
59
  /**
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .scrollbar-thin[data-v-349a7dec]::-webkit-scrollbar{width:6px}.scrollbar-thin[data-v-349a7dec]::-webkit-scrollbar-track{background:transparent;border-radius:3px;margin:4px 0}.scrollbar-thin[data-v-349a7dec]::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.scrollbar-thin[data-v-349a7dec]::-webkit-scrollbar-thumb:hover{background:#9ca3af}.time-picker-field[data-v-349a7dec] .fm-text-field-input{width:140px!important;border-width:2px;border-radius:.75rem;padding:12px 16px;font-size:1.125rem;transition:all .2s}.time-picker-field[data-v-349a7dec] .fm-text-field-input:not(:focus):not(:focus-within){border-color:#d1d5db;background-color:#fff}.time-picker-field[data-v-349a7dec] .fm-text-field-input:not(:focus):not(:focus-within):hover{border-color:#9ca3af}.time-picker-field.focused[data-v-349a7dec] .fm-text-field-input,.time-picker-field[data-v-349a7dec] .fm-text-field-input:focus,.time-picker-field[data-v-349a7dec] .fm-text-field-input:focus-within{border-color:#f97316!important;background-color:#fff7ed!important}.fm-text-field-input[data-v-6a4bdab2]{font-size:1.125rem;line-height:1.75rem}
1
+ .scrollbar-thin[data-v-09464e01]::-webkit-scrollbar{width:6px}.scrollbar-thin[data-v-09464e01]::-webkit-scrollbar-track{background:transparent;border-radius:3px;margin:4px 0}.scrollbar-thin[data-v-09464e01]::-webkit-scrollbar-thumb{background:#d1d5db;border-radius:3px}.scrollbar-thin[data-v-09464e01]::-webkit-scrollbar-thumb:hover{background:#9ca3af}.time-picker-field[data-v-09464e01]{width:100%;height:40px;border-width:1.5px;border-style:solid;border-color:#d1d5db;border-radius:.625rem;padding:8px 36px 8px 12px;font-size:.95rem;line-height:1.25rem;font-weight:500;transition:all .2s;background-color:#fff;outline:none;box-sizing:border-box}.time-picker-field[data-v-09464e01]:hover{border-color:#9ca3af}.time-picker-field[data-v-09464e01]:focus{border-color:#f97316!important;background-color:#fff7ed!important}.fm-text-field-input[data-v-6a4bdab2]{font-size:1.125rem;line-height:1.75rem}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-order-setting",
3
- "version": "0.0.56-dev.1",
3
+ "version": "0.0.56-dev.2",
4
4
  "type": "module",
5
5
  "module": "./dist/app.js",
6
6
  "license": "UNLICENSED",
@@ -98,6 +98,9 @@ const acceptedPaymentStatus = computed<string>(() => {
98
98
  if (type === F_ORDER_PAYMENT_TYPE.enum.ePayment) {
99
99
  acceptedPayment.push(t('order.ePayment'));
100
100
  }
101
+ if (type == F_ORDER_PAYMENT_TYPE.enum.credit){
102
+ acceptedPayment.push(t('order.credit'));
103
+ }
101
104
  });
102
105
 
103
106
  if (