easywork-common-lib 1.0.391 → 1.0.393
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/entities/menu-permissions.entity.js +1 -1
- package/dist/entities/menu-permissions.entity.js.map +1 -1
- package/dist/entities/role.entity.d.ts +1 -0
- package/dist/entities/role.entity.js +6 -0
- package/dist/entities/role.entity.js.map +1 -1
- package/package.json +6 -6
- package/scripts/bump.sh +0 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -30,7 +30,7 @@ __decorate([
|
|
|
30
30
|
], MenuPermissions.prototype, "deny", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User associated with the Menu Permission' }),
|
|
33
|
-
(0, typeorm_1.OneToOne)(() => user_entity_1.User, user => user.
|
|
33
|
+
(0, typeorm_1.OneToOne)(() => user_entity_1.User, user => user.menuPermissions, {
|
|
34
34
|
onDelete: "CASCADE",
|
|
35
35
|
onUpdate: "CASCADE",
|
|
36
36
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-permissions.entity.js","sourceRoot":"","sources":["../../src/entities/menu-permissions.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,gEAA4D;AAC5D,qCAAmD;AACnD,+CAAqC;AAG9B,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,wBAAU;IAE7C,IAAI,CAAW;IAGf,IAAI,CAAW;IAOf,IAAI,CAAO;CACZ,CAAA;AAbY,0CAAe;AAE1B;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC;;6CACnB;AAGf;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC;;6CACnB;AAOf;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,0CAA0C,EAAE,CAAC;IAC1F,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"menu-permissions.entity.js","sourceRoot":"","sources":["../../src/entities/menu-permissions.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,gEAA4D;AAC5D,qCAAmD;AACnD,+CAAqC;AAG9B,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,wBAAU;IAE7C,IAAI,CAAW;IAGf,IAAI,CAAW;IAOf,IAAI,CAAO;CACZ,CAAA;AAbY,0CAAe;AAE1B;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC;;6CACnB;AAGf;IADC,IAAA,gBAAM,EAAC,SAAS,EAAE,EAAE,KAAK,EAAE,IAAI,EAAC,CAAC;;6CACnB;AAOf;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,0CAA0C,EAAE,CAAC;IAC1F,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,EAAE;QAClD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACI,kBAAI;6CAAC;0BAZA,eAAe;IAD3B,IAAA,gBAAM,GAAE;GACI,eAAe,CAa3B"}
|
|
@@ -17,6 +17,7 @@ const typeorm_1 = require("typeorm");
|
|
|
17
17
|
let Role = class Role extends base_entity_1.EntityBase {
|
|
18
18
|
name;
|
|
19
19
|
isDefault;
|
|
20
|
+
defaultMenuPermissions;
|
|
20
21
|
};
|
|
21
22
|
exports.Role = Role;
|
|
22
23
|
__decorate([
|
|
@@ -30,6 +31,11 @@ __decorate([
|
|
|
30
31
|
(0, typeorm_1.Column)({ default: false }),
|
|
31
32
|
__metadata("design:type", Boolean)
|
|
32
33
|
], Role.prototype, "isDefault", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiProperty)({ type: [String], description: 'Default Menu Permissions' }),
|
|
36
|
+
(0, typeorm_1.Column)({ type: "varchar", array: true }),
|
|
37
|
+
__metadata("design:type", Array)
|
|
38
|
+
], Role.prototype, "defaultMenuPermissions", void 0);
|
|
33
39
|
exports.Role = Role = __decorate([
|
|
34
40
|
(0, typeorm_1.Entity)()
|
|
35
41
|
], Role);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,gEAA4D;AAC5D,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAIlC,IAAI,CAAS;IAIb,SAAS,CAAU;
|
|
1
|
+
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,gEAA4D;AAC5D,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAIlC,IAAI,CAAS;IAIb,SAAS,CAAU;IAInB,sBAAsB,CAAW;CAElC,CAAA;AAdY,oBAAI;AAIf;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IAC5E,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kCACZ;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;IACzE,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;uCACR;AAInB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IACxE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;oDACR;eAZtB,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAchB"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easywork-common-lib",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.393",
|
|
4
4
|
"description": "Librería común de Easywork",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "tsc && cpx-fixed src/**/*.proto dist/",
|
|
8
|
-
"bump": "./scripts/bump.sh"
|
|
9
|
-
},
|
|
10
6
|
"repository": {
|
|
11
7
|
"type": "git",
|
|
12
8
|
"url": "git+https://github.com/criptopreto/easywork-common-lib.git"
|
|
@@ -38,5 +34,9 @@
|
|
|
38
34
|
"cpx-fixed": "^1.6.0",
|
|
39
35
|
"ts-loader": "^9.5.1",
|
|
40
36
|
"typescript": "^5.4.5"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "tsc && cpx-fixed src/**/*.proto dist/",
|
|
40
|
+
"bump": "./scripts/bump.sh"
|
|
41
41
|
}
|
|
42
|
-
}
|
|
42
|
+
}
|
package/scripts/bump.sh
CHANGED
|
File without changes
|