@pisell/pisellos 2.3.159 → 2.3.161

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.
@@ -74,6 +74,8 @@ export interface OpenDataConfig {
74
74
  'sale.enable_item_rules'?: boolean;
75
75
  'sale.enable_short_number'?: boolean;
76
76
  'sale.short_number_digits'?: number;
77
+ 'sale.maximum_number'?: number | string | null;
78
+ 'sale.pad_with_leading_zeros'?: boolean | null;
77
79
  'sale.short_number_random'?: boolean;
78
80
  'sale.short_number_daily_reset'?: boolean;
79
81
  'sale.short_number_start_number'?: number;
@@ -3691,7 +3691,7 @@ var Server = /*#__PURE__*/function () {
3691
3691
  case 0:
3692
3692
  data = _ref64.data;
3693
3693
  _context43.next = 3;
3694
- return (_this8$order = _this8.order) === null || _this8$order === void 0 ? void 0 : _this8$order.getLocalOrderByLookup(data === null || data === void 0 ? void 0 : data.sale_id);
3694
+ return (_this8$order = _this8.order) === null || _this8$order === void 0 ? void 0 : _this8$order.getLocalOrderForPaymentReadiness(data === null || data === void 0 ? void 0 : data.sale_id);
3695
3695
  case 3:
3696
3696
  _context43.t0 = _context43.sent;
3697
3697
  return _context43.abrupt("return", {
@@ -8133,7 +8133,7 @@ var Server = /*#__PURE__*/function () {
8133
8133
  key: "buildOrderSalesDetailBackendPath",
8134
8134
  value: function buildOrderSalesDetailBackendPath(lookup, data) {
8135
8135
  var rawWith = data && _typeof(data) === 'object' ? data.with : undefined;
8136
- var withFields = Array.isArray(rawWith) && rawWith.length > 0 ? rawWith : ['products', 'scheduleEvents'];
8136
+ var withFields = Array.isArray(rawWith) && rawWith.length > 0 ? rawWith : ['all'];
8137
8137
  var searchParams = new URLSearchParams();
8138
8138
  withFields.forEach(function (field) {
8139
8139
  if (field === undefined || field === null || field === '') return;
@@ -105,6 +105,8 @@ export declare class OrderModule extends BaseModule implements Module {
105
105
  getOrderByOrderId(orderId: OrderId): OrderData | undefined;
106
106
  private buildLocalPaymentOrderLogContext;
107
107
  getLocalOrderFromMemoryByLookup(lookup: OrderId): OrderData | null;
108
+ /** Read-only payment gate lookup; never hydrate the whole order list on a miss. */
109
+ getLocalOrderForPaymentReadiness(lookup: OrderId): Promise<OrderData | null>;
108
110
  getLocalOrderByLookup(lookup: OrderId, options?: {
109
111
  operationId?: string;
110
112
  }): Promise<OrderData | null>;