@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.
- package/dist/Automations/Events/Event.d.ts +3 -3
- package/dist/Common/Channels/OpenMessaging.d.ts +5 -15
- package/dist/Common/Channels/OpenMessaging.js +4 -3
- package/dist/Common/index.js +17 -7
- package/dist/Contacts/CommunicationEndpoint.d.ts +9 -9
- package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +2 -2
- package/dist/Conversations/Conversation.d.ts +18 -9
- package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
- package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
- package/dist/Conversations/InboxCounters.d.ts +18 -0
- package/dist/Conversations/InboxMongo.d.ts +12 -12
- package/dist/Conversations/Routing.d.ts +10 -10
- package/dist/Conversations/index.js +17 -7
- package/dist/Events/DomainEventTypes.d.ts +23 -23
- package/dist/Marketing/CampaignContract.js +1 -2
- package/dist/Search.js +1 -2
- package/dist/Tickets/AdvancedApi.d.ts +0 -5
- package/dist/Tickets/Approval.d.ts +0 -3
- package/dist/Tickets/Category.d.ts +8 -3
- package/dist/Tickets/Dashboard.d.ts +1 -8
- package/dist/Tickets/Dashboard.js +0 -1
- package/dist/Tickets/Group.d.ts +0 -4
- package/dist/Tickets/QuickResponse.d.ts +1 -4
- package/dist/Tickets/Routing.d.ts +2 -0
- package/dist/Tickets/Sla.d.ts +0 -1
- package/dist/index.js +17 -7
- package/dist/src/Common/Channels/Channel.d.ts +1 -28
- package/dist/src/Contacts/contacts.d.ts +2 -2
- package/dist/src/Conversations/Conversation.d.ts +48 -331
- package/dist/src/Conversations/Conversation.js +34 -14
- package/dist/src/Conversations/DashBoard/dashboard.d.ts +2 -2
- package/dist/src/Conversations/DashBoard/dashboardForms.d.ts +44 -0
- package/dist/src/Conversations/DashBoard/dashboardForms.js +24 -0
- package/dist/src/Conversations/Flows/Workflows/Workflow.d.ts +123 -280
- package/dist/src/Conversations/Flows/Workflows/Workflow.js +35 -85
- package/dist/src/Conversations/Groups/Group.d.ts +8 -2
- package/dist/src/Conversations/Groups/Group.js +6 -0
- package/dist/src/Conversations/Label.d.ts +1 -1
- package/dist/src/Conversations/WebHook.d.ts +1 -1
- package/dist/src/Conversations/index.d.ts +1 -9
- package/dist/src/Conversations/index.js +1 -9
- package/dist/src/Tickets/Category.d.ts +0 -18
- package/dist/src/Tickets/Dashboard.d.ts +0 -78
- package/dist/src/Tickets/Dashboard.js +1 -13
- package/dist/src/Tickets/Fields.d.ts +0 -1
- package/dist/src/Tickets/Layouts.d.ts +1 -3
- package/dist/src/Tickets/Workflow.d.ts +0 -20
- package/dist/src/Users/UserTrii.d.ts +0 -10
- package/dist/src/Users/UserTrii.js +1 -8
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.js +1 -4
- package/package.json +2 -5
- package/dist/src/Automations/Capabilities/Capability.d.ts +0 -81
- package/dist/src/Automations/Capabilities/Capability.js +0 -23
- package/dist/src/Automations/Capabilities/index.d.ts +0 -1
- package/dist/src/Automations/Capabilities/index.js +0 -17
- package/dist/src/Automations/Common.d.ts +0 -94
- package/dist/src/Automations/Common.js +0 -40
- package/dist/src/Automations/Events/Event.d.ts +0 -69
- package/dist/src/Automations/Events/Event.js +0 -14
- package/dist/src/Automations/Events/index.d.ts +0 -1
- package/dist/src/Automations/Events/index.js +0 -17
- package/dist/src/Automations/Executions/Execution.d.ts +0 -254
- package/dist/src/Automations/Executions/Execution.js +0 -62
- package/dist/src/Automations/Executions/Testing.d.ts +0 -166
- package/dist/src/Automations/Executions/Testing.js +0 -54
- package/dist/src/Automations/Executions/index.d.ts +0 -2
- package/dist/src/Automations/Executions/index.js +0 -18
- package/dist/src/Automations/Flows/Canvas.d.ts +0 -103
- package/dist/src/Automations/Flows/Canvas.js +0 -38
- package/dist/src/Automations/Flows/Flow.d.ts +0 -147
- package/dist/src/Automations/Flows/Flow.js +0 -58
- package/dist/src/Automations/Flows/Requests.d.ts +0 -71
- package/dist/src/Automations/Flows/Validation.d.ts +0 -28
- package/dist/src/Automations/Flows/Validation.js +0 -9
- package/dist/src/Automations/Flows/index.d.ts +0 -4
- package/dist/src/Automations/Flows/index.js +0 -20
- package/dist/src/Automations/Nodes/Node.d.ts +0 -113
- package/dist/src/Automations/Nodes/Node.js +0 -27
- package/dist/src/Automations/Nodes/index.d.ts +0 -1
- package/dist/src/Automations/Nodes/index.js +0 -17
- package/dist/src/Automations/index.d.ts +0 -6
- package/dist/src/Automations/index.js +0 -22
- package/dist/src/Chats/Chat.d.ts +0 -61
- package/dist/src/Chats/Chat.js +0 -28
- package/dist/src/Conversations/Assignment.d.ts +0 -81
- package/dist/src/Conversations/Assignment.js +0 -4
- package/dist/src/Conversations/InboxMongo.d.ts +0 -154
- package/dist/src/Conversations/InboxMongo.js +0 -128
- package/dist/src/Conversations/InboxProjection.d.ts +0 -162
- package/dist/src/Conversations/InboxProjection.js +0 -2
- package/dist/src/Conversations/Outbox.d.ts +0 -24
- package/dist/src/Conversations/Outbox.js +0 -4
- package/dist/src/Conversations/Queue.d.ts +0 -107
- package/dist/src/Conversations/Queue.js +0 -4
- package/dist/src/Conversations/Routing.d.ts +0 -164
- package/dist/src/Conversations/Routing.js +0 -2
- package/dist/src/Conversations/Sla.d.ts +0 -227
- package/dist/src/Conversations/Sla.js +0 -6
- package/dist/src/Conversations/Transfer.d.ts +0 -73
- package/dist/src/Conversations/Transfer.js +0 -2
- package/dist/src/Forms/API.d.ts +0 -53
- package/dist/src/Forms/API.js +0 -2
- package/dist/src/Forms/SubmittedForm.d.ts +0 -56
- package/dist/src/Forms/SubmittedForm.js +0 -9
- package/dist/src/Forms/index.d.ts +0 -2
- package/dist/src/Forms/index.js +0 -18
- package/dist/src/Presence/AgentPause.d.ts +0 -24
- package/dist/src/Presence/AgentPause.js +0 -19
- package/dist/src/Presence/QueueParticipation.d.ts +0 -17
- package/dist/src/Presence/QueueParticipation.js +0 -2
- package/dist/src/Presence/QueueRoutingState.d.ts +0 -27
- package/dist/src/Presence/QueueRoutingState.js +0 -9
- package/dist/src/Presence/index.d.ts +0 -3
- package/dist/src/Presence/index.js +0 -19
- /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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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) {
|
package/dist/Tickets/Group.d.ts
CHANGED
|
@@ -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`/`
|
|
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 {
|
package/dist/Tickets/Sla.d.ts
CHANGED
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 (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
57
|
+
owner?: string;
|
|
58
58
|
businessId?: string;
|
|
59
59
|
businessName?: string;
|
|
60
60
|
phones: IContactAddress[];
|