@hedhog/admin 0.0.21 → 0.0.23
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/admin.module.d.ts.map +1 -1
- package/dist/admin.module.js +10 -1
- package/dist/admin.module.js.map +1 -1
- package/dist/dto/delete.dto.d.ts.map +1 -0
- package/dist/dto/delete.dto.js.map +1 -0
- package/dist/menu/menu.controller.d.ts +3 -3
- package/dist/menu/menu.controller.d.ts.map +1 -1
- package/dist/menu/menu.controller.js +9 -7
- package/dist/menu/menu.controller.js.map +1 -1
- package/dist/menu/menu.service.d.ts +3 -3
- package/dist/menu/menu.service.d.ts.map +1 -1
- package/dist/menu/menu.service.js +18 -10
- package/dist/menu/menu.service.js.map +1 -1
- package/dist/role/role.controller.d.ts +1 -1
- package/dist/role/role.controller.d.ts.map +1 -1
- package/dist/role/role.controller.js +5 -5
- package/dist/role/role.controller.js.map +1 -1
- package/dist/role/role.service.d.ts +5 -5
- package/dist/role/role.service.d.ts.map +1 -1
- package/dist/role/role.service.js +40 -12
- package/dist/role/role.service.js.map +1 -1
- package/dist/route/dto/create.dto.d.ts +6 -0
- package/dist/route/dto/create.dto.d.ts.map +1 -0
- package/dist/{screen/dto/delete.dto.js → route/dto/create.dto.js} +14 -9
- package/dist/route/dto/create.dto.js.map +1 -0
- package/dist/route/dto/update.dto.d.ts +6 -0
- package/dist/route/dto/update.dto.d.ts.map +1 -0
- package/dist/{menu/dto/delete.dto.js → route/dto/update.dto.js} +16 -10
- package/dist/route/dto/update.dto.js.map +1 -0
- package/dist/route/route.controller.d.ts +20 -0
- package/dist/route/route.controller.d.ts.map +1 -0
- package/dist/route/route.controller.js +133 -0
- package/dist/route/route.controller.js.map +1 -0
- package/dist/route/route.module.d.ts +3 -0
- package/dist/route/route.module.d.ts.map +1 -0
- package/dist/route/route.module.js +31 -0
- package/dist/route/route.module.js.map +1 -0
- package/dist/route/route.service.d.ts +24 -0
- package/dist/route/route.service.d.ts.map +1 -0
- package/dist/route/route.service.js +121 -0
- package/dist/route/route.service.js.map +1 -0
- package/dist/screen/screen.controller.d.ts +1 -1
- package/dist/screen/screen.controller.d.ts.map +1 -1
- package/dist/screen/screen.controller.js +1 -1
- package/dist/screen/screen.controller.js.map +1 -1
- package/dist/screen/screen.service.d.ts +1 -1
- package/dist/screen/screen.service.d.ts.map +1 -1
- package/dist/screen/screen.service.js +12 -4
- package/dist/screen/screen.service.js.map +1 -1
- package/dist/types/http-method.d.ts +2 -0
- package/dist/types/http-method.d.ts.map +1 -0
- package/dist/types/http-method.js +3 -0
- package/dist/types/http-method.js.map +1 -0
- package/dist/user/user.controller.d.ts +1 -1
- package/dist/user/user.controller.d.ts.map +1 -1
- package/dist/user/user.controller.js +1 -1
- package/dist/user/user.controller.js.map +1 -1
- package/dist/user/user.service.d.ts +1 -1
- package/dist/user/user.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/migrations/migrate-02.ts +6 -0
- package/src/migrations/migrate-03.ts +9 -1
- package/src/migrations/migrate-04.ts +52 -0
- package/src/migrations/migrate-12.ts +8 -0
- package/dist/menu/dto/delete.dto.d.ts.map +0 -1
- package/dist/menu/dto/delete.dto.js.map +0 -1
- package/dist/role/dto/delete.dto.d.ts +0 -4
- package/dist/role/dto/delete.dto.d.ts.map +0 -1
- package/dist/role/dto/delete.dto.js.map +0 -1
- package/dist/screen/dto/delete.dto.d.ts +0 -4
- package/dist/screen/dto/delete.dto.d.ts.map +0 -1
- package/dist/screen/dto/delete.dto.js.map +0 -1
- package/dist/user/dto/delete.dto.d.ts +0 -4
- package/dist/user/dto/delete.dto.d.ts.map +0 -1
- package/dist/user/dto/delete.dto.js +0 -23
- package/dist/user/dto/delete.dto.js.map +0 -1
- /package/dist/{menu/dto → dto}/delete.dto.d.ts +0 -0
- /package/dist/{role/dto → dto}/delete.dto.js +0 -0
@@ -61,6 +61,22 @@ export class Migrate implements MigrationInterface {
|
|
61
61
|
url: '/menus/:menuId',
|
62
62
|
method: 'PATCH',
|
63
63
|
},
|
64
|
+
{
|
65
|
+
url: '/menus/:menuId/roles',
|
66
|
+
method: 'GET',
|
67
|
+
},
|
68
|
+
{
|
69
|
+
url: '/menus/:menuId/roles',
|
70
|
+
method: 'PATCH',
|
71
|
+
},
|
72
|
+
{
|
73
|
+
url: '/menus/:menuId/screens',
|
74
|
+
method: 'GET',
|
75
|
+
},
|
76
|
+
{
|
77
|
+
url: '/menus/:menuId/screens',
|
78
|
+
method: 'PATCH',
|
79
|
+
},
|
64
80
|
{
|
65
81
|
url: '/menus',
|
66
82
|
method: 'DELETE',
|
@@ -205,6 +221,42 @@ export class Migrate implements MigrationInterface {
|
|
205
221
|
url: '/users',
|
206
222
|
method: 'DELETE',
|
207
223
|
},
|
224
|
+
{
|
225
|
+
url: '/routes',
|
226
|
+
method: 'GET',
|
227
|
+
},
|
228
|
+
{
|
229
|
+
url: '/routes',
|
230
|
+
method: 'POST',
|
231
|
+
},
|
232
|
+
{
|
233
|
+
url: '/routes',
|
234
|
+
method: 'DELETE',
|
235
|
+
},
|
236
|
+
{
|
237
|
+
url: '/routes/:routeId',
|
238
|
+
method: 'GET',
|
239
|
+
},
|
240
|
+
{
|
241
|
+
url: '/routes/:routeId',
|
242
|
+
method: 'PATCH',
|
243
|
+
},
|
244
|
+
{
|
245
|
+
url: '/routes/:routeId/roles',
|
246
|
+
method: 'GET',
|
247
|
+
},
|
248
|
+
{
|
249
|
+
url: '/routes/:routeId/roles',
|
250
|
+
method: 'PATCH',
|
251
|
+
},
|
252
|
+
{
|
253
|
+
url: '/routes/:routeId/screens',
|
254
|
+
method: 'GET',
|
255
|
+
},
|
256
|
+
{
|
257
|
+
url: '/routes/:routeId/screens',
|
258
|
+
method: 'PATCH',
|
259
|
+
},
|
208
260
|
])
|
209
261
|
.execute();
|
210
262
|
}
|
@@ -30,11 +30,19 @@ export class Migrate implements MigrationInterface {
|
|
30
30
|
.where('slug = :slug', { slug: '/management/menus' })
|
31
31
|
.execute();
|
32
32
|
|
33
|
+
const screenIdRoute = await queryRunner.manager
|
34
|
+
.createQueryBuilder()
|
35
|
+
.select()
|
36
|
+
.from('screens', 's')
|
37
|
+
.where('slug = :slug', { slug: '/management/routes' })
|
38
|
+
.execute();
|
39
|
+
|
33
40
|
for (const { url, screendId } of [
|
34
41
|
{ url: '/screens%', screendId: screenIdScreen[0].id },
|
35
42
|
{ url: '/roles%', screendId: screenIdRole[0].id },
|
36
43
|
{ url: '/users%', screendId: screenIdUser[0].id },
|
37
44
|
{ url: '/menus%', screendId: screenIdMenu[0].id },
|
45
|
+
{ url: '/routes%', screendId: screenIdRoute[0].id },
|
38
46
|
]) {
|
39
47
|
const routesScreens = await queryRunner.manager
|
40
48
|
.createQueryBuilder()
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"delete.dto.d.ts","sourceRoot":"","sources":["../../../src/menu/dto/delete.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IAKpB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"delete.dto.js","sourceRoot":"","sources":["../../../src/menu/dto/delete.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA8E;AAE9E,MAAa,SAAS;CAMrB;AAND,8BAMC;AADC;IAJC,IAAA,yBAAO,GAAE;IACT,IAAA,+BAAa,GAAE;IACf,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;sCACR"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"delete.dto.d.ts","sourceRoot":"","sources":["../../../src/role/dto/delete.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IAIpB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"delete.dto.js","sourceRoot":"","sources":["../../../src/role/dto/delete.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,MAAa,SAAS;CAKrB;AALD,8BAKC;AADC;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;sCACR"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"delete.dto.d.ts","sourceRoot":"","sources":["../../../src/screen/dto/delete.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IAIpB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"delete.dto.js","sourceRoot":"","sources":["../../../src/screen/dto/delete.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,MAAa,SAAS;CAKrB;AALD,8BAKC;AADC;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;sCACR"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"delete.dto.d.ts","sourceRoot":"","sources":["../../../src/user/dto/delete.dto.ts"],"names":[],"mappings":"AAEA,qBAAa,SAAS;IAIpB,GAAG,EAAE,MAAM,EAAE,CAAC;CACf"}
|
@@ -1,23 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
7
|
-
};
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
10
|
-
};
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
exports.DeleteDTO = void 0;
|
13
|
-
const class_validator_1 = require("class-validator");
|
14
|
-
class DeleteDTO {
|
15
|
-
}
|
16
|
-
exports.DeleteDTO = DeleteDTO;
|
17
|
-
__decorate([
|
18
|
-
(0, class_validator_1.IsArray)(),
|
19
|
-
(0, class_validator_1.ArrayMinSize)(1),
|
20
|
-
(0, class_validator_1.IsInt)({ each: true }),
|
21
|
-
__metadata("design:type", Array)
|
22
|
-
], DeleteDTO.prototype, "ids", void 0);
|
23
|
-
//# sourceMappingURL=delete.dto.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"delete.dto.js","sourceRoot":"","sources":["../../../src/user/dto/delete.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA+D;AAE/D,MAAa,SAAS;CAKrB;AALD,8BAKC;AADC;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,8BAAY,EAAC,CAAC,CAAC;IACf,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;sCACR"}
|
File without changes
|
File without changes
|