@pisell/pisellos 2.3.197 → 2.3.199
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/modules/Date/index.d.ts +1 -1
- package/dist/modules/Date/index.js +60 -14
- package/dist/modules/Date/types.d.ts +5 -0
- package/dist/modules/Schedule/index.d.ts +7 -1
- package/dist/modules/Schedule/index.js +155 -39
- package/dist/modules/Schedule/types.d.ts +2 -0
- package/dist/modules/bookingReadValidation.d.ts +6 -0
- package/dist/modules/bookingReadValidation.js +72 -0
- package/dist/plugins/request.d.ts +2 -0
- package/dist/shared/receipt/small-ticket.d.ts +1 -0
- package/dist/shared/receipt/small-ticket.js +4 -1
- package/dist/solution/BookingByStep/index.d.ts +17 -3
- package/dist/solution/BookingByStep/index.js +666 -356
- package/dist/solution/BookingTicket/index.d.ts +14 -2
- package/dist/solution/OrderInvoicePreview/index.js +4 -3
- package/lib/modules/Date/index.d.ts +1 -1
- package/lib/modules/Date/index.js +28 -5
- package/lib/modules/Date/types.d.ts +5 -0
- package/lib/modules/Schedule/index.d.ts +7 -1
- package/lib/modules/Schedule/index.js +68 -4
- package/lib/modules/Schedule/types.d.ts +2 -0
- package/lib/modules/bookingReadValidation.d.ts +6 -0
- package/lib/modules/bookingReadValidation.js +56 -0
- package/lib/plugins/request.d.ts +2 -0
- package/lib/shared/receipt/small-ticket.d.ts +1 -0
- package/lib/shared/receipt/small-ticket.js +4 -1
- package/lib/solution/BookingByStep/index.d.ts +17 -3
- package/lib/solution/BookingByStep/index.js +212 -12
- package/lib/solution/BookingTicket/index.d.ts +14 -2
- package/lib/solution/OrderInvoicePreview/index.js +1 -0
- package/package.json +1 -1
|
@@ -20,9 +20,20 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
20
20
|
private shopStore;
|
|
21
21
|
private store;
|
|
22
22
|
private otherParams;
|
|
23
|
+
private scheduleRuntimeParams;
|
|
23
24
|
private cacheId;
|
|
24
25
|
private otherData;
|
|
25
26
|
private platform;
|
|
27
|
+
private productDetailGeneration;
|
|
28
|
+
private sessionAvailabilityRequestVersion;
|
|
29
|
+
private lifecycleGeneration;
|
|
30
|
+
private disposed;
|
|
31
|
+
private resourcePreparation?;
|
|
32
|
+
private staleSelection;
|
|
33
|
+
private resourceSelectionKey;
|
|
34
|
+
/** Semantic selection token for async UI transitions. */
|
|
35
|
+
getBookingSelectionKey(): string;
|
|
36
|
+
private refreshCurrentProductSchedule;
|
|
26
37
|
initialize(core: PisellCore, options: any): Promise<void>;
|
|
27
38
|
initStep(stepList: (keyof BookingByStepState)[]): void;
|
|
28
39
|
getCurrentStep(): {
|
|
@@ -108,7 +119,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
108
119
|
* }
|
|
109
120
|
* @memberof BookingByStepImpl
|
|
110
121
|
*/
|
|
111
|
-
loadScheduleAvailableDate({ startDate, endDate, custom_page_id, channel, }: LoadScheduleAvailableDateParams): Promise<ITime[]>;
|
|
122
|
+
loadScheduleAvailableDate({ startDate, endDate, custom_page_id, channel, assertCurrent, }: LoadScheduleAvailableDateParams): Promise<ITime[]>;
|
|
112
123
|
addAccount(account: Account | IHolder, extra?: {
|
|
113
124
|
type: 'account' | 'holder';
|
|
114
125
|
customerId: number;
|
|
@@ -152,7 +163,10 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
152
163
|
startDate?: string;
|
|
153
164
|
endDate?: string;
|
|
154
165
|
type?: 'month' | 'day';
|
|
166
|
+
assertCurrent?: () => void;
|
|
155
167
|
}): Promise<ITime[]>;
|
|
168
|
+
/** Prepare the exact cart/date selection before synchronous resource checks. */
|
|
169
|
+
prepareResourcesForCurrentSelection(): Promise<void>;
|
|
156
170
|
/**
|
|
157
171
|
* 获取购物车汇总信息
|
|
158
172
|
*/
|
|
@@ -328,7 +342,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
328
342
|
date: string;
|
|
329
343
|
status: string;
|
|
330
344
|
week: string;
|
|
331
|
-
weekNum: 0 |
|
|
345
|
+
weekNum: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
332
346
|
}[]>;
|
|
333
347
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
334
348
|
private getScheduleDataByIds;
|
|
@@ -375,7 +389,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
375
389
|
};
|
|
376
390
|
setOtherData(key: string, value: any): void;
|
|
377
391
|
getOtherData(key: string): any;
|
|
378
|
-
getProductTypeById(id: number): Promise<"
|
|
392
|
+
getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
|
|
379
393
|
/**
|
|
380
394
|
* 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
|
|
381
395
|
*
|