plac-micro-common 1.2.31 → 1.2.33

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.
Files changed (39) hide show
  1. package/dist/models/application/app_beneficiary.entity.d.ts +3 -3
  2. package/dist/models/application/app_beneficiary.entity.js +24 -24
  3. package/dist/models/application/app_coverage.entity.d.ts +3 -3
  4. package/dist/models/application/app_coverage.entity.js +25 -25
  5. package/dist/models/application/app_person.entity.d.ts +2 -2
  6. package/dist/models/application/app_person.entity.js +2 -2
  7. package/dist/models/application/app_underwriting_answer.entity.d.ts +8 -8
  8. package/dist/models/application/app_underwriting_answer.entity.js +25 -25
  9. package/dist/models/application/application.entity.d.ts +6 -6
  10. package/dist/models/application/application.entity.js +48 -48
  11. package/dist/models/application/index.d.ts +7 -7
  12. package/dist/models/application/index.js +11 -11
  13. package/dist/models/application/underwriting_question.entity.d.ts +4 -1
  14. package/dist/models/application/underwriting_question.entity.js +25 -13
  15. package/dist/models/core/index.d.ts +11 -11
  16. package/dist/models/core/index.js +19 -19
  17. package/dist/models/core/org_branch.entity.d.ts +3 -3
  18. package/dist/models/core/org_branch.entity.js +16 -16
  19. package/dist/models/core/org_channel.entity.d.ts +3 -3
  20. package/dist/models/core/org_channel.entity.js +17 -17
  21. package/dist/models/core/org_department.entity.d.ts +3 -3
  22. package/dist/models/core/org_department.entity.js +17 -17
  23. package/dist/models/core/org_position.entity.d.ts +5 -5
  24. package/dist/models/core/org_position.entity.js +19 -19
  25. package/dist/models/core/org_staff.entity.d.ts +5 -5
  26. package/dist/models/core/org_staff.entity.js +21 -21
  27. package/dist/models/core/org_staff_branches.entity.d.ts +5 -5
  28. package/dist/models/core/org_staff_branches.entity.js +18 -18
  29. package/dist/models/core/org_staff_reporting_lines.entity.d.ts +4 -4
  30. package/dist/models/core/org_staff_reporting_lines.entity.js +20 -20
  31. package/dist/models/core/organization.entity.d.ts +1 -1
  32. package/dist/models/core/organization.entity.js +12 -12
  33. package/dist/models/core/staffs.entity.d.ts +1 -1
  34. package/dist/models/core/staffs.entity.js +19 -19
  35. package/dist/models/customer/customer_contact.entity.js +1 -1
  36. package/dist/models/customer/customer_identifier.entity.js +5 -1
  37. package/dist/types/application.type.d.ts +5 -4
  38. package/dist/types/application.type.js +5 -4
  39. package/package.json +1 -1
@@ -9,42 +9,42 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Organization = void 0;
12
+ exports.OrganizationEntity = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const _base_entity_1 = require("../_base_entity");
15
15
  const types_1 = require("../../types");
16
- let Organization = class Organization extends _base_entity_1._BaseEntity {
16
+ let OrganizationEntity = class OrganizationEntity extends _base_entity_1._BaseEntity {
17
17
  };
18
- exports.Organization = Organization;
18
+ exports.OrganizationEntity = OrganizationEntity;
19
19
  __decorate([
20
20
  (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
21
21
  __metadata("design:type", String)
22
- ], Organization.prototype, "id", void 0);
22
+ ], OrganizationEntity.prototype, "id", void 0);
23
23
  __decorate([
24
24
  (0, typeorm_1.Column)({ type: "varchar", length: 30, unique: true }),
25
25
  __metadata("design:type", String)
26
- ], Organization.prototype, "code", void 0);
26
+ ], OrganizationEntity.prototype, "code", void 0);
27
27
  __decorate([
28
28
  (0, typeorm_1.Column)({ type: "varchar", length: 200, unique: true }),
29
29
  __metadata("design:type", String)
30
- ], Organization.prototype, "name", void 0);
30
+ ], OrganizationEntity.prototype, "name", void 0);
31
31
  __decorate([
32
32
  (0, typeorm_1.Column)({ type: "varchar", length: 200, nullable: true }),
33
33
  __metadata("design:type", String)
34
- ], Organization.prototype, "name_kh", void 0);
34
+ ], OrganizationEntity.prototype, "name_kh", void 0);
35
35
  __decorate([
36
36
  (0, typeorm_1.Index)(),
37
37
  (0, typeorm_1.Column)({ type: "varchar", length: 20 }),
38
38
  __metadata("design:type", String)
39
- ], Organization.prototype, "org_type", void 0);
39
+ ], OrganizationEntity.prototype, "org_type", void 0);
40
40
  __decorate([
41
41
  (0, typeorm_1.Column)({ type: "uuid", unique: true, nullable: true }),
42
42
  __metadata("design:type", Object)
43
- ], Organization.prototype, "auth_partner_id", void 0);
43
+ ], OrganizationEntity.prototype, "auth_partner_id", void 0);
44
44
  __decorate([
45
45
  (0, typeorm_1.Column)({ type: "boolean", default: true }),
46
46
  __metadata("design:type", Boolean)
47
- ], Organization.prototype, "is_active", void 0);
48
- exports.Organization = Organization = __decorate([
47
+ ], OrganizationEntity.prototype, "is_active", void 0);
48
+ exports.OrganizationEntity = OrganizationEntity = __decorate([
49
49
  (0, typeorm_1.Entity)({ schema: "core", name: "organizations" })
50
- ], Organization);
50
+ ], OrganizationEntity);
@@ -1,6 +1,6 @@
1
1
  import { _BaseEntity } from "../_base_entity";
