@uniorganization/uni-lib 5.0.6 → 5.0.8

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.
@@ -10,12 +10,18 @@ export declare class EvaluationForms {
10
10
  id: number;
11
11
  name: string;
12
12
  isActive: boolean;
13
+ version: number;
14
+ rootFormId: number | null;
13
15
  dateCreated: Timestamp;
14
16
  scoreType: string;
15
17
  divisionLob: DivisionLobId[];
16
18
  isDefault: boolean;
17
19
  useAutofail: boolean;
18
20
  usePcs: boolean;
21
+ hasHistoricalEvaluations?: boolean;
22
+ isStructureLocked?: boolean;
23
+ isLatestVersion?: boolean;
24
+ status?: 'active' | 'draft' | 'archived' | 'inactive';
19
25
  questionGroups: QuestionGroup[];
20
26
  autofailReasons: EvaluationAutofailReasons[];
21
27
  }
@@ -32,6 +32,14 @@ __decorate([
32
32
  (0, typeorm_1.Column)({ name: 'is_active' }),
33
33
  __metadata("design:type", Boolean)
34
34
  ], EvaluationForms.prototype, "isActive", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.Column)({ type: 'integer', default: 1 }),
37
+ __metadata("design:type", Number)
38
+ ], EvaluationForms.prototype, "version", void 0);
39
+ __decorate([
40
+ (0, typeorm_1.Column)({ name: 'root_form_id', type: 'integer', nullable: true }),
41
+ __metadata("design:type", Number)
42
+ ], EvaluationForms.prototype, "rootFormId", void 0);
35
43
  __decorate([
36
44
  (0, typeorm_1.Column)('timestamp', { name: 'date_created', default: new Date() }),
37
45
  __metadata("design:type", typeorm_1.Timestamp)
@@ -7,5 +7,6 @@ export declare class EvaluationQuestions {
7
7
  answer: string;
8
8
  comments: string;
9
9
  answerScore: number;
10
+ isAutoFail: boolean;
10
11
  question: Questions;
11
12
  }
@@ -40,7 +40,7 @@ __decorate([
40
40
  __decorate([
41
41
  (0, typeorm_1.Column)({
42
42
  type: 'float',
43
- name: "answer_score",
43
+ name: 'answer_score',
44
44
  transformer: {
45
45
  to: (value) => value,
46
46
  from: (value) => parseFloat(value),
@@ -48,6 +48,10 @@ __decorate([
48
48
  }),
49
49
  __metadata("design:type", Number)
50
50
  ], EvaluationQuestions.prototype, "answerScore", void 0);
51
+ __decorate([
52
+ (0, typeorm_1.Column)({ name: 'is_autofail', default: false }),
53
+ __metadata("design:type", Boolean)
54
+ ], EvaluationQuestions.prototype, "isAutoFail", void 0);
51
55
  __decorate([
52
56
  (0, typeorm_1.ManyToOne)(() => questions_entity_1.Questions),
53
57
  (0, typeorm_1.JoinColumn)({ name: 'question_id' }),
@@ -20,6 +20,10 @@ export declare class Evaluations {
20
20
  autofail: string;
21
21
  autofailReason: string;
22
22
  autofailComments: string;
23
+ responseAutofail?: boolean;
24
+ formId?: number;
25
+ formVersion?: number;
26
+ formName?: string;
23
27
  blankTransactionId: string;
24
28
  blankBpNumber: string;
25
29
  blankAgentComments: string;
@@ -1,4 +1,13 @@
1
1
  import { QuestionGroup } from './question-group.entity';
2
+ export interface QuestionOption {
3
+ text: string;
4
+ value: number;
5
+ isAutoFail: boolean;
6
+ }
7
+ export interface QuestionOptions {
8
+ type: string;
9
+ options: QuestionOption[];
10
+ }
2
11
  export declare class Questions {
3
12
  clientId: number;
4
13
  id: number;
@@ -6,6 +15,5 @@ export declare class Questions {
6
15
  sequence: number;
7
16
  header: string;
8
17
  text: string;
9
- options: JSON;
10
- isAutoFail: boolean;
18
+ options: QuestionOptions;
11
19
  }
@@ -44,10 +44,6 @@ __decorate([
44
44
  (0, typeorm_1.Column)('json'),
45
45
  __metadata("design:type", Object)
46
46
  ], Questions.prototype, "options", void 0);
47
- __decorate([
48
- (0, typeorm_1.Column)({ name: 'is_autofail' }),
49
- __metadata("design:type", Boolean)
50
- ], Questions.prototype, "isAutoFail", void 0);
51
47
  exports.Questions = Questions = __decorate([
52
48
  (0, typeorm_1.Entity)('questions', { schema: 'tracking' })
53
49
  ], Questions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniorganization/uni-lib",
3
- "version": "5.0.6",
3
+ "version": "5.0.8",
4
4
  "description": "UNI Library",
5
5
  "author": "Jhomiguel",
6
6
  "main": "dist/index.js",