@pisell/pisellos 2.3.44 → 2.3.45

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 (146) hide show
  1. package/dist/model/strategy/adapter/promotion/index.js +0 -9
  2. package/dist/modules/Discount/index.d.ts +0 -1
  3. package/dist/modules/Discount/index.js +11 -40
  4. package/dist/modules/Discount/types.d.ts +0 -1
  5. package/dist/modules/OpenData/index.js +2 -2
  6. package/dist/modules/Order/index.d.ts +2 -4
  7. package/dist/modules/Order/index.js +25 -54
  8. package/dist/modules/Order/types.d.ts +0 -9
  9. package/dist/modules/Order/utils.d.ts +0 -10
  10. package/dist/modules/Order/utils.js +3 -35
  11. package/dist/modules/Product/types.d.ts +0 -1
  12. package/dist/modules/ProductList/index.js +14 -33
  13. package/dist/modules/Quotation/index.d.ts +1 -1
  14. package/dist/modules/Quotation/index.js +2 -2
  15. package/dist/modules/Rules/index.js +13 -47
  16. package/dist/modules/SalesSummary/index.js +13 -12
  17. package/dist/modules/ScanOrderLogger/index.d.ts +0 -2
  18. package/dist/modules/ScanOrderLogger/index.js +2 -15
  19. package/dist/modules/ScanOrderLogger/providers/feishu.js +27 -45
  20. package/dist/modules/ScanOrderLogger/types.d.ts +0 -1
  21. package/dist/modules/Schedule/index.d.ts +1 -3
  22. package/dist/modules/Schedule/index.js +16 -21
  23. package/dist/modules/Summary/utils.js +13 -38
  24. package/dist/modules/index.d.ts +0 -2
  25. package/dist/modules/index.js +1 -3
  26. package/dist/plugins/window.d.ts +0 -1
  27. package/dist/server/index.d.ts +0 -14
  28. package/dist/server/index.js +657 -772
  29. package/dist/solution/BaseSales/index.d.ts +0 -7
  30. package/dist/solution/BaseSales/index.js +42 -64
  31. package/dist/solution/BookingByStep/index.d.ts +1 -16
  32. package/dist/solution/BookingByStep/index.js +215 -294
  33. package/dist/solution/BookingByStep/types.d.ts +1 -2
  34. package/dist/solution/BookingByStep/types.js +1 -3
  35. package/dist/solution/BookingByStep/utils/capacity.js +1 -17
  36. package/dist/solution/BookingByStep/utils/timeslots.d.ts +1 -3
  37. package/dist/solution/BookingByStep/utils/timeslots.js +12 -19
  38. package/dist/solution/BookingTicket/index.d.ts +2 -14
  39. package/dist/solution/BookingTicket/index.js +2 -2
  40. package/dist/solution/BookingTicket/utils/scan/handleScan.d.ts +1 -3
  41. package/dist/solution/BookingTicket/utils/scan/handleScan.js +2 -10
  42. package/dist/solution/ScanOrder/index.d.ts +14 -26
  43. package/dist/solution/ScanOrder/index.js +739 -1142
  44. package/dist/solution/ScanOrder/types.d.ts +1 -21
  45. package/dist/solution/ScanOrder/utils.d.ts +0 -8
  46. package/dist/solution/ScanOrder/utils.js +25 -66
  47. package/dist/solution/ShopDiscount/index.d.ts +0 -1
  48. package/dist/solution/ShopDiscount/index.js +87 -125
  49. package/dist/solution/VenueBooking/index.d.ts +11 -39
  50. package/dist/solution/VenueBooking/index.js +841 -1167
  51. package/dist/solution/VenueBooking/types.d.ts +0 -3
  52. package/dist/solution/VenueBooking/utils/resource.js +0 -1
  53. package/dist/solution/VenueBooking/utils/slotMerge.d.ts +4 -4
  54. package/dist/solution/VenueBooking/utils/slotMerge.js +5 -10
  55. package/dist/solution/index.d.ts +0 -1
  56. package/dist/solution/index.js +1 -2
  57. package/dist/types/index.d.ts +0 -1
  58. package/lib/modules/Discount/index.d.ts +0 -1
  59. package/lib/modules/Discount/index.js +0 -9
  60. package/lib/modules/Discount/types.d.ts +0 -1
  61. package/lib/modules/OpenData/index.js +1 -1
  62. package/lib/modules/Order/index.d.ts +2 -4
  63. package/lib/modules/Order/index.js +10 -26
  64. package/lib/modules/Order/types.d.ts +0 -9
  65. package/lib/modules/Order/utils.d.ts +0 -10
  66. package/lib/modules/Order/utils.js +5 -36
  67. package/lib/modules/Product/types.d.ts +0 -1
  68. package/lib/modules/ProductList/index.js +31 -40
  69. package/lib/modules/Quotation/index.d.ts +1 -1
  70. package/lib/modules/Quotation/index.js +2 -2
  71. package/lib/modules/Rules/index.js +16 -33
  72. package/lib/modules/SalesSummary/index.js +7 -6
  73. package/lib/modules/ScanOrderLogger/index.d.ts +0 -2
  74. package/lib/modules/ScanOrderLogger/index.js +1 -13
  75. package/lib/modules/ScanOrderLogger/providers/feishu.js +6 -15
  76. package/lib/modules/ScanOrderLogger/types.d.ts +0 -1
  77. package/lib/modules/Schedule/index.d.ts +1 -3
  78. package/lib/modules/Schedule/index.js +8 -10
  79. package/lib/modules/Summary/utils.js +1 -21
  80. package/lib/modules/index.d.ts +0 -2
  81. package/lib/modules/index.js +1 -5
  82. package/lib/plugins/window.d.ts +0 -1
  83. package/lib/server/index.d.ts +0 -14
  84. package/lib/server/index.js +5 -65
  85. package/lib/solution/BaseSales/index.d.ts +0 -7
  86. package/lib/solution/BaseSales/index.js +8 -24
  87. package/lib/solution/BookingByStep/index.d.ts +1 -16
  88. package/lib/solution/BookingByStep/index.js +18 -60
  89. package/lib/solution/BookingByStep/types.d.ts +1 -2
  90. package/lib/solution/BookingByStep/types.js +0 -5
  91. package/lib/solution/BookingByStep/utils/capacity.js +1 -20
  92. package/lib/solution/BookingByStep/utils/timeslots.d.ts +1 -3
  93. package/lib/solution/BookingByStep/utils/timeslots.js +11 -19
  94. package/lib/solution/BookingTicket/index.d.ts +2 -14
  95. package/lib/solution/BookingTicket/index.js +2 -10
  96. package/lib/solution/BookingTicket/utils/scan/handleScan.d.ts +1 -3
  97. package/lib/solution/BookingTicket/utils/scan/handleScan.js +2 -2
  98. package/lib/solution/ScanOrder/index.d.ts +14 -26
  99. package/lib/solution/ScanOrder/index.js +182 -449
  100. package/lib/solution/ScanOrder/types.d.ts +1 -21
  101. package/lib/solution/ScanOrder/utils.d.ts +0 -8
  102. package/lib/solution/ScanOrder/utils.js +0 -31
  103. package/lib/solution/ShopDiscount/index.d.ts +0 -1
  104. package/lib/solution/ShopDiscount/index.js +0 -14
  105. package/lib/solution/VenueBooking/index.d.ts +11 -39
  106. package/lib/solution/VenueBooking/index.js +110 -322
  107. package/lib/solution/VenueBooking/types.d.ts +0 -3
  108. package/lib/solution/VenueBooking/utils/resource.js +0 -1
  109. package/lib/solution/VenueBooking/utils/slotMerge.d.ts +4 -4
  110. package/lib/solution/VenueBooking/utils/slotMerge.js +4 -6
  111. package/lib/solution/index.d.ts +0 -1
  112. package/lib/solution/index.js +1 -3
  113. package/lib/types/index.d.ts +0 -1
  114. package/package.json +1 -1
  115. package/dist/modules/Holder/index.d.ts +0 -48
  116. package/dist/modules/Holder/index.js +0 -640
  117. package/dist/modules/Holder/types.d.ts +0 -123
  118. package/dist/modules/Holder/types.js +0 -1
  119. package/dist/modules/Holder/utils.d.ts +0 -13
  120. package/dist/modules/Holder/utils.js +0 -34
  121. package/dist/modules/ResourcePlanner/index.d.ts +0 -24
  122. package/dist/modules/ResourcePlanner/index.js +0 -181
  123. package/dist/modules/ResourcePlanner/planner.d.ts +0 -14
  124. package/dist/modules/ResourcePlanner/planner.js +0 -1069
  125. package/dist/modules/ResourcePlanner/types.d.ts +0 -227
  126. package/dist/modules/ResourcePlanner/types.js +0 -1
  127. package/dist/solution/UnifiedBookingSales/index.d.ts +0 -183
  128. package/dist/solution/UnifiedBookingSales/index.js +0 -1891
  129. package/dist/solution/UnifiedBookingSales/types.d.ts +0 -143
  130. package/dist/solution/UnifiedBookingSales/types.js +0 -11
  131. package/lib/modules/Holder/index.d.ts +0 -48
  132. package/lib/modules/Holder/index.js +0 -402
  133. package/lib/modules/Holder/types.d.ts +0 -123
  134. package/lib/modules/Holder/types.js +0 -17
  135. package/lib/modules/Holder/utils.d.ts +0 -13
  136. package/lib/modules/Holder/utils.js +0 -71
  137. package/lib/modules/ResourcePlanner/index.d.ts +0 -24
  138. package/lib/modules/ResourcePlanner/index.js +0 -148
  139. package/lib/modules/ResourcePlanner/planner.d.ts +0 -14
  140. package/lib/modules/ResourcePlanner/planner.js +0 -933
  141. package/lib/modules/ResourcePlanner/types.d.ts +0 -227
  142. package/lib/modules/ResourcePlanner/types.js +0 -17
  143. package/lib/solution/UnifiedBookingSales/index.d.ts +0 -183
  144. package/lib/solution/UnifiedBookingSales/index.js +0 -1084
  145. package/lib/solution/UnifiedBookingSales/types.d.ts +0 -143
  146. package/lib/solution/UnifiedBookingSales/types.js +0 -33
