@pisell/pisellos 0.0.353 → 0.0.354

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.
@@ -342,7 +342,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
342
342
  };
343
343
  setOtherData(key: string, value: any): void;
344
344
  getOtherData(key: string): any;
345
- getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
345
+ getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
346
346
  /**
347
347
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
348
348
  *
@@ -2756,7 +2756,9 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
2756
2756
  key: "checkMaxDurationCapacity",
2757
2757
  value: function checkMaxDurationCapacity() {
2758
2758
  var _this15 = this;
2759
- var cartItems = cloneDeep(this.store.cart.getItems());
2759
+ var cartItems = this.store.cart.getItems().filter(function (item) {
2760
+ return !isNormalProduct(item._productOrigin);
2761
+ });
2760
2762
  if (cartItems.length === 0) return {
2761
2763
  success: true,
2762
2764
  minAvailableCount: 0
@@ -342,7 +342,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
342
342
  };
343
343
  setOtherData(key: string, value: any): void;
344
344
  getOtherData(key: string): any;
345
- getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
345
+ getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
346
346
  /**
347
347
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
348
348
  *
@@ -1937,7 +1937,7 @@ var BookingByStepImpl = class extends import_BaseModule.BaseModule {
1937
1937
  }
1938
1938
  checkMaxDurationCapacity() {
1939
1939
  var _a, _b;
1940
- const cartItems = (0, import_lodash_es.cloneDeep)(this.store.cart.getItems());
1940
+ const cartItems = this.store.cart.getItems().filter((item) => !(0, import_utils5.isNormalProduct)(item._productOrigin));
1941
1941
  if (cartItems.length === 0)
1942
1942
  return { success: true, minAvailableCount: 0 };
1943
1943
  const itemsWithTime = [];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.353",
4
+ "version": "0.0.354",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",