@trii/types 2.10.729 → 2.10.731

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 (163) hide show
  1. package/dist/AI/MapPolygon.d.ts +22 -0
  2. package/dist/Conversations/Classifications/ClassificationTaxonomy.d.ts +67 -0
  3. package/dist/Conversations/Classifications/ClassificationTaxonomy.js +5 -0
  4. package/dist/Conversations/Classifications/ConversationClassificationEvaluation.d.ts +67 -0
  5. package/dist/Conversations/Classifications/ConversationClassificationEvaluation.js +2 -0
  6. package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +29 -0
  7. package/dist/Conversations/Classifications/ConversationClassificationEvents.js +8 -0
  8. package/dist/Conversations/Classifications/index.d.ts +3 -0
  9. package/dist/{src/Automations/Triggers → Conversations/Classifications}/index.js +3 -1
  10. package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  11. package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
  12. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +0 -0
  13. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -0
  14. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -0
  15. package/dist/Conversations/Flows/Nodes/NodeApi.js +183 -0
  16. package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +15 -0
  17. package/dist/Conversations/Flows/Nodes/NodeBotIA.js +6 -0
  18. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +15 -0
  19. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +6 -0
  20. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +0 -0
  21. package/dist/Conversations/Flows/Nodes/NodeConditional.js +0 -0
  22. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +0 -0
  23. package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -0
  24. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +0 -0
  25. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -0
  26. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +0 -0
  27. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -0
  28. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +0 -0
  29. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -0
  30. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +0 -0
  31. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +0 -0
  32. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +0 -0
  33. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -0
  34. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +1 -0
  35. package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -0
  36. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +20 -0
  37. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +2 -0
  38. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +12 -0
  39. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +6 -0
  40. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +15 -0
  41. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +2 -0
  42. package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +0 -0
  43. package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +0 -0
  44. package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +0 -0
  45. package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +0 -0
  46. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +1 -0
  47. package/dist/Conversations/Flows/Nodes/NodeMsgText.js +27 -0
  48. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +0 -0
  49. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +0 -0
  50. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +0 -0
  51. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -0
  52. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +0 -0
  53. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -0
  54. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -0
  55. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +0 -0
  56. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +0 -0
  57. package/dist/Conversations/Flows/Nodes/NodeStart.js +0 -0
  58. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +0 -0
  59. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -0
  60. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +0 -0
  61. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -0
  62. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +0 -0
  63. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -0
  64. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +2 -0
  65. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +37 -0
  66. package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +2 -0
  67. package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +59 -0
  68. package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +2 -0
  69. package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +45 -0
  70. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +2 -0
  71. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +87 -0
  72. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +1 -0
  73. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +2 -0
  74. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +2 -0
  75. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +52 -0
  76. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +2 -0
  77. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +59 -0
  78. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +2 -0
  79. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +45 -0
  80. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +2 -0
  81. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +81 -0
  82. package/dist/Conversations/Flows/Nodes/index.d.ts +24 -0
  83. package/dist/Conversations/Flows/Nodes/index.js +40 -0
  84. package/dist/Conversations/InboxCounters.d.ts +18 -0
  85. package/dist/Conversations/InboxCounters.js +2 -0
  86. package/dist/Conversations/index.d.ts +1 -0
  87. package/dist/Conversations/index.js +1 -0
  88. package/dist/Presence/ChannelRoutingState.d.ts +17 -0
  89. package/dist/Presence/ChannelRoutingState.js +9 -0
  90. package/dist/Tickets/AccessLevel.d.ts +5 -0
  91. package/dist/Tickets/AccessLevel.js +9 -0
  92. package/dist/Tickets/Common.d.ts +62 -0
  93. package/dist/Tickets/CustomerNotification.d.ts +192 -0
  94. package/dist/Tickets/CustomerNotification.js +54 -0
  95. package/dist/Tickets/Notes.d.ts +13 -0
  96. package/dist/Tickets/Notes.js +10 -0
  97. package/dist/Tickets/QuickResponse.d.ts +64 -0
  98. package/dist/Tickets/QuickResponse.js +41 -0
  99. package/dist/Tickets/Task.d.ts +11 -0
  100. package/dist/Tickets/Ticket.d.ts +2 -0
  101. package/dist/Tickets/index.d.ts +3 -0
  102. package/dist/Tickets/index.js +3 -0
  103. package/dist/src/Automations/Capabilities/Capability.d.ts +0 -33
  104. package/dist/src/Automations/Capabilities/Capability.js +1 -15
  105. package/dist/src/Automations/Common.d.ts +0 -47
  106. package/dist/src/Automations/Common.js +0 -22
  107. package/dist/src/Automations/Events/Event.d.ts +4 -59
  108. package/dist/src/Automations/Events/Event.js +0 -17
  109. package/dist/src/Automations/Executions/Execution.d.ts +4 -188
  110. package/dist/src/Automations/Executions/Execution.js +1 -54
  111. package/dist/src/Automations/Executions/index.d.ts +0 -1
  112. package/dist/src/Automations/Executions/index.js +0 -1
  113. package/dist/src/Automations/Flows/Canvas.d.ts +4 -27
  114. package/dist/src/Automations/Flows/Canvas.js +1 -10
  115. package/dist/src/Automations/Flows/Flow.d.ts +3 -55
  116. package/dist/src/Automations/Flows/Flow.js +1 -25
  117. package/dist/src/Automations/Nodes/Node.d.ts +3 -44
  118. package/dist/src/Automations/Nodes/Node.js +1 -10
  119. package/dist/src/Automations/index.d.ts +0 -1
  120. package/dist/src/Automations/index.js +0 -1
  121. package/dist/src/Common/Channels/Channel.d.ts +4 -6
  122. package/dist/src/Common/Channels/Email.d.ts +0 -1
  123. package/dist/src/Common/Channels/Facebook.d.ts +0 -1
  124. package/dist/src/Common/Channels/Form.d.ts +0 -1
  125. package/dist/src/Common/Channels/GoogleBusiness.d.ts +0 -1
  126. package/dist/src/Common/Channels/Instagram.d.ts +0 -1
  127. package/dist/src/Common/Channels/MercadoLibre.d.ts +0 -1
  128. package/dist/src/Common/Channels/WebChat.d.ts +0 -1
  129. package/dist/src/Contacts/index.d.ts +0 -2
  130. package/dist/src/Contacts/index.js +0 -2
  131. package/dist/src/Conversations/Assignment.d.ts +1 -101
  132. package/dist/src/Conversations/Conversation.d.ts +0 -169
  133. package/dist/src/PublicAPI/apiKey.d.ts +3 -92
  134. package/dist/src/PublicAPI/apiKey.js +0 -27
  135. package/dist/src/Tickets/AI.d.ts +2 -50
  136. package/dist/src/Tickets/AdvancedApi.d.ts +2 -142
  137. package/dist/src/Tickets/AdvancedApi.js +1 -28
  138. package/dist/src/Tickets/Approval.d.ts +4 -20
  139. package/dist/src/Tickets/Automation.d.ts +2 -46
  140. package/dist/src/Tickets/Dashboard.d.ts +0 -1
  141. package/dist/src/Tickets/Fields.d.ts +0 -3
  142. package/dist/src/Tickets/Routing.d.ts +3 -105
  143. package/dist/src/Tickets/Routing.js +1 -7
  144. package/dist/src/Tickets/Security.d.ts +4 -271
  145. package/dist/src/Tickets/Security.js +1 -10
  146. package/dist/src/Tickets/SelfService.d.ts +0 -190
  147. package/dist/src/Tickets/Sla.d.ts +0 -140
  148. package/dist/src/index.d.ts +0 -1
  149. package/dist/src/index.js +1 -2
  150. package/package.json +12 -12
  151. package/dist/src/Automations/Executions/Testing.d.ts +0 -166
  152. package/dist/src/Automations/Executions/Testing.js +0 -54
  153. package/dist/src/Automations/Triggers/Trigger.d.ts +0 -112
  154. package/dist/src/Automations/Triggers/Trigger.js +0 -66
  155. package/dist/src/Automations/Triggers/index.d.ts +0 -1
  156. package/dist/src/Contacts/CommunicationEndpoint.d.ts +0 -107
  157. package/dist/src/Contacts/CommunicationEndpoint.js +0 -39
  158. package/dist/src/Contacts/CommunicationMethod.d.ts +0 -9
  159. package/dist/src/Events/DomainEventTypes.d.ts +0 -51
  160. package/dist/src/Events/DomainEventTypes.js +0 -49
  161. package/dist/src/Events/index.d.ts +0 -1
  162. package/dist/src/Events/index.js +0 -17
  163. /package/dist/{src/Contacts/CommunicationMethod.js → AI/MapPolygon.js} +0 -0
