@volo/abp.ng.identity 5.0.0-beta.2 → 5.0.0
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/README.md +2 -2
- package/bundles/volo-abp.ng.identity-config.umd.js +1 -1
- package/bundles/volo-abp.ng.identity-proxy.umd.js +1 -1
- package/bundles/volo-abp.ng.identity.umd.js +2 -2
- package/config/components/my-link-users-modal.component.d.ts +8 -1
- package/config/handlers/link-login.handler.d.ts +7 -5
- package/config/services/identity-link-login.service.d.ts +12 -0
- package/config/services/index.d.ts +1 -0
- package/esm2015/config/components/identity-settings.component.js +1 -1
- package/esm2015/config/components/my-link-users-modal.component.js +1 -1
- package/esm2015/config/handlers/link-login.handler.js +1 -1
- package/esm2015/config/identity-config.module.js +1 -1
- package/esm2015/config/services/identity-config.service.js +1 -1
- package/esm2015/config/services/identity-link-login.service.js +1 -0
- package/esm2015/config/services/index.js +1 -1
- package/esm2015/lib/components/claim-modal/claim-modal.component.js +1 -1
- package/esm2015/lib/components/claims/claims.component.js +1 -1
- package/esm2015/lib/components/organization-units/abstract-organization-unit/abstract-organization-unit.component.js +1 -1
- package/esm2015/lib/components/organization-units/organization-members/organization-members-modal-body.component.js +1 -1
- package/esm2015/lib/components/organization-units/organization-members/organization-members.component.js +1 -1
- package/esm2015/lib/components/organization-units/organization-roles/organization-roles-modal-body.component.js +1 -1
- package/esm2015/lib/components/organization-units/organization-roles/organization-roles.component.js +1 -1
- package/esm2015/lib/components/organization-units/organization-units.component.js +1 -1
- package/esm2015/lib/components/roles/roles.component.js +1 -1
- package/esm2015/lib/components/security-logs/security-logs.component.js +1 -1
- package/esm2015/lib/components/users/users.component.js +1 -1
- package/esm2015/lib/defaults/default-organization-members-entity-props.js +1 -1
- package/esm2015/lib/defaults/default-roles-entity-props.js +1 -1
- package/esm2015/lib/defaults/default-users-entity-actions.js +1 -1
- package/esm2015/lib/defaults/default-users-entity-props.js +1 -1
- package/esm2015/lib/guards/extensions.guard.js +1 -1
- package/esm2015/lib/identity-routing.module.js +1 -1
- package/esm2015/lib/identity.module.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/identity-claim-type.service.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/identity-role.service.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/identity-security-log.service.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/identity-settings.service.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/identity-user-lookup.service.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/identity-user.service.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/index.js +1 -1
- package/esm2015/proxy/lib/proxy/identity/organization-unit.service.js +1 -1
- package/fesm2015/volo-abp.ng.identity-config.js +112 -35
- package/fesm2015/volo-abp.ng.identity-proxy.js +34 -108
- package/fesm2015/volo-abp.ng.identity.js +225 -196
- package/lib/components/users/users.component.d.ts +2 -10
- package/lib/identity.module.d.ts +2 -1
- package/package.json +7 -6
- package/proxy/lib/proxy/identity/identity-user.service.d.ts +4 -2
- package/proxy/lib/proxy/identity/index.d.ts +0 -2
- package/proxy/lib/proxy/identity/models.d.ts +14 -50
- package/esm2015/proxy/lib/proxy/identity/identity-link-user.service.js +0 -1
- package/esm2015/proxy/lib/proxy/identity/profile.service.js +0 -1
- package/proxy/lib/proxy/identity/identity-link-user.service.d.ts +0 -17
- package/proxy/lib/proxy/identity/profile.service.d.ts +0 -15
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import { ConfigStateService, ListService, PagedResultDto } from '@abp/ng.core';
|
|
2
2
|
import { ConfirmationService, ToasterService } from '@abp/ng.theme.shared';
|
|
3
|
+
import { FormProp } from '@abp/ng.theme.shared/extensions';
|
|
3
4
|
import { Injector, OnInit, TemplateRef, TrackByFunction } from '@angular/core';
|
|
4
5
|
import { AbstractControl, FormBuilder, FormGroup } from '@angular/forms';
|
|
5
6
|
import { GetIdentityUsersInput, IdentityRoleDto, IdentityRoleService, IdentityUserDto, IdentityUserService, OrganizationUnitDto, OrganizationUnitService, OrganizationUnitWithDetailsDto } from '@volo/abp.ng.identity/proxy';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
declare enum UserLockDurationType {
|
|
8
|
-
Second = 1,
|
|
9
|
-
Minute = 60,
|
|
10
|
-
Hour = 3600,
|
|
11
|
-
Day = 86400,
|
|
12
|
-
Month = 2592000,
|
|
13
|
-
Year = 31536000
|
|
14
|
-
}
|
|
15
8
|
export declare class UsersComponent implements OnInit {
|
|
16
9
|
readonly list: ListService<GetIdentityUsersInput>;
|
|
17
10
|
confirmationService: ConfirmationService;
|
|
@@ -55,7 +48,7 @@ export declare class UsersComponent implements OnInit {
|
|
|
55
48
|
isOptional: boolean;
|
|
56
49
|
};
|
|
57
50
|
lockForm: FormGroup;
|
|
58
|
-
|
|
51
|
+
dateTimePickerProps: Partial<FormProp<any>>;
|
|
59
52
|
trackByFn: TrackByFunction<AbstractControl>;
|
|
60
53
|
get roleGroups(): FormGroup[];
|
|
61
54
|
onVisiblePermissionChange: (value: boolean) => void;
|
|
@@ -79,4 +72,3 @@ export declare class UsersComponent implements OnInit {
|
|
|
79
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersComponent, never>;
|
|
80
73
|
static ɵcmp: i0.ɵɵComponentDeclaration<UsersComponent, "abp-users", never, {}, {}, never, never>;
|
|
81
74
|
}
|
|
82
|
-
export {};
|
package/lib/identity.module.d.ts
CHANGED
|
@@ -21,10 +21,11 @@ import * as i17 from "@abp/ng.permission-management";
|
|
|
21
21
|
import * as i18 from "@ngx-validate/core";
|
|
22
22
|
import * as i19 from "@abp/ng.components/tree";
|
|
23
23
|
import * as i20 from "@abp/ng.components/page";
|
|
24
|
+
import * as i21 from "@abp/ng.theme.shared/extensions";
|
|
24
25
|
export declare class IdentityModule {
|
|
25
26
|
static forChild(options?: IdentityConfigOptions): ModuleWithProviders<IdentityModule>;
|
|
26
27
|
static forLazy(options?: IdentityConfigOptions): NgModuleFactory<IdentityModule>;
|
|
27
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityModule, never>;
|
|
28
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<IdentityModule, [typeof i1.RolesComponent, typeof i2.UsersComponent, typeof i3.ClaimModalComponent, typeof i4.ClaimsComponent, typeof i5.OrganizationUnitsComponent, typeof i6.OrganizationMembersComponent, typeof i7.OrganizationMembersModalBodyComponent, typeof i8.OrganizationRolesComponent, typeof i9.OrganizationRolesModalBodyComponent, typeof i10.AbstractOrganizationUnitComponent, typeof i11.SecurityLogsComponent], [typeof i12.CoreModule, typeof i13.CommercialUiModule, typeof i14.IdentityRoutingModule, typeof i15.NgbNavModule, typeof i16.ThemeSharedModule, typeof i15.NgbDropdownModule, typeof i15.NgbDatepickerModule, typeof i17.PermissionManagementModule, typeof i18.NgxValidateCoreModule, typeof i19.TreeModule, typeof i20.PageModule, typeof i13.AdvancedEntityFiltersModule], [typeof i1.RolesComponent, typeof i2.UsersComponent, typeof i3.ClaimModalComponent, typeof i4.ClaimsComponent, typeof i5.OrganizationUnitsComponent, typeof i6.OrganizationMembersComponent, typeof i7.OrganizationMembersModalBodyComponent, typeof i8.OrganizationRolesComponent, typeof i9.OrganizationRolesModalBodyComponent, typeof i10.AbstractOrganizationUnitComponent, typeof i11.SecurityLogsComponent]>;
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IdentityModule, [typeof i1.RolesComponent, typeof i2.UsersComponent, typeof i3.ClaimModalComponent, typeof i4.ClaimsComponent, typeof i5.OrganizationUnitsComponent, typeof i6.OrganizationMembersComponent, typeof i7.OrganizationMembersModalBodyComponent, typeof i8.OrganizationRolesComponent, typeof i9.OrganizationRolesModalBodyComponent, typeof i10.AbstractOrganizationUnitComponent, typeof i11.SecurityLogsComponent], [typeof i12.CoreModule, typeof i13.CommercialUiModule, typeof i14.IdentityRoutingModule, typeof i15.NgbNavModule, typeof i16.ThemeSharedModule, typeof i15.NgbDropdownModule, typeof i15.NgbDatepickerModule, typeof i17.PermissionManagementModule, typeof i18.NgxValidateCoreModule, typeof i19.TreeModule, typeof i20.PageModule, typeof i13.AdvancedEntityFiltersModule, typeof i21.UiExtensionsModule], [typeof i1.RolesComponent, typeof i2.UsersComponent, typeof i3.ClaimModalComponent, typeof i4.ClaimsComponent, typeof i5.OrganizationUnitsComponent, typeof i6.OrganizationMembersComponent, typeof i7.OrganizationMembersModalBodyComponent, typeof i8.OrganizationRolesComponent, typeof i9.OrganizationRolesModalBodyComponent, typeof i10.AbstractOrganizationUnitComponent, typeof i11.SecurityLogsComponent]>;
|
|
29
30
|
static ɵinj: i0.ɵɵInjectorDeclaration<IdentityModule>;
|
|
30
31
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volo/abp.ng.identity",
|
|
3
|
-
"version": "5.0.0
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"homepage": "https://abp.io",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@abp/ng.components": "~5.0.0
|
|
7
|
-
"@abp/ng.permission-management": "~5.0.0
|
|
8
|
-
"@abp/ng.setting-management": "~5.0.0
|
|
9
|
-
"@abp/ng.theme.shared": "~5.0.0
|
|
10
|
-
"@volo/abp.commercial.ng.ui": "~5.0.0
|
|
6
|
+
"@abp/ng.components": "~5.0.0",
|
|
7
|
+
"@abp/ng.permission-management": "~5.0.0",
|
|
8
|
+
"@abp/ng.setting-management": "~5.0.0",
|
|
9
|
+
"@abp/ng.theme.shared": "~5.0.0",
|
|
10
|
+
"@volo/abp.commercial.ng.ui": "~5.0.0",
|
|
11
|
+
"@volo/abp.ng.account": "~5.0.0",
|
|
11
12
|
"ng-zorro-antd": "^12.0.1",
|
|
12
13
|
"tslib": "^2.0.0"
|
|
13
14
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClaimTypeDto, GetIdentityUsersInput, IdentityRoleDto, IdentityUserClaimDto, IdentityUserCreateDto, IdentityUserDto, IdentityUserUpdateDto, IdentityUserUpdatePasswordInput, IdentityUserUpdateRolesDto, OrganizationUnitDto, OrganizationUnitWithDetailsDto } from './models';
|
|
1
|
+
import type { ClaimTypeDto, GetIdentityUsersInput, IdentityRoleDto, IdentityRoleLookupDto, IdentityUserClaimDto, IdentityUserCreateDto, IdentityUserDto, IdentityUserUpdateDto, IdentityUserUpdatePasswordInput, IdentityUserUpdateRolesDto, OrganizationUnitDto, OrganizationUnitLookupDto, OrganizationUnitWithDetailsDto } from './models';
|
|
2
2
|
import { RestService } from '@abp/ng.core';
|
|
3
3
|
import type { ListResultDto, PagedResultDto } from '@abp/ng.core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -15,10 +15,12 @@ export declare class IdentityUserService {
|
|
|
15
15
|
getAvailableOrganizationUnits: () => import("rxjs").Observable<ListResultDto<OrganizationUnitWithDetailsDto>>;
|
|
16
16
|
getClaims: (id: string) => import("rxjs").Observable<IdentityUserClaimDto[]>;
|
|
17
17
|
getList: (input: GetIdentityUsersInput) => import("rxjs").Observable<PagedResultDto<IdentityUserDto>>;
|
|
18
|
+
getOrganizationUnitLookup: () => import("rxjs").Observable<OrganizationUnitLookupDto[]>;
|
|
18
19
|
getOrganizationUnits: (id: string) => import("rxjs").Observable<OrganizationUnitDto[]>;
|
|
20
|
+
getRoleLookup: () => import("rxjs").Observable<IdentityRoleLookupDto[]>;
|
|
19
21
|
getRoles: (id: string) => import("rxjs").Observable<ListResultDto<IdentityRoleDto>>;
|
|
20
22
|
getTwoFactorEnabled: (id: string) => import("rxjs").Observable<boolean>;
|
|
21
|
-
lock: (id: string,
|
|
23
|
+
lock: (id: string, lockoutEnd: string) => import("rxjs").Observable<void>;
|
|
22
24
|
setTwoFactorEnabled: (id: string, enabled: boolean) => import("rxjs").Observable<void>;
|
|
23
25
|
unlock: (id: string) => import("rxjs").Observable<void>;
|
|
24
26
|
update: (id: string, input: IdentityUserUpdateDto) => import("rxjs").Observable<IdentityUserDto>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './identity-claim-type.service';
|
|
2
2
|
export * from './identity-claim-value-type.enum';
|
|
3
|
-
export * from './identity-link-user.service';
|
|
4
3
|
export * from './identity-role.service';
|
|
5
4
|
export * from './identity-security-log.service';
|
|
6
5
|
export * from './identity-settings.service';
|
|
@@ -8,4 +7,3 @@ export * from './identity-user-lookup.service';
|
|
|
8
7
|
export * from './identity-user.service';
|
|
9
8
|
export * from './models';
|
|
10
9
|
export * from './organization-unit.service';
|
|
11
|
-
export * from './profile.service';
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { CreationAuditedEntityDto, EntityDto, ExtensibleEntityDto, ExtensibleFullAuditedEntityDto, ExtensibleObject, PagedAndSortedResultRequestDto, PagedResultRequestDto } from '@abp/ng.core';
|
|
2
2
|
import type { IdentityClaimValueType } from './identity-claim-value-type.enum';
|
|
3
|
-
export interface ChangePasswordInput {
|
|
4
|
-
currentPassword?: string;
|
|
5
|
-
newPassword: string;
|
|
6
|
-
}
|
|
7
3
|
export interface ClaimTypeDto extends ExtensibleEntityDto<string> {
|
|
8
4
|
name?: string;
|
|
9
5
|
required: boolean;
|
|
@@ -51,6 +47,11 @@ export interface GetIdentityUsersInput extends PagedAndSortedResultRequestDto {
|
|
|
51
47
|
filter?: string;
|
|
52
48
|
roleId?: string;
|
|
53
49
|
organizationUnitId?: string;
|
|
50
|
+
userName?: string;
|
|
51
|
+
phoneNumber?: string;
|
|
52
|
+
emailAddress?: string;
|
|
53
|
+
isLockedOut?: boolean;
|
|
54
|
+
notActive?: boolean;
|
|
54
55
|
}
|
|
55
56
|
export interface GetOrganizationUnitInput extends PagedAndSortedResultRequestDto {
|
|
56
57
|
filter?: string;
|
|
@@ -87,6 +88,9 @@ export interface IdentityRoleDto extends ExtensibleEntityDto<string> {
|
|
|
87
88
|
isPublic: boolean;
|
|
88
89
|
concurrencyStamp?: string;
|
|
89
90
|
}
|
|
91
|
+
export interface IdentityRoleLookupDto extends EntityDto<string> {
|
|
92
|
+
name?: string;
|
|
93
|
+
}
|
|
90
94
|
export interface IdentityRoleUpdateDto extends IdentityRoleCreateOrUpdateDtoBase {
|
|
91
95
|
concurrencyStamp?: string;
|
|
92
96
|
}
|
|
@@ -145,11 +149,13 @@ export interface IdentityUserDto extends ExtensibleEntityDto<string> {
|
|
|
145
149
|
emailConfirmed: boolean;
|
|
146
150
|
phoneNumber?: string;
|
|
147
151
|
phoneNumberConfirmed: boolean;
|
|
148
|
-
isActive: boolean;
|
|
149
152
|
supportTwoFactor: boolean;
|
|
153
|
+
isActive: boolean;
|
|
150
154
|
lockoutEnabled: boolean;
|
|
151
155
|
isLockedOut: boolean;
|
|
156
|
+
lockoutEnd?: string;
|
|
152
157
|
concurrencyStamp?: string;
|
|
158
|
+
roleNames: string[];
|
|
153
159
|
}
|
|
154
160
|
export interface IdentityUserSettingsDto {
|
|
155
161
|
isUserNameUpdateEnabled: boolean;
|
|
@@ -164,22 +170,6 @@ export interface IdentityUserUpdatePasswordInput {
|
|
|
164
170
|
export interface IdentityUserUpdateRolesDto {
|
|
165
171
|
roleNames: string[];
|
|
166
172
|
}
|
|
167
|
-
export interface IsLinkedInput {
|
|
168
|
-
userId?: string;
|
|
169
|
-
tenantId?: string;
|
|
170
|
-
}
|
|
171
|
-
export interface LinkUserDto {
|
|
172
|
-
targetUserId?: string;
|
|
173
|
-
targetUserName?: string;
|
|
174
|
-
targetTenantId?: string;
|
|
175
|
-
targetTenantName?: string;
|
|
176
|
-
directlyLinked: boolean;
|
|
177
|
-
}
|
|
178
|
-
export interface LinkUserInput {
|
|
179
|
-
userId?: string;
|
|
180
|
-
tenantId?: string;
|
|
181
|
-
token: string;
|
|
182
|
-
}
|
|
183
173
|
export interface OrganizationUnitCreateDto extends OrganizationUnitCreateOrUpdateDtoBase {
|
|
184
174
|
parentId?: string;
|
|
185
175
|
}
|
|
@@ -192,6 +182,9 @@ export interface OrganizationUnitDto extends ExtensibleFullAuditedEntityDto<stri
|
|
|
192
182
|
displayName?: string;
|
|
193
183
|
roles: OrganizationUnitRoleDto[];
|
|
194
184
|
}
|
|
185
|
+
export interface OrganizationUnitLookupDto extends EntityDto<string> {
|
|
186
|
+
displayName?: string;
|
|
187
|
+
}
|
|
195
188
|
export interface OrganizationUnitMoveInput {
|
|
196
189
|
newParentId?: string;
|
|
197
190
|
}
|
|
@@ -215,22 +208,6 @@ export interface OrganizationUnitWithDetailsDto extends ExtensibleFullAuditedEnt
|
|
|
215
208
|
roles: IdentityRoleDto[];
|
|
216
209
|
concurrencyStamp?: string;
|
|
217
210
|
}
|
|
218
|
-
export interface ProfileDto extends ExtensibleObject {
|
|
219
|
-
userName?: string;
|
|
220
|
-
email?: string;
|
|
221
|
-
emailConfirmed: boolean;
|
|
222
|
-
name?: string;
|
|
223
|
-
surname?: string;
|
|
224
|
-
phoneNumber?: string;
|
|
225
|
-
phoneNumberConfirmed: boolean;
|
|
226
|
-
isExternal: boolean;
|
|
227
|
-
hasPassword: boolean;
|
|
228
|
-
concurrencyStamp?: string;
|
|
229
|
-
}
|
|
230
|
-
export interface UnLinkUserInput {
|
|
231
|
-
userId?: string;
|
|
232
|
-
tenantId?: string;
|
|
233
|
-
}
|
|
234
211
|
export interface UpdateClaimTypeDto extends ExtensibleObject {
|
|
235
212
|
name: string;
|
|
236
213
|
required: boolean;
|
|
@@ -240,14 +217,6 @@ export interface UpdateClaimTypeDto extends ExtensibleObject {
|
|
|
240
217
|
valueType: IdentityClaimValueType;
|
|
241
218
|
concurrencyStamp?: string;
|
|
242
219
|
}
|
|
243
|
-
export interface UpdateProfileDto extends ExtensibleObject {
|
|
244
|
-
userName: string;
|
|
245
|
-
email?: string;
|
|
246
|
-
name?: string;
|
|
247
|
-
surname?: string;
|
|
248
|
-
phoneNumber?: string;
|
|
249
|
-
concurrencyStamp?: string;
|
|
250
|
-
}
|
|
251
220
|
export interface UserLookupCountInputDto {
|
|
252
221
|
filter?: string;
|
|
253
222
|
}
|
|
@@ -255,8 +224,3 @@ export interface UserLookupSearchInputDto extends PagedResultRequestDto {
|
|
|
255
224
|
sorting?: string;
|
|
256
225
|
filter?: string;
|
|
257
226
|
}
|
|
258
|
-
export interface VerifyLinkTokenInput {
|
|
259
|
-
userId?: string;
|
|
260
|
-
tenantId?: string;
|
|
261
|
-
token: string;
|
|
262
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{RestService}from"@abp/ng.core";import{Injectable}from"@angular/core";import*as i0 from"@angular/core";import*as i1 from"@abp/ng.core";export class IdentityLinkUserService{constructor(e){this.restService=e,this.apiName="AbpIdentity",this.generateLinkToken=()=>this.restService.request({method:"POST",responseType:"text",url:"/api/identity/link-user/generate-link-token"},{apiName:this.apiName}),this.getAllList=()=>this.restService.request({method:"GET",url:"/api/identity/link-user"},{apiName:this.apiName}),this.isLinked=e=>this.restService.request({method:"POST",url:"/api/identity/link-user/is-linked",body:e},{apiName:this.apiName}),this.link=e=>this.restService.request({method:"POST",url:"/api/identity/link-user/link",body:e},{apiName:this.apiName}),this.unlink=e=>this.restService.request({method:"POST",url:"/api/identity/link-user/unlink",body:e},{apiName:this.apiName}),this.verifyLinkToken=e=>this.restService.request({method:"POST",url:"/api/identity/link-user/verify-link-token",body:e},{apiName:this.apiName})}}IdentityLinkUserService.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:IdentityLinkUserService,deps:[{token:i1.RestService}],target:i0.ɵɵFactoryTarget.Injectable}),IdentityLinkUserService.ɵprov=i0.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:IdentityLinkUserService,providedIn:"root"}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:IdentityLinkUserService,decorators:[{type:Injectable,args:[{providedIn:"root"}]}],ctorParameters:function(){return[{type:i1.RestService}]}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{RestService}from"@abp/ng.core";import{Injectable}from"@angular/core";import*as i0 from"@angular/core";import*as i1 from"@abp/ng.core";export class ProfileService{constructor(e){this.restService=e,this.apiName="AbpIdentity",this.changePassword=e=>this.restService.request({method:"POST",url:"/api/identity/my-profile/change-password",body:e},{apiName:this.apiName}),this.get=()=>this.restService.request({method:"GET",url:"/api/identity/my-profile"},{apiName:this.apiName}),this.getTwoFactorEnabled=()=>this.restService.request({method:"GET",url:"/api/identity/my-profile/two-factor-enabled"},{apiName:this.apiName}),this.setTwoFactorEnabled=e=>this.restService.request({method:"POST",url:"/api/identity/my-profile/set-two-factor-enabled",params:{enabled:e}},{apiName:this.apiName}),this.update=e=>this.restService.request({method:"PUT",url:"/api/identity/my-profile",body:e},{apiName:this.apiName})}}ProfileService.ɵfac=i0.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:ProfileService,deps:[{token:i1.RestService}],target:i0.ɵɵFactoryTarget.Injectable}),ProfileService.ɵprov=i0.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:ProfileService,providedIn:"root"}),i0.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.8",ngImport:i0,type:ProfileService,decorators:[{type:Injectable,args:[{providedIn:"root"}]}],ctorParameters:function(){return[{type:i1.RestService}]}});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { IsLinkedInput, LinkUserDto, LinkUserInput, UnLinkUserInput, VerifyLinkTokenInput } from './models';
|
|
2
|
-
import { RestService } from '@abp/ng.core';
|
|
3
|
-
import type { ListResultDto } from '@abp/ng.core';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class IdentityLinkUserService {
|
|
6
|
-
private restService;
|
|
7
|
-
apiName: string;
|
|
8
|
-
generateLinkToken: () => import("rxjs").Observable<string>;
|
|
9
|
-
getAllList: () => import("rxjs").Observable<ListResultDto<LinkUserDto>>;
|
|
10
|
-
isLinked: (input: IsLinkedInput) => import("rxjs").Observable<boolean>;
|
|
11
|
-
link: (input: LinkUserInput) => import("rxjs").Observable<void>;
|
|
12
|
-
unlink: (input: UnLinkUserInput) => import("rxjs").Observable<void>;
|
|
13
|
-
verifyLinkToken: (token: VerifyLinkTokenInput) => import("rxjs").Observable<boolean>;
|
|
14
|
-
constructor(restService: RestService);
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<IdentityLinkUserService, never>;
|
|
16
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<IdentityLinkUserService>;
|
|
17
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ChangePasswordInput, ProfileDto, UpdateProfileDto } from './models';
|
|
2
|
-
import { RestService } from '@abp/ng.core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ProfileService {
|
|
5
|
-
private restService;
|
|
6
|
-
apiName: string;
|
|
7
|
-
changePassword: (input: ChangePasswordInput) => import("rxjs").Observable<void>;
|
|
8
|
-
get: () => import("rxjs").Observable<ProfileDto>;
|
|
9
|
-
getTwoFactorEnabled: () => import("rxjs").Observable<boolean>;
|
|
10
|
-
setTwoFactorEnabled: (enabled: boolean) => import("rxjs").Observable<void>;
|
|
11
|
-
update: (input: UpdateProfileDto) => import("rxjs").Observable<ProfileDto>;
|
|
12
|
-
constructor(restService: RestService);
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
|
|
15
|
-
}
|