@pisell/pisellos 2.3.160 → 2.3.162
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.
- package/dist/server/index.js +1 -1
- package/dist/solution/BookingByStep/index.d.ts +2 -2
- package/dist/solution/Sales/index.js +1 -1
- package/dist/solution/UnifiedBookingSales/index.d.ts +6 -0
- package/dist/solution/UnifiedBookingSales/index.js +867 -737
- package/lib/server/index.js +1 -1
- package/lib/solution/BookingByStep/index.d.ts +2 -2
- package/lib/solution/Sales/index.js +1 -1
- package/lib/solution/UnifiedBookingSales/index.d.ts +6 -0
- package/lib/solution/UnifiedBookingSales/index.js +85 -1
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -8133,7 +8133,7 @@ var Server = /*#__PURE__*/function () {
|
|
|
8133
8133
|
key: "buildOrderSalesDetailBackendPath",
|
|
8134
8134
|
value: function buildOrderSalesDetailBackendPath(lookup, data) {
|
|
8135
8135
|
var rawWith = data && _typeof(data) === 'object' ? data.with : undefined;
|
|
8136
|
-
var withFields = Array.isArray(rawWith) && rawWith.length > 0 ? rawWith : ['
|
|
8136
|
+
var withFields = Array.isArray(rawWith) && rawWith.length > 0 ? rawWith : ['all'];
|
|
8137
8137
|
var searchParams = new URLSearchParams();
|
|
8138
8138
|
withFields.forEach(function (field) {
|
|
8139
8139
|
if (field === undefined || field === null || field === '') return;
|
|
@@ -328,7 +328,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
328
328
|
date: string;
|
|
329
329
|
status: string;
|
|
330
330
|
week: string;
|
|
331
|
-
weekNum: 0 |
|
|
331
|
+
weekNum: 0 | 5 | 3 | 1 | 2 | 4 | 6;
|
|
332
332
|
}[]>;
|
|
333
333
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
334
334
|
private getScheduleDataByIds;
|
|
@@ -347,7 +347,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
347
347
|
count: number;
|
|
348
348
|
left: number;
|
|
349
349
|
summaryCount: number;
|
|
350
|
-
status: "
|
|
350
|
+
status: "sold_out" | "lots_of_space" | "filling_up_fast";
|
|
351
351
|
}[];
|
|
352
352
|
/**
|
|
353
353
|
* 找到多个资源的公共可用时间段
|
|
@@ -442,7 +442,7 @@ export var SalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
442
442
|
} : {
|
|
443
443
|
external_sale_number: normalizedLookup
|
|
444
444
|
};
|
|
445
|
-
return _context6.abrupt("return", this.request.post('/local/print-order', _objectSpread(_objectSpread({}, lookupPayload), {}, {
|
|
445
|
+
return _context6.abrupt("return", this.request.post('/shop/local/print-order', _objectSpread(_objectSpread({}, lookupPayload), {}, {
|
|
446
446
|
lookup_order_from_db: 1,
|
|
447
447
|
small_ticket_data_flag: 1,
|
|
448
448
|
business_code: businessCode,
|
|
@@ -105,6 +105,12 @@ export declare class UnifiedBookingSalesImpl extends BookingTicket {
|
|
|
105
105
|
private normalizeAvailabilityIdList;
|
|
106
106
|
private normalizeAvailabilityStringList;
|
|
107
107
|
private normalizeAvailabilityPrepareDescriptor;
|
|
108
|
+
/**
|
|
109
|
+
* 列表直加没有经过 SKU availability flow,legacy cacheItem 的灵活时长可能落到
|
|
110
|
+
* 23:59。提交前用同一套营业排期补齐结束时间,保留已选开始时间、资源和 Holder。
|
|
111
|
+
* 仅供直加调用;手动时间选择和 availability candidate 不经过此方法。
|
|
112
|
+
*/
|
|
113
|
+
prepareDirectAddFlexibleBooking(cacheItem: any): Promise<any>;
|
|
108
114
|
private resolveAvailabilityPrepareDefaults;
|
|
109
115
|
private buildAvailabilityPrepareKey;
|
|
110
116
|
private clearAvailabilityRemoteResourceState;
|