grm-shared-library 1.1.203 → 1.1.204
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/modules/support/dtos/support-ticket-actions.dto.js +35 -1
- package/dist/cjs/modules/support/dtos/support-ticket-actions.dto.js.map +1 -1
- package/dist/esm/modules/support/dtos/support-ticket-actions.dto.js +35 -2
- package/dist/esm/modules/support/dtos/support-ticket-actions.dto.js.map +1 -1
- package/dist/types/modules/support/dtos/support-ticket-actions.dto.d.ts +13 -0
- package/dist/types/modules/support/interfaces/support-reports.d.ts +40 -0
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AttachSupportDocumentsDto = exports.ReopenSupportTicketDto = exports.CloseSupportTicketDto = exports.SetSupportTicketTagsDto = exports.ChangeSupportTicketPriorityDto = exports.ChangeSupportTicketStatusDto = exports.AssignSupportTicketDto = exports.UpdateSupportTicketDto = void 0;
|
|
12
|
+
exports.RateSupportTicketDto = exports.AttachSupportDocumentsDto = exports.ReopenSupportTicketDto = exports.CloseSupportTicketDto = exports.SetSupportTicketTagsDto = exports.ChangeSupportTicketPriorityDto = exports.ChangeSupportTicketStatusDto = exports.AssignSupportTicketDto = exports.UpdateSupportTicketDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
@@ -188,4 +188,38 @@ __decorate([
|
|
|
188
188
|
(0, class_validator_1.IsOptional)(),
|
|
189
189
|
__metadata("design:type", String)
|
|
190
190
|
], AttachSupportDocumentsDto.prototype, "messageId", void 0);
|
|
191
|
+
/**
|
|
192
|
+
* Rate the support you received on a ticket.
|
|
193
|
+
*
|
|
194
|
+
* Stored as a SUPPORT_RATING piece of customer feedback linked back to the
|
|
195
|
+
* ticket, rather than as a column on the ticket itself. Satisfaction is
|
|
196
|
+
* feedback, and feedback is its own domain that stays inside Clarion whatever
|
|
197
|
+
* helpdesk is configured - a rating written onto the ticket would be mirrored
|
|
198
|
+
* to a third party along with it.
|
|
199
|
+
*/
|
|
200
|
+
class RateSupportTicketDto {
|
|
201
|
+
}
|
|
202
|
+
exports.RateSupportTicketDto = RateSupportTicketDto;
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, swagger_1.ApiProperty)({
|
|
205
|
+
minimum: support_defaults_const_1.SUPPORT_FEEDBACK_RATING.MIN,
|
|
206
|
+
maximum: support_defaults_const_1.SUPPORT_FEEDBACK_RATING.MAX,
|
|
207
|
+
description: 'Stars, 1 to 5.',
|
|
208
|
+
}),
|
|
209
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
210
|
+
(0, class_validator_1.IsInt)(),
|
|
211
|
+
(0, class_validator_1.Min)(support_defaults_const_1.SUPPORT_FEEDBACK_RATING.MIN),
|
|
212
|
+
(0, class_validator_1.Max)(support_defaults_const_1.SUPPORT_FEEDBACK_RATING.MAX),
|
|
213
|
+
__metadata("design:type", Number)
|
|
214
|
+
], RateSupportTicketDto.prototype, "rating", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
217
|
+
description: 'What the customer wants to say about it. Optional - a star on its own is a valid answer.',
|
|
218
|
+
maxLength: support_defaults_const_1.SUPPORT_FIELD_LIMITS.FEEDBACK_MESSAGE_MAX_LENGTH,
|
|
219
|
+
}),
|
|
220
|
+
(0, class_validator_1.IsString)(),
|
|
221
|
+
(0, class_validator_1.MaxLength)(support_defaults_const_1.SUPPORT_FIELD_LIMITS.FEEDBACK_MESSAGE_MAX_LENGTH),
|
|
222
|
+
(0, class_validator_1.IsOptional)(),
|
|
223
|
+
__metadata("design:type", String)
|
|
224
|
+
], RateSupportTicketDto.prototype, "comment", void 0);
|
|
191
225
|
//# sourceMappingURL=support-ticket-actions.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-ticket-actions.dto.js","sourceRoot":"","sources":["../../../../../src/modules/support/dtos/support-ticket-actions.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,yDAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"support-ticket-actions.dto.js","sourceRoot":"","sources":["../../../../../src/modules/support/dtos/support-ticket-actions.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,yDAAyC;AACzC,qDAYyB;AACzB,gFAAoG;AACpG,wFAA8E;AAC9E,oFAA0E;AAE1E;;;;;;;GAOG;AACH,MAAa,sBAAsB;CAgBlC;AAhBD,wDAgBC;AAXG;IAJC,IAAA,6BAAmB,EAAC,EAAE,SAAS,EAAE,6CAAoB,CAAC,kBAAkB,EAAE,CAAC;IAC3E,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,6CAAoB,CAAC,kBAAkB,CAAC;IAClD,IAAA,4BAAU,GAAE;;uDACI;AAKjB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,sDAAsD,EAAE,CAAC;IAC5F,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;0DACO;AAKpB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,+CAA+C,EAAE,CAAC;IACrF,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;uDACI;AAGrB,kDAAkD;AAClD,MAAa,sBAAsB;CAuBlC;AAvBD,wDAuBC;AAjBG;IALC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,mEAAmE,EAAE,CAAC;IACzG,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;IACZ,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;IACT,IAAA,8BAAY,EAAC,6CAAoB,CAAC,2BAA2B,CAAC;IAC9D,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrB,IAAA,4BAAU,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;8DACJ;AAKvB;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,kDAAkD,EAAE,CAAC;IACxF,IAAA,wBAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;4DACM;AAGvB;;;;;;;;GAQG;AACH,MAAa,oBAAoB;CAoBhC;AApBD,oDAoBC;AAVG;IATC,IAAA,qBAAW,EAAC;QACT,OAAO,EAAE,gDAAuB,CAAC,GAAG;QACpC,OAAO,EAAE,gDAAuB,CAAC,GAAG;QACpC,WAAW,EAAE,gBAAgB;KAChC,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,gDAAuB,CAAC,GAAG,CAAC;IAChC,IAAA,qBAAG,EAAC,gDAAuB,CAAC,GAAG,CAAC;;oDACjB;AAShB;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,0FAA0F;QACvG,SAAS,EAAE,6CAAoB,CAAC,2BAA2B;KAC9D,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,6CAAoB,CAAC,2BAA2B,CAAC;IAC3D,IAAA,4BAAU,GAAE;;qDACI"}
|
|
@@ -9,8 +9,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
};
|
|
10
10
|
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
|
11
11
|
import { Type } from 'class-transformer';
|
|
12
|
-
import { ArrayMaxSize, IsArray, IsEnum, IsInt, IsOptional, IsPositive, IsString, IsUUID, MaxLength, } from 'class-validator';
|
|
13
|
-
import { SUPPORT_FIELD_LIMITS } from '../constants/support-defaults.const';
|
|
12
|
+
import { ArrayMaxSize, IsArray, IsEnum, IsInt, IsOptional, IsPositive, IsString, IsUUID, Max, MaxLength, Min, } from 'class-validator';
|
|
13
|
+
import { SUPPORT_FEEDBACK_RATING, SUPPORT_FIELD_LIMITS } from '../constants/support-defaults.const';
|
|
14
14
|
import { SupportTicketPriority } from '../enums/support-ticket-priority.enum';
|
|
15
15
|
import { SupportTicketStatus } from '../enums/support-ticket-status.enum';
|
|
16
16
|
/**
|
|
@@ -177,4 +177,37 @@ __decorate([
|
|
|
177
177
|
IsOptional(),
|
|
178
178
|
__metadata("design:type", String)
|
|
179
179
|
], AttachSupportDocumentsDto.prototype, "messageId", void 0);
|
|
180
|
+
/**
|
|
181
|
+
* Rate the support you received on a ticket.
|
|
182
|
+
*
|
|
183
|
+
* Stored as a SUPPORT_RATING piece of customer feedback linked back to the
|
|
184
|
+
* ticket, rather than as a column on the ticket itself. Satisfaction is
|
|
185
|
+
* feedback, and feedback is its own domain that stays inside Clarion whatever
|
|
186
|
+
* helpdesk is configured - a rating written onto the ticket would be mirrored
|
|
187
|
+
* to a third party along with it.
|
|
188
|
+
*/
|
|
189
|
+
export class RateSupportTicketDto {
|
|
190
|
+
}
|
|
191
|
+
__decorate([
|
|
192
|
+
ApiProperty({
|
|
193
|
+
minimum: SUPPORT_FEEDBACK_RATING.MIN,
|
|
194
|
+
maximum: SUPPORT_FEEDBACK_RATING.MAX,
|
|
195
|
+
description: 'Stars, 1 to 5.',
|
|
196
|
+
}),
|
|
197
|
+
Type(() => Number),
|
|
198
|
+
IsInt(),
|
|
199
|
+
Min(SUPPORT_FEEDBACK_RATING.MIN),
|
|
200
|
+
Max(SUPPORT_FEEDBACK_RATING.MAX),
|
|
201
|
+
__metadata("design:type", Number)
|
|
202
|
+
], RateSupportTicketDto.prototype, "rating", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
ApiPropertyOptional({
|
|
205
|
+
description: 'What the customer wants to say about it. Optional - a star on its own is a valid answer.',
|
|
206
|
+
maxLength: SUPPORT_FIELD_LIMITS.FEEDBACK_MESSAGE_MAX_LENGTH,
|
|
207
|
+
}),
|
|
208
|
+
IsString(),
|
|
209
|
+
MaxLength(SUPPORT_FIELD_LIMITS.FEEDBACK_MESSAGE_MAX_LENGTH),
|
|
210
|
+
IsOptional(),
|
|
211
|
+
__metadata("design:type", String)
|
|
212
|
+
], RateSupportTicketDto.prototype, "comment", void 0);
|
|
180
213
|
//# sourceMappingURL=support-ticket-actions.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"support-ticket-actions.dto.js","sourceRoot":"","sources":["../../../../../src/modules/support/dtos/support-ticket-actions.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EACH,YAAY,EACZ,OAAO,EACP,MAAM,EACN,KAAK,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,MAAM,EACN,SAAS,
|
|
1
|
+
{"version":3,"file":"support-ticket-actions.dto.js","sourceRoot":"","sources":["../../../../../src/modules/support/dtos/support-ticket-actions.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EACH,YAAY,EACZ,OAAO,EACP,MAAM,EACN,KAAK,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,MAAM,EACN,GAAG,EACH,SAAS,EACT,GAAG,GACN,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AACpG,OAAO,EAAE,qBAAqB,EAAE,MAAM,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AC3D,UAAU,EAAE;;qDACI"}
|
|
@@ -59,3 +59,16 @@ export declare class AttachSupportDocumentsDto {
|
|
|
59
59
|
documentIds: number[];
|
|
60
60
|
messageId?: string;
|
|
61
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Rate the support you received on a ticket.
|
|
64
|
+
*
|
|
65
|
+
* Stored as a SUPPORT_RATING piece of customer feedback linked back to the
|
|
66
|
+
* ticket, rather than as a column on the ticket itself. Satisfaction is
|
|
67
|
+
* feedback, and feedback is its own domain that stays inside Clarion whatever
|
|
68
|
+
* helpdesk is configured - a rating written onto the ticket would be mirrored
|
|
69
|
+
* to a third party along with it.
|
|
70
|
+
*/
|
|
71
|
+
export declare class RateSupportTicketDto {
|
|
72
|
+
rating: number;
|
|
73
|
+
comment?: string;
|
|
74
|
+
}
|
|
@@ -120,3 +120,43 @@ export interface SupportReportQuery {
|
|
|
120
120
|
/** Bucket size for the trend series. */
|
|
121
121
|
granularity?: 'DAY' | 'WEEK' | 'MONTH';
|
|
122
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* One agent's row in the team performance report.
|
|
125
|
+
*
|
|
126
|
+
* Deliberately separate from `SupportAgentDashboardMetrics`, which answers "how
|
|
127
|
+
* is MY day going" for one agent looking at their own queue. This answers "how
|
|
128
|
+
* is the TEAM doing", is read by a supervisor, and is therefore a leaderboard
|
|
129
|
+
* of settled work over a window rather than a live snapshot.
|
|
130
|
+
*
|
|
131
|
+
* `satisfactionAverage` is the mean of the star ratings customers left on this
|
|
132
|
+
* agent's tickets. It is null, not zero, when nobody rated any of them: an
|
|
133
|
+
* unrated agent is not a badly rated one, and a zero would sort them to the
|
|
134
|
+
* bottom of a table that decides who gets coached.
|
|
135
|
+
*/
|
|
136
|
+
export interface SupportAgentPerformanceRow {
|
|
137
|
+
agentUserId: number;
|
|
138
|
+
/** Resolved from clarion-authentication where available. */
|
|
139
|
+
agentName?: string | null;
|
|
140
|
+
/** Tickets ASSIGNED to this agent that were created in the window. */
|
|
141
|
+
ticketsHandled: number;
|
|
142
|
+
ticketsResolved: number;
|
|
143
|
+
ticketsClosed: number;
|
|
144
|
+
/** Still live and assigned to them right now, whenever the window started. */
|
|
145
|
+
ticketsOpen: number;
|
|
146
|
+
averageFirstResponseMinutes?: number | null;
|
|
147
|
+
averageResolutionMinutes?: number | null;
|
|
148
|
+
/** Percentage of settled first-response clocks that were met. */
|
|
149
|
+
firstResponseComplianceRate: number;
|
|
150
|
+
/** Percentage of settled resolution clocks that were met. */
|
|
151
|
+
resolutionComplianceRate: number;
|
|
152
|
+
slaBreachCount: number;
|
|
153
|
+
reopenedCount: number;
|
|
154
|
+
satisfactionAverage?: number | null;
|
|
155
|
+
satisfactionCount: number;
|
|
156
|
+
}
|
|
157
|
+
/** The team performance report. */
|
|
158
|
+
export interface SupportAgentPerformanceReport {
|
|
159
|
+
from: string;
|
|
160
|
+
to: string;
|
|
161
|
+
agents: SupportAgentPerformanceRow[];
|
|
162
|
+
}
|