@volo/abp.ng.identity 9.3.5 → 10.0.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.
@@ -1,7 +1,6 @@
1
- import * as i1 from '@abp/ng.core';
2
- import { mapEnumToOptions } from '@abp/ng.core';
1
+ import { mapEnumToOptions, RestService } from '@abp/ng.core';
3
2
  import * as i0 from '@angular/core';
4
- import { Injectable } from '@angular/core';
3
+ import { inject, Injectable } from '@angular/core';
5
4
 
6
5
  var IdentityProPreventConcurrentLoginBehaviour;
7
6
  (function (IdentityProPreventConcurrentLoginBehaviour) {
@@ -18,8 +17,8 @@ var index = /*#__PURE__*/Object.freeze({
18
17
  });
19
18
 
20
19
  class IdentityClaimTypeService {
21
- constructor(restService) {
22
- this.restService = restService;
20
+ constructor() {
21
+ this.restService = inject(RestService);
23
22
  this.apiName = 'AbpIdentity';
24
23
  this.create = (input, config) => this.restService.request({
25
24
  method: 'POST',
@@ -51,7 +50,7 @@ class IdentityClaimTypeService {
51
50
  body: input,
52
51
  }, { apiName: this.apiName, ...config });
53
52
  }
54
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityClaimTypeService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
53
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityClaimTypeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
55
54
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityClaimTypeService, providedIn: 'root' }); }
56
55
  }
57
56
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityClaimTypeService, decorators: [{
@@ -59,7 +58,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
59
58
  args: [{
60
59
  providedIn: 'root',
61
60
  }]
62
- }], ctorParameters: () => [{ type: i1.RestService }] });
61
+ }] });
63
62
 
64
63
  var IdentityClaimValueType;
65
64
  (function (IdentityClaimValueType) {
@@ -71,15 +70,15 @@ var IdentityClaimValueType;
71
70
  const identityClaimValueTypeOptions = mapEnumToOptions(IdentityClaimValueType);
72
71
 
73
72
  class IdentityExternalLoginService {
74
- constructor(restService) {
75
- this.restService = restService;
73
+ constructor() {
74
+ this.restService = inject(RestService);
76
75
  this.apiName = 'AbpIdentity';
77
76
  this.createOrUpdate = (config) => this.restService.request({
78
77
  method: 'POST',
79
78
  url: '/api/identity/external-login',
80
79
  }, { apiName: this.apiName, ...config });
81
80
  }
82
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityExternalLoginService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
81
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityExternalLoginService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
83
82
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityExternalLoginService, providedIn: 'root' }); }
84
83
  }
85
84
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityExternalLoginService, decorators: [{
@@ -87,11 +86,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
87
86
  args: [{
88
87
  providedIn: 'root',
89
88
  }]
90
- }], ctorParameters: () => [{ type: i1.RestService }] });
89
+ }] });
91
90
 
92
91
  class IdentityRoleService {
93
- constructor(restService) {
94
- this.restService = restService;
92
+ constructor() {
93
+ this.restService = inject(RestService);
95
94
  this.apiName = 'AbpIdentity';
96
95
  this.create = (input, config) => this.restService.request({
97
96
  method: 'POST',
@@ -145,7 +144,7 @@ class IdentityRoleService {
145
144
  body: input,
146
145
  }, { apiName: this.apiName, ...config });
147
146
  }
148
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityRoleService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
147
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityRoleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
149
148
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityRoleService, providedIn: 'root' }); }
150
149
  }
151
150
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityRoleService, decorators: [{
@@ -153,11 +152,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
153
152
  args: [{
154
153
  providedIn: 'root',
155
154
  }]
156
- }], ctorParameters: () => [{ type: i1.RestService }] });
155
+ }] });
157
156
 
158
157
  class IdentitySecurityLogService {
159
- constructor(restService) {
160
- this.restService = restService;
158
+ constructor() {
159
+ this.restService = inject(RestService);
161
160
  this.apiName = 'AbpIdentity';
162
161
  this.get = (id, config) => this.restService.request({
163
162
  method: 'GET',
@@ -183,7 +182,7 @@ class IdentitySecurityLogService {
183
182
  },
184
183
  }, { apiName: this.apiName, ...config });
185
184
  }
186
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentitySecurityLogService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
185
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentitySecurityLogService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
187
186
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentitySecurityLogService, providedIn: 'root' }); }
188
187
  }
189
188
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentitySecurityLogService, decorators: [{
@@ -191,11 +190,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
191
190
  args: [{
192
191
  providedIn: 'root',
193
192
  }]
194
- }], ctorParameters: () => [{ type: i1.RestService }] });
193
+ }] });
195
194
 
