@volo/abp.ng.identity 7.3.2 → 7.4.0-rc.1
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/esm2022/config/components/identity-settings.component.mjs +3 -3
- package/esm2022/config/providers/setting-tab.provider.mjs +2 -2
- package/esm2022/lib/components/claim-modal/claim-modal.component.mjs +1 -1
- package/esm2022/lib/components/organization-units/organization-members/organization-members-modal-body.component.mjs +1 -11
- package/esm2022/lib/components/roles/move-all-users.component.mjs +67 -0
- package/esm2022/lib/components/roles/role-delete.component.mjs +81 -0
- package/esm2022/lib/components/roles/role-delete.validator.mjs +14 -0
- package/esm2022/lib/components/roles/role-edit.modal.mjs +2 -0
- package/esm2022/lib/components/roles/roles.component.mjs +53 -22
- package/esm2022/lib/components/security-logs/security-logs.component.mjs +3 -3
- package/esm2022/lib/components/users/users.component.mjs +2 -2
- package/esm2022/lib/defaults/organization-unit/default-organization-members-entity-actions.mjs +2 -1
- package/esm2022/lib/defaults/organization-unit/default-organization-roles-entity-actions.mjs +2 -1
- package/esm2022/lib/defaults/roles/default-roles-entity-actions.mjs +11 -2
- package/esm2022/lib/identity.module.mjs +15 -13
- package/esm2022/proxy/lib/proxy/identity/identity-claim-type.service.mjs +18 -12
- package/esm2022/proxy/lib/proxy/identity/identity-external-login.service.mjs +3 -3
- package/esm2022/proxy/lib/proxy/identity/identity-role.service.mjs +31 -20
- package/esm2022/proxy/lib/proxy/identity/identity-security-log.service.mjs +37 -11
- package/esm2022/proxy/lib/proxy/identity/identity-settings.service.mjs +13 -13
- package/esm2022/proxy/lib/proxy/identity/identity-user-lookup.service.mjs +16 -10
- package/esm2022/proxy/lib/proxy/identity/identity-user.service.mjs +71 -50
- package/esm2022/proxy/lib/proxy/identity/models.mjs +1 -1
- package/esm2022/proxy/lib/proxy/identity/organization-unit.service.mjs +86 -36
- package/esm2022/proxy/lib/proxy/users/models.mjs +1 -1
- package/fesm2022/volo-abp.ng.identity-config.mjs +3 -3
- package/fesm2022/volo-abp.ng.identity-config.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.identity-proxy.mjs +267 -147
- package/fesm2022/volo-abp.ng.identity-proxy.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.identity.mjs +246 -79
- package/fesm2022/volo-abp.ng.identity.mjs.map +1 -1
- package/lib/components/roles/move-all-users.component.d.ts +29 -0
- package/lib/components/roles/role-delete.component.d.ts +32 -0
- package/lib/components/roles/role-delete.validator.d.ts +2 -0
- package/lib/components/roles/role-edit.modal.d.ts +4 -0
- package/lib/components/roles/roles.component.d.ts +8 -4
- package/lib/identity.module.d.ts +27 -25
- package/package.json +7 -7
- package/proxy/lib/proxy/identity/identity-claim-type.service.d.ts +6 -6
- package/proxy/lib/proxy/identity/identity-external-login.service.d.ts +2 -2
- package/proxy/lib/proxy/identity/identity-role.service.d.ts +11 -10
- package/proxy/lib/proxy/identity/identity-security-log.service.d.ts +5 -5
- package/proxy/lib/proxy/identity/identity-settings.service.d.ts +7 -7
- package/proxy/lib/proxy/identity/identity-user-lookup.service.d.ts +5 -5
- package/proxy/lib/proxy/identity/identity-user.service.d.ts +25 -25
- package/proxy/lib/proxy/identity/models.d.ts +11 -9
- package/proxy/lib/proxy/identity/organization-unit.service.d.ts +17 -16
- package/proxy/lib/proxy/users/models.d.ts +1 -0
|
@@ -7,29 +7,35 @@ class IdentityClaimTypeService {
|
|
|
7
7
|
constructor(restService) {
|
|
8
8
|
this.restService = restService;
|
|
9
9
|
this.apiName = 'AbpIdentity';
|
|
10
|
-
this.create = (input) => this.restService.request({
|
|
10
|
+
this.create = (input, config) => this.restService.request({
|
|
11
11
|
method: 'POST',
|
|
12
12
|
url: '/api/identity/claim-types',
|
|
13
13
|
body: input,
|
|
14
|
-
}, { apiName: this.apiName });
|
|
15
|
-
this.delete = (id) => this.restService.request({
|
|
14
|
+
}, { apiName: this.apiName, ...config });
|
|
15
|
+
this.delete = (id, config) => this.restService.request({
|
|
16
16
|
method: 'DELETE',
|
|
17
17
|
url: `/api/identity/claim-types/${id}`,
|
|
18
|
-
}, { apiName: this.apiName });
|
|
19
|
-
this.get = (id) => this.restService.request({
|
|
18
|
+
}, { apiName: this.apiName, ...config });
|
|
19
|
+
this.get = (id, config) => this.restService.request({
|
|
20
20
|
method: 'GET',
|
|
21
21
|
url: `/api/identity/claim-types/${id}`,
|
|
22
|
-
}, { apiName: this.apiName });
|
|
23
|
-
this.getList = (input) => this.restService.request({
|
|
22
|
+
}, { apiName: this.apiName, ...config });
|
|
23
|
+
this.getList = (input, config) => this.restService.request({
|
|
24
24
|
method: 'GET',
|
|
25
25
|
url: '/api/identity/claim-types',
|
|
26
|
-
params: {
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
params: {
|
|
27
|
+
filter: input.filter,
|
|
28
|
+
sorting: input.sorting,
|
|
29
|
+
skipCount: input.skipCount,
|
|
30
|
+
maxResultCount: input.maxResultCount,
|
|
31
|
+
extraProperties: input.extraProperties,
|
|
32
|
+
},
|
|
33
|
+
}, { apiName: this.apiName, ...config });
|
|
34
|
+
this.update = (id, input, config) => this.restService.request({
|
|
29
35
|
method: 'PUT',
|
|
30
36
|
url: `/api/identity/claim-types/${id}`,
|
|
31
37
|
body: input,
|
|
32
|
-
}, { apiName: this.apiName });
|
|
38
|
+
}, { apiName: this.apiName, ...config });
|
|
33
39
|
}
|
|
34
40
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IdentityClaimTypeService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
35
41
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IdentityClaimTypeService, providedIn: 'root' }); }
|
|
@@ -54,10 +60,10 @@ class IdentityExternalLoginService {
|
|
|
54
60
|
constructor(restService) {
|
|
55
61
|
this.restService = restService;
|
|
56
62
|
this.apiName = 'AbpIdentity';
|
|
57
|
-
this.createOrUpdate = () => this.restService.request({
|
|
63
|
+
this.createOrUpdate = (config) => this.restService.request({
|
|
58
64
|
method: 'POST',
|
|
59
65
|
url: '/api/identity/external-login',
|
|
60
|
-
}, { apiName: this.apiName });
|
|
66
|
+
}, { apiName: this.apiName, ...config });
|
|
61
67
|
}
|
|
62
68
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IdentityExternalLoginService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
63
69
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IdentityExternalLoginService, providedIn: 'root' }); }
|
|
@@ -73,46 +79,57 @@ class IdentityRoleService {
|
|
|
73
79
|
constructor(restService) {
|
|
74
80
|
this.restService = restService;
|
|
75
81
|
this.apiName = 'AbpIdentity';
|
|
76
|
-
this.create = (input) => this.restService.request({
|
|
82
|
+
this.create = (input, config) => this.restService.request({
|
|
77
83
|
method: 'POST',
|
|
78
84
|
url: '/api/identity/roles',
|
|
79
85
|
body: input,
|
|
80
|
-
}, { apiName: this.apiName });
|
|
81
|
-
this.delete = (id) => this.restService.request({
|
|
86
|
+
}, { apiName: this.apiName, ...config });
|
|
87
|
+
this.delete = (id, config) => this.restService.request({
|
|
82
88
|
method: 'DELETE',
|
|
83
89
|
url: `/api/identity/roles/${id}`,
|
|
84
|
-
}, { apiName: this.apiName });
|
|
85
|
-
this.get = (id) => this.restService.request({
|
|
90
|
+
}, { apiName: this.apiName, ...config });
|
|
91
|
+
this.get = (id, config) => this.restService.request({
|
|
86
92
|
method: 'GET',
|
|
87
93
|
url: `/api/identity/roles/${id}`,
|
|
88
|
-
}, { apiName: this.apiName });
|
|
89
|
-
this.getAllClaimTypes = () => this.restService.request({
|
|
94
|
+
}, { apiName: this.apiName, ...config });
|
|
95
|
+
this.getAllClaimTypes = (config) => this.restService.request({
|
|
90
96
|
method: 'GET',
|
|
91
97
|
url: '/api/identity/roles/all-claim-types',
|
|
92
|
-
}, { apiName: this.apiName });
|
|
93
|
-
this.getAllList = () => this.restService.request({
|
|
98
|
+
}, { apiName: this.apiName, ...config });
|
|
99
|
+
this.getAllList = (config) => this.restService.request({
|
|
94
100
|
method: 'GET',
|
|
95
101
|
url: '/api/identity/roles/all',
|
|
96
|
-
}, { apiName: this.apiName });
|
|
97
|
-
this.getClaims = (id) => this.restService.request({
|
|
102
|
+
}, { apiName: this.apiName, ...config });
|
|
103
|
+
this.getClaims = (id, config) => this.restService.request({
|
|
98
104
|
method: 'GET',
|
|
99
105
|
url: `/api/identity/roles/${id}/claims`,
|
|
100
|
-
}, { apiName: this.apiName });
|
|
101
|
-
this.getList = (input) => this.restService.request({
|
|
106
|
+
}, { apiName: this.apiName, ...config });
|
|
107
|
+
this.getList = (input, config) => this.restService.request({
|
|
102
108
|
method: 'GET',
|
|
103
109
|
url: '/api/identity/roles',
|
|
104
|
-
params: {
|
|
105
|
-
|
|
106
|
-
|
|
110
|
+
params: {
|
|
111
|
+
filter: input.filter,
|
|
112
|
+
sorting: input.sorting,
|
|
113
|
+
skipCount: input.skipCount,
|
|
114
|
+
maxResultCount: input.maxResultCount,
|
|
115
|
+
extraProperties: input.extraProperties,
|
|
116
|
+
},
|
|
117
|
+
}, { apiName: this.apiName, ...config });
|
|
118
|
+
this.moveAllUsers = (id, roleId, config) => this.restService.request({
|
|
119
|
+
method: 'PUT',
|
|
120
|
+
url: `/api/identity/roles/${id}/move-all-users`,
|
|
121
|
+
params: { roleId },
|
|
122
|
+
}, { apiName: this.apiName, ...config });
|
|
123
|
+
this.update = (id, input, config) => this.restService.request({
|
|
107
124
|
method: 'PUT',
|
|
108
125
|
url: `/api/identity/roles/${id}`,
|
|
109
126
|
body: input,
|
|
110
|
-
}, { apiName: this.apiName });
|
|
111
|
-
this.updateClaims = (id, input) => this.restService.request({
|
|
127
|
+
}, { apiName: this.apiName, ...config });
|
|
128
|
+
this.updateClaims = (id, input, config) => this.restService.request({
|
|
112
129
|
method: 'PUT',
|
|
113
130
|
url: `/api/identity/roles/${id}/claims`,
|
|
114
131
|
body: input,
|
|
115
|
-
}, { apiName: this.apiName });
|
|
132
|
+
}, { apiName: this.apiName, ...config });
|
|
116
133
|
}
|
|
117
134
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IdentityRoleService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
118
135
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IdentityRoleService, providedIn: 'root' }); }
|
|
@@ -128,24 +145,50 @@ class IdentitySecurityLogService {
|
|
|
128
145
|
constructor(restService) {
|
|
129
146
|
this.restService = restService;
|
|
130
147
|
this.apiName = 'AbpIdentity';
|
|
131
|
-
this.get = (id) => this.restService.request({
|
|
148
|
+
this.get = (id, config) => this.restService.request({
|
|
132
149
|
method: 'GET',
|
|
133
150
|
url: `/api/identity/security-logs/${id}`,
|
|
134
|
-
}, { apiName: this.apiName });
|
|
135
|
-
this.getList = (input) => this.restService.request({
|
|
151
|
+
}, { apiName: this.apiName, ...config });
|
|
152
|
+
this.getList = (input, config) => this.restService.request({
|
|
136
153
|
method: 'GET',
|
|
137
154
|
url: '/api/identity/security-logs',
|
|
138
|
-
params: {
|
|
139
|
-
|
|
140
|
-
|
|
155
|
+
params: {
|
|
156
|
+
startTime: input.startTime,
|
|
157
|
+
endTime: input.endTime,
|
|
158
|
+
applicationName: input.applicationName,
|
|
159
|
+
identity: input.identity,
|
|
160
|
+
action: input.action,
|
|
161
|
+
userName: input.userName,
|
|
162
|
+
clientId: input.clientId,
|
|
163
|
+
correlationId: input.correlationId,
|
|
164
|
+
sorting: input.sorting,
|
|
165
|
+
skipCount: input.skipCount,
|
|
166
|
+
maxResultCount: input.maxResultCount,
|
|
167
|
+
extraProperties: input.extraProperties,
|
|
168
|
+
},
|
|
169
|
+
}, { apiName: this.apiName, ...config });
|
|
170
|
+
this.getMy = (id, config) => this.restService.request({
|
|
141
171
|
method: 'GET',
|
|
142
172
|
url: `/api/identity/security-logs/my/${id}`,
|
|
143
|
-
}, { apiName: this.apiName });
|
|
144
|
-
this.getMyList = (input) => this.restService.request({
|
|
173
|
+
}, { apiName: this.apiName, ...config });
|
|
174
|
+
this.getMyList = (input, config) => this.restService.request({
|
|
145
175
|
method: 'GET',
|
|
146
176
|
url: '/api/identity/security-logs/my',
|
|
147
|
-
params: {
|
|
148
|
-
|
|
177
|
+
params: {
|
|
178
|
+
startTime: input.startTime,
|
|
179
|
+
endTime: input.endTime,
|
|
180
|
+
applicationName: input.applicationName,
|
|
181
|
+
identity: input.identity,
|
|
182
|
+
action: input.action,
|
|
183
|
+
userName: input.userName,
|
|
184
|
+
clientId: input.clientId,
|
|
185
|
+
correlationId: input.correlationId,
|
|
186
|
+
sorting: input.sorting,
|
|
187
|
+
skipCount: input.skipCount,
|
|
188
|
+
maxResultCount: input.maxResultCount,
|
|
189
|
+
extraProperties: input.extraProperties,
|
|
190
|
+
},
|
|
191
|
+
}, { apiName: this.apiName, ...config });
|
|
149
192
|
}
|
|
150
193
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IdentitySecurityLogService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
151
194
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IdentitySecurityLogService, providedIn: 'root' }); }
|
|
@@ -161,33 +204,33 @@ class IdentitySettingsService {
|
|
|
161
204
|
constructor(restService) {
|
|
162
205
|
this.restService = restService;
|
|
163
206
|
this.apiName = 'AbpIdentity';
|
|
164
|
-
this.get = () => this.restService.request({
|
|
207
|
+
this.get = (config) => this.restService.request({
|
|
165
208
|
method: 'GET',
|
|
166
209
|
url: '/api/identity/settings',
|
|
167
|
-
}, { apiName: this.apiName });
|
|
168
|
-
this.getLdap = () => this.restService.request({
|
|
210
|
+
}, { apiName: this.apiName, ...config });
|
|
211
|
+
this.getLdap = (config) => this.restService.request({
|
|
169
212
|
method: 'GET',
|
|
170
213
|
url: '/api/identity/settings/ldap',
|
|
171
|
-
}, { apiName: this.apiName });
|
|
172
|
-
this.getOAuth = () => this.restService.request({
|
|
214
|
+
}, { apiName: this.apiName, ...config });
|
|
215
|
+
this.getOAuth = (config) => this.restService.request({
|
|
173
216
|
method: 'GET',
|
|
174
217
|
url: '/api/identity/settings/oauth',
|
|
175
|
-
}, { apiName: this.apiName });
|
|
176
|
-
this.update = (input) => this.restService.request({
|
|
218
|
+
}, { apiName: this.apiName, ...config });
|
|
219
|
+
this.update = (input, config) => this.restService.request({
|
|
177
220
|
method: 'PUT',
|
|
178
221
|
url: '/api/identity/settings',
|
|
179
222
|
body: input,
|
|
180
|
-
}, { apiName: this.apiName });
|
|
181
|
-
this.updateLdap = (input) => this.restService.request({
|
|
223
|
+
}, { apiName: this.apiName, ...config });
|
|
224
|
+
this.updateLdap = (input, config) => this.restService.request({
|
|
182
225
|
method: 'PUT',
|
|
183
226
|
url: '/api/identity/settings/ldap',
|
|
184
227
|
body: input,
|
|
185
|
-
}, { apiName: this.apiName });
|
|
186
|
-
this.updateOAuth = (input) => this.restService.request({
|
|
228
|
+
}, { apiName: this.apiName, ...config });
|
|
229
|
+
this.updateOAuth = (input, config) => this.restService.request({
|
|
187
230
|
method: 'PUT',
|
|
188
231
|
url: '/api/identity/settings/oauth',
|
|
189
232
|
body: input,
|
|
190
|
-
}, { apiName: this.apiName });
|
|
233
|
+
}, { apiName: this.apiName, ...config });
|
|
191
234
|
}
|
|
192
235
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IdentitySettingsService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
193
236
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IdentitySettingsService, providedIn: 'root' }); }
|
|
@@ -203,24 +246,30 @@ class IdentityUserLookupService {
|
|
|
203
246
|
constructor(restService) {
|
|
204
247
|
this.restService = restService;
|
|
205
248
|
this.apiName = 'AbpIdentity';
|
|
206
|
-
this.findById = (id) => this.restService.request({
|
|
249
|
+
this.findById = (id, config) => this.restService.request({
|
|
207
250
|
method: 'GET',
|
|
208
251
|
url: `/api/identity/users/lookup/${id}`,
|
|
209
|
-
}, { apiName: this.apiName });
|
|
210
|
-
this.findByUserName = (userName) => this.restService.request({
|
|
252
|
+
}, { apiName: this.apiName, ...config });
|
|
253
|
+
this.findByUserName = (userName, config) => this.restService.request({
|
|
211
254
|
method: 'GET',
|
|
212
255
|
url: `/api/identity/users/lookup/by-username/${userName}`,
|
|
213
|
-
}, { apiName: this.apiName });
|
|
214
|
-
this.getCount = (input) => this.restService.request({
|
|
256
|
+
}, { apiName: this.apiName, ...config });
|
|
257
|
+
this.getCount = (input, config) => this.restService.request({
|
|
215
258
|
method: 'GET',
|
|
216
259
|
url: '/api/identity/users/lookup/count',
|
|
217
260
|
params: { filter: input.filter },
|
|
218
|
-
}, { apiName: this.apiName });
|
|
219
|
-
this.search = (input) => this.restService.request({
|
|
261
|
+
}, { apiName: this.apiName, ...config });
|
|
262
|
+
this.search = (input, config) => this.restService.request({
|
|
220
263
|
method: 'GET',
|
|
221
264
|
url: '/api/identity/users/lookup/search',
|
|
222
|
-
params: {
|
|
223
|
-
|
|
265
|
+
params: {
|
|
266
|
+
sorting: input.sorting,
|
|
267
|
+
filter: input.filter,
|
|
268
|
+
skipCount: input.skipCount,
|
|
269
|
+
maxResultCount: input.maxResultCount,
|
|
270
|
+
extraProperties: input.extraProperties,
|
|
271
|
+
},
|
|
272
|
+
}, { apiName: this.apiName, ...config });
|
|
224
273
|
}
|
|
225
274
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IdentityUserLookupService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
226
275
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IdentityUserLookupService, providedIn: 'root' }); }
|
|
@@ -236,109 +285,130 @@ class IdentityUserService {
|
|
|
236
285
|
constructor(restService) {
|
|
237
286
|
this.restService = restService;
|
|
238
287
|
this.apiName = 'AbpIdentity';
|
|
239
|
-
this.create = (input) => this.restService.request({
|
|
288
|
+
this.create = (input, config) => this.restService.request({
|
|
240
289
|
method: 'POST',
|
|
241
290
|
url: '/api/identity/users',
|
|
242
291
|
body: input,
|
|
243
|
-
}, { apiName: this.apiName });
|
|
244
|
-
this.delete = (id) => this.restService.request({
|
|
292
|
+
}, { apiName: this.apiName, ...config });
|
|
293
|
+
this.delete = (id, config) => this.restService.request({
|
|
245
294
|
method: 'DELETE',
|
|
246
295
|
url: `/api/identity/users/${id}`,
|
|
247
|
-
}, { apiName: this.apiName });
|
|
248
|
-
this.findByEmail = (email) => this.restService.request({
|
|
296
|
+
}, { apiName: this.apiName, ...config });
|
|
297
|
+
this.findByEmail = (email, config) => this.restService.request({
|
|
249
298
|
method: 'GET',
|
|
250
299
|
url: `/api/identity/users/by-email/${email}`,
|
|
251
|
-
}, { apiName: this.apiName });
|
|
252
|
-
this.findByUsername = (username) => this.restService.request({
|
|
300
|
+
}, { apiName: this.apiName, ...config });
|
|
301
|
+
this.findByUsername = (username, config) => this.restService.request({
|
|
253
302
|
method: 'GET',
|
|
254
303
|
url: `/api/identity/users/by-username/${username}`,
|
|
255
|
-
}, { apiName: this.apiName });
|
|
256
|
-
this.get = (id) => this.restService.request({
|
|
304
|
+
}, { apiName: this.apiName, ...config });
|
|
305
|
+
this.get = (id, config) => this.restService.request({
|
|
257
306
|
method: 'GET',
|
|
258
307
|
url: `/api/identity/users/${id}`,
|
|
259
|
-
}, { apiName: this.apiName });
|
|
260
|
-
this.getAllClaimTypes = () => this.restService.request({
|
|
308
|
+
}, { apiName: this.apiName, ...config });
|
|
309
|
+
this.getAllClaimTypes = (config) => this.restService.request({
|
|
261
310
|
method: 'GET',
|
|
262
311
|
url: '/api/identity/users/all-claim-types',
|
|
263
|
-
}, { apiName: this.apiName });
|
|
264
|
-
this.getAssignableRoles = () => this.restService.request({
|
|
312
|
+
}, { apiName: this.apiName, ...config });
|
|
313
|
+
this.getAssignableRoles = (config) => this.restService.request({
|
|
265
314
|
method: 'GET',
|
|
266
315
|
url: '/api/identity/users/assignable-roles',
|
|
267
|
-
}, { apiName: this.apiName });
|
|
268
|
-
this.getAvailableOrganizationUnits = () => this.restService.request({
|
|
316
|
+
}, { apiName: this.apiName, ...config });
|
|
317
|
+
this.getAvailableOrganizationUnits = (config) => this.restService.request({
|
|
269
318
|
method: 'GET',
|
|
270
319
|
url: '/api/identity/users/available-organization-units',
|
|
271
|
-
}, { apiName: this.apiName });
|
|
272
|
-
this.getClaims = (id) => this.restService.request({
|
|
320
|
+
}, { apiName: this.apiName, ...config });
|
|
321
|
+
this.getClaims = (id, config) => this.restService.request({
|
|
273
322
|
method: 'GET',
|
|
274
323
|
url: `/api/identity/users/${id}/claims`,
|
|
275
|
-
}, { apiName: this.apiName });
|
|
276
|
-
this.getExternalLoginProviders = () => this.restService.request({
|
|
324
|
+
}, { apiName: this.apiName, ...config });
|
|
325
|
+
this.getExternalLoginProviders = (config) => this.restService.request({
|
|
277
326
|
method: 'GET',
|
|
278
327
|
url: '/api/identity/users/external-login-Providers',
|
|
279
|
-
}, { apiName: this.apiName });
|
|
280
|
-
this.getList = (input) => this.restService.request({
|
|
328
|
+
}, { apiName: this.apiName, ...config });
|
|
329
|
+
this.getList = (input, config) => this.restService.request({
|
|
281
330
|
method: 'GET',
|
|
282
331
|
url: '/api/identity/users',
|
|
283
|
-
params: {
|
|
284
|
-
|
|
285
|
-
|
|
332
|
+
params: {
|
|
333
|
+
filter: input.filter,
|
|
334
|
+
roleId: input.roleId,
|
|
335
|
+
organizationUnitId: input.organizationUnitId,
|
|
336
|
+
userName: input.userName,
|
|
337
|
+
phoneNumber: input.phoneNumber,
|
|
338
|
+
emailAddress: input.emailAddress,
|
|
339
|
+
name: input.name,
|
|
340
|
+
surname: input.surname,
|
|
341
|
+
isLockedOut: input.isLockedOut,
|
|
342
|
+
notActive: input.notActive,
|
|
343
|
+
emailConfirmed: input.emailConfirmed,
|
|
344
|
+
isExternal: input.isExternal,
|
|
345
|
+
maxCreationTime: input.maxCreationTime,
|
|
346
|
+
minCreationTime: input.minCreationTime,
|
|
347
|
+
maxModifitionTime: input.maxModifitionTime,
|
|
348
|
+
minModifitionTime: input.minModifitionTime,
|
|
349
|
+
sorting: input.sorting,
|
|
350
|
+
skipCount: input.skipCount,
|
|
351
|
+
maxResultCount: input.maxResultCount,
|
|
352
|
+
extraProperties: input.extraProperties,
|
|
353
|
+
},
|
|
354
|
+
}, { apiName: this.apiName, ...config });
|
|
355
|
+
this.getOrganizationUnitLookup = (config) => this.restService.request({
|
|
286
356
|
method: 'GET',
|
|
287
357
|
url: '/api/identity/users/lookup/organization-units',
|
|
288
|
-
}, { apiName: this.apiName });
|
|
289
|
-
this.getOrganizationUnits = (id) => this.restService.request({
|
|
358
|
+
}, { apiName: this.apiName, ...config });
|
|
359
|
+
this.getOrganizationUnits = (id, config) => this.restService.request({
|
|
290
360
|
method: 'GET',
|
|
291
361
|
url: `/api/identity/users/${id}/organization-units`,
|
|
292
|
-
}, { apiName: this.apiName });
|
|
293
|
-
this.getRoleLookup = () => this.restService.request({
|
|
362
|
+
}, { apiName: this.apiName, ...config });
|
|
363
|
+
this.getRoleLookup = (config) => this.restService.request({
|
|
294
364
|
method: 'GET',
|
|
295
365
|
url: '/api/identity/users/lookup/roles',
|
|
296
|
-
}, { apiName: this.apiName });
|
|
297
|
-
this.getRoles = (id) => this.restService.request({
|
|
366
|
+
}, { apiName: this.apiName, ...config });
|
|
367
|
+
this.getRoles = (id, config) => this.restService.request({
|
|
298
368
|
method: 'GET',
|
|
299
369
|
url: `/api/identity/users/${id}/roles`,
|
|
300
|
-
}, { apiName: this.apiName });
|
|
301
|
-
this.getTwoFactorEnabled = (id) => this.restService.request({
|
|
370
|
+
}, { apiName: this.apiName, ...config });
|
|
371
|
+
this.getTwoFactorEnabled = (id, config) => this.restService.request({
|
|
302
372
|
method: 'GET',
|
|
303
373
|
url: `/api/identity/users/${id}/two-factor-enabled`,
|
|
304
|
-
}, { apiName: this.apiName });
|
|
305
|
-
this.importExternalUser = (input) => this.restService.request({
|
|
374
|
+
}, { apiName: this.apiName, ...config });
|
|
375
|
+
this.importExternalUser = (input, config) => this.restService.request({
|
|
306
376
|
method: 'POST',
|
|
307
377
|
url: '/api/identity/users/import-external-user',
|
|
308
378
|
body: input,
|
|
309
|
-
}, { apiName: this.apiName });
|
|
310
|
-
this.lock = (id, lockoutEnd) => this.restService.request({
|
|
379
|
+
}, { apiName: this.apiName, ...config });
|
|
380
|
+
this.lock = (id, lockoutEnd, config) => this.restService.request({
|
|
311
381
|
method: 'PUT',
|
|
312
382
|
url: `/api/identity/users/${id}/lock/${lockoutEnd}`,
|
|
313
|
-
}, { apiName: this.apiName });
|
|
314
|
-
this.setTwoFactorEnabled = (id, enabled) => this.restService.request({
|
|
383
|
+
}, { apiName: this.apiName, ...config });
|
|
384
|
+
this.setTwoFactorEnabled = (id, enabled, config) => this.restService.request({
|
|
315
385
|
method: 'PUT',
|
|
316
386
|
url: `/api/identity/users/${id}/two-factor/${enabled}`,
|
|
317
|
-
}, { apiName: this.apiName });
|
|
318
|
-
this.unlock = (id) => this.restService.request({
|
|
387
|
+
}, { apiName: this.apiName, ...config });
|
|
388
|
+
this.unlock = (id, config) => this.restService.request({
|
|
319
389
|
method: 'PUT',
|
|
320
390
|
url: `/api/identity/users/${id}/unlock`,
|
|
321
|
-
}, { apiName: this.apiName });
|
|
322
|
-
this.update = (id, input) => this.restService.request({
|
|
391
|
+
}, { apiName: this.apiName, ...config });
|
|
392
|
+
this.update = (id, input, config) => this.restService.request({
|
|
323
393
|
method: 'PUT',
|
|
324
394
|
url: `/api/identity/users/${id}`,
|
|
325
395
|
body: input,
|
|
326
|
-
}, { apiName: this.apiName });
|
|
327
|
-
this.updateClaims = (id, input) => this.restService.request({
|
|
396
|
+
}, { apiName: this.apiName, ...config });
|
|
397
|
+
this.updateClaims = (id, input, config) => this.restService.request({
|
|
328
398
|
method: 'PUT',
|
|
329
399
|
url: `/api/identity/users/${id}/claims`,
|
|
330
400
|
body: input,
|
|
331
|
-
}, { apiName: this.apiName });
|
|
332
|
-
this.updatePassword = (id, input) => this.restService.request({
|
|
401
|
+
}, { apiName: this.apiName, ...config });
|
|
402
|
+
this.updatePassword = (id, input, config) => this.restService.request({
|
|
333
403
|
method: 'PUT',
|
|
334
404
|
url: `/api/identity/users/${id}/change-password`,
|
|
335
405
|
body: input,
|
|
336
|
-
}, { apiName: this.apiName });
|
|
337
|
-
this.updateRoles = (id, input) => this.restService.request({
|
|
406
|
+
}, { apiName: this.apiName, ...config });
|
|
407
|
+
this.updateRoles = (id, input, config) => this.restService.request({
|
|
338
408
|
method: 'PUT',
|
|
339
409
|
url: `/api/identity/users/${id}/roles`,
|
|
340
410
|
body: input,
|
|
341
|
-
}, { apiName: this.apiName });
|
|
411
|
+
}, { apiName: this.apiName, ...config });
|
|
342
412
|
}
|
|
343
413
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IdentityUserService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
344
414
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: IdentityUserService, providedIn: 'root' }); }
|
|
@@ -354,77 +424,127 @@ class OrganizationUnitService {
|
|
|
354
424
|
constructor(restService) {
|
|
355
425
|
this.restService = restService;
|
|
356
426
|
this.apiName = 'AbpIdentity';
|
|
357
|
-
this.addMembers = (id, input) => this.restService.request({
|
|
427
|
+
this.addMembers = (id, input, config) => this.restService.request({
|
|
358
428
|
method: 'PUT',
|
|
359
429
|
url: `/api/identity/organization-units/${id}/members`,
|
|
360
430
|
body: input,
|
|
361
|
-
}, { apiName: this.apiName });
|
|
362
|
-
this.addRoles = (id, input) => this.restService.request({
|
|
431
|
+
}, { apiName: this.apiName, ...config });
|
|
432
|
+
this.addRoles = (id, input, config) => this.restService.request({
|
|
363
433
|
method: 'PUT',
|
|
364
434
|
url: `/api/identity/organization-units/${id}/roles`,
|
|
365
435
|
body: input,
|
|
366
|
-
}, { apiName: this.apiName });
|
|
367
|
-
this.create = (input) => this.restService.request({
|
|
436
|
+
}, { apiName: this.apiName, ...config });
|
|
437
|
+
this.create = (input, config) => this.restService.request({
|
|
368
438
|
method: 'POST',
|
|
369
439
|
url: '/api/identity/organization-units',
|
|
370
440
|
body: input,
|
|
371
|
-
}, { apiName: this.apiName });
|
|
372
|
-
this.delete = (id) => this.restService.request({
|
|
441
|
+
}, { apiName: this.apiName, ...config });
|
|
442
|
+
this.delete = (id, config) => this.restService.request({
|
|
373
443
|
method: 'DELETE',
|
|
374
444
|
url: '/api/identity/organization-units',
|
|
375
445
|
params: { id },
|
|
376
|
-
}, { apiName: this.apiName });
|
|
377
|
-
this.get = (id) => this.restService.request({
|
|
446
|
+
}, { apiName: this.apiName, ...config });
|
|
447
|
+
this.get = (id, config) => this.restService.request({
|
|
378
448
|
method: 'GET',
|
|
379
449
|
url: `/api/identity/organization-units/${id}`,
|
|
380
|
-
}, { apiName: this.apiName });
|
|
381
|
-
this.getAvailableRoles = (input) => this.restService.request({
|
|
450
|
+
}, { apiName: this.apiName, ...config });
|
|
451
|
+
this.getAvailableRoles = (input, config) => this.restService.request({
|
|
382
452
|
method: 'GET',
|
|
383
453
|
url: '/api/identity/organization-units/available-roles',
|
|
384
|
-
params: {
|
|
385
|
-
|
|
386
|
-
|
|
454
|
+
params: {
|
|
455
|
+
filter: input.filter,
|
|
456
|
+
id: input.id,
|
|
457
|
+
sorting: input.sorting,
|
|
458
|
+
skipCount: input.skipCount,
|
|
459
|
+
maxResultCount: input.maxResultCount,
|
|
460
|
+
extraProperties: input.extraProperties,
|
|
461
|
+
},
|
|
462
|
+
}, { apiName: this.apiName, ...config });
|
|
463
|
+
this.getAvailableUsers = (input, config) => this.restService.request({
|
|
387
464
|
method: 'GET',
|
|
388
465
|
url: '/api/identity/organization-units/available-users',
|
|
389
|
-
params: {
|
|
390
|
-
|
|
391
|
-
|
|
466
|
+
params: {
|
|
467
|
+
filter: input.filter,
|
|
468
|
+
id: input.id,
|
|
469
|
+
sorting: input.sorting,
|
|
470
|
+
skipCount: input.skipCount,
|
|
471
|
+
maxResultCount: input.maxResultCount,
|
|
472
|
+
extraProperties: input.extraProperties,
|
|
473
|
+
},
|
|
474
|
+
}, { apiName: this.apiName, ...config });
|
|
475
|
+
this.getList = (input, config) => this.restService.request({
|
|
392
476
|
method: 'GET',
|
|
393
477
|
url: '/api/identity/organization-units',
|
|
394
|
-
params: {
|
|
395
|
-
|
|
396
|
-
|
|
478
|
+
params: {
|
|
479
|
+
filter: input.filter,
|
|
480
|
+
sorting: input.sorting,
|
|
481
|
+
skipCount: input.skipCount,
|
|
482
|
+
maxResultCount: input.maxResultCount,
|
|
483
|
+
extraProperties: input.extraProperties,
|
|
484
|
+
},
|
|
485
|
+
}, { apiName: this.apiName, ...config });
|
|
486
|
+
this.getListAll = (config) => this.restService.request({
|
|
397
487
|
method: 'GET',
|
|
398
488
|
url: '/api/identity/organization-units/all',
|
|
399
|
-
}, { apiName: this.apiName });
|
|
400
|
-
this.getMembers = (id, input) => this.restService.request({
|
|
489
|
+
}, { apiName: this.apiName, ...config });
|
|
490
|
+
this.getMembers = (id, input, config) => this.restService.request({
|
|
401
491
|
method: 'GET',
|
|
402
492
|
url: `/api/identity/organization-units/${id}/members`,
|
|
403
|
-
params: {
|
|
404
|
-
|
|
405
|
-
|
|
493
|
+
params: {
|
|
494
|
+
filter: input.filter,
|
|
495
|
+
roleId: input.roleId,
|
|
496
|
+
organizationUnitId: input.organizationUnitId,
|
|
497
|
+
userName: input.userName,
|
|
498
|
+
phoneNumber: input.phoneNumber,
|
|
499
|
+
emailAddress: input.emailAddress,
|
|
500
|
+
name: input.name,
|
|
501
|
+
surname: input.surname,
|
|
502
|
+
isLockedOut: input.isLockedOut,
|
|
503
|
+
notActive: input.notActive,
|
|
504
|
+
emailConfirmed: input.emailConfirmed,
|
|
505
|
+
isExternal: input.isExternal,
|
|
506
|
+
maxCreationTime: input.maxCreationTime,
|
|
507
|
+
minCreationTime: input.minCreationTime,
|
|
508
|
+
maxModifitionTime: input.maxModifitionTime,
|
|
509
|
+
minModifitionTime: input.minModifitionTime,
|
|
510
|
+
sorting: input.sorting,
|
|
511
|
+
skipCount: input.skipCount,
|
|
512
|
+
maxResultCount: input.maxResultCount,
|
|
513
|
+
extraProperties: input.extraProperties,
|
|
514
|
+
},
|
|
515
|
+
}, { apiName: this.apiName, ...config });
|
|
516
|
+
this.getRoles = (id, input, config) => this.restService.request({
|
|
406
517
|
method: 'GET',
|
|
407
518
|
url: `/api/identity/organization-units/${id}/roles`,
|
|
408
|
-
params: {
|
|
409
|
-
|
|
410
|
-
|
|
519
|
+
params: {
|
|
520
|
+
sorting: input.sorting,
|
|
521
|
+
skipCount: input.skipCount,
|
|
522
|
+
maxResultCount: input.maxResultCount,
|
|
523
|
+
},
|
|
524
|
+
}, { apiName: this.apiName, ...config });
|
|
525
|
+
this.move = (id, input, config) => this.restService.request({
|
|
411
526
|
method: 'PUT',
|
|
412
527
|
url: `/api/identity/organization-units/${id}/move`,
|
|
413
528
|
body: input,
|
|
414
|
-
}, { apiName: this.apiName });
|
|
415
|
-
this.
|
|
529
|
+
}, { apiName: this.apiName, ...config });
|
|
530
|
+
this.moveAllUsers = (id, organizationId, config) => this.restService.request({
|
|
531
|
+
method: 'PUT',
|
|
532
|
+
url: `/api/identity/organization-units/${id}/move-all-users`,
|
|
533
|
+
params: { organizationId },
|
|
534
|
+
}, { apiName: this.apiName, ...config });
|
|
535
|
+
this.removeMember = (id, memberId, config) => this.restService.request({
|
|
416
536
|
method: 'DELETE',
|
|
417
537
|
url: `/api/identity/organization-units/${id}/members/${memberId}`,
|
|
418
|
-
}, { apiName: this.apiName });
|
|
419
|
-
this.removeRole = (id, roleId) => this.restService.request({
|
|
538
|
+
}, { apiName: this.apiName, ...config });
|
|
539
|
+
this.removeRole = (id, roleId, config) => this.restService.request({
|
|
420
540
|
method: 'DELETE',
|
|
421
541
|
url: `/api/identity/organization-units/${id}/roles/${roleId}`,
|
|
422
|
-
}, { apiName: this.apiName });
|
|
423
|
-
this.update = (id, input) => this.restService.request({
|
|
542
|
+
}, { apiName: this.apiName, ...config });
|
|
543
|
+
this.update = (id, input, config) => this.restService.request({
|
|
424
544
|
method: 'PUT',
|
|
425
545
|
url: `/api/identity/organization-units/${id}`,
|
|
426
546
|
body: input,
|
|
427
|
-
}, { apiName: this.apiName });
|
|
547
|
+
}, { apiName: this.apiName, ...config });
|
|
428
548
|
}
|
|
429
549
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OrganizationUnitService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
430
550
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.6", ngImport: i0, type: OrganizationUnitService, providedIn: 'root' }); }
|