@pisell/pisellos 3.0.77 → 3.0.79
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/Cart/types.d.ts +2 -0
- package/dist/modules/Cart/utils/cartProduct.js +21 -1
- package/dist/modules/Cart/utils/changePrice.js +6 -0
- package/dist/modules/Date/index.d.ts +1 -1
- package/dist/modules/Date/index.js +16 -8
- package/dist/modules/Date/types.d.ts +3 -1
- package/dist/modules/Discount/index.d.ts +1 -0
- package/dist/modules/Discount/index.js +2 -1
- package/dist/modules/ProductList/index.js +8 -9
- package/dist/modules/Rules/index.d.ts +3 -1
- package/dist/modules/Rules/index.js +110 -27
- package/dist/modules/Rules/types.d.ts +6 -0
- package/dist/modules/Rules/types.js +8 -0
- package/dist/modules/Schedule/index.d.ts +9 -0
- package/dist/modules/Schedule/index.js +76 -0
- package/dist/modules/Summary/index.d.ts +3 -0
- package/dist/modules/Summary/index.js +134 -15
- package/dist/modules/Summary/types.d.ts +7 -0
- package/dist/modules/Summary/utils.d.ts +104 -1
- package/dist/modules/Summary/utils.js +1131 -13
- package/dist/solution/BookingByStep/index.d.ts +14 -0
- package/dist/solution/BookingByStep/index.js +688 -210
- package/dist/solution/BookingByStep/utils/capacity.js +1 -1
- package/dist/solution/BookingByStep/utils/resources.js +4 -0
- package/dist/solution/ShopDiscount/index.d.ts +2 -0
- package/dist/solution/ShopDiscount/index.js +11 -6
- package/lib/modules/Cart/types.d.ts +2 -0
- package/lib/modules/Cart/utils/cartProduct.js +16 -1
- package/lib/modules/Cart/utils/changePrice.js +5 -0
- package/lib/modules/Date/index.d.ts +1 -1
- package/lib/modules/Date/index.js +7 -1
- package/lib/modules/Date/types.d.ts +3 -1
- package/lib/modules/Discount/index.d.ts +1 -0
- package/lib/modules/Discount/index.js +2 -1
- package/lib/modules/ProductList/index.js +0 -7
- package/lib/modules/Rules/index.d.ts +3 -1
- package/lib/modules/Rules/index.js +43 -5
- package/lib/modules/Rules/types.d.ts +6 -0
- package/lib/modules/Rules/types.js +11 -2
- package/lib/modules/Schedule/index.d.ts +9 -0
- package/lib/modules/Schedule/index.js +60 -0
- package/lib/modules/Summary/index.d.ts +3 -0
- package/lib/modules/Summary/index.js +61 -2
- package/lib/modules/Summary/types.d.ts +7 -0
- package/lib/modules/Summary/utils.d.ts +104 -1
- package/lib/modules/Summary/utils.js +673 -8
- package/lib/solution/BookingByStep/index.d.ts +14 -0
- package/lib/solution/BookingByStep/index.js +465 -89
- package/lib/solution/BookingByStep/utils/capacity.js +1 -1
- package/lib/solution/BookingByStep/utils/resources.js +4 -1
- package/lib/solution/ShopDiscount/index.d.ts +2 -0
- package/lib/solution/ShopDiscount/index.js +11 -5
- package/package.json +1 -1
|
@@ -147,6 +147,9 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
147
147
|
taxTitle?: string | undefined;
|
|
148
148
|
totalTaxFee?: string | number | undefined;
|
|
149
149
|
isPriceIncludeTax?: 0 | 1 | undefined;
|
|
150
|
+
surchargeAmount?: string | number | undefined;
|
|
151
|
+
surcharge?: any[] | undefined;
|
|
152
|
+
taxRate?: string | number | undefined;
|
|
150
153
|
deposit?: {
|
|
151
154
|
total?: string | number | undefined;
|
|
152
155
|
policies?: import("../../modules/Summary/types").IProtocol[] | undefined;
|
|
@@ -299,6 +302,16 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
299
302
|
errorList: any[];
|
|
300
303
|
};
|
|
301
304
|
getTimeSlotByAllResources(resources_code: string): any[];
|
|
305
|
+
getTimeSlotByAllResourcesForDate({ resources_code, startDate, endDate }: {
|
|
306
|
+
resources_code: string;
|
|
307
|
+
startDate: string;
|
|
308
|
+
endDate: string;
|
|
309
|
+
}): Promise<{
|
|
310
|
+
date: string;
|
|
311
|
+
status: string;
|
|
312
|
+
week: string;
|
|
313
|
+
weekNum: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
314
|
+
}[]>;
|
|
302
315
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
303
316
|
private getScheduleDataByIds;
|
|
304
317
|
openProductDetail(productId: number): Promise<void>;
|
|
@@ -316,6 +329,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
316
329
|
count: number;
|
|
317
330
|
left: number;
|
|
318
331
|
summaryCount: number;
|
|
332
|
+
status: "lots_of_space" | "filling_up_fast" | "sold_out";
|
|
319
333
|
}[];
|
|
320
334
|
/**
|
|
321
335
|
* 找到多个资源的公共可用时间段
|