@tec.pet/tecpet-sdk 0.0.180 → 0.0.182

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.
@@ -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 { PaAddServicesWithAvailabilityInput, PaAddServicesWithAvailabilityResponse } from "./dto/pa.add-services-with-availability.dto";
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
- addServicesWithAvailability(bookingId: number, body: PaAddServicesWithAvailabilityInput, shopId: number): Promise<PaAddServicesWithAvailabilityResponse>;
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 addServicesWithAvailability(bookingId, body, shopId) {
41
- const response = await this.api.put(`/booking/${bookingId}/addServicesWithAvailability`, body, shopId);
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 PaAddServicesWithAvailabilityCode {
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 PaAddServicesWithAvailabilityInput {
7
+ export interface PaChangeServicesInput {
8
8
  services: number[];
9
9
  timeId: string;
10
10
  }
11
- export interface PaAddServicesWithAvailabilityResponse {
11
+ export interface PaChangeServicesResponse {
12
12
  success: boolean;
13
13
  message: string;
14
- code?: PaAddServicesWithAvailabilityCode;
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.add-services-with-availability.dto';
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.add-services-with-availability.dto"), exports);
24
+ __exportStar(require("./dto/pa.change-services.dto"), exports);
@@ -110,5 +110,6 @@ export interface PaShopConfigurationsResponse {
110
110
  shops: PaShopResponse[];
111
111
  };
112
112
  blockedDates?: string[];
113
+ notAcceptedBreeds?: number[];
113
114
  }
114
115
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tec.pet/tecpet-sdk",
3
- "version": "0.0.180",
3
+ "version": "0.0.182",
4
4
  "description": "TecPet SDK for integration with TecPet services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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 = {}));