@uniorganization/uni-lib 1.0.31 → 1.0.32

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;
@@ -31,4 +32,5 @@ export declare class Escalations {
31
32
  reviewer: Users;
32
33
  sme: Users;
33
34
  escalationNotes: EscalationNotes[];
35
+ escalationStatusLog: EscalationStatusLog[];
34
36
  }
@@ -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([
@@ -136,6 +137,13 @@ __decorate([
136
137
  (0, typeorm_1.JoinColumn)({ name: 'transaction_id' }),
137
138
  __metadata("design:type", Array)
138
139
  ], Escalations.prototype, "escalationNotes", void 0);
140
+ __decorate([
141
+ (0, typeorm_1.OneToMany)((type) => escalation_status_log_entity_1.EscalationStatusLog, (escalationStatusLog) => escalationStatusLog.escalation, {
142
+ eager: true,
143
+ cascade: ['insert', 'remove', 'update'],
144
+ }),
145
+ __metadata("design:type", Array)
146
+ ], Escalations.prototype, "escalationStatusLog", void 0);
139
147
  Escalations = __decorate([
140
148
  (0, typeorm_1.Entity)('escalations', { schema: 'tracking' })
141
149
  ], 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.32",
4
4
  "description": "UNI Library",
5
5
  "author": "Jhomiguel",
6
6
  "main": "dist/index.js",