@pisell/pisellos 2.1.128 → 2.1.130
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/model/strategy/adapter/promotion/index.js +0 -9
- package/dist/modules/Order/index.d.ts +4 -0
- package/dist/modules/Order/index.js +18 -1
- package/dist/modules/Order/types.d.ts +9 -1
- package/dist/modules/Order/utils.d.ts +7 -0
- package/dist/modules/Order/utils.js +27 -11
- package/dist/solution/ScanOrder/index.d.ts +27 -3
- package/dist/solution/ScanOrder/index.js +865 -481
- package/dist/solution/ScanOrder/types.d.ts +34 -24
- package/dist/solution/ScanOrder/types.js +5 -1
- package/dist/solution/ScanOrder/utils.d.ts +13 -1
- package/dist/solution/ScanOrder/utils.js +45 -6
- package/dist/solution/VenueBooking/index.d.ts +28 -5
- package/dist/solution/VenueBooking/index.js +463 -227
- package/dist/solution/VenueBooking/types.d.ts +23 -0
- package/dist/solution/VenueBooking/utils/dateSummary.d.ts +1 -1
- package/dist/solution/VenueBooking/utils/dateSummary.js +1 -1
- package/dist/solution/VenueBooking/utils/resource.d.ts +11 -1
- package/dist/solution/VenueBooking/utils/resource.js +57 -21
- package/dist/solution/VenueBooking/utils/slotMerge.d.ts +5 -0
- package/dist/solution/VenueBooking/utils/slotMerge.js +33 -12
- package/dist/solution/VenueBooking/utils/timeSlot.d.ts +1 -1
- package/dist/solution/VenueBooking/utils/timeSlot.js +259 -62
- package/lib/model/strategy/adapter/promotion/index.js +49 -0
- package/lib/modules/Order/index.d.ts +4 -0
- package/lib/modules/Order/index.js +14 -1
- package/lib/modules/Order/types.d.ts +9 -1
- package/lib/modules/Order/utils.d.ts +7 -0
- package/lib/modules/Order/utils.js +22 -12
- package/lib/solution/ScanOrder/index.d.ts +27 -3
- package/lib/solution/ScanOrder/index.js +409 -114
- package/lib/solution/ScanOrder/types.d.ts +34 -24
- package/lib/solution/ScanOrder/utils.d.ts +13 -1
- package/lib/solution/ScanOrder/utils.js +37 -0
- package/lib/solution/VenueBooking/index.d.ts +28 -5
- package/lib/solution/VenueBooking/index.js +203 -58
- package/lib/solution/VenueBooking/types.d.ts +23 -0
- package/lib/solution/VenueBooking/utils/dateSummary.d.ts +1 -1
- package/lib/solution/VenueBooking/utils/dateSummary.js +1 -1
- package/lib/solution/VenueBooking/utils/resource.d.ts +11 -1
- package/lib/solution/VenueBooking/utils/resource.js +15 -4
- package/lib/solution/VenueBooking/utils/slotMerge.d.ts +5 -0
- package/lib/solution/VenueBooking/utils/slotMerge.js +29 -12
- package/lib/solution/VenueBooking/utils/timeSlot.d.ts +1 -1
- package/lib/solution/VenueBooking/utils/timeSlot.js +182 -43
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Module, ModuleOptions, PisellCore } from '../../types';
|
|
2
2
|
import { BaseModule } from '../../modules/BaseModule';
|
|
3
|
-
import { ScanOrderAddLogParams, ScanOrderAvailabilityInfo, ScanOrderOrderProduct, ScanOrderOrderProductIdentity
|
|
3
|
+
import { ScanOrderAddLogParams, ScanOrderAvailabilityInfo, ScanOrderOrderProduct, ScanOrderOrderProductIdentity } from './types';
|
|
4
4
|
import { type CartItemSummary, type PaxInfo, type QuantityCheckResult, type QuantityLimitResult } from '../../model/strategy/adapter/itemRule';
|
|
5
5
|
import type { StrategyConfig } from '../../model/strategy/type';
|
|
6
6
|
export * from './types';
|
|
@@ -43,7 +43,7 @@ export declare class ScanOrderImpl extends BaseModule implements Module {
|
|
|
43
43
|
refresh(): Promise<void>;
|
|
44
44
|
getStatus(): import("./types").ScanOrderStatus;
|
|
45
45
|
getEntryContext(): import("./types").ScanOrderEntryContext | null;
|
|
46
|
-
getConfig():
|
|
46
|
+
getConfig(): Record<string, any>;
|
|
47
47
|
getItemRuleQuantityLimits(): QuantityLimitResult[];
|
|
48
48
|
getCartValidationPassed(): boolean | null;
|
|
49
49
|
getCartValidation(): {
|
|
@@ -52,10 +52,17 @@ export declare class ScanOrderImpl extends BaseModule implements Module {
|
|
|
52
52
|
};
|
|
53
53
|
getTempOrder(): import("./types").ScanOrderTempOrder | null;
|
|
54
54
|
updateTempOrderNote(note: string): string;
|
|
55
|
+
setPickupReferenceMode(mode: 'counter_pickup' | 'table_service'): {
|
|
56
|
+
service_type: 'dine_in';
|
|
57
|
+
pickup_reference_mode: 'counter_pickup' | 'table_service';
|
|
58
|
+
};
|
|
59
|
+
setPickupRef(buzzer: string): string;
|
|
55
60
|
private ensureTempOrder;
|
|
56
61
|
addNewOrder(): Promise<import("./types").ScanOrderTempOrder>;
|
|
62
|
+
restoreOrder(): Promise<import("./types").ScanOrderTempOrder>;
|
|
57
63
|
getOrderProducts(): ScanOrderOrderProduct[];
|
|
58
64
|
getSummary(): Promise<import("./types").ScanOrderSummary>;
|
|
65
|
+
private buildSubmitPayloadEnhancer;
|
|
59
66
|
submitScanOrder<T = any>(): Promise<T>;
|
|
60
67
|
addProductToOrder(product: Partial<ScanOrderOrderProduct> & ScanOrderOrderProductIdentity): Promise<ScanOrderOrderProduct[]>;
|
|
61
68
|
updateProductInOrder(params: {
|
|
@@ -78,7 +85,8 @@ export declare class ScanOrderImpl extends BaseModule implements Module {
|
|
|
78
85
|
private refreshCartValidationPassed;
|
|
79
86
|
setItemRuleRuntimeConfig(config?: ScanOrderItemRuleRuntimeConfig): Promise<void>;
|
|
80
87
|
private normalizeResourceState;
|
|
81
|
-
private
|
|
88
|
+
private resolveResourceSelectType;
|
|
89
|
+
private fetchResourceOccupyDetailByResourceId;
|
|
82
90
|
checkResourceAvailable(resourceId: string, hasOrderId: boolean): Promise<ScanOrderAvailabilityInfo>;
|
|
83
91
|
getAdditionalOrderInfo(): Promise<{
|
|
84
92
|
orderId: string;
|
|
@@ -92,6 +100,22 @@ export declare class ScanOrderImpl extends BaseModule implements Module {
|
|
|
92
100
|
setOtherParams(params: Record<string, any>, { cover }?: {
|
|
93
101
|
cover?: boolean;
|
|
94
102
|
}): Promise<void>;
|
|
103
|
+
private static readonly UI_STATE_KEY_PREFIX;
|
|
104
|
+
private getUIStateBucketKey;
|
|
105
|
+
private readUIStateBucket;
|
|
106
|
+
private writeUIStateBucket;
|
|
107
|
+
setUIState(key: string, value: any): void;
|
|
108
|
+
getUIState<T = any>(key: string): T | undefined;
|
|
109
|
+
deleteUIState(key: string): void;
|
|
110
|
+
clearUIState(): void;
|
|
95
111
|
setEntryPaxNumber(number: number): Promise<void>;
|
|
96
112
|
getEntryPaxNumber(): number | null;
|
|
113
|
+
getFulfillmentModes(): {
|
|
114
|
+
enablePickup: boolean;
|
|
115
|
+
enableTableService: boolean;
|
|
116
|
+
};
|
|
117
|
+
checkManualPickupRef(): {
|
|
118
|
+
enabled: boolean;
|
|
119
|
+
manualInputType?: string;
|
|
120
|
+
};
|
|
97
121
|
}
|