@uniorganization/uni-lib 1.0.31 → 1.0.34

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.
@@ -0,0 +1,8 @@
1
+ import { Timestamp } from 'typeorm';
2
+ import { Escalations } from './escalations.entity';
3
+ export declare class EscalationStatusLog {
4
+ id: number;
5
+ status: string;
6
+ effectiveDate: Timestamp;
7
+ escalation: Escalations;
8
+ }
@@ -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,12 @@ 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;
36
+ followUpAgent: Users;
33
37
  escalationNotes: EscalationNotes[];
38
+ escalationStatusLog: EscalationStatusLog[];
34
39
  }
@@ -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' }),
@@ -128,6 +137,11 @@ __decorate([
128
137
  (0, typeorm_1.JoinColumn)({ name: 'sme_id' }),
129
138
  __metadata("design:type", usr_entity_1.Users)
130
139
  ], Escalations.prototype, "sme", void 0);
140
+ __decorate([
141
+ (0, typeorm_1.OneToOne)((type) => usr_entity_1.Users, { eager: true }),
142
+ (0, typeorm_1.JoinColumn)({ name: 'follow_up_agent_id' }),
143
+ __metadata("design:type", usr_entity_1.Users)
144
+ ], Escalations.prototype, "followUpAgent", void 0);
131
145
  __decorate([
132
146
  (0, typeorm_1.OneToMany)((type) => escalation_notes_entity_1.EscalationNotes, (en) => en.escalation, {
133
147
  eager: true,
@@ -136,6 +150,13 @@ __decorate([
136
150
  (0, typeorm_1.JoinColumn)({ name: 'transaction_id' }),
137
151
  __metadata("design:type", Array)
138
152
  ], Escalations.prototype, "escalationNotes", void 0);
153
+ __decorate([
154
+ (0, typeorm_1.OneToMany)((type) => escalation_status_log_entity_1.EscalationStatusLog, (escalationStatusLog) => escalationStatusLog.escalation, {
155
+ eager: true,
156
+ cascade: ['insert', 'remove', 'update'],
157
+ }),
158
+ __metadata("design:type", Array)
159
+ ], Escalations.prototype, "escalationStatusLog", void 0);
139
160
  Escalations = __decorate([
140
161
  (0, typeorm_1.Entity)('escalations', { schema: 'tracking' })
141
162
  ], Escalations);
@@ -59,4 +59,4 @@ export * from './usr.entity';
59
59
  export * from './vw-escalation-age';
60
60
  export * from './warranty-category.entity';
61
61
  export * from './audit.entity';
62
- export * from './evaluation-forms.entity';
62
+ export * from './escalation-status-log.entity';
@@ -71,4 +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("./evaluation-forms.entity"), exports);
74
+ __exportStar(require("./escalation-status-log.entity"), exports);
@@ -1,4 +1,3 @@
1
- import { EvaluationForms } from './evaluation-forms.entity';
2
1
  import { Questions } from './questions.entity';
3
2
  export declare class QuestionGroup {
4
3
  id: number;
@@ -7,5 +6,4 @@ export declare class QuestionGroup {
7
6
  sequence: number;
8
7
  hideScore: boolean;
9
8
  questions: Questions[];
10
- form: EvaluationForms;
11
9
  }
@@ -11,7 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.QuestionGroup = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
- const evaluation_forms_entity_1 = require("./evaluation-forms.entity");
15
14
  const questions_entity_1 = require("./questions.entity");
16
15
  let QuestionGroup = class QuestionGroup {
17
16
  };
@@ -39,11 +38,6 @@ __decorate([
39
38
  (0, typeorm_1.OneToMany)(() => questions_entity_1.Questions, (question) => question.group),
40
39
  __metadata("design:type", Array)
41
40
  ], QuestionGroup.prototype, "questions", void 0);
42
- __decorate([
43
- (0, typeorm_1.ManyToOne)(() => evaluation_forms_entity_1.EvaluationForms, (form) => form.id),
44
- (0, typeorm_1.JoinColumn)({ name: 'form_id' }),
45
- __metadata("design:type", evaluation_forms_entity_1.EvaluationForms)
46
- ], QuestionGroup.prototype, "form", void 0);
47
41
  QuestionGroup = __decorate([
48
42
  (0, typeorm_1.Entity)('question_group', { schema: 'tracking' })
49
43
  ], QuestionGroup);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniorganization/uni-lib",
3
- "version": "1.0.31",
3
+ "version": "1.0.34",
4
4
  "description": "UNI Library",
5
5
  "author": "Jhomiguel",
6
6
  "main": "dist/index.js",