@pisell/pisellos 2.1.120 → 2.1.122

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.
@@ -18,6 +18,7 @@ export declare class OpenDataModule extends BaseModule implements Module {
18
18
  initialize(core: PisellCore, options: ModuleOptions): Promise<void>;
19
19
  fetchOpenData(params: OpenDataFetchParams): Promise<OpenDataConfig>;
20
20
  getOpenData(): OpenDataConfig | null;
21
+ getLastFetchedAt(): number | null;
21
22
  checkAvailability(scheduleModule?: ScheduleModule): OpenDataAvailabilityResult;
22
23
  storeChange(): void;
23
24
  }
@@ -140,6 +140,12 @@ export var OpenDataModule = /*#__PURE__*/function (_BaseModule) {
140
140
  value: function getOpenData() {
141
141
  return this.store.data;
142
142
  }
143
+ }, {
144
+ key: "getLastFetchedAt",
145
+ value: function getLastFetchedAt() {
146
+ var _this$store$lastFetch;
147
+ return (_this$store$lastFetch = this.store.lastFetchedAt) !== null && _this$store$lastFetch !== void 0 ? _this$store$lastFetch : null;
148
+ }
143
149
  }, {
144
150
  key: "checkAvailability",
145
151
  value: function checkAvailability(scheduleModule) {
@@ -76,6 +76,10 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
76
76
  removeProductFromOrder(identity: ScanOrderOrderProductIdentity): Promise<ScanOrderOrderProduct[]>;
77
77
  submitTempOrder<T = any>(params?: {
78
78
  cacheId?: string;
79
+ platform?: string;
80
+ businessCode?: string;
81
+ channel?: string;
82
+ type?: string;
79
83
  }): Promise<T>;
80
84
  createOrder(params: CommitOrderParams['query']): {
81
85
  type: "virtual" | "appointment_booking";
@@ -144,10 +144,26 @@ export var OrderModule = /*#__PURE__*/function (_BaseModule) {
144
144
  }, {
145
145
  key: "registerDiscountModules",
146
146
  value: function registerDiscountModules(options) {
147
+ var _targetCacheData;
148
+ var targetCacheData = {};
149
+ if (this.cacheId && this.window) {
150
+ var sessionData = this.window.sessionStorage.getItem(this.name);
151
+ if (sessionData) {
152
+ try {
153
+ var data = JSON.parse(sessionData);
154
+ targetCacheData = (data === null || data === void 0 ? void 0 : data[this.cacheId]) || {};
155
+ } catch (_unused) {
156
+ // sessionStorage 损坏则忽略,按空 initialState 走
157
+ }
158
+ }
159
+ }
147
160
  var discount = new DiscountModule("".concat(this.name, "_discount"));
148
161
  this.core.registerModule(discount, {
162
+ initialState: (_targetCacheData = targetCacheData) === null || _targetCacheData === void 0 ? void 0 : _targetCacheData[discount.name],
149
163
  otherParams: {
150
- fatherModule: this.name
164
+ fatherModule: this.name,
165
+ openCache: !!this.cacheId,
166
+ cacheId: this.cacheId
151
167
  }
152
168
  });
153
169
  this.store.discount = discount;
@@ -403,7 +419,7 @@ export var OrderModule = /*#__PURE__*/function (_BaseModule) {
403
419
  return;
404
420
  }
405
421
  this.store.tempOrder = parsedData;
406
- } catch (_unused) {
422
+ } catch (_unused2) {
407
423
  var _this$window;
408
424
  (_this$window = this.window) === null || _this$window === void 0 || (_this$window = _this$window.localStorage) === null || _this$window === void 0 || _this$window.removeItem(key);
409
425
  }
@@ -725,7 +741,11 @@ export var OrderModule = /*#__PURE__*/function (_BaseModule) {
725
741
  effectiveCacheId = (_params$cacheId = params === null || params === void 0 ? void 0 : params.cacheId) !== null && _params$cacheId !== void 0 ? _params$cacheId : this.cacheId;
726
742
  payload = buildSubmitPayload({
727
743
  tempOrder: tempOrder,
728
- cacheId: effectiveCacheId
744
+ cacheId: effectiveCacheId,
745
+ platform: params === null || params === void 0 ? void 0 : params.platform,
746
+ businessCode: params === null || params === void 0 ? void 0 : params.businessCode,
747
+ channel: params === null || params === void 0 ? void 0 : params.channel,
748
+ type: params === null || params === void 0 ? void 0 : params.type
729
749
  });
730
750
  if (!tempOrder.order_id) {
731
751
  _context10.next = 12;
@@ -212,6 +212,10 @@ export interface OrderModuleAPI {
212
212
  persistTempOrder: () => void;
213
213
  submitTempOrder: <T = any>(params?: {
214
214
  cacheId?: string;
215
+ platform?: string;
216
+ businessCode?: string;
217
+ channel?: string;
218
+ type?: string;
215
219
  }) => Promise<T>;
216
220
  loadDiscountConfig: (params: {
217
221
  customerId: number;
@@ -25,6 +25,9 @@ export declare const getAllDiscountList: (cartItem: CartItem) => any;
25
25
  export declare function createUuidV4(): string;
26
26
  export declare function isTempOrder(data: any): data is ScanOrderTempOrder;
27
27
  export declare function formatDateTime(date: Date): string;
28
+ export declare function normalizeSubmitBooking<T extends {
29
+ metadata?: Record<string, any>;
30
+ }>(booking: T): T;
28
31
  export declare function createDefaultTempOrder(params: {
29
32
  now: string;
30
33
  summary?: ScanOrderSummary;
@@ -33,6 +36,10 @@ export declare function buildSubmitPayload(params: {
33
36
  tempOrder: ScanOrderTempOrder;
34
37
  cacheId?: string;
35
38
  now?: Date;
39
+ platform?: string;
40
+ businessCode?: string;
41
+ channel?: string;
42
+ type?: string;
36
43
  }): ScanOrderSubmitPayload;
37
44
  export declare function formatV1Product(products: ScanOrderSubmitProduct[]): {
38
45
  bundle: any[];
@@ -1,5 +1,6 @@
1
1
  var _excluded = ["_origin", "identity_key"],
2
2
  _excluded2 = ["created_at", "summary", "surcharges"];
3
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
3
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -133,6 +134,28 @@ function normalizeSubmitProduct(product) {
133
134
  metadata: cleanMetadata
134
135
  });
135
136
  }
137
+ var SUBMIT_BOOKING_METADATA_WHITELIST = ['unique_identification_number', 'collect_pax'];
138
+ export function normalizeSubmitBooking(booking) {
139
+ var rawMetadata = booking.metadata || {};
140
+ var cleanMetadata = {};
141
+ var _iterator = _createForOfIteratorHelper(SUBMIT_BOOKING_METADATA_WHITELIST),
142
+ _step;
143
+ try {
144
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
145
+ var key = _step.value;
146
+ if (rawMetadata[key] !== undefined) {
147
+ cleanMetadata[key] = rawMetadata[key];
148
+ }
149
+ }
150
+ } catch (err) {
151
+ _iterator.e(err);
152
+ } finally {
153
+ _iterator.f();
154
+ }
155
+ return _objectSpread(_objectSpread({}, booking), {}, {
156
+ metadata: cleanMetadata
157
+ });
158
+ }
136
159
  var DEFAULT_TABLE_OCCUPANCY_DURATION = 20;
137
160
  function resolveTableOccupancyDuration(tempOrder) {
138
161
  var _metadata$table_confi, _metadata$tableConfig, _metadata$resource_co, _metadata$resourceCon;
@@ -196,11 +219,15 @@ export function createDefaultTempOrder(params) {
196
219
  };
197
220
  }
198
221
  export function buildSubmitPayload(params) {
199
- var _tempOrder$is_price_i, _tempOrder$is_deposit;
222
+ var _ref, _ref2, _ref3, _tempOrder$is_price_i, _tempOrder$is_deposit;
200
223
  var tempOrder = params.tempOrder,
201
224
  cacheId = params.cacheId,
202
225
  _params$now = params.now,
203
- now = _params$now === void 0 ? new Date() : _params$now;
226
+ now = _params$now === void 0 ? new Date() : _params$now,
227
+ platform = params.platform,
228
+ businessCode = params.businessCode,
229
+ channel = params.channel,
230
+ type = params.type;
204
231
  var scheduleDate = tempOrder.schedule_date || tempOrder.created_at || formatDateTime(now);
205
232
  var summary = tempOrder.summary || createEmptySummary();
206
233
  var relationId = tempOrder.relation_id;
@@ -237,12 +264,12 @@ export function buildSubmitPayload(params) {
237
264
  _surcharges = tempOrder.surcharges,
238
265
  tempOrderRest = _objectWithoutProperties(tempOrder, _excluded2);
239
266
  return _objectSpread(_objectSpread({}, tempOrderRest), {}, {
240
- platform: normalizeSubmitPlatform(tempOrder.platform),
267
+ platform: normalizeSubmitPlatform(platform !== null && platform !== void 0 ? platform : tempOrder.platform),
241
268
  request_unique_idempotency_token: cacheId,
242
- type: tempOrder.type || 'table-order',
243
- business_code: tempOrder.business_code || 'table-order',
269
+ type: (_ref = type !== null && type !== void 0 ? type : tempOrder.type) !== null && _ref !== void 0 ? _ref : 'table-order',
270
+ business_code: (_ref2 = businessCode !== null && businessCode !== void 0 ? businessCode : tempOrder.business_code) !== null && _ref2 !== void 0 ? _ref2 : 'table-order',
244
271
  sales_channel: tempOrder.sales_channel || 'my_pisel',
245
- order_sales_channel: tempOrder.order_sales_channel || 'online_store',
272
+ order_sales_channel: (_ref3 = channel !== null && channel !== void 0 ? channel : tempOrder.order_sales_channel) !== null && _ref3 !== void 0 ? _ref3 : 'online_store',
246
273
  status: tempOrder.status || 'normal',
247
274
  payment_status: tempOrder.payment_status || 'payment_processing',
248
275
  // shipping_status: tempOrder.shipping_status || 'unfulfilled',
@@ -254,7 +281,9 @@ export function buildSubmitPayload(params) {
254
281
  surcharge_fee: summary.surcharge_fee || tempOrder.surcharge_fee || '0.00',
255
282
  note: tempOrder.note || '',
256
283
  schedule_date: scheduleDate,
257
- bookings: bookings,
284
+ bookings: bookings.map(function (booking) {
285
+ return normalizeSubmitBooking(booking);
286
+ }),
258
287
  payments: tempOrder.payments || [],
259
288
  // discount_list: tempOrder.discount_list || [],
260
289
  relation_forms: tempOrder.relation_forms || [],
@@ -85,7 +85,7 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
85
85
  key: "loadProducts",
86
86
  value: function () {
87
87
  var _loadProducts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref) {
88
- var _this$otherParams;
88
+ var _this$otherParams, _this$otherParams2;
89
89
  var _ref$category_ids, category_ids, _ref$product_ids, product_ids, _ref$collection, collection, _ref$menu_list_ids, menu_list_ids, paramsCustomerId, _ref$with_count, with_count, schedule_datetime, schedule_date, cacheId, with_schedule, userPlugin, customer_id, _userPlugin$get, productsData, sortedList;
90
90
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
91
91
  while (1) switch (_context3.prev = _context3.next) {
@@ -129,7 +129,7 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
129
129
  with_count: with_count,
130
130
  // client_schedule_ids: schedule_ids,
131
131
  schedule_date: schedule_date,
132
- application_code: (_this$otherParams = this.otherParams) === null || _this$otherParams === void 0 ? void 0 : _this$otherParams.channel,
132
+ application_code: ((_this$otherParams = this.otherParams) === null || _this$otherParams === void 0 ? void 0 : _this$otherParams.channel) === 'online_store' ? 'online-store' : (_this$otherParams2 = this.otherParams) === null || _this$otherParams2 === void 0 ? void 0 : _this$otherParams2.channel,
133
133
  with_schedule: with_schedule,
134
134
  schedule_datetime: schedule_datetime,
135
135
  is_eject: 1
@@ -310,7 +310,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
310
310
  date: string;
311
311
  status: string;
312
312
  week: string;
313
- weekNum: 0 | 2 | 1 | 4 | 3 | 6 | 5;
313
+ weekNum: 0 | 2 | 1 | 5 | 4 | 3 | 6;
314
314
  }[]>;
315
315
  submitTimeSlot(timeSlots: TimeSliceItem): void;
316
316
  private getScheduleDataByIds;
@@ -632,7 +632,7 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
632
632
  key: "submitScanOrder",
633
633
  value: function () {
634
634
  var _submitScanOrder = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9() {
635
- var _tempOrder$products, result, tempOrder;
635
+ var _this$otherParams4, _this$otherParams5, _this$otherParams6, _this$otherParams7, _tempOrder$products, result, tempOrder;
636
636
  return _regeneratorRuntime().wrap(function _callee9$(_context9) {
637
637
  while (1) switch (_context9.prev = _context9.next) {
638
638
  case 0:
@@ -649,7 +649,11 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
649
649
  case 6:
650
650
  _context9.next = 8;
651
651
  return this.store.order.submitTempOrder({
652
- cacheId: this.cacheId
652
+ cacheId: this.cacheId,
653
+ platform: (_this$otherParams4 = this.otherParams) === null || _this$otherParams4 === void 0 ? void 0 : _this$otherParams4.platform,
654
+ businessCode: (_this$otherParams5 = this.otherParams) === null || _this$otherParams5 === void 0 ? void 0 : _this$otherParams5.businessCode,
655
+ channel: (_this$otherParams6 = this.otherParams) === null || _this$otherParams6 === void 0 ? void 0 : _this$otherParams6.channel,
656
+ type: (_this$otherParams7 = this.otherParams) === null || _this$otherParams7 === void 0 ? void 0 : _this$otherParams7.type
653
657
  });
654
658
  case 8:
655
659
  result = _context9.sent;
@@ -1519,7 +1523,7 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
1519
1523
  }, {
1520
1524
  key: "normalizeResourceState",
1521
1525
  value: function normalizeResourceState(config, hasOrderId) {
1522
- var _this$otherParams4;
1526
+ var _this$otherParams8;
1523
1527
  var orderNumberPrefix = Array.isArray(config === null || config === void 0 ? void 0 : config.order_number_prefix) ? (config === null || config === void 0 ? void 0 : config.order_number_prefix) || [] : [];
1524
1528
  var tableMaxNumber = Number((config === null || config === void 0 ? void 0 : config.table_max_number) || 1);
1525
1529
  var orderCount = toNonNegativeNumber(config === null || config === void 0 ? void 0 : config.order_count);
@@ -1528,7 +1532,7 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
1528
1532
  var relationId = toPositiveString(config === null || config === void 0 ? void 0 : config.relation_id);
1529
1533
  var tableFormId = toPositiveString(config === null || config === void 0 ? void 0 : config.table_form_id);
1530
1534
  // 是否允许加餐
1531
- var allowSnack = ((_this$otherParams4 = this.otherParams) === null || _this$otherParams4 === void 0 || (_this$otherParams4 = _this$otherParams4.dineInConfig) === null || _this$otherParams4 === void 0 ? void 0 : _this$otherParams4['workflow.allow_add_items']) || false;
1535
+ var allowSnack = ((_this$otherParams8 = this.otherParams) === null || _this$otherParams8 === void 0 || (_this$otherParams8 = _this$otherParams8.dineInConfig) === null || _this$otherParams8 === void 0 ? void 0 : _this$otherParams8['workflow.allow_add_items']) || false;
1532
1536
  // 开启同桌验证 - 本期没有这个配置,默认关掉
1533
1537
  var deskmateValid = false;
1534
1538
  var isExclusive = tableMaxNumber > 0 ? tableMaxNumber <= 1 : false;
@@ -1647,7 +1651,7 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
1647
1651
  key: "checkResourceAvailable",
1648
1652
  value: function () {
1649
1653
  var _checkResourceAvailable = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee27(resourceId, hasOrderId) {
1650
- var _this$otherParams5, _this$otherParams5$ge, _config$table_form_re, _config$table_form_re2, _this$otherParams6, _this$store$order4, openData, dineInConfig, shopClosedInfo, config, resourceState, availabilityInfo, tempOrder;
1654
+ var _this$otherParams9, _this$otherParams9$ge, _config$table_form_re, _config$table_form_re2, _this$otherParams10, _this$store$order4, openData, dineInConfig, shopClosedInfo, config, resourceState, availabilityInfo, tempOrder;
1651
1655
  return _regeneratorRuntime().wrap(function _callee27$(_context27) {
1652
1656
  while (1) switch (_context27.prev = _context27.next) {
1653
1657
  case 0:
@@ -1656,7 +1660,7 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
1656
1660
  });
1657
1661
  _context27.prev = 1;
1658
1662
  _context27.next = 4;
1659
- return (_this$otherParams5 = this.otherParams) === null || _this$otherParams5 === void 0 || (_this$otherParams5$ge = _this$otherParams5.getOpenData) === null || _this$otherParams5$ge === void 0 ? void 0 : _this$otherParams5$ge.call(_this$otherParams5, {
1663
+ return (_this$otherParams9 = this.otherParams) === null || _this$otherParams9 === void 0 || (_this$otherParams9$ge = _this$otherParams9.getOpenData) === null || _this$otherParams9$ge === void 0 ? void 0 : _this$otherParams9$ge.call(_this$otherParams9, {
1660
1664
  scope: 'board',
1661
1665
  target: 'dine_in+scan_to_order',
1662
1666
  section_code: ['basic', 'fulfillment', 'reservation', 'sale', 'menu', 'availability', 'workflow']
@@ -1710,7 +1714,7 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
1710
1714
  partyroom_booking: config === null || config === void 0 || (_config$table_form_re2 = config.table_form_record) === null || _config$table_form_re2 === void 0 ? void 0 : _config$table_form_re2.partyroom_booking
1711
1715
  };
1712
1716
  tempOrder = this.ensureTempOrder();
1713
- tempOrder.relation_id = resourceId || ((_this$otherParams6 = this.otherParams) === null || _this$otherParams6 === void 0 ? void 0 : _this$otherParams6.relation_id);
1717
+ tempOrder.relation_id = resourceId || ((_this$otherParams10 = this.otherParams) === null || _this$otherParams10 === void 0 ? void 0 : _this$otherParams10.relation_id);
1714
1718
  tempOrder.table_form_id = resourceState.tableFormId;
1715
1719
  tempOrder.resource_id = resourceId;
1716
1720
  (_this$store$order4 = this.store.order) === null || _this$store$order4 === void 0 || _this$store$order4.persistTempOrder();
@@ -1802,14 +1806,14 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
1802
1806
  key: "getProductList",
1803
1807
  value: function () {
1804
1808
  var _getProductList = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee29() {
1805
- var _this$otherParams7;
1809
+ var _this$otherParams11;
1806
1810
  var menu_list_ids, _this$store$products, res, formattedRes;
1807
1811
  return _regeneratorRuntime().wrap(function _callee29$(_context29) {
1808
1812
  while (1) switch (_context29.prev = _context29.next) {
1809
1813
  case 0:
1810
1814
  this.logMethodStart('getProductList');
1811
1815
  // 可以直接通过配置里的 menu 读取
1812
- menu_list_ids = ((_this$otherParams7 = this.otherParams) === null || _this$otherParams7 === void 0 || (_this$otherParams7 = _this$otherParams7.dineInConfig) === null || _this$otherParams7 === void 0 ? void 0 : _this$otherParams7['menu.associated_menus'].map(function (n) {
1816
+ menu_list_ids = ((_this$otherParams11 = this.otherParams) === null || _this$otherParams11 === void 0 || (_this$otherParams11 = _this$otherParams11.dineInConfig) === null || _this$otherParams11 === void 0 ? void 0 : _this$otherParams11['menu.associated_menus'].map(function (n) {
1813
1817
  return Number(n.value);
1814
1818
  })) || [];
1815
1819
  _context29.prev = 2;
@@ -34,6 +34,10 @@ export declare class VenueBookingImpl extends BaseModule implements Module {
34
34
  private loginEffectDisposers;
35
35
  private customerLoginRefreshInFlight;
36
36
  private customerLoginRefreshIdInFlight;
37
+ private loadAllProductsInFlight;
38
+ private productsLoaded;
39
+ private loadOpenDataConfigInFlight;
40
+ private static readonly OPEN_DATA_CACHE_TTL;
37
41
  private getLoggerContext;
38
42
  private serializeError;
39
43
  private addVenueBookingLog;
@@ -64,6 +68,7 @@ export declare class VenueBookingImpl extends BaseModule implements Module {
64
68
  venueProducts: ProductData[];
65
69
  addonProducts: ProductData[];
66
70
  }>;
71
+ private _doLoadAllProducts;
67
72
  loadVenueProducts(): Promise<ProductData[]>;
68
73
  loadAddonProducts(): Promise<ProductData[]>;
69
74
  getVenueProducts(): ProductData[];
@@ -154,5 +159,15 @@ export declare class VenueBookingImpl extends BaseModule implements Module {
154
159
  private refreshCartValidationPassed;
155
160
  setItemRuleRuntimeConfig(config?: VenueBookingItemRuleRuntimeConfig): Promise<void>;
156
161
  getOtherParams(): Record<string, any>;
162
+ private static readonly UI_STATE_KEY_PREFIX;
163
+ private getUIStateBucketKey;
164
+ private readUIStateBucket;
165
+ private writeUIStateBucket;
166
+ setUIState(key: string, value: any): void;
167
+ getUIState<T = any>(key: string): T | undefined;
168
+ deleteUIState(key: string): void;
157
169
  checkOpenDataAvailability(): Promise<OpenDataAvailabilityResult>;
170
+ setOtherParams(params: Record<string, any>, { cover }?: {
171
+ cover?: boolean;
172
+ }): Promise<void>;
158
173
  }