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 { ProductPaymentModeEntity, ProductTermEntity } from "../core";
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
- product_payment_mode_id?: string | null;
21
- product_term_id?: string | null;
20
+ payment_mode_id?: string | null;
21
+ term_id?: string | null;
22
22
  is_active: boolean;
23
23
  application: ApplicationEntity;
24
- product_term: ProductTermEntity;
25
- product_payment_mode: ProductPaymentModeEntity;
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, "product_payment_mode_id", void 0);
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, "product_term_id", void 0);
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.ProductTermEntity, { onDelete: "SET NULL" }),
112
- (0, typeorm_1.JoinColumn)({ name: "product_term_id" }),
113
- __metadata("design:type", core_1.ProductTermEntity)
114
- ], AppCoverageEntity.prototype, "product_term", void 0);
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.ProductPaymentModeEntity, { onDelete: "SET NULL" }),
117
- (0, typeorm_1.JoinColumn)({ name: "product_payment_mode_id" }),
118
- __metadata("design:type", core_1.ProductPaymentModeEntity)
119
- ], AppCoverageEntity.prototype, "product_payment_mode", void 0);
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"])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.2.62",
3
+ "version": "1.2.63",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {