@feedmepos/mf-order-setting 0.0.86 → 0.0.87
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-DjFBEWoq.js → DisplaySystemView-Dx4As33V.js} +1 -1
- package/dist/{KioskDevicesView-RKMdLuB3.js → KioskDevicesView-Ziu9ekHK.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-BrG6Au5z.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-Bki-OF23.js} +3 -3
- package/dist/{KioskSettingView-CzelEig6.js → KioskSettingView-BlLW-tDD.js} +3 -3
- package/dist/{KioskView-Bi5Kc4cS.js → KioskView-CzlaEjMR.js} +5 -5
- package/dist/{OrderSettingsView-BfxrjGAi.js → OrderSettingsView-B69It-yu.js} +16654 -16507
- package/dist/{app-Bg-n-Eug.js → app-C8jy3wlN.js} +324 -248
- package/dist/app.js +1 -1
- package/dist/common/sms/index.d.ts +14 -3
- package/dist/frontend/mf-order/src/app.d.ts +76 -0
- package/dist/frontend/mf-order/src/main.d.ts +76 -0
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +6 -0
- package/dist/frontend/mf-order/src/views/order-settings/components/NotifyChannelEditor.vue.d.ts +11 -0
- package/dist/frontend/mf-order/src/views/order-settings/components/notify-channel-country.d.ts +1 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-C7Ug4fCi.js → index-DNvUwB59.js} +1 -1
- package/dist/{index-g_rocKrp.js → index-DiRlxqKH.js} +2 -2
- package/dist/{index-0eYg6XEb.js → index-VtBPFvME.js} +1 -1
- package/dist/{order.dto-MKeJAj6d.js → order.dto-CFw4X11T.js} +3708 -3631
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +10 -1
- package/dist/package/entity/index.d.ts +2 -0
- package/dist/package/entity/index.frontend.d.ts +2 -0
- package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +7 -0
- package/dist/package/entity/order-setting/notification/notification.enum.d.ts +50 -0
- package/dist/package/entity/order-setting/notification/notification.route.d.ts +91 -0
- 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 +17 -0
- package/dist/package/entity/order-setting/queue/queue.dto.d.ts +4 -0
- package/dist/package/entity/order-setting/sms/sms.do.d.ts +14 -0
- package/dist/package/entity/order-setting/sms/sms.dto.d.ts +4 -0
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +10 -0
- package/package.json +1 -1
- package/src/locales/en-US.json +20 -1
- package/src/locales/ja-JP.json +20 -1
- package/src/locales/th-TH.json +20 -1
- package/src/locales/zh-CN.json +20 -1
- package/src/views/order-settings/OrderSettingsView.vue +1 -1
- package/src/views/order-settings/components/NotifyChannelEditor.vue +130 -0
- package/src/views/order-settings/components/notify-channel-country.spec.ts +20 -0
- package/src/views/order-settings/components/notify-channel-country.ts +21 -0
- package/src/views/order-settings/queue/QueueSetting.vue +7 -0
- package/src/views/order-settings/sms/SmsSetting.vue +41 -1
- package/src/views/order-settings/sms/notify-channels-dto.spec.ts +42 -0
package/dist/app.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { F_ORDER_TYPE, FdoBill, FdoRestaurant } from '@feedmepos/core/entity';
|
|
2
2
|
import { F_ORDER_DINE_IN_TYPE } from '../../package/entity/order/order.enum';
|
|
3
3
|
import { F_SMS_KEY, F_SMS_ACTION } from '../../package/entity/order-setting/sms/sms.enum';
|
|
4
|
+
import type { F_ORDER_NOTIFY_CHANNEL } from '../../package/entity/order-setting/notification/notification.enum';
|
|
4
5
|
import type { FdoOrder } from '../../package/entity/order/order.do';
|
|
5
6
|
import type { OrderSmsMessageSettingDto, OrderSmsSettingDto } from '../../package/entity/order-setting/sms/sms.dto';
|
|
6
7
|
export declare function formatAddress(address?: any): string;
|
|
@@ -10,17 +11,27 @@ declare function generateSms(message: OrderSmsMessageSettingDto, payload?: {
|
|
|
10
11
|
order?: FdoOrder;
|
|
11
12
|
restaurant?: FdoRestaurant;
|
|
12
13
|
}): any;
|
|
13
|
-
|
|
14
|
+
/**
|
|
15
|
+
* One notification to send: the SMS-shaped payload `sendV2` has always taken,
|
|
16
|
+
* plus the channel list from the setting row that matched.
|
|
17
|
+
*
|
|
18
|
+
* `channels` is additive and optional-by-absence — an unconfigured merchant
|
|
19
|
+
* yields `undefined`, which `resolveChannels` reads as SMS-only. Callers that
|
|
20
|
+
* ignore the field keep the exact behaviour they had.
|
|
21
|
+
*/
|
|
22
|
+
type ProcessedSms = {
|
|
14
23
|
businessId: string;
|
|
15
24
|
content: {
|
|
16
25
|
phoneNo: string;
|
|
17
26
|
message: string;
|
|
18
27
|
}[];
|
|
19
28
|
forceSend?: boolean;
|
|
20
|
-
|
|
29
|
+
channels?: F_ORDER_NOTIFY_CHANNEL[] | null;
|
|
30
|
+
};
|
|
31
|
+
declare function processSms(settings: OrderSmsSettingDto[], order: FdoOrder, restaurant: FdoRestaurant, bill: FdoBill, action: F_SMS_ACTION): ProcessedSms[];
|
|
21
32
|
export declare const SMS: {
|
|
22
33
|
readKeyByType: typeof readKeyByType;
|
|
23
34
|
generateSms: typeof generateSms;
|
|
24
35
|
processSms: typeof processSms;
|
|
25
36
|
};
|
|
26
|
-
export {};
|
|
37
|
+
export type { ProcessedSms };
|
|
@@ -471,6 +471,25 @@ export declare const i18nMessages: {
|
|
|
471
471
|
showNotAvailable: string;
|
|
472
472
|
showNotAvailableMenuItem: string;
|
|
473
473
|
sms: string;
|
|
474
|
+
notifications: string;
|
|
475
|
+
notifyChannel: {
|
|
476
|
+
title: string;
|
|
477
|
+
hint: string;
|
|
478
|
+
add: string;
|
|
479
|
+
pushNote: string;
|
|
480
|
+
alongside: string;
|
|
481
|
+
everyone: string;
|
|
482
|
+
member: string;
|
|
483
|
+
guest: string;
|
|
484
|
+
messageRequired: string;
|
|
485
|
+
channel: {
|
|
486
|
+
SMS: string;
|
|
487
|
+
APP_INBOX: string;
|
|
488
|
+
PUSH_NOTIFICATION: string;
|
|
489
|
+
WHATSAPP: string;
|
|
490
|
+
EMAIL: string;
|
|
491
|
+
};
|
|
492
|
+
};
|
|
474
493
|
sstInclusive: string;
|
|
475
494
|
start: string;
|
|
476
495
|
staticQRcode: string;
|
|
@@ -1416,6 +1435,25 @@ export declare const i18nMessages: {
|
|
|
1416
1435
|
settings: string;
|
|
1417
1436
|
showNotAvailable: string;
|
|
1418
1437
|
sms: string;
|
|
1438
|
+
notifications: string;
|
|
1439
|
+
notifyChannel: {
|
|
1440
|
+
title: string;
|
|
1441
|
+
hint: string;
|
|
1442
|
+
add: string;
|
|
1443
|
+
pushNote: string;
|
|
1444
|
+
alongside: string;
|
|
1445
|
+
everyone: string;
|
|
1446
|
+
member: string;
|
|
1447
|
+
guest: string;
|
|
1448
|
+
messageRequired: string;
|
|
1449
|
+
channel: {
|
|
1450
|
+
SMS: string;
|
|
1451
|
+
APP_INBOX: string;
|
|
1452
|
+
PUSH_NOTIFICATION: string;
|
|
1453
|
+
WHATSAPP: string;
|
|
1454
|
+
EMAIL: string;
|
|
1455
|
+
};
|
|
1456
|
+
};
|
|
1419
1457
|
sstInclusive: string;
|
|
1420
1458
|
vatExclude: string;
|
|
1421
1459
|
start: string;
|
|
@@ -2339,6 +2377,25 @@ export declare const i18nMessages: {
|
|
|
2339
2377
|
settings: string;
|
|
2340
2378
|
showNotAvailable: string;
|
|
2341
2379
|
sms: string;
|
|
2380
|
+
notifications: string;
|
|
2381
|
+
notifyChannel: {
|
|
2382
|
+
title: string;
|
|
2383
|
+
hint: string;
|
|
2384
|
+
add: string;
|
|
2385
|
+
pushNote: string;
|
|
2386
|
+
alongside: string;
|
|
2387
|
+
everyone: string;
|
|
2388
|
+
member: string;
|
|
2389
|
+
guest: string;
|
|
2390
|
+
messageRequired: string;
|
|
2391
|
+
channel: {
|
|
2392
|
+
SMS: string;
|
|
2393
|
+
APP_INBOX: string;
|
|
2394
|
+
PUSH_NOTIFICATION: string;
|
|
2395
|
+
WHATSAPP: string;
|
|
2396
|
+
EMAIL: string;
|
|
2397
|
+
};
|
|
2398
|
+
};
|
|
2342
2399
|
sstInclusive: string;
|
|
2343
2400
|
vatExclude: string;
|
|
2344
2401
|
start: string;
|
|
@@ -3010,6 +3067,25 @@ export declare const i18nMessages: {
|
|
|
3010
3067
|
settings: string;
|
|
3011
3068
|
showNotAvailable: string;
|
|
3012
3069
|
sms: string;
|
|
3070
|
+
notifications: string;
|
|
3071
|
+
notifyChannel: {
|
|
3072
|
+
title: string;
|
|
3073
|
+
hint: string;
|
|
3074
|
+
add: string;
|
|
3075
|
+
pushNote: string;
|
|
3076
|
+
alongside: string;
|
|
3077
|
+
everyone: string;
|
|
3078
|
+
member: string;
|
|
3079
|
+
guest: string;
|
|
3080
|
+
messageRequired: string;
|
|
3081
|
+
channel: {
|
|
3082
|
+
SMS: string;
|
|
3083
|
+
APP_INBOX: string;
|
|
3084
|
+
PUSH_NOTIFICATION: string;
|
|
3085
|
+
WHATSAPP: string;
|
|
3086
|
+
EMAIL: string;
|
|
3087
|
+
};
|
|
3088
|
+
};
|
|
3013
3089
|
sstInclusive: string;
|
|
3014
3090
|
vatExclude: string;
|
|
3015
3091
|
start: string;
|
|
@@ -470,6 +470,25 @@ export declare const i18nMessages: {
|
|
|
470
470
|
showNotAvailable: string;
|
|
471
471
|
showNotAvailableMenuItem: string;
|
|
472
472
|
sms: string;
|
|
473
|
+
notifications: string;
|
|
474
|
+
notifyChannel: {
|
|
475
|
+
title: string;
|
|
476
|
+
hint: string;
|
|
477
|
+
add: string;
|
|
478
|
+
pushNote: string;
|
|
479
|
+
alongside: string;
|
|
480
|
+
everyone: string;
|
|
481
|
+
member: string;
|
|
482
|
+
guest: string;
|
|
483
|
+
messageRequired: string;
|
|
484
|
+
channel: {
|
|
485
|
+
SMS: string;
|
|
486
|
+
APP_INBOX: string;
|
|
487
|
+
PUSH_NOTIFICATION: string;
|
|
488
|
+
WHATSAPP: string;
|
|
489
|
+
EMAIL: string;
|
|
490
|
+
};
|
|
491
|
+
};
|
|
473
492
|
sstInclusive: string;
|
|
474
493
|
start: string;
|
|
475
494
|
staticQRcode: string;
|
|
@@ -1415,6 +1434,25 @@ export declare const i18nMessages: {
|
|
|
1415
1434
|
settings: string;
|
|
1416
1435
|
showNotAvailable: string;
|
|
1417
1436
|
sms: string;
|
|
1437
|
+
notifications: string;
|
|
1438
|
+
notifyChannel: {
|
|
1439
|
+
title: string;
|
|
1440
|
+
hint: string;
|
|
1441
|
+
add: string;
|
|
1442
|
+
pushNote: string;
|
|
1443
|
+
alongside: string;
|
|
1444
|
+
everyone: string;
|
|
1445
|
+
member: string;
|
|
1446
|
+
guest: string;
|
|
1447
|
+
messageRequired: string;
|
|
1448
|
+
channel: {
|
|
1449
|
+
SMS: string;
|
|
1450
|
+
APP_INBOX: string;
|
|
1451
|
+
PUSH_NOTIFICATION: string;
|
|
1452
|
+
WHATSAPP: string;
|
|
1453
|
+
EMAIL: string;
|
|
1454
|
+
};
|
|
1455
|
+
};
|
|
1418
1456
|
sstInclusive: string;
|
|
1419
1457
|
vatExclude: string;
|
|
1420
1458
|
start: string;
|
|
@@ -2338,6 +2376,25 @@ export declare const i18nMessages: {
|
|
|
2338
2376
|
settings: string;
|
|
2339
2377
|
showNotAvailable: string;
|
|
2340
2378
|
sms: string;
|
|
2379
|
+
notifications: string;
|
|
2380
|
+
notifyChannel: {
|
|
2381
|
+
title: string;
|
|
2382
|
+
hint: string;
|
|
2383
|
+
add: string;
|
|
2384
|
+
pushNote: string;
|
|
2385
|
+
alongside: string;
|
|
2386
|
+
everyone: string;
|
|
2387
|
+
member: string;
|
|
2388
|
+
guest: string;
|
|
2389
|
+
messageRequired: string;
|
|
2390
|
+
channel: {
|
|
2391
|
+
SMS: string;
|
|
2392
|
+
APP_INBOX: string;
|
|
2393
|
+
PUSH_NOTIFICATION: string;
|
|
2394
|
+
WHATSAPP: string;
|
|
2395
|
+
EMAIL: string;
|
|
2396
|
+
};
|
|
2397
|
+
};
|
|
2341
2398
|
sstInclusive: string;
|
|
2342
2399
|
vatExclude: string;
|
|
2343
2400
|
start: string;
|
|
@@ -3009,6 +3066,25 @@ export declare const i18nMessages: {
|
|
|
3009
3066
|
settings: string;
|
|
3010
3067
|
showNotAvailable: string;
|
|
3011
3068
|
sms: string;
|
|
3069
|
+
notifications: string;
|
|
3070
|
+
notifyChannel: {
|
|
3071
|
+
title: string;
|
|
3072
|
+
hint: string;
|
|
3073
|
+
add: string;
|
|
3074
|
+
pushNote: string;
|
|
3075
|
+
alongside: string;
|
|
3076
|
+
everyone: string;
|
|
3077
|
+
member: string;
|
|
3078
|
+
guest: string;
|
|
3079
|
+
messageRequired: string;
|
|
3080
|
+
channel: {
|
|
3081
|
+
SMS: string;
|
|
3082
|
+
APP_INBOX: string;
|
|
3083
|
+
PUSH_NOTIFICATION: string;
|
|
3084
|
+
WHATSAPP: string;
|
|
3085
|
+
EMAIL: string;
|
|
3086
|
+
};
|
|
3087
|
+
};
|
|
3012
3088
|
sstInclusive: string;
|
|
3013
3089
|
vatExclude: string;
|
|
3014
3090
|
start: string;
|
|
@@ -211,6 +211,7 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
211
211
|
} | null | undefined;
|
|
212
212
|
queueSettings?: {
|
|
213
213
|
autoSendKitchen?: boolean | null | undefined;
|
|
214
|
+
channels?: ("APP_INBOX" | "SMS" | "WHATSAPP" | "EMAIL" | "PUSH_NOTIFICATION")[] | null | undefined;
|
|
214
215
|
showWaitEstimate?: boolean | null | undefined;
|
|
215
216
|
codeSettings?: {
|
|
216
217
|
id?: string | null | undefined;
|
|
@@ -239,6 +240,7 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
239
240
|
autoCalledLimit: number;
|
|
240
241
|
} | null | undefined;
|
|
241
242
|
smsSettings?: {
|
|
243
|
+
channels?: ("APP_INBOX" | "SMS" | "WHATSAPP" | "EMAIL" | "PUSH_NOTIFICATION")[] | null | undefined;
|
|
242
244
|
type: "QR" | "QUEUE" | "TAKEAWAY" | "KIOSK" | "COUNTER" | "DINE_IN" | "PICKUP" | "DELIVERY";
|
|
243
245
|
message: {
|
|
244
246
|
keys: Record<string, "Bill Receipt Number" | "Bill Receipt Total Amount (Net)" | "Order Type" | "Order Slot" | "Order Datetime" | "Order Delivery Type" | "Restaurant Name" | "Restaurant Email" | "Restaurant Address" | "Restaurant Contact Number">;
|
|
@@ -512,6 +514,7 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
512
514
|
} | null | undefined;
|
|
513
515
|
queueSettings?: {
|
|
514
516
|
autoSendKitchen?: boolean | null | undefined;
|
|
517
|
+
channels?: ("APP_INBOX" | "SMS" | "WHATSAPP" | "EMAIL" | "PUSH_NOTIFICATION")[] | null | undefined;
|
|
515
518
|
showWaitEstimate?: boolean | null | undefined;
|
|
516
519
|
codeSettings?: {
|
|
517
520
|
id?: string | null | undefined;
|
|
@@ -540,6 +543,7 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
540
543
|
autoCalledLimit: number;
|
|
541
544
|
} | null | undefined;
|
|
542
545
|
smsSettings?: {
|
|
546
|
+
channels?: ("APP_INBOX" | "SMS" | "WHATSAPP" | "EMAIL" | "PUSH_NOTIFICATION")[] | null | undefined;
|
|
543
547
|
type: "QR" | "QUEUE" | "TAKEAWAY" | "KIOSK" | "COUNTER" | "DINE_IN" | "PICKUP" | "DELIVERY";
|
|
544
548
|
message: {
|
|
545
549
|
keys: Record<string, "Bill Receipt Number" | "Bill Receipt Total Amount (Net)" | "Order Type" | "Order Slot" | "Order Datetime" | "Order Delivery Type" | "Restaurant Name" | "Restaurant Email" | "Restaurant Address" | "Restaurant Contact Number">;
|
|
@@ -813,6 +817,7 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
813
817
|
} | null | undefined;
|
|
814
818
|
queueSettings?: {
|
|
815
819
|
autoSendKitchen?: boolean | null | undefined;
|
|
820
|
+
channels?: ("APP_INBOX" | "SMS" | "WHATSAPP" | "EMAIL" | "PUSH_NOTIFICATION")[] | null | undefined;
|
|
816
821
|
showWaitEstimate?: boolean | null | undefined;
|
|
817
822
|
codeSettings?: {
|
|
818
823
|
id?: string | null | undefined;
|
|
@@ -841,6 +846,7 @@ export declare const useOrderSettings: import("pinia").StoreDefinition<"orderSet
|
|
|
841
846
|
autoCalledLimit: number;
|
|
842
847
|
} | null | undefined;
|
|
843
848
|
smsSettings?: {
|
|
849
|
+
channels?: ("APP_INBOX" | "SMS" | "WHATSAPP" | "EMAIL" | "PUSH_NOTIFICATION")[] | null | undefined;
|
|
844
850
|
type: "QR" | "QUEUE" | "TAKEAWAY" | "KIOSK" | "COUNTER" | "DINE_IN" | "PICKUP" | "DELIVERY";
|
|
845
851
|
message: {
|
|
846
852
|
keys: Record<string, "Bill Receipt Number" | "Bill Receipt Total Amount (Net)" | "Order Type" | "Order Slot" | "Order Datetime" | "Order Delivery Type" | "Restaurant Name" | "Restaurant Email" | "Restaurant Address" | "Restaurant Contact Number">;
|
package/dist/frontend/mf-order/src/views/order-settings/components/NotifyChannelEditor.vue.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { F_ORDER_NOTIFY_CHANNEL } from '@entity';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: F_ORDER_NOTIFY_CHANNEL[] | null;
|
|
4
|
+
readonly?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: ("APP_INBOX" | "SMS" | "WHATSAPP" | "EMAIL" | "PUSH_NOTIFICATION")[]) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: ("APP_INBOX" | "SMS" | "WHATSAPP" | "EMAIL" | "PUSH_NOTIFICATION")[]) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
package/dist/frontend/mf-order/src/views/order-settings/components/notify-channel-country.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function canChooseNotifyChannels(country: string | null | undefined): boolean;
|