@pisell/pisellos 0.0.503 → 0.0.505
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/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/ScanOrder/index.d.ts +12 -3
- package/dist/solution/ScanOrder/index.js +224 -132
- package/dist/solution/ScanOrder/types.d.ts +26 -22
- 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/lib/model/strategy/adapter/promotion/index.js +0 -49
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/ScanOrder/index.d.ts +12 -3
- package/lib/solution/ScanOrder/index.js +166 -87
- package/lib/solution/ScanOrder/types.d.ts +26 -22
- package/lib/solution/ScanOrder/utils.d.ts +13 -1
- package/lib/solution/ScanOrder/utils.js +37 -0
- package/package.json +1 -1
|
@@ -311,7 +311,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
311
311
|
date: string;
|
|
312
312
|
status: string;
|
|
313
313
|
week: string;
|
|
314
|
-
weekNum: 0 | 1 |
|
|
314
|
+
weekNum: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
315
315
|
}[]>;
|
|
316
316
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
317
317
|
private getScheduleDataByIds;
|
|
@@ -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(): {
|
|
@@ -85,7 +85,8 @@ export declare class ScanOrderImpl extends BaseModule implements Module {
|
|
|
85
85
|
private refreshCartValidationPassed;
|
|
86
86
|
setItemRuleRuntimeConfig(config?: ScanOrderItemRuleRuntimeConfig): Promise<void>;
|
|
87
87
|
private normalizeResourceState;
|
|
88
|
-
private
|
|
88
|
+
private resolveResourceSelectType;
|
|
89
|
+
private fetchResourceOccupyDetailByResourceId;
|
|
89
90
|
checkResourceAvailable(resourceId: string, hasOrderId: boolean): Promise<ScanOrderAvailabilityInfo>;
|
|
90
91
|
getAdditionalOrderInfo(): Promise<{
|
|
91
92
|
orderId: string;
|
|
@@ -99,6 +100,14 @@ export declare class ScanOrderImpl extends BaseModule implements Module {
|
|
|
99
100
|
setOtherParams(params: Record<string, any>, { cover }?: {
|
|
100
101
|
cover?: boolean;
|
|
101
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;
|
|
102
111
|
setEntryPaxNumber(number: number): Promise<void>;
|
|
103
112
|
getEntryPaxNumber(): number | null;
|
|
104
113
|
getFulfillmentModes(): {
|