clarion-shared-types 1.0.90 → 1.0.92
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/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/modules/permission/enums/permission-actions.enum.js +27 -0
- package/dist/cjs/modules/permission/enums/permission-actions.enum.js.map +1 -1
- package/dist/cjs/modules/permission/enums/permissions-moudule.enum.js +1 -0
- package/dist/cjs/modules/permission/enums/permissions-moudule.enum.js.map +1 -1
- package/dist/cjs/modules/support/enums/support-enums.js +375 -0
- package/dist/cjs/modules/support/enums/support-enums.js.map +1 -0
- package/dist/cjs/modules/support/index.js +27 -0
- package/dist/cjs/modules/support/index.js.map +1 -0
- package/dist/cjs/modules/support/interfaces/customer-feedback.dto.js +3 -0
- package/dist/cjs/modules/support/interfaces/customer-feedback.dto.js.map +1 -0
- package/dist/cjs/modules/support/interfaces/support-configuration.dto.js +3 -0
- package/dist/cjs/modules/support/interfaces/support-configuration.dto.js.map +1 -0
- package/dist/cjs/modules/support/interfaces/support-reports.dto.js +3 -0
- package/dist/cjs/modules/support/interfaces/support-reports.dto.js.map +1 -0
- package/dist/cjs/modules/support/interfaces/support-sync.dto.js +3 -0
- package/dist/cjs/modules/support/interfaces/support-sync.dto.js.map +1 -0
- package/dist/cjs/modules/support/interfaces/support-ticket.dto.js +3 -0
- package/dist/cjs/modules/support/interfaces/support-ticket.dto.js.map +1 -0
- package/dist/cjs/modules/support/utils/support-display.util.js +364 -0
- package/dist/cjs/modules/support/utils/support-display.util.js.map +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/modules/permission/enums/permission-actions.enum.js +27 -0
- package/dist/esm/modules/permission/enums/permission-actions.enum.js.map +1 -1
- package/dist/esm/modules/permission/enums/permissions-moudule.enum.js +1 -0
- package/dist/esm/modules/permission/enums/permissions-moudule.enum.js.map +1 -1
- package/dist/esm/modules/support/enums/support-enums.js +372 -0
- package/dist/esm/modules/support/enums/support-enums.js.map +1 -0
- package/dist/esm/modules/support/index.js +11 -0
- package/dist/esm/modules/support/index.js.map +1 -0
- package/dist/esm/modules/support/interfaces/customer-feedback.dto.js +2 -0
- package/dist/esm/modules/support/interfaces/customer-feedback.dto.js.map +1 -0
- package/dist/esm/modules/support/interfaces/support-configuration.dto.js +2 -0
- package/dist/esm/modules/support/interfaces/support-configuration.dto.js.map +1 -0
- package/dist/esm/modules/support/interfaces/support-reports.dto.js +2 -0
- package/dist/esm/modules/support/interfaces/support-reports.dto.js.map +1 -0
- package/dist/esm/modules/support/interfaces/support-sync.dto.js +2 -0
- package/dist/esm/modules/support/interfaces/support-sync.dto.js.map +1 -0
- package/dist/esm/modules/support/interfaces/support-ticket.dto.js +2 -0
- package/dist/esm/modules/support/interfaces/support-ticket.dto.js.map +1 -0
- package/dist/esm/modules/support/utils/support-display.util.js +351 -0
- package/dist/esm/modules/support/utils/support-display.util.js.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/modules/permission/enums/permission-actions.enum.d.ts +22 -1
- package/dist/types/modules/permission/enums/permissions-moudule.enum.d.ts +2 -1
- package/dist/types/modules/support/enums/support-enums.d.ts +341 -0
- package/dist/types/modules/support/index.d.ts +7 -0
- package/dist/types/modules/support/interfaces/customer-feedback.dto.d.ts +151 -0
- package/dist/types/modules/support/interfaces/support-configuration.dto.d.ts +244 -0
- package/dist/types/modules/support/interfaces/support-reports.dto.d.ts +180 -0
- package/dist/types/modules/support/interfaces/support-sync.dto.d.ts +92 -0
- package/dist/types/modules/support/interfaces/support-ticket.dto.d.ts +289 -0
- package/dist/types/modules/support/utils/support-display.util.d.ts +67 -0
- package/package.json +1 -1
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SUPPORT_TEAM_MEMBER_ROLE_LABELS = exports.SUPPORT_ROUTING_MATCH_TYPE_LABELS = exports.SUPPORT_QUEUE_ASSIGNMENT_STRATEGY_LABELS = exports.SUPPORT_RELATED_ENTITY_TYPE_LABELS = exports.SUPPORT_WEBHOOK_STATUS_LABELS = exports.SUPPORT_SYNC_FAILURE_REASON_LABELS = exports.SUPPORT_SYNC_OPERATION_LABELS = exports.SUPPORT_SYNC_STATUS_LABELS = exports.SUPPORT_PROVIDER_CAPABILITY_LABELS = exports.SUPPORT_PROVIDER_LABELS = exports.CUSTOMER_FEEDBACK_SENTIMENT_LABELS = exports.CUSTOMER_FEEDBACK_CHANNEL_LABELS = exports.CUSTOMER_FEEDBACK_STATUS_LABELS = exports.CUSTOMER_FEEDBACK_TYPE_LABELS = exports.SUPPORT_SLA_CLOCK_LABELS = exports.SUPPORT_SLA_TARGET_LABELS = exports.SUPPORT_SLA_STATE_LABELS = exports.SUPPORT_MESSAGE_AUTHOR_TYPE_LABELS = exports.SUPPORT_TICKET_MESSAGE_TYPE_LABELS = exports.SUPPORT_TICKET_SOURCE_LABELS = exports.SUPPORT_TICKET_CHANNEL_LABELS = exports.SUPPORT_TICKET_PRIORITY_LABELS = exports.SUPPORT_TICKET_STATUS_LABELS = void 0;
|
|
4
|
+
exports.supportTicketStatusTone = supportTicketStatusTone;
|
|
5
|
+
exports.supportTicketPriorityTone = supportTicketPriorityTone;
|
|
6
|
+
exports.supportSlaStateTone = supportSlaStateTone;
|
|
7
|
+
exports.supportSyncStatusTone = supportSyncStatusTone;
|
|
8
|
+
exports.customerFeedbackStatusTone = customerFeedbackStatusTone;
|
|
9
|
+
exports.customerFeedbackSentimentTone = customerFeedbackSentimentTone;
|
|
10
|
+
exports.describeSupportSlaDeadline = describeSupportSlaDeadline;
|
|
11
|
+
exports.formatSupportDuration = formatSupportDuration;
|
|
12
|
+
exports.supportProviderSupports = supportProviderSupports;
|
|
13
|
+
exports.isCustomerVisibleSupportMessage = isCustomerVisibleSupportMessage;
|
|
14
|
+
const support_enums_1 = require("../enums/support-enums");
|
|
15
|
+
/**
|
|
16
|
+
* Human labels for the support enums.
|
|
17
|
+
*
|
|
18
|
+
* Kept in the shared package rather than in the admin app so every screen that
|
|
19
|
+
* shows a ticket - the list, the detail page, the queue board, the customer's
|
|
20
|
+
* own screen - names the same state the same way. An operator reading "Waiting
|
|
21
|
+
* on customer" in one place and "Pending reply" in another would reasonably
|
|
22
|
+
* assume they were different things.
|
|
23
|
+
*/
|
|
24
|
+
exports.SUPPORT_TICKET_STATUS_LABELS = {
|
|
25
|
+
[support_enums_1.SupportTicketStatus.NEW]: 'New',
|
|
26
|
+
[support_enums_1.SupportTicketStatus.OPEN]: 'Open',
|
|
27
|
+
[support_enums_1.SupportTicketStatus.ASSIGNED]: 'Assigned',
|
|
28
|
+
[support_enums_1.SupportTicketStatus.IN_PROGRESS]: 'In progress',
|
|
29
|
+
[support_enums_1.SupportTicketStatus.WAITING_ON_CUSTOMER]: 'Waiting on customer',
|
|
30
|
+
[support_enums_1.SupportTicketStatus.WAITING_ON_INTERNAL_TEAM]: 'Waiting on our team',
|
|
31
|
+
[support_enums_1.SupportTicketStatus.RESOLVED]: 'Resolved',
|
|
32
|
+
[support_enums_1.SupportTicketStatus.CLOSED]: 'Closed',
|
|
33
|
+
[support_enums_1.SupportTicketStatus.REOPENED]: 'Reopened',
|
|
34
|
+
[support_enums_1.SupportTicketStatus.CANCELLED]: 'Cancelled',
|
|
35
|
+
};
|
|
36
|
+
exports.SUPPORT_TICKET_PRIORITY_LABELS = {
|
|
37
|
+
[support_enums_1.SupportTicketPriority.CRITICAL]: 'Critical',
|
|
38
|
+
[support_enums_1.SupportTicketPriority.URGENT]: 'Urgent',
|
|
39
|
+
[support_enums_1.SupportTicketPriority.HIGH]: 'High',
|
|
40
|
+
[support_enums_1.SupportTicketPriority.NORMAL]: 'Normal',
|
|
41
|
+
[support_enums_1.SupportTicketPriority.LOW]: 'Low',
|
|
42
|
+
};
|
|
43
|
+
exports.SUPPORT_TICKET_CHANNEL_LABELS = {
|
|
44
|
+
[support_enums_1.SupportTicketChannel.MOBILE_APP]: 'Mobile app',
|
|
45
|
+
[support_enums_1.SupportTicketChannel.WEB_APP]: 'Web app',
|
|
46
|
+
[support_enums_1.SupportTicketChannel.AGENT_PORTAL]: 'Raised by agent',
|
|
47
|
+
[support_enums_1.SupportTicketChannel.PROVIDER]: 'Helpdesk',
|
|
48
|
+
[support_enums_1.SupportTicketChannel.EMAIL]: 'Email',
|
|
49
|
+
[support_enums_1.SupportTicketChannel.PHONE]: 'Phone',
|
|
50
|
+
[support_enums_1.SupportTicketChannel.SMS]: 'SMS',
|
|
51
|
+
[support_enums_1.SupportTicketChannel.CHAT]: 'Chat',
|
|
52
|
+
[support_enums_1.SupportTicketChannel.SYSTEM]: 'System',
|
|
53
|
+
[support_enums_1.SupportTicketChannel.API]: 'API',
|
|
54
|
+
};
|
|
55
|
+
exports.SUPPORT_TICKET_SOURCE_LABELS = {
|
|
56
|
+
[support_enums_1.SupportTicketSource.CUSTOMER]: 'Customer',
|
|
57
|
+
[support_enums_1.SupportTicketSource.AGENT]: 'Agent',
|
|
58
|
+
[support_enums_1.SupportTicketSource.SYSTEM]: 'System',
|
|
59
|
+
[support_enums_1.SupportTicketSource.FEEDBACK_CONVERSION]: 'From feedback',
|
|
60
|
+
[support_enums_1.SupportTicketSource.PROVIDER_SYNC]: 'From helpdesk',
|
|
61
|
+
[support_enums_1.SupportTicketSource.CHAT_ESCALATION]: 'Escalated from chat',
|
|
62
|
+
};
|
|
63
|
+
exports.SUPPORT_TICKET_MESSAGE_TYPE_LABELS = {
|
|
64
|
+
[support_enums_1.SupportTicketMessageType.CUSTOMER_MESSAGE]: 'Customer',
|
|
65
|
+
[support_enums_1.SupportTicketMessageType.AGENT_REPLY]: 'Reply to customer',
|
|
66
|
+
[support_enums_1.SupportTicketMessageType.INTERNAL_NOTE]: 'Internal note',
|
|
67
|
+
[support_enums_1.SupportTicketMessageType.SYSTEM_MESSAGE]: 'System',
|
|
68
|
+
[support_enums_1.SupportTicketMessageType.STATUS_MESSAGE]: 'Status change',
|
|
69
|
+
};
|
|
70
|
+
exports.SUPPORT_MESSAGE_AUTHOR_TYPE_LABELS = {
|
|
71
|
+
[support_enums_1.SupportMessageAuthorType.CUSTOMER]: 'Customer',
|
|
72
|
+
[support_enums_1.SupportMessageAuthorType.AGENT]: 'Agent',
|
|
73
|
+
[support_enums_1.SupportMessageAuthorType.SYSTEM]: 'System',
|
|
74
|
+
[support_enums_1.SupportMessageAuthorType.PROVIDER_AGENT]: 'Helpdesk agent',
|
|
75
|
+
};
|
|
76
|
+
exports.SUPPORT_SLA_STATE_LABELS = {
|
|
77
|
+
[support_enums_1.SupportSlaState.ON_TRACK]: 'On track',
|
|
78
|
+
[support_enums_1.SupportSlaState.WARNING]: 'Due soon',
|
|
79
|
+
[support_enums_1.SupportSlaState.BREACHED]: 'Breached',
|
|
80
|
+
[support_enums_1.SupportSlaState.PAUSED]: 'Paused',
|
|
81
|
+
[support_enums_1.SupportSlaState.MET]: 'Met',
|
|
82
|
+
[support_enums_1.SupportSlaState.NOT_APPLICABLE]: 'No target',
|
|
83
|
+
};
|
|
84
|
+
exports.SUPPORT_SLA_TARGET_LABELS = {
|
|
85
|
+
[support_enums_1.SupportSlaTarget.FIRST_RESPONSE]: 'First response',
|
|
86
|
+
[support_enums_1.SupportSlaTarget.RESOLUTION]: 'Resolution',
|
|
87
|
+
};
|
|
88
|
+
exports.SUPPORT_SLA_CLOCK_LABELS = {
|
|
89
|
+
[support_enums_1.SupportSlaClock.CALENDAR]: 'Around the clock',
|
|
90
|
+
[support_enums_1.SupportSlaClock.BUSINESS]: 'Working hours',
|
|
91
|
+
};
|
|
92
|
+
exports.CUSTOMER_FEEDBACK_TYPE_LABELS = {
|
|
93
|
+
[support_enums_1.CustomerFeedbackType.BUG_REPORT]: 'Bug report',
|
|
94
|
+
[support_enums_1.CustomerFeedbackType.FEATURE_REQUEST]: 'Feature request',
|
|
95
|
+
[support_enums_1.CustomerFeedbackType.COMPLAINT]: 'Complaint',
|
|
96
|
+
[support_enums_1.CustomerFeedbackType.COMPLIMENT]: 'Compliment',
|
|
97
|
+
[support_enums_1.CustomerFeedbackType.GENERAL]: 'General',
|
|
98
|
+
[support_enums_1.CustomerFeedbackType.SERVICE_RATING]: 'Service rating',
|
|
99
|
+
[support_enums_1.CustomerFeedbackType.SUPPORT_RATING]: 'Support rating',
|
|
100
|
+
};
|
|
101
|
+
exports.CUSTOMER_FEEDBACK_STATUS_LABELS = {
|
|
102
|
+
[support_enums_1.CustomerFeedbackStatus.NEW]: 'New',
|
|
103
|
+
[support_enums_1.CustomerFeedbackStatus.UNDER_REVIEW]: 'Under review',
|
|
104
|
+
[support_enums_1.CustomerFeedbackStatus.ACKNOWLEDGED]: 'Acknowledged',
|
|
105
|
+
[support_enums_1.CustomerFeedbackStatus.RESPONDED]: 'Responded',
|
|
106
|
+
[support_enums_1.CustomerFeedbackStatus.CONVERTED_TO_TICKET]: 'Became a ticket',
|
|
107
|
+
[support_enums_1.CustomerFeedbackStatus.CLOSED]: 'Closed',
|
|
108
|
+
[support_enums_1.CustomerFeedbackStatus.DISMISSED]: 'Dismissed',
|
|
109
|
+
};
|
|
110
|
+
exports.CUSTOMER_FEEDBACK_CHANNEL_LABELS = {
|
|
111
|
+
[support_enums_1.CustomerFeedbackChannel.MOBILE_APP]: 'Mobile app',
|
|
112
|
+
[support_enums_1.CustomerFeedbackChannel.WEB_APP]: 'Web app',
|
|
113
|
+
[support_enums_1.CustomerFeedbackChannel.AGENT_PORTAL]: 'Agent portal',
|
|
114
|
+
[support_enums_1.CustomerFeedbackChannel.API]: 'API',
|
|
115
|
+
};
|
|
116
|
+
exports.CUSTOMER_FEEDBACK_SENTIMENT_LABELS = {
|
|
117
|
+
[support_enums_1.CustomerFeedbackSentiment.POSITIVE]: 'Positive',
|
|
118
|
+
[support_enums_1.CustomerFeedbackSentiment.NEUTRAL]: 'Neutral',
|
|
119
|
+
[support_enums_1.CustomerFeedbackSentiment.NEGATIVE]: 'Negative',
|
|
120
|
+
[support_enums_1.CustomerFeedbackSentiment.UNKNOWN]: 'Unknown',
|
|
121
|
+
};
|
|
122
|
+
exports.SUPPORT_PROVIDER_LABELS = {
|
|
123
|
+
[support_enums_1.SupportProviderCode.ZAMMAD]: 'Zammad',
|
|
124
|
+
[support_enums_1.SupportProviderCode.FRESHDESK]: 'Freshdesk',
|
|
125
|
+
[support_enums_1.SupportProviderCode.NONE]: 'Clarion only',
|
|
126
|
+
};
|
|
127
|
+
exports.SUPPORT_PROVIDER_CAPABILITY_LABELS = {
|
|
128
|
+
[support_enums_1.SupportProviderCapability.CREATE_TICKET]: 'Create tickets',
|
|
129
|
+
[support_enums_1.SupportProviderCapability.UPDATE_TICKET]: 'Update tickets',
|
|
130
|
+
[support_enums_1.SupportProviderCapability.PUBLIC_REPLY]: 'Reply to customers',
|
|
131
|
+
[support_enums_1.SupportProviderCapability.INTERNAL_NOTE]: 'Internal notes',
|
|
132
|
+
[support_enums_1.SupportProviderCapability.ASSIGN_TICKET]: 'Assign agents',
|
|
133
|
+
[support_enums_1.SupportProviderCapability.CHANGE_STATUS]: 'Change status',
|
|
134
|
+
[support_enums_1.SupportProviderCapability.CLOSE_REOPEN]: 'Close and reopen',
|
|
135
|
+
[support_enums_1.SupportProviderCapability.ATTACHMENTS]: 'Attachments',
|
|
136
|
+
[support_enums_1.SupportProviderCapability.CONTACTS]: 'Customer contacts',
|
|
137
|
+
[support_enums_1.SupportProviderCapability.SEARCH]: 'Search',
|
|
138
|
+
[support_enums_1.SupportProviderCapability.WEBHOOKS]: 'Webhooks',
|
|
139
|
+
[support_enums_1.SupportProviderCapability.FETCH_TICKET]: 'Re-read a ticket',
|
|
140
|
+
};
|
|
141
|
+
exports.SUPPORT_SYNC_STATUS_LABELS = {
|
|
142
|
+
[support_enums_1.SupportSyncStatus.PENDING]: 'Queued',
|
|
143
|
+
[support_enums_1.SupportSyncStatus.IN_PROGRESS]: 'Sending',
|
|
144
|
+
[support_enums_1.SupportSyncStatus.SUCCEEDED]: 'Synced',
|
|
145
|
+
[support_enums_1.SupportSyncStatus.FAILED]: 'Failed, will retry',
|
|
146
|
+
[support_enums_1.SupportSyncStatus.DEAD_LETTER]: 'Needs attention',
|
|
147
|
+
[support_enums_1.SupportSyncStatus.SKIPPED]: 'Not applicable',
|
|
148
|
+
[support_enums_1.SupportSyncStatus.SUPERSEDED]: 'Superseded',
|
|
149
|
+
};
|
|
150
|
+
exports.SUPPORT_SYNC_OPERATION_LABELS = {
|
|
151
|
+
[support_enums_1.SupportSyncOperation.UPSERT_CONTACT]: 'Sync customer',
|
|
152
|
+
[support_enums_1.SupportSyncOperation.CREATE_TICKET]: 'Create ticket',
|
|
153
|
+
[support_enums_1.SupportSyncOperation.UPDATE_TICKET]: 'Update ticket',
|
|
154
|
+
[support_enums_1.SupportSyncOperation.ADD_PUBLIC_REPLY]: 'Send reply',
|
|
155
|
+
[support_enums_1.SupportSyncOperation.ADD_INTERNAL_NOTE]: 'Add internal note',
|
|
156
|
+
[support_enums_1.SupportSyncOperation.ASSIGN_TICKET]: 'Assign agent',
|
|
157
|
+
[support_enums_1.SupportSyncOperation.CHANGE_STATUS]: 'Change status',
|
|
158
|
+
[support_enums_1.SupportSyncOperation.ADD_ATTACHMENT]: 'Attach file',
|
|
159
|
+
[support_enums_1.SupportSyncOperation.CLOSE_TICKET]: 'Close ticket',
|
|
160
|
+
[support_enums_1.SupportSyncOperation.REOPEN_TICKET]: 'Reopen ticket',
|
|
161
|
+
[support_enums_1.SupportSyncOperation.FETCH_TICKET]: 'Re-read ticket',
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Failure reasons in words an operator can act on.
|
|
165
|
+
*
|
|
166
|
+
* Each one says what to DO, not just what happened. "Provider rejected the
|
|
167
|
+
* request" tells nobody anything; "the helpdesk refused the request - check the
|
|
168
|
+
* ticket's category mapping" is a next step.
|
|
169
|
+
*/
|
|
170
|
+
exports.SUPPORT_SYNC_FAILURE_REASON_LABELS = {
|
|
171
|
+
[support_enums_1.SupportSyncFailureReason.AUTHENTICATION_FAILED]: 'The helpdesk refused the credential - check the configured secret',
|
|
172
|
+
[support_enums_1.SupportSyncFailureReason.AUTHORIZATION_FAILED]: 'The helpdesk account is not allowed to do this - check its role',
|
|
173
|
+
[support_enums_1.SupportSyncFailureReason.INVALID_PAYLOAD]: 'The helpdesk could not read the request - a field mapping is wrong',
|
|
174
|
+
[support_enums_1.SupportSyncFailureReason.NOT_FOUND]: 'The record no longer exists in the helpdesk',
|
|
175
|
+
[support_enums_1.SupportSyncFailureReason.PROVIDER_REJECTED]: 'The helpdesk declined the request',
|
|
176
|
+
[support_enums_1.SupportSyncFailureReason.RATE_LIMITED]: 'Throttled by the helpdesk - it will retry shortly',
|
|
177
|
+
[support_enums_1.SupportSyncFailureReason.PROVIDER_UNAVAILABLE]: 'The helpdesk could not be reached',
|
|
178
|
+
[support_enums_1.SupportSyncFailureReason.TIMEOUT]: 'The helpdesk did not answer in time',
|
|
179
|
+
[support_enums_1.SupportSyncFailureReason.CIRCUIT_OPEN]: 'Paused after repeated failures - it will resume on its own',
|
|
180
|
+
[support_enums_1.SupportSyncFailureReason.PROVIDER_NOT_CONFIGURED]: 'No helpdesk is configured for this deployment',
|
|
181
|
+
[support_enums_1.SupportSyncFailureReason.UNREADABLE_SUCCESS]: 'The helpdesk accepted it but the reply could not be read - check the helpdesk before retrying',
|
|
182
|
+
[support_enums_1.SupportSyncFailureReason.UNKNOWN]: 'Unrecognised failure - it will retry',
|
|
183
|
+
};
|
|
184
|
+
exports.SUPPORT_WEBHOOK_STATUS_LABELS = {
|
|
185
|
+
[support_enums_1.SupportWebhookStatus.RECEIVED]: 'Received',
|
|
186
|
+
[support_enums_1.SupportWebhookStatus.PROCESSED]: 'Applied',
|
|
187
|
+
[support_enums_1.SupportWebhookStatus.DUPLICATE]: 'Duplicate',
|
|
188
|
+
[support_enums_1.SupportWebhookStatus.IGNORED]: 'Ignored',
|
|
189
|
+
[support_enums_1.SupportWebhookStatus.REJECTED]: 'Rejected - bad signature',
|
|
190
|
+
[support_enums_1.SupportWebhookStatus.FAILED]: 'Failed',
|
|
191
|
+
};
|
|
192
|
+
exports.SUPPORT_RELATED_ENTITY_TYPE_LABELS = {
|
|
193
|
+
[support_enums_1.SupportRelatedEntityType.INCIDENT]: 'Incident',
|
|
194
|
+
[support_enums_1.SupportRelatedEntityType.BILLING_SUBSCRIPTION]: 'Subscription',
|
|
195
|
+
[support_enums_1.SupportRelatedEntityType.BILLING_INVOICE]: 'Invoice',
|
|
196
|
+
[support_enums_1.SupportRelatedEntityType.BILLING_PAYMENT]: 'Payment',
|
|
197
|
+
[support_enums_1.SupportRelatedEntityType.BILLING_PACKAGE]: 'Package',
|
|
198
|
+
[support_enums_1.SupportRelatedEntityType.CHAT_CONVERSATION]: 'Chat',
|
|
199
|
+
[support_enums_1.SupportRelatedEntityType.NEWSFEED_POST]: 'Newsfeed post',
|
|
200
|
+
[support_enums_1.SupportRelatedEntityType.NEWSFEED_COMMENT]: 'Newsfeed comment',
|
|
201
|
+
[support_enums_1.SupportRelatedEntityType.PARTNER_DISPATCH]: 'Partner dispatch',
|
|
202
|
+
[support_enums_1.SupportRelatedEntityType.RESPONSE_UNIT]: 'Response unit',
|
|
203
|
+
[support_enums_1.SupportRelatedEntityType.ORGANIZATION]: 'Organization',
|
|
204
|
+
[support_enums_1.SupportRelatedEntityType.USER]: 'User',
|
|
205
|
+
[support_enums_1.SupportRelatedEntityType.APP_SCREEN]: 'App screen',
|
|
206
|
+
[support_enums_1.SupportRelatedEntityType.SUPPORT_TICKET]: 'Support ticket',
|
|
207
|
+
[support_enums_1.SupportRelatedEntityType.CUSTOMER_FEEDBACK]: 'Customer feedback',
|
|
208
|
+
[support_enums_1.SupportRelatedEntityType.OTHER]: 'Other',
|
|
209
|
+
};
|
|
210
|
+
exports.SUPPORT_QUEUE_ASSIGNMENT_STRATEGY_LABELS = {
|
|
211
|
+
[support_enums_1.SupportQueueAssignmentStrategy.MANUAL]: 'Assigned by a supervisor',
|
|
212
|
+
[support_enums_1.SupportQueueAssignmentStrategy.ROUND_ROBIN]: 'Round robin (not yet available)',
|
|
213
|
+
[support_enums_1.SupportQueueAssignmentStrategy.LEAST_BUSY]: 'Least busy agent (not yet available)',
|
|
214
|
+
};
|
|
215
|
+
exports.SUPPORT_ROUTING_MATCH_TYPE_LABELS = {
|
|
216
|
+
[support_enums_1.SupportRoutingMatchType.ANY]: 'Every ticket',
|
|
217
|
+
[support_enums_1.SupportRoutingMatchType.CATEGORY]: 'Category',
|
|
218
|
+
[support_enums_1.SupportRoutingMatchType.PRIORITY]: 'Priority',
|
|
219
|
+
[support_enums_1.SupportRoutingMatchType.CHANNEL]: 'Channel',
|
|
220
|
+
[support_enums_1.SupportRoutingMatchType.COUNTRY]: 'Country',
|
|
221
|
+
[support_enums_1.SupportRoutingMatchType.CONTROL_CENTRE]: 'Control centre',
|
|
222
|
+
[support_enums_1.SupportRoutingMatchType.APP_ID]: 'Application',
|
|
223
|
+
[support_enums_1.SupportRoutingMatchType.RELATED_ENTITY_TYPE]: 'What it is about',
|
|
224
|
+
};
|
|
225
|
+
exports.SUPPORT_TEAM_MEMBER_ROLE_LABELS = {
|
|
226
|
+
[support_enums_1.SupportTeamMemberRole.AGENT]: 'Agent',
|
|
227
|
+
[support_enums_1.SupportTeamMemberRole.SUPERVISOR]: 'Supervisor',
|
|
228
|
+
[support_enums_1.SupportTeamMemberRole.MANAGER]: 'Manager',
|
|
229
|
+
};
|
|
230
|
+
function supportTicketStatusTone(status) {
|
|
231
|
+
switch (status) {
|
|
232
|
+
case support_enums_1.SupportTicketStatus.RESOLVED:
|
|
233
|
+
case support_enums_1.SupportTicketStatus.CLOSED:
|
|
234
|
+
return 'success';
|
|
235
|
+
case support_enums_1.SupportTicketStatus.WAITING_ON_CUSTOMER:
|
|
236
|
+
case support_enums_1.SupportTicketStatus.WAITING_ON_INTERNAL_TEAM:
|
|
237
|
+
return 'warn';
|
|
238
|
+
case support_enums_1.SupportTicketStatus.REOPENED:
|
|
239
|
+
return 'danger';
|
|
240
|
+
case support_enums_1.SupportTicketStatus.CANCELLED:
|
|
241
|
+
return 'neutral';
|
|
242
|
+
default:
|
|
243
|
+
return 'info';
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
function supportTicketPriorityTone(priority) {
|
|
247
|
+
switch (priority) {
|
|
248
|
+
case support_enums_1.SupportTicketPriority.CRITICAL:
|
|
249
|
+
case support_enums_1.SupportTicketPriority.URGENT:
|
|
250
|
+
return 'danger';
|
|
251
|
+
case support_enums_1.SupportTicketPriority.HIGH:
|
|
252
|
+
return 'warn';
|
|
253
|
+
case support_enums_1.SupportTicketPriority.LOW:
|
|
254
|
+
return 'neutral';
|
|
255
|
+
default:
|
|
256
|
+
return 'info';
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
function supportSlaStateTone(state) {
|
|
260
|
+
switch (state) {
|
|
261
|
+
case support_enums_1.SupportSlaState.MET:
|
|
262
|
+
return 'success';
|
|
263
|
+
case support_enums_1.SupportSlaState.WARNING:
|
|
264
|
+
return 'warn';
|
|
265
|
+
case support_enums_1.SupportSlaState.BREACHED:
|
|
266
|
+
return 'danger';
|
|
267
|
+
case support_enums_1.SupportSlaState.PAUSED:
|
|
268
|
+
case support_enums_1.SupportSlaState.NOT_APPLICABLE:
|
|
269
|
+
return 'neutral';
|
|
270
|
+
default:
|
|
271
|
+
return 'info';
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
function supportSyncStatusTone(status) {
|
|
275
|
+
switch (status) {
|
|
276
|
+
case support_enums_1.SupportSyncStatus.SUCCEEDED:
|
|
277
|
+
return 'success';
|
|
278
|
+
case support_enums_1.SupportSyncStatus.FAILED:
|
|
279
|
+
return 'warn';
|
|
280
|
+
case support_enums_1.SupportSyncStatus.DEAD_LETTER:
|
|
281
|
+
return 'danger';
|
|
282
|
+
case support_enums_1.SupportSyncStatus.SKIPPED:
|
|
283
|
+
case support_enums_1.SupportSyncStatus.SUPERSEDED:
|
|
284
|
+
return 'neutral';
|
|
285
|
+
default:
|
|
286
|
+
return 'info';
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
function customerFeedbackStatusTone(status) {
|
|
290
|
+
switch (status) {
|
|
291
|
+
case support_enums_1.CustomerFeedbackStatus.RESPONDED:
|
|
292
|
+
case support_enums_1.CustomerFeedbackStatus.CLOSED:
|
|
293
|
+
return 'success';
|
|
294
|
+
case support_enums_1.CustomerFeedbackStatus.NEW:
|
|
295
|
+
case support_enums_1.CustomerFeedbackStatus.UNDER_REVIEW:
|
|
296
|
+
return 'warn';
|
|
297
|
+
case support_enums_1.CustomerFeedbackStatus.DISMISSED:
|
|
298
|
+
return 'neutral';
|
|
299
|
+
default:
|
|
300
|
+
return 'info';
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
function customerFeedbackSentimentTone(sentiment) {
|
|
304
|
+
switch (sentiment) {
|
|
305
|
+
case support_enums_1.CustomerFeedbackSentiment.POSITIVE:
|
|
306
|
+
return 'success';
|
|
307
|
+
case support_enums_1.CustomerFeedbackSentiment.NEGATIVE:
|
|
308
|
+
return 'danger';
|
|
309
|
+
case support_enums_1.CustomerFeedbackSentiment.NEUTRAL:
|
|
310
|
+
return 'info';
|
|
311
|
+
default:
|
|
312
|
+
return 'neutral';
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* How a deadline reads on screen.
|
|
317
|
+
*
|
|
318
|
+
* Returns a phrase rather than a number so a paused clock does not render as a
|
|
319
|
+
* countdown that is not counting - the single most misleading thing an SLA chip
|
|
320
|
+
* can do.
|
|
321
|
+
*/
|
|
322
|
+
function describeSupportSlaDeadline(state, remainingMinutes) {
|
|
323
|
+
if (state === support_enums_1.SupportSlaState.NOT_APPLICABLE)
|
|
324
|
+
return 'No target';
|
|
325
|
+
if (state === support_enums_1.SupportSlaState.MET)
|
|
326
|
+
return 'Met';
|
|
327
|
+
if (state === support_enums_1.SupportSlaState.PAUSED)
|
|
328
|
+
return 'Paused - waiting on the customer';
|
|
329
|
+
if (remainingMinutes == null)
|
|
330
|
+
return exports.SUPPORT_SLA_STATE_LABELS[state];
|
|
331
|
+
if (remainingMinutes < 0)
|
|
332
|
+
return `${formatSupportDuration(-remainingMinutes)} overdue`;
|
|
333
|
+
return `${formatSupportDuration(remainingMinutes)} left`;
|
|
334
|
+
}
|
|
335
|
+
/** Minutes as a short human duration: 45m, 3h 20m, 2d 4h. */
|
|
336
|
+
function formatSupportDuration(minutes) {
|
|
337
|
+
if (minutes == null || !Number.isFinite(minutes))
|
|
338
|
+
return '-';
|
|
339
|
+
const total = Math.max(0, Math.round(minutes));
|
|
340
|
+
if (total < 60)
|
|
341
|
+
return `${total}m`;
|
|
342
|
+
const hours = Math.floor(total / 60);
|
|
343
|
+
const remainderMinutes = total % 60;
|
|
344
|
+
if (hours < 24) {
|
|
345
|
+
return remainderMinutes === 0 ? `${hours}h` : `${hours}h ${remainderMinutes}m`;
|
|
346
|
+
}
|
|
347
|
+
const days = Math.floor(hours / 24);
|
|
348
|
+
const remainderHours = hours % 24;
|
|
349
|
+
return remainderHours === 0 ? `${days}d` : `${days}d ${remainderHours}h`;
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Whether an adapter can do something.
|
|
353
|
+
*
|
|
354
|
+
* The admin gates every button on this rather than assuming, so an action a
|
|
355
|
+
* helpdesk cannot perform is never offered to an operator as if it worked.
|
|
356
|
+
*/
|
|
357
|
+
function supportProviderSupports(capabilities, capability) {
|
|
358
|
+
return Array.isArray(capabilities) && capabilities.includes(capability);
|
|
359
|
+
}
|
|
360
|
+
/** True for the message types a customer is allowed to see. */
|
|
361
|
+
function isCustomerVisibleSupportMessage(type) {
|
|
362
|
+
return type !== support_enums_1.SupportTicketMessageType.INTERNAL_NOTE;
|
|
363
|
+
}
|
|
364
|
+
//# sourceMappingURL=support-display.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"support-display.util.js","s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AC;IACpC,IAAI,KAAK,GAAG,EAAE,EAAE,CAAC;QACb,OAAO,gBAAgB,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,KAAK,gBAAgB,GAAG,CAAC;IACnF,CAAC;IACD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC;IACpC,MAAM,cAAc,GAAG,KAAK,GAAG,EAAE,CAAC;IAClC,OAAO,cAAc,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,CAAC,GAAG,IAAI,KAAK,cAAc,GAAG,CAAC;AAC7E,CAAC;AAED;;;;;GAKG;AACH,SAAgB,uBAAuB,CACnC,YAA4D,EAC5D,UAAqC;IAErC,OAAO,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,YAAY,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;AAC5E,CAAC;AAED,+DAA+D;AAC/D,SAAgB,+BAA+B,CAAC,IAA8B;IAC1E,OAAO,IAAI,KAAK,wCAAwB,CAAC,aAAa,CAAC;AAC3D,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -21,6 +21,7 @@ export * from './modules/tracking/index';
|
|
|
21
21
|
export * from './modules/entitlement/index';
|
|
22
22
|
export * from './modules/alert-dispatch/index';
|
|
23
23
|
export * from './modules/partner/index';
|
|
24
|
+
export * from './modules/support/index';
|
|
24
25
|
// Interfaces
|
|
25
26
|
export * from './modules/common/interfaces/server-message';
|
|
26
27
|
export * from './modules/common/interfaces/pagination';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,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C,cAAc,yBAAyB,CAAC;AAExC,aAAa;AACb,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC"}
|
|
@@ -52,5 +52,32 @@ export var PermissionActions;
|
|
|
52
52
|
PermissionActions["READ_RESPONSE_UNIT"] = "read:response-unit";
|
|
53
53
|
PermissionActions["UPDATE_RESPONSE_UNIT"] = "update:response-unit";
|
|
54
54
|
PermissionActions["DELETE_RESPONSE_UNIT"] = "delete:response-unit";
|
|
55
|
+
// Module: Support
|
|
56
|
+
//
|
|
57
|
+
// Mirrors grm-shared-library exactly, values included: the admin gates its
|
|
58
|
+
// support screens on these strings and the gateway authorizes on the same
|
|
59
|
+
// ones, so any drift between the two packages is a screen that shows a
|
|
60
|
+
// button the API then refuses.
|
|
61
|
+
PermissionActions["CREATE_SUPPORT_TICKET"] = "create:support-ticket";
|
|
62
|
+
PermissionActions["READ_SUPPORT_TICKET"] = "read:support-ticket";
|
|
63
|
+
PermissionActions["UPDATE_SUPPORT_TICKET"] = "update:support-ticket";
|
|
64
|
+
PermissionActions["ASSIGN_SUPPORT_TICKET"] = "assign:support-ticket";
|
|
65
|
+
PermissionActions["REPLY_SUPPORT_TICKET"] = "reply:support-ticket";
|
|
66
|
+
PermissionActions["NOTE_SUPPORT_TICKET"] = "note:support-ticket";
|
|
67
|
+
PermissionActions["CHANGE_STATUS_SUPPORT_TICKET"] = "change-status:support-ticket";
|
|
68
|
+
PermissionActions["CHANGE_PRIORITY_SUPPORT_TICKET"] = "change-priority:support-ticket";
|
|
69
|
+
PermissionActions["CLOSE_SUPPORT_TICKET"] = "close:support-ticket";
|
|
70
|
+
PermissionActions["REOPEN_SUPPORT_TICKET"] = "reopen:support-ticket";
|
|
71
|
+
PermissionActions["READ_SUPPORT_FEEDBACK"] = "read:support-feedback";
|
|
72
|
+
PermissionActions["REVIEW_SUPPORT_FEEDBACK"] = "review:support-feedback";
|
|
73
|
+
PermissionActions["RESPOND_SUPPORT_FEEDBACK"] = "respond:support-feedback";
|
|
74
|
+
PermissionActions["CONVERT_SUPPORT_FEEDBACK"] = "convert:support-feedback";
|
|
75
|
+
PermissionActions["MANAGE_SUPPORT_QUEUE"] = "manage:support-queue";
|
|
76
|
+
PermissionActions["MANAGE_SUPPORT_TEAM"] = "manage:support-team";
|
|
77
|
+
PermissionActions["MANAGE_SUPPORT_SLA"] = "manage:support-sla";
|
|
78
|
+
PermissionActions["MANAGE_SUPPORT_CONFIGURATION"] = "manage:support-configuration";
|
|
79
|
+
PermissionActions["READ_SUPPORT_REPORT"] = "read:support-report";
|
|
80
|
+
PermissionActions["READ_SUPPORT_SYNC"] = "read:support-sync";
|
|
81
|
+
PermissionActions["MANAGE_SUPPORT_SYNC"] = "manage:support-sync";
|
|
55
82
|
})(PermissionActions || (PermissionActions = {}));
|
|
56
83
|
//# sourceMappingURL=permission-actions.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission-actions.enum.js","sourceRoot":"","sources":["../../../../../src/modules/permission/enums/permission-actions.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"permission-actions.enum.js","sourceRoot":"","sources":["../../../../../src/modules/permission/enums/permission-actions.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,iBAuFX;AAvFD,WAAY,iBAAiB;IACzB,uBAAuB;IACvB,gEAA2C,CAAA;IAC3C,4DAAuC,CAAA;IACvC,gEAA2C,CAAA;IAC3C,gEAA2C,CAAA;IAE3C,kBAAkB;IAClB,sDAAiC,CAAA;IACjC,kDAA6B,CAAA;IAC7B,sDAAiC,CAAA;IACjC,sDAAiC,CAAA;IACjC,wEAAwE;IACxE,mEAAmE;IACnE,oEAA+C,CAAA;IAC/C,0EAAqD,CAAA;IACrD,wEAAmD,CAAA;IACnD,wEAAmD,CAAA;IACnD,wEAAmD,CAAA;IACnD,2EAA2E;IAC3E,4EAA4E;IAC5E,qEAAqE;IACrE,uDAAuD;IACvD,wE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Module;
|
|
|
7
7
|
PermissionsModule["ROLE"] = "Role";
|
|
8
8
|
PermissionsModule["INCIDENT"] = "Grievance";
|
|
9
9
|
PermissionsModule["RESPONSE_UNIT"] = "Response Unit";
|
|
10
|
+
PermissionsModule["SUPPORT"] = "Support";
|
|
10
11
|
})(PermissionsModule || (PermissionsModule = {}));
|
|
11
12
|
//# sourceMappingURL=permissions-moudule.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions-moudule.enum.js","sourceRoot":"","sources":["../../../../../src/modules/permission/enums/permissions-moudule.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"permissions-moudule.enum.js","sourceRoot":"","sources":["../../../../../src/modules/permission/enums/permissions-moudule.enum.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,iBASX;AATD,WAAY,iBAAiB;IACzB,kDAA6B,CAAA;IAC7B,wCAAmB,CAAA;IACnB,sDAAiC,CAAA;IACjC,kCAAa,CAAA;IACb,kCAAa,CAAA;IACb,2CAAsB,CAAA;IACtB,oDAA+B,CAAA;IAC/B,wCAAmB,CAAA;AACvB,CAAC,EATW,iBAAiB,KAAjB,iBAAiB,QAS5B"}
|