easywork-common-lib 1.0.996 → 1.0.997
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.
|
@@ -18,6 +18,9 @@ let Permission = class Permission extends base_entity_1.EntityBase {
|
|
|
18
18
|
resource;
|
|
19
19
|
rules;
|
|
20
20
|
roles;
|
|
21
|
+
minRoleLevel;
|
|
22
|
+
maxRoleLevel;
|
|
23
|
+
useRoleLevel;
|
|
21
24
|
};
|
|
22
25
|
exports.Permission = Permission;
|
|
23
26
|
__decorate([
|
|
@@ -42,6 +45,24 @@ __decorate([
|
|
|
42
45
|
(0, typeorm_1.JoinTable)(),
|
|
43
46
|
__metadata("design:type", Array)
|
|
44
47
|
], Permission.prototype, "roles", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "Minimum role level required" }),
|
|
50
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], Permission.prototype, "minRoleLevel", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "Maximum role level allowed" }),
|
|
55
|
+
(0, typeorm_1.Column)({ type: "int", nullable: true }),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], Permission.prototype, "maxRoleLevel", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, swagger_1.ApiProperty)({
|
|
60
|
+
type: Boolean,
|
|
61
|
+
description: "Whether to use role level or specific roles",
|
|
62
|
+
}),
|
|
63
|
+
(0, typeorm_1.Column)({ type: "boolean", default: false }),
|
|
64
|
+
__metadata("design:type", Boolean)
|
|
65
|
+
], Permission.prototype, "useRoleLevel", void 0);
|
|
45
66
|
exports.Permission = Permission = __decorate([
|
|
46
67
|
(0, typeorm_1.Entity)()
|
|
47
68
|
], Permission);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../src/entities/permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA4D;AAC5D,qCAAgE;AAChE,+CAAqC;AACrC,6CAA8C;AAIvC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,wBAAU;IAGxC,QAAQ,CAAS;IAIjB,KAAK,CAAmB;IAWxB,KAAK,CAAU;
|
|
1
|
+
{"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../src/entities/permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gEAA4D;AAC5D,qCAAgE;AAChE,+CAAqC;AACrC,6CAA8C;AAIvC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,wBAAU;IAGxC,QAAQ,CAAS;IAIjB,KAAK,CAAmB;IAWxB,KAAK,CAAU;IAIf,YAAY,CAAU;IAItB,YAAY,CAAU;IAOtB,YAAY,CAAU;CACvB,CAAA;AAlCY,gCAAU;AAGrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IACzE,IAAA,gBAAM,GAAE;;4CACQ;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IACtE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAClB;AAWxB;IATC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,kBAAI,CAAC;QAClB,WAAW,EAAE,sCAAsC;KACpD,CAAC;IACD,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACtB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,mBAAS,GAAE;;yCACG;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAA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