@feedmepos/mf-order-setting 0.0.98 → 0.0.99
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-B3xrnpj3.js → DisplaySystemView-Brrexhuz.js} +4 -4
- package/dist/FoodCourtInvitationsView-wmZ1J7dm.js +402 -0
- package/dist/{FoodCourtOrderSettingsView-BR5PgIx5.js → FoodCourtOrderSettingsView-CNZs4q-x.js} +1 -1
- package/dist/{FoodCourtOrdersView-BZ8YxJ9y.js → FoodCourtOrdersView-DMvZ_Z_C.js} +4 -4
- package/dist/{FoodCourtStallsView-zZyzPDe2.js → FoodCourtStallsView-B3egjtKo.js} +3 -3
- package/dist/{FoodCourtStatusView-D42wymS-.js → FoodCourtStatusView-YdiL94wn.js} +2 -2
- package/dist/{KioskDevicesView-PuAwkC1s.js → KioskDevicesView-DsXy1LWl.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CUriyLui.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-Byoci4Fo.js} +5 -5
- package/dist/{KioskSettingView-CuA3Lvdr.js → KioskSettingView-DqUpOq_Y.js} +3 -3
- package/dist/{KioskView-E5ePu5Zf.js → KioskView-CdRnNSU0.js} +6 -6
- package/dist/{OrderSettingsView-DZP2aZ58.js → OrderSettingsView-CjXph68w.js} +21844 -21729
- package/dist/RestaurantSelector.vue_vue_type_script_setup_true_lang-BG71fNkx.js +92 -0
- package/dist/{app-CWx14lJE.js → app-moKDIx07.js} +413 -353
- package/dist/app.js +1 -1
- package/dist/common/queue/called-sms.d.ts +45 -0
- package/dist/common/sms/sms-parts.d.ts +23 -0
- package/dist/{dayjs.min-sDkYDUoj.js → dayjs.min-DQqlQ2dX.js} +1 -1
- package/dist/{featureFlag-Dh37Fdlx.js → featureFlag-qLUdllY9.js} +1 -1
- package/dist/{food-court-member-piX3gesl.js → food-court-member-CfV5vmHz.js} +24 -20
- package/dist/frontend/mf-order/src/app.d.ts +60 -0
- package/dist/frontend/mf-order/src/main.d.ts +60 -0
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +3 -0
- package/dist/frontend/mf-order/src/views/food-court/food-court-member.d.ts +5 -0
- package/dist/frontend/mf-order/src/views/order-settings/components/RestaurantSelector.vue.d.ts +7 -1
- package/dist/frontend/mf-order/src/views/order-settings/dine-in/reservation-pos.d.ts +8 -0
- package/dist/frontend/mf-order/src/views/order-settings/queue/auto-cancel-minutes.d.ts +2 -2
- package/dist/frontend/mf-order/src/views/order-settings/queue/called-message.d.ts +31 -0
- package/dist/frontend/mf-order/src/views/order-settings/reservation/CopySettingsSheet.vue.d.ts +8 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-dcHvfBC0.js → index-BDgJZqqD.js} +4 -4
- package/dist/{index-BsryfWF5.js → index-BthRwhFh.js} +1 -1
- package/dist/{index-EXn8TQyw.js → index-By3yKf-8.js} +1 -1
- package/dist/{index-EVX4Oil9.js → index-C44A5dgm.js} +1 -1
- package/dist/{index-D5bW0yrg.js → index-D5T7zJ3M.js} +1 -1
- package/dist/{index-DToeF1mu.js → index-Dy5GRKwA.js} +2 -2
- package/dist/{order.dto-DewGFVgb.js → order.dto-DvP9y_72.js} +850 -832
- package/dist/package/entity/order-setting/order-setting.do.d.ts +39 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +10 -0
- package/dist/package/entity/order-setting/queue/queue.do.d.ts +12 -0
- package/dist/package/entity/order-setting/queue/queue.dto.d.ts +3 -0
- package/dist/package/entity/order-setting/reservationV2/reservation.do.d.ts +56 -0
- package/dist/package/entity/queue/queue.dto.d.ts +2 -2
- package/dist/package/entity/reservation/reservation-pos.do.d.ts +5 -0
- package/dist/package/entity/reservation/reservation.dto.d.ts +9 -0
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +10 -0
- package/package.json +1 -1
- package/src/locales/en-US.json +16 -1
- package/src/locales/ja-JP.json +16 -1
- package/src/locales/th-TH.json +16 -1
- package/src/locales/zh-CN.json +16 -1
- package/src/views/food-court/FoodCourtInvitationsView.vue +72 -38
- package/src/views/food-court/food-court-member.spec.ts +11 -0
- package/src/views/food-court/food-court-member.ts +10 -0
- package/src/views/order-settings/OrderSettingsView.vue +5 -2
- package/src/views/order-settings/components/RestaurantSelector.vue +11 -3
- package/src/views/order-settings/dine-in/DineInSetting.vue +19 -1
- package/src/views/order-settings/dine-in/reservation-pos.spec.ts +27 -0
- package/src/views/order-settings/dine-in/reservation-pos.ts +17 -0
- package/src/views/order-settings/queue/QueueSetting.source.spec.ts +1 -1
- package/src/views/order-settings/queue/QueueSetting.vue +111 -3
- package/src/views/order-settings/queue/auto-cancel-minutes.ts +2 -4
- package/src/views/order-settings/queue/called-message.spec.ts +124 -0
- package/src/views/order-settings/queue/called-message.ts +84 -0
- package/src/views/order-settings/reservation/CopySettingsSheet.vue +4 -1
- package/src/views/order-settings/reservation/ReservationSetting.vue +54 -1
- package/dist/FoodCourtInvitationsView-D9rNuL-B.js +0 -383
package/dist/app.js
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The queue SMS text, shared by queue-backend (which sends it) and the portal
|
|
3
|
+
* (which previews it), so the preview is always what the customer gets.
|
|
4
|
+
*
|
|
5
|
+
* A queue SMS is two fixed lines, the outlet and the queue code, then one last
|
|
6
|
+
* line. For "your queue is called" the merchant may write that last line
|
|
7
|
+
* themselves (`queueSettings.calledMessage`); the fixed lines stay ours, so the
|
|
8
|
+
* code the SMS exists to deliver can never be dropped.
|
|
9
|
+
*/
|
|
10
|
+
export declare const CALLED_DEFAULT_LINE = "Please travel to the restaurant now to be served.";
|
|
11
|
+
/** The portal's cap on the merchant's line. Not enforced in the schema: see `calledMessage` in queue.do.ts. */
|
|
12
|
+
export declare const CALLED_MESSAGE_MAX_LENGTH = 300;
|
|
13
|
+
/** The auto-cancel minutes placeholder's name, without the braces. */
|
|
14
|
+
export declare const AUTO_CANCEL_MINUTES_TOKEN = "autoCancelMinutes";
|
|
15
|
+
/** Placeholders a merchant may put in their line, without the braces. */
|
|
16
|
+
export declare const QUEUE_SMS_TOKENS: readonly string[];
|
|
17
|
+
/**
|
|
18
|
+
* The auto-cancel timer's on/off rule: a positive number of minutes. 0, null,
|
|
19
|
+
* absent or anything else is off. queue-backend's timer and the SMS both use
|
|
20
|
+
* this, so the SMS never mentions a timer that will not run.
|
|
21
|
+
*/
|
|
22
|
+
export declare function isAutoCancelOn(minutes: unknown): minutes is number;
|
|
23
|
+
export declare function queueSmsHeader(restaurantName: string, code: string): string;
|
|
24
|
+
export declare function autoCancelLine(minutes: number): string;
|
|
25
|
+
/** Placeholder names in `text` that are not ones we fill in. */
|
|
26
|
+
export declare function unknownQueueSmsTokens(text: string | null | undefined): string[];
|
|
27
|
+
export declare function usesAutoCancelMinutes(text: string | null | undefined): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The last line of the "called" SMS.
|
|
30
|
+
*
|
|
31
|
+
* - No line of the merchant's (absent or blank): the default, which warns
|
|
32
|
+
* about the auto-cancel timer while it is on.
|
|
33
|
+
* - The merchant's line without `{{autoCancelMinutes}}`: sent as written, even
|
|
34
|
+
* while the timer is on. The merchant chose their own words, so we do not
|
|
35
|
+
* add to them; the portal tells them when the line leaves the timer out.
|
|
36
|
+
* - With `{{autoCancelMinutes}}`: filled in while the timer is on. With the
|
|
37
|
+
* timer off it would read "within minutes", so the default goes instead.
|
|
38
|
+
*
|
|
39
|
+
* A placeholder we do not know is left as written. The portal refuses to save
|
|
40
|
+
* one, so it can only arrive through the API.
|
|
41
|
+
*/
|
|
42
|
+
export declare function calledLine({ calledMessage, autoCancelCalledMinutes, }: {
|
|
43
|
+
calledMessage?: string | null;
|
|
44
|
+
autoCancelCalledMinutes?: number | null;
|
|
45
|
+
}): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How many SMS a message is billed as, counted exactly the way sms-backend
|
|
3
|
+
* counts it before charging the merchant.
|
|
4
|
+
*
|
|
5
|
+
* A copy of sms-backend's `calculateSmsMessages` (monorepo-merged
|
|
6
|
+
* `typescript/packages/node/apps/sms-backend/src/sms/mocean.service.ts` on its
|
|
7
|
+
* `release/sms-backend` branch) and of its `formatMessage` prefix (`sms.service.ts`,
|
|
8
|
+
* MY only, by the deployment's country). sms-backend charges
|
|
9
|
+
* the usage's unit price once per part, so a message that crosses a boundary
|
|
10
|
+
* silently costs two or more credits per send. Copy its rules, quirks included,
|
|
11
|
+
* not the textbook ones: it counts a newline as 2 even though GSM 03.38 counts
|
|
12
|
+
* it as 1, and that is what bills. If sms-backend changes these rules, change
|
|
13
|
+
* this file with it.
|
|
14
|
+
*/
|
|
15
|
+
export type SmsPartCount = {
|
|
16
|
+
/** Length as sms-backend measures it, prefix included. */
|
|
17
|
+
length: number;
|
|
18
|
+
parts: number;
|
|
19
|
+
/** False when one character (emoji, CJK, a curly quote) forces the 70-character limit. */
|
|
20
|
+
sevenBit: boolean;
|
|
21
|
+
};
|
|
22
|
+
/** The parts `message` is billed as when sms-backend sends it from `country`. */
|
|
23
|
+
export declare function countSmsParts(message: string, country?: string | null): SmsPartCount;
|
|
@@ -2,7 +2,7 @@ var le = Object.defineProperty;
|
|
|
2
2
|
var ue = (S, c, v) => c in S ? le(S, c, { enumerable: !0, configurable: !0, writable: !0, value: v }) : S[c] = v;
|
|
3
3
|
var ot = (S, c, v) => ue(S, typeof c != "symbol" ? c + "" : c, v);
|
|
4
4
|
import { readonly as Pt, ref as Ut } from "vue";
|
|
5
|
-
import { c as st } from "./app-
|
|
5
|
+
import { c as st } from "./app-moKDIx07.js";
|
|
6
6
|
const _e = (S, c) => {
|
|
7
7
|
const v = S.__vccOpts || S;
|
|
8
8
|
for (const [d, s] of c)
|
|
@@ -66,7 +66,7 @@ function f(t) {
|
|
|
66
66
|
function v(t, o = []) {
|
|
67
67
|
return [...f(o), ...I(t)];
|
|
68
68
|
}
|
|
69
|
-
const
|
|
69
|
+
const O = {
|
|
70
70
|
ACTIVE: { variant: "success", labelKey: "order.foodCourt.stalls.statusActive" },
|
|
71
71
|
INACTIVE: { variant: "neutral", labelKey: "order.foodCourt.stalls.statusInactive" },
|
|
72
72
|
INVITED: { variant: "neutral", labelKey: "order.foodCourt.stalls.statusInvited" },
|
|
@@ -77,7 +77,7 @@ const S = {
|
|
|
77
77
|
},
|
|
78
78
|
CODE_ISSUED: { variant: "info", labelKey: "order.foodCourt.stalls.statusCodeIssued" }
|
|
79
79
|
};
|
|
80
|
-
function
|
|
80
|
+
function S(t) {
|
|
81
81
|
return t.displayName || t.restaurantName || t.restaurantId || "";
|
|
82
82
|
}
|
|
83
83
|
function L(t) {
|
|
@@ -104,7 +104,7 @@ const y = {
|
|
|
104
104
|
function E(t) {
|
|
105
105
|
return (t ?? "").toUpperCase().replace(/[\s-]/g, "");
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function b(t) {
|
|
108
108
|
const o = E(t);
|
|
109
109
|
return o.length === u && [...o].every((n) => D.includes(n));
|
|
110
110
|
}
|
|
@@ -115,10 +115,10 @@ function m(t) {
|
|
|
115
115
|
return `${o.slice(0, n)}-${o.slice(n)}`;
|
|
116
116
|
}
|
|
117
117
|
const l = { min: 1, max: 50 };
|
|
118
|
-
function
|
|
118
|
+
function P(t) {
|
|
119
119
|
return typeof t != "number" || Number.isNaN(t) ? l.min : Math.min(l.max, Math.max(l.min, Math.trunc(t)));
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function j(t) {
|
|
122
122
|
return t.map((o) => m(o)).filter(Boolean).join(`
|
|
123
123
|
`);
|
|
124
124
|
}
|
|
@@ -131,10 +131,13 @@ const d = {
|
|
|
131
131
|
JOIN_REQUEST_EXISTS: "order.foodCourt.joinErrors.requestExists",
|
|
132
132
|
RESTAURANT_NOT_MANAGEABLE: "order.foodCourt.joinErrors.notManageable"
|
|
133
133
|
};
|
|
134
|
-
function
|
|
134
|
+
function R(t) {
|
|
135
135
|
const o = typeof t == "object" && t !== null ? t.code : void 0;
|
|
136
136
|
return typeof o == "string" && Object.prototype.hasOwnProperty.call(d, o) ? d[o] : null;
|
|
137
137
|
}
|
|
138
|
+
function V(t) {
|
|
139
|
+
return typeof t == "object" && t !== null && t.code === "RESTAURANT_NOT_FOUND";
|
|
140
|
+
}
|
|
138
141
|
const A = {
|
|
139
142
|
INVITED: "INVITED",
|
|
140
143
|
ACTIVE: "JOINED",
|
|
@@ -163,13 +166,13 @@ function M(t) {
|
|
|
163
166
|
}), n = (s) => s.since && Date.parse(s.since) || 0;
|
|
164
167
|
return o.sort((s, e) => n(e) - n(s));
|
|
165
168
|
}
|
|
166
|
-
const
|
|
169
|
+
const J = {
|
|
167
170
|
JOINED: { variant: "success", labelKey: "order.foodCourt.invitations.statusJoined" },
|
|
168
171
|
INVITED: { variant: "neutral", labelKey: "order.foodCourt.invitations.statusInvited" },
|
|
169
172
|
DECLINED: { variant: "critical", labelKey: "order.foodCourt.invitations.statusDeclined" },
|
|
170
173
|
CANCELLED: { variant: "neutral", labelKey: "order.foodCourt.invitations.statusCancelled" },
|
|
171
174
|
LEFT: { variant: "neutral", labelKey: "order.foodCourt.invitations.statusLeft" }
|
|
172
|
-
},
|
|
175
|
+
}, K = 60;
|
|
173
176
|
function i(t) {
|
|
174
177
|
const o = (t ?? "").trim();
|
|
175
178
|
return o || null;
|
|
@@ -178,10 +181,10 @@ function _(t, o) {
|
|
|
178
181
|
const n = i(t);
|
|
179
182
|
return n === i(o) ? null : n;
|
|
180
183
|
}
|
|
181
|
-
function
|
|
184
|
+
function h(t, o, n) {
|
|
182
185
|
return { unitNo: i(t), displayName: _(o, n) };
|
|
183
186
|
}
|
|
184
|
-
function
|
|
187
|
+
function U(t, o) {
|
|
185
188
|
const n = { unitNo: i(t), displayName: i(o) };
|
|
186
189
|
return n.unitNo || n.displayName ? n : null;
|
|
187
190
|
}
|
|
@@ -190,23 +193,24 @@ function g(t) {
|
|
|
190
193
|
}
|
|
191
194
|
export {
|
|
192
195
|
l as J,
|
|
193
|
-
|
|
196
|
+
J as M,
|
|
194
197
|
y as S,
|
|
195
198
|
p as a,
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
+
K as b,
|
|
200
|
+
P as c,
|
|
201
|
+
U as d,
|
|
199
202
|
g as e,
|
|
200
203
|
m as f,
|
|
201
|
-
|
|
202
|
-
|
|
204
|
+
S as g,
|
|
205
|
+
O as h,
|
|
203
206
|
T as i,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
+
j,
|
|
208
|
+
b as k,
|
|
209
|
+
R as l,
|
|
207
210
|
M as m,
|
|
208
211
|
E as n,
|
|
212
|
+
V as o,
|
|
209
213
|
L as r,
|
|
210
|
-
|
|
214
|
+
h as s,
|
|
211
215
|
v as t
|
|
212
216
|
};
|
|
@@ -143,6 +143,7 @@ export declare const i18nMessages: {
|
|
|
143
143
|
invitations: {
|
|
144
144
|
title: string;
|
|
145
145
|
noRestaurant: string;
|
|
146
|
+
noAccess: string;
|
|
146
147
|
loadFailed: string;
|
|
147
148
|
searchPlaceholder: string;
|
|
148
149
|
noMatch: string;
|
|
@@ -255,6 +256,7 @@ export declare const i18nMessages: {
|
|
|
255
256
|
acceptQueueSublabel: string;
|
|
256
257
|
acceptReservation: string;
|
|
257
258
|
acceptReservationSublabel: string;
|
|
259
|
+
acceptReservationRequiresPosVersion: string;
|
|
258
260
|
actiavteFeedmeExpress: string;
|
|
259
261
|
activated: string;
|
|
260
262
|
activatedDate: string;
|
|
@@ -412,6 +414,19 @@ export declare const i18nMessages: {
|
|
|
412
414
|
disableRemoteQueue: string;
|
|
413
415
|
disableSMS: string;
|
|
414
416
|
queueNotifyOnCancel: string;
|
|
417
|
+
queueCalledMessage: string;
|
|
418
|
+
queueCalledMessageDescription: string;
|
|
419
|
+
queueCalledMessagePlaceholder: string;
|
|
420
|
+
queueCalledMessageInsertMinutes: string;
|
|
421
|
+
queueCalledMessageCount: string;
|
|
422
|
+
queueCalledMessagePreview: string;
|
|
423
|
+
queueCalledMessageMultiPart: string;
|
|
424
|
+
queueCalledMessageNotSevenBit: string;
|
|
425
|
+
queueCalledMessageLinkOrPhone: string;
|
|
426
|
+
queueCalledMessageTimerNotMentioned: string;
|
|
427
|
+
queueCalledMessagePlaceholderWhileTimerOff: string;
|
|
428
|
+
queueCalledMessageUnknownPlaceholder: string;
|
|
429
|
+
queueCalledMessageTooLong: string;
|
|
415
430
|
discountCampaign: string;
|
|
416
431
|
discountRule: {
|
|
417
432
|
add: string;
|
|
@@ -1508,6 +1523,7 @@ export declare const i18nMessages: {
|
|
|
1508
1523
|
invitations: {
|
|
1509
1524
|
title: string;
|
|
1510
1525
|
noRestaurant: string;
|
|
1526
|
+
noAccess: string;
|
|
1511
1527
|
loadFailed: string;
|
|
1512
1528
|
searchPlaceholder: string;
|
|
1513
1529
|
noMatch: string;
|
|
@@ -1712,6 +1728,7 @@ export declare const i18nMessages: {
|
|
|
1712
1728
|
acceptQueueSublabel: string;
|
|
1713
1729
|
acceptReservation: string;
|
|
1714
1730
|
acceptReservationSublabel: string;
|
|
1731
|
+
acceptReservationRequiresPosVersion: string;
|
|
1715
1732
|
actiavteFeedmeExpress: string;
|
|
1716
1733
|
activated: string;
|
|
1717
1734
|
activatedDate: string;
|
|
@@ -1995,6 +2012,19 @@ export declare const i18nMessages: {
|
|
|
1995
2012
|
allowOverrideQueueCode: string;
|
|
1996
2013
|
disableSMS: string;
|
|
1997
2014
|
queueNotifyOnCancel: string;
|
|
2015
|
+
queueCalledMessage: string;
|
|
2016
|
+
queueCalledMessageDescription: string;
|
|
2017
|
+
queueCalledMessagePlaceholder: string;
|
|
2018
|
+
queueCalledMessageInsertMinutes: string;
|
|
2019
|
+
queueCalledMessageCount: string;
|
|
2020
|
+
queueCalledMessagePreview: string;
|
|
2021
|
+
queueCalledMessageMultiPart: string;
|
|
2022
|
+
queueCalledMessageNotSevenBit: string;
|
|
2023
|
+
queueCalledMessageLinkOrPhone: string;
|
|
2024
|
+
queueCalledMessageTimerNotMentioned: string;
|
|
2025
|
+
queueCalledMessagePlaceholderWhileTimerOff: string;
|
|
2026
|
+
queueCalledMessageUnknownPlaceholder: string;
|
|
2027
|
+
queueCalledMessageTooLong: string;
|
|
1998
2028
|
codeSettings: string;
|
|
1999
2029
|
addCodeSetting: string;
|
|
2000
2030
|
current: string;
|
|
@@ -2859,6 +2889,7 @@ export declare const i18nMessages: {
|
|
|
2859
2889
|
invitations: {
|
|
2860
2890
|
title: string;
|
|
2861
2891
|
noRestaurant: string;
|
|
2892
|
+
noAccess: string;
|
|
2862
2893
|
loadFailed: string;
|
|
2863
2894
|
searchPlaceholder: string;
|
|
2864
2895
|
noMatch: string;
|
|
@@ -3063,6 +3094,7 @@ export declare const i18nMessages: {
|
|
|
3063
3094
|
acceptQueueSublabel: string;
|
|
3064
3095
|
acceptReservation: string;
|
|
3065
3096
|
acceptReservationSublabel: string;
|
|
3097
|
+
acceptReservationRequiresPosVersion: string;
|
|
3066
3098
|
actiavteFeedmeExpress: string;
|
|
3067
3099
|
activated: string;
|
|
3068
3100
|
activatedDate: string;
|
|
@@ -3344,6 +3376,19 @@ export declare const i18nMessages: {
|
|
|
3344
3376
|
allowOverrideQueueCode: string;
|
|
3345
3377
|
disableSMS: string;
|
|
3346
3378
|
queueNotifyOnCancel: string;
|
|
3379
|
+
queueCalledMessage: string;
|
|
3380
|
+
queueCalledMessageDescription: string;
|
|
3381
|
+
queueCalledMessagePlaceholder: string;
|
|
3382
|
+
queueCalledMessageInsertMinutes: string;
|
|
3383
|
+
queueCalledMessageCount: string;
|
|
3384
|
+
queueCalledMessagePreview: string;
|
|
3385
|
+
queueCalledMessageMultiPart: string;
|
|
3386
|
+
queueCalledMessageNotSevenBit: string;
|
|
3387
|
+
queueCalledMessageLinkOrPhone: string;
|
|
3388
|
+
queueCalledMessageTimerNotMentioned: string;
|
|
3389
|
+
queueCalledMessagePlaceholderWhileTimerOff: string;
|
|
3390
|
+
queueCalledMessageUnknownPlaceholder: string;
|
|
3391
|
+
queueCalledMessageTooLong: string;
|
|
3347
3392
|
codeSettings: string;
|
|
3348
3393
|
addCodeSetting: string;
|
|
3349
3394
|
current: string;
|
|
@@ -4045,6 +4090,7 @@ export declare const i18nMessages: {
|
|
|
4045
4090
|
invitations: {
|
|
4046
4091
|
title: string;
|
|
4047
4092
|
noRestaurant: string;
|
|
4093
|
+
noAccess: string;
|
|
4048
4094
|
loadFailed: string;
|
|
4049
4095
|
searchPlaceholder: string;
|
|
4050
4096
|
noMatch: string;
|
|
@@ -4157,6 +4203,7 @@ export declare const i18nMessages: {
|
|
|
4157
4203
|
acceptQueueSublabel: string;
|
|
4158
4204
|
acceptReservation: string;
|
|
4159
4205
|
acceptReservationSublabel: string;
|
|
4206
|
+
acceptReservationRequiresPosVersion: string;
|
|
4160
4207
|
actiavteFeedmeExpress: string;
|
|
4161
4208
|
activated: string;
|
|
4162
4209
|
activatedDate: string;
|
|
@@ -4428,6 +4475,19 @@ export declare const i18nMessages: {
|
|
|
4428
4475
|
allowOverrideQueueCode: string;
|
|
4429
4476
|
disableSMS: string;
|
|
4430
4477
|
queueNotifyOnCancel: string;
|
|
4478
|
+
queueCalledMessage: string;
|
|
4479
|
+
queueCalledMessageDescription: string;
|
|
4480
|
+
queueCalledMessagePlaceholder: string;
|
|
4481
|
+
queueCalledMessageInsertMinutes: string;
|
|
4482
|
+
queueCalledMessageCount: string;
|
|
4483
|
+
queueCalledMessagePreview: string;
|
|
4484
|
+
queueCalledMessageMultiPart: string;
|
|
4485
|
+
queueCalledMessageNotSevenBit: string;
|
|
4486
|
+
queueCalledMessageLinkOrPhone: string;
|
|
4487
|
+
queueCalledMessageTimerNotMentioned: string;
|
|
4488
|
+
queueCalledMessagePlaceholderWhileTimerOff: string;
|
|
4489
|
+
queueCalledMessageUnknownPlaceholder: string;
|
|
4490
|
+
queueCalledMessageTooLong: string;
|
|
4431
4491
|
printChecklist: string;
|
|
4432
4492
|
printChecklistSublabel: string;
|
|
4433
4493
|
onlinePaxDialog: string;
|
|
@@ -142,6 +142,7 @@ export declare const i18nMessages: {
|
|
|
142
142
|
invitations: {
|
|
143
143
|
title: string;
|
|
144
144
|
noRestaurant: string;
|
|
145
|
+
noAccess: string;
|
|
145
146
|
loadFailed: string;
|
|
146
147
|
searchPlaceholder: string;
|
|
147
148
|
noMatch: string;
|
|
@@ -254,6 +255,7 @@ export declare const i18nMessages: {
|
|
|
254
255
|
acceptQueueSublabel: string;
|
|
255
256
|
acceptReservation: string;
|
|
256
257
|
acceptReservationSublabel: string;
|
|
258
|
+
acceptReservationRequiresPosVersion: string;
|
|
257
259
|
actiavteFeedmeExpress: string;
|
|
258
260
|
activated: string;
|
|
259
261
|
activatedDate: string;
|
|
@@ -411,6 +413,19 @@ export declare const i18nMessages: {
|
|
|
411
413
|
disableRemoteQueue: string;
|
|
412
414
|
disableSMS: string;
|
|
413
415
|
queueNotifyOnCancel: string;
|
|
416
|
+
queueCalledMessage: string;
|
|
417
|
+
queueCalledMessageDescription: string;
|
|
418
|
+
queueCalledMessagePlaceholder: string;
|
|
419
|
+
queueCalledMessageInsertMinutes: string;
|
|
420
|
+
queueCalledMessageCount: string;
|
|
421
|
+
queueCalledMessagePreview: string;
|
|
422
|
+
queueCalledMessageMultiPart: string;
|
|
423
|
+
queueCalledMessageNotSevenBit: string;
|
|
424
|
+
queueCalledMessageLinkOrPhone: string;
|
|
425
|
+
queueCalledMessageTimerNotMentioned: string;
|
|
426
|
+
queueCalledMessagePlaceholderWhileTimerOff: string;
|
|
427
|
+
queueCalledMessageUnknownPlaceholder: string;
|
|
428
|
+
queueCalledMessageTooLong: string;
|
|
414
429
|
discountCampaign: string;
|
|
415
430
|
discountRule: {
|
|
416
431
|
add: string;
|
|
@@ -1507,6 +1522,7 @@ export declare const i18nMessages: {
|
|
|
1507
1522
|
invitations: {
|
|
1508
1523
|
title: string;
|
|
1509
1524
|
noRestaurant: string;
|
|
1525
|
+
noAccess: string;
|
|
1510
1526
|
loadFailed: string;
|
|
1511
1527
|
searchPlaceholder: string;
|
|
1512
1528
|
noMatch: string;
|
|
@@ -1711,6 +1727,7 @@ export declare const i18nMessages: {
|
|
|
1711
1727
|
acceptQueueSublabel: string;
|
|
1712
1728
|
acceptReservation: string;
|
|
1713
1729
|
acceptReservationSublabel: string;
|
|
1730
|
+
acceptReservationRequiresPosVersion: string;
|
|
1714
1731
|
actiavteFeedmeExpress: string;
|
|
1715
1732
|
activated: string;
|
|
1716
1733
|
activatedDate: string;
|
|
@@ -1994,6 +2011,19 @@ export declare const i18nMessages: {
|
|
|
1994
2011
|
allowOverrideQueueCode: string;
|
|
1995
2012
|
disableSMS: string;
|
|
1996
2013
|
queueNotifyOnCancel: string;
|
|
2014
|
+
queueCalledMessage: string;
|
|
2015
|
+
queueCalledMessageDescription: string;
|
|
2016
|
+
queueCalledMessagePlaceholder: string;
|
|
2017
|
+
queueCalledMessageInsertMinutes: string;
|
|
2018
|
+
queueCalledMessageCount: string;
|
|
2019
|
+
queueCalledMessagePreview: string;
|
|
2020
|
+
queueCalledMessageMultiPart: string;
|
|
2021
|
+
queueCalledMessageNotSevenBit: string;
|
|
2022
|
+
queueCalledMessageLinkOrPhone: string;
|
|
2023
|
+
queueCalledMessageTimerNotMentioned: string;
|
|
2024
|
+
queueCalledMessagePlaceholderWhileTimerOff: string;
|
|
2025
|
+
queueCalledMessageUnknownPlaceholder: string;
|
|
2026
|
+
queueCalledMessageTooLong: string;
|
|
1997
2027
|
codeSettings: string;
|
|
1998
2028
|
addCodeSetting: string;
|
|
1999
2029
|
current: string;
|
|
@@ -2858,6 +2888,7 @@ export declare const i18nMessages: {
|
|
|
2858
2888
|
invitations: {
|
|
2859
2889
|
title: string;
|
|
2860
2890
|
noRestaurant: string;
|
|
2891
|
+
noAccess: string;
|
|
2861
2892
|
loadFailed: string;
|
|
2862
2893
|
searchPlaceholder: string;
|
|
2863
2894
|
noMatch: string;
|
|
@@ -3062,6 +3093,7 @@ export declare const i18nMessages: {
|
|
|
3062
3093
|
acceptQueueSublabel: string;
|
|
3063
3094
|
acceptReservation: string;
|
|
3064
3095
|
acceptReservationSublabel: string;
|
|
3096
|
+
acceptReservationRequiresPosVersion: string;
|
|
3065
3097
|
actiavteFeedmeExpress: string;
|
|
3066
3098
|
activated: string;
|
|
3067
3099
|
activatedDate: string;
|
|
@@ -3343,6 +3375,19 @@ export declare const i18nMessages: {
|
|
|
3343
3375
|
allowOverrideQueueCode: string;
|
|
3344
3376
|
disableSMS: string;
|
|
3345
3377
|
queueNotifyOnCancel: string;
|
|
3378
|
+
queueCalledMessage: string;
|
|
3379
|
+
queueCalledMessageDescription: string;
|
|
3380
|
+
queueCalledMessagePlaceholder: string;
|
|
3381
|
+
queueCalledMessageInsertMinutes: string;
|
|
3382
|
+
queueCalledMessageCount: string;
|
|
3383
|
+
queueCalledMessagePreview: string;
|
|
3384
|
+
queueCalledMessageMultiPart: string;
|
|
3385
|
+
queueCalledMessageNotSevenBit: string;
|
|
3386
|
+
queueCalledMessageLinkOrPhone: string;
|
|
3387
|
+
queueCalledMessageTimerNotMentioned: string;
|
|
3388
|
+
queueCalledMessagePlaceholderWhileTimerOff: string;
|
|
3389
|
+
queueCalledMessageUnknownPlaceholder: string;
|
|
3390
|
+
queueCalledMessageTooLong: string;
|
|
3346
3391
|
codeSettings: string;
|
|
3347
3392
|
addCodeSetting: string;
|
|
3348
3393
|
current: string;
|
|
@@ -4044,6 +4089,7 @@ export declare const i18nMessages: {
|
|
|
4044
4089
|
invitations: {
|
|
4045
4090
|
title: string;
|
|
4046
4091
|
noRestaurant: string;
|
|
4092
|
+
noAccess: string;
|
|
4047
4093
|
loadFailed: string;
|
|
4048
4094
|
searchPlaceholder: string;
|
|
4049
4095
|
noMatch: string;
|
|
@@ -4156,6 +4202,7 @@ export declare const i18nMessages: {
|
|
|
4156
4202
|
acceptQueueSublabel: string;
|
|
4157
4203
|
acceptReservation: string;
|
|
4158
4204
|
acceptReservationSublabel: string;
|
|
4205
|
+
acceptReservationRequiresPosVersion: string;
|
|
4159
4206
|
actiavteFeedmeExpress: string;
|
|
4160
4207
|
activated: string;
|
|
4161
4208
|
activatedDate: string;
|
|
@@ -4427,6 +4474,19 @@ export declare const i18nMessages: {
|
|
|
4427
4474
|
allowOverrideQueueCode: string;
|
|
4428
4475
|
disableSMS: string;
|
|
4429
4476
|
queueNotifyOnCancel: string;
|
|
4477
|
+
queueCalledMessage: string;
|
|
4478
|
+
queueCalledMessageDescription: string;
|
|
4479
|
+
queueCalledMessagePlaceholder: string;
|
|
4480
|
+
queueCalledMessageInsertMinutes: string;
|
|
4481
|
+
queueCalledMessageCount: string;
|
|
4482
|
+
queueCalledMessagePreview: string;
|
|
4483
|
+
queueCalledMessageMultiPart: string;
|
|
4484
|
+
queueCalledMessageNotSevenBit: string;
|
|
4485
|
+
queueCalledMessageLinkOrPhone: string;
|
|
4486
|
+
queueCalledMessageTimerNotMentioned: string;
|
|
4487
|
+
queueCalledMessagePlaceholderWhileTimerOff: string;
|
|
4488
|
+
queueCalledMessageUnknownPlaceholder: string;
|
|
4489
|
+
queueCalledMessageTooLong: string;
|
|
4430
4490
|
printChecklist: string;
|
|
4431
4491
|
printChecklistSublabel: string;
|
|
4432
4492
|
onlinePaxDialog: string;
|
|
@@ -239,6 +239,7 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
239
239
|
disableRemoteQueue?: boolean | null | undefined;
|
|
240
240
|
disableSMS?: boolean | null | undefined;
|
|
241
241
|
autoCancelCalledMinutes?: number | null | undefined;
|
|
242
|
+
calledMessage?: string | null | undefined;
|
|
242
243
|
printChecklist?: boolean | null | undefined;
|
|
243
244
|
enableQueueToTabletTransfer?: boolean | null | undefined;
|
|
244
245
|
duration: number;
|
|
@@ -548,6 +549,7 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
548
549
|
disableRemoteQueue?: boolean | null | undefined;
|
|
549
550
|
disableSMS?: boolean | null | undefined;
|
|
550
551
|
autoCancelCalledMinutes?: number | null | undefined;
|
|
552
|
+
calledMessage?: string | null | undefined;
|
|
551
553
|
printChecklist?: boolean | null | undefined;
|
|
552
554
|
enableQueueToTabletTransfer?: boolean | null | undefined;
|
|
553
555
|
duration: number;
|
|
@@ -857,6 +859,7 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
857
859
|
disableRemoteQueue?: boolean | null | undefined;
|
|
858
860
|
disableSMS?: boolean | null | undefined;
|
|
859
861
|
autoCancelCalledMinutes?: number | null | undefined;
|
|
862
|
+
calledMessage?: string | null | undefined;
|
|
860
863
|
printChecklist?: boolean | null | undefined;
|
|
861
864
|
enableQueueToTabletTransfer?: boolean | null | undefined;
|
|
862
865
|
duration: number;
|
|
@@ -101,6 +101,11 @@ export declare function joinCodesCopyText(codes: readonly (string | null | undef
|
|
|
101
101
|
export declare const JOIN_CODE_ERROR_KEY: Record<string, string>;
|
|
102
102
|
/** The i18n key for a failed preview or redeem, or null to show the backend's own message. */
|
|
103
103
|
export declare function joinCodeErrorKey(e: unknown): string | null;
|
|
104
|
+
/**
|
|
105
|
+
* The memberships list refused the outlet: the user cannot manage it (the
|
|
106
|
+
* backend answers 404 RESTAURANT_NOT_FOUND rather than reveal it).
|
|
107
|
+
*/
|
|
108
|
+
export declare function isRestaurantNotFound(e: unknown): boolean;
|
|
104
109
|
/** A court as the stall's Food Courts list shows its row there. */
|
|
105
110
|
export type FoodCourtMembershipStatus = 'INVITED' | 'JOINED' | 'DECLINED' | 'CANCELLED' | 'LEFT';
|
|
106
111
|
/** One court the restaurant has a row in, stall side (KDI-4915). */
|
package/dist/frontend/mf-order/src/views/order-settings/components/RestaurantSelector.vue.d.ts
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** With no current outlet, name the first one (false: "No restaurant selected"). */
|
|
3
|
+
fallbackToFirst?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
6
|
+
fallbackToFirst: boolean;
|
|
7
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
2
8
|
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const RESERVATION_MIN_POS_VERSION = "8.0.2";
|
|
2
|
+
/**
|
|
3
|
+
* Whether the outlet's Main POS can show reservations. A version that does not
|
|
4
|
+
* parse as semver is read leniently ("8.0.2 (123)" → 8.0.2) and counts as
|
|
5
|
+
* unsupported when nothing can be read, rather than throwing during render.
|
|
6
|
+
* A pre-release of 8.0.2 counts as below it; none was ever built.
|
|
7
|
+
*/
|
|
8
|
+
export declare function posSupportsReservations(posVersion: string | null | undefined): boolean;
|
|
@@ -3,7 +3,7 @@ export declare const AUTO_CANCEL_DEFAULT_MINUTES = 60;
|
|
|
3
3
|
/** The range queue-backend's timer takes: at least a minute, at most a day. */
|
|
4
4
|
export declare const AUTO_CANCEL_MIN_MINUTES = 1;
|
|
5
5
|
export declare const AUTO_CANCEL_MAX_MINUTES = 1440;
|
|
6
|
-
/** On when a positive number of minutes is stored; 0, null and absent all mean off
|
|
7
|
-
export
|
|
6
|
+
/** On when a positive number of minutes is stored; 0, null and absent all mean off. The server's own rule. */
|
|
7
|
+
export { isAutoCancelOn } from '@common/queue/called-sms';
|
|
8
8
|
/** Whether `minutes` can be saved while auto-cancel is on: a whole number from 1 to 1440. */
|
|
9
9
|
export declare function isAutoCancelMinutesValid(minutes: number | null | undefined): boolean;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const AUTO_CANCEL_TOKEN = "{{autoCancelMinutes}}";
|
|
2
|
+
/**
|
|
3
|
+
* The longest code this outlet can issue: the longest segment prefix plus the
|
|
4
|
+
* running number padded to its segment's `end`, as queue-backend's `newCode`
|
|
5
|
+
* does. Counting with it keeps the SMS count from undershooting the real bill.
|
|
6
|
+
*/
|
|
7
|
+
export declare function previewQueueCode(codeSettings: {
|
|
8
|
+
prefix?: string | null;
|
|
9
|
+
end?: number | null;
|
|
10
|
+
}[] | null | undefined): string;
|
|
11
|
+
export type CalledMessageWarning = 'multiPart' | 'notSevenBit' | 'linkOrPhone' | 'timerNotMentioned' | 'placeholderWhileTimerOff';
|
|
12
|
+
export type CalledMessageCheck = {
|
|
13
|
+
/** The whole SMS as queue-backend would send it, with the outlet's longest code. */
|
|
14
|
+
preview: string;
|
|
15
|
+
length: number;
|
|
16
|
+
parts: number;
|
|
17
|
+
/** Placeholders we do not fill; saving is refused while there are any. */
|
|
18
|
+
unknownTokens: string[];
|
|
19
|
+
warnings: CalledMessageWarning[];
|
|
20
|
+
};
|
|
21
|
+
/** What the merchant's called line turns into, and what they should know before saving it. */
|
|
22
|
+
export declare function checkCalledMessage({ calledMessage, autoCancelCalledMinutes, restaurantName, queueCode, country }: {
|
|
23
|
+
calledMessage?: string | null;
|
|
24
|
+
autoCancelCalledMinutes?: number | null;
|
|
25
|
+
restaurantName: string;
|
|
26
|
+
/** See `previewQueueCode`. */
|
|
27
|
+
queueCode?: string;
|
|
28
|
+
country?: string | null;
|
|
29
|
+
}): CalledMessageCheck;
|
|
30
|
+
/** `line` with the auto-cancel placeholder added at the end. */
|
|
31
|
+
export declare function withAutoCancelToken(line: string | null | undefined): string;
|
package/dist/frontend/mf-order/src/views/order-settings/reservation/CopySettingsSheet.vue.d.ts
CHANGED
|
@@ -7,6 +7,10 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
7
7
|
smsEnabled: boolean;
|
|
8
8
|
ranges: {
|
|
9
9
|
enable?: boolean | null | undefined;
|
|
10
|
+
freeCancellationBefore?: {
|
|
11
|
+
value: number;
|
|
12
|
+
unit: "day" | "hour" | "minute";
|
|
13
|
+
} | null | undefined;
|
|
10
14
|
guestMessage?: string | null | undefined;
|
|
11
15
|
cancellationPolicy?: string | null | undefined;
|
|
12
16
|
name: string;
|
|
@@ -97,6 +101,10 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
97
101
|
smsEnabled: boolean;
|
|
98
102
|
ranges: {
|
|
99
103
|
enable?: boolean | null | undefined;
|
|
104
|
+
freeCancellationBefore?: {
|
|
105
|
+
value: number;
|
|
106
|
+
unit: "day" | "hour" | "minute";
|
|
107
|
+
} | null | undefined;
|
|
100
108
|
guestMessage?: string | null | undefined;
|
|
101
109
|
cancellationPolicy?: string | null | undefined;
|
|
102
110
|
name: string;
|