@pisell/pisellos 2.1.147 → 2.1.148
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";
|
|
@@ -1390,11 +1390,12 @@ export var ScanOrderImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
1390
1390
|
})
|
|
1391
1391
|
} : undefined;
|
|
1392
1392
|
var ruleProductUid = ruleProduct ? createUuidV4() : undefined;
|
|
1393
|
-
// 有 collect_pax 时 booking/resource capacity 都代表本次 pax;否则使用资源占用兜底值。
|
|
1393
|
+
// 有 collect_pax 时 booking/resource capacity 与 number 都代表本次 pax;否则使用资源占用兜底值。
|
|
1394
1394
|
var bookingCapacityValue = resourceCapacityValue;
|
|
1395
1395
|
var bookingCapacityDimensionId = (_pickFirstCustomCapac = pickFirstCustomCapacityDimensionId(_this5.enabledReservationRuleProducts)) !== null && _pickFirstCustomCapac !== void 0 ? _pickFirstCustomCapac : 0;
|
|
1396
1396
|
var nextBookings = (payload.bookings || []).map(function (booking, idx) {
|
|
1397
1397
|
return _objectSpread(_objectSpread(_objectSpread({}, booking), {}, {
|
|
1398
|
+
number: bookingCapacityValue,
|
|
1398
1399
|
appointment_status: 'started',
|
|
1399
1400
|
metadata: _objectSpread(_objectSpread(_objectSpread({}, booking.metadata || {}), resourceSelectType ? {
|
|
1400
1401
|
resource_select_type: resourceSelectType
|
|
@@ -867,6 +867,7 @@ var _ScanOrderImpl = class extends import_BaseModule.BaseModule {
|
|
|
867
867
|
const bookingCapacityDimensionId = (0, import_utils.pickFirstCustomCapacityDimensionId)(this.enabledReservationRuleProducts) ?? 0;
|
|
868
868
|
const nextBookings = (payload.bookings || []).map((booking, idx) => ({
|
|
869
869
|
...booking,
|
|
870
|
+
number: bookingCapacityValue,
|
|
870
871
|
appointment_status: "started",
|
|
871
872
|
metadata: {
|
|
872
873
|
...booking.metadata || {},
|