@pisell/pisellos 2.3.13 → 2.3.15

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.
@@ -458,7 +458,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
458
458
  generateIdempotencyToken(): string;
459
459
  syncPaymentsToOrder<T = any>(params: SyncPaymentsToOrderParams): Promise<SyncPaymentsToOrderResult<T>>;
460
460
  createOrder(params: CommitOrderParams['query']): {
461
- type: "virtual" | "appointment_booking";
461
+ type: "appointment_booking" | "virtual";
462
462
  platform: string;
463
463
  sales_channel: string;
464
464
  order_sales_channel: string;
@@ -311,7 +311,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
311
311
  date: string;
312
312
  status: string;
313
313
  week: string;
314
- weekNum: 0 | 1 | 2 | 6 | 3 | 4 | 5;
314
+ weekNum: 0 | 5 | 1 | 2 | 3 | 6 | 4;
315
315
  }[]>;
316
316
  submitTimeSlot(timeSlots: TimeSliceItem): void;
317
317
  private getScheduleDataByIds;
@@ -322,7 +322,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
322
322
  * 获取当前的客户搜索条件
323
323
  * @returns 当前搜索条件
324
324
  */
325
- getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
325
+ getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
326
326
  /**
327
327
  * 获取客户列表状态(包含滚动加载相关状态)
328
328
  * @returns 客户状态
@@ -2707,8 +2707,9 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseSalesImpl) {
2707
2707
  vouchers: nextVouchers
2708
2708
  }));
2709
2709
  case 11:
2710
+ this.core.effects.emit("".concat(this.name, ":onVouchersChange"), {});
2710
2711
  if (!(batchMetadata.length === 0)) {
2711
- _context33.next = 13;
2712
+ _context33.next = 14;
2712
2713
  break;
2713
2714
  }
2714
2715
  return _context33.abrupt("return", {
@@ -2717,7 +2718,7 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseSalesImpl) {
2717
2718
  message: '',
2718
2719
  data: []
2719
2720
  });
2720
- case 13:
2721
+ case 14:
2721
2722
  identity = this.getOrderIdentity();
2722
2723
  externalSaleNumber = (tempOrder === null || tempOrder === void 0 ? void 0 : tempOrder.external_sale_number) || (identity === null || identity === void 0 ? void 0 : identity.externalSaleNumber) || undefined;
2723
2724
  orderId = (_ref20 = (_tempOrder$order_id2 = tempOrder === null || tempOrder === void 0 ? void 0 : tempOrder.order_id) !== null && _tempOrder$order_id2 !== void 0 ? _tempOrder$order_id2 : identity === null || identity === void 0 ? void 0 : identity.orderId) !== null && _ref20 !== void 0 ? _ref20 : undefined;
@@ -2730,7 +2731,7 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseSalesImpl) {
2730
2731
  }, {
2731
2732
  osServer: true
2732
2733
  }));
2733
- case 18:
2734
+ case 19:
2734
2735
  case "end":
2735
2736
  return _context33.stop();
2736
2737
  }
@@ -458,7 +458,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
458
458
  generateIdempotencyToken(): string;
459
459
  syncPaymentsToOrder<T = any>(params: SyncPaymentsToOrderParams): Promise<SyncPaymentsToOrderResult<T>>;
460
460
  createOrder(params: CommitOrderParams['query']): {
461
- type: "virtual" | "appointment_booking";
461
+ type: "appointment_booking" | "virtual";
462
462
  platform: string;
463
463
  sales_channel: string;
464
464
  order_sales_channel: string;
@@ -311,7 +311,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
311
311
  date: string;
312
312
  status: string;
313
313
  week: string;
314
- weekNum: 0 | 1 | 2 | 6 | 3 | 4 | 5;
314
+ weekNum: 0 | 5 | 1 | 2 | 3 | 6 | 4;
315
315
  }[]>;
316
316
  submitTimeSlot(timeSlots: TimeSliceItem): void;
317
317
  private getScheduleDataByIds;
@@ -322,7 +322,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
322
322
  * 获取当前的客户搜索条件
323
323
  * @returns 当前搜索条件
324
324
  */
325
- getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
325
+ getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
326
326
  /**
327
327
  * 获取客户列表状态(包含滚动加载相关状态)
328
328
  * @returns 客户状态
@@ -1595,6 +1595,7 @@ var BookingTicketImpl = class extends import_BaseSales.BaseSalesImpl {
1595
1595
  vouchers: nextVouchers
1596
1596
  });
1597
1597
  }
1598
+ this.core.effects.emit(`${this.name}:onVouchersChange`, {});
1598
1599
  if (batchMetadata.length === 0) {
1599
1600
  return {
1600
1601
  code: 200,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.3.13",
4
+ "version": "2.3.15",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",