@tec.pet/tecpet-sdk 0.0.50 → 0.0.52
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/bookingGuard/bookingGuard.service.d.ts +7 -0
- package/dist/domain/bookingGuard/bookingGuard.service.js +18 -0
- package/dist/domain/bookingGuard/dto/pa.get-booking-guard-validation.dto.d.ts +22 -0
- package/dist/domain/bookingGuard/dto/pa.get-booking-guard-validation.dto.js +9 -0
- package/dist/domain/bookingGuard/index.d.ts +1 -0
- package/dist/domain/bookingGuard/index.js +17 -0
- package/dist/domain/chatbot/dto/chatbot-settings.json.d.ts +2 -0
- package/dist/domain/chatbot/enum/chatbotActionEnums/chatbot-action-show-sending-indo.enum.d.ts +6 -0
- package/dist/domain/chatbot/enum/chatbotActionEnums/chatbot-action-show-sending-indo.enum.js +10 -0
- package/dist/domain/client/dto/pa.create-client.dto.d.ts +1 -0
- package/dist/domain/client/dto/pa.edit-client.dto.d.ts +1 -0
- package/dist/domain/client/dto/pa.edit-client.dto.js +1 -0
- package/dist/domain/client/dto/pa.get-client.dto.d.ts +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HttpClient } from "infra/http/client.http";
|
|
2
|
+
import { PaBookingGuardValidationResponseDto, PaGetBookingGuardValidationBody } from "./dto/pa.get-booking-guard-validation.dto";
|
|
3
|
+
export declare class BookingGuardService {
|
|
4
|
+
private readonly api;
|
|
5
|
+
constructor(api: HttpClient);
|
|
6
|
+
validation(body: PaGetBookingGuardValidationBody, shopId: number): Promise<PaBookingGuardValidationResponseDto | null>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingGuardService = void 0;
|
|
4
|
+
class BookingGuardService {
|
|
5
|
+
api;
|
|
6
|
+
constructor(api) {
|
|
7
|
+
this.api = api;
|
|
8
|
+
}
|
|
9
|
+
async validation(body, shopId) {
|
|
10
|
+
try {
|
|
11
|
+
return await this.api.post(`/bookingGuard`, body, shopId);
|
|
12
|
+
}
|
|
13
|
+
catch (error) {
|
|
14
|
+
throw error;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.BookingGuardService = BookingGuardService;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ShopSegment } from "../../segment/enum/segment.enum";
|
|
2
|
+
export interface PaGetBookingGuardValidationBody {
|
|
3
|
+
servicesId: Array<number>;
|
|
4
|
+
segmentType: ShopSegment;
|
|
5
|
+
petId: number;
|
|
6
|
+
date: string;
|
|
7
|
+
guardScopes?: Array<BookingGuardScopeEnum>;
|
|
8
|
+
}
|
|
9
|
+
export interface PaBookingGuardValidationResponseDto {
|
|
10
|
+
blocked: boolean;
|
|
11
|
+
guard: BookingGuardRuleResponseDto;
|
|
12
|
+
}
|
|
13
|
+
export interface BookingGuardRuleResponseDto {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
description: string;
|
|
17
|
+
}
|
|
18
|
+
export declare enum BookingGuardScopeEnum {
|
|
19
|
+
SCHEDULE = "SCHEDULE",
|
|
20
|
+
BOT = "BOT",
|
|
21
|
+
BOTH = "BOTH"
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingGuardScopeEnum = void 0;
|
|
4
|
+
var BookingGuardScopeEnum;
|
|
5
|
+
(function (BookingGuardScopeEnum) {
|
|
6
|
+
BookingGuardScopeEnum["SCHEDULE"] = "SCHEDULE";
|
|
7
|
+
BookingGuardScopeEnum["BOT"] = "BOT";
|
|
8
|
+
BookingGuardScopeEnum["BOTH"] = "BOTH";
|
|
9
|
+
})(BookingGuardScopeEnum || (exports.BookingGuardScopeEnum = BookingGuardScopeEnum = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dto/pa.get-booking-guard-validation.dto';
|
|
@@ -0,0 +1,17 @@
|
|
|
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.get-booking-guard-validation.dto"), exports);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ChatbotActionModeTypeEnum } from "../enum/chatbotActionEnums/chatbot-action-mode-type.enum";
|
|
2
2
|
import { ChatBotActionSchedulePermissionEnum } from "../enum/chatbotActionEnums/chatbot-action-schedule-permission.enum";
|
|
3
|
+
import { ChatBotActionShowSendingInfoEnum } from "../enum/chatbotActionEnums/chatbot-action-show-sending-indo.enum";
|
|
3
4
|
import { ChatbotActionTypeEnum } from "../enum/chatbotActionEnums/chatbot-action-type.enum";
|
|
4
5
|
import { MediaTypeEnum } from "../enum/chatbotActionEnums/media-type.enum";
|
|
5
6
|
import { ChatbotBehaviorTypeEnum } from "../enum/chatbotBehaviorEnums/chatbot-behavior-type.enum";
|
|
@@ -91,6 +92,7 @@ export interface ChatbotActionJson {
|
|
|
91
92
|
name: string;
|
|
92
93
|
enabled: boolean;
|
|
93
94
|
description: string;
|
|
95
|
+
showSendingInfo?: ChatBotActionShowSendingInfoEnum;
|
|
94
96
|
schedulePermission?: ChatBotActionSchedulePermissionEnum;
|
|
95
97
|
guidanceOptions: ChatbotActionButtonDto[];
|
|
96
98
|
sendingInfoItems: ChatbotSendingInfoItemDto[];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChatBotActionShowSendingInfoEnum = void 0;
|
|
4
|
+
var ChatBotActionShowSendingInfoEnum;
|
|
5
|
+
(function (ChatBotActionShowSendingInfoEnum) {
|
|
6
|
+
ChatBotActionShowSendingInfoEnum["CLIENTS"] = "CLIENTS";
|
|
7
|
+
ChatBotActionShowSendingInfoEnum["ALL"] = "ALL";
|
|
8
|
+
ChatBotActionShowSendingInfoEnum["NONE"] = "NONE";
|
|
9
|
+
ChatBotActionShowSendingInfoEnum["NEW_CLIENTS"] = "NEW_CLIENTS";
|
|
10
|
+
})(ChatBotActionShowSendingInfoEnum || (exports.ChatBotActionShowSendingInfoEnum = ChatBotActionShowSendingInfoEnum = {}));
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { ServiceService } from "./domain/service/service.service";
|
|
|
11
11
|
import { ShopService } from "./domain/shop/shop.service";
|
|
12
12
|
import { SpecieService } from "./domain/specie/specie.service";
|
|
13
13
|
import { TokenService } from "./domain/token/token.service";
|
|
14
|
+
import { BookingGuardService } from "./domain/bookingGuard/bookingGuard.service";
|
|
14
15
|
export declare class TecpetSDK {
|
|
15
16
|
private api;
|
|
16
17
|
client: ClientService;
|
|
@@ -26,12 +27,14 @@ export declare class TecpetSDK {
|
|
|
26
27
|
booking: BookingService;
|
|
27
28
|
token: TokenService;
|
|
28
29
|
employee: EmployeeService;
|
|
30
|
+
bookingGuard: BookingGuardService;
|
|
29
31
|
constructor(baseURL: string, apiKey?: string);
|
|
30
32
|
}
|
|
31
33
|
export * from './domain/availableTimes';
|
|
32
34
|
export * from './domain/billingMethod';
|
|
33
35
|
export * from './domain/booking';
|
|
34
36
|
export * from './domain/breed';
|
|
37
|
+
export * from './domain/bookingGuard';
|
|
35
38
|
export * from './domain/chatbot';
|
|
36
39
|
export * from './domain/client';
|
|
37
40
|
export * from './domain/combo';
|
package/dist/index.js
CHANGED
|
@@ -29,6 +29,7 @@ const shop_service_1 = require("./domain/shop/shop.service");
|
|
|
29
29
|
const specie_service_1 = require("./domain/specie/specie.service");
|
|
30
30
|
const token_service_1 = require("./domain/token/token.service");
|
|
31
31
|
const client_http_1 = require("./infra/http/client.http");
|
|
32
|
+
const bookingGuard_service_1 = require("./domain/bookingGuard/bookingGuard.service");
|
|
32
33
|
class TecpetSDK {
|
|
33
34
|
api;
|
|
34
35
|
client;
|
|
@@ -44,6 +45,7 @@ class TecpetSDK {
|
|
|
44
45
|
booking;
|
|
45
46
|
token;
|
|
46
47
|
employee;
|
|
48
|
+
bookingGuard;
|
|
47
49
|
constructor(baseURL, apiKey) {
|
|
48
50
|
this.api = new client_http_1.HttpClient(baseURL, apiKey);
|
|
49
51
|
this.client = new client_service_1.ClientService(this.api);
|
|
@@ -59,6 +61,7 @@ class TecpetSDK {
|
|
|
59
61
|
this.booking = new booking_service_1.BookingService(this.api);
|
|
60
62
|
this.token = new token_service_1.TokenService(this.api);
|
|
61
63
|
this.employee = new employee_service_1.EmployeeService(this.api);
|
|
64
|
+
this.bookingGuard = new bookingGuard_service_1.BookingGuardService(this.api);
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
exports.TecpetSDK = TecpetSDK;
|
|
@@ -66,6 +69,7 @@ __exportStar(require("./domain/availableTimes"), exports);
|
|
|
66
69
|
__exportStar(require("./domain/billingMethod"), exports);
|
|
67
70
|
__exportStar(require("./domain/booking"), exports);
|
|
68
71
|
__exportStar(require("./domain/breed"), exports);
|
|
72
|
+
__exportStar(require("./domain/bookingGuard"), exports);
|
|
69
73
|
__exportStar(require("./domain/chatbot"), exports);
|
|
70
74
|
__exportStar(require("./domain/client"), exports);
|
|
71
75
|
__exportStar(require("./domain/combo"), exports);
|