plac-micro-common 1.3.104 → 1.3.105

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,11 +1,12 @@
1
1
  import { _BaseEntity } from "../_base_entity";
2
- import { Gender, QuotationStatus } from "../../types";
2
+ import { AppPhLaRelation, Gender, QuotationStatus } from "../../types";
3
3
  import { QuotationCalculationLogEntity } from "./quotation_calculation_log.entity";
4
4
  import { CustomerEntity } from "../customer";
5
5
  import { OrganizationEntity, OrganizationStaffEntity, PaymentModeEntity, ProductEntity, PromotionEntity, RiderEntity, TermEntity } from "../core";
6
6
  export declare class QuotationEntity extends _BaseEntity {
7
7
  id: string;
8
8
  quotation_no?: string | null;
9
+ legacy_id?: string | null;
9
10
  status: QuotationStatus;
10
11
  calculation_log_id?: string | null;
11
12
  product_id: string;
@@ -15,6 +16,7 @@ export declare class QuotationEntity extends _BaseEntity {
15
16
  term_id: string;
16
17
  sum_assured: number;
17
18
  customer_id?: string;
19
+ ph_la_relation: AppPhLaRelation;
18
20
  date_of_birth: string;
19
21
  gender: Gender;
20
22
  ph_first_name: string;
@@ -33,6 +35,7 @@ export declare class QuotationEntity extends _BaseEntity {
33
35
  org_id?: string;
34
36
  org_staff_id?: string | null;
35
37
  branch_id?: string | null;
38
+ metadata?: Record<string, any> | null;
36
39
  calculation_log?: QuotationCalculationLogEntity | null;
37
40
  customer?: CustomerEntity;
38
41
  product: ProductEntity;
@@ -28,6 +28,10 @@ __decorate([
28
28
  (0, typeorm_1.Column)({ type: "varchar", length: 30, unique: true, nullable: true }),
29
29
  __metadata("design:type", Object)
30
30
  ], QuotationEntity.prototype, "quotation_no", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)({ type: "varchar", length: 30, unique: true, nullable: true }),
33
+ __metadata("design:type", Object)
34
+ ], QuotationEntity.prototype, "legacy_id", void 0);
31
35
  __decorate([
32
36
  (0, typeorm_1.Column)({
33
37
  type: "varchar",
@@ -71,6 +75,15 @@ __decorate([
71
75
  (0, typeorm_1.Index)(),
72
76
  __metadata("design:type", String)
73
77
  ], QuotationEntity.prototype, "customer_id", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)({
80
+ type: "varchar",
81
+ length: 50,
82
+ default: types_1.AppPhLaRelation.SamePerson,
83
+ comment: (0, utils_1.enumToCommentString)(types_1.AppPhLaRelation),
84
+ }),
85
+ __metadata("design:type", String)
86
+ ], QuotationEntity.prototype, "ph_la_relation", void 0);
74
87
  __decorate([
75
88
  (0, typeorm_1.Column)({ type: "date" }),
76
89
  __metadata("design:type", String)
@@ -144,6 +157,10 @@ __decorate([
144
157
  (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
145
158
  __metadata("design:type", Object)
146
159
  ], QuotationEntity.prototype, "branch_id", void 0);
160
+ __decorate([
161
+ (0, typeorm_1.Column)({ type: "jsonb", nullable: true }),
162
+ __metadata("design:type", Object)
163
+ ], QuotationEntity.prototype, "metadata", void 0);
147
164
  __decorate([
148
165
  (0, typeorm_1.ManyToOne)(() => quotation_calculation_log_entity_1.QuotationCalculationLogEntity, { nullable: true }),
149
166
  (0, typeorm_1.JoinColumn)({ name: "calculation_log_id" }),
@@ -1,6 +1,7 @@
1
1
  export declare enum FileStorageProvider {
2
2
  Local = "local",
3
- S3 = "s3"
3
+ S3 = "s3",
4
+ Legacy = "legacy"
4
5
  }
5
6
  export type UploadedFileResult = {
6
7
  original_file_name: string;
@@ -5,4 +5,5 @@ var FileStorageProvider;
5
5
  (function (FileStorageProvider) {
6
6
  FileStorageProvider["Local"] = "local";
7
7
  FileStorageProvider["S3"] = "s3";
8
+ FileStorageProvider["Legacy"] = "legacy";
8
9
  })(FileStorageProvider || (exports.FileStorageProvider = FileStorageProvider = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.3.104",
3
+ "version": "1.3.105",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {