@uniorganization/uni-lib 1.0.0

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.
Files changed (127) hide show
  1. package/dist/config/db.config.d.ts +4 -0
  2. package/dist/config/db.config.js +24 -0
  3. package/dist/config/index.d.ts +1 -0
  4. package/dist/config/index.js +13 -0
  5. package/dist/entities/applications.entity.d.ts +9 -0
  6. package/dist/entities/applications.entity.js +41 -0
  7. package/dist/entities/apps-user-id.entity.d.ts +20 -0
  8. package/dist/entities/apps-user-id.entity.js +91 -0
  9. package/dist/entities/blacklist.entity.d.ts +9 -0
  10. package/dist/entities/blacklist.entity.js +43 -0
  11. package/dist/entities/call-driver-data.entity.d.ts +18 -0
  12. package/dist/entities/call-driver-data.entity.js +77 -0
  13. package/dist/entities/call-drivers.entity.d.ts +19 -0
  14. package/dist/entities/call-drivers.entity.js +79 -0
  15. package/dist/entities/cb-completed-reasons.entity.d.ts +5 -0
  16. package/dist/entities/cb-completed-reasons.entity.js +31 -0
  17. package/dist/entities/change-alert.entity.d.ts +11 -0
  18. package/dist/entities/change-alert.entity.js +51 -0
  19. package/dist/entities/config.entity.d.ts +5 -0
  20. package/dist/entities/config.entity.js +31 -0
  21. package/dist/entities/depreciation-categories.entity.d.ts +6 -0
  22. package/dist/entities/depreciation-categories.entity.js +32 -0
  23. package/dist/entities/depreciation-details.entity.d.ts +9 -0
  24. package/dist/entities/depreciation-details.entity.js +45 -0
  25. package/dist/entities/detail-type.entity.d.ts +4 -0
  26. package/dist/entities/detail-type.entity.js +27 -0
  27. package/dist/entities/enr-calculation-log.entity.d.ts +49 -0
  28. package/dist/entities/enr-calculation-log.entity.js +203 -0
  29. package/dist/entities/enr-results.entity.d.ts +5 -0
  30. package/dist/entities/enr-results.entity.js +31 -0
  31. package/dist/entities/escalation-category.entity.d.ts +4 -0
  32. package/dist/entities/escalation-category.entity.js +27 -0
  33. package/dist/entities/escalation-notes.entity.d.ts +10 -0
  34. package/dist/entities/escalation-notes.entity.js +43 -0
  35. package/dist/entities/escalation-outcome.entity.d.ts +4 -0
  36. package/dist/entities/escalation-outcome.entity.js +27 -0
  37. package/dist/entities/escalation-status.entity.d.ts +4 -0
  38. package/dist/entities/escalation-status.entity.js +27 -0
  39. package/dist/entities/escalation-type.entity.d.ts +5 -0
  40. package/dist/entities/escalation-type.entity.js +31 -0
  41. package/dist/entities/escalations.entity.d.ts +32 -0
  42. package/dist/entities/escalations.entity.js +134 -0
  43. package/dist/entities/evaluation-data.entity.d.ts +8 -0
  44. package/dist/entities/evaluation-data.entity.js +43 -0
  45. package/dist/entities/evaluation-questions.entity.d.ts +10 -0
  46. package/dist/entities/evaluation-questions.entity.js +47 -0
  47. package/dist/entities/evaluations.entity.d.ts +25 -0
  48. package/dist/entities/evaluations.entity.js +102 -0
  49. package/dist/entities/file-contents.entity.d.ts +56 -0
  50. package/dist/entities/file-contents.entity.js +231 -0
  51. package/dist/entities/file-upload.entity.d.ts +10 -0
  52. package/dist/entities/file-upload.entity.js +47 -0
  53. package/dist/entities/form-definition.entity.d.ts +9 -0
  54. package/dist/entities/form-definition.entity.js +43 -0
  55. package/dist/entities/form-fields.entity.d.ts +18 -0
  56. package/dist/entities/form-fields.entity.js +79 -0
  57. package/dist/entities/form.entity.d.ts +15 -0
  58. package/dist/entities/form.entity.js +64 -0
  59. package/dist/entities/incident-notes.entity.d.ts +10 -0
  60. package/dist/entities/incident-notes.entity.js +43 -0
  61. package/dist/entities/incident.entity.d.ts +20 -0
  62. package/dist/entities/incident.entity.js +82 -0
  63. package/dist/entities/incoterms.entity.d.ts +9 -0
  64. package/dist/entities/incoterms.entity.js +47 -0
  65. package/dist/entities/index.d.ts +6 -0
  66. package/dist/entities/index.js +18 -0
  67. package/dist/entities/inventory.entity.d.ts +11 -0
  68. package/dist/entities/inventory.entity.js +55 -0
  69. package/dist/entities/it-info.entity.d.ts +12 -0
  70. package/dist/entities/it-info.entity.js +59 -0
  71. package/dist/entities/lob-assignment.entity.d.ts +6 -0
  72. package/dist/entities/lob-assignment.entity.js +35 -0
  73. package/dist/entities/lob-call-drivers.entity.d.ts +5 -0
  74. package/dist/entities/lob-call-drivers.entity.js +31 -0
  75. package/dist/entities/location-addresses.entity.d.ts +12 -0
  76. package/dist/entities/location-addresses.entity.js +59 -0
  77. package/dist/entities/ltp-history-transactions.entity.d.ts +11 -0
  78. package/dist/entities/ltp-history-transactions.entity.js +53 -0
  79. package/dist/entities/ltp-stm-roster.entity.d.ts +11 -0
  80. package/dist/entities/ltp-stm-roster.entity.js +55 -0
  81. package/dist/entities/modules-roles.entity.d.ts +13 -0
  82. package/dist/entities/modules-roles.entity.js +53 -0
  83. package/dist/entities/offphone-activities.entity.d.ts +5 -0
  84. package/dist/entities/offphone-activities.entity.js +31 -0
  85. package/dist/entities/onsite-ordering.entity.d.ts +11 -0
  86. package/dist/entities/onsite-ordering.entity.js +55 -0
  87. package/dist/entities/ost.entity.d.ts +6 -0
  88. package/dist/entities/ost.entity.js +35 -0
  89. package/dist/entities/otwe-offers.entity.d.ts +5 -0
  90. package/dist/entities/otwe-offers.entity.js +31 -0
  91. package/dist/entities/product-codes.entity.d.ts +17 -0
  92. package/dist/entities/product-codes.entity.js +77 -0
  93. package/dist/entities/question-group.entity.d.ts +9 -0
  94. package/dist/entities/question-group.entity.js +44 -0
  95. package/dist/entities/questions.entity.d.ts +10 -0
  96. package/dist/entities/questions.entity.js +49 -0
  97. package/dist/entities/regional-service-mgr.entity.d.ts +4 -0
  98. package/dist/entities/regional-service-mgr.entity.js +27 -0
  99. package/dist/entities/role-definition.entity.d.ts +7 -0
  100. package/dist/entities/role-definition.entity.js +35 -0
  101. package/dist/entities/role-privileges.entity.d.ts +10 -0
  102. package/dist/entities/role-privileges.entity.js +44 -0
  103. package/dist/entities/roster-personnel.entity.d.ts +9 -0
  104. package/dist/entities/roster-personnel.entity.js +49 -0
  105. package/dist/entities/roster.entity.d.ts +19 -0
  106. package/dist/entities/roster.entity.js +80 -0
  107. package/dist/entities/sap-raw-data.entity.d.ts +132 -0
  108. package/dist/entities/sap-raw-data.entity.js +539 -0
  109. package/dist/entities/service-type.entity.d.ts +4 -0
  110. package/dist/entities/service-type.entity.js +27 -0
  111. package/dist/entities/state.entity.d.ts +8 -0
  112. package/dist/entities/state.entity.js +43 -0
  113. package/dist/entities/template.entity.d.ts +10 -0
  114. package/dist/entities/template.entity.js +51 -0
  115. package/dist/entities/transactions.entity.d.ts +28 -0
  116. package/dist/entities/transactions.entity.js +118 -0
  117. package/dist/entities/user-roles.entity.d.ts +8 -0
  118. package/dist/entities/user-roles.entity.js +41 -0
  119. package/dist/entities/usr.entity.d.ts +21 -0
  120. package/dist/entities/usr.entity.js +93 -0
  121. package/dist/entities/warranty-category.entity.d.ts +4 -0
  122. package/dist/entities/warranty-category.entity.js +27 -0
  123. package/dist/index.d.ts +2 -0
  124. package/dist/index.js +14 -0
  125. package/dist/test.d.ts +1 -0
  126. package/dist/test.js +7 -0
  127. package/package.json +64 -0
