@trii/types 2.10.805 → 2.10.807

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 (116) hide show
  1. package/dist/Automations/Events/Event.d.ts +3 -3
  2. package/dist/Common/Channels/OpenMessaging.d.ts +5 -15
  3. package/dist/Common/Channels/OpenMessaging.js +4 -3
  4. package/dist/Common/index.js +17 -7
  5. package/dist/Contacts/CommunicationEndpoint.d.ts +9 -9
  6. package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +2 -2
  7. package/dist/Conversations/Conversation.d.ts +18 -9
  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/Marketing/CampaignContract.js +1 -2
  16. package/dist/Search.js +1 -2
  17. package/dist/Tickets/AdvancedApi.d.ts +0 -5
  18. package/dist/Tickets/Approval.d.ts +0 -3
  19. package/dist/Tickets/Category.d.ts +8 -3
  20. package/dist/Tickets/Dashboard.d.ts +1 -8
  21. package/dist/Tickets/Dashboard.js +0 -1
  22. package/dist/Tickets/Group.d.ts +0 -4
  23. package/dist/Tickets/QuickResponse.d.ts +1 -4
  24. package/dist/Tickets/Routing.d.ts +2 -0
  25. package/dist/Tickets/Sla.d.ts +0 -1
  26. package/dist/index.js +17 -7
  27. package/dist/src/Common/Channels/Channel.d.ts +1 -28
  28. package/dist/src/Contacts/contacts.d.ts +2 -2
  29. package/dist/src/Conversations/Conversation.d.ts +48 -331
  30. package/dist/src/Conversations/Conversation.js +34 -14
  31. package/dist/src/Conversations/DashBoard/dashboard.d.ts +2 -2
  32. package/dist/src/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  33. package/dist/src/Conversations/DashBoard/dashboardForms.js +24 -0
  34. package/dist/src/Conversations/Flows/Workflows/Workflow.d.ts +123 -280
  35. package/dist/src/Conversations/Flows/Workflows/Workflow.js +35 -85
  36. package/dist/src/Conversations/Groups/Group.d.ts +8 -2
  37. package/dist/src/Conversations/Groups/Group.js +6 -0
  38. package/dist/src/Conversations/Label.d.ts +1 -1
  39. package/dist/src/Conversations/WebHook.d.ts +1 -1
  40. package/dist/src/Conversations/index.d.ts +1 -9
  41. package/dist/src/Conversations/index.js +1 -9
  42. package/dist/src/Tickets/Category.d.ts +0 -18
  43. package/dist/src/Tickets/Dashboard.d.ts +0 -78
  44. package/dist/src/Tickets/Dashboard.js +1 -13
  45. package/dist/src/Tickets/Fields.d.ts +0 -1
  46. package/dist/src/Tickets/Layouts.d.ts +1 -3
  47. package/dist/src/Tickets/Workflow.d.ts +0 -20
  48. package/dist/src/Users/UserTrii.d.ts +0 -10
  49. package/dist/src/Users/UserTrii.js +1 -8
  50. package/dist/src/index.d.ts +0 -3
  51. package/dist/src/index.js +1 -4
  52. package/package.json +2 -5
  53. package/dist/src/Automations/Capabilities/Capability.d.ts +0 -81
  54. package/dist/src/Automations/Capabilities/Capability.js +0 -23
  55. package/dist/src/Automations/Capabilities/index.d.ts +0 -1
  56. package/dist/src/Automations/Capabilities/index.js +0 -17
  57. package/dist/src/Automations/Common.d.ts +0 -94
  58. package/dist/src/Automations/Common.js +0 -40
  59. package/dist/src/Automations/Events/Event.d.ts +0 -69
  60. package/dist/src/Automations/Events/Event.js +0 -14
  61. package/dist/src/Automations/Events/index.d.ts +0 -1
  62. package/dist/src/Automations/Events/index.js +0 -17
  63. package/dist/src/Automations/Executions/Execution.d.ts +0 -254
  64. package/dist/src/Automations/Executions/Execution.js +0 -62
  65. package/dist/src/Automations/Executions/Testing.d.ts +0 -166
  66. package/dist/src/Automations/Executions/Testing.js +0 -54
  67. package/dist/src/Automations/Executions/index.d.ts +0 -2
  68. package/dist/src/Automations/Executions/index.js +0 -18
  69. package/dist/src/Automations/Flows/Canvas.d.ts +0 -103
  70. package/dist/src/Automations/Flows/Canvas.js +0 -38
  71. package/dist/src/Automations/Flows/Flow.d.ts +0 -147
  72. package/dist/src/Automations/Flows/Flow.js +0 -58
  73. package/dist/src/Automations/Flows/Requests.d.ts +0 -71
  74. package/dist/src/Automations/Flows/Validation.d.ts +0 -28
  75. package/dist/src/Automations/Flows/Validation.js +0 -9
  76. package/dist/src/Automations/Flows/index.d.ts +0 -4
  77. package/dist/src/Automations/Flows/index.js +0 -20
  78. package/dist/src/Automations/Nodes/Node.d.ts +0 -113
  79. package/dist/src/Automations/Nodes/Node.js +0 -27
  80. package/dist/src/Automations/Nodes/index.d.ts +0 -1
  81. package/dist/src/Automations/Nodes/index.js +0 -17
  82. package/dist/src/Automations/index.d.ts +0 -6
  83. package/dist/src/Automations/index.js +0 -22
  84. package/dist/src/Chats/Chat.d.ts +0 -61
  85. package/dist/src/Chats/Chat.js +0 -28
  86. package/dist/src/Conversations/Assignment.d.ts +0 -81
  87. package/dist/src/Conversations/Assignment.js +0 -4
  88. package/dist/src/Conversations/InboxMongo.d.ts +0 -154
  89. package/dist/src/Conversations/InboxMongo.js +0 -128
  90. package/dist/src/Conversations/InboxProjection.d.ts +0 -162
  91. package/dist/src/Conversations/InboxProjection.js +0 -2
  92. package/dist/src/Conversations/Outbox.d.ts +0 -24
  93. package/dist/src/Conversations/Outbox.js +0 -4
  94. package/dist/src/Conversations/Queue.d.ts +0 -107
  95. package/dist/src/Conversations/Queue.js +0 -4
  96. package/dist/src/Conversations/Routing.d.ts +0 -164
  97. package/dist/src/Conversations/Routing.js +0 -2
  98. package/dist/src/Conversations/Sla.d.ts +0 -227
  99. package/dist/src/Conversations/Sla.js +0 -6
  100. package/dist/src/Conversations/Transfer.d.ts +0 -73
  101. package/dist/src/Conversations/Transfer.js +0 -2
  102. package/dist/src/Forms/API.d.ts +0 -53
  103. package/dist/src/Forms/API.js +0 -2
  104. package/dist/src/Forms/SubmittedForm.d.ts +0 -56
  105. package/dist/src/Forms/SubmittedForm.js +0 -9
  106. package/dist/src/Forms/index.d.ts +0 -2
  107. package/dist/src/Forms/index.js +0 -18
  108. package/dist/src/Presence/AgentPause.d.ts +0 -24
  109. package/dist/src/Presence/AgentPause.js +0 -19
  110. package/dist/src/Presence/QueueParticipation.d.ts +0 -17
  111. package/dist/src/Presence/QueueParticipation.js +0 -2
  112. package/dist/src/Presence/QueueRoutingState.d.ts +0 -27
  113. package/dist/src/Presence/QueueRoutingState.js +0 -9
  114. package/dist/src/Presence/index.d.ts +0 -3
  115. package/dist/src/Presence/index.js +0 -19
  116. /package/dist/{src/Automations/Flows/Requests.js → Conversations/InboxCounters.js} +0 -0
