@pisell/pisellos 2.1.157 → 2.1.159

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 (54) hide show
  1. package/dist/modules/Holder/index.d.ts +48 -0
  2. package/dist/modules/Holder/index.js +640 -0
  3. package/dist/modules/Holder/types.d.ts +123 -0
  4. package/dist/modules/Holder/types.js +1 -0
  5. package/dist/modules/Holder/utils.d.ts +13 -0
  6. package/dist/modules/Holder/utils.js +34 -0
  7. package/dist/modules/Order/index.d.ts +1 -0
  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/modules/Product/types.d.ts +7 -0
  13. package/dist/modules/index.d.ts +1 -0
  14. package/dist/modules/index.js +2 -1
  15. package/dist/plugins/window.d.ts +1 -0
  16. package/dist/solution/BookingByStep/index.d.ts +15 -0
  17. package/dist/solution/BookingByStep/index.js +276 -204
  18. package/dist/solution/BookingByStep/types.d.ts +2 -1
  19. package/dist/solution/BookingByStep/types.js +3 -1
  20. package/dist/solution/ScanOrder/index.d.ts +1 -1
  21. package/dist/solution/ScanOrder/index.js +33 -32
  22. package/dist/solution/ScanOrder/types.d.ts +1 -0
  23. package/dist/solution/VenueBooking/index.d.ts +19 -0
  24. package/dist/solution/VenueBooking/index.js +963 -733
  25. package/dist/solution/VenueBooking/types.d.ts +2 -0
  26. package/dist/types/index.d.ts +1 -0
  27. package/lib/model/strategy/adapter/promotion/index.js +0 -49
  28. package/lib/modules/Holder/index.d.ts +48 -0
  29. package/lib/modules/Holder/index.js +402 -0
  30. package/lib/modules/Holder/types.d.ts +123 -0
  31. package/lib/modules/Holder/types.js +17 -0
  32. package/lib/modules/Holder/utils.d.ts +13 -0
  33. package/lib/modules/Holder/utils.js +71 -0
  34. package/lib/modules/Order/index.d.ts +1 -0
  35. package/lib/modules/Order/index.js +14 -0
  36. package/lib/modules/Order/types.d.ts +2 -0
  37. package/lib/modules/Order/utils.d.ts +10 -0
  38. package/lib/modules/Order/utils.js +36 -5
  39. package/lib/modules/Product/types.d.ts +7 -0
  40. package/lib/modules/index.d.ts +1 -0
  41. package/lib/modules/index.js +3 -1
  42. package/lib/plugins/window.d.ts +1 -0
  43. package/lib/solution/BookingByStep/index.d.ts +15 -0
  44. package/lib/solution/BookingByStep/index.js +39 -0
  45. package/lib/solution/BookingByStep/types.d.ts +2 -1
  46. package/lib/solution/BookingByStep/types.js +5 -0
  47. package/lib/solution/ScanOrder/index.d.ts +1 -1
  48. package/lib/solution/ScanOrder/index.js +2 -1
  49. package/lib/solution/ScanOrder/types.d.ts +1 -0
  50. package/lib/solution/VenueBooking/index.d.ts +19 -0
  51. package/lib/solution/VenueBooking/index.js +134 -16
  52. package/lib/solution/VenueBooking/types.d.ts +2 -0
  53. package/lib/types/index.d.ts +1 -0
  54. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { ProductList, CartModule, ProductData, AccountModule, AccountListModule, DateModule, GuestListModule, OrderModule, PaymentModule, ResourceListModule, StepModule, SummaryModule, SalesSummaryModule, ScheduleModule, ScanOrderLoggerModule } from '../../modules';
