@pisell/pisellos 2.1.144 → 2.1.146

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.
@@ -19,7 +19,7 @@ export declare class QuotationModule extends BaseModule implements Module {
19
19
  * Look up the quotation price for a specific product (+ optional variant) at a given datetime.
20
20
  * Returns the price as a string (e.g. "300.00"), or null if no quotation applies.
21
21
  *
22
- * Priority: iterates quotations already sorted by `sort` ascending (lowest = highest priority).
22
+ * Priority: iterates quotations already sorted by `sort` descending (highest = highest priority).
23
23
  * First matching quotation whose schedule covers `datetime` and whose product_data contains
24
24
  * the requested productId wins.
25
25
  */
@@ -89,7 +89,7 @@ export var QuotationModule = /*#__PURE__*/function (_BaseModule) {
89
89
  res = _context2.sent;
90
90
  list = (res === null || res === void 0 || (_data = res.data) === null || _data === void 0 ? void 0 : _data.list) || (res === null || res === void 0 ? void 0 : res.list) || [];
91
91
  list.sort(function (a, b) {
92
- return a.sort - b.sort;
92
+ return b.sort - a.sort;
93
93
  });
94
94
  this.store.list = list;
95
95
  case 9:
@@ -113,7 +113,7 @@ export var QuotationModule = /*#__PURE__*/function (_BaseModule) {
113
113
  * Look up the quotation price for a specific product (+ optional variant) at a given datetime.
114
114
  * Returns the price as a string (e.g. "300.00"), or null if no quotation applies.
115
115
  *
116
- * Priority: iterates quotations already sorted by `sort` ascending (lowest = highest priority).
116
+ * Priority: iterates quotations already sorted by `sort` descending (highest = highest priority).
117
117
  * First matching quotation whose schedule covers `datetime` and whose product_data contains
118
118
  * the requested productId wins.
119
119
  */
@@ -310,7 +310,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
310
310
  date: string;
311
311
  status: string;
312
312
  week: string;
313
- weekNum: 0 | 2 | 1 | 5 | 4 | 3 | 6;
313
+ weekNum: 0 | 5 | 1 | 4 | 2 | 3 | 6;
314
314
  }[]>;
315
315
  submitTimeSlot(timeSlots: TimeSliceItem): void;
316
316
  private getScheduleDataByIds;
@@ -329,7 +329,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
329
329
  count: number;
330
330
  left: number;
331
331
  summaryCount: number;
332
- status: "lots_of_space" | "filling_up_fast" | "sold_out";
332
+ status: "sold_out" | "lots_of_space" | "filling_up_fast";
333
333
  }[];
334
334
  /**
335
335
  * 找到多个资源的公共可用时间段
@@ -19,7 +19,7 @@ export declare class QuotationModule extends BaseModule implements Module {
19
19
  * Look up the quotation price for a specific product (+ optional variant) at a given datetime.
20
20
  * Returns the price as a string (e.g. "300.00"), or null if no quotation applies.
21
21
  *
22
- * Priority: iterates quotations already sorted by `sort` ascending (lowest = highest priority).
22
+ * Priority: iterates quotations already sorted by `sort` descending (highest = highest priority).
23
23
  * First matching quotation whose schedule covers `datetime` and whose product_data contains
24
24
  * the requested productId wins.
25
25
  */
@@ -52,7 +52,7 @@ var QuotationModule = class extends import_BaseModule.BaseModule {
52
52
  { useCache: false }
53
53
  );
54
54
  const list = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.list) || (res == null ? void 0 : res.list) || [];
55
- list.sort((a, b) => a.sort - b.sort);
55
+ list.sort((a, b) => b.sort - a.sort);
56
56
  this.store.list = list;
57
57
  }
58
58
  getQuotationList() {
@@ -62,7 +62,7 @@ var QuotationModule = class extends import_BaseModule.BaseModule {
62
62
  * Look up the quotation price for a specific product (+ optional variant) at a given datetime.
63
63
  * Returns the price as a string (e.g. "300.00"), or null if no quotation applies.
64
64
  *
65
- * Priority: iterates quotations already sorted by `sort` ascending (lowest = highest priority).
65
+ * Priority: iterates quotations already sorted by `sort` descending (highest = highest priority).
66
66
  * First matching quotation whose schedule covers `datetime` and whose product_data contains
67
67
  * the requested productId wins.
68
68
  */
@@ -310,7 +310,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
310
310
  date: string;
311
311
  status: string;
312
312
  week: string;
313
- weekNum: 0 | 2 | 1 | 5 | 4 | 3 | 6;
313
+ weekNum: 0 | 5 | 1 | 4 | 2 | 3 | 6;
314
314
  }[]>;
315
315
  submitTimeSlot(timeSlots: TimeSliceItem): void;
316
316
  private getScheduleDataByIds;
@@ -329,7 +329,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
329
329
  count: number;
330
330
  left: number;
331
331
  summaryCount: number;
332
- status: "lots_of_space" | "filling_up_fast" | "sold_out";
332
+ status: "sold_out" | "lots_of_space" | "filling_up_fast";
333
333
  }[];
334
334
  /**
335
335
  * 找到多个资源的公共可用时间段
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.1.144",
4
+ "version": "2.1.146",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",