@pisell/pisellos 0.0.109 → 0.0.110

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.
@@ -143,7 +143,7 @@ var getDaysByRepeatWeek = function getDaysByRepeatWeek(params, isGetRange) {
143
143
  var _end = _start.add(scheduleDiff, 'second');
144
144
  if (isGetRange) {
145
145
  if (excludedDaysMap.has(_start.format('YYYY-MM-DD'))) {
146
- startTmp = startTmp.day(1).add(frequency, 'week');
146
+ startTmp = startTmp.day(1).add(frequency, 'day');
147
147
  continue;
148
148
  }
149
149
  var arr = getDataRange({
@@ -211,7 +211,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
211
211
  }): void;
212
212
  setOtherData(key: string, value: any): void;
213
213
  getOtherData(key: string): any;
214
- getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
214
+ getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
215
215
  /**
216
216
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
217
217
  *
@@ -143,7 +143,7 @@ var getDaysByRepeatWeek = (params, isGetRange) => {
143
143
  const _end = _start.add(scheduleDiff, "second");
144
144
  if (isGetRange) {
145
145
  if (excludedDaysMap.has(_start.format("YYYY-MM-DD"))) {
146
- startTmp = startTmp.day(1).add(frequency, "week");
146
+ startTmp = startTmp.day(1).add(frequency, "day");
147
147
  continue;
148
148
  }
149
149
  const arr = getDataRange({
@@ -211,7 +211,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
211
211
  }): void;
212
212
  setOtherData(key: string, value: any): void;
213
213
  getOtherData(key: string): any;
214
- getProductTypeById(id: number): Promise<"duration" | "session" | "normal">;
214
+ getProductTypeById(id: number): Promise<"normal" | "duration" | "session">;
215
215
  /**
216
216
  * 提供给 UI 的方法,减轻 UI 层的计算压力,UI 层只需要传递 cartItemId 和 resourceCode 即返回对应的 renderList
217
217
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "0.0.109",
4
+ "version": "0.0.110",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",