@pisell/pisellos 0.0.549 → 0.0.552

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 (38) hide show
  1. package/dist/model/strategy/adapter/promotion/index.js +0 -9
  2. package/dist/modules/Holder/index.d.ts +7 -1
  3. package/dist/modules/Holder/index.js +153 -14
  4. package/dist/modules/Holder/types.d.ts +9 -1
  5. package/dist/modules/Holder/utils.d.ts +7 -3
  6. package/dist/modules/Holder/utils.js +16 -2
  7. package/dist/modules/Order/index.d.ts +2 -1
  8. package/dist/modules/Order/index.js +18 -1
  9. package/dist/modules/Order/types.d.ts +2 -0
  10. package/dist/modules/Order/utils.d.ts +10 -0
  11. package/dist/modules/Order/utils.js +35 -3
  12. package/dist/plugins/window.d.ts +1 -0
  13. package/dist/solution/BookingByStep/index.d.ts +7 -1
  14. package/dist/solution/BookingByStep/index.js +246 -204
  15. package/dist/solution/ScanOrder/types.d.ts +1 -0
  16. package/dist/solution/VenueBooking/index.d.ts +20 -0
  17. package/dist/solution/VenueBooking/index.js +973 -730
  18. package/dist/solution/VenueBooking/types.d.ts +2 -0
  19. package/dist/types/index.d.ts +1 -0
  20. package/lib/modules/Holder/index.d.ts +7 -1
  21. package/lib/modules/Holder/index.js +75 -3
  22. package/lib/modules/Holder/types.d.ts +9 -1
  23. package/lib/modules/Holder/utils.d.ts +7 -3
  24. package/lib/modules/Holder/utils.js +18 -4
  25. package/lib/modules/Order/index.d.ts +2 -1
  26. package/lib/modules/Order/index.js +14 -0
  27. package/lib/modules/Order/types.d.ts +2 -0
  28. package/lib/modules/Order/utils.d.ts +10 -0
  29. package/lib/modules/Order/utils.js +36 -5
  30. package/lib/plugins/window.d.ts +1 -0
  31. package/lib/solution/BookingByStep/index.d.ts +7 -1
  32. package/lib/solution/BookingByStep/index.js +17 -1
  33. package/lib/solution/ScanOrder/types.d.ts +1 -0
  34. package/lib/solution/VenueBooking/index.d.ts +20 -0
  35. package/lib/solution/VenueBooking/index.js +139 -10
  36. package/lib/solution/VenueBooking/types.d.ts +2 -0
  37. package/lib/types/index.d.ts +1 -0
  38. package/package.json +2 -2
@@ -34,6 +34,7 @@ export interface ScanOrderOrderProductIdentity {
34
34
  /** 参与合并/匹配;与 remove 通配语义见 isSkuOnlyDeleteIdentity */
35
35
  product_option_item?: any[];
36
36
  product_bundle?: any[];
37
+ shop_id?: number | string;
37
38
  }
38
39
  export interface ScanOrderOrderProduct extends ScanOrderOrderProductIdentity {
39
40
  order_detail_id: number | null;
@@ -7,6 +7,7 @@ import type { OpenDataAvailabilityResult } from '../../modules/OpenData';
7
7
  import type { ProductData } from '../../modules/Product/types';
8
8
  import { type CartItemSummary, type PaxInfo, type QuantityCheckResult, type QuantityLimitResult } from '../../model/strategy/adapter/itemRule';
9
9
  import type { StrategyConfig } from '../../model/strategy/type';
10
+ import type { IAppendFormRecordParams, IRefreshAllFormRecordsParams } from '../../modules/Holder/types';
10
11
  export * from './types';
11
12
  interface VenueBookingItemRuleRuntimeConfig {
12
13
  strategyConfigs?: StrategyConfig[];
@@ -52,6 +53,12 @@ export declare class VenueBookingImpl extends BaseModule implements Module {
52
53
  constructor(name?: string, version?: string);
53
54
  private normalizeCustomerId;
54
55
  private resolveCustomerIdFromLoginPayload;
56
+ private resolveHolderCustomerId;
57
+ /**
58
+ * 按商品 holder_config 预加载表单数据到 holderMap。
59
+ * appointment_booking 在加购时触发;venueBooking 在商品加载后预加载,避免 getHolderFormMap 为空。
60
+ */
61
+ private preloadHolderForms;
55
62
  private clearLoginEffectListeners;
56
63
  private registerLoginEffect;
57
64
  private registerCustomerLoginListeners;
@@ -193,6 +200,19 @@ export declare class VenueBookingImpl extends BaseModule implements Module {
193
200
  setUIState(key: string, value: any): void;
194
201
  getUIState<T = any>(key: string): T | undefined;
195
202
  deleteUIState(key: string): void;
203
+ setBookingHolder(bookingUid: string, holder: any): void;
204
+ /**
205
+ * 获取 holder 表单 map
206
+ */
207
+ getHolderFormMap(): import("../../modules/Holder").HolderFormMap;
208
+ /**
209
+ * UI 层触发:按当前 holderMap 批量刷新所有表单的 records
210
+ */
211
+ refreshAllHolderFormRecords(params?: Pick<IRefreshAllFormRecordsParams, 'customer_id' | 'useCache' | 'recordsUrl' | 'num' | 'skip'>): Promise<import("../../modules/Holder").HolderFormMap>;
212
+ /**
213
+ * 添加表单记录
214
+ */
215
+ appendFormRecord(params: IAppendFormRecordParams): import("../../modules/Holder").IFormRecord;
196
216
  checkOpenDataAvailability(): Promise<OpenDataAvailabilityResult>;
197
217
  setOtherParams(params: Record<string, any>, { cover }?: {
198
218
  cover?: boolean;