@edsis/angular 21.1.4 → 21.1.27
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/.npmignore +2 -0
- package/README.md +123 -88
- package/brand/etos/README.md +273 -0
- package/brand/etos/package.json +4 -0
- package/chart/README.md +0 -0
- package/chart/package.json +4 -0
- package/collection.json +30 -0
- package/component/package.json +4 -0
- package/etos/styles/color.css +73 -0
- package/etos/styles/index.css +7 -0
- package/etos/styles/layout.css +21 -0
- package/etos/styles/package.css +15 -0
- package/etos/styles/style.css +53 -0
- package/fesm2022/ojiepermana-angular-brand-etos.mjs +1060 -0
- package/fesm2022/ojiepermana-angular-brand-etos.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-chart.mjs +3714 -0
- package/fesm2022/ojiepermana-angular-chart.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-component.mjs +4069 -0
- package/fesm2022/ojiepermana-angular-component.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-generator-api.mjs +67 -0
- package/fesm2022/ojiepermana-angular-generator-api.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-layout.mjs +457 -0
- package/fesm2022/ojiepermana-angular-layout.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-navigation.mjs +2315 -0
- package/fesm2022/ojiepermana-angular-navigation.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular-theme.mjs +407 -0
- package/fesm2022/ojiepermana-angular-theme.mjs.map +1 -0
- package/fesm2022/ojiepermana-angular.mjs +22 -0
- package/fesm2022/ojiepermana-angular.mjs.map +1 -0
- package/generator/api/README.md +246 -0
- package/generator/api/bin/package.json +3 -0
- package/generator/api/bin/schematics/init/index.js +88 -0
- package/generator/api/bin/schematics/ng-add/index.js +108 -0
- package/generator/api/bin/schematics/sdk/index.js +76 -0
- package/generator/api/bin/src/config/loader.js +41 -0
- package/generator/api/bin/src/config/schema.js +56 -0
- package/generator/api/bin/src/emit/client.js +246 -0
- package/generator/api/bin/src/emit/metadata.js +295 -0
- package/generator/api/bin/src/emit/models.js +106 -0
- package/generator/api/bin/src/emit/navigation.js +56 -0
- package/generator/api/bin/src/emit/operations.js +122 -0
- package/generator/api/bin/src/emit/public-api.js +54 -0
- package/generator/api/bin/src/emit/services.js +87 -0
- package/generator/api/bin/src/engine.js +65 -0
- package/generator/api/bin/src/layout/per-domain.js +355 -0
- package/generator/api/bin/src/parser/bundle.js +25 -0
- package/generator/api/bin/src/parser/ir.js +320 -0
- package/generator/api/bin/src/parser/types.js +7 -0
- package/generator/api/bin/src/render/template.js +58 -0
- package/generator/api/bin/src/writer/index.js +236 -0
- package/generator/api/package.json +4 -0
- package/generator/api/schematics/init/schema.json +19 -0
- package/generator/api/schematics/ng-add/schema.json +14 -0
- package/generator/api/schematics/sdk/schema.json +19 -0
- package/generator/api/sdk.config.example.json +22 -0
- package/generator/guide/README.md +84 -0
- package/generator/guide/bin/package.json +3 -0
- package/generator/guide/bin/schematics/build/index.js +35 -0
- package/generator/guide/bin/schematics/init/index.js +70 -0
- package/generator/guide/bin/src/config/loader.js +50 -0
- package/generator/guide/bin/src/config/schema.js +12 -0
- package/generator/guide/bin/src/engine/component.js +73 -0
- package/generator/guide/bin/src/engine/frontmatter.js +42 -0
- package/generator/guide/bin/src/engine/index.js +42 -0
- package/generator/guide/bin/src/engine/naming.js +39 -0
- package/generator/guide/bin/src/engine/render.js +18 -0
- package/generator/guide/bin/src/engine/routes.js +106 -0
- package/generator/guide/bin/src/engine/walk.js +35 -0
- package/generator/guide/guide.config.example.json +9 -0
- package/generator/guide/schematics/build/schema.json +14 -0
- package/generator/guide/schematics/init/schema.json +19 -0
- package/layout/package.json +4 -0
- package/navigation/package.json +4 -0
- package/package.json +102 -39
- package/theme/package.json +4 -0
- package/theme/styles/etos.css +6 -0
- package/theme/styles/index.css +32 -0
- package/theme/styles/themes/library/_components.css +81 -0
- package/theme/styles/themes/library/_layers.css +15 -0
- package/theme/styles/themes/library/_material-overrides.css +254 -0
- package/theme/styles/themes/library/_tokens.css +55 -0
- package/theme/styles/themes/library/color/amber.css +31 -0
- package/theme/styles/themes/library/color/base.css +36 -0
- package/theme/styles/themes/library/color/blue.css +31 -0
- package/theme/styles/themes/library/color/cyan.css +31 -0
- package/theme/styles/themes/library/color/emerald.css +31 -0
- package/theme/styles/themes/library/color/fuchsia.css +31 -0
- package/theme/styles/themes/library/color/green.css +31 -0
- package/theme/styles/themes/library/color/index.css +22 -0
- package/theme/styles/themes/library/color/indigo.css +31 -0
- package/theme/styles/themes/library/color/lime.css +31 -0
- package/theme/styles/themes/library/color/orange.css +31 -0
- package/theme/styles/themes/library/color/pink.css +31 -0
- package/theme/styles/themes/library/color/purple.css +31 -0
- package/theme/styles/themes/library/color/red.css +31 -0
- package/theme/styles/themes/library/color/rose.css +31 -0
- package/theme/styles/themes/library/color/sky.css +31 -0
- package/theme/styles/themes/library/color/teal.css +31 -0
- package/theme/styles/themes/library/color/violet.css +31 -0
- package/theme/styles/themes/library/color/yellow.css +31 -0
- package/theme/styles/themes/library/style/brutal.css +50 -0
- package/theme/styles/themes/library/style/default.css +54 -0
- package/theme/styles/themes/library/style/index.css +8 -0
- package/theme/styles/themes/library/style/sharp.css +50 -0
- package/theme/styles/themes/library/style/soft.css +50 -0
- package/theme/styles/themes/mode/dark.css +20 -0
- package/theme/styles/themes/mode/index.css +6 -0
- package/theme/styles/themes/mode/light.css +24 -0
- package/theme/styles/themes/tailwind.css +114 -0
- package/types/ojiepermana-angular-brand-etos.d.ts +162 -0
- package/types/ojiepermana-angular-chart.d.ts +1094 -0
- package/types/ojiepermana-angular-component.d.ts +1386 -0
- package/types/ojiepermana-angular-generator-api.d.ts +85 -0
- package/types/ojiepermana-angular-layout.d.ts +163 -0
- package/types/ojiepermana-angular-navigation.d.ts +388 -0
- package/types/ojiepermana-angular-theme.d.ts +171 -0
- package/types/ojiepermana-angular.d.ts +3 -0
- package/fesm2022/edsis-angular-auth.mjs +0 -1209
- package/fesm2022/edsis-angular-auth.mjs.map +0 -1
- package/fesm2022/edsis-angular-sdk-access.mjs +0 -1364
- package/fesm2022/edsis-angular-sdk-access.mjs.map +0 -1
- package/fesm2022/edsis-angular-sdk-approval.mjs +0 -1258
- package/fesm2022/edsis-angular-sdk-approval.mjs.map +0 -1
- package/fesm2022/edsis-angular-sdk-auth.mjs +0 -253
- package/fesm2022/edsis-angular-sdk-auth.mjs.map +0 -1
- package/fesm2022/edsis-angular-sdk-employee.mjs +0 -283
- package/fesm2022/edsis-angular-sdk-employee.mjs.map +0 -1
- package/fesm2022/edsis-angular-sdk-health.mjs +0 -95
- package/fesm2022/edsis-angular-sdk-health.mjs.map +0 -1
- package/fesm2022/edsis-angular-sdk-shared.mjs +0 -2740
- package/fesm2022/edsis-angular-sdk-shared.mjs.map +0 -1
- package/fesm2022/edsis-angular-sdk-storage.mjs +0 -287
- package/fesm2022/edsis-angular-sdk-storage.mjs.map +0 -1
- package/fesm2022/edsis-angular-sdk-user.mjs +0 -488
- package/fesm2022/edsis-angular-sdk-user.mjs.map +0 -1
- package/fesm2022/edsis-angular-sdk.mjs +0 -6730
- package/fesm2022/edsis-angular-sdk.mjs.map +0 -1
- package/fesm2022/edsis-angular.mjs +0 -8
- package/fesm2022/edsis-angular.mjs.map +0 -1
- package/types/edsis-angular-auth.d.ts +0 -119
- package/types/edsis-angular-sdk-access.d.ts +0 -546
- package/types/edsis-angular-sdk-approval.d.ts +0 -637
- package/types/edsis-angular-sdk-auth.d.ts +0 -127
- package/types/edsis-angular-sdk-employee.d.ts +0 -158
- package/types/edsis-angular-sdk-health.d.ts +0 -34
- package/types/edsis-angular-sdk-shared.d.ts +0 -176
- package/types/edsis-angular-sdk-storage.d.ts +0 -101
- package/types/edsis-angular-sdk-user.d.ts +0 -188
- package/types/edsis-angular-sdk.d.ts +0 -1927
- package/types/edsis-angular.d.ts +0 -2
|
@@ -1,1364 +0,0 @@
|
|
|
1
|
-
import { HttpResponse } from '@angular/common/http';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { Injectable } from '@angular/core';
|
|
4
|
-
import { filter, map } from 'rxjs/operators';
|
|
5
|
-
import { RequestBuilder, BaseService } from '@edsis/angular/sdk/shared';
|
|
6
|
-
|
|
7
|
-
/* eslint-disable */
|
|
8
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
9
|
-
const permissionOperationRules = {
|
|
10
|
-
createPermission: {
|
|
11
|
-
method: 'POST',
|
|
12
|
-
path: '/v1/access/permission',
|
|
13
|
-
tags: ['Permission'],
|
|
14
|
-
summary: 'Create permission',
|
|
15
|
-
description: 'Creates a permission master record from `namespace`, `resource`, `action`, and optional `scope` segments.',
|
|
16
|
-
requiredPermissions: ['access:permission:create'],
|
|
17
|
-
authorizationNotes: [],
|
|
18
|
-
securitySchemes: ['callerAuth'],
|
|
19
|
-
pathParams: {},
|
|
20
|
-
queryParams: {},
|
|
21
|
-
bodySchema: 'CreatePermissionRequest',
|
|
22
|
-
responseSchemas: {
|
|
23
|
-
'201': 'PermissionResponse',
|
|
24
|
-
'400': 'ErrorResponse',
|
|
25
|
-
'401': 'UnauthorizedCaller',
|
|
26
|
-
'409': 'ErrorResponse',
|
|
27
|
-
'429': 'TooManyRequests',
|
|
28
|
-
'500': 'InternalServerError',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
deletePermissionByID: {
|
|
32
|
-
method: 'DELETE',
|
|
33
|
-
path: '/v1/access/permission/{id}',
|
|
34
|
-
tags: ['Permission'],
|
|
35
|
-
summary: 'Delete permission',
|
|
36
|
-
description: 'Deletes a permission master record and invalidates effective permission cache.',
|
|
37
|
-
requiredPermissions: ['access:permission:delete'],
|
|
38
|
-
authorizationNotes: [],
|
|
39
|
-
securitySchemes: ['callerAuth'],
|
|
40
|
-
pathParams: {
|
|
41
|
-
id: {
|
|
42
|
-
required: true,
|
|
43
|
-
type: 'string',
|
|
44
|
-
format: 'uuid',
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
queryParams: {},
|
|
48
|
-
responseSchemas: {
|
|
49
|
-
'200': 'AccessMutationAckResponse',
|
|
50
|
-
'400': 'ErrorResponse',
|
|
51
|
-
'401': 'UnauthorizedCaller',
|
|
52
|
-
'404': 'ResourceNotFound',
|
|
53
|
-
'429': 'TooManyRequests',
|
|
54
|
-
'500': 'InternalServerError',
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
getPermissionByID: {
|
|
58
|
-
method: 'GET',
|
|
59
|
-
path: '/v1/access/permission/{id}',
|
|
60
|
-
tags: ['Permission'],
|
|
61
|
-
summary: 'Get permission detail',
|
|
62
|
-
description: 'Returns one permission master record by identifier.',
|
|
63
|
-
requiredPermissions: ['access:permission:read'],
|
|
64
|
-
authorizationNotes: [],
|
|
65
|
-
securitySchemes: ['callerAuth'],
|
|
66
|
-
pathParams: {
|
|
67
|
-
id: {
|
|
68
|
-
required: true,
|
|
69
|
-
type: 'string',
|
|
70
|
-
format: 'uuid',
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
queryParams: {},
|
|
74
|
-
responseSchemas: {
|
|
75
|
-
'200': 'PermissionResponse',
|
|
76
|
-
'400': 'ErrorResponse',
|
|
77
|
-
'401': 'UnauthorizedCaller',
|
|
78
|
-
'404': 'ResourceNotFound',
|
|
79
|
-
'429': 'TooManyRequests',
|
|
80
|
-
'500': 'InternalServerError',
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
listPermissions: {
|
|
84
|
-
method: 'GET',
|
|
85
|
-
path: '/v1/access/permission',
|
|
86
|
-
tags: ['Permission'],
|
|
87
|
-
summary: 'List permissions',
|
|
88
|
-
description: 'Returns a paginated permission master list, optionally filtered by namespace, resource, action, and scope using the `namespace:resource:action[:scope]` naming rule.',
|
|
89
|
-
requiredPermissions: ['access:permission:list'],
|
|
90
|
-
authorizationNotes: [],
|
|
91
|
-
securitySchemes: ['callerAuth'],
|
|
92
|
-
pathParams: {},
|
|
93
|
-
queryParams: {
|
|
94
|
-
page: {
|
|
95
|
-
required: false,
|
|
96
|
-
type: 'integer',
|
|
97
|
-
minimum: 1,
|
|
98
|
-
},
|
|
99
|
-
limit: {
|
|
100
|
-
required: false,
|
|
101
|
-
type: 'integer',
|
|
102
|
-
minimum: 1,
|
|
103
|
-
maximum: 100,
|
|
104
|
-
},
|
|
105
|
-
sort: {
|
|
106
|
-
required: false,
|
|
107
|
-
type: 'string',
|
|
108
|
-
enumValues: ['created_at', 'name', 'code', 'resource', 'action', 'updated_at'],
|
|
109
|
-
},
|
|
110
|
-
order: {
|
|
111
|
-
required: false,
|
|
112
|
-
type: 'string',
|
|
113
|
-
enumValues: ['asc', 'desc'],
|
|
114
|
-
},
|
|
115
|
-
search: {
|
|
116
|
-
required: false,
|
|
117
|
-
type: 'string',
|
|
118
|
-
},
|
|
119
|
-
namespace: {
|
|
120
|
-
required: false,
|
|
121
|
-
type: 'string',
|
|
122
|
-
},
|
|
123
|
-
resource: {
|
|
124
|
-
required: false,
|
|
125
|
-
type: 'string',
|
|
126
|
-
},
|
|
127
|
-
action: {
|
|
128
|
-
required: false,
|
|
129
|
-
type: 'string',
|
|
130
|
-
},
|
|
131
|
-
scope: {
|
|
132
|
-
required: false,
|
|
133
|
-
type: 'string',
|
|
134
|
-
},
|
|
135
|
-
},
|
|
136
|
-
responseSchemas: {
|
|
137
|
-
'200': 'PermissionListResponse',
|
|
138
|
-
'401': 'UnauthorizedCaller',
|
|
139
|
-
'429': 'TooManyRequests',
|
|
140
|
-
'500': 'InternalServerError',
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
patchPermissionByID: {
|
|
144
|
-
method: 'PATCH',
|
|
145
|
-
path: '/v1/access/permission/{id}',
|
|
146
|
-
tags: ['Permission'],
|
|
147
|
-
summary: 'Update permission',
|
|
148
|
-
description: 'Partially updates a permission master record.',
|
|
149
|
-
requiredPermissions: ['access:permission:update'],
|
|
150
|
-
authorizationNotes: [],
|
|
151
|
-
securitySchemes: ['callerAuth'],
|
|
152
|
-
pathParams: {
|
|
153
|
-
id: {
|
|
154
|
-
required: true,
|
|
155
|
-
type: 'string',
|
|
156
|
-
format: 'uuid',
|
|
157
|
-
},
|
|
158
|
-
},
|
|
159
|
-
queryParams: {},
|
|
160
|
-
bodySchema: 'UpdatePermissionRequest',
|
|
161
|
-
responseSchemas: {
|
|
162
|
-
'200': 'PermissionResponse',
|
|
163
|
-
'400': 'ErrorResponse',
|
|
164
|
-
'401': 'UnauthorizedCaller',
|
|
165
|
-
'404': 'ResourceNotFound',
|
|
166
|
-
'409': 'ErrorResponse',
|
|
167
|
-
'429': 'TooManyRequests',
|
|
168
|
-
'500': 'InternalServerError',
|
|
169
|
-
},
|
|
170
|
-
},
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
/* eslint-disable */
|
|
174
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
175
|
-
const permissionUserOperationRules = {
|
|
176
|
-
createPermissionUser: {
|
|
177
|
-
method: 'POST',
|
|
178
|
-
path: '/v1/access/permission-user',
|
|
179
|
-
tags: ['Permission User'],
|
|
180
|
-
summary: 'Create permission-user relation',
|
|
181
|
-
description: 'Assigns a direct permission to a user through the CRUD relation table.',
|
|
182
|
-
requiredPermissions: ['access:permission_user:create'],
|
|
183
|
-
authorizationNotes: [],
|
|
184
|
-
securitySchemes: ['callerAuth'],
|
|
185
|
-
pathParams: {},
|
|
186
|
-
queryParams: {},
|
|
187
|
-
bodySchema: 'CreatePermissionUserRequest',
|
|
188
|
-
responseSchemas: {
|
|
189
|
-
'201': 'PermissionUserResponse',
|
|
190
|
-
'400': 'ErrorResponse',
|
|
191
|
-
'401': 'UnauthorizedCaller',
|
|
192
|
-
'404': 'ResourceNotFound',
|
|
193
|
-
'409': 'ErrorResponse',
|
|
194
|
-
'429': 'TooManyRequests',
|
|
195
|
-
'500': 'InternalServerError',
|
|
196
|
-
},
|
|
197
|
-
},
|
|
198
|
-
deletePermissionUserByID: {
|
|
199
|
-
method: 'DELETE',
|
|
200
|
-
path: '/v1/access/permission-user/{id}',
|
|
201
|
-
tags: ['Permission User'],
|
|
202
|
-
summary: 'Delete permission-user relation',
|
|
203
|
-
description: 'Removes one permission-user relation row.',
|
|
204
|
-
requiredPermissions: ['access:permission_user:delete'],
|
|
205
|
-
authorizationNotes: [],
|
|
206
|
-
securitySchemes: ['callerAuth'],
|
|
207
|
-
pathParams: {
|
|
208
|
-
id: {
|
|
209
|
-
required: true,
|
|
210
|
-
type: 'string',
|
|
211
|
-
format: 'uuid',
|
|
212
|
-
},
|
|
213
|
-
},
|
|
214
|
-
queryParams: {},
|
|
215
|
-
responseSchemas: {
|
|
216
|
-
'200': 'AccessMutationAckResponse',
|
|
217
|
-
'400': 'ErrorResponse',
|
|
218
|
-
'401': 'UnauthorizedCaller',
|
|
219
|
-
'404': 'ResourceNotFound',
|
|
220
|
-
'429': 'TooManyRequests',
|
|
221
|
-
'500': 'InternalServerError',
|
|
222
|
-
},
|
|
223
|
-
},
|
|
224
|
-
getPermissionUserByID: {
|
|
225
|
-
method: 'GET',
|
|
226
|
-
path: '/v1/access/permission-user/{id}',
|
|
227
|
-
tags: ['Permission User'],
|
|
228
|
-
summary: 'Get permission-user detail',
|
|
229
|
-
description: 'Returns one permission-user relation by identifier.',
|
|
230
|
-
requiredPermissions: ['access:permission_user:read'],
|
|
231
|
-
authorizationNotes: [],
|
|
232
|
-
securitySchemes: ['callerAuth'],
|
|
233
|
-
pathParams: {
|
|
234
|
-
id: {
|
|
235
|
-
required: true,
|
|
236
|
-
type: 'string',
|
|
237
|
-
format: 'uuid',
|
|
238
|
-
},
|
|
239
|
-
},
|
|
240
|
-
queryParams: {},
|
|
241
|
-
responseSchemas: {
|
|
242
|
-
'200': 'PermissionUserResponse',
|
|
243
|
-
'400': 'ErrorResponse',
|
|
244
|
-
'401': 'UnauthorizedCaller',
|
|
245
|
-
'404': 'ResourceNotFound',
|
|
246
|
-
'429': 'TooManyRequests',
|
|
247
|
-
'500': 'InternalServerError',
|
|
248
|
-
},
|
|
249
|
-
},
|
|
250
|
-
listPermissionUsers: {
|
|
251
|
-
method: 'GET',
|
|
252
|
-
path: '/v1/access/permission-user',
|
|
253
|
-
tags: ['Permission User'],
|
|
254
|
-
summary: 'List permission-user relations',
|
|
255
|
-
description: 'Returns a paginated direct permission relation list for users.',
|
|
256
|
-
requiredPermissions: ['access:permission_user:list'],
|
|
257
|
-
authorizationNotes: [],
|
|
258
|
-
securitySchemes: ['callerAuth'],
|
|
259
|
-
pathParams: {},
|
|
260
|
-
queryParams: {
|
|
261
|
-
page: {
|
|
262
|
-
required: false,
|
|
263
|
-
type: 'integer',
|
|
264
|
-
minimum: 1,
|
|
265
|
-
},
|
|
266
|
-
limit: {
|
|
267
|
-
required: false,
|
|
268
|
-
type: 'integer',
|
|
269
|
-
minimum: 1,
|
|
270
|
-
maximum: 100,
|
|
271
|
-
},
|
|
272
|
-
sort: {
|
|
273
|
-
required: false,
|
|
274
|
-
type: 'string',
|
|
275
|
-
enumValues: ['created_at', 'permission_id', 'user_id'],
|
|
276
|
-
},
|
|
277
|
-
order: {
|
|
278
|
-
required: false,
|
|
279
|
-
type: 'string',
|
|
280
|
-
enumValues: ['asc', 'desc'],
|
|
281
|
-
},
|
|
282
|
-
permission_id: {
|
|
283
|
-
required: false,
|
|
284
|
-
type: 'string',
|
|
285
|
-
format: 'uuid',
|
|
286
|
-
},
|
|
287
|
-
user_id: {
|
|
288
|
-
required: false,
|
|
289
|
-
type: 'string',
|
|
290
|
-
format: 'uuid',
|
|
291
|
-
},
|
|
292
|
-
},
|
|
293
|
-
responseSchemas: {
|
|
294
|
-
'200': 'PermissionUserListResponse',
|
|
295
|
-
'401': 'UnauthorizedCaller',
|
|
296
|
-
'429': 'TooManyRequests',
|
|
297
|
-
'500': 'InternalServerError',
|
|
298
|
-
},
|
|
299
|
-
},
|
|
300
|
-
patchPermissionUserByID: {
|
|
301
|
-
method: 'PATCH',
|
|
302
|
-
path: '/v1/access/permission-user/{id}',
|
|
303
|
-
tags: ['Permission User'],
|
|
304
|
-
summary: 'Update permission-user relation',
|
|
305
|
-
description: 'Corrects one permission-user relation row.',
|
|
306
|
-
requiredPermissions: ['access:permission_user:update'],
|
|
307
|
-
authorizationNotes: [],
|
|
308
|
-
securitySchemes: ['callerAuth'],
|
|
309
|
-
pathParams: {
|
|
310
|
-
id: {
|
|
311
|
-
required: true,
|
|
312
|
-
type: 'string',
|
|
313
|
-
format: 'uuid',
|
|
314
|
-
},
|
|
315
|
-
},
|
|
316
|
-
queryParams: {},
|
|
317
|
-
bodySchema: 'UpdatePermissionUserRequest',
|
|
318
|
-
responseSchemas: {
|
|
319
|
-
'200': 'PermissionUserResponse',
|
|
320
|
-
'400': 'ErrorResponse',
|
|
321
|
-
'401': 'UnauthorizedCaller',
|
|
322
|
-
'404': 'ResourceNotFound',
|
|
323
|
-
'409': 'ErrorResponse',
|
|
324
|
-
'429': 'TooManyRequests',
|
|
325
|
-
'500': 'InternalServerError',
|
|
326
|
-
},
|
|
327
|
-
},
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
/* eslint-disable */
|
|
331
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
332
|
-
const roleOperationRules = {
|
|
333
|
-
createRole: {
|
|
334
|
-
method: 'POST',
|
|
335
|
-
path: '/v1/access/role',
|
|
336
|
-
tags: ['Role'],
|
|
337
|
-
summary: 'Create role',
|
|
338
|
-
description: 'Creates a new role master record.',
|
|
339
|
-
requiredPermissions: ['access:role:create'],
|
|
340
|
-
authorizationNotes: [],
|
|
341
|
-
securitySchemes: ['callerAuth'],
|
|
342
|
-
pathParams: {},
|
|
343
|
-
queryParams: {},
|
|
344
|
-
bodySchema: 'CreateRoleRequest',
|
|
345
|
-
responseSchemas: {
|
|
346
|
-
'201': 'RoleResponse',
|
|
347
|
-
'400': 'ErrorResponse',
|
|
348
|
-
'401': 'UnauthorizedCaller',
|
|
349
|
-
'409': 'ErrorResponse',
|
|
350
|
-
'429': 'TooManyRequests',
|
|
351
|
-
'500': 'InternalServerError',
|
|
352
|
-
},
|
|
353
|
-
},
|
|
354
|
-
deleteRoleByID: {
|
|
355
|
-
method: 'DELETE',
|
|
356
|
-
path: '/v1/access/role/{id}',
|
|
357
|
-
tags: ['Role'],
|
|
358
|
-
summary: 'Delete role',
|
|
359
|
-
description: 'Deletes a role master record when it is not a protected seeded role.',
|
|
360
|
-
requiredPermissions: ['access:role:delete'],
|
|
361
|
-
authorizationNotes: [],
|
|
362
|
-
securitySchemes: ['callerAuth'],
|
|
363
|
-
pathParams: {
|
|
364
|
-
id: {
|
|
365
|
-
required: true,
|
|
366
|
-
type: 'string',
|
|
367
|
-
format: 'uuid',
|
|
368
|
-
},
|
|
369
|
-
},
|
|
370
|
-
queryParams: {},
|
|
371
|
-
responseSchemas: {
|
|
372
|
-
'200': 'AccessMutationAckResponse',
|
|
373
|
-
'400': 'ErrorResponse',
|
|
374
|
-
'401': 'UnauthorizedCaller',
|
|
375
|
-
'404': 'ResourceNotFound',
|
|
376
|
-
'429': 'TooManyRequests',
|
|
377
|
-
'500': 'InternalServerError',
|
|
378
|
-
},
|
|
379
|
-
},
|
|
380
|
-
getRoleByID: {
|
|
381
|
-
method: 'GET',
|
|
382
|
-
path: '/v1/access/role/{id}',
|
|
383
|
-
tags: ['Role'],
|
|
384
|
-
summary: 'Get role detail',
|
|
385
|
-
description: 'Returns one role master record by identifier.',
|
|
386
|
-
requiredPermissions: ['access:role:read'],
|
|
387
|
-
authorizationNotes: [],
|
|
388
|
-
securitySchemes: ['callerAuth'],
|
|
389
|
-
pathParams: {
|
|
390
|
-
id: {
|
|
391
|
-
required: true,
|
|
392
|
-
type: 'string',
|
|
393
|
-
format: 'uuid',
|
|
394
|
-
},
|
|
395
|
-
},
|
|
396
|
-
queryParams: {},
|
|
397
|
-
responseSchemas: {
|
|
398
|
-
'200': 'RoleResponse',
|
|
399
|
-
'400': 'ErrorResponse',
|
|
400
|
-
'401': 'UnauthorizedCaller',
|
|
401
|
-
'404': 'ResourceNotFound',
|
|
402
|
-
'429': 'TooManyRequests',
|
|
403
|
-
'500': 'InternalServerError',
|
|
404
|
-
},
|
|
405
|
-
},
|
|
406
|
-
listRoles: {
|
|
407
|
-
method: 'GET',
|
|
408
|
-
path: '/v1/access/role',
|
|
409
|
-
tags: ['Role'],
|
|
410
|
-
summary: 'List roles',
|
|
411
|
-
description: 'Returns a paginated role master list from access-service.',
|
|
412
|
-
requiredPermissions: ['access:role:list'],
|
|
413
|
-
authorizationNotes: [],
|
|
414
|
-
securitySchemes: ['callerAuth'],
|
|
415
|
-
pathParams: {},
|
|
416
|
-
queryParams: {
|
|
417
|
-
page: {
|
|
418
|
-
required: false,
|
|
419
|
-
type: 'integer',
|
|
420
|
-
minimum: 1,
|
|
421
|
-
},
|
|
422
|
-
limit: {
|
|
423
|
-
required: false,
|
|
424
|
-
type: 'integer',
|
|
425
|
-
minimum: 1,
|
|
426
|
-
maximum: 100,
|
|
427
|
-
},
|
|
428
|
-
sort: {
|
|
429
|
-
required: false,
|
|
430
|
-
type: 'string',
|
|
431
|
-
enumValues: ['created_at', 'name', 'code', 'updated_at'],
|
|
432
|
-
},
|
|
433
|
-
order: {
|
|
434
|
-
required: false,
|
|
435
|
-
type: 'string',
|
|
436
|
-
enumValues: ['asc', 'desc'],
|
|
437
|
-
},
|
|
438
|
-
search: {
|
|
439
|
-
required: false,
|
|
440
|
-
type: 'string',
|
|
441
|
-
},
|
|
442
|
-
},
|
|
443
|
-
responseSchemas: {
|
|
444
|
-
'200': 'RoleListResponse',
|
|
445
|
-
'401': 'UnauthorizedCaller',
|
|
446
|
-
'429': 'TooManyRequests',
|
|
447
|
-
'500': 'InternalServerError',
|
|
448
|
-
},
|
|
449
|
-
},
|
|
450
|
-
patchRoleByID: {
|
|
451
|
-
method: 'PATCH',
|
|
452
|
-
path: '/v1/access/role/{id}',
|
|
453
|
-
tags: ['Role'],
|
|
454
|
-
summary: 'Update role',
|
|
455
|
-
description: 'Partially updates a role master record.',
|
|
456
|
-
requiredPermissions: ['access:role:update'],
|
|
457
|
-
authorizationNotes: [],
|
|
458
|
-
securitySchemes: ['callerAuth'],
|
|
459
|
-
pathParams: {
|
|
460
|
-
id: {
|
|
461
|
-
required: true,
|
|
462
|
-
type: 'string',
|
|
463
|
-
format: 'uuid',
|
|
464
|
-
},
|
|
465
|
-
},
|
|
466
|
-
queryParams: {},
|
|
467
|
-
bodySchema: 'UpdateRoleRequest',
|
|
468
|
-
responseSchemas: {
|
|
469
|
-
'200': 'RoleResponse',
|
|
470
|
-
'400': 'ErrorResponse',
|
|
471
|
-
'401': 'UnauthorizedCaller',
|
|
472
|
-
'404': 'ResourceNotFound',
|
|
473
|
-
'409': 'ErrorResponse',
|
|
474
|
-
'429': 'TooManyRequests',
|
|
475
|
-
'500': 'InternalServerError',
|
|
476
|
-
},
|
|
477
|
-
},
|
|
478
|
-
};
|
|
479
|
-
|
|
480
|
-
/* eslint-disable */
|
|
481
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
482
|
-
const rolePermissionOperationRules = {
|
|
483
|
-
createRolePermission: {
|
|
484
|
-
method: 'POST',
|
|
485
|
-
path: '/v1/access/role-permission',
|
|
486
|
-
tags: ['Role Permission'],
|
|
487
|
-
summary: 'Create role-permission relation',
|
|
488
|
-
description: 'Assigns a permission master record to a role master record.',
|
|
489
|
-
requiredPermissions: ['access:role_permission:create'],
|
|
490
|
-
authorizationNotes: [],
|
|
491
|
-
securitySchemes: ['callerAuth'],
|
|
492
|
-
pathParams: {},
|
|
493
|
-
queryParams: {},
|
|
494
|
-
bodySchema: 'CreateRolePermissionRequest',
|
|
495
|
-
responseSchemas: {
|
|
496
|
-
'201': 'RolePermissionResponse',
|
|
497
|
-
'400': 'ErrorResponse',
|
|
498
|
-
'401': 'UnauthorizedCaller',
|
|
499
|
-
'404': 'ResourceNotFound',
|
|
500
|
-
'409': 'ErrorResponse',
|
|
501
|
-
'429': 'TooManyRequests',
|
|
502
|
-
'500': 'InternalServerError',
|
|
503
|
-
},
|
|
504
|
-
},
|
|
505
|
-
deleteRolePermissionByID: {
|
|
506
|
-
method: 'DELETE',
|
|
507
|
-
path: '/v1/access/role-permission/{id}',
|
|
508
|
-
tags: ['Role Permission'],
|
|
509
|
-
summary: 'Delete role-permission relation',
|
|
510
|
-
description: 'Removes one role-permission relation row.',
|
|
511
|
-
requiredPermissions: ['access:role_permission:delete'],
|
|
512
|
-
authorizationNotes: [],
|
|
513
|
-
securitySchemes: ['callerAuth'],
|
|
514
|
-
pathParams: {
|
|
515
|
-
id: {
|
|
516
|
-
required: true,
|
|
517
|
-
type: 'string',
|
|
518
|
-
format: 'uuid',
|
|
519
|
-
},
|
|
520
|
-
},
|
|
521
|
-
queryParams: {},
|
|
522
|
-
responseSchemas: {
|
|
523
|
-
'200': 'AccessMutationAckResponse',
|
|
524
|
-
'400': 'ErrorResponse',
|
|
525
|
-
'401': 'UnauthorizedCaller',
|
|
526
|
-
'404': 'ResourceNotFound',
|
|
527
|
-
'429': 'TooManyRequests',
|
|
528
|
-
'500': 'InternalServerError',
|
|
529
|
-
},
|
|
530
|
-
},
|
|
531
|
-
getRolePermissionByID: {
|
|
532
|
-
method: 'GET',
|
|
533
|
-
path: '/v1/access/role-permission/{id}',
|
|
534
|
-
tags: ['Role Permission'],
|
|
535
|
-
summary: 'Get role-permission detail',
|
|
536
|
-
description: 'Returns one role-permission relation by identifier.',
|
|
537
|
-
requiredPermissions: ['access:role_permission:read'],
|
|
538
|
-
authorizationNotes: [],
|
|
539
|
-
securitySchemes: ['callerAuth'],
|
|
540
|
-
pathParams: {
|
|
541
|
-
id: {
|
|
542
|
-
required: true,
|
|
543
|
-
type: 'string',
|
|
544
|
-
format: 'uuid',
|
|
545
|
-
},
|
|
546
|
-
},
|
|
547
|
-
queryParams: {},
|
|
548
|
-
responseSchemas: {
|
|
549
|
-
'200': 'RolePermissionResponse',
|
|
550
|
-
'400': 'ErrorResponse',
|
|
551
|
-
'401': 'UnauthorizedCaller',
|
|
552
|
-
'404': 'ResourceNotFound',
|
|
553
|
-
'429': 'TooManyRequests',
|
|
554
|
-
'500': 'InternalServerError',
|
|
555
|
-
},
|
|
556
|
-
},
|
|
557
|
-
listRolePermissions: {
|
|
558
|
-
method: 'GET',
|
|
559
|
-
path: '/v1/access/role-permission',
|
|
560
|
-
tags: ['Role Permission'],
|
|
561
|
-
summary: 'List role-permission relations',
|
|
562
|
-
description: 'Returns a paginated role-permission relation list.',
|
|
563
|
-
requiredPermissions: ['access:role_permission:list'],
|
|
564
|
-
authorizationNotes: [],
|
|
565
|
-
securitySchemes: ['callerAuth'],
|
|
566
|
-
pathParams: {},
|
|
567
|
-
queryParams: {
|
|
568
|
-
page: {
|
|
569
|
-
required: false,
|
|
570
|
-
type: 'integer',
|
|
571
|
-
minimum: 1,
|
|
572
|
-
},
|
|
573
|
-
limit: {
|
|
574
|
-
required: false,
|
|
575
|
-
type: 'integer',
|
|
576
|
-
minimum: 1,
|
|
577
|
-
maximum: 100,
|
|
578
|
-
},
|
|
579
|
-
sort: {
|
|
580
|
-
required: false,
|
|
581
|
-
type: 'string',
|
|
582
|
-
enumValues: ['created_at', 'role_id', 'permission_id'],
|
|
583
|
-
},
|
|
584
|
-
order: {
|
|
585
|
-
required: false,
|
|
586
|
-
type: 'string',
|
|
587
|
-
enumValues: ['asc', 'desc'],
|
|
588
|
-
},
|
|
589
|
-
role_id: {
|
|
590
|
-
required: false,
|
|
591
|
-
type: 'string',
|
|
592
|
-
format: 'uuid',
|
|
593
|
-
},
|
|
594
|
-
permission_id: {
|
|
595
|
-
required: false,
|
|
596
|
-
type: 'string',
|
|
597
|
-
format: 'uuid',
|
|
598
|
-
},
|
|
599
|
-
},
|
|
600
|
-
responseSchemas: {
|
|
601
|
-
'200': 'RolePermissionListResponse',
|
|
602
|
-
'401': 'UnauthorizedCaller',
|
|
603
|
-
'429': 'TooManyRequests',
|
|
604
|
-
'500': 'InternalServerError',
|
|
605
|
-
},
|
|
606
|
-
},
|
|
607
|
-
patchRolePermissionByID: {
|
|
608
|
-
method: 'PATCH',
|
|
609
|
-
path: '/v1/access/role-permission/{id}',
|
|
610
|
-
tags: ['Role Permission'],
|
|
611
|
-
summary: 'Update role-permission relation',
|
|
612
|
-
description: 'Corrects one role-permission relation row.',
|
|
613
|
-
requiredPermissions: ['access:role_permission:update'],
|
|
614
|
-
authorizationNotes: [],
|
|
615
|
-
securitySchemes: ['callerAuth'],
|
|
616
|
-
pathParams: {
|
|
617
|
-
id: {
|
|
618
|
-
required: true,
|
|
619
|
-
type: 'string',
|
|
620
|
-
format: 'uuid',
|
|
621
|
-
},
|
|
622
|
-
},
|
|
623
|
-
queryParams: {},
|
|
624
|
-
bodySchema: 'UpdateRolePermissionRequest',
|
|
625
|
-
responseSchemas: {
|
|
626
|
-
'200': 'RolePermissionResponse',
|
|
627
|
-
'400': 'ErrorResponse',
|
|
628
|
-
'401': 'UnauthorizedCaller',
|
|
629
|
-
'404': 'ResourceNotFound',
|
|
630
|
-
'409': 'ErrorResponse',
|
|
631
|
-
'429': 'TooManyRequests',
|
|
632
|
-
'500': 'InternalServerError',
|
|
633
|
-
},
|
|
634
|
-
},
|
|
635
|
-
};
|
|
636
|
-
|
|
637
|
-
/* eslint-disable */
|
|
638
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
639
|
-
const roleUserOperationRules = {
|
|
640
|
-
createRoleUser: {
|
|
641
|
-
method: 'POST',
|
|
642
|
-
path: '/v1/access/role-user',
|
|
643
|
-
tags: ['Role User'],
|
|
644
|
-
summary: 'Create role-user relation',
|
|
645
|
-
description: 'Assigns a role to a user through the CRUD relation table.',
|
|
646
|
-
requiredPermissions: ['access:role_user:create'],
|
|
647
|
-
authorizationNotes: [],
|
|
648
|
-
securitySchemes: ['callerAuth'],
|
|
649
|
-
pathParams: {},
|
|
650
|
-
queryParams: {},
|
|
651
|
-
bodySchema: 'CreateRoleUserRequest',
|
|
652
|
-
responseSchemas: {
|
|
653
|
-
'201': 'RoleUserResponse',
|
|
654
|
-
'400': 'ErrorResponse',
|
|
655
|
-
'401': 'UnauthorizedCaller',
|
|
656
|
-
'404': 'ResourceNotFound',
|
|
657
|
-
'409': 'ErrorResponse',
|
|
658
|
-
'429': 'TooManyRequests',
|
|
659
|
-
'500': 'InternalServerError',
|
|
660
|
-
},
|
|
661
|
-
},
|
|
662
|
-
deleteRoleUserByID: {
|
|
663
|
-
method: 'DELETE',
|
|
664
|
-
path: '/v1/access/role-user/{id}',
|
|
665
|
-
tags: ['Role User'],
|
|
666
|
-
summary: 'Delete role-user relation',
|
|
667
|
-
description: 'Removes one role-user relation row.',
|
|
668
|
-
requiredPermissions: ['access:role_user:delete'],
|
|
669
|
-
authorizationNotes: [],
|
|
670
|
-
securitySchemes: ['callerAuth'],
|
|
671
|
-
pathParams: {
|
|
672
|
-
id: {
|
|
673
|
-
required: true,
|
|
674
|
-
type: 'string',
|
|
675
|
-
format: 'uuid',
|
|
676
|
-
},
|
|
677
|
-
},
|
|
678
|
-
queryParams: {},
|
|
679
|
-
responseSchemas: {
|
|
680
|
-
'200': 'AccessMutationAckResponse',
|
|
681
|
-
'400': 'ErrorResponse',
|
|
682
|
-
'401': 'UnauthorizedCaller',
|
|
683
|
-
'404': 'ResourceNotFound',
|
|
684
|
-
'429': 'TooManyRequests',
|
|
685
|
-
'500': 'InternalServerError',
|
|
686
|
-
},
|
|
687
|
-
},
|
|
688
|
-
getRoleUserByID: {
|
|
689
|
-
method: 'GET',
|
|
690
|
-
path: '/v1/access/role-user/{id}',
|
|
691
|
-
tags: ['Role User'],
|
|
692
|
-
summary: 'Get role-user detail',
|
|
693
|
-
description: 'Returns one role-user relation by identifier.',
|
|
694
|
-
requiredPermissions: ['access:role_user:read'],
|
|
695
|
-
authorizationNotes: [],
|
|
696
|
-
securitySchemes: ['callerAuth'],
|
|
697
|
-
pathParams: {
|
|
698
|
-
id: {
|
|
699
|
-
required: true,
|
|
700
|
-
type: 'string',
|
|
701
|
-
format: 'uuid',
|
|
702
|
-
},
|
|
703
|
-
},
|
|
704
|
-
queryParams: {},
|
|
705
|
-
responseSchemas: {
|
|
706
|
-
'200': 'RoleUserResponse',
|
|
707
|
-
'400': 'ErrorResponse',
|
|
708
|
-
'401': 'UnauthorizedCaller',
|
|
709
|
-
'404': 'ResourceNotFound',
|
|
710
|
-
'429': 'TooManyRequests',
|
|
711
|
-
'500': 'InternalServerError',
|
|
712
|
-
},
|
|
713
|
-
},
|
|
714
|
-
listRoleUsers: {
|
|
715
|
-
method: 'GET',
|
|
716
|
-
path: '/v1/access/role-user',
|
|
717
|
-
tags: ['Role User'],
|
|
718
|
-
summary: 'List role-user relations',
|
|
719
|
-
description: 'Returns a paginated role-user relation list.',
|
|
720
|
-
requiredPermissions: ['access:role_user:list'],
|
|
721
|
-
authorizationNotes: [],
|
|
722
|
-
securitySchemes: ['callerAuth'],
|
|
723
|
-
pathParams: {},
|
|
724
|
-
queryParams: {
|
|
725
|
-
page: {
|
|
726
|
-
required: false,
|
|
727
|
-
type: 'integer',
|
|
728
|
-
minimum: 1,
|
|
729
|
-
},
|
|
730
|
-
limit: {
|
|
731
|
-
required: false,
|
|
732
|
-
type: 'integer',
|
|
733
|
-
minimum: 1,
|
|
734
|
-
maximum: 100,
|
|
735
|
-
},
|
|
736
|
-
sort: {
|
|
737
|
-
required: false,
|
|
738
|
-
type: 'string',
|
|
739
|
-
enumValues: ['created_at', 'role_id', 'user_id'],
|
|
740
|
-
},
|
|
741
|
-
order: {
|
|
742
|
-
required: false,
|
|
743
|
-
type: 'string',
|
|
744
|
-
enumValues: ['asc', 'desc'],
|
|
745
|
-
},
|
|
746
|
-
role_id: {
|
|
747
|
-
required: false,
|
|
748
|
-
type: 'string',
|
|
749
|
-
format: 'uuid',
|
|
750
|
-
},
|
|
751
|
-
user_id: {
|
|
752
|
-
required: false,
|
|
753
|
-
type: 'string',
|
|
754
|
-
format: 'uuid',
|
|
755
|
-
},
|
|
756
|
-
},
|
|
757
|
-
responseSchemas: {
|
|
758
|
-
'200': 'RoleUserListResponse',
|
|
759
|
-
'401': 'UnauthorizedCaller',
|
|
760
|
-
'429': 'TooManyRequests',
|
|
761
|
-
'500': 'InternalServerError',
|
|
762
|
-
},
|
|
763
|
-
},
|
|
764
|
-
patchRoleUserByID: {
|
|
765
|
-
method: 'PATCH',
|
|
766
|
-
path: '/v1/access/role-user/{id}',
|
|
767
|
-
tags: ['Role User'],
|
|
768
|
-
summary: 'Update role-user relation',
|
|
769
|
-
description: 'Corrects one role-user relation row.',
|
|
770
|
-
requiredPermissions: ['access:role_user:update'],
|
|
771
|
-
authorizationNotes: [],
|
|
772
|
-
securitySchemes: ['callerAuth'],
|
|
773
|
-
pathParams: {
|
|
774
|
-
id: {
|
|
775
|
-
required: true,
|
|
776
|
-
type: 'string',
|
|
777
|
-
format: 'uuid',
|
|
778
|
-
},
|
|
779
|
-
},
|
|
780
|
-
queryParams: {},
|
|
781
|
-
bodySchema: 'UpdateRoleUserRequest',
|
|
782
|
-
responseSchemas: {
|
|
783
|
-
'200': 'RoleUserResponse',
|
|
784
|
-
'400': 'ErrorResponse',
|
|
785
|
-
'401': 'UnauthorizedCaller',
|
|
786
|
-
'404': 'ResourceNotFound',
|
|
787
|
-
'409': 'ErrorResponse',
|
|
788
|
-
'429': 'TooManyRequests',
|
|
789
|
-
'500': 'InternalServerError',
|
|
790
|
-
},
|
|
791
|
-
},
|
|
792
|
-
};
|
|
793
|
-
|
|
794
|
-
/* eslint-disable */
|
|
795
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
796
|
-
function createPermission(http, rootUrl, params, context) {
|
|
797
|
-
const rb = new RequestBuilder(rootUrl, createPermission.PATH, 'post');
|
|
798
|
-
if (params) {
|
|
799
|
-
rb.body(params.body, 'application/json');
|
|
800
|
-
}
|
|
801
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
802
|
-
}
|
|
803
|
-
createPermission.PATH = '/v1/access/permission';
|
|
804
|
-
|
|
805
|
-
/* eslint-disable */
|
|
806
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
807
|
-
function deletePermissionByID(http, rootUrl, params, context) {
|
|
808
|
-
const rb = new RequestBuilder(rootUrl, deletePermissionByID.PATH, 'delete');
|
|
809
|
-
if (params) {
|
|
810
|
-
rb.path('id', params.id);
|
|
811
|
-
}
|
|
812
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
813
|
-
}
|
|
814
|
-
deletePermissionByID.PATH = '/v1/access/permission/{id}';
|
|
815
|
-
|
|
816
|
-
/* eslint-disable */
|
|
817
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
818
|
-
function getPermissionByID(http, rootUrl, params, context) {
|
|
819
|
-
const rb = new RequestBuilder(rootUrl, getPermissionByID.PATH, 'get');
|
|
820
|
-
if (params) {
|
|
821
|
-
rb.path('id', params.id);
|
|
822
|
-
}
|
|
823
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
824
|
-
}
|
|
825
|
-
getPermissionByID.PATH = '/v1/access/permission/{id}';
|
|
826
|
-
|
|
827
|
-
/* eslint-disable */
|
|
828
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
829
|
-
function listPermissions(http, rootUrl, params, context) {
|
|
830
|
-
const rb = new RequestBuilder(rootUrl, listPermissions.PATH, 'get');
|
|
831
|
-
if (params) {
|
|
832
|
-
rb.query('page', params.page);
|
|
833
|
-
rb.query('limit', params.limit);
|
|
834
|
-
rb.query('sort', params.sort);
|
|
835
|
-
rb.query('order', params.order);
|
|
836
|
-
rb.query('search', params.search);
|
|
837
|
-
rb.query('namespace', params.namespace);
|
|
838
|
-
rb.query('resource', params.resource);
|
|
839
|
-
rb.query('action', params.action);
|
|
840
|
-
rb.query('scope', params.scope);
|
|
841
|
-
}
|
|
842
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
843
|
-
}
|
|
844
|
-
listPermissions.PATH = '/v1/access/permission';
|
|
845
|
-
|
|
846
|
-
/* eslint-disable */
|
|
847
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
848
|
-
function patchPermissionByID(http, rootUrl, params, context) {
|
|
849
|
-
const rb = new RequestBuilder(rootUrl, patchPermissionByID.PATH, 'patch');
|
|
850
|
-
if (params) {
|
|
851
|
-
rb.path('id', params.id);
|
|
852
|
-
rb.body(params.body, 'application/json');
|
|
853
|
-
}
|
|
854
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
855
|
-
}
|
|
856
|
-
patchPermissionByID.PATH = '/v1/access/permission/{id}';
|
|
857
|
-
|
|
858
|
-
/* eslint-disable */
|
|
859
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
860
|
-
class PermissionService extends BaseService {
|
|
861
|
-
/** Create permission (POST /v1/access/permission) */
|
|
862
|
-
createPermission$Response(params, context) {
|
|
863
|
-
return createPermission(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
864
|
-
}
|
|
865
|
-
/** Create permission (POST /v1/access/permission) */
|
|
866
|
-
createPermission(params, context) {
|
|
867
|
-
return this.createPermission$Response(params, context).pipe(map((r) => r.body));
|
|
868
|
-
}
|
|
869
|
-
/** Delete permission (DELETE /v1/access/permission/{id}) */
|
|
870
|
-
deletePermissionByID$Response(params, context) {
|
|
871
|
-
return deletePermissionByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
872
|
-
}
|
|
873
|
-
/** Delete permission (DELETE /v1/access/permission/{id}) */
|
|
874
|
-
deletePermissionByID(params, context) {
|
|
875
|
-
return this.deletePermissionByID$Response(params, context).pipe(map((r) => r.body));
|
|
876
|
-
}
|
|
877
|
-
/** Get permission detail (GET /v1/access/permission/{id}) */
|
|
878
|
-
getPermissionByID$Response(params, context) {
|
|
879
|
-
return getPermissionByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
880
|
-
}
|
|
881
|
-
/** Get permission detail (GET /v1/access/permission/{id}) */
|
|
882
|
-
getPermissionByID(params, context) {
|
|
883
|
-
return this.getPermissionByID$Response(params, context).pipe(map((r) => r.body));
|
|
884
|
-
}
|
|
885
|
-
/** List permissions (GET /v1/access/permission) */
|
|
886
|
-
listPermissions$Response(params, context) {
|
|
887
|
-
return listPermissions(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
888
|
-
}
|
|
889
|
-
/** List permissions (GET /v1/access/permission) */
|
|
890
|
-
listPermissions(params, context) {
|
|
891
|
-
return this.listPermissions$Response(params, context).pipe(map((r) => r.body));
|
|
892
|
-
}
|
|
893
|
-
/** Update permission (PATCH /v1/access/permission/{id}) */
|
|
894
|
-
patchPermissionByID$Response(params, context) {
|
|
895
|
-
return patchPermissionByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
896
|
-
}
|
|
897
|
-
/** Update permission (PATCH /v1/access/permission/{id}) */
|
|
898
|
-
patchPermissionByID(params, context) {
|
|
899
|
-
return this.patchPermissionByID$Response(params, context).pipe(map((r) => r.body));
|
|
900
|
-
}
|
|
901
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PermissionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
902
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PermissionService, providedIn: 'root' });
|
|
903
|
-
}
|
|
904
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PermissionService, decorators: [{
|
|
905
|
-
type: Injectable,
|
|
906
|
-
args: [{ providedIn: 'root' }]
|
|
907
|
-
}] });
|
|
908
|
-
|
|
909
|
-
/* eslint-disable */
|
|
910
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
911
|
-
function createPermissionUser(http, rootUrl, params, context) {
|
|
912
|
-
const rb = new RequestBuilder(rootUrl, createPermissionUser.PATH, 'post');
|
|
913
|
-
if (params) {
|
|
914
|
-
rb.body(params.body, 'application/json');
|
|
915
|
-
}
|
|
916
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
917
|
-
}
|
|
918
|
-
createPermissionUser.PATH = '/v1/access/permission-user';
|
|
919
|
-
|
|
920
|
-
/* eslint-disable */
|
|
921
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
922
|
-
function deletePermissionUserByID(http, rootUrl, params, context) {
|
|
923
|
-
const rb = new RequestBuilder(rootUrl, deletePermissionUserByID.PATH, 'delete');
|
|
924
|
-
if (params) {
|
|
925
|
-
rb.path('id', params.id);
|
|
926
|
-
}
|
|
927
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
928
|
-
}
|
|
929
|
-
deletePermissionUserByID.PATH = '/v1/access/permission-user/{id}';
|
|
930
|
-
|
|
931
|
-
/* eslint-disable */
|
|
932
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
933
|
-
function getPermissionUserByID(http, rootUrl, params, context) {
|
|
934
|
-
const rb = new RequestBuilder(rootUrl, getPermissionUserByID.PATH, 'get');
|
|
935
|
-
if (params) {
|
|
936
|
-
rb.path('id', params.id);
|
|
937
|
-
}
|
|
938
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
939
|
-
}
|
|
940
|
-
getPermissionUserByID.PATH = '/v1/access/permission-user/{id}';
|
|
941
|
-
|
|
942
|
-
/* eslint-disable */
|
|
943
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
944
|
-
function listPermissionUsers(http, rootUrl, params, context) {
|
|
945
|
-
const rb = new RequestBuilder(rootUrl, listPermissionUsers.PATH, 'get');
|
|
946
|
-
if (params) {
|
|
947
|
-
rb.query('page', params.page);
|
|
948
|
-
rb.query('limit', params.limit);
|
|
949
|
-
rb.query('sort', params.sort);
|
|
950
|
-
rb.query('order', params.order);
|
|
951
|
-
rb.query('permission_id', params.permission_id);
|
|
952
|
-
rb.query('user_id', params.user_id);
|
|
953
|
-
}
|
|
954
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
955
|
-
}
|
|
956
|
-
listPermissionUsers.PATH = '/v1/access/permission-user';
|
|
957
|
-
|
|
958
|
-
/* eslint-disable */
|
|
959
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
960
|
-
function patchPermissionUserByID(http, rootUrl, params, context) {
|
|
961
|
-
const rb = new RequestBuilder(rootUrl, patchPermissionUserByID.PATH, 'patch');
|
|
962
|
-
if (params) {
|
|
963
|
-
rb.path('id', params.id);
|
|
964
|
-
rb.body(params.body, 'application/json');
|
|
965
|
-
}
|
|
966
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
967
|
-
}
|
|
968
|
-
patchPermissionUserByID.PATH = '/v1/access/permission-user/{id}';
|
|
969
|
-
|
|
970
|
-
/* eslint-disable */
|
|
971
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
972
|
-
class PermissionUserService extends BaseService {
|
|
973
|
-
/** Create permission-user relation (POST /v1/access/permission-user) */
|
|
974
|
-
createPermissionUser$Response(params, context) {
|
|
975
|
-
return createPermissionUser(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
976
|
-
}
|
|
977
|
-
/** Create permission-user relation (POST /v1/access/permission-user) */
|
|
978
|
-
createPermissionUser(params, context) {
|
|
979
|
-
return this.createPermissionUser$Response(params, context).pipe(map((r) => r.body));
|
|
980
|
-
}
|
|
981
|
-
/** Delete permission-user relation (DELETE /v1/access/permission-user/{id}) */
|
|
982
|
-
deletePermissionUserByID$Response(params, context) {
|
|
983
|
-
return deletePermissionUserByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
984
|
-
}
|
|
985
|
-
/** Delete permission-user relation (DELETE /v1/access/permission-user/{id}) */
|
|
986
|
-
deletePermissionUserByID(params, context) {
|
|
987
|
-
return this.deletePermissionUserByID$Response(params, context).pipe(map((r) => r.body));
|
|
988
|
-
}
|
|
989
|
-
/** Get permission-user detail (GET /v1/access/permission-user/{id}) */
|
|
990
|
-
getPermissionUserByID$Response(params, context) {
|
|
991
|
-
return getPermissionUserByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
992
|
-
}
|
|
993
|
-
/** Get permission-user detail (GET /v1/access/permission-user/{id}) */
|
|
994
|
-
getPermissionUserByID(params, context) {
|
|
995
|
-
return this.getPermissionUserByID$Response(params, context).pipe(map((r) => r.body));
|
|
996
|
-
}
|
|
997
|
-
/** List permission-user relations (GET /v1/access/permission-user) */
|
|
998
|
-
listPermissionUsers$Response(params, context) {
|
|
999
|
-
return listPermissionUsers(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1000
|
-
}
|
|
1001
|
-
/** List permission-user relations (GET /v1/access/permission-user) */
|
|
1002
|
-
listPermissionUsers(params, context) {
|
|
1003
|
-
return this.listPermissionUsers$Response(params, context).pipe(map((r) => r.body));
|
|
1004
|
-
}
|
|
1005
|
-
/** Update permission-user relation (PATCH /v1/access/permission-user/{id}) */
|
|
1006
|
-
patchPermissionUserByID$Response(params, context) {
|
|
1007
|
-
return patchPermissionUserByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1008
|
-
}
|
|
1009
|
-
/** Update permission-user relation (PATCH /v1/access/permission-user/{id}) */
|
|
1010
|
-
patchPermissionUserByID(params, context) {
|
|
1011
|
-
return this.patchPermissionUserByID$Response(params, context).pipe(map((r) => r.body));
|
|
1012
|
-
}
|
|
1013
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PermissionUserService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1014
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PermissionUserService, providedIn: 'root' });
|
|
1015
|
-
}
|
|
1016
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: PermissionUserService, decorators: [{
|
|
1017
|
-
type: Injectable,
|
|
1018
|
-
args: [{ providedIn: 'root' }]
|
|
1019
|
-
}] });
|
|
1020
|
-
|
|
1021
|
-
/* eslint-disable */
|
|
1022
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1023
|
-
function createRole(http, rootUrl, params, context) {
|
|
1024
|
-
const rb = new RequestBuilder(rootUrl, createRole.PATH, 'post');
|
|
1025
|
-
if (params) {
|
|
1026
|
-
rb.body(params.body, 'application/json');
|
|
1027
|
-
}
|
|
1028
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1029
|
-
}
|
|
1030
|
-
createRole.PATH = '/v1/access/role';
|
|
1031
|
-
|
|
1032
|
-
/* eslint-disable */
|
|
1033
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1034
|
-
function deleteRoleByID(http, rootUrl, params, context) {
|
|
1035
|
-
const rb = new RequestBuilder(rootUrl, deleteRoleByID.PATH, 'delete');
|
|
1036
|
-
if (params) {
|
|
1037
|
-
rb.path('id', params.id);
|
|
1038
|
-
}
|
|
1039
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1040
|
-
}
|
|
1041
|
-
deleteRoleByID.PATH = '/v1/access/role/{id}';
|
|
1042
|
-
|
|
1043
|
-
/* eslint-disable */
|
|
1044
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1045
|
-
function getRoleByID(http, rootUrl, params, context) {
|
|
1046
|
-
const rb = new RequestBuilder(rootUrl, getRoleByID.PATH, 'get');
|
|
1047
|
-
if (params) {
|
|
1048
|
-
rb.path('id', params.id);
|
|
1049
|
-
}
|
|
1050
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1051
|
-
}
|
|
1052
|
-
getRoleByID.PATH = '/v1/access/role/{id}';
|
|
1053
|
-
|
|
1054
|
-
/* eslint-disable */
|
|
1055
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1056
|
-
function listRoles(http, rootUrl, params, context) {
|
|
1057
|
-
const rb = new RequestBuilder(rootUrl, listRoles.PATH, 'get');
|
|
1058
|
-
if (params) {
|
|
1059
|
-
rb.query('page', params.page);
|
|
1060
|
-
rb.query('limit', params.limit);
|
|
1061
|
-
rb.query('sort', params.sort);
|
|
1062
|
-
rb.query('order', params.order);
|
|
1063
|
-
rb.query('search', params.search);
|
|
1064
|
-
}
|
|
1065
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1066
|
-
}
|
|
1067
|
-
listRoles.PATH = '/v1/access/role';
|
|
1068
|
-
|
|
1069
|
-
/* eslint-disable */
|
|
1070
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1071
|
-
function patchRoleByID(http, rootUrl, params, context) {
|
|
1072
|
-
const rb = new RequestBuilder(rootUrl, patchRoleByID.PATH, 'patch');
|
|
1073
|
-
if (params) {
|
|
1074
|
-
rb.path('id', params.id);
|
|
1075
|
-
rb.body(params.body, 'application/json');
|
|
1076
|
-
}
|
|
1077
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1078
|
-
}
|
|
1079
|
-
patchRoleByID.PATH = '/v1/access/role/{id}';
|
|
1080
|
-
|
|
1081
|
-
/* eslint-disable */
|
|
1082
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1083
|
-
class RoleService extends BaseService {
|
|
1084
|
-
/** Create role (POST /v1/access/role) */
|
|
1085
|
-
createRole$Response(params, context) {
|
|
1086
|
-
return createRole(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1087
|
-
}
|
|
1088
|
-
/** Create role (POST /v1/access/role) */
|
|
1089
|
-
createRole(params, context) {
|
|
1090
|
-
return this.createRole$Response(params, context).pipe(map((r) => r.body));
|
|
1091
|
-
}
|
|
1092
|
-
/** Delete role (DELETE /v1/access/role/{id}) */
|
|
1093
|
-
deleteRoleByID$Response(params, context) {
|
|
1094
|
-
return deleteRoleByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1095
|
-
}
|
|
1096
|
-
/** Delete role (DELETE /v1/access/role/{id}) */
|
|
1097
|
-
deleteRoleByID(params, context) {
|
|
1098
|
-
return this.deleteRoleByID$Response(params, context).pipe(map((r) => r.body));
|
|
1099
|
-
}
|
|
1100
|
-
/** Get role detail (GET /v1/access/role/{id}) */
|
|
1101
|
-
getRoleByID$Response(params, context) {
|
|
1102
|
-
return getRoleByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1103
|
-
}
|
|
1104
|
-
/** Get role detail (GET /v1/access/role/{id}) */
|
|
1105
|
-
getRoleByID(params, context) {
|
|
1106
|
-
return this.getRoleByID$Response(params, context).pipe(map((r) => r.body));
|
|
1107
|
-
}
|
|
1108
|
-
/** List roles (GET /v1/access/role) */
|
|
1109
|
-
listRoles$Response(params, context) {
|
|
1110
|
-
return listRoles(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1111
|
-
}
|
|
1112
|
-
/** List roles (GET /v1/access/role) */
|
|
1113
|
-
listRoles(params, context) {
|
|
1114
|
-
return this.listRoles$Response(params, context).pipe(map((r) => r.body));
|
|
1115
|
-
}
|
|
1116
|
-
/** Update role (PATCH /v1/access/role/{id}) */
|
|
1117
|
-
patchRoleByID$Response(params, context) {
|
|
1118
|
-
return patchRoleByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1119
|
-
}
|
|
1120
|
-
/** Update role (PATCH /v1/access/role/{id}) */
|
|
1121
|
-
patchRoleByID(params, context) {
|
|
1122
|
-
return this.patchRoleByID$Response(params, context).pipe(map((r) => r.body));
|
|
1123
|
-
}
|
|
1124
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RoleService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1125
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RoleService, providedIn: 'root' });
|
|
1126
|
-
}
|
|
1127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RoleService, decorators: [{
|
|
1128
|
-
type: Injectable,
|
|
1129
|
-
args: [{ providedIn: 'root' }]
|
|
1130
|
-
}] });
|
|
1131
|
-
|
|
1132
|
-
/* eslint-disable */
|
|
1133
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1134
|
-
function createRolePermission(http, rootUrl, params, context) {
|
|
1135
|
-
const rb = new RequestBuilder(rootUrl, createRolePermission.PATH, 'post');
|
|
1136
|
-
if (params) {
|
|
1137
|
-
rb.body(params.body, 'application/json');
|
|
1138
|
-
}
|
|
1139
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1140
|
-
}
|
|
1141
|
-
createRolePermission.PATH = '/v1/access/role-permission';
|
|
1142
|
-
|
|
1143
|
-
/* eslint-disable */
|
|
1144
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1145
|
-
function deleteRolePermissionByID(http, rootUrl, params, context) {
|
|
1146
|
-
const rb = new RequestBuilder(rootUrl, deleteRolePermissionByID.PATH, 'delete');
|
|
1147
|
-
if (params) {
|
|
1148
|
-
rb.path('id', params.id);
|
|
1149
|
-
}
|
|
1150
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1151
|
-
}
|
|
1152
|
-
deleteRolePermissionByID.PATH = '/v1/access/role-permission/{id}';
|
|
1153
|
-
|
|
1154
|
-
/* eslint-disable */
|
|
1155
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1156
|
-
function getRolePermissionByID(http, rootUrl, params, context) {
|
|
1157
|
-
const rb = new RequestBuilder(rootUrl, getRolePermissionByID.PATH, 'get');
|
|
1158
|
-
if (params) {
|
|
1159
|
-
rb.path('id', params.id);
|
|
1160
|
-
}
|
|
1161
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1162
|
-
}
|
|
1163
|
-
getRolePermissionByID.PATH = '/v1/access/role-permission/{id}';
|
|
1164
|
-
|
|
1165
|
-
/* eslint-disable */
|
|
1166
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1167
|
-
function listRolePermissions(http, rootUrl, params, context) {
|
|
1168
|
-
const rb = new RequestBuilder(rootUrl, listRolePermissions.PATH, 'get');
|
|
1169
|
-
if (params) {
|
|
1170
|
-
rb.query('page', params.page);
|
|
1171
|
-
rb.query('limit', params.limit);
|
|
1172
|
-
rb.query('sort', params.sort);
|
|
1173
|
-
rb.query('order', params.order);
|
|
1174
|
-
rb.query('role_id', params.role_id);
|
|
1175
|
-
rb.query('permission_id', params.permission_id);
|
|
1176
|
-
}
|
|
1177
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1178
|
-
}
|
|
1179
|
-
listRolePermissions.PATH = '/v1/access/role-permission';
|
|
1180
|
-
|
|
1181
|
-
/* eslint-disable */
|
|
1182
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1183
|
-
function patchRolePermissionByID(http, rootUrl, params, context) {
|
|
1184
|
-
const rb = new RequestBuilder(rootUrl, patchRolePermissionByID.PATH, 'patch');
|
|
1185
|
-
if (params) {
|
|
1186
|
-
rb.path('id', params.id);
|
|
1187
|
-
rb.body(params.body, 'application/json');
|
|
1188
|
-
}
|
|
1189
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1190
|
-
}
|
|
1191
|
-
patchRolePermissionByID.PATH = '/v1/access/role-permission/{id}';
|
|
1192
|
-
|
|
1193
|
-
/* eslint-disable */
|
|
1194
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1195
|
-
class RolePermissionService extends BaseService {
|
|
1196
|
-
/** Create role-permission relation (POST /v1/access/role-permission) */
|
|
1197
|
-
createRolePermission$Response(params, context) {
|
|
1198
|
-
return createRolePermission(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1199
|
-
}
|
|
1200
|
-
/** Create role-permission relation (POST /v1/access/role-permission) */
|
|
1201
|
-
createRolePermission(params, context) {
|
|
1202
|
-
return this.createRolePermission$Response(params, context).pipe(map((r) => r.body));
|
|
1203
|
-
}
|
|
1204
|
-
/** Delete role-permission relation (DELETE /v1/access/role-permission/{id}) */
|
|
1205
|
-
deleteRolePermissionByID$Response(params, context) {
|
|
1206
|
-
return deleteRolePermissionByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1207
|
-
}
|
|
1208
|
-
/** Delete role-permission relation (DELETE /v1/access/role-permission/{id}) */
|
|
1209
|
-
deleteRolePermissionByID(params, context) {
|
|
1210
|
-
return this.deleteRolePermissionByID$Response(params, context).pipe(map((r) => r.body));
|
|
1211
|
-
}
|
|
1212
|
-
/** Get role-permission detail (GET /v1/access/role-permission/{id}) */
|
|
1213
|
-
getRolePermissionByID$Response(params, context) {
|
|
1214
|
-
return getRolePermissionByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1215
|
-
}
|
|
1216
|
-
/** Get role-permission detail (GET /v1/access/role-permission/{id}) */
|
|
1217
|
-
getRolePermissionByID(params, context) {
|
|
1218
|
-
return this.getRolePermissionByID$Response(params, context).pipe(map((r) => r.body));
|
|
1219
|
-
}
|
|
1220
|
-
/** List role-permission relations (GET /v1/access/role-permission) */
|
|
1221
|
-
listRolePermissions$Response(params, context) {
|
|
1222
|
-
return listRolePermissions(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1223
|
-
}
|
|
1224
|
-
/** List role-permission relations (GET /v1/access/role-permission) */
|
|
1225
|
-
listRolePermissions(params, context) {
|
|
1226
|
-
return this.listRolePermissions$Response(params, context).pipe(map((r) => r.body));
|
|
1227
|
-
}
|
|
1228
|
-
/** Update role-permission relation (PATCH /v1/access/role-permission/{id}) */
|
|
1229
|
-
patchRolePermissionByID$Response(params, context) {
|
|
1230
|
-
return patchRolePermissionByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1231
|
-
}
|
|
1232
|
-
/** Update role-permission relation (PATCH /v1/access/role-permission/{id}) */
|
|
1233
|
-
patchRolePermissionByID(params, context) {
|
|
1234
|
-
return this.patchRolePermissionByID$Response(params, context).pipe(map((r) => r.body));
|
|
1235
|
-
}
|
|
1236
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RolePermissionService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1237
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RolePermissionService, providedIn: 'root' });
|
|
1238
|
-
}
|
|
1239
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RolePermissionService, decorators: [{
|
|
1240
|
-
type: Injectable,
|
|
1241
|
-
args: [{ providedIn: 'root' }]
|
|
1242
|
-
}] });
|
|
1243
|
-
|
|
1244
|
-
/* eslint-disable */
|
|
1245
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1246
|
-
function createRoleUser(http, rootUrl, params, context) {
|
|
1247
|
-
const rb = new RequestBuilder(rootUrl, createRoleUser.PATH, 'post');
|
|
1248
|
-
if (params) {
|
|
1249
|
-
rb.body(params.body, 'application/json');
|
|
1250
|
-
}
|
|
1251
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1252
|
-
}
|
|
1253
|
-
createRoleUser.PATH = '/v1/access/role-user';
|
|
1254
|
-
|
|
1255
|
-
/* eslint-disable */
|
|
1256
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1257
|
-
function deleteRoleUserByID(http, rootUrl, params, context) {
|
|
1258
|
-
const rb = new RequestBuilder(rootUrl, deleteRoleUserByID.PATH, 'delete');
|
|
1259
|
-
if (params) {
|
|
1260
|
-
rb.path('id', params.id);
|
|
1261
|
-
}
|
|
1262
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1263
|
-
}
|
|
1264
|
-
deleteRoleUserByID.PATH = '/v1/access/role-user/{id}';
|
|
1265
|
-
|
|
1266
|
-
/* eslint-disable */
|
|
1267
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1268
|
-
function getRoleUserByID(http, rootUrl, params, context) {
|
|
1269
|
-
const rb = new RequestBuilder(rootUrl, getRoleUserByID.PATH, 'get');
|
|
1270
|
-
if (params) {
|
|
1271
|
-
rb.path('id', params.id);
|
|
1272
|
-
}
|
|
1273
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1274
|
-
}
|
|
1275
|
-
getRoleUserByID.PATH = '/v1/access/role-user/{id}';
|
|
1276
|
-
|
|
1277
|
-
/* eslint-disable */
|
|
1278
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1279
|
-
function listRoleUsers(http, rootUrl, params, context) {
|
|
1280
|
-
const rb = new RequestBuilder(rootUrl, listRoleUsers.PATH, 'get');
|
|
1281
|
-
if (params) {
|
|
1282
|
-
rb.query('page', params.page);
|
|
1283
|
-
rb.query('limit', params.limit);
|
|
1284
|
-
rb.query('sort', params.sort);
|
|
1285
|
-
rb.query('order', params.order);
|
|
1286
|
-
rb.query('role_id', params.role_id);
|
|
1287
|
-
rb.query('user_id', params.user_id);
|
|
1288
|
-
}
|
|
1289
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1290
|
-
}
|
|
1291
|
-
listRoleUsers.PATH = '/v1/access/role-user';
|
|
1292
|
-
|
|
1293
|
-
/* eslint-disable */
|
|
1294
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1295
|
-
function patchRoleUserByID(http, rootUrl, params, context) {
|
|
1296
|
-
const rb = new RequestBuilder(rootUrl, patchRoleUserByID.PATH, 'patch');
|
|
1297
|
-
if (params) {
|
|
1298
|
-
rb.path('id', params.id);
|
|
1299
|
-
rb.body(params.body, 'application/json');
|
|
1300
|
-
}
|
|
1301
|
-
return http.request(rb.build({ responseType: 'json', accept: 'application/json', context })).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1302
|
-
}
|
|
1303
|
-
patchRoleUserByID.PATH = '/v1/access/role-user/{id}';
|
|
1304
|
-
|
|
1305
|
-
/* eslint-disable */
|
|
1306
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1307
|
-
class RoleUserService extends BaseService {
|
|
1308
|
-
/** Create role-user relation (POST /v1/access/role-user) */
|
|
1309
|
-
createRoleUser$Response(params, context) {
|
|
1310
|
-
return createRoleUser(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1311
|
-
}
|
|
1312
|
-
/** Create role-user relation (POST /v1/access/role-user) */
|
|
1313
|
-
createRoleUser(params, context) {
|
|
1314
|
-
return this.createRoleUser$Response(params, context).pipe(map((r) => r.body));
|
|
1315
|
-
}
|
|
1316
|
-
/** Delete role-user relation (DELETE /v1/access/role-user/{id}) */
|
|
1317
|
-
deleteRoleUserByID$Response(params, context) {
|
|
1318
|
-
return deleteRoleUserByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1319
|
-
}
|
|
1320
|
-
/** Delete role-user relation (DELETE /v1/access/role-user/{id}) */
|
|
1321
|
-
deleteRoleUserByID(params, context) {
|
|
1322
|
-
return this.deleteRoleUserByID$Response(params, context).pipe(map((r) => r.body));
|
|
1323
|
-
}
|
|
1324
|
-
/** Get role-user detail (GET /v1/access/role-user/{id}) */
|
|
1325
|
-
getRoleUserByID$Response(params, context) {
|
|
1326
|
-
return getRoleUserByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1327
|
-
}
|
|
1328
|
-
/** Get role-user detail (GET /v1/access/role-user/{id}) */
|
|
1329
|
-
getRoleUserByID(params, context) {
|
|
1330
|
-
return this.getRoleUserByID$Response(params, context).pipe(map((r) => r.body));
|
|
1331
|
-
}
|
|
1332
|
-
/** List role-user relations (GET /v1/access/role-user) */
|
|
1333
|
-
listRoleUsers$Response(params, context) {
|
|
1334
|
-
return listRoleUsers(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1335
|
-
}
|
|
1336
|
-
/** List role-user relations (GET /v1/access/role-user) */
|
|
1337
|
-
listRoleUsers(params, context) {
|
|
1338
|
-
return this.listRoleUsers$Response(params, context).pipe(map((r) => r.body));
|
|
1339
|
-
}
|
|
1340
|
-
/** Update role-user relation (PATCH /v1/access/role-user/{id}) */
|
|
1341
|
-
patchRoleUserByID$Response(params, context) {
|
|
1342
|
-
return patchRoleUserByID(this.http, this.rootUrl, params, context).pipe(filter((r) => r instanceof HttpResponse), map((r) => r));
|
|
1343
|
-
}
|
|
1344
|
-
/** Update role-user relation (PATCH /v1/access/role-user/{id}) */
|
|
1345
|
-
patchRoleUserByID(params, context) {
|
|
1346
|
-
return this.patchRoleUserByID$Response(params, context).pipe(map((r) => r.body));
|
|
1347
|
-
}
|
|
1348
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RoleUserService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1349
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RoleUserService, providedIn: 'root' });
|
|
1350
|
-
}
|
|
1351
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.13", ngImport: i0, type: RoleUserService, decorators: [{
|
|
1352
|
-
type: Injectable,
|
|
1353
|
-
args: [{ providedIn: 'root' }]
|
|
1354
|
-
}] });
|
|
1355
|
-
|
|
1356
|
-
/* eslint-disable */
|
|
1357
|
-
/* Auto-generated by @ojiepermana/angular/generator/api. DO NOT EDIT. */
|
|
1358
|
-
|
|
1359
|
-
/**
|
|
1360
|
-
* Generated bundle index. Do not edit.
|
|
1361
|
-
*/
|
|
1362
|
-
|
|
1363
|
-
export { PermissionService, PermissionUserService, RolePermissionService, RoleService, RoleUserService, createPermission, createPermissionUser, createRole, createRolePermission, createRoleUser, deletePermissionByID, deletePermissionUserByID, deleteRoleByID, deleteRolePermissionByID, deleteRoleUserByID, getPermissionByID, getPermissionUserByID, getRoleByID, getRolePermissionByID, getRoleUserByID, listPermissionUsers, listPermissions, listRolePermissions, listRoleUsers, listRoles, patchPermissionByID, patchPermissionUserByID, patchRoleByID, patchRolePermissionByID, patchRoleUserByID, permissionOperationRules, permissionUserOperationRules, roleOperationRules, rolePermissionOperationRules, roleUserOperationRules };
|
|
1364
|
-
//# sourceMappingURL=edsis-angular-sdk-access.mjs.map
|