@pisell/pisellos 2.2.65 → 2.2.66

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.
@@ -164,7 +164,7 @@ export var CustomerModule = /*#__PURE__*/function (_BaseModule) {
164
164
  return this.request.get(url, queryParams, {
165
165
  cache: {
166
166
  mode: RequestModeENUM.REMOTE_LOCAL,
167
- type: "indexDB"
167
+ type: "memory"
168
168
  }
169
169
  });
170
170
  case 6:
@@ -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
  }
@@ -207,7 +207,7 @@ export var ProductsModule = /*#__PURE__*/function (_BaseModule) {
207
207
  }, {
208
208
  cache: {
209
209
  mode: RequestModeENUM.REMOTE_LOCAL,
210
- type: "indexDB"
210
+ type: "memory"
211
211
  }
212
212
  });
213
213
  case 6:
@@ -344,7 +344,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
344
344
  };
345
345
  setOtherData(key: string, value: any): void;
346
346
  getOtherData(key: string): any;
347
- getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
347
+ getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
348
348
  /**
349
349
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
350
350
  *
@@ -111,7 +111,7 @@ var CustomerModule = class extends import_BaseModule.BaseModule {
111
111
  const res = await this.request.get(url, queryParams, {
112
112
  cache: {
113
113
  mode: import_plugins.RequestModeENUM.REMOTE_LOCAL,
114
- type: "indexDB"
114
+ type: "memory"
115
115
  }
116
116
  });
117
117
  if ((res == null ? void 0 : res.code) !== 200) {
@@ -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
  }
@@ -155,7 +155,7 @@ var ProductsModule = class extends import_BaseModule.BaseModule {
155
155
  {
156
156
  cache: {
157
157
  mode: import_plugins.RequestModeENUM.REMOTE_LOCAL,
158
- type: "indexDB"
158
+ type: "memory"
159
159
  }
160
160
  }
161
161
  );
@@ -344,7 +344,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
344
344
  };
345
345
  setOtherData(key: string, value: any): void;
346
346
  getOtherData(key: string): any;
347
- getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
347
+ getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
348
348
  /**
349
349
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
350
350
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.2.65",
4
+ "version": "2.2.66",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",