@pisell/pisellos 2.2.126 → 2.2.128

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.
@@ -517,7 +517,7 @@ var Server = /*#__PURE__*/function () {
517
517
  data: null
518
518
  });
519
519
  case 16:
520
- backendPath = "/shop/order/sales/".concat(encodeURIComponent(orderId), "?with%5B%5D=products&with%5B%5D=scheduleEvents&with%5B%5D=customer");
520
+ backendPath = "/shop/order/sales/".concat(encodeURIComponent(orderId), "?with%5B%5D=all");
521
521
  _context7.prev = 17;
522
522
  _context7.next = 20;
523
523
  return _this.app.request.get(backendPath, undefined, {
@@ -252,7 +252,7 @@ export function flattenOrdersToBookings(orders) {
252
252
  var booking = bookings[j];
253
253
  result.push(_objectSpread(_objectSpread({}, booking), {}, {
254
254
  order: orderInfo,
255
- products: productsForBooking(order, booking)
255
+ products: order.products
256
256
  }));
257
257
  }
258
258
  }
@@ -314,7 +314,7 @@ export function filterBookingsFromOrders(orders, filters) {
314
314
  }
315
315
  paginatedList.push(_objectSpread(_objectSpread({}, booking), {}, {
316
316
  order: orderInfo,
317
- products: productsForBooking(order, booking)
317
+ products: order.products
318
318
  }));
319
319
  }
320
320
  totalCount++;
@@ -396,7 +396,7 @@ export function filterBookings(bookings, filters) {
396
396
  if (!matchBooking(booking, order, ctx)) continue;
397
397
  if (totalCount >= startIndex && paginatedList.length < size) {
398
398
  paginatedList.push(_objectSpread(_objectSpread({}, booking), {}, {
399
- products: productsForBooking(booking.order, booking)
399
+ products: booking.order.products
400
400
  }));
401
401
  }
402
402
  totalCount++;
@@ -347,7 +347,7 @@ var Server = class {
347
347
  }
348
348
  const backendPath = `/shop/order/sales/${encodeURIComponent(
349
349
  orderId
350
- )}?with%5B%5D=products&with%5B%5D=scheduleEvents&with%5B%5D=customer`;
350
+ )}?with%5B%5D=all`;
351
351
  try {
352
352
  const response = await this.app.request.get(backendPath, void 0, {
353
353
  isShopApi: true
@@ -257,7 +257,7 @@ function flattenOrdersToBookings(orders) {
257
257
  result.push({
258
258
  ...booking,
259
259
  order: orderInfo,
260
- products: productsForBooking(order, booking)
260
+ products: order.products
261
261
  });
262
262
  }
263
263
  }
@@ -298,7 +298,7 @@ function filterBookingsFromOrders(orders, filters) {
298
298
  paginatedList.push({
299
299
  ...booking,
300
300
  order: orderInfo,
301
- products: productsForBooking(order, booking)
301
+ products: order.products
302
302
  });
303
303
  }
304
304
  totalCount++;
@@ -364,7 +364,7 @@ function filterBookings(bookings, filters) {
364
364
  if (totalCount >= startIndex && paginatedList.length < size) {
365
365
  paginatedList.push({
366
366
  ...booking,
367
- products: productsForBooking(booking.order, booking)
367
+ products: booking.order.products
368
368
  });
369
369
  }
370
370
  totalCount++;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.2.126",
4
+ "version": "2.2.128",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",