plac-micro-common 1.2.30 → 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.
Files changed (37) hide show
  1. package/dist/models/application/app_beneficiary.entity.d.ts +3 -3
  2. package/dist/models/application/app_beneficiary.entity.js +24 -24
  3. package/dist/models/application/app_coverage.entity.d.ts +3 -3
  4. package/dist/models/application/app_coverage.entity.js +25 -25
  5. package/dist/models/application/app_person.entity.d.ts +2 -2
  6. package/dist/models/application/app_person.entity.js +2 -2
  7. package/dist/models/application/app_underwriting_answer.entity.d.ts +7 -7
  8. package/dist/models/application/app_underwriting_answer.entity.js +25 -25
  9. package/dist/models/application/application.entity.d.ts +6 -6
  10. package/dist/models/application/application.entity.js +48 -48
  11. package/dist/models/application/index.d.ts +7 -7
  12. package/dist/models/application/index.js +11 -11
  13. package/dist/models/application/underwriting_question.entity.d.ts +1 -1
  14. package/dist/models/application/underwriting_question.entity.js +13 -13
  15. package/dist/models/core/index.d.ts +11 -11
  16. package/dist/models/core/index.js +19 -19
  17. package/dist/models/core/org_branch.entity.d.ts +3 -3
  18. package/dist/models/core/org_branch.entity.js +16 -16
  19. package/dist/models/core/org_channel.entity.d.ts +3 -3
  20. package/dist/models/core/org_channel.entity.js +17 -17
  21. package/dist/models/core/org_department.entity.d.ts +3 -3
  22. package/dist/models/core/org_department.entity.js +17 -17
  23. package/dist/models/core/org_position.entity.d.ts +5 -5
  24. package/dist/models/core/org_position.entity.js +19 -19
  25. package/dist/models/core/org_staff.entity.d.ts +5 -5
  26. package/dist/models/core/org_staff.entity.js +21 -21
  27. package/dist/models/core/org_staff_branches.entity.d.ts +5 -5
  28. package/dist/models/core/org_staff_branches.entity.js +18 -18
  29. package/dist/models/core/org_staff_reporting_lines.entity.d.ts +4 -4
  30. package/dist/models/core/org_staff_reporting_lines.entity.js +20 -20
  31. package/dist/models/core/organization.entity.d.ts +1 -1
  32. package/dist/models/core/organization.entity.js +12 -12
  33. package/dist/models/core/staffs.entity.d.ts +1 -1
  34. package/dist/models/core/staffs.entity.js +19 -19
  35. package/dist/types/permission.type.d.ts +3 -0
  36. package/dist/types/permission.type.js +3 -0
  37. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
- import { Application } from './application.entity';
1
+ import { ApplicationEntity } from './application.entity';
2
2
  import { _BaseEntity } from '../_base_entity';
3
3
  import { Gender, IdentifierType } from '../../types';
