plac-micro-common 1.2.62 → 1.2.63
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"])
|