@trii/types 2.10.712 → 2.10.713
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/Conversation.d.ts +8 -8
- package/dist/Conversations/InboxMongo.d.ts +12 -12
- package/dist/Conversations/Routing.d.ts +10 -10
- package/dist/Tickets/AdvancedApi.d.ts +60 -0
- package/dist/Tickets/AdvancedApi.js +12 -1
- package/dist/index.d.ts +23 -23
- package/dist/index.js +59 -59
- package/package.json +12 -12
- package/dist/Conversations/DashBoard/dashboardForms.d.ts +0 -44
- package/dist/Conversations/DashBoard/dashboardForms.js +0 -24
- package/dist/Conversations/InboxCounters.d.ts +0 -18
- package/dist/Conversations/InboxCounters.js +0 -2
- package/dist/src/AI/Credential.d.ts +0 -13
- package/dist/src/AI/Credential.js +0 -2
- package/dist/src/AI/Documents/Document.d.ts +0 -36
- package/dist/src/AI/Documents/Document.js +0 -15
- package/dist/src/AI/Documents/Store.d.ts +0 -25
- package/dist/src/AI/Documents/Store.js +0 -10
- package/dist/src/AI/Map.d.ts +0 -13
- package/dist/src/AI/Map.js +0 -2
- package/dist/src/AI/Provider.d.ts +0 -6
- package/dist/src/AI/Provider.js +0 -2
- package/dist/src/AI/Threads/API.d.ts +0 -55
- package/dist/src/AI/Threads/API.js +0 -2
- package/dist/src/AI/Threads/Message.d.ts +0 -61
- package/dist/src/AI/Threads/Message.js +0 -2
- package/dist/src/AI/Threads/Thread.d.ts +0 -22
- package/dist/src/AI/Threads/Thread.js +0 -2
- package/dist/src/AI/Threads/index.d.ts +0 -3
- package/dist/src/AI/Threads/index.js +0 -19
- package/dist/src/AI/aiModuleStatus.d.ts +0 -3
- package/dist/src/AI/aiModuleStatus.js +0 -2
- package/dist/src/AI/index.d.ts +0 -4
- package/dist/src/AI/index.js +0 -20
- package/dist/src/Accounts/accounts.d.ts +0 -88
- package/dist/src/Accounts/accounts.js +0 -24
- package/dist/src/Accounts/device.d.ts +0 -31
- package/dist/src/Accounts/device.js +0 -19
- package/dist/src/Accounts/index.d.ts +0 -2
- package/dist/src/Accounts/index.js +0 -18
- package/dist/src/ApiResponses/index.d.ts +0 -9
- package/dist/src/ApiResponses/index.js +0 -2
- package/dist/src/AuditLogs/auditLog.d.ts +0 -9
- package/dist/src/AuditLogs/auditLog.js +0 -2
- package/dist/src/AuditLogs/auditLogType.d.ts +0 -5
- package/dist/src/AuditLogs/auditLogType.js +0 -9
- package/dist/src/AuditLogs/index.d.ts +0 -2
- package/dist/src/AuditLogs/index.js +0 -18
- package/dist/src/Calendar/Calendar.d.ts +0 -18
- package/dist/src/Calendar/Calendar.js +0 -2
- package/dist/src/Calendar/Common.d.ts +0 -77
- package/dist/src/Calendar/Common.js +0 -16
- package/dist/src/Calendar/Event.d.ts +0 -64
- package/dist/src/Calendar/Event.js +0 -16
- package/dist/src/Calendar/Events.d.ts +0 -61
- package/dist/src/Calendar/Events.js +0 -5
- package/dist/src/Calendar/Task.d.ts +0 -12
- package/dist/src/Calendar/Task.js +0 -2
- package/dist/src/Calendar/Tasks.d.ts +0 -18
- package/dist/src/Calendar/Tasks.js +0 -5
- package/dist/src/Calendar/index.d.ts +0 -3
- package/dist/src/Calendar/index.js +0 -19
- package/dist/src/Calls/Audio.d.ts +0 -17
- package/dist/src/Calls/Audio.js +0 -8
- package/dist/src/Calls/Call.d.ts +0 -59
- package/dist/src/Calls/Call.js +0 -25
- package/dist/src/Calls/Codecs.d.ts +0 -5
- package/dist/src/Calls/Codecs.js +0 -21
- package/dist/src/Calls/Extension.d.ts +0 -24
- package/dist/src/Calls/Extension.js +0 -2
- package/dist/src/Calls/Options.d.ts +0 -5
- package/dist/src/Calls/Options.js +0 -2
- package/dist/src/Calls/Queue.d.ts +0 -52
- package/dist/src/Calls/Queue.js +0 -12
- package/dist/src/Calls/RingGroup.d.ts +0 -46
- package/dist/src/Calls/RingGroup.js +0 -27
- package/dist/src/Calls/Transport.d.ts +0 -6
- package/dist/src/Calls/Transport.js +0 -11
- package/dist/src/Calls/Trunk.d.ts +0 -31
- package/dist/src/Calls/Trunk.js +0 -2
- package/dist/src/Calls/index.d.ts +0 -6
- package/dist/src/Calls/index.js +0 -22
- package/dist/src/Collections/Api.d.ts +0 -41
- package/dist/src/Collections/Api.js +0 -2
- package/dist/src/Collections/Commission.d.ts +0 -52
- package/dist/src/Collections/Commission.js +0 -10
- package/dist/src/Collections/Common.d.ts +0 -78
- package/dist/src/Collections/Common.js +0 -39
- package/dist/src/Collections/Dashboard.d.ts +0 -27
- package/dist/src/Collections/Dashboard.js +0 -2
- package/dist/src/Collections/Debt.d.ts +0 -97
- package/dist/src/Collections/Debt.js +0 -12
- package/dist/src/Collections/Interest.d.ts +0 -38
- package/dist/src/Collections/Interest.js +0 -25
- package/dist/src/Collections/Payment.d.ts +0 -87
- package/dist/src/Collections/Payment.js +0 -21
- package/dist/src/Collections/PaymentPlan.d.ts +0 -87
- package/dist/src/Collections/PaymentPlan.js +0 -21
- package/dist/src/Collections/PaymentPlanConfiguration.d.ts +0 -100
- package/dist/src/Collections/PaymentPlanConfiguration.js +0 -34
- package/dist/src/Collections/Portfolio.d.ts +0 -52
- package/dist/src/Collections/Portfolio.js +0 -12
- package/dist/src/Collections/Promise.d.ts +0 -49
- package/dist/src/Collections/Promise.js +0 -25
- package/dist/src/Collections/index.d.ts +0 -11
- package/dist/src/Collections/index.js +0 -27
- package/dist/src/Common/API/AuthApiKey.d.ts +0 -5
- package/dist/src/Common/API/AuthApiKey.js +0 -2
- package/dist/src/Common/API/AuthBasic.d.ts +0 -4
- package/dist/src/Common/API/AuthBasic.js +0 -2
- package/dist/src/Common/API/AuthBearer.d.ts +0 -5
- package/dist/src/Common/API/AuthBearer.js +0 -2
- package/dist/src/Common/API/AuthType.d.ts +0 -6
- package/dist/src/Common/API/AuthType.js +0 -10
- package/dist/src/Common/API/Method.d.ts +0 -4
- package/dist/src/Common/API/Method.js +0 -8
- package/dist/src/Common/API/index.d.ts +0 -5
- package/dist/src/Common/API/index.js +0 -21
- package/dist/src/Common/Channels/Channel.d.ts +0 -99
- package/dist/src/Common/Channels/Channel.js +0 -20
- package/dist/src/Common/Channels/ChannelAccount.d.ts +0 -35
- package/dist/src/Common/Channels/ChannelAccount.js +0 -17
- package/dist/src/Common/Channels/ChannelType.d.ts +0 -24
- package/dist/src/Common/Channels/ChannelType.js +0 -28
- package/dist/src/Common/Channels/Email.d.ts +0 -62
- package/dist/src/Common/Channels/Email.js +0 -36
- package/dist/src/Common/Channels/Facebook.d.ts +0 -25
- package/dist/src/Common/Channels/Facebook.js +0 -6
- package/dist/src/Common/Channels/Form.d.ts +0 -118
- package/dist/src/Common/Channels/Form.js +0 -32
- package/dist/src/Common/Channels/GoogleBusiness.d.ts +0 -20
- package/dist/src/Common/Channels/GoogleBusiness.js +0 -9
- package/dist/src/Common/Channels/Instagram.d.ts +0 -29
- package/dist/src/Common/Channels/Instagram.js +0 -14
- package/dist/src/Common/Channels/MercadoLibre.d.ts +0 -27
- package/dist/src/Common/Channels/MercadoLibre.js +0 -9
- package/dist/src/Common/Channels/Pbx.d.ts +0 -2
- package/dist/src/Common/Channels/Pbx.js +0 -6
- package/dist/src/Common/Channels/Permission.d.ts +0 -6
- package/dist/src/Common/Channels/Permission.js +0 -6
- package/dist/src/Common/Channels/RCS.d.ts +0 -37
- package/dist/src/Common/Channels/RCS.js +0 -9
- package/dist/src/Common/Channels/Sip.d.ts +0 -2
- package/dist/src/Common/Channels/Sip.js +0 -6
- package/dist/src/Common/Channels/Sms.d.ts +0 -46
- package/dist/src/Common/Channels/Sms.js +0 -16
- package/dist/src/Common/Channels/WebChat.d.ts +0 -62
- package/dist/src/Common/Channels/WebChat.js +0 -19
- package/dist/src/Common/Channels/WhatsApp.d.ts +0 -89
- package/dist/src/Common/Channels/WhatsApp.js +0 -18
- package/dist/src/Common/Channels/index.d.ts +0 -16
- package/dist/src/Common/Channels/index.js +0 -32
- package/dist/src/Common/EventsQueue/Data/postComment.d.ts +0 -26
- package/dist/src/Common/EventsQueue/Data/postComment.js +0 -2
- package/dist/src/Common/EventsQueue/EmailTemplate.d.ts +0 -10
- package/dist/src/Common/EventsQueue/EmailTemplate.js +0 -2
- package/dist/src/Common/EventsQueue/EventQueue.d.ts +0 -13
- package/dist/src/Common/EventsQueue/EventQueue.js +0 -2
- package/dist/src/Common/EventsQueue/UserUpdate.d.ts +0 -8
- package/dist/src/Common/EventsQueue/UserUpdate.js +0 -2
- package/dist/src/Common/EventsQueue/index.d.ts +0 -3
- package/dist/src/Common/EventsQueue/index.js +0 -19
- package/dist/src/Common/Logs/Log.d.ts +0 -18
- package/dist/src/Common/Logs/Log.js +0 -13
- package/dist/src/Common/Logs/index.d.ts +0 -1
- package/dist/src/Common/Logs/index.js +0 -17
- package/dist/src/Common/Messages/MediaFile.d.ts +0 -5
- package/dist/src/Common/Messages/MediaFile.js +0 -2
- package/dist/src/Common/Messages/Message.d.ts +0 -423
- package/dist/src/Common/Messages/Message.js +0 -62
- package/dist/src/Common/Messages/Template.d.ts +0 -86
- package/dist/src/Common/Messages/Template.js +0 -26
- package/dist/src/Common/Messages/index.d.ts +0 -3
- package/dist/src/Common/Messages/index.js +0 -19
- package/dist/src/Common/Notifications/Notification.d.ts +0 -19
- package/dist/src/Common/Notifications/Notification.js +0 -10
- package/dist/src/Common/Notifications/UserNotificationsConfig.d.ts +0 -33
- package/dist/src/Common/Notifications/UserNotificationsConfig.js +0 -18
- package/dist/src/Common/Notifications/index.d.ts +0 -2
- package/dist/src/Common/Notifications/index.js +0 -18
- package/dist/src/Common/Schedules/Schedules.d.ts +0 -32
- package/dist/src/Common/Schedules/Schedules.js +0 -2
- package/dist/src/Common/Schedules/index.d.ts +0 -1
- package/dist/src/Common/Schedules/index.js +0 -17
- package/dist/src/Common/index.d.ts +0 -6
- package/dist/src/Common/index.js +0 -42
- package/dist/src/Contacts/DuplicateContact.d.ts +0 -11
- package/dist/src/Contacts/DuplicateContact.js +0 -2
- package/dist/src/Contacts/File.d.ts +0 -17
- package/dist/src/Contacts/File.js +0 -2
- package/dist/src/Contacts/Import.d.ts +0 -18
- package/dist/src/Contacts/Import.js +0 -2
- package/dist/src/Contacts/Label.d.ts +0 -9
- package/dist/src/Contacts/Label.js +0 -2
- package/dist/src/Contacts/Note.d.ts +0 -15
- package/dist/src/Contacts/Note.js +0 -2
- package/dist/src/Contacts/Relationship.d.ts +0 -28
- package/dist/src/Contacts/Relationship.js +0 -16
- package/dist/src/Contacts/contacts.d.ts +0 -269
- package/dist/src/Contacts/contacts.js +0 -54
- package/dist/src/Contacts/index.d.ts +0 -9
- package/dist/src/Contacts/index.js +0 -25
- package/dist/src/Contacts/options.d.ts +0 -5
- package/dist/src/Contacts/options.js +0 -2
- package/dist/src/Contacts/segments.d.ts +0 -52
- package/dist/src/Contacts/segments.js +0 -53
- package/dist/src/Conversations/Conversation.d.ts +0 -167
- package/dist/src/Conversations/Conversation.js +0 -56
- package/dist/src/Conversations/DashBoard/dashboard.d.ts +0 -115
- package/dist/src/Conversations/DashBoard/dashboard.js +0 -65
- package/dist/src/Conversations/DashBoard/dashboardChannels.d.ts +0 -5
- package/dist/src/Conversations/DashBoard/dashboardChannels.js +0 -6
- package/dist/src/Conversations/DashBoard/dashboardForms.d.ts +0 -44
- package/dist/src/Conversations/DashBoard/dashboardForms.js +0 -24
- package/dist/src/Conversations/DashBoard/dashboardMessages.d.ts +0 -13
- package/dist/src/Conversations/DashBoard/dashboardMessages.js +0 -9
- package/dist/src/Conversations/Ending.d.ts +0 -17
- package/dist/src/Conversations/Ending.js +0 -2
- package/dist/src/Conversations/Flows/Definitions.d.ts +0 -10
- package/dist/src/Conversations/Flows/Definitions.js +0 -2
- package/dist/src/Conversations/Flows/Flow.d.ts +0 -222
- package/dist/src/Conversations/Flows/Flow.js +0 -50
- package/dist/src/Conversations/Flows/FlowInfo.d.ts +0 -9
- package/dist/src/Conversations/Flows/FlowInfo.js +0 -2
- package/dist/src/Conversations/Flows/Workflows/Workflow.d.ts +0 -179
- package/dist/src/Conversations/Flows/Workflows/Workflow.js +0 -48
- package/dist/src/Conversations/Flows/Workflows/index.d.ts +0 -1
- package/dist/src/Conversations/Flows/Workflows/index.js +0 -17
- package/dist/src/Conversations/Flows/index.d.ts +0 -4
- package/dist/src/Conversations/Flows/index.js +0 -20
- package/dist/src/Conversations/Groups/Group.d.ts +0 -23
- package/dist/src/Conversations/Groups/Group.js +0 -8
- package/dist/src/Conversations/Label.d.ts +0 -10
- package/dist/src/Conversations/Label.js +0 -2
- package/dist/src/Conversations/QuickResponse.d.ts +0 -34
- package/dist/src/Conversations/QuickResponse.js +0 -2
- package/dist/src/Conversations/SocialWalls.d.ts +0 -72
- package/dist/src/Conversations/SocialWalls.js +0 -2
- package/dist/src/Conversations/Survey.d.ts +0 -19
- package/dist/src/Conversations/Survey.js +0 -9
- package/dist/src/Conversations/WebHook.d.ts +0 -22
- package/dist/src/Conversations/WebHook.js +0 -2
- package/dist/src/Conversations/index.d.ts +0 -13
- package/dist/src/Conversations/index.js +0 -52
- package/dist/src/Docs/Document.d.ts +0 -58
- package/dist/src/Docs/Document.js +0 -29
- package/dist/src/Docs/Store.d.ts +0 -37
- package/dist/src/Docs/Store.js +0 -17
- package/dist/src/Docs/index.d.ts +0 -2
- package/dist/src/Docs/index.js +0 -18
- package/dist/src/Marketing/Campaign.d.ts +0 -69
- package/dist/src/Marketing/Campaign.js +0 -30
- package/dist/src/Marketing/Dashboard.d.ts +0 -48
- package/dist/src/Marketing/Dashboard.js +0 -2
- package/dist/src/Marketing/Options.d.ts +0 -12
- package/dist/src/Marketing/Options.js +0 -9
- package/dist/src/Marketing/Template.d.ts +0 -19
- package/dist/src/Marketing/Template.js +0 -8
- package/dist/src/Marketing/index.d.ts +0 -4
- package/dist/src/Marketing/index.js +0 -20
- package/dist/src/PublicAPI/apiKey.d.ts +0 -12
- package/dist/src/PublicAPI/apiKey.js +0 -2
- package/dist/src/Reports/ScheduledReport.d.ts +0 -205
- package/dist/src/Reports/ScheduledReport.js +0 -57
- package/dist/src/Reports/aiReport.d.ts +0 -20
- package/dist/src/Reports/aiReport.js +0 -2
- package/dist/src/Reports/apiResult.d.ts +0 -5
- package/dist/src/Reports/apiResult.js +0 -2
- package/dist/src/Reports/index.d.ts +0 -3
- package/dist/src/Reports/index.js +0 -19
- package/dist/src/Sales/Api.d.ts +0 -40
- package/dist/src/Sales/Api.js +0 -2
- package/dist/src/Sales/Common.d.ts +0 -72
- package/dist/src/Sales/Common.js +0 -31
- package/dist/src/Sales/Dashboard.d.ts +0 -25
- package/dist/src/Sales/Dashboard.js +0 -2
- package/dist/src/Sales/Lead.d.ts +0 -99
- package/dist/src/Sales/Lead.js +0 -8
- package/dist/src/Sales/index.d.ts +0 -4
- package/dist/src/Sales/index.js +0 -20
- package/dist/src/Security/Security.d.ts +0 -5
- package/dist/src/Security/Security.js +0 -2
- package/dist/src/Security/index.d.ts +0 -1
- package/dist/src/Security/index.js +0 -17
- package/dist/src/Shop/Cart/cart.d.ts +0 -19
- package/dist/src/Shop/Cart/cart.js +0 -2
- package/dist/src/Shop/index.d.ts +0 -1
- package/dist/src/Shop/index.js +0 -17
- package/dist/src/Spaces/Dashboard.d.ts +0 -4
- package/dist/src/Spaces/Dashboard.js +0 -2
- package/dist/src/Spaces/index.d.ts +0 -2
- package/dist/src/Spaces/index.js +0 -18
- package/dist/src/Spaces/spaces.d.ts +0 -104
- package/dist/src/Spaces/spaces.js +0 -85
- package/dist/src/Tickets/AI.d.ts +0 -400
- package/dist/src/Tickets/AI.js +0 -113
- package/dist/src/Tickets/AdvancedApi.d.ts +0 -486
- package/dist/src/Tickets/AdvancedApi.js +0 -108
- package/dist/src/Tickets/Api.d.ts +0 -62
- package/dist/src/Tickets/Api.js +0 -8
- package/dist/src/Tickets/Approval.d.ts +0 -139
- package/dist/src/Tickets/Approval.js +0 -30
- package/dist/src/Tickets/Automation.d.ts +0 -237
- package/dist/src/Tickets/Automation.js +0 -74
- package/dist/src/Tickets/Category.d.ts +0 -53
- package/dist/src/Tickets/Category.js +0 -2
- package/dist/src/Tickets/Common.d.ts +0 -90
- package/dist/src/Tickets/Common.js +0 -38
- package/dist/src/Tickets/Conversation.d.ts +0 -68
- package/dist/src/Tickets/Conversation.js +0 -30
- package/dist/src/Tickets/Dashboard.d.ts +0 -408
- package/dist/src/Tickets/Dashboard.js +0 -206
- package/dist/src/Tickets/Fields.d.ts +0 -133
- package/dist/src/Tickets/Fields.js +0 -44
- package/dist/src/Tickets/Layouts.d.ts +0 -63
- package/dist/src/Tickets/Layouts.js +0 -22
- package/dist/src/Tickets/Routing.d.ts +0 -290
- package/dist/src/Tickets/Routing.js +0 -87
- package/dist/src/Tickets/Satisfaction.d.ts +0 -31
- package/dist/src/Tickets/Satisfaction.js +0 -9
- package/dist/src/Tickets/Security.d.ts +0 -302
- package/dist/src/Tickets/Security.js +0 -107
- package/dist/src/Tickets/SelfService.d.ts +0 -255
- package/dist/src/Tickets/SelfService.js +0 -56
- package/dist/src/Tickets/Sla.d.ts +0 -253
- package/dist/src/Tickets/Sla.js +0 -73
- package/dist/src/Tickets/Task.d.ts +0 -122
- package/dist/src/Tickets/Task.js +0 -17
- package/dist/src/Tickets/Ticket.d.ts +0 -133
- package/dist/src/Tickets/Ticket.js +0 -2
- package/dist/src/Tickets/Views.d.ts +0 -77
- package/dist/src/Tickets/Views.js +0 -23
- package/dist/src/Tickets/Workflow.d.ts +0 -109
- package/dist/src/Tickets/Workflow.js +0 -44
- package/dist/src/Tickets/index.d.ts +0 -20
- package/dist/src/Tickets/index.js +0 -36
- package/dist/src/Users/Signature.d.ts +0 -74
- package/dist/src/Users/Signature.js +0 -2
- package/dist/src/Users/UserActivitySummary.d.ts +0 -5
- package/dist/src/Users/UserActivitySummary.js +0 -2
- package/dist/src/Users/UserProfile.d.ts +0 -97
- package/dist/src/Users/UserProfile.js +0 -5
- package/dist/src/Users/UserTrii.d.ts +0 -102
- package/dist/src/Users/UserTrii.js +0 -10
- package/dist/src/Users/UserType.d.ts +0 -10
- package/dist/src/Users/UserType.js +0 -13
- package/dist/src/Users/index.d.ts +0 -5
- package/dist/src/Users/index.js +0 -21
- package/dist/src/index.d.ts +0 -20
- package/dist/src/index.js +0 -56
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TicketWebhookAuthType = exports.TicketSubscriptionEvent = exports.TicketExportFormat = exports.TicketJobStatus = exports.TicketBulkOperationType = exports.TicketMacroActionType = exports.TicketFollowerRole = exports.TicketRelationType = exports.TicketApiErrorCode = exports.TicketExpand = void 0;
|
|
4
|
-
var TicketExpand;
|
|
5
|
-
(function (TicketExpand) {
|
|
6
|
-
TicketExpand["CONTACT"] = "CONTACT";
|
|
7
|
-
TicketExpand["TAGS"] = "TAGS";
|
|
8
|
-
TicketExpand["ATTACHMENTS"] = "ATTACHMENTS";
|
|
9
|
-
TicketExpand["CONVERSATIONS"] = "CONVERSATIONS";
|
|
10
|
-
TicketExpand["SLA"] = "SLA";
|
|
11
|
-
TicketExpand["ROUTING"] = "ROUTING";
|
|
12
|
-
TicketExpand["APPROVAL_SUMMARY"] = "APPROVAL_SUMMARY";
|
|
13
|
-
TicketExpand["TASK_SUMMARY"] = "TASK_SUMMARY";
|
|
14
|
-
TicketExpand["SECURITY"] = "SECURITY";
|
|
15
|
-
})(TicketExpand || (exports.TicketExpand = TicketExpand = {}));
|
|
16
|
-
var TicketApiErrorCode;
|
|
17
|
-
(function (TicketApiErrorCode) {
|
|
18
|
-
TicketApiErrorCode["VALIDATION_ERROR"] = "VALIDATION_ERROR";
|
|
19
|
-
TicketApiErrorCode["NOT_FOUND"] = "NOT_FOUND";
|
|
20
|
-
TicketApiErrorCode["FORBIDDEN"] = "FORBIDDEN";
|
|
21
|
-
TicketApiErrorCode["VERSION_CONFLICT"] = "VERSION_CONFLICT";
|
|
22
|
-
TicketApiErrorCode["INVALID_TRANSITION"] = "INVALID_TRANSITION";
|
|
23
|
-
TicketApiErrorCode["IDEMPOTENCY_CONFLICT"] = "IDEMPOTENCY_CONFLICT";
|
|
24
|
-
TicketApiErrorCode["RATE_LIMITED"] = "RATE_LIMITED";
|
|
25
|
-
TicketApiErrorCode["FILE_REJECTED"] = "FILE_REJECTED";
|
|
26
|
-
TicketApiErrorCode["SLA_CONFIGURATION_ERROR"] = "SLA_CONFIGURATION_ERROR";
|
|
27
|
-
TicketApiErrorCode["BULK_PARTIAL_FAILURE"] = "BULK_PARTIAL_FAILURE";
|
|
28
|
-
})(TicketApiErrorCode || (exports.TicketApiErrorCode = TicketApiErrorCode = {}));
|
|
29
|
-
var TicketRelationType;
|
|
30
|
-
(function (TicketRelationType) {
|
|
31
|
-
TicketRelationType["PARENT"] = "PARENT";
|
|
32
|
-
TicketRelationType["CHILD"] = "CHILD";
|
|
33
|
-
TicketRelationType["DUPLICATES"] = "DUPLICATES";
|
|
34
|
-
TicketRelationType["DUPLICATED_BY"] = "DUPLICATED_BY";
|
|
35
|
-
TicketRelationType["BLOCKS"] = "BLOCKS";
|
|
36
|
-
TicketRelationType["BLOCKED_BY"] = "BLOCKED_BY";
|
|
37
|
-
TicketRelationType["RELATED"] = "RELATED";
|
|
38
|
-
TicketRelationType["INCIDENT_OF"] = "INCIDENT_OF";
|
|
39
|
-
TicketRelationType["HAS_INCIDENT"] = "HAS_INCIDENT";
|
|
40
|
-
TicketRelationType["PROBLEM_OF"] = "PROBLEM_OF";
|
|
41
|
-
})(TicketRelationType || (exports.TicketRelationType = TicketRelationType = {}));
|
|
42
|
-
var TicketFollowerRole;
|
|
43
|
-
(function (TicketFollowerRole) {
|
|
44
|
-
TicketFollowerRole["FOLLOWER"] = "FOLLOWER";
|
|
45
|
-
TicketFollowerRole["COLLABORATOR"] = "COLLABORATOR";
|
|
46
|
-
TicketFollowerRole["REQUEST_CC"] = "REQUEST_CC";
|
|
47
|
-
})(TicketFollowerRole || (exports.TicketFollowerRole = TicketFollowerRole = {}));
|
|
48
|
-
var TicketMacroActionType;
|
|
49
|
-
(function (TicketMacroActionType) {
|
|
50
|
-
TicketMacroActionType["SET_FIELD"] = "SET_FIELD";
|
|
51
|
-
TicketMacroActionType["SET_PRIORITY"] = "SET_PRIORITY";
|
|
52
|
-
TicketMacroActionType["ASSIGN"] = "ASSIGN";
|
|
53
|
-
TicketMacroActionType["TRANSITION"] = "TRANSITION";
|
|
54
|
-
TicketMacroActionType["ADD_TAG"] = "ADD_TAG";
|
|
55
|
-
TicketMacroActionType["REMOVE_TAG"] = "REMOVE_TAG";
|
|
56
|
-
TicketMacroActionType["ADD_INTERNAL_NOTE"] = "ADD_INTERNAL_NOTE";
|
|
57
|
-
TicketMacroActionType["SEND_PUBLIC_REPLY"] = "SEND_PUBLIC_REPLY";
|
|
58
|
-
TicketMacroActionType["START_APPROVAL"] = "START_APPROVAL";
|
|
59
|
-
TicketMacroActionType["APPLY_TASK_TEMPLATE"] = "APPLY_TASK_TEMPLATE";
|
|
60
|
-
TicketMacroActionType["ENQUEUE"] = "ENQUEUE";
|
|
61
|
-
})(TicketMacroActionType || (exports.TicketMacroActionType = TicketMacroActionType = {}));
|
|
62
|
-
var TicketBulkOperationType;
|
|
63
|
-
(function (TicketBulkOperationType) {
|
|
64
|
-
TicketBulkOperationType["UPDATE"] = "UPDATE";
|
|
65
|
-
TicketBulkOperationType["ASSIGN"] = "ASSIGN";
|
|
66
|
-
TicketBulkOperationType["TRANSITION"] = "TRANSITION";
|
|
67
|
-
TicketBulkOperationType["ADD_TAG"] = "ADD_TAG";
|
|
68
|
-
TicketBulkOperationType["REMOVE_TAG"] = "REMOVE_TAG";
|
|
69
|
-
TicketBulkOperationType["APPLY_MACRO"] = "APPLY_MACRO";
|
|
70
|
-
TicketBulkOperationType["DELETE"] = "DELETE";
|
|
71
|
-
})(TicketBulkOperationType || (exports.TicketBulkOperationType = TicketBulkOperationType = {}));
|
|
72
|
-
var TicketJobStatus;
|
|
73
|
-
(function (TicketJobStatus) {
|
|
74
|
-
TicketJobStatus["PENDING"] = "PENDING";
|
|
75
|
-
TicketJobStatus["PROCESSING"] = "PROCESSING";
|
|
76
|
-
TicketJobStatus["COMPLETED"] = "COMPLETED";
|
|
77
|
-
TicketJobStatus["PARTIALLY_COMPLETED"] = "PARTIALLY_COMPLETED";
|
|
78
|
-
TicketJobStatus["FAILED"] = "FAILED";
|
|
79
|
-
TicketJobStatus["CANCELLED"] = "CANCELLED";
|
|
80
|
-
TicketJobStatus["EXPIRED"] = "EXPIRED";
|
|
81
|
-
})(TicketJobStatus || (exports.TicketJobStatus = TicketJobStatus = {}));
|
|
82
|
-
var TicketExportFormat;
|
|
83
|
-
(function (TicketExportFormat) {
|
|
84
|
-
TicketExportFormat["XLSX"] = "XLSX";
|
|
85
|
-
TicketExportFormat["CSV"] = "CSV";
|
|
86
|
-
TicketExportFormat["JSONL"] = "JSONL";
|
|
87
|
-
})(TicketExportFormat || (exports.TicketExportFormat = TicketExportFormat = {}));
|
|
88
|
-
var TicketSubscriptionEvent;
|
|
89
|
-
(function (TicketSubscriptionEvent) {
|
|
90
|
-
TicketSubscriptionEvent["CREATED"] = "CREATED";
|
|
91
|
-
TicketSubscriptionEvent["UPDATED"] = "UPDATED";
|
|
92
|
-
TicketSubscriptionEvent["ASSIGNED"] = "ASSIGNED";
|
|
93
|
-
TicketSubscriptionEvent["STATUS_CHANGED"] = "STATUS_CHANGED";
|
|
94
|
-
TicketSubscriptionEvent["MESSAGE_CREATED"] = "MESSAGE_CREATED";
|
|
95
|
-
TicketSubscriptionEvent["SLA_WARNING"] = "SLA_WARNING";
|
|
96
|
-
TicketSubscriptionEvent["SLA_BREACHED"] = "SLA_BREACHED";
|
|
97
|
-
TicketSubscriptionEvent["RESOLVED"] = "RESOLVED";
|
|
98
|
-
TicketSubscriptionEvent["REOPENED"] = "REOPENED";
|
|
99
|
-
TicketSubscriptionEvent["DELETED"] = "DELETED";
|
|
100
|
-
})(TicketSubscriptionEvent || (exports.TicketSubscriptionEvent = TicketSubscriptionEvent = {}));
|
|
101
|
-
var TicketWebhookAuthType;
|
|
102
|
-
(function (TicketWebhookAuthType) {
|
|
103
|
-
TicketWebhookAuthType["NONE"] = "NONE";
|
|
104
|
-
TicketWebhookAuthType["BASIC"] = "BASIC";
|
|
105
|
-
TicketWebhookAuthType["BEARER"] = "BEARER";
|
|
106
|
-
TicketWebhookAuthType["API_KEY"] = "API_KEY";
|
|
107
|
-
TicketWebhookAuthType["HMAC"] = "HMAC";
|
|
108
|
-
})(TicketWebhookAuthType || (exports.TicketWebhookAuthType = TicketWebhookAuthType = {}));
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { ITicket } from "./Ticket";
|
|
2
|
-
import { TicketOrigin, TicketPriority, TicketPropertyValue, TicketStage } from "./Common";
|
|
3
|
-
export interface ITicketCursorRequest {
|
|
4
|
-
cursor?: string;
|
|
5
|
-
limit?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface ITicketCursorResponse<T> {
|
|
8
|
-
items: T[];
|
|
9
|
-
nextCursor?: string;
|
|
10
|
-
hasMore: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare enum TicketSortDirection {
|
|
13
|
-
ASC = "ASC",
|
|
14
|
-
DESC = "DESC"
|
|
15
|
-
}
|
|
16
|
-
export interface ITicketSort {
|
|
17
|
-
fieldNameKey: string;
|
|
18
|
-
direction: TicketSortDirection;
|
|
19
|
-
}
|
|
20
|
-
export interface ITicketFieldFilter {
|
|
21
|
-
fieldNameKey: string;
|
|
22
|
-
operator: string;
|
|
23
|
-
value?: TicketPropertyValue;
|
|
24
|
-
}
|
|
25
|
-
export interface ITicketFilter {
|
|
26
|
-
search?: string;
|
|
27
|
-
stages?: TicketStage[];
|
|
28
|
-
statusIds?: string[];
|
|
29
|
-
priorities?: TicketPriority[];
|
|
30
|
-
origins?: TicketOrigin[];
|
|
31
|
-
contactIds?: string[];
|
|
32
|
-
assigneeIds?: string[];
|
|
33
|
-
assignedGroupIds?: string[];
|
|
34
|
-
categoryIds?: string[];
|
|
35
|
-
tagIds?: string[];
|
|
36
|
-
createdFrom?: Date;
|
|
37
|
-
createdTo?: Date;
|
|
38
|
-
dueFrom?: Date;
|
|
39
|
-
dueTo?: Date;
|
|
40
|
-
includeDeleted?: boolean;
|
|
41
|
-
fields?: ITicketFieldFilter[];
|
|
42
|
-
}
|
|
43
|
-
export interface ITicketQuery extends ITicketCursorRequest {
|
|
44
|
-
filter?: ITicketFilter;
|
|
45
|
-
sort?: ITicketSort[];
|
|
46
|
-
}
|
|
47
|
-
export interface ITransitionTicketDto {
|
|
48
|
-
expectedVersion: number;
|
|
49
|
-
toStatusId: string;
|
|
50
|
-
comment?: string;
|
|
51
|
-
properties?: {
|
|
52
|
-
nameKey: string;
|
|
53
|
-
value: TicketPropertyValue;
|
|
54
|
-
}[];
|
|
55
|
-
formSubmissionIds?: string[];
|
|
56
|
-
}
|
|
57
|
-
export interface IAssignTicketDto {
|
|
58
|
-
expectedVersion: number;
|
|
59
|
-
assigneeId?: string;
|
|
60
|
-
assignedGroupId?: string;
|
|
61
|
-
}
|
|
62
|
-
export type TicketPage = ITicketCursorResponse<ITicket>;
|
package/dist/src/Tickets/Api.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TicketSortDirection = void 0;
|
|
4
|
-
var TicketSortDirection;
|
|
5
|
-
(function (TicketSortDirection) {
|
|
6
|
-
TicketSortDirection["ASC"] = "ASC";
|
|
7
|
-
TicketSortDirection["DESC"] = "DESC";
|
|
8
|
-
})(TicketSortDirection || (exports.TicketSortDirection = TicketSortDirection = {}));
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { ITicketAuditedEntity } from './Common';
|
|
2
|
-
export declare enum TicketApprovalMode {
|
|
3
|
-
SEQUENTIAL = "SEQUENTIAL",
|
|
4
|
-
PARALLEL = "PARALLEL"
|
|
5
|
-
}
|
|
6
|
-
export declare enum TicketApprovalStatus {
|
|
7
|
-
PENDING = "PENDING",
|
|
8
|
-
IN_PROGRESS = "IN_PROGRESS",
|
|
9
|
-
APPROVED = "APPROVED",
|
|
10
|
-
REJECTED = "REJECTED",
|
|
11
|
-
CANCELLED = "CANCELLED",
|
|
12
|
-
EXPIRED = "EXPIRED"
|
|
13
|
-
}
|
|
14
|
-
export declare enum TicketApprovalDecisionType {
|
|
15
|
-
APPROVE = "APPROVE",
|
|
16
|
-
REJECT = "REJECT",
|
|
17
|
-
ABSTAIN = "ABSTAIN"
|
|
18
|
-
}
|
|
19
|
-
export declare enum TicketApprovalQuorumType {
|
|
20
|
-
ALL = "ALL",
|
|
21
|
-
ANY = "ANY",
|
|
22
|
-
COUNT = "COUNT",
|
|
23
|
-
PERCENTAGE = "PERCENTAGE"
|
|
24
|
-
}
|
|
25
|
-
export interface ITicketApprovalQuorum {
|
|
26
|
-
type: TicketApprovalQuorumType;
|
|
27
|
-
requiredCount?: number;
|
|
28
|
-
requiredPercentage?: number;
|
|
29
|
-
rejectOnAnyRejection?: boolean;
|
|
30
|
-
}
|
|
31
|
-
export type ITicketApprover = {
|
|
32
|
-
type: 'USER';
|
|
33
|
-
userId: string;
|
|
34
|
-
} | {
|
|
35
|
-
type: 'GROUP';
|
|
36
|
-
groupId: string;
|
|
37
|
-
} | {
|
|
38
|
-
type: 'ROLE';
|
|
39
|
-
roleId: string;
|
|
40
|
-
};
|
|
41
|
-
export interface ITicketApprovalStepDefinition {
|
|
42
|
-
id: string;
|
|
43
|
-
name: string;
|
|
44
|
-
order: number;
|
|
45
|
-
approvers: ITicketApprover[];
|
|
46
|
-
quorum: ITicketApprovalQuorum;
|
|
47
|
-
expiresAfterMinutes?: number;
|
|
48
|
-
allowDelegation: boolean;
|
|
49
|
-
escalationPolicyId?: string;
|
|
50
|
-
}
|
|
51
|
-
export interface ITicketApprovalProcessDefinition extends ITicketAuditedEntity {
|
|
52
|
-
name: string;
|
|
53
|
-
description?: string;
|
|
54
|
-
categoryIds?: string[];
|
|
55
|
-
mode: TicketApprovalMode;
|
|
56
|
-
steps: ITicketApprovalStepDefinition[];
|
|
57
|
-
enabled: boolean;
|
|
58
|
-
}
|
|
59
|
-
export interface ITicketApprovalStep extends ITicketApprovalStepDefinition {
|
|
60
|
-
status: TicketApprovalStatus;
|
|
61
|
-
startedAt?: Date;
|
|
62
|
-
expiresAt?: Date;
|
|
63
|
-
completedAt?: Date;
|
|
64
|
-
}
|
|
65
|
-
export interface ITicketApprovalProcess {
|
|
66
|
-
id: string;
|
|
67
|
-
spaceId: string;
|
|
68
|
-
ticketId: string;
|
|
69
|
-
definitionId?: string;
|
|
70
|
-
definitionVersion?: number;
|
|
71
|
-
name: string;
|
|
72
|
-
mode: TicketApprovalMode;
|
|
73
|
-
status: TicketApprovalStatus;
|
|
74
|
-
steps: ITicketApprovalStep[];
|
|
75
|
-
currentStepId?: string;
|
|
76
|
-
requestedAt: Date;
|
|
77
|
-
requestedBy: string;
|
|
78
|
-
completedAt?: Date;
|
|
79
|
-
cancelledAt?: Date;
|
|
80
|
-
}
|
|
81
|
-
export interface ITicketApprovalDecision {
|
|
82
|
-
id: string;
|
|
83
|
-
spaceId: string;
|
|
84
|
-
ticketId: string;
|
|
85
|
-
processId: string;
|
|
86
|
-
stepId: string;
|
|
87
|
-
approverId: string;
|
|
88
|
-
decision: TicketApprovalDecisionType;
|
|
89
|
-
comment?: string;
|
|
90
|
-
attachmentIds?: string[];
|
|
91
|
-
decidedAt: Date;
|
|
92
|
-
delegatedFromUserId?: string;
|
|
93
|
-
}
|
|
94
|
-
export interface ITicketApprovalDelegation {
|
|
95
|
-
id: string;
|
|
96
|
-
spaceId: string;
|
|
97
|
-
ticketId: string;
|
|
98
|
-
processId: string;
|
|
99
|
-
stepId: string;
|
|
100
|
-
fromUserId: string;
|
|
101
|
-
toUserId: string;
|
|
102
|
-
reason?: string;
|
|
103
|
-
delegatedAt: Date;
|
|
104
|
-
expiresAt?: Date;
|
|
105
|
-
revokedAt?: Date;
|
|
106
|
-
}
|
|
107
|
-
export interface ITicketApprovalSummary {
|
|
108
|
-
pending: number;
|
|
109
|
-
approved: number;
|
|
110
|
-
rejected: number;
|
|
111
|
-
expired: number;
|
|
112
|
-
currentProcessId?: string;
|
|
113
|
-
}
|
|
114
|
-
export interface IStartTicketApprovalDto {
|
|
115
|
-
expectedVersion: number;
|
|
116
|
-
definitionId: string;
|
|
117
|
-
comment?: string;
|
|
118
|
-
}
|
|
119
|
-
export interface IDecideTicketApprovalDto {
|
|
120
|
-
expectedVersion: number;
|
|
121
|
-
processId: string;
|
|
122
|
-
stepId: string;
|
|
123
|
-
decision: TicketApprovalDecisionType;
|
|
124
|
-
comment?: string;
|
|
125
|
-
attachmentIds?: string[];
|
|
126
|
-
}
|
|
127
|
-
export interface IDelegateTicketApprovalDto {
|
|
128
|
-
expectedVersion: number;
|
|
129
|
-
processId: string;
|
|
130
|
-
stepId: string;
|
|
131
|
-
toUserId: string;
|
|
132
|
-
reason?: string;
|
|
133
|
-
expiresAt?: Date;
|
|
134
|
-
}
|
|
135
|
-
export interface ICancelTicketApprovalDto {
|
|
136
|
-
expectedVersion: number;
|
|
137
|
-
processId: string;
|
|
138
|
-
reason: string;
|
|
139
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TicketApprovalQuorumType = exports.TicketApprovalDecisionType = exports.TicketApprovalStatus = exports.TicketApprovalMode = void 0;
|
|
4
|
-
var TicketApprovalMode;
|
|
5
|
-
(function (TicketApprovalMode) {
|
|
6
|
-
TicketApprovalMode["SEQUENTIAL"] = "SEQUENTIAL";
|
|
7
|
-
TicketApprovalMode["PARALLEL"] = "PARALLEL";
|
|
8
|
-
})(TicketApprovalMode || (exports.TicketApprovalMode = TicketApprovalMode = {}));
|
|
9
|
-
var TicketApprovalStatus;
|
|
10
|
-
(function (TicketApprovalStatus) {
|
|
11
|
-
TicketApprovalStatus["PENDING"] = "PENDING";
|
|
12
|
-
TicketApprovalStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
13
|
-
TicketApprovalStatus["APPROVED"] = "APPROVED";
|
|
14
|
-
TicketApprovalStatus["REJECTED"] = "REJECTED";
|
|
15
|
-
TicketApprovalStatus["CANCELLED"] = "CANCELLED";
|
|
16
|
-
TicketApprovalStatus["EXPIRED"] = "EXPIRED";
|
|
17
|
-
})(TicketApprovalStatus || (exports.TicketApprovalStatus = TicketApprovalStatus = {}));
|
|
18
|
-
var TicketApprovalDecisionType;
|
|
19
|
-
(function (TicketApprovalDecisionType) {
|
|
20
|
-
TicketApprovalDecisionType["APPROVE"] = "APPROVE";
|
|
21
|
-
TicketApprovalDecisionType["REJECT"] = "REJECT";
|
|
22
|
-
TicketApprovalDecisionType["ABSTAIN"] = "ABSTAIN";
|
|
23
|
-
})(TicketApprovalDecisionType || (exports.TicketApprovalDecisionType = TicketApprovalDecisionType = {}));
|
|
24
|
-
var TicketApprovalQuorumType;
|
|
25
|
-
(function (TicketApprovalQuorumType) {
|
|
26
|
-
TicketApprovalQuorumType["ALL"] = "ALL";
|
|
27
|
-
TicketApprovalQuorumType["ANY"] = "ANY";
|
|
28
|
-
TicketApprovalQuorumType["COUNT"] = "COUNT";
|
|
29
|
-
TicketApprovalQuorumType["PERCENTAGE"] = "PERCENTAGE";
|
|
30
|
-
})(TicketApprovalQuorumType || (exports.TicketApprovalQuorumType = TicketApprovalQuorumType = {}));
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { TicketPropertyValue } from "./Common";
|
|
2
|
-
import { TicketSecurityOperation } from "./Security";
|
|
3
|
-
/** Events published by Tickets that may start or resume a Flow execution. */
|
|
4
|
-
export declare enum TicketAutomationTrigger {
|
|
5
|
-
TICKET_CREATED = "TICKET_CREATED",
|
|
6
|
-
TICKET_UPDATED = "TICKET_UPDATED",
|
|
7
|
-
STATUS_CHANGED = "STATUS_CHANGED",
|
|
8
|
-
PRIORITY_CHANGED = "PRIORITY_CHANGED",
|
|
9
|
-
ASSIGNMENT_CHANGED = "ASSIGNMENT_CHANGED",
|
|
10
|
-
CATEGORY_CHANGED = "CATEGORY_CHANGED",
|
|
11
|
-
PUBLIC_MESSAGE_RECEIVED = "PUBLIC_MESSAGE_RECEIVED",
|
|
12
|
-
PUBLIC_REPLY_SENT = "PUBLIC_REPLY_SENT",
|
|
13
|
-
INTERNAL_NOTE_ADDED = "INTERNAL_NOTE_ADDED",
|
|
14
|
-
SLA_WARNING = "SLA_WARNING",
|
|
15
|
-
SLA_BREACHED = "SLA_BREACHED",
|
|
16
|
-
TICKET_OVERDUE = "TICKET_OVERDUE",
|
|
17
|
-
APPROVAL_REQUESTED = "APPROVAL_REQUESTED",
|
|
18
|
-
APPROVAL_COMPLETED = "APPROVAL_COMPLETED",
|
|
19
|
-
APPROVAL_REJECTED = "APPROVAL_REJECTED",
|
|
20
|
-
TASK_CREATED = "TASK_CREATED",
|
|
21
|
-
TASK_COMPLETED = "TASK_COMPLETED",
|
|
22
|
-
TASK_OVERDUE = "TASK_OVERDUE",
|
|
23
|
-
SATISFACTION_RECEIVED = "SATISFACTION_RECEIVED",
|
|
24
|
-
TICKET_REOPENED = "TICKET_REOPENED",
|
|
25
|
-
TICKET_RESOLVED = "TICKET_RESOLVED",
|
|
26
|
-
SCHEDULED = "SCHEDULED",
|
|
27
|
-
MANUAL = "MANUAL"
|
|
28
|
-
}
|
|
29
|
-
/** Safe commands exposed by Tickets as Flow action nodes; every command uses normal domain validation. */
|
|
30
|
-
export declare enum TicketAutomationAction {
|
|
31
|
-
UPDATE_FIELDS = "UPDATE_FIELDS",
|
|
32
|
-
CHANGE_STATUS = "CHANGE_STATUS",
|
|
33
|
-
SET_PRIORITY = "SET_PRIORITY",
|
|
34
|
-
ASSIGN_AGENT = "ASSIGN_AGENT",
|
|
35
|
-
ASSIGN_GROUP = "ASSIGN_GROUP",
|
|
36
|
-
ENQUEUE = "ENQUEUE",
|
|
37
|
-
ADD_TAG = "ADD_TAG",
|
|
38
|
-
REMOVE_TAG = "REMOVE_TAG",
|
|
39
|
-
ADD_INTERNAL_NOTE = "ADD_INTERNAL_NOTE",
|
|
40
|
-
SEND_PUBLIC_REPLY = "SEND_PUBLIC_REPLY",
|
|
41
|
-
SEND_NOTIFICATION = "SEND_NOTIFICATION",
|
|
42
|
-
START_APPROVAL = "START_APPROVAL",
|
|
43
|
-
APPLY_TASK_TEMPLATE = "APPLY_TASK_TEMPLATE",
|
|
44
|
-
LINK_TICKET = "LINK_TICKET",
|
|
45
|
-
CREATE_CHILD_TICKET = "CREATE_CHILD_TICKET",
|
|
46
|
-
MERGE_TICKETS = "MERGE_TICKETS",
|
|
47
|
-
PAUSE_SLA = "PAUSE_SLA",
|
|
48
|
-
RESUME_SLA = "RESUME_SLA",
|
|
49
|
-
CALL_WEBHOOK = "CALL_WEBHOOK"
|
|
50
|
-
}
|
|
51
|
-
export declare enum TicketAutomationCapabilityKind {
|
|
52
|
-
TRIGGER = "TRIGGER",
|
|
53
|
-
ACTION = "ACTION",
|
|
54
|
-
CONDITION = "CONDITION"
|
|
55
|
-
}
|
|
56
|
-
export declare enum TicketAutomationEventStatus {
|
|
57
|
-
PENDING = "PENDING",
|
|
58
|
-
PUBLISHED = "PUBLISHED",
|
|
59
|
-
FAILED = "FAILED",
|
|
60
|
-
DEAD_LETTER = "DEAD_LETTER"
|
|
61
|
-
}
|
|
62
|
-
export declare enum TicketAutomationActionStatus {
|
|
63
|
-
ACCEPTED = "ACCEPTED",
|
|
64
|
-
COMPLETED = "COMPLETED",
|
|
65
|
-
SKIPPED = "SKIPPED",
|
|
66
|
-
CONFLICT = "CONFLICT",
|
|
67
|
-
FAILED = "FAILED"
|
|
68
|
-
}
|
|
69
|
-
/** Causal metadata propagated across Tickets and Flow to deduplicate work and detect recursive loops. */
|
|
70
|
-
export interface ITicketAutomationEnvelope {
|
|
71
|
-
eventId: string;
|
|
72
|
-
correlationId: string;
|
|
73
|
-
causationId?: string;
|
|
74
|
-
flowId?: string;
|
|
75
|
-
flowVersion?: number;
|
|
76
|
-
executionId?: string;
|
|
77
|
-
actionId?: string;
|
|
78
|
-
depth: number;
|
|
79
|
-
occurredAt: Date;
|
|
80
|
-
}
|
|
81
|
-
/** Snapshot and delta delivered to Flow when a ticket trigger fires. */
|
|
82
|
-
export interface ITicketAutomationContext {
|
|
83
|
-
ticketId: string;
|
|
84
|
-
spaceId: string;
|
|
85
|
-
eventType: TicketAutomationTrigger;
|
|
86
|
-
ticketVersion: number;
|
|
87
|
-
changedFields?: string[];
|
|
88
|
-
previousValues?: {
|
|
89
|
-
[key: string]: TicketPropertyValue;
|
|
90
|
-
};
|
|
91
|
-
currentValues?: {
|
|
92
|
-
[key: string]: TicketPropertyValue;
|
|
93
|
-
};
|
|
94
|
-
conversationId?: string;
|
|
95
|
-
messageId?: string;
|
|
96
|
-
slaMetricCycleId?: string;
|
|
97
|
-
approvalProcessId?: string;
|
|
98
|
-
taskId?: string;
|
|
99
|
-
actorId?: string;
|
|
100
|
-
}
|
|
101
|
-
/** Transactional-outbox record. Tickets persists this with the mutation before publishing it to Flow. */
|
|
102
|
-
export interface ITicketAutomationEvent {
|
|
103
|
-
id: string;
|
|
104
|
-
spaceId: string;
|
|
105
|
-
ticketId: string;
|
|
106
|
-
envelope: ITicketAutomationEnvelope;
|
|
107
|
-
context: ITicketAutomationContext;
|
|
108
|
-
status: TicketAutomationEventStatus;
|
|
109
|
-
attempts: number;
|
|
110
|
-
createdAt: Date;
|
|
111
|
-
publishedAt?: Date;
|
|
112
|
-
nextAttemptAt?: Date;
|
|
113
|
-
lastError?: string;
|
|
114
|
-
}
|
|
115
|
-
/** Minimal JSON-schema-compatible description used by the visual Flow editor to render node inputs. */
|
|
116
|
-
export interface ITicketAutomationSchema {
|
|
117
|
-
type: "object";
|
|
118
|
-
title?: string;
|
|
119
|
-
description?: string;
|
|
120
|
-
required?: string[];
|
|
121
|
-
properties: {
|
|
122
|
-
[key: string]: ITicketAutomationSchemaProperty;
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
export interface ITicketAutomationSchemaProperty {
|
|
126
|
-
type: "string" | "number" | "integer" | "boolean" | "array" | "object";
|
|
127
|
-
title?: string;
|
|
128
|
-
description?: string;
|
|
129
|
-
format?: string;
|
|
130
|
-
enum?: TicketPropertyValue[];
|
|
131
|
-
default?: TicketPropertyValue;
|
|
132
|
-
items?: ITicketAutomationSchemaProperty;
|
|
133
|
-
}
|
|
134
|
-
/** Capability catalog entry consumed by Flow so ticket nodes are not hard-coded in its editor. */
|
|
135
|
-
export interface ITicketAutomationCapability {
|
|
136
|
-
code: string;
|
|
137
|
-
kind: TicketAutomationCapabilityKind;
|
|
138
|
-
name: string;
|
|
139
|
-
description?: string;
|
|
140
|
-
trigger?: TicketAutomationTrigger;
|
|
141
|
-
action?: TicketAutomationAction;
|
|
142
|
-
inputSchema?: ITicketAutomationSchema;
|
|
143
|
-
outputSchema?: ITicketAutomationSchema;
|
|
144
|
-
requiredOperations?: TicketSecurityOperation[];
|
|
145
|
-
enabled: boolean;
|
|
146
|
-
version: number;
|
|
147
|
-
}
|
|
148
|
-
/** Query used by Flow to discover available ticket triggers, actions and conditions for a tenant. */
|
|
149
|
-
export interface ITicketAutomationCapabilityQuery {
|
|
150
|
-
kinds?: TicketAutomationCapabilityKind[];
|
|
151
|
-
enabledOnly?: boolean;
|
|
152
|
-
version?: number;
|
|
153
|
-
}
|
|
154
|
-
/** Idempotent command sent by a Flow action node to the Tickets API. */
|
|
155
|
-
export interface IExecuteTicketAutomationActionDto {
|
|
156
|
-
ticketId: string;
|
|
157
|
-
expectedVersion?: number;
|
|
158
|
-
action: TicketAutomationAction;
|
|
159
|
-
parameters: {
|
|
160
|
-
[key: string]: TicketPropertyValue;
|
|
161
|
-
};
|
|
162
|
-
envelope: ITicketAutomationEnvelope;
|
|
163
|
-
idempotencyKey: string;
|
|
164
|
-
}
|
|
165
|
-
/** Result stored by Flow; repeated idempotency keys must return the original result. */
|
|
166
|
-
export interface ITicketAutomationActionResult {
|
|
167
|
-
ticketId: string;
|
|
168
|
-
action: TicketAutomationAction;
|
|
169
|
-
status: TicketAutomationActionStatus;
|
|
170
|
-
previousVersion?: number;
|
|
171
|
-
currentVersion?: number;
|
|
172
|
-
output?: {
|
|
173
|
-
[key: string]: TicketPropertyValue;
|
|
174
|
-
};
|
|
175
|
-
eventIds?: string[];
|
|
176
|
-
errorCode?: string;
|
|
177
|
-
errorMessage?: string;
|
|
178
|
-
retryable?: boolean;
|
|
179
|
-
completedAt: Date;
|
|
180
|
-
}
|
|
181
|
-
/** Audit record proving which flow/node caused a ticket mutation, independently from Flow logs. */
|
|
182
|
-
export interface ITicketAutomationActionExecution {
|
|
183
|
-
id: string;
|
|
184
|
-
spaceId: string;
|
|
185
|
-
ticketId: string;
|
|
186
|
-
flowId: string;
|
|
187
|
-
flowVersion?: number;
|
|
188
|
-
executionId: string;
|
|
189
|
-
nodeId?: string;
|
|
190
|
-
actionId: string;
|
|
191
|
-
action: TicketAutomationAction;
|
|
192
|
-
idempotencyKey: string;
|
|
193
|
-
status: TicketAutomationActionStatus;
|
|
194
|
-
startedAt: Date;
|
|
195
|
-
completedAt?: Date;
|
|
196
|
-
result?: ITicketAutomationActionResult;
|
|
197
|
-
}
|
|
198
|
-
/** Tenant safety limits enforced by Tickets before accepting Flow-originated actions. */
|
|
199
|
-
export interface ITicketAutomationLimits {
|
|
200
|
-
spaceId: string;
|
|
201
|
-
maximumCausalDepth: number;
|
|
202
|
-
maximumActionsPerExecution: number;
|
|
203
|
-
maximumActionsPerTicketPerMinute: number;
|
|
204
|
-
maximumEventsPerTicketPerMinute: number;
|
|
205
|
-
ignoreSameFlowCausedEvents: boolean;
|
|
206
|
-
deadLetterAfterAttempts: number;
|
|
207
|
-
}
|
|
208
|
-
/** Loop-check request evaluated before dispatching an event or executing an action. */
|
|
209
|
-
export interface ITicketAutomationGuardRequest {
|
|
210
|
-
ticketId: string;
|
|
211
|
-
envelope: ITicketAutomationEnvelope;
|
|
212
|
-
action?: TicketAutomationAction;
|
|
213
|
-
}
|
|
214
|
-
export interface ITicketAutomationGuardDecision {
|
|
215
|
-
allowed: boolean;
|
|
216
|
-
reasonCode?: string;
|
|
217
|
-
reason?: string;
|
|
218
|
-
currentDepth: number;
|
|
219
|
-
actionsUsed?: number;
|
|
220
|
-
actionsRemaining?: number;
|
|
221
|
-
}
|
|
222
|
-
/** Registers the Flow binding that determines which ticket event starts which flow version. */
|
|
223
|
-
export interface ITicketFlowBinding {
|
|
224
|
-
id: string;
|
|
225
|
-
spaceId: string;
|
|
226
|
-
name: string;
|
|
227
|
-
trigger: TicketAutomationTrigger;
|
|
228
|
-
flowId: string;
|
|
229
|
-
flowVersion?: number;
|
|
230
|
-
categoryIds?: string[];
|
|
231
|
-
enabled: boolean;
|
|
232
|
-
ignoreEventsCausedBySameFlow: boolean;
|
|
233
|
-
createdAt: Date;
|
|
234
|
-
createdBy: string;
|
|
235
|
-
updatedAt?: Date;
|
|
236
|
-
updatedBy?: string;
|
|
237
|
-
}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TicketAutomationActionStatus = exports.TicketAutomationEventStatus = exports.TicketAutomationCapabilityKind = exports.TicketAutomationAction = exports.TicketAutomationTrigger = void 0;
|
|
4
|
-
/** Events published by Tickets that may start or resume a Flow execution. */
|
|
5
|
-
var TicketAutomationTrigger;
|
|
6
|
-
(function (TicketAutomationTrigger) {
|
|
7
|
-
TicketAutomationTrigger["TICKET_CREATED"] = "TICKET_CREATED";
|
|
8
|
-
TicketAutomationTrigger["TICKET_UPDATED"] = "TICKET_UPDATED";
|
|
9
|
-
TicketAutomationTrigger["STATUS_CHANGED"] = "STATUS_CHANGED";
|
|
10
|
-
TicketAutomationTrigger["PRIORITY_CHANGED"] = "PRIORITY_CHANGED";
|
|
11
|
-
TicketAutomationTrigger["ASSIGNMENT_CHANGED"] = "ASSIGNMENT_CHANGED";
|
|
12
|
-
TicketAutomationTrigger["CATEGORY_CHANGED"] = "CATEGORY_CHANGED";
|
|
13
|
-
TicketAutomationTrigger["PUBLIC_MESSAGE_RECEIVED"] = "PUBLIC_MESSAGE_RECEIVED";
|
|
14
|
-
TicketAutomationTrigger["PUBLIC_REPLY_SENT"] = "PUBLIC_REPLY_SENT";
|
|
15
|
-
TicketAutomationTrigger["INTERNAL_NOTE_ADDED"] = "INTERNAL_NOTE_ADDED";
|
|
16
|
-
TicketAutomationTrigger["SLA_WARNING"] = "SLA_WARNING";
|
|
17
|
-
TicketAutomationTrigger["SLA_BREACHED"] = "SLA_BREACHED";
|
|
18
|
-
TicketAutomationTrigger["TICKET_OVERDUE"] = "TICKET_OVERDUE";
|
|
19
|
-
TicketAutomationTrigger["APPROVAL_REQUESTED"] = "APPROVAL_REQUESTED";
|
|
20
|
-
TicketAutomationTrigger["APPROVAL_COMPLETED"] = "APPROVAL_COMPLETED";
|
|
21
|
-
TicketAutomationTrigger["APPROVAL_REJECTED"] = "APPROVAL_REJECTED";
|
|
22
|
-
TicketAutomationTrigger["TASK_CREATED"] = "TASK_CREATED";
|
|
23
|
-
TicketAutomationTrigger["TASK_COMPLETED"] = "TASK_COMPLETED";
|
|
24
|
-
TicketAutomationTrigger["TASK_OVERDUE"] = "TASK_OVERDUE";
|
|
25
|
-
TicketAutomationTrigger["SATISFACTION_RECEIVED"] = "SATISFACTION_RECEIVED";
|
|
26
|
-
TicketAutomationTrigger["TICKET_REOPENED"] = "TICKET_REOPENED";
|
|
27
|
-
TicketAutomationTrigger["TICKET_RESOLVED"] = "TICKET_RESOLVED";
|
|
28
|
-
TicketAutomationTrigger["SCHEDULED"] = "SCHEDULED";
|
|
29
|
-
TicketAutomationTrigger["MANUAL"] = "MANUAL";
|
|
30
|
-
})(TicketAutomationTrigger || (exports.TicketAutomationTrigger = TicketAutomationTrigger = {}));
|
|
31
|
-
/** Safe commands exposed by Tickets as Flow action nodes; every command uses normal domain validation. */
|
|
32
|
-
var TicketAutomationAction;
|
|
33
|
-
(function (TicketAutomationAction) {
|
|
34
|
-
TicketAutomationAction["UPDATE_FIELDS"] = "UPDATE_FIELDS";
|
|
35
|
-
TicketAutomationAction["CHANGE_STATUS"] = "CHANGE_STATUS";
|
|
36
|
-
TicketAutomationAction["SET_PRIORITY"] = "SET_PRIORITY";
|
|
37
|
-
TicketAutomationAction["ASSIGN_AGENT"] = "ASSIGN_AGENT";
|
|
38
|
-
TicketAutomationAction["ASSIGN_GROUP"] = "ASSIGN_GROUP";
|
|
39
|
-
TicketAutomationAction["ENQUEUE"] = "ENQUEUE";
|
|
40
|
-
TicketAutomationAction["ADD_TAG"] = "ADD_TAG";
|
|
41
|
-
TicketAutomationAction["REMOVE_TAG"] = "REMOVE_TAG";
|
|
42
|
-
TicketAutomationAction["ADD_INTERNAL_NOTE"] = "ADD_INTERNAL_NOTE";
|
|
43
|
-
TicketAutomationAction["SEND_PUBLIC_REPLY"] = "SEND_PUBLIC_REPLY";
|
|
44
|
-
TicketAutomationAction["SEND_NOTIFICATION"] = "SEND_NOTIFICATION";
|
|
45
|
-
TicketAutomationAction["START_APPROVAL"] = "START_APPROVAL";
|
|
46
|
-
TicketAutomationAction["APPLY_TASK_TEMPLATE"] = "APPLY_TASK_TEMPLATE";
|
|
47
|
-
TicketAutomationAction["LINK_TICKET"] = "LINK_TICKET";
|
|
48
|
-
TicketAutomationAction["CREATE_CHILD_TICKET"] = "CREATE_CHILD_TICKET";
|
|
49
|
-
TicketAutomationAction["MERGE_TICKETS"] = "MERGE_TICKETS";
|
|
50
|
-
TicketAutomationAction["PAUSE_SLA"] = "PAUSE_SLA";
|
|
51
|
-
TicketAutomationAction["RESUME_SLA"] = "RESUME_SLA";
|
|
52
|
-
TicketAutomationAction["CALL_WEBHOOK"] = "CALL_WEBHOOK";
|
|
53
|
-
})(TicketAutomationAction || (exports.TicketAutomationAction = TicketAutomationAction = {}));
|
|
54
|
-
var TicketAutomationCapabilityKind;
|
|
55
|
-
(function (TicketAutomationCapabilityKind) {
|
|
56
|
-
TicketAutomationCapabilityKind["TRIGGER"] = "TRIGGER";
|
|
57
|
-
TicketAutomationCapabilityKind["ACTION"] = "ACTION";
|
|
58
|
-
TicketAutomationCapabilityKind["CONDITION"] = "CONDITION";
|
|
59
|
-
})(TicketAutomationCapabilityKind || (exports.TicketAutomationCapabilityKind = TicketAutomationCapabilityKind = {}));
|
|
60
|
-
var TicketAutomationEventStatus;
|
|
61
|
-
(function (TicketAutomationEventStatus) {
|
|
62
|
-
TicketAutomationEventStatus["PENDING"] = "PENDING";
|
|
63
|
-
TicketAutomationEventStatus["PUBLISHED"] = "PUBLISHED";
|
|
64
|
-
TicketAutomationEventStatus["FAILED"] = "FAILED";
|
|
65
|
-
TicketAutomationEventStatus["DEAD_LETTER"] = "DEAD_LETTER";
|
|
66
|
-
})(TicketAutomationEventStatus || (exports.TicketAutomationEventStatus = TicketAutomationEventStatus = {}));
|
|
67
|
-
var TicketAutomationActionStatus;
|
|
68
|
-
(function (TicketAutomationActionStatus) {
|
|
69
|
-
TicketAutomationActionStatus["ACCEPTED"] = "ACCEPTED";
|
|
70
|
-
TicketAutomationActionStatus["COMPLETED"] = "COMPLETED";
|
|
71
|
-
TicketAutomationActionStatus["SKIPPED"] = "SKIPPED";
|
|
72
|
-
TicketAutomationActionStatus["CONFLICT"] = "CONFLICT";
|
|
73
|
-
TicketAutomationActionStatus["FAILED"] = "FAILED";
|
|
74
|
-
})(TicketAutomationActionStatus || (exports.TicketAutomationActionStatus = TicketAutomationActionStatus = {}));
|