@feedmepos/mf-order-setting 0.0.95 → 0.0.96
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-rCw3DE0u.js → DisplaySystemView-BH8SkCOF.js} +4 -4
- package/dist/FoodCourtInvitationsView-3cA0Z-5m.js +383 -0
- package/dist/FoodCourtOrderSettingsView-DysrLZJD.js +294 -0
- package/dist/FoodCourtOrdersView-CbZqHIXO.js +544 -0
- package/dist/FoodCourtStallsView-CTZzPUQ6.js +635 -0
- package/dist/FoodCourtStatusView-C71y7ghx.js +113 -0
- package/dist/{KioskDevicesView-B4dgvMq_.js → KioskDevicesView-BJpbuSzp.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-B-Oi8ZLq.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CQFpwn28.js} +7 -6
- package/dist/{KioskSettingView-DXx6wQQQ.js → KioskSettingView-CJxhMf7N.js} +3 -3
- package/dist/{KioskView-BmSHCl13.js → KioskView-BZsdRID1.js} +6 -6
- package/dist/{OrderSettingsView-9NOSAxLf.js → OrderSettingsView-gnyXaJjf.js} +10631 -10601
- package/dist/{app-y20uA-tu.js → app-CeEFBB-w.js} +4484 -3672
- package/dist/app.js +1 -1
- package/dist/dayjs.min-zBHHlxAP.js +285 -0
- package/dist/{featureFlag-GHmH1G2d.js → featureFlag-BTY_R78k.js} +1 -1
- package/dist/food-court-member-piX3gesl.js +212 -0
- package/dist/frontend/mf-order/src/api/food-court/index.d.ts +269 -0
- package/dist/frontend/mf-order/src/api/food-court/invitation.d.ts +55 -0
- package/dist/frontend/mf-order/src/app.d.ts +676 -0
- package/dist/frontend/mf-order/src/main.d.ts +676 -0
- package/dist/frontend/mf-order/src/stores/business/index.d.ts +3 -3
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +6 -0
- package/dist/frontend/mf-order/src/utils/constants/route.d.ts +4 -0
- package/dist/frontend/mf-order/src/views/food-court/FoodCourtInvitationsView.vue.d.ts +2 -0
- package/dist/frontend/mf-order/src/views/food-court/FoodCourtOrdersView.vue.d.ts +2 -0
- package/dist/frontend/mf-order/src/views/food-court/FoodCourtStallsView.vue.d.ts +2 -0
- package/dist/frontend/mf-order/src/views/food-court/FoodCourtStatusView.vue.d.ts +2 -0
- package/dist/frontend/mf-order/src/views/food-court/food-court-member.d.ts +150 -0
- package/dist/frontend/mf-order/src/views/food-court/food-court-order.d.ts +66 -0
- package/dist/frontend/mf-order/src/views/food-court/invitations/JoinFoodCourtCard.vue.d.ts +13 -0
- package/dist/frontend/mf-order/src/views/food-court/invitations/MembershipRowActions.vue.d.ts +11 -0
- package/dist/frontend/mf-order/src/views/food-court/orders/FoodCourtOrderSheet.vue.d.ts +16 -0
- package/dist/frontend/mf-order/src/views/food-court/stalls/EditStallSheet.vue.d.ts +15 -0
- package/dist/frontend/mf-order/src/views/food-court/stalls/GenerateJoinCodeSheet.vue.d.ts +21 -0
- package/dist/frontend/mf-order/src/views/food-court/stalls/StallAssignmentFields.vue.d.ts +16 -0
- package/dist/frontend/mf-order/src/views/food-court/stalls/StallRowActions.vue.d.ts +11 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-CmdP_QXF.js → index-601eG3_R.js} +1 -1
- package/dist/index-BeBZTUcq.js +122 -0
- package/dist/index-BtudnkMi.js +1065 -0
- package/dist/{index-BlG6mIU4.js → index-CGiWgTn1.js} +38 -37
- package/dist/{index-wMygvJpP.js → index-D5nv3ncu.js} +2 -2
- package/dist/index-DLDihONy.js +25142 -0
- package/dist/order.dto-JM_fmWnQ.js +14842 -0
- package/dist/package/entity/food-court/food-court.do.d.ts +1 -1
- package/dist/package/entity/food-court/food-court.dto.d.ts +7 -7
- package/dist/package/entity/food-court/order-v2.dto.d.ts +4 -4
- package/dist/package/entity/order-platform/order-platform.dto.d.ts +190 -92
- package/dist/package/entity/order-setting/order-setting.do.d.ts +10 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +20 -0
- package/dist/package/entity/order-setting/queue/queue.do.d.ts +22 -0
- package/dist/package/entity/order-setting/queue/queue.dto.d.ts +7 -0
- package/dist/package/entity/queue/queue.do.d.ts +1 -0
- package/dist/package/entity/queue/queue.dto.d.ts +8 -8
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +20 -0
- package/dist/search-BAPEUu1R.js +15 -0
- package/dist/useFoodCourtContext-2p5sJMcB.js +16 -0
- package/package.json +3 -3
- package/src/api/food-court/index.ts +357 -0
- package/src/api/food-court/invitation.ts +81 -0
- package/src/locales/en-US.json +171 -2
- package/src/locales/ja-JP.json +171 -2
- package/src/locales/th-TH.json +171 -2
- package/src/locales/zh-CN.json +171 -2
- package/src/router/routes.ts +44 -0
- package/src/utils/constants/route.ts +8 -0
- package/src/views/food-court/FoodCourtInvitationsView.vue +187 -0
- package/src/views/food-court/FoodCourtOrdersView.vue +263 -0
- package/src/views/food-court/FoodCourtStallsView.vue +369 -0
- package/src/views/food-court/FoodCourtStatusView.vue +111 -0
- package/src/views/food-court/food-court-member.spec.ts +339 -0
- package/src/views/food-court/food-court-member.ts +397 -0
- package/src/views/food-court/food-court-order.spec.ts +137 -0
- package/src/views/food-court/food-court-order.ts +206 -0
- package/src/views/food-court/invitations/JoinFoodCourtCard.vue +201 -0
- package/src/views/food-court/invitations/MembershipRowActions.vue +19 -0
- package/src/views/food-court/orders/FoodCourtOrderSheet.vue +226 -0
- package/src/views/food-court/stalls/EditStallSheet.vue +91 -0
- package/src/views/food-court/stalls/GenerateJoinCodeSheet.vue +281 -0
- package/src/views/food-court/stalls/StallAssignmentFields.vue +36 -0
- package/src/views/food-court/stalls/StallRowActions.vue +31 -0
- package/src/views/order-settings/OrderSettingsView.vue +2 -4
- package/src/views/order-settings/dine-in/DineInSetting.vue +1 -4
- package/src/views/order-settings/queue/QueueSetting.vue +27 -0
- package/src/views/order-settings/reservation/ReservationSetting.vue +8 -0
- package/dist/FoodCourtOrderSettingsView-DUQXCKzB.js +0 -323
- package/dist/index-CUI1lL9F.js +0 -1347
- package/dist/order.dto-CyHtvyly.js +0 -38829
|
@@ -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-CeEFBB-w.js";
|
|
5
5
|
import { useCoreStore as Y } from "@feedmepos/mf-common";
|
|
6
6
|
function Ut(e, t) {
|
|
7
7
|
return function() {
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { g as r, b as o } from "./index-601eG3_R.js";
|
|
2
|
+
const n = (e) => o(`/food-court-v2/${e}`), i = {
|
|
3
|
+
async getDineIn(e) {
|
|
4
|
+
return r(await n(e).get("/dine-in"));
|
|
5
|
+
},
|
|
6
|
+
async updateDineIn(e, t) {
|
|
7
|
+
return r(
|
|
8
|
+
await n(e).put("/dine-in", t)
|
|
9
|
+
);
|
|
10
|
+
},
|
|
11
|
+
async getOrderNumber(e) {
|
|
12
|
+
return r(
|
|
13
|
+
await n(e).get("/order-number")
|
|
14
|
+
);
|
|
15
|
+
},
|
|
16
|
+
async updateOrderNumber(e, t) {
|
|
17
|
+
return r(
|
|
18
|
+
await n(e).put("/order-number", t)
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
}, a = (e) => o(`/foodcourt-v2/${e}`), u = {
|
|
22
|
+
/** Every row of the court, any status, in court order. */
|
|
23
|
+
async listMembers(e) {
|
|
24
|
+
return r(
|
|
25
|
+
await a(e).get("/members")
|
|
26
|
+
);
|
|
27
|
+
},
|
|
28
|
+
async updateMember(e, t) {
|
|
29
|
+
return r(
|
|
30
|
+
await a(e).post("/members/update", t)
|
|
31
|
+
);
|
|
32
|
+
},
|
|
33
|
+
/** Cancel a legacy pending invitation (an INVITED row from before join codes). */
|
|
34
|
+
async revokeInvite(e, t) {
|
|
35
|
+
return r(
|
|
36
|
+
await a(e).post("/members/revoke-invite", { memberId: t })
|
|
37
|
+
);
|
|
38
|
+
},
|
|
39
|
+
/** Remove an active stall from the court. */
|
|
40
|
+
async removeMember(e, t) {
|
|
41
|
+
return r(
|
|
42
|
+
await a(e).post("/members/remove", { memberId: t })
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
}, c = {
|
|
46
|
+
/** Every code of the court, any status, newest first. */
|
|
47
|
+
async listJoinCodes(e) {
|
|
48
|
+
return r(
|
|
49
|
+
await a(e).get("/join-codes")
|
|
50
|
+
);
|
|
51
|
+
},
|
|
52
|
+
/** Null `stall`: the code carries no stall number or display name. */
|
|
53
|
+
async createJoinCode(e, t) {
|
|
54
|
+
return r(
|
|
55
|
+
await a(e).post("/join-codes", t ? { stall: t } : {})
|
|
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(e, t) {
|
|
64
|
+
return r(
|
|
65
|
+
await a(e).post("/join-codes", { count: t })
|
|
66
|
+
);
|
|
67
|
+
},
|
|
68
|
+
/** An OPEN code (expired included) can no longer be redeemed. */
|
|
69
|
+
async cancelJoinCode(e, t) {
|
|
70
|
+
return r(
|
|
71
|
+
await a(e).post("/join-codes/cancel", { joinCodeId: t })
|
|
72
|
+
);
|
|
73
|
+
},
|
|
74
|
+
/** The requesting outlet joins as an ACTIVE stall: answers its member row. */
|
|
75
|
+
async approveJoinRequest(e, t) {
|
|
76
|
+
return r(
|
|
77
|
+
await a(e).post("/join-codes/approve", { joinCodeId: t })
|
|
78
|
+
);
|
|
79
|
+
},
|
|
80
|
+
/** The code is used up; the stall needs a new one to ask again. */
|
|
81
|
+
async declineJoinRequest(e, t) {
|
|
82
|
+
return r(
|
|
83
|
+
await a(e).post("/join-codes/decline", { joinCodeId: t })
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
}, d = {
|
|
87
|
+
async getStatus(e) {
|
|
88
|
+
return r(
|
|
89
|
+
await a(e).get("/status")
|
|
90
|
+
);
|
|
91
|
+
},
|
|
92
|
+
/**
|
|
93
|
+
* ACTIVE without a ready payout account is refused (400 PAYOUT_ACCOUNT_NOT_READY,
|
|
94
|
+
* or PAYOUT_ACCOUNT_UNAVAILABLE while payment-service is down).
|
|
95
|
+
*/
|
|
96
|
+
async updateStatus(e, t) {
|
|
97
|
+
return r(
|
|
98
|
+
await a(e).put("/status", { status: t })
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
}, p = {
|
|
102
|
+
async listOrders(e, t) {
|
|
103
|
+
return r(
|
|
104
|
+
await n(e).get("/orders", {
|
|
105
|
+
params: { ...t, status: t.status.join(",") }
|
|
106
|
+
})
|
|
107
|
+
);
|
|
108
|
+
},
|
|
109
|
+
async getOrder(e, t) {
|
|
110
|
+
return r(
|
|
111
|
+
await n(e).get(`/orders/${t}`)
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
export {
|
|
116
|
+
i as F,
|
|
117
|
+
c as a,
|
|
118
|
+
u as b,
|
|
119
|
+
d as c,
|
|
120
|
+
p as d,
|
|
121
|
+
a as f
|
|
122
|
+
};
|