@abp/ng.identity 5.0.0-rc.1 → 5.0.2

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.
Files changed (91) hide show
  1. package/abp-ng.identity.d.ts +5 -5
  2. package/bundles/abp-ng.identity-config.umd.js +49 -49
  3. package/bundles/abp-ng.identity-proxy.umd.js +136 -136
  4. package/bundles/abp-ng.identity.umd.js +937 -937
  5. package/bundles/abp-ng.identity.umd.js.map +1 -1
  6. package/config/abp-ng.identity-config.d.ts +5 -5
  7. package/config/enums/index.d.ts +2 -2
  8. package/config/enums/policy-names.d.ts +5 -5
  9. package/config/enums/route-names.d.ts +5 -5
  10. package/config/identity-config.module.d.ts +8 -8
  11. package/config/providers/index.d.ts +1 -1
  12. package/config/providers/route.provider.d.ts +8 -8
  13. package/config/public-api.d.ts +3 -3
  14. package/esm2015/abp-ng.identity.js +4 -4
  15. package/esm2015/config/abp-ng.identity-config.js +4 -4
  16. package/esm2015/config/enums/index.js +2 -2
  17. package/esm2015/config/enums/policy-names.js +1 -1
  18. package/esm2015/config/enums/route-names.js +1 -1
  19. package/esm2015/config/identity-config.module.js +17 -17
  20. package/esm2015/config/providers/index.js +1 -1
  21. package/esm2015/config/providers/route.provider.js +34 -34
  22. package/esm2015/config/public-api.js +3 -3
  23. package/esm2015/lib/components/index.js +2 -2
  24. package/esm2015/lib/components/roles/roles.component.js +111 -111
  25. package/esm2015/lib/components/users/users.component.js +143 -143
  26. package/esm2015/lib/defaults/default-roles-entity-actions.js +29 -29
  27. package/esm2015/lib/defaults/default-roles-entity-props.js +24 -24
  28. package/esm2015/lib/defaults/default-roles-form-props.js +27 -27
  29. package/esm2015/lib/defaults/default-roles-toolbar-actions.js +13 -13
  30. package/esm2015/lib/defaults/default-users-entity-actions.js +28 -28
  31. package/esm2015/lib/defaults/default-users-entity-props.js +33 -33
  32. package/esm2015/lib/defaults/default-users-form-props.js +63 -63
  33. package/esm2015/lib/defaults/default-users-toolbar-actions.js +13 -13
  34. package/esm2015/lib/enums/components.js +1 -1
  35. package/esm2015/lib/enums/index.js +1 -1
  36. package/esm2015/lib/guards/extensions.guard.js +35 -35
  37. package/esm2015/lib/guards/index.js +1 -1
  38. package/esm2015/lib/identity-routing.module.js +53 -53
  39. package/esm2015/lib/identity.module.js +82 -82
  40. package/esm2015/lib/models/config-options.js +1 -1
  41. package/esm2015/lib/models/index.js +1 -1
  42. package/esm2015/lib/tokens/extensions.token.js +34 -34
  43. package/esm2015/lib/tokens/index.js +1 -1
  44. package/esm2015/proxy/abp-ng.identity-proxy.js +4 -4
  45. package/esm2015/proxy/lib/index.js +2 -2
  46. package/esm2015/proxy/lib/proxy/identity/identity-role.service.js +45 -45
  47. package/esm2015/proxy/lib/proxy/identity/identity-user-lookup.service.js +36 -36
  48. package/esm2015/proxy/lib/proxy/identity/identity-user.service.js +62 -62
  49. package/esm2015/proxy/lib/proxy/identity/index.js +4 -4
  50. package/esm2015/proxy/lib/proxy/identity/models.js +1 -1
  51. package/esm2015/proxy/lib/proxy/users/index.js +1 -1
  52. package/esm2015/proxy/lib/proxy/users/models.js +1 -1
  53. package/esm2015/proxy/public-api.js +1 -1
  54. package/esm2015/public-api.js +6 -6
  55. package/fesm2015/abp-ng.identity-config.js +46 -46
  56. package/fesm2015/abp-ng.identity-proxy.js +130 -130
  57. package/fesm2015/abp-ng.identity.js +588 -588
  58. package/fesm2015/abp-ng.identity.js.map +1 -1
  59. package/lib/components/index.d.ts +2 -2
  60. package/lib/components/roles/roles.component.d.ts +35 -35
  61. package/lib/components/users/users.component.d.ts +41 -41
  62. package/lib/defaults/default-roles-entity-actions.d.ts +3 -3
  63. package/lib/defaults/default-roles-entity-props.d.ts +3 -3
  64. package/lib/defaults/default-roles-form-props.d.ts +4 -4
  65. package/lib/defaults/default-roles-toolbar-actions.d.ts +3 -3
  66. package/lib/defaults/default-users-entity-actions.d.ts +3 -3
  67. package/lib/defaults/default-users-entity-props.d.ts +3 -3
  68. package/lib/defaults/default-users-form-props.d.ts +4 -4
  69. package/lib/defaults/default-users-toolbar-actions.d.ts +3 -3
  70. package/lib/enums/components.d.ts +4 -4
  71. package/lib/enums/index.d.ts +1 -1
  72. package/lib/guards/extensions.guard.d.ts +11 -11
  73. package/lib/guards/index.d.ts +1 -1
  74. package/lib/identity-routing.module.d.ts +7 -7
  75. package/lib/identity.module.d.ts +19 -19
  76. package/lib/models/config-options.d.ts +30 -30
  77. package/lib/models/index.d.ts +1 -1
  78. package/lib/tokens/extensions.token.d.ts +43 -43
  79. package/lib/tokens/index.d.ts +1 -1
  80. package/package.json +4 -4
  81. package/proxy/abp-ng.identity-proxy.d.ts +5 -5
  82. package/proxy/lib/index.d.ts +2 -2
  83. package/proxy/lib/proxy/identity/identity-role.service.d.ts +17 -17
  84. package/proxy/lib/proxy/identity/identity-user-lookup.service.d.ts +16 -16
  85. package/proxy/lib/proxy/identity/identity-user.service.d.ts +21 -21
  86. package/proxy/lib/proxy/identity/index.d.ts +4 -4
  87. package/proxy/lib/proxy/identity/models.d.ts +64 -64
  88. package/proxy/lib/proxy/users/index.d.ts +1 -1
  89. package/proxy/lib/proxy/users/models.d.ts +11 -11
  90. package/proxy/public-api.d.ts +1 -1
  91. package/public-api.d.ts +6 -6
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@abp/ng.identity" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@abp/ng.identity" />
5
+ export * from './public-api';
@@ -24,59 +24,59 @@
24
24
 