@@ -67,46 +67,6 @@ export interface ITicketPortal extends ITicketAuditedEntity {
67
67
  privacyDocumentId?: string;
68
68
  enabled: boolean;
69
69
  }
70
- export interface ICreateTicketPortalDto {
71
- name: string;
72
- slug: string;
73
- title: string;
74
- description?: string;
75
- logoUrl?: string;
76
- faviconUrl?: string;
77
- primaryColor?: string;
78
- defaultLocale: string;
79
- supportedLocales?: string[];
80
- authenticationMode: TicketPortalAuthenticationMode;
81
- allowTicketCreation?: boolean;
82
- allowTicketTracking?: boolean;
83
- allowComments?: boolean;
84
- allowReopen?: boolean;
85
- allowCancellation?: boolean;
86
- termsDocumentId?: string;
87
- privacyDocumentId?: string;
88
- enabled?: boolean;
89
- }
90
- export interface IUpdateTicketPortalDto {
91
- name?: string;
92
- slug?: string;
93
- title?: string;
94
- description?: string | null;
95
- logoUrl?: string | null;
96
- faviconUrl?: string | null;
97
- primaryColor?: string | null;
98
- defaultLocale?: string;
99
- supportedLocales?: string[] | null;
100
- authenticationMode?: TicketPortalAuthenticationMode;
101
- allowTicketCreation?: boolean;
102
- allowTicketTracking?: boolean;
103
- allowComments?: boolean;
104
- allowReopen?: boolean;
105
- allowCancellation?: boolean;
106
- termsDocumentId?: string | null;
107
- privacyDocumentId?: string | null;
108
- enabled?: boolean;
109
- }
110
70
  export interface ITicketRequestType extends ITicketAuditedEntity {
111
71
  name: string;
112
72
  description?: string;
@@ -124,40 +84,6 @@ export interface ITicketRequestType extends ITicketAuditedEntity {
124
84
  audiencePolicyId?: string;
125
85
  enabled: boolean;
126
86
  }
127
- export interface ICreateTicketRequestTypeDto {
128
- name: string;
129
- description?: string;
130
- categoryId: string;
131
- icon?: string;
132
- formId: string;
133
- formVersion?: number;
134
- workflowId?: string;
135
- defaultPriority?: TicketPriority;
136
- defaultAssignedGroupId?: string;
137
- slaPolicyId?: string;
138
- publicStatusSchemeId?: string;
139
- fieldDefinitionIds?: string[];
140
- layoutIds?: string[];
141
- audiencePolicyId?: string;
142
- enabled?: boolean;
143
- }
144
- export interface IUpdateTicketRequestTypeDto {
145
- name?: string;
146
- description?: string | null;
147
- categoryId?: string;
148
- icon?: string | null;
149
- formId?: string;
150
- formVersion?: number | null;
151
- workflowId?: string | null;
152
- defaultPriority?: TicketPriority | null;
153
- defaultAssignedGroupId?: string | null;
154
- slaPolicyId?: string | null;
155
- publicStatusSchemeId?: string | null;
156
- fieldDefinitionIds?: string[] | null;
157
- layoutIds?: string[] | null;
158
- audiencePolicyId?: string | null;
159
- enabled?: boolean;
160
- }
161
87
  export interface IServiceCatalog extends ITicketAuditedEntity {
162
88
  portalId: string;
163
89
  name: string;
@@ -165,20 +91,6 @@ export interface IServiceCatalog extends ITicketAuditedEntity {
165
91
  order?: number;
166
92
  enabled: boolean;
167
93
  }
168
- export interface ICreateServiceCatalogDto {
169
- portalId: string;
170
- name: string;
171
- description?: string;
172
- order?: number;
173
- enabled?: boolean;
174
- }
175
- export interface IUpdateServiceCatalogDto {
176
- portalId?: string;
177
- name?: string;
178
- description?: string | null;
179
- order?: number | null;
180
- enabled?: boolean;
181
- }
182
94
  export interface IServiceCatalogSection extends ITicketAuditedEntity {
183
95
  catalogId: string;
184
96
  parentSectionId?: string;
@@ -188,24 +100,6 @@ export interface IServiceCatalogSection extends ITicketAuditedEntity {
188
100
  order: number;
189
101
  enabled: boolean;
190
102
  }
191
- export interface ICreateServiceCatalogSectionDto {
192
- catalogId: string;
193
- parentSectionId?: string;
194
- name: string;
195
- description?: string;
196
- icon?: string;
197
- order?: number;
198
- enabled?: boolean;
199
- }
200
- export interface IUpdateServiceCatalogSectionDto {
201
- catalogId?: string;
202
- parentSectionId?: string | null;
203
- name?: string;
204
- description?: string | null;
205
- icon?: string | null;
206
- order?: number;
207
- enabled?: boolean;
208
- }
209
103
  export interface IServiceCatalogItem extends ITicketAuditedEntity {
210
104
  catalogId: string;
211
105
  sectionId?: string;
@@ -218,30 +112,6 @@ export interface IServiceCatalogItem extends ITicketAuditedEntity {
218
112
  audiencePolicyId?: string;
219
113
  enabled: boolean;
220
114
  }
221
- export interface ICreateServiceCatalogItemDto {
222
- catalogId: string;
223
- sectionId?: string;
224
- requestTypeId: string;
225
- name: string;
226
- shortDescription?: string;
227
- imageUrl?: string;
228
- order?: number;
229
- estimatedDeliveryMinutes?: number;
230
- audiencePolicyId?: string;
231
- enabled?: boolean;
232
- }
233
- export interface IUpdateServiceCatalogItemDto {
234
- catalogId?: string;
235
- sectionId?: string | null;
236
- requestTypeId?: string;
237
- name?: string;
238
- shortDescription?: string | null;
239
- imageUrl?: string | null;
240
- order?: number;
241
- estimatedDeliveryMinutes?: number | null;
242
- audiencePolicyId?: string | null;
243
- enabled?: boolean;
244
- }
245
115
  export interface ITicketAudienceRule {
246
116
  id: string;
247
117
  effect: TicketAudienceRuleEffect;
@@ -259,20 +129,6 @@ export interface ITicketAudiencePolicy extends ITicketAuditedEntity {
259
129
  rules: ITicketAudienceRule[];
260
130
  enabled: boolean;
261
131
  }
262
- export interface ICreateTicketAudiencePolicyDto {
263
- name: string;
264
- description?: string;
265
- defaultEffect: TicketAudienceRuleEffect;
266
- rules?: ITicketAudienceRule[];
267
- enabled?: boolean;
268
- }
269
- export interface IUpdateTicketAudiencePolicyDto {
270
- name?: string;
271
- description?: string | null;
272
- defaultEffect?: TicketAudienceRuleEffect;
273
- rules?: ITicketAudienceRule[];
274
- enabled?: boolean;
275
- }
276
132
  export interface ITicketRequestDraft {
277
133
  id: string;
278
134
  spaceId: string;
@@ -335,28 +191,6 @@ export interface ITicketKnowledgeReference extends ITicketAuditedEntity {
335
191
  order?: number;
336
192
  enabled: boolean;
337
193
  }
338
- export interface ICreateTicketKnowledgeReferenceDto {
339
- referenceType: TicketKnowledgeReferenceType;
340
- documentId: string;
341
- portalIds?: string[];
342
- requestTypeIds?: string[];
343
- categoryIds?: string[];
344
- locales?: string[];
345
- audiencePolicyId?: string;
346
- order?: number;
347
- enabled?: boolean;
348
- }
349
- export interface IUpdateTicketKnowledgeReferenceDto {
350
- referenceType?: TicketKnowledgeReferenceType;
351
- documentId?: string;
352
- portalIds?: string[] | null;
353
- requestTypeIds?: string[] | null;
354
- categoryIds?: string[] | null;
355
- locales?: string[] | null;
356
- audiencePolicyId?: string | null;
357
- order?: number | null;
358
- enabled?: boolean;
359
- }
360
194
  /** Rules may work globally at portal level and become more specific by request type/category. */
361
195
  export interface ITicketDeflectionRule extends ITicketAuditedEntity {
362
196
  name: string;
@@ -370,30 +204,6 @@ export interface ITicketDeflectionRule extends ITicketAuditedEntity {
370
204
  audiencePolicyId?: string;
371
205
  enabled: boolean;
372
206
  }
373
- export interface ICreateTicketDeflectionRuleDto {
374
- name: string;
375
- portalId: string;
376
- requestTypeIds?: string[];
377
- categoryIds?: string[];
378
- knowledgeReferenceIds?: string[];
379
- includeKnownIssues?: boolean;
380
- minimumScore?: number;
381
- maximumSuggestions?: number;
382
- audiencePolicyId?: string;
383
- enabled?: boolean;
384
- }
385
- export interface IUpdateTicketDeflectionRuleDto {
386
- name?: string;
387
- portalId?: string;
388
- requestTypeIds?: string[] | null;
389
- categoryIds?: string[] | null;
390
- knowledgeReferenceIds?: string[] | null;
391
- includeKnownIssues?: boolean;
392
- minimumScore?: number | null;
393
- maximumSuggestions?: number | null;
394
- audiencePolicyId?: string | null;
395
- enabled?: boolean;
396
- }
397
207
  export interface ITicketDeflectionSuggestion {
398
208
  knowledgeReferenceId?: string;
399
209
  knownIssueTicketId?: string;
@@ -79,57 +79,6 @@ export interface IBusinessCalendar extends ITicketAuditedEntity {
79
79
  exceptions: IBusinessCalendarException[];
80
80
  enabled: boolean;
81
81
  }
82
- export interface ICreateBusinessCalendarDto {
83
- name: string;
84
- timeZone: string;
85
- schedule: IBusinessDaySchedule[];
86
- exceptions: IBusinessCalendarException[];
87
- enabled?: boolean;
88
- }
89
- export interface IUpdateBusinessCalendarDto {
90
- name?: string;
91
- timeZone?: string;
92
- schedule?: IBusinessDaySchedule[];
93
- exceptions?: IBusinessCalendarException[];
94
- enabled?: boolean;
95
- }
96
- export interface IBusinessCalendarPreviewRequest {
97
- businessCalendarId?: string;
98
- calendar?: {
99
- timeZone: string;
100
- schedule: IBusinessDaySchedule[];
101
- exceptions: IBusinessCalendarException[];
102
- };
103
- check: {
104
- type: 'IS_WORKING_MOMENT';
105
- at: string;
106
- } | {
107
- type: 'NEXT_WORKING_PERIOD';
108
- from: string;
109
- } | {
110
- type: 'DEADLINE';
111
- from: string;
112
- durationMinutes: number;
113
- };
114
- }
115
- export interface IBusinessCalendarPreviewResponse {
116
- result: {
117
- type: 'IS_WORKING_MOMENT';
118
- isWorking: boolean;
119
- matchedException?: {
120
- date: string;
121
- name?: string;
122
- };
123
- } | {
124
- type: 'NEXT_WORKING_PERIOD';
125
- startsAt: string;
126
- endsAt: string;
127
- } | {
128
- type: 'DEADLINE';
129
- dueAt: string;
130
- businessMinutesConsumed: number;
131
- };
132
- }
133
82
  export interface ISlaEventMatcher {
134
83
  eventType: SlaEventType;
135
84
  statusId?: string;
@@ -148,30 +97,6 @@ export interface ISlaMetricDefinition extends ITicketAuditedEntity {
148
97
  cycleStartBehavior: SlaCycleStartBehavior;
149
98
  enabled: boolean;
150
99
  }
151
- export interface ICreateSlaMetricDefinitionDto {
152
- code: string;
153
- name: string;
154
- description?: string;
155
- type: SlaMetricType;
156
- statusId?: string;
157
- customEventType?: string;
158
- startEvent: ISlaEventMatcher;
159
- completionEvent: ISlaEventMatcher;
160
- cycleStartBehavior: SlaCycleStartBehavior;
161
- enabled?: boolean;
162
- }
163
- export interface IUpdateSlaMetricDefinitionDto {
164
- code?: string;
165
- name?: string;
166
- description?: string;
167
- type?: SlaMetricType;
168
- statusId?: string;
169
- customEventType?: string;
170
- startEvent?: ISlaEventMatcher;
171
- completionEvent?: ISlaEventMatcher;
172
- cycleStartBehavior?: SlaCycleStartBehavior;
173
- enabled?: boolean;
174
- }
175
100
  export interface ISlaWarningThreshold {
176
101
  id: string;
177
102
  percentage?: number;
@@ -231,71 +156,6 @@ export interface ITicketSlaPolicy extends ITicketAuditedEntity {
231
156
  policyChangeBehavior?: SlaPolicyChangeBehavior;
232
157
  reopenBehavior?: SlaPolicyChangeBehavior;
233
158
  }
234
- export interface ICreateTicketSlaPolicyDto {
235
- name: string;
236
- description?: string;
237
- enabled?: boolean;
238
- order?: number;
239
- priority?: TicketPriority;
240
- categoryIds?: string[];
241
- conditions?: ISlaPolicyCondition[];
242
- conditionGroup?: ISlaConditionGroup;
243
- targets: ISlaTarget[];
244
- commitments?: IServiceCommitment[];
245
- pausableStatusIds?: string[];
246
- policyChangeBehavior?: SlaPolicyChangeBehavior;
247
- reopenBehavior?: SlaPolicyChangeBehavior;
248
- }
249
- export interface IUpdateTicketSlaPolicyDto {
250
- expectedVersion: number;
251
- name?: string;
252
- description?: string;
253
- enabled?: boolean;
254
- order?: number;
255
- priority?: TicketPriority;
256
- categoryIds?: string[];
257
- conditions?: ISlaPolicyCondition[];
258
- conditionGroup?: ISlaConditionGroup;
259
- targets?: ISlaTarget[];
260
- commitments?: IServiceCommitment[];
261
- pausableStatusIds?: string[];
262
- policyChangeBehavior?: SlaPolicyChangeBehavior;
263
- reopenBehavior?: SlaPolicyChangeBehavior;
264
- }
265
- export interface ISimulateSlaPolicyRequest {
266
- ticket: {
267
- categoryId?: string;
268
- priority?: TicketPriority;
269
- properties?: Record<string, TicketPropertyValue>;
270
- };
271
- startAt: string;
272
- }
273
- export interface ISimulatedTarget {
274
- targetId?: string;
275
- metricDefinitionId?: string;
276
- metric?: SlaMetricType;
277
- mode: SlaTimeMode;
278
- businessCalendarId?: string;
279
- dueAt: string;
280
- warnings: {
281
- thresholdId: string;
282
- at: string;
283
- }[];
284
- }
285
- export interface ISimulatedCommitment {
286
- id: string;
287
- type: ServiceCommitmentType;
288
- name: string;
289
- targets: ISimulatedTarget[];
290
- }
291
- export interface ISimulateSlaPolicyResponse {
292
- policy: {
293
- id: string;
294
- name: string;
295
- } | null;
296
- targets: ISimulatedTarget[];
297
- commitments: ISimulatedCommitment[];
298
- }
299
159
  export interface ISlaPausePeriod {
300
160
  startedAt: Date;
301
161
  endedAt?: Date;
@@ -15,7 +15,6 @@ export * as Users from './Users/index';
15
15
  export * as Presence from './Presence/index';
16
16
  export * as ApiResponses from './ApiResponses/index';
17
17
  export * as EventsQueue from './Common/EventsQueue/index';
18
- export * as Events from './Events/index';
19
18
  export * as APIKeys from './PublicAPI/apiKey';
20
19
  export * as AI from './AI/index';
21
20
  export * as Shop from './Shop/index';
package/dist/src/index.js CHANGED
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.Automations = exports.Forms = exports.APIResponses = exports.Shop = exports.AI = exports.APIKeys = exports.Events = exports.EventsQueue = exports.ApiResponses = exports.Presence = exports.Users = exports.Collections = exports.Sales = exports.Tickets = exports.Spaces = exports.Reports = exports.Security = exports.Calls = exports.Conversations = exports.Calendar = exports.Contacts = exports.Common = exports.AuditLogs = exports.Accounts = void 0;
36
+ exports.Automations = exports.Forms = exports.APIResponses = exports.Shop = exports.AI = exports.APIKeys = exports.EventsQueue = exports.ApiResponses = exports.Presence = exports.Users = exports.Collections = exports.Sales = exports.Tickets = exports.Spaces = exports.Reports = exports.Security = exports.Calls = exports.Conversations = exports.Calendar = exports.Contacts = exports.Common = exports.AuditLogs = exports.Accounts = void 0;
37
37
  exports.Accounts = __importStar(require("./Accounts/index"));
38
38
  exports.AuditLogs = __importStar(require("./AuditLogs/index"));
39
39
  exports.Common = __importStar(require("./Common/index"));
@@ -51,7 +51,6 @@ exports.Users = __importStar(require("./Users/index"));
51
51
  exports.Presence = __importStar(require("./Presence/index"));
52
52
  exports.ApiResponses = __importStar(require("./ApiResponses/index"));
53
53
  exports.EventsQueue = __importStar(require("./Common/EventsQueue/index"));
54
- exports.Events = __importStar(require("./Events/index"));
55
54
  exports.APIKeys = __importStar(require("./PublicAPI/apiKey"));
56
55
  exports.AI = __importStar(require("./AI/index"));
57
56
  exports.Shop = __importStar(require("./Shop/index"));
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
- {
2
- "name": "@trii/types",
3
- "version": "2.10.729",
4
- "description": "Types definitions for Trii projects - ",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "files": [
8
- "/dist"
9
- ],
10
- "author": "Trii LLC",
11
- "license": "ISC"
12
- }
1
+ {
2
+ "name": "@trii/types",
3
+ "version": "2.10.731",
4
+ "description": "Types definitions for Trii projects - ",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "/dist"
9
+ ],
10
+ "author": "Trii LLC",
11
+ "license": "ISC"
12
+ }
@@ -1,166 +0,0 @@
1
- import { AutomationCustomer, AutomationJsonObject, AutomationJsonSchema, AutomationJsonValue, AutomationResourceReference } from '../Common';
2
- import { AutomationCapabilityEffectClass } from '../Capabilities';
3
- import { AutomationExecutionContextInput, AutomationExecutionEffectMode, AutomationExecutionScope, AutomationExecutionSource, AutomationFlowSnapshotReference } from './Execution';
4
- export declare enum AutomationArtifactStatus {
5
- UPLOADING = "uploading",
6
- SCANNING = "scanning",
7
- AVAILABLE = "available",
8
- REJECTED = "rejected",
9
- EXPIRED = "expired"
10
- }
11
- export declare enum AutomationArtifactOrigin {
12
- UPLOAD = "upload",
13
- CAPTURED_EVENT = "capturedEvent",
14
- EXECUTION = "execution",
15
- GENERATED = "generated"
16
- }
17
- export interface AutomationArtifactReference {
18
- id: string;
19
- name: string;
20
- mimeType: string;
21
- size: number;
22
- origin: AutomationArtifactOrigin;
23
- status: AutomationArtifactStatus;
24
- checksum?: string | null;
25
- expiresAt?: string | null;
26
- owner?: AutomationResourceReference | null;
27
- }
28
- export declare enum AutomationTestCaseVisibility {
29
- PRIVATE = "private",
30
- SHARED = "shared"
31
- }
32
- export declare enum AutomationTestAssertionKind {
33
- EXECUTION_STATUS = "executionStatus",
34
- NODE_REACHED = "nodeReached",
35
- NODE_NOT_REACHED = "nodeNotReached",
36
- PATH_EXISTS = "pathExists",
37
- PATH_TYPE = "pathType",
38
- PATH_VALUE = "pathValue",
39
- ERROR_CODE = "errorCode",
40
- MAX_DURATION = "maxDuration",
41
- MAX_COST = "maxCost"
42
- }
43
- export declare enum AutomationTestAssertionStatus {
44
- PENDING = "pending",
45
- PASSED = "passed",
46
- FAILED = "failed",
47
- SKIPPED = "skipped"
48
- }
49
- export interface AutomationTestAssertion {
50
- id: string;
51
- kind: AutomationTestAssertionKind;
52
- nodeId?: string | null;
53
- path?: string | null;
54
- expected?: AutomationJsonValue;
55
- configuration?: AutomationJsonObject | null;
56
- }
57
- export interface AutomationTestAssertionResult {
58
- assertionId: string;
59
- status: AutomationTestAssertionStatus;
60
- message?: string | null;
61
- actual?: AutomationJsonValue;
62
- }
63
- /** Configuración común utilizada por preflight e inicio de una prueba. */
64
- export interface AutomationTestConfiguration {
65
- flowId: string;
66
- flowVersionId?: string | null;
67
- draftRevision?: number | null;
68
- entryPointId: string;
69
- scope: AutomationExecutionScope;
70
- requestedEffectMode: AutomationExecutionEffectMode;
71
- source: AutomationExecutionSource;
72
- customer?: AutomationCustomer | null;
73
- input?: AutomationJsonObject | null;
74
- context?: AutomationExecutionContextInput | null;
75
- nodeInputOverrides?: Record<string, AutomationJsonObject> | null;
76
- artifactIds?: string[] | null;
77
- testTargetOverrides?: AutomationJsonObject | null;
78
- }
79
- export interface StartAutomationTestRequest extends AutomationTestConfiguration {
80
- idempotencyKey: string;
81
- correlationId?: string | null;
82
- testCaseId?: string | null;
83
- testCaseRevision?: number | null;
84
- preflightToken?: string | null;
85
- }
86
- export interface AutomationTestPreflightRequest extends AutomationTestConfiguration {
87
- }
88
- export declare enum AutomationTestPreflightStatus {
89
- READY = "ready",
90
- WARNING = "warning",
91
- BLOCKED = "blocked"
92
- }
93
- export declare enum AutomationTestPreflightIssueSeverity {
94
- INFO = "info",
95
- WARNING = "warning",
96
- BLOCKER = "blocker"
97
- }
98
- export interface AutomationTestPreflightIssue {
99
- code: string;
100
- severity: AutomationTestPreflightIssueSeverity;
101
- message: string;
102
- nodeId?: string | null;
103
- details?: AutomationJsonObject | null;
104
- }
105
- export interface AutomationTestPreflightNode {
106
- nodeId: string;
107
- nodeDefinitionCode: string;
108
- nodeDefinitionVersion: number;
109
- reachable: boolean;
110
- executable: boolean;
111
- issues: AutomationTestPreflightIssue[];
112
- }
113
- export interface AutomationTestPreflightEffect {
114
- nodeId: string;
115
- effectClass: AutomationCapabilityEffectClass;
116
- action: string;
117
- description?: string | null;
118
- originalTarget?: AutomationResourceReference | null;
119
- effectiveTarget?: AutomationResourceReference | null;
120
- estimatedItems?: number | null;
121
- }
122
- export interface AutomationTestPreflightLimits {
123
- maxDurationMs?: number | null;
124
- maxSteps?: number | null;
125
- maxIterations?: number | null;
126
- maxItems?: number | null;
127
- estimatedCost?: number | null;
128
- currency?: string | null;
129
- }
130
- export interface AutomationTestPreflightResult {
131
- status: AutomationTestPreflightStatus;
132
- snapshot: AutomationFlowSnapshotReference;
133
- requestedEffectMode: AutomationExecutionEffectMode;
134
- effectiveEffectMode: AutomationExecutionEffectMode;
135
- nodes: AutomationTestPreflightNode[];
136
- effects: AutomationTestPreflightEffect[];
137
- issues: AutomationTestPreflightIssue[];
138
- limits: AutomationTestPreflightLimits;
139
- requiresConfirmation: boolean;
140
- preflightToken: string;
141
- expiresAt: string;
142
- }
143
- export interface AutomationTestCase {
144
- id: string;
145
- spaceId: string;
146
- flowId: string;
147
- name: string;
148
- description?: string | null;
149
- revision: number;
150
- visibility: AutomationTestCaseVisibility;
151
- configuration: AutomationTestConfiguration;
152
- assertions: AutomationTestAssertion[];
153
- createdBy: string;
154
- createdAt: string;
155
- updatedBy?: string | null;
156
- updatedAt?: string | null;
157
- }
158
- /** Schema opcional para que el Estudio genere un simulador por Entry Point. */
159
- export interface AutomationEntryPointTestSchema {
160
- entryPointId: string;
161
- inputSchema?: AutomationJsonSchema | null;
162
- contextSchema?: AutomationJsonSchema | null;
163
- allowedArtifactMimeTypes?: string[] | null;
164
- maxArtifactSize?: number | null;
165
- maxArtifacts?: number | null;
166
- }
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutomationTestPreflightIssueSeverity = exports.AutomationTestPreflightStatus = exports.AutomationTestAssertionStatus = exports.AutomationTestAssertionKind = exports.AutomationTestCaseVisibility = exports.AutomationArtifactOrigin = exports.AutomationArtifactStatus = void 0;
4
- var AutomationArtifactStatus;
5
- (function (AutomationArtifactStatus) {
6
- AutomationArtifactStatus["UPLOADING"] = "uploading";
7
- AutomationArtifactStatus["SCANNING"] = "scanning";
8
- AutomationArtifactStatus["AVAILABLE"] = "available";
9
- AutomationArtifactStatus["REJECTED"] = "rejected";
10
- AutomationArtifactStatus["EXPIRED"] = "expired";
11
- })(AutomationArtifactStatus || (exports.AutomationArtifactStatus = AutomationArtifactStatus = {}));
12
- var AutomationArtifactOrigin;
13
- (function (AutomationArtifactOrigin) {
14
- AutomationArtifactOrigin["UPLOAD"] = "upload";
15
- AutomationArtifactOrigin["CAPTURED_EVENT"] = "capturedEvent";
16
- AutomationArtifactOrigin["EXECUTION"] = "execution";
17
- AutomationArtifactOrigin["GENERATED"] = "generated";
18
- })(AutomationArtifactOrigin || (exports.AutomationArtifactOrigin = AutomationArtifactOrigin = {}));
19
- var AutomationTestCaseVisibility;
20
- (function (AutomationTestCaseVisibility) {
21
- AutomationTestCaseVisibility["PRIVATE"] = "private";
22
- AutomationTestCaseVisibility["SHARED"] = "shared";
23
- })(AutomationTestCaseVisibility || (exports.AutomationTestCaseVisibility = AutomationTestCaseVisibility = {}));
24
- var AutomationTestAssertionKind;
25
- (function (AutomationTestAssertionKind) {
26
- AutomationTestAssertionKind["EXECUTION_STATUS"] = "executionStatus";
27
- AutomationTestAssertionKind["NODE_REACHED"] = "nodeReached";
28
- AutomationTestAssertionKind["NODE_NOT_REACHED"] = "nodeNotReached";
29
- AutomationTestAssertionKind["PATH_EXISTS"] = "pathExists";
30
- AutomationTestAssertionKind["PATH_TYPE"] = "pathType";
31
- AutomationTestAssertionKind["PATH_VALUE"] = "pathValue";
32
- AutomationTestAssertionKind["ERROR_CODE"] = "errorCode";
33
- AutomationTestAssertionKind["MAX_DURATION"] = "maxDuration";
34
- AutomationTestAssertionKind["MAX_COST"] = "maxCost";
35
- })(AutomationTestAssertionKind || (exports.AutomationTestAssertionKind = AutomationTestAssertionKind = {}));
36
- var AutomationTestAssertionStatus;
37
- (function (AutomationTestAssertionStatus) {
38
- AutomationTestAssertionStatus["PENDING"] = "pending";
39
- AutomationTestAssertionStatus["PASSED"] = "passed";
40
- AutomationTestAssertionStatus["FAILED"] = "failed";
41
- AutomationTestAssertionStatus["SKIPPED"] = "skipped";
42
- })(AutomationTestAssertionStatus || (exports.AutomationTestAssertionStatus = AutomationTestAssertionStatus = {}));
43
- var AutomationTestPreflightStatus;
44
- (function (AutomationTestPreflightStatus) {
45
- AutomationTestPreflightStatus["READY"] = "ready";
46
- AutomationTestPreflightStatus["WARNING"] = "warning";
47
- AutomationTestPreflightStatus["BLOCKED"] = "blocked";
48
- })(AutomationTestPreflightStatus || (exports.AutomationTestPreflightStatus = AutomationTestPreflightStatus = {}));
49
- var AutomationTestPreflightIssueSeverity;
50
- (function (AutomationTestPreflightIssueSeverity) {
51
- AutomationTestPreflightIssueSeverity["INFO"] = "info";
52
- AutomationTestPreflightIssueSeverity["WARNING"] = "warning";
53
- AutomationTestPreflightIssueSeverity["BLOCKER"] = "blocker";
54
- })(AutomationTestPreflightIssueSeverity || (exports.AutomationTestPreflightIssueSeverity = AutomationTestPreflightIssueSeverity = {}));