clarion-shared-types 1.0.89 → 1.0.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/cjs/index.js +1 -0
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/modules/partner/enums/partner-enums.js +95 -1
  4. package/dist/cjs/modules/partner/enums/partner-enums.js.map +1 -1
  5. package/dist/cjs/modules/partner/index.js +1 -0
  6. package/dist/cjs/modules/partner/index.js.map +1 -1
  7. package/dist/cjs/modules/partner/interfaces/partner-membership.dto.js +3 -0
  8. package/dist/cjs/modules/partner/interfaces/partner-membership.dto.js.map +1 -0
  9. package/dist/cjs/modules/partner/utils/partner-display.util.js +151 -1
  10. package/dist/cjs/modules/partner/utils/partner-display.util.js.map +1 -1
  11. package/dist/cjs/modules/permission/enums/permission-actions.enum.js +40 -0
  12. package/dist/cjs/modules/permission/enums/permission-actions.enum.js.map +1 -1
  13. package/dist/cjs/modules/permission/enums/permissions-moudule.enum.js +1 -0
  14. package/dist/cjs/modules/permission/enums/permissions-moudule.enum.js.map +1 -1
  15. package/dist/cjs/modules/support/enums/support-enums.js +375 -0
  16. package/dist/cjs/modules/support/enums/support-enums.js.map +1 -0
  17. package/dist/cjs/modules/support/index.js +27 -0
  18. package/dist/cjs/modules/support/index.js.map +1 -0
  19. package/dist/cjs/modules/support/interfaces/customer-feedback.dto.js +3 -0
  20. package/dist/cjs/modules/support/interfaces/customer-feedback.dto.js.map +1 -0
  21. package/dist/cjs/modules/support/interfaces/support-configuration.dto.js +3 -0
  22. package/dist/cjs/modules/support/interfaces/support-configuration.dto.js.map +1 -0
  23. package/dist/cjs/modules/support/interfaces/support-reports.dto.js +3 -0
  24. package/dist/cjs/modules/support/interfaces/support-reports.dto.js.map +1 -0
  25. package/dist/cjs/modules/support/interfaces/support-sync.dto.js +3 -0
  26. package/dist/cjs/modules/support/interfaces/support-sync.dto.js.map +1 -0
  27. package/dist/cjs/modules/support/interfaces/support-ticket.dto.js +3 -0
  28. package/dist/cjs/modules/support/interfaces/support-ticket.dto.js.map +1 -0
  29. package/dist/cjs/modules/support/utils/support-display.util.js +364 -0
  30. package/dist/cjs/modules/support/utils/support-display.util.js.map +1 -0
  31. package/dist/esm/index.js +1 -0
  32. package/dist/esm/index.js.map +1 -1
  33. package/dist/esm/modules/partner/enums/partner-enums.js +94 -0
  34. package/dist/esm/modules/partner/enums/partner-enums.js.map +1 -1
  35. package/dist/esm/modules/partner/index.js +1 -0
  36. package/dist/esm/modules/partner/index.js.map +1 -1
  37. package/dist/esm/modules/partner/interfaces/partner-membership.dto.js +2 -0
  38. package/dist/esm/modules/partner/interfaces/partner-membership.dto.js.map +1 -0
  39. package/dist/esm/modules/partner/utils/partner-display.util.js +148 -1
  40. package/dist/esm/modules/partner/utils/partner-display.util.js.map +1 -1
  41. package/dist/esm/modules/permission/enums/permission-actions.enum.js +40 -0
  42. package/dist/esm/modules/permission/enums/permission-actions.enum.js.map +1 -1
  43. package/dist/esm/modules/permission/enums/permissions-moudule.enum.js +1 -0
  44. package/dist/esm/modules/permission/enums/permissions-moudule.enum.js.map +1 -1
  45. package/dist/esm/modules/support/enums/support-enums.js +372 -0
  46. package/dist/esm/modules/support/enums/support-enums.js.map +1 -0
  47. package/dist/esm/modules/support/index.js +11 -0
  48. package/dist/esm/modules/support/index.js.map +1 -0
  49. package/dist/esm/modules/support/interfaces/customer-feedback.dto.js +2 -0
  50. package/dist/esm/modules/support/interfaces/customer-feedback.dto.js.map +1 -0
  51. package/dist/esm/modules/support/interfaces/support-configuration.dto.js +2 -0
  52. package/dist/esm/modules/support/interfaces/support-configuration.dto.js.map +1 -0
  53. package/dist/esm/modules/support/interfaces/support-reports.dto.js +2 -0
  54. package/dist/esm/modules/support/interfaces/support-reports.dto.js.map +1 -0
  55. package/dist/esm/modules/support/interfaces/support-sync.dto.js +2 -0
  56. package/dist/esm/modules/support/interfaces/support-sync.dto.js.map +1 -0
  57. package/dist/esm/modules/support/interfaces/support-ticket.dto.js +2 -0
  58. package/dist/esm/modules/support/interfaces/support-ticket.dto.js.map +1 -0
  59. package/dist/esm/modules/support/utils/support-display.util.js +351 -0
  60. package/dist/esm/modules/support/utils/support-display.util.js.map +1 -0
  61. package/dist/types/index.d.ts +1 -0
  62. package/dist/types/modules/partner/enums/partner-enums.d.ts +86 -0
  63. package/dist/types/modules/partner/index.d.ts +1 -0
  64. package/dist/types/modules/partner/interfaces/partner-integration.dto.d.ts +24 -1
  65. package/dist/types/modules/partner/interfaces/partner-membership.dto.d.ts +176 -0
  66. package/dist/types/modules/partner/interfaces/partner-provider.dto.d.ts +10 -0
  67. package/dist/types/modules/partner/utils/partner-display.util.d.ts +51 -1
  68. package/dist/types/modules/permission/enums/permission-actions.enum.d.ts +29 -1
  69. package/dist/types/modules/permission/enums/permissions-moudule.enum.d.ts +2 -1
  70. package/dist/types/modules/support/enums/support-enums.d.ts +341 -0
  71. package/dist/types/modules/support/index.d.ts +7 -0
  72. package/dist/types/modules/support/interfaces/customer-feedback.dto.d.ts +151 -0
  73. package/dist/types/modules/support/interfaces/support-configuration.dto.d.ts +244 -0
  74. package/dist/types/modules/support/interfaces/support-reports.dto.d.ts +146 -0
  75. package/dist/types/modules/support/interfaces/support-sync.dto.d.ts +92 -0
  76. package/dist/types/modules/support/interfaces/support-ticket.dto.d.ts +275 -0
  77. package/dist/types/modules/support/utils/support-display.util.d.ts +67 -0
  78. 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","sourceRoot":"","sources":["../../../../../src/modules/support/utils/support-display.util.ts"],"names":[],"mappings":";;;AAiRA,0DAeC;AAED,8DAYC;AAED,kDAcC;AAED,sDAcC;AAED,gEAaC;AAED,sEAWC;AASD,gEAUC;AAGD,sDAYC;AAQD,0DAKC;AAGD,0EAEC;AA9ZD,0DAwBgC;AAEhC;;;;;;;;GAQG;AACU,QAAA,4BAA4B,GAAkD;IACvF,CAAC,mCAAmB,CAAC,GAAG,CAAC,EAAE,KAAK;IAChC,CAAC,mCAAmB,CAAC,IAAI,CAAC,EAAE,M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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';
