plac-micro-common 1.2.30 → 1.2.32
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.
- package/dist/models/application/app_beneficiary.entity.d.ts +3 -3
- package/dist/models/application/app_beneficiary.entity.js +24 -24
- package/dist/models/application/app_coverage.entity.d.ts +3 -3
- package/dist/models/application/app_coverage.entity.js +25 -25
- package/dist/models/application/app_person.entity.d.ts +2 -2
- package/dist/models/application/app_person.entity.js +2 -2
- package/dist/models/application/app_underwriting_answer.entity.d.ts +7 -7
- package/dist/models/application/app_underwriting_answer.entity.js +25 -25
- package/dist/models/application/application.entity.d.ts +6 -6
- package/dist/models/application/application.entity.js +48 -48
- package/dist/models/application/index.d.ts +7 -7
- package/dist/models/application/index.js +11 -11
- package/dist/models/application/underwriting_question.entity.d.ts +1 -1
- package/dist/models/application/underwriting_question.entity.js +13 -13
- package/dist/models/core/index.d.ts +11 -11
- package/dist/models/core/index.js +19 -19
- package/dist/models/core/org_branch.entity.d.ts +3 -3
- package/dist/models/core/org_branch.entity.js +16 -16
- package/dist/models/core/org_channel.entity.d.ts +3 -3
- package/dist/models/core/org_channel.entity.js +17 -17
- package/dist/models/core/org_department.entity.d.ts +3 -3
- package/dist/models/core/org_department.entity.js +17 -17
- package/dist/models/core/org_position.entity.d.ts +5 -5
- package/dist/models/core/org_position.entity.js +19 -19
- package/dist/models/core/org_staff.entity.d.ts +5 -5
- package/dist/models/core/org_staff.entity.js +21 -21
- package/dist/models/core/org_staff_branches.entity.d.ts +5 -5
- package/dist/models/core/org_staff_branches.entity.js +18 -18
- package/dist/models/core/org_staff_reporting_lines.entity.d.ts +4 -4
- package/dist/models/core/org_staff_reporting_lines.entity.js +20 -20
- package/dist/models/core/organization.entity.d.ts +1 -1
- package/dist/models/core/organization.entity.js +12 -12
- package/dist/models/core/staffs.entity.d.ts +1 -1
- package/dist/models/core/staffs.entity.js +19 -19
- package/dist/types/permission.type.d.ts +3 -0
- package/dist/types/permission.type.js +3 -0
- 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.
|
|
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
|
|
16
|
+
let OrganizationEntity = class OrganizationEntity extends _base_entity_1._BaseEntity {
|
|
17
17
|
};
|
|
18
|
-
exports.
|
|
18
|
+
exports.OrganizationEntity = OrganizationEntity;
|
|
19
19
|
__decorate([
|
|
20
20
|
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
48
|
-
exports.
|
|
47
|
+
], OrganizationEntity.prototype, "is_active", void 0);
|
|
48
|
+
exports.OrganizationEntity = OrganizationEntity = __decorate([
|
|
49
49
|
(0, typeorm_1.Entity)({ schema: "core", name: "organizations" })
|
|
50
|
-
],
|
|
50
|
+
], OrganizationEntity);
|
|
@@ -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.
|
|
12
|
+
exports.StaffEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const _base_entity_1 = require("../_base_entity");
|
|
15
|
-
let
|
|
15
|
+
let StaffEntity = class StaffEntity extends _base_entity_1._BaseEntity {
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
17
|
+
exports.StaffEntity = StaffEntity;
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
20
20
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
78
|
-
exports.
|
|
77
|
+
], StaffEntity.prototype, "is_active", void 0);
|
|
78
|
+
exports.StaffEntity = StaffEntity = __decorate([
|
|
79
79
|
(0, typeorm_1.Entity)({ schema: "core", name: "staffs" })
|
|
80
|
-
],
|
|
80
|
+
], StaffEntity);
|
|
@@ -15,8 +15,11 @@ export declare enum PermissionAction {
|
|
|
15
15
|
}
|
|
16
16
|
export declare const PermissionResource: {
|
|
17
17
|
readonly Application: "application";
|
|
18
|
+
readonly Branch: "branch";
|
|
18
19
|
readonly Claim: "claim";
|
|
20
|
+
readonly Channel: "channel";
|
|
19
21
|
readonly Customer: "customer";
|
|
22
|
+
readonly Department: "department";
|
|
20
23
|
readonly Dashboard: "dashboard";
|
|
21
24
|
readonly Menu: "menu";
|
|
22
25
|
readonly Organization: "organization";
|
|
@@ -19,8 +19,11 @@ var PermissionAction;
|
|
|
19
19
|
})(PermissionAction || (exports.PermissionAction = PermissionAction = {}));
|
|
20
20
|
exports.PermissionResource = {
|
|
21
21
|
Application: "application",
|
|
22
|
+
Branch: "branch",
|
|
22
23
|
Claim: "claim",
|
|
24
|
+
Channel: "channel",
|
|
23
25
|
Customer: "customer",
|
|
26
|
+
Department: "department",
|
|
24
27
|
Dashboard: "dashboard",
|
|
25
28
|
Menu: "menu",
|
|
26
29
|
Organization: "organization",
|