@tec.pet/tecpet-sdk 0.0.191 → 0.0.194

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.
@@ -11,4 +11,5 @@ export interface PaGetAvailableTimesTimesBody {
11
11
  segment: ShopSegment;
12
12
  employeesIndication?: Array<PaGetAvailableTimesTimesEmployeeIndicationBody>;
13
13
  bookingId?: number;
14
+ occupiedTimeIds?: Array<string>;
14
15
  }
@@ -4,4 +4,5 @@ export declare class BreedService {
4
4
  private readonly api;
5
5
  constructor(api: HttpClient);
6
6
  list(specieId: string, name?: string, shopId?: number): Promise<Array<PaBreedResponse>>;
7
+ get(breedId: number, shopId?: number): Promise<PaBreedResponse | null>;
7
8
  }
@@ -17,5 +17,9 @@ class BreedService {
17
17
  }
18
18
  return [];
19
19
  }
20
+ async get(breedId, shopId) {
21
+ const response = await this.api.get(`/breed/${breedId}`, undefined, shopId);
22
+ return response || null;
23
+ }
20
24
  }
21
25
  exports.BreedService = BreedService;
@@ -7,4 +7,5 @@ export interface PaBreedResponse {
7
7
  specieId: string;
8
8
  hair: BillingItemType;
9
9
  size: BillingItemType;
10
+ notAccepted?: boolean;
10
11
  }
@@ -6,6 +6,7 @@ export declare class PetService {
6
6
  private readonly api;
7
7
  constructor(api: HttpClient);
8
8
  getByClient(clientId: number, includeDeceased?: boolean): Promise<Array<PaPetResponse>>;
9
+ get(petId: number, shopId?: number): Promise<PaPetResponse | null>;
9
10
  create(petInput: PaCreatePetInput): Promise<PaPetResponse>;
10
11
  edit(petId: number, body: PaEditPetInput): Promise<PaPetResponse>;
11
12
  }
@@ -16,6 +16,10 @@ class PetService {
16
16
  }
17
17
  return [];
18
18
  }
19
+ async get(petId, shopId) {
20
+ const response = await this.api.get(`/pet/${petId}`, undefined, shopId);
21
+ return response || null;
22
+ }
19
23
  async create(petInput) {
20
24
  const response = await this.api.post(`/pet`, petInput);
21
25
  return response;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tec.pet/tecpet-sdk",
3
- "version": "0.0.191",
3
+ "version": "0.0.194",
4
4
  "description": "TecPet SDK for integration with TecPet services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",