25
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
26
 
27
- var IDENTITY_ROUTE_PROVIDERS = [
28
- { provide: i0.APP_INITIALIZER, useFactory: configureRoutes, deps: [ng_core.RoutesService], multi: true },
29
- ];
30
- function configureRoutes(routesService) {
31
- return function () {
32
- routesService.add([
33
- {
34
- path: undefined,
35
- name: "AbpIdentity::Menu:IdentityManagement" /* IdentityManagement */,
36
- parentName: "AbpUiNavigation::Menu:Administration" /* Administration */,
37
- requiredPolicy: "AbpIdentity.Roles || AbpIdentity.Users" /* IdentityManagement */,
38
- iconClass: 'fa fa-id-card-o',
39
- layout: "application" /* application */,
40
- order: 1,
41
- },
42
- {
43
- path: '/identity/roles',
44
- name: "AbpIdentity::Roles" /* Roles */,
45
- parentName: "AbpIdentity::Menu:IdentityManagement" /* IdentityManagement */,
46
- requiredPolicy: "AbpIdentity.Roles" /* Roles */,
47
- order: 1,
48
- },
49
- {
50
- path: '/identity/users',
51
- name: "AbpIdentity::Users" /* Users */,
52
- parentName: "AbpIdentity::Menu:IdentityManagement" /* IdentityManagement */,
53
- requiredPolicy: "AbpIdentity.Users" /* Users */,
54
- order: 2,
55
- },
56
- ]);
57
- };
27
+ var IDENTITY_ROUTE_PROVIDERS = [
28
+ { provide: i0.APP_INITIALIZER, useFactory: configureRoutes, deps: [ng_core.RoutesService], multi: true },
29
+ ];
30
+ function configureRoutes(routesService) {
31
+ return function () {
32
+ routesService.add([
33
+ {
34
+ path: undefined,
35
+ name: "AbpIdentity::Menu:IdentityManagement" /* IdentityManagement */,
36
+ parentName: "AbpUiNavigation::Menu:Administration" /* Administration */,
37
+ requiredPolicy: "AbpIdentity.Roles || AbpIdentity.Users" /* IdentityManagement */,
38
+ iconClass: 'fa fa-id-card-o',
39
+ layout: "application" /* application */,
40
+ order: 1,
41
+ },
42
+ {
43
+ path: '/identity/roles',
44
+ name: "AbpIdentity::Roles" /* Roles */,
45
+ parentName: "AbpIdentity::Menu:IdentityManagement" /* IdentityManagement */,
46
+ requiredPolicy: "AbpIdentity.Roles" /* Roles */,
47
+ order: 1,
48
+ },
49
+ {
50
+ path: '/identity/users',
51
+ name: "AbpIdentity::Users" /* Users */,
52
+ parentName: "AbpIdentity::Menu:IdentityManagement" /* IdentityManagement */,
53
+ requiredPolicy: "AbpIdentity.Users" /* Users */,
54
+ order: 2,
55
+ },
56
+ ]);
57
+ };
58
58
  }
59
59
 
60
- var IdentityConfigModule = /** @class */ (function () {
61
- function IdentityConfigModule() {
62
- }
63
- IdentityConfigModule.forRoot = function () {
64
- return {
65
- ngModule: IdentityConfigModule,
66
- providers: [IDENTITY_ROUTE_PROVIDERS],
67
- };
68
- };
69
- return IdentityConfigModule;
70
- }());
71
- IdentityConfigModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityConfigModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
72
- IdentityConfigModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityConfigModule });
73
- IdentityConfigModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityConfigModule });
74
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityConfigModule, decorators: [{
75
- type: i0.NgModule
60
+ var IdentityConfigModule = /** @class */ (function () {
61
+ function IdentityConfigModule() {
62
+ }
63
+ IdentityConfigModule.forRoot = function () {
64
+ return {
65
+ ngModule: IdentityConfigModule,
66
+ providers: [IDENTITY_ROUTE_PROVIDERS],
67
+ };
68
+ };
69
+ return IdentityConfigModule;
70
+ }());
71
+ IdentityConfigModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityConfigModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
72
+ IdentityConfigModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityConfigModule });
73
+ IdentityConfigModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityConfigModule });
74
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityConfigModule, decorators: [{
75
+ type: i0.NgModule
76
76
  }] });
