@tec.pet/tecpet-sdk 0.0.157 → 0.0.160

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.
@@ -5,6 +5,7 @@ import { PaGetBookingResponse } from "./dto/pa.get-booking.dto";
5
5
  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
+ import { PaAddServicesToBookingInput, PaAddServicesToBookingResponse } from "./dto/pa.add-services-to-booking.dto";
8
9
  export declare class BookingService {
9
10
  private readonly api;
10
11
  constructor(api: HttpClient);
@@ -14,4 +15,5 @@ export declare class BookingService {
14
15
  get(bookingId: number, shopId: number): Promise<PaGetBookingResponse>;
15
16
  reschedule(bookingId: number, body: PaRescheduleBookingInput, shopId: number): Promise<PaRescheduleBookingResponse>;
16
17
  pricing(body: PaGetBookingPricingBody, shopId: number): Promise<PaGetBookingPricingResponse>;
18
+ addServices(bookingId: number, body: PaAddServicesToBookingInput, shopId: number): Promise<PaAddServicesToBookingResponse>;
17
19
  }
@@ -33,5 +33,9 @@ class BookingService {
33
33
  const response = await this.api.post(`/booking/pricing`, body, shopId);
34
34
  return response;
35
35
  }
36
+ async addServices(bookingId, body, shopId) {
37
+ const response = await this.api.put(`/booking/${bookingId}/addServices`, body, shopId);
38
+ return response;
39
+ }
36
40
  }
37
41
  exports.BookingService = BookingService;
@@ -0,0 +1,8 @@
1
+ export interface PaAddServicesToBookingInput {
2
+ services: number[];
3
+ combos?: number[];
4
+ }
5
+ export interface PaAddServicesToBookingResponse {
6
+ success: boolean;
7
+ message: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,3 +4,4 @@ export * from './dto/pa.get-booking.dto';
4
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
+ export * from './dto/pa.add-services-to-booking.dto';
@@ -20,3 +20,4 @@ __exportStar(require("./dto/pa.get-booking.dto"), exports);
20
20
  __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
+ __exportStar(require("./dto/pa.add-services-to-booking.dto"), exports);
@@ -129,6 +129,7 @@ export interface ChatbotActionJson {
129
129
  postSchedulingInstruction?: string;
130
130
  operationsDays: OperationDaysJson[];
131
131
  chatbotFlux: ChatbotFluxJson;
132
+ allowPetRegistration?: boolean;
132
133
  }
133
134
  export interface ChatbotFluxJson {
134
135
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tec.pet/tecpet-sdk",
3
- "version": "0.0.157",
3
+ "version": "0.0.160",
4
4
  "description": "TecPet SDK for integration with TecPet services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",