@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.
Files changed (88) hide show
  1. package/dist/{DisplaySystemView-rCw3DE0u.js → DisplaySystemView-BH8SkCOF.js} +4 -4
  2. package/dist/FoodCourtInvitationsView-3cA0Z-5m.js +383 -0
  3. package/dist/FoodCourtOrderSettingsView-DysrLZJD.js +294 -0
  4. package/dist/FoodCourtOrdersView-CbZqHIXO.js +544 -0
  5. package/dist/FoodCourtStallsView-CTZzPUQ6.js +635 -0
  6. package/dist/FoodCourtStatusView-C71y7ghx.js +113 -0
  7. package/dist/{KioskDevicesView-B4dgvMq_.js → KioskDevicesView-BJpbuSzp.js} +1 -1
  8. 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
  9. package/dist/{KioskSettingView-DXx6wQQQ.js → KioskSettingView-CJxhMf7N.js} +3 -3
  10. package/dist/{KioskView-BmSHCl13.js → KioskView-BZsdRID1.js} +6 -6
  11. package/dist/{OrderSettingsView-9NOSAxLf.js → OrderSettingsView-gnyXaJjf.js} +10631 -10601
  12. package/dist/{app-y20uA-tu.js → app-CeEFBB-w.js} +4484 -3672
  13. package/dist/app.js +1 -1
  14. package/dist/dayjs.min-zBHHlxAP.js +285 -0
  15. package/dist/{featureFlag-GHmH1G2d.js → featureFlag-BTY_R78k.js} +1 -1
  16. package/dist/food-court-member-piX3gesl.js +212 -0
  17. package/dist/frontend/mf-order/src/api/food-court/index.d.ts +269 -0
  18. package/dist/frontend/mf-order/src/api/food-court/invitation.d.ts +55 -0
  19. package/dist/frontend/mf-order/src/app.d.ts +676 -0
  20. package/dist/frontend/mf-order/src/main.d.ts +676 -0
  21. package/dist/frontend/mf-order/src/stores/business/index.d.ts +3 -3
  22. package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +6 -0
  23. package/dist/frontend/mf-order/src/utils/constants/route.d.ts +4 -0
  24. package/dist/frontend/mf-order/src/views/food-court/FoodCourtInvitationsView.vue.d.ts +2 -0
  25. package/dist/frontend/mf-order/src/views/food-court/FoodCourtOrdersView.vue.d.ts +2 -0
  26. package/dist/frontend/mf-order/src/views/food-court/FoodCourtStallsView.vue.d.ts +2 -0
  27. package/dist/frontend/mf-order/src/views/food-court/FoodCourtStatusView.vue.d.ts +2 -0
  28. package/dist/frontend/mf-order/src/views/food-court/food-court-member.d.ts +150 -0
  29. package/dist/frontend/mf-order/src/views/food-court/food-court-order.d.ts +66 -0
  30. package/dist/frontend/mf-order/src/views/food-court/invitations/JoinFoodCourtCard.vue.d.ts +13 -0
  31. package/dist/frontend/mf-order/src/views/food-court/invitations/MembershipRowActions.vue.d.ts +11 -0
  32. package/dist/frontend/mf-order/src/views/food-court/orders/FoodCourtOrderSheet.vue.d.ts +16 -0
  33. package/dist/frontend/mf-order/src/views/food-court/stalls/EditStallSheet.vue.d.ts +15 -0
  34. package/dist/frontend/mf-order/src/views/food-court/stalls/GenerateJoinCodeSheet.vue.d.ts +21 -0
  35. package/dist/frontend/mf-order/src/views/food-court/stalls/StallAssignmentFields.vue.d.ts +16 -0
  36. package/dist/frontend/mf-order/src/views/food-court/stalls/StallRowActions.vue.d.ts +11 -0
  37. package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/{index-CmdP_QXF.js → index-601eG3_R.js} +1 -1
  39. package/dist/index-BeBZTUcq.js +122 -0
  40. package/dist/index-BtudnkMi.js +1065 -0
  41. package/dist/{index-BlG6mIU4.js → index-CGiWgTn1.js} +38 -37
  42. package/dist/{index-wMygvJpP.js → index-D5nv3ncu.js} +2 -2
  43. package/dist/index-DLDihONy.js +25142 -0
  44. package/dist/order.dto-JM_fmWnQ.js +14842 -0
  45. package/dist/package/entity/food-court/food-court.do.d.ts +1 -1
  46. package/dist/package/entity/food-court/food-court.dto.d.ts +7 -7
  47. package/dist/package/entity/food-court/order-v2.dto.d.ts +4 -4
  48. package/dist/package/entity/order-platform/order-platform.dto.d.ts +190 -92
  49. package/dist/package/entity/order-setting/order-setting.do.d.ts +10 -0
  50. package/dist/package/entity/order-setting/order-setting.dto.d.ts +20 -0
  51. package/dist/package/entity/order-setting/queue/queue.do.d.ts +22 -0
  52. package/dist/package/entity/order-setting/queue/queue.dto.d.ts +7 -0
  53. package/dist/package/entity/queue/queue.do.d.ts +1 -0
  54. package/dist/package/entity/queue/queue.dto.d.ts +8 -8
  55. package/dist/package/entity/restaurant/restaurant.dto.d.ts +20 -0
  56. package/dist/search-BAPEUu1R.js +15 -0
  57. package/dist/useFoodCourtContext-2p5sJMcB.js +16 -0
  58. package/package.json +3 -3
  59. package/src/api/food-court/index.ts +357 -0
  60. package/src/api/food-court/invitation.ts +81 -0
  61. package/src/locales/en-US.json +171 -2
  62. package/src/locales/ja-JP.json +171 -2
  63. package/src/locales/th-TH.json +171 -2
  64. package/src/locales/zh-CN.json +171 -2
  65. package/src/router/routes.ts +44 -0
  66. package/src/utils/constants/route.ts +8 -0
  67. package/src/views/food-court/FoodCourtInvitationsView.vue +187 -0
  68. package/src/views/food-court/FoodCourtOrdersView.vue +263 -0
  69. package/src/views/food-court/FoodCourtStallsView.vue +369 -0
  70. package/src/views/food-court/FoodCourtStatusView.vue +111 -0
  71. package/src/views/food-court/food-court-member.spec.ts +339 -0
  72. package/src/views/food-court/food-court-member.ts +397 -0
  73. package/src/views/food-court/food-court-order.spec.ts +137 -0
  74. package/src/views/food-court/food-court-order.ts +206 -0
  75. package/src/views/food-court/invitations/JoinFoodCourtCard.vue +201 -0
  76. package/src/views/food-court/invitations/MembershipRowActions.vue +19 -0
  77. package/src/views/food-court/orders/FoodCourtOrderSheet.vue +226 -0
  78. package/src/views/food-court/stalls/EditStallSheet.vue +91 -0
  79. package/src/views/food-court/stalls/GenerateJoinCodeSheet.vue +281 -0
  80. package/src/views/food-court/stalls/StallAssignmentFields.vue +36 -0
  81. package/src/views/food-court/stalls/StallRowActions.vue +31 -0
  82. package/src/views/order-settings/OrderSettingsView.vue +2 -4
  83. package/src/views/order-settings/dine-in/DineInSetting.vue +1 -4
  84. package/src/views/order-settings/queue/QueueSetting.vue +27 -0
  85. package/src/views/order-settings/reservation/ReservationSetting.vue +8 -0
  86. package/dist/FoodCourtOrderSettingsView-DUQXCKzB.js +0 -323
  87. package/dist/index-CUI1lL9F.js +0 -1347
  88. package/dist/order.dto-CyHtvyly.js +0 -38829
