@feedmepos/mf-order-setting 0.0.53 → 0.0.56-dev.1
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.
- package/.tsbuildinfo +1 -0
- package/dist/{KioskDevicesView-CMKNjgWx.js → KioskDevicesView-CccsAZqK.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-B1sNvlUC.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-dF1jgi53.js} +2 -2
- package/dist/{KioskSettingView-BE_pMA-i.js → KioskSettingView-8GY7AT-N.js} +128 -126
- package/dist/{KioskView-U-Wg8oMC.js → KioskView-DmaCjLcw.js} +4 -4
- package/dist/{OrderSettingsView-BWzaITT6.js → OrderSettingsView-BZcU4t9L.js} +28631 -24307
- package/dist/{app-CFfgPAd8.js → app-EGmxrjDM.js} +392 -228
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CuRr-wlf.js → dayjs.min-lCwCAXUZ.js} +1 -1
- package/dist/frontend/mf-order/src/api/reservation/index.d.ts +8 -0
- package/dist/frontend/mf-order/src/app.d.ts +164 -0
- package/dist/frontend/mf-order/src/main.d.ts +164 -0
- package/dist/frontend/mf-order/src/views/order-settings/reservation/CopySettingsSheet.vue.d.ts +186 -0
- package/dist/frontend/mf-order/src/views/order-settings/reservation/CustomSelect.vue.d.ts +15 -0
- package/dist/frontend/mf-order/src/views/order-settings/reservation/CustomTimePicker.vue.d.ts +10 -0
- package/dist/frontend/mf-order/src/views/order-settings/reservation/ReservationSetting.vue.d.ts +2 -0
- package/dist/{index-Bj0bCGTm.js → index-CWrX79Jg.js} +8 -8
- package/dist/{menu.dto-DAh1J2ES.js → menu.dto-CgymySda.js} +47093 -44304
- package/dist/package/entity/index.d.ts +5 -0
- package/dist/package/entity/order-setting/order-setting.do.d.ts +861 -0
- package/dist/package/entity/order-setting/reservationV2/reservation.do.d.ts +1269 -0
- package/dist/package/entity/reservation/reservation.do.d.ts +101 -0
- package/dist/package/entity/reservation/reservation.dto.d.ts +325 -0
- package/dist/package/entity/reservation/reservation.enum.d.ts +3 -0
- package/dist/package/entity/reservation/reservation.utils.d.ts +152 -0
- package/dist/style.css +1 -0
- package/package.json +1 -1
- package/src/api/reservation/index.ts +28 -0
- package/src/assets/images/not-found.png +0 -0
- package/src/locales/en-US.json +56 -0
- package/src/locales/th-TH.json +54 -0
- package/src/locales/zh-CN.json +54 -0
- package/src/views/kiosk/settings/KioskSettingView.vue +16 -14
- package/src/views/order-settings/OrderSettingsView.vue +6 -1
- package/src/views/order-settings/reservation/CopySettingsSheet.vue +256 -0
- package/src/views/order-settings/reservation/CustomSelect.vue +99 -0
- package/src/views/order-settings/reservation/CustomTimePicker.vue +231 -0
- package/src/views/order-settings/reservation/ReservationSetting.vue +1311 -0
- package/tsconfig.app.json +8 -6
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +0 -1
package/dist/app.js
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FdoOrderReservationSettingsV2 } from '@entity';
|
|
2
|
+
declare function getReservationSetting(restaurantId: string): Promise<FdoOrderReservationSettingsV2>;
|
|
3
|
+
declare function updateReservationSetting(restaurantId: string, payload: FdoOrderReservationSettingsV2): Promise<FdoOrderReservationSettingsV2>;
|
|
4
|
+
export declare const ReservationApi: {
|
|
5
|
+
getReservationSetting: typeof getReservationSetting;
|
|
6
|
+
updateReservationSetting: typeof updateReservationSetting;
|
|
7
|
+
};
|
|
8
|
+
export {};
|
|
@@ -249,6 +249,62 @@ export declare const i18nMessages: {
|
|
|
249
249
|
current: string;
|
|
250
250
|
paxMin: string;
|
|
251
251
|
paxMax: string;
|
|
252
|
+
reservation: string;
|
|
253
|
+
reservationStatus: string;
|
|
254
|
+
reservationSettings: string;
|
|
255
|
+
reservationRanges: string;
|
|
256
|
+
reservationAvailability: string;
|
|
257
|
+
addRange: string;
|
|
258
|
+
range: string;
|
|
259
|
+
rangeName: string;
|
|
260
|
+
priority: string;
|
|
261
|
+
priorityDescription: string;
|
|
262
|
+
capacity: string;
|
|
263
|
+
capacityDescription: string;
|
|
264
|
+
minPax: string;
|
|
265
|
+
maxPax: string;
|
|
266
|
+
slotInterval: string;
|
|
267
|
+
slotIntervalDescription: string;
|
|
268
|
+
bookingDuration: string;
|
|
269
|
+
bookingDurationDescription: string;
|
|
270
|
+
minLeadDays: string;
|
|
271
|
+
minLeadDaysDescription: string;
|
|
272
|
+
maxLeadDays: string;
|
|
273
|
+
maxLeadDaysDescription: string;
|
|
274
|
+
operatingWindows: string;
|
|
275
|
+
addWindow: string;
|
|
276
|
+
startTime: string;
|
|
277
|
+
endTime: string;
|
|
278
|
+
customPresetRemarks: string;
|
|
279
|
+
addRemark: string;
|
|
280
|
+
noRangesConfigured: string;
|
|
281
|
+
addFirstRange: string;
|
|
282
|
+
globalSettings: string;
|
|
283
|
+
paxRange: string;
|
|
284
|
+
noOperatingHours: string;
|
|
285
|
+
saveAllChanges: string;
|
|
286
|
+
confirmDeleteRange: string;
|
|
287
|
+
settingUpdated: string;
|
|
288
|
+
newReservationRange: string;
|
|
289
|
+
basicInformation: string;
|
|
290
|
+
guestRequirements: string;
|
|
291
|
+
bookingConfiguration: string;
|
|
292
|
+
rangeNamePlaceholder: string;
|
|
293
|
+
presetRemarkPlaceholder: string;
|
|
294
|
+
saveRange: string;
|
|
295
|
+
draftHoldTimeMinutes: string;
|
|
296
|
+
draftHoldTimeDescription: string;
|
|
297
|
+
posCanOverbook: string;
|
|
298
|
+
posCanOverbookDescription: string;
|
|
299
|
+
notificationSettings: string;
|
|
300
|
+
smsEnabled: string;
|
|
301
|
+
smsEnabledDescription: string;
|
|
302
|
+
emailEnabled: string;
|
|
303
|
+
emailEnabledDescription: string;
|
|
304
|
+
notifyOnConfirm: string;
|
|
305
|
+
notifyOnConfirmDescription: string;
|
|
306
|
+
notifyOnCancel: string;
|
|
307
|
+
notifyOnCancelDescription: string;
|
|
252
308
|
qrPay: string;
|
|
253
309
|
terminalScanPay: string;
|
|
254
310
|
terminalQrPay: string;
|
|
@@ -622,6 +678,60 @@ export declare const i18nMessages: {
|
|
|
622
678
|
current: string;
|
|
623
679
|
paxMin: string;
|
|
624
680
|
paxMax: string;
|
|
681
|
+
reservation: string;
|
|
682
|
+
reservationSettings: string;
|
|
683
|
+
reservationRanges: string;
|
|
684
|
+
addRange: string;
|
|
685
|
+
range: string;
|
|
686
|
+
rangeName: string;
|
|
687
|
+
priority: string;
|
|
688
|
+
priorityDescription: string;
|
|
689
|
+
capacity: string;
|
|
690
|
+
capacityDescription: string;
|
|
691
|
+
minPax: string;
|
|
692
|
+
maxPax: string;
|
|
693
|
+
slotInterval: string;
|
|
694
|
+
slotIntervalDescription: string;
|
|
695
|
+
bookingDuration: string;
|
|
696
|
+
bookingDurationDescription: string;
|
|
697
|
+
minLeadDays: string;
|
|
698
|
+
minLeadDaysDescription: string;
|
|
699
|
+
maxLeadDays: string;
|
|
700
|
+
maxLeadDaysDescription: string;
|
|
701
|
+
operatingWindows: string;
|
|
702
|
+
addWindow: string;
|
|
703
|
+
startTime: string;
|
|
704
|
+
endTime: string;
|
|
705
|
+
customPresetRemarks: string;
|
|
706
|
+
addRemark: string;
|
|
707
|
+
noRangesConfigured: string;
|
|
708
|
+
addFirstRange: string;
|
|
709
|
+
globalSettings: string;
|
|
710
|
+
paxRange: string;
|
|
711
|
+
noOperatingHours: string;
|
|
712
|
+
saveAllChanges: string;
|
|
713
|
+
confirmDeleteRange: string;
|
|
714
|
+
settingUpdated: string;
|
|
715
|
+
newReservationRange: string;
|
|
716
|
+
basicInformation: string;
|
|
717
|
+
guestRequirements: string;
|
|
718
|
+
bookingConfiguration: string;
|
|
719
|
+
rangeNamePlaceholder: string;
|
|
720
|
+
presetRemarkPlaceholder: string;
|
|
721
|
+
saveRange: string;
|
|
722
|
+
draftHoldTimeMinutes: string;
|
|
723
|
+
draftHoldTimeDescription: string;
|
|
724
|
+
posCanOverbook: string;
|
|
725
|
+
posCanOverbookDescription: string;
|
|
726
|
+
notificationSettings: string;
|
|
727
|
+
smsEnabled: string;
|
|
728
|
+
smsEnabledDescription: string;
|
|
729
|
+
emailEnabled: string;
|
|
730
|
+
emailEnabledDescription: string;
|
|
731
|
+
notifyOnConfirm: string;
|
|
732
|
+
notifyOnConfirmDescription: string;
|
|
733
|
+
notifyOnCancel: string;
|
|
734
|
+
notifyOnCancelDescription: string;
|
|
625
735
|
qrPay: string;
|
|
626
736
|
terminalScanPay: string;
|
|
627
737
|
terminalQrPay: string;
|
|
@@ -993,6 +1103,60 @@ export declare const i18nMessages: {
|
|
|
993
1103
|
current: string;
|
|
994
1104
|
paxMin: string;
|
|
995
1105
|
paxMax: string;
|
|
1106
|
+
reservation: string;
|
|
1107
|
+
reservationSettings: string;
|
|
1108
|
+
reservationRanges: string;
|
|
1109
|
+
addRange: string;
|
|
1110
|
+
range: string;
|
|
1111
|
+
rangeName: string;
|
|
1112
|
+
priority: string;
|
|
1113
|
+
priorityDescription: string;
|
|
1114
|
+
capacity: string;
|
|
1115
|
+
capacityDescription: string;
|
|
1116
|
+
minPax: string;
|
|
1117
|
+
maxPax: string;
|
|
1118
|
+
slotInterval: string;
|
|
1119
|
+
slotIntervalDescription: string;
|
|
1120
|
+
bookingDuration: string;
|
|
1121
|
+
bookingDurationDescription: string;
|
|
1122
|
+
minLeadDays: string;
|
|
1123
|
+
minLeadDaysDescription: string;
|
|
1124
|
+
maxLeadDays: string;
|
|
1125
|
+
maxLeadDaysDescription: string;
|
|
1126
|
+
operatingWindows: string;
|
|
1127
|
+
addWindow: string;
|
|
1128
|
+
startTime: string;
|
|
1129
|
+
endTime: string;
|
|
1130
|
+
customPresetRemarks: string;
|
|
1131
|
+
addRemark: string;
|
|
1132
|
+
noRangesConfigured: string;
|
|
1133
|
+
addFirstRange: string;
|
|
1134
|
+
globalSettings: string;
|
|
1135
|
+
paxRange: string;
|
|
1136
|
+
noOperatingHours: string;
|
|
1137
|
+
saveAllChanges: string;
|
|
1138
|
+
confirmDeleteRange: string;
|
|
1139
|
+
settingUpdated: string;
|
|
1140
|
+
newReservationRange: string;
|
|
1141
|
+
basicInformation: string;
|
|
1142
|
+
guestRequirements: string;
|
|
1143
|
+
bookingConfiguration: string;
|
|
1144
|
+
rangeNamePlaceholder: string;
|
|
1145
|
+
presetRemarkPlaceholder: string;
|
|
1146
|
+
saveRange: string;
|
|
1147
|
+
draftHoldTimeMinutes: string;
|
|
1148
|
+
draftHoldTimeDescription: string;
|
|
1149
|
+
posCanOverbook: string;
|
|
1150
|
+
posCanOverbookDescription: string;
|
|
1151
|
+
notificationSettings: string;
|
|
1152
|
+
smsEnabled: string;
|
|
1153
|
+
smsEnabledDescription: string;
|
|
1154
|
+
emailEnabled: string;
|
|
1155
|
+
emailEnabledDescription: string;
|
|
1156
|
+
notifyOnConfirm: string;
|
|
1157
|
+
notifyOnConfirmDescription: string;
|
|
1158
|
+
notifyOnCancel: string;
|
|
1159
|
+
notifyOnCancelDescription: string;
|
|
996
1160
|
qrPay: string;
|
|
997
1161
|
terminalScanPay: string;
|
|
998
1162
|
terminalQrPay: string;
|
|
@@ -248,6 +248,62 @@ export declare const i18nMessages: {
|
|
|
248
248
|
current: string;
|
|
249
249
|
paxMin: string;
|
|
250
250
|
paxMax: string;
|
|
251
|
+
reservation: string;
|
|
252
|
+
reservationStatus: string;
|
|
253
|
+
reservationSettings: string;
|
|
254
|
+
reservationRanges: string;
|
|
255
|
+
reservationAvailability: string;
|
|
256
|
+
addRange: string;
|
|
257
|
+
range: string;
|
|
258
|
+
rangeName: string;
|
|
259
|
+
priority: string;
|
|
260
|
+
priorityDescription: string;
|
|
261
|
+
capacity: string;
|
|
262
|
+
capacityDescription: string;
|
|
263
|
+
minPax: string;
|
|
264
|
+
maxPax: string;
|
|
265
|
+
slotInterval: string;
|
|
266
|
+
slotIntervalDescription: string;
|
|
267
|
+
bookingDuration: string;
|
|
268
|
+
bookingDurationDescription: string;
|
|
269
|
+
minLeadDays: string;
|
|
270
|
+
minLeadDaysDescription: string;
|
|
271
|
+
maxLeadDays: string;
|
|
272
|
+
maxLeadDaysDescription: string;
|
|
273
|
+
operatingWindows: string;
|
|
274
|
+
addWindow: string;
|
|
275
|
+
startTime: string;
|
|
276
|
+
endTime: string;
|
|
277
|
+
customPresetRemarks: string;
|
|
278
|
+
addRemark: string;
|
|
279
|
+
noRangesConfigured: string;
|
|
280
|
+
addFirstRange: string;
|
|
281
|
+
globalSettings: string;
|
|
282
|
+
paxRange: string;
|
|
283
|
+
noOperatingHours: string;
|
|
284
|
+
saveAllChanges: string;
|
|
285
|
+
confirmDeleteRange: string;
|
|
286
|
+
settingUpdated: string;
|
|
287
|
+
newReservationRange: string;
|
|
288
|
+
basicInformation: string;
|
|
289
|
+
guestRequirements: string;
|
|
290
|
+
bookingConfiguration: string;
|
|
291
|
+
rangeNamePlaceholder: string;
|
|
292
|
+
presetRemarkPlaceholder: string;
|
|
293
|
+
saveRange: string;
|
|
294
|
+
draftHoldTimeMinutes: string;
|
|
295
|
+
draftHoldTimeDescription: string;
|
|
296
|
+
posCanOverbook: string;
|
|
297
|
+
posCanOverbookDescription: string;
|
|
298
|
+
notificationSettings: string;
|
|
299
|
+
smsEnabled: string;
|
|
300
|
+
smsEnabledDescription: string;
|
|
301
|
+
emailEnabled: string;
|
|
302
|
+
emailEnabledDescription: string;
|
|
303
|
+
notifyOnConfirm: string;
|
|
304
|
+
notifyOnConfirmDescription: string;
|
|
305
|
+
notifyOnCancel: string;
|
|
306
|
+
notifyOnCancelDescription: string;
|
|
251
307
|
qrPay: string;
|
|
252
308
|
terminalScanPay: string;
|
|
253
309
|
terminalQrPay: string;
|
|
@@ -621,6 +677,60 @@ export declare const i18nMessages: {
|
|
|
621
677
|
current: string;
|
|
622
678
|
paxMin: string;
|
|
623
679
|
paxMax: string;
|
|
680
|
+
reservation: string;
|
|
681
|
+
reservationSettings: string;
|
|
682
|
+
reservationRanges: string;
|
|
683
|
+
addRange: string;
|
|
684
|
+
range: string;
|
|
685
|
+
rangeName: string;
|
|
686
|
+
priority: string;
|
|
687
|
+
priorityDescription: string;
|
|
688
|
+
capacity: string;
|
|
689
|
+
capacityDescription: string;
|
|
690
|
+
minPax: string;
|
|
691
|
+
maxPax: string;
|
|
692
|
+
slotInterval: string;
|
|
693
|
+
slotIntervalDescription: string;
|
|
694
|
+
bookingDuration: string;
|
|
695
|
+
bookingDurationDescription: string;
|
|
696
|
+
minLeadDays: string;
|
|
697
|
+
minLeadDaysDescription: string;
|
|
698
|
+
maxLeadDays: string;
|
|
699
|
+
maxLeadDaysDescription: string;
|
|
700
|
+
operatingWindows: string;
|
|
701
|
+
addWindow: string;
|
|
702
|
+
startTime: string;
|
|
703
|
+
endTime: string;
|
|
704
|
+
customPresetRemarks: string;
|
|
705
|
+
addRemark: string;
|
|
706
|
+
noRangesConfigured: string;
|
|
707
|
+
addFirstRange: string;
|
|
708
|
+
globalSettings: string;
|
|
709
|
+
paxRange: string;
|
|
710
|
+
noOperatingHours: string;
|
|
711
|
+
saveAllChanges: string;
|
|
712
|
+
confirmDeleteRange: string;
|
|
713
|
+
settingUpdated: string;
|
|
714
|
+
newReservationRange: string;
|
|
715
|
+
basicInformation: string;
|
|
716
|
+
guestRequirements: string;
|
|
717
|
+
bookingConfiguration: string;
|
|
718
|
+
rangeNamePlaceholder: string;
|
|
719
|
+
presetRemarkPlaceholder: string;
|
|
720
|
+
saveRange: string;
|
|
721
|
+
draftHoldTimeMinutes: string;
|
|
722
|
+
draftHoldTimeDescription: string;
|
|
723
|
+
posCanOverbook: string;
|
|
724
|
+
posCanOverbookDescription: string;
|
|
725
|
+
notificationSettings: string;
|
|
726
|
+
smsEnabled: string;
|
|
727
|
+
smsEnabledDescription: string;
|
|
728
|
+
emailEnabled: string;
|
|
729
|
+
emailEnabledDescription: string;
|
|
730
|
+
notifyOnConfirm: string;
|
|
731
|
+
notifyOnConfirmDescription: string;
|
|
732
|
+
notifyOnCancel: string;
|
|
733
|
+
notifyOnCancelDescription: string;
|
|
624
734
|
qrPay: string;
|
|
625
735
|
terminalScanPay: string;
|
|
626
736
|
terminalQrPay: string;
|
|
@@ -992,6 +1102,60 @@ export declare const i18nMessages: {
|
|
|
992
1102
|
current: string;
|
|
993
1103
|
paxMin: string;
|
|
994
1104
|
paxMax: string;
|
|
1105
|
+
reservation: string;
|
|
1106
|
+
reservationSettings: string;
|
|
1107
|
+
reservationRanges: string;
|
|
1108
|
+
addRange: string;
|
|
1109
|
+
range: string;
|
|
1110
|
+
rangeName: string;
|
|
1111
|
+
priority: string;
|
|
1112
|
+
priorityDescription: string;
|
|
1113
|
+
capacity: string;
|
|
1114
|
+
capacityDescription: string;
|
|
1115
|
+
minPax: string;
|
|
1116
|
+
maxPax: string;
|
|
1117
|
+
slotInterval: string;
|
|
1118
|
+
slotIntervalDescription: string;
|
|
1119
|
+
bookingDuration: string;
|
|
1120
|
+
bookingDurationDescription: string;
|
|
1121
|
+
minLeadDays: string;
|
|
1122
|
+
minLeadDaysDescription: string;
|
|
1123
|
+
maxLeadDays: string;
|
|
1124
|
+
maxLeadDaysDescription: string;
|
|
1125
|
+
operatingWindows: string;
|
|
1126
|
+
addWindow: string;
|
|
1127
|
+
startTime: string;
|
|
1128
|
+
endTime: string;
|
|
1129
|
+
customPresetRemarks: string;
|
|
1130
|
+
addRemark: string;
|
|
1131
|
+
noRangesConfigured: string;
|
|
1132
|
+
addFirstRange: string;
|
|
1133
|
+
globalSettings: string;
|
|
1134
|
+
paxRange: string;
|
|
1135
|
+
noOperatingHours: string;
|
|
1136
|
+
saveAllChanges: string;
|
|
1137
|
+
confirmDeleteRange: string;
|
|
1138
|
+
settingUpdated: string;
|
|
1139
|
+
newReservationRange: string;
|
|
1140
|
+
basicInformation: string;
|
|
1141
|
+
guestRequirements: string;
|
|
1142
|
+
bookingConfiguration: string;
|
|
1143
|
+
rangeNamePlaceholder: string;
|
|
1144
|
+
presetRemarkPlaceholder: string;
|
|
1145
|
+
saveRange: string;
|
|
1146
|
+
draftHoldTimeMinutes: string;
|
|
1147
|
+
draftHoldTimeDescription: string;
|
|
1148
|
+
posCanOverbook: string;
|
|
1149
|
+
posCanOverbookDescription: string;
|
|
1150
|
+
notificationSettings: string;
|
|
1151
|
+
smsEnabled: string;
|
|
1152
|
+
smsEnabledDescription: string;
|
|
1153
|
+
emailEnabled: string;
|
|
1154
|
+
emailEnabledDescription: string;
|
|
1155
|
+
notifyOnConfirm: string;
|
|
1156
|
+
notifyOnConfirmDescription: string;
|
|
1157
|
+
notifyOnCancel: string;
|
|
1158
|
+
notifyOnCancelDescription: string;
|
|
995
1159
|
qrPay: string;
|
|
996
1160
|
terminalScanPay: string;
|
|
997
1161
|
terminalQrPay: string;
|
package/dist/frontend/mf-order/src/views/order-settings/reservation/CopySettingsSheet.vue.d.ts
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import type { FdoOrderReservationSettingsV2 } from '@entity';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
currentSettings: FdoOrderReservationSettingsV2;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
apply: (settings: Partial<{
|
|
7
|
+
smsEnabled: boolean;
|
|
8
|
+
ranges: {
|
|
9
|
+
enable?: boolean | null | undefined;
|
|
10
|
+
guestMessage?: string | null | undefined;
|
|
11
|
+
cancellationPolicy?: string | null | undefined;
|
|
12
|
+
name: string;
|
|
13
|
+
_id: string;
|
|
14
|
+
operatingHours: {
|
|
15
|
+
0: {
|
|
16
|
+
hours: {
|
|
17
|
+
end: string;
|
|
18
|
+
start: string;
|
|
19
|
+
}[];
|
|
20
|
+
enable: boolean;
|
|
21
|
+
};
|
|
22
|
+
2: {
|
|
23
|
+
hours: {
|
|
24
|
+
end: string;
|
|
25
|
+
start: string;
|
|
26
|
+
}[];
|
|
27
|
+
enable: boolean;
|
|
28
|
+
};
|
|
29
|
+
1: {
|
|
30
|
+
hours: {
|
|
31
|
+
end: string;
|
|
32
|
+
start: string;
|
|
33
|
+
}[];
|
|
34
|
+
enable: boolean;
|
|
35
|
+
};
|
|
36
|
+
3: {
|
|
37
|
+
hours: {
|
|
38
|
+
end: string;
|
|
39
|
+
start: string;
|
|
40
|
+
}[];
|
|
41
|
+
enable: boolean;
|
|
42
|
+
};
|
|
43
|
+
4: {
|
|
44
|
+
hours: {
|
|
45
|
+
end: string;
|
|
46
|
+
start: string;
|
|
47
|
+
}[];
|
|
48
|
+
enable: boolean;
|
|
49
|
+
};
|
|
50
|
+
5: {
|
|
51
|
+
hours: {
|
|
52
|
+
end: string;
|
|
53
|
+
start: string;
|
|
54
|
+
}[];
|
|
55
|
+
enable: boolean;
|
|
56
|
+
};
|
|
57
|
+
6: {
|
|
58
|
+
hours: {
|
|
59
|
+
end: string;
|
|
60
|
+
start: string;
|
|
61
|
+
}[];
|
|
62
|
+
enable: boolean;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
slotInterval: number;
|
|
66
|
+
bookingDuration: number;
|
|
67
|
+
minLeadDuration: {
|
|
68
|
+
value: number;
|
|
69
|
+
unit: "day" | "hour" | "minute";
|
|
70
|
+
};
|
|
71
|
+
maxLeadDuration: {
|
|
72
|
+
value: number;
|
|
73
|
+
unit: "day" | "hour" | "minute";
|
|
74
|
+
};
|
|
75
|
+
capacityTiers: {
|
|
76
|
+
priority?: number | null | undefined;
|
|
77
|
+
maxPax?: number | null | undefined;
|
|
78
|
+
_id: string;
|
|
79
|
+
minPax: number;
|
|
80
|
+
capacity: number;
|
|
81
|
+
}[];
|
|
82
|
+
enablePreorder: boolean;
|
|
83
|
+
preferences: {
|
|
84
|
+
name: string;
|
|
85
|
+
options: string[];
|
|
86
|
+
type: "text" | "checkbox" | "radio";
|
|
87
|
+
}[];
|
|
88
|
+
}[];
|
|
89
|
+
posCanOverbook: boolean;
|
|
90
|
+
draftHoldTimeMinutes: number;
|
|
91
|
+
emailEnabled: boolean;
|
|
92
|
+
notifyOnConfirm: boolean;
|
|
93
|
+
notifyOnCancel: boolean;
|
|
94
|
+
}>) => any;
|
|
95
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
96
|
+
onApply?: ((settings: Partial<{
|
|
97
|
+
smsEnabled: boolean;
|
|
98
|
+
ranges: {
|
|
99
|
+
enable?: boolean | null | undefined;
|
|
100
|
+
guestMessage?: string | null | undefined;
|
|
101
|
+
cancellationPolicy?: string | null | undefined;
|
|
102
|
+
name: string;
|
|
103
|
+
_id: string;
|
|
104
|
+
operatingHours: {
|
|
105
|
+
0: {
|
|
106
|
+
hours: {
|
|
107
|
+
end: string;
|
|
108
|
+
start: string;
|
|
109
|
+
}[];
|
|
110
|
+
enable: boolean;
|
|
111
|
+
};
|
|
112
|
+
2: {
|
|
113
|
+
hours: {
|
|
114
|
+
end: string;
|
|
115
|
+
start: string;
|
|
116
|
+
}[];
|
|
117
|
+
enable: boolean;
|
|
118
|
+
};
|
|
119
|
+
1: {
|
|
120
|
+
hours: {
|
|
121
|
+
end: string;
|
|
122
|
+
start: string;
|
|
123
|
+
}[];
|
|
124
|
+
enable: boolean;
|
|
125
|
+
};
|
|
126
|
+
3: {
|
|
127
|
+
hours: {
|
|
128
|
+
end: string;
|
|
129
|
+
start: string;
|
|
130
|
+
}[];
|
|
131
|
+
enable: boolean;
|
|
132
|
+
};
|
|
133
|
+
4: {
|
|
134
|
+
hours: {
|
|
135
|
+
end: string;
|
|
136
|
+
start: string;
|
|
137
|
+
}[];
|
|
138
|
+
enable: boolean;
|
|
139
|
+
};
|
|
140
|
+
5: {
|
|
141
|
+
hours: {
|
|
142
|
+
end: string;
|
|
143
|
+
start: string;
|
|
144
|
+
}[];
|
|
145
|
+
enable: boolean;
|
|
146
|
+
};
|
|
147
|
+
6: {
|
|
148
|
+
hours: {
|
|
149
|
+
end: string;
|
|
150
|
+
start: string;
|
|
151
|
+
}[];
|
|
152
|
+
enable: boolean;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
slotInterval: number;
|
|
156
|
+
bookingDuration: number;
|
|
157
|
+
minLeadDuration: {
|
|
158
|
+
value: number;
|
|
159
|
+
unit: "day" | "hour" | "minute";
|
|
160
|
+
};
|
|
161
|
+
maxLeadDuration: {
|
|
162
|
+
value: number;
|
|
163
|
+
unit: "day" | "hour" | "minute";
|
|
164
|
+
};
|
|
165
|
+
capacityTiers: {
|
|
166
|
+
priority?: number | null | undefined;
|
|
167
|
+
maxPax?: number | null | undefined;
|
|
168
|
+
_id: string;
|
|
169
|
+
minPax: number;
|
|
170
|
+
capacity: number;
|
|
171
|
+
}[];
|
|
172
|
+
enablePreorder: boolean;
|
|
173
|
+
preferences: {
|
|
174
|
+
name: string;
|
|
175
|
+
options: string[];
|
|
176
|
+
type: "text" | "checkbox" | "radio";
|
|
177
|
+
}[];
|
|
178
|
+
}[];
|
|
179
|
+
posCanOverbook: boolean;
|
|
180
|
+
draftHoldTimeMinutes: number;
|
|
181
|
+
emailEnabled: boolean;
|
|
182
|
+
notifyOnConfirm: boolean;
|
|
183
|
+
notifyOnCancel: boolean;
|
|
184
|
+
}>) => any) | undefined;
|
|
185
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
186
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
interface SelectItem {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string;
|
|
4
|
+
icon?: 'radio' | 'checkbox';
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
modelValue: string;
|
|
8
|
+
items: SelectItem[];
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
+
"update:modelValue": (value: string) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: string;
|
|
3
|
+
minTime?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:modelValue": (value: string) => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
package/dist/frontend/mf-order/src/views/order-settings/reservation/ReservationSetting.vue.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as i,
|
|
1
|
+
import { g as i, E as _, S as C, r as g } from "./menu.dto-CgymySda.js";
|
|
2
2
|
async function R() {
|
|
3
3
|
const r = await g().get("/order-settings");
|
|
4
4
|
return i(r);
|
|
@@ -12,7 +12,7 @@ const U = {
|
|
|
12
12
|
updateOrderSetting: S
|
|
13
13
|
};
|
|
14
14
|
async function p() {
|
|
15
|
-
return i(await
|
|
15
|
+
return i(await _().get(`balance/${C.getBusinessId()}`));
|
|
16
16
|
}
|
|
17
17
|
const y = {
|
|
18
18
|
read: p
|
|
@@ -41,20 +41,20 @@ function T(r) {
|
|
|
41
41
|
return e;
|
|
42
42
|
}
|
|
43
43
|
function b(r, e) {
|
|
44
|
-
const [t, c, s] = x(r, e), a = h(e == null ? void 0 : e.locale), n =
|
|
45
|
-
return t + c.map(
|
|
44
|
+
const [t, c, s] = x(r, e), a = h(e == null ? void 0 : e.locale), n = E(e == null ? void 0 : e.locale);
|
|
45
|
+
return t + c.map(L(a, n)).join(" ") + s;
|
|
46
46
|
}
|
|
47
47
|
function O(r, e) {
|
|
48
|
-
const [t, c, s] = x(r, e), a = h(e == null ? void 0 : e.locale), n =
|
|
49
|
-
return t + c.map((u,
|
|
48
|
+
const [t, c, s] = x(r, e), a = h(e == null ? void 0 : e.locale), n = E(e == null ? void 0 : e.locale), l = L(a, n);
|
|
49
|
+
return t + c.map((u, P) => P === 0 ? l(u) : a(u)).join(" ") + s;
|
|
50
50
|
}
|
|
51
51
|
function h(r) {
|
|
52
52
|
return (e) => e.toLocaleLowerCase(r);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function E(r) {
|
|
55
55
|
return (e) => e.toLocaleUpperCase(r);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function L(r, e) {
|
|
58
58
|
return (t) => `${e(t[0])}${r(t.slice(1))}`;
|
|
59
59
|
}
|
|
60
60
|
function x(r, e = {}) {
|