@tec.pet/tecpet-sdk 0.0.182 → 0.0.183
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/chatbotService.d.ts +2 -0
- package/dist/domain/chatbot/chatbotService.js +4 -0
- package/dist/domain/chatbot/dto/pa.get-trial-demo-shop.dto.d.ts +14 -0
- package/dist/domain/chatbot/dto/pa.get-trial-demo-shop.dto.js +12 -0
- package/dist/domain/chatbot/index.d.ts +1 -0
- package/dist/domain/chatbot/index.js +1 -0
- package/package.json +1 -1
|
@@ -8,11 +8,13 @@ import { PaStartAiInteractionInput, PaStartAiInteractionResponse } from "./dto/p
|
|
|
8
8
|
import { PaStopAiInteractionInput, PaStopAiInteractionResponse } from "./dto/pa.stop-ai-interaction.dto";
|
|
9
9
|
import { PaValidateAiInteractionInput, PaValidateAiInteractionResponse } from "./dto/pa.validate-ai-interaction.dto";
|
|
10
10
|
import { PaGetInteractionModeResponse } from "./dto/pa.get-interaction-mode.dto";
|
|
11
|
+
import { PaTrialDemoShopResponse } from "./dto/pa.get-trial-demo-shop.dto";
|
|
11
12
|
export declare class ChatbotService {
|
|
12
13
|
private readonly api;
|
|
13
14
|
constructor(api: HttpClient);
|
|
14
15
|
getByShop(shopId: number): Promise<PaChatbotSettingsResponse>;
|
|
15
16
|
getByPlatform(platformType: ChatbotPlatformTypeEnum, platformId: string): Promise<PaChatbotSettingsResponse>;
|
|
17
|
+
getTrialDemoShop(code: string): Promise<PaTrialDemoShopResponse>;
|
|
16
18
|
getInteractionMode(shopId: number): Promise<PaGetInteractionModeResponse>;
|
|
17
19
|
getFormattedMessage(body: GetChatbotFormattedMessagesInput, shopId: number): Promise<Array<PaGetChatbotFormattedMessagesResponse>>;
|
|
18
20
|
changeNotificationStatus(notificationId: number, body: PaChangeNotificationStatusInput, shopId: number): Promise<PaChangeNotificationStatusResponse>;
|
|
@@ -14,6 +14,10 @@ class ChatbotService {
|
|
|
14
14
|
const response = await this.api.get(`/chatbot/settings`, { platformType, platformId });
|
|
15
15
|
return response;
|
|
16
16
|
}
|
|
17
|
+
async getTrialDemoShop(code) {
|
|
18
|
+
const response = await this.api.get(`/chatbot/trialDemoShop`, { code });
|
|
19
|
+
return response;
|
|
20
|
+
}
|
|
17
21
|
async getInteractionMode(shopId) {
|
|
18
22
|
const response = await this.api.get(`/chatbot/interactionMode`, {}, shopId);
|
|
19
23
|
return response;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum PaTrialDemoShopRejection {
|
|
2
|
+
INVALID_CODE = "INVALID_CODE",
|
|
3
|
+
NOT_FOUND = "NOT_FOUND",
|
|
4
|
+
NOT_READY = "NOT_READY",
|
|
5
|
+
EXPIRED = "EXPIRED",
|
|
6
|
+
CONVERTED = "CONVERTED",
|
|
7
|
+
SHOP_UNAVAILABLE = "SHOP_UNAVAILABLE"
|
|
8
|
+
}
|
|
9
|
+
export interface PaTrialDemoShopResponse {
|
|
10
|
+
found: boolean;
|
|
11
|
+
shopId: number | null;
|
|
12
|
+
shopName: string | null;
|
|
13
|
+
reason: PaTrialDemoShopRejection | null;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaTrialDemoShopRejection = void 0;
|
|
4
|
+
var PaTrialDemoShopRejection;
|
|
5
|
+
(function (PaTrialDemoShopRejection) {
|
|
6
|
+
PaTrialDemoShopRejection["INVALID_CODE"] = "INVALID_CODE";
|
|
7
|
+
PaTrialDemoShopRejection["NOT_FOUND"] = "NOT_FOUND";
|
|
8
|
+
PaTrialDemoShopRejection["NOT_READY"] = "NOT_READY";
|
|
9
|
+
PaTrialDemoShopRejection["EXPIRED"] = "EXPIRED";
|
|
10
|
+
PaTrialDemoShopRejection["CONVERTED"] = "CONVERTED";
|
|
11
|
+
PaTrialDemoShopRejection["SHOP_UNAVAILABLE"] = "SHOP_UNAVAILABLE";
|
|
12
|
+
})(PaTrialDemoShopRejection || (exports.PaTrialDemoShopRejection = PaTrialDemoShopRejection = {}));
|
|
@@ -5,6 +5,7 @@ export * from './dto/pa.start-ai-interaction.dto';
|
|
|
5
5
|
export * from './dto/pa.stop-ai-interaction.dto';
|
|
6
6
|
export * from './dto/pa.validate-ai-interaction.dto';
|
|
7
7
|
export * from './dto/pa.get-interaction-mode.dto';
|
|
8
|
+
export * from './dto/pa.get-trial-demo-shop.dto';
|
|
8
9
|
export * from './enum/chatbotActionEnums/chatbot-action-schedule-permission.enum';
|
|
9
10
|
export * from './enum/chatbotActionEnums/chatbot-action-type.enum';
|
|
10
11
|
export * from './enum/chatbotBehaviorEnums/chatbot-inactive-employee-action.enum';
|
|
@@ -21,6 +21,7 @@ __exportStar(require("./dto/pa.start-ai-interaction.dto"), exports);
|
|
|
21
21
|
__exportStar(require("./dto/pa.stop-ai-interaction.dto"), exports);
|
|
22
22
|
__exportStar(require("./dto/pa.validate-ai-interaction.dto"), exports);
|
|
23
23
|
__exportStar(require("./dto/pa.get-interaction-mode.dto"), exports);
|
|
24
|
+
__exportStar(require("./dto/pa.get-trial-demo-shop.dto"), exports);
|
|
24
25
|
__exportStar(require("./enum/chatbotActionEnums/chatbot-action-schedule-permission.enum"), exports);
|
|
25
26
|
__exportStar(require("./enum/chatbotActionEnums/chatbot-action-type.enum"), exports);
|
|
26
27
|
__exportStar(require("./enum/chatbotBehaviorEnums/chatbot-inactive-employee-action.enum"), exports);
|