plac-micro-common 1.2.62 → 1.2.64
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApplicationEntity } from "./application.entity";
|
|
2
2
|
import { _BaseEntity } from "../_base_entity";
|
|
3
3
|
import { AppCoverageType, DiscountType } from "../../types";
|
|
4
|
-
import {
|
|
4
|
+
import { PaymentModeEntity, TermEntity } from "../core";
|
|
5
5
|
export declare class AppCoverageEntity extends _BaseEntity {
|
|
6
6
|
id: string;
|
|
7
7
|
application_id: string;
|
|
@@ -17,10 +17,10 @@ export declare class AppCoverageEntity extends _BaseEntity {
|
|
|
17
17
|
discount_premium_amount?: number | null;
|
|
18
18
|
annual_premium_amount?: number | null;
|
|
19
19
|
mode_premium_amount?: number | null;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
payment_mode_id?: string | null;
|
|
21
|
+
term_id?: string | null;
|
|
22
22
|
is_active: boolean;
|
|
23
23
|
application: ApplicationEntity;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
term: TermEntity;
|
|
25
|
+
payment_mode: PaymentModeEntity;
|
|
26
26
|
}
|
|
@@ -93,11 +93,11 @@ __decorate([
|
|
|
93
93
|
__decorate([
|
|
94
94
|
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
95
95
|
__metadata("design:type", Object)
|
|
96
|
-
], AppCoverageEntity.prototype, "
|
|
96
|
+
], AppCoverageEntity.prototype, "payment_mode_id", void 0);
|
|
97
97
|
__decorate([
|
|
98
98
|
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
99
99
|
__metadata("design:type", Object)
|
|
100
|
-
], AppCoverageEntity.prototype, "
|
|
100
|
+
], AppCoverageEntity.prototype, "term_id", void 0);
|
|
101
101
|
__decorate([
|
|
102
102
|
(0, typeorm_1.Column)({ type: "boolean", default: true }),
|
|
103
103
|
__metadata("design:type", Boolean)
|
|
@@ -108,15 +108,15 @@ __decorate([
|
|
|
108
108
|
__metadata("design:type", application_entity_1.ApplicationEntity)
|
|
109
109
|
], AppCoverageEntity.prototype, "application", void 0);
|
|
110
110
|
__decorate([
|
|
111
|
-
(0, typeorm_1.ManyToOne)(() => core_1.
|
|
112
|
-
(0, typeorm_1.JoinColumn)({ name: "
|
|
113
|
-
__metadata("design:type", core_1.
|
|
114
|
-
], AppCoverageEntity.prototype, "
|
|
111
|
+
(0, typeorm_1.ManyToOne)(() => core_1.TermEntity, { onDelete: "SET NULL" }),
|
|
112
|
+
(0, typeorm_1.JoinColumn)({ name: "term_id" }),
|
|
113
|
+
__metadata("design:type", core_1.TermEntity)
|
|
114
|
+
], AppCoverageEntity.prototype, "term", void 0);
|
|
115
115
|
__decorate([
|
|
116
|
-
(0, typeorm_1.ManyToOne)(() => core_1.
|
|
117
|
-
(0, typeorm_1.JoinColumn)({ name: "
|
|
118
|
-
__metadata("design:type", core_1.
|
|
119
|
-
], AppCoverageEntity.prototype, "
|
|
116
|
+
(0, typeorm_1.ManyToOne)(() => core_1.PaymentModeEntity, { onDelete: "SET NULL" }),
|
|
117
|
+
(0, typeorm_1.JoinColumn)({ name: "payment_mode_id" }),
|
|
118
|
+
__metadata("design:type", core_1.PaymentModeEntity)
|
|
119
|
+
], AppCoverageEntity.prototype, "payment_mode", void 0);
|
|
120
120
|
exports.AppCoverageEntity = AppCoverageEntity = __decorate([
|
|
121
121
|
(0, typeorm_1.Entity)({ schema: "application", name: "app_coverages" }),
|
|
122
122
|
(0, typeorm_1.Unique)("uq_app_coverage_app_seq", ["application_id", "sequence_no"])
|
|
@@ -19,13 +19,7 @@ export declare class ApplicationEntity extends _BaseEntity {
|
|
|
19
19
|
rejected_at?: Date | null;
|
|
20
20
|
rejection_reason?: string | null;
|
|
21
21
|
transferred_at?: Date | null;
|
|
22
|
-
|
|
23
|
-
product_plan_id?: string | null;
|
|
24
|
-
currency?: string | null;
|
|
25
|
-
sum_assured?: number | null;
|
|
26
|
-
mode_premium_amount?: number | null;
|
|
27
|
-
product_payment_mode_id?: string | null;
|
|
28
|
-
product_policy_term_id?: string | null;
|
|
22
|
+
quotation_id?: string | null;
|
|
29
23
|
created_by_user_id: string;
|
|
30
24
|
updated_by_user_id?: string | null;
|
|
31
25
|
submitted_by_user_id?: string | null;
|
|
@@ -103,35 +103,10 @@ __decorate([
|
|
|
103
103
|
(0, typeorm_1.Column)({ type: "timestamptz", nullable: true }),
|
|
104
104
|
__metadata("design:type", Object)
|
|
105
105
|
], ApplicationEntity.prototype, "transferred_at", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
(0, typeorm_1.Index)(),
|
|
108
|
-
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
109
|
-
__metadata("design:type", Object)
|
|
110
|
-
], ApplicationEntity.prototype, "product_id", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
113
|
-
__metadata("design:type", Object)
|
|
114
|
-
], ApplicationEntity.prototype, "product_plan_id", void 0);
|
|
115
|
-
__decorate([
|
|
116
|
-
(0, typeorm_1.Column)({ type: "varchar", length: 10, nullable: true }),
|
|
117
|
-
__metadata("design:type", Object)
|
|
118
|
-
], ApplicationEntity.prototype, "currency", void 0);
|
|
119
|
-
__decorate([
|
|
120
|
-
(0, typeorm_1.Column)({ type: "numeric", nullable: true }),
|
|
121
|
-
__metadata("design:type", Object)
|
|
122
|
-
], ApplicationEntity.prototype, "sum_assured", void 0);
|
|
123
|
-
__decorate([
|
|
124
|
-
(0, typeorm_1.Column)({ type: "numeric", nullable: true }),
|
|
125
|
-
__metadata("design:type", Object)
|
|
126
|
-
], ApplicationEntity.prototype, "mode_premium_amount", void 0);
|
|
127
|
-
__decorate([
|
|
128
|
-
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
129
|
-
__metadata("design:type", Object)
|
|
130
|
-
], ApplicationEntity.prototype, "product_payment_mode_id", void 0);
|
|
131
106
|
__decorate([
|
|
132
107
|
(0, typeorm_1.Column)({ type: "uuid", nullable: true }),
|
|
133
108
|
__metadata("design:type", Object)
|
|
134
|
-
], ApplicationEntity.prototype, "
|
|
109
|
+
], ApplicationEntity.prototype, "quotation_id", void 0);
|
|
135
110
|
__decorate([
|
|
136
111
|
(0, typeorm_1.Index)(),
|
|
137
112
|
(0, typeorm_1.Column)({ type: "uuid" }),
|