plac-micro-common 1.2.77 → 1.2.79

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.
@@ -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" }),
@@ -28,8 +28,9 @@ export interface RequestContextData {
28
28
  }
29
29
  export type CurrentUserInfo = {
30
30
  id: string;
31
- full_name: string;
31
+ full_name?: string;
32
32
  full_name_kh?: string;
33
+ email?: string;
33
34
  username?: string;
34
35
  partner_id?: string;
35
36
  org_id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.2.77",
3
+ "version": "1.2.79",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {