@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.
Files changed (53) hide show
  1. package/dist/modules/Cart/types.d.ts +2 -0
  2. package/dist/modules/Cart/utils/cartProduct.js +21 -1
  3. package/dist/modules/Cart/utils/changePrice.js +6 -0
  4. package/dist/modules/Date/index.d.ts +1 -1
  5. package/dist/modules/Date/index.js +16 -8
  6. package/dist/modules/Date/types.d.ts +3 -1
  7. package/dist/modules/Discount/index.d.ts +1 -0
  8. package/dist/modules/Discount/index.js +2 -1
  9. package/dist/modules/ProductList/index.js +8 -9
  10. package/dist/modules/Rules/index.d.ts +3 -1
  11. package/dist/modules/Rules/index.js +110 -27
  12. package/dist/modules/Rules/types.d.ts +6 -0
  13. package/dist/modules/Rules/types.js +8 -0
  14. package/dist/modules/Schedule/index.d.ts +9 -0
  15. package/dist/modules/Schedule/index.js +76 -0
  16. package/dist/modules/Summary/index.d.ts +3 -0
  17. package/dist/modules/Summary/index.js +134 -15
  18. package/dist/modules/Summary/types.d.ts +7 -0
  19. package/dist/modules/Summary/utils.d.ts +104 -1
  20. package/dist/modules/Summary/utils.js +1131 -13
  21. package/dist/solution/BookingByStep/index.d.ts +14 -0
  22. package/dist/solution/BookingByStep/index.js +688 -210
  23. package/dist/solution/BookingByStep/utils/capacity.js +1 -1
  24. package/dist/solution/BookingByStep/utils/resources.js +4 -0
  25. package/dist/solution/ShopDiscount/index.d.ts +2 -0
  26. package/dist/solution/ShopDiscount/index.js +11 -6
  27. package/lib/modules/Cart/types.d.ts +2 -0
  28. package/lib/modules/Cart/utils/cartProduct.js +16 -1
  29. package/lib/modules/Cart/utils/changePrice.js +5 -0
  30. package/lib/modules/Date/index.d.ts +1 -1
  31. package/lib/modules/Date/index.js +7 -1
  32. package/lib/modules/Date/types.d.ts +3 -1
  33. package/lib/modules/Discount/index.d.ts +1 -0
  34. package/lib/modules/Discount/index.js +2 -1
  35. package/lib/modules/ProductList/index.js +0 -7
  36. package/lib/modules/Rules/index.d.ts +3 -1
  37. package/lib/modules/Rules/index.js +43 -5
  38. package/lib/modules/Rules/types.d.ts +6 -0
  39. package/lib/modules/Rules/types.js +11 -2
  40. package/lib/modules/Schedule/index.d.ts +9 -0
  41. package/lib/modules/Schedule/index.js +60 -0
  42. package/lib/modules/Summary/index.d.ts +3 -0
  43. package/lib/modules/Summary/index.js +61 -2
  44. package/lib/modules/Summary/types.d.ts +7 -0
  45. package/lib/modules/Summary/utils.d.ts +104 -1
  46. package/lib/modules/Summary/utils.js +673 -8
  47. package/lib/solution/BookingByStep/index.d.ts +14 -0
  48. package/lib/solution/BookingByStep/index.js +465 -89
  49. package/lib/solution/BookingByStep/utils/capacity.js +1 -1
  50. package/lib/solution/BookingByStep/utils/resources.js +4 -1
  51. package/lib/solution/ShopDiscount/index.d.ts +2 -0
  52. package/lib/solution/ShopDiscount/index.js +11 -5
  53. 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
  * 找到多个资源的公共可用时间段