@tec.pet/tecpet-sdk 0.0.234 → 0.0.236

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.
Files changed (31) hide show
  1. package/dist/domain/chatbot/dto/pa.waiting-client.dto.d.ts +8 -0
  2. package/dist/domain/chatbot/enum/waitingClientEnums/whatsapp-waiting-from-attendant.enum.d.ts +4 -0
  3. package/dist/domain/chatbot/enum/waitingClientEnums/whatsapp-waiting-from-attendant.enum.js +8 -0
  4. package/dist/domain/chatbot/index.d.ts +1 -0
  5. package/dist/domain/chatbot/index.js +1 -0
  6. package/dist/domain/client/client.service.d.ts +2 -2
  7. package/dist/domain/client/client.service.js +3 -2
  8. package/dist/domain/client/dto/pa.create-client.dto.d.ts +7 -0
  9. package/dist/domain/conversation/conversation.service.d.ts +7 -0
  10. package/dist/domain/conversation/conversation.service.js +13 -0
  11. package/dist/domain/conversation/dto/ad-attribution.dto.d.ts +16 -0
  12. package/dist/domain/conversation/dto/ad-attribution.dto.js +2 -0
  13. package/dist/domain/conversation/dto/pa.conversation-started.dto.d.ts +15 -0
  14. package/dist/domain/conversation/dto/pa.conversation-started.dto.js +2 -0
  15. package/dist/domain/conversation/enum/ad-attribution-type.enum.d.ts +3 -0
  16. package/dist/domain/conversation/enum/ad-attribution-type.enum.js +7 -0
  17. package/dist/domain/conversation/enum/attribution-provider.enum.d.ts +5 -0
  18. package/dist/domain/conversation/enum/attribution-provider.enum.js +9 -0
  19. package/dist/domain/conversation/enum/conversation-channel.enum.d.ts +4 -0
  20. package/dist/domain/conversation/enum/conversation-channel.enum.js +8 -0
  21. package/dist/domain/conversation/index.d.ts +6 -0
  22. package/dist/domain/conversation/index.js +22 -0
  23. package/dist/domain/plan/dto/pa.get-plans-pricing.dto.d.ts +74 -0
  24. package/dist/domain/plan/dto/pa.get-plans-pricing.dto.js +29 -0
  25. package/dist/domain/plan/index.d.ts +2 -0
  26. package/dist/domain/plan/index.js +18 -0
  27. package/dist/domain/plan/plan.service.d.ts +7 -0
  28. package/dist/domain/plan/plan.service.js +14 -0
  29. package/dist/index.d.ts +6 -0
  30. package/dist/index.js +8 -0
  31. package/package.json +1 -1
@@ -1,6 +1,9 @@
1
1
  import { WhatsappMessageType } from "../enum/waitingClientEnums/whatsapp-message-type.enum";
2
2
  import { WhatsappWaitingEndReason } from "../enum/waitingClientEnums/whatsapp-waiting-end-reason.enum";
3
3
  import { WhatsappWaitingReason } from "../enum/waitingClientEnums/whatsapp-waiting-reason.enum";
