@feedmepos/mf-order-setting 0.0.102 → 0.0.103
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/dist/{DisplaySystemView-jnt6letY.js → DisplaySystemView-BBiZqcWq.js} +1497 -1468
- package/dist/{FoodCourtInvitationsView-DoynqFWB.js → FoodCourtInvitationsView-DwOkVs9m.js} +4 -4
- package/dist/{FoodCourtOrderSettingsView-DYZLhTHy.js → FoodCourtOrderSettingsView-C9Ag5Bsg.js} +1 -1
- package/dist/FoodCourtOrdersView-y4EwK3sn.js +1173 -0
- package/dist/{FoodCourtStallsView-CRMTt5BB.js → FoodCourtStallsView-Bi8H-yR7.js} +2 -2
- package/dist/{FoodCourtStatusView-C-b-eI-8.js → FoodCourtStatusView-jugAzTKg.js} +1 -1
- package/dist/KioskDevicesView-CYiew4X5.js +4 -0
- package/dist/KioskDevicesView.vue_vue_type_script_setup_true_lang-BCvbeo7R.js +1497 -0
- package/dist/KioskSettingView-AKBiij9a.js +1124 -0
- package/dist/KioskView-zKB6mC8I.js +765 -0
- package/dist/{OrderSettingsView-BBCnekaj.js → OrderSettingsView-CoV_yX3m.js} +22064 -21635
- package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-DjoTyV6m.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-KSMU_jGl.js} +1 -1
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/{app-Dvk30CIa.js → app-CmuI6uSl.js} +3589 -2902
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DUFHhM7O.js → dayjs.min-B3MssMma.js} +1 -1
- package/dist/{featureFlag-BvcirzHS.js → featureFlag-CWvkPOBY.js} +123 -130
- package/dist/frontend/mf-order/src/api/food-court/index.d.ts +51 -0
- package/dist/frontend/mf-order/src/api/kiosk/index.d.ts +4 -0
- package/dist/frontend/mf-order/src/api/payment/index.d.ts +8 -0
- package/dist/frontend/mf-order/src/api/queue/index.d.ts +13 -0
- package/dist/frontend/mf-order/src/api/restaurant-setting/index.d.ts +9 -1
- package/dist/frontend/mf-order/src/app.d.ts +687 -0
- package/dist/frontend/mf-order/src/main.d.ts +687 -0
- package/dist/frontend/mf-order/src/modules/display-system/interface.d.ts +5 -0
- package/dist/frontend/mf-order/src/modules/kiosk/interface.d.ts +4 -0
- package/dist/frontend/mf-order/src/modules/kiosk/license.d.ts +92 -0
- package/dist/frontend/mf-order/src/modules/kiosk/outletLoad.d.ts +15 -0
- package/dist/frontend/mf-order/src/modules/kiosk/settingsSections.d.ts +24 -0
- package/dist/frontend/mf-order/src/modules/kiosk/useKioskSettings.d.ts +29 -0
- package/dist/frontend/mf-order/src/modules/payment/paymentDevice.d.ts +58 -0
- package/dist/frontend/mf-order/src/stores/kiosk/index.d.ts +67 -1
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +19 -10
- package/dist/frontend/mf-order/src/stores/payment/index.d.ts +59 -1
- package/dist/frontend/mf-order/src/views/food-court/food-court-export.d.ts +38 -0
- package/dist/frontend/mf-order/src/views/kiosk/devices/KioskDeviceCard.vue.d.ts +3 -0
- package/dist/frontend/mf-order/src/views/kiosk/devices/KioskDevicesView.vue.d.ts +7 -0
- package/dist/frontend/mf-order/src/views/kiosk/devices/KioskLicenseSummary.vue.d.ts +7 -0
- package/dist/frontend/mf-order/src/views/kiosk/devices/KioskLicensesView.vue.d.ts +6 -0
- package/dist/frontend/mf-order/src/views/kiosk/devices/KioskOtpDialog.vue.d.ts +3 -0
- package/dist/frontend/mf-order/src/views/kiosk/devices/KioskPaymentDeviceCard.vue.d.ts +17 -0
- package/dist/frontend/mf-order/src/views/kiosk/settings/KioskSettingView.vue.d.ts +5 -2
- package/dist/frontend/mf-order/src/views/order-settings/pickup/PickUpSettingDialogContent.vue.d.ts +0 -9
- package/dist/frontend/mf-order/src/views/order-settings/pos-status/PosOrderingStatus.vue.d.ts +17 -0
- package/dist/frontend/mf-order/src/views/order-settings/pos-status/pos-status.d.ts +44 -0
- package/dist/frontend/mf-order/src/views/order-settings/queue/called-message.d.ts +1 -0
- package/dist/frontend/mf-order/src/views/order-settings/queue/phone-join-mode.d.ts +25 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-C4n5H7t3.js → index-BQa8AudZ.js} +3 -3
- package/dist/index-CMOvrim4.js +147 -0
- package/dist/{index-CW4VlFWz.js → index-D5qh2_4b.js} +1 -1
- package/dist/{index-C5n6lil6.js → index-Dup6kWLX.js} +6 -6
- package/dist/{index-CGxCWKHB.js → index-wuFIsXHT.js} +188 -179
- package/dist/{order.dto-Cb_gh3iB.js → order.dto-BD9raQG5.js} +2782 -2735
- package/dist/package/entity/display/blocks.d.ts +12 -2
- package/dist/package/entity/marketing/marketing.dto.d.ts +18 -18
- package/dist/package/entity/order-platform/external/reconciliation/external-reconciliation.do.d.ts +24 -24
- package/dist/package/entity/order-platform/menu.dto.d.ts +20 -20
- package/dist/package/entity/order-setting/order-setting.do.d.ts +10 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +26 -0
- package/dist/package/entity/order-setting/queue/queue.do.d.ts +23 -0
- package/dist/package/entity/order-setting/queue/queue.dto.d.ts +14 -0
- package/dist/package/entity/queue/queue.do.d.ts +153 -0
- package/dist/package/entity/queue/queue.dto.d.ts +221 -2
- package/dist/package/entity/queue/queue.enum.d.ts +5 -0
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +20 -0
- package/dist/style.css +1 -1
- package/dist/{index-ILnighyU.js → useInternalUser-CHtaur9A.js} +93 -81
- package/package.json +2 -1
- package/src/api/food-court/index.ts +63 -0
- package/src/api/kiosk/index.ts +8 -0
- package/src/api/payment/index.ts +18 -1
- package/src/api/queue/index.ts +39 -0
- package/src/api/restaurant-setting/index.ts +14 -0
- package/src/locales/en-US.json +197 -26
- package/src/locales/ja-JP.json +193 -23
- package/src/locales/th-TH.json +193 -21
- package/src/locales/zh-CN.json +197 -23
- package/src/modules/display-system/interface.spec.ts +26 -1
- package/src/modules/display-system/interface.ts +20 -0
- package/src/modules/kiosk/interface.ts +4 -0
- package/src/modules/kiosk/license.spec.ts +167 -0
- package/src/modules/kiosk/license.ts +175 -0
- package/src/modules/kiosk/outletLoad.spec.ts +25 -0
- package/src/modules/kiosk/outletLoad.ts +19 -0
- package/src/modules/kiosk/settingsSections.spec.ts +85 -0
- package/src/modules/kiosk/settingsSections.ts +82 -0
- package/src/modules/kiosk/useKioskSettings.spec.ts +157 -0
- package/src/modules/kiosk/useKioskSettings.ts +61 -0
- package/src/modules/payment/paymentDevice.spec.ts +175 -0
- package/src/modules/payment/paymentDevice.ts +156 -0
- package/src/stores/kiosk/index.ts +16 -1
- package/src/stores/kiosk/mapper.ts +2 -0
- package/src/stores/order-setting/index.spec.ts +83 -0
- package/src/stores/order-setting/index.ts +49 -27
- package/src/stores/payment/index.spec.ts +86 -0
- package/src/stores/payment/index.ts +48 -2
- package/src/views/display-system/DisplayInspector.vue +17 -8
- package/src/views/display-system/DisplayTemplateEditor.vue +3 -1
- package/src/views/food-court/FoodCourtOrdersView.vue +46 -1
- package/src/views/food-court/food-court-export.spec.ts +151 -0
- package/src/views/food-court/food-court-export.ts +283 -0
- package/src/views/kiosk/KioskStatePanel.vue +2 -2
- package/src/views/kiosk/KioskView.vue +219 -82
- package/src/views/kiosk/devices/KioskDeviceCard.vue +148 -23
- package/src/views/kiosk/devices/KioskDevicesView.vue +48 -10
- package/src/views/kiosk/devices/KioskLicenseSummary.vue +79 -0
- package/src/views/kiosk/devices/KioskLicensesView.vue +152 -0
- package/src/views/kiosk/devices/KioskOtpDialog.vue +41 -1
- package/src/views/kiosk/devices/KioskPaymentDeviceCard.spec.ts +97 -0
- package/src/views/kiosk/devices/KioskPaymentDeviceCard.vue +221 -0
- package/src/views/kiosk/settings/KioskPaymentTypeSection.vue +1 -1
- package/src/views/kiosk/settings/KioskSettingView.vue +702 -419
- package/src/views/order-settings/delivery/DeliverySetting.vue +4 -0
- package/src/views/order-settings/dine-in/DineInSetting.vue +4 -0
- package/src/views/order-settings/pickup/PickUpSetting.vue +4 -4
- package/src/views/order-settings/pickup/PickUpSettingDialogContent.vue +0 -23
- package/src/views/order-settings/pos-status/PosOrderingStatus.spec.ts +207 -0
- package/src/views/order-settings/pos-status/PosOrderingStatus.vue +209 -0
- package/src/views/order-settings/pos-status/pos-status.spec.ts +103 -0
- package/src/views/order-settings/pos-status/pos-status.ts +86 -0
- package/src/views/order-settings/queue/QueueSetting.source.spec.ts +43 -0
- package/src/views/order-settings/queue/QueueSetting.vue +289 -15
- package/src/views/order-settings/queue/called-message.spec.ts +29 -1
- package/src/views/order-settings/queue/called-message.ts +18 -0
- package/src/views/order-settings/queue/phone-join-mode.spec.ts +90 -0
- package/src/views/order-settings/queue/phone-join-mode.ts +49 -0
- package/dist/FoodCourtOrdersView-CAPOycT3.js +0 -544
- package/dist/KioskDevicesView-B0U9JxRl.js +0 -4
- package/dist/KioskDevicesView.vue_vue_type_script_setup_true_lang-V3ai4FVI.js +0 -937
- package/dist/KioskSettingView-rdom_aS8.js +0 -880
- package/dist/KioskView-DOON9zR6.js +0 -516
- package/dist/frontend/mf-order/src/views/kiosk/settings/KioskDisplayStandSection.vue.d.ts +0 -10
- package/dist/frontend/mf-order/src/views/kiosk/settings/KioskInstructionSection.vue.d.ts +0 -15
- package/dist/frontend/mf-order/src/views/kiosk/settings/KioskPickAtCounterSection.vue.d.ts +0 -10
- package/dist/index-CaHG3M7C.js +0 -135
- package/src/views/kiosk/settings/KioskDisplayStandSection.vue +0 -189
- package/src/views/kiosk/settings/KioskInstructionSection.vue +0 -40
- package/src/views/kiosk/settings/KioskPickAtCounterSection.vue +0 -68
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var dn = Object.defineProperty;
|
|
2
2
|
var pn = (e, t, n) => t in e ? dn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var je = (e, t, n) => pn(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { e as Ct } from "./app-
|
|
4
|
+
import { e as Ct } from "./app-CmuI6uSl.js";
|
|
5
5
|
import { useCoreStore as Y } from "@feedmepos/mf-common";
|
|
6
6
|
function Ut(e, t) {
|
|
7
7
|
return function() {
|
|
@@ -2699,8 +2699,8 @@ function to(e) {
|
|
|
2699
2699
|
return e.data;
|
|
2700
2700
|
}
|
|
2701
2701
|
export {
|
|
2702
|
-
|
|
2703
|
-
|
|
2702
|
+
K as S,
|
|
2703
|
+
Ts as a,
|
|
2704
2704
|
Ee as b,
|
|
2705
2705
|
A as c,
|
|
2706
2706
|
Gs as d,
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { g as a, b as o } from "./index-BQa8AudZ.js";
|
|
2
|
+
const n = (t) => o(`/food-court-v2/${t}`), u = {
|
|
3
|
+
async getDineIn(t) {
|
|
4
|
+
return a(await n(t).get("/dine-in"));
|
|
5
|
+
},
|
|
6
|
+
async updateDineIn(t, e) {
|
|
7
|
+
return a(
|
|
8
|
+
await n(t).put("/dine-in", e)
|
|
9
|
+
);
|
|
10
|
+
},
|
|
11
|
+
async getOrderNumber(t) {
|
|
12
|
+
return a(
|
|
13
|
+
await n(t).get("/order-number")
|
|
14
|
+
);
|
|
15
|
+
},
|
|
16
|
+
async updateOrderNumber(t, e) {
|
|
17
|
+
return a(
|
|
18
|
+
await n(t).put("/order-number", e)
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
}, r = (t) => o(`/foodcourt-v2/${t}`), c = {
|
|
22
|
+
/** Every row of the court, any status, in court order. */
|
|
23
|
+
async listMembers(t) {
|
|
24
|
+
return a(
|
|
25
|
+
await r(t).get("/members")
|
|
26
|
+
);
|
|
27
|
+
},
|
|
28
|
+
async updateMember(t, e) {
|
|
29
|
+
return a(
|
|
30
|
+
await r(t).post("/members/update", e)
|
|
31
|
+
);
|
|
32
|
+
},
|
|
33
|
+
/** Cancel a legacy pending invitation (an INVITED row from before join codes). */
|
|
34
|
+
async revokeInvite(t, e) {
|
|
35
|
+
return a(
|
|
36
|
+
await r(t).post("/members/revoke-invite", { memberId: e })
|
|
37
|
+
);
|
|
38
|
+
},
|
|
39
|
+
/** Remove an active stall from the court. */
|
|
40
|
+
async removeMember(t, e) {
|
|
41
|
+
return a(
|
|
42
|
+
await r(t).post("/members/remove", { memberId: e })
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
}, d = {
|
|
46
|
+
/** Every code of the court, any status, newest first. */
|
|
47
|
+
async listJoinCodes(t) {
|
|
48
|
+
return a(
|
|
49
|
+
await r(t).get("/join-codes")
|
|
50
|
+
);
|
|
51
|
+
},
|
|
52
|
+
/** Null `stall`: the code carries no stall number or display name. */
|
|
53
|
+
async createJoinCode(t, e) {
|
|
54
|
+
return a(
|
|
55
|
+
await r(t).post("/join-codes", e ? { stall: e } : {})
|
|
56
|
+
);
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* `count` blank codes (a whole number, 1 to 50) in one go, all or none.
|
|
60
|
+
* Each code is returned only here, as with one; a bad count is 400
|
|
61
|
+
* INVALID_REQUEST.
|
|
62
|
+
*/
|
|
63
|
+
async createJoinCodes(t, e) {
|
|
64
|
+
return a(
|
|
65
|
+
await r(t).post("/join-codes", { count: e })
|
|
66
|
+
);
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* Replaces the stall number and display name a code carries (null clears
|
|
70
|
+
* them), while it is unused or its request waits for approval; the stall
|
|
71
|
+
* joins with them when approved. Any other code is 400 JOIN_CODE_NOT_EDITABLE.
|
|
72
|
+
*/
|
|
73
|
+
async updateJoinCode(t, e, s) {
|
|
74
|
+
return a(
|
|
75
|
+
await r(t).post("/join-codes/update", {
|
|
76
|
+
joinCodeId: e,
|
|
77
|
+
stall: s
|
|
78
|
+
})
|
|
79
|
+
);
|
|
80
|
+
},
|
|
81
|
+
/** An OPEN code (expired included) can no longer be redeemed. */
|
|
82
|
+
async cancelJoinCode(t, e) {
|
|
83
|
+
return a(
|
|
84
|
+
await r(t).post("/join-codes/cancel", { joinCodeId: e })
|
|
85
|
+
);
|
|
86
|
+
},
|
|
87
|
+
/** The requesting outlet joins as an ACTIVE stall: answers its member row. */
|
|
88
|
+
async approveJoinRequest(t, e) {
|
|
89
|
+
return a(
|
|
90
|
+
await r(t).post("/join-codes/approve", { joinCodeId: e })
|
|
91
|
+
);
|
|
92
|
+
},
|
|
93
|
+
/** The code is used up; the stall needs a new one to ask again. */
|
|
94
|
+
async declineJoinRequest(t, e) {
|
|
95
|
+
return a(
|
|
96
|
+
await r(t).post("/join-codes/decline", { joinCodeId: e })
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
}, p = {
|
|
100
|
+
async getStatus(t) {
|
|
101
|
+
return a(
|
|
102
|
+
await r(t).get("/status")
|
|
103
|
+
);
|
|
104
|
+
},
|
|
105
|
+
/**
|
|
106
|
+
* ACTIVE without a ready payout account is refused (400 PAYOUT_ACCOUNT_NOT_READY,
|
|
107
|
+
* or PAYOUT_ACCOUNT_UNAVAILABLE while payment-service is down).
|
|
108
|
+
*/
|
|
109
|
+
async updateStatus(t, e) {
|
|
110
|
+
return a(
|
|
111
|
+
await r(t).put("/status", { status: e })
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
}, m = {
|
|
115
|
+
async listOrders(t, e) {
|
|
116
|
+
return a(
|
|
117
|
+
await n(t).get("/orders", {
|
|
118
|
+
params: { ...e, status: e.status.join(",") }
|
|
119
|
+
})
|
|
120
|
+
);
|
|
121
|
+
},
|
|
122
|
+
async getOrder(t, e) {
|
|
123
|
+
return a(
|
|
124
|
+
await n(t).get(`/orders/${e}`)
|
|
125
|
+
);
|
|
126
|
+
},
|
|
127
|
+
/**
|
|
128
|
+
* Every order the list's filters match, one row per stall order (KDI-4942).
|
|
129
|
+
* Refused (400) past 31 days with code EXPORT_RANGE_TOO_LONG, or past 50,000
|
|
130
|
+
* rows with EXPORT_TOO_MANY_ROWS.
|
|
131
|
+
*/
|
|
132
|
+
async exportOrders(t, e) {
|
|
133
|
+
return a(
|
|
134
|
+
await n(t).get("/order-export", {
|
|
135
|
+
params: { ...e, status: e.status.join(",") }
|
|
136
|
+
})
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
export {
|
|
141
|
+
u as F,
|
|
142
|
+
d as a,
|
|
143
|
+
c as b,
|
|
144
|
+
p as c,
|
|
145
|
+
m as d,
|
|
146
|
+
r as f
|
|
147
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as Le, j as ea } from "./app-
|
|
1
|
+
import { c as Le, j as ea } from "./app-CmuI6uSl.js";
|
|
2
2
|
function Ct(me) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + me + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as s, s as o,
|
|
2
|
-
import "./order.dto-
|
|
1
|
+
import { g as s, s as o, S as g, r as u } from "./index-BQa8AudZ.js";
|
|
2
|
+
import "./order.dto-BD9raQG5.js";
|
|
3
3
|
function S(t, n = () => !1) {
|
|
4
4
|
var i;
|
|
5
5
|
const e = (i = t.queueSettings) == null ? void 0 : i.codeSettings;
|
|
@@ -7,10 +7,10 @@ function S(t, n = () => !1) {
|
|
|
7
7
|
...t,
|
|
8
8
|
queueSettings: {
|
|
9
9
|
...t.queueSettings,
|
|
10
|
-
codeSettings: e.map((r,
|
|
11
|
-
if (n(r,
|
|
12
|
-
const { current: m, ...
|
|
13
|
-
return
|
|
10
|
+
codeSettings: e.map((r, c) => {
|
|
11
|
+
if (n(r, c)) return r;
|
|
12
|
+
const { current: m, ...a } = r;
|
|
13
|
+
return a;
|
|
14
14
|
})
|
|
15
15
|
}
|
|
16
16
|
} : t;
|