4
- export declare class AppBeneficiary extends _BaseEntity {
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: 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.AppBeneficiary = void 0;
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 AppBeneficiary = class AppBeneficiary extends _base_entity_1._BaseEntity {
16
+ let AppBeneficiaryEntity = class AppBeneficiaryEntity extends _base_entity_1._BaseEntity {
17
17
  };
18
- exports.AppBeneficiary = AppBeneficiary;
18
+ exports.AppBeneficiaryEntity = AppBeneficiaryEntity;
19
19
  __decorate([
20
20
  (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
21
21
  __metadata("design:type", String)
22
- ], AppBeneficiary.prototype, "id", void 0);
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
- ], AppBeneficiary.prototype, "application_id", void 0);
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
- ], AppBeneficiary.prototype, "sequence_no", void 0);
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
- ], AppBeneficiary.prototype, "first_name", void 0);
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
- ], AppBeneficiary.prototype, "last_name", void 0);
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
- ], AppBeneficiary.prototype, "first_name_kh", void 0);
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
- ], AppBeneficiary.prototype, "last_name_kh", void 0);
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
- ], AppBeneficiary.prototype, "full_name", void 0);
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
- ], AppBeneficiary.prototype, "full_name_kh", void 0);
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
- ], AppBeneficiary.prototype, "gender", void 0);
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
- ], AppBeneficiary.prototype, "date_of_birth", void 0);
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
- ], AppBeneficiary.prototype, "relationship_id", void 0);
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
- ], AppBeneficiary.prototype, "benefit_percentage", void 0);
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
- ], AppBeneficiary.prototype, "identifier_type", void 0);
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
- ], AppBeneficiary.prototype, "identifier_no", void 0);
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
- ], AppBeneficiary.prototype, "is_active", void 0);
86
+ ], AppBeneficiaryEntity.prototype, "is_active", void 0);
87
87
  __decorate([
88
- (0, typeorm_1.ManyToOne)(() => application_entity_1.Application, { onDelete: 'CASCADE' }),
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.Application)
91
- ], AppBeneficiary.prototype, "application", void 0);
92
- exports.AppBeneficiary = AppBeneficiary = __decorate([
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
- ], AppBeneficiary);
95
+ ], AppBeneficiaryEntity);
@@ -1,7 +1,7 @@
1
- import { Application } from './application.entity';
1
+ import { ApplicationEntity } from './application.entity';
2
2
  import { _BaseEntity } from '../_base_entity';
3
3
  import { AppCoverageType, DiscountType } from '../../types';
4
- export declare class AppCoverage extends _BaseEntity {
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: 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.AppCoverage = void 0;
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 AppCoverage = class AppCoverage extends _base_entity_1._BaseEntity {
17
+ let AppCoverageEntity = class AppCoverageEntity extends _base_entity_1._BaseEntity {
18
18
  };
19
- exports.AppCoverage = AppCoverage;
19
+ exports.AppCoverageEntity = AppCoverageEntity;
20
20
  __decorate([
21
21
  (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
22
22
  __metadata("design:type", String)
23
- ], AppCoverage.prototype, "id", void 0);
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
- ], AppCoverage.prototype, "application_id", void 0);
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
- ], AppCoverage.prototype, "coverage_type", void 0);
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
- ], AppCoverage.prototype, "product_id", void 0);
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
- ], AppCoverage.prototype, "product_plan_id", void 0);
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
- ], AppCoverage.prototype, "product_coverage_id", void 0);
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
- ], AppCoverage.prototype, "sequence_no", void 0);
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
- ], AppCoverage.prototype, "currency", void 0);
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
- ], AppCoverage.prototype, "sum_assured", void 0);
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
- ], AppCoverage.prototype, "discount_type", void 0);
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
- ], AppCoverage.prototype, "discount_value", void 0);
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
- ], AppCoverage.prototype, "discount_premium_amount", void 0);
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
- ], AppCoverage.prototype, "annual_premium_amount", void 0);
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
- ], AppCoverage.prototype, "mode_premium_amount", void 0);
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
- ], AppCoverage.prototype, "product_payment_mode_id", void 0);
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
- ], AppCoverage.prototype, "product_policy_term_id", void 0);
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
- ], AppCoverage.prototype, "is_active", void 0);
92
+ ], AppCoverageEntity.prototype, "is_active", void 0);
93
93
  __decorate([
94
- (0, typeorm_1.ManyToOne)(() => application_entity_1.Application, { onDelete: 'CASCADE' }),
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.Application)
97
- ], AppCoverage.prototype, "application", void 0);
98
- exports.AppCoverage = AppCoverage = __decorate([
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
- ], AppCoverage);
101
+ ], AppCoverageEntity);
@@ -1,4 +1,4 @@
1
- import { Application } from './application.entity';
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: 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.Application, { onDelete: 'CASCADE' }),
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.Application)
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 { Application } from './application.entity';
2
+ import { ApplicationEntity } from './application.entity';
3
3
  import { AppPerson } from './app_person.entity';