77
77
 
78
- /**
79
- * Generated bundle index. Do not edit.
78
+ /**
79
+ * Generated bundle index. Do not edit.
80
80
  */
81
81
 
82
82
  exports.IDENTITY_ROUTE_PROVIDERS = IDENTITY_ROUTE_PROVIDERS;
@@ -25,148 +25,148 @@
25
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
26
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
27
 
28
- var IdentityRoleService = /** @class */ (function () {
29
- function IdentityRoleService(restService) {
30
- var _this = this;
31
- this.restService = restService;
32
- this.apiName = 'AbpIdentity';
33
- this.create = function (input) { return _this.restService.request({
34
- method: 'POST',
35
- url: '/api/identity/roles',
36
- body: input,
37
- }, { apiName: _this.apiName }); };
38
- this.delete = function (id) { return _this.restService.request({
39
- method: 'DELETE',
40
- url: "/api/identity/roles/" + id,
41
- }, { apiName: _this.apiName }); };
42
- this.get = function (id) { return _this.restService.request({
43
- method: 'GET',
44
- url: "/api/identity/roles/" + id,
45
- }, { apiName: _this.apiName }); };
46
- this.getAllList = function () { return _this.restService.request({
47
- method: 'GET',
48
- url: '/api/identity/roles/all',
49
- }, { apiName: _this.apiName }); };
50
- this.getList = function (input) { return _this.restService.request({
51
- method: 'GET',
52
- url: '/api/identity/roles',
53
- params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
54
- }, { apiName: _this.apiName }); };
55
- this.update = function (id, input) { return _this.restService.request({
56
- method: 'PUT',
57
- url: "/api/identity/roles/" + id,
58
- body: input,
59
- }, { apiName: _this.apiName }); };
60
- }
61
- return IdentityRoleService;
62
- }());
63
- IdentityRoleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityRoleService, deps: [{ token: i1__namespace.RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
64
- IdentityRoleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityRoleService, providedIn: 'root' });
65
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityRoleService, decorators: [{
66
- type: i0.Injectable,
67
- args: [{
68
- providedIn: 'root',
69
- }]
28
+ var IdentityRoleService = /** @class */ (function () {
29
+ function IdentityRoleService(restService) {
30
+ var _this = this;
31
+ this.restService = restService;
32
+ this.apiName = 'AbpIdentity';
33
+ this.create = function (input) { return _this.restService.request({
34
+ method: 'POST',
35
+ url: '/api/identity/roles',
36
+ body: input,
37
+ }, { apiName: _this.apiName }); };
38
+ this.delete = function (id) { return _this.restService.request({
39
+ method: 'DELETE',
40
+ url: "/api/identity/roles/" + id,
41
+ }, { apiName: _this.apiName }); };
42
+ this.get = function (id) { return _this.restService.request({
43
+ method: 'GET',
44
+ url: "/api/identity/roles/" + id,
45
+ }, { apiName: _this.apiName }); };
46
+ this.getAllList = function () { return _this.restService.request({
47
+ method: 'GET',
48
+ url: '/api/identity/roles/all',
49
+ }, { apiName: _this.apiName }); };
50
+ this.getList = function (input) { return _this.restService.request({
51
+ method: 'GET',
52
+ url: '/api/identity/roles',
53
+ params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
54
+ }, { apiName: _this.apiName }); };
55
+ this.update = function (id, input) { return _this.restService.request({
56
+ method: 'PUT',
57
+ url: "/api/identity/roles/" + id,
58
+ body: input,
59
+ }, { apiName: _this.apiName }); };
60
+ }
61
+ return IdentityRoleService;
62
+ }());
63
+ IdentityRoleService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityRoleService, deps: [{ token: i1__namespace.RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
64
+ IdentityRoleService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityRoleService, providedIn: 'root' });
65
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityRoleService, decorators: [{
66
+ type: i0.Injectable,
67
+ args: [{
68
+ providedIn: 'root',
69
+ }]
70
70
  }], ctorParameters: function () { return [{ type: i1__namespace.RestService }]; } });
