@feedmepos/mf-order-setting 0.0.99 → 0.0.100
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-Brrexhuz.js → DisplaySystemView-bnG_JNDd.js} +4 -4
- package/dist/{FoodCourtInvitationsView-wmZ1J7dm.js → FoodCourtInvitationsView-DbuetF4z.js} +5 -5
- package/dist/{FoodCourtOrderSettingsView-CNZs4q-x.js → FoodCourtOrderSettingsView-BXgApCVG.js} +1 -1
- package/dist/{FoodCourtOrdersView-DMvZ_Z_C.js → FoodCourtOrdersView-K0iC1arR.js} +4 -4
- package/dist/FoodCourtStallsView-DijfdyBw.js +668 -0
- package/dist/{FoodCourtStatusView-YdiL94wn.js → FoodCourtStatusView-DTriHcSD.js} +2 -2
- package/dist/{KioskDevicesView-DsXy1LWl.js → KioskDevicesView-d2SWWkhC.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-Byoci4Fo.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-DA6c96uZ.js} +5 -5
- package/dist/{KioskSettingView-DqUpOq_Y.js → KioskSettingView-I7Hgzrvr.js} +3 -3
- package/dist/{KioskView-CdRnNSU0.js → KioskView-B_lLNsaU.js} +6 -6
- package/dist/{OrderSettingsView-CjXph68w.js → OrderSettingsView-8OS93YGL.js} +10 -10
- package/dist/{RestaurantSelector.vue_vue_type_script_setup_true_lang-BG71fNkx.js → RestaurantSelector.vue_vue_type_script_setup_true_lang-K0oCZMt8.js} +1 -1
- package/dist/{app-moKDIx07.js → app-qdN8kXAM.js} +43 -27
- package/dist/app.js +1 -1
- package/dist/{dayjs.min-DQqlQ2dX.js → dayjs.min-C-IKwmsU.js} +1 -1
- package/dist/{featureFlag-qLUdllY9.js → featureFlag-z_-AhzUC.js} +1 -1
- package/dist/food-court-member-joC8tmsI.js +234 -0
- package/dist/frontend/mf-order/src/api/food-court/index.d.ts +24 -4
- package/dist/frontend/mf-order/src/api/food-court/invitation.d.ts +3 -1
- package/dist/frontend/mf-order/src/app.d.ts +16 -0
- package/dist/frontend/mf-order/src/main.d.ts +16 -0
- package/dist/frontend/mf-order/src/views/food-court/food-court-member.d.ts +29 -14
- package/dist/frontend/mf-order/src/views/food-court/stalls/EditStallSheet.vue.d.ts +7 -3
- package/dist/frontend/mf-order/src/views/food-court/stalls/GenerateJoinCodeSheet.vue.d.ts +2 -2
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-D5T7zJ3M.js → index-BK-RT8YN.js} +1 -1
- package/dist/{index-BthRwhFh.js → index-BxK-mqfV.js} +1 -1
- package/dist/{index-Dy5GRKwA.js → index-DeUtM1Z8.js} +2 -2
- package/dist/{index-C44A5dgm.js → index-DfsaaxdM.js} +1 -1
- package/dist/{index-BDgJZqqD.js → index-DjtNAyFp.js} +4 -4
- package/dist/{index-By3yKf-8.js → index-WSlqpTW2.js} +55 -42
- package/dist/{order.dto-DvP9y_72.js → order.dto-BTF8MlM5.js} +2 -2
- package/package.json +1 -1
- package/src/api/food-court/index.ts +36 -4
- package/src/api/food-court/invitation.ts +3 -0
- package/src/locales/en-US.json +8 -4
- package/src/locales/ja-JP.json +8 -4
- package/src/locales/th-TH.json +8 -4
- package/src/locales/zh-CN.json +8 -4
- package/src/views/food-court/FoodCourtStallsView.vue +43 -10
- package/src/views/food-court/food-court-member.spec.ts +139 -13
- package/src/views/food-court/food-court-member.ts +99 -30
- package/src/views/food-court/stalls/EditStallSheet.vue +41 -20
- package/src/views/food-court/stalls/GenerateJoinCodeSheet.vue +6 -6
- package/dist/FoodCourtStallsView-B3egjtKo.js +0 -635
- package/dist/food-court-member-CfV5vmHz.js +0 -216
|
@@ -67,10 +67,18 @@ export interface FoodCourtRestaurantSummary {
|
|
|
67
67
|
name: string;
|
|
68
68
|
businessName: string;
|
|
69
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Who ended a REMOVED row, read by foodcourt-service from who made the step:
|
|
72
|
+
* COURT when the court owner removed the stall, STALL for anyone else (the
|
|
73
|
+
* stall left, or FeedMe staff acted). Null for any other row.
|
|
74
|
+
*/
|
|
75
|
+
export type FoodCourtEndedBy = 'COURT' | 'STALL';
|
|
70
76
|
/** One row of the owner's member list, with its restaurant (null once deleted). */
|
|
71
77
|
export interface FoodCourtMemberListItem {
|
|
72
78
|
member: FoodCourtMember;
|
|
73
79
|
restaurant: FoodCourtRestaurantSummary | null;
|
|
80
|
+
/** Absent from a foodcourt-service before KDI-4915's stalls feedback. */
|
|
81
|
+
endedBy?: FoodCourtEndedBy | null;
|
|
74
82
|
}
|
|
75
83
|
export interface FoodCourtUpdateMemberReq {
|
|
76
84
|
memberId: string;
|
|
@@ -109,16 +117,22 @@ export type FoodCourtJoinCodeStatus = 'OPEN' | 'PENDING' | 'APPROVED' | 'DECLINE
|
|
|
109
117
|
/**
|
|
110
118
|
* A single-use code the court owner gives a stall (KDI-4915 join by code). The
|
|
111
119
|
* 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
|
|
113
|
-
*
|
|
120
|
+
* then approves (the outlet joins) or declines. The code itself is listed
|
|
121
|
+
* while it is unused, so the owner can still hand it out.
|
|
114
122
|
*/
|
|
115
123
|
export interface FoodCourtJoinCode {
|
|
116
124
|
_id: string;
|
|
125
|
+
/**
|
|
126
|
+
* `ABCDE-FGHJK` while the code is OPEN; null once a stall entered it or it
|
|
127
|
+
* ended, and for codes created before codes were kept. Absent from an older
|
|
128
|
+
* foodcourt-service.
|
|
129
|
+
*/
|
|
130
|
+
code?: string | null;
|
|
117
131
|
status: FoodCourtJoinCodeStatus;
|
|
118
132
|
/** The stall number and display name the stall joins with; null = none set. */
|
|
119
133
|
stall: FoodCourtStall | null;
|
|
120
134
|
createdAt: string;
|
|
121
|
-
/** createdAt + 7
|
|
135
|
+
/** createdAt + 30 days (7 for codes made before KDI-4915). */
|
|
122
136
|
expiresAt: string;
|
|
123
137
|
/** The outlet that redeemed the code; null before a request. */
|
|
124
138
|
restaurantId: string | null;
|
|
@@ -133,7 +147,7 @@ export interface FoodCourtJoinCodeListItem {
|
|
|
133
147
|
restaurant: FoodCourtRestaurantSummary | null;
|
|
134
148
|
}
|
|
135
149
|
export interface FoodCourtCreateJoinCodeRes {
|
|
136
|
-
/** `ABCDE-FGHJK`.
|
|
150
|
+
/** `ABCDE-FGHJK`. The list shows it too until a stall uses it. */
|
|
137
151
|
code: string;
|
|
138
152
|
joinCode: FoodCourtJoinCode;
|
|
139
153
|
}
|
|
@@ -158,6 +172,12 @@ export declare const FoodCourtJoinCodeApi: {
|
|
|
158
172
|
* INVALID_REQUEST.
|
|
159
173
|
*/
|
|
160
174
|
createJoinCodes(foodCourtId: string, count: number): Promise<FoodCourtCreateJoinCodesRes>;
|
|
175
|
+
/**
|
|
176
|
+
* Replaces the stall number and display name a code carries (null clears
|
|
177
|
+
* them), while it is unused or its request waits for approval; the stall
|
|
178
|
+
* joins with them when approved. Any other code is 400 JOIN_CODE_NOT_EDITABLE.
|
|
179
|
+
*/
|
|
180
|
+
updateJoinCode(foodCourtId: string, joinCodeId: string, stall: FoodCourtStall | null): Promise<FoodCourtJoinCode>;
|
|
161
181
|
/** An OPEN code (expired included) can no longer be redeemed. */
|
|
162
182
|
cancelJoinCode(foodCourtId: string, joinCodeId: string): Promise<FoodCourtJoinCode>;
|
|
163
183
|
/** The requesting outlet joins as an ACTIVE stall: answers its member row. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type FoodCourtJoinCode, type FoodCourtMember, type FoodCourtStall } from '@/api/food-court';
|
|
1
|
+
import { type FoodCourtEndedBy, type FoodCourtJoinCode, type FoodCourtMember, type FoodCourtStall } from '@/api/food-court';
|
|
2
2
|
/** A court's address as its profile stores it; only line1, city and state are shown. */
|
|
3
3
|
export interface FoodCourtAddress {
|
|
4
4
|
line1?: string | null;
|
|
@@ -20,6 +20,8 @@ export interface FoodCourtMembership {
|
|
|
20
20
|
address?: FoodCourtAddress | null;
|
|
21
21
|
} | null;
|
|
22
22
|
member: FoodCourtMember;
|
|
23
|
+
/** For a REMOVED row: the court removed the stall, or the stall left. */
|
|
24
|
+
endedBy?: FoodCourtEndedBy | null;
|
|
23
25
|
}
|
|
24
26
|
/** What a join code opens, before the stall asks to join: the court's name and address only. */
|
|
25
27
|
export interface FoodCourtJoinCodePreview {
|
|
@@ -87,6 +87,8 @@ export declare const i18nMessages: {
|
|
|
87
87
|
statusActive: string;
|
|
88
88
|
statusInactive: string;
|
|
89
89
|
statusDeclined: string;
|
|
90
|
+
statusLeft: string;
|
|
91
|
+
statusRemoved: string;
|
|
90
92
|
actionDeactivate: string;
|
|
91
93
|
actionActivate: string;
|
|
92
94
|
actionRemove: string;
|
|
@@ -139,6 +141,7 @@ export declare const i18nMessages: {
|
|
|
139
141
|
codesShareHint: string;
|
|
140
142
|
copyAll: string;
|
|
141
143
|
joinCodes: string;
|
|
144
|
+
editCodeHint: string;
|
|
142
145
|
};
|
|
143
146
|
invitations: {
|
|
144
147
|
title: string;
|
|
@@ -155,6 +158,7 @@ export declare const i18nMessages: {
|
|
|
155
158
|
statusDeclined: string;
|
|
156
159
|
statusCancelled: string;
|
|
157
160
|
statusLeft: string;
|
|
161
|
+
statusRemoved: string;
|
|
158
162
|
leave: string;
|
|
159
163
|
leaveTitle: string;
|
|
160
164
|
leaveMessage: string;
|
|
@@ -1467,6 +1471,8 @@ export declare const i18nMessages: {
|
|
|
1467
1471
|
statusActive: string;
|
|
1468
1472
|
statusInactive: string;
|
|
1469
1473
|
statusDeclined: string;
|
|
1474
|
+
statusLeft: string;
|
|
1475
|
+
statusRemoved: string;
|
|
1470
1476
|
actionDeactivate: string;
|
|
1471
1477
|
actionActivate: string;
|
|
1472
1478
|
actionRemove: string;
|
|
@@ -1519,6 +1525,7 @@ export declare const i18nMessages: {
|
|
|
1519
1525
|
codesShareHint: string;
|
|
1520
1526
|
copyAll: string;
|
|
1521
1527
|
joinCodes: string;
|
|
1528
|
+
editCodeHint: string;
|
|
1522
1529
|
};
|
|
1523
1530
|
invitations: {
|
|
1524
1531
|
title: string;
|
|
@@ -1535,6 +1542,7 @@ export declare const i18nMessages: {
|
|
|
1535
1542
|
statusDeclined: string;
|
|
1536
1543
|
statusCancelled: string;
|
|
1537
1544
|
statusLeft: string;
|
|
1545
|
+
statusRemoved: string;
|
|
1538
1546
|
leave: string;
|
|
1539
1547
|
leaveTitle: string;
|
|
1540
1548
|
leaveMessage: string;
|
|
@@ -2833,6 +2841,8 @@ export declare const i18nMessages: {
|
|
|
2833
2841
|
statusActive: string;
|
|
2834
2842
|
statusInactive: string;
|
|
2835
2843
|
statusDeclined: string;
|
|
2844
|
+
statusLeft: string;
|
|
2845
|
+
statusRemoved: string;
|
|
2836
2846
|
actionDeactivate: string;
|
|
2837
2847
|
actionActivate: string;
|
|
2838
2848
|
actionRemove: string;
|
|
@@ -2885,6 +2895,7 @@ export declare const i18nMessages: {
|
|
|
2885
2895
|
codesShareHint: string;
|
|
2886
2896
|
copyAll: string;
|
|
2887
2897
|
joinCodes: string;
|
|
2898
|
+
editCodeHint: string;
|
|
2888
2899
|
};
|
|
2889
2900
|
invitations: {
|
|
2890
2901
|
title: string;
|
|
@@ -2901,6 +2912,7 @@ export declare const i18nMessages: {
|
|
|
2901
2912
|
statusDeclined: string;
|
|
2902
2913
|
statusCancelled: string;
|
|
2903
2914
|
statusLeft: string;
|
|
2915
|
+
statusRemoved: string;
|
|
2904
2916
|
leave: string;
|
|
2905
2917
|
leaveTitle: string;
|
|
2906
2918
|
leaveMessage: string;
|
|
@@ -4034,6 +4046,8 @@ export declare const i18nMessages: {
|
|
|
4034
4046
|
statusActive: string;
|
|
4035
4047
|
statusInactive: string;
|
|
4036
4048
|
statusDeclined: string;
|
|
4049
|
+
statusLeft: string;
|
|
4050
|
+
statusRemoved: string;
|
|
4037
4051
|
actionDeactivate: string;
|
|
4038
4052
|
actionActivate: string;
|
|
4039
4053
|
actionRemove: string;
|
|
@@ -4086,6 +4100,7 @@ export declare const i18nMessages: {
|
|
|
4086
4100
|
codesShareHint: string;
|
|
4087
4101
|
copyAll: string;
|
|
4088
4102
|
joinCodes: string;
|
|
4103
|
+
editCodeHint: string;
|
|
4089
4104
|
};
|
|
4090
4105
|
invitations: {
|
|
4091
4106
|
title: string;
|
|
@@ -4102,6 +4117,7 @@ export declare const i18nMessages: {
|
|
|
4102
4117
|
statusDeclined: string;
|
|
4103
4118
|
statusCancelled: string;
|
|
4104
4119
|
statusLeft: string;
|
|
4120
|
+
statusRemoved: string;
|
|
4105
4121
|
leave: string;
|
|
4106
4122
|
leaveTitle: string;
|
|
4107
4123
|
leaveMessage: string;
|
|
@@ -86,6 +86,8 @@ export declare const i18nMessages: {
|
|
|
86
86
|
statusActive: string;
|
|
87
87
|
statusInactive: string;
|
|
88
88
|
statusDeclined: string;
|
|
89
|
+
statusLeft: string;
|
|
90
|
+
statusRemoved: string;
|
|
89
91
|
actionDeactivate: string;
|
|
90
92
|
actionActivate: string;
|
|
91
93
|
actionRemove: string;
|
|
@@ -138,6 +140,7 @@ export declare const i18nMessages: {
|
|
|
138
140
|
codesShareHint: string;
|
|
139
141
|
copyAll: string;
|
|
140
142
|
joinCodes: string;
|
|
143
|
+
editCodeHint: string;
|
|
141
144
|
};
|
|
142
145
|
invitations: {
|
|
143
146
|
title: string;
|
|
@@ -154,6 +157,7 @@ export declare const i18nMessages: {
|
|
|
154
157
|
statusDeclined: string;
|
|
155
158
|
statusCancelled: string;
|
|
156
159
|
statusLeft: string;
|
|
160
|
+
statusRemoved: string;
|
|
157
161
|
leave: string;
|
|
158
162
|
leaveTitle: string;
|
|
159
163
|
leaveMessage: string;
|
|
@@ -1466,6 +1470,8 @@ export declare const i18nMessages: {
|
|
|
1466
1470
|
statusActive: string;
|
|
1467
1471
|
statusInactive: string;
|
|
1468
1472
|
statusDeclined: string;
|
|
1473
|
+
statusLeft: string;
|
|
1474
|
+
statusRemoved: string;
|
|
1469
1475
|
actionDeactivate: string;
|
|
1470
1476
|
actionActivate: string;
|
|
1471
1477
|
actionRemove: string;
|
|
@@ -1518,6 +1524,7 @@ export declare const i18nMessages: {
|
|
|
1518
1524
|
codesShareHint: string;
|
|
1519
1525
|
copyAll: string;
|
|
1520
1526
|
joinCodes: string;
|
|
1527
|
+
editCodeHint: string;
|
|
1521
1528
|
};
|
|
1522
1529
|
invitations: {
|
|
1523
1530
|
title: string;
|
|
@@ -1534,6 +1541,7 @@ export declare const i18nMessages: {
|
|
|
1534
1541
|
statusDeclined: string;
|
|
1535
1542
|
statusCancelled: string;
|
|
1536
1543
|
statusLeft: string;
|
|
1544
|
+
statusRemoved: string;
|
|
1537
1545
|
leave: string;
|
|
1538
1546
|
leaveTitle: string;
|
|
1539
1547
|
leaveMessage: string;
|
|
@@ -2832,6 +2840,8 @@ export declare const i18nMessages: {
|
|
|
2832
2840
|
statusActive: string;
|
|
2833
2841
|
statusInactive: string;
|
|
2834
2842
|
statusDeclined: string;
|
|
2843
|
+
statusLeft: string;
|
|
2844
|
+
statusRemoved: string;
|
|
2835
2845
|
actionDeactivate: string;
|
|
2836
2846
|
actionActivate: string;
|
|
2837
2847
|
actionRemove: string;
|
|
@@ -2884,6 +2894,7 @@ export declare const i18nMessages: {
|
|
|
2884
2894
|
codesShareHint: string;
|
|
2885
2895
|
copyAll: string;
|
|
2886
2896
|
joinCodes: string;
|
|
2897
|
+
editCodeHint: string;
|
|
2887
2898
|
};
|
|
2888
2899
|
invitations: {
|
|
2889
2900
|
title: string;
|
|
@@ -2900,6 +2911,7 @@ export declare const i18nMessages: {
|
|
|
2900
2911
|
statusDeclined: string;
|
|
2901
2912
|
statusCancelled: string;
|
|
2902
2913
|
statusLeft: string;
|
|
2914
|
+
statusRemoved: string;
|
|
2903
2915
|
leave: string;
|
|
2904
2916
|
leaveTitle: string;
|
|
2905
2917
|
leaveMessage: string;
|
|
@@ -4033,6 +4045,8 @@ export declare const i18nMessages: {
|
|
|
4033
4045
|
statusActive: string;
|
|
4034
4046
|
statusInactive: string;
|
|
4035
4047
|
statusDeclined: string;
|
|
4048
|
+
statusLeft: string;
|
|
4049
|
+
statusRemoved: string;
|
|
4036
4050
|
actionDeactivate: string;
|
|
4037
4051
|
actionActivate: string;
|
|
4038
4052
|
actionRemove: string;
|
|
@@ -4085,6 +4099,7 @@ export declare const i18nMessages: {
|
|
|
4085
4099
|
codesShareHint: string;
|
|
4086
4100
|
copyAll: string;
|
|
4087
4101
|
joinCodes: string;
|
|
4102
|
+
editCodeHint: string;
|
|
4088
4103
|
};
|
|
4089
4104
|
invitations: {
|
|
4090
4105
|
title: string;
|
|
@@ -4101,6 +4116,7 @@ export declare const i18nMessages: {
|
|
|
4101
4116
|
statusDeclined: string;
|
|
4102
4117
|
statusCancelled: string;
|
|
4103
4118
|
statusLeft: string;
|
|
4119
|
+
statusRemoved: string;
|
|
4104
4120
|
leave: string;
|
|
4105
4121
|
leaveTitle: string;
|
|
4106
4122
|
leaveMessage: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FmChipVariant } from '@feedmepos/ui-library';
|
|
2
|
-
import type { FoodCourtJoinCodeListItem, FoodCourtJoinCodeStatus, FoodCourtMember, FoodCourtMemberListItem, FoodCourtMemberStatus, FoodCourtStall } from '@/api/food-court';
|
|
2
|
+
import type { FoodCourtEndedBy, FoodCourtJoinCodeListItem, FoodCourtJoinCodeStatus, FoodCourtMember, FoodCourtMemberListItem, FoodCourtMemberStatus, FoodCourtStall } from '@/api/food-court';
|
|
3
3
|
import type { FoodCourtAddress, FoodCourtMembership } from '@/api/food-court/invitation';
|
|
4
4
|
/** A status chip: its colour and the i18n key of its label. */
|
|
5
5
|
export interface StatusChip {
|
|
@@ -9,11 +9,12 @@ export interface StatusChip {
|
|
|
9
9
|
/**
|
|
10
10
|
* What the Stalls list shows. A member row: ACTIVE and visible = ACTIVE,
|
|
11
11
|
* ACTIVE and paused by the owner (`visible: false`) = INACTIVE, a legacy
|
|
12
|
-
* INVITED row (from before join codes) = INVITED
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* INVITED row (from before join codes) = INVITED, a REMOVED row = LEFT when
|
|
13
|
+
* the stall left, REMOVED when the court removed it (`endedBy`). A join code:
|
|
14
|
+
* a stall's request waiting for the owner = PENDING_APPROVAL, a code no stall
|
|
15
|
+
* has used yet = CODE_ISSUED.
|
|
15
16
|
*/
|
|
16
|
-
export type StallListStatus = 'ACTIVE' | 'INACTIVE' | 'INVITED' | 'DECLINED' | 'PENDING_APPROVAL' | 'CODE_ISSUED';
|
|
17
|
+
export type StallListStatus = 'ACTIVE' | 'INACTIVE' | 'INVITED' | 'DECLINED' | 'LEFT' | 'REMOVED' | 'PENDING_APPROVAL' | 'CODE_ISSUED';
|
|
17
18
|
interface StallRowBase {
|
|
18
19
|
/** Unique across member and join code rows. */
|
|
19
20
|
key: string;
|
|
@@ -40,10 +41,17 @@ export interface JoinCodeStallRow extends StallRowBase {
|
|
|
40
41
|
restaurantId: string | null;
|
|
41
42
|
businessName: string | null;
|
|
42
43
|
expiresAt: string;
|
|
44
|
+
/** `ABCDE-FGHJK` while unused, to hand out again; null otherwise and for older codes. */
|
|
45
|
+
code: string | null;
|
|
43
46
|
}
|
|
44
47
|
export type StallRow = MemberStallRow | JoinCodeStallRow;
|
|
45
|
-
/**
|
|
46
|
-
|
|
48
|
+
/**
|
|
49
|
+
* The Stalls list status of a member row, or null for a row the list hides
|
|
50
|
+
* (REVOKED). A REMOVED row is LEFT when the stall ended it and REMOVED when
|
|
51
|
+
* the court did; one with no `endedBy` (an older foodcourt-service, or a step
|
|
52
|
+
* that names nobody) reads REMOVED.
|
|
53
|
+
*/
|
|
54
|
+
export declare function stallListStatus(member: Pick<FoodCourtMember, 'status' | 'visible'>, endedBy?: FoodCourtEndedBy | null): StallListStatus | null;
|
|
47
55
|
/**
|
|
48
56
|
* The Stalls list status of a join code, or null for a code the list hides:
|
|
49
57
|
* an approved one is listed as its member row; a declined, cancelled or
|
|
@@ -51,12 +59,17 @@ export declare function stallListStatus(member: Pick<FoodCourtMember, 'status' |
|
|
|
51
59
|
*/
|
|
52
60
|
export declare function joinCodeListStatus(status: FoodCourtJoinCodeStatus): StallListStatus | null;
|
|
53
61
|
/**
|
|
54
|
-
* The owner's Stalls list: join requests to approve,
|
|
55
|
-
* the
|
|
56
|
-
*
|
|
62
|
+
* The owner's Stalls list: join requests to approve,
|
|
63
|
+
* then the stalls in court order, then codes not used yet, then stalls that
|
|
64
|
+
* left or were removed. Codes keep the backend's newest-first order. Cancelled
|
|
65
|
+
* invitations are left out, and so are approved, declined, cancelled and
|
|
66
|
+
* expired codes.
|
|
57
67
|
*/
|
|
58
68
|
export declare function toStallRows(members: FoodCourtMemberListItem[], joinCodes?: FoodCourtJoinCodeListItem[]): StallRow[];
|
|
59
|
-
/**
|
|
69
|
+
/**
|
|
70
|
+
* Stalls list (Figma 1.20): Active green, Inactive grey, Pending approval
|
|
71
|
+
* orange, Declined red; Left and Removed grey.
|
|
72
|
+
*/
|
|
60
73
|
export declare const STALL_STATUS_CHIP: Record<StallListStatus, StatusChip>;
|
|
61
74
|
/** The name the court shows for a stall: its court display name, else the outlet's own; '' for neither. */
|
|
62
75
|
export declare function stallName(row: Pick<StallRow, 'displayName' | 'restaurantName' | 'restaurantId'>): string;
|
|
@@ -66,8 +79,10 @@ export declare function requesterName(row: Pick<JoinCodeStallRow, 'restaurantNam
|
|
|
66
79
|
export type StallAction = 'edit' | 'deactivate' | 'activate' | 'remove' | 'cancelInvite' | 'approve' | 'decline' | 'cancelCode';
|
|
67
80
|
/**
|
|
68
81
|
* Which actions each Stalls row offers (Figma 1.20-1.32; D1: the owner pauses
|
|
69
|
-
* with `visible`). A legacy invitation can only be cancelled; a declined
|
|
70
|
-
* is listed without actions: the stall rejoins with a
|
|
82
|
+
* with `visible`). A legacy invitation can only be cancelled; a declined,
|
|
83
|
+
* left or removed one is listed without actions: the stall rejoins with a
|
|
84
|
+
* join code. A code's Edit sets the stall number and display name the stall
|
|
85
|
+
* joins with.
|
|
71
86
|
*/
|
|
72
87
|
export declare const STALL_ACTIONS: Record<StallListStatus, StallAction[]>;
|
|
73
88
|
export declare const STALL_ACTION_LABEL_KEY: Record<StallAction, string>;
|
|
@@ -107,7 +122,7 @@ export declare function joinCodeErrorKey(e: unknown): string | null;
|
|
|
107
122
|
*/
|
|
108
123
|
export declare function isRestaurantNotFound(e: unknown): boolean;
|
|
109
124
|
/** A court as the stall's Food Courts list shows its row there. */
|
|
110
|
-
export type FoodCourtMembershipStatus = 'INVITED' | 'JOINED' | 'DECLINED' | 'CANCELLED' | 'LEFT';
|
|
125
|
+
export type FoodCourtMembershipStatus = 'INVITED' | 'JOINED' | 'DECLINED' | 'CANCELLED' | 'LEFT' | 'REMOVED';
|
|
111
126
|
/** One court the restaurant has a row in, stall side (KDI-4915). */
|
|
112
127
|
export interface FoodCourtMembershipView {
|
|
113
128
|
foodCourtId: string;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
/**
|
|
1
|
+
import { type StallRow } from '../food-court-member';
|
|
2
|
+
/**
|
|
3
|
+
* Stalls › Edit: the court's stall number and display name for one stall
|
|
4
|
+
* (KDI-4919), or for a join code not approved yet, which the stall then joins
|
|
5
|
+
* with (KDI-4915).
|
|
6
|
+
*/
|
|
3
7
|
type __VLS_Props = {
|
|
4
8
|
modelValue: boolean;
|
|
5
9
|
foodCourtId: string;
|
|
6
|
-
|
|
10
|
+
row: StallRow | null;
|
|
7
11
|
};
|
|
8
12
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
13
|
"update:modelValue": (value: boolean) => any;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Stalls › Generate join codes (KDI-4915 join by code). The owner picks how
|
|
3
3
|
* many codes (1 to 50). One code may carry the stall number and display name
|
|
4
4
|
* the stall will join with; no outlet is known yet, so nothing is prefilled.
|
|
5
|
-
* Several codes are made blank, in one request, all or none.
|
|
6
|
-
*
|
|
5
|
+
* Several codes are made blank, in one request, all or none. The Stalls list
|
|
6
|
+
* shows each code again, with Copy, until it is used. A stall redeems its code
|
|
7
7
|
* in Restaurant Operation › Food Courts, and its request then waits in the
|
|
8
8
|
* Stalls list for approval.
|
|
9
9
|
*/
|