@@ -1,3 +1,4 @@
1
+ import type { FdoDinero } from '@feedmepos/core/entity';
1
2
  /**
2
3
  * A food court's order settings on order-backend's portal API, for Food Court
3
4
  * Operations › Order Setting (KDI-4920). The court is not a business, so these
@@ -26,3 +27,271 @@ export declare const FoodCourtOrderSettingApi: {
26
27
  getOrderNumber(foodCourtId: string): Promise<FoodCourtOrderNumberSetting>;
27
28
  updateOrderNumber(foodCourtId: string, setting: FoodCourtOrderNumberSetting): Promise<FoodCourtOrderNumberSetting>;
28
29
  };
30
+ /** A membership row's stored state. */
31
+ export type FoodCourtMemberStatus = 'INVITED' | 'ACTIVE' | 'DECLINED' | 'REVOKED' | 'REMOVED';
32
+ /** The court's own stall number and display name for a member (KDI-4919). */
33
+ export interface FoodCourtStall {
34
+ unitNo: string | null;
35
+ /** Null: the court shows the outlet's own name. */
36
+ displayName: string | null;
37
+ }
38
+ /**
39
+ * One restaurant's row in a court (`FdoFoodCourtMemberV2`, foodcourt-service).
40
+ * A restaurant keeps ONE row per court for life: approving its join request
41
+ * after a decline, cancel, leave or remove puts the same row (same `_id`)
42
+ * back to ACTIVE. INVITED rows are left from invitations before join codes.
43
+ */
44
+ export interface FoodCourtMember {
45
+ _id: string;
46
+ restaurantId: string;
47
+ status: FoodCourtMemberStatus;
48
+ stall: FoodCourtStall | null;
49
+ invitedBy: string | null;
50
+ invitedAt: string | null;
51
+ inviteExpiresAt: string | null;
52
+ joinedAt: string | null;
53
+ removedAt: string | null;
54
+ /** Off: the owner paused the stall; it takes no court orders. */
55
+ visible: boolean;
56
+ /** The court owner's own note; left out of the stall's view. */
57
+ remark?: string | null;
58
+ history: {
59
+ status: FoodCourtMemberStatus;
60
+ at: string | null;
61
+ by: string | null;
62
+ }[];
63
+ }
64
+ /** A restaurant as foodcourt-service names it: its own name and its business's. */
65
+ export interface FoodCourtRestaurantSummary {
66
+ _id: string;
67
+ name: string;
68
+ businessName: string;
69
+ }
70
+ /** One row of the owner's member list, with its restaurant (null once deleted). */
71
+ export interface FoodCourtMemberListItem {
72
+ member: FoodCourtMember;
73
+ restaurant: FoodCourtRestaurantSummary | null;
74
+ }
75
+ export interface FoodCourtUpdateMemberReq {
76
+ memberId: string;
77
+ /** Replaces both fields; INVITED or ACTIVE rows. Blank, or the outlet's own name, is stored null. */
78
+ stall?: FoodCourtStall | null;
79
+ /** ACTIVE rows only: false = Deactivate, true = Activate. */
80
+ visible?: boolean;
81
+ }
82
+ export type FoodCourtStatus = 'ACTIVE' | 'INACTIVE';
83
+ /** The court's own Active / Inactive switch (KDI-4915 AC2-4). */
84
+ export interface FoodCourtStatusView {
85
+ status: FoodCourtStatus;
86
+ /** The court's payout account is approved and enabled: it can be activated. */
87
+ payoutReady: boolean;
88
+ }
89
+ /**
90
+ * foodcourt-service through the portal host: the ingress rewrites
91
+ * `/foodcourt-v2/<path>` to its `/api/portal/foodcourts/<path>`.
92
+ */
93
+ export declare const foodCourtServiceClientInstance: (foodCourtId: string) => import("axios").AxiosInstance;
94
+ /** Food Court Operations › Stalls: the court owner manages its members. */
95
+ export declare const FoodCourtMemberApi: {
96
+ /** Every row of the court, any status, in court order. */
97
+ listMembers(foodCourtId: string): Promise<FoodCourtMemberListItem[]>;
98
+ updateMember(foodCourtId: string, body: FoodCourtUpdateMemberReq): Promise<FoodCourtMember>;
99
+ /** Cancel a legacy pending invitation (an INVITED row from before join codes). */
100
+ revokeInvite(foodCourtId: string, memberId: string): Promise<FoodCourtMember>;
101
+ /** Remove an active stall from the court. */
102
+ removeMember(foodCourtId: string, memberId: string): Promise<FoodCourtMember>;
103
+ };
104
+ /**
105
+ * A join code's state. EXPIRED is worked out on read: an OPEN code past
106
+ * `expiresAt`. A PENDING request never expires; the owner decides it.
107
+ */
108
+ export type FoodCourtJoinCodeStatus = 'OPEN' | 'PENDING' | 'APPROVED' | 'DECLINED' | 'CANCELLED' | 'EXPIRED';
109
+ /**
110
+ * A single-use code the court owner gives a stall (KDI-4915 join by code). The
111
+ * stall redeems it for one of its outlets, which makes it PENDING; the owner
112
+ * then approves (the outlet joins) or declines. The code itself is shown only
113
+ * once, when it is created.
114
+ */
115
+ export interface FoodCourtJoinCode {
116
+ _id: string;
117
+ status: FoodCourtJoinCodeStatus;
118
+ /** The stall number and display name the stall joins with; null = none set. */
119
+ stall: FoodCourtStall | null;
120
+ createdAt: string;
121
+ /** createdAt + 7 days. */
122
+ expiresAt: string;
123
+ /** The outlet that redeemed the code; null before a request. */
124
+ restaurantId: string | null;
125
+ requestedAt: string | null;
126
+ decidedAt: string | null;
127
+ /** The member row an approval created or reused. */
128
+ memberId: string | null;
129
+ }
130
+ /** One code of the owner's list, with the outlet that asked to join (null before a request). */
131
+ export interface FoodCourtJoinCodeListItem {
132
+ joinCode: FoodCourtJoinCode;
133
+ restaurant: FoodCourtRestaurantSummary | null;
134
+ }
135
+ export interface FoodCourtCreateJoinCodeRes {
136
+ /** `ABCDE-FGHJK`. Returned only here: the service keeps a hash, never the code. */
137
+ code: string;
138
+ joinCode: FoodCourtJoinCode;
139
+ }
140
+ /** Several codes made at once: all OPEN and blank (no stall), with the same expiry. */
141
+ export interface FoodCourtCreateJoinCodesRes {
142
+ /** One entry per code, in creation order. */
143
+ codes: FoodCourtCreateJoinCodeRes[];
144
+ }
145
+ /**
146
+ * Food Court Operations › Stalls: the court owner's join codes. Cancel answers
147
+ * 400 JOIN_CODE_NOT_OPEN; approve and decline 400 JOIN_REQUEST_NOT_PENDING,
148
+ * approve also 409 MEMBER_EXISTS; an unknown code 404 JOIN_CODE_NOT_FOUND.
149
+ */
150
+ export declare const FoodCourtJoinCodeApi: {
151
+ /** Every code of the court, any status, newest first. */
152
+ listJoinCodes(foodCourtId: string): Promise<FoodCourtJoinCodeListItem[]>;
153
+ /** Null `stall`: the code carries no stall number or display name. */
154
+ createJoinCode(foodCourtId: string, stall: FoodCourtStall | null): Promise<FoodCourtCreateJoinCodeRes>;
155
+ /**
156
+ * `count` blank codes (a whole number, 1 to 50) in one go, all or none.
157
+ * Each code is returned only here, as with one; a bad count is 400
158
+ * INVALID_REQUEST.
159
+ */
160
+ createJoinCodes(foodCourtId: string, count: number): Promise<FoodCourtCreateJoinCodesRes>;
161
+ /** An OPEN code (expired included) can no longer be redeemed. */
162
+ cancelJoinCode(foodCourtId: string, joinCodeId: string): Promise<FoodCourtJoinCode>;
163
+ /** The requesting outlet joins as an ACTIVE stall: answers its member row. */
164
+ approveJoinRequest(foodCourtId: string, joinCodeId: string): Promise<FoodCourtMember>;
165
+ /** The code is used up; the stall needs a new one to ask again. */
166
+ declineJoinRequest(foodCourtId: string, joinCodeId: string): Promise<FoodCourtJoinCode>;
167
+ };
168
+ /** Food Court Operations › Food Court: the court's Active / Inactive status. */
169
+ export declare const FoodCourtStatusApi: {
170
+ getStatus(foodCourtId: string): Promise<FoodCourtStatusView>;
171
+ /**
172
+ * ACTIVE without a ready payout account is refused (400 PAYOUT_ACCOUNT_NOT_READY,
173
+ * or PAYOUT_ACCOUNT_UNAVAILABLE while payment-service is down).
174
+ */
175
+ updateStatus(foodCourtId: string, status: FoodCourtStatus): Promise<FoodCourtStatusView>;
176
+ };
177
+ /** A court order's state (`F_FOOD_COURT_ORDER_STATUS`). DRAFT is a cart not checked out yet. */
178
+ export type FoodCourtOrderStatus = 'DRAFT' | 'PENDING_PAYMENT' | 'PAID' | 'CANCELLED';
179
+ /** One row of the court's order list (`FdtoFoodCourtOrderSummary`, order-backend). */
180
+ export interface FoodCourtOrderSummary {
181
+ _id: string;
182
+ /** The court number ("FC-121"); null until paid. */
183
+ orderNumber?: string | null;
184
+ /** When the order was opened. */
185
+ createdAt: string;
186
+ paidAt?: string | null;
187
+ status: FoodCourtOrderStatus;
188
+ /** The sum of the stall amounts; zero before checkout. */
189
+ total: FdoDinero;
190
+ /** How the customer paid, as printed ("Visa", "TNG eWallet"). */
191
+ paymentMethod?: string | null;
192
+ stallCount: number;
193
+ }
194
+ export interface FoodCourtOrderListQuery {
195
+ /** ISO time with offset; orders opened from here. */
196
+ from: string;
197
+ /** ISO time with offset, exclusive. */
198
+ to: string;
199
+ status: FoodCourtOrderStatus[];
200
+ /** 0-based. */
201
+ page: number;
202
+ /** 1 to 100. */
203
+ limit: number;
204
+ }
205
+ /** A page of the list. The backend gives no total count, only whether a next page exists. */
206
+ export interface FoodCourtOrderListRes {
207
+ items: FoodCourtOrderSummary[];
208
+ page: number;
209
+ limit: number;
210
+ hasMore: boolean;
211
+ }
212
+ /** One stall's slice of a court order, as stored at checkout (`FdoFoodCourtOrderStall`). */
213
+ export interface FoodCourtOrderStall {
214
+ orderId: string;
215
+ restaurantId: string;
216
+ /** Stall number, snapshot at order time. */
217
+ unitNo?: string | null;
218
+ /** Stall name shown to the customer, snapshot at order time. */
219
+ displayName?: string | null;
220
+ /** This stall's share of the court payment. */
221
+ amount: FdoDinero;
222
+ }
223
+ /**
224
+ * The parts of a stall bill (`FdoBill`, @feedmepos/core) the order detail
225
+ * shows. Typed narrowly on purpose: the full bill is large and only read here.
226
+ */
227
+ export interface FoodCourtBillSubItem {
228
+ name: string;
229
+ quantity: number;
230
+ price?: FdoDinero | null;
231
+ subItems?: FoodCourtBillSubItem[];
232
+ }
233
+ export interface FoodCourtBillItem {
234
+ product: {
235
+ name: string;
236
+ };
237
+ quantity: number;
238
+ remark?: string | null;
239
+ status?: string | null;
240
+ nettTotal?: FdoDinero | null;
241
+ subItems?: FoodCourtBillSubItem[];
242
+ }
243
+ export interface FoodCourtBillTax {
244
+ name: string;
245
+ inclusive?: boolean | null;
246
+ total: FdoDinero;
247
+ }
248
+ export interface FoodCourtBill {
249
+ _id: string;
250
+ /** The stall's bill number, once its POS accepted the order. */
251
+ seqNumber?: string | null;
252
+ status: string;
253
+ items: Record<string, FoodCourtBillItem>;
254
+ grossTotal: FdoDinero;
255
+ adjustedTotal?: FdoDinero | null;
256
+ nettTaxes?: Record<string, FoodCourtBillTax> | null;
257
+ rounding?: FdoDinero | null;
258
+ nettTotal: FdoDinero;
259
+ }
260
+ /** A stall order inside the court receipt (`FdoOrder`), with its bill. */
261
+ export interface FoodCourtStallOrder {
262
+ _id: string;
263
+ restaurant: string;
264
+ /** The stall order's state: NEW until the stall POS accepts, then ACCEPTED, or DECLINED. */
265
+ status: string;
266
+ billId?: string | null;
267
+ orderAt: string;
268
+ bill?: FoodCourtBill | null;
269
+ }
270
+ /**
271
+ * One court order as its whole-court receipt (`FdtoFoodCourtOrder`,
272
+ * order-backend): the same shape the court kiosk prints.
273
+ */
274
+ export interface FoodCourtOrderReceipt {
275
+ _id: string;
276
+ foodCourtId: string;
277
+ stalls: FoodCourtOrderStall[];
278
+ status: FoodCourtOrderStatus;
279
+ payment?: {
280
+ type: string;
281
+ paidAt?: string | null;
282
+ method?: string | null;
283
+ } | null;
284
+ orderNumber?: string | null;
285
+ /** Every stall's order, in the order of `stalls`. */
286
+ pf_orders: FoodCourtStallOrder[];
287
+ paymentMethod?: string | null;
288
+ total: FdoDinero;
289
+ }
290
+ /**
291
+ * Food Court Operations › Orders (KDI-4941): the court's orders on
292
+ * order-backend's portal API (ordering-service#2188), owner or FeedMe admin only.
293
+ */
294
+ export declare const FoodCourtOrderApi: {
295
+ listOrders(foodCourtId: string, query: FoodCourtOrderListQuery): Promise<FoodCourtOrderListRes>;
296
+ getOrder(foodCourtId: string, orderId: string): Promise<FoodCourtOrderReceipt>;
297
+ };
@@ -0,0 +1,55 @@
1
+ import { type FoodCourtJoinCode, type FoodCourtMember, type FoodCourtStall } from '@/api/food-court';
2
+ /** A court's address as its profile stores it; only line1, city and state are shown. */
3
+ export interface FoodCourtAddress {
4
+ line1?: string | null;
5
+ line2?: string | null;
6
+ city?: string | null;
7
+ state?: string | null;
8
+ postcode?: string | null;
9
+ country?: string | null;
10
+ }
11
+ /**
12
+ * One court that has a row for the restaurant, as the restaurant (the stall)
13
+ * sees it in Restaurant Operation › Food Courts (KDI-4915). The row comes
14
+ * without the court owner's remark.
15
+ */
16
+ export interface FoodCourtMembership {
17
+ foodCourtId: string;
18
+ profile: {
19
+ name?: string | null;
20
+ address?: FoodCourtAddress | null;
21
+ } | null;
22
+ member: FoodCourtMember;
23
+ }
24
+ /** What a join code opens, before the stall asks to join: the court's name and address only. */
25
+ export interface FoodCourtJoinCodePreview {
26
+ foodCourtId: string;
27
+ name: string;
28
+ address: FoodCourtAddress | null;
29
+ /** The stall number and display name the court set on the code; null = none. */
30
+ stall: FoodCourtStall | null;
31
+ expiresAt: string;
32
+ }
33
+ export interface FoodCourtJoinCodeRedeemRes {
34
+ foodCourtId: string;
35
+ name: string;
36
+ /** PENDING: the court owner approves or declines it. */
37
+ joinCode: FoodCourtJoinCode;
38
+ }
39
+ /**
40
+ * The stall side of foodcourt-service. Memberships and leave are keyed by the
41
+ * stall's own restaurant: only a user who can manage that restaurant may read
42
+ * them or leave. Preview and redeem answer 404 JOIN_CODE_INVALID, 400
43
+ * JOIN_CODE_EXPIRED / JOIN_CODE_USED and 429 TOO_MANY_ATTEMPTS; redeem also 403
44
+ * RESTAURANT_NOT_MANAGEABLE and 409 MEMBER_EXISTS / JOIN_REQUEST_EXISTS.
45
+ */
46
+ export declare const FoodCourtInvitationApi: {
47
+ /** One item per court that has a row for this restaurant. */
48
+ listMemberships(restaurantId: string): Promise<FoodCourtMembership[]>;
49
+ /** Leave a food court this restaurant has joined; rejoining needs a new join code. */
50
+ leaveFoodCourt(foodCourtId: string, memberId: string): Promise<FoodCourtMember>;
51
+ /** Which court a code belongs to. A wrong code counts as a failed attempt. */
52
+ previewJoinCode(code: string): Promise<FoodCourtJoinCodePreview>;
53
+ /** Ask to join the code's court as `restaurantId`; the owner then approves or declines. */
54
+ redeemJoinCode(code: string, restaurantId: string): Promise<FoodCourtJoinCodeRedeemRes>;
55
+ };