@tec.pet/tecpet-sdk 0.0.180 → 0.0.181
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/domain/booking/booking.service.d.ts +2 -2
- package/dist/domain/booking/booking.service.js +2 -2
- package/dist/domain/booking/dto/{pa.add-services-with-availability.dto.d.ts → pa.change-services.dto.d.ts} +4 -4
- package/dist/domain/booking/dto/pa.change-services.dto.js +10 -0
- package/dist/domain/booking/index.d.ts +1 -1
- package/dist/domain/booking/index.js +1 -1
- package/package.json +1 -1
- package/dist/domain/booking/dto/pa.add-services-with-availability.dto.js +0 -10
|
@@ -6,7 +6,7 @@ import { PaGetBookingsQuery } from "./dto/pa.get-bookings.dto";
|
|
|
6
6
|
import { PaRescheduleBookingInput, PaRescheduleBookingResponse } from "./dto/pa.reschedule-booking.dto";
|
|
7
7
|
import { PaGetBookingPricingBody, PaGetBookingPricingResponse } from "./dto/pa.get-booking-pricing.dto";
|
|
8
8
|
import { PaAddServicesToBookingInput, PaAddServicesToBookingResponse } from "./dto/pa.add-services-to-booking.dto";
|
|
9
|
-
import {
|
|
9
|
+
import { PaChangeServicesInput, PaChangeServicesResponse } from "./dto/pa.change-services.dto";
|
|
10
10
|
export declare class BookingService {
|
|
11
11
|
private readonly api;
|
|
12
12
|
constructor(api: HttpClient);
|
|
@@ -17,5 +17,5 @@ export declare class BookingService {
|
|
|
17
17
|
reschedule(bookingId: number, body: PaRescheduleBookingInput, shopId: number): Promise<PaRescheduleBookingResponse>;
|
|
18
18
|
pricing(body: PaGetBookingPricingBody, shopId: number): Promise<PaGetBookingPricingResponse>;
|
|
19
19
|
addServices(bookingId: number, body: PaAddServicesToBookingInput, shopId: number): Promise<PaAddServicesToBookingResponse>;
|
|
20
|
-
|
|
20
|
+
changeServices(bookingId: number, body: PaChangeServicesInput, shopId: number): Promise<PaChangeServicesResponse>;
|
|
21
21
|
}
|
|
@@ -37,8 +37,8 @@ class BookingService {
|
|
|
37
37
|
const response = await this.api.put(`/booking/${bookingId}/addServices`, body, shopId);
|
|
38
38
|
return response;
|
|
39
39
|
}
|
|
40
|
-
async
|
|
41
|
-
const response = await this.api.put(`/booking/${bookingId}/
|
|
40
|
+
async changeServices(bookingId, body, shopId) {
|
|
41
|
+
const response = await this.api.put(`/booking/${bookingId}/changeServices`, body, shopId);
|
|
42
42
|
return response;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum PaChangeServicesCode {
|
|
2
2
|
BOOKING_ALREADY_STARTED = "BOOKING_ALREADY_STARTED",
|
|
3
3
|
INVALID_TIME_ID = "INVALID_TIME_ID",
|
|
4
4
|
TIME_ID_SERVICES_MISMATCH = "TIME_ID_SERVICES_MISMATCH",
|
|
5
5
|
TIME_ALREADY_ALLOCATED = "TIME_ALREADY_ALLOCATED"
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface PaChangeServicesInput {
|
|
8
8
|
services: number[];
|
|
9
9
|
timeId: string;
|
|
10
10
|
}
|
|
11
|
-
export interface
|
|
11
|
+
export interface PaChangeServicesResponse {
|
|
12
12
|
success: boolean;
|
|
13
13
|
message: string;
|
|
14
|
-
code?:
|
|
14
|
+
code?: PaChangeServicesCode;
|
|
15
15
|
entryTime?: string;
|
|
16
16
|
leaveTime?: string;
|
|
17
17
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaChangeServicesCode = void 0;
|
|
4
|
+
var PaChangeServicesCode;
|
|
5
|
+
(function (PaChangeServicesCode) {
|
|
6
|
+
PaChangeServicesCode["BOOKING_ALREADY_STARTED"] = "BOOKING_ALREADY_STARTED";
|
|
7
|
+
PaChangeServicesCode["INVALID_TIME_ID"] = "INVALID_TIME_ID";
|
|
8
|
+
PaChangeServicesCode["TIME_ID_SERVICES_MISMATCH"] = "TIME_ID_SERVICES_MISMATCH";
|
|
9
|
+
PaChangeServicesCode["TIME_ALREADY_ALLOCATED"] = "TIME_ALREADY_ALLOCATED";
|
|
10
|
+
})(PaChangeServicesCode || (exports.PaChangeServicesCode = PaChangeServicesCode = {}));
|
|
@@ -5,4 +5,4 @@ export * from './dto/pa.get-bookings.dto';
|
|
|
5
5
|
export * from './dto/pa.reschedule-booking.dto';
|
|
6
6
|
export * from './dto/pa.get-booking-pricing.dto';
|
|
7
7
|
export * from './dto/pa.add-services-to-booking.dto';
|
|
8
|
-
export * from './dto/pa.
|
|
8
|
+
export * from './dto/pa.change-services.dto';
|
|
@@ -21,4 +21,4 @@ __exportStar(require("./dto/pa.get-bookings.dto"), exports);
|
|
|
21
21
|
__exportStar(require("./dto/pa.reschedule-booking.dto"), exports);
|
|
22
22
|
__exportStar(require("./dto/pa.get-booking-pricing.dto"), exports);
|
|
23
23
|
__exportStar(require("./dto/pa.add-services-to-booking.dto"), exports);
|
|
24
|
-
__exportStar(require("./dto/pa.
|
|
24
|
+
__exportStar(require("./dto/pa.change-services.dto"), exports);
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PaAddServicesWithAvailabilityCode = void 0;
|
|
4
|
-
var PaAddServicesWithAvailabilityCode;
|
|
5
|
-
(function (PaAddServicesWithAvailabilityCode) {
|
|
6
|
-
PaAddServicesWithAvailabilityCode["BOOKING_ALREADY_STARTED"] = "BOOKING_ALREADY_STARTED";
|
|
7
|
-
PaAddServicesWithAvailabilityCode["INVALID_TIME_ID"] = "INVALID_TIME_ID";
|
|
8
|
-
PaAddServicesWithAvailabilityCode["TIME_ID_SERVICES_MISMATCH"] = "TIME_ID_SERVICES_MISMATCH";
|
|
9
|
-
PaAddServicesWithAvailabilityCode["TIME_ALREADY_ALLOCATED"] = "TIME_ALREADY_ALLOCATED";
|
|
10
|
-
})(PaAddServicesWithAvailabilityCode || (exports.PaAddServicesWithAvailabilityCode = PaAddServicesWithAvailabilityCode = {}));
|