@uniorganization/uni-lib 1.0.30 → 1.0.33
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/entities/escalation-status-log.entity.d.ts +8 -0
- package/dist/entities/escalation-status-log.entity.js +37 -0
- package/dist/entities/escalations.entity.d.ts +4 -0
- package/dist/entities/escalations.entity.js +16 -0
- package/dist/entities/evaluation-forms.entity.d.ts +16 -0
- package/dist/entities/evaluation-forms.entity.js +54 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EscalationStatusLog = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const escalations_entity_1 = require("./escalations.entity");
|
|
15
|
+
let EscalationStatusLog = class EscalationStatusLog {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], EscalationStatusLog.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], EscalationStatusLog.prototype, "status", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)('timestamp', { name: 'effective_date' }),
|
|
27
|
+
__metadata("design:type", typeorm_1.Timestamp)
|
|
28
|
+
], EscalationStatusLog.prototype, "effectiveDate", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.ManyToOne)((type) => escalations_entity_1.Escalations, (escalation) => escalation.id),
|
|
31
|
+
(0, typeorm_1.JoinColumn)({ name: 'escalation_id' }),
|
|
32
|
+
__metadata("design:type", escalations_entity_1.Escalations)
|
|
33
|
+
], EscalationStatusLog.prototype, "escalation", void 0);
|
|
34
|
+
EscalationStatusLog = __decorate([
|
|
35
|
+
(0, typeorm_1.Entity)('escalation_status_log', { schema: 'tracking' })
|
|
36
|
+
], EscalationStatusLog);
|
|
37
|
+
exports.EscalationStatusLog = EscalationStatusLog;
|
|
@@ -3,6 +3,7 @@ import { EscalationType } from './escalation-type.entity';
|
|
|
3
3
|
import { Users } from './usr.entity';
|
|
4
4
|
import { EscalationNotes } from './escalation-notes.entity';
|
|
5
5
|
import { CallDriverData } from './call-driver-data.entity';
|
|
6
|
+
import { EscalationStatusLog } from './escalation-status-log.entity';
|
|
6
7
|
export declare class Escalations {
|
|
7
8
|
id: number;
|
|
8
9
|
escalationId: string;
|
|
@@ -27,8 +28,11 @@ export declare class Escalations {
|
|
|
27
28
|
emailSent: boolean;
|
|
28
29
|
reEscalated: boolean;
|
|
29
30
|
escalationCount: Number;
|
|
31
|
+
followUpOutcome: string;
|
|
32
|
+
followUpDate: Timestamp;
|
|
30
33
|
agent: Users;
|
|
31
34
|
reviewer: Users;
|
|
32
35
|
sme: Users;
|
|
33
36
|
escalationNotes: EscalationNotes[];
|
|
37
|
+
escalationStatusLog: EscalationStatusLog[];
|
|
34
38
|
}
|
|
@@ -15,6 +15,7 @@ const escalation_type_entity_1 = require("./escalation-type.entity");
|
|
|
15
15
|
const usr_entity_1 = require("./usr.entity");
|
|
16
16
|
const escalation_notes_entity_1 = require("./escalation-notes.entity");
|
|
17
17
|
const call_driver_data_entity_1 = require("./call-driver-data.entity");
|
|
18
|
+
const escalation_status_log_entity_1 = require("./escalation-status-log.entity");
|
|
18
19
|
let Escalations = class Escalations {
|
|
19
20
|
};
|
|
20
21
|
__decorate([
|
|
@@ -113,6 +114,14 @@ __decorate([
|
|
|
113
114
|
(0, typeorm_1.Column)({ name: 'escalation_count' }),
|
|
114
115
|
__metadata("design:type", Number)
|
|
115
116
|
], Escalations.prototype, "escalationCount", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.Column)({ name: 'follow_up_outcome' }),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], Escalations.prototype, "followUpOutcome", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typeorm_1.Column)('timestamp', { name: 'follow_up_date' }),
|
|
123
|
+
__metadata("design:type", typeorm_1.Timestamp)
|
|
124
|
+
], Escalations.prototype, "followUpDate", void 0);
|
|
116
125
|
__decorate([
|
|
117
126
|
(0, typeorm_1.OneToOne)((type) => usr_entity_1.Users, { eager: true }),
|
|
118
127
|
(0, typeorm_1.JoinColumn)({ name: 'agent_id' }),
|
|
@@ -136,6 +145,13 @@ __decorate([
|
|
|
136
145
|
(0, typeorm_1.JoinColumn)({ name: 'transaction_id' }),
|
|
137
146
|
__metadata("design:type", Array)
|
|
138
147
|
], Escalations.prototype, "escalationNotes", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, typeorm_1.OneToMany)((type) => escalation_status_log_entity_1.EscalationStatusLog, (escalationStatusLog) => escalationStatusLog.escalation, {
|
|
150
|
+
eager: true,
|
|
151
|
+
cascade: ['insert', 'remove', 'update'],
|
|
152
|
+
}),
|
|
153
|
+
__metadata("design:type", Array)
|
|
154
|
+
], Escalations.prototype, "escalationStatusLog", void 0);
|
|
139
155
|
Escalations = __decorate([
|
|
140
156
|
(0, typeorm_1.Entity)('escalations', { schema: 'tracking' })
|
|
141
157
|
], Escalations);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Timestamp } from 'typeorm';
|
|
2
|
+
import { QuestionGroup } from './question-group.entity';
|
|
3
|
+
export interface DivisionLob {
|
|
4
|
+
division: string;
|
|
5
|
+
lob: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class EvaluationForms {
|
|
8
|
+
id: number;
|
|
9
|
+
name: string;
|
|
10
|
+
isActive: boolean;
|
|
11
|
+
dateCreated: Timestamp;
|
|
12
|
+
scoreType: string;
|
|
13
|
+
divisionLob: DivisionLob[];
|
|
14
|
+
isDefault: boolean;
|
|
15
|
+
questionGroups: QuestionGroup[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EvaluationForms = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const question_group_entity_1 = require("./question-group.entity");
|
|
15
|
+
let EvaluationForms = class EvaluationForms {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], EvaluationForms.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], EvaluationForms.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ name: 'is_active' }),
|
|
27
|
+
__metadata("design:type", Boolean)
|
|
28
|
+
], EvaluationForms.prototype, "isActive", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)('timestamp', { name: 'date_created', default: new Date() }),
|
|
31
|
+
__metadata("design:type", typeorm_1.Timestamp)
|
|
32
|
+
], EvaluationForms.prototype, "dateCreated", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ name: 'score_type' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], EvaluationForms.prototype, "scoreType", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)('jsonb', { name: 'division_lob' }),
|
|
39
|
+
__metadata("design:type", Array)
|
|
40
|
+
], EvaluationForms.prototype, "divisionLob", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ name: 'is_default' }),
|
|
43
|
+
__metadata("design:type", Boolean)
|
|
44
|
+
], EvaluationForms.prototype, "isDefault", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.OneToMany)(() => question_group_entity_1.QuestionGroup, (questionGroup) => questionGroup.form, {
|
|
47
|
+
eager: true,
|
|
48
|
+
}),
|
|
49
|
+
__metadata("design:type", Array)
|
|
50
|
+
], EvaluationForms.prototype, "questionGroups", void 0);
|
|
51
|
+
EvaluationForms = __decorate([
|
|
52
|
+
(0, typeorm_1.Entity)('evaluation_form', { schema: 'tracking' })
|
|
53
|
+
], EvaluationForms);
|
|
54
|
+
exports.EvaluationForms = EvaluationForms;
|
package/dist/entities/index.d.ts
CHANGED
package/dist/entities/index.js
CHANGED
|
@@ -71,3 +71,4 @@ __exportStar(require("./usr.entity"), exports);
|
|
|
71
71
|
__exportStar(require("./vw-escalation-age"), exports);
|
|
72
72
|
__exportStar(require("./warranty-category.entity"), exports);
|
|
73
73
|
__exportStar(require("./audit.entity"), exports);
|
|
74
|
+
__exportStar(require("./escalation-status-log.entity"), exports);
|