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.
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/modules/partner/enums/partner-enums.js +95 -1
- package/dist/cjs/modules/partner/enums/partner-enums.js.map +1 -1
- package/dist/cjs/modules/partner/index.js +1 -0
- package/dist/cjs/modules/partner/index.js.map +1 -1
- package/dist/cjs/modules/partner/interfaces/partner-membership.dto.js +3 -0
- package/dist/cjs/modules/partner/interfaces/partner-membership.dto.js.map +1 -0
- package/dist/cjs/modules/partner/utils/partner-display.util.js +151 -1
- package/dist/cjs/modules/partner/utils/partner-display.util.js.map +1 -1
- package/dist/cjs/modules/permission/enums/permission-actions.enum.js +40 -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/partner/enums/partner-enums.js +94 -0
- package/dist/esm/modules/partner/enums/partner-enums.js.map +1 -1
- package/dist/esm/modules/partner/index.js +1 -0
- package/dist/esm/modules/partner/index.js.map +1 -1
- package/dist/esm/modules/partner/interfaces/partner-membership.dto.js +2 -0
- package/dist/esm/modules/partner/interfaces/partner-membership.dto.js.map +1 -0
- package/dist/esm/modules/partner/utils/partner-display.util.js +148 -1
- package/dist/esm/modules/partner/utils/partner-display.util.js.map +1 -1
- package/dist/esm/modules/permission/enums/permission-actions.enum.js +40 -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/partner/enums/partner-enums.d.ts +86 -0
- package/dist/types/modules/partner/index.d.ts +1 -0
- package/dist/types/modules/partner/interfaces/partner-integration.dto.d.ts +24 -1
- package/dist/types/modules/partner/interfaces/partner-membership.dto.d.ts +176 -0
- package/dist/types/modules/partner/interfaces/partner-provider.dto.d.ts +10 -0
- package/dist/types/modules/partner/utils/partner-display.util.d.ts +51 -1
- package/dist/types/modules/permission/enums/permission-actions.enum.d.ts +29 -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 +146 -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 +275 -0
- package/dist/types/modules/support/utils/support-display.util.d.ts +67 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IncidentPartnerRoutingStatus, PartnerEngagementState, PartnerCoverageMatchType, PartnerDispatchStatus, PartnerIntegrationStatus, PartnerRoutingMode, PartnerServiceCapability, } from '../enums/partner-enums';
|
|
1
|
+
import { IncidentPartnerRoutingStatus, PartnerEngagementState, PartnerCoverageMatchType, PartnerDispatchStatus, PartnerIntegrationStatus, PartnerMemberDocumentType, PartnerMemberGender, PartnerMemberProfileField, PartnerMemberState, PartnerMembershipPackageScope, PartnerMembershipStatus, PartnerMembershipSubjectType, PartnerRoutingMode, PartnerServiceCapability, } from '../enums/partner-enums';
|
|
2
2
|
/**
|
|
3
3
|
* Human labels for the partner enums.
|
|
4
4
|
*
|
|
@@ -131,4 +131,151 @@ export function partnerDispatchActions(status, capabilities = {}) {
|
|
|
131
131
|
status === PartnerDispatchStatus.EXPIRED,
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
+
// --- memberships ---------------------------------------------------------
|
|
135
|
+
/**
|
|
136
|
+
* How a membership's own lifecycle reads on screen.
|
|
137
|
+
*
|
|
138
|
+
* Worded as what an operator should DO, not as an internal state name. Nobody
|
|
139
|
+
* has to know what PROVISIONING means; they have to know whether somebody is
|
|
140
|
+
* waiting on them.
|
|
141
|
+
*/
|
|
142
|
+
export const PARTNER_MEMBERSHIP_STATUS_LABELS = {
|
|
143
|
+
[PartnerMembershipStatus.PENDING]: 'Waiting to register',
|
|
144
|
+
[PartnerMembershipStatus.INCOMPLETE_PROFILE]: 'Details needed',
|
|
145
|
+
[PartnerMembershipStatus.PROVISIONING]: 'Registering',
|
|
146
|
+
[PartnerMembershipStatus.ACTIVE]: 'Registered',
|
|
147
|
+
[PartnerMembershipStatus.FAILED]: 'Registration failed',
|
|
148
|
+
[PartnerMembershipStatus.NEEDS_REVIEW]: 'Check with partner',
|
|
149
|
+
[PartnerMembershipStatus.CANCELLED]: 'No longer covered',
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* How the PARTNER's own view of a member reads.
|
|
153
|
+
*
|
|
154
|
+
* Kept apart from the status above because the two answer different questions,
|
|
155
|
+
* and collapsing them is how somebody gets told they are covered on the day
|
|
156
|
+
* they paid: "Registered" means the partner has issued a member id, and
|
|
157
|
+
* "Waiting period" means their cover has not started.
|
|
158
|
+
*/
|
|
159
|
+
export const PARTNER_MEMBER_STATE_LABELS = {
|
|
160
|
+
[PartnerMemberState.PENDING_ACTIVATION]: 'Waiting period',
|
|
161
|
+
[PartnerMemberState.ACTIVE]: 'Cover active',
|
|
162
|
+
[PartnerMemberState.SUSPENDED]: 'Suspended by partner',
|
|
163
|
+
[PartnerMemberState.LAPSED]: 'Ended',
|
|
164
|
+
[PartnerMemberState.UNKNOWN]: 'Unknown',
|
|
165
|
+
};
|
|
166
|
+
export const PARTNER_MEMBERSHIP_SUBJECT_TYPE_LABELS = {
|
|
167
|
+
[PartnerMembershipSubjectType.INDIVIDUAL_SUBSCRIBER]: 'Individual subscriber',
|
|
168
|
+
[PartnerMembershipSubjectType.CORPORATE_MEMBER]: 'Corporate member',
|
|
169
|
+
};
|
|
170
|
+
export const PARTNER_MEMBERSHIP_PACKAGE_SCOPE_LABELS = {
|
|
171
|
+
[PartnerMembershipPackageScope.ALL]: 'Every package',
|
|
172
|
+
[PartnerMembershipPackageScope.SELECTED]: 'Selected packages only',
|
|
173
|
+
};
|
|
174
|
+
export const PARTNER_MEMBER_GENDER_LABELS = {
|
|
175
|
+
[PartnerMemberGender.MALE]: 'Male',
|
|
176
|
+
[PartnerMemberGender.FEMALE]: 'Female',
|
|
177
|
+
[PartnerMemberGender.OTHER]: 'Other',
|
|
178
|
+
[PartnerMemberGender.UNSPECIFIED]: 'Prefer not to say',
|
|
179
|
+
};
|
|
180
|
+
export const PARTNER_MEMBER_DOCUMENT_TYPE_LABELS = {
|
|
181
|
+
[PartnerMemberDocumentType.PASSPORT]: 'Passport',
|
|
182
|
+
[PartnerMemberDocumentType.NATIONAL_ID]: 'National ID',
|
|
183
|
+
[PartnerMemberDocumentType.DRIVING_LICENCE]: 'Driving licence',
|
|
184
|
+
[PartnerMemberDocumentType.OTHER]: 'Other document',
|
|
185
|
+
};
|
|
186
|
+
/** The provider-neutral profile fields, named for a person to read. */
|
|
187
|
+
export const PARTNER_MEMBER_PROFILE_FIELD_LABELS = {
|
|
188
|
+
[PartnerMemberProfileField.FULL_NAME]: 'Full name',
|
|
189
|
+
[PartnerMemberProfileField.PHONE_NUMBER]: 'Telephone number',
|
|
190
|
+
[PartnerMemberProfileField.EMAIL]: 'Email address',
|
|
191
|
+
[PartnerMemberProfileField.DATE_OF_BIRTH]: 'Date of birth',
|
|
192
|
+
[PartnerMemberProfileField.GENDER]: 'Gender',
|
|
193
|
+
[PartnerMemberProfileField.DOCUMENT_TYPE]: 'Identity document type',
|
|
194
|
+
[PartnerMemberProfileField.DOCUMENT_NUMBER]: 'Identity document number',
|
|
195
|
+
[PartnerMemberProfileField.DOCUMENT_COUNTRY_CODE]: 'Document country',
|
|
196
|
+
};
|
|
197
|
+
export function partnerMembershipStatusTone(status) {
|
|
198
|
+
switch (status) {
|
|
199
|
+
case PartnerMembershipStatus.ACTIVE:
|
|
200
|
+
return 'success';
|
|
201
|
+
// Both need a human, and both are the operator's to clear.
|
|
202
|
+
case PartnerMembershipStatus.INCOMPLETE_PROFILE:
|
|
203
|
+
case PartnerMembershipStatus.NEEDS_REVIEW:
|
|
204
|
+
return 'warn';
|
|
205
|
+
case PartnerMembershipStatus.FAILED:
|
|
206
|
+
return 'danger';
|
|
207
|
+
default:
|
|
208
|
+
return 'neutral';
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* One line saying what a membership is waiting on, or null when nothing is.
|
|
213
|
+
*
|
|
214
|
+
* The whole point of the membership screen. An operator should never have to
|
|
215
|
+
* open a record to find out whether it needs them, and should never be shown a
|
|
216
|
+
* partner's raw error where a plain sentence would do.
|
|
217
|
+
*/
|
|
218
|
+
export function describeMembershipAttention(membership) {
|
|
219
|
+
var _a, _b;
|
|
220
|
+
switch (membership.status) {
|
|
221
|
+
case PartnerMembershipStatus.INCOMPLETE_PROFILE: {
|
|
222
|
+
const fields = (_a = membership.unsatisfiedFields) !== null && _a !== void 0 ? _a : [];
|
|
223
|
+
if (fields.length === 0)
|
|
224
|
+
return 'Some details are still needed.';
|
|
225
|
+
const described = fields.map((entry) => {
|
|
226
|
+
var _a;
|
|
227
|
+
const label = (_a = PARTNER_MEMBER_PROFILE_FIELD_LABELS[entry.field]) !== null && _a !== void 0 ? _a : entry.field;
|
|
228
|
+
// "Missing" and "not usable" are different jobs: one is
|
|
229
|
+
// collecting a fact, the other correcting one.
|
|
230
|
+
return entry.reason === 'MALFORMED'
|
|
231
|
+
? `${label} is not usable`
|
|
232
|
+
: `${label} is missing`;
|
|
233
|
+
});
|
|
234
|
+
return `Cannot register yet: ${described.join(', ')}.`;
|
|
235
|
+
}
|
|
236
|
+
case PartnerMembershipStatus.NEEDS_REVIEW:
|
|
237
|
+
return ('A registration may already have reached the partner. Check with them before ' +
|
|
238
|
+
'trying again, otherwise this person could be registered twice.');
|
|
239
|
+
case PartnerMembershipStatus.FAILED:
|
|
240
|
+
return (_b = membership.lastErrorMessage) !== null && _b !== void 0 ? _b : 'The partner refused this registration.';
|
|
241
|
+
default:
|
|
242
|
+
return null;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* What the partner's cover actually says, in a sentence.
|
|
247
|
+
*
|
|
248
|
+
* Separate from the status chip because "registered" and "covered" are
|
|
249
|
+
* different facts, and a partner that starts a member on a waiting period would
|
|
250
|
+
* otherwise be reported as though cover began the day they paid.
|
|
251
|
+
*/
|
|
252
|
+
export function describeMembershipCover(membership) {
|
|
253
|
+
if (membership.status !== PartnerMembershipStatus.ACTIVE)
|
|
254
|
+
return null;
|
|
255
|
+
if (membership.coverActive)
|
|
256
|
+
return 'Cover is active with the partner.';
|
|
257
|
+
if (membership.memberState === PartnerMemberState.PENDING_ACTIVATION) {
|
|
258
|
+
return membership.coverageStartsAt
|
|
259
|
+
? `Registered — partner cover starts ${formatCoverDate(membership.coverageStartsAt)}.`
|
|
260
|
+
: 'Registered — the partner has not started cover yet.';
|
|
261
|
+
}
|
|
262
|
+
if (membership.memberState === PartnerMemberState.LAPSED) {
|
|
263
|
+
return 'The partner has ended this membership.';
|
|
264
|
+
}
|
|
265
|
+
if (membership.memberState === PartnerMemberState.SUSPENDED) {
|
|
266
|
+
return 'The partner has suspended this membership.';
|
|
267
|
+
}
|
|
268
|
+
return 'Registered with the partner.';
|
|
269
|
+
}
|
|
270
|
+
/** A date a person can read, falling back to the raw value rather than blanking it. */
|
|
271
|
+
function formatCoverDate(value) {
|
|
272
|
+
const parsed = new Date(value);
|
|
273
|
+
if (Number.isNaN(parsed.getTime()))
|
|
274
|
+
return value;
|
|
275
|
+
return parsed.toLocaleDateString(undefined, {
|
|
276
|
+
day: 'numeric',
|
|
277
|
+
month: 'short',
|
|
278
|
+
year: 'numeric',
|
|
279
|
+
});
|
|
280
|
+
}
|
|
134
281
|
//# sourceMappingURL=partner-display.util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partner-display.util.js","sourceRoot":"","sources":["../../../../../src/modules/partner/utils/partner-display.util.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,GAC3B,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"partner-display.util.js","sourceRoot":"","sources":["../../../../../src/modules/partner/utils/partner-display.util.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,4BAA4B,EAC5B,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,EAClB,6BAA6B,EAC7B,uBAAuB,EACvB,4BAA4B,EAC5B,kBAAkB,EAClB,wBAAwB,GAC3B,MAAM,wBAAwB,CAAC;AAGhC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAoD;IAC3F,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,EAAE,0BAA0B;IACpE,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,QAAQ;IACxC,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAAE,SAAS;IAC1C,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAE,iBAAiB;IAC/C,CAAC,qBAAqB,CAAC,YAAY,CAAC,EAAE,oBAAoB;IAC1D,CAAC,qBAAqB,CAAC,SAAS,CAAC,EAAE,mBAAmB;IACtD,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,QAAQ;IACxC,CAAC,qBAAqB,CAAC,QAA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AChE,CAAC;IACD,IAAI,UAAU,CAAC,WAAW,KAAK,kBAAkB,CAAC,MAAM,EAAE,CAAC;QACvD,OAAO,wCAAwC,CAAC;IACpD,CAAC;IACD,IAAI,UAAU,CAAC,WAAW,KAAK,kBAAkB,CAAC,SAAS,EAAE,CAAC;QAC1D,OAAO,4CAA4C,CAAC;IACxD,CAAC;IACD,OAAO,8BAA8B,CAAC;AAC1C,CAAC;AAED,uFAAuF;AACvF,SAAS,eAAe,CAAC,KAAa;IAClC,MAAM,MAAM,GAAG,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IAC/B,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QAAE,OAAO,KAAK,CAAC;IACjD,OAAO,MAAM,CAAC,kBAAkB,CAAC,SAAS,EAAE;QACxC,GAAG,EAAE,SAAS;QACd,KAAK,EAAE,OAAO;QACd,IAAI,EAAE,SAAS;KAClB,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -10,6 +10,19 @@ export var PermissionActions;
|
|
|
10
10
|
PermissionActions["READ_PARTNER"] = "read:partner";
|
|
11
11
|
PermissionActions["UPDATE_PARTNER"] = "update:partner";
|
|
12
12
|
PermissionActions["DELETE_PARTNER"] = "delete:partner";
|
|
13
|
+
// Acting on one routed emergency. These existed on the backend and were
|
|
14
|
+
// never mirrored here, so the admin could not gate on them at all.
|
|
15
|
+
PermissionActions["READ_PARTNER_DISPATCH"] = "read:partner-dispatch";
|
|
16
|
+
PermissionActions["APPROVE_PARTNER_DISPATCH"] = "approve:partner-dispatch";
|
|
17
|
+
PermissionActions["UPDATE_PARTNER_DISPATCH"] = "update:partner-dispatch";
|
|
18
|
+
PermissionActions["CANCEL_PARTNER_DISPATCH"] = "cancel:partner-dispatch";
|
|
19
|
+
PermissionActions["RESEND_PARTNER_DISPATCH"] = "resend:partner-dispatch";
|
|
20
|
+
// Registering a subscriber with a partner. Kept apart from the partnership
|
|
21
|
+
// CRUD actions because a membership record carries a person's date of birth
|
|
22
|
+
// and identity document, which is a materially different thing to be
|
|
23
|
+
// allowed to read than a base URL and a coverage rule.
|
|
24
|
+
PermissionActions["READ_PARTNER_MEMBERSHIP"] = "read:partner-membership";
|
|
25
|
+
PermissionActions["MANAGE_PARTNER_MEMBERSHIP"] = "manage:partner-membership";
|
|
13
26
|
// Module: ControlCentre
|
|
14
27
|
PermissionActions["CREATE_CONTROL_CENTRE"] = "create:control-centre";
|
|
15
28
|
PermissionActions["READ_CONTROL_CENTRE"] = "read:control-centre";
|
|
@@ -39,5 +52,32 @@ export var PermissionActions;
|
|
|
39
52
|
PermissionActions["READ_RESPONSE_UNIT"] = "read:response-unit";
|
|
40
53
|
PermissionActions["UPDATE_RESPONSE_UNIT"] = "update:response-unit";
|
|
41
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";
|
|
42
82
|
})(PermissionActions || (PermissionActions = {}));
|
|
43
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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;IACrD,kEAA6C,CAAA;IAC7C,gEAA2C,CAAA;IAC3C,8DAAyC,CAAA;IACzC,kFAA6D,CAAA;IAC7D,gEAA2C,CAAA;IAC3C,4DAAuC,CAAA;IACvC,gEAA2C,CAAA;AAC/C,CAAC,EAvFW,iBAAiB,KAAjB,iBAAiB,QAuF5B"}
|
|
@@ -7,5 +7,6 @@ export var PermissionsModule;
|
|
|
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"}
|
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Frontend mirrors of the support enums in grm-shared-library.
|
|
3
|
+
*
|
|
4
|
+
* Kept in ONE file rather than one per enum: the admin's support console
|
|
5
|
+
* imports most of them together and the set only means anything as a whole. The
|
|
6
|
+
* values are byte-identical to the backend's, because they travel over the wire
|
|
7
|
+
* as strings and any drift would show up as a silently unstyled chip rather
|
|
8
|
+
* than a compile error.
|
|
9
|
+
*/
|
|
10
|
+
/** The helpdesk a deployment mirrors tickets to, if any. */
|
|
11
|
+
export var SupportProviderCode;
|
|
12
|
+
(function (SupportProviderCode) {
|
|
13
|
+
SupportProviderCode["ZAMMAD"] = "ZAMMAD";
|
|
14
|
+
SupportProviderCode["FRESHDESK"] = "FRESHDESK";
|
|
15
|
+
/** No external helpdesk. Clarion is the whole system of record. */
|
|
16
|
+
SupportProviderCode["NONE"] = "NONE";
|
|
17
|
+
})(SupportProviderCode || (SupportProviderCode = {}));
|
|
18
|
+
/** What a helpdesk adapter is able to do. The admin builds its buttons from this. */
|
|
19
|
+
export var SupportProviderCapability;
|
|
20
|
+
(function (SupportProviderCapability) {
|
|
21
|
+
SupportProviderCapability["CREATE_TICKET"] = "CREATE_TICKET";
|
|
22
|
+
SupportProviderCapability["UPDATE_TICKET"] = "UPDATE_TICKET";
|
|
23
|
+
SupportProviderCapability["PUBLIC_REPLY"] = "PUBLIC_REPLY";
|
|
24
|
+
SupportProviderCapability["INTERNAL_NOTE"] = "INTERNAL_NOTE";
|
|
25
|
+
SupportProviderCapability["ASSIGN_TICKET"] = "ASSIGN_TICKET";
|
|
26
|
+
SupportProviderCapability["CHANGE_STATUS"] = "CHANGE_STATUS";
|
|
27
|
+
SupportProviderCapability["CLOSE_REOPEN"] = "CLOSE_REOPEN";
|
|
28
|
+
SupportProviderCapability["ATTACHMENTS"] = "ATTACHMENTS";
|
|
29
|
+
SupportProviderCapability["CONTACTS"] = "CONTACTS";
|
|
30
|
+
SupportProviderCapability["SEARCH"] = "SEARCH";
|
|
31
|
+
SupportProviderCapability["WEBHOOKS"] = "WEBHOOKS";
|
|
32
|
+
SupportProviderCapability["FETCH_TICKET"] = "FETCH_TICKET";
|
|
33
|
+
})(SupportProviderCapability || (SupportProviderCapability = {}));
|
|
34
|
+
/** Lifecycle of a support ticket. */
|
|
35
|
+
export var SupportTicketStatus;
|
|
36
|
+
(function (SupportTicketStatus) {
|
|
37
|
+
SupportTicketStatus["NEW"] = "NEW";
|
|
38
|
+
SupportTicketStatus["OPEN"] = "OPEN";
|
|
39
|
+
SupportTicketStatus["ASSIGNED"] = "ASSIGNED";
|
|
40
|
+
SupportTicketStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
41
|
+
SupportTicketStatus["WAITING_ON_CUSTOMER"] = "WAITING_ON_CUSTOMER";
|
|
42
|
+
SupportTicketStatus["WAITING_ON_INTERNAL_TEAM"] = "WAITING_ON_INTERNAL_TEAM";
|
|
43
|
+
SupportTicketStatus["RESOLVED"] = "RESOLVED";
|
|
44
|
+
SupportTicketStatus["CLOSED"] = "CLOSED";
|
|
45
|
+
SupportTicketStatus["REOPENED"] = "REOPENED";
|
|
46
|
+
SupportTicketStatus["CANCELLED"] = "CANCELLED";
|
|
47
|
+
})(SupportTicketStatus || (SupportTicketStatus = {}));
|
|
48
|
+
/** How urgently a ticket needs answering. */
|
|
49
|
+
export var SupportTicketPriority;
|
|
50
|
+
(function (SupportTicketPriority) {
|
|
51
|
+
SupportTicketPriority["CRITICAL"] = "CRITICAL";
|
|
52
|
+
SupportTicketPriority["URGENT"] = "URGENT";
|
|
53
|
+
SupportTicketPriority["HIGH"] = "HIGH";
|
|
54
|
+
SupportTicketPriority["NORMAL"] = "NORMAL";
|
|
55
|
+
SupportTicketPriority["LOW"] = "LOW";
|
|
56
|
+
})(SupportTicketPriority || (SupportTicketPriority = {}));
|
|
57
|
+
/** How a ticket reached Clarion. */
|
|
58
|
+
export var SupportTicketChannel;
|
|
59
|
+
(function (SupportTicketChannel) {
|
|
60
|
+
SupportTicketChannel["MOBILE_APP"] = "MOBILE_APP";
|
|
61
|
+
SupportTicketChannel["WEB_APP"] = "WEB_APP";
|
|
62
|
+
SupportTicketChannel["AGENT_PORTAL"] = "AGENT_PORTAL";
|
|
63
|
+
SupportTicketChannel["PROVIDER"] = "PROVIDER";
|
|
64
|
+
SupportTicketChannel["EMAIL"] = "EMAIL";
|
|
65
|
+
SupportTicketChannel["PHONE"] = "PHONE";
|
|
66
|
+
SupportTicketChannel["SMS"] = "SMS";
|
|
67
|
+
SupportTicketChannel["CHAT"] = "CHAT";
|
|
68
|
+
SupportTicketChannel["SYSTEM"] = "SYSTEM";
|
|
69
|
+
SupportTicketChannel["API"] = "API";
|
|
70
|
+
})(SupportTicketChannel || (SupportTicketChannel = {}));
|
|
71
|
+
/** Who or what caused the ticket to exist. */
|
|
72
|
+
export var SupportTicketSource;
|
|
73
|
+
(function (SupportTicketSource) {
|
|
74
|
+
SupportTicketSource["CUSTOMER"] = "CUSTOMER";
|
|
75
|
+
SupportTicketSource["AGENT"] = "AGENT";
|
|
76
|
+
SupportTicketSource["SYSTEM"] = "SYSTEM";
|
|
77
|
+
SupportTicketSource["FEEDBACK_CONVERSION"] = "FEEDBACK_CONVERSION";
|
|
78
|
+
SupportTicketSource["PROVIDER_SYNC"] = "PROVIDER_SYNC";
|
|
79
|
+
SupportTicketSource["CHAT_ESCALATION"] = "CHAT_ESCALATION";
|
|
80
|
+
})(SupportTicketSource || (SupportTicketSource = {}));
|
|
81
|
+
/**
|
|
82
|
+
* What kind of entry a conversation item is.
|
|
83
|
+
*
|
|
84
|
+
* INTERNAL_NOTE is the one the UI must never render on a customer-facing
|
|
85
|
+
* surface. The admin styles it distinctly for the same reason - an agent who
|
|
86
|
+
* cannot tell at a glance which entries the customer can see will eventually
|
|
87
|
+
* write the wrong thing in the wrong box.
|
|
88
|
+
*/
|
|
89
|
+
export var SupportTicketMessageType;
|
|
90
|
+
(function (SupportTicketMessageType) {
|
|
91
|
+
SupportTicketMessageType["CUSTOMER_MESSAGE"] = "CUSTOMER_MESSAGE";
|
|
92
|
+
SupportTicketMessageType["AGENT_REPLY"] = "AGENT_REPLY";
|
|
93
|
+
SupportTicketMessageType["INTERNAL_NOTE"] = "INTERNAL_NOTE";
|
|
94
|
+
SupportTicketMessageType["SYSTEM_MESSAGE"] = "SYSTEM_MESSAGE";
|
|
95
|
+
SupportTicketMessageType["STATUS_MESSAGE"] = "STATUS_MESSAGE";
|
|
96
|
+
})(SupportTicketMessageType || (SupportTicketMessageType = {}));
|
|
97
|
+
/** Who wrote a conversation entry. */
|
|
98
|
+
export var SupportMessageAuthorType;
|
|
99
|
+
(function (SupportMessageAuthorType) {
|
|
100
|
+
SupportMessageAuthorType["CUSTOMER"] = "CUSTOMER";
|
|
101
|
+
SupportMessageAuthorType["AGENT"] = "AGENT";
|
|
102
|
+
SupportMessageAuthorType["SYSTEM"] = "SYSTEM";
|
|
103
|
+
SupportMessageAuthorType["PROVIDER_AGENT"] = "PROVIDER_AGENT";
|
|
104
|
+
})(SupportMessageAuthorType || (SupportMessageAuthorType = {}));
|
|
105
|
+
/** Whether an entry was written here or arrived from the helpdesk. */
|
|
106
|
+
export var SupportMessageOrigin;
|
|
107
|
+
(function (SupportMessageOrigin) {
|
|
108
|
+
SupportMessageOrigin["CLARION"] = "CLARION";
|
|
109
|
+
SupportMessageOrigin["PROVIDER"] = "PROVIDER";
|
|
110
|
+
})(SupportMessageOrigin || (SupportMessageOrigin = {}));
|
|
111
|
+
/** Where a ticket stands against one SLA target. */
|
|
112
|
+
export var SupportSlaState;
|
|
113
|
+
(function (SupportSlaState) {
|
|
114
|
+
SupportSlaState["ON_TRACK"] = "ON_TRACK";
|
|
115
|
+
SupportSlaState["WARNING"] = "WARNING";
|
|
116
|
+
SupportSlaState["BREACHED"] = "BREACHED";
|
|
117
|
+
SupportSlaState["PAUSED"] = "PAUSED";
|
|
118
|
+
SupportSlaState["MET"] = "MET";
|
|
119
|
+
SupportSlaState["NOT_APPLICABLE"] = "NOT_APPLICABLE";
|
|
120
|
+
})(SupportSlaState || (SupportSlaState = {}));
|
|
121
|
+
/** Which clock a state describes. */
|
|
122
|
+
export var SupportSlaTarget;
|
|
123
|
+
(function (SupportSlaTarget) {
|
|
124
|
+
SupportSlaTarget["FIRST_RESPONSE"] = "FIRST_RESPONSE";
|
|
125
|
+
SupportSlaTarget["RESOLUTION"] = "RESOLUTION";
|
|
126
|
+
})(SupportSlaTarget || (SupportSlaTarget = {}));
|
|
127
|
+
/** How a policy measures elapsed time. */
|
|
128
|
+
export var SupportSlaClock;
|
|
129
|
+
(function (SupportSlaClock) {
|
|
130
|
+
SupportSlaClock["CALENDAR"] = "CALENDAR";
|
|
131
|
+
SupportSlaClock["BUSINESS"] = "BUSINESS";
|
|
132
|
+
})(SupportSlaClock || (SupportSlaClock = {}));
|
|
133
|
+
/** What a customer is telling us. */
|
|
134
|
+
export var CustomerFeedbackType;
|
|
135
|
+
(function (CustomerFeedbackType) {
|
|
136
|
+
CustomerFeedbackType["BUG_REPORT"] = "BUG_REPORT";
|
|
137
|
+
CustomerFeedbackType["FEATURE_REQUEST"] = "FEATURE_REQUEST";
|
|
138
|
+
CustomerFeedbackType["COMPLAINT"] = "COMPLAINT";
|
|
139
|
+
CustomerFeedbackType["COMPLIMENT"] = "COMPLIMENT";
|
|
140
|
+
CustomerFeedbackType["GENERAL"] = "GENERAL";
|
|
141
|
+
CustomerFeedbackType["SERVICE_RATING"] = "SERVICE_RATING";
|
|
142
|
+
CustomerFeedbackType["SUPPORT_RATING"] = "SUPPORT_RATING";
|
|
143
|
+
})(CustomerFeedbackType || (CustomerFeedbackType = {}));
|
|
144
|
+
/** Where a piece of feedback is in its review workflow. */
|
|
145
|
+
export var CustomerFeedbackStatus;
|
|
146
|
+
(function (CustomerFeedbackStatus) {
|
|
147
|
+
CustomerFeedbackStatus["NEW"] = "NEW";
|
|
148
|
+
CustomerFeedbackStatus["UNDER_REVIEW"] = "UNDER_REVIEW";
|
|
149
|
+
CustomerFeedbackStatus["ACKNOWLEDGED"] = "ACKNOWLEDGED";
|
|
150
|
+
CustomerFeedbackStatus["RESPONDED"] = "RESPONDED";
|
|
151
|
+
CustomerFeedbackStatus["CONVERTED_TO_TICKET"] = "CONVERTED_TO_TICKET";
|
|
152
|
+
CustomerFeedbackStatus["CLOSED"] = "CLOSED";
|
|
153
|
+
CustomerFeedbackStatus["DISMISSED"] = "DISMISSED";
|
|
154
|
+
})(CustomerFeedbackStatus || (CustomerFeedbackStatus = {}));
|
|
155
|
+
/** Where the feedback was submitted from. */
|
|
156
|
+
export var CustomerFeedbackChannel;
|
|
157
|
+
(function (CustomerFeedbackChannel) {
|
|
158
|
+
CustomerFeedbackChannel["MOBILE_APP"] = "MOBILE_APP";
|
|
159
|
+
CustomerFeedbackChannel["WEB_APP"] = "WEB_APP";
|
|
160
|
+
CustomerFeedbackChannel["AGENT_PORTAL"] = "AGENT_PORTAL";
|
|
161
|
+
CustomerFeedbackChannel["API"] = "API";
|
|
162
|
+
})(CustomerFeedbackChannel || (CustomerFeedbackChannel = {}));
|
|
163
|
+
/** Coarse sentiment, derived from type and rating - never from the message text. */
|
|
164
|
+
export var CustomerFeedbackSentiment;
|
|
165
|
+
(function (CustomerFeedbackSentiment) {
|
|
166
|
+
CustomerFeedbackSentiment["POSITIVE"] = "POSITIVE";
|
|
167
|
+
CustomerFeedbackSentiment["NEUTRAL"] = "NEUTRAL";
|
|
168
|
+
CustomerFeedbackSentiment["NEGATIVE"] = "NEGATIVE";
|
|
169
|
+
CustomerFeedbackSentiment["UNKNOWN"] = "UNKNOWN";
|
|
170
|
+
})(CustomerFeedbackSentiment || (CustomerFeedbackSentiment = {}));
|
|
171
|
+
/** Who wrote an entry in a feedback thread. */
|
|
172
|
+
export var CustomerFeedbackMessageAuthorType;
|
|
173
|
+
(function (CustomerFeedbackMessageAuthorType) {
|
|
174
|
+
CustomerFeedbackMessageAuthorType["CUSTOMER"] = "CUSTOMER";
|
|
175
|
+
CustomerFeedbackMessageAuthorType["REVIEWER"] = "REVIEWER";
|
|
176
|
+
CustomerFeedbackMessageAuthorType["SYSTEM"] = "SYSTEM";
|
|
177
|
+
})(CustomerFeedbackMessageAuthorType || (CustomerFeedbackMessageAuthorType = {}));
|
|
178
|
+
/** The kind of Clarion record a ticket or a piece of feedback is about. */
|
|
179
|
+
export var SupportRelatedEntityType;
|
|
180
|
+
(function (SupportRelatedEntityType) {
|
|
181
|
+
SupportRelatedEntityType["INCIDENT"] = "INCIDENT";
|
|
182
|
+
SupportRelatedEntityType["BILLING_SUBSCRIPTION"] = "BILLING_SUBSCRIPTION";
|
|
183
|
+
SupportRelatedEntityType["BILLING_INVOICE"] = "BILLING_INVOICE";
|
|
184
|
+
SupportRelatedEntityType["BILLING_PAYMENT"] = "BILLING_PAYMENT";
|
|
185
|
+
SupportRelatedEntityType["BILLING_PACKAGE"] = "BILLING_PACKAGE";
|
|
186
|
+
SupportRelatedEntityType["CHAT_CONVERSATION"] = "CHAT_CONVERSATION";
|
|
187
|
+
SupportRelatedEntityType["NEWSFEED_POST"] = "NEWSFEED_POST";
|
|
188
|
+
SupportRelatedEntityType["NEWSFEED_COMMENT"] = "NEWSFEED_COMMENT";
|
|
189
|
+
SupportRelatedEntityType["PARTNER_DISPATCH"] = "PARTNER_DISPATCH";
|
|
190
|
+
SupportRelatedEntityType["RESPONSE_UNIT"] = "RESPONSE_UNIT";
|
|
191
|
+
SupportRelatedEntityType["ORGANIZATION"] = "ORGANIZATION";
|
|
192
|
+
SupportRelatedEntityType["USER"] = "USER";
|
|
193
|
+
SupportRelatedEntityType["APP_SCREEN"] = "APP_SCREEN";
|
|
194
|
+
SupportRelatedEntityType["SUPPORT_TICKET"] = "SUPPORT_TICKET";
|
|
195
|
+
SupportRelatedEntityType["CUSTOMER_FEEDBACK"] = "CUSTOMER_FEEDBACK";
|
|
196
|
+
SupportRelatedEntityType["OTHER"] = "OTHER";
|
|
197
|
+
})(SupportRelatedEntityType || (SupportRelatedEntityType = {}));
|
|
198
|
+
/** Which Clarion record a synchronization row is mirroring. */
|
|
199
|
+
export var SupportSyncEntityType;
|
|
200
|
+
(function (SupportSyncEntityType) {
|
|
201
|
+
SupportSyncEntityType["TICKET"] = "TICKET";
|
|
202
|
+
SupportSyncEntityType["MESSAGE"] = "MESSAGE";
|
|
203
|
+
SupportSyncEntityType["ATTACHMENT"] = "ATTACHMENT";
|
|
204
|
+
SupportSyncEntityType["CONTACT"] = "CONTACT";
|
|
205
|
+
})(SupportSyncEntityType || (SupportSyncEntityType = {}));
|
|
206
|
+
/** What a synchronization row is trying to do at the provider. */
|
|
207
|
+
export var SupportSyncOperation;
|
|
208
|
+
(function (SupportSyncOperation) {
|
|
209
|
+
SupportSyncOperation["UPSERT_CONTACT"] = "UPSERT_CONTACT";
|
|
210
|
+
SupportSyncOperation["CREATE_TICKET"] = "CREATE_TICKET";
|
|
211
|
+
SupportSyncOperation["UPDATE_TICKET"] = "UPDATE_TICKET";
|
|
212
|
+
SupportSyncOperation["ADD_PUBLIC_REPLY"] = "ADD_PUBLIC_REPLY";
|
|
213
|
+
SupportSyncOperation["ADD_INTERNAL_NOTE"] = "ADD_INTERNAL_NOTE";
|
|
214
|
+
SupportSyncOperation["ASSIGN_TICKET"] = "ASSIGN_TICKET";
|
|
215
|
+
SupportSyncOperation["CHANGE_STATUS"] = "CHANGE_STATUS";
|
|
216
|
+
SupportSyncOperation["ADD_ATTACHMENT"] = "ADD_ATTACHMENT";
|
|
217
|
+
SupportSyncOperation["CLOSE_TICKET"] = "CLOSE_TICKET";
|
|
218
|
+
SupportSyncOperation["REOPEN_TICKET"] = "REOPEN_TICKET";
|
|
219
|
+
SupportSyncOperation["FETCH_TICKET"] = "FETCH_TICKET";
|
|
220
|
+
})(SupportSyncOperation || (SupportSyncOperation = {}));
|
|
221
|
+
/** Where a synchronization row has got to. */
|
|
222
|
+
export var SupportSyncStatus;
|
|
223
|
+
(function (SupportSyncStatus) {
|
|
224
|
+
SupportSyncStatus["PENDING"] = "PENDING";
|
|
225
|
+
SupportSyncStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
226
|
+
SupportSyncStatus["SUCCEEDED"] = "SUCCEEDED";
|
|
227
|
+
SupportSyncStatus["FAILED"] = "FAILED";
|
|
228
|
+
SupportSyncStatus["DEAD_LETTER"] = "DEAD_LETTER";
|
|
229
|
+
SupportSyncStatus["SKIPPED"] = "SKIPPED";
|
|
230
|
+
SupportSyncStatus["SUPERSEDED"] = "SUPERSEDED";
|
|
231
|
+
})(SupportSyncStatus || (SupportSyncStatus = {}));
|
|
232
|
+
/** Why a synchronization attempt failed. */
|
|
233
|
+
export var SupportSyncFailureReason;
|
|
234
|
+
(function (SupportSyncFailureReason) {
|
|
235
|
+
SupportSyncFailureReason["AUTHENTICATION_FAILED"] = "AUTHENTICATION_FAILED";
|
|
236
|
+
SupportSyncFailureReason["AUTHORIZATION_FAILED"] = "AUTHORIZATION_FAILED";
|
|
237
|
+
SupportSyncFailureReason["INVALID_PAYLOAD"] = "INVALID_PAYLOAD";
|
|
238
|
+
SupportSyncFailureReason["NOT_FOUND"] = "NOT_FOUND";
|
|
239
|
+
SupportSyncFailureReason["PROVIDER_REJECTED"] = "PROVIDER_REJECTED";
|
|
240
|
+
SupportSyncFailureReason["RATE_LIMITED"] = "RATE_LIMITED";
|
|
241
|
+
SupportSyncFailureReason["PROVIDER_UNAVAILABLE"] = "PROVIDER_UNAVAILABLE";
|
|
242
|
+
SupportSyncFailureReason["TIMEOUT"] = "TIMEOUT";
|
|
243
|
+
SupportSyncFailureReason["CIRCUIT_OPEN"] = "CIRCUIT_OPEN";
|
|
244
|
+
SupportSyncFailureReason["PROVIDER_NOT_CONFIGURED"] = "PROVIDER_NOT_CONFIGURED";
|
|
245
|
+
SupportSyncFailureReason["UNREADABLE_SUCCESS"] = "UNREADABLE_SUCCESS";
|
|
246
|
+
SupportSyncFailureReason["UNKNOWN"] = "UNKNOWN";
|
|
247
|
+
})(SupportSyncFailureReason || (SupportSyncFailureReason = {}));
|
|
248
|
+
/** How a provider webhook delivery was handled. */
|
|
249
|
+
export var SupportWebhookStatus;
|
|
250
|
+
(function (SupportWebhookStatus) {
|
|
251
|
+
SupportWebhookStatus["RECEIVED"] = "RECEIVED";
|
|
252
|
+
SupportWebhookStatus["PROCESSED"] = "PROCESSED";
|
|
253
|
+
SupportWebhookStatus["DUPLICATE"] = "DUPLICATE";
|
|
254
|
+
SupportWebhookStatus["IGNORED"] = "IGNORED";
|
|
255
|
+
SupportWebhookStatus["REJECTED"] = "REJECTED";
|
|
256
|
+
SupportWebhookStatus["FAILED"] = "FAILED";
|
|
257
|
+
})(SupportWebhookStatus || (SupportWebhookStatus = {}));
|
|
258
|
+
/** How a queue hands a ticket to an agent. Only MANUAL is honoured today. */
|
|
259
|
+
export var SupportQueueAssignmentStrategy;
|
|
260
|
+
(function (SupportQueueAssignmentStrategy) {
|
|
261
|
+
SupportQueueAssignmentStrategy["MANUAL"] = "MANUAL";
|
|
262
|
+
SupportQueueAssignmentStrategy["ROUND_ROBIN"] = "ROUND_ROBIN";
|
|
263
|
+
SupportQueueAssignmentStrategy["LEAST_BUSY"] = "LEAST_BUSY";
|
|
264
|
+
})(SupportQueueAssignmentStrategy || (SupportQueueAssignmentStrategy = {}));
|
|
265
|
+
/** What a routing rule matches on. */
|
|
266
|
+
export var SupportRoutingMatchType;
|
|
267
|
+
(function (SupportRoutingMatchType) {
|
|
268
|
+
SupportRoutingMatchType["ANY"] = "ANY";
|
|
269
|
+
SupportRoutingMatchType["CATEGORY"] = "CATEGORY";
|
|
270
|
+
SupportRoutingMatchType["PRIORITY"] = "PRIORITY";
|
|
271
|
+
SupportRoutingMatchType["CHANNEL"] = "CHANNEL";
|
|
272
|
+
SupportRoutingMatchType["COUNTRY"] = "COUNTRY";
|
|
273
|
+
SupportRoutingMatchType["CONTROL_CENTRE"] = "CONTROL_CENTRE";
|
|
274
|
+
SupportRoutingMatchType["APP_ID"] = "APP_ID";
|
|
275
|
+
SupportRoutingMatchType["RELATED_ENTITY_TYPE"] = "RELATED_ENTITY_TYPE";
|
|
276
|
+
})(SupportRoutingMatchType || (SupportRoutingMatchType = {}));
|
|
277
|
+
/** A support person's standing inside a team. */
|
|
278
|
+
export var SupportTeamMemberRole;
|
|
279
|
+
(function (SupportTeamMemberRole) {
|
|
280
|
+
SupportTeamMemberRole["AGENT"] = "AGENT";
|
|
281
|
+
SupportTeamMemberRole["SUPERVISOR"] = "SUPERVISOR";
|
|
282
|
+
SupportTeamMemberRole["MANAGER"] = "MANAGER";
|
|
283
|
+
})(SupportTeamMemberRole || (SupportTeamMemberRole = {}));
|
|
284
|
+
/** Every audited support action, as a closed vocabulary the admin can filter on. */
|
|
285
|
+
export var SupportAuditAction;
|
|
286
|
+
(function (SupportAuditAction) {
|
|
287
|
+
SupportAuditAction["TICKET_CREATED"] = "TICKET_CREATED";
|
|
288
|
+
SupportAuditAction["TICKET_UPDATED"] = "TICKET_UPDATED";
|
|
289
|
+
SupportAuditAction["TICKET_ASSIGNED"] = "TICKET_ASSIGNED";
|
|
290
|
+
SupportAuditAction["TICKET_REASSIGNED"] = "TICKET_REASSIGNED";
|
|
291
|
+
SupportAuditAction["TICKET_UNASSIGNED"] = "TICKET_UNASSIGNED";
|
|
292
|
+
SupportAuditAction["TICKET_STATUS_CHANGED"] = "TICKET_STATUS_CHANGED";
|
|
293
|
+
SupportAuditAction["TICKET_PRIORITY_CHANGED"] = "TICKET_PRIORITY_CHANGED";
|
|
294
|
+
SupportAuditAction["TICKET_CATEGORY_CHANGED"] = "TICKET_CATEGORY_CHANGED";
|
|
295
|
+
SupportAuditAction["TICKET_QUEUE_CHANGED"] = "TICKET_QUEUE_CHANGED";
|
|
296
|
+
SupportAuditAction["TICKET_CLOSED"] = "TICKET_CLOSED";
|
|
297
|
+
SupportAuditAction["TICKET_REOPENED"] = "TICKET_REOPENED";
|
|
298
|
+
SupportAuditAction["TICKET_CANCELLED"] = "TICKET_CANCELLED";
|
|
299
|
+
SupportAuditAction["TICKET_TAGGED"] = "TICKET_TAGGED";
|
|
300
|
+
SupportAuditAction["TICKET_UNTAGGED"] = "TICKET_UNTAGGED";
|
|
301
|
+
SupportAuditAction["TICKET_WATCHER_ADDED"] = "TICKET_WATCHER_ADDED";
|
|
302
|
+
SupportAuditAction["TICKET_WATCHER_REMOVED"] = "TICKET_WATCHER_REMOVED";
|
|
303
|
+
SupportAuditAction["MESSAGE_ADDED"] = "MESSAGE_ADDED";
|
|
304
|
+
SupportAuditAction["INTERNAL_NOTE_ADDED"] = "INTERNAL_NOTE_ADDED";
|
|
305
|
+
SupportAuditAction["ATTACHMENT_ADDED"] = "ATTACHMENT_ADDED";
|
|
306
|
+
SupportAuditAction["ATTACHMENT_ACCESSED"] = "ATTACHMENT_ACCESSED";
|
|
307
|
+
SupportAuditAction["ATTACHMENT_REMOVED"] = "ATTACHMENT_REMOVED";
|
|
308
|
+
SupportAuditAction["FEEDBACK_CREATED"] = "FEEDBACK_CREATED";
|
|
309
|
+
SupportAuditAction["FEEDBACK_REVIEWED"] = "FEEDBACK_REVIEWED";
|
|
310
|
+
SupportAuditAction["FEEDBACK_RESPONDED"] = "FEEDBACK_RESPONDED";
|
|
311
|
+
SupportAuditAction["FEEDBACK_STATUS_CHANGED"] = "FEEDBACK_STATUS_CHANGED";
|
|
312
|
+
SupportAuditAction["FEEDBACK_CONVERTED_TO_TICKET"] = "FEEDBACK_CONVERTED_TO_TICKET";
|
|
313
|
+
SupportAuditAction["SLA_WARNING_RAISED"] = "SLA_WARNING_RAISED";
|
|
314
|
+
SupportAuditAction["SLA_BREACHED"] = "SLA_BREACHED";
|
|
315
|
+
SupportAuditAction["SLA_POLICY_CREATED"] = "SLA_POLICY_CREATED";
|
|
316
|
+
SupportAuditAction["SLA_POLICY_UPDATED"] = "SLA_POLICY_UPDATED";
|
|
317
|
+
SupportAuditAction["SLA_POLICY_DELETED"] = "SLA_POLICY_DELETED";
|
|
318
|
+
SupportAuditAction["QUEUE_CREATED"] = "QUEUE_CREATED";
|
|
319
|
+
SupportAuditAction["QUEUE_UPDATED"] = "QUEUE_UPDATED";
|
|
320
|
+
SupportAuditAction["QUEUE_DELETED"] = "QUEUE_DELETED";
|
|
321
|
+
SupportAuditAction["TEAM_CREATED"] = "TEAM_CREATED";
|
|
322
|
+
SupportAuditAction["TEAM_UPDATED"] = "TEAM_UPDATED";
|
|
323
|
+
SupportAuditAction["TEAM_DELETED"] = "TEAM_DELETED";
|
|
324
|
+
SupportAuditAction["TEAM_MEMBER_ADDED"] = "TEAM_MEMBER_ADDED";
|
|
325
|
+
SupportAuditAction["TEAM_MEMBER_REMOVED"] = "TEAM_MEMBER_REMOVED";
|
|
326
|
+
SupportAuditAction["CATEGORY_CREATED"] = "CATEGORY_CREATED";
|
|
327
|
+
SupportAuditAction["CATEGORY_UPDATED"] = "CATEGORY_UPDATED";
|
|
328
|
+
SupportAuditAction["CATEGORY_DELETED"] = "CATEGORY_DELETED";
|
|
329
|
+
SupportAuditAction["PROVIDER_SYNC_QUEUED"] = "PROVIDER_SYNC_QUEUED";
|
|
330
|
+
SupportAuditAction["PROVIDER_SYNC_SUCCEEDED"] = "PROVIDER_SYNC_SUCCEEDED";
|
|
331
|
+
SupportAuditAction["PROVIDER_SYNC_FAILED"] = "PROVIDER_SYNC_FAILED";
|
|
332
|
+
SupportAuditAction["PROVIDER_SYNC_RETRIED"] = "PROVIDER_SYNC_RETRIED";
|
|
333
|
+
SupportAuditAction["PROVIDER_SYNC_DEAD_LETTERED"] = "PROVIDER_SYNC_DEAD_LETTERED";
|
|
334
|
+
SupportAuditAction["PROVIDER_RECONCILED"] = "PROVIDER_RECONCILED";
|
|
335
|
+
SupportAuditAction["PROVIDER_WEBHOOK_RECEIVED"] = "PROVIDER_WEBHOOK_RECEIVED";
|
|
336
|
+
SupportAuditAction["PROVIDER_WEBHOOK_REJECTED"] = "PROVIDER_WEBHOOK_REJECTED";
|
|
337
|
+
})(SupportAuditAction || (SupportAuditAction = {}));
|
|
338
|
+
/** What an audit entry was about. */
|
|
339
|
+
export var SupportAuditEntityType;
|
|
340
|
+
(function (SupportAuditEntityType) {
|
|
341
|
+
SupportAuditEntityType["TICKET"] = "TICKET";
|
|
342
|
+
SupportAuditEntityType["TICKET_MESSAGE"] = "TICKET_MESSAGE";
|
|
343
|
+
SupportAuditEntityType["TICKET_ATTACHMENT"] = "TICKET_ATTACHMENT";
|
|
344
|
+
SupportAuditEntityType["FEEDBACK"] = "FEEDBACK";
|
|
345
|
+
SupportAuditEntityType["QUEUE"] = "QUEUE";
|
|
346
|
+
SupportAuditEntityType["TEAM"] = "TEAM";
|
|
347
|
+
SupportAuditEntityType["CATEGORY"] = "CATEGORY";
|
|
348
|
+
SupportAuditEntityType["SLA_POLICY"] = "SLA_POLICY";
|
|
349
|
+
SupportAuditEntityType["PROVIDER_SYNC"] = "PROVIDER_SYNC";
|
|
350
|
+
})(SupportAuditEntityType || (SupportAuditEntityType = {}));
|
|
351
|
+
/** Who performed an audited action. */
|
|
352
|
+
export var SupportActorType;
|
|
353
|
+
(function (SupportActorType) {
|
|
354
|
+
SupportActorType["USER"] = "USER";
|
|
355
|
+
SupportActorType["SYSTEM"] = "SYSTEM";
|
|
356
|
+
SupportActorType["PROVIDER"] = "PROVIDER";
|
|
357
|
+
})(SupportActorType || (SupportActorType = {}));
|
|
358
|
+
/** Live support update types delivered over the socket. */
|
|
359
|
+
export var SupportRealtimeEventType;
|
|
360
|
+
(function (SupportRealtimeEventType) {
|
|
361
|
+
SupportRealtimeEventType["TICKET_CREATED"] = "support.ticket.created";
|
|
362
|
+
SupportRealtimeEventType["TICKET_UPDATED"] = "support.ticket.updated";
|
|
363
|
+
SupportRealtimeEventType["TICKET_STATUS_CHANGED"] = "support.ticket.status.changed";
|
|
364
|
+
SupportRealtimeEventType["TICKET_PRIORITY_CHANGED"] = "support.ticket.priority.changed";
|
|
365
|
+
SupportRealtimeEventType["TICKET_ASSIGNED"] = "support.ticket.assigned";
|
|
366
|
+
SupportRealtimeEventType["TICKET_MESSAGE_CREATED"] = "support.ticket.message.created";
|
|
367
|
+
SupportRealtimeEventType["TICKET_SLA_CHANGED"] = "support.ticket.sla.changed";
|
|
368
|
+
SupportRealtimeEventType["TICKET_SYNC_CHANGED"] = "support.ticket.sync.changed";
|
|
369
|
+
SupportRealtimeEventType["FEEDBACK_CREATED"] = "support.feedback.created";
|
|
370
|
+
SupportRealtimeEventType["FEEDBACK_RESPONDED"] = "support.feedback.responded";
|
|
371
|
+
})(SupportRealtimeEventType || (SupportRealtimeEventType = {}));
|
|
372
|
+
//# sourceMappingURL=support-enums.js.map
|