71
71
 
72
- var IdentityUserLookupService = /** @class */ (function () {
73
- function IdentityUserLookupService(restService) {
74
- var _this = this;
75
- this.restService = restService;
76
- this.apiName = 'AbpIdentity';
77
- this.findById = function (id) { return _this.restService.request({
78
- method: 'GET',
79
- url: "/api/identity/users/lookup/" + id,
80
- }, { apiName: _this.apiName }); };
81
- this.findByUserName = function (userName) { return _this.restService.request({
82
- method: 'GET',
83
- url: "/api/identity/users/lookup/by-username/" + userName,
84
- }, { apiName: _this.apiName }); };
85
- this.getCount = function (input) { return _this.restService.request({
86
- method: 'GET',
87
- url: '/api/identity/users/lookup/count',
88
- params: { filter: input.filter },
89
- }, { apiName: _this.apiName }); };
90
- this.search = function (input) { return _this.restService.request({
91
- method: 'GET',
92
- url: '/api/identity/users/lookup/search',
93
- params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
94
- }, { apiName: _this.apiName }); };
95
- }
96
- return IdentityUserLookupService;
97
- }());
98
- IdentityUserLookupService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityUserLookupService, deps: [{ token: i1__namespace.RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
99
- IdentityUserLookupService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityUserLookupService, providedIn: 'root' });
100
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityUserLookupService, decorators: [{
101
- type: i0.Injectable,
102
- args: [{
103
- providedIn: 'root',
104
- }]
72
+ var IdentityUserLookupService = /** @class */ (function () {
73
+ function IdentityUserLookupService(restService) {
74
+ var _this = this;
75
+ this.restService = restService;
76
+ this.apiName = 'AbpIdentity';
77
+ this.findById = function (id) { return _this.restService.request({
78
+ method: 'GET',
79
+ url: "/api/identity/users/lookup/" + id,
80
+ }, { apiName: _this.apiName }); };
81
+ this.findByUserName = function (userName) { return _this.restService.request({
82
+ method: 'GET',
83
+ url: "/api/identity/users/lookup/by-username/" + userName,
84
+ }, { apiName: _this.apiName }); };
85
+ this.getCount = function (input) { return _this.restService.request({
86
+ method: 'GET',
87
+ url: '/api/identity/users/lookup/count',
88
+ params: { filter: input.filter },
89
+ }, { apiName: _this.apiName }); };
90
+ this.search = function (input) { return _this.restService.request({
91
+ method: 'GET',
92
+ url: '/api/identity/users/lookup/search',
93
+ params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
94
+ }, { apiName: _this.apiName }); };
95
+ }
96
+ return IdentityUserLookupService;
97
+ }());
98
+ IdentityUserLookupService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityUserLookupService, deps: [{ token: i1__namespace.RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
99
+ IdentityUserLookupService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityUserLookupService, providedIn: 'root' });
100
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityUserLookupService, decorators: [{
101
+ type: i0.Injectable,
102
+ args: [{
103
+ providedIn: 'root',
104
+ }]
105
105
  }], ctorParameters: function () { return [{ type: i1__namespace.RestService }]; } });