@@ -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,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AAExC,aAAa;AACb,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC"}
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,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AAExC,aAAa;AACb,cAAc,4CAA4C,CAAC;AAC3D,cAAc,wCAAwC,CAAC"}
@@ -165,4 +165,98 @@ export var PartnerDispatchScope;
165
165
  PartnerDispatchScope["FAILED"] = "FAILED";
166
166
  PartnerDispatchScope["NOT_ROUTED"] = "NOT_ROUTED";
167
167
  })(PartnerDispatchScope || (PartnerDispatchScope = {}));
168
+ // --- memberships ---------------------------------------------------------
169
+ /**
170
+ * Where one subscriber's registration with one partner has got to.
171
+ *
172
+ * A membership is an ENRICHMENT and never a gate: nothing in this lifecycle can
173
+ * stop an emergency reaching a partner. A subscriber whose membership is
174
+ * INCOMPLETE_PROFILE or FAILED still has an SOS raised for them, just without a
175
+ * member id attached.
176
+ */
177
+ export var PartnerMembershipStatus;
178
+ (function (PartnerMembershipStatus) {
179
+ /** Decided that this person needs registering; not yet created at the partner. */
180
+ PartnerMembershipStatus["PENDING"] = "PENDING";
181
+ /** Blocked on personal details the partner requires and the platform lacks. */
182
+ PartnerMembershipStatus["INCOMPLETE_PROFILE"] = "INCOMPLETE_PROFILE";
183
+ /** A registration call is in flight at the partner. */
184
+ PartnerMembershipStatus["PROVISIONING"] = "PROVISIONING";
185
+ /** The partner has issued a member id. */
186
+ PartnerMembershipStatus["ACTIVE"] = "ACTIVE";
187
+ /** Every attempt failed for a reason retrying cannot fix. */
188
+ PartnerMembershipStatus["FAILED"] = "FAILED";
189
+ /**
190
+ * A registration was made and its outcome is UNKNOWN - the reply was lost.
191
+ * Deliberately a dead end: retrying a call that may have succeeded is how
192
+ * one person acquires two memberships, and a duplicate cannot be undone at
193
+ * the partner.
194
+ */
195
+ PartnerMembershipStatus["NEEDS_REVIEW"] = "NEEDS_REVIEW";
196
+ /** The subscription behind it ended. The member is left in place at the partner. */
197
+ PartnerMembershipStatus["CANCELLED"] = "CANCELLED";
198
+ })(PartnerMembershipStatus || (PartnerMembershipStatus = {}));
199
+ /** Who a membership belongs to, in Clarion's own vocabulary. */
200
+ export var PartnerMembershipSubjectType;
201
+ (function (PartnerMembershipSubjectType) {
202
+ PartnerMembershipSubjectType["INDIVIDUAL_SUBSCRIBER"] = "INDIVIDUAL_SUBSCRIBER";
203
+ PartnerMembershipSubjectType["CORPORATE_MEMBER"] = "CORPORATE_MEMBER";
204
+ })(PartnerMembershipSubjectType || (PartnerMembershipSubjectType = {}));
205
+ /**
206
+ * A member's standing with the partner, reduced to something every screen can
207
+ * rely on without learning any partner's vocabulary.
208
+ *
209
+ * PENDING_ACTIVATION is the one that matters: a member can exist, hold a real
210
+ * member id, and still not be covered - Rescue.co returns a brand-new member as
211
+ * `waitingPeriod`. A screen that collapses the two tells a subscriber they are
212
+ * covered on the day they paid.
213
+ */
214
+ export var PartnerMemberState;
215
+ (function (PartnerMemberState) {
216
+ PartnerMemberState["PENDING_ACTIVATION"] = "PENDING_ACTIVATION";
217
+ PartnerMemberState["ACTIVE"] = "ACTIVE";
218
+ PartnerMemberState["SUSPENDED"] = "SUSPENDED";
219
+ PartnerMemberState["LAPSED"] = "LAPSED";
220
+ PartnerMemberState["UNKNOWN"] = "UNKNOWN";
221
+ })(PartnerMemberState || (PartnerMemberState = {}));
222
+ /** Which packages' subscribers a partnership registers. */
223
+ export var PartnerMembershipPackageScope;
224
+ (function (PartnerMembershipPackageScope) {
225
+ PartnerMembershipPackageScope["ALL"] = "ALL";
226
+ PartnerMembershipPackageScope["SELECTED"] = "SELECTED";
227
+ })(PartnerMembershipPackageScope || (PartnerMembershipPackageScope = {}));
228
+ /** Gender, in the platform's neutral vocabulary - never a partner's spelling. */
229
+ export var PartnerMemberGender;
230
+ (function (PartnerMemberGender) {
231
+ PartnerMemberGender["MALE"] = "MALE";
232
+ PartnerMemberGender["FEMALE"] = "FEMALE";
233
+ PartnerMemberGender["OTHER"] = "OTHER";
234
+ PartnerMemberGender["UNSPECIFIED"] = "UNSPECIFIED";
235
+ })(PartnerMemberGender || (PartnerMemberGender = {}));
236
+ /** The kind of identity document a partner membership records. */
237
+ export var PartnerMemberDocumentType;
238
+ (function (PartnerMemberDocumentType) {
239
+ PartnerMemberDocumentType["PASSPORT"] = "PASSPORT";
240
+ PartnerMemberDocumentType["NATIONAL_ID"] = "NATIONAL_ID";
241
+ PartnerMemberDocumentType["DRIVING_LICENCE"] = "DRIVING_LICENCE";
242
+ PartnerMemberDocumentType["OTHER"] = "OTHER";
243
+ })(PartnerMemberDocumentType || (PartnerMemberDocumentType = {}));
244
+ /**
245
+ * The provider-neutral facts about a person a partner membership may need.
246
+ *
247
+ * The VALUES are the property names on `PartnerMemberProfileDto`, which is what
248
+ * lets "which of this partner's required fields are missing?" be a generic loop
249
+ * in the admin rather than a per-partner if-ladder.
250
+ */
251
+ export var PartnerMemberProfileField;
252
+ (function (PartnerMemberProfileField) {
253
+ PartnerMemberProfileField["FULL_NAME"] = "fullName";
254
+ PartnerMemberProfileField["PHONE_NUMBER"] = "phoneNumber";
255
+ PartnerMemberProfileField["EMAIL"] = "email";
256
+ PartnerMemberProfileField["DATE_OF_BIRTH"] = "dateOfBirth";
257
+ PartnerMemberProfileField["GENDER"] = "gender";
258
+ PartnerMemberProfileField["DOCUMENT_TYPE"] = "documentType";
259
+ PartnerMemberProfileField["DOCUMENT_NUMBER"] = "documentNumber";
260
+ PartnerMemberProfileField["DOCUMENT_COUNTRY_CODE"] = "documentCountryCode";
261
+ })(PartnerMemberProfileField || (PartnerMemberProfileField = {}));
168
262
  //# sourceMappingURL=partner-enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"partner-enums.js","sourceRoot":"","sources":["../../../../../src/modules/partner/enums/partner-enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,oDAAoD;AACpD,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC3B,8CAAuB,CAAA;IACvB,kCAAW,CAAA;IACX,0CAAmB,CAAA;IACnB,oDAA6B,CAAA;AACjC,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AAED,sEAAsE;AACtE,MAAM,CAAN,IAAY,wBAQX;AARD,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IACvB,qEAAyC,CAAA;IACzC,2DAA+B,CAAA;IAC/B,mEAAuC,CAAA;IACvC,uEAA2C,CAAA;IAC3C,6CAAiB,CAAA;IACjB,2CAAe,CAAA;AACnB,CAAC,EARW,wBAAwB,KAAxB,wBAAwB,QAQnC;AAED,gEAAgE;AAChE,MAAM,CAAN,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC1B,+CAA+C;IAC/C,mCAAa,CAAA;IACb,0CAA0C;IAC1C,uCAAiB,CAAA;IACjB,0CAA0C;IAC1C,2CAAqB,CAAA;AACzB,CAAC,EAPW,kBAAkB,KAAlB,k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CAAA;IACjB,iDAAyB,CAAA;AAC7B,CAAC,EANW,oBAAoB,KAApB,oBAAoB,QAM/B"}
