@tec.pet/tecpet-sdk 0.0.178 → 0.0.179

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.
@@ -7,11 +7,13 @@ import { ChatbotPlatformTypeEnum } from "./enum/chatbotSettingsEnums/chatbot-pla
7
7
  import { PaStartAiInteractionInput, PaStartAiInteractionResponse } from "./dto/pa.start-ai-interaction.dto";
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
+ import { PaGetInteractionModeResponse } from "./dto/pa.get-interaction-mode.dto";
10
11
  export declare class ChatbotService {
11
12
  private readonly api;
12
13
  constructor(api: HttpClient);
13
14
  getByShop(shopId: number): Promise<PaChatbotSettingsResponse>;
14
15
  getByPlatform(platformType: ChatbotPlatformTypeEnum, platformId: string): Promise<PaChatbotSettingsResponse>;
16
+ getInteractionMode(shopId: number): Promise<PaGetInteractionModeResponse>;
15
17
  getFormattedMessage(body: GetChatbotFormattedMessagesInput, shopId: number): Promise<Array<PaGetChatbotFormattedMessagesResponse>>;
16
18
  changeNotificationStatus(notificationId: number, body: PaChangeNotificationStatusInput, shopId: number): Promise<PaChangeNotificationStatusResponse>;
17
19
  handleButtonAction(body: PaHandleButtonActionInput, shopId: number): Promise<PaHandleButtonActionResponse>;
@@ -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 getInteractionMode(shopId) {
18
+ const response = await this.api.get(`/chatbot/interactionMode`, {}, shopId);
19
+ return response;
20
+ }
17
21
  async getFormattedMessage(body, shopId) {
18
22
  const response = await this.api.post(`/chatbot/formattedMessages`, body, shopId);
19
23
  if (response) {
@@ -0,0 +1,5 @@
1
+ import { InteractionModuleEnum } from '../enum/aiInteractionEnums/interaction-module.enum';
2
+ export interface PaGetInteractionModeResponse {
3
+ aiInteractionEnabled: boolean;
4
+ activeModule: InteractionModuleEnum | null;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export declare enum InteractionModuleEnum {
2
+ AI_INTERACTION = "AI_INTERACTION",
3
+ CHATBOT_INTERACTION = "CHATBOT_INTERACTION"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InteractionModuleEnum = void 0;
4
+ var InteractionModuleEnum;
5
+ (function (InteractionModuleEnum) {
6
+ InteractionModuleEnum["AI_INTERACTION"] = "AI_INTERACTION";
7
+ InteractionModuleEnum["CHATBOT_INTERACTION"] = "CHATBOT_INTERACTION";
8
+ })(InteractionModuleEnum || (exports.InteractionModuleEnum = InteractionModuleEnum = {}));
@@ -4,6 +4,7 @@ export * from './dto/pa.change-notification-status.dto';
4
4
  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
+ export * from './dto/pa.get-interaction-mode.dto';
7
8
  export * from './enum/chatbotActionEnums/chatbot-action-schedule-permission.enum';
8
9
  export * from './enum/chatbotActionEnums/chatbot-action-type.enum';
9
10
  export * from './enum/chatbotBehaviorEnums/chatbot-inactive-employee-action.enum';
@@ -28,3 +29,4 @@ export * from './enum/chatbotActionEnums/media-type.enum';
28
29
  export * from './enum/aiInteractionEnums/ai-interaction-consumption-source.enum';
29
30
  export * from './enum/aiInteractionEnums/ai-interaction-validation-reason.enum';
30
31
  export * from './enum/aiInteractionEnums/interaction-consumption-type.enum';
32
+ export * from './enum/aiInteractionEnums/interaction-module.enum';
@@ -20,6 +20,7 @@ __exportStar(require("./dto/pa.change-notification-status.dto"), exports);
20
20
  __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
+ __exportStar(require("./dto/pa.get-interaction-mode.dto"), exports);
23
24
  __exportStar(require("./enum/chatbotActionEnums/chatbot-action-schedule-permission.enum"), exports);
24
25
  __exportStar(require("./enum/chatbotActionEnums/chatbot-action-type.enum"), exports);
25
26
  __exportStar(require("./enum/chatbotBehaviorEnums/chatbot-inactive-employee-action.enum"), exports);
@@ -44,3 +45,4 @@ __exportStar(require("./enum/chatbotActionEnums/media-type.enum"), exports);
44
45
  __exportStar(require("./enum/aiInteractionEnums/ai-interaction-consumption-source.enum"), exports);
45
46
  __exportStar(require("./enum/aiInteractionEnums/ai-interaction-validation-reason.enum"), exports);
46
47
  __exportStar(require("./enum/aiInteractionEnums/interaction-consumption-type.enum"), exports);
48
+ __exportStar(require("./enum/aiInteractionEnums/interaction-module.enum"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tec.pet/tecpet-sdk",
3
- "version": "0.0.178",
3
+ "version": "0.0.179",
4
4
  "description": "TecPet SDK for integration with TecPet services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",