@pisell/pisellos 2.2.216 → 2.2.218
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/modules/Order/index.d.ts +1 -1
- package/dist/server/index.js +1 -1
- package/dist/solution/BookingByStep/index.d.ts +1 -1
- package/dist/solution/BookingTicket/index.js +1 -1
- package/lib/modules/Order/index.d.ts +1 -1
- package/lib/server/index.js +1 -1
- package/lib/solution/BookingByStep/index.d.ts +1 -1
- package/lib/solution/BookingTicket/index.js +1 -1
- package/package.json +1 -1
|
@@ -334,7 +334,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
334
334
|
private logSubmitBackendRejected;
|
|
335
335
|
syncPaymentsToOrder<T = any>(params: SyncPaymentsToOrderParams): Promise<SyncPaymentsToOrderResult<T>>;
|
|
336
336
|
createOrder(params: CommitOrderParams['query']): {
|
|
337
|
-
type: "
|
|
337
|
+
type: "appointment_booking" | "virtual";
|
|
338
338
|
platform: string;
|
|
339
339
|
sales_channel: string;
|
|
340
340
|
order_sales_channel: string;
|
package/dist/server/index.js
CHANGED
|
@@ -725,7 +725,7 @@ var Server = /*#__PURE__*/function () {
|
|
|
725
725
|
while (1) switch (_context13.prev = _context13.next) {
|
|
726
726
|
case 0:
|
|
727
727
|
url = _ref31.url, data = _ref31.data;
|
|
728
|
-
if (!(data !== null && data !== void 0 && (_data$order_id = data.order_id) !== null && _data$order_id !== void 0 && _data$order_id.startsWith('LOCAL_'))) {
|
|
728
|
+
if (!(typeof (data === null || data === void 0 ? void 0 : data.order_id) === 'string' && data !== null && data !== void 0 && (_data$order_id = data.order_id) !== null && _data$order_id !== void 0 && _data$order_id.startsWith('LOCAL_'))) {
|
|
729
729
|
_context13.next = 3;
|
|
730
730
|
break;
|
|
731
731
|
}
|
|
@@ -311,7 +311,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
311
311
|
date: string;
|
|
312
312
|
status: string;
|
|
313
313
|
week: string;
|
|
314
|
-
weekNum: 0 | 2 | 1 |
|
|
314
|
+
weekNum: 0 | 2 | 1 | 5 | 3 | 4 | 6;
|
|
315
315
|
}[]>;
|
|
316
316
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
317
317
|
private getScheduleDataByIds;
|
|
@@ -802,7 +802,7 @@ export var BookingTicketImpl = /*#__PURE__*/function (_BaseSalesImpl) {
|
|
|
802
802
|
_context11.next = 6;
|
|
803
803
|
break;
|
|
804
804
|
}
|
|
805
|
-
|
|
805
|
+
return _context11.abrupt("return", {});
|
|
806
806
|
case 6:
|
|
807
807
|
return _context11.abrupt("return", this.loadSalesDetail({
|
|
808
808
|
orderId: Number(orderId),
|
|
@@ -334,7 +334,7 @@ export declare class OrderModule extends BaseModule implements Module, OrderModu
|
|
|
334
334
|
private logSubmitBackendRejected;
|
|
335
335
|
syncPaymentsToOrder<T = any>(params: SyncPaymentsToOrderParams): Promise<SyncPaymentsToOrderResult<T>>;
|
|
336
336
|
createOrder(params: CommitOrderParams['query']): {
|
|
337
|
-
type: "
|
|
337
|
+
type: "appointment_booking" | "virtual";
|
|
338
338
|
platform: string;
|
|
339
339
|
sales_channel: string;
|
|
340
340
|
order_sales_channel: string;
|
package/lib/server/index.js
CHANGED
|
@@ -468,7 +468,7 @@ var Server = class {
|
|
|
468
468
|
*/
|
|
469
469
|
this.handleUpdateLocalOrder = async ({ url, data }) => {
|
|
470
470
|
var _a, _b;
|
|
471
|
-
if ((_a = data == null ? void 0 : data.order_id) == null ? void 0 : _a.startsWith("LOCAL_")) {
|
|
471
|
+
if (typeof (data == null ? void 0 : data.order_id) === "string" && ((_a = data == null ? void 0 : data.order_id) == null ? void 0 : _a.startsWith("LOCAL_"))) {
|
|
472
472
|
return {
|
|
473
473
|
code: 200,
|
|
474
474
|
status: true
|
|
@@ -311,7 +311,7 @@ export declare class BookingByStepImpl extends BaseModule implements Module {
|
|
|
311
311
|
date: string;
|
|
312
312
|
status: string;
|
|
313
313
|
week: string;
|
|
314
|
-
weekNum: 0 | 2 | 1 |
|
|
314
|
+
weekNum: 0 | 2 | 1 | 5 | 3 | 4 | 6;
|
|
315
315
|
}[]>;
|
|
316
316
|
submitTimeSlot(timeSlots: TimeSliceItem): void;
|
|
317
317
|
private getScheduleDataByIds;
|
|
@@ -473,7 +473,7 @@ var BookingTicketImpl = class extends import_BaseSales.BaseSalesImpl {
|
|
|
473
473
|
}
|
|
474
474
|
const orderId = tempOrder.order_id;
|
|
475
475
|
if (orderId === void 0 || orderId === null) {
|
|
476
|
-
|
|
476
|
+
return {};
|
|
477
477
|
}
|
|
478
478
|
return this.loadSalesDetail({
|
|
479
479
|
orderId: Number(orderId),
|