@pisell/pisellos 2.3.200 → 2.3.202

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, 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(): "duration" | "session" | "normal";
52
+ getProductType(): "normal" | "duration" | "session";
53
53
  }
@@ -438,9 +438,14 @@ export var ProductList = /*#__PURE__*/function (_BaseModule) {
438
438
  channel = (_this$otherParams5 = this.otherParams) === null || _this$otherParams5 === void 0 ? void 0 : _this$otherParams5.channel;
439
439
  _context7.next = 5;
440
440
  return this.request.post('/product/query', _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({
441
+ // Bypass the endpoint cache when seeding this pool; subsequent reads still
442
+ // reuse the venue catalog session's single local snapshot.
443
+ force_ignore_cache_flag: 1,
441
444
  // The customer endpoint otherwise filters out future/variant members.
442
445
  open_quotation: 0,
443
446
  open_bundle: 1,
447
+ // Preserve the same deposit source data used by the existing sales flow.
448
+ open_deposit: 1,
444
449
  with: _toConsumableArray(PRODUCT_QUERY_DATA_VARIANT_RELATIONS),
445
450
  with_count: ['bundleGroup', 'optionGroup'],
446
451
  with_schedule: 1,
@@ -389,7 +389,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
389
389
  };
390
390
  setOtherData(key: string, value: any): void;
391
391
  getOtherData(key: string): any;
392
- getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
392
+ getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
393
393
  /**
394
394
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
395
395
  *
@@ -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(): "duration" | "session" | "normal";
52
+ getProductType(): "normal" | "duration" | "session";
53
53
  }
@@ -276,9 +276,14 @@ class ProductList extends _BaseModule.BaseModule {
276
276
  };
277
277
  const channel = this.otherParams?.channel;
278
278
  const response = await this.request.post('/product/query', {
279
+ // Bypass the endpoint cache when seeding this pool; subsequent reads still
280
+ // reuse the venue catalog session's single local snapshot.
281
+ force_ignore_cache_flag: 1,
279
282
  // The customer endpoint otherwise filters out future/variant members.
280
283
  open_quotation: 0,
281
284
  open_bundle: 1,
285
+ // Preserve the same deposit source data used by the existing sales flow.
286
+ open_deposit: 1,
282
287
  with: [..._clientDataVariants.PRODUCT_QUERY_DATA_VARIANT_RELATIONS],
283
288
  with_count: ['bundleGroup', 'optionGroup'],
284
289
  with_schedule: 1,
@@ -389,7 +389,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
389
389
  };
390
390
  setOtherData(key: string, value: any): void;
391
391
  getOtherData(key: string): any;
392
- getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
392
+ getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
393
393
  /**
394
394
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
395
395
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.3.200",
4
+ "version": "2.3.202",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",