@pisell/pisellos 2.2.126 → 2.2.127

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
  }
@@ -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
  }
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.127",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",