@trii/types 2.10.732 → 2.10.735

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 (106) hide show
  1. package/dist/Automations/Events/Event.d.ts +3 -3
  2. package/dist/Chats/Chat.d.ts +2 -0
  3. package/dist/Common/Messages/Message.d.ts +28 -0
  4. package/dist/Common/index.js +17 -7
  5. package/dist/Contacts/CommunicationEndpoint.d.ts +8 -8
  6. package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +2 -2
  7. package/dist/Conversations/Conversation.d.ts +31 -10
  8. package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  9. package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
  10. package/dist/Conversations/InboxCounters.d.ts +18 -0
  11. package/dist/Conversations/InboxMongo.d.ts +12 -12
  12. package/dist/Conversations/Routing.d.ts +10 -10
  13. package/dist/Conversations/index.js +17 -7
  14. package/dist/Events/DomainEventTypes.d.ts +23 -23
  15. package/dist/Tickets/Ticket.d.ts +1 -0
  16. package/dist/index.js +17 -7
  17. package/dist/src/Common/Channels/Channel.d.ts +1 -28
  18. package/dist/src/Contacts/contacts.d.ts +2 -2
  19. package/dist/src/Conversations/Conversation.d.ts +48 -331
  20. package/dist/src/Conversations/Conversation.js +34 -14
  21. package/dist/src/Conversations/DashBoard/dashboard.d.ts +2 -2
  22. package/dist/src/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  23. package/dist/src/Conversations/DashBoard/dashboardForms.js +24 -0
  24. package/dist/src/Conversations/Flows/Workflows/Workflow.d.ts +123 -280
  25. package/dist/src/Conversations/Flows/Workflows/Workflow.js +35 -85
  26. package/dist/src/Conversations/Groups/Group.d.ts +8 -2
  27. package/dist/src/Conversations/Groups/Group.js +6 -0
  28. package/dist/src/Conversations/Label.d.ts +1 -1
  29. package/dist/src/Conversations/WebHook.d.ts +1 -1
  30. package/dist/src/Conversations/index.d.ts +1 -9
  31. package/dist/src/Conversations/index.js +1 -9
  32. package/dist/src/Tickets/Category.d.ts +0 -18
  33. package/dist/src/Tickets/Dashboard.d.ts +0 -78
  34. package/dist/src/Tickets/Dashboard.js +1 -13
  35. package/dist/src/Tickets/Fields.d.ts +0 -1
  36. package/dist/src/Tickets/Layouts.d.ts +1 -3
  37. package/dist/src/Tickets/Workflow.d.ts +0 -20
  38. package/dist/src/Users/UserTrii.d.ts +0 -10
  39. package/dist/src/Users/UserTrii.js +1 -8
  40. package/dist/src/index.d.ts +0 -3
  41. package/dist/src/index.js +1 -4
  42. package/package.json +2 -5
  43. package/dist/src/Automations/Capabilities/Capability.d.ts +0 -81
  44. package/dist/src/Automations/Capabilities/Capability.js +0 -23
  45. package/dist/src/Automations/Capabilities/index.d.ts +0 -1
  46. package/dist/src/Automations/Capabilities/index.js +0 -17
  47. package/dist/src/Automations/Common.d.ts +0 -94
  48. package/dist/src/Automations/Common.js +0 -40
  49. package/dist/src/Automations/Events/Event.d.ts +0 -69
  50. package/dist/src/Automations/Events/Event.js +0 -14
  51. package/dist/src/Automations/Events/index.d.ts +0 -1
  52. package/dist/src/Automations/Events/index.js +0 -17
  53. package/dist/src/Automations/Executions/Execution.d.ts +0 -254
  54. package/dist/src/Automations/Executions/Execution.js +0 -62
  55. package/dist/src/Automations/Executions/Testing.d.ts +0 -166
  56. package/dist/src/Automations/Executions/Testing.js +0 -54
  57. package/dist/src/Automations/Executions/index.d.ts +0 -2
  58. package/dist/src/Automations/Executions/index.js +0 -18
  59. package/dist/src/Automations/Flows/Canvas.d.ts +0 -103
  60. package/dist/src/Automations/Flows/Canvas.js +0 -38
  61. package/dist/src/Automations/Flows/Flow.d.ts +0 -147
  62. package/dist/src/Automations/Flows/Flow.js +0 -58
  63. package/dist/src/Automations/Flows/Requests.d.ts +0 -71
  64. package/dist/src/Automations/Flows/Validation.d.ts +0 -28
  65. package/dist/src/Automations/Flows/Validation.js +0 -9
  66. package/dist/src/Automations/Flows/index.d.ts +0 -4
  67. package/dist/src/Automations/Flows/index.js +0 -20
  68. package/dist/src/Automations/Nodes/Node.d.ts +0 -113
  69. package/dist/src/Automations/Nodes/Node.js +0 -27
  70. package/dist/src/Automations/Nodes/index.d.ts +0 -1
  71. package/dist/src/Automations/Nodes/index.js +0 -17
  72. package/dist/src/Automations/index.d.ts +0 -6
  73. package/dist/src/Automations/index.js +0 -22
  74. package/dist/src/Chats/Chat.d.ts +0 -61
  75. package/dist/src/Chats/Chat.js +0 -28
  76. package/dist/src/Conversations/Assignment.d.ts +0 -81
  77. package/dist/src/Conversations/Assignment.js +0 -4
  78. package/dist/src/Conversations/InboxMongo.d.ts +0 -154
  79. package/dist/src/Conversations/InboxMongo.js +0 -128
  80. package/dist/src/Conversations/InboxProjection.d.ts +0 -162
  81. package/dist/src/Conversations/InboxProjection.js +0 -2
  82. package/dist/src/Conversations/Outbox.d.ts +0 -24
  83. package/dist/src/Conversations/Outbox.js +0 -4
  84. package/dist/src/Conversations/Queue.d.ts +0 -107
  85. package/dist/src/Conversations/Queue.js +0 -4
  86. package/dist/src/Conversations/Routing.d.ts +0 -164
  87. package/dist/src/Conversations/Routing.js +0 -2
  88. package/dist/src/Conversations/Sla.d.ts +0 -227
  89. package/dist/src/Conversations/Sla.js +0 -6
  90. package/dist/src/Conversations/Transfer.d.ts +0 -73
  91. package/dist/src/Conversations/Transfer.js +0 -2
  92. package/dist/src/Forms/API.d.ts +0 -53
  93. package/dist/src/Forms/API.js +0 -2
  94. package/dist/src/Forms/SubmittedForm.d.ts +0 -56
  95. package/dist/src/Forms/SubmittedForm.js +0 -9
  96. package/dist/src/Forms/index.d.ts +0 -2
  97. package/dist/src/Forms/index.js +0 -18
  98. package/dist/src/Presence/AgentPause.d.ts +0 -24
  99. package/dist/src/Presence/AgentPause.js +0 -19
  100. package/dist/src/Presence/QueueParticipation.d.ts +0 -17
  101. package/dist/src/Presence/QueueParticipation.js +0 -2
  102. package/dist/src/Presence/QueueRoutingState.d.ts +0 -27
  103. package/dist/src/Presence/QueueRoutingState.js +0 -9
  104. package/dist/src/Presence/index.d.ts +0 -3
  105. package/dist/src/Presence/index.js +0 -19
  106. /package/dist/{src/Automations/Flows/Requests.js → Conversations/InboxCounters.js} +0 -0