1
+ import { ProductList, CartModule, ProductData, AccountModule, AccountListModule, DateModule, GuestListModule, OrderModule, PaymentModule, ResourceListModule, StepModule, SummaryModule, SalesSummaryModule, ScheduleModule, ScanOrderLoggerModule, HolderModule } from '../../modules';
2
2
  export interface BookingByStepState {
3
3
  cart: CartModule;
4
4
  summary: SummaryModule;
@@ -16,6 +16,7 @@ export interface BookingByStepState {
16
16
  schedule: ScheduleModule;
17
17
  salesSummary?: SalesSummaryModule;
18
18
  scanOrderLogger?: ScanOrderLoggerModule;
19
+ holder: HolderModule;
19
20
  }
20
21
  export declare function createModule<T extends keyof BookingByStepState>(moduleName: T, solutionName: string, name?: string, version?: string): BookingByStepState[T];
21
22
  export declare enum BookingByStepHooks {
@@ -1,4 +1,4 @@
1
- import { ProductList, CartModule, AccountListModule, DateModule, OrderModule, PaymentModule, StepModule, SummaryModule, SalesSummaryModule, ScheduleModule, ScanOrderLoggerModule } from "../../modules";
1
+ import { ProductList, CartModule, AccountListModule, DateModule, OrderModule, PaymentModule, StepModule, SummaryModule, SalesSummaryModule, ScheduleModule, ScanOrderLoggerModule, HolderModule } from "../../modules";
2
2
  export function createModule(moduleName, solutionName, name, version) {
3
3
  switch (moduleName) {
4
4
  case 'cart':
@@ -23,6 +23,8 @@ export function createModule(moduleName, solutionName, name, version) {
23
23
  return new ScheduleModule("".concat(solutionName, "_").concat(name || moduleName), version);
24
24
  case 'scanOrderLogger':
25
25
  return new ScanOrderLoggerModule("".concat(solutionName, "_").concat(name || moduleName), version);
26
+ case 'holder':
27
+ return new HolderModule("".concat(solutionName, "_").concat(name || moduleName), version);
26
28
  default:
27
29
  throw new Error("Unknown module type: ".concat(moduleName));
28
30
  }
@@ -72,7 +72,7 @@ export declare class ScanOrderImpl extends BaseModule implements Module {
72
72
  getTempOrder(): ScanOrderTempOrder | null;
73
73
  updateTempOrderNote(note: string): string;
74
74
  setPickupReferenceMode(mode: 'counter_pickup' | 'table_service'): {
75
- service_type: 'dine_in';
75
+ service_type: 'dine_in' | '';
76
76
  pickup_reference_mode: 'counter_pickup' | 'table_service';
77
77
  };
78
78
  setPickupRef(buzzer: string): string;
@@ -852,11 +852,12 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
852
852
  mode: mode
853
853
  });
854
854
  try {
855
+ var _this$otherParams4;
855
856
  if (!this.store.order) throw new Error('order 模块未初始化');
856
857
  var tempOrder = this.store.order.ensureTempOrder();
857
858
  tempOrder.metadata = _objectSpread(_objectSpread({}, tempOrder.metadata || {}), {}, {
858
859
  shop_service_data: _objectSpread(_objectSpread({}, (tempOrder.metadata || {}).shop_service_data || {}), {}, {
859
- service_type: 'dine_in',
860
+ service_type: ((_this$otherParams4 = this.otherParams) === null || _this$otherParams4 === void 0 ? void 0 : _this$otherParams4.businessCode) === 'dine_in' ? 'dine_in' : 'take_away',
860
861
  pickup_reference_mode: mode
861
862
  })
862
863
  });
@@ -1339,7 +1340,7 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
1339
1340
  key: "prepareRetailAvailability",
1340
1341
  value: function () {
1341
1342
  var _prepareRetailAvailability = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee17(params) {
1342
- var _this$store$order4, _this$otherParams4;
1343
+ var _this$store$order4, _this$otherParams5;
1343
1344
  var tempOrder, hasOrderId, resourceId, reason, resourceState, availabilityInfo;
1344
1345
  return _regeneratorRuntime().wrap(function _callee17$(_context17) {
1345
1346
  while (1) switch (_context17.prev = _context17.next) {
@@ -1370,7 +1371,7 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
1370
1371
  case 15:
1371
1372
  _context17.next = 17;
1372
1373
  return this.setItemRuleRuntimeConfig({
1373
- serviceType: (_this$otherParams4 = this.otherParams) === null || _this$otherParams4 === void 0 ? void 0 : _this$otherParams4.businessCode,
1374
+ serviceType: (_this$otherParams5 = this.otherParams) === null || _this$otherParams5 === void 0 ? void 0 : _this$otherParams5.businessCode,
1374
1375
  submissionIndex: hasOrderId ? 1 : 0,
1375
1376
  historicalItems: []
1376
1377
  });
@@ -1520,7 +1521,7 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
1520
1521
  key: "submitScanOrder",
1521
1522
  value: function () {
1522
1523
  var _submitScanOrder = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee18() {
1523
- var _this$store$resource, _this$otherParams5, _this$otherParams6, _this$otherParams7, _this$otherParams8, _tempOrder$products, tempOrderForSubmit, resourceTableName, enhancePayload, result, tempOrder;
1524
+ var _this$store$resource, _this$otherParams6, _this$otherParams7, _this$otherParams8, _this$otherParams9, _tempOrder$products, tempOrderForSubmit, resourceTableName, enhancePayload, result, tempOrder;
1524
1525
  return _regeneratorRuntime().wrap(function _callee18$(_context18) {
1525
1526
  while (1) switch (_context18.prev = _context18.next) {
1526
1527
  case 0:
@@ -1548,10 +1549,10 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
1548
1549
  _context18.next = 14;
1549
1550
  return this.store.order.submitTempOrder({
1550
1551
  cacheId: this.cacheId,
1551
- platform: (_this$otherParams5 = this.otherParams) === null || _this$otherParams5 === void 0 ? void 0 : _this$otherParams5.platform,
1552
- businessCode: (_this$otherParams6 = this.otherParams) === null || _this$otherParams6 === void 0 ? void 0 : _this$otherParams6.businessCode,
1553
- channel: (_this$otherParams7 = this.otherParams) === null || _this$otherParams7 === void 0 ? void 0 : _this$otherParams7.channel,
1554
- type: (_this$otherParams8 = this.otherParams) === null || _this$otherParams8 === void 0 ? void 0 : _this$otherParams8.type,
1552
+ platform: (_this$otherParams6 = this.otherParams) === null || _this$otherParams6 === void 0 ? void 0 : _this$otherParams6.platform,
1553
+ businessCode: (_this$otherParams7 = this.otherParams) === null || _this$otherParams7 === void 0 ? void 0 : _this$otherParams7.businessCode,
1554
+ channel: (_this$otherParams8 = this.otherParams) === null || _this$otherParams8 === void 0 ? void 0 : _this$otherParams8.channel,
1555
+ type: (_this$otherParams9 = this.otherParams) === null || _this$otherParams9 === void 0 ? void 0 : _this$otherParams9.type,
1555
1556
  enhancePayload: enhancePayload
1556
1557
  });
1557
1558
  case 14:
@@ -2481,14 +2482,14 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
2481
2482
  }, {
2482
2483
  key: "normalizeResourceState",
2483
2484
  value: function normalizeResourceState(detail, resourceSelectType, hasOrderId) {
2484
- var _detail$form_record, _this$otherParams9, _detail$resource_capa, _detail$resource_capa2;
2485
+ var _detail$form_record, _this$otherParams10, _detail$resource_capa, _detail$resource_capa2;
2485
2486
  var currentOrderId = toPositiveString(detail === null || detail === void 0 ? void 0 : detail.order_id);
2486
2487
  var lastOrderId = toPositiveString(detail === null || detail === void 0 ? void 0 : detail.last_order_id);
2487
2488
  var relationId = toPositiveString(detail === null || detail === void 0 ? void 0 : detail.form_record_id);
2488
2489
  var tableFormId = toPositiveString(detail === null || detail === void 0 ? void 0 : detail.form_id);
2489
2490
  var formRecord = (_detail$form_record = detail === null || detail === void 0 ? void 0 : detail.form_record) !== null && _detail$form_record !== void 0 ? _detail$form_record : null;
2490
2491
  // 是否允许加餐
2491
- var allowSnack = ((_this$otherParams9 = this.otherParams) === null || _this$otherParams9 === void 0 || (_this$otherParams9 = _this$otherParams9.dineInConfig) === null || _this$otherParams9 === void 0 ? void 0 : _this$otherParams9['sale.allow_add_items']) || false;
2492
+ var allowSnack = ((_this$otherParams10 = this.otherParams) === null || _this$otherParams10 === void 0 || (_this$otherParams10 = _this$otherParams10.dineInConfig) === null || _this$otherParams10 === void 0 ? void 0 : _this$otherParams10['sale.allow_add_items']) || false;
2492
2493
  // 开启同桌验证 - 本期没有这个配置,默认关掉
2493
2494
  var deskmateValid = false;
2494
2495
  var isExclusive = resourceSelectType === 'single';
@@ -2571,7 +2572,7 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
2571
2572
  key: "fetchResourceOccupyDetailsByResourceId",
2572
2573
  value: function () {
2573
2574
  var _fetchResourceOccupyDetailsByResourceId = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee36(resourceId) {
2574
- var _this$otherParams10, _this$otherParams10$g, _response$data$occupy, _response$data;
2575
+ var _this$otherParams11, _this$otherParams11$g, _response$data$occupy, _response$data;
2575
2576
  var formRecordId, shopId, response;
2576
2577
  return _regeneratorRuntime().wrap(function _callee36$(_context36) {
2577
2578
  while (1) switch (_context36.prev = _context36.next) {
@@ -2583,7 +2584,7 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
2583
2584
  }
2584
2585
  throw new Error("[ScanOrder] \u975E\u6CD5\u684C\u53F0 resourceId: ".concat(resourceId));
2585
2586
  case 3:
2586
- shopId = (_this$otherParams10 = this.otherParams) === null || _this$otherParams10 === void 0 || (_this$otherParams10$g = _this$otherParams10.getStateData) === null || _this$otherParams10$g === void 0 ? void 0 : _this$otherParams10$g.call(_this$otherParams10, 'shop_id');
2587
+ shopId = (_this$otherParams11 = this.otherParams) === null || _this$otherParams11 === void 0 || (_this$otherParams11$g = _this$otherParams11.getStateData) === null || _this$otherParams11$g === void 0 ? void 0 : _this$otherParams11$g.call(_this$otherParams11, 'shop_id');
2587
2588
  if (shopId) {
2588
2589
  _context36.next = 6;
2589
2590
  break;
@@ -2677,19 +2678,19 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
2677
2678
  var hasOrderId,
2678
2679
  normalizedResourceId,
2679
2680
  _this$otherParams$bus,
2680
- _this$otherParams11,
2681
- _this$otherParams$cha,
2682
2681
  _this$otherParams12,
2682
+ _this$otherParams$cha,
2683
2683
  _this$otherParams13,
2684
- _this$otherParams13$g,
2684
+ _this$otherParams14,
2685
+ _this$otherParams14$g,
2685
2686
  _occupyDetails$,
2686
2687
  _occupyDetail$form_re,
2687
2688
  _occupyDetail$form_re2,
2688
- _this$otherParams14,
2689
+ _this$otherParams15,
2689
2690
  _this$store$order6,
2690
2691
  _this$store$order7,
2691
2692
  _this$store$order7$ge,
2692
- _this$otherParams15,
2693
+ _this$otherParams16,
2693
2694
  businessCode,
2694
2695
  channel,
2695
2696
  openDataTarget,
@@ -2742,11 +2743,11 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
2742
2743
  resourceId: normalizedResourceId
2743
2744
  });
2744
2745
  _context37.prev = 3;
2745
- businessCode = String((_this$otherParams$bus = (_this$otherParams11 = this.otherParams) === null || _this$otherParams11 === void 0 ? void 0 : _this$otherParams11.businessCode) !== null && _this$otherParams$bus !== void 0 ? _this$otherParams$bus : '').trim();
2746
- channel = String((_this$otherParams$cha = (_this$otherParams12 = this.otherParams) === null || _this$otherParams12 === void 0 ? void 0 : _this$otherParams12.channel) !== null && _this$otherParams$cha !== void 0 ? _this$otherParams$cha : '').trim();
2746
+ businessCode = String((_this$otherParams$bus = (_this$otherParams12 = this.otherParams) === null || _this$otherParams12 === void 0 ? void 0 : _this$otherParams12.businessCode) !== null && _this$otherParams$bus !== void 0 ? _this$otherParams$bus : '').trim();
2747
+ channel = String((_this$otherParams$cha = (_this$otherParams13 = this.otherParams) === null || _this$otherParams13 === void 0 ? void 0 : _this$otherParams13.channel) !== null && _this$otherParams$cha !== void 0 ? _this$otherParams$cha : '').trim();
2747
2748
  openDataTarget = businessCode && channel ? "".concat(businessCode, "+").concat(channel) : 'dine_in+scan_to_order';
2748
2749
  _context37.next = 9;
2749
- return (_this$otherParams13 = this.otherParams) === null || _this$otherParams13 === void 0 || (_this$otherParams13$g = _this$otherParams13.getOpenData) === null || _this$otherParams13$g === void 0 ? void 0 : _this$otherParams13$g.call(_this$otherParams13, {
2750
+ return (_this$otherParams14 = this.otherParams) === null || _this$otherParams14 === void 0 || (_this$otherParams14$g = _this$otherParams14.getOpenData) === null || _this$otherParams14$g === void 0 ? void 0 : _this$otherParams14$g.call(_this$otherParams14, {
2750
2751
  scope: 'board',
2751
2752
  target: openDataTarget,
2752
2753
  section_code: ['basic', 'fulfillment', 'reservation', 'sale', 'menu', 'availability', 'workflow']
@@ -2960,7 +2961,7 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
2960
2961
  } : {}), this.store.resource.requestPaxMax !== undefined ? {
2961
2962
  requestPaxMax: this.store.resource.requestPaxMax
2962
2963
  } : {});
2963
- tempOrder.relation_id = normalizedResourceId || ((_this$otherParams14 = this.otherParams) === null || _this$otherParams14 === void 0 ? void 0 : _this$otherParams14.relation_id);
2964
+ tempOrder.relation_id = normalizedResourceId || ((_this$otherParams15 = this.otherParams) === null || _this$otherParams15 === void 0 ? void 0 : _this$otherParams15.relation_id);
2964
2965
  tempOrder.table_form_id = resourceState.tableFormId;
2965
2966
  tempOrder.resource_id = normalizedResourceId;
2966
2967
  (_this$store$order6 = this.store.order) === null || _this$store$order6 === void 0 || _this$store$order6.persistTempOrder();
@@ -2990,7 +2991,7 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
2990
2991
  }, []) : []; // pax 由 setEntryPaxNumber 负责写入 itemRuleRuntimeConfig.pax
2991
2992
  _context37.next = 82;
2992
2993
  return this.setItemRuleRuntimeConfig({
2993
- serviceType: (_this$otherParams15 = this.otherParams) === null || _this$otherParams15 === void 0 ? void 0 : _this$otherParams15.businessCode,
2994
+ serviceType: (_this$otherParams16 = this.otherParams) === null || _this$otherParams16 === void 0 ? void 0 : _this$otherParams16.businessCode,
2994
2995
  submissionIndex: isAdditionalOrderMode ? 1 : 0,
2995
2996
  historicalItems: historicalItems
2996
2997
  });
@@ -3109,14 +3110,14 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
3109
3110
  key: "getProductList",
3110
3111
  value: function () {
3111
3112
  var _getProductList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee40() {
3112
- var _this$otherParams16;
3113
+ var _this$otherParams17;
3113
3114
  var menu_list_ids, res, productList, formattedRes;
3114
3115
  return _regeneratorRuntime().wrap(function _callee40$(_context40) {
3115
3116
  while (1) switch (_context40.prev = _context40.next) {
3116
3117
  case 0:
3117
3118
  this.logMethodStart('getProductList');
3118
3119
  // 可以直接通过配置里的 menu 读取
3119
- menu_list_ids = ((_this$otherParams16 = this.otherParams) === null || _this$otherParams16 === void 0 || (_this$otherParams16 = _this$otherParams16.dineInConfig) === null || _this$otherParams16 === void 0 ? void 0 : _this$otherParams16['menu.associated_menus'].map(function (n) {
3120
+ menu_list_ids = ((_this$otherParams17 = this.otherParams) === null || _this$otherParams17 === void 0 || (_this$otherParams17 = _this$otherParams17.dineInConfig) === null || _this$otherParams17 === void 0 ? void 0 : _this$otherParams17['menu.associated_menus'].map(function (n) {
3120
3121
  return Number(n.value);
3121
3122
  })) || [];
3122
3123
  _context40.prev = 2;
@@ -3332,7 +3333,7 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
3332
3333
  key: "syncAdditionalOrderFromResource",
3333
3334
  value: function () {
3334
3335
  var _syncAdditionalOrderFromResource = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee43(resourceId) {
3335
- var _ref10, _ref11, _ref12, _this$store$resource2, _this$store$resource3, _occupyDetails$2, _this$store$resource4, _this$otherParams17, _this$store$order9;
3336
+ var _ref10, _ref11, _ref12, _this$store$resource2, _this$store$resource3, _occupyDetails$2, _this$store$resource4, _this$otherParams18, _this$store$order9;
3336
3337
  var tempOrder, normalizedResourceId, _result, occupyDetails, occupyDetail, resourceSelectType, allowAddItems, result;
3337
3338
  return _regeneratorRuntime().wrap(function _callee43$(_context43) {
3338
3339
  while (1) switch (_context43.prev = _context43.next) {
@@ -3359,7 +3360,7 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
3359
3360
  occupyDetails = _context43.sent;
3360
3361
  occupyDetail = (_occupyDetails$2 = occupyDetails[0]) !== null && _occupyDetails$2 !== void 0 ? _occupyDetails$2 : null;
3361
3362
  resourceSelectType = ((_this$store$resource4 = this.store.resource) === null || _this$store$resource4 === void 0 ? void 0 : _this$store$resource4.resourceSelectType) || this.resolveResourceSelectType(toPositiveString(occupyDetail === null || occupyDetail === void 0 ? void 0 : occupyDetail.form_id));
3362
- allowAddItems = toBoolean((_this$otherParams17 = this.otherParams) === null || _this$otherParams17 === void 0 || (_this$otherParams17 = _this$otherParams17.dineInConfig) === null || _this$otherParams17 === void 0 ? void 0 : _this$otherParams17['sale.allow_add_items']);
3363
+ allowAddItems = toBoolean((_this$otherParams18 = this.otherParams) === null || _this$otherParams18 === void 0 || (_this$otherParams18 = _this$otherParams18.dineInConfig) === null || _this$otherParams18 === void 0 ? void 0 : _this$otherParams18['sale.allow_add_items']);
3363
3364
  result = this.resolveAdditionalOrderFromOccupyDetail(occupyDetail, resourceSelectType, allowAddItems);
3364
3365
  if (!(!result.matched || !result.order_id)) {
3365
3366
  _context43.next = 17;
@@ -3417,9 +3418,9 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
3417
3418
  }, {
3418
3419
  key: "checkAllowAddItems",
3419
3420
  value: function checkAllowAddItems() {
3420
- var _this$otherParams18;
3421
+ var _this$otherParams19;
3421
3422
  this.logMethodStart('checkAllowAddItems');
3422
- var dineInConfig = ((_this$otherParams18 = this.otherParams) === null || _this$otherParams18 === void 0 ? void 0 : _this$otherParams18.dineInConfig) || {};
3423
+ var dineInConfig = ((_this$otherParams19 = this.otherParams) === null || _this$otherParams19 === void 0 ? void 0 : _this$otherParams19.dineInConfig) || {};
3423
3424
  var result = {
3424
3425
  enabled: toBoolean(dineInConfig['sale.allow_add_items'])
3425
3426
  };
@@ -3432,9 +3433,9 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
3432
3433
  }, {
3433
3434
  key: "getFulfillmentModes",
3434
3435
  value: function getFulfillmentModes() {
3435
- var _this$otherParams19;
3436
+ var _this$otherParams20;
3436
3437
  this.logMethodStart('getFulfillmentModes');
3437
- var dineInConfig = ((_this$otherParams19 = this.otherParams) === null || _this$otherParams19 === void 0 ? void 0 : _this$otherParams19.dineInConfig) || {};
3438
+ var dineInConfig = ((_this$otherParams20 = this.otherParams) === null || _this$otherParams20 === void 0 ? void 0 : _this$otherParams20.dineInConfig) || {};
3438
3439
  var result = {
3439
3440
  enablePickup: Boolean(dineInConfig['fulfillment.enable_pickup']),
3440
3441
  enableTableService: Boolean(dineInConfig['fulfillment.enable_table_service'])
@@ -3448,9 +3449,9 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
3448
3449
  }, {
3449
3450
  key: "checkManualPickupRef",
3450
3451
  value: function checkManualPickupRef() {
3451
- var _this$otherParams20;
3452
+ var _this$otherParams21;
3452
3453
  this.logMethodStart('checkManualPickupRef');
3453
- var dineInConfig = ((_this$otherParams20 = this.otherParams) === null || _this$otherParams20 === void 0 ? void 0 : _this$otherParams20.dineInConfig) || {};
3454
+ var dineInConfig = ((_this$otherParams21 = this.otherParams) === null || _this$otherParams21 === void 0 ? void 0 : _this$otherParams21.dineInConfig) || {};
3454
3455
  var refMode = dineInConfig['fulfillment.fulfillment_ref_mode'];
3455
3456
  var manualInputType = dineInConfig['fulfillment.manual_input_type'];
3456
3457
  var enabled = refMode === 'manual_input';
@@ -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;
@@ -194,6 +201,18 @@ export declare class VenueBookingImpl extends BaseModule implements Module {
194
201
  getUIState<T = any>(key: string): T | undefined;
195
202
  deleteUIState(key: string): void;
196
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;
197
216
  checkOpenDataAvailability(): Promise<OpenDataAvailabilityResult>;
198
217
  setOtherParams(params: Record<string, any>, { cover }?: {
199
218
  cover?: boolean;