1
+ {"version":3,"file":"partner-enums.js","sourceRoot":"","sources":["../../../../../src/modules/partner/enums/partner-enums.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,oDAAoD;AACpD,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC3B,8CAAuB,CAAA;IACvB,kCAAW,CAAA;IACX,0CAAmB,CAAA;IACnB,oDAA6B,CAAA;AACjC,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B;AAED,sEAAsE;AACtE,MAAM,CAAN,IAAY,wBAQX;AARD,WAAY,wBAAwB;IAChC,mDAAuB,CAAA;IACvB,qEAAyC,CAAA;IACzC,2DAA+B,CAAA;IAC/B,mEAAuC,CAAA;IACvC,uEAA2C,CAAA;IAC3C,6CAAiB,CAAA;IACjB,2CAAe,CAAA;AACnB,CAAC,EARW,wBAAwB,KAAxB,wBAAwB,QAQnC;AAED,gEAAgE;AAChE,MAAM,CAAN,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC1B,+CAA+C;IAC/C,mCAAa,CAAA;IACb,0CAA0C;IAC1C,uCAAiB,CAAA;IACjB,0CAA0C;IAC1C,2CAAqB,CAAA;AACzB,CAAC,EAPW,kBAAkB,KAAlB,kBAAkB,QAO7B;AAED,iEAAiE;AACjE,MAAM,CAAN,IAAY,6BAGX;AAHD,WAAY,6BAA6B;IACrC,oDAAmB,CAAA;IACnB,0DAAyB,CAAA;AAC7B,CAAC,EAHW,6BAA6B,KAA7B,6BAA6B,QAGxC;AAED,sEAAsE;AACtE,MAAM,CAAN,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAChC,+CAAmB,CAAA;IACnB,+CAAmB,CAAA;IACnB,iDAAqB,CAAA;IACrB,uDAA2B,CAAA;AAC/B,CAAC,EALW,wBAAwB,KAAxB,wBAAwB,QAKnC;AAED,mDAAmD;AACnD,MAAM,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ATW,yBAAyB,KAAzB,yBAAyB,QASpC"}
@@ -7,6 +7,7 @@ export * from './interfaces/partner-coverage-rule.dto';
7
7
  export * from './interfaces/partner-dispatch-progress.dto';
8
8
  export * from './interfaces/partner-dispatch.dto';
9
9
  export * from './interfaces/incident-partner-routing.dto';
10
+ export * from './interfaces/partner-membership.dto';
10
11
  // Utilities
11
12
  export * from './utils/partner-display.util';
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/partner/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,uBAAuB,CAAC;AAEtC,oBAAoB;AACpB,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAE1D,YAAY;AACZ,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/partner/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,uBAAuB,CAAC;AAEtC,oBAAoB;AACpB,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,qCAAqC,CAAC;AAEpD,YAAY;AACZ,cAAc,8BAA8B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=partner-membership.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"partner-membership.dto.js","sourceRoot":"","sources":["../../../../../src/modules/partner/interfaces/partner-membership.dto.ts"],"names":[],"mappings":""}