@pisell/pisellos 0.10.82 → 0.10.84
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/Product/index.d.ts +1 -1
- package/dist/modules/ProductList/index.js +5 -2
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +789 -705
- package/dist/solution/BookingByStep/index.d.ts +2 -2
- package/dist/solution/BookingTicket/index.d.ts +2 -14
- package/dist/solution/UnifiedBookingSales/index.d.ts +3 -0
- package/dist/solution/UnifiedBookingSales/index.js +70 -55
- package/dist/solution/UnifiedBookingSales/types.d.ts +4 -2
- package/lib/model/strategy/adapter/promotion/index.js +1 -46
- package/lib/modules/Product/index.d.ts +1 -1
- package/lib/modules/ProductList/index.js +4 -1
- package/lib/server/index.d.ts +1 -0
- package/lib/server/index.js +39 -0
- package/lib/solution/BookingByStep/index.d.ts +2 -2
- package/lib/solution/BookingTicket/index.d.ts +2 -14
- package/lib/solution/UnifiedBookingSales/index.d.ts +3 -0
- package/lib/solution/UnifiedBookingSales/index.js +19 -7
- package/lib/solution/UnifiedBookingSales/types.d.ts +4 -2
- 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, ITEM_REWARD_STRATEGY } from "./examples";
|
|
@@ -49,5 +49,5 @@ export declare class Product extends BaseModule implements Module {
|
|
|
49
49
|
getCategories(): ProductCategory[];
|
|
50
50
|
setOtherParams(key: string, value: any): void;
|
|
51
51
|
getOtherParams(): any;
|
|
52
|
-
getProductType(): "
|
|
52
|
+
getProductType(): "duration" | "session" | "normal";
|
|
53
53
|
}
|
|
@@ -418,7 +418,7 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
|
|
|
418
418
|
key: "loadVenueCatalogPool",
|
|
419
419
|
value: (function () {
|
|
420
420
|
var _loadVenueCatalogPool = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7() {
|
|
421
|
-
var _this$otherParams5, _params$product_ids, _params$category_ids, _params$extension_typ, _ref4, _data$total;
|
|
421
|
+
var _this$otherParams5, _params$product_ids, _params$category_ids, _params$extension_typ, _ref4, _ref5, _data$total;
|
|
422
422
|
var params,
|
|
423
423
|
channelMap,
|
|
424
424
|
channel,
|
|
@@ -469,6 +469,9 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
|
|
|
469
469
|
} : {}), {}, {
|
|
470
470
|
front_end_cache_id: params.cacheId
|
|
471
471
|
}), {
|
|
472
|
+
// Core dispatches Kiosk to its local product query; PC/H5 without that
|
|
473
|
+
// route keep using HTTP. open_quotation: 0 preserves the raw venue pool.
|
|
474
|
+
osServer: true,
|
|
472
475
|
useCache: false,
|
|
473
476
|
customToast: function customToast() {}
|
|
474
477
|
});
|
|
@@ -483,7 +486,7 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
|
|
|
483
486
|
code: 'VENUE_CATALOG_LOAD_FAILED'
|
|
484
487
|
});
|
|
485
488
|
case 9:
|
|
486
|
-
total = (_ref4 = (_data$total = data.total) !== null && _data$total !== void 0 ? _data$total : data.total_count) !== null && _ref4 !== void 0 ? _ref4 : data.
|
|
489
|
+
total = (_ref4 = (_ref5 = (_data$total = data.total) !== null && _data$total !== void 0 ? _data$total : data.total_count) !== null && _ref5 !== void 0 ? _ref5 : data.total_num) !== null && _ref4 !== void 0 ? _ref4 : data.count;
|
|
487
490
|
if (!(total != null && Number.isFinite(Number(total)) && Number(total) > data.list.length || total == null && data.list.length >= 500)) {
|
|
488
491
|
_context7.next = 12;
|
|
489
492
|
break;
|
package/dist/server/index.d.ts
CHANGED
|
@@ -286,6 +286,7 @@ declare class Server {
|
|
|
286
286
|
* 存储订阅者信息,便于数据变更时推送最新结果
|
|
287
287
|
*/
|
|
288
288
|
private handleProductQuery;
|
|
289
|
+
private queryRawKioskProductPool;
|
|
289
290
|
/**
|
|
290
291
|
* ProductList callers such as standalone retail pages do not always have a selected schedule.
|
|
291
292
|
* In that case query against the current local time so menu availability can still be evaluated.
|