@@ -51,21 +51,3 @@ export interface IUpdateTicketCategoryDto {
51
51
  fieldDefinitionIds?: string[] | null;
52
52
  layoutIds?: string[] | null;
53
53
  }
54
- export interface ICreateTicketResolutionTypeDto {
55
- name: string;
56
- description?: string;
57
- enabled?: boolean;
58
- order?: number;
59
- formRequirements?: ITicketFormRequirement[];
60
- fieldDefinitionIds?: string[];
61
- layoutIds?: string[];
62
- }
63
- export interface IUpdateTicketResolutionTypeDto {
64
- name?: string;
65
- description?: string | null;
66
- enabled?: boolean;
67
- order?: number;
68
- formRequirements?: ITicketFormRequirement[] | null;
69
- fieldDefinitionIds?: string[] | null;
70
- layoutIds?: string[] | null;
71
- }
@@ -193,17 +193,6 @@ export declare enum TicketMetricCode {
193
193
  SECURITY_DENIAL_COUNT = "SECURITY_DENIAL_COUNT",
194
194
  PII_ACCESS_COUNT = "PII_ACCESS_COUNT"
195
195
  }
196
- export declare enum DashboardIcon {
197
- DASHBOARD = "DASHBOARD",
198
- HOME = "HOME",
199
- SUPPORT = "SUPPORT",
200
- ANALYTICS = "ANALYTICS",
201
- REPORTS = "REPORTS",
202
- USERS = "USERS",
203
- SETTINGS = "SETTINGS",
204
- FAVORITES = "FAVORITES",
205
- QUICK_ACTIONS = "QUICK_ACTIONS"
206
- }
207
196
  export interface ITicketAnalyticsFilter extends ITicketFilter {
208
197
  range: ITicketDateRange;
209
198
  channelTypes?: ChannelType[];
@@ -229,7 +218,6 @@ export interface ITicketMetricDefinition {
229
218
  supportsPercentile?: boolean;
230
219
  supportsRealTime?: boolean;
231
220
  higherIsBetter?: boolean;
232
- supportedFilters: (keyof Omit<ITicketAnalyticsFilter, 'range'>)[];
233
221
  }
234
222
  export interface ITicketMetricQuery {
235
223
  metric: TicketMetricCode;
@@ -330,43 +318,11 @@ export interface ITicketDashboard {
330
318
  refreshMode: TicketWidgetRefreshMode;
331
319
  refreshIntervalSeconds?: number;
332
320
  isDefault?: boolean;
333
- order: number;
334
- icon?: DashboardIcon;
335
321
  createdAt: Date;
336
322
  createdBy: string;
337
323
  updatedAt?: Date;
338
324
  updatedBy?: string;
339
325
  }
340
- export interface ICreateTicketDashboardDto {
341
- name: string;
342
- description?: string;
343
- audience: TicketAnalyticsAudience;
344
- visibility: TicketDashboardVisibility;
345
- sharedRoleIds?: string[];
346
- sharedGroupIds?: string[];
347
- defaultFilter?: ITicketAnalyticsFilter;
348
- widgets?: ITicketWidgetConfiguration[];
349
- refreshMode?: TicketWidgetRefreshMode;
350
- refreshIntervalSeconds?: number;
351
- order?: number;
352
- isDefault?: boolean;
353
- icon?: DashboardIcon;
354
- }
355
- export interface IUpdateTicketDashboardDto {
356
- name?: string;
357
- description?: string;
358
- audience?: TicketAnalyticsAudience;
359
- visibility?: TicketDashboardVisibility;
360
- sharedRoleIds?: string[];
361
- sharedGroupIds?: string[];
362
- defaultFilter?: ITicketAnalyticsFilter;
363
- widgets?: ITicketWidgetConfiguration[];
364
- refreshMode?: TicketWidgetRefreshMode;
365
- refreshIntervalSeconds?: number;
366
- order?: number;
367
- isDefault?: boolean;
368
- icon?: DashboardIcon;
369
- }
370
326
  export interface ITicketDashboardTemplate {
371
327
  id: string;
372
328
  spaceId: string;
@@ -376,20 +332,6 @@ export interface ITicketDashboardTemplate {
376
332
  widgets: ITicketWidgetConfiguration[];
377
333
  enabled: boolean;
378
334
  }
379
- export interface ICreateTicketDashboardTemplateDto {
380
- name: string;
381
- description?: string;
382
- audience: TicketAnalyticsAudience;
383
- widgets?: ITicketWidgetConfiguration[];
384
- enabled?: boolean;
385
- }
386
- export interface IUpdateTicketDashboardTemplateDto {
387
- name?: string;
388
- description?: string;
389
- audience?: TicketAnalyticsAudience;
390
- widgets?: ITicketWidgetConfiguration[];
391
- enabled?: boolean;
392
- }
393
335
  export interface ITicketDashboardSnapshot {
394
336
  id: string;
395
337
  dashboardId: string;
@@ -429,26 +371,6 @@ export interface ITicketAnalyticsGoal {
429
371
  ownerUserId?: string;
430
372
  createdAt: Date;
431
373
  }
432
- export interface ICreateTicketAnalyticsGoalDto {
433
- name: string;
434
- metric: TicketMetricCode;
435
- target: number;
436
- filter: ITicketAnalyticsFilter;
437
- validFrom: Date;
438
- validUntil?: Date;
439
- ownerGroupId?: string;
440
- ownerUserId?: string;
441
- }
442
- export interface IUpdateTicketAnalyticsGoalDto {
443
- name?: string;
444
- metric?: TicketMetricCode;
445
- target?: number;
446
- filter?: ITicketAnalyticsFilter;
447
- validFrom?: Date;
448
- validUntil?: Date;
449
- ownerGroupId?: string;
450
- ownerUserId?: string;
451
- }
452
374
  /** Reports freshness so users know whether a card is real-time, delayed or partial. */
453
375
  export interface ITicketAnalyticsFreshness {
454
376
  metric: TicketMetricCode;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DashboardIcon = exports.TicketMetricCode = exports.TicketDrilldownTarget = exports.TicketWidgetRefreshMode = exports.TicketMetricFormat = exports.TicketComparisonMode = exports.TicketTimeGranularity = exports.TicketAnalyticsDimension = exports.TicketMetricAggregation = exports.TicketWidgetType = exports.TicketDashboardVisibility = exports.TicketAnalyticsAudience = void 0;
3
+ exports.TicketMetricCode = exports.TicketDrilldownTarget = exports.TicketWidgetRefreshMode = exports.TicketMetricFormat = exports.TicketComparisonMode = exports.TicketTimeGranularity = exports.TicketAnalyticsDimension = exports.TicketMetricAggregation = exports.TicketWidgetType = exports.TicketDashboardVisibility = exports.TicketAnalyticsAudience = void 0;
4
4
  var TicketAnalyticsAudience;
5
5
  (function (TicketAnalyticsAudience) {
6
6
  TicketAnalyticsAudience["AGENT"] = "AGENT";
@@ -204,15 +204,3 @@ var TicketMetricCode;
204
204
  TicketMetricCode["SECURITY_DENIAL_COUNT"] = "SECURITY_DENIAL_COUNT";
205
205
  TicketMetricCode["PII_ACCESS_COUNT"] = "PII_ACCESS_COUNT";
206
206
  })(TicketMetricCode || (exports.TicketMetricCode = TicketMetricCode = {}));
207
- var DashboardIcon;
208
- (function (DashboardIcon) {
209
- DashboardIcon["DASHBOARD"] = "DASHBOARD";
210
- DashboardIcon["HOME"] = "HOME";
211
- DashboardIcon["SUPPORT"] = "SUPPORT";
212
- DashboardIcon["ANALYTICS"] = "ANALYTICS";
213
- DashboardIcon["REPORTS"] = "REPORTS";
214
- DashboardIcon["USERS"] = "USERS";
215
- DashboardIcon["SETTINGS"] = "SETTINGS";
216
- DashboardIcon["FAVORITES"] = "FAVORITES";
217
- DashboardIcon["QUICK_ACTIONS"] = "QUICK_ACTIONS";
218
- })(DashboardIcon || (exports.DashboardIcon = DashboardIcon = {}));
@@ -90,7 +90,6 @@ export interface ITicketFieldDefinition extends ITicketAuditedEntity {
90
90
  objectFields?: ITicketObjectField[];
91
91
  validation?: ITicketFieldValidation;
92
92
  scopeType: TicketFieldScopeType;
93
- version: number;
94
93
  categoryIds?: string[];
95
94
  requestTypeIds?: string[];
96
95
  conditions?: ITicketFieldCondition[];
@@ -36,8 +36,6 @@ export interface ITicketLayoutSection {
36
36
  collapsedByDefault?: boolean;
37
37
  fields: ITicketLayoutField[];
38
38
  }
39
- export interface ITicketLayoutSectionDTO extends Omit<ITicketLayoutSection, 'id'> {
40
- }
41
39
  /** Controls presentation only; validation remains authoritative in ITicketFieldDefinition. */
42
40
  export interface ITicketLayout extends ITicketAuditedEntity {
43
41
  name: string;
@@ -58,7 +56,7 @@ export interface ICreateTicketLayoutDto {
58
56
  categoryIds?: string[];
59
57
  requestTypeIds?: string[];
60
58
  roleIds?: string[];
61
- sections: ITicketLayoutSectionDTO[];
59
+ sections: ITicketLayoutSection[];
62
60
  }
63
61
  export interface IUpdateTicketLayoutDto extends Partial<ICreateTicketLayoutDto> {
64
62
  enabled?: boolean;
@@ -11,13 +11,6 @@ export interface ITicketStatus extends ITicketAuditedEntity {
11
11
  isInitial: boolean;
12
12
  isFinal: boolean;
13
13
  enabled: boolean;
14
- version: number;
15
- }
16
- export interface ITicketStatusCreateDTO extends Omit<ITicketStatus, keyof ITicketAuditedEntity | 'enabled' | 'version'> {
17
- }
18
- export interface ITicketStatusUpdateDTO extends Partial<Omit<ITicketStatus, keyof ITicketAuditedEntity | 'version'>> {
19
- id: string;
20
- expectedVersion: number;
21
14
  }
22
15
  export declare enum TicketConditionOperator {
23
16
  EQUALS = "EQUALS",
@@ -57,27 +50,14 @@ export interface ITicketTransitionCondition {
57
50
  checklistItemId?: string;
58
51
  expectedValue?: TicketPropertyValue;
59
52
  }
60
- export interface ICreateTicketTransitionConditionDTO extends Omit<ITicketTransitionCondition, 'id'> {
61
- }
62
- export interface IUpdateTicketTransitionConditionDTO extends Partial<Omit<ITicketTransitionCondition, 'id'>> {
63
- id: string;
64
- }
65
53
  export interface ITicketTransition extends ITicketAuditedEntity {
66
54
  name?: string;
67
55
  fromStatusId: string;
68
56
  toStatusId: string;
69
57
  enabled: boolean;
70
- version: number;
71
58
  allowedRoleIds?: string[];
72
59
  conditions: ITicketTransitionCondition[];
73
60
  }
74
- export interface ICreateTicketTransitionDTO extends Omit<ITicketTransition, keyof ITicketAuditedEntity | 'version' | 'conditions'> {
75
- conditions: ICreateTicketTransitionConditionDTO[];
76
- }
77
- export interface IUpdateTicketTransitionDTO extends Partial<Omit<ITicketTransition, keyof ITicketAuditedEntity | 'version'>> {
78
- id: string;
79
- expectedVersion: number;
80
- }
81
61
  export declare enum TicketActivityType {
82
62
  CREATED = "CREATED",
83
63
  UPDATED = "UPDATED",
@@ -1,6 +1,5 @@
1
1
  import UserType from './UserType';
2
2
  import { UserProfile, UserRole } from './UserProfile';
3
- import { PauseReason } from '../Presence/AgentPause';
4
3
  export interface UserInfo {
5
4
  id: string;
6
5
  name: string;
@@ -63,9 +62,6 @@ export interface UserTrii {
63
62
  userType: UserType;
64
63
  verifiedAccount: boolean;
65
64
  status: UserStatus;
66
- availability: AvailabilityStatus;
67
- currentPauseReason?: PauseReason;
68
- currentPauseSince?: Date;
69
65
  firstname: string;
70
66
  lastname: string;
71
67
  display_name: string;
@@ -94,12 +90,6 @@ export interface UserTrii {
94
90
  socialLinkedinID: string;
95
91
  socialTwitterID: string;
96
92
  }
97
- export declare enum AvailabilityStatus {
98
- AVAILABLE = 0,
99
- AWAY = 1,
100
- DO_NOT_DISTURB = 2,
101
- OFFLINE = 3
102
- }
103
93
  export interface NotificationConfig {
104
94
  volume: NotificationVolumeLevel;
105
95
  sound: NotificationSound;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AvailabilityStatus = exports.UserStatus = void 0;
3
+ exports.UserStatus = void 0;
4
4
  var UserStatus;
5
5
  (function (UserStatus) {
6
6
  UserStatus[UserStatus["OFFLINE"] = 0] = "OFFLINE";
@@ -8,10 +8,3 @@ var UserStatus;
8
8
  UserStatus[UserStatus["AWAY"] = 2] = "AWAY";
9
9
  UserStatus[UserStatus["BUSY"] = 3] = "BUSY";
10
10
  })(UserStatus || (exports.UserStatus = UserStatus = {}));
11
- var AvailabilityStatus;
12
- (function (AvailabilityStatus) {
13
- AvailabilityStatus[AvailabilityStatus["AVAILABLE"] = 0] = "AVAILABLE";
14
- AvailabilityStatus[AvailabilityStatus["AWAY"] = 1] = "AWAY";
15
- AvailabilityStatus[AvailabilityStatus["DO_NOT_DISTURB"] = 2] = "DO_NOT_DISTURB";
16
- AvailabilityStatus[AvailabilityStatus["OFFLINE"] = 3] = "OFFLINE";
17
- })(AvailabilityStatus || (exports.AvailabilityStatus = AvailabilityStatus = {}));
@@ -12,12 +12,9 @@ export * as Tickets from './Tickets/index';
12
12
  export * as Sales from './Sales/index';
13
13
  export * as Collections from './Collections/index';
14
14
  export * as Users from './Users/index';
15
- export * as Presence from './Presence/index';
16
15
  export * as ApiResponses from './ApiResponses/index';
17
16
  export * as EventsQueue from './Common/EventsQueue/index';
18
17
  export * as APIKeys from './PublicAPI/apiKey';
19
18
  export * as AI from './AI/index';
20
19
  export * as Shop from './Shop/index';
21
20
  export * as APIResponses from './ApiResponses/index';
22
- export * as Forms from './Forms/index';
23
- export * as Automations from './Automations/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.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.APIResponses = exports.Shop = exports.AI = exports.APIKeys = exports.EventsQueue = exports.ApiResponses = 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"));
@@ -48,12 +48,9 @@ exports.Tickets = __importStar(require("./Tickets/index"));
48
48
  exports.Sales = __importStar(require("./Sales/index"));
49
49
  exports.Collections = __importStar(require("./Collections/index"));
50
50
  exports.Users = __importStar(require("./Users/index"));
51
- exports.Presence = __importStar(require("./Presence/index"));
52
51
  exports.ApiResponses = __importStar(require("./ApiResponses/index"));
53
52
  exports.EventsQueue = __importStar(require("./Common/EventsQueue/index"));
54
53
  exports.APIKeys = __importStar(require("./PublicAPI/apiKey"));
55
54
  exports.AI = __importStar(require("./AI/index"));
56
55
  exports.Shop = __importStar(require("./Shop/index"));
57
56
  exports.APIResponses = __importStar(require("./ApiResponses/index"));
58
- exports.Forms = __importStar(require("./Forms/index"));
59
- exports.Automations = __importStar(require("./Automations/index"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.732",
3
+ "version": "2.10.735",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,8 +8,5 @@
8
8
  "/dist"
9
9
  ],
10
10
  "author": "Trii LLC",
11
- "license": "ISC",
12
- "devDependencies": {
13
- "typescript": "^5.4.5"
14
- }
11
+ "license": "ISC"
15
12
  }
@@ -1,81 +0,0 @@
1
- import { AutomationError, AutomationJsonObject, AutomationJsonSchema, AutomationSourceApplication } from '../Common';
2
- export declare enum AutomationCapabilityKind {
3
- TRIGGER = "trigger",
4
- ACTION = "action",
5
- CONDITION = "condition"
6
- }
7
- export declare enum AutomationCapabilityEffectClass {
8
- NONE = "none",
9
- READ = "read",
10
- WRITE = "write",
11
- COMMUNICATION = "communication",
12
- BULK = "bulk"
13
- }
14
- export declare enum AutomationCapabilityIdempotency {
15
- NONE = "none",
16
- SUPPORTED = "supported",
17
- REQUIRED = "required"
18
- }
19
- /** Capacidades operativas que el runtime puede aplicar de forma confiable. */
20
- export interface AutomationCapabilityExecutionSupport {
21
- effectClass: AutomationCapabilityEffectClass;
22
- supportsSimulation: boolean;
23
- supportsTestTargets: boolean;
24
- supportsUntilNode: boolean;
25
- supportsFromNode: boolean;
26
- supportsNodeOnly: boolean;
27
- supportsCancellation: boolean;
28
- idempotency: AutomationCapabilityIdempotency;
29
- defaultTimeoutMs?: number | null;
30
- maxAttempts?: number | null;
31
- maxTestItems?: number | null;
32
- inputSchema?: AutomationJsonSchema | null;
33
- outputSchema?: AutomationJsonSchema | null;
34
- simulationOutputSchema?: AutomationJsonSchema | null;
35
- sensitivePaths?: string[] | null;
36
- requiredPermissions?: string[] | null;
37
- }
38
- /**
39
- * Capacidad publicada por una aplicación de negocio para que Automation pueda
40
- * descubrirla y representarla sin incorporar reglas de ese dominio.
41
- */
42
- export interface AutomationCapability {
43
- code: string;
44
- sourceApplication: AutomationSourceApplication;
45
- kind: AutomationCapabilityKind;
46
- name: string;
47
- description?: string | null;
48
- inputSchema?: AutomationJsonSchema | null;
49
- outputSchema?: AutomationJsonSchema | null;
50
- requiredPermissions: string[];
51
- enabled: boolean;
52
- version: number;
53
- /** Metadata opcional para definitions anteriores a la política de ejecución. */
54
- executionSupport?: AutomationCapabilityExecutionSupport | null;
55
- }
56
- export interface AutomationCapabilityQuery {
57
- sourceApplications?: AutomationSourceApplication[];
58
- kinds?: AutomationCapabilityKind[];
59
- enabledOnly?: boolean;
60
- version?: number;
61
- }
62
- export interface AutomationCapabilityReference {
63
- code: string;
64
- version: number;
65
- sourceApplication: AutomationSourceApplication;
66
- }
67
- export interface AutomationCapabilityInvocation {
68
- invocationId: string;
69
- executionId: string;
70
- nodeId: string;
71
- capability: AutomationCapabilityReference;
72
- input: AutomationJsonObject;
73
- context: AutomationJsonObject;
74
- }
75
- export interface AutomationCapabilityResult {
76
- invocationId: string;
77
- success: boolean;
78
- output?: AutomationJsonObject | null;
79
- error?: AutomationError | null;
80
- completedAt: string;
81
- }
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutomationCapabilityIdempotency = exports.AutomationCapabilityEffectClass = exports.AutomationCapabilityKind = void 0;
4
- var AutomationCapabilityKind;
5
- (function (AutomationCapabilityKind) {
6
- AutomationCapabilityKind["TRIGGER"] = "trigger";
7
- AutomationCapabilityKind["ACTION"] = "action";
8
- AutomationCapabilityKind["CONDITION"] = "condition";
9
- })(AutomationCapabilityKind || (exports.AutomationCapabilityKind = AutomationCapabilityKind = {}));
10
- var AutomationCapabilityEffectClass;
11
- (function (AutomationCapabilityEffectClass) {
12
- AutomationCapabilityEffectClass["NONE"] = "none";
13
- AutomationCapabilityEffectClass["READ"] = "read";
14
- AutomationCapabilityEffectClass["WRITE"] = "write";
15
- AutomationCapabilityEffectClass["COMMUNICATION"] = "communication";
16
- AutomationCapabilityEffectClass["BULK"] = "bulk";
17
- })(AutomationCapabilityEffectClass || (exports.AutomationCapabilityEffectClass = AutomationCapabilityEffectClass = {}));
18
- var AutomationCapabilityIdempotency;
19
- (function (AutomationCapabilityIdempotency) {
20
- AutomationCapabilityIdempotency["NONE"] = "none";
21
- AutomationCapabilityIdempotency["SUPPORTED"] = "supported";
22
- AutomationCapabilityIdempotency["REQUIRED"] = "required";
23
- })(AutomationCapabilityIdempotency || (exports.AutomationCapabilityIdempotency = AutomationCapabilityIdempotency = {}));
@@ -1 +0,0 @@
1
- export * from './Capability';
@@ -1,17 +0,0 @@
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("./Capability"), exports);
@@ -1,94 +0,0 @@
1
- /**
2
- * Aplicación propietaria del evento o capacidad consumida por Automation.
3
- *
4
- * Los valores forman parte del contrato HTTP/event-driven y no deben
5
- * traducirse ni depender del nombre visible de la aplicación.
6
- */
7
- export declare enum AutomationSourceApplication {
8
- /** Automations y sus capacidades Core. */
9
- AUTOMATIONS = "automations",
10
- /** Gestión de conversaciones y mensajería conversacional. */
11
- CONVERSATIONS = "conversations",
12
- /** Gestión de contactos y organizaciones. */
13
- CONTACTS = "contacts",
14
- /** Gestión de tickets y soporte. */
15
- TICKETS = "tickets",
16
- /** Campañas y operaciones de marketing. */
17
- MARKETING = "marketing",
18
- /** Procesos y oportunidades comerciales. */
19
- SALES = "sales",
20
- /** Telefonía y llamadas. */
21
- CALLS = "calls",
22
- /** Comunicaciones salientes como email y SMS. */
23
- COMMUNICATIONS = "communications",
24
- /** Formularios y captura estructurada de datos. */
25
- FORMS = "forms",
26
- /** Conectores e integraciones externas. */
27
- INTEGRATIONS = "integrations",
28
- /** Acceso y transformación de datos. */
29
- DATA = "data",
30
- /** Agentes, modelos y herramientas de inteligencia artificial. */
31
- AI = "ai",
32
- /** Bases de conocimiento, documentos y búsqueda semántica. */
33
- KNOWLEDGE = "knowledge",
34
- /** Propietario externo o no clasificado; no debe usarse como fallback. */
35
- GENERIC = "generic"
36
- }
37
- export type AutomationJsonValue = string | number | boolean | null | AutomationJsonObject | AutomationJsonValue[];
38
- /** Objeto JSON transportable entre aplicaciones y Automation. */
39
- export interface AutomationJsonObject {
40
- [key: string]: AutomationJsonValue;
41
- }
42
- /**
43
- * Schema JSON deliberadamente abierto. Cada aplicación es propietaria de la
44
- * validación del schema que publica en su catálogo de capacidades.
45
- */
46
- export interface AutomationJsonSchema extends AutomationJsonObject {
47
- type?: string;
48
- title?: string;
49
- description?: string;
50
- required?: string[];
51
- properties?: {
52
- [key: string]: AutomationJsonSchema;
53
- };
54
- }
55
- export interface AutomationPageRequest {
56
- skip: number;
57
- limit: number;
58
- }
59
- export interface AutomationPagedResult<T> {
60
- items: T[];
61
- total: number;
62
- skip: number;
63
- limit: number;
64
- }
65
- export interface AutomationError {
66
- code: string;
67
- message: string;
68
- details?: AutomationJsonObject | null;
69
- }
70
- /** Referencia estable con la identidad visible al iniciar una ejecución. */
71
- export interface AutomationCustomerReference {
72
- id: string;
73
- displayNameSnapshot?: string | null;
74
- }
75
- /** Referencia transversal a una entidad perteneciente a una aplicación. */
76
- export interface AutomationResourceReference {
77
- /** Aplicación propietaria de la entidad. */
78
- sourceApplication: AutomationSourceApplication;
79
- /** Tipo estable dentro de la aplicación, por ejemplo ticket o campaign. */
80
- resourceType: string;
81
- /** Identificador en la aplicación propietaria. */
82
- id: string;
83
- /** Nombre informativo capturado al crear la referencia. */
84
- displayNameSnapshot?: string | null;
85
- }
86
- /**
87
- * Contexto CRM opcional asociado a un evento o ejecución.
88
- * Permite representar escenarios B2C, B2B o un contacto perteneciente a una
89
- * empresa sin depender de los contratos internos del módulo Contacts.
90
- */
91
- export interface AutomationCustomer {
92
- contact?: AutomationCustomerReference | null;
93
- business?: AutomationCustomerReference | null;
94
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AutomationSourceApplication = void 0;
4
- /**
5
- * Aplicación propietaria del evento o capacidad consumida por Automation.
6
- *
7
- * Los valores forman parte del contrato HTTP/event-driven y no deben
8
- * traducirse ni depender del nombre visible de la aplicación.
9
- */
10
- var AutomationSourceApplication;
11
- (function (AutomationSourceApplication) {
12
- /** Automations y sus capacidades Core. */
13
- AutomationSourceApplication["AUTOMATIONS"] = "automations";
14
- /** Gestión de conversaciones y mensajería conversacional. */
15
- AutomationSourceApplication["CONVERSATIONS"] = "conversations";
16
- /** Gestión de contactos y organizaciones. */
17
- AutomationSourceApplication["CONTACTS"] = "contacts";
18
- /** Gestión de tickets y soporte. */
19
- AutomationSourceApplication["TICKETS"] = "tickets";
20
- /** Campañas y operaciones de marketing. */
21
- AutomationSourceApplication["MARKETING"] = "marketing";
22
- /** Procesos y oportunidades comerciales. */
23
- AutomationSourceApplication["SALES"] = "sales";
24
- /** Telefonía y llamadas. */
25
- AutomationSourceApplication["CALLS"] = "calls";
26
- /** Comunicaciones salientes como email y SMS. */
27
- AutomationSourceApplication["COMMUNICATIONS"] = "communications";
28
- /** Formularios y captura estructurada de datos. */
29
- AutomationSourceApplication["FORMS"] = "forms";
30
- /** Conectores e integraciones externas. */
31
- AutomationSourceApplication["INTEGRATIONS"] = "integrations";
32
- /** Acceso y transformación de datos. */
33
- AutomationSourceApplication["DATA"] = "data";
34
- /** Agentes, modelos y herramientas de inteligencia artificial. */
35
- AutomationSourceApplication["AI"] = "ai";
36
- /** Bases de conocimiento, documentos y búsqueda semántica. */
37
- AutomationSourceApplication["KNOWLEDGE"] = "knowledge";
38
- /** Propietario externo o no clasificado; no debe usarse como fallback. */
39
- AutomationSourceApplication["GENERIC"] = "generic";
40
- })(AutomationSourceApplication || (exports.AutomationSourceApplication = AutomationSourceApplication = {}));
@@ -1,69 +0,0 @@
1
- import { AutomationCustomer, AutomationJsonObject, AutomationJsonSchema, AutomationResourceReference, AutomationSourceApplication } from '../Common';
2
- export interface AutomationEventDefinition {
3
- eventType: string;
4
- version: number;
5
- sourceApplication: AutomationSourceApplication;
6
- name: string;
7
- description?: string | null;
8
- payloadSchema: AutomationJsonSchema;
9
- /** Schema de la vista del envelope cuyos paths pueden utilizarse en filtros. */
10
- filterSchema?: AutomationJsonSchema | null;
11
- requiredPermissions: string[];
12
- enabled: boolean;
13
- }
14
- export interface AutomationEventEnvelope {
15
- id: string;
16
- spaceId: string;
17
- sourceApplication: AutomationSourceApplication;
18
- eventType: string;
19
- eventVersion: number;
20
- occurredAt: string;
21
- receivedAt: string;
22
- customer?: AutomationCustomer | null;
23
- /** Entidad principal sobre la que ocurrió el evento. */
24
- subject?: AutomationResourceReference | null;
25
- correlationId?: string | null;
26
- causationId?: string | null;
27
- idempotencyKey?: string | null;
28
- payload: AutomationJsonObject;
29
- metadata?: AutomationJsonObject | null;
30
- }
31
- export declare enum AutomationEntryPointExclusionCode {
32
- ENTRY_POINT_DISABLED = "entryPointDisabled",
33
- SOURCE_APPLICATION_MISMATCH = "sourceApplicationMismatch",
34
- EVENT_TYPE_MISMATCH = "eventTypeMismatch",
35
- FILTERS_NOT_MATCHED = "filtersNotMatched",
36
- FLOW_NOT_ACTIVE = "flowNotActive",
37
- VERSION_NOT_PUBLISHED = "versionNotPublished",
38
- LOWER_PRIORITY = "lowerPriority",
39
- EXECUTION_MODE_RESTRICTED = "executionModeRestricted"
40
- }
41
- /** Motivo estructurado por el que un Entry Point no fue seleccionado. */
42
- export interface AutomationEntryPointExclusion {
43
- /** Código estable para lógica, métricas y observabilidad. */
44
- code: AutomationEntryPointExclusionCode;
45
- /** Explicación humana opcional; no debe utilizarse para lógica. */
46
- message?: string | null;
47
- /** Datos diagnósticos específicos del código. */
48
- details?: AutomationJsonObject | null;
49
- }
50
- export interface ResolveFlowEntryPointsRequest {
51
- event: AutomationEventEnvelope;
52
- }
53
- export interface ResolvedFlowEntryPoint {
54
- /** Definición estable del Flow. */
55
- flowId: string;
56
- /** Versión publicada candidata a recibir el evento. */
57
- flowVersionId: string;
58
- /** Entry Point evaluado. */
59
- entryPointId: string;
60
- /** Prioridad utilizada para resolver candidatos. */
61
- priority: number;
62
- /** Indica si el candidato debe iniciar una ejecución. */
63
- selected: boolean;
64
- /** Motivo de exclusión; ausente cuando selected es true. */
65
- exclusion?: AutomationEntryPointExclusion | null;
66
- }
67
- export interface ResolveFlowEntryPointsResult {
68
- matches: ResolvedFlowEntryPoint[];
69
- }