4
- import { AppCoverage } from './app_coverage.entity';
5
- import { UnderwritingQuestion } from './underwriting_question.entity';
6
- export declare class AppUnderwritingAnswer extends _BaseEntity {
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?: Application;
18
+ application?: ApplicationEntity;
19
19
  application_person?: AppPerson | null;
20
- app_coverage?: AppCoverage | null;
21
- question?: UnderwritingQuestion;
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.AppUnderwritingAnswer = void 0;
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 AppUnderwritingAnswer = class AppUnderwritingAnswer extends _base_entity_1._BaseEntity {
19
+ let AppUnderwritingAnswerEntity = class AppUnderwritingAnswerEntity extends _base_entity_1._BaseEntity {
20
20
  };
21
- exports.AppUnderwritingAnswer = AppUnderwritingAnswer;
21
+ exports.AppUnderwritingAnswerEntity = AppUnderwritingAnswerEntity;
22
22
  __decorate([
23
23
  (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
24
24
  __metadata("design:type", String)
25
- ], AppUnderwritingAnswer.prototype, "id", void 0);
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
- ], AppUnderwritingAnswer.prototype, "application_id", void 0);
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
- ], AppUnderwritingAnswer.prototype, "application_person_id", void 0);
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
- ], AppUnderwritingAnswer.prototype, "app_coverage_id", void 0);
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
- ], AppUnderwritingAnswer.prototype, "question_id", void 0);
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
- ], AppUnderwritingAnswer.prototype, "answer_text", void 0);
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
- ], AppUnderwritingAnswer.prototype, "answer_number", void 0);
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
- ], AppUnderwritingAnswer.prototype, "answer_date", void 0);
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
- ], AppUnderwritingAnswer.prototype, "answer_bool", void 0);
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
- ], AppUnderwritingAnswer.prototype, "remark", void 0);
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
- ], AppUnderwritingAnswer.prototype, "sequence_no", void 0);
69
+ ], AppUnderwritingAnswerEntity.prototype, "sequence_no", void 0);
70
70
  __decorate([
71
- (0, typeorm_1.ManyToOne)(() => application_entity_1.Application, { onDelete: 'RESTRICT' }),
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.Application)
74
- ], AppUnderwritingAnswer.prototype, "application", void 0);
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
- ], AppUnderwritingAnswer.prototype, "application_person", void 0);
79
+ ], AppUnderwritingAnswerEntity.prototype, "application_person", void 0);
80
80
  __decorate([
81
- (0, typeorm_1.ManyToOne)(() => app_coverage_entity_1.AppCoverage, { onDelete: 'RESTRICT' }),
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
- ], AppUnderwritingAnswer.prototype, "app_coverage", void 0);
84
+ ], AppUnderwritingAnswerEntity.prototype, "app_coverage", void 0);
85
85
  __decorate([
86
- (0, typeorm_1.ManyToOne)(() => underwriting_question_entity_1.UnderwritingQuestion, { onDelete: 'RESTRICT' }),
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.UnderwritingQuestion)
89
- ], AppUnderwritingAnswer.prototype, "question", void 0);
90
- exports.AppUnderwritingAnswer = AppUnderwritingAnswer = __decorate([
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
- ], AppUnderwritingAnswer);
98
+ ], AppUnderwritingAnswerEntity);
@@ -1,7 +1,7 @@
1
1
  import { _BaseEntity } from '../_base_entity';
2
2
  import { ApplicationStatus, AppPhLaRelation } from '../../types';
3
- import { Organization, OrganizationBranch, OrganizationStaff } from '../core';
4
- export declare class Application extends _BaseEntity {
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: Organization;
39
- owner_org_staff: OrganizationStaff;
40
- assigned_org_staff?: OrganizationStaff | null;
41
- org_branch?: OrganizationBranch | null;
38
+ org: OrganizationEntity;
39
+ owner_org_staff: OrganizationStaffEntity;
40
+ assigned_org_staff?: OrganizationStaffEntity | null;
41
+ org_branch?: OrganizationBranchEntity | null;
42
42
  }