@tec.pet/tecpet-sdk 0.0.36 → 0.0.37

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 (94) hide show
  1. package/dist/domain/breed/breed.service.js +0 -2
  2. package/dist/domain/client/client.service.js +3 -6
  3. package/package.json +4 -1
  4. package/.github/workflows/main.yml +0 -152
  5. package/changelog.md +0 -2
  6. package/jest.config.js +0 -14
  7. package/src/domain/availableTimes/availableTimes.service.ts +0 -23
  8. package/src/domain/availableTimes/dto/pa.get-available-time.dto.ts +0 -5
  9. package/src/domain/availableTimes/dto/pa.get-available-times.dto.ts +0 -9
  10. package/src/domain/availableTimes/index.ts +0 -3
  11. package/src/domain/billingMethod/billingMethod.service.ts +0 -20
  12. package/src/domain/billingMethod/dto/pa.get-billing-methods.dto.ts +0 -22
  13. package/src/domain/billingMethod/enum/billing-method-type.enum.ts +0 -14
  14. package/src/domain/billingMethod/index.ts +0 -3
  15. package/src/domain/booking/booking.service.ts +0 -35
  16. package/src/domain/booking/dto/pa.change-booking-status.dto.ts +0 -13
  17. package/src/domain/booking/dto/pa.create-booking.dto.ts +0 -13
  18. package/src/domain/booking/dto/pa.get-booking.dto.ts +0 -19
  19. package/src/domain/booking/dto/pa.get-bookings.dto.ts +0 -11
  20. package/src/domain/booking/index.ts +0 -3
  21. package/src/domain/breed/breed.service.ts +0 -23
  22. package/src/domain/breed/dto/pa.get-breed.dto.ts +0 -11
  23. package/src/domain/breed/dto/pa.get-breeds.dto.ts +0 -8
  24. package/src/domain/breed/index.ts +0 -3
  25. package/src/domain/chatbot/chatbotService.ts +0 -49
  26. package/src/domain/chatbot/dto/chatbot-settings.json.ts +0 -254
  27. package/src/domain/chatbot/dto/get-chatbot-formatted-messages.dto.ts +0 -20
  28. package/src/domain/chatbot/dto/pa.change-notification-status.dto.ts +0 -19
  29. package/src/domain/chatbot/dto/pa.handle-button-action.dto.ts +0 -13
  30. package/src/domain/chatbot/enum/chatbotActionEnums/chatbot-action-mode-type.enum.ts +0 -5
  31. package/src/domain/chatbot/enum/chatbotActionEnums/chatbot-action-schedule-permission.enum.ts +0 -5
  32. package/src/domain/chatbot/enum/chatbotActionEnums/chatbot-action-type.enum.ts +0 -9
  33. package/src/domain/chatbot/enum/chatbotActionEnums/media-type.enum.ts +0 -5
  34. package/src/domain/chatbot/enum/chatbotBehaviorEnums/chatbot-behavior-type.enum.ts +0 -4
  35. package/src/domain/chatbot/enum/chatbotBehaviorEnums/chatbot-inactive-employee-action.enum.ts +0 -4
  36. package/src/domain/chatbot/enum/chatbotBehaviorEnums/chatbot-timeout-action.enum.ts +0 -5
  37. package/src/domain/chatbot/enum/chatbotFluxEnums/chatbot-flux-type.enum.ts +0 -10
  38. package/src/domain/chatbot/enum/chatbotGuidanceEnums/chatbot-action-button-type.enum.ts +0 -12
  39. package/src/domain/chatbot/enum/chatbotInfoCollectionEnums/chatbot-info-collection-subtype.enum.ts +0 -32
  40. package/src/domain/chatbot/enum/chatbotInfoCollectionEnums/chatbot-info-collection-type.enum.ts +0 -12
  41. package/src/domain/chatbot/enum/chatbotInfoCollectionEnums/chatbot-price-display-mode.enum.ts +0 -5
  42. package/src/domain/chatbot/enum/chatbotInfoCollectionEnums/chatbot-size_display-mode.enum.ts +0 -5
  43. package/src/domain/chatbot/enum/chatbotInfoCollectionEnums/chatbot-time-display-mode.enum.ts +0 -5
  44. package/src/domain/chatbot/enum/chatbotInfoCollectionEnums/chatbot-time-selection-behavior.enum.ts +0 -4
  45. package/src/domain/chatbot/enum/chatbotSendingInfoItemEnums/chatbot-sending-info-item-type.enum.ts +0 -7
  46. package/src/domain/chatbot/enum/chatbotSettingsEnums/chatbot-ai-voice.enum.ts +0 -4
  47. package/src/domain/chatbot/enum/chatbotSettingsEnums/chatbot-channel-type.enum.ts +0 -3
  48. package/src/domain/chatbot/enum/chatbotSettingsEnums/chatbot-mode.enum.ts +0 -5
  49. package/src/domain/chatbot/enum/chatbotSettingsEnums/chatbot-platform-type.enum.ts +0 -4
  50. package/src/domain/chatbot/enum/chatbotSettingsEnums/chatbot-settings-ai-personality.enum.ts +0 -10
  51. package/src/domain/chatbot/enum/chatbotTriggerEnums/chatbot-trigger-pattern-type.enum.ts +0 -4
  52. package/src/domain/chatbot/index.ts +0 -10
  53. package/src/domain/client/client.service.ts +0 -40
  54. package/src/domain/client/dto/pa.create-client.dto.ts +0 -11
  55. package/src/domain/client/dto/pa.edit-client.dto.ts +0 -11
  56. package/src/domain/client/dto/pa.get-client-summary.dto.ts +0 -11
  57. package/src/domain/client/dto/pa.get-client.dto.ts +0 -20
  58. package/src/domain/client/dto/pa.get-clients.dto.ts +0 -11
  59. package/src/domain/client/index.ts +0 -5
  60. package/src/domain/combo/combo.service.ts +0 -20
  61. package/src/domain/combo/dto/pa.get-combo-pricing.dto.ts +0 -13
  62. package/src/domain/combo/index.ts +0 -2
  63. package/src/domain/employee/dto/pa.employee-filter.dto.ts +0 -4
  64. package/src/domain/employee/dto/pa.get-employee.dto.ts +0 -18
  65. package/src/domain/employee/employee.service.ts +0 -19
  66. package/src/domain/employee/index.ts +0 -3
  67. package/src/domain/pet/dto/pa.create-pet.dto.ts +0 -13
  68. package/src/domain/pet/dto/pa.edit-pet.dto.ts +0 -15
  69. package/src/domain/pet/dto/pa.get-pet-activity.dto.ts +0 -5
  70. package/src/domain/pet/dto/pa.get-pet.dto.ts +0 -23
  71. package/src/domain/pet/dto/pa.get-pets.dto.ts +0 -8
  72. package/src/domain/pet/index.ts +0 -5
  73. package/src/domain/pet/pet.service.ts +0 -36
  74. package/src/domain/segment/enum/segment.enum.ts +0 -6
  75. package/src/domain/service/dto/pa.get-service-pricing.dto.ts +0 -35
  76. package/src/domain/service/index.ts +0 -2
  77. package/src/domain/service/service.service.ts +0 -20
  78. package/src/domain/shop/dto/pa.get-shop-configurations.dto.ts +0 -92
  79. package/src/domain/shop/index.ts +0 -6
  80. package/src/domain/shop/shop.service.ts +0 -15
  81. package/src/domain/specie/dto/pa.get-specie.dto.ts +0 -7
  82. package/src/domain/specie/dto/pa.get-species.dto.ts +0 -7
  83. package/src/domain/specie/enum/specie-type.enum.ts +0 -21
  84. package/src/domain/specie/index.ts +0 -5
  85. package/src/domain/specie/specie.service.ts +0 -18
  86. package/src/domain/token/dto/pa.extract-token.dto.ts +0 -4
  87. package/src/domain/token/index.ts +0 -1
  88. package/src/domain/token/token.service.ts +0 -15
  89. package/src/domain/types/pagination.types.ts +0 -10
  90. package/src/index.ts +0 -66
  91. package/src/infra/http/client.http.ts +0 -91
  92. package/src/infra/logger/logger.interface.ts +0 -7
  93. package/src/infra/logger/stdout.logger.ts +0 -85
  94. package/tsconfig.json +0 -17
