jourycms-sdk 1.0.1 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. package/dist/containers/content/clients/article-types.client.d.ts +1 -1
  2. package/dist/containers/content/clients/article-types.client.d.ts.map +1 -1
  3. package/dist/containers/content/clients/article-types.client.js +6 -6
  4. package/dist/containers/content/clients/articles.client.d.ts +2 -2
  5. package/dist/containers/content/clients/articles.client.d.ts.map +1 -1
  6. package/dist/containers/content/clients/articles.client.js +6 -6
  7. package/dist/containers/content/clients/taxonomies.client.d.ts +1 -1
  8. package/dist/containers/content/clients/taxonomies.client.d.ts.map +1 -1
  9. package/dist/containers/content/clients/taxonomies.client.js +3 -3
  10. package/dist/containers/content/clients/terms.client.d.ts +1 -1
  11. package/dist/containers/content/clients/terms.client.d.ts.map +1 -1
  12. package/dist/containers/content/clients/terms.client.js +3 -3
  13. package/package.json +1 -1
  14. package/typings/v1/cache-manager/entity.d.ts +9 -18
  15. package/typings/v1/events/payloads.d.ts +85 -85
  16. package/typings/v1/lib/execution-scenario/index.d.ts +1 -1
  17. package/typings/v1/modules/express/express.d.ts +6 -6
  18. package/typings/v1/sdk/sdk.d.ts +9 -9
  19. package/typings/v1/security/auth-data.d.ts +3 -3
  20. package/typings/v1/security/jwt.d.ts +2 -2
  21. package/typings/v1/services/auth/api/api-key.d.ts +14 -14
  22. package/typings/v1/services/auth/api/auth.d.ts +21 -21
  23. package/typings/v1/services/auth/api/permission-group.d.ts +13 -13
  24. package/typings/v1/services/auth/api/permission.d.ts +17 -17
  25. package/typings/v1/services/auth/api/role.d.ts +27 -27
  26. package/typings/v1/services/auth/api/tools.d.ts +1 -1
  27. package/typings/v1/services/auth/api/user.d.ts +51 -51
  28. package/typings/v1/services/auth/entities/user.d.ts +1 -1
  29. package/typings/v1/services/storage/api/uploaded-file.d.ts +16 -16
  30. package/typings/v1/services/system/api/app.d.ts +12 -12
  31. package/typings/v1/services/system/entities/app.d.ts +2 -2
  32. package/typings/v1/ui/forms/article/custom-fieds/custom-field.d.ts +2 -2
  33. package/typings/v1/utils/api/request.d.ts +13 -13
  34. package/typings/v1/utils/api/response.d.ts +1 -1
  35. package/typings/v1/utils/dev/instrumentation.d.ts +5 -5
  36. package/typings/v1/utils/system/models.d.ts +70 -11
