@pisell/pisellos 2.1.77 → 2.1.78

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.
@@ -37,5 +37,5 @@ export declare class DateModule extends BaseModule implements Module, DateModule
37
37
  getResourceAvailableTimeList(params: IGetAvailableTimeListParams): Promise<ITime[]>;
38
38
  clearDateRange(): void;
39
39
  storeChange(): void;
40
- getResourcesListByDate(date: string): any[] | undefined;
40
+ getResourcesListByDate(date: string): any[];
41
41
  }
@@ -401,9 +401,9 @@ export var DateModule = /*#__PURE__*/function (_BaseModule) {
401
401
  value: function getResourcesListByDate(date) {
402
402
  var _dateList$find;
403
403
  var dateList = this.store.dateList;
404
- var resourcesList = (_dateList$find = dateList.find(function (item) {
404
+ var resourcesList = (dateList === null || dateList === void 0 || (_dateList$find = dateList.find(function (item) {
405
405
  return item.date === date;
406
- })) === null || _dateList$find === void 0 ? void 0 : _dateList$find.resource;
406
+ })) === null || _dateList$find === void 0 ? void 0 : _dateList$find.resource) || [];
407
407
  return resourcesList;
408
408
  }
409
409
  }]);
@@ -354,7 +354,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
354
354
  };
355
355
  setOtherData(key: string, value: any): void;
356
356
  getOtherData(key: string): any;
357
- getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
357
+ getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
358
358
  /**
359
359
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
360
360
  *
@@ -115,7 +115,7 @@ export declare class BookingTicketImpl extends BaseModule implements Module {
115
115
  * 获取当前的客户搜索条件
116
116
  * @returns 当前搜索条件
117
117
  */
118
- getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
118
+ getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
119
119
  /**
120
120
  * 获取客户列表状态(包含滚动加载相关状态)
121
121
  * @returns 客户状态
@@ -37,5 +37,5 @@ export declare class DateModule extends BaseModule implements Module, DateModule
37
37
  getResourceAvailableTimeList(params: IGetAvailableTimeListParams): Promise<ITime[]>;
38
38
  clearDateRange(): void;
39
39
  storeChange(): void;
40
- getResourcesListByDate(date: string): any[] | undefined;
40
+ getResourcesListByDate(date: string): any[];
41
41
  }
@@ -258,7 +258,7 @@ var DateModule = class extends import_BaseModule.BaseModule {
258
258
  getResourcesListByDate(date) {
259
259
  var _a;
260
260
  const dateList = this.store.dateList;
261
- const resourcesList = (_a = dateList.find((item) => item.date === date)) == null ? void 0 : _a.resource;
261
+ const resourcesList = ((_a = dateList == null ? void 0 : dateList.find((item) => item.date === date)) == null ? void 0 : _a.resource) || [];
262
262
  return resourcesList;
263
263
  }
264
264
  };
@@ -354,7 +354,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
354
354
  };
355
355
  setOtherData(key: string, value: any): void;
356
356
  getOtherData(key: string): any;
357
- getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
357
+ getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
358
358
  /**
359
359
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
360
360
  *
@@ -115,7 +115,7 @@ export declare class BookingTicketImpl extends BaseModule implements Module {
115
115
  * 获取当前的客户搜索条件
116
116
  * @returns 当前搜索条件
117
117
  */
118
- getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "skip" | "num">;
118
+ getCurrentCustomerSearchParams(): Omit<import("../../modules").ShopGetCustomerListParams, "num" | "skip">;
119
119
  /**
120
120
  * 获取客户列表状态(包含滚动加载相关状态)
121
121
  * @returns 客户状态
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.1.77",
4
+ "version": "2.1.78",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",