@@ -1,254 +0,0 @@
1
- import { ChatbotActionModeTypeEnum } from "../enum/chatbotActionEnums/chatbot-action-mode-type.enum";
2
- import { ChatBotActionSchedulePermissionEnum } from "../enum/chatbotActionEnums/chatbot-action-schedule-permission.enum";
3
- import { ChatbotActionTypeEnum } from "../enum/chatbotActionEnums/chatbot-action-type.enum";
4
- import { MediaTypeEnum } from "../enum/chatbotActionEnums/media-type.enum";
5
- import { ChatbotBehaviorTypeEnum } from "../enum/chatbotBehaviorEnums/chatbot-behavior-type.enum";
6
- import { ChatbotInactiveEmployeeActionEnum } from "../enum/chatbotBehaviorEnums/chatbot-inactive-employee-action.enum";
7
- import { ChatbotTimeoutActionEnum } from "../enum/chatbotBehaviorEnums/chatbot-timeout-action.enum";
8
- import { ChatbotFluxTypeEnum } from "../enum/chatbotFluxEnums/chatbot-flux-type.enum";
9
- import { ChatbotActionButtonTypeEnum } from "../enum/chatbotGuidanceEnums/chatbot-action-button-type.enum";
10
- import { ChatbotPriceDisplayModeEnum } from "../enum/chatbotInfoCollectionEnums/chatbot-price-display-mode.enum";
11
- import { ChatbotSizeDisplayModeEnum } from "../enum/chatbotInfoCollectionEnums/chatbot-size_display-mode.enum";
12
- import { ChatbotTimeDisplayModeEnum } from "../enum/chatbotInfoCollectionEnums/chatbot-time-display-mode.enum";
13
- import {
14
- ChatbotInfoCollectionBehaviorEnum
15
- } from "../enum/chatbotInfoCollectionEnums/chatbot-time-selection-behavior.enum";
16
- import { ChatbotSendingInfoItemTypeEnum } from "../enum/chatbotSendingInfoItemEnums/chatbot-sending-info-item-type.enum";
17
- import { ChatbotAIVoiceEnum } from "../enum/chatbotSettingsEnums/chatbot-ai-voice.enum";
18
- import { ChatbotChannelTypeEnum } from "../enum/chatbotSettingsEnums/chatbot-channel-type.enum";
19
- import { ChatbotModeEnum } from "../enum/chatbotSettingsEnums/chatbot-mode.enum";
20
- import { ChatbotPlatformTypeEnum } from "../enum/chatbotSettingsEnums/chatbot-platform-type.enum";
21
- import { ChatbotSettingsAIPersonalityEnum } from "../enum/chatbotSettingsEnums/chatbot-settings-ai-personality.enum";
22
- import { ChatbotTriggerPatternTypeEnum } from "../enum/chatbotTriggerEnums/chatbot-trigger-pattern-type.enum";
23
-
24
- export interface Service {
25
- id: number;
26
- }
27
-
28
- export interface PaChatbotSettingsResponse {
29
- newClientMessage?: string;
30
- registeredClientMessage?: string;
31
- onComercialTimeMessage?: string;
32
- outOfComercialTimeMessage?: string;
33
- channelType: ChatbotChannelTypeEnum;
34
- mode: ChatbotModeEnum;
35
- aiEnabled: boolean;
36
- aiPersonality: ChatbotSettingsAIPersonalityEnum;
37
- voiceResponseEnabled: boolean;
38
- aiVoice: ChatbotAIVoiceEnum;
39
- platformType: ChatbotPlatformTypeEnum;
40
- chatbotActions: ChatbotActionJson[];
41
- chatbotBehaviors: ChatbotBehaviorDto;
42
- platformSettings: {
43
- id: string;
44
- token: string;
45
- };
46
- shop: {
47
- id: number;
48
- name: string;
49
- };
50
- }
51
-
52
- export class ChatbotBehaviorDto {
53
- human?: {
54
- timeoutMessage: string;
55
- onTimeoutAction: ChatbotTimeoutActionEnum;
56
- inactiveEmployeeAction: ChatbotInactiveEmployeeActionEnum;
57
- timeoutNotificationMinutes: number;
58
- minutesToClosing: number;
59
- employee: ChatbotEmployee;
60
- alternativeEmployee: ChatbotEmployee;
61
- behavior: ChatbotBehaviorTypeEnum;
62
- };
63
- bot?: {
64
- timeoutMessage: string;
65
- closingMessage: string;
66
- onTimeoutAction: ChatbotTimeoutActionEnum;
67
- inactiveEmployeeAction: ChatbotInactiveEmployeeActionEnum;
68
- timeoutNotificationMinutes: number;
69
- behavior: ChatbotBehaviorTypeEnum;
70
- };
71
- }
72
-
73
- export interface ChatbotEmployee {
74
- id: number;
75
- phoneNumber: string;
76
- name: string;
77
- }
78
-
79
- export interface MediaDto {
80
- id: string;
81
- mimeType: string;
82
- extension: string;
83
- type: MediaTypeEnum;
84
- hasThumb: boolean;
85
- fileName: string;
86
- link: string;
87
- }
88
-
89
- export interface ChatbotSendingInfoItemDto {
90
- id: string;
91
- type: ChatbotSendingInfoItemTypeEnum;
92
- content?: string;
93
- medias?: MediaDto[];
94
- }
95
-
96
- export interface ChatbotActionJson {
97
- id:string;
98
- name: string;
99
- enabled: boolean;
100
- description: string;
101
- schedulePermission?: ChatBotActionSchedulePermissionEnum;
102
- guidanceOptions: ChatbotActionButtonDto[];
103
- sendingInfoItems: ChatbotSendingInfoItemDto[];
104
- infoCollectionMenus: InfoCollectionMenuJson;
105
- mode: ChatbotActionModeTypeEnum;
106
- actionType: ChatbotActionTypeEnum;
107
- conclusionMessage?: string;
108
- chatbotFlux: ChatbotFluxJson;
109
- }
110
-
111
- export interface ChatbotFluxJson {
112
- id: string;
113
- name: string;
114
- fluxType: ChatbotFluxTypeEnum;
115
- }
116
-
117
- export interface ChatbotActionReference {
118
- id: string;
119
- name: string;
120
- }
121
-
122
- export interface ChatbotTriggerJson {
123
- id: string;
124
-
125
- name: string;
126
-
127
- enabled: boolean;
128
-
129
- keyText: string;
130
-
131
- chatbotAction: ChatbotActionReference;
132
-
133
- description?: string;
134
-
135
- limit?: Date;
136
-
137
- patternType: ChatbotTriggerPatternTypeEnum;
138
- }
139
-
140
- export interface ChatbotActionButtonDto {
141
- id: string;
142
- buttonTitle: string;
143
- actionButtonType: ChatbotActionButtonTypeEnum;
144
- phone: string;
145
- url: string;
146
- }
147
-
148
- export interface InfoCollectionMenuJson {
149
- petInfo?: {
150
- petName: {
151
- enabled: boolean;
152
- message: string;
153
- };
154
- petSpecie: {
155
- enabled: boolean;
156
- message: string;
157
- };
158
- petBreed: { enabled?: boolean; message: string };
159
- petSize: { enabled?: boolean; message: string };
160
- petFur: { enabled?: boolean; message: string; sizeDisplayMode: ChatbotSizeDisplayModeEnum };
161
- };
162
- adaptionService?: {
163
- allowAdaptionService: {
164
- enabled: boolean;
165
- message: string;
166
- service: Service;
167
- };
168
- };
169
- serviceSelection?: {
170
- service: {
171
- message: string;
172
- };
173
- showServiceValues: { enabled: boolean; priceDisplayMode: ChatbotPriceDisplayModeEnum };
174
- serviceAddons: { enabled: boolean; message: string };
175
- serviceProfessionalChoice: { enabled: boolean };
176
- showServicePromotions: { enabled: boolean };
177
- };
178
- takeAndBring?: {
179
- allowTakeAndBring: { enabled: boolean; message: string; minAdvanceHours: number };
180
- };
181
- timeSelection?: {
182
- timeSelectionBehavior: {
183
- message: string;
184
- behavior: ChatbotInfoCollectionBehaviorEnum;
185
- timeDisplayMode: ChatbotTimeDisplayModeEnum;
186
- minAdvanceHours: number;
187
- };
188
- };
189
- editBooking?: {
190
- allowChangeDateAndTime: {
191
- enabled: boolean;
192
- };
193
- allowCancel: {
194
- enabled: boolean;
195
- };
196
- };
197
- guidance?: {
198
- guidanceMessage: {
199
- message: string;
200
- };
201
- };
202
- responseMessage?: {
203
- onCommercialTime: {
204
- message: string;
205
- };
206
- outOfCommercialTime: {
207
- message: string;
208
- };
209
- };
210
- healthPlan?: {
211
- askForHealthPlan: {
212
- message: string;
213
- enabled: boolean;
214
- };
215
- transferToAttendantIfHealthPlan: {
216
- enabled: true;
217
- behavior: ChatbotInfoCollectionBehaviorEnum.SEND_TO_ATTENDANT;
218
- };
219
- };
220
- extraInfo?: {
221
- confirmClientName: {
222
- enabled: boolean;
223
- message: string;
224
- };
225
- clientCpf: {
226
- enabled: boolean;
227
- message: string;
228
- };
229
- scheduleToAnotherPet: {
230
- enabled: boolean;
231
- message: string;
232
- };
233
- clientAddress: {
234
- enabled: boolean;
235
- message: string;
236
- };
237
- petGender: {
238
- enabled: boolean;
239
- message: string;
240
- };
241
- petBirthDate: {
242
- enabled: boolean;
243
- message: string;
244
- };
245
- petWeight: {
246
- enabled: boolean;
247
- message: string;
248
- };
249
- petDefaultChecklist: {
250
- enabled: boolean;
251
- message: string;
252
- };
253
- };
254
- }
@@ -1,20 +0,0 @@
1
- export interface ChatbotSettingsTagIds {
2
- clientId?: number;
3
- petId?: number;
4
- invoiceId?: number;
5
- serviceId?: number;
6
- bookingId?: number;
7
- }
8
-
9
- export interface ChatbotMessagesToFormat {
10
- text: string;
11
- };
12
-
13
- export interface GetChatbotFormattedMessagesInput {
14
- messages: ChatbotMessagesToFormat[];
15
- ids: ChatbotSettingsTagIds;
16
- }
17
-
18
- export interface PaGetChatbotFormattedMessagesResponse {
19
- message: string
20
- }
@@ -1,19 +0,0 @@
1
- export enum NotificationStatus {
2
- NEW = 'NEW',
3
- SENT = 'SENT',
4
- SENT_WA = 'SENT_WA',
5
- DELIVERED = 'DELIVERED',
6
- READ = 'READ',
7
- ANSWERED = 'ANSWERED',
8
- CANCELED = 'CANCELED',
9
- }
10
-
11
- export interface PaChangeNotificationStatusInput {
12
- status: NotificationStatus;
13
- date: Date;
14
- }
15
-
16
- export interface PaChangeNotificationStatusResponse {
17
- success: boolean;
18
- message: string;
19
- }
@@ -1,13 +0,0 @@
1
- import {ChatbotActionButtonTypeEnum} from "../enum/chatbotGuidanceEnums/chatbot-action-button-type.enum";
2
-
3
- export interface PaHandleButtonActionInput {
4
- type: ChatbotActionButtonTypeEnum;
5
- phone?: string;
6
- clientName?: string;
7
- invoiceId?: string;
8
- }
9
-
10
- export interface PaHandleButtonActionResponse {
11
- success: boolean;
12
- message: string;
13
- }
@@ -1,5 +0,0 @@
1
- export enum ChatbotActionModeTypeEnum {
2
- INTERN_FLUX = 'INTERN_FLUX',
3
- CUSTOM_FLUX = 'CUSTOM_FLUX',
4
- MESSAGES = 'MESSAGES',
5
- }
@@ -1,5 +0,0 @@
1
- export enum ChatBotActionSchedulePermissionEnum {
2
- ALL = 'ALL',
3
- CLIENTS = 'CLIENTS',
4
- NEW_CLIENTS = 'NEW_CLIENTS',
5
- }
@@ -1,9 +0,0 @@
1
- export enum ChatbotActionTypeEnum {
2
- PET_SHOP = 'PET_SHOP',
3
- CLINIC = 'CLINIC',
4
- DAY_CARE = 'DAY_CARE',
5
- HOTEL = 'HOTEL',
6
- BOOKING = 'BOOKING',
7
- HUMAN_SUPPORT = 'HUMAN_SUPPORT',
8
- MESSAGES = 'MESSAGES',
9
- }
@@ -1,5 +0,0 @@
1
- export enum MediaTypeEnum {
2
- DOCUMENT = 'DOCUMENT',
3
- IMAGE = 'IMAGE',
4
- VIDEO = 'VIDEO',
5
- }
@@ -1,4 +0,0 @@
1
- export enum ChatbotBehaviorTypeEnum {
2
- HUMAN = 'HUMAN',
3
- BOT = 'BOT',
4
- }
@@ -1,4 +0,0 @@
1
- export enum ChatbotInactiveEmployeeActionEnum {
2
- DO_NOTHING = 'DO_NOTHING',
3
- NOTIFY = 'NOTIFY',
4
- }
@@ -1,5 +0,0 @@
1
- export enum ChatbotTimeoutActionEnum {
2
- END = 'END',
3
- END_AND_MESSAGE = 'END_AND_MESSAGE',
4
- TRANSFER_TO_HUMAN = 'TRANSFER_TO_HUMAN',
5
- }
@@ -1,10 +0,0 @@
1
- export enum ChatbotFluxTypeEnum {
2
- PET_SHOP = 'PET_SHOP',
3
- CLINIC = 'CLINIC',
4
- DAY_CARE = 'DAY_CARE',
5
- HOTEL = 'HOTEL',
6
- BOOKING = 'BOOKING',
7
- HUMAN_SUPPORT = 'HUMAN_SUPPORT',
8
- MESSAGES = 'MESSAGES',
9
- AI = 'AI',
10
- }
@@ -1,12 +0,0 @@
1
- export enum ChatbotActionButtonTypeEnum {
2
- NONE = 'NONE',
3
- BACK_TO_HOME = 'BACK_TO_HOME',
4
- BOOKING_CONFIRM = 'BOOKING_CONFIRM',
5
- BOOKING_CANCEL = 'BOOKING_CANCEL',
6
- BOOKING_RESCHEDULE = 'BOOKING_RESCHEDULE',
7
- TRANSFER_TO_HUMAN = 'TRANSFER_TO_HUMAN',
8
- PAY_INVOICE_WITH_VOUCHER = 'PAY_INVOICE_WITH_VOUCHER',
9
- CALL = 'CALL',
10
- URL = 'URL',
11
- END = 'END',
12
- }
@@ -1,32 +0,0 @@
1
- export enum ChatbotInfoCollectionSubtypeEnum {
2
- 'CLIENT_CPF' = 'CLIENT_CPF',
3
- 'CLIENT_ADDRESS' = 'CLIENT_ADDRESS',
4
- 'CLIENT_NAME' = 'CLIENT_NAME',
5
- 'CONFIRM_CLIENT_NAME' = 'CONFIRM_CLIENT_NAME',
6
- 'ALLOW_TAKE_AND_BRING' = 'ALLOW_TAKE_AND_BRING',
7
- 'PET_SPECIE' = 'PET_SPECIE',
8
- 'PET_BREED' = 'PET_BREED',
9
- 'PET_NAME' = 'PET_NAME',
10
- 'PET_SIZE' = 'PET_SIZE',
11
- 'PET_FUR' = 'PET_FUR',
12
- 'PET_GENDER' = 'PET_GENDER',
13
- 'PET_BIRTH_DATE' = 'PET_BIRTH_DATE',
14
- 'PET_DEFAULT_CHECKLIST' = 'PET_DEFAULT_CHECKLIST',
15
- 'PET_NEUTERED' = 'PET_NEUTERED',
16
- 'PET_WEIGHT' = 'PET_WEIGHT',
17
- 'SERVICE' = 'SERVICE',
18
- 'SHOW_SERVICE_VALUES' = 'SHOW_SERVICE_VALUES',
19
- 'SERVICE_PROFESSIONAL_CHOICE' = 'SERVICE_PROFESSIONAL_CHOICE',
20
- 'SERVICE_ADDONS' = 'SERVICE_ADDONS',
21
- 'SERVICE_SHOW_PROMOTIONS' = 'SERVICE_SHOW_PROMOTIONS',
22
- 'SCHEDULE_TO_ANOTHER_PET' = 'SCHEDULE_TO_ANOTHER_PET',
23
- 'ALLOW_CHANGE_DATE_AND_TIME' = 'ALLOW_CHANGE_DATE_AND_TIME',
24
- 'ALLOW_CANCEL' = 'ALLOW_CANCEL',
25
- 'ALLOW_ADAPTION_SERVICE' = 'ALLOW_ADAPTION_SERVICE',
26
- 'ON_COMMERCIAL_TIME' = 'ON_COMMERCIAL_TIME',
27
- 'OUT_OF_COMMERCIAL_TIME' = 'OUT_OF_COMMERCIAL_TIME',
28
- 'GUIDANCE_MESSAGE' = 'GUIDANCE_MESSAGE',
29
- 'TIME_SELECTION_BEHAVIOR' = 'TIME_SELECTION_BEHAVIOR',
30
- 'ASK_FOR_HEALTH_PLAN' = 'ASK_FOR_HEALTH_PLAN',
31
- 'TRANSFER_TO_ATTENDANT_IF_HEALTH_PLAN' = 'TRANSFER_TO_ATTENDANT_IF_HEALTH_PLAN',
32
- }
@@ -1,12 +0,0 @@
1
- export enum ChatbotInfoCollectionTypeEnum {
2
- 'PET_INFO' = 'PET_INFO',
3
- 'SERVICE_SELECTION' = 'SERVICE_SELECTION',
4
- 'TAKE_AND_BRING' = 'TAKE_AND_BRING',
5
- 'TIME_SELECTION' = 'TIME_SELECTION',
6
- 'EDIT_BOOKING' = 'EDIT_BOOKING',
7
- 'GUINDANCE' = 'GUINDANCE',
8
- 'ADAPTION_SERVICE' = 'ADAPTION_SERVICE',
9
- 'RESPONSE_MESSAGE' = 'RESPONSE_MESSAGE',
10
- 'EXTRA_INFO' = 'EXTRA_INFO',
11
- 'HEALTH_PLAN' = 'HEALTH_PLAN',
12
- }
@@ -1,5 +0,0 @@
1
- export enum ChatbotPriceDisplayModeEnum {
2
- SHOW = 'SHOW',
3
- SHOW_FROM = 'SHOW_FROM',
4
- HIDE = 'HIDE',
5
- }
@@ -1,5 +0,0 @@
1
- export enum ChatbotSizeDisplayModeEnum {
2
- SIZE_NAME = 'SIZE_NAME',
3
- SIZE_WEIGHT = 'SIZE_WEIGHT',
4
- SIZE_WEIGHT_AND_NAME = 'SIZE_WEIGHT_AND_NAME',
5
- }
@@ -1,5 +0,0 @@
1
- export enum ChatbotTimeDisplayModeEnum {
2
- ALL = 'ALL',
3
- THIRTY_MIN = 'THIRTY_MIN',
4
- ONE_HOUR = 'ONE_HOUR',
5
- }
@@ -1,4 +0,0 @@
1
- export enum ChatbotInfoCollectionBehaviorEnum {
2
- SELECT_ON_BOT = 'SELECT_ON_BOT',
3
- SEND_TO_ATTENDANT = 'SEND_TO_ATTENDANT',
4
- }
@@ -1,7 +0,0 @@
1
- export enum ChatbotSendingInfoItemTypeEnum {
2
- MESSAGE = 'MESSAGE',
3
- IMAGE = 'IMAGE',
4
- VIDEO = 'VIDEO',
5
- DOCUMENT = 'DOCUMENT',
6
- AUDIO = 'AUDIO',
7
- }
@@ -1,4 +0,0 @@
1
- export enum ChatbotAIVoiceEnum {
2
- MASCULINE = 'MASCULINE',
3
- FEMININE = 'FEMININE',
4
- }
@@ -1,3 +0,0 @@
1
- export enum ChatbotChannelTypeEnum {
2
- WHATSAPP = 'WHATSAPP',
3
- }
@@ -1,5 +0,0 @@
1
- export enum ChatbotModeEnum {
2
- DISABLED = 'DISABLED',
3
- AUTO_REPLY = 'AUTO_REPLY',
4
- SELF_SERVICE = 'SELF_SERVICE',
5
- }
@@ -1,4 +0,0 @@
1
- export enum ChatbotPlatformTypeEnum {
2
- ZAPI = 'ZAPI',
3
- TYPEBOT = 'TYPEBOT',
4
- }
@@ -1,10 +0,0 @@
1
- export enum ChatbotSettingsAIPersonalityEnum {
2
- FRIENDLY = 'FRIENDLY',
3
- PROFESSIONAL = 'PROFESSIONAL',
4
- EXCITED = 'EXCITED',
5
- CALM = 'CALM',
6
- PET_MOM = 'PET_MOM',
7
- SPECIALIST = 'SPECIALIST',
8
- COOL = 'COOL',
9
- CONCISE = 'CONCISE',
10
- }
@@ -1,4 +0,0 @@
1
- export enum ChatbotTriggerPatternTypeEnum {
2
- EXACTLY_MATCH = 'EXACTLY_MATCH',
3
- CONTAIN_TEXT = 'CONTAIN_TEXT',
4
- }
@@ -1,10 +0,0 @@
1
- export * from './dto/chatbot-settings.json';
2
- export * from './dto/get-chatbot-formatted-messages.dto';
3
- export * from './dto/pa.change-notification-status.dto';
4
- export * from './enum/chatbotActionEnums/chatbot-action-type.enum';
5
- export * from './enum/chatbotBehaviorEnums/chatbot-inactive-employee-action.enum';
6
- export * from './enum/chatbotBehaviorEnums/chatbot-timeout-action.enum';
7
- export * from './enum/chatbotGuidanceEnums/chatbot-action-button-type.enum';
8
- export * from './enum/chatbotSettingsEnums/chatbot-platform-type.enum';
9
- export * from './enum/chatbotSettingsEnums/chatbot-settings-ai-personality.enum';
10
-
@@ -1,40 +0,0 @@
1
- import { PaClientResponse } from "domain/client/dto/pa.get-client.dto";
2
- import { PaGetClientsResponse } from "domain/client/dto/pa.get-clients.dto";
3
- import { HttpClient } from "infra/http/client.http";
4
- import { PaCreateClientInput } from "./dto/pa.create-client.dto";
5
- import { PaEditClientInput } from "./dto/pa.edit-client.dto";
6
- import { PaClientSummaryResponse } from "./dto/pa.get-client-summary.dto";
7
-
8
- export class ClientService {
9
- constructor(private readonly api: HttpClient) {
10
- }
11
-
12
- async getByPhone(phone: string, shopId?: number): Promise<PaClientResponse> {
13
- const response = await this.api.get<PaGetClientsResponse>(`/client`, {
14
- page: 1,
15
- limit: 20,
16
- phone,
17
- },
18
- shopId)
19
- return response.data[0];
20
-
21
- }
22
-
23
- async edit(clientId: number, body: PaEditClientInput, shopId: number): Promise<PaClientResponse> {
24
- const response = await this.api.put<PaClientResponse>(`/client/${clientId}`, body, shopId)
25
- return response;
26
-
27
- }
28
-
29
- async create(body: PaCreateClientInput, shopId: number): Promise<PaClientResponse> {
30
- const response = await this.api.post<PaClientResponse>(`/client`, body, shopId)
31
- return response;
32
-
33
- }
34
-
35
- async summary(clientId: number, shopId: number): Promise<PaClientSummaryResponse> {
36
- const response = await this.api.get<PaClientSummaryResponse>(`/client/${clientId}/summary`, {}, shopId)
37
- return response;
38
-
39
- }
40
- }
@@ -1,11 +0,0 @@
1
- import {AddressDto} from "./pa.get-client.dto";
2
-
3
- export interface PaCreateClientInput {
4
- name: string;
5
- address?: AddressDto;
6
- phoneNumber: string;
7
- phoneNumberDDI: string;
8
- cpf?: string;
9
- birthDate?: string;
10
- externId?: string;
11
- }
@@ -1,11 +0,0 @@
1
- import {AddressDto} from "./pa.get-client.dto";
2
-
3
- export class PaEditClientInput {
4
- name?: string;
5
- address?: AddressDto;
6
- phoneNumber?: string;
7
- phoneNumberDDI?: string;
8
- cpf?: string;
9
- birthDate?: string;
10
- externId?: string;
11
- }
@@ -1,11 +0,0 @@
1
- import {PaClientResponse} from './pa.get-client.dto';
2
- import {PaPetResponse} from "../../pet/dto/pa.get-pet.dto";
3
- import {PaGetBookingResponse} from "../../booking/dto/pa.get-booking.dto";
4
- import {PaGetPetActivityResponse} from "../../pet/dto/pa.get-pet-activity.dto";
5
-
6
- export interface PaClientSummaryResponse {
7
- client: PaClientResponse;
8
- pets: Array<PaPetResponse>;
9
- bookings: Array<PaGetBookingResponse>;
10
- activities: Array<PaGetPetActivityResponse>;
11
- }
@@ -1,20 +0,0 @@
1
- export interface PaClientResponse {
2
- id: number;
3
- name: string;
4
- phoneNumberDDI: string;
5
- phoneNumber: string;
6
- cpf: string;
7
- birthDate: string;
8
- shopId: number;
9
- address: AddressDto;
10
- }
11
-
12
- export interface AddressDto {
13
- street: string;
14
- number: string;
15
- zipCode: string;
16
- complement: string;
17
- neighborhood: string;
18
- city: string;
19
- uf: string;
20
- }
@@ -1,11 +0,0 @@
1
- import {IPaginationGeneric, IPaginationResponse} from "../../types/pagination.types";
2
- import {PaClientResponse} from "./pa.get-client.dto";
3
-
4
- export interface PaGetClientsQuery extends IPaginationGeneric {
5
- phone?: string;
6
- }
7
-
8
- export interface PaGetClientsResponse {
9
- data: PaClientResponse[];
10
- pagination: IPaginationResponse;
11
- }
@@ -1,5 +0,0 @@
1
- export * from '../client/dto/pa.get-client-summary.dto';
2
- export * from './dto/pa.edit-client.dto';
3
- export * from './dto/pa.get-client-summary.dto';
4
- export * from './dto/pa.get-client.dto';
5
-
@@ -1,20 +0,0 @@
1
- import {HttpClient} from "infra/http/client.http";
2
- import {ShopSegment} from "../segment/enum/segment.enum";
3
- import {PaComboPricingResponse, PaGetCombosPricingResponse} from "./dto/pa.get-combo-pricing.dto";
4
-
5
- export class ComboService {
6
- constructor(private readonly api: HttpClient) {
7
- }
8
-
9
- async pricing(petId: number, segment: ShopSegment, shopId: number): Promise<Array<PaComboPricingResponse> | null> {
10
- const response = await this.api.get<PaGetCombosPricingResponse>(`/combo/pricing`, {
11
- petId,
12
- segment,
13
- }, shopId)
14
-
15
- if (response && response.data?.length) {
16
- return response.data;
17
- }
18
- return [];
19
- }
20
- }