196
195
  class IdentitySessionService {
197
- constructor(restService) {
198
- this.restService = restService;
196
+ constructor() {
197
+ this.restService = inject(RestService);
199
198
  this.apiName = 'AbpIdentity';
200
199
  this.get = (id, config) => this.restService.request({
201
200
  method: 'GET',
@@ -219,7 +218,7 @@ class IdentitySessionService {
219
218
  url: `/api/identity/sessions/${id}`,
220
219
  }, { apiName: this.apiName, ...config });
221
220
  }
222
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentitySessionService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
221
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentitySessionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
223
222
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentitySessionService, providedIn: 'root' }); }
224
223
  }
225
224
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentitySessionService, decorators: [{
@@ -227,11 +226,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
227
226
  args: [{
228
227
  providedIn: 'root',
229
228
  }]
230
- }], ctorParameters: () => [{ type: i1.RestService }] });
229
+ }] });
231
230
 
232
231
  class IdentitySettingsService {
233
- constructor(restService) {
234
- this.restService = restService;
232
+ constructor() {
233
+ this.restService = inject(RestService);
235
234
  this.apiName = 'AbpIdentity';
236
235
  this.get = (config) => this.restService.request({
237
236
  method: 'GET',
@@ -270,7 +269,7 @@ class IdentitySettingsService {
270
269
  body: input,
271
270
  }, { apiName: this.apiName, ...config });
272
271
  }
273
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentitySettingsService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
272
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentitySettingsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
274
273
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentitySettingsService, providedIn: 'root' }); }
275
274
  }
276
275
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentitySettingsService, decorators: [{
@@ -278,11 +277,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
278
277
  args: [{
279
278
  providedIn: 'root',
280
279
  }]
281
- }], ctorParameters: () => [{ type: i1.RestService }] });
280
+ }] });
282
281
 
283
282
  class IdentityUserLookupService {
284
- constructor(restService) {
285
- this.restService = restService;
283
+ constructor() {
284
+ this.restService = inject(RestService);
286
285
  this.apiName = 'AbpIdentity';
287
286
  this.findById = (id, config) => this.restService.request({
288
287
  method: 'GET',
@@ -309,7 +308,7 @@ class IdentityUserLookupService {
309
308
  },
310
309
  }, { apiName: this.apiName, ...config });
311
310
  }
312
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityUserLookupService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
311
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityUserLookupService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
313
312
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityUserLookupService, providedIn: 'root' }); }
314
313
  }
315
314
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityUserLookupService, decorators: [{
@@ -317,11 +316,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
317
316
  args: [{
318
317
  providedIn: 'root',
319
318
  }]
320
- }], ctorParameters: () => [{ type: i1.RestService }] });
319
+ }] });
321
320
 
322
321
  class IdentityUserService {
323
- constructor(restService) {
324
- this.restService = restService;
322
+ constructor() {
323
+ this.restService = inject(RestService);
325
324
  this.apiName = 'AbpIdentity';
326
325
  this.create = (input, config) => this.restService.request({
327
326
  method: 'POST',
@@ -533,7 +532,7 @@ class IdentityUserService {
533
532
  body: input,
534
533
  }, { apiName: this.apiName, ...config });
535
534
  }
536
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityUserService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
535
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityUserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
537
536
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityUserService, providedIn: 'root' }); }
538
537
  }
539
538
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: IdentityUserService, decorators: [{
@@ -541,7 +540,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
541
540
  args: [{
542
541
  providedIn: 'root',
543
542
  }]
544
- }], ctorParameters: () => [{ type: i1.RestService }] });
543
+ }] });
545
544
 
546
545
  var ImportUsersFromFileType;
547
546
  (function (ImportUsersFromFileType) {
@@ -551,8 +550,8 @@ var ImportUsersFromFileType;
551
550
  const importUsersFromFileTypeOptions = mapEnumToOptions(ImportUsersFromFileType);
552
551
 
553
552
  class OrganizationUnitService {
554
- constructor(restService) {
555
- this.restService = restService;
553
+ constructor() {
554
+ this.restService = inject(RestService);
556
555
  this.apiName = 'AbpIdentity';
557
556
  this.addMembers = (id, input, config) => this.restService.request({
558
557
  method: 'PUT',
@@ -660,7 +659,7 @@ class OrganizationUnitService {
660
659
  body: input,
661
660
  }, { apiName: this.apiName, ...config });
662
661
  }
663
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: OrganizationUnitService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
662
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: OrganizationUnitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
664
663
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: OrganizationUnitService, providedIn: 'root' }); }
665
664
  }
666
665
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImport: i0, type: OrganizationUnitService, decorators: [{
@@ -668,7 +667,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.7", ngImpor
668
667
  args: [{
669
668
  providedIn: 'root',
670
669
  }]
671
- }], ctorParameters: () => [{ type: i1.RestService }] });
670
+ }] });
672
671
 
673
672
  /**
674
673
  * Generated bundle index. Do not edit.