@pisell/pisellos 2.2.240 → 2.2.242
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 +0 -9
- package/dist/modules/Order/index.d.ts +1 -1
- package/dist/modules/Order/index.js +12 -7
- 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/index.js +5 -0
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/BookingTicket/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,9 +0,0 @@
|
|
|
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";
|
|
@@ -416,7 +416,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
416
416
|
generateIdempotencyToken(): string;
|
|
417
417
|
syncPaymentsToOrder<T = any>(params: SyncPaymentsToOrderParams): Promise<SyncPaymentsToOrderResult<T>>;
|
|
418
418
|
createOrder(params: CommitOrderParams['query']): {
|
|
419
|
-
type: "
|
|
419
|
+
type: "virtual" | "appointment_booking";
|
|
420
420
|
platform: string;
|
|
421
421
|
sales_channel: string;
|
|
422
422
|
order_sales_channel: string;
|
|
@@ -4022,26 +4022,31 @@ export var OrderModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
4022
4022
|
return _context29.abrupt("return", result);
|
|
4023
4023
|
case 42:
|
|
4024
4024
|
submittedOrderId = this.extractOrderIdFromSubmitResult(result);
|
|
4025
|
+
this.logInfo('runSubmitTempOrder: 提交成功', {
|
|
4026
|
+
submittedOrderId: submittedOrderId,
|
|
4027
|
+
result: result,
|
|
4028
|
+
tempOrder: tempOrder
|
|
4029
|
+
});
|
|
4025
4030
|
if (!(submittedOrderId !== null && submittedOrderId !== undefined)) {
|
|
4026
|
-
_context29.next =
|
|
4031
|
+
_context29.next = 51;
|
|
4027
4032
|
break;
|
|
4028
4033
|
}
|
|
4029
4034
|
tempOrder.order_id = submittedOrderId;
|
|
4030
4035
|
resultRecord = result;
|
|
4031
|
-
_context29.next =
|
|
4036
|
+
_context29.next = 49;
|
|
4032
4037
|
return this.markLocalOrderSynced(submittedOrderId, (resultRecord === null || resultRecord === void 0 ? void 0 : resultRecord.data) || resultRecord || {});
|
|
4033
|
-
case
|
|
4034
|
-
_context29.next =
|
|
4038
|
+
case 49:
|
|
4039
|
+
_context29.next = 52;
|
|
4035
4040
|
break;
|
|
4036
|
-
case
|
|
4041
|
+
case 51:
|
|
4037
4042
|
if (this.isLocalPendingSubmitResult(result)) {
|
|
4038
4043
|
this.store.syncState = 'local';
|
|
4039
4044
|
} else {
|
|
4040
4045
|
this.store.syncState = 'submitted';
|
|
4041
4046
|
}
|
|
4042
|
-
case 51:
|
|
4043
|
-
return _context29.abrupt("return", result);
|
|
4044
4047
|
case 52:
|
|
4048
|
+
return _context29.abrupt("return", result);
|
|
4049
|
+
case 53:
|
|
4045
4050
|
case "end":
|
|
4046
4051
|
return _context29.stop();
|
|
4047
4052
|
}
|
|
@@ -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 |
|
|
314
|
+
weekNum: 0 | 2 | 1 | 6 | 3 | 4 | 5;
|
|
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, "
|
|
325
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
|
|
326
326
|
/**
|
|
327
327
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
328
328
|
* @returns 客户状态
|
|
@@ -416,7 +416,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
416
416
|
generateIdempotencyToken(): string;
|
|
417
417
|
syncPaymentsToOrder<T = any>(params: SyncPaymentsToOrderParams): Promise<SyncPaymentsToOrderResult<T>>;
|
|
418
418
|
createOrder(params: CommitOrderParams['query']): {
|
|
419
|
-
type: "
|
|
419
|
+
type: "virtual" | "appointment_booking";
|
|
420
420
|
platform: string;
|
|
421
421
|
sales_channel: string;
|
|
422
422
|
order_sales_channel: string;
|
|
@@ -2929,6 +2929,11 @@ var OrderModule = class extends import_BaseModule.BaseModule {
|
|
|
2929
2929
|
return result;
|
|
2930
2930
|
}
|
|
2931
2931
|
const submittedOrderId = this.extractOrderIdFromSubmitResult(result);
|
|
2932
|
+
this.logInfo("runSubmitTempOrder: 提交成功", {
|
|
2933
|
+
submittedOrderId,
|
|
2934
|
+
result,
|
|
2935
|
+
tempOrder
|
|
2936
|
+
});
|
|
2932
2937
|
if (submittedOrderId !== null && submittedOrderId !== void 0) {
|
|
2933
2938
|
tempOrder.order_id = submittedOrderId;
|
|
2934
2939
|
const resultRecord = result;
|
|
@@ -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 |
|
|
314
|
+
weekNum: 0 | 2 | 1 | 6 | 3 | 4 | 5;
|
|
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, "
|
|
325
|
+
getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
|
|
326
326
|
/**
|
|
327
327
|
* 获取客户列表状态(包含滚动加载相关状态)
|
|
328
328
|
* @returns 客户状态
|