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
|
@@ -9,183 +9,183 @@ 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.ApplicationEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const _base_entity_1 = require("../_base_entity");
|
|
15
15
|
const types_1 = require("../../types");
|
|
16
16
|
const core_1 = require("../core");
|
|
17
|
-
let
|
|
17
|
+
let ApplicationEntity = class ApplicationEntity extends _base_entity_1._BaseEntity {
|
|
18
18
|
};
|
|
19
|
-
exports.
|
|
19
|
+
exports.ApplicationEntity = ApplicationEntity;
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
|
-
],
|
|
23
|
+
], ApplicationEntity.prototype, "id", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, typeorm_1.Index)(),
|
|
26
26
|
(0, typeorm_1.Column)({ type: 'varchar', length: 50, unique: true }),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
28
|
+
], ApplicationEntity.prototype, "application_no", void 0);
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, typeorm_1.Column)({ type: 'varchar', length: 50, default: types_1.AppPhLaRelation.SamePerson }),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
|
-
],
|
|
32
|
+
], ApplicationEntity.prototype, "ph_la_relation", void 0);
|
|
33
33
|
__decorate([
|
|
34
34
|
(0, typeorm_1.Index)(),
|
|
35
35
|
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
36
36
|
__metadata("design:type", Object)
|
|
37
|
-
],
|
|
37
|
+
], ApplicationEntity.prototype, "external_ref", void 0);
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, typeorm_1.Column)({ type: 'varchar', length: 50, nullable: true }),
|
|
40
40
|
__metadata("design:type", Object)
|
|
41
|
-
],
|
|
41
|
+
], ApplicationEntity.prototype, "legacy_id", void 0);
|
|
42
42
|
__decorate([
|
|
43
43
|
(0, typeorm_1.Index)(),
|
|
44
44
|
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
45
45
|
__metadata("design:type", String)
|
|
46
|
-
],
|
|
46
|
+
], ApplicationEntity.prototype, "org_id", void 0);
|
|
47
47
|
__decorate([
|
|
48
48
|
(0, typeorm_1.Index)(),
|
|
49
49
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
50
50
|
__metadata("design:type", Object)
|
|
51
|
-
],
|
|
51
|
+
], ApplicationEntity.prototype, "org_branch_id", void 0);
|
|
52
52
|
__decorate([
|
|
53
53
|
(0, typeorm_1.Index)(),
|
|
54
54
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
55
55
|
__metadata("design:type", Object)
|
|
56
|
-
],
|
|
56
|
+
], ApplicationEntity.prototype, "channel_id", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, typeorm_1.Index)(),
|
|
59
59
|
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
60
60
|
__metadata("design:type", String)
|
|
61
|
-
],
|
|
61
|
+
], ApplicationEntity.prototype, "owner_org_staff_id", void 0);
|
|
62
62
|
__decorate([
|
|
63
63
|
(0, typeorm_1.Index)(),
|
|
64
64
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
65
65
|
__metadata("design:type", Object)
|
|
66
|
-
],
|
|
66
|
+
], ApplicationEntity.prototype, "assigned_org_staff_id", void 0);
|
|
67
67
|
__decorate([
|
|
68
68
|
(0, typeorm_1.Index)(),
|
|
69
69
|
(0, typeorm_1.Column)({ type: 'varchar', length: 30 }),
|
|
70
70
|
__metadata("design:type", String)
|
|
71
|
-
],
|
|
71
|
+
], ApplicationEntity.prototype, "status", void 0);
|
|
72
72
|
__decorate([
|
|
73
73
|
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
74
74
|
__metadata("design:type", Object)
|
|
75
|
-
],
|
|
75
|
+
], ApplicationEntity.prototype, "submitted_at", void 0);
|
|
76
76
|
__decorate([
|
|
77
77
|
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
78
78
|
__metadata("design:type", Object)
|
|
79
|
-
],
|
|
79
|
+
], ApplicationEntity.prototype, "review_started_at", void 0);
|
|
80
80
|
__decorate([
|
|
81
81
|
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
82
82
|
__metadata("design:type", Object)
|
|
83
|
-
],
|
|
83
|
+
], ApplicationEntity.prototype, "accepted_at", void 0);
|
|
84
84
|
__decorate([
|
|
85
85
|
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
86
86
|
__metadata("design:type", Object)
|
|
87
|
-
],
|
|
87
|
+
], ApplicationEntity.prototype, "rejected_at", void 0);
|
|
88
88
|
__decorate([
|
|
89
89
|
(0, typeorm_1.Column)({ type: 'varchar', length: 255, nullable: true }),
|
|
90
90
|
__metadata("design:type", Object)
|
|
91
|
-
],
|
|
91
|
+
], ApplicationEntity.prototype, "rejection_reason", void 0);
|
|
92
92
|
__decorate([
|
|
93
93
|
(0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
|
|
94
94
|
__metadata("design:type", Object)
|
|
95
|
-
],
|
|
95
|
+
], ApplicationEntity.prototype, "transferred_at", void 0);
|
|
96
96
|
__decorate([
|
|
97
97
|
(0, typeorm_1.Index)(),
|
|
98
98
|
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
99
99
|
__metadata("design:type", String)
|
|
100
|
-
],
|
|
100
|
+
], ApplicationEntity.prototype, "product_id", void 0);
|
|
101
101
|
__decorate([
|
|
102
102
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
103
103
|
__metadata("design:type", Object)
|
|
104
|
-
],
|
|
104
|
+
], ApplicationEntity.prototype, "product_plan_id", void 0);
|
|
105
105
|
__decorate([
|
|
106
106
|
(0, typeorm_1.Column)({ type: 'varchar', length: 10, nullable: true }),
|
|
107
107
|
__metadata("design:type", Object)
|
|
108
|
-
],
|
|
108
|
+
], ApplicationEntity.prototype, "currency", void 0);
|
|
109
109
|
__decorate([
|
|
110
110
|
(0, typeorm_1.Column)({ type: 'numeric', nullable: true }),
|
|
111
111
|
__metadata("design:type", Object)
|
|
112
|
-
],
|
|
112
|
+
], ApplicationEntity.prototype, "sum_assured", void 0);
|
|
113
113
|
__decorate([
|
|
114
114
|
(0, typeorm_1.Column)({ type: 'numeric', nullable: true }),
|
|
115
115
|
__metadata("design:type", Object)
|
|
116
|
-
],
|
|
116
|
+
], ApplicationEntity.prototype, "mode_premium_amount", void 0);
|
|
117
117
|
__decorate([
|
|
118
118
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
119
119
|
__metadata("design:type", Object)
|
|
120
|
-
],
|
|
120
|
+
], ApplicationEntity.prototype, "product_payment_mode_id", void 0);
|
|
121
121
|
__decorate([
|
|
122
122
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
123
123
|
__metadata("design:type", Object)
|
|
124
|
-
],
|
|
124
|
+
], ApplicationEntity.prototype, "product_policy_term_id", void 0);
|
|
125
125
|
__decorate([
|
|
126
126
|
(0, typeorm_1.Index)(),
|
|
127
127
|
(0, typeorm_1.Column)({ type: 'uuid' }),
|
|
128
128
|
__metadata("design:type", String)
|
|
129
|
-
],
|
|
129
|
+
], ApplicationEntity.prototype, "created_by_user_id", void 0);
|
|
130
130
|
__decorate([
|
|
131
131
|
(0, typeorm_1.Index)(),
|
|
132
132
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
133
133
|
__metadata("design:type", Object)
|
|
134
|
-
],
|
|
134
|
+
], ApplicationEntity.prototype, "updated_by_user_id", void 0);
|
|
135
135
|
__decorate([
|
|
136
136
|
(0, typeorm_1.Index)(),
|
|
137
137
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
138
138
|
__metadata("design:type", Object)
|
|
139
|
-
],
|
|
139
|
+
], ApplicationEntity.prototype, "submitted_by_user_id", void 0);
|
|
140
140
|
__decorate([
|
|
141
141
|
(0, typeorm_1.Index)(),
|
|
142
142
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
143
143
|
__metadata("design:type", Object)
|
|
144
|
-
],
|
|
144
|
+
], ApplicationEntity.prototype, "reviewed_by_user_id", void 0);
|
|
145
145
|
__decorate([
|
|
146
146
|
(0, typeorm_1.Index)(),
|
|
147
147
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
148
148
|
__metadata("design:type", Object)
|
|
149
|
-
],
|
|
149
|
+
], ApplicationEntity.prototype, "accepted_by_user_id", void 0);
|
|
150
150
|
__decorate([
|
|
151
151
|
(0, typeorm_1.Index)(),
|
|
152
152
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
153
153
|
__metadata("design:type", Object)
|
|
154
|
-
],
|
|
154
|
+
], ApplicationEntity.prototype, "rejected_by_user_id", void 0);
|
|
155
155
|
__decorate([
|
|
156
156
|
(0, typeorm_1.Index)(),
|
|
157
157
|
(0, typeorm_1.Column)({ type: 'uuid', nullable: true }),
|
|
158
158
|
__metadata("design:type", Object)
|
|
159
|
-
],
|
|
159
|
+
], ApplicationEntity.prototype, "transferred_by_user_id", void 0);
|
|
160
160
|
__decorate([
|
|
161
161
|
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
162
162
|
__metadata("design:type", Boolean)
|
|
163
|
-
],
|
|
163
|
+
], ApplicationEntity.prototype, "is_active", void 0);
|
|
164
164
|
__decorate([
|
|
165
165
|
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
166
166
|
__metadata("design:type", Boolean)
|
|
167
|
-
],
|
|
167
|
+
], ApplicationEntity.prototype, "is_migrated", void 0);
|
|
168
168
|
__decorate([
|
|
169
|
-
(0, typeorm_1.ManyToOne)(() => core_1.
|
|
169
|
+
(0, typeorm_1.ManyToOne)(() => core_1.OrganizationEntity, { onDelete: 'RESTRICT' }),
|
|
170
170
|
(0, typeorm_1.JoinColumn)({ name: 'org_id' }),
|
|
171
|
-
__metadata("design:type", core_1.
|
|
172
|
-
],
|
|
171
|
+
__metadata("design:type", core_1.OrganizationEntity)
|
|
172
|
+
], ApplicationEntity.prototype, "org", void 0);
|
|
173
173
|
__decorate([
|
|
174
|
-
(0, typeorm_1.ManyToOne)(() => core_1.
|
|
174
|
+
(0, typeorm_1.ManyToOne)(() => core_1.OrganizationStaffEntity, { onDelete: 'RESTRICT' }),
|
|
175
175
|
(0, typeorm_1.JoinColumn)({ name: 'owner_org_staff_id' }),
|
|
176
|
-
__metadata("design:type", core_1.
|
|
177
|
-
],
|
|
176
|
+
__metadata("design:type", core_1.OrganizationStaffEntity)
|
|
177
|
+
], ApplicationEntity.prototype, "owner_org_staff", void 0);
|
|
178
178
|
__decorate([
|
|
179
|
-
(0, typeorm_1.ManyToOne)(() => core_1.
|
|
179
|
+
(0, typeorm_1.ManyToOne)(() => core_1.OrganizationStaffEntity, { onDelete: 'SET NULL' }),
|
|
180
180
|
(0, typeorm_1.JoinColumn)({ name: 'assigned_org_staff_id' }),
|
|
181
181
|
__metadata("design:type", Object)
|
|
182
|
-
],
|
|
182
|
+
], ApplicationEntity.prototype, "assigned_org_staff", void 0);
|
|
183
183
|
__decorate([
|
|
184
|
-
(0, typeorm_1.ManyToOne)(() => core_1.
|
|
184
|
+
(0, typeorm_1.ManyToOne)(() => core_1.OrganizationBranchEntity, { onDelete: 'RESTRICT' }),
|
|
185
185
|
(0, typeorm_1.JoinColumn)({ name: 'org_branch_id' }),
|
|
186
186
|
__metadata("design:type", Object)
|
|
187
|
-
],
|
|
188
|
-
exports.
|
|
187
|
+
], ApplicationEntity.prototype, "org_branch", void 0);
|
|
188
|
+
exports.ApplicationEntity = ApplicationEntity = __decorate([
|
|
189
189
|
(0, typeorm_1.Entity)({ schema: 'application', name: 'applications' }),
|
|
190
190
|
(0, typeorm_1.Unique)('uq_application_org_app_no', ['org_id', 'application_no'])
|
|
191
|
-
],
|
|
191
|
+
], ApplicationEntity);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { ApplicationEntity } from "./application.entity";
|
|
2
|
+
import { AppBeneficiaryEntity } from "./app_beneficiary.entity";
|
|
3
|
+
import { AppCoverageEntity } from "./app_coverage.entity";
|
|
4
4
|
import { AppPerson } from "./app_person.entity";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
export declare const APPLICATION_ENTITIES: readonly [typeof
|
|
8
|
-
export {
|
|
5
|
+
import { AppUnderwritingAnswerEntity } from "./app_underwriting_answer.entity";
|
|
6
|
+
import { UnderwritingQuestionEntity } from "./underwriting_question.entity";
|
|
7
|
+
export declare const APPLICATION_ENTITIES: readonly [typeof ApplicationEntity, typeof AppBeneficiaryEntity, typeof AppCoverageEntity, typeof AppPerson, typeof AppUnderwritingAnswerEntity, typeof UnderwritingQuestionEntity];
|
|
8
|
+
export { ApplicationEntity, AppBeneficiaryEntity, AppCoverageEntity, AppPerson, AppUnderwritingAnswerEntity, UnderwritingQuestionEntity };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.UnderwritingQuestionEntity = exports.AppUnderwritingAnswerEntity = exports.AppPerson = exports.AppCoverageEntity = exports.AppBeneficiaryEntity = exports.ApplicationEntity = exports.APPLICATION_ENTITIES = void 0;
|
|
4
4
|
const application_entity_1 = require("./application.entity");
|
|
5
|
-
Object.defineProperty(exports, "
|
|
5
|
+
Object.defineProperty(exports, "ApplicationEntity", { enumerable: true, get: function () { return application_entity_1.ApplicationEntity; } });
|
|
6
6
|
const app_beneficiary_entity_1 = require("./app_beneficiary.entity");
|
|
7
|
-
Object.defineProperty(exports, "
|
|
7
|
+
Object.defineProperty(exports, "AppBeneficiaryEntity", { enumerable: true, get: function () { return app_beneficiary_entity_1.AppBeneficiaryEntity; } });
|
|
8
8
|
const app_coverage_entity_1 = require("./app_coverage.entity");
|
|
9
|
-
Object.defineProperty(exports, "
|
|
9
|
+
Object.defineProperty(exports, "AppCoverageEntity", { enumerable: true, get: function () { return app_coverage_entity_1.AppCoverageEntity; } });
|
|
10
10
|
const app_person_entity_1 = require("./app_person.entity");
|
|
11
11
|
Object.defineProperty(exports, "AppPerson", { enumerable: true, get: function () { return app_person_entity_1.AppPerson; } });
|
|
12
12
|
const app_underwriting_answer_entity_1 = require("./app_underwriting_answer.entity");
|
|
13
|
-
Object.defineProperty(exports, "
|
|
13
|
+
Object.defineProperty(exports, "AppUnderwritingAnswerEntity", { enumerable: true, get: function () { return app_underwriting_answer_entity_1.AppUnderwritingAnswerEntity; } });
|
|
14
14
|
const underwriting_question_entity_1 = require("./underwriting_question.entity");
|
|
15
|
-
Object.defineProperty(exports, "
|
|
15
|
+
Object.defineProperty(exports, "UnderwritingQuestionEntity", { enumerable: true, get: function () { return underwriting_question_entity_1.UnderwritingQuestionEntity; } });
|
|
16
16
|
exports.APPLICATION_ENTITIES = [
|
|
17
|
-
application_entity_1.
|
|
18
|
-
app_beneficiary_entity_1.
|
|
19
|
-
app_coverage_entity_1.
|
|
17
|
+
application_entity_1.ApplicationEntity,
|
|
18
|
+
app_beneficiary_entity_1.AppBeneficiaryEntity,
|
|
19
|
+
app_coverage_entity_1.AppCoverageEntity,
|
|
20
20
|
app_person_entity_1.AppPerson,
|
|
21
|
-
app_underwriting_answer_entity_1.
|
|
22
|
-
underwriting_question_entity_1.
|
|
21
|
+
app_underwriting_answer_entity_1.AppUnderwritingAnswerEntity,
|
|
22
|
+
underwriting_question_entity_1.UnderwritingQuestionEntity
|
|
23
23
|
];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _BaseEntity } from '../_base_entity';
|
|
2
2
|
import { UwAnswerValueType } from '../../types';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class UnderwritingQuestionEntity extends _BaseEntity {
|
|
4
4
|
id: string;
|
|
5
5
|
question_code: string;
|
|
6
6
|
question_text: string;
|
|
@@ -9,46 +9,46 @@ 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.UnderwritingQuestionEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const _base_entity_1 = require("../_base_entity");
|
|
15
15
|
const types_1 = require("../../types");
|
|
16
|
-
let
|
|
16
|
+
let UnderwritingQuestionEntity = class UnderwritingQuestionEntity extends _base_entity_1._BaseEntity {
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
18
|
+
exports.UnderwritingQuestionEntity = UnderwritingQuestionEntity;
|
|
19
19
|
__decorate([
|
|
20
20
|
(0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
|
-
],
|
|
22
|
+
], UnderwritingQuestionEntity.prototype, "id", void 0);
|
|
23
23
|
__decorate([
|
|
24
24
|
(0, typeorm_1.Index)(),
|
|
25
25
|
(0, typeorm_1.Column)({ type: 'varchar', length: 50, unique: true }),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
|
-
],
|
|
27
|
+
], UnderwritingQuestionEntity.prototype, "question_code", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, typeorm_1.Column)({ type: 'varchar', length: 500 }),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
|
-
],
|
|
31
|
+
], UnderwritingQuestionEntity.prototype, "question_text", void 0);
|
|
32
32
|
__decorate([
|
|
33
33
|
(0, typeorm_1.Column)({ type: 'varchar', nullable: true, length: 500 }),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
|
-
],
|
|
35
|
+
], UnderwritingQuestionEntity.prototype, "question_text_kh", void 0);
|
|
36
36
|
__decorate([
|
|
37
37
|
(0, typeorm_1.Column)({ type: 'varchar', length: 20 }),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
|
-
],
|
|
39
|
+
], UnderwritingQuestionEntity.prototype, "value_type", void 0);
|
|
40
40
|
__decorate([
|
|
41
41
|
(0, typeorm_1.Column)({ type: 'boolean', default: false }),
|
|
42
42
|
__metadata("design:type", Boolean)
|
|
43
|
-
],
|
|
43
|
+
], UnderwritingQuestionEntity.prototype, "is_required", void 0);
|
|
44
44
|
__decorate([
|
|
45
45
|
(0, typeorm_1.Column)({ type: 'integer', default: 1 }),
|
|
46
46
|
__metadata("design:type", Number)
|
|
47
|
-
],
|
|
47
|
+
], UnderwritingQuestionEntity.prototype, "sequence_no", void 0);
|
|
48
48
|
__decorate([
|
|
49
49
|
(0, typeorm_1.Column)({ type: 'boolean', default: true }),
|
|
50
50
|
__metadata("design:type", Boolean)
|
|
51
|
-
],
|
|
52
|
-
exports.
|
|
51
|
+
], UnderwritingQuestionEntity.prototype, "is_active", void 0);
|
|
52
|
+
exports.UnderwritingQuestionEntity = UnderwritingQuestionEntity = __decorate([
|
|
53
53
|
(0, typeorm_1.Entity)({ schema: 'application', name: 'underwriting_questions' })
|
|
54
|
-
],
|
|
54
|
+
], UnderwritingQuestionEntity);
|
|
@@ -4,14 +4,14 @@ import { GeoCommuneEntity } from "./geo_commune.entity";
|
|
|
4
4
|
import { GeoVillageEntity } from "./geo_village.entity";
|
|
5
5
|
import { MaritalStatusEntity } from "./marital_status.entity";
|
|
6
6
|
import { NationalityEntity } from "./nationality.entity";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
export declare const CORE_ENTITIES: readonly [typeof GeoProvinceEntity, typeof GeoDistrictEntity, typeof GeoCommuneEntity, typeof GeoVillageEntity, typeof MaritalStatusEntity, typeof NationalityEntity, typeof
|
|
17
|
-
export { GeoProvinceEntity, GeoDistrictEntity, GeoCommuneEntity, GeoVillageEntity, MaritalStatusEntity, NationalityEntity,
|
|
7
|
+
import { OrganizationEntity } from "./organization.entity";
|
|
8
|
+
import { OrganizationBranchEntity } from "./org_branch.entity";
|
|
9
|
+
import { OrganizationChannelEntity } from "./org_channel.entity";
|
|
10
|
+
import { OrganizationDepartmentEntity } from "./org_department.entity";
|
|
11
|
+
import { OrganizationPositionEntity } from "./org_position.entity";
|
|
12
|
+
import { OrganizationStaffEntity } from "./org_staff.entity";
|
|
13
|
+
import { OrganizationStaffBranchEntity } from "./org_staff_branches.entity";
|
|
14
|
+
import { OrganizationStaffReportingLineEntity } from "./org_staff_reporting_lines.entity";
|
|
15
|
+
import { StaffEntity } from "./staffs.entity";
|
|
16
|
+
export declare const CORE_ENTITIES: readonly [typeof GeoProvinceEntity, typeof GeoDistrictEntity, typeof GeoCommuneEntity, typeof GeoVillageEntity, typeof MaritalStatusEntity, typeof NationalityEntity, typeof OrganizationEntity, typeof OrganizationBranchEntity, typeof OrganizationChannelEntity, typeof OrganizationDepartmentEntity, typeof OrganizationPositionEntity, typeof OrganizationStaffEntity, typeof OrganizationStaffBranchEntity, typeof OrganizationStaffReportingLineEntity, typeof StaffEntity];
|
|
17
|
+
export { GeoProvinceEntity, GeoDistrictEntity, GeoCommuneEntity, GeoVillageEntity, MaritalStatusEntity, NationalityEntity, OrganizationEntity, OrganizationBranchEntity, OrganizationChannelEntity, OrganizationDepartmentEntity, OrganizationPositionEntity, OrganizationStaffEntity, OrganizationStaffBranchEntity, OrganizationStaffReportingLineEntity, StaffEntity, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StaffEntity = exports.OrganizationStaffReportingLineEntity = exports.OrganizationStaffBranchEntity = exports.OrganizationStaffEntity = exports.OrganizationPositionEntity = exports.OrganizationDepartmentEntity = exports.OrganizationChannelEntity = exports.OrganizationBranchEntity = exports.OrganizationEntity = exports.NationalityEntity = exports.MaritalStatusEntity = exports.GeoVillageEntity = exports.GeoCommuneEntity = exports.GeoDistrictEntity = exports.GeoProvinceEntity = exports.CORE_ENTITIES = void 0;
|
|
4
4
|
const geo_province_entity_1 = require("./geo_province.entity");
|
|
5
5
|
Object.defineProperty(exports, "GeoProvinceEntity", { enumerable: true, get: function () { return geo_province_entity_1.GeoProvinceEntity; } });
|
|
6
6
|
const geo_district_entity_1 = require("./geo_district.entity");
|
|
@@ -14,23 +14,23 @@ Object.defineProperty(exports, "MaritalStatusEntity", { enumerable: true, get: f
|
|
|
14
14
|
const nationality_entity_1 = require("./nationality.entity");
|
|
15
15
|
Object.defineProperty(exports, "NationalityEntity", { enumerable: true, get: function () { return nationality_entity_1.NationalityEntity; } });
|
|
16
16
|
const organization_entity_1 = require("./organization.entity");
|
|
17
|
-
Object.defineProperty(exports, "
|
|
17
|
+
Object.defineProperty(exports, "OrganizationEntity", { enumerable: true, get: function () { return organization_entity_1.OrganizationEntity; } });
|
|
18
18
|
const org_branch_entity_1 = require("./org_branch.entity");
|
|
19
|
-
Object.defineProperty(exports, "
|
|
19
|
+
Object.defineProperty(exports, "OrganizationBranchEntity", { enumerable: true, get: function () { return org_branch_entity_1.OrganizationBranchEntity; } });
|
|
20
20
|
const org_channel_entity_1 = require("./org_channel.entity");
|
|
21
|
-
Object.defineProperty(exports, "
|
|
21
|
+
Object.defineProperty(exports, "OrganizationChannelEntity", { enumerable: true, get: function () { return org_channel_entity_1.OrganizationChannelEntity; } });
|
|
22
22
|
const org_department_entity_1 = require("./org_department.entity");
|
|
23
|
-
Object.defineProperty(exports, "
|
|
23
|
+
Object.defineProperty(exports, "OrganizationDepartmentEntity", { enumerable: true, get: function () { return org_department_entity_1.OrganizationDepartmentEntity; } });
|
|
24
24
|
const org_position_entity_1 = require("./org_position.entity");
|
|
25
|
-
Object.defineProperty(exports, "
|
|
25
|
+
Object.defineProperty(exports, "OrganizationPositionEntity", { enumerable: true, get: function () { return org_position_entity_1.OrganizationPositionEntity; } });
|
|
26
26
|
const org_staff_entity_1 = require("./org_staff.entity");
|
|
27
|
-
Object.defineProperty(exports, "
|
|
27
|
+
Object.defineProperty(exports, "OrganizationStaffEntity", { enumerable: true, get: function () { return org_staff_entity_1.OrganizationStaffEntity; } });
|
|
28
28
|
const org_staff_branches_entity_1 = require("./org_staff_branches.entity");
|
|
29
|
-
Object.defineProperty(exports, "
|
|
29
|
+
Object.defineProperty(exports, "OrganizationStaffBranchEntity", { enumerable: true, get: function () { return org_staff_branches_entity_1.OrganizationStaffBranchEntity; } });
|
|
30
30
|
const org_staff_reporting_lines_entity_1 = require("./org_staff_reporting_lines.entity");
|
|
31
|
-
Object.defineProperty(exports, "
|
|
31
|
+
Object.defineProperty(exports, "OrganizationStaffReportingLineEntity", { enumerable: true, get: function () { return org_staff_reporting_lines_entity_1.OrganizationStaffReportingLineEntity; } });
|
|
32
32
|
const staffs_entity_1 = require("./staffs.entity");
|
|
33
|
-
Object.defineProperty(exports, "
|
|
33
|
+
Object.defineProperty(exports, "StaffEntity", { enumerable: true, get: function () { return staffs_entity_1.StaffEntity; } });
|
|
34
34
|
exports.CORE_ENTITIES = [
|
|
35
35
|
geo_province_entity_1.GeoProvinceEntity,
|
|
36
36
|
geo_district_entity_1.GeoDistrictEntity,
|
|
@@ -40,13 +40,13 @@ exports.CORE_ENTITIES = [
|
|
|
40
40
|
marital_status_entity_1.MaritalStatusEntity,
|
|
41
41
|
nationality_entity_1.NationalityEntity,
|
|
42
42
|
//
|
|
43
|
-
organization_entity_1.
|
|
44
|
-
org_branch_entity_1.
|
|
45
|
-
org_channel_entity_1.
|
|
46
|
-
org_department_entity_1.
|
|
47
|
-
org_position_entity_1.
|
|
48
|
-
org_staff_entity_1.
|
|
49
|
-
org_staff_branches_entity_1.
|
|
50
|
-
org_staff_reporting_lines_entity_1.
|
|
51
|
-
staffs_entity_1.
|
|
43
|
+
organization_entity_1.OrganizationEntity,
|
|
44
|
+
org_branch_entity_1.OrganizationBranchEntity,
|
|
45
|
+
org_channel_entity_1.OrganizationChannelEntity,
|
|
46
|
+
org_department_entity_1.OrganizationDepartmentEntity,
|
|
47
|
+
org_position_entity_1.OrganizationPositionEntity,
|
|
48
|
+
org_staff_entity_1.OrganizationStaffEntity,
|
|
49
|
+
org_staff_branches_entity_1.OrganizationStaffBranchEntity,
|
|
50
|
+
org_staff_reporting_lines_entity_1.OrganizationStaffReportingLineEntity,
|
|
51
|
+
staffs_entity_1.StaffEntity,
|
|
52
52
|
];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { _BaseEntity } from "../_base_entity";
|
|
2
|
-
import {
|
|
3
|
-
export declare class
|
|
2
|
+
import { OrganizationEntity } from "./organization.entity";
|
|
3
|
+
export declare class OrganizationBranchEntity extends _BaseEntity {
|
|
4
4
|
id: string;
|
|
5
5
|
org_id: string;
|
|
6
6
|
code: string;
|
|
@@ -9,5 +9,5 @@ export declare class OrganizationBranch extends _BaseEntity {
|
|
|
9
9
|
parent_branch_id?: string | null;
|
|
10
10
|
address?: string;
|
|
11
11
|
is_active: boolean;
|
|
12
|
-
org:
|
|
12
|
+
org: OrganizationEntity;
|
|
13
13
|
}
|
|
@@ -9,53 +9,53 @@ 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.OrganizationBranchEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const _base_entity_1 = require("../_base_entity");
|
|
15
15
|
const organization_entity_1 = require("./organization.entity");
|
|
16
|
-
let
|
|
16
|
+
let OrganizationBranchEntity = class OrganizationBranchEntity extends _base_entity_1._BaseEntity {
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
18
|
+
exports.OrganizationBranchEntity = OrganizationBranchEntity;
|
|
19
19
|
__decorate([
|
|
20
20
|
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
|
-
],
|
|
22
|
+
], OrganizationBranchEntity.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
|
+
], OrganizationBranchEntity.prototype, "org_id", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, typeorm_1.Column)({ type: "varchar", length: 30 }),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
|
-
],
|
|
31
|
+
], OrganizationBranchEntity.prototype, "code", void 0);
|
|
32
32
|
__decorate([
|
|
33
33
|
(0, typeorm_1.Column)({ type: "varchar", length: 200 }),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
|
-
],
|
|
35
|
+
], OrganizationBranchEntity.prototype, "name", void 0);
|
|
36
36
|
__decorate([
|
|
37
37
|
(0, typeorm_1.Column)({ type: "varchar", length: 200, nullable: true }),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
|
-
],
|
|
39
|
+
], OrganizationBranchEntity.prototype, "name_kh", void 0);
|
|
40
40
|
__decorate([
|
|
41
41
|
(0, typeorm_1.Index)(),
|
|
42
42
|
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
43
43
|
__metadata("design:type", Object)
|
|
44
|
-
],
|
|
44
|
+
], OrganizationBranchEntity.prototype, "parent_branch_id", void 0);
|
|
45
45
|
__decorate([
|
|
46
46
|
(0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
|
-
],
|
|
48
|
+
], OrganizationBranchEntity.prototype, "address", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, typeorm_1.Column)({ type: "boolean", default: true }),
|
|
51
51
|
__metadata("design:type", Boolean)
|
|
52
|
-
],
|
|
52
|
+
], OrganizationBranchEntity.prototype, "is_active", void 0);
|
|
53
53
|
__decorate([
|
|
54
|
-
(0, typeorm_1.ManyToOne)(() => organization_entity_1.
|
|
54
|
+
(0, typeorm_1.ManyToOne)(() => organization_entity_1.OrganizationEntity, { onDelete: "CASCADE" }),
|
|
55
55
|
(0, typeorm_1.JoinColumn)({ name: "org_id" }),
|
|
56
|
-
__metadata("design:type", organization_entity_1.
|
|
57
|
-
],
|
|
58
|
-
exports.
|
|
56
|
+
__metadata("design:type", organization_entity_1.OrganizationEntity)
|
|
57
|
+
], OrganizationBranchEntity.prototype, "org", void 0);
|
|
58
|
+
exports.OrganizationBranchEntity = OrganizationBranchEntity = __decorate([
|
|
59
59
|
(0, typeorm_1.Entity)({ schema: "core", name: "org_branches" }),
|
|
60
60
|
(0, typeorm_1.Unique)("uq_org_branch_code", ["org_id", "code"])
|
|
61
|
-
],
|
|
61
|
+
], OrganizationBranchEntity);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _BaseEntity } from "../_base_entity";
|
|
2
|
-
import { Organization } from "./organization.entity";
|
|
3
2
|
import { ChannelType } from "../../types";
|
|
4
|
-
|
|
3
|
+
import { OrganizationEntity } from "./organization.entity";
|
|
4
|
+
export declare class OrganizationChannelEntity extends _BaseEntity {
|
|
5
5
|
id: string;
|
|
6
6
|
org_id: string;
|
|
7
7
|
code: string;
|
|
@@ -10,5 +10,5 @@ export declare class OrganizationChannel extends _BaseEntity {
|
|
|
10
10
|
type: ChannelType;
|
|
11
11
|
branch_id?: string | null;
|
|
12
12
|
is_active: boolean;
|
|
13
|
-
org:
|
|
13
|
+
org: OrganizationEntity;
|
|
14
14
|
}
|