@tec.pet/tecpet-sdk 0.0.76 → 0.0.78
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.
- package/dist/domain/chatbot/index.d.ts +1 -0
- package/dist/domain/chatbot/index.js +1 -0
- package/dist/domain/client/client.service.d.ts +3 -0
- package/dist/domain/client/client.service.js +6 -0
- package/dist/domain/client/dto/pa.exist-client.dto.d.ts +7 -0
- package/dist/domain/client/dto/pa.exist-client.dto.js +2 -0
- package/dist/domain/client/index.d.ts +1 -0
- package/dist/domain/client/index.js +1 -0
- package/dist/domain/integrationClient/dto/pa.upsert-integration-client.dto.d.ts +19 -0
- package/dist/domain/integrationClient/dto/pa.upsert-integration-client.dto.js +9 -0
- package/dist/domain/integrationClient/index.d.ts +2 -0
- package/dist/domain/integrationClient/index.js +18 -0
- package/dist/domain/integrationClient/integrationClient.service.d.ts +7 -0
- package/dist/domain/integrationClient/integrationClient.service.js +13 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
|
@@ -19,3 +19,4 @@ export * from './enum/chatbotInfoCollectionEnums/chatbot-price-display-mode.enum
|
|
|
19
19
|
export * from './enum/chatbotInfoCollectionEnums/chatbot-size_display-mode.enum';
|
|
20
20
|
export * from './enum/chatbotInfoCollectionEnums/chatbot-time-display-mode.enum';
|
|
21
21
|
export * from './enum/chatbotInfoCollectionEnums/chatbot-time-selection-behavior.enum';
|
|
22
|
+
export * from './enum/chatbotActionEnums/chatbot-action-schedule-permission.enum';
|
|
@@ -35,3 +35,4 @@ __exportStar(require("./enum/chatbotInfoCollectionEnums/chatbot-price-display-mo
|
|
|
35
35
|
__exportStar(require("./enum/chatbotInfoCollectionEnums/chatbot-size_display-mode.enum"), exports);
|
|
36
36
|
__exportStar(require("./enum/chatbotInfoCollectionEnums/chatbot-time-display-mode.enum"), exports);
|
|
37
37
|
__exportStar(require("./enum/chatbotInfoCollectionEnums/chatbot-time-selection-behavior.enum"), exports);
|
|
38
|
+
__exportStar(require("./enum/chatbotActionEnums/chatbot-action-schedule-permission.enum"), exports);
|
|
@@ -3,6 +3,7 @@ import { HttpClient } from "infra/http/client.http";
|
|
|
3
3
|
import { PaCreateClientInput } from "./dto/pa.create-client.dto";
|
|
4
4
|
import { PaEditClientInput } from "./dto/pa.edit-client.dto";
|
|
5
5
|
import { PaClientSummaryResponse } from "./dto/pa.get-client-summary.dto";
|
|
6
|
+
import { PaExistClientRequest } from "./dto/pa.exist-client.dto";
|
|
6
7
|
export declare class ClientService {
|
|
7
8
|
private readonly api;
|
|
8
9
|
constructor(api: HttpClient);
|
|
@@ -10,4 +11,6 @@ export declare class ClientService {
|
|
|
10
11
|
edit(clientId: number, body: PaEditClientInput, shopId: number): Promise<PaClientResponse>;
|
|
11
12
|
create(body: PaCreateClientInput, shopId: number): Promise<PaClientResponse>;
|
|
12
13
|
summary(clientId: number, shopId: number): Promise<PaClientSummaryResponse>;
|
|
14
|
+
exist(body: PaExistClientRequest, shopId: number): Promise<PaClientResponse>;
|
|
15
|
+
getByExternId(externId: string, integrationShopId: number, shopId: number): Promise<PaClientResponse>;
|
|
13
16
|
}
|
|
@@ -23,5 +23,11 @@ class ClientService {
|
|
|
23
23
|
async summary(clientId, shopId) {
|
|
24
24
|
return await this.api.get(`/client/${clientId}/summary`, {}, shopId);
|
|
25
25
|
}
|
|
26
|
+
async exist(body, shopId) {
|
|
27
|
+
return await this.api.post(`/client/exist`, body, shopId);
|
|
28
|
+
}
|
|
29
|
+
async getByExternId(externId, integrationShopId, shopId) {
|
|
30
|
+
return await this.api.get(`/client/byExternId/${externId}/integrationShop/${integrationShopId}`, {}, shopId);
|
|
31
|
+
}
|
|
26
32
|
}
|
|
27
33
|
exports.ClientService = ClientService;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PaCreateClientInput } from "./pa.create-client.dto";
|
|
2
|
+
import { PaClientResponse } from "./pa.get-client.dto";
|
|
3
|
+
export interface PaExistClientRequest {
|
|
4
|
+
client: PaCreateClientInput;
|
|
5
|
+
integrationShopId: number;
|
|
6
|
+
}
|
|
7
|
+
export type PaExistClientResponse = PaClientResponse;
|
|
@@ -18,3 +18,4 @@ __exportStar(require("../client/dto/pa.get-client-summary.dto"), exports);
|
|
|
18
18
|
__exportStar(require("./dto/pa.edit-client.dto"), exports);
|
|
19
19
|
__exportStar(require("./dto/pa.get-client-summary.dto"), exports);
|
|
20
20
|
__exportStar(require("./dto/pa.get-client.dto"), exports);
|
|
21
|
+
__exportStar(require("./dto/pa.exist-client.dto"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ApiIntegrationType } from "../../integrationShop";
|
|
2
|
+
export declare enum IntegrationClientStatusType {
|
|
3
|
+
PROCESSING = "PROCESSING",
|
|
4
|
+
INTEGRATED = "INTEGRATED",
|
|
5
|
+
FAILED = "FAILED"
|
|
6
|
+
}
|
|
7
|
+
export interface PaUpsertIntegrationClientRequest {
|
|
8
|
+
externId: string;
|
|
9
|
+
integrationShopId: number;
|
|
10
|
+
clientId?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface PaIntegrationClientResponse {
|
|
13
|
+
id: number;
|
|
14
|
+
clientId: number;
|
|
15
|
+
integrationShopId: number;
|
|
16
|
+
externId: string;
|
|
17
|
+
status: IntegrationClientStatusType;
|
|
18
|
+
type: ApiIntegrationType;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntegrationClientStatusType = void 0;
|
|
4
|
+
var IntegrationClientStatusType;
|
|
5
|
+
(function (IntegrationClientStatusType) {
|
|
6
|
+
IntegrationClientStatusType["PROCESSING"] = "PROCESSING";
|
|
7
|
+
IntegrationClientStatusType["INTEGRATED"] = "INTEGRATED";
|
|
8
|
+
IntegrationClientStatusType["FAILED"] = "FAILED";
|
|
9
|
+
})(IntegrationClientStatusType || (exports.IntegrationClientStatusType = IntegrationClientStatusType = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dto/pa.upsert-integration-client.dto"), exports);
|
|
18
|
+
__exportStar(require("./integrationClient.service"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HttpClient } from "infra/http/client.http";
|
|
2
|
+
import { PaIntegrationClientResponse, PaUpsertIntegrationClientRequest } from "./dto/pa.upsert-integration-client.dto";
|
|
3
|
+
export declare class IntegrationClientService {
|
|
4
|
+
private readonly api;
|
|
5
|
+
constructor(api: HttpClient);
|
|
6
|
+
upsert(body: PaUpsertIntegrationClientRequest): Promise<PaIntegrationClientResponse>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntegrationClientService = void 0;
|
|
4
|
+
class IntegrationClientService {
|
|
5
|
+
api;
|
|
6
|
+
constructor(api) {
|
|
7
|
+
this.api = api;
|
|
8
|
+
}
|
|
9
|
+
async upsert(body) {
|
|
10
|
+
return await this.api.post(`/integrationClient/upsert`, body);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.IntegrationClientService = IntegrationClientService;
|
package/dist/index.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import { SpecieService } from "./domain/specie/specie.service";
|
|
|
13
13
|
import { TokenService } from "./domain/token/token.service";
|
|
14
14
|
import { BookingGuardService } from "./domain/bookingGuard/bookingGuard.service";
|
|
15
15
|
import { IntegrationShopService } from "./domain/integrationShop/integrationShop.service";
|
|
16
|
+
import { IntegrationClientService } from "./domain/integrationClient/integrationClient.service";
|
|
16
17
|
export declare class TecpetSDK {
|
|
17
18
|
private api;
|
|
18
19
|
client: ClientService;
|
|
@@ -30,6 +31,7 @@ export declare class TecpetSDK {
|
|
|
30
31
|
employee: EmployeeService;
|
|
31
32
|
bookingGuard: BookingGuardService;
|
|
32
33
|
integrationShop: IntegrationShopService;
|
|
34
|
+
integrationClient: IntegrationClientService;
|
|
33
35
|
constructor(baseURL: string, apiKey?: string);
|
|
34
36
|
}
|
|
35
37
|
export * from './domain/availableTimes';
|
|
@@ -47,4 +49,5 @@ export * from './domain/shop';
|
|
|
47
49
|
export * from './domain/specie';
|
|
48
50
|
export * from './domain/token';
|
|
49
51
|
export * from './domain/integrationShop';
|
|
52
|
+
export * from './domain/integrationClient';
|
|
50
53
|
export * from './utils/index';
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,7 @@ const token_service_1 = require("./domain/token/token.service");
|
|
|
31
31
|
const client_http_1 = require("./infra/http/client.http");
|
|
32
32
|
const bookingGuard_service_1 = require("./domain/bookingGuard/bookingGuard.service");
|
|
33
33
|
const integrationShop_service_1 = require("./domain/integrationShop/integrationShop.service");
|
|
34
|
+
const integrationClient_service_1 = require("./domain/integrationClient/integrationClient.service");
|
|
34
35
|
class TecpetSDK {
|
|
35
36
|
api;
|
|
36
37
|
client;
|
|
@@ -48,6 +49,7 @@ class TecpetSDK {
|
|
|
48
49
|
employee;
|
|
49
50
|
bookingGuard;
|
|
50
51
|
integrationShop;
|
|
52
|
+
integrationClient;
|
|
51
53
|
constructor(baseURL, apiKey) {
|
|
52
54
|
this.api = new client_http_1.HttpClient(baseURL, apiKey);
|
|
53
55
|
this.client = new client_service_1.ClientService(this.api);
|
|
@@ -65,6 +67,7 @@ class TecpetSDK {
|
|
|
65
67
|
this.employee = new employee_service_1.EmployeeService(this.api);
|
|
66
68
|
this.bookingGuard = new bookingGuard_service_1.BookingGuardService(this.api);
|
|
67
69
|
this.integrationShop = new integrationShop_service_1.IntegrationShopService(this.api);
|
|
70
|
+
this.integrationClient = new integrationClient_service_1.IntegrationClientService(this.api);
|
|
68
71
|
}
|
|
69
72
|
}
|
|
70
73
|
exports.TecpetSDK = TecpetSDK;
|
|
@@ -83,4 +86,5 @@ __exportStar(require("./domain/shop"), exports);
|
|
|
83
86
|
__exportStar(require("./domain/specie"), exports);
|
|
84
87
|
__exportStar(require("./domain/token"), exports);
|
|
85
88
|
__exportStar(require("./domain/integrationShop"), exports);
|
|
89
|
+
__exportStar(require("./domain/integrationClient"), exports);
|
|
86
90
|
__exportStar(require("./utils/index"), exports);
|