106
106
 
107
- var IdentityUserService = /** @class */ (function () {
108
- function IdentityUserService(restService) {
109
- var _this = this;
110
- this.restService = restService;
111
- this.apiName = 'AbpIdentity';
112
- this.create = function (input) { return _this.restService.request({
113
- method: 'POST',
114
- url: '/api/identity/users',
115
- body: input,
116
- }, { apiName: _this.apiName }); };
117
- this.delete = function (id) { return _this.restService.request({
118
- method: 'DELETE',
119
- url: "/api/identity/users/" + id,
120
- }, { apiName: _this.apiName }); };
121
- this.findByEmail = function (email) { return _this.restService.request({
122
- method: 'GET',
123
- url: "/api/identity/users/by-email/" + email,
124
- }, { apiName: _this.apiName }); };
125
- this.findByUsername = function (userName) { return _this.restService.request({
126
- method: 'GET',
127
- url: "/api/identity/users/by-username/" + userName,
128
- }, { apiName: _this.apiName }); };
129
- this.get = function (id) { return _this.restService.request({
130
- method: 'GET',
131
- url: "/api/identity/users/" + id,
132
- }, { apiName: _this.apiName }); };
133
- this.getAssignableRoles = function () { return _this.restService.request({
134
- method: 'GET',
135
- url: '/api/identity/users/assignable-roles',
136
- }, { apiName: _this.apiName }); };
137
- this.getList = function (input) { return _this.restService.request({
138
- method: 'GET',
139
- url: '/api/identity/users',
140
- params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
141
- }, { apiName: _this.apiName }); };
142
- this.getRoles = function (id) { return _this.restService.request({
143
- method: 'GET',
144
- url: "/api/identity/users/" + id + "/roles",
145
- }, { apiName: _this.apiName }); };
146
- this.update = function (id, input) { return _this.restService.request({
147
- method: 'PUT',
148
- url: "/api/identity/users/" + id,
149
- body: input,
150
- }, { apiName: _this.apiName }); };
151
- this.updateRoles = function (id, input) { return _this.restService.request({
152
- method: 'PUT',
153
- url: "/api/identity/users/" + id + "/roles",
154
- body: input,
155
- }, { apiName: _this.apiName }); };
156
- }
157
- return IdentityUserService;
158
- }());
159
- IdentityUserService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityUserService, deps: [{ token: i1__namespace.RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
160
- IdentityUserService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityUserService, providedIn: 'root' });
161
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityUserService, decorators: [{
162
- type: i0.Injectable,
163
- args: [{
164
- providedIn: 'root',
165
- }]
107
+ var IdentityUserService = /** @class */ (function () {
108
+ function IdentityUserService(restService) {
109
+ var _this = this;
110
+ this.restService = restService;
111
+ this.apiName = 'AbpIdentity';
112
+ this.create = function (input) { return _this.restService.request({
113
+ method: 'POST',
114
+ url: '/api/identity/users',
115
+ body: input,
116
+ }, { apiName: _this.apiName }); };
117
+ this.delete = function (id) { return _this.restService.request({
118
+ method: 'DELETE',
119
+ url: "/api/identity/users/" + id,
120
+ }, { apiName: _this.apiName }); };
121
+ this.findByEmail = function (email) { return _this.restService.request({
122
+ method: 'GET',
123
+ url: "/api/identity/users/by-email/" + email,
124
+ }, { apiName: _this.apiName }); };
125
+ this.findByUsername = function (userName) { return _this.restService.request({
126
+ method: 'GET',
127
+ url: "/api/identity/users/by-username/" + userName,
128
+ }, { apiName: _this.apiName }); };
129
+ this.get = function (id) { return _this.restService.request({
130
+ method: 'GET',
131
+ url: "/api/identity/users/" + id,
132
+ }, { apiName: _this.apiName }); };
133
+ this.getAssignableRoles = function () { return _this.restService.request({
134
+ method: 'GET',
135
+ url: '/api/identity/users/assignable-roles',
136
+ }, { apiName: _this.apiName }); };
137
+ this.getList = function (input) { return _this.restService.request({
138
+ method: 'GET',
139
+ url: '/api/identity/users',
140
+ params: { filter: input.filter, sorting: input.sorting, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
141
+ }, { apiName: _this.apiName }); };
142
+ this.getRoles = function (id) { return _this.restService.request({
143
+ method: 'GET',
144
+ url: "/api/identity/users/" + id + "/roles",
145
+ }, { apiName: _this.apiName }); };
146
+ this.update = function (id, input) { return _this.restService.request({
147
+ method: 'PUT',
148
+ url: "/api/identity/users/" + id,
149
+ body: input,
150
+ }, { apiName: _this.apiName }); };
151
+ this.updateRoles = function (id, input) { return _this.restService.request({
152
+ method: 'PUT',
153
+ url: "/api/identity/users/" + id + "/roles",
154
+ body: input,
155
+ }, { apiName: _this.apiName }); };
156
+ }
157
+ return IdentityUserService;
158
+ }());
159
+ IdentityUserService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityUserService, deps: [{ token: i1__namespace.RestService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
160
+ IdentityUserService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityUserService, providedIn: 'root' });
161
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: IdentityUserService, decorators: [{
162
+ type: i0.Injectable,
163
+ args: [{
164
+ providedIn: 'root',
165
+ }]
166
166
  }], ctorParameters: function () { return [{ type: i1__namespace.RestService }]; } });
167
167
 
168
- /**
169
- * Generated bundle index. Do not edit.
168
+ /**
169
+ * Generated bundle index. Do not edit.
170
170
  */
171
171
 
172
172
  exports.IdentityRoleService = IdentityRoleService;