jourycms-sdk 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/typings/v1/cache-manager/entity.d.ts +9 -18
- package/typings/v1/events/payloads.d.ts +85 -85
- package/typings/v1/lib/execution-scenario/index.d.ts +1 -1
- package/typings/v1/modules/express/express.d.ts +6 -6
- package/typings/v1/sdk/sdk.d.ts +9 -9
- package/typings/v1/security/auth-data.d.ts +3 -3
- package/typings/v1/security/jwt.d.ts +2 -2
- package/typings/v1/services/auth/api/api-key.d.ts +14 -14
- package/typings/v1/services/auth/api/auth.d.ts +21 -21
- package/typings/v1/services/auth/api/permission-group.d.ts +13 -13
- package/typings/v1/services/auth/api/permission.d.ts +17 -17
- package/typings/v1/services/auth/api/role.d.ts +27 -27
- package/typings/v1/services/auth/api/tools.d.ts +1 -1
- package/typings/v1/services/auth/api/user.d.ts +51 -51
- package/typings/v1/services/auth/entities/user.d.ts +1 -1
- package/typings/v1/services/storage/api/uploaded-file.d.ts +16 -16
- package/typings/v1/services/system/api/app.d.ts +12 -12
- package/typings/v1/services/system/entities/app.d.ts +2 -2
- package/typings/v1/ui/forms/article/custom-fieds/custom-field.d.ts +2 -2
- package/typings/v1/utils/api/request.d.ts +13 -13
- package/typings/v1/utils/api/response.d.ts +1 -1
- package/typings/v1/utils/dev/instrumentation.d.ts +5 -5
- package/typings/v1/utils/system/models.d.ts +70 -11
@@ -10,14 +10,14 @@ declare module Levelup {
|
|
10
10
|
* --------------------------------------------------------------------------
|
11
11
|
* @link
|
12
12
|
* @fires AuthService.Signup
|
13
|
-
* @param {Levelup.
|
14
|
-
* @returns {Levelup.
|
13
|
+
* @param {Levelup.CMS.V1.Auth.Api.Auth.Signup.Request} query
|
14
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Auth.Signup.Response}
|
15
15
|
* @method POST
|
16
16
|
*
|
17
17
|
*/
|
18
18
|
export namespace Signup {
|
19
19
|
export type Request =
|
20
|
-
Levelup.
|
20
|
+
Levelup.CMS.V1.Utils.Api.Request.BuildCreateRequest<{
|
21
21
|
name: string;
|
22
22
|
email: string;
|
23
23
|
password: string;
|
@@ -35,14 +35,14 @@ declare module Levelup {
|
|
35
35
|
* --------------------------------------------------------------------------
|
36
36
|
* @link
|
37
37
|
* @fires AuthService.Signin
|
38
|
-
* @param {Levelup.
|
39
|
-
* @returns {Levelup.
|
38
|
+
* @param {Levelup.CMS.V1.Auth.Api.Auth.Signin.Request} query
|
39
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Auth.Signin.Response}
|
40
40
|
* @method POST
|
41
41
|
*
|
42
42
|
*/
|
43
43
|
export namespace Signin {
|
44
44
|
export type Request =
|
45
|
-
Levelup.
|
45
|
+
Levelup.CMS.V1.Utils.Api.Request.BuildCreateRequest<{
|
46
46
|
email: string;
|
47
47
|
password: string;
|
48
48
|
}>;
|
@@ -60,13 +60,13 @@ declare module Levelup {
|
|
60
60
|
* --------------------------------------------------------------------------
|
61
61
|
* @link
|
62
62
|
* @fires AuthService.RefreshToken
|
63
|
-
* @param {Levelup.
|
64
|
-
* @returns {Levelup.
|
63
|
+
* @param {Levelup.CMS.V1.Auth.Api.Auth.RefreshToken.Request}
|
64
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Auth.RefreshToken.Response}
|
65
65
|
* @method POST
|
66
66
|
*/
|
67
67
|
export namespace RefreshToken {
|
68
68
|
export type Request =
|
69
|
-
Levelup.
|
69
|
+
Levelup.CMS.V1.Utils.Api.Request.BuildCreateRequest<{
|
70
70
|
refresh_token?: string;
|
71
71
|
}>;
|
72
72
|
export type Response =
|
@@ -84,12 +84,12 @@ declare module Levelup {
|
|
84
84
|
* @method POST
|
85
85
|
* @link /api/v2/auth/login-with-id
|
86
86
|
* @fires AuthService.SigninWithId
|
87
|
-
* @param {Levelup.
|
88
|
-
* @returns {Levelup.
|
87
|
+
* @param {Levelup.CMS.V1.Auth.Api.Auth.SigninWithId.Request} query
|
88
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Auth.SigninWithId.Response}
|
89
89
|
*
|
90
90
|
*/
|
91
91
|
export namespace SigninWithId {
|
92
|
-
export type Request = Levelup.
|
92
|
+
export type Request = Levelup.CMS.V1.Utils.Api.Request.Build<{
|
93
93
|
user_id: Utils.Common.ID;
|
94
94
|
}>;
|
95
95
|
export type Response =
|
@@ -105,13 +105,13 @@ declare module Levelup {
|
|
105
105
|
* --------------------------------------------------------------------------
|
106
106
|
* @link
|
107
107
|
* @fires AuthService.SigninForPayment
|
108
|
-
* @param {Levelup.
|
109
|
-
* @returns {Levelup.
|
108
|
+
* @param {Levelup.CMS.V1.Auth.Api.Auth.SigninForPayment.Request} query
|
109
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Auth.SigninForPayment.Response}
|
110
110
|
* @method POST
|
111
111
|
*
|
112
112
|
*/
|
113
113
|
export namespace SigninForPayment {
|
114
|
-
export type Request = Levelup.
|
114
|
+
export type Request = Levelup.CMS.V1.Utils.Api.Request.Build<{
|
115
115
|
password: string;
|
116
116
|
}>;
|
117
117
|
export type Response = Utils.Api.Response.DefaultResponse & {
|
@@ -125,13 +125,13 @@ declare module Levelup {
|
|
125
125
|
* --------------------------------------------------------------------------
|
126
126
|
* @link
|
127
127
|
* @fires AuthService.UpdatePaymentPassword
|
128
|
-
* @param {Levelup.
|
129
|
-
* @returns {Levelup.
|
128
|
+
* @param {Levelup.CMS.V1.Auth.Api.Auth.UpdatePaymentPassword.Request} query
|
129
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Auth.UpdatePaymentPassword.Response}
|
130
130
|
* @method PUT
|
131
131
|
*
|
132
132
|
*/
|
133
133
|
export namespace UpdatePaymentPassword {
|
134
|
-
export type Request = Levelup.
|
134
|
+
export type Request = Levelup.CMS.V1.Utils.Api.Request.Build<{
|
135
135
|
old_password: string;
|
136
136
|
password: string;
|
137
137
|
}>;
|
@@ -146,13 +146,13 @@ declare module Levelup {
|
|
146
146
|
* --------------------------------------------------------------------------
|
147
147
|
* @link
|
148
148
|
* @fires AuthService.ChangeSellerPaymentPassword
|
149
|
-
* @param {Levelup.
|
150
|
-
* @returns {Levelup.
|
149
|
+
* @param {Levelup.CMS.V1.Auth.Api.Auth.ChangeSellerPaymentPassword.Request} query
|
150
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Auth.ChangeSellerPaymentPassword.Response}
|
151
151
|
* @method PUT
|
152
152
|
*
|
153
153
|
*/
|
154
154
|
export namespace ChangeSellerPaymentPassword {
|
155
|
-
export type Request = Levelup.
|
155
|
+
export type Request = Levelup.CMS.V1.Utils.Api.Request.Build<{
|
156
156
|
password: string;
|
157
157
|
}>;
|
158
158
|
export type Response = Utils.Api.Response.DefaultResponse & {
|
@@ -10,14 +10,14 @@ declare module Levelup {
|
|
10
10
|
* --------------------------------------------------------------------------
|
11
11
|
* @link
|
12
12
|
* @fires PermissionGroupsService.Create
|
13
|
-
* @param {Levelup.
|
14
|
-
* @returns {Levelup.
|
13
|
+
* @param {Levelup.CMS.V1.Auth.Api.PermissionGroups.Create.Request} query
|
14
|
+
* @returns {Levelup.CMS.V1.Auth.Api.PermissionGroups.Create.Response}
|
15
15
|
* @method POST
|
16
16
|
*
|
17
17
|
*/
|
18
18
|
export namespace Create {
|
19
19
|
export type Request =
|
20
|
-
Levelup.
|
20
|
+
Levelup.CMS.V1.Utils.Api.Request.BuildCreateRequest<Entity.PermissionGroup>;
|
21
21
|
export type Response =
|
22
22
|
Utils.Api.Response.BuildSingleItemResponse<Entity.PermissionGroup>;
|
23
23
|
}
|
@@ -27,14 +27,14 @@ declare module Levelup {
|
|
27
27
|
* --------------------------------------------------------------------------
|
28
28
|
* @link
|
29
29
|
* @fires PermissionGroupsService.Update
|
30
|
-
* @param {Levelup.
|
31
|
-
* @returns {Levelup.
|
30
|
+
* @param {Levelup.CMS.V1.Auth.Api.PermissionGroups.Update.Request} query
|
31
|
+
* @returns {Levelup.CMS.V1.Auth.Api.PermissionGroups.Update.Response}
|
32
32
|
* @method PUT
|
33
33
|
*
|
34
34
|
*/
|
35
35
|
export namespace Update {
|
36
36
|
export type Request =
|
37
|
-
Levelup.
|
37
|
+
Levelup.CMS.V1.Utils.Api.Request.BuildUpdateRequest<Entity.PermissionGroup>;
|
38
38
|
export type Response =
|
39
39
|
Utils.Api.Response.BuildSingleItemResponse<Entity.PermissionGroup>;
|
40
40
|
}
|
@@ -45,8 +45,8 @@ declare module Levelup {
|
|
45
45
|
* --------------------------------------------------------------------------
|
46
46
|
* @link
|
47
47
|
* @fires PermissionGroupsService.Delete
|
48
|
-
* @param {Levelup.
|
49
|
-
* @returns {Levelup.
|
48
|
+
* @param {Levelup.CMS.V1.Auth.Api.PermissionGroups.Delete.Request} query
|
49
|
+
* @returns {Levelup.CMS.V1.Auth.Api.PermissionGroups.Delete.Response}
|
50
50
|
* @method DELETE
|
51
51
|
*
|
52
52
|
*/
|
@@ -60,8 +60,8 @@ declare module Levelup {
|
|
60
60
|
* --------------------------------------------------------------------------
|
61
61
|
* @link
|
62
62
|
* @fires PermissionGroupsService.Get
|
63
|
-
* @param {Levelup.
|
64
|
-
* @returns {Levelup.
|
63
|
+
* @param {Levelup.CMS.V1.Auth.Api.PermissionGroups.GetOne.Request} query
|
64
|
+
* @returns {Levelup.CMS.V1.Auth.Api.PermissionGroups.GetOne.Response}
|
65
65
|
* @method GET
|
66
66
|
*
|
67
67
|
*/
|
@@ -76,14 +76,14 @@ declare module Levelup {
|
|
76
76
|
* --------------------------------------------------------------------------
|
77
77
|
* @link
|
78
78
|
* @fires PermissionGroupsService.List
|
79
|
-
* @param {Levelup.
|
80
|
-
* @returns {Levelup.
|
79
|
+
* @param {Levelup.CMS.V1.Auth.Api.PermissionGroups.List.Request} query
|
80
|
+
* @returns {Levelup.CMS.V1.Auth.Api.PermissionGroups.List.Response}
|
81
81
|
* @method GET
|
82
82
|
*
|
83
83
|
*/
|
84
84
|
export namespace List {
|
85
85
|
export type Request =
|
86
|
-
Levelup.
|
86
|
+
Levelup.CMS.V1.Utils.Api.Request.BuildSearchablePagedSortableFilterableProjectable<Entity.PermissionGroup>;
|
87
87
|
export type Response =
|
88
88
|
Utils.Api.Response.BuildListResponse<Entity.PermissionGroup>;
|
89
89
|
}
|
@@ -10,14 +10,14 @@ declare module Levelup {
|
|
10
10
|
* --------------------------------------------------------------------------
|
11
11
|
* @link
|
12
12
|
* @fires RolesService.Create
|
13
|
-
* @param {Levelup.
|
14
|
-
* @returns {Levelup.
|
13
|
+
* @param {Levelup.CMS.V1.Auth.Api.Permissions.Create.Request} query
|
14
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Permissions.Create.Response}
|
15
15
|
* @method POST
|
16
16
|
*
|
17
17
|
*/
|
18
18
|
export namespace Create {
|
19
19
|
export type Request =
|
20
|
-
Levelup.
|
20
|
+
Levelup.CMS.V1.Utils.Api.Request.BuildCreateRequest<Entity.Permission>;
|
21
21
|
export type Response =
|
22
22
|
Utils.Api.Response.BuildSingleItemResponse<Entity.Permission>;
|
23
23
|
}
|
@@ -28,14 +28,14 @@ declare module Levelup {
|
|
28
28
|
* --------------------------------------------------------------------------
|
29
29
|
* @link
|
30
30
|
* @fires PermissionService.Update
|
31
|
-
* @param {Levelup.
|
32
|
-
* @returns {Levelup.
|
31
|
+
* @param {Levelup.CMS.V1.Auth.Api.Permissions.Update.Request} query
|
32
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Permissions.Update.Response}
|
33
33
|
* @method PUT
|
34
34
|
*
|
35
35
|
*/
|
36
36
|
export namespace Update {
|
37
37
|
export type Request =
|
38
|
-
Levelup.
|
38
|
+
Levelup.CMS.V1.Utils.Api.Request.BuildUpdateRequest<Entity.Permission>;
|
39
39
|
export type Response =
|
40
40
|
Utils.Api.Response.BuildSingleItemResponse<Entity.Permission>;
|
41
41
|
}
|
@@ -46,8 +46,8 @@ declare module Levelup {
|
|
46
46
|
* --------------------------------------------------------------------------
|
47
47
|
* @link
|
48
48
|
* @fires PermissionService.Delete
|
49
|
-
* @param {Levelup.
|
50
|
-
* @returns {Levelup.
|
49
|
+
* @param {Levelup.CMS.V1.Auth.Api.Permissions.Delete.Request} query
|
50
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Permissions.Delete.Response}
|
51
51
|
* @method DELETE
|
52
52
|
*
|
53
53
|
*/
|
@@ -61,15 +61,15 @@ declare module Levelup {
|
|
61
61
|
* --------------------------------------------------------------------------
|
62
62
|
* @link
|
63
63
|
* @fires PermissionService.One
|
64
|
-
* @param {Levelup.
|
65
|
-
* @returns {Levelup.
|
64
|
+
* @param {Levelup.CMS.V1.Auth.Api.Permissions.GetOne.Request} query
|
65
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Permissions.GetOne.Response}
|
66
66
|
* @method GET
|
67
67
|
*
|
68
68
|
*/
|
69
69
|
export namespace GetOne {
|
70
70
|
export type Scope = "";
|
71
71
|
|
72
|
-
export type Request = Levelup.
|
72
|
+
export type Request = Levelup.CMS.V1.Utils.Api.Request.Build<never>;
|
73
73
|
export type Response =
|
74
74
|
Utils.Api.Response.BuildSingleItemResponse<Entity.Permission>;
|
75
75
|
}
|
@@ -80,8 +80,8 @@ declare module Levelup {
|
|
80
80
|
* --------------------------------------------------------------------------
|
81
81
|
* @link
|
82
82
|
* @fires PermissionService.List
|
83
|
-
* @param {Levelup.
|
84
|
-
* @returns {Levelup.
|
83
|
+
* @param {Levelup.CMS.V1.Auth.Api.Permissions.List.Request} query
|
84
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Permissions.List.Response}
|
85
85
|
* @method GET
|
86
86
|
*
|
87
87
|
*/
|
@@ -89,7 +89,7 @@ declare module Levelup {
|
|
89
89
|
export type Scope = "";
|
90
90
|
|
91
91
|
export type Request =
|
92
|
-
Levelup.
|
92
|
+
Levelup.CMS.V1.Utils.Api.Request.BuildSearchablePagedSortableFilterableProjectable<Entity.Permission>;
|
93
93
|
export type Response =
|
94
94
|
Utils.Api.Response.BuildListResponse<Entity.Permission>;
|
95
95
|
}
|
@@ -100,13 +100,13 @@ declare module Levelup {
|
|
100
100
|
* --------------------------------------------------------------------------
|
101
101
|
* @link
|
102
102
|
* @fires PermissionService.AssignPermissionToUser
|
103
|
-
* @param {Levelup.
|
104
|
-
* @returns {Levelup.
|
103
|
+
* @param {Levelup.CMS.V1.Auth.Api.Permissions.AssignPermissionToUser.Request} query
|
104
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Permissions.AssignPermissionToUser.Response}
|
105
105
|
* @method POST
|
106
106
|
*
|
107
107
|
*/
|
108
108
|
export namespace AssignPermissionToUser {
|
109
|
-
export type Request = Levelup.
|
109
|
+
export type Request = Levelup.CMS.V1.Utils.Api.Request.Build<{
|
110
110
|
permissions: {
|
111
111
|
group: string;
|
112
112
|
permissions: string[];
|
@@ -10,14 +10,14 @@ declare module Levelup {
|
|
10
10
|
* --------------------------------------------------------------------------
|
11
11
|
* @link
|
12
12
|
* @fires RolesService.Create
|
13
|
-
* @param {Levelup.
|
14
|
-
* @returns {Levelup.
|
13
|
+
* @param {Levelup.CMS.V1.Auth.Api.Roles.Create.Request} query
|
14
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Roles.Create.Response}
|
15
15
|
* @method POST
|
16
16
|
*
|
17
17
|
*/
|
18
18
|
export namespace Create {
|
19
19
|
export type Request =
|
20
|
-
Levelup.
|
20
|
+
Levelup.CMS.V1.Utils.Api.Request.BuildCreateRequest<Entity.Role>;
|
21
21
|
export type Response =
|
22
22
|
Utils.Api.Response.BuildSingleItemResponse<Entity.Role>;
|
23
23
|
}
|
@@ -28,14 +28,14 @@ declare module Levelup {
|
|
28
28
|
* --------------------------------------------------------------------------
|
29
29
|
* @link
|
30
30
|
* @fires RolesService.Update
|
31
|
-
* @param {Levelup.
|
32
|
-
* @returns {Levelup.
|
31
|
+
* @param {Levelup.CMS.V1.Auth.Api.Roles.Update.Request} query
|
32
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Roles.Update.Response}
|
33
33
|
* @method PUT
|
34
34
|
*
|
35
35
|
*/
|
36
36
|
export namespace Update {
|
37
37
|
export type Request =
|
38
|
-
Levelup.
|
38
|
+
Levelup.CMS.V1.Utils.Api.Request.BuildUpdateRequest<Entity.Role>;
|
39
39
|
export type Response =
|
40
40
|
Utils.Api.Response.BuildSingleItemResponse<Entity.Role>;
|
41
41
|
}
|
@@ -46,13 +46,13 @@ declare module Levelup {
|
|
46
46
|
* --------------------------------------------------------------------------
|
47
47
|
* @link
|
48
48
|
* @fires RolesService.Delete
|
49
|
-
* @param {Levelup.
|
50
|
-
* @returns {Levelup.
|
49
|
+
* @param {Levelup.CMS.V1.Auth.Api.Roles.Delete.Request} query
|
50
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Roles.Delete.Response}
|
51
51
|
* @method DELETE
|
52
52
|
*
|
53
53
|
*/
|
54
54
|
export namespace Delete {
|
55
|
-
export type Request = Levelup.
|
55
|
+
export type Request = Levelup.CMS.V1.Utils.Api.Request.Build<
|
56
56
|
Record<string, unknown>
|
57
57
|
>;
|
58
58
|
export type Response = Utils.Api.Response.DefaultDeleteResponse;
|
@@ -64,15 +64,15 @@ declare module Levelup {
|
|
64
64
|
* --------------------------------------------------------------------------
|
65
65
|
* @link
|
66
66
|
* @fires RolesService.Get
|
67
|
-
* @param {Levelup.
|
68
|
-
* @returns {Levelup.
|
67
|
+
* @param {Levelup.CMS.V1.Auth.Api.Roles.GetOne.Request} query
|
68
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Roles.GetOne.Response}
|
69
69
|
* @method GET
|
70
70
|
*
|
71
71
|
*/
|
72
72
|
export namespace GetOne {
|
73
73
|
export type GetRoleApScope = "";
|
74
74
|
|
75
|
-
export type Request = Levelup.
|
75
|
+
export type Request = Levelup.CMS.V1.Utils.Api.Request.Build<never>;
|
76
76
|
export type Response =
|
77
77
|
Utils.Api.Response.BuildSingleItemResponse<Entity.Role>;
|
78
78
|
}
|
@@ -83,8 +83,8 @@ declare module Levelup {
|
|
83
83
|
* --------------------------------------------------------------------------
|
84
84
|
* @link
|
85
85
|
* @fires RolesService.List
|
86
|
-
* @param {Levelup.
|
87
|
-
* @returns {Levelup.
|
86
|
+
* @param {Levelup.CMS.V1.Auth.Api.Roles.List.Request} query
|
87
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Roles.List.Response}
|
88
88
|
* @method GET
|
89
89
|
*
|
90
90
|
*/
|
@@ -92,7 +92,7 @@ declare module Levelup {
|
|
92
92
|
export type Scope = "";
|
93
93
|
|
94
94
|
export type Request =
|
95
|
-
Levelup.
|
95
|
+
Levelup.CMS.V1.Utils.Api.Request.BuildSearchablePagedSortableFilterableProjectable<Entity.Role>;
|
96
96
|
export type Response =
|
97
97
|
Utils.Api.Response.BuildListResponse<Entity.Role>;
|
98
98
|
}
|
@@ -103,13 +103,13 @@ declare module Levelup {
|
|
103
103
|
* --------------------------------------------------------------------------
|
104
104
|
* @link
|
105
105
|
* @fires RolesService.AggregateUserCount
|
106
|
-
* @param {Levelup.
|
107
|
-
* @returns {Levelup.
|
106
|
+
* @param {Levelup.CMS.V1.Auth.Api.Roles.AggregateUserCount.Request} query
|
107
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Roles.AggregateUserCount.Response}
|
108
108
|
* @method Get
|
109
109
|
*
|
110
110
|
*/
|
111
111
|
export namespace AggregateUserCount {
|
112
|
-
export type Request = Levelup.
|
112
|
+
export type Request = Levelup.CMS.V1.Utils.Api.Request.Build<
|
113
113
|
Record<string, unknown>
|
114
114
|
>;
|
115
115
|
export type Response = Utils.Api.Response.DefaultResponse & {
|
@@ -126,12 +126,12 @@ declare module Levelup {
|
|
126
126
|
* @method PUT
|
127
127
|
* @link /roles/merge/:source_id/:destination_id
|
128
128
|
* @fires RolesService.mergeRoles
|
129
|
-
* @param {Levelup.
|
130
|
-
* @returns {Levelup.
|
129
|
+
* @param {Levelup.CMS.V1.Auth.Api.Roles.MergeRoles.Request} query
|
130
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Roles.MergeRoles.Response}
|
131
131
|
*
|
132
132
|
*/
|
133
133
|
export namespace MergeRoles {
|
134
|
-
export type Request = Levelup.
|
134
|
+
export type Request = Levelup.CMS.V1.Utils.Api.Request.Build<never>;
|
135
135
|
export type Response =
|
136
136
|
Utils.Api.Response.BuildSingleItemResponse<Entity.Role>;
|
137
137
|
}
|
@@ -143,13 +143,13 @@ declare module Levelup {
|
|
143
143
|
* @method PUT
|
144
144
|
* @link /api/v2/roles/:id/change-permissions
|
145
145
|
* @fires RolesService.changePermissions
|
146
|
-
* @param {Levelup.
|
147
|
-
* @returns {Levelup.
|
146
|
+
* @param {Levelup.CMS.V1.Auth.Api.Roles.ChangePermissions.Request} query
|
147
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Roles.ChangePermissions.Response}
|
148
148
|
*
|
149
149
|
*/
|
150
150
|
export namespace ChangePermissions {
|
151
151
|
export type Request =
|
152
|
-
Levelup.
|
152
|
+
Levelup.CMS.V1.Utils.Api.Request.BuildUpdateRequest<{
|
153
153
|
role_id?: Utils.Common.ID;
|
154
154
|
permissions: Utils.Common.ID[];
|
155
155
|
}>;
|
@@ -164,12 +164,12 @@ declare module Levelup {
|
|
164
164
|
* @method GET
|
165
165
|
* @link /api/v2/roles/:id/permissions
|
166
166
|
* @fires RolesService.listRolePermissions
|
167
|
-
* @param {Levelup.
|
168
|
-
* @returns {Levelup.
|
167
|
+
* @param {Levelup.CMS.V1.Auth.Api.Roles.ListRolePermissions.Request} query
|
168
|
+
* @returns {Levelup.CMS.V1.Auth.Api.Roles.ListRolePermissions.Response}
|
169
169
|
*
|
170
170
|
*/
|
171
171
|
export namespace ListRolePermissions {
|
172
|
-
export type Request = Levelup.
|
172
|
+
export type Request = Levelup.CMS.V1.Utils.Api.Request.Build<
|
173
173
|
Record<string, unknown>
|
174
174
|
>;
|
175
175
|
export type Response =
|