@uniorganization/uni-lib 1.0.12 → 1.0.13
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,11 @@
|
|
|
1
|
+
import { Timestamp } from 'typeorm';
|
|
2
|
+
import { QuestionGroup } from '.';
|
|
3
|
+
export declare class EvaluationForm {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
isActive: boolean;
|
|
7
|
+
dateCreated: Timestamp;
|
|
8
|
+
scoreType: string;
|
|
9
|
+
divisionLob: string;
|
|
10
|
+
questionGroups: QuestionGroup[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.EvaluationForm = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const _1 = require(".");
|
|
15
|
+
let EvaluationForm = class EvaluationForm {
|
|
16
|
+
};
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], EvaluationForm.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], EvaluationForm.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)(),
|
|
27
|
+
__metadata("design:type", Boolean)
|
|
28
|
+
], EvaluationForm.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
|
+
], EvaluationForm.prototype, "dateCreated", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], EvaluationForm.prototype, "scoreType", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], EvaluationForm.prototype, "divisionLob", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.OneToMany)(() => _1.QuestionGroup, (questionGroup) => questionGroup.evaluationForm),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], EvaluationForm.prototype, "questionGroups", void 0);
|
|
45
|
+
EvaluationForm = __decorate([
|
|
46
|
+
(0, typeorm_1.Entity)('evaluation_form', { schema: 'tracking' })
|
|
47
|
+
], EvaluationForm);
|
|
48
|
+
exports.EvaluationForm = EvaluationForm;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EvaluationForm } from './evaluation-form.entity';
|
|
1
2
|
import { Questions } from './questions.entity';
|
|
2
3
|
export declare class QuestionGroup {
|
|
3
4
|
id: number;
|
|
@@ -5,5 +6,6 @@ export declare class QuestionGroup {
|
|
|
5
6
|
subGroupName: string;
|
|
6
7
|
sequence: number;
|
|
7
8
|
hideScore: boolean;
|
|
9
|
+
evaluationForm: EvaluationForm;
|
|
8
10
|
questions: Questions[];
|
|
9
11
|
}
|
|
@@ -11,6 +11,7 @@ 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_form_entity_1 = require("./evaluation-form.entity");
|
|
14
15
|
const questions_entity_1 = require("./questions.entity");
|
|
15
16
|
let QuestionGroup = class QuestionGroup {
|
|
16
17
|
};
|
|
@@ -34,6 +35,10 @@ __decorate([
|
|
|
34
35
|
(0, typeorm_1.Column)({ name: 'hide_score', default: false }),
|
|
35
36
|
__metadata("design:type", Boolean)
|
|
36
37
|
], QuestionGroup.prototype, "hideScore", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.OneToOne)(() => evaluation_form_entity_1.EvaluationForm),
|
|
40
|
+
__metadata("design:type", evaluation_form_entity_1.EvaluationForm)
|
|
41
|
+
], QuestionGroup.prototype, "evaluationForm", void 0);
|
|
37
42
|
__decorate([
|
|
38
43
|
(0, typeorm_1.OneToMany)(() => questions_entity_1.Questions, (question) => question.group),
|
|
39
44
|
__metadata("design:type", Array)
|