@pisell/pisellos 0.0.561 → 0.0.562
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.
|
@@ -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";
|
|
@@ -70,6 +70,7 @@ export var HolderModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
70
70
|
this.core = core;
|
|
71
71
|
this.store = options.store;
|
|
72
72
|
this.request = this.core.getPlugin('request');
|
|
73
|
+
this.window = this.core.getPlugin('window');
|
|
73
74
|
if ((_options$initialState = options.initialState) !== null && _options$initialState !== void 0 && _options$initialState.holderMap) {
|
|
74
75
|
this.commitFormMap(cloneDeep(options.initialState.holderMap));
|
|
75
76
|
Object.keys(this.store.holderMap).forEach(function (formId) {
|
|
@@ -88,7 +89,7 @@ export var HolderModule = /*#__PURE__*/function (_BaseModule) {
|
|
|
88
89
|
if ((_options$otherParams2 = options.otherParams) !== null && _options$otherParams2 !== void 0 && _options$otherParams2.fatherModule) {
|
|
89
90
|
this.fatherModule = options.otherParams.fatherModule;
|
|
90
91
|
}
|
|
91
|
-
case
|
|
92
|
+
case 8:
|
|
92
93
|
case "end":
|
|
93
94
|
return _context.stop();
|
|
94
95
|
}
|
|
@@ -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 |
|
|
329
|
+
weekNum: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
330
330
|
}[]>;
|
|
331
331
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
332
332
|
private getScheduleDataByIds;
|
|
@@ -44,6 +44,7 @@ var HolderModule = class extends import_BaseModule.BaseModule {
|
|
|
44
44
|
this.core = core;
|
|
45
45
|
this.store = options.store;
|
|
46
46
|
this.request = this.core.getPlugin("request");
|
|
47
|
+
this.window = this.core.getPlugin("window");
|
|
47
48
|
if ((_a = options.initialState) == null ? void 0 : _a.holderMap) {
|
|
48
49
|
this.commitFormMap((0, import_lodash_es.cloneDeep)(options.initialState.holderMap));
|
|
49
50
|
Object.keys(this.store.holderMap).forEach((formId) => {
|
|
@@ -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 |
|
|
329
|
+
weekNum: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
330
330
|
}[]>;
|
|
331
331
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
332
332
|
private getScheduleDataByIds;
|