@pisell/pisellos 2.3.140 → 2.3.141
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/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/UnifiedBookingSales/index.js +6 -2
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/UnifiedBookingSales/index.js +2 -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, ITEM_REWARD_STRATEGY } from "./examples";
|
|
@@ -326,7 +326,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
326
326
|
date: string;
|
|
327
327
|
status: string;
|
|
328
328
|
week: string;
|
|
329
|
-
weekNum: 0 | 2 | 1 |
|
|
329
|
+
weekNum: 0 | 2 | 1 | 6 | 4 | 5 | 3;
|
|
330
330
|
}[]>;
|
|
331
331
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
332
332
|
private getScheduleDataByIds;
|
|
@@ -1369,7 +1369,9 @@ export var UnifiedBookingSalesImpl = /*#__PURE__*/function (_BookingTicket) {
|
|
|
1369
1369
|
throw new Error('Store settings changed. Please try again.');
|
|
1370
1370
|
case 12:
|
|
1371
1371
|
this.captureAvailabilityScheduleCatalog();
|
|
1372
|
-
|
|
1372
|
+
_context.next = 15;
|
|
1373
|
+
return this.ensureAllergyItemRuleConfigsLoaded();
|
|
1374
|
+
case 15:
|
|
1373
1375
|
case "end":
|
|
1374
1376
|
return _context.stop();
|
|
1375
1377
|
}
|
|
@@ -2648,7 +2650,9 @@ export var UnifiedBookingSalesImpl = /*#__PURE__*/function (_BookingTicket) {
|
|
|
2648
2650
|
return _context18.stop();
|
|
2649
2651
|
}
|
|
2650
2652
|
}, _callee18);
|
|
2651
|
-
}))()
|
|
2653
|
+
}))().catch(function () {
|
|
2654
|
+
return [];
|
|
2655
|
+
});
|
|
2652
2656
|
return _context19.abrupt("return", this.allergyItemRuleConfigsPromise);
|
|
2653
2657
|
case 6:
|
|
2654
2658
|
case "end":
|
|
@@ -326,7 +326,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
326
326
|
date: string;
|
|
327
327
|
status: string;
|
|
328
328
|
week: string;
|
|
329
|
-
weekNum: 0 | 2 | 1 |
|
|
329
|
+
weekNum: 0 | 2 | 1 | 6 | 4 | 5 | 3;
|
|
330
330
|
}[]>;
|
|
331
331
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
332
332
|
private getScheduleDataByIds;
|
|
@@ -1237,6 +1237,7 @@ class UnifiedBookingSalesImpl extends _BookingTicket.BookingTicket {
|
|
|
1237
1237
|
throw new Error('Store settings changed. Please try again.');
|
|
1238
1238
|
}
|
|
1239
1239
|
this.captureAvailabilityScheduleCatalog();
|
|
1240
|
+
await this.ensureAllergyItemRuleConfigsLoaded();
|
|
1240
1241
|
}
|
|
1241
1242
|
getSubmitOrderSalesChannel() {
|
|
1242
1243
|
const channel = String(this.otherParams?.channel ?? '').trim();
|
|
@@ -1937,7 +1938,7 @@ class UnifiedBookingSalesImpl extends _BookingTicket.BookingTicket {
|
|
|
1937
1938
|
this.allergyItemRuleConfigs = loaded;
|
|
1938
1939
|
this.allergyItemRuleEvaluator.setStrategyConfigs(loaded);
|
|
1939
1940
|
return loaded;
|
|
1940
|
-
})();
|
|
1941
|
+
})().catch(() => []);
|
|
1941
1942
|
return this.allergyItemRuleConfigsPromise;
|
|
1942
1943
|
}
|
|
1943
1944
|
|