@trii/types 2.10.763 → 2.10.765
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/Contacts/CommunicationEndpoint.d.ts +8 -8
- package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +2 -2
- package/dist/Conversations/Conversation.d.ts +8 -8
- package/dist/Conversations/Routing.d.ts +10 -10
- package/dist/Events/DomainEventTypes.d.ts +23 -23
- package/dist/Tickets/Automation.d.ts +2 -0
- package/dist/Tickets/Automation.js +2 -0
- package/dist/Tickets/Dashboard.d.ts +4 -0
- package/dist/Tickets/Dashboard.js +3 -0
- package/dist/Tickets/Routing.d.ts +17 -21
- package/dist/Tickets/Routing.js +8 -0
- package/dist/Tickets/Sla.d.ts +2 -0
- package/dist/Tickets/Sla.js +2 -0
- package/dist/Tickets/Workflow.d.ts +3 -1
- package/dist/Tickets/Workflow.js +2 -0
- package/dist/src/Common/Channels/Channel.d.ts +1 -26
- package/dist/src/Contacts/contacts.d.ts +2 -2
- package/dist/src/Conversations/Conversation.d.ts +48 -241
- 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 -77
- 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 +1 -1
- package/dist/AI/MapPolygon.d.ts +0 -22
- package/dist/AI/MapPolygon.js +0 -2
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeApi.js +0 -183
- package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +0 -15
- package/dist/Conversations/Flows/Nodes/NodeBotIA.js +0 -6
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +0 -15
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +0 -6
- package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConditional.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +0 -1
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +0 -9
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +0 -20
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +0 -2
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +0 -12
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +0 -6
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +0 -15
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +0 -2
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +0 -1
- package/dist/Conversations/Flows/Nodes/NodeMsgText.js +0 -27
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeStart.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +0 -37
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +0 -59
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +0 -45
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +0 -87
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +0 -1
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +0 -52
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +0 -59
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +0 -45
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +0 -2
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +0 -81
- package/dist/Conversations/Flows/Nodes/index.d.ts +0 -24
- package/dist/Conversations/Flows/Nodes/index.js +0 -40
- package/dist/Presence/ChannelRoutingState.d.ts +0 -17
- package/dist/Presence/ChannelRoutingState.js +0 -9
- package/dist/Tickets/AccessLevel.d.ts +0 -5
- package/dist/Tickets/AccessLevel.js +0 -9
- package/dist/src/Automations/Capabilities/Capability.d.ts +0 -48
- package/dist/src/Automations/Capabilities/Capability.js +0 -9
- 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 -47
- package/dist/src/Automations/Common.js +0 -18
- package/dist/src/Automations/Events/Event.d.ts +0 -41
- package/dist/src/Automations/Events/Event.js +0 -2
- 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 -114
- package/dist/src/Automations/Executions/Execution.js +0 -23
- package/dist/src/Automations/Executions/index.d.ts +0 -1
- package/dist/src/Automations/Executions/index.js +0 -17
- package/dist/src/Automations/Flows/Canvas.d.ts +0 -86
- package/dist/src/Automations/Flows/Canvas.js +0 -34
- package/dist/src/Automations/Flows/Flow.d.ts +0 -102
- package/dist/src/Automations/Flows/Flow.js +0 -34
- package/dist/src/Automations/Flows/Requests.d.ts +0 -71
- package/dist/src/Automations/Flows/Requests.js +0 -2
- 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 -75
- package/dist/src/Automations/Nodes/Node.js +0 -18
- 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/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/Conversations → Conversations}/InboxMongo.d.ts +0 -0
- /package/dist/{src/Conversations → Conversations}/InboxMongo.js +0 -0
- /package/dist/{src/Conversations → Conversations}/InboxProjection.d.ts +0 -0
- /package/dist/{src/Conversations → Conversations}/InboxProjection.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AutomationCustomer, AutomationJsonObject, AutomationJsonSchema, AutomationResourceReference, AutomationSourceApplication } from '../Common';
|
|
2
2
|
export declare const AUTOMATION_MESSAGE_SCHEMAS: {
|
|
3
|
-
readonly DOMAIN_EVENT_V1:
|
|
4
|
-
readonly START_REQUEST_V1:
|
|
5
|
-
readonly EXECUTION_WORK_ITEM_V1:
|
|
3
|
+
readonly DOMAIN_EVENT_V1: 'automations.domain-event/v1';
|
|
4
|
+
readonly START_REQUEST_V1: 'automations.start-request/v1';
|
|
5
|
+
readonly EXECUTION_WORK_ITEM_V1: 'automations.execution.work-item/v1';
|
|
6
6
|
};
|
|
7
7
|
export interface AutomationEventDefinition {
|
|
8
8
|
eventType: string;
|
|
@@ -9,22 +9,22 @@ export declare enum CommunicationEndpointKind {
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const providerIdentityNamespaces: {
|
|
11
11
|
readonly meta: {
|
|
12
|
-
readonly instagramUser:
|
|
13
|
-
readonly messengerUser:
|
|
14
|
-
readonly whatsappUser:
|
|
12
|
+
readonly instagramUser: 'instagram_user';
|
|
13
|
+
readonly messengerUser: 'messenger_user';
|
|
14
|
+
readonly whatsappUser: 'whatsapp_user';
|
|
15
15
|
};
|
|
16
16
|
readonly telegram: {
|
|
17
|
-
readonly user:
|
|
18
|
-
readonly chat:
|
|
17
|
+
readonly user: 'user';
|
|
18
|
+
readonly chat: 'chat';
|
|
19
19
|
};
|
|
20
20
|
readonly trii: {
|
|
21
|
-
readonly webchatVisitor:
|
|
21
|
+
readonly webchatVisitor: 'webchat_visitor';
|
|
22
22
|
};
|
|
23
23
|
readonly mercadolibre: {
|
|
24
|
-
readonly buyer:
|
|
24
|
+
readonly buyer: 'buyer';
|
|
25
25
|
};
|
|
26
26
|
readonly google: {
|
|
27
|
-
readonly businessMessagesUser:
|
|
27
|
+
readonly businessMessagesUser: 'business_messages_user';
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
export type KnownIdentityProvider = keyof typeof providerIdentityNamespaces;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ConversationClassificationEvaluationStatus } from './ConversationClassificationEvaluation';
|
|
2
2
|
export declare const CONVERSATION_CLASSIFICATION_EVENT_TYPES: {
|
|
3
|
-
readonly CONVERSATION_RESOLVED_FOR_EVALUATION:
|
|
4
|
-
readonly EVALUATION_FINISHED:
|
|
3
|
+
readonly CONVERSATION_RESOLVED_FOR_EVALUATION: 'conversation.resolved-for-classification';
|
|
4
|
+
readonly EVALUATION_FINISHED: 'conversation.classification-evaluation-finished';
|
|
5
5
|
};
|
|
6
6
|
export declare const CONVERSATION_CLASSIFICATION_EVENT_SCHEMA_VERSION: 1;
|
|
7
7
|
/**
|
|
@@ -259,35 +259,35 @@ export type ConversationAssignmentSnapshot = {
|
|
|
259
259
|
offerExpiresAt?: never;
|
|
260
260
|
assignedAt?: never;
|
|
261
261
|
acceptedAt?: never;
|
|
262
|
-
} | QueuedConversationAssignmentBase & {
|
|
262
|
+
} | (QueuedConversationAssignmentBase & {
|
|
263
263
|
status: 'queued' | 'routing';
|
|
264
264
|
owner: NoConversationOwner;
|
|
265
265
|
offeredAt?: never;
|
|
266
266
|
offerExpiresAt?: never;
|
|
267
267
|
assignedAt?: never;
|
|
268
268
|
acceptedAt?: never;
|
|
269
|
-
} | QueuedConversationAssignmentBase & {
|
|
269
|
+
}) | (QueuedConversationAssignmentBase & {
|
|
270
270
|
status: 'offered';
|
|
271
271
|
owner: UserConversationOwner;
|
|
272
272
|
offeredAt: Date;
|
|
273
273
|
offerExpiresAt?: Date;
|
|
274
274
|
assignedAt?: never;
|
|
275
275
|
acceptedAt?: never;
|
|
276
|
-
} | QueuedConversationAssignmentBase & {
|
|
276
|
+
}) | (QueuedConversationAssignmentBase & {
|
|
277
277
|
status: 'assigned';
|
|
278
278
|
owner: UserConversationOwner;
|
|
279
279
|
offeredAt?: Date;
|
|
280
280
|
offerExpiresAt?: Date;
|
|
281
281
|
assignedAt: Date;
|
|
282
282
|
acceptedAt?: never;
|
|
283
|
-
} | QueuedConversationAssignmentBase & {
|
|
283
|
+
}) | (QueuedConversationAssignmentBase & {
|
|
284
284
|
status: 'accepted';
|
|
285
285
|
owner: UserConversationOwner;
|
|
286
286
|
offeredAt?: Date;
|
|
287
287
|
offerExpiresAt?: Date;
|
|
288
288
|
assignedAt: Date;
|
|
289
289
|
acceptedAt: Date;
|
|
290
|
-
};
|
|
290
|
+
});
|
|
291
291
|
export type ActorType = 'user' | 'contact' | 'bot' | 'flow' | 'system';
|
|
292
292
|
export type ParticipantRole = 'owner' | 'collaborator' | 'follower' | 'mentioned' | 'supervisor' | 'bot' | 'flow' | 'historical';
|
|
293
293
|
export type ConversationEventType = 'conversation_created' | 'queued' | 'assigned' | 'accepted' | 'transferred' | 'consult_requested' | 'collaborator_added' | 'participant_added' | 'participant_removed' | 'participation_abandoned' | 'follow_started' | 'follow_stopped' | 'message_sent' | 'message_received' | 'internal_note_added' | 'bot_started' | 'bot_finished' | 'flow_started' | 'flow_finished' | 'status_changed' | 'resolved' | 'reopened' | 'sla_warning' | 'sla_breached' | 'sla_started' | 'sla_paused' | 'sla_resumed' | 'sla_met' | 'sla_overridden';
|
|
@@ -321,15 +321,15 @@ interface ConversationSubscriptionBase {
|
|
|
321
321
|
* A subscription is persistent product intent. Assignment or participation
|
|
322
322
|
* visibility must not create it unless an explicit auto-follow policy applies.
|
|
323
323
|
*/
|
|
324
|
-
export type ConversationSubscription = ConversationSubscriptionBase & {
|
|
324
|
+
export type ConversationSubscription = (ConversationSubscriptionBase & {
|
|
325
325
|
status: 'following';
|
|
326
326
|
followedAt: Date;
|
|
327
327
|
unfollowedAt?: never;
|
|
328
|
-
} | ConversationSubscriptionBase & {
|
|
328
|
+
}) | (ConversationSubscriptionBase & {
|
|
329
329
|
status: 'unfollowed';
|
|
330
330
|
followedAt: Date;
|
|
331
331
|
unfollowedAt: Date;
|
|
332
|
-
};
|
|
332
|
+
});
|
|
333
333
|
export interface PutConversationSubscriptionRequest {
|
|
334
334
|
expectedVersion?: number;
|
|
335
335
|
notifications: ConversationSubscriptionNotifications;
|
|
@@ -18,27 +18,27 @@ export interface PartyOwnerAssigneeResolver {
|
|
|
18
18
|
mode: 'prefer' | 'required';
|
|
19
19
|
}
|
|
20
20
|
export type QueueOwnerAssigneeResolver = PartyOwnerAssigneeResolver;
|
|
21
|
-
export type QueueRoutingPolicy = QueueRoutingPolicyBase & {
|
|
21
|
+
export type QueueRoutingPolicy = (QueueRoutingPolicyBase & {
|
|
22
22
|
distributionMode: 'shared';
|
|
23
23
|
strategy?: never;
|
|
24
24
|
ownerResolver?: never;
|
|
25
|
-
} | QueueRoutingPolicyBase & {
|
|
25
|
+
}) | (QueueRoutingPolicyBase & {
|
|
26
26
|
distributionMode: 'manual_pull';
|
|
27
27
|
strategy?: never;
|
|
28
28
|
ownerResolver?: never;
|
|
29
|
-
} | QueueRoutingPolicyBase & {
|
|
29
|
+
}) | (QueueRoutingPolicyBase & {
|
|
30
30
|
distributionMode: 'exclusive';
|
|
31
31
|
strategy: QueueRoutingStrategy;
|
|
32
|
-
ownerResolver?: undefined | PartyOwnerAssigneeResolver & {
|
|
32
|
+
ownerResolver?: undefined | (PartyOwnerAssigneeResolver & {
|
|
33
33
|
mode: 'prefer';
|
|
34
|
-
};
|
|
35
|
-
} | QueueRoutingPolicyBase & {
|
|
34
|
+
});
|
|
35
|
+
}) | (QueueRoutingPolicyBase & {
|
|
36
36
|
distributionMode: 'exclusive';
|
|
37
37
|
strategy?: never;
|
|
38
38
|
ownerResolver: PartyOwnerAssigneeResolver & {
|
|
39
39
|
mode: 'required';
|
|
40
40
|
};
|
|
41
|
-
};
|
|
41
|
+
});
|
|
42
42
|
export type QueueRoutingConfig = QueueRoutingPolicy & {
|
|
43
43
|
queueId: string;
|
|
44
44
|
spaceId: string;
|
|
@@ -125,15 +125,15 @@ export type PartyOwnerAssigneeEvaluation = {
|
|
|
125
125
|
}>;
|
|
126
126
|
outcome: 'selected';
|
|
127
127
|
nextStep?: never;
|
|
128
|
-
} | FailedPartyOwnerEvaluation & {
|
|
128
|
+
} | (FailedPartyOwnerEvaluation & {
|
|
129
129
|
type: 'party_owner';
|
|
130
130
|
mode: 'prefer';
|
|
131
131
|
nextStep: 'strategy';
|
|
132
|
-
} | FailedPartyOwnerEvaluation & {
|
|
132
|
+
}) | (FailedPartyOwnerEvaluation & {
|
|
133
133
|
type: 'party_owner';
|
|
134
134
|
mode: 'required';
|
|
135
135
|
nextStep: 'fallback';
|
|
136
|
-
};
|
|
136
|
+
});
|
|
137
137
|
export interface RoutingDecision {
|
|
138
138
|
decisionId: string;
|
|
139
139
|
spaceId: string;
|
|
@@ -9,39 +9,39 @@
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const DOMAIN_EVENT_TYPES: {
|
|
11
11
|
readonly AUTOMATIONS: {
|
|
12
|
-
readonly MANUAL:
|
|
13
|
-
readonly SCHEDULE_TICK:
|
|
12
|
+
readonly MANUAL: 'automations.manual';
|
|
13
|
+
readonly SCHEDULE_TICK: 'automations.schedule.tick';
|
|
14
14
|
};
|
|
15
15
|
readonly CONTACTS: {
|
|
16
|
-
readonly CONTACT_CREATED:
|
|
17
|
-
readonly BUSINESS_CREATED:
|
|
18
|
-
readonly PROPERTY_CHANGED:
|
|
19
|
-
readonly TAG_ADDED:
|
|
20
|
-
readonly TAG_REMOVED:
|
|
21
|
-
readonly PROPERTY_DATE_REACHED:
|
|
16
|
+
readonly CONTACT_CREATED: 'contacts.contact.created';
|
|
17
|
+
readonly BUSINESS_CREATED: 'contacts.business.created';
|
|
18
|
+
readonly PROPERTY_CHANGED: 'contacts.property.changed';
|
|
19
|
+
readonly TAG_ADDED: 'contacts.tag.added';
|
|
20
|
+
readonly TAG_REMOVED: 'contacts.tag.removed';
|
|
21
|
+
readonly PROPERTY_DATE_REACHED: 'contacts.property.date_reached';
|
|
22
22
|
};
|
|
23
23
|
readonly CONVERSATIONS: {
|
|
24
|
-
readonly CONVERSATION_CREATED:
|
|
25
|
-
readonly CONVERSATION_CLOSED:
|
|
26
|
-
readonly MESSAGE_RECEIVED:
|
|
27
|
-
readonly AGENT_INTERVENED:
|
|
24
|
+
readonly CONVERSATION_CREATED: 'conversations.conversation.created';
|
|
25
|
+
readonly CONVERSATION_CLOSED: 'conversations.conversation.closed';
|
|
26
|
+
readonly MESSAGE_RECEIVED: 'conversations.message.received';
|
|
27
|
+
readonly AGENT_INTERVENED: 'conversations.agent.intervened';
|
|
28
28
|
};
|
|
29
29
|
readonly TICKETS: {
|
|
30
|
-
readonly CREATED:
|
|
31
|
-
readonly STATUS_CHANGED:
|
|
32
|
-
readonly PRIORITY_CHANGED:
|
|
33
|
-
readonly ASSIGNED:
|
|
34
|
-
readonly CUSTOMER_REPLIED:
|
|
35
|
-
readonly SLA_WARNING:
|
|
36
|
-
readonly SLA_BREACHED:
|
|
37
|
-
readonly CLOSED:
|
|
38
|
-
readonly REOPENED:
|
|
30
|
+
readonly CREATED: 'tickets.created';
|
|
31
|
+
readonly STATUS_CHANGED: 'tickets.status_changed';
|
|
32
|
+
readonly PRIORITY_CHANGED: 'tickets.priority_changed';
|
|
33
|
+
readonly ASSIGNED: 'tickets.assigned';
|
|
34
|
+
readonly CUSTOMER_REPLIED: 'tickets.customer_replied';
|
|
35
|
+
readonly SLA_WARNING: 'tickets.sla_warning';
|
|
36
|
+
readonly SLA_BREACHED: 'tickets.sla_breached';
|
|
37
|
+
readonly CLOSED: 'tickets.closed';
|
|
38
|
+
readonly REOPENED: 'tickets.reopened';
|
|
39
39
|
};
|
|
40
40
|
readonly FORMS: {
|
|
41
|
-
readonly SUBMITTED:
|
|
41
|
+
readonly SUBMITTED: 'forms.submitted';
|
|
42
42
|
};
|
|
43
43
|
readonly INTEGRATIONS: {
|
|
44
|
-
readonly WEBHOOK_RECEIVED:
|
|
44
|
+
readonly WEBHOOK_RECEIVED: 'integrations.webhook.received';
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
type Values<T> = T extends unknown ? T[keyof T] : never;
|
|
@@ -25,6 +25,8 @@ export declare enum TicketAutomationTrigger {
|
|
|
25
25
|
TICKET_RESOLVED = "TICKET_RESOLVED",
|
|
26
26
|
/** The ticket entered a work queue or moved to another one. */
|
|
27
27
|
TICKET_ENQUEUED = "TICKET_ENQUEUED",
|
|
28
|
+
/** A step of an escalation policy ran on the ticket. */
|
|
29
|
+
TICKET_ESCALATED = "TICKET_ESCALATED",
|
|
28
30
|
SCHEDULED = "SCHEDULED",
|
|
29
31
|
MANUAL = "MANUAL"
|
|
30
32
|
}
|
|
@@ -27,6 +27,8 @@ var TicketAutomationTrigger;
|
|
|
27
27
|
TicketAutomationTrigger["TICKET_RESOLVED"] = "TICKET_RESOLVED";
|
|
28
28
|
/** The ticket entered a work queue or moved to another one. */
|
|
29
29
|
TicketAutomationTrigger["TICKET_ENQUEUED"] = "TICKET_ENQUEUED";
|
|
30
|
+
/** A step of an escalation policy ran on the ticket. */
|
|
31
|
+
TicketAutomationTrigger["TICKET_ESCALATED"] = "TICKET_ESCALATED";
|
|
30
32
|
TicketAutomationTrigger["SCHEDULED"] = "SCHEDULED";
|
|
31
33
|
TicketAutomationTrigger["MANUAL"] = "MANUAL";
|
|
32
34
|
})(TicketAutomationTrigger || (exports.TicketAutomationTrigger = TicketAutomationTrigger = {}));
|
|
@@ -123,6 +123,7 @@ export declare enum TicketMetricCode {
|
|
|
123
123
|
NEXT_RESPONSE_TIME = "NEXT_RESPONSE_TIME",
|
|
124
124
|
RESOLUTION_TIME = "RESOLUTION_TIME",
|
|
125
125
|
ASSIGNMENT_TIME = "ASSIGNMENT_TIME",
|
|
126
|
+
/** @deprecated Assignment is direct: there is no acceptance to measure. Use ASSIGNMENT_TIME. */
|
|
126
127
|
ACCEPTANCE_TIME = "ACCEPTANCE_TIME",
|
|
127
128
|
HANDLE_TIME = "HANDLE_TIME",
|
|
128
129
|
WAITING_CUSTOMER_TIME = "WAITING_CUSTOMER_TIME",
|
|
@@ -149,7 +150,9 @@ export declare enum TicketMetricCode {
|
|
|
149
150
|
AGENT_CAPACITY_UTILIZATION = "AGENT_CAPACITY_UTILIZATION",
|
|
150
151
|
AGENT_AVAILABILITY_TIME = "AGENT_AVAILABILITY_TIME",
|
|
151
152
|
AGENT_OCCUPANCY_RATE = "AGENT_OCCUPANCY_RATE",
|
|
153
|
+
/** @deprecated Assignment is direct: nothing is accepted or declined. */
|
|
152
154
|
AGENT_ACCEPTANCE_RATE = "AGENT_ACCEPTANCE_RATE",
|
|
155
|
+
/** @deprecated Assignment is direct: nothing is accepted or declined. */
|
|
153
156
|
AGENT_DECLINE_RATE = "AGENT_DECLINE_RATE",
|
|
154
157
|
AGENT_PRODUCTIVITY = "AGENT_PRODUCTIVITY",
|
|
155
158
|
QUEUE_SIZE = "QUEUE_SIZE",
|
|
@@ -551,6 +554,7 @@ export interface IAgentDashboardMetrics {
|
|
|
551
554
|
qualityGoals: {
|
|
552
555
|
firstResponseSla: IAgentDashboardQualityGoal;
|
|
553
556
|
resolutionSla: IAgentDashboardQualityGoal;
|
|
557
|
+
/** @deprecated Assignment is direct: nothing is accepted, so this rate has no source. */
|
|
554
558
|
assignmentAcceptanceRate: IAgentDashboardQualityGoal;
|
|
555
559
|
};
|
|
556
560
|
csatScore: IAgentDashboardQualityGoal;
|
|
@@ -132,6 +132,7 @@ var TicketMetricCode;
|
|
|
132
132
|
TicketMetricCode["NEXT_RESPONSE_TIME"] = "NEXT_RESPONSE_TIME";
|
|
133
133
|
TicketMetricCode["RESOLUTION_TIME"] = "RESOLUTION_TIME";
|
|
134
134
|
TicketMetricCode["ASSIGNMENT_TIME"] = "ASSIGNMENT_TIME";
|
|
135
|
+
/** @deprecated Assignment is direct: there is no acceptance to measure. Use ASSIGNMENT_TIME. */
|
|
135
136
|
TicketMetricCode["ACCEPTANCE_TIME"] = "ACCEPTANCE_TIME";
|
|
136
137
|
TicketMetricCode["HANDLE_TIME"] = "HANDLE_TIME";
|
|
137
138
|
TicketMetricCode["WAITING_CUSTOMER_TIME"] = "WAITING_CUSTOMER_TIME";
|
|
@@ -158,7 +159,9 @@ var TicketMetricCode;
|
|
|
158
159
|
TicketMetricCode["AGENT_CAPACITY_UTILIZATION"] = "AGENT_CAPACITY_UTILIZATION";
|
|
159
160
|
TicketMetricCode["AGENT_AVAILABILITY_TIME"] = "AGENT_AVAILABILITY_TIME";
|
|
160
161
|
TicketMetricCode["AGENT_OCCUPANCY_RATE"] = "AGENT_OCCUPANCY_RATE";
|
|
162
|
+
/** @deprecated Assignment is direct: nothing is accepted or declined. */
|
|
161
163
|
TicketMetricCode["AGENT_ACCEPTANCE_RATE"] = "AGENT_ACCEPTANCE_RATE";
|
|
164
|
+
/** @deprecated Assignment is direct: nothing is accepted or declined. */
|
|
162
165
|
TicketMetricCode["AGENT_DECLINE_RATE"] = "AGENT_DECLINE_RATE";
|
|
163
166
|
TicketMetricCode["AGENT_PRODUCTIVITY"] = "AGENT_PRODUCTIVITY";
|
|
164
167
|
TicketMetricCode["QUEUE_SIZE"] = "QUEUE_SIZE";
|
|
@@ -14,9 +14,13 @@ export declare enum TicketRoutingStatus {
|
|
|
14
14
|
NOT_ROUTED = "NOT_ROUTED",
|
|
15
15
|
QUEUED = "QUEUED",
|
|
16
16
|
ROUTING = "ROUTING",
|
|
17
|
+
/** @deprecated Assignment is direct: there is no offer/accept flow. Never produced. */
|
|
17
18
|
OFFERED = "OFFERED",
|
|
19
|
+
/** @deprecated Assignment is direct (born ACCEPTED). Never produced. */
|
|
18
20
|
ASSIGNED = "ASSIGNED",
|
|
21
|
+
/** Every assignment (pull, manual, automatic) is direct and lands here. */
|
|
19
22
|
ACCEPTED = "ACCEPTED",
|
|
23
|
+
/** @deprecated There is no offer to decline. Never produced. */
|
|
20
24
|
DECLINED = "DECLINED",
|
|
21
25
|
RETURNED = "RETURNED",
|
|
22
26
|
ESCALATED = "ESCALATED",
|
|
@@ -50,10 +54,12 @@ export declare enum TicketSkillRelaxationMode {
|
|
|
50
54
|
}
|
|
51
55
|
export declare enum TicketEscalationTrigger {
|
|
52
56
|
QUEUE_WAIT = "QUEUE_WAIT",
|
|
57
|
+
/** @deprecated Assignment is direct: there are no offers to time out. */
|
|
53
58
|
OFFER_TIMEOUT = "OFFER_TIMEOUT",
|
|
54
59
|
SLA_WARNING = "SLA_WARNING",
|
|
55
60
|
SLA_BREACH = "SLA_BREACH",
|
|
56
61
|
NO_ELIGIBLE_AGENT = "NO_ELIGIBLE_AGENT",
|
|
62
|
+
/** @deprecated Assignment is direct: there is no offer to decline. */
|
|
57
63
|
DECLINED = "DECLINED"
|
|
58
64
|
}
|
|
59
65
|
export declare enum TicketEscalationActionType {
|
|
@@ -71,7 +77,9 @@ export declare enum TicketAssignmentEndReason {
|
|
|
71
77
|
COMPLETED = "COMPLETED",
|
|
72
78
|
REASSIGNED = "REASSIGNED",
|
|
73
79
|
RETURNED = "RETURNED",
|
|
80
|
+
/** @deprecated Assignment is direct: there is no offer to decline. Never produced. */
|
|
74
81
|
DECLINED = "DECLINED",
|
|
82
|
+
/** @deprecated Assignment is direct: there are no offers to expire. Never produced. */
|
|
75
83
|
EXPIRED = "EXPIRED",
|
|
76
84
|
MANUAL = "MANUAL"
|
|
77
85
|
}
|
|
@@ -139,7 +147,12 @@ export interface ITicketQueue extends ITicketAuditedEntity {
|
|
|
139
147
|
strategy: TicketRoutingStrategy;
|
|
140
148
|
ordering: ITicketQueueOrder[];
|
|
141
149
|
skillRequirements?: ITicketSkillRequirement[];
|
|
142
|
-
|
|
150
|
+
/**
|
|
151
|
+
* How long a ticket may wait in this queue before `escalationPolicyId` starts:
|
|
152
|
+
* escalation starts at the ticket's enqueue time + this value (0 = as soon as it
|
|
153
|
+
* waits). Without it the queue never escalates. Pulling or assigning the ticket
|
|
154
|
+
* stops the clock; re-enqueueing restarts it. Wall-clock minutes (no calendar).
|
|
155
|
+
*/
|
|
143
156
|
maximumWaitMinutes?: number;
|
|
144
157
|
escalationPolicyId?: string;
|
|
145
158
|
}
|
|
@@ -168,8 +181,11 @@ export interface ITicketEscalationStep {
|
|
|
168
181
|
id: string;
|
|
169
182
|
order: number;
|
|
170
183
|
trigger: TicketEscalationTrigger;
|
|
184
|
+
/** Minutes after the escalation started (see ITicketQueue.maximumWaitMinutes) until the first run. Default 0. */
|
|
171
185
|
thresholdMinutes?: number;
|
|
186
|
+
/** Runs again every N minutes after the first one. Without it the step runs once. */
|
|
172
187
|
repeatEveryMinutes?: number;
|
|
188
|
+
/** Cap on runs per stay in the queue (a re-enqueue starts a new stay). */
|
|
173
189
|
maximumExecutions?: number;
|
|
174
190
|
actions: ITicketEscalationAction[];
|
|
175
191
|
}
|
|
@@ -187,8 +203,6 @@ export interface ITicketAssignment {
|
|
|
187
203
|
groupId?: string;
|
|
188
204
|
agentId?: string;
|
|
189
205
|
status: TicketRoutingStatus;
|
|
190
|
-
offeredAt?: Date;
|
|
191
|
-
offerExpiresAt?: Date;
|
|
192
206
|
assignedAt?: Date;
|
|
193
207
|
acceptedAt?: Date;
|
|
194
208
|
endedAt?: Date;
|
|
@@ -251,8 +265,6 @@ export interface ITicketRoutingState {
|
|
|
251
265
|
policyId?: string;
|
|
252
266
|
currentAssignmentId?: string;
|
|
253
267
|
enqueuedAt?: Date;
|
|
254
|
-
offeredAt?: Date;
|
|
255
|
-
offerExpiresAt?: Date;
|
|
256
268
|
assignedAt?: Date;
|
|
257
269
|
acceptedAt?: Date;
|
|
258
270
|
priorityScore?: number;
|
|
@@ -270,21 +282,6 @@ export interface IEnqueueTicketDto {
|
|
|
270
282
|
queueId?: string;
|
|
271
283
|
reason?: string;
|
|
272
284
|
}
|
|
273
|
-
export interface IAcceptTicketAssignmentDto {
|
|
274
|
-
expectedVersion: number;
|
|
275
|
-
assignmentId: string;
|
|
276
|
-
}
|
|
277
|
-
export interface IDeclineTicketAssignmentDto {
|
|
278
|
-
expectedVersion: number;
|
|
279
|
-
assignmentId: string;
|
|
280
|
-
reason: string;
|
|
281
|
-
}
|
|
282
|
-
export interface IReturnTicketToQueueDto {
|
|
283
|
-
expectedVersion: number;
|
|
284
|
-
assignmentId: string;
|
|
285
|
-
reason?: string;
|
|
286
|
-
queueId?: string;
|
|
287
|
-
}
|
|
288
285
|
export interface IManualRouteTicketDto {
|
|
289
286
|
expectedVersion: number;
|
|
290
287
|
queueId?: string;
|
|
@@ -302,7 +299,6 @@ export interface ICreateTicketQueueDto {
|
|
|
302
299
|
strategy: TicketRoutingStrategy;
|
|
303
300
|
ordering: ITicketQueueOrder[];
|
|
304
301
|
skillRequirements?: ITicketSkillRequirement[];
|
|
305
|
-
offerTimeoutSeconds?: number;
|
|
306
302
|
maximumWaitMinutes?: number;
|
|
307
303
|
escalationPolicyId?: string;
|
|
308
304
|
}
|
package/dist/Tickets/Routing.js
CHANGED
|
@@ -16,9 +16,13 @@ var TicketRoutingStatus;
|
|
|
16
16
|
TicketRoutingStatus["NOT_ROUTED"] = "NOT_ROUTED";
|
|
17
17
|
TicketRoutingStatus["QUEUED"] = "QUEUED";
|
|
18
18
|
TicketRoutingStatus["ROUTING"] = "ROUTING";
|
|
19
|
+
/** @deprecated Assignment is direct: there is no offer/accept flow. Never produced. */
|
|
19
20
|
TicketRoutingStatus["OFFERED"] = "OFFERED";
|
|
21
|
+
/** @deprecated Assignment is direct (born ACCEPTED). Never produced. */
|
|
20
22
|
TicketRoutingStatus["ASSIGNED"] = "ASSIGNED";
|
|
23
|
+
/** Every assignment (pull, manual, automatic) is direct and lands here. */
|
|
21
24
|
TicketRoutingStatus["ACCEPTED"] = "ACCEPTED";
|
|
25
|
+
/** @deprecated There is no offer to decline. Never produced. */
|
|
22
26
|
TicketRoutingStatus["DECLINED"] = "DECLINED";
|
|
23
27
|
TicketRoutingStatus["RETURNED"] = "RETURNED";
|
|
24
28
|
TicketRoutingStatus["ESCALATED"] = "ESCALATED";
|
|
@@ -58,10 +62,12 @@ var TicketSkillRelaxationMode;
|
|
|
58
62
|
var TicketEscalationTrigger;
|
|
59
63
|
(function (TicketEscalationTrigger) {
|
|
60
64
|
TicketEscalationTrigger["QUEUE_WAIT"] = "QUEUE_WAIT";
|
|
65
|
+
/** @deprecated Assignment is direct: there are no offers to time out. */
|
|
61
66
|
TicketEscalationTrigger["OFFER_TIMEOUT"] = "OFFER_TIMEOUT";
|
|
62
67
|
TicketEscalationTrigger["SLA_WARNING"] = "SLA_WARNING";
|
|
63
68
|
TicketEscalationTrigger["SLA_BREACH"] = "SLA_BREACH";
|
|
64
69
|
TicketEscalationTrigger["NO_ELIGIBLE_AGENT"] = "NO_ELIGIBLE_AGENT";
|
|
70
|
+
/** @deprecated Assignment is direct: there is no offer to decline. */
|
|
65
71
|
TicketEscalationTrigger["DECLINED"] = "DECLINED";
|
|
66
72
|
})(TicketEscalationTrigger || (exports.TicketEscalationTrigger = TicketEscalationTrigger = {}));
|
|
67
73
|
var TicketEscalationActionType;
|
|
@@ -81,7 +87,9 @@ var TicketAssignmentEndReason;
|
|
|
81
87
|
TicketAssignmentEndReason["COMPLETED"] = "COMPLETED";
|
|
82
88
|
TicketAssignmentEndReason["REASSIGNED"] = "REASSIGNED";
|
|
83
89
|
TicketAssignmentEndReason["RETURNED"] = "RETURNED";
|
|
90
|
+
/** @deprecated Assignment is direct: there is no offer to decline. Never produced. */
|
|
84
91
|
TicketAssignmentEndReason["DECLINED"] = "DECLINED";
|
|
92
|
+
/** @deprecated Assignment is direct: there are no offers to expire. Never produced. */
|
|
85
93
|
TicketAssignmentEndReason["EXPIRED"] = "EXPIRED";
|
|
86
94
|
TicketAssignmentEndReason["MANUAL"] = "MANUAL";
|
|
87
95
|
})(TicketAssignmentEndReason || (exports.TicketAssignmentEndReason = TicketAssignmentEndReason = {}));
|
package/dist/Tickets/Sla.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare enum SlaMetricType {
|
|
|
9
9
|
NEXT_RESPONSE = "NEXT_RESPONSE",
|
|
10
10
|
RESOLUTION = "RESOLUTION",
|
|
11
11
|
ASSIGNMENT = "ASSIGNMENT",
|
|
12
|
+
/** @deprecated Assignment is direct: nothing is ever accepted, so this clock never closes. Use ASSIGNMENT. */
|
|
12
13
|
ACCEPTANCE = "ACCEPTANCE",
|
|
13
14
|
PERIODIC_UPDATE = "PERIODIC_UPDATE",
|
|
14
15
|
STATUS_TIME = "STATUS_TIME",
|
|
@@ -41,6 +42,7 @@ export declare enum SlaEventType {
|
|
|
41
42
|
STATUS_ENTERED = "STATUS_ENTERED",
|
|
42
43
|
STATUS_EXITED = "STATUS_EXITED",
|
|
43
44
|
ASSIGNED = "ASSIGNED",
|
|
45
|
+
/** @deprecated Assignment is direct: no event ever produces this. Use ASSIGNED. */
|
|
44
46
|
ASSIGNMENT_ACCEPTED = "ASSIGNMENT_ACCEPTED",
|
|
45
47
|
PUBLIC_MESSAGE_RECEIVED = "PUBLIC_MESSAGE_RECEIVED",
|
|
46
48
|
PUBLIC_AGENT_RESPONSE_SENT = "PUBLIC_AGENT_RESPONSE_SENT",
|
package/dist/Tickets/Sla.js
CHANGED
|
@@ -12,6 +12,7 @@ var SlaMetricType;
|
|
|
12
12
|
SlaMetricType["NEXT_RESPONSE"] = "NEXT_RESPONSE";
|
|
13
13
|
SlaMetricType["RESOLUTION"] = "RESOLUTION";
|
|
14
14
|
SlaMetricType["ASSIGNMENT"] = "ASSIGNMENT";
|
|
15
|
+
/** @deprecated Assignment is direct: nothing is ever accepted, so this clock never closes. Use ASSIGNMENT. */
|
|
15
16
|
SlaMetricType["ACCEPTANCE"] = "ACCEPTANCE";
|
|
16
17
|
SlaMetricType["PERIODIC_UPDATE"] = "PERIODIC_UPDATE";
|
|
17
18
|
SlaMetricType["STATUS_TIME"] = "STATUS_TIME";
|
|
@@ -49,6 +50,7 @@ var SlaEventType;
|
|
|
49
50
|
SlaEventType["STATUS_ENTERED"] = "STATUS_ENTERED";
|
|
50
51
|
SlaEventType["STATUS_EXITED"] = "STATUS_EXITED";
|
|
51
52
|
SlaEventType["ASSIGNED"] = "ASSIGNED";
|
|
53
|
+
/** @deprecated Assignment is direct: no event ever produces this. Use ASSIGNED. */
|
|
52
54
|
SlaEventType["ASSIGNMENT_ACCEPTED"] = "ASSIGNMENT_ACCEPTED";
|
|
53
55
|
SlaEventType["PUBLIC_MESSAGE_RECEIVED"] = "PUBLIC_MESSAGE_RECEIVED";
|
|
54
56
|
SlaEventType["PUBLIC_AGENT_RESPONSE_SENT"] = "PUBLIC_AGENT_RESPONSE_SENT";
|
|
@@ -94,7 +94,9 @@ export declare enum TicketActivityType {
|
|
|
94
94
|
CHECKLIST_COMPLETED = "CHECKLIST_COMPLETED",
|
|
95
95
|
TICKET_EVENT = "TICKET_EVENT",
|
|
96
96
|
/** The ticket entered a work queue or moved to another one (`changes` carries `queueId`). */
|
|
97
|
-
ENQUEUED = "ENQUEUED"
|
|
97
|
+
ENQUEUED = "ENQUEUED",
|
|
98
|
+
/** A step of an escalation policy ran on the ticket (`changes` carries what its actions changed). */
|
|
99
|
+
ESCALATED = "ESCALATED"
|
|
98
100
|
}
|
|
99
101
|
export interface ITicketFieldChange {
|
|
100
102
|
fieldNameKey: string;
|
package/dist/Tickets/Workflow.js
CHANGED
|
@@ -43,4 +43,6 @@ var TicketActivityType;
|
|
|
43
43
|
TicketActivityType["TICKET_EVENT"] = "TICKET_EVENT";
|
|
44
44
|
/** The ticket entered a work queue or moved to another one (`changes` carries `queueId`). */
|
|
45
45
|
TicketActivityType["ENQUEUED"] = "ENQUEUED";
|
|
46
|
+
/** A step of an escalation policy ran on the ticket (`changes` carries what its actions changed). */
|
|
47
|
+
TicketActivityType["ESCALATED"] = "ESCALATED";
|
|
46
48
|
})(TicketActivityType || (exports.TicketActivityType = TicketActivityType = {}));
|
|
@@ -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,28 +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 QueueRoutingConfig.
|
|
59
|
-
*/
|
|
60
47
|
assignTo?: ConversationAssigned;
|
|
61
|
-
/**
|
|
62
|
-
* @deprecated Legacy channel assignment configuration. Use QueueRoutingConfig.
|
|
63
|
-
*/
|
|
64
48
|
assignMethod: AssignMethod;
|
|
65
|
-
/**
|
|
66
|
-
* @deprecated Ownership is produced by the routing decision.
|
|
67
|
-
*/
|
|
68
49
|
assignToOwner?: boolean;
|
|
69
50
|
/**
|
|
70
51
|
* habilita la creacion de conversaciones para este canal, si esta en false, los mensajes entrantes no generaran conversaciones
|
|
71
52
|
*/
|
|
72
53
|
conversationsEnabled: boolean | false;
|
|
73
|
-
/**
|
|
74
|
-
* Default Queue for newly-created conversations that are not handled by a
|
|
75
|
-
* Flow. Store only the Queue id; Queue configuration remains authoritative
|
|
76
|
-
* in the Conversations domain.
|
|
77
|
-
*/
|
|
78
|
-
conversationRouting?: ChannelConversationRoutingConfig | null;
|
|
79
54
|
/**
|
|
80
55
|
* Gets or sets a value indicating whether webhook notifications are enabled.
|
|
81
56
|
* Redirects incoming messages to the specified webhook URL when set to true.
|
|
@@ -121,4 +96,4 @@ declare enum channelStatus {
|
|
|
121
96
|
SUSPENDED = 7,
|
|
122
97
|
CONFIGURATION_PENDING = 9
|
|
123
98
|
}
|
|
124
|
-
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[];
|