plac-micro-common 1.2.78 → 1.2.80

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,2 +1,6 @@
1
1
  export declare const DISPLAY_DATE_FORMAT = "DD MMM YYYY";
2
2
  export declare const DISPLAY_DATE_TIME_FORMAT = "DD MMM YYYY hh:mm A";
3
+ export declare const APP_ERROR_CODES: {
4
+ ApplicationNotFound: string;
5
+ ApplicationInfoMissing: string;
6
+ };
@@ -1,5 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DISPLAY_DATE_TIME_FORMAT = exports.DISPLAY_DATE_FORMAT = void 0;
3
+ exports.APP_ERROR_CODES = exports.DISPLAY_DATE_TIME_FORMAT = exports.DISPLAY_DATE_FORMAT = void 0;
4
4
  exports.DISPLAY_DATE_FORMAT = "DD MMM YYYY";
5
5
  exports.DISPLAY_DATE_TIME_FORMAT = "DD MMM YYYY hh:mm A";
6
+ exports.APP_ERROR_CODES = {
7
+ ApplicationNotFound: "APPLICATION_NOT_FOUND",
8
+ ApplicationInfoMissing: "APPLICATION_INFO_MISSING",
9
+ };
@@ -79,15 +79,33 @@ __decorate([
79
79
  __metadata("design:type", Object)
80
80
  ], AppCoverageEntity.prototype, "discount_value", void 0);
81
81
  __decorate([
82
- (0, typeorm_1.Column)({ type: "numeric", nullable: true }),
82
+ (0, typeorm_1.Column)({
83
+ type: "numeric",
84
+ precision: 18,
85
+ scale: 2,
86
+ default: 0,
87
+ nullable: true,
88
+ }),
83
89
  __metadata("design:type", Object)
84
90
  ], AppCoverageEntity.prototype, "discount_premium_amount", void 0);
85
91
  __decorate([
86
- (0, typeorm_1.Column)({ type: "numeric", nullable: true }),
92
+ (0, typeorm_1.Column)({
93
+ type: "numeric",
94
+ precision: 18,
95
+ scale: 2,
96
+ default: 0,
97
+ nullable: true,
98
+ }),
87
99
  __metadata("design:type", Object)
88
100
  ], AppCoverageEntity.prototype, "annual_premium_amount", void 0);
89
101
  __decorate([
90
- (0, typeorm_1.Column)({ type: "numeric", nullable: true }),
102
+ (0, typeorm_1.Column)({
103
+ type: "numeric",
104
+ precision: 18,
105
+ scale: 2,
106
+ default: 0,
107
+ nullable: true,
108
+ }),
91
109
  __metadata("design:type", Object)
92
110
  ], AppCoverageEntity.prototype, "mode_premium_amount", void 0);
93
111
  __decorate([
@@ -26,6 +26,9 @@ export declare class ApplicationEntity extends _BaseEntity {
26
26
  rejection_reason?: string | null;
27
27
  transferred_at?: Date | null;
28
28
  quotation_id?: string | null;
29
+ payment_method_id?: string | null;
30
+ annual_premium_amount?: number | null;
31
+ mode_premium_amount?: number | null;
29
32
  created_by_user_id: string;
30
33
  updated_by_user_id?: string | null;
31
34
  completed_by_user_id?: string | null;
@@ -115,6 +115,30 @@ __decorate([
115
115
  (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
116
116
  __metadata("design:type", Object)
117
117
  ], ApplicationEntity.prototype, "quotation_id", void 0);
118
+ __decorate([
119
+ (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
120
+ __metadata("design:type", Object)
121
+ ], ApplicationEntity.prototype, "payment_method_id", void 0);
122
+ __decorate([
123
+ (0, typeorm_1.Column)({
124
+ type: "numeric",
125
+ precision: 18,
126
+ scale: 2,
127
+ default: 0,
128
+ nullable: true,
129
+ }),
130
+ __metadata("design:type", Object)
131
+ ], ApplicationEntity.prototype, "annual_premium_amount", void 0);
132
+ __decorate([
133
+ (0, typeorm_1.Column)({
134
+ type: "numeric",
135
+ precision: 18,
136
+ scale: 2,
137
+ default: 0,
138
+ nullable: true,
139
+ }),
140
+ __metadata("design:type", Object)
141
+ ], ApplicationEntity.prototype, "mode_premium_amount", void 0);
118
142
  __decorate([
119
143
  (0, typeorm_1.Index)(),
120
144
  (0, typeorm_1.Column)({ type: "uuid" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.2.78",
3
+ "version": "1.2.80",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {