@feedmepos/mf-order-setting 0.0.83 → 0.0.84
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-BXy_OnbY.js → DisplaySystemView-4Bz8p26A.js} +1 -1
- package/dist/{KioskDevicesView-D3YR1e6K.js → KioskDevicesView-DdwFuenU.js} +1 -1
- package/dist/{KioskDevicesView.vue_vue_type_script_setup_true_lang-CuhL_Q5C.js → KioskDevicesView.vue_vue_type_script_setup_true_lang-CxtLm_oh.js} +3 -3
- package/dist/{KioskSettingView-C3L9_8ag.js → KioskSettingView-D57KtQ-t.js} +289 -240
- package/dist/{KioskView-Cs6VBCj5.js → KioskView-fwBwUGCQ.js} +113 -103
- package/dist/{OrderSettingsView-BdaHRXda.js → OrderSettingsView-RhlyZmzs.js} +1772 -1766
- package/dist/{app-CP6AFTEu.js → app-ClOkRxOZ.js} +26 -6
- package/dist/app.js +1 -1
- package/dist/common/util/index.d.ts +9 -0
- package/dist/frontend/mf-order/src/app.d.ts +20 -0
- package/dist/frontend/mf-order/src/main.d.ts +20 -0
- package/dist/frontend/mf-order/src/modules/order-setting/kiosk/interface.d.ts +2 -0
- package/dist/frontend/mf-order/src/modules/order-setting/kiosk/languages.d.ts +7 -0
- package/dist/frontend/mf-order/src/stores/order-setting/index.d.ts +6 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/ExternalSetting.vue.d.ts +8 -0
- package/dist/frontend/mf-order/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue.d.ts +9 -0
- package/dist/frontend/mf-order/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{index-LCS8oexE.js → index-5k7kGCpJ.js} +2 -2
- package/dist/{index-BckeUsPc.js → index-CKEbr9Es.js} +1 -1
- package/dist/{index-DoJzzpyh.js → index-I2YGevce.js} +1 -1
- package/dist/{order.dto-Bm04C1sQ.js → order.dto-Dbn-hRrm.js} +3294 -3235
- package/dist/package/entity/alert/alert-base.dto.d.ts +306 -0
- package/dist/package/entity/alert/alert.dto.d.ts +956 -0
- package/dist/package/entity/alert/alert.enum.d.ts +7 -0
- package/dist/package/entity/alert/categories/integration.d.ts +333 -0
- package/dist/package/entity/alert/categories/kiosk.d.ts +297 -0
- package/dist/package/entity/alert/categories/mini-program.d.ts +297 -0
- package/dist/package/entity/alert/investigation.dto.d.ts +86 -0
- package/dist/package/entity/alert/lark-callback.dto.d.ts +106 -0
- package/dist/package/entity/alert/suggestion.dto.d.ts +31 -0
- package/dist/package/entity/alert/suggestion.enum.d.ts +7 -0
- package/dist/package/entity/incoming-order/incoming-order-to-bill.dto.d.ts +80 -0
- package/dist/package/entity/incoming-order/incoming-order.dto.d.ts +575 -0
- package/dist/package/entity/index.d.ts +12 -0
- package/dist/package/entity/index.frontend.d.ts +1 -0
- package/dist/package/entity/member/member.dto.d.ts +2 -1
- package/dist/package/entity/order/order.do.d.ts +64 -7
- package/dist/package/entity/order/order.dto.d.ts +85 -67
- package/dist/package/entity/order/payment/payment.dto.d.ts +36 -28
- package/dist/package/entity/order-platform/external/auth/external-auth.dto.d.ts +9 -15
- package/dist/package/entity/order-platform/external/menu/external-master-menu.do.d.ts +33 -0
- package/dist/package/entity/order-platform/external/menu/external-menu.do.d.ts +1185 -23
- package/dist/package/entity/order-platform/external/order/external-order.do.d.ts +1104 -52
- package/dist/package/entity/order-platform/external/order/external-order.dto.d.ts +2914 -88
- package/dist/package/entity/order-platform/external/setting/external-setting.do.d.ts +38 -0
- package/dist/package/entity/order-platform/external/setting/external-setting.dto.d.ts +26 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-availability.dto.d.ts +75 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-order.do.d.ts +9 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.do.d.ts +13 -0
- package/dist/package/entity/order-platform/foodpanda/foodpanda-settings.dto.d.ts +3 -0
- package/dist/package/entity/order-platform/shopeefood/shopeefood.enum.d.ts +6 -0
- package/dist/package/entity/order-platform/tng/tng-order.do.d.ts +6 -6
- package/dist/package/entity/order-platform/tng/tng.dto.d.ts +2 -2
- package/dist/package/entity/order-setting/kiosk/kiosk.do.d.ts +3 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.dto.d.ts +3 -0
- package/dist/package/entity/order-setting/kiosk/kiosk.enum.d.ts +12 -0
- package/dist/package/entity/order-setting/order-setting.do.d.ts +5 -0
- package/dist/package/entity/order-setting/order-setting.dto.d.ts +10 -0
- package/dist/package/entity/payment/payment.dto.d.ts +2 -2
- package/dist/package/entity/payment/transaction.d.ts +115 -30
- package/dist/package/entity/queue/queue.dto.d.ts +13 -11
- package/dist/package/entity/restaurant/restaurant.dto.d.ts +5 -0
- package/dist/package/entity/websocket/websocket.dto.d.ts +12 -0
- package/package.json +1 -1
- package/src/locales/en-US.json +5 -0
- package/src/locales/ja-JP.json +5 -0
- package/src/locales/th-TH.json +5 -0
- package/src/locales/zh-CN.json +5 -0
- package/src/modules/order-setting/kiosk/interface.ts +8 -0
- package/src/modules/order-setting/kiosk/languages.ts +29 -0
- package/src/stores/order-setting/mapper.spec.ts +44 -0
- package/src/stores/order-setting/mapper.ts +9 -2
- package/src/views/kiosk/settings/KioskSettingView.vue +63 -0
- package/src/views/order-settings/delivery/integrated-delivery/IntegratedDelivery.vue +6 -1
- package/src/views/order-settings/delivery/integrated-delivery/LinemanSetting.vue +2 -1
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
export * from './alert/alert.enum';
|
|
2
|
+
export * from './alert/alert-base.dto';
|
|
3
|
+
export * from './alert/alert.dto';
|
|
4
|
+
export * from './alert/suggestion.enum';
|
|
5
|
+
export * from './alert/suggestion.dto';
|
|
6
|
+
export * from './alert/investigation.dto';
|
|
7
|
+
export * from './alert/lark-callback.dto';
|
|
8
|
+
export * from './alert/categories/integration';
|
|
9
|
+
export * from './alert/categories/kiosk';
|
|
10
|
+
export * from './alert/categories/mini-program';
|
|
1
11
|
export * from './auth/auth.dto';
|
|
2
12
|
export * from './booking/booking.enum';
|
|
3
13
|
export * from './business/business.dto';
|
|
@@ -62,6 +72,7 @@ export * from './order-setting/dine-in/dine-in.do';
|
|
|
62
72
|
export * from './order-setting/dine-in/dine-in.dto';
|
|
63
73
|
export * from './order-setting/delivery/inhouse-delivery.do';
|
|
64
74
|
export * from './order-setting/delivery/inhouse-delivery.dto';
|
|
75
|
+
export * from './order-setting/kiosk/kiosk.enum';
|
|
65
76
|
export * from './order-setting/kiosk/kiosk.do';
|
|
66
77
|
export * from './order-setting/kiosk/kiosk.dto';
|
|
67
78
|
export * from './order-setting/pickup/pickup.do';
|
|
@@ -116,6 +127,7 @@ export * from './incoming-order/incoming-order.dto';
|
|
|
116
127
|
export * from './kiosk/scanner/scanner.do';
|
|
117
128
|
export * from './kiosk/scanner/scanner.dto';
|
|
118
129
|
export * from './order-platform/external/menu/external-menu.do';
|
|
130
|
+
export * from './order-platform/foodpanda/foodpanda-availability.dto';
|
|
119
131
|
export * from './order-platform/foodpanda/foodpanda-menu.dto';
|
|
120
132
|
export * from './order-platform/foodpanda/foodpanda-order.do';
|
|
121
133
|
export * from './order-platform/foodpanda/foodpanda-order.dto';
|
|
@@ -35,6 +35,7 @@ export * from './order-platform/shopeefood/shopeefood.enum';
|
|
|
35
35
|
export * from './order-platform/tng/tng-settings.do';
|
|
36
36
|
export * from './order-platform/tng/tng.enum';
|
|
37
37
|
export * from './order-setting/delivery/inhouse-delivery.dto';
|
|
38
|
+
export * from './order-setting/kiosk/kiosk.enum';
|
|
38
39
|
export * from './order-setting/kiosk/kiosk.do';
|
|
39
40
|
export * from './order-setting/kiosk/kiosk.dto';
|
|
40
41
|
export * from './order-setting/order-setting.do';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FdoUser, FdoMembership } from '@feedmepos/core/entity';
|
|
1
|
+
import { FdoUser, FdoMembership, FdtoMemberTierInfo } from '@feedmepos/core/entity';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const FdtoMember: z.ZodObject<z.extendShape<Omit<{
|
|
4
4
|
_id: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -1626,4 +1626,5 @@ export declare const FdtoEnrichedMember: z.ZodType<FdtoEnrichedMember>;
|
|
|
1626
1626
|
export type FdtoEnrichedMember = FdtoMember & {
|
|
1627
1627
|
pf_user?: FdoUser | undefined;
|
|
1628
1628
|
pf_membership?: FdoMembership | undefined;
|
|
1629
|
+
pf_tier?: FdtoMemberTierInfo | null | undefined;
|
|
1629
1630
|
};
|
|
@@ -4304,7 +4304,7 @@ export declare const FdoOrderPayment: z.ZodObject<{
|
|
|
4304
4304
|
precision: number;
|
|
4305
4305
|
}>>>;
|
|
4306
4306
|
gatewayTransactionId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
4307
|
-
method: z.ZodNullable<z.ZodOptional<z.ZodObject<z.extendShape<{
|
|
4307
|
+
method: z.ZodNullable<z.ZodOptional<z.ZodObject<z.extendShape<z.extendShape<{
|
|
4308
4308
|
issuer: z.ZodEnum<["ALIPAY", "BOOST", "GRABPAY", "MAYBANKQRPAY", "PRESTOPAY", "RAZERPAY", "SHOPEEPAY", "TOUCHNGO", "WECHATPAY", "CARD", "OTHER", "FEEDME", "DUITNOW", "PAYNOW", "FPX", "DEBITCARD", "CREDITCARD", "UNIONPAY", "ATOME", "VISA", "MASTER", "MYDEBIT", "MACAU_PASS", "AMEX", "CASH", "JCB", "DISCOVER", "DINERS", "THAIQR", "TRUEMONEY", "LINEPAY", "KBANK", "REVOLUT", "SARAWAKPAY", "SETEL"]>;
|
|
4309
4309
|
variant: z.ZodString;
|
|
4310
4310
|
}, {
|
|
@@ -4329,6 +4329,8 @@ export declare const FdoOrderPayment: z.ZodObject<{
|
|
|
4329
4329
|
precision: number;
|
|
4330
4330
|
}>>>;
|
|
4331
4331
|
tPlus: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
|
|
4332
|
+
}>, {
|
|
4333
|
+
issuer: z.ZodString;
|
|
4332
4334
|
}>, "strip", z.ZodTypeAny, {
|
|
4333
4335
|
rate?: {
|
|
4334
4336
|
amount: number;
|
|
@@ -4339,7 +4341,7 @@ export declare const FdoOrderPayment: z.ZodObject<{
|
|
|
4339
4341
|
precision: number;
|
|
4340
4342
|
} | null | undefined;
|
|
4341
4343
|
tPlus?: number | null | undefined;
|
|
4342
|
-
issuer:
|
|
4344
|
+
issuer: string;
|
|
4343
4345
|
variant: string;
|
|
4344
4346
|
}, {
|
|
4345
4347
|
rate?: {
|
|
@@ -4351,7 +4353,7 @@ export declare const FdoOrderPayment: z.ZodObject<{
|
|
|
4351
4353
|
precision: number;
|
|
4352
4354
|
} | null | undefined;
|
|
4353
4355
|
tPlus?: number | null | undefined;
|
|
4354
|
-
issuer:
|
|
4356
|
+
issuer: string;
|
|
4355
4357
|
variant: string;
|
|
4356
4358
|
}>>>;
|
|
4357
4359
|
pf_payoutAccount: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -4479,7 +4481,7 @@ export declare const FdoOrderPayment: z.ZodObject<{
|
|
|
4479
4481
|
precision: number;
|
|
4480
4482
|
} | null | undefined;
|
|
4481
4483
|
tPlus?: number | null | undefined;
|
|
4482
|
-
issuer:
|
|
4484
|
+
issuer: string;
|
|
4483
4485
|
variant: string;
|
|
4484
4486
|
} | null | undefined;
|
|
4485
4487
|
pf_payoutAccount?: {
|
|
@@ -4553,7 +4555,7 @@ export declare const FdoOrderPayment: z.ZodObject<{
|
|
|
4553
4555
|
precision: number;
|
|
4554
4556
|
} | null | undefined;
|
|
4555
4557
|
tPlus?: number | null | undefined;
|
|
4556
|
-
issuer:
|
|
4558
|
+
issuer: string;
|
|
4557
4559
|
variant: string;
|
|
4558
4560
|
} | null | undefined;
|
|
4559
4561
|
pf_payoutAccount?: {
|
|
@@ -9776,7 +9778,7 @@ export declare const FdoOrderPayment: z.ZodObject<{
|
|
|
9776
9778
|
precision: number;
|
|
9777
9779
|
} | null | undefined;
|
|
9778
9780
|
tPlus?: number | null | undefined;
|
|
9779
|
-
issuer:
|
|
9781
|
+
issuer: string;
|
|
9780
9782
|
variant: string;
|
|
9781
9783
|
} | null | undefined;
|
|
9782
9784
|
pf_payoutAccount?: {
|
|
@@ -10441,7 +10443,7 @@ export declare const FdoOrderPayment: z.ZodObject<{
|
|
|
10441
10443
|
precision: number;
|
|
10442
10444
|
} | null | undefined;
|
|
10443
10445
|
tPlus?: number | null | undefined;
|
|
10444
|
-
issuer:
|
|
10446
|
+
issuer: string;
|
|
10445
10447
|
variant: string;
|
|
10446
10448
|
} | null | undefined;
|
|
10447
10449
|
pf_payoutAccount?: {
|
|
@@ -11653,6 +11655,59 @@ export declare const FdoOrderMetadata: z.ZodObject<{
|
|
|
11653
11655
|
nfcId?: string | null | undefined;
|
|
11654
11656
|
orderPlatform: "UNKNOWN" | "WEB_V2_APP" | "WEB_V3_APP" | "KIOSK_APP" | "TABLET_APP";
|
|
11655
11657
|
}>;
|
|
11658
|
+
/**
|
|
11659
|
+
* How long a seat lock survives WITHOUT A HEARTBEAT before another attempt may steal it.
|
|
11660
|
+
*
|
|
11661
|
+
* This is a staleness window, NOT a budget for the seat. The holder renews `at` every
|
|
11662
|
+
* SEAT_LOCK_RENEW_MS for as long as it is still working, so a slow seat keeps its lock
|
|
11663
|
+
* indefinitely and only a holder that actually stopped (crashed, killed, partitioned)
|
|
11664
|
+
* loses it — after at most this long.
|
|
11665
|
+
*
|
|
11666
|
+
* A fixed budget was tried first and is wrong. Measured over 7 days of MY prod
|
|
11667
|
+
* (otel_traces, rectify-draft start -> update-status end, n=13301): p50 536ms, p99 5.9s,
|
|
11668
|
+
* p99.9 35.8s, max 60.4s; on 2026-08-30 the p99 alone was 14.9s. A 10s budget would have
|
|
11669
|
+
* expired mid-seat on 1.7% of seats that day (2.1% measured from where the lock is
|
|
11670
|
+
* actually taken), silently reopening the very race it exists to close — and the
|
|
11671
|
+
* 2026-08-30 incident is one of the seats it would have missed. Sizing for the tail
|
|
11672
|
+
* instead (>=61s) would mean a crashed seat freezing a customer's cart for a minute.
|
|
11673
|
+
* Heartbeating escapes the tradeoff: correctness stops depending on how long a seat takes.
|
|
11674
|
+
*
|
|
11675
|
+
* Both the acquirer (queue-backend) and the enforcer (order-backend) read this one
|
|
11676
|
+
* constant — if they disagreed on staleness the lock would be worse than none.
|
|
11677
|
+
*/
|
|
11678
|
+
export declare const SEAT_LOCK_TTL_MS = 10000;
|
|
11679
|
+
/**
|
|
11680
|
+
* How often the holder refreshes `seatLock.at` while a seat is in flight.
|
|
11681
|
+
*
|
|
11682
|
+
* Must stay comfortably below SEAT_LOCK_TTL_MS so an ordinary scheduling hiccup or a slow
|
|
11683
|
+
* Mongo write does not look like a dead holder: at 3s against a 10s window the seat
|
|
11684
|
+
* tolerates two consecutive missed beats before becoming stealable.
|
|
11685
|
+
*/
|
|
11686
|
+
export declare const SEAT_LOCK_RENEW_MS = 3000;
|
|
11687
|
+
export declare const FdoOrderSeatLock: z.ZodObject<{
|
|
11688
|
+
/**
|
|
11689
|
+
* Last heartbeat, ISO-8601 UTC. NOT the acquisition time — the holder refreshes this
|
|
11690
|
+
* every SEAT_LOCK_RENEW_MS, and staleness is measured against it.
|
|
11691
|
+
*/
|
|
11692
|
+
at: z.ZodEffects<z.ZodString, string, string>;
|
|
11693
|
+
/** Opaque id of the seat attempt holding the lock; used for logging and release. */
|
|
11694
|
+
by: z.ZodString;
|
|
11695
|
+
}, "strip", z.ZodTypeAny, {
|
|
11696
|
+
at: string;
|
|
11697
|
+
by: string;
|
|
11698
|
+
}, {
|
|
11699
|
+
at: string;
|
|
11700
|
+
by: string;
|
|
11701
|
+
}>;
|
|
11702
|
+
/**
|
|
11703
|
+
* True while `lock` still excludes other writers. A missing lock, or one whose last
|
|
11704
|
+
* heartbeat is older than SEAT_LOCK_TTL_MS, is not live — the latter is a crashed or
|
|
11705
|
+
* abandoned seat and is stealable. A seat that is merely SLOW keeps heartbeating and
|
|
11706
|
+
* stays live no matter how long it runs.
|
|
11707
|
+
*/
|
|
11708
|
+
export declare function isSeatLockLive(lock: {
|
|
11709
|
+
at: string;
|
|
11710
|
+
} | null | undefined, now?: Date): boolean;
|
|
11656
11711
|
export declare const FdoOrder: SerializableZodObject<FdoOrder>;
|
|
11657
11712
|
export type FdoOrderItemIs = z.infer<typeof FdoOrderItemIs>;
|
|
11658
11713
|
export type FdoOrderItemVariant = z.infer<typeof FdoOrderItemVariant>;
|
|
@@ -11687,6 +11742,8 @@ export type FdoOrder = {
|
|
|
11687
11742
|
bill?: FdoBill | null | undefined;
|
|
11688
11743
|
rejectReason?: string | null | undefined;
|
|
11689
11744
|
orderMetadata?: FdoOrderMetadata | null | undefined;
|
|
11745
|
+
seatLock?: FdoOrderSeatLock | null | undefined;
|
|
11690
11746
|
};
|
|
11747
|
+
export type FdoOrderSeatLock = z.infer<typeof FdoOrderSeatLock>;
|
|
11691
11748
|
export type FdoOrderMetadata = z.infer<typeof FdoOrderMetadata>;
|
|
11692
11749
|
export {};
|