@feedmepos/mf-order-setting 0.0.54 → 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.
- package/.tsbuildinfo +1 -0
- package/dist/{KioskDevicesView-CMKNjgWx.js → KioskDevicesView-Qv-xd_kZ.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-B1sNvlUC.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CCF1mKni.js} +2 -2
- package/dist/KioskSettingView-CvvrK6Bv.js +643 -0
- package/dist/{KioskView-U-Wg8oMC.js → KioskView-CppTVBv-.js} +117 -117
- package/dist/OrderSettingsView-C38N61dM.js +36564 -0
- package/dist/{app-CFfgPAd8.js → app-Bss1GkKY.js} +392 -228
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-CuRr-wlf.js → dayjs.min-DZfxGUk4.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/stores/order-setting/index.d.ts +3 -0
- package/dist/frontend/mf-order/src/stores/restaurant/index.d.ts +1 -1
- package/dist/frontend/mf-order/src/views/kiosk/settings/KioskPaymentTypeSection.vue.d.ts +13 -3
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +12 -4
- package/dist/frontend/mf-order/src/views/order-settings/dine-in/OfflinePaymentTypeDialog.vue.d.ts +4 -4
- package/dist/frontend/mf-order/src/views/order-settings/dine-in/PaymentType.vue.d.ts +38 -4
- package/dist/frontend/mf-order/src/views/order-settings/pickup/PaymentSidesheet.vue.d.ts +1 -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 +11 -0
- package/dist/frontend/mf-order/src/views/order-settings/reservation/ReservationSetting.vue.d.ts +2 -0
- package/dist/{index-Bj0bCGTm.js → index-B6AGCsrw.js} +3 -3
- package/dist/index-BpKR-Cxd.js +19757 -0
- package/dist/{menu.dto-DAh1J2ES.js → menu.dto-C_B3M2fs.js} +7390 -7134
- package/dist/package/entity/incoming-order/incoming-order.do.d.ts +22443 -3
- package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +3 -3
- package/dist/package/entity/incoming-order/incoming-order.enum.d.ts +1 -1
- package/dist/package/entity/index.d.ts +6 -0
- package/dist/package/entity/marketing/marketing.dto.d.ts +1 -1
- package/dist/package/entity/order/dine-in/qr.dto.d.ts +38 -0
- package/dist/package/entity/order/order.do.d.ts +6358 -2
- package/dist/package/entity/order/order.dto.d.ts +22 -0
- package/dist/package/entity/order-platform/deliveroo/deliveroo-dto.d.ts +3 -0
- package/dist/package/entity/order-platform/deliveroo/deliveroo-setting.do.d.ts +3 -0
- package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +12 -12
- package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +32 -32
- package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +21 -3
- package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +12 -2
- package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.do.d.ts +3 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.dto.d.ts +3 -0
- package/dist/package/entity/order-platform/grabfood/grabfood-edit-order.do.d.ts +9 -1
- package/dist/package/entity/order-platform/grabfood/grabfood-settings.do.d.ts +2 -2
- package/dist/package/entity/order-platform/grabfood/grabfood.dto.d.ts +3 -3
- package/dist/package/entity/order-platform/order-platform.dto.d.ts +2 -2
- package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.do.d.ts +3 -0
- package/dist/package/entity/order-platform/shopeefood/shopeefood-settings.dto.d.ts +3 -0
- package/dist/package/entity/order-setting/order-setting.do.d.ts +864 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +6 -0
- package/dist/package/entity/order-setting/reservationV2/reservation.do.d.ts +1269 -0
- package/dist/package/entity/queue/queue.do.d.ts +3 -8
- package/dist/package/entity/queue/queue.dto.d.ts +10 -0
- package/dist/package/entity/reservation/reservation.do.d.ts +105 -0
- package/dist/package/entity/reservation/reservation.dto.d.ts +335 -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/KioskSummary.vue +3 -0
- package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +99 -211
- package/src/views/kiosk/settings/KioskSettingView.vue +43 -25
- package/src/views/order-settings/OrderSettingsView.vue +6 -1
- package/src/views/order-settings/dine-in/DineInSetting.vue +1 -0
- package/src/views/order-settings/dine-in/OfflinePaymentTypeDialog.vue +2 -3
- package/src/views/order-settings/dine-in/PaymentType.vue +151 -43
- package/src/views/order-settings/pickup/PaymentSidesheet.vue +33 -172
- package/src/views/order-settings/pickup/PickUpSettingDialogContent.vue +1 -0
- 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 +311 -0
- package/src/views/order-settings/reservation/ReservationSetting.vue +1555 -0
- package/tsconfig.app.json +8 -6
- package/dist/KioskSettingView-BE_pMA-i.js +0 -720
- package/dist/OrderSettingsView-BWzaITT6.js +0 -51916
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +0 -1
- package/dist/index-BXsnV_eO.js +0 -150
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,11 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: string;
|
|
3
|
+
minTime?: string;
|
|
4
|
+
restrictMinTime?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
7
|
+
"update:modelValue": (value: string) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
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, D as _, S as C, r as g } from "./menu.dto-C_B3M2fs.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
|
|
@@ -46,7 +46,7 @@ function b(r, e) {
|
|
|
46
46
|
}
|
|
47
47
|
function O(r, e) {
|
|
48
48
|
const [t, c, s] = x(r, e), a = h(e == null ? void 0 : e.locale), n = L(e == null ? void 0 : e.locale), l = E(a, n);
|
|
49
|
-
return t + c.map((u,
|
|
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);
|