@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.
- package/dist/model/strategy/adapter/promotion/index.js +9 -0
- package/dist/modules/Order/index.d.ts +1 -1
- package/dist/modules/Order/utils.js +2 -1
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/BookingTicket/index.d.ts +1 -1
- package/lib/modules/Order/index.d.ts +1 -1
- package/lib/modules/Order/utils.js +1 -0
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/BookingTicket/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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: "
|
|
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 |
|
|
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, "
|
|
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: "
|
|
188
|
+
type: "virtual" | "appointment_booking";
|
|
189
189
|
platform: string;
|
|
190
190
|
sales_channel: string;
|
|
191
191
|
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 |
|
|
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, "
|
|
263
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
|
|
264
264
|
/**
|
|
265
265
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
266
266
|
* @returns 客户状态
|