4
+ import { WhatsappWaitingFromAttendant } from "../enum/waitingClientEnums/whatsapp-waiting-from-attendant.enum";
5
+ import { AttributionProvider } from "../../conversation/enum/attribution-provider.enum";
6
+ import { ConversationChannel } from "../../conversation/enum/conversation-channel.enum";
4
7
  export interface PaOpenWaitingClientInput {
5
8
  sessionId: string;
6
9
  phone: string;
@@ -11,6 +14,11 @@ export interface PaOpenWaitingClientInput {
11
14
  context?: string | null;
12
15
  lastMessagePreview?: string | null;
13
16
  lastMessageType?: WhatsappMessageType | null;
17
+ fromBot?: boolean;
18
+ fromAttendant?: WhatsappWaitingFromAttendant | null;
19
+ channel?: ConversationChannel | null;
20
+ provider?: AttributionProvider | null;
21
+ sessionKey?: string | null;
14
22
  }
15
23
  export interface PaCloseWaitingClientInput {
16
24
  sessionId: string;
@@ -0,0 +1,4 @@
1
+ export declare enum WhatsappWaitingFromAttendant {
2
+ AI = "AI",
3
+ CHATBOT = "CHATBOT"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WhatsappWaitingFromAttendant = void 0;
4
+ var WhatsappWaitingFromAttendant;
5
+ (function (WhatsappWaitingFromAttendant) {
6
+ WhatsappWaitingFromAttendant["AI"] = "AI";
7
+ WhatsappWaitingFromAttendant["CHATBOT"] = "CHATBOT";
8
+ })(WhatsappWaitingFromAttendant || (exports.WhatsappWaitingFromAttendant = WhatsappWaitingFromAttendant = {}));
@@ -11,6 +11,7 @@ export * from './dto/pa.waiting-client.dto';
11
11
  export * from './enum/waitingClientEnums/whatsapp-waiting-reason.enum';
12
12
  export * from './enum/waitingClientEnums/whatsapp-waiting-end-reason.enum';
13
13
  export * from './enum/waitingClientEnums/whatsapp-message-type.enum';
14
+ export * from './enum/waitingClientEnums/whatsapp-waiting-from-attendant.enum';
14
15
  export * from './enum/chatbotActionEnums/chatbot-action-schedule-permission.enum';
15
16
  export * from './enum/chatbotActionEnums/chatbot-action-type.enum';
16
17
  export * from './enum/chatbotBehaviorEnums/chatbot-inactive-employee-action.enum';
@@ -27,6 +27,7 @@ __exportStar(require("./dto/pa.waiting-client.dto"), exports);
27
27
  __exportStar(require("./enum/waitingClientEnums/whatsapp-waiting-reason.enum"), exports);
28
28
  __exportStar(require("./enum/waitingClientEnums/whatsapp-waiting-end-reason.enum"), exports);
29
29
  __exportStar(require("./enum/waitingClientEnums/whatsapp-message-type.enum"), exports);
30
+ __exportStar(require("./enum/waitingClientEnums/whatsapp-waiting-from-attendant.enum"), exports);
30
31
  __exportStar(require("./enum/chatbotActionEnums/chatbot-action-schedule-permission.enum"), exports);
31
32
  __exportStar(require("./enum/chatbotActionEnums/chatbot-action-type.enum"), exports);
32
33
  __exportStar(require("./enum/chatbotBehaviorEnums/chatbot-inactive-employee-action.enum"), exports);
@@ -1,6 +1,6 @@
1
1
  import { PaClientResponse } from "domain/client/dto/pa.get-client.dto";
2
2
  import { HttpClient } from "infra/http/client.http";
3
- import { PaCreateClientInput } from "./dto/pa.create-client.dto";
3
+ import { PaCreateClientInput, PaCreateClientOptions } 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
6
  import { PaExistClientRequest } from "./dto/pa.exist-client.dto";
@@ -11,7 +11,7 @@ export declare class ClientService {
11
11
  getByPhone(phone: string, shopId?: number): Promise<PaClientResponse>;
12
12
  getById(id: number, shopId?: number): Promise<PaClientResponse>;
13
13
  edit(clientId: number, body: PaEditClientInput, shopId: number): Promise<PaClientResponse>;
14
- create(body: PaCreateClientInput, shopId: number): Promise<PaClientResponse>;
14
+ create(body: PaCreateClientInput, shopId: number, options?: PaCreateClientOptions): Promise<PaClientResponse>;
15
15
  summary(clientId: number, shopId: number): Promise<PaClientSummaryResponse>;
16
16
  exist(body: PaExistClientRequest, shopId: number): Promise<PaClientResponse>;
17
17
  getByExternId(externId: string, integrationShopId: number, shopId: number): Promise<PaClientResponse>;
@@ -20,8 +20,9 @@ class ClientService {
20
20
  async edit(clientId, body, shopId) {
21
21
  return await this.api.put(`/client/${clientId}`, body, shopId);
22
22
  }
23
- async create(body, shopId) {
24
- return await this.api.post(`/client`, body, shopId);
23
+ async create(body, shopId, options) {
24
+ const payload = options ? { ...body, ...options } : body;
25
+ return await this.api.post(`/client`, payload, shopId);
25
26
  }
26
27
  async summary(clientId, shopId) {
27
28
  return await this.api.get(`/client/${clientId}/summary`, {}, shopId);
@@ -1,5 +1,7 @@
1
1
  import { AddressDto } from "./pa.get-client.dto";
2
2
  import { PersonType } from "../enum/person-type.enum";
3
+ import { AdAttribution } from "../../conversation/dto/ad-attribution.dto";
4
+ import { ConversationChannel } from "../../conversation/enum/conversation-channel.enum";
3
5
  export interface PaCreateClientInput {
4
6
  name: string;
5
7
  address?: AddressDto;
@@ -13,3 +15,8 @@ export interface PaCreateClientInput {
13
15
  allowOnChatbot?: boolean;
14
16
  chatId?: string;
15
17
  }
18
+ export interface PaCreateClientOptions {
19
+ channel?: ConversationChannel | null;
20
+ attribution?: AdAttribution | null;
21
+ sessionKey?: string | null;
22
+ }
@@ -0,0 +1,7 @@
1
+ import { HttpClient } from "infra/http/client.http";
2
+ import { PaConversationStartedInput, PaConversationStartedResponse } from "./dto/pa.conversation-started.dto";
3
+ export declare class ConversationService {
4
+ private readonly api;
5
+ constructor(api: HttpClient);
6
+ started(body: PaConversationStartedInput, shopId: number): Promise<PaConversationStartedResponse>;
7
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConversationService = void 0;
4
+ class ConversationService {
5
+ api;
6
+ constructor(api) {
7
+ this.api = api;
8
+ }
9
+ async started(body, shopId) {
10
+ return await this.api.post(`/conversation/started`, body, shopId);
11
+ }
12
+ }
13
+ exports.ConversationService = ConversationService;
@@ -0,0 +1,16 @@
1
+ import { AdAttributionType } from "../enum/ad-attribution-type.enum";
2
+ import { AttributionProvider } from "../enum/attribution-provider.enum";
3
+ import { ConversationChannel } from "../enum/conversation-channel.enum";
4
+ export interface AdAttribution {
5
+ provider: AttributionProvider;
6
+ channel?: ConversationChannel | null;
7
+ type?: AdAttributionType | null;
8
+ adId?: string | null;
9
+ ctwaClid?: string | null;
10
+ sourceUrl?: string | null;
11
+ sourceType?: string | null;
12
+ headline?: string | null;
13
+ body?: string | null;
14
+ mediaType?: string | null;
15
+ touchedAt?: Date | string | null;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,15 @@
1
+ import { AttributionProvider } from "../enum/attribution-provider.enum";
2
+ import { ConversationChannel } from "../enum/conversation-channel.enum";
3
+ import { AdAttribution } from "./ad-attribution.dto";
4
+ export interface PaConversationStartedInput {
5
+ sessionKey: string;
6
+ clientId: number;
7
+ channel: ConversationChannel;
8
+ provider: AttributionProvider;
9
+ startedAt: Date | string;
10
+ attribution?: AdAttribution | null;
11
+ }
12
+ export interface PaConversationStartedResponse {
13
+ success: boolean;
14
+ attributionRecorded: boolean;
15
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export declare enum AdAttributionType {
2
+ AD = "AD"
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdAttributionType = void 0;
4
+ var AdAttributionType;
5
+ (function (AdAttributionType) {
6
+ AdAttributionType["AD"] = "AD";
7
+ })(AdAttributionType || (exports.AdAttributionType = AdAttributionType = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum AttributionProvider {
2
+ META = "META",
3
+ UAZAPI = "UAZAPI",
4
+ ZAPI = "ZAPI"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AttributionProvider = void 0;
4
+ var AttributionProvider;
5
+ (function (AttributionProvider) {
6
+ AttributionProvider["META"] = "META";
7
+ AttributionProvider["UAZAPI"] = "UAZAPI";
8
+ AttributionProvider["ZAPI"] = "ZAPI";
9
+ })(AttributionProvider || (exports.AttributionProvider = AttributionProvider = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum ConversationChannel {
2
+ WHATSAPP = "WHATSAPP",
3
+ INSTAGRAM = "INSTAGRAM"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ConversationChannel = void 0;
4
+ var ConversationChannel;
5
+ (function (ConversationChannel) {
6
+ ConversationChannel["WHATSAPP"] = "WHATSAPP";
7
+ ConversationChannel["INSTAGRAM"] = "INSTAGRAM";
8
+ })(ConversationChannel || (exports.ConversationChannel = ConversationChannel = {}));
@@ -0,0 +1,6 @@
1
+ export * from './dto/ad-attribution.dto';
2
+ export * from './dto/pa.conversation-started.dto';
3
+ export * from './enum/ad-attribution-type.enum';
4
+ export * from './enum/attribution-provider.enum';
5
+ export * from './enum/conversation-channel.enum';
6
+ export * from './conversation.service';
@@ -0,0 +1,22 @@
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/ad-attribution.dto"), exports);
18
+ __exportStar(require("./dto/pa.conversation-started.dto"), exports);
19
+ __exportStar(require("./enum/ad-attribution-type.enum"), exports);
20
+ __exportStar(require("./enum/attribution-provider.enum"), exports);
21
+ __exportStar(require("./enum/conversation-channel.enum"), exports);
22
+ __exportStar(require("./conversation.service"), exports);
@@ -0,0 +1,74 @@
1
+ import { BillingItemType } from '../../billingMethod/enum/billing-method-type.enum';
2
+ import { ShopSegment } from '../../segment/enum/segment.enum';
3
+ export declare enum PaPlanPricingMode {
4
+ BREED = "BREED",
5
+ SIZE_HAIR = "SIZE_HAIR"
6
+ }
7
+ export declare enum PaPlanPriceMissingField {
8
+ BREED = "BREED",
9
+ SIZE = "SIZE",
10
+ HAIR = "HAIR"
11
+ }
12
+ export declare enum PaPlanType {
13
+ MONTH = "MONTH",
14
+ QUARTER = "QUARTER",
15
+ SEMESTER = "SEMESTER",
16
+ YEAR = "YEAR",
17
+ PACKAGE = "PACKAGE"
18
+ }
19
+ export declare enum PaPlanServiceRecurrentType {
20
+ WEEKLY = "WEEKLY",
21
+ FORTNIGHTLY = "FORTNIGHTLY",
22
+ MONTHLY = "MONTHLY",
23
+ NONE = "NONE"
24
+ }
25
+ export interface PaGetPlansPricingQuery {
26
+ petId?: number;
27
+ segment?: ShopSegment;
28
+ breedId?: number;
29
+ size?: BillingItemType;
30
+ hair?: BillingItemType;
31
+ }
32
+ export interface PaPlanPricingService {
33
+ serviceId: number;
34
+ name: string;
35
+ quantity: number;
36
+ recurrentType: PaPlanServiceRecurrentType;
37
+ }
38
+ export interface PaPlanPriceRange {
39
+ min: number;
40
+ max: number;
41
+ }
42
+ export interface PaPlanPriceOption {
43
+ tag: BillingItemType;
44
+ name: string;
45
+ }
46
+ export interface PaPlanPricingResponse {
47
+ id: number;
48
+ name: string;
49
+ description: string | null;
50
+ planType: PaPlanType;
51
+ cycleSize: number;
52
+ monthQuantity: number | null;
53
+ hybrid: boolean;
54
+ species: Array<string>;
55
+ services: Array<PaPlanPricingService>;
56
+ pricingMode: PaPlanPricingMode | null;
57
+ price: number | null;
58
+ priceRange: PaPlanPriceRange | null;
59
+ missing: Array<PaPlanPriceMissingField>;
60
+ sizeOptions: Array<PaPlanPriceOption>;
61
+ hairOptions: Array<PaPlanPriceOption>;
62
+ }
63
+ export interface PaPlanPricingPet {
64
+ id: number;
65
+ name: string;
66
+ breed: string | null;
67
+ specie: string | null;
68
+ size: BillingItemType | null;
69
+ hair: BillingItemType | null;
70
+ }
71
+ export interface PaGetPlansPricingResponse {
72
+ pet: PaPlanPricingPet | null;
73
+ data: Array<PaPlanPricingResponse>;
74
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaPlanServiceRecurrentType = exports.PaPlanType = exports.PaPlanPriceMissingField = exports.PaPlanPricingMode = void 0;
4
+ var PaPlanPricingMode;
5
+ (function (PaPlanPricingMode) {
6
+ PaPlanPricingMode["BREED"] = "BREED";
7
+ PaPlanPricingMode["SIZE_HAIR"] = "SIZE_HAIR";
8
+ })(PaPlanPricingMode || (exports.PaPlanPricingMode = PaPlanPricingMode = {}));
9
+ var PaPlanPriceMissingField;
10
+ (function (PaPlanPriceMissingField) {
11
+ PaPlanPriceMissingField["BREED"] = "BREED";
12
+ PaPlanPriceMissingField["SIZE"] = "SIZE";
13
+ PaPlanPriceMissingField["HAIR"] = "HAIR";
14
+ })(PaPlanPriceMissingField || (exports.PaPlanPriceMissingField = PaPlanPriceMissingField = {}));
15
+ var PaPlanType;
16
+ (function (PaPlanType) {
17
+ PaPlanType["MONTH"] = "MONTH";
18
+ PaPlanType["QUARTER"] = "QUARTER";
19
+ PaPlanType["SEMESTER"] = "SEMESTER";
20
+ PaPlanType["YEAR"] = "YEAR";
21
+ PaPlanType["PACKAGE"] = "PACKAGE";
22
+ })(PaPlanType || (exports.PaPlanType = PaPlanType = {}));
23
+ var PaPlanServiceRecurrentType;
24
+ (function (PaPlanServiceRecurrentType) {
25
+ PaPlanServiceRecurrentType["WEEKLY"] = "WEEKLY";
26
+ PaPlanServiceRecurrentType["FORTNIGHTLY"] = "FORTNIGHTLY";
27
+ PaPlanServiceRecurrentType["MONTHLY"] = "MONTHLY";
28
+ PaPlanServiceRecurrentType["NONE"] = "NONE";
29
+ })(PaPlanServiceRecurrentType || (exports.PaPlanServiceRecurrentType = PaPlanServiceRecurrentType = {}));
@@ -0,0 +1,2 @@
1
+ export * from './dto/pa.get-plans-pricing.dto';
2
+ export * from './plan.service';
@@ -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.get-plans-pricing.dto"), exports);
18
+ __exportStar(require("./plan.service"), exports);
@@ -0,0 +1,7 @@
1
+ import { HttpClient } from '../../infra/http/client.http';
2
+ import { PaGetPlansPricingQuery, PaGetPlansPricingResponse } from './dto/pa.get-plans-pricing.dto';
3
+ export declare class PlanService {
4
+ private readonly api;
5
+ constructor(api: HttpClient);
6
+ pricing(query: PaGetPlansPricingQuery, shopId: number): Promise<PaGetPlansPricingResponse>;
7
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PlanService = void 0;
4
+ class PlanService {
5
+ api;
6
+ constructor(api) {
7
+ this.api = api;
8
+ }
9
+ async pricing(query, shopId) {
10
+ const response = await this.api.get(`/plan/pricing`, query, shopId);
11
+ return { pet: response?.pet ?? null, data: response?.data ?? [] };
12
+ }
13
+ }
14
+ exports.PlanService = PlanService;
package/dist/index.d.ts CHANGED
@@ -27,7 +27,9 @@ import { WhatsappEventService } from "./domain/whatsappEvent/whatsappEvent.servi
27
27
  import { AISettingsService } from "./domain/aiSettings/aiSettings.service";
28
28
  import { CampaignService } from "./domain/campaign/campaign.service";
29
29
  import { PetPlanService } from "./domain/petPlan/petPlan.service";
30
+ import { PlanService } from "./domain/plan/plan.service";
30
31
  import { NpsService } from "./domain/nps/nps.service";
32
+ import { ConversationService } from "./domain/conversation/conversation.service";
31
33
  export declare class TecpetSDK {
32
34
  private api;
33
35
  client: ClientService;
@@ -59,7 +61,9 @@ export declare class TecpetSDK {
59
61
  aiSettings: AISettingsService;
60
62
  campaign: CampaignService;
61
63
  petPlan: PetPlanService;
64
+ plan: PlanService;
62
65
  nps: NpsService;
66
+ conversation: ConversationService;
63
67
  constructor(baseURL: string, apiKey?: string);
64
68
  }
65
69
  export * from './domain/availableTimes';
@@ -89,9 +93,11 @@ export * from './domain/customField';
89
93
  export * from './domain/serviceCapacity';
90
94
  export * from './utils/index';
91
95
  export * from './domain/petPlan';
96
+ export * from './domain/plan';
92
97
  export * from './domain/chain';
93
98
  export * from './domain/whatsappEvent';
94
99
  export * from './domain/aiSettings';
95
100
  export * from './domain/campaign';
96
101
  export * from './domain/notification';
97
102
  export * from './domain/nps';
103
+ export * from './domain/conversation';
package/dist/index.js CHANGED
@@ -45,7 +45,9 @@ const whatsappEvent_service_1 = require("./domain/whatsappEvent/whatsappEvent.se
45
45
  const aiSettings_service_1 = require("./domain/aiSettings/aiSettings.service");
46
46
  const campaign_service_1 = require("./domain/campaign/campaign.service");
47
47
  const petPlan_service_1 = require("./domain/petPlan/petPlan.service");
48
+ const plan_service_1 = require("./domain/plan/plan.service");
48
49
  const nps_service_1 = require("./domain/nps/nps.service");
50
+ const conversation_service_1 = require("./domain/conversation/conversation.service");
49
51
  class TecpetSDK {
50
52
  api;
51
53
  client;
@@ -77,7 +79,9 @@ class TecpetSDK {
77
79
  aiSettings;
78
80
  campaign;
79
81
  petPlan;
82
+ plan;
80
83
  nps;
84
+ conversation;
81
85
  constructor(baseURL, apiKey) {
82
86
  this.api = new client_http_1.HttpClient(baseURL, apiKey);
83
87
  this.client = new client_service_1.ClientService(this.api);
@@ -109,7 +113,9 @@ class TecpetSDK {
109
113
  this.aiSettings = new aiSettings_service_1.AISettingsService(this.api);
110
114
  this.campaign = new campaign_service_1.CampaignService(this.api);
111
115
  this.petPlan = new petPlan_service_1.PetPlanService(this.api);
116
+ this.plan = new plan_service_1.PlanService(this.api);
112
117
  this.nps = new nps_service_1.NpsService(this.api);
118
+ this.conversation = new conversation_service_1.ConversationService(this.api);
113
119
  }
114
120
  }
115
121
  exports.TecpetSDK = TecpetSDK;
@@ -140,9 +146,11 @@ __exportStar(require("./domain/customField"), exports);
140
146
  __exportStar(require("./domain/serviceCapacity"), exports);
141
147
  __exportStar(require("./utils/index"), exports);
142
148
  __exportStar(require("./domain/petPlan"), exports);
149
+ __exportStar(require("./domain/plan"), exports);
143
150
  __exportStar(require("./domain/chain"), exports);
144
151
  __exportStar(require("./domain/whatsappEvent"), exports);
145
152
  __exportStar(require("./domain/aiSettings"), exports);
146
153
  __exportStar(require("./domain/campaign"), exports);
147
154
  __exportStar(require("./domain/notification"), exports);
148
155
  __exportStar(require("./domain/nps"), exports);
156
+ __exportStar(require("./domain/conversation"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tec.pet/tecpet-sdk",
3
- "version": "0.0.234",
3
+ "version": "0.0.236",
4
4
  "description": "TecPet SDK for integration with TecPet services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",