@@ -7,7 +7,12 @@ export interface ITicketCategory extends ITicketAuditedEntity {
7
7
  order: number;
8
8
  enabled: boolean;
9
9
  defaultPriority?: TicketPriority;
10
- defaultAssignedGroupId?: string;
10
+ /**
11
+ * Queue pre-selected in the agent's create dialog for this category. Only the
12
+ * category's own value is stored (the front resolves the inherited one); the
13
+ * API never applies it when a ticket is created.
14
+ */
15
+ defaultQueueId?: string;
11
16
  defaultSlaPolicyId?: string;
12
17
  securityPolicyId?: string;
13
18
  formRequirements?: ITicketFormRequirement[];
@@ -30,7 +35,7 @@ export interface ICreateTicketCategoryDto {
30
35
  order?: number;
31
36
  enabled?: boolean;
32
37
  defaultPriority?: TicketPriority;
33
- defaultAssignedGroupId?: string;
38
+ defaultQueueId?: string;
34
39
  defaultSlaPolicyId?: string;
35
40
  securityPolicyId?: string;
36
41
  formRequirements?: ITicketFormRequirement[];
@@ -44,7 +49,7 @@ export interface IUpdateTicketCategoryDto {
44
49
  order?: number;
45
50
  enabled?: boolean;
46
51
  defaultPriority?: TicketPriority | null;
47
- defaultAssignedGroupId?: string | null;
52
+ defaultQueueId?: string | null;
48
53
  defaultSlaPolicyId?: string | null;
49
54
  securityPolicyId?: string | null;
50
55
  formRequirements?: ITicketFormRequirement[] | null;
@@ -12,8 +12,7 @@ export declare enum TicketAnalyticsAudience {
12
12
  export declare enum TicketDashboardVisibility {
13
13
  PRIVATE = "PRIVATE",
14
14
  SHARED = "SHARED",
15
- ROLE = "ROLE",
16
- GROUP = "GROUP"
15
+ ROLE = "ROLE"
17
16
  }
18
17
  export declare enum TicketWidgetType {
19
18
  KPI = "KPI",
@@ -389,7 +388,6 @@ export interface ITicketDashboard {
389
388
  audience: TicketAnalyticsAudience;
390
389
  visibility: TicketDashboardVisibility;
391
390
  sharedRoleIds?: string[];
392
- sharedGroupIds?: string[];
393
391
  defaultFilter?: ITicketAnalyticsFilter;
394
392
  widgets: ITicketWidgetConfiguration[];
395
393
  refreshMode: TicketWidgetRefreshMode;
@@ -408,7 +406,6 @@ export interface ICreateTicketDashboardDto {
408
406
  audience: TicketAnalyticsAudience;
409
407
  visibility: TicketDashboardVisibility;
410
408
  sharedRoleIds?: string[];
411
- sharedGroupIds?: string[];
412
409
  defaultFilter?: ITicketAnalyticsFilter;
413
410
  widgets?: ITicketWidgetConfiguration[];
414
411
  refreshMode?: TicketWidgetRefreshMode;
@@ -423,7 +420,6 @@ export interface IUpdateTicketDashboardDto {
423
420
  audience?: TicketAnalyticsAudience;
424
421
  visibility?: TicketDashboardVisibility;
425
422
  sharedRoleIds?: string[];
426
- sharedGroupIds?: string[];
427
423
  defaultFilter?: ITicketAnalyticsFilter;
428
424
  widgets?: ITicketWidgetConfiguration[];
429
425
  refreshMode?: TicketWidgetRefreshMode;
@@ -490,7 +486,6 @@ export interface ITicketAnalyticsGoal {
490
486
  filter: ITicketAnalyticsFilter;
491
487
  validFrom: Date;
492
488
  validUntil?: Date;
493
- ownerGroupId?: string;
494
489
  ownerUserId?: string;
495
490
  createdAt: Date;
496
491
  }
@@ -501,7 +496,6 @@ export interface ICreateTicketAnalyticsGoalDto {
501
496
  filter: ITicketAnalyticsFilter;
502
497
  validFrom: Date;
503
498
  validUntil?: Date;
504
- ownerGroupId?: string;
505
499
  ownerUserId?: string;
506
500
  }
507
501
  export interface IUpdateTicketAnalyticsGoalDto {
@@ -511,7 +505,6 @@ export interface IUpdateTicketAnalyticsGoalDto {
511
505
  filter?: ITicketAnalyticsFilter;
512
506
  validFrom?: Date;
513
507
  validUntil?: Date;
514
- ownerGroupId?: string;
515
508
  ownerUserId?: string;
516
509
  }
517
510
  /** Reports freshness so users know whether a card is real-time, delayed or partial. */
@@ -13,7 +13,6 @@ var TicketDashboardVisibility;
13
13
  TicketDashboardVisibility["PRIVATE"] = "PRIVATE";
14
14
  TicketDashboardVisibility["SHARED"] = "SHARED";
15
15
  TicketDashboardVisibility["ROLE"] = "ROLE";
16
- TicketDashboardVisibility["GROUP"] = "GROUP";
17
16
  })(TicketDashboardVisibility || (exports.TicketDashboardVisibility = TicketDashboardVisibility = {}));
18
17
  var TicketWidgetType;
19
18
  (function (TicketWidgetType) {
@@ -59,16 +59,12 @@ export interface ITicketGroupUsageRef {
59
59
  export interface ITicketGroupUsages {
60
60
  tickets: number;
61
61
  tasks: number;
62
- categories: ITicketGroupUsageRef[];
63
62
  requestTypes: ITicketGroupUsageRef[];
64
63
  queues: ITicketGroupUsageRef[];
65
64
  views: ITicketGroupUsageRef[];
66
65
  dashboards: ITicketGroupUsageRef[];
67
- quickResponses: ITicketGroupUsageRef[];
68
- analyticsGoals: ITicketGroupUsageRef[];
69
66
  macros: ITicketGroupUsageRef[];
70
67
  escalationPolicies: ITicketGroupUsageRef[];
71
- approvalDefinitions: ITicketGroupUsageRef[];
72
68
  securityPolicies: ITicketGroupUsageRef[];
73
69
  slaPolicies: ITicketGroupUsageRef[];
74
70
  }
@@ -32,7 +32,7 @@ export interface ITicketQuickResponseCategory extends ITicketAuditedEntity {
32
32
  }
33
33
  /**
34
34
  * One prepared text. `applicableCategoryIds`/`applicableSubcategoryIds` point
35
- * at real `ITicketCategory` rows. `roleIds`/`groupIds`/`userIds` express
35
+ * at real `ITicketCategory` rows. `roleIds`/`userIds` express
36
36
  * VISIBILITY only (discoverability), never extra ticket permissions. Empty
37
37
  * visibility arrays mean "everyone".
38
38
  */
@@ -49,10 +49,7 @@ export interface ITicketQuickResponse extends ITicketAuditedEntity {
49
49
  applicableSubcategoryIds: string[];
50
50
  applicableRequestTypeIds: string[];
51
51
  applicablePortalIds: string[];
52
- /** Agent-group scope dimension (mirrors `groupIds`/`roleIds`/`userIds`). */
53
- applicableGroupIds: string[];
54
52
  roleIds: string[];
55
- groupIds: string[];
56
53
  userIds: string[];
57
54
  status: QuickResponseStatus;
58
55
  }
@@ -425,6 +425,8 @@ export interface ITicketQueueUsages {
425
425
  dashboards: ITicketQueueUsageRef[];
426
426
  /** Analytics goals whose filter includes the queue. */
427
427
  analyticsGoals: ITicketQueueUsageRef[];
428
+ /** Categories that pre-select the queue as their default queue. */
429
+ categories: ITicketQueueUsageRef[];
428
430
  }
429
431
  /** Mirror of TicketSkillWarningCode; only one member is needed today. */
430
432
  export declare enum EscalationPolicyWarningCode {
@@ -212,7 +212,6 @@ export interface IServiceCommitment {
212
212
  type: ServiceCommitmentType;
213
213
  name: string;
214
214
  customerOrganizationId?: string;
215
- responsibleGroupId?: string;
216
215
  providerId?: string;
217
216
  targets: ISlaTarget[];
218
217
  }
package/dist/index.js CHANGED
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.Marketing = 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.Releases = exports.Spaces = exports.Reports = exports.Security = exports.Calls = exports.Conversations = exports.Calendar = exports.Contacts = exports.Common = exports.AuditLogs = exports.Accounts = void 0;
27
37
  exports.Accounts = __importStar(require("./Accounts/index"));
@@ -37,16 +37,6 @@ interface IChannelInfo {
37
37
  */
38
38
  status?: string;
39
39
  }
40
- /**
41
- * Fallback routing used only when no published Flow entry point matches the
42
- * channel, or when the selected Flow cannot produce a valid disposition.
43
- *
44
- * Flow-to-channel bindings remain authoritative in FlowEntryPoint.
45
- */
46
- interface ChannelConversationRoutingConfig {
47
- /** Stable id of a ConversationQueue in the same space as the channel. */
48
- defaultQueueId: string;
49
- }
50
40
  interface IChannel {
51
41
  id?: string | null;
52
42
  spaceId?: string | null;
@@ -54,30 +44,13 @@ interface IChannel {
54
44
  description?: string | null;
55
45
  type?: ChannelType | null;
56
46
  permissions?: Permission[] | null;
57
- /**
58
- * @deprecated Legacy channel assignment configuration. Use
59
- * ChannelConversationRoutingConfig; Flow bindings live in FlowEntryPoint.
60
- */
61
47
  assignTo?: ConversationAssigned;
62
- /**
63
- * @deprecated Legacy channel assignment configuration. Use
64
- * ChannelConversationRoutingConfig; QueueRoutingPolicy controls agent
65
- * distribution only after a Queue has been selected.
66
- */
67
48
  assignMethod: AssignMethod;
68
- /**
69
- * @deprecated Ownership is produced by the routing decision.
70
- */
71
49
  assignToOwner?: boolean;
72
50
  /**
73
51
  * habilita la creacion de conversaciones para este canal, si esta en false, los mensajes entrantes no generaran conversaciones
74
52
  */
75
53
  conversationsEnabled: boolean | false;
76
- /**
77
- * Default Queue for newly-created conversations that are not handled by a
78
- * Flow. Store only the Queue id;
79
- */
80
- conversationRouting?: ChannelConversationRoutingConfig | null;
81
54
  /**
82
55
  * Gets or sets a value indicating whether webhook notifications are enabled.
83
56
  * Redirects incoming messages to the specified webhook URL when set to true.
@@ -123,4 +96,4 @@ declare enum channelStatus {
123
96
  SUSPENDED = 7,
124
97
  CONFIGURATION_PENDING = 9
125
98
  }
126
- export { IChannel, IChannelInfo, ChannelConversationRoutingConfig, channelStatus, MessagingAvailability };
99
+ export { IChannel, IChannelInfo, channelStatus, MessagingAvailability };
@@ -14,7 +14,7 @@ export interface IBusiness {
14
14
  counters?: ICounters;
15
15
  name: string;
16
16
  imageUrl: string;
17
- ownerUserId?: string;
17
+ owner?: string;
18
18
  membersId: string[];
19
19
  members: IContactInfo[];
20
20
  phones: IContactAddress[];
@@ -54,7 +54,7 @@ export interface IContact {
54
54
  lastName: string;
55
55
  imageUrl: string;
56
56
  birthDate?: Date | null;
57
- ownerUserId?: string;
57
+ owner?: string;
58
58
  businessId?: string;
59
59
  businessName?: string;
60
60
  phones: IContactAddress[];