@pisell/pisellos 2.2.230 → 2.2.232

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 (34) hide show
  1. package/dist/model/strategy/adapter/promotion/index.js +9 -0
  2. package/dist/modules/Order/index.js +44 -29
  3. package/dist/modules/Order/types.d.ts +14 -2
  4. package/dist/modules/Order/types.js +8 -1
  5. package/dist/modules/ProductList/index.d.ts +9 -12
  6. package/dist/modules/ProductList/index.js +122 -59
  7. package/dist/modules/ProductList/types.d.ts +14 -0
  8. package/dist/server/index.d.ts +21 -0
  9. package/dist/server/index.js +154 -34
  10. package/dist/server/utils/small-ticket.js +113 -29
  11. package/dist/solution/BookingByStep/index.d.ts +1 -1
  12. package/dist/solution/BookingTicket/index.d.ts +9 -1
  13. package/dist/solution/BookingTicket/index.js +198 -158
  14. package/dist/solution/BookingTicket/types.d.ts +4 -0
  15. package/dist/solution/BookingTicket/utils/cartView.js +20 -6
  16. package/dist/solution/BookingTicket/utils/resolveBestAddTimePlan.d.ts +189 -0
  17. package/dist/solution/BookingTicket/utils/resolveBestAddTimePlan.js +429 -0
  18. package/lib/model/strategy/adapter/promotion/index.js +0 -49
  19. package/lib/modules/Order/index.js +18 -5
  20. package/lib/modules/Order/types.d.ts +14 -2
  21. package/lib/modules/ProductList/index.d.ts +9 -12
  22. package/lib/modules/ProductList/index.js +32 -4
  23. package/lib/modules/ProductList/types.d.ts +14 -0
  24. package/lib/server/index.d.ts +21 -0
  25. package/lib/server/index.js +107 -9
  26. package/lib/server/utils/small-ticket.js +78 -1
  27. package/lib/solution/BookingByStep/index.d.ts +1 -1
  28. package/lib/solution/BookingTicket/index.d.ts +9 -1
  29. package/lib/solution/BookingTicket/index.js +20 -1
  30. package/lib/solution/BookingTicket/types.d.ts +4 -0
  31. package/lib/solution/BookingTicket/utils/cartView.js +14 -7
  32. package/lib/solution/BookingTicket/utils/resolveBestAddTimePlan.d.ts +189 -0
  33. package/lib/solution/BookingTicket/utils/resolveBestAddTimePlan.js +241 -0
  34. package/package.json +1 -1
@@ -121,6 +121,13 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
121
121
  callback?: (result: any) => void;
122
122
  subscriberId?: string;
123
123
  }): Promise<any>;
124
+ /**
125
+ * 获取加时商品列表。
126
+ *
127
+ * @example
128
+ * const products = await bookingTicket.getAddTimeProducts({ schedule_date: '2026-06-16' });
129
+ */
130
+ getAddTimeProducts(params?: ILoadProductsParams): Promise<ProductData[]>;
124
131
  /**
125
132
  * 只读查询单商品详情:走 ProductList 报价查询,但不写 productCatalog、
126
133
  * 不 emit onProductsLoaded、不修改 BookingDate。
@@ -312,7 +319,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
312
319
  * 获取当前的客户搜索条件
313
320
  * @returns 当前搜索条件
314
321
  */
315
- getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
322
+ getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
316
323
  /**
317
324
  * 获取客户列表状态(包含滚动加载相关状态)
318
325
  * @returns 客户状态
@@ -504,6 +511,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
504
511
  * ```
505
512
  */
506
513
  handleGlobalScanCode(code: string, bridge?: GlobalScanHostBridge): Promise<GlobalScanHandleResult>;
514
+ resolveBestAddTimePlan(addTimeProducts: any[], targetMinutes: number): any;
507
515
  /**
508
516
  * 销毁模块:先调用父类(销毁所有 store 内子模块 + emit destroy + super.destroy()),
509
517
  * 再清理 BookingTicket 自有资源(scan 监听 + scan 内存缓存)。