plac-micro-common 1.2.61 → 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,13 +1,14 @@
1
1
  import { ApplicationEntity } from "./application.entity";
2
2
  import { _BaseEntity } from "../_base_entity";
3
3
  import { AppCoverageType, DiscountType } from "../../types";
4
+ import { PaymentModeEntity, TermEntity } from "../core";
4
5
  export declare class AppCoverageEntity extends _BaseEntity {
5
6
  id: string;
6
7
  application_id: string;
7
8
  coverage_type: AppCoverageType;
8
9
  product_id: string;
9
10
  product_plan_id?: string | null;
10
- product_coverage_id?: string | null;
11
+ rider_id?: string | null;
11
12
  sequence_no: number;
12
13
  currency?: string | null;
13
14
  sum_assured?: number | null;
@@ -16,8 +17,10 @@ export declare class AppCoverageEntity extends _BaseEntity {
16
17
  discount_premium_amount?: number | null;
17
18
  annual_premium_amount?: number | null;
18
19
  mode_premium_amount?: number | null;
19
- product_payment_mode_id?: string | null;
20
- product_policy_term_id?: string | null;
20
+ payment_mode_id?: string | null;
21
+ term_id?: string | null;
21
22
  is_active: boolean;
22
23
  application: ApplicationEntity;
24
+ term: TermEntity;
25
+ payment_mode: PaymentModeEntity;
23
26
  }
@@ -15,6 +15,7 @@ const application_entity_1 = require("./application.entity");
15
15
  const _base_entity_1 = require("../_base_entity");
16
16
  const types_1 = require("../../types");
17
17
  const utils_1 = require("../../utils");
18
+ const core_1 = require("../core");
18
19
  let AppCoverageEntity = class AppCoverageEntity extends _base_entity_1._BaseEntity {
19
20
  };
20
21
  exports.AppCoverageEntity = AppCoverageEntity;
@@ -51,7 +52,7 @@ __decorate([
51
52
  (0, typeorm_1.Index)(),
52
53
  (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
53
54
  __metadata("design:type", Object)
54
- ], AppCoverageEntity.prototype, "product_coverage_id", void 0);
55
+ ], AppCoverageEntity.prototype, "rider_id", void 0);
55
56
  __decorate([
56
57
  (0, typeorm_1.Column)({ type: "int" }),
57
58
  __metadata("design:type", Number)
@@ -92,11 +93,11 @@ __decorate([
92
93
  __decorate([
93
94
  (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
94
95
  __metadata("design:type", Object)
95
- ], AppCoverageEntity.prototype, "product_payment_mode_id", void 0);
96
+ ], AppCoverageEntity.prototype, "payment_mode_id", void 0);
96
97
  __decorate([
97
98
  (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
98
99
  __metadata("design:type", Object)
99
- ], AppCoverageEntity.prototype, "product_policy_term_id", void 0);
100
+ ], AppCoverageEntity.prototype, "term_id", void 0);
100
101
  __decorate([
101
102
  (0, typeorm_1.Column)({ type: "boolean", default: true }),
102
103
  __metadata("design:type", Boolean)
@@ -106,6 +107,16 @@ __decorate([
106
107
  (0, typeorm_1.JoinColumn)({ name: "application_id" }),
107
108
  __metadata("design:type", application_entity_1.ApplicationEntity)
108
109
  ], AppCoverageEntity.prototype, "application", void 0);
110
+ __decorate([
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
+ __decorate([
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);
109
120
  exports.AppCoverageEntity = AppCoverageEntity = __decorate([
110
121
  (0, typeorm_1.Entity)({ schema: "application", name: "app_coverages" }),
111
122
  (0, typeorm_1.Unique)("uq_app_coverage_app_seq", ["application_id", "sequence_no"])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.2.61",
3
+ "version": "1.2.63",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {