@tec.pet/tecpet-sdk 0.0.39 → 0.0.41
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.
|
@@ -35,6 +35,7 @@ export interface PaChatbotSettingsResponse {
|
|
|
35
35
|
platformType: ChatbotPlatformTypeEnum;
|
|
36
36
|
chatbotActions: ChatbotActionJson[];
|
|
37
37
|
chatbotBehaviors: ChatbotBehaviorDto;
|
|
38
|
+
chatbotTriggers: ChatbotTriggerJson[];
|
|
38
39
|
platformSettings: {
|
|
39
40
|
id: string;
|
|
40
41
|
token: string;
|
|
@@ -141,11 +142,11 @@ export interface InfoCollectionMenuJson {
|
|
|
141
142
|
petSize: {
|
|
142
143
|
enabled?: boolean;
|
|
143
144
|
message: string;
|
|
145
|
+
sizeDisplayMode: ChatbotSizeDisplayModeEnum;
|
|
144
146
|
};
|
|
145
147
|
petFur: {
|
|
146
148
|
enabled?: boolean;
|
|
147
149
|
message: string;
|
|
148
|
-
sizeDisplayMode: ChatbotSizeDisplayModeEnum;
|
|
149
150
|
};
|
|
150
151
|
};
|
|
151
152
|
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
|
|
9
|
-
create(petInput: PaCreatePetInput): Promise<PaPetResponse
|
|
10
|
-
edit(petId: number, body: PaEditPetInput): Promise<PaPetResponse
|
|
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
|
-
|
|
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
|
-
|
|
28
|
-
return response;
|
|
29
|
-
}
|
|
30
|
-
return null;
|
|
24
|
+
return response;
|
|
31
25
|
}
|
|
32
26
|
}
|
|
33
27
|
exports.PetService = PetService;
|