@@ -35,7 +35,6 @@ export interface ScanOrderOrderProductIdentity {
35
35
  /** 参与合并/匹配;与 remove 通配语义见 isSkuOnlyDeleteIdentity */
36
36
  product_sku?: ScanOrderProductSku;
37
37
  product_bundle?: any[];
38
- shop_id?: number | string;
39
38
  }
40
39
  export interface ScanOrderProductSku {
41
40
  option: any[];
@@ -208,7 +207,7 @@ export interface ScanOrderSubmitPayload extends Omit<ScanOrderTempOrder, 'platfo
208
207
  }>;
209
208
  products: ScanOrderSubmitProduct[];
210
209
  }
211
- export type ScanOrderAvailabilityMode = 'idle' | 'shop_closed' | 'submit_disabled' | 'resource_busy' | 'multiple_orders' | 'additional_order_with_code' | 'additional_order';
210
+ export type ScanOrderAvailabilityMode = 'idle' | 'shop_closed' | 'submit_disabled' | 'resource_busy' | 'additional_order_with_code' | 'additional_order';
212
211
  export interface ScanOrderTableFormRecord {
213
212
  policy?: string | null;
214
213
  partyroom_booking?: string | null;
@@ -251,10 +250,6 @@ export interface ScanOrderResourceOccupyDetail {
251
250
  form_id?: number | string | null;
252
251
  order_id?: number | string | null;
253
252
  last_order_id?: number | string | null;
254
- order_list?: Array<{
255
- id?: number | string | null;
256
- [key: string]: any;
257
- }> | null;
258
253
  resource_capacity?: ScanOrderResourceCapacity[] | null;
259
254
  form_record?: ScanOrderTableFormRecord | null;
260
255
  [key: string]: any;
@@ -268,21 +263,6 @@ export interface ScanOrderResourceOccupyDetailApiResponse {
268
263
  } | null;
269
264
  }
270
265
  export type ScanOrderResourceSelectType = 'single' | 'multiple' | 'capacity';
271
- export interface ScanOrderReservationResourceSelectInfo {
272
- resourceSelectType?: ScanOrderResourceSelectType;
273
- isSingleReservation: boolean;
274
- isMultipleReservation: boolean;
275
- isCapacityReservation: boolean;
276
- }
277
- export interface ScanOrderAllowAddItemsInfo {
278
- enabled: boolean;
279
- }
280
- export type ScanOrderSyncAdditionalOrderReason = 'missing_resource_id' | 'no_order' | 'multiple_orders' | 'add_items_disabled' | 'invalid_order_id';
281
- export interface ScanOrderSyncAdditionalOrderResult {
282
- matched: boolean;
283
- order_id?: string;
284
- reason?: ScanOrderSyncAdditionalOrderReason;
285
- }
286
266
  export interface ScanOrderResourceState extends ScanOrderAvailabilityInfo {
287
267
  relationId?: string;
288
268
  tableFormId?: string;
@@ -2,7 +2,6 @@ import { ScanOrderOrderProduct, ScanOrderOrderProductIdentity, ScanOrderResource
2
2
  import type { CartItemSummary, ItemRuleBusinessData, PaxInfo, QuantityLimitResult } from '../../model/strategy/adapter/itemRule';
3
3
  import type { StrategyConfig } from '../../model/strategy/type';
4
4
  import type { ProductData } from '../../modules/Product/types';
5
- import type { OrderSubmitProduct } from '../../modules/Order/types';
6
5
  /**
7
6
  * 构建金额全为 0 的空 summary。
8
7
  * 作为尚未计算金额时的兜底默认值,避免下游因 undefined 报错。
@@ -43,8 +42,6 @@ export declare function toNonNegativeNumber(value: unknown): number;
43
42
  export declare function toNonNegativeInt(value: unknown): number;
44
43
  export declare function toPriceString(value: unknown, fallback?: string): string;
45
44
  export declare function buildProductKey(productId: number, productVariantId: number): string;
46
- /** 加餐接口只提交本次新增商品,过滤掉首单预约占位规则行。 */
47
- export declare function filterProductsForScanOrderMore<T extends OrderSubmitProduct>(products?: T[]): T[];
48
45
  export declare function getTopLevelProductId(product: Record<string, any>): number | null;
49
46
  export declare function getTopLevelVariantId(product: Record<string, any>): number | null;
50
47
  export declare function buildQuantityLimitIndex(limits: QuantityLimitResult[]): {
@@ -137,11 +134,6 @@ export declare function normalizeOrderProduct(product: Partial<ScanOrderOrderPro
137
134
  * 从 reservation.enabled_reservation_rules 中收集 type=link 的商品 id。
138
135
  */
139
136
  export declare function collectLinkProductIdsFromReservationRules(rules: unknown): number[];
140
- /**
141
- * 找到第一个归属指定桌台的预约规则商品。
142
- * 归属判断基于商品资源中的 default_resource / optional_resource。
143
- */
144
- export declare function findReservationRuleProductByResourceId(products: ProductData[], resourceId: string | number | null | undefined): ProductData | undefined;
145
137
  /**
146
138
  * 返回列表中第一个带有效 duration.value(分钟)的商品时长。
147
139
  */
@@ -39,8 +39,6 @@ __export(utils_exports, {
39
39
  computeResourceIsFull: () => computeResourceIsFull,
40
40
  createEmptySummary: () => createEmptySummary,
41
41
  extractStrategyModelIdsFromTableConfig: () => extractStrategyModelIdsFromTableConfig,
42
- filterProductsForScanOrderMore: () => filterProductsForScanOrderMore,
43
- findReservationRuleProductByResourceId: () => findReservationRuleProductByResourceId,
44
42
  getProductIdentityIndex: () => getProductIdentityIndex,
45
43
  getSafeProductNum: () => getSafeProductNum,
46
44
  getTopLevelProductId: () => getTopLevelProductId,
@@ -167,12 +165,6 @@ function toPriceString(value, fallback = "0.00") {
167
165
  function buildProductKey(productId, productVariantId) {
168
166
  return `${productId}_${productVariantId}`;
169
167
  }
170
- function filterProductsForScanOrderMore(products = []) {
171
- return products.filter((product) => {
172
- var _a;
173
- return ((_a = product.metadata) == null ? void 0 : _a.is_rule) !== true;
174
- });
175
- }
176
168
  function getTopLevelProductId(product) {
177
169
  const rawProductId = product.product_id ?? product.id;
178
170
  const productId = Number(rawProductId);
@@ -588,27 +580,6 @@ function collectLinkProductIdsFromReservationRules(rules) {
588
580
  }
589
581
  return [...new Set(ids)];
590
582
  }
591
- function findReservationRuleProductByResourceId(products, resourceId) {
592
- var _a;
593
- const numericResourceId = Number(resourceId);
594
- if (!Number.isFinite(numericResourceId) || numericResourceId <= 0)
595
- return void 0;
596
- for (const product of products) {
597
- const resources = (_a = product == null ? void 0 : product.product_resource) == null ? void 0 : _a.resources;
598
- if (!Array.isArray(resources))
599
- continue;
600
- const hasMatchedResource = resources.some((resource) => {
601
- const defaultResources = Array.isArray(resource == null ? void 0 : resource.default_resource) ? resource.default_resource : [];
602
- const optionalResources = Array.isArray(resource == null ? void 0 : resource.optional_resource) ? resource.optional_resource : [];
603
- return [...defaultResources, ...optionalResources].some(
604
- (id) => Number(id) === numericResourceId
605
- );
606
- });
607
- if (hasMatchedResource)
608
- return product;
609
- }
610
- return void 0;
611
- }
612
583
  function pickFirstDurationMinutesFromProducts(products) {
613
584
  var _a;
614
585
  for (const product of products) {
@@ -712,8 +683,6 @@ function pickFirstCustomCapacityDimensionId(products) {
712
683
  computeResourceIsFull,
713
684
  createEmptySummary,
714
685
  extractStrategyModelIdsFromTableConfig,
715
- filterProductsForScanOrderMore,
716
- findReservationRuleProductByResourceId,
717
686
  getProductIdentityIndex,
718
687
  getSafeProductNum,
719
688
  getTopLevelProductId,
@@ -40,7 +40,6 @@ export declare class ShopDiscountImpl extends BaseModule implements Module {
40
40
  discountList: Discount[];
41
41
  };
42
42
  setProductList(productList: Record<string, any>[]): void;
43
- batchSearchByProductIds(productIds: number[]): Promise<Discount[]>;
44
43
  scanCode(code: string, customerId?: number): Promise<{
45
44
  isAvailable: boolean;
46
45
  productList: Record<string, any>[];
@@ -270,20 +270,6 @@ var ShopDiscountImpl = class extends import_BaseModule.BaseModule {
270
270
  setProductList(productList) {
271
271
  this.store.productList = productList;
272
272
  }
273
- async batchSearchByProductIds(productIds) {
274
- var _a;
275
- let resultDiscountList = await ((_a = this.store.discount) == null ? void 0 : _a.batchSearchByProductIds(productIds)) || [];
276
- resultDiscountList = resultDiscountList.map((item) => {
277
- return {
278
- ...item,
279
- discount_rule_uncheck_flag: true
280
- };
281
- });
282
- const currentDiscountList = this.getDiscountList() || [];
283
- const newDiscountList = [...currentDiscountList, ...resultDiscountList];
284
- this.setDiscountList(newDiscountList);
285
- return newDiscountList;
286
- }
287
273
  // 扫码输入code
288
274
  async scanCode(code, customerId) {
289
275
  var _a, _b, _c;
@@ -1,14 +1,12 @@
1
1
  import { Module, ModuleOptions, PisellCore } from '../../types';
2
- import { BaseSalesImpl } from '../BaseSales';
3
- import { VenueBookingAddLogParams, VenueBookingSlotConfig, VenueBookingState, VenueDateSummaryItem, VenueSlotSelection, VenueTimeSlotGrid } from './types';
2
+ import { BaseModule } from '../../modules/BaseModule';
3
+ import { VenueBookingAddLogParams, VenueBookingSlotConfig, VenueDateSummaryItem, VenueSlotSelection, VenueTimeSlotGrid } from './types';
4
4
  import type { ScanOrderOrderProduct, ScanOrderOrderProductIdentity } from '../ScanOrder/types';
5
5
  import type { UpdateOrderProductParams } from '../../modules/Order/types';
6
6
  import type { OpenDataAvailabilityResult } from '../../modules/OpenData';
7
- import { RequestPlugin, WindowPlugin } from '../../plugins';
8
7
  import type { ProductData } from '../../modules/Product/types';
9
8
  import { type CartItemSummary, type PaxInfo, type QuantityCheckResult, type QuantityLimitResult } from '../../model/strategy/adapter/itemRule';
10
9
  import type { StrategyConfig } from '../../model/strategy/type';
11
- import type { IAppendFormRecordParams, IRefreshAllFormRecordsParams } from '../../modules/Holder/types';
12
10
  export * from './types';
13
11
  interface VenueBookingItemRuleRuntimeConfig {
14
12
  strategyConfigs?: StrategyConfig[];
@@ -18,16 +16,16 @@ interface VenueBookingItemRuleRuntimeConfig {
18
16
  submissionIndex?: number;
19
17
  custom?: Record<string, any>;
20
18
  }
21
- export declare class VenueBookingImpl extends BaseSalesImpl implements Module {
19
+ export declare class VenueBookingImpl extends BaseModule implements Module {
22
20
  protected defaultName: string;
23
21
  protected defaultVersion: string;
24
22
  isSolution: boolean;
25
- protected initializeOptions: ModuleOptions;
26
- protected store: VenueBookingState;
27
- protected otherParams: Record<string, any>;
28
- protected cacheId: string | undefined;
29
- window: WindowPlugin;
30
- request: RequestPlugin;
23
+ private initializeOptions;
24
+ private store;
25
+ private otherParams;
26
+ private cacheId;
27
+ private window;
28
+ private request;
31
29
  private baseSlotConfig;
32
30
  private itemRuleEvaluator;
33
31
  private itemRuleConfigs;
@@ -52,19 +50,8 @@ export declare class VenueBookingImpl extends BaseSalesImpl implements Module {
52
50
  private logMethodError;
53
51
  addLog(params: VenueBookingAddLogParams): Promise<void>;
54
52
  constructor(name?: string, version?: string);
55
- protected getRegisteredModuleNames(): readonly string[];
56
- protected createSubModule(moduleName: string): Module | null;
57
- private attachProductOriginToTempOrder;
58
- private readProductOriginFromTempOrder;
59
- private normalizeVenueProductTitle;
60
53
  private normalizeCustomerId;
61
54
  private resolveCustomerIdFromLoginPayload;
62
- private resolveHolderCustomerId;
63
- /**
64
- * 按商品 holder_config 预加载表单数据到 holderMap。
65
- * appointment_booking 在加购时触发;venueBooking 在商品加载后预加载,避免 getHolderFormMap 为空。
66
- */
67
- private preloadHolderForms;
68
55
  private clearLoginEffectListeners;
69
56
  private registerLoginEffect;
70
57
  private registerCustomerLoginListeners;
@@ -157,10 +144,8 @@ export declare class VenueBookingImpl extends BaseSalesImpl implements Module {
157
144
  getScheduleListByIds(ids: number[]): import("../../server").ScheduleItem[];
158
145
  getTempOrder(): import("../../modules/Order/types").OrderTempOrder | null;
159
146
  updateTempOrderNote(note: string): string;
160
- updateTempOrderNote(note: string, sync: true): Promise<string>;
161
- updateTempOrderNote(note: string, sync: boolean): string | Promise<string>;
162
147
  updateTempOrderContactsInfo(contactsInfo: any[]): Record<string, any> | null;
163
- private ensureVenueTempOrder;
148
+ private ensureTempOrder;
164
149
  onCustomerLogin(params: {
165
150
  customerId: number;
166
151
  }): Promise<void>;
@@ -180,7 +165,7 @@ export declare class VenueBookingImpl extends BaseSalesImpl implements Module {
180
165
  setDiscountSelected(params: {
181
166
  discountId: number;
182
167
  isSelected: boolean;
183
- }): Promise<any>;
168
+ }): Promise<import("../../modules/Discount").Discount[]>;
184
169
  addNewOrder(): Promise<import("../../modules/Order/types").OrderTempOrder>;
185
170
  getOrderProducts(): import("../../modules/Order/types").OrderProduct[];
186
171
  getSummary(): Promise<import("../../modules/Order/types").OrderSummary>;
@@ -210,19 +195,6 @@ export declare class VenueBookingImpl extends BaseSalesImpl implements Module {
210
195
  setUIState(key: string, value: any): void;
211
196
  getUIState<T = any>(key: string): T | undefined;
212
197
  deleteUIState(key: string): void;
213
- setBookingHolder(bookingUid: string, holder: any): void;
214
- /**
215
- * 获取 holder 表单 map
216
- */
217
- getHolderFormMap(): import("../../modules/Holder").HolderFormMap;
218
- /**
219
- * UI 层触发:按当前 holderMap 批量刷新所有表单的 records
220
- */
221
- refreshAllHolderFormRecords(params?: Pick<IRefreshAllFormRecordsParams, 'customer_id' | 'useCache' | 'recordsUrl' | 'num' | 'skip'>): Promise<import("../../modules/Holder").HolderFormMap>;
222
- /**
223
- * 添加表单记录
224
- */
225
- appendFormRecord(params: IAppendFormRecordParams): import("../../modules/Holder").IFormRecord;
226
198
  checkOpenDataAvailability(): Promise<OpenDataAvailabilityResult>;
227
199
  setOtherParams(params: Record<string, any>, { cover }?: {
228
200
  cover?: boolean;