@pisell/pisellos 2.2.169 → 2.2.170

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.
@@ -0,0 +1,9 @@
1
+ // 导出评估器
2
+ export { PromotionEvaluator } from "./evaluator";
3
+
4
+ // 导出适配器
5
+ export { PromotionAdapter } from "./adapter";
6
+ export { default } from "./adapter";
7
+
8
+ // 导出策略配置示例常量
9
+ export { X_ITEMS_FOR_Y_PRICE_STRATEGY, BUY_X_GET_Y_FREE_STRATEGY } from "./examples";
@@ -185,7 +185,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
185
185
  private logSubmitBackendRejected;
186
186
  syncPaymentsToOrder<T = any>(params: SyncPaymentsToOrderParams): Promise<SyncPaymentsToOrderResult<T>>;
187
187
  createOrder(params: CommitOrderParams['query']): {
188
- type: "appointment_booking" | "virtual";
188
+ type: "virtual" | "appointment_booking";
189
189
  platform: string;
190
190
  sales_channel: string;
191
191
  order_sales_channel: string;
@@ -606,7 +606,7 @@ export function createDefaultTempOrder(params) {
606
606
  };
607
607
  }
608
608
  export function buildSubmitPayload(params) {
609
- var _ref10, _tempOrder$is_price_i, _tempOrder$is_deposit;
609
+ var _tempOrder$customer_i, _ref10, _tempOrder$is_price_i, _tempOrder$is_deposit;
610
610
  var tempOrder = params.tempOrder,
611
611
  cacheId = params.cacheId,
612
612
  _params$now = params.now,
@@ -648,6 +648,7 @@ export function buildSubmitPayload(params) {
648
648
  }
649
649
  }
650
650
  var payload = _objectSpread(_objectSpread({}, tempOrderRest), {}, {
651
+ customer_id: (_tempOrder$customer_i = tempOrder.customer_id) !== null && _tempOrder$customer_i !== void 0 ? _tempOrder$customer_i : 0,
651
652
  order_number: null,
652
653
  shop_order_number: null,
653
654
  shop_full_order_number: null,
@@ -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 | 2 | 1 | 5 | 3 | 4 | 6;
314
+ weekNum: 0 | 1 | 2 | 3 | 4 | 5 | 6;
315
315
  }[]>;
316
316
  submitTimeSlot(timeSlots: TimeSliceItem): void;
317
317
  private getScheduleDataByIds;
@@ -260,7 +260,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
260
260
  * 获取当前的客户搜索条件
261
261
  * @returns 当前搜索条件
262
262
  */
263
- getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
263
+ getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
264
264
  /**
265
265
  * 获取客户列表状态(包含滚动加载相关状态)
266
266
  * @returns 客户状态
@@ -185,7 +185,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
185
185
  private logSubmitBackendRejected;
186
186
  syncPaymentsToOrder<T = any>(params: SyncPaymentsToOrderParams): Promise<SyncPaymentsToOrderResult<T>>;
187
187
  createOrder(params: CommitOrderParams['query']): {
188
- type: "appointment_booking" | "virtual";
188
+ type: "virtual" | "appointment_booking";
189
189
  platform: string;
190
190
  sales_channel: string;
191
191
  order_sales_channel: string;
@@ -576,6 +576,7 @@ function buildSubmitPayload(params) {
576
576
  }
577
577
  const payload = {
578
578
  ...tempOrderRest,
579
+ customer_id: tempOrder.customer_id ?? 0,
579
580
  order_number: null,
580
581
  shop_order_number: null,
581
582
  shop_full_order_number: null,
@@ -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 | 2 | 1 | 5 | 3 | 4 | 6;
314
+ weekNum: 0 | 1 | 2 | 3 | 4 | 5 | 6;
315
315
  }[]>;
316
316
  submitTimeSlot(timeSlots: TimeSliceItem): void;
317
317
  private getScheduleDataByIds;
@@ -260,7 +260,7 @@ export declare class BookingTicketImpl extends BaseSalesImpl implements Module {
260
260
  * 获取当前的客户搜索条件
261
261
  * @returns 当前搜索条件
262
262
  */
263
- getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
263
+ getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
264
264
  /**
265
265
  * 获取客户列表状态(包含滚动加载相关状态)
266
266
  * @returns 客户状态
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.2.169",
4
+ "version": "2.2.170",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",