@pisell/pisellos 0.10.64 → 0.10.66

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 (42) hide show
  1. package/dist/model/strategy/adapter/promotion/index.js +0 -9
  2. package/dist/modules/OpenData/contactInfo.d.ts +20 -0
  3. package/dist/modules/OpenData/contactInfo.js +70 -0
  4. package/dist/modules/OpenData/index.d.ts +1 -0
  5. package/dist/modules/OpenData/index.js +1 -0
  6. package/dist/modules/OpenData/types.d.ts +9 -0
  7. package/dist/modules/Order/index.d.ts +6 -1
  8. package/dist/modules/Order/index.js +564 -475
  9. package/dist/modules/Order/types.d.ts +2 -0
  10. package/dist/modules/Order/utils/discountProductLineIdentity.js +2 -2
  11. package/dist/modules/Order/utils/productVoucherGroups.d.ts +15 -0
  12. package/dist/modules/Order/utils/productVoucherGroups.js +115 -0
  13. package/dist/modules/Product/index.d.ts +1 -1
  14. package/dist/modules/Rules/index.d.ts +2 -0
  15. package/dist/modules/Rules/index.js +29 -21
  16. package/dist/solution/BaseSales/index.d.ts +15 -1
  17. package/dist/solution/BaseSales/index.js +1018 -884
  18. package/dist/solution/BookingByStep/index.d.ts +2 -2
  19. package/dist/solution/BookingTicket/index.d.ts +4 -1
  20. package/dist/solution/BookingTicket/index.js +485 -433
  21. package/dist/solution/BookingTicket/types.d.ts +2 -0
  22. package/lib/modules/OpenData/contactInfo.d.ts +20 -0
  23. package/lib/modules/OpenData/contactInfo.js +56 -0
  24. package/lib/modules/OpenData/index.d.ts +1 -0
  25. package/lib/modules/OpenData/index.js +12 -0
  26. package/lib/modules/OpenData/types.d.ts +9 -0
  27. package/lib/modules/Order/index.d.ts +6 -1
  28. package/lib/modules/Order/index.js +49 -6
  29. package/lib/modules/Order/types.d.ts +2 -0
  30. package/lib/modules/Order/utils/discountProductLineIdentity.js +1 -1
  31. package/lib/modules/Order/utils/productVoucherGroups.d.ts +15 -0
  32. package/lib/modules/Order/utils/productVoucherGroups.js +64 -0
  33. package/lib/modules/Product/index.d.ts +1 -1
  34. package/lib/modules/Rules/index.d.ts +2 -0
  35. package/lib/modules/Rules/index.js +6 -0
  36. package/lib/solution/BaseSales/index.d.ts +15 -1
  37. package/lib/solution/BaseSales/index.js +40 -2
  38. package/lib/solution/BookingByStep/index.d.ts +2 -2
  39. package/lib/solution/BookingTicket/index.d.ts +4 -1
  40. package/lib/solution/BookingTicket/index.js +27 -2
  41. package/lib/solution/BookingTicket/types.d.ts +2 -0
  42. package/package.json +1 -1
@@ -326,7 +326,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
326
326
  date: string;
327
327
  status: string;
328
328
  week: string;
329
- weekNum: 0 | 2 | 1 | 3 | 4 | 5 | 6;
329
+ weekNum: 0 | 2 | 1 | 6 | 4 | 5 | 3;
330
330
  }[]>;
331
331
  submitTimeSlot(timeSlots: TimeSliceItem): void;
332
332
  private getScheduleDataByIds;
@@ -373,7 +373,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
373
373
  };
374
374
  setOtherData(key: string, value: any): void;
375
375
  getOtherData(key: string): any;
376
- getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
376
+ getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
377
377
  /**
378
378
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
379
379
  *
@@ -58,6 +58,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
58
58
  private getIdGeneratorPlugin;
59
59
  protected loadOpenDataConfig(): Promise<OpenDataConfig | null>;
60
60
  getOpenData(): Promise<OpenDataConfig | null>;
61
+ protected loadContactInfoOpenData(): Promise<OpenDataConfig | null>;
61
62
  getInvoiceLayoutConfig(): Promise<InvoiceLayoutConfig>;
62
63
  getInvoiceTemplateSettings(): Promise<InvoiceTemplateSettings>;
63
64
  protected isInvoiceOpenDataCacheCurrent(): boolean;
@@ -286,7 +287,9 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
286
287
  /**
287
288
  * 清空下单客户(协议字段 + snapshot)。
288
289
  */
289
- clearOrderCustomer(): void;
290
+ clearOrderCustomer(options?: {
291
+ preserveContactInfo?: boolean;
292
+ }): void;
290
293
  /**
291
294
  * 重置 tempOrder,并同步清空下单客户运行态。
292
295
  *