@@ -0,0 +1,134 @@
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.Escalations = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const escalation_type_entity_1 = require("./escalation-type.entity");
15
+ const usr_entity_1 = require("./usr.entity");
16
+ const escalation_notes_entity_1 = require("./escalation-notes.entity");
17
+ const call_driver_data_entity_1 = require("./call-driver-data.entity");
18
+ let Escalations = class Escalations {
19
+ };
20
+ __decorate([
21
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
22
+ __metadata("design:type", Number)
23
+ ], Escalations.prototype, "id", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ name: 'escalation_id' }),
26
+ __metadata("design:type", String)
27
+ ], Escalations.prototype, "escalationId", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ name: 'division' }),
30
+ __metadata("design:type", String)
31
+ ], Escalations.prototype, "division", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ name: 'lob' }),
34
+ __metadata("design:type", String)
35
+ ], Escalations.prototype, "lob", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.OneToOne)(() => call_driver_data_entity_1.CallDriverData, (cd) => cd.escalation),
38
+ __metadata("design:type", call_driver_data_entity_1.CallDriverData)
39
+ ], Escalations.prototype, "callDriverData", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.OneToOne)((type) => escalation_type_entity_1.EscalationType, {
42
+ eager: true,
43
+ cascade: ['insert', 'update', 'remove'],
44
+ }),
45
+ (0, typeorm_1.JoinColumn)({ name: 'escalation_type_id' }),
46
+ __metadata("design:type", escalation_type_entity_1.EscalationType)
47
+ ], Escalations.prototype, "escalationType", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)({ name: 'escalation_type' }),
50
+ __metadata("design:type", String)
51
+ ], Escalations.prototype, "escalationTypeTitle", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ name: 'escalation_status' }),
54
+ __metadata("design:type", String)
55
+ ], Escalations.prototype, "escalationStatus", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ name: 'escalation_category' }),
58
+ __metadata("design:type", String)
59
+ ], Escalations.prototype, "escalationCategory", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({ name: 'escalation_outcome' }),
62
+ __metadata("design:type", String)
63
+ ], Escalations.prototype, "escalationOutcome", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.Column)({ name: 'escalation_reasons' }),
66
+ __metadata("design:type", String)
67
+ ], Escalations.prototype, "escalationReasons", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.Column)({ name: 'current_asc_be' }),
70
+ __metadata("design:type", String)
71
+ ], Escalations.prototype, "currentAscBe", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.Column)({ name: 'asc_input' }),
74
+ __metadata("design:type", String)
75
+ ], Escalations.prototype, "ascInput", void 0);
76
+ __decorate([
77
+ (0, typeorm_1.Column)({ name: 'customer_expectations' }),
78
+ __metadata("design:type", String)
79
+ ], Escalations.prototype, "customerExpectations", void 0);
80
+ __decorate([
81
+ (0, typeorm_1.Column)({ name: 'recommended_solution' }),
82
+ __metadata("design:type", String)
83
+ ], Escalations.prototype, "recommendedSolution", void 0);
84
+ __decorate([
85
+ (0, typeorm_1.Column)({ name: 'valid_escalation' }),
86
+ __metadata("design:type", String)
87
+ ], Escalations.prototype, "validEscalation", void 0);
88
+ __decorate([
89
+ (0, typeorm_1.Column)('timestamp', { name: 'date_created', default: new Date() }),
90
+ __metadata("design:type", typeorm_1.Timestamp)
91
+ ], Escalations.prototype, "dateCreated", void 0);
92
+ __decorate([
93
+ (0, typeorm_1.Column)('timestamp', { name: 'date_updated' }),
94
+ __metadata("design:type", typeorm_1.Timestamp)
95
+ ], Escalations.prototype, "dateUpdated", void 0);
96
+ __decorate([
97
+ (0, typeorm_1.Column)('timestamp', { name: 'date_resolved' }),
98
+ __metadata("design:type", typeorm_1.Timestamp)
99
+ ], Escalations.prototype, "dateResolved", void 0);
100
+ __decorate([
101
+ (0, typeorm_1.Column)({ name: 'email_sent' }),
102
+ __metadata("design:type", Boolean)
103
+ ], Escalations.prototype, "emailSent", void 0);
104
+ __decorate([
105
+ (0, typeorm_1.Column)({ name: 're_escalated', default: () => false }),
106
+ __metadata("design:type", Boolean)
107
+ ], Escalations.prototype, "reEscalated", void 0);
108
+ __decorate([
109
+ (0, typeorm_1.OneToOne)((type) => usr_entity_1.Users, { eager: true }),
110
+ (0, typeorm_1.JoinColumn)({ name: 'agent_id' }),
111
+ __metadata("design:type", usr_entity_1.Users)
112
+ ], Escalations.prototype, "agent", void 0);
113
+ __decorate([
114
+ (0, typeorm_1.OneToOne)((type) => usr_entity_1.Users, { eager: true }),
115
+ (0, typeorm_1.JoinColumn)({ name: 'reviewer_id' }),
116
+ __metadata("design:type", usr_entity_1.Users)
117
+ ], Escalations.prototype, "reviewer", void 0);
118
+ __decorate([
119
+ (0, typeorm_1.OneToOne)((type) => usr_entity_1.Users, { eager: true }),
120
+ (0, typeorm_1.JoinColumn)({ name: 'sme_id' }),
121
+ __metadata("design:type", usr_entity_1.Users)
122
+ ], Escalations.prototype, "sme", void 0);
123
+ __decorate([
124
+ (0, typeorm_1.OneToMany)((type) => escalation_notes_entity_1.EscalationNotes, (en) => en.escalation, {
125
+ eager: true,
126
+ cascade: ['insert', 'remove', 'update'],
127
+ }),
128
+ (0, typeorm_1.JoinColumn)({ name: 'transaction_id' }),
129
+ __metadata("design:type", Array)
130
+ ], Escalations.prototype, "escalationNotes", void 0);
131
+ Escalations = __decorate([
132
+ (0, typeorm_1.Entity)('escalations', { schema: 'tracking' })
133
+ ], Escalations);
134
+ exports.Escalations = Escalations;
@@ -0,0 +1,8 @@
1
+ import { Evaluations } from './evaluations.entity';
2
+ export declare class EvaluationData {
3
+ id: number;
4
+ evaluation: Evaluations;
5
+ campaignName: String;
6
+ data: JSON;
7
+ comments: string;
8
+ }
@@ -0,0 +1,43 @@
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.EvaluationData = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const evaluations_entity_1 = require("./evaluations.entity");
15
+ let EvaluationData = class EvaluationData {
16
+ };
17
+ __decorate([
18
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
19
+ __metadata("design:type", Number)
20
+ ], EvaluationData.prototype, "id", void 0);
21
+ __decorate([
22
+ (0, typeorm_1.ManyToOne)(() => evaluations_entity_1.Evaluations, (evaluation) => evaluation.id, {
23
+ orphanedRowAction: 'delete',
24
+ }),
25
+ (0, typeorm_1.JoinColumn)({ name: 'evaluation_id' }),
26
+ __metadata("design:type", evaluations_entity_1.Evaluations)
27
+ ], EvaluationData.prototype, "evaluation", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ name: 'campaign_name' }),
30
+ __metadata("design:type", String)
31
+ ], EvaluationData.prototype, "campaignName", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)('json', { name: 'data' }),
34
+ __metadata("design:type", Object)
35
+ ], EvaluationData.prototype, "data", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ nullable: true, default: null }),
38
+ __metadata("design:type", String)
39
+ ], EvaluationData.prototype, "comments", void 0);
40
+ EvaluationData = __decorate([
41
+ (0, typeorm_1.Entity)('evaluation_data', { schema: 'tracking' })
42
+ ], EvaluationData);
43
+ exports.EvaluationData = EvaluationData;
@@ -0,0 +1,10 @@
1
+ import { Evaluations } from './evaluations.entity';
2
+ import { Questions } from './questions.entity';
3
+ export declare class EvaluationQuestions {
4
+ id: number;
5
+ evaluation: Evaluations;
6
+ answer: string;
7
+ comments: string;
8
+ answerScore: number;
9
+ question: Questions;
10
+ }
@@ -0,0 +1,47 @@
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.EvaluationQuestions = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const evaluations_entity_1 = require("./evaluations.entity");
15
+ const questions_entity_1 = require("./questions.entity");
16
+ let EvaluationQuestions = class EvaluationQuestions {
17
+ };
18
+ __decorate([
19
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
20
+ __metadata("design:type", Number)
21
+ ], EvaluationQuestions.prototype, "id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.ManyToOne)(() => evaluations_entity_1.Evaluations, { orphanedRowAction: 'delete' }),
24
+ (0, typeorm_1.JoinColumn)({ name: 'evaluation_id' }),
25
+ __metadata("design:type", evaluations_entity_1.Evaluations)
26
+ ], EvaluationQuestions.prototype, "evaluation", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)(),
29
+ __metadata("design:type", String)
30
+ ], EvaluationQuestions.prototype, "answer", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)(),
33
+ __metadata("design:type", String)
34
+ ], EvaluationQuestions.prototype, "comments", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ name: 'answer_score' }),
37
+ __metadata("design:type", Number)
38
+ ], EvaluationQuestions.prototype, "answerScore", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.ManyToOne)(() => questions_entity_1.Questions),
41
+ (0, typeorm_1.JoinColumn)({ name: 'question_id' }),
42
+ __metadata("design:type", questions_entity_1.Questions)
43
+ ], EvaluationQuestions.prototype, "question", void 0);
44
+ EvaluationQuestions = __decorate([
45
+ (0, typeorm_1.Entity)('evaluation_questions', { schema: 'tracking' })
46
+ ], EvaluationQuestions);
47
+ exports.EvaluationQuestions = EvaluationQuestions;
@@ -0,0 +1,25 @@
1
+ import { Users } from './usr.entity';
2
+ import { Timestamp } from 'typeorm';
3
+ import { EvaluationData } from './evaluation-data.entity';
4
+ import { CallDriverData } from './call-driver-data.entity';
5
+ import { EvaluationQuestions } from './evaluation-questions.entity';
6
+ export declare class Evaluations {
7
+ id: number;
8
+ agent: Users;
9
+ evaluator: Users;
10
+ callDriverData: CallDriverData;
11
+ lob: string;
12
+ division: string;
13
+ score: number;
14
+ dateCreated: Timestamp;
15
+ isDisputed: boolean;
16
+ dateDisputed: Timestamp;
17
+ disputeOutcome: string;
18
+ disputeScore: number;
19
+ summary: string;
20
+ autofail: string;
21
+ autofailReason: string;
22
+ autofailComments: string;
23
+ evaluationData: EvaluationData[];
24
+ evaluationQuestions: EvaluationQuestions[];
25
+ }
@@ -0,0 +1,102 @@
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.Evaluations = void 0;
13
+ const usr_entity_1 = require("./usr.entity");
14
+ const typeorm_1 = require("typeorm");
15
+ const evaluation_data_entity_1 = require("./evaluation-data.entity");
16
+ const call_driver_data_entity_1 = require("./call-driver-data.entity");
17
+ const evaluation_questions_entity_1 = require("./evaluation-questions.entity");
18
+ let Evaluations = class Evaluations {
19
+ };
20
+ __decorate([
21
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
22
+ __metadata("design:type", Number)
23
+ ], Evaluations.prototype, "id", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.ManyToOne)(() => usr_entity_1.Users),
26
+ (0, typeorm_1.JoinColumn)({ name: 'agent_id' }),
27
+ __metadata("design:type", usr_entity_1.Users)
28
+ ], Evaluations.prototype, "agent", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.ManyToOne)(() => usr_entity_1.Users),
31
+ (0, typeorm_1.JoinColumn)({ name: 'evaluator_id' }),
32
+ __metadata("design:type", usr_entity_1.Users)
33
+ ], Evaluations.prototype, "evaluator", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.OneToOne)(() => call_driver_data_entity_1.CallDriverData),
36
+ (0, typeorm_1.JoinColumn)({ name: 'call_driver_data_id' }),
37
+ __metadata("design:type", call_driver_data_entity_1.CallDriverData)
38
+ ], Evaluations.prototype, "callDriverData", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)(),
41
+ __metadata("design:type", String)
42
+ ], Evaluations.prototype, "lob", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)(),
45
+ __metadata("design:type", String)
46
+ ], Evaluations.prototype, "division", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ name: 'score' }),
49
+ __metadata("design:type", Number)
50
+ ], Evaluations.prototype, "score", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)('timestamp', { name: 'date_created', default: new Date() }),
53
+ __metadata("design:type", typeorm_1.Timestamp)
54
+ ], Evaluations.prototype, "dateCreated", void 0);
55
+ __decorate([
56
+ (0, typeorm_1.Column)('boolean', { name: 'is_disputed', default: false }),
57
+ __metadata("design:type", Boolean)
58
+ ], Evaluations.prototype, "isDisputed", void 0);
59
+ __decorate([
60
+ (0, typeorm_1.Column)('timestamp', { name: 'date_disputed', nullable: true, default: null }),
61
+ __metadata("design:type", typeorm_1.Timestamp)
62
+ ], Evaluations.prototype, "dateDisputed", void 0);
63
+ __decorate([
64
+ (0, typeorm_1.Column)({ name: 'dispute_outcome', nullable: true, default: null }),
65
+ __metadata("design:type", String)
66
+ ], Evaluations.prototype, "disputeOutcome", void 0);
67
+ __decorate([
68
+ (0, typeorm_1.Column)({ name: 'dispute_score', nullable: true, default: null }),
69
+ __metadata("design:type", Number)
70
+ ], Evaluations.prototype, "disputeScore", void 0);
71
+ __decorate([
72
+ (0, typeorm_1.Column)(),
73
+ __metadata("design:type", String)
74
+ ], Evaluations.prototype, "summary", void 0);
75
+ __decorate([
76
+ (0, typeorm_1.Column)(),
77
+ __metadata("design:type", String)
78
+ ], Evaluations.prototype, "autofail", void 0);
79
+ __decorate([
80
+ (0, typeorm_1.Column)({ name: 'autofail_reason' }),
81
+ __metadata("design:type", String)
82
+ ], Evaluations.prototype, "autofailReason", void 0);
83
+ __decorate([
84
+ (0, typeorm_1.Column)({ name: 'autofail_comments' }),
85
+ __metadata("design:type", String)
86
+ ], Evaluations.prototype, "autofailComments", void 0);
87
+ __decorate([
88
+ (0, typeorm_1.OneToMany)(() => evaluation_data_entity_1.EvaluationData, (ed) => ed.evaluation, {
89
+ cascade: true,
90
+ }),
91
+ __metadata("design:type", Array)
92
+ ], Evaluations.prototype, "evaluationData", void 0);
93
+ __decorate([
94
+ (0, typeorm_1.OneToMany)(() => evaluation_questions_entity_1.EvaluationQuestions, (eq) => eq.evaluation, {
95
+ cascade: true,
96
+ }),
97
+ __metadata("design:type", Array)
98
+ ], Evaluations.prototype, "evaluationQuestions", void 0);
99
+ Evaluations = __decorate([
100
+ (0, typeorm_1.Entity)('evaluations', { schema: 'tracking' })
101
+ ], Evaluations);
102
+ exports.Evaluations = Evaluations;
@@ -0,0 +1,56 @@
1
+ import { Timestamp } from 'typeorm';
2
+ export declare class FileContents {
3
+ id: number;
4
+ fileId: number;
5
+ transactionId: number;
6
+ pendingTatCal: number;
7
+ period: string;
8
+ assignAging: string;
9
+ reasonAging: string;
10
+ sapCreatedId: string;
11
+ postingDate: Timestamp;
12
+ firstAscAssignDate: Timestamp;
13
+ acknowledgeDate: Timestamp;
14
+ ascAssignedDate: Timestamp;
15
+ ccFirstAppDate: Timestamp;
16
+ firstAppDateAsc: Timestamp;
17
+ ascLastAppointment: Timestamp;
18
+ scheduleWithin: string;
19
+ partsStatus: string;
20
+ sStatus: string;
21
+ roAcct: string;
22
+ centerType: string;
23
+ nAscRsm2015: string;
24
+ serviceCenter: string;
25
+ serviceCenter2: string;
26
+ nHq8ProductGro: string;
27
+ productCategory: string;
28
+ localServiceProduct: string;
29
+ localServiceProduct2: string;
30
+ serviceModel: string;
31
+ serialNumber: string;
32
+ responsiblePerson: string;
33
+ customerRegion: string;
34
+ customerZipCode: string;
35
+ cbsaName: string;
36
+ customer: string;
37
+ customerTelNo: string;
38
+ scsiCoverage: string;
39
+ redoTicketNo: string;
40
+ inOutWarrantyIndicator: string;
41
+ status: string;
42
+ statusReason: string;
43
+ serviceType: string;
44
+ symptomCode2: string;
45
+ symptomCode3: string;
46
+ symptomCode4: string;
47
+ dataOriginInboundOutbound: string;
48
+ serviceEngineer: string;
49
+ techId: string;
50
+ contactRegion: string;
51
+ contactRegion2: string;
52
+ placeOfPurchase: string;
53
+ recall: string;
54
+ wtyExceptionCode: string;
55
+ actualTrCount: string;
56
+ }
@@ -0,0 +1,231 @@
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.FileContents = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ let FileContents = class FileContents {
15
+ };
16
+ __decorate([
17
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'ID' }),
18
+ __metadata("design:type", Number)
19
+ ], FileContents.prototype, "id", void 0);
20
+ __decorate([
21
+ (0, typeorm_1.Column)({ name: 'FILE_ID' }),
22
+ __metadata("design:type", Number)
23
+ ], FileContents.prototype, "fileId", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ name: 'TRANSACTION_ID' }),
26
+ __metadata("design:type", Number)
27
+ ], FileContents.prototype, "transactionId", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ name: 'PENDING_TAT_CAL' }),
30
+ __metadata("design:type", Number)
31
+ ], FileContents.prototype, "pendingTatCal", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)({ name: 'PERIOD' }),
34
+ __metadata("design:type", String)
35
+ ], FileContents.prototype, "period", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ name: 'ASSIGN_AGING' }),
38
+ __metadata("design:type", String)
39
+ ], FileContents.prototype, "assignAging", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ name: 'REASON_AGING' }),
42
+ __metadata("design:type", String)
43
+ ], FileContents.prototype, "reasonAging", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ name: 'SAP_CREATED_ID' }),
46
+ __metadata("design:type", String)
47
+ ], FileContents.prototype, "sapCreatedId", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)('timestamp', { name: 'POSTING_DATE' }),
50
+ __metadata("design:type", typeorm_1.Timestamp)
51
+ ], FileContents.prototype, "postingDate", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)('timestamp', { name: 'FIRST_ASC_ASSIGN_DATE' }),
54
+ __metadata("design:type", typeorm_1.Timestamp)
55
+ ], FileContents.prototype, "firstAscAssignDate", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)('timestamp', { name: 'ACKNOWLEDGE_DATE' }),
58
+ __metadata("design:type", typeorm_1.Timestamp)
59
+ ], FileContents.prototype, "acknowledgeDate", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)('timestamp', { name: 'ASC_ASSIGNED_DATE' }),
62
+ __metadata("design:type", typeorm_1.Timestamp)
63
+ ], FileContents.prototype, "ascAssignedDate", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.Column)('timestamp', { name: 'CC_FIRST_APP_DATE' }),
66
+ __metadata("design:type", typeorm_1.Timestamp)
67
+ ], FileContents.prototype, "ccFirstAppDate", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.Column)('timestamp', { name: 'FIRST_APP_DATE_ASC' }),
70
+ __metadata("design:type", typeorm_1.Timestamp)
71
+ ], FileContents.prototype, "firstAppDateAsc", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.Column)('timestamp', { name: 'ASC_LAST_APPOINTMENT' }),
74
+ __metadata("design:type", typeorm_1.Timestamp)
75
+ ], FileContents.prototype, "ascLastAppointment", void 0);
76
+ __decorate([
77
+ (0, typeorm_1.Column)({ name: 'SCHEDULE_WITHIN' }),
78
+ __metadata("design:type", String)
79
+ ], FileContents.prototype, "scheduleWithin", void 0);
80
+ __decorate([
81
+ (0, typeorm_1.Column)({ name: 'PARTS_STATUS' }),
82
+ __metadata("design:type", String)
83
+ ], FileContents.prototype, "partsStatus", void 0);
84
+ __decorate([
85
+ (0, typeorm_1.Column)({ name: 'S_STATUS' }),
86
+ __metadata("design:type", String)
87
+ ], FileContents.prototype, "sStatus", void 0);
88
+ __decorate([
89
+ (0, typeorm_1.Column)({ name: 'RO_ACCT' }),
90
+ __metadata("design:type", String)
91
+ ], FileContents.prototype, "roAcct", void 0);
92
+ __decorate([
93
+ (0, typeorm_1.Column)({ name: 'CENTER_TYPE' }),
94
+ __metadata("design:type", String)
95
+ ], FileContents.prototype, "centerType", void 0);
96
+ __decorate([
97
+ (0, typeorm_1.Column)({ name: 'N_ASC_RSM_2015' }),
98
+ __metadata("design:type", String)
99
+ ], FileContents.prototype, "nAscRsm2015", void 0);
100
+ __decorate([
101
+ (0, typeorm_1.Column)({ name: 'SERVICE_CENTER' }),
102
+ __metadata("design:type", String)
103
+ ], FileContents.prototype, "serviceCenter", void 0);
104
+ __decorate([
105
+ (0, typeorm_1.Column)({ name: 'SERVICE_CENTER_2' }),
106
+ __metadata("design:type", String)
107
+ ], FileContents.prototype, "serviceCenter2", void 0);
108
+ __decorate([
109
+ (0, typeorm_1.Column)({ name: 'N_HQ_8_PRODUCT_GRO' }),
110
+ __metadata("design:type", String)
111
+ ], FileContents.prototype, "nHq8ProductGro", void 0);
112
+ __decorate([
113
+ (0, typeorm_1.Column)({ name: 'PRODUCT_CATEGORY' }),
114
+ __metadata("design:type", String)
115
+ ], FileContents.prototype, "productCategory", void 0);
116
+ __decorate([
117
+ (0, typeorm_1.Column)({ name: 'LOCAL_SERVICE_PRODUCT' }),
118
+ __metadata("design:type", String)
119
+ ], FileContents.prototype, "localServiceProduct", void 0);
120
+ __decorate([
121
+ (0, typeorm_1.Column)({ name: 'LOCAL_SERVICE_PRODUCT_2' }),
122
+ __metadata("design:type", String)
123
+ ], FileContents.prototype, "localServiceProduct2", void 0);
124
+ __decorate([
125
+ (0, typeorm_1.Column)({ name: 'SERVICE_MODEL' }),
126
+ __metadata("design:type", String)
127
+ ], FileContents.prototype, "serviceModel", void 0);
128
+ __decorate([
129
+ (0, typeorm_1.Column)({ name: 'SERIAL_NUMBER' }),
130
+ __metadata("design:type", String)
131
+ ], FileContents.prototype, "serialNumber", void 0);
132
+ __decorate([
133
+ (0, typeorm_1.Column)({ name: 'RESPONSIBLE_PERSON' }),
134
+ __metadata("design:type", String)
135
+ ], FileContents.prototype, "responsiblePerson", void 0);
136
+ __decorate([
137
+ (0, typeorm_1.Column)({ name: 'CUSTOMER_REGION' }),
138
+ __metadata("design:type", String)
139
+ ], FileContents.prototype, "customerRegion", void 0);
140
+ __decorate([
141
+ (0, typeorm_1.Column)({ name: 'CUSTOMER_ZIP_CODE' }),
142
+ __metadata("design:type", String)
143
+ ], FileContents.prototype, "customerZipCode", void 0);
144
+ __decorate([
145
+ (0, typeorm_1.Column)({ name: 'CBSA_NAME' }),
146
+ __metadata("design:type", String)
147
+ ], FileContents.prototype, "cbsaName", void 0);
148
+ __decorate([
149
+ (0, typeorm_1.Column)({ name: 'CUSTOMER' }),
150
+ __metadata("design:type", String)
151
+ ], FileContents.prototype, "customer", void 0);
152
+ __decorate([
153
+ (0, typeorm_1.Column)({ name: 'CUSTOMER_TEL_NO' }),
154
+ __metadata("design:type", String)
155
+ ], FileContents.prototype, "customerTelNo", void 0);
156
+ __decorate([
157
+ (0, typeorm_1.Column)({ name: 'SCSI_COVERAGE' }),
158
+ __metadata("design:type", String)
159
+ ], FileContents.prototype, "scsiCoverage", void 0);
160
+ __decorate([
161
+ (0, typeorm_1.Column)({ name: 'REDO_TICKET_NO' }),
162
+ __metadata("design:type", String)
163
+ ], FileContents.prototype, "redoTicketNo", void 0);
164
+ __decorate([
165
+ (0, typeorm_1.Column)({ name: 'IN_OUT_WARRANTY_INDICATOR' }),
166
+ __metadata("design:type", String)
167
+ ], FileContents.prototype, "inOutWarrantyIndicator", void 0);
168
+ __decorate([
169
+ (0, typeorm_1.Column)({ name: 'STATUS' }),
170
+ __metadata("design:type", String)
171
+ ], FileContents.prototype, "status", void 0);
172
+ __decorate([
173
+ (0, typeorm_1.Column)({ name: 'STATUS_REASON' }),
174
+ __metadata("design:type", String)
175
+ ], FileContents.prototype, "statusReason", void 0);
176
+ __decorate([
177
+ (0, typeorm_1.Column)({ name: 'SERVICE_TYPE' }),
178
+ __metadata("design:type", String)
179
+ ], FileContents.prototype, "serviceType", void 0);
180
+ __decorate([
181
+ (0, typeorm_1.Column)({ name: 'SYMPTOM_CODE_2' }),
182
+ __metadata("design:type", String)
183
+ ], FileContents.prototype, "symptomCode2", void 0);
184
+ __decorate([
185
+ (0, typeorm_1.Column)({ name: 'SYMPTOM_CODE_3' }),
186
+ __metadata("design:type", String)
187
+ ], FileContents.prototype, "symptomCode3", void 0);
188
+ __decorate([
189
+ (0, typeorm_1.Column)({ name: 'SYMPTOM_CODE_4' }),
190
+ __metadata("design:type", String)
191
+ ], FileContents.prototype, "symptomCode4", void 0);
192
+ __decorate([
193
+ (0, typeorm_1.Column)({ name: 'DATA_ORIGIN_INBOUND_OUTBOUND' }),
194
+ __metadata("design:type", String)
195
+ ], FileContents.prototype, "dataOriginInboundOutbound", void 0);
196
+ __decorate([
197
+ (0, typeorm_1.Column)({ name: 'SERVICE_ENGINEER' }),
198
+ __metadata("design:type", String)
199
+ ], FileContents.prototype, "serviceEngineer", void 0);
200
+ __decorate([
201
+ (0, typeorm_1.Column)({ name: 'TECH_ID' }),
202
+ __metadata("design:type", String)
203
+ ], FileContents.prototype, "techId", void 0);
204
+ __decorate([
205
+ (0, typeorm_1.Column)({ name: 'CONTACT_REGION' }),
206
+ __metadata("design:type", String)
207
+ ], FileContents.prototype, "contactRegion", void 0);
208
+ __decorate([
209
+ (0, typeorm_1.Column)({ name: 'CONTACT_REGION_2' }),
210
+ __metadata("design:type", String)
211
+ ], FileContents.prototype, "contactRegion2", void 0);
212
+ __decorate([
213
+ (0, typeorm_1.Column)({ name: 'PLACE_OF_PURCHASE' }),
214
+ __metadata("design:type", String)
215
+ ], FileContents.prototype, "placeOfPurchase", void 0);
216
+ __decorate([
217
+ (0, typeorm_1.Column)({ name: 'RECALL' }),
218
+ __metadata("design:type", String)
219
+ ], FileContents.prototype, "recall", void 0);
220
+ __decorate([
221
+ (0, typeorm_1.Column)({ name: 'WTY_EXCEPTION_CODE' }),
222
+ __metadata("design:type", String)
223
+ ], FileContents.prototype, "wtyExceptionCode", void 0);
224
+ __decorate([
225
+ (0, typeorm_1.Column)({ name: 'ACTUAL_TR_COUNT' }),
226
+ __metadata("design:type", String)
227
+ ], FileContents.prototype, "actualTrCount", void 0);
228
+ FileContents = __decorate([
229
+ (0, typeorm_1.Entity)('LTP_DAILY_PENDING_FILE_CONTENT')
230
+ ], FileContents);
231
+ exports.FileContents = FileContents;
@@ -0,0 +1,10 @@
1
+ import { Timestamp } from 'typeorm';
2
+ export declare class FileUpload {
3
+ fileId: number;
4
+ uploadDate: Timestamp;
5
+ fileName: string;
6
+ filePath: string;
7
+ uploadedBy: string;
8
+ fileStatus: string;
9
+ fileType: string;
10
+ }