@@ -3,8 +3,8 @@ namespace Express {
3
3
 
4
4
  export interface Request {
5
5
  auth?: (
6
- | Levelup.V2.Security.JWTPaymentAuthPayload
7
- | Levelup.V2.Security.JWTUserAuthPayload
6
+ | Levelup.CMS.V1.Security.JWTPaymentAuthPayload
7
+ | Levelup.CMS.V1.Security.JWTUserAuthPayload
8
8
  ) & {
9
9
  iss?: string | undefined;
10
10
  sub?: string | undefined;
@@ -20,9 +20,9 @@ namespace Express {
20
20
 
21
21
  attached_entities: {
22
22
  token?: string;
23
- app?: Levelup.V2.System.Entity.App | null;
24
- user?: Levelup.V2.Users.Entity.User | null;
25
- api_key?: Levelup.V2.Auth.Entity.ExposedApiKey | null;
23
+ app?: Levelup.CMS.V1.System.Entity.App | null;
24
+ user?: Levelup.CMS.V1.Users.Entity.User | null;
25
+ api_key?: Levelup.CMS.V1.Auth.Entity.ExposedApiKey | null;
26
26
  service?: {
27
27
  name: string;
28
28
  is_external: boolean;
@@ -31,7 +31,7 @@ namespace Express {
31
31
 
32
32
  has_access_if?: {
33
33
  filters?: {
34
- user?: Levelup.V2.Utils.Common.ID;
34
+ user?: Levelup.CMS.V1.Utils.Common.ID;
35
35
  };
36
36
  condition?: () => boolean;
37
37
  } | null;
@@ -72,21 +72,21 @@ declare global {
72
72
  type TEnvironment = "production" | "development";
73
73
  type PathPrefix = '' | `/${string}`;
74
74
 
75
- type TResponseDatum<T extends { data?: object | Array<object>; } & Levelup.V2.Utils.Api.Response.DefaultResponse & Levelup.V2.Utils.Api.Response.PagedResponse> =
76
- Levelup.V2.Utils.NonUndefined<T['data']> extends Array<any> ? {
77
- data: Levelup.V2.Utils.NonUndefined<T['data']>;
78
- edge: Levelup.V2.Utils.NonUndefined<T['edge']>;
79
- pagination?: Levelup.V2.Utils.NonUndefined<Levelup.V2.Utils.Api.Response.PagedResponse['pagination']>;
75
+ type TResponseDatum<T extends { data?: object | Array<object>; } & Levelup.CMS.V1.Utils.Api.Response.DefaultResponse & Levelup.CMS.V1.Utils.Api.Response.PagedResponse> =
76
+ Levelup.CMS.V1.Utils.NonUndefined<T['data']> extends Array<any> ? {
77
+ data: Levelup.CMS.V1.Utils.NonUndefined<T['data']>;
78
+ edge: Levelup.CMS.V1.Utils.NonUndefined<T['edge']>;
79
+ pagination?: Levelup.CMS.V1.Utils.NonUndefined<Levelup.CMS.V1.Utils.Api.Response.PagedResponse['pagination']>;
80
80
  } : {
81
- data: Levelup.V2.Utils.NonUndefined<T['data']>;
82
- edge: Levelup.V2.Utils.NonUndefined<T['edge']>;
81
+ data: Levelup.CMS.V1.Utils.NonUndefined<T['data']>;
82
+ edge: Levelup.CMS.V1.Utils.NonUndefined<T['edge']>;
83
83
  };
84
84
 
85
85
  type IResponse = {
86
86
  data?: any;
87
87
  edge?: any;
88
- error?: Levelup.V2.Utils.Api.Response.Error;
89
- } & Levelup.V2.Utils.Api.Response.PagedResponse;
88
+ error?: Levelup.CMS.V1.Utils.Api.Response.Error;
89
+ } & Levelup.CMS.V1.Utils.Api.Response.PagedResponse;
90
90
 
91
91
  type IError = Error & object;
92
92
 
@@ -11,9 +11,9 @@ declare global {
11
11
  */
12
12
  current?: {
13
13
  token?: string;
14
- app?: Levelup.V2.System.Entity.App | null;
15
- user?: Levelup.V2.Users.Entity.User | null;
16
- api_key?: Levelup.V2.Auth.Entity.ExposedApiKey | null;
14
+ app?: Levelup.CMS.V1.System.Entity.App | null;
15
+ user?: Levelup.CMS.V1.Users.Entity.User | null;
16
+ api_key?: Levelup.CMS.V1.Auth.Entity.ExposedApiKey | null;
17
17
  service?: {
18
18
  name: string;
19
19
  is_external: boolean;
@@ -20,14 +20,14 @@ declare module Levelup {
20
20
  _id: string;
21
21
  tracking_id: string;
22
22
  role: string;
23
- space: Levelup.V2.Auth.Entity.TJWTTokenSpace;
23
+ space: Levelup.CMS.V1.Auth.Entity.TJWTTokenSpace;
24
24
  }
25
25
 
26
26
  export type JWTUserAuthPayload = {
27
27
  _id: string;
28
28
  tracking_id: string;
29
29
  role: string;
30
- space: Levelup.V2.Auth.Entity.TJWTTokenSpace;
30
+ space: Levelup.CMS.V1.Auth.Entity.TJWTTokenSpace;
31
31
  }
32
32
 
33
33
  }
@@ -13,8 +13,8 @@ declare module Levelup {
13
13
  * --------------------------------------------------------------------------
14
14
  * @link
15
15
  * @fires ApiKeysService.Create
16
- * @param {Levelup.V2.Auth.Api.ApiKeys.Create.Request} query
17
- * @returns {Levelup.V2.Auth.Api.ApiKeys.Create.Response}
16
+ * @param {Levelup.CMS.V1.Auth.Api.ApiKeys.Create.Request} query
17
+ * @returns {Levelup.CMS.V1.Auth.Api.ApiKeys.Create.Response}
18
18
  * @method POST
19
19
  *
20
20
  */
@@ -30,8 +30,8 @@ declare module Levelup {
30
30
  * --------------------------------------------------------------------------
31
31
  * @link
32
32
  * @fires ApiKeysService.Update
33
- * @param {Levelup.V2.Auth.Api.ApiKeys.Update.Request} query
34
- * @returns {Levelup.V2.Auth.Api.ApiKeys.Update.Response}
33
+ * @param {Levelup.CMS.V1.Auth.Api.ApiKeys.Update.Request} query
34
+ * @returns {Levelup.CMS.V1.Auth.Api.ApiKeys.Update.Response}
35
35
  * @method PUT
36
36
  *
37
37
  */
@@ -46,8 +46,8 @@ declare module Levelup {
46
46
  * --------------------------------------------------------------------------
47
47
  * @link
48
48
  * @fires ApiKeysService.Delete
49
- * @param {Levelup.V2.Auth.Api.ApiKeys.Delete.Request} query
50
- * @returns {Levelup.V2.Auth.Api.ApiKeys.Delete.Response}
49
+ * @param {Levelup.CMS.V1.Auth.Api.ApiKeys.Delete.Request} query
50
+ * @returns {Levelup.CMS.V1.Auth.Api.ApiKeys.Delete.Response}
51
51
  * @method DELETE
52
52
  *
53
53
  */
@@ -62,8 +62,8 @@ declare module Levelup {
62
62
  * --------------------------------------------------------------------------
63
63
  * @link
64
64
  * @fires ApiKeysService.BulkDelete
65
- * @param {Levelup.V2.Auth.Api.ApiKeys.BulkDelete.Request} query
66
- * @returns {Levelup.V2.Auth.Api.ApiKeys.BulkDelete.Response}
65
+ * @param {Levelup.CMS.V1.Auth.Api.ApiKeys.BulkDelete.Request} query
66
+ * @returns {Levelup.CMS.V1.Auth.Api.ApiKeys.BulkDelete.Response}
67
67
  * @method DELETE
68
68
  *
69
69
  */
@@ -83,8 +83,8 @@ declare module Levelup {
83
83
  * --------------------------------------------------------------------------
84
84
  * @link
85
85
  * @fires ApiKeysService.GetOne
86
- * @param {Levelup.V2.Auth.Api.ApiKeys.GetOne.Request} query
87
- * @returns {Levelup.V2.Auth.Api.ApiKeys.GetOne.Response}
86
+ * @param {Levelup.CMS.V1.Auth.Api.ApiKeys.GetOne.Request} query
87
+ * @returns {Levelup.CMS.V1.Auth.Api.ApiKeys.GetOne.Response}
88
88
  * @method GET
89
89
  *
90
90
  */
@@ -100,8 +100,8 @@ declare module Levelup {
100
100
  * --------------------------------------------------------------------------
101
101
  * @link
102
102
  * @fires ApiKeysService.List
103
- * @param {Levelup.V2.Auth.Api.ApiKeys.List.Request} query
104
- * @returns {Levelup.V2.Auth.Api.ApiKeys.List.Response}
103
+ * @param {Levelup.CMS.V1.Auth.Api.ApiKeys.List.Request} query
104
+ * @returns {Levelup.CMS.V1.Auth.Api.ApiKeys.List.Response}
105
105
  * @method GET
106
106
  *
107
107
  */
@@ -125,8 +125,8 @@ declare module Levelup {
125
125
  * --------------------------------------------------------------------------
126
126
  * @link
127
127
  * @fires ApiKeysService.GetByToken
128
- * @param {Levelup.V2.Auth.Api.ApiKeys.GetByToken.Request} query
129
- * @returns {Levelup.V2.Auth.Api.ApiKeys.GetByToken.Response}
128
+ * @param {Levelup.CMS.V1.Auth.Api.ApiKeys.GetByToken.Request} query
129
+ * @returns {Levelup.CMS.V1.Auth.Api.ApiKeys.GetByToken.Response}
130
130
  * @method GET
131
131
  *
132
132
  */
@@ -10,14 +10,14 @@ declare module Levelup {
10
10
  * --------------------------------------------------------------------------
11
11
  * @link
12
12
  * @fires AuthService.Signup
13
- * @param {Levelup.V2.Auth.Api.Auth.Signup.Request} query
14
- * @returns {Levelup.V2.Auth.Api.Auth.Signup.Response}
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.V2.Utils.Api.Request.BuildCreateRequest<{
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.V2.Auth.Api.Auth.Signin.Request} query
39
- * @returns {Levelup.V2.Auth.Api.Auth.Signin.Response}
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.V2.Utils.Api.Request.BuildCreateRequest<{
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.V2.Auth.Api.Auth.RefreshToken.Request}
64
- * @returns {Levelup.V2.Auth.Api.Auth.RefreshToken.Response}
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.V2.Utils.Api.Request.BuildCreateRequest<{
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.V2.Auth.Api.Auth.SigninWithId.Request} query
88
- * @returns {Levelup.V2.Auth.Api.Auth.SigninWithId.Response}
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.V2.Utils.Api.Request.Build<{
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.V2.Auth.Api.Auth.SigninForPayment.Request} query
109
- * @returns {Levelup.V2.Auth.Api.Auth.SigninForPayment.Response}
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.V2.Utils.Api.Request.Build<{
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.V2.Auth.Api.Auth.UpdatePaymentPassword.Request} query
129
- * @returns {Levelup.V2.Auth.Api.Auth.UpdatePaymentPassword.Response}
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.V2.Utils.Api.Request.Build<{
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.V2.Auth.Api.Auth.ChangeSellerPaymentPassword.Request} query
150
- * @returns {Levelup.V2.Auth.Api.Auth.ChangeSellerPaymentPassword.Response}
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.V2.Utils.Api.Request.Build<{
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.V2.Auth.Api.PermissionGroups.Create.Request} query
14
- * @returns {Levelup.V2.Auth.Api.PermissionGroups.Create.Response}
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.V2.Utils.Api.Request.BuildCreateRequest<Entity.PermissionGroup>;
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.V2.Auth.Api.PermissionGroups.Update.Request} query
31
- * @returns {Levelup.V2.Auth.Api.PermissionGroups.Update.Response}
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.V2.Utils.Api.Request.BuildUpdateRequest<Entity.PermissionGroup>;
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.V2.Auth.Api.PermissionGroups.Delete.Request} query
49
- * @returns {Levelup.V2.Auth.Api.PermissionGroups.Delete.Response}
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.V2.Auth.Api.PermissionGroups.GetOne.Request} query
64
- * @returns {Levelup.V2.Auth.Api.PermissionGroups.GetOne.Response}
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.V2.Auth.Api.PermissionGroups.List.Request} query
80
- * @returns {Levelup.V2.Auth.Api.PermissionGroups.List.Response}
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.V2.Utils.Api.Request.BuildSearchablePagedSortableFilterableProjectable<Entity.PermissionGroup>;
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.V2.Auth.Api.Permissions.Create.Request} query
14
- * @returns {Levelup.V2.Auth.Api.Permissions.Create.Response}
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.V2.Utils.Api.Request.BuildCreateRequest<Entity.Permission>;
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.V2.Auth.Api.Permissions.Update.Request} query
32
- * @returns {Levelup.V2.Auth.Api.Permissions.Update.Response}
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.V2.Utils.Api.Request.BuildUpdateRequest<Entity.Permission>;
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.V2.Auth.Api.Permissions.Delete.Request} query
50
- * @returns {Levelup.V2.Auth.Api.Permissions.Delete.Response}
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.V2.Auth.Api.Permissions.GetOne.Request} query
65
- * @returns {Levelup.V2.Auth.Api.Permissions.GetOne.Response}
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.V2.Utils.Api.Request.Build<never>;
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.V2.Auth.Api.Permissions.List.Request} query
84
- * @returns {Levelup.V2.Auth.Api.Permissions.List.Response}
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.V2.Utils.Api.Request.BuildSearchablePagedSortableFilterableProjectable<Entity.Permission>;
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.V2.Auth.Api.Permissions.AssignPermissionToUser.Request} query
104
- * @returns {Levelup.V2.Auth.Api.Permissions.AssignPermissionToUser.Response}
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.V2.Utils.Api.Request.Build<{
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.V2.Auth.Api.Roles.Create.Request} query
14
- * @returns {Levelup.V2.Auth.Api.Roles.Create.Response}
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.V2.Utils.Api.Request.BuildCreateRequest<Entity.Role>;
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.V2.Auth.Api.Roles.Update.Request} query
32
- * @returns {Levelup.V2.Auth.Api.Roles.Update.Response}
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.V2.Utils.Api.Request.BuildUpdateRequest<Entity.Role>;
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.V2.Auth.Api.Roles.Delete.Request} query
50
- * @returns {Levelup.V2.Auth.Api.Roles.Delete.Response}
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.V2.Utils.Api.Request.Build<
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.V2.Auth.Api.Roles.GetOne.Request} query
68
- * @returns {Levelup.V2.Auth.Api.Roles.GetOne.Response}
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.V2.Utils.Api.Request.Build<never>;
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.V2.Auth.Api.Roles.List.Request} query
87
- * @returns {Levelup.V2.Auth.Api.Roles.List.Response}
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.V2.Utils.Api.Request.BuildSearchablePagedSortableFilterableProjectable<Entity.Role>;
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.V2.Auth.Api.Roles.AggregateUserCount.Request} query
107
- * @returns {Levelup.V2.Auth.Api.Roles.AggregateUserCount.Response}
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.V2.Utils.Api.Request.Build<
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.V2.Auth.Api.Roles.MergeRoles.Request} query
130
- * @returns {Levelup.V2.Auth.Api.Roles.MergeRoles.Response}
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.V2.Utils.Api.Request.Build<never>;
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.V2.Auth.Api.Roles.ChangePermissions.Request} query
147
- * @returns {Levelup.V2.Auth.Api.Roles.ChangePermissions.Response}
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.V2.Utils.Api.Request.BuildUpdateRequest<{
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.V2.Auth.Api.Roles.ListRolePermissions.Request} query
168
- * @returns {Levelup.V2.Auth.Api.Roles.ListRolePermissions.Response}
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.V2.Utils.Api.Request.Build<
172
+ export type Request = Levelup.CMS.V1.Utils.Api.Request.Build<
173
173
  Record<string, unknown>
174
174
  >;
175
175
  export type Response =
@@ -21,7 +21,7 @@ declare module Levelup {
21
21
  created_permissions: number;
22
22
  created_roles: number;
23
23
  owner_already_linked: boolean;
24
- owner: Levelup.V2.Users.Entity.ExposedUser | null;
24
+ owner: Levelup.CMS.V1.Users.Entity.ExposedUser | null;
25
25
  error: any;
26
26
  }>;
27
27
  }