@tec.pet/tecpet-sdk 0.0.39 → 0.0.40

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.
@@ -141,11 +141,11 @@ export interface InfoCollectionMenuJson {
141
141
  petSize: {
142
142
  enabled?: boolean;
143
143
  message: string;
144
+ sizeDisplayMode: ChatbotSizeDisplayModeEnum;
144
145
  };
145
146
  petFur: {
146
147
  enabled?: boolean;
147
148
  message: string;
148
- sizeDisplayMode: ChatbotSizeDisplayModeEnum;
149
149
  };
150
150
  };
151
151
  adaptionService?: {
@@ -1,11 +1,11 @@
1
1
  import { HttpClient } from "infra/http/client.http";
2
- import { PaPetResponse } from "./dto/pa.get-pet.dto";
3
2
  import { PaCreatePetInput } from "./dto/pa.create-pet.dto";
4
3
  import { PaEditPetInput } from "./dto/pa.edit-pet.dto";
4
+ import { PaPetResponse } from "./dto/pa.get-pet.dto";
5
5
  export declare class PetService {
6
6
  private readonly api;
7
7
  constructor(api: HttpClient);
8
- getByClient(clientId: number): Promise<Array<PaPetResponse> | null>;
9
- create(petInput: PaCreatePetInput): Promise<PaPetResponse | null>;
10
- edit(petId: number, body: PaEditPetInput): Promise<PaPetResponse | null>;
8
+ getByClient(clientId: number): Promise<Array<PaPetResponse>>;
9
+ create(petInput: PaCreatePetInput): Promise<PaPetResponse>;
10
+ edit(petId: number, body: PaEditPetInput): Promise<PaPetResponse>;
11
11
  }
@@ -17,17 +17,11 @@ class PetService {
17
17
  }
18
18
  async create(petInput) {
19
19
  const response = await this.api.post(`/pet`, petInput);
20
- if (response?.id) {
21
- return response;
22
- }
23
- return null;
20
+ return response;
24
21
  }
25
22
  async edit(petId, body) {
26
23
  const response = await this.api.put(`/pet/${petId}`, body);
27
- if (response?.id) {
28
- return response;
29
- }
30
- return null;
24
+ return response;
31
25
  }
32
26
  }
33
27
  exports.PetService = PetService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tec.pet/tecpet-sdk",
3
- "version": "0.0.39",
3
+ "version": "0.0.40",
4
4
  "description": "TecPet SDK for integration with TecPet services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",