@tec.pet/tecpet-sdk 0.0.182 → 0.0.184

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,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);
@@ -4,6 +4,13 @@ export declare enum GenderType {
4
4
  MALE = "MALE",
5
5
  FEMALE = "FEMALE"
6
6
  }
7
+ export declare enum PetSituation {
8
+ ACTIVE = "ACTIVE",
9
+ SUSPENDED = "SUSPENDED",
10
+ BLOCKED = "BLOCKED",
11
+ INACTIVE = "INACTIVE",
12
+ RESTRICTED = "RESTRICTED"
13
+ }
7
14
  export interface PaPetResponse {
8
15
  id: number | string;
9
16
  name: string;
@@ -18,4 +25,7 @@ export interface PaPetResponse {
18
25
  hair: BillingItemType;
19
26
  size: BillingItemType;
20
27
  birthDate: string;
28
+ deceased: boolean;
29
+ situation: PetSituation;
30
+ situationDescription?: string;
21
31
  }
@@ -1,8 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GenderType = void 0;
3
+ exports.PetSituation = exports.GenderType = void 0;
4
4
  var GenderType;
5
5
  (function (GenderType) {
6
6
  GenderType["MALE"] = "MALE";
7
7
  GenderType["FEMALE"] = "FEMALE";
8
8
  })(GenderType || (exports.GenderType = GenderType = {}));
9
+ var PetSituation;
10
+ (function (PetSituation) {
11
+ PetSituation["ACTIVE"] = "ACTIVE";
12
+ PetSituation["SUSPENDED"] = "SUSPENDED";
13
+ PetSituation["BLOCKED"] = "BLOCKED";
14
+ PetSituation["INACTIVE"] = "INACTIVE";
15
+ PetSituation["RESTRICTED"] = "RESTRICTED";
16
+ })(PetSituation || (exports.PetSituation = PetSituation = {}));
@@ -5,7 +5,7 @@ import { PaPetResponse } from "./dto/pa.get-pet.dto";
5
5
  export declare class PetService {
6
6
  private readonly api;
7
7
  constructor(api: HttpClient);
8
- getByClient(clientId: number): Promise<Array<PaPetResponse>>;
8
+ getByClient(clientId: number, includeDeceased?: boolean): Promise<Array<PaPetResponse>>;
9
9
  create(petInput: PaCreatePetInput): Promise<PaPetResponse>;
10
10
  edit(petId: number, body: PaEditPetInput): Promise<PaPetResponse>;
11
11
  }
@@ -6,9 +6,10 @@ class PetService {
6
6
  constructor(api) {
7
7
  this.api = api;
8
8
  }
9
- async getByClient(clientId) {
9
+ async getByClient(clientId, includeDeceased) {
10
10
  const response = await this.api.get(`/pet`, {
11
11
  clientId,
12
+ ...(includeDeceased !== undefined && { includeDeceased }),
12
13
  });
13
14
  if (response?.data?.length) {
14
15
  return response.data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tec.pet/tecpet-sdk",
3
- "version": "0.0.182",
3
+ "version": "0.0.184",
4
4
  "description": "TecPet SDK for integration with TecPet services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",