2
2
  import { Gender } from "../../types";
3
- export declare class Staff extends _BaseEntity {
3
+ export declare class StaffEntity extends _BaseEntity {
4
4
  id: string;
5
5
  first_name: string;
6
6
  last_name: string;
@@ -9,72 +9,72 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Staff = void 0;
12
+ exports.StaffEntity = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const _base_entity_1 = require("../_base_entity");
15
- let Staff = class Staff extends _base_entity_1._BaseEntity {
15
+ let StaffEntity = class StaffEntity extends _base_entity_1._BaseEntity {
16
16
  };
17
- exports.Staff = Staff;
17
+ exports.StaffEntity = StaffEntity;
18
18
  __decorate([
19
19
  (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
20
20
  __metadata("design:type", String)
21
- ], Staff.prototype, "id", void 0);
21
+ ], StaffEntity.prototype, "id", void 0);
22
22
  __decorate([
23
23
  (0, typeorm_1.Column)({ type: "varchar", length: 200 }),
24
24
  __metadata("design:type", String)
25
- ], Staff.prototype, "first_name", void 0);
25
+ ], StaffEntity.prototype, "first_name", void 0);
26
26
  __decorate([
27
27
  (0, typeorm_1.Column)({ type: "varchar", length: 200 }),
28
28
  __metadata("design:type", String)
29
- ], Staff.prototype, "last_name", void 0);
29
+ ], StaffEntity.prototype, "last_name", void 0);
30
30
  __decorate([
31
31
  (0, typeorm_1.Column)({ type: "varchar", length: 200, nullable: true }),
32
32
  __metadata("design:type", String)
33
- ], Staff.prototype, "first_name_kh", void 0);
33
+ ], StaffEntity.prototype, "first_name_kh", void 0);
34
34
  __decorate([
35
35
  (0, typeorm_1.Column)({ type: "varchar", length: 200, nullable: true }),
36
36
  __metadata("design:type", String)
37
- ], Staff.prototype, "last_name_kh", void 0);
37
+ ], StaffEntity.prototype, "last_name_kh", void 0);
38
38
  __decorate([
39
39
  (0, typeorm_1.Column)({ type: "varchar", length: 200 }),
40
40
  __metadata("design:type", String)
41
- ], Staff.prototype, "full_name", void 0);
41
+ ], StaffEntity.prototype, "full_name", void 0);
42
42
  __decorate([
43
43
  (0, typeorm_1.Column)({ type: "varchar", length: 200, nullable: true }),
44
44
  __metadata("design:type", Object)
45
- ], Staff.prototype, "full_name_kh", void 0);
45
+ ], StaffEntity.prototype, "full_name_kh", void 0);
46
46
  __decorate([
47
47
  (0, typeorm_1.Index)(),
48
48
  (0, typeorm_1.Column)({ type: "varchar", length: 1, nullable: true }),
49
49
  __metadata("design:type", Object)
50
- ], Staff.prototype, "gender", void 0);
50
+ ], StaffEntity.prototype, "gender", void 0);
51
51
  __decorate([
52
52
  (0, typeorm_1.Column)({ type: "date", nullable: true }),
53
53
  __metadata("design:type", Object)
54
- ], Staff.prototype, "date_of_birth", void 0);
54
+ ], StaffEntity.prototype, "date_of_birth", void 0);
55
55
  __decorate([
56
56
  (0, typeorm_1.Index)(),
57
57
  (0, typeorm_1.Column)({ length: 50, nullable: true }),
58
58
  __metadata("design:type", String)
59
- ], Staff.prototype, "phone_number", void 0);
59
+ ], StaffEntity.prototype, "phone_number", void 0);
60
60
  __decorate([
61
61
  (0, typeorm_1.Index)(),
62
62
  (0, typeorm_1.Column)({ unique: true, length: 100, nullable: true }),
63
63
  __metadata("design:type", String)
64
- ], Staff.prototype, "email", void 0);
64
+ ], StaffEntity.prototype, "email", void 0);
65
65
  __decorate([
66
66
  (0, typeorm_1.Index)(),
67
67
  (0, typeorm_1.Column)({ unique: true, length: 50, nullable: true }),
68
68
  __metadata("design:type", String)
69
- ], Staff.prototype, "national_id", void 0);
69
+ ], StaffEntity.prototype, "national_id", void 0);
70
70
  __decorate([
71
71
  (0, typeorm_1.Column)({ unique: true, length: 50, nullable: true }),
72
72
  __metadata("design:type", String)
73
- ], Staff.prototype, "passport_id", void 0);
73
+ ], StaffEntity.prototype, "passport_id", void 0);
74
74
  __decorate([
75
75
  (0, typeorm_1.Column)({ type: "boolean", default: true }),
76
76
  __metadata("design:type", Boolean)
77
- ], Staff.prototype, "is_active", void 0);
78
- exports.Staff = Staff = __decorate([
77
+ ], StaffEntity.prototype, "is_active", void 0);
78
+ exports.StaffEntity = StaffEntity = __decorate([
79
79
  (0, typeorm_1.Entity)({ schema: "core", name: "staffs" })
80
- ], Staff);
80
+ ], StaffEntity);
@@ -50,5 +50,5 @@ __decorate([
50
50
  exports.CustomerContactEntity = CustomerContactEntity = __decorate([
51
51
  (0, typeorm_1.Entity)({ schema: "customer", name: "customer_contacts" }),
52
52
  (0, typeorm_1.Index)(["customer_id", "is_primary"]),
53
- (0, typeorm_1.Unique)("unique_contact_type_value", ["contact_type", "value"])
53
+ (0, typeorm_1.Unique)("unique_contact_type_value", ["customer_id", "contact_type", "value"])
54
54
  ], CustomerContactEntity);
@@ -64,5 +64,9 @@ __decorate([
64
64
  exports.CustomerIdentifierEntity = CustomerIdentifierEntity = __decorate([
65
65
  (0, typeorm_1.Entity)({ schema: "customer", name: "customer_identifiers" }),
66
66
  (0, typeorm_1.Index)(["identifier_type", "value"]),
67
- (0, typeorm_1.Unique)("unique_identifier_type_value", ["identifier_type", "value"])
67
+ (0, typeorm_1.Unique)("unique_identifier_type_value", [
68
+ "customer_id",
69
+ "identifier_type",
70
+ "value",
71
+ ])
68
72
  ], CustomerIdentifierEntity);
@@ -23,8 +23,9 @@ export declare enum AppCoverageType {
23
23
  Rider = "rider"
24
24
  }
25
25
  export declare enum UwAnswerValueType {
26
- Boolean = "BOOLEAN",
27
- Text = "TEXT",
28
- Number = "NUMBER",
29
- Date = "DATE"
26
+ Boolean = "boolean",
27
+ Text = "text",
28
+ Number = "number",
29
+ Date = "date",
30
+ YesOrNo = "yesno"
30
31
  }
@@ -31,8 +31,9 @@ var AppCoverageType;
31
31
  })(AppCoverageType || (exports.AppCoverageType = AppCoverageType = {}));
32
32
  var UwAnswerValueType;
33
33
  (function (UwAnswerValueType) {
34
- UwAnswerValueType["Boolean"] = "BOOLEAN";
35
- UwAnswerValueType["Text"] = "TEXT";
36
- UwAnswerValueType["Number"] = "NUMBER";
37
- UwAnswerValueType["Date"] = "DATE";
34
+ UwAnswerValueType["Boolean"] = "boolean";
35
+ UwAnswerValueType["Text"] = "text";
36
+ UwAnswerValueType["Number"] = "number";
37
+ UwAnswerValueType["Date"] = "date";
38
+ UwAnswerValueType["YesOrNo"] = "yesno";
38
39
  })(UwAnswerValueType || (exports.UwAnswerValueType = UwAnswerValueType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plac-micro-common",
3
- "version": "1.2.31",
3
+ "version": "1.2.33",
4
4
  "types": "dist/index.d.ts",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {