plac-micro-common 1.2.31 → 1.2.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.
- package/dist/models/application/app_beneficiary.entity.d.ts +3 -3
- package/dist/models/application/app_beneficiary.entity.js +24 -24
- package/dist/models/application/app_coverage.entity.d.ts +3 -3
- package/dist/models/application/app_coverage.entity.js +25 -25
- package/dist/models/application/app_person.entity.d.ts +2 -2
- package/dist/models/application/app_person.entity.js +2 -2
- package/dist/models/application/app_underwriting_answer.entity.d.ts +7 -7
- package/dist/models/application/app_underwriting_answer.entity.js +25 -25
- package/dist/models/application/application.entity.d.ts +6 -6
- package/dist/models/application/application.entity.js +48 -48
- package/dist/models/application/index.d.ts +7 -7
- package/dist/models/application/index.js +11 -11
- package/dist/models/application/underwriting_question.entity.d.ts +1 -1
- package/dist/models/application/underwriting_question.entity.js +13 -13
- package/dist/models/core/index.d.ts +11 -11
- package/dist/models/core/index.js +19 -19
- package/dist/models/core/org_branch.entity.d.ts +3 -3
- package/dist/models/core/org_branch.entity.js +16 -16
- package/dist/models/core/org_channel.entity.d.ts +3 -3
- package/dist/models/core/org_channel.entity.js +17 -17
- package/dist/models/core/org_department.entity.d.ts +3 -3
- package/dist/models/core/org_department.entity.js +17 -17
- package/dist/models/core/org_position.entity.d.ts +5 -5
- package/dist/models/core/org_position.entity.js +19 -19
- package/dist/models/core/org_staff.entity.d.ts +5 -5
- package/dist/models/core/org_staff.entity.js +21 -21
- package/dist/models/core/org_staff_branches.entity.d.ts +5 -5
- package/dist/models/core/org_staff_branches.entity.js +18 -18
- package/dist/models/core/org_staff_reporting_lines.entity.d.ts +4 -4
- package/dist/models/core/org_staff_reporting_lines.entity.js +20 -20
- package/dist/models/core/organization.entity.d.ts +1 -1
- package/dist/models/core/organization.entity.js +12 -12
- package/dist/models/core/staffs.entity.d.ts +1 -1
- package/dist/models/core/staffs.entity.js +19 -19
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApplicationEntity } from './application.entity';
|
|
2
2
|
import { _BaseEntity } from '../_base_entity';
|
|
3
3
|
import { Gender, IdentifierType } from '../../types';
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class AppBeneficiaryEntity extends _BaseEntity {
|
|
5
5
|
id: string;
|
|
6
6
|
application_id: string;
|
|
7
7
|
sequence_no: number;
|
|
@@ -18,5 +18,5 @@ export declare class AppBeneficiary extends _BaseEntity {
|
|
|
18
18
|
identifier_type?: IdentifierType | null;
|
|
19
19
|
identifier_no?: string | null;
|
|
20
20
|
is_active: boolean;
|
|
21
|
-
application:
|
|
21
|
+
application: ApplicationEntity;
|
|
22
22
|
}
|
|
@@ -9,87 +9,87 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.AppBeneficiaryEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const application_entity_1 = require("./application.entity");
|
|
15
15
|
const _base_entity_1 = require("../_base_entity");
|
|
16
|
-
let
|
|
16
|
+
let AppBeneficiaryEntity = class AppBeneficiaryEntity extends _base_entity_1._BaseEntity {
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
18
|
+
exports.AppBeneficiaryEntity = AppBeneficiaryEntity;
|
|
19
19
|
__decorate([
|
|
20
20
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
|
-
],
|
|
22
|
+
], AppBeneficiaryEntity.prototype, "id", void 0);
|
|
23
23
|
__decorate([
|
|
24
24
|
(0, typeorm_1.Index)(),
|
|
25
25
|
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
|
-
],
|
|
27
|
+
], AppBeneficiaryEntity.prototype, "application_id", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, typeorm_1.Column)({ type: 'int' }),
|
|
30
30
|
__metadata("design:type", Number)
|
|
31
|
-
],
|
|
31
|
+
], AppBeneficiaryEntity.prototype, "sequence_no", void 0);
|
|
32
32
|
__decorate([
|
|
33
33
|
(0, typeorm_1.Column)({ type: 'varchar', length: 200 }),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
|
-
],
|
|
35
|
+
], AppBeneficiaryEntity.prototype, "first_name", void 0);
|
|
36
36
|
__decorate([
|
|
37
37
|
(0, typeorm_1.Column)({ type: 'varchar', length: 200 }),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
|
-
],
|
|
39
|
+
], AppBeneficiaryEntity.prototype, "last_name", void 0);
|
|
40
40
|
__decorate([
|
|
41
41
|
(0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
|
|
42
42
|
__metadata("design:type", Object)
|
|
43
|
-
],
|
|
43
|
+
], AppBeneficiaryEntity.prototype, "first_name_kh", void 0);
|
|
44
44
|
__decorate([
|
|
45
45
|
(0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
|
|
46
46
|
__metadata("design:type", Object)
|
|
47
|
-
],
|
|
47
|
+
], AppBeneficiaryEntity.prototype, "last_name_kh", void 0);
|
|
48
48
|
__decorate([
|
|
49
49
|
(0, typeorm_1.Column)({ type: 'varchar', length: 200 }),
|
|
50
50
|
__metadata("design:type", Object)
|
|
51
|
-
],
|
|
51
|
+
], AppBeneficiaryEntity.prototype, "full_name", void 0);
|
|
52
52
|
__decorate([
|
|
53
53
|
(0, typeorm_1.Column)({ type: 'varchar', length: 200, nullable: true }),
|
|
54
54
|
__metadata("design:type", Object)
|
|
55
|
-
],
|
|
55
|
+
], AppBeneficiaryEntity.prototype, "full_name_kh", void 0);
|
|
56
56
|
__decorate([
|
|
57
57
|
(0, typeorm_1.Index)(),
|
|
58
58
|
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true }),
|
|
59
59
|
__metadata("design:type", Object)
|
|
60
|
-
],
|
|
60
|
+
], AppBeneficiaryEntity.prototype, "gender", void 0);
|
|
61
61
|
__decorate([
|
|
62
62
|
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
63
63
|
__metadata("design:type", Object)
|
|
64
|
-
],
|
|
64
|
+
], AppBeneficiaryEntity.prototype, "date_of_birth", void 0);
|
|
65
65
|
__decorate([
|
|
66
66
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
67
67
|
__metadata("design:type", Object)
|
|
68
|
-
],
|
|
68
|
+
], AppBeneficiaryEntity.prototype, "relationship_id", void 0);
|
|
69
69
|
__decorate([
|
|
70
70
|
(0, typeorm_1.Column)({ type: 'numeric' }),
|
|
71
71
|
__metadata("design:type", Number)
|
|
72
|
-
],
|
|
72
|
+
], AppBeneficiaryEntity.prototype, "benefit_percentage", void 0);
|
|
73
73
|
__decorate([
|
|
74
74
|
(0, typeorm_1.Index)(),
|
|
75
75
|
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
76
76
|
__metadata("design:type", Object)
|
|
77
|
-
],
|
|
77
|
+
], AppBeneficiaryEntity.prototype, "identifier_type", void 0);
|
|
78
78
|
__decorate([
|
|
79
79
|
(0, typeorm_1.Index)(),
|
|
80
80
|
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
81
81
|
__metadata("design:type", Object)
|
|
82
|
-
],
|
|
82
|
+
], AppBeneficiaryEntity.prototype, "identifier_no", void 0);
|
|
83
83
|
__decorate([
|
|
84
84
|
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
85
85
|
__metadata("design:type", Boolean)
|
|
86
|
-
],
|
|
86
|
+
], AppBeneficiaryEntity.prototype, "is_active", void 0);
|
|
87
87
|
__decorate([
|
|
88
|
-
(0, typeorm_1.ManyToOne)(() => application_entity_1.
|
|
88
|
+
(0, typeorm_1.ManyToOne)(() => application_entity_1.ApplicationEntity, { onDelete: 'CASCADE' }),
|
|
89
89
|
(0, typeorm_1.JoinColumn)({ name: 'application_id' }),
|
|
90
|
-
__metadata("design:type", application_entity_1.
|
|
91
|
-
],
|
|
92
|
-
exports.
|
|
90
|
+
__metadata("design:type", application_entity_1.ApplicationEntity)
|
|
91
|
+
], AppBeneficiaryEntity.prototype, "application", void 0);
|
|
92
|
+
exports.AppBeneficiaryEntity = AppBeneficiaryEntity = __decorate([
|
|
93
93
|
(0, typeorm_1.Entity)({ schema: 'application', name: 'app_beneficiaries' }),
|
|
94
94
|
(0, typeorm_1.Unique)('uq_app_beneficiary_seq', ['application_id', 'sequence_no'])
|
|
95
|
-
],
|
|
95
|
+
], AppBeneficiaryEntity);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApplicationEntity } from './application.entity';
|
|
2
2
|
import { _BaseEntity } from '../_base_entity';
|
|
3
3
|
import { AppCoverageType, DiscountType } from '../../types';
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class AppCoverageEntity extends _BaseEntity {
|
|
5
5
|
id: string;
|
|
6
6
|
application_id: string;
|
|
7
7
|
coverage_type: AppCoverageType;
|
|
@@ -19,5 +19,5 @@ export declare class AppCoverage extends _BaseEntity {
|
|
|
19
19
|
product_payment_mode_id?: string | null;
|
|
20
20
|
product_policy_term_id?: string | null;
|
|
21
21
|
is_active: boolean;
|
|
22
|
-
application:
|
|
22
|
+
application: ApplicationEntity;
|
|
23
23
|
}
|
|
@@ -9,93 +9,93 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.AppCoverageEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const application_entity_1 = require("./application.entity");
|
|
15
15
|
const _base_entity_1 = require("../_base_entity");
|
|
16
16
|
const types_1 = require("../../types");
|
|
17
|
-
let
|
|
17
|
+
let AppCoverageEntity = class AppCoverageEntity extends _base_entity_1._BaseEntity {
|
|
18
18
|
};
|
|
19
|
-
exports.
|
|
19
|
+
exports.AppCoverageEntity = AppCoverageEntity;
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
|
-
],
|
|
23
|
+
], AppCoverageEntity.prototype, "id", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, typeorm_1.Index)(),
|
|
26
26
|
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
28
|
+
], AppCoverageEntity.prototype, "application_id", void 0);
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, typeorm_1.Index)(),
|
|
31
31
|
(0, typeorm_1.Column)({ type: 'varchar', length: 20, default: types_1.AppCoverageType.Base }),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
33
|
+
], AppCoverageEntity.prototype, "coverage_type", void 0);
|
|
34
34
|
__decorate([
|
|
35
35
|
(0, typeorm_1.Index)(),
|
|
36
36
|
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
|
-
],
|
|
38
|
+
], AppCoverageEntity.prototype, "product_id", void 0);
|
|
39
39
|
__decorate([
|
|
40
40
|
(0, typeorm_1.Index)(),
|
|
41
41
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
42
42
|
__metadata("design:type", Object)
|
|
43
|
-
],
|
|
43
|
+
], AppCoverageEntity.prototype, "product_plan_id", void 0);
|
|
44
44
|
__decorate([
|
|
45
45
|
(0, typeorm_1.Index)(),
|
|
46
46
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
47
47
|
__metadata("design:type", Object)
|
|
48
|
-
],
|
|
48
|
+
], AppCoverageEntity.prototype, "product_coverage_id", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, typeorm_1.Column)({ type: 'int' }),
|
|
51
51
|
__metadata("design:type", Number)
|
|
52
|
-
],
|
|
52
|
+
], AppCoverageEntity.prototype, "sequence_no", void 0);
|
|
53
53
|
__decorate([
|
|
54
54
|
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true }),
|
|
55
55
|
__metadata("design:type", Object)
|
|
56
|
-
],
|
|
56
|
+
], AppCoverageEntity.prototype, "currency", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, typeorm_1.Column)({ type: 'numeric', nullable: true }),
|
|
59
59
|
__metadata("design:type", Object)
|
|
60
|
-
],
|
|
60
|
+
], AppCoverageEntity.prototype, "sum_assured", void 0);
|
|
61
61
|
__decorate([
|
|
62
62
|
(0, typeorm_1.Column)({ type: 'varchar', length: 25, nullable: true }),
|
|
63
63
|
__metadata("design:type", Object)
|
|
64
|
-
],
|
|
64
|
+
], AppCoverageEntity.prototype, "discount_type", void 0);
|
|
65
65
|
__decorate([
|
|
66
66
|
(0, typeorm_1.Column)({ type: 'numeric', nullable: true }),
|
|
67
67
|
__metadata("design:type", Object)
|
|
68
|
-
],
|
|
68
|
+
], AppCoverageEntity.prototype, "discount_value", void 0);
|
|
69
69
|
__decorate([
|
|
70
70
|
(0, typeorm_1.Column)({ type: 'numeric', nullable: true }),
|
|
71
71
|
__metadata("design:type", Object)
|
|
72
|
-
],
|
|
72
|
+
], AppCoverageEntity.prototype, "discount_premium_amount", void 0);
|
|
73
73
|
__decorate([
|
|
74
74
|
(0, typeorm_1.Column)({ type: 'numeric', nullable: true }),
|
|
75
75
|
__metadata("design:type", Object)
|
|
76
|
-
],
|
|
76
|
+
], AppCoverageEntity.prototype, "annual_premium_amount", void 0);
|
|
77
77
|
__decorate([
|
|
78
78
|
(0, typeorm_1.Column)({ type: 'numeric', nullable: true }),
|
|
79
79
|
__metadata("design:type", Object)
|
|
80
|
-
],
|
|
80
|
+
], AppCoverageEntity.prototype, "mode_premium_amount", void 0);
|
|
81
81
|
__decorate([
|
|
82
82
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
83
83
|
__metadata("design:type", Object)
|
|
84
|
-
],
|
|
84
|
+
], AppCoverageEntity.prototype, "product_payment_mode_id", void 0);
|
|
85
85
|
__decorate([
|
|
86
86
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
87
87
|
__metadata("design:type", Object)
|
|
88
|
-
],
|
|
88
|
+
], AppCoverageEntity.prototype, "product_policy_term_id", void 0);
|
|
89
89
|
__decorate([
|
|
90
90
|
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
91
91
|
__metadata("design:type", Boolean)
|
|
92
|
-
],
|
|
92
|
+
], AppCoverageEntity.prototype, "is_active", void 0);
|
|
93
93
|
__decorate([
|
|
94
|
-
(0, typeorm_1.ManyToOne)(() => application_entity_1.
|
|
94
|
+
(0, typeorm_1.ManyToOne)(() => application_entity_1.ApplicationEntity, { onDelete: 'CASCADE' }),
|
|
95
95
|
(0, typeorm_1.JoinColumn)({ name: 'application_id' }),
|
|
96
|
-
__metadata("design:type", application_entity_1.
|
|
97
|
-
],
|
|
98
|
-
exports.
|
|
96
|
+
__metadata("design:type", application_entity_1.ApplicationEntity)
|
|
97
|
+
], AppCoverageEntity.prototype, "application", void 0);
|
|
98
|
+
exports.AppCoverageEntity = AppCoverageEntity = __decorate([
|
|
99
99
|
(0, typeorm_1.Entity)({ schema: 'application', name: 'app_coverages' }),
|
|
100
100
|
(0, typeorm_1.Unique)('uq_app_coverage_app_seq', ['application_id', 'sequence_no'])
|
|
101
|
-
],
|
|
101
|
+
], AppCoverageEntity);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ApplicationEntity } from './application.entity';
|
|
2
2
|
import { _BaseEntity } from '../_base_entity';
|
|
3
3
|
import { AppPersonRole, Gender, IdentifierType } from '../../types';
|
|
4
4
|
export declare class AppPerson extends _BaseEntity {
|
|
@@ -21,5 +21,5 @@ export declare class AppPerson extends _BaseEntity {
|
|
|
21
21
|
email?: string | null;
|
|
22
22
|
relationship_id?: string | null;
|
|
23
23
|
is_active: boolean;
|
|
24
|
-
application:
|
|
24
|
+
application: ApplicationEntity;
|
|
25
25
|
}
|
|
@@ -101,9 +101,9 @@ __decorate([
|
|
|
101
101
|
__metadata("design:type", Boolean)
|
|
102
102
|
], AppPerson.prototype, "is_active", void 0);
|
|
103
103
|
__decorate([
|
|
104
|
-
(0, typeorm_1.ManyToOne)(() => application_entity_1.
|
|
104
|
+
(0, typeorm_1.ManyToOne)(() => application_entity_1.ApplicationEntity, { onDelete: 'CASCADE' }),
|
|
105
105
|
(0, typeorm_1.JoinColumn)({ name: 'application_id' }),
|
|
106
|
-
__metadata("design:type", application_entity_1.
|
|
106
|
+
__metadata("design:type", application_entity_1.ApplicationEntity)
|
|
107
107
|
], AppPerson.prototype, "application", void 0);
|
|
108
108
|
exports.AppPerson = AppPerson = __decorate([
|
|
109
109
|
(0, typeorm_1.Entity)({ schema: 'application', name: 'app_persons' }),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { _BaseEntity } from '../_base_entity';
|
|
2
|
-
import {
|
|
2
|
+
import { ApplicationEntity } from './application.entity';
|
|
3
3
|
import { AppPerson } from './app_person.entity';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
export declare class
|
|
4
|
+
import { AppCoverageEntity } from './app_coverage.entity';
|
|
5
|
+
import { UnderwritingQuestionEntity } from './underwriting_question.entity';
|
|
6
|
+
export declare class AppUnderwritingAnswerEntity extends _BaseEntity {
|
|
7
7
|
id: string;
|
|
8
8
|
application_id: string;
|
|
9
9
|
application_person_id: string | null;
|
|
@@ -15,8 +15,8 @@ export declare class AppUnderwritingAnswer extends _BaseEntity {
|
|
|
15
15
|
answer_bool: boolean | null;
|
|
16
16
|
remark: string | null;
|
|
17
17
|
sequence_no: number;
|
|
18
|
-
application?:
|
|
18
|
+
application?: ApplicationEntity;
|
|
19
19
|
application_person?: AppPerson | null;
|
|
20
|
-
app_coverage?:
|
|
21
|
-
question?:
|
|
20
|
+
app_coverage?: AppCoverageEntity | null;
|
|
21
|
+
question?: UnderwritingQuestionEntity;
|
|
22
22
|
}
|
|
@@ -9,85 +9,85 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.AppUnderwritingAnswerEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const _base_entity_1 = require("../_base_entity");
|
|
15
15
|
const application_entity_1 = require("./application.entity");
|
|
16
16
|
const app_person_entity_1 = require("./app_person.entity");
|
|
17
17
|
const app_coverage_entity_1 = require("./app_coverage.entity");
|
|
18
18
|
const underwriting_question_entity_1 = require("./underwriting_question.entity");
|
|
19
|
-
let
|
|
19
|
+
let AppUnderwritingAnswerEntity = class AppUnderwritingAnswerEntity extends _base_entity_1._BaseEntity {
|
|
20
20
|
};
|
|
21
|
-
exports.
|
|
21
|
+
exports.AppUnderwritingAnswerEntity = AppUnderwritingAnswerEntity;
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
|
-
],
|
|
25
|
+
], AppUnderwritingAnswerEntity.prototype, "id", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, typeorm_1.Index)(),
|
|
28
28
|
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
|
-
],
|
|
30
|
+
], AppUnderwritingAnswerEntity.prototype, "application_id", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
(0, typeorm_1.Index)(),
|
|
33
33
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
34
34
|
__metadata("design:type", Object)
|
|
35
|
-
],
|
|
35
|
+
], AppUnderwritingAnswerEntity.prototype, "application_person_id", void 0);
|
|
36
36
|
__decorate([
|
|
37
37
|
(0, typeorm_1.Index)(),
|
|
38
38
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
39
39
|
__metadata("design:type", Object)
|
|
40
|
-
],
|
|
40
|
+
], AppUnderwritingAnswerEntity.prototype, "app_coverage_id", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, typeorm_1.Index)(),
|
|
43
43
|
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
44
44
|
__metadata("design:type", String)
|
|
45
|
-
],
|
|
45
|
+
], AppUnderwritingAnswerEntity.prototype, "question_id", void 0);
|
|
46
46
|
__decorate([
|
|
47
47
|
(0, typeorm_1.Column)({ type: 'varchar', length: 2000, nullable: true }),
|
|
48
48
|
__metadata("design:type", Object)
|
|
49
|
-
],
|
|
49
|
+
], AppUnderwritingAnswerEntity.prototype, "answer_text", void 0);
|
|
50
50
|
__decorate([
|
|
51
51
|
(0, typeorm_1.Column)({ type: 'numeric', precision: 18, scale: 6, nullable: true }),
|
|
52
52
|
__metadata("design:type", Object)
|
|
53
|
-
],
|
|
53
|
+
], AppUnderwritingAnswerEntity.prototype, "answer_number", void 0);
|
|
54
54
|
__decorate([
|
|
55
55
|
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
56
56
|
__metadata("design:type", Object)
|
|
57
|
-
],
|
|
57
|
+
], AppUnderwritingAnswerEntity.prototype, "answer_date", void 0);
|
|
58
58
|
__decorate([
|
|
59
59
|
(0, typeorm_1.Column)({ type: 'boolean', nullable: true }),
|
|
60
60
|
__metadata("design:type", Object)
|
|
61
|
-
],
|
|
61
|
+
], AppUnderwritingAnswerEntity.prototype, "answer_bool", void 0);
|
|
62
62
|
__decorate([
|
|
63
63
|
(0, typeorm_1.Column)({ type: 'varchar', length: 2000, nullable: true }),
|
|
64
64
|
__metadata("design:type", Object)
|
|
65
|
-
],
|
|
65
|
+
], AppUnderwritingAnswerEntity.prototype, "remark", void 0);
|
|
66
66
|
__decorate([
|
|
67
67
|
(0, typeorm_1.Column)({ type: 'integer', default: 1 }),
|
|
68
68
|
__metadata("design:type", Number)
|
|
69
|
-
],
|
|
69
|
+
], AppUnderwritingAnswerEntity.prototype, "sequence_no", void 0);
|
|
70
70
|
__decorate([
|
|
71
|
-
(0, typeorm_1.ManyToOne)(() => application_entity_1.
|
|
71
|
+
(0, typeorm_1.ManyToOne)(() => application_entity_1.ApplicationEntity, { onDelete: 'RESTRICT' }),
|
|
72
72
|
(0, typeorm_1.JoinColumn)({ name: 'application_id' }),
|
|
73
|
-
__metadata("design:type", application_entity_1.
|
|
74
|
-
],
|
|
73
|
+
__metadata("design:type", application_entity_1.ApplicationEntity)
|
|
74
|
+
], AppUnderwritingAnswerEntity.prototype, "application", void 0);
|
|
75
75
|
__decorate([
|
|
76
76
|
(0, typeorm_1.ManyToOne)(() => app_person_entity_1.AppPerson, { onDelete: 'RESTRICT' }),
|
|
77
77
|
(0, typeorm_1.JoinColumn)({ name: 'application_person_id' }),
|
|
78
78
|
__metadata("design:type", Object)
|
|
79
|
-
],
|
|
79
|
+
], AppUnderwritingAnswerEntity.prototype, "application_person", void 0);
|
|
80
80
|
__decorate([
|
|
81
|
-
(0, typeorm_1.ManyToOne)(() => app_coverage_entity_1.
|
|
81
|
+
(0, typeorm_1.ManyToOne)(() => app_coverage_entity_1.AppCoverageEntity, { onDelete: 'RESTRICT' }),
|
|
82
82
|
(0, typeorm_1.JoinColumn)({ name: 'app_coverage_id' }),
|
|
83
83
|
__metadata("design:type", Object)
|
|
84
|
-
],
|
|
84
|
+
], AppUnderwritingAnswerEntity.prototype, "app_coverage", void 0);
|
|
85
85
|
__decorate([
|
|
86
|
-
(0, typeorm_1.ManyToOne)(() => underwriting_question_entity_1.
|
|
86
|
+
(0, typeorm_1.ManyToOne)(() => underwriting_question_entity_1.UnderwritingQuestionEntity, { onDelete: 'RESTRICT' }),
|
|
87
87
|
(0, typeorm_1.JoinColumn)({ name: 'question_id' }),
|
|
88
|
-
__metadata("design:type", underwriting_question_entity_1.
|
|
89
|
-
],
|
|
90
|
-
exports.
|
|
88
|
+
__metadata("design:type", underwriting_question_entity_1.UnderwritingQuestionEntity)
|
|
89
|
+
], AppUnderwritingAnswerEntity.prototype, "question", void 0);
|
|
90
|
+
exports.AppUnderwritingAnswerEntity = AppUnderwritingAnswerEntity = __decorate([
|
|
91
91
|
(0, typeorm_1.Entity)({ schema: 'application', name: 'app_underwriting_answers' }),
|
|
92
92
|
(0, typeorm_1.Unique)('uq_app_uw_ans_scope_question', [
|
|
93
93
|
'application_id',
|
|
@@ -95,4 +95,4 @@ exports.AppUnderwritingAnswer = AppUnderwritingAnswer = __decorate([
|
|
|
95
95
|
'app_coverage_id',
|
|
96
96
|
'question_id',
|
|
97
97
|
])
|
|
98
|
-
],
|
|
98
|
+
], AppUnderwritingAnswerEntity);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _BaseEntity } from '../_base_entity';
|
|
2
2
|
import { ApplicationStatus, AppPhLaRelation } from '../../types';
|
|
3
|
-
import {
|
|
4
|
-
export declare class
|
|
3
|
+
import { OrganizationBranchEntity, OrganizationEntity, OrganizationStaffEntity } from '../core';
|
|
4
|
+
export declare class ApplicationEntity extends _BaseEntity {
|
|
5
5
|
id: string;
|
|
6
6
|
application_no: string;
|
|
7
7
|
ph_la_relation: AppPhLaRelation;
|
|
@@ -35,8 +35,8 @@ export declare class Application extends _BaseEntity {
|
|
|
35
35
|
transferred_by_user_id?: string | null;
|
|
36
36
|
is_active: boolean;
|
|
37
37
|
is_migrated: boolean;
|
|
38
|
-
org:
|
|
39
|
-
owner_org_staff:
|
|
40
|
-
assigned_org_staff?:
|
|
41
|
-
org_branch?:
|
|
38
|
+
org: OrganizationEntity;
|
|
39
|
+
owner_org_staff: OrganizationStaffEntity;
|
|
40
|
+
assigned_org_staff?: OrganizationStaffEntity | null;
|
|
41
|
+
org_branch?: OrganizationBranchEntity | null;
|
|
42
42
|
}
|