plac-micro-common 1.2.13 → 1.2.14

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.
@@ -31,15 +31,15 @@ __decorate([
31
31
  __metadata("design:type", customer_entity_1.CustomerEntity)
32
32
  ], CustomerAddressEntity.prototype, "customer", void 0);
33
33
  __decorate([
34
- (0, typeorm_1.Column)({ length: 30 }),
34
+ (0, typeorm_1.Column)({ type: "varchar", length: 30 }),
35
35
  __metadata("design:type", String)
36
36
  ], CustomerAddressEntity.prototype, "address_type", void 0);
37
37
  __decorate([
38
- (0, typeorm_1.Column)({ length: 500 }),
38
+ (0, typeorm_1.Column)({ type: "varchar", length: 500 }),
39
39
  __metadata("design:type", String)
40
40
  ], CustomerAddressEntity.prototype, "full_address", void 0);
41
41
  __decorate([
42
- (0, typeorm_1.Column)({ length: 500, nullable: true }),
42
+ (0, typeorm_1.Column)({ type: "varchar", length: 500, nullable: true }),
43
43
  __metadata("design:type", String)
44
44
  ], CustomerAddressEntity.prototype, "full_address_kh", void 0);
45
45
  __decorate([
@@ -36,11 +36,11 @@ __decorate([
36
36
  __metadata("design:type", String)
37
37
  ], CustomerContactEntity.prototype, "contact_type", void 0);
38
38
  __decorate([
39
- (0, typeorm_1.Column)({ length: 255 }),
39
+ (0, typeorm_1.Column)({ type: "varchar", length: 255 }),
40
40
  __metadata("design:type", String)
41
41
  ], CustomerContactEntity.prototype, "value", void 0);
42
42
  __decorate([
43
- (0, typeorm_1.Column)({ length: 50, nullable: true }),
43
+ (0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
44
44
  __metadata("design:type", Object)
45
45
  ], CustomerContactEntity.prototype, "label", void 0);
46
46
  __decorate([
@@ -33,23 +33,23 @@ __decorate([
33
33
  __metadata("design:type", customer_entity_1.CustomerEntity)
34
34
  ], CustomerCorporateProfileEntity.prototype, "customer", void 0);
35
35
  __decorate([
36
- (0, typeorm_1.Column)({ length: 255 }),
36
+ (0, typeorm_1.Column)({ type: "varchar", length: 255 }),
37
37
  __metadata("design:type", String)
38
38
  ], CustomerCorporateProfileEntity.prototype, "company_name", void 0);
39
39
  __decorate([
40
- (0, typeorm_1.Column)({ length: 255, nullable: true }),
40
+ (0, typeorm_1.Column)({ type: "varchar", length: 255, nullable: true }),
41
41
  __metadata("design:type", String)
42
42
  ], CustomerCorporateProfileEntity.prototype, "company_name_kh", void 0);
43
43
  __decorate([
44
- (0, typeorm_1.Column)({ length: 100, nullable: true }),
44
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
45
45
  __metadata("design:type", Object)
46
46
  ], CustomerCorporateProfileEntity.prototype, "company_registration_no", void 0);
47
47
  __decorate([
48
- (0, typeorm_1.Column)({ length: 100, nullable: true }),
48
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
49
49
  __metadata("design:type", Object)
50
50
  ], CustomerCorporateProfileEntity.prototype, "tax_id", void 0);
51
51
  __decorate([
52
- (0, typeorm_1.Column)({ length: 50, nullable: true }),
52
+ (0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true }),
53
53
  __metadata("design:type", Object)
54
54
  ], CustomerCorporateProfileEntity.prototype, "industry", void 0);
55
55
  __decorate([
@@ -50,7 +50,7 @@ __decorate([
50
50
  __metadata("design:type", Object)
51
51
  ], CustomerIdentifierEntity.prototype, "expiry_date", void 0);
52
52
  __decorate([
53
- (0, typeorm_1.Column)({ length: 100, nullable: true }),
53
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
54
54
  __metadata("design:type", Object)
55
55
  ], CustomerIdentifierEntity.prototype, "issued_place", void 0);
56
56
  __decorate([
@@ -11,7 +11,7 @@ export declare class CustomerIndividualProfileEntity extends _BaseEntity {
11
11
  last_name_kh?: string;
12
12
  date_of_birth?: Date | null;
13
13
  gender?: Gender;
14
- marital_status?: MaritalStatus;
14
+ marital_status_id?: MaritalStatus;
15
15
  nationality_id?: string | null;
16
16
  occupation_id?: string | null;
17
17
  }
@@ -34,19 +34,19 @@ __decorate([
34
34
  __metadata("design:type", customer_entity_1.CustomerEntity)
35
35
  ], CustomerIndividualProfileEntity.prototype, "customer", void 0);
36
36
  __decorate([
37
- (0, typeorm_1.Column)({ length: 100 }),
37
+ (0, typeorm_1.Column)({ type: "varchar", length: 100 }),
38
38
  __metadata("design:type", String)
39
39
  ], CustomerIndividualProfileEntity.prototype, "first_name", void 0);
40
40
  __decorate([
41
- (0, typeorm_1.Column)({ length: 100 }),
41
+ (0, typeorm_1.Column)({ type: "varchar", length: 100 }),
42
42
  __metadata("design:type", String)
43
43
  ], CustomerIndividualProfileEntity.prototype, "last_name", void 0);
44
44
  __decorate([
45
- (0, typeorm_1.Column)({ length: 100, nullable: true }),
45
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
46
46
  __metadata("design:type", String)
47
47
  ], CustomerIndividualProfileEntity.prototype, "first_name_kh", void 0);
48
48
  __decorate([
49
- (0, typeorm_1.Column)({ length: 100, nullable: true }),
49
+ (0, typeorm_1.Column)({ type: "varchar", length: 100, nullable: true }),
50
50
  __metadata("design:type", String)
51
51
  ], CustomerIndividualProfileEntity.prototype, "last_name_kh", void 0);
52
52
  __decorate([
@@ -54,13 +54,13 @@ __decorate([
54
54
  __metadata("design:type", Object)
55
55
  ], CustomerIndividualProfileEntity.prototype, "date_of_birth", void 0);
56
56
  __decorate([
57
- (0, typeorm_1.Column)({ length: 5, nullable: true }),
57
+ (0, typeorm_1.Column)({ type: "varchar", length: 5, nullable: true }),
58
58
  __metadata("design:type", String)
59
59
  ], CustomerIndividualProfileEntity.prototype, "gender", void 0);
60
60
  __decorate([
61
- (0, typeorm_1.Column)({ length: 50, nullable: true }),
61
+ (0, typeorm_1.Column)({ type: "uuid", length: 50, nullable: true }),
62
62
  __metadata("design:type", String)
63
- ], CustomerIndividualProfileEntity.prototype, "marital_status", void 0);
63
+ ], CustomerIndividualProfileEntity.prototype, "marital_status_id", void 0);
64
64
  __decorate([
65
65
  (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
66
66
  __metadata("design:type", Object)
@@ -4,6 +4,6 @@ export declare class CustomerOwnershipEntity extends _BaseEntity {
4
4
  id: string;
5
5
  customer_id: string;
6
6
  customer: CustomerEntity;
7
- partner_id: string;
7
+ partner_id?: string;
8
8
  created_by_staff_id?: string;
9
9
  }
@@ -33,7 +33,7 @@ __decorate([
33
33
  __metadata("design:type", customer_entity_1.CustomerEntity)
34
34
  ], CustomerOwnershipEntity.prototype, "customer", void 0);
35
35
  __decorate([
36
- (0, typeorm_1.Column)({ type: "uuid" }),
36
+ (0, typeorm_1.Column)({ type: "uuid", nullable: true }),
37
37
  (0, typeorm_1.Index)(),
38
38
  __metadata("design:type", String)
39
39
  ], CustomerOwnershipEntity.prototype, "partner_id", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.2.13",
3
+ "version": "1.2.14",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {