@tec.pet/tecpet-sdk 0.0.104 → 0.0.109
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.
|
@@ -8,6 +8,7 @@ export declare class ClientService {
|
|
|
8
8
|
private readonly api;
|
|
9
9
|
constructor(api: HttpClient);
|
|
10
10
|
getByPhone(phone: string, shopId?: number): Promise<PaClientResponse>;
|
|
11
|
+
getById(id: number, shopId?: number): Promise<PaClientResponse>;
|
|
11
12
|
edit(clientId: number, body: PaEditClientInput, shopId: number): Promise<PaClientResponse>;
|
|
12
13
|
create(body: PaCreateClientInput, shopId: number): Promise<PaClientResponse>;
|
|
13
14
|
summary(clientId: number, shopId: number): Promise<PaClientSummaryResponse>;
|
|
@@ -14,6 +14,9 @@ class ClientService {
|
|
|
14
14
|
}, shopId);
|
|
15
15
|
return response.data[0];
|
|
16
16
|
}
|
|
17
|
+
async getById(id, shopId) {
|
|
18
|
+
return await this.api.get(`/client/${id}`, shopId);
|
|
19
|
+
}
|
|
17
20
|
async edit(clientId, body, shopId) {
|
|
18
21
|
return await this.api.put(`/client/${clientId}`, body, shopId);
|
|
19
22
|
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -88,3 +88,4 @@ __exportStar(require("./domain/token"), exports);
|
|
|
88
88
|
__exportStar(require("./domain/integrationShop"), exports);
|
|
89
89
|
__exportStar(require("./domain/integrationClient"), exports);
|
|
90
90
|
__exportStar(require("./utils/index"), exports);
|
|
91
|
+
__exportStar(require("./domain/petPlan"), exports);
|