Browse Source

generate identity and account proxies

change imports
pull/10500/head
muhammedaltug 5 years ago
parent
commit
5ee6e2e71a
  1. 2
      npm/ng-packs/nx.json
  2. 1
      npm/ng-packs/packages/account-core/proxy/src/lib/proxy/account/index.ts
  3. 25
      npm/ng-packs/packages/account-core/proxy/src/lib/proxy/account/models.ts
  4. 2560
      npm/ng-packs/packages/account-core/proxy/src/lib/proxy/generate-proxy.json
  5. 1
      npm/ng-packs/packages/account-core/proxy/src/lib/proxy/identity/models.ts
  6. 2
      npm/ng-packs/packages/account/ng-package.json
  7. 1
      npm/ng-packs/packages/account/package.json
  8. 2
      npm/ng-packs/packages/account/src/lib/components/change-password/change-password.component.ts
  9. 2
      npm/ng-packs/packages/account/src/lib/components/manage-profile/manage-profile.component.ts
  10. 2
      npm/ng-packs/packages/account/src/lib/components/personal-settings/personal-settings.component.ts
  11. 2
      npm/ng-packs/packages/account/src/lib/services/manage-profile.state.service.ts
  12. 838
      npm/ng-packs/packages/identity/proxy/src/lib/proxy/generate-proxy.json
  13. 1
      npm/ng-packs/packages/identity/proxy/src/lib/proxy/identity/index.ts
  14. 35
      npm/ng-packs/packages/identity/proxy/src/lib/proxy/identity/models.ts
  15. 35
      npm/ng-packs/packages/identity/proxy/src/lib/proxy/identity/profile.service.ts

2
npm/ng-packs/nx.json

@ -37,7 +37,7 @@
}, },
"account": { "account": {
"tags": [], "tags": [],
"implicitDependencies": ["core", "theme-shared", "account-core", "identity"] "implicitDependencies": ["core", "theme-shared", "account-core"]
}, },
"components": { "components": {
"tags": [], "tags": [],

1
npm/ng-packs/packages/account-core/proxy/src/lib/proxy/account/index.ts

@ -1,4 +1,5 @@
import * as Web from './web'; import * as Web from './web';
export * from './account.service'; export * from './account.service';
export * from './models'; export * from './models';
export * from './profile.service';
export { Web }; export { Web };

25
npm/ng-packs/packages/account-core/proxy/src/lib/proxy/account/models.ts

@ -1,5 +1,21 @@
import type { ExtensibleObject } from '@abp/ng.core'; import type { ExtensibleObject } from '@abp/ng.core';
export interface ChangePasswordInput {
currentPassword?: string;
newPassword: string;
}
export interface ProfileDto extends ExtensibleObject {
userName?: string;
email?: string;
name?: string;
surname?: string;
phoneNumber?: string;
isExternal: boolean;
hasPassword: boolean;
concurrencyStamp?: string;
}
export interface RegisterDto extends ExtensibleObject { export interface RegisterDto extends ExtensibleObject {
userName: string; userName: string;
emailAddress: string; emailAddress: string;
@ -19,3 +35,12 @@ export interface SendPasswordResetCodeDto {
returnUrl?: string; returnUrl?: string;
returnUrlHash?: string; returnUrlHash?: string;
} }
export interface UpdateProfileDto extends ExtensibleObject {
userName?: string;
email?: string;
name?: string;
surname?: string;
phoneNumber?: string;
concurrencyStamp?: string;
}

2560
npm/ng-packs/packages/account-core/proxy/src/lib/proxy/generate-proxy.json

File diff suppressed because it is too large

1
npm/ng-packs/packages/account-core/proxy/src/lib/proxy/identity/models.ts

@ -9,6 +9,7 @@ export interface IdentityUserDto extends ExtensibleFullAuditedEntityDto<string>
emailConfirmed: boolean; emailConfirmed: boolean;
phoneNumber?: string; phoneNumber?: string;
phoneNumberConfirmed: boolean; phoneNumberConfirmed: boolean;
isActive: boolean;
lockoutEnabled: boolean; lockoutEnabled: boolean;
lockoutEnd?: string; lockoutEnd?: string;
concurrencyStamp?: string; concurrencyStamp?: string;

2
npm/ng-packs/packages/account/ng-package.json

@ -4,5 +4,5 @@
"lib": { "lib": {
"entryFile": "src/public-api.ts" "entryFile": "src/public-api.ts"
}, },
"allowedNonPeerDependencies": ["@abp/ng.theme.shared", "@abp/ng.identity", "@abp/ng.account.core"] "allowedNonPeerDependencies": ["@abp/ng.theme.shared", "@abp/ng.account.core"]
} }

1
npm/ng-packs/packages/account/package.json

@ -8,7 +8,6 @@
}, },
"dependencies": { "dependencies": {
"@abp/ng.account.core": "~5.0.0-beta.2", "@abp/ng.account.core": "~5.0.0-beta.2",
"@abp/ng.identity": "~5.0.0-beta.2",
"@abp/ng.theme.shared": "~5.0.0-beta.2", "@abp/ng.theme.shared": "~5.0.0-beta.2",
"tslib": "^2.0.0" "tslib": "^2.0.0"
}, },

2
npm/ng-packs/packages/account/src/lib/components/change-password/change-password.component.ts

@ -1,4 +1,4 @@
import { ProfileService } from '@abp/ng.identity/proxy'; import { ProfileService } from '@abp/ng.account.core/proxy';
import { getPasswordValidators, ToasterService } from '@abp/ng.theme.shared'; import { getPasswordValidators, ToasterService } from '@abp/ng.theme.shared';
import { Component, Injector, OnInit } from '@angular/core'; import { Component, Injector, OnInit } from '@angular/core';
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'; import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';

2
npm/ng-packs/packages/account/src/lib/components/manage-profile/manage-profile.component.ts

@ -1,4 +1,4 @@
import { ProfileService } from '@abp/ng.identity/proxy'; import { ProfileService } from '@abp/ng.account.core/proxy';
import { fadeIn } from '@abp/ng.theme.shared'; import { fadeIn } from '@abp/ng.theme.shared';
import { transition, trigger, useAnimation } from '@angular/animations'; import { transition, trigger, useAnimation } from '@angular/animations';
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';

2
npm/ng-packs/packages/account/src/lib/components/personal-settings/personal-settings.component.ts

@ -1,4 +1,4 @@
import { ProfileService } from '@abp/ng.identity/proxy'; import { ProfileService } from '@abp/ng.account.core/proxy';
import { ToasterService } from '@abp/ng.theme.shared'; import { ToasterService } from '@abp/ng.theme.shared';
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { FormBuilder, FormGroup, Validators } from '@angular/forms';

2
npm/ng-packs/packages/account/src/lib/services/manage-profile.state.service.ts

@ -1,5 +1,5 @@
import { InternalStore } from '@abp/ng.core'; import { InternalStore } from '@abp/ng.core';
import { ProfileDto } from '@abp/ng.identity/proxy'; import { ProfileDto } from '@abp/ng.account.core/proxy';
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';

838
npm/ng-packs/packages/identity/proxy/src/lib/proxy/generate-proxy.json

@ -3,158 +3,6 @@
"identity" "identity"
], ],
"modules": { "modules": {
"featureManagement": {
"rootPath": "featureManagement",
"remoteServiceName": "AbpFeatureManagement",
"controllers": {
"Volo.Abp.FeatureManagement.FeaturesController": {
"controllerName": "Features",
"controllerGroupName": "Features",
"type": "Volo.Abp.FeatureManagement.FeaturesController",
"interfaces": [
{
"type": "Volo.Abp.FeatureManagement.IFeatureAppService"
}
],
"actions": {
"GetAsyncByProviderNameAndProviderKey": {
"uniqueName": "GetAsyncByProviderNameAndProviderKey",
"name": "GetAsync",
"httpMethod": "GET",
"url": "api/feature-management/features",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "providerName",
"typeAsString": "System.String, System.Private.CoreLib",
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
},
{
"name": "providerKey",
"typeAsString": "System.String, System.Private.CoreLib",
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "providerName",
"name": "providerName",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": ""
},
{
"nameOnMethod": "providerKey",
"name": "providerKey",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": ""
}
],
"returnValue": {
"type": "Volo.Abp.FeatureManagement.GetFeatureListResultDto",
"typeSimple": "Volo.Abp.FeatureManagement.GetFeatureListResultDto"
},
"allowAnonymous": null,
"implementFrom": "Volo.Abp.FeatureManagement.IFeatureAppService"
},
"UpdateAsyncByProviderNameAndProviderKeyAndInput": {
"uniqueName": "UpdateAsyncByProviderNameAndProviderKeyAndInput",
"name": "UpdateAsync",
"httpMethod": "PUT",
"url": "api/feature-management/features",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "providerName",
"typeAsString": "System.String, System.Private.CoreLib",
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
},
{
"name": "providerKey",
"typeAsString": "System.String, System.Private.CoreLib",
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
},
{
"name": "input",
"typeAsString": "Volo.Abp.FeatureManagement.UpdateFeaturesDto, Volo.Abp.FeatureManagement.Application.Contracts",
"type": "Volo.Abp.FeatureManagement.UpdateFeaturesDto",
"typeSimple": "Volo.Abp.FeatureManagement.UpdateFeaturesDto",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "providerName",
"name": "providerName",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": ""
},
{
"nameOnMethod": "providerKey",
"name": "providerKey",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": ""
},
{
"nameOnMethod": "input",
"name": "input",
"jsonName": null,
"type": "Volo.Abp.FeatureManagement.UpdateFeaturesDto",
"typeSimple": "Volo.Abp.FeatureManagement.UpdateFeaturesDto",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "Body",
"descriptorName": ""
}
],
"returnValue": {
"type": "System.Void",
"typeSimple": "System.Void"
},
"allowAnonymous": null,
"implementFrom": "Volo.Abp.FeatureManagement.IFeatureAppService"
}
}
}
}
},
"identity": { "identity": {
"rootPath": "identity", "rootPath": "identity",
"remoteServiceName": "AbpIdentity", "remoteServiceName": "AbpIdentity",
@ -1058,107 +906,6 @@
"implementFrom": "Volo.Abp.Identity.IIdentityUserLookupAppService" "implementFrom": "Volo.Abp.Identity.IIdentityUserLookupAppService"
} }
} }
},
"Volo.Abp.Identity.ProfileController": {
"controllerName": "Profile",
"controllerGroupName": "Profile",
"type": "Volo.Abp.Identity.ProfileController",
"interfaces": [
{
"type": "Volo.Abp.Identity.IProfileAppService"
}
],
"actions": {
"GetAsync": {
"uniqueName": "GetAsync",
"name": "GetAsync",
"httpMethod": "GET",
"url": "api/identity/my-profile",
"supportedVersions": [],
"parametersOnMethod": [],
"parameters": [],
"returnValue": {
"type": "Volo.Abp.Identity.ProfileDto",
"typeSimple": "Volo.Abp.Identity.ProfileDto"
},
"allowAnonymous": null,
"implementFrom": "Volo.Abp.Identity.IProfileAppService"
},
"UpdateAsyncByInput": {
"uniqueName": "UpdateAsyncByInput",
"name": "UpdateAsync",
"httpMethod": "PUT",
"url": "api/identity/my-profile",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "input",
"typeAsString": "Volo.Abp.Identity.UpdateProfileDto, Volo.Abp.Identity.Application.Contracts",
"type": "Volo.Abp.Identity.UpdateProfileDto",
"typeSimple": "Volo.Abp.Identity.UpdateProfileDto",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "input",
"name": "input",
"jsonName": null,
"type": "Volo.Abp.Identity.UpdateProfileDto",
"typeSimple": "Volo.Abp.Identity.UpdateProfileDto",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "Body",
"descriptorName": ""
}
],
"returnValue": {
"type": "Volo.Abp.Identity.ProfileDto",
"typeSimple": "Volo.Abp.Identity.ProfileDto"
},
"allowAnonymous": null,
"implementFrom": "Volo.Abp.Identity.IProfileAppService"
},
"ChangePasswordAsyncByInput": {
"uniqueName": "ChangePasswordAsyncByInput",
"name": "ChangePasswordAsync",
"httpMethod": "POST",
"url": "api/identity/my-profile/change-password",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "input",
"typeAsString": "Volo.Abp.Identity.ChangePasswordInput, Volo.Abp.Identity.Application.Contracts",
"type": "Volo.Abp.Identity.ChangePasswordInput",
"typeSimple": "Volo.Abp.Identity.ChangePasswordInput",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "input",
"name": "input",
"jsonName": null,
"type": "Volo.Abp.Identity.ChangePasswordInput",
"typeSimple": "Volo.Abp.Identity.ChangePasswordInput",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "Body",
"descriptorName": ""
}
],
"returnValue": {
"type": "System.Void",
"typeSimple": "System.Void"
},
"allowAnonymous": null,
"implementFrom": "Volo.Abp.Identity.IProfileAppService"
}
}
} }
} }
}, },
@ -1385,35 +1132,136 @@
"implementFrom": "Volo.Abp.Account.Web.Areas.Account.Controllers.AccountController" "implementFrom": "Volo.Abp.Account.Web.Areas.Account.Controllers.AccountController"
} }
} }
} },
} "Volo.Abp.Account.ProfileController": {
}, "controllerName": "Profile",
"multi-tenancy": { "controllerGroupName": "Profile",
"rootPath": "multi-tenancy", "type": "Volo.Abp.Account.ProfileController",
"remoteServiceName": "AbpTenantManagement",
"controllers": {
"Volo.Abp.TenantManagement.TenantController": {
"controllerName": "Tenant",
"controllerGroupName": "Tenant",
"type": "Volo.Abp.TenantManagement.TenantController",
"interfaces": [ "interfaces": [
{ {
"type": "Volo.Abp.TenantManagement.ITenantAppService" "type": "Volo.Abp.Account.IProfileAppService"
} }
], ],
"actions": { "actions": {
"GetAsyncById": { "GetAsync": {
"uniqueName": "GetAsyncById", "uniqueName": "GetAsync",
"name": "GetAsync", "name": "GetAsync",
"httpMethod": "GET", "httpMethod": "GET",
"url": "api/multi-tenancy/tenants/{id}", "url": "api/account/my-profile",
"supportedVersions": [], "supportedVersions": [],
"parametersOnMethod": [ "parametersOnMethod": [],
{ "parameters": [],
"name": "id", "returnValue": {
"typeAsString": "System.Guid, System.Private.CoreLib", "type": "Volo.Abp.Account.ProfileDto",
"type": "System.Guid", "typeSimple": "Volo.Abp.Account.ProfileDto"
"typeSimple": "string", },
"allowAnonymous": null,
"implementFrom": "Volo.Abp.Account.IProfileAppService"
},
"UpdateAsyncByInput": {
"uniqueName": "UpdateAsyncByInput",
"name": "UpdateAsync",
"httpMethod": "PUT",
"url": "api/account/my-profile",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "input",
"typeAsString": "Volo.Abp.Account.UpdateProfileDto, Volo.Abp.Account.Application.Contracts",
"type": "Volo.Abp.Account.UpdateProfileDto",
"typeSimple": "Volo.Abp.Account.UpdateProfileDto",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "input",
"name": "input",
"jsonName": null,
"type": "Volo.Abp.Account.UpdateProfileDto",
"typeSimple": "Volo.Abp.Account.UpdateProfileDto",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "Body",
"descriptorName": ""
}
],
"returnValue": {
"type": "Volo.Abp.Account.ProfileDto",
"typeSimple": "Volo.Abp.Account.ProfileDto"
},
"allowAnonymous": null,
"implementFrom": "Volo.Abp.Account.IProfileAppService"
},
"ChangePasswordAsyncByInput": {
"uniqueName": "ChangePasswordAsyncByInput",
"name": "ChangePasswordAsync",
"httpMethod": "POST",
"url": "api/account/my-profile/change-password",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "input",
"typeAsString": "Volo.Abp.Account.ChangePasswordInput, Volo.Abp.Account.Application.Contracts",
"type": "Volo.Abp.Account.ChangePasswordInput",
"typeSimple": "Volo.Abp.Account.ChangePasswordInput",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "input",
"name": "input",
"jsonName": null,
"type": "Volo.Abp.Account.ChangePasswordInput",
"typeSimple": "Volo.Abp.Account.ChangePasswordInput",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "Body",
"descriptorName": ""
}
],
"returnValue": {
"type": "System.Void",
"typeSimple": "System.Void"
},
"allowAnonymous": null,
"implementFrom": "Volo.Abp.Account.IProfileAppService"
}
}
}
}
},
"multi-tenancy": {
"rootPath": "multi-tenancy",
"remoteServiceName": "AbpTenantManagement",
"controllers": {
"Volo.Abp.TenantManagement.TenantController": {
"controllerName": "Tenant",
"controllerGroupName": "Tenant",
"type": "Volo.Abp.TenantManagement.TenantController",
"interfaces": [
{
"type": "Volo.Abp.TenantManagement.ITenantAppService"
}
],
"actions": {
"GetAsyncById": {
"uniqueName": "GetAsyncById",
"name": "GetAsync",
"httpMethod": "GET",
"url": "api/multi-tenancy/tenants/{id}",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "id",
"typeAsString": "System.Guid, System.Private.CoreLib",
"type": "System.Guid",
"typeSimple": "string",
"isOptional": false, "isOptional": false,
"defaultValue": null "defaultValue": null
} }
@ -2163,6 +2011,158 @@
} }
} }
} }
},
"featureManagement": {
"rootPath": "featureManagement",
"remoteServiceName": "AbpFeatureManagement",
"controllers": {
"Volo.Abp.FeatureManagement.FeaturesController": {
"controllerName": "Features",
"controllerGroupName": "Features",
"type": "Volo.Abp.FeatureManagement.FeaturesController",
"interfaces": [
{
"type": "Volo.Abp.FeatureManagement.IFeatureAppService"
}
],
"actions": {
"GetAsyncByProviderNameAndProviderKey": {
"uniqueName": "GetAsyncByProviderNameAndProviderKey",
"name": "GetAsync",
"httpMethod": "GET",
"url": "api/feature-management/features",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "providerName",
"typeAsString": "System.String, System.Private.CoreLib",
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
},
{
"name": "providerKey",
"typeAsString": "System.String, System.Private.CoreLib",
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "providerName",
"name": "providerName",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": ""
},
{
"nameOnMethod": "providerKey",
"name": "providerKey",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": ""
}
],
"returnValue": {
"type": "Volo.Abp.FeatureManagement.GetFeatureListResultDto",
"typeSimple": "Volo.Abp.FeatureManagement.GetFeatureListResultDto"
},
"allowAnonymous": null,
"implementFrom": "Volo.Abp.FeatureManagement.IFeatureAppService"
},
"UpdateAsyncByProviderNameAndProviderKeyAndInput": {
"uniqueName": "UpdateAsyncByProviderNameAndProviderKeyAndInput",
"name": "UpdateAsync",
"httpMethod": "PUT",
"url": "api/feature-management/features",
"supportedVersions": [],
"parametersOnMethod": [
{
"name": "providerName",
"typeAsString": "System.String, System.Private.CoreLib",
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
},
{
"name": "providerKey",
"typeAsString": "System.String, System.Private.CoreLib",
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null
},
{
"name": "input",
"typeAsString": "Volo.Abp.FeatureManagement.UpdateFeaturesDto, Volo.Abp.FeatureManagement.Application.Contracts",
"type": "Volo.Abp.FeatureManagement.UpdateFeaturesDto",
"typeSimple": "Volo.Abp.FeatureManagement.UpdateFeaturesDto",
"isOptional": false,
"defaultValue": null
}
],
"parameters": [
{
"nameOnMethod": "providerName",
"name": "providerName",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": ""
},
{
"nameOnMethod": "providerKey",
"name": "providerKey",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "ModelBinding",
"descriptorName": ""
},
{
"nameOnMethod": "input",
"name": "input",
"jsonName": null,
"type": "Volo.Abp.FeatureManagement.UpdateFeaturesDto",
"typeSimple": "Volo.Abp.FeatureManagement.UpdateFeaturesDto",
"isOptional": false,
"defaultValue": null,
"constraintTypes": null,
"bindingSourceId": "Body",
"descriptorName": ""
}
],
"returnValue": {
"type": "System.Void",
"typeSimple": "System.Void"
},
"allowAnonymous": null,
"implementFrom": "Volo.Abp.FeatureManagement.IFeatureAppService"
}
}
}
}
} }
}, },
"types": { "types": {
@ -2552,22 +2552,161 @@
"genericArguments": null, "genericArguments": null,
"properties": null "properties": null
}, },
"Volo.Abp.AspNetCore.Mvc.MultiTenancy.FindTenantResultDto": { "Volo.Abp.Account.ProfileDto": {
"baseType": null, "baseType": "Volo.Abp.ObjectExtending.ExtensibleObject",
"isEnum": false, "isEnum": false,
"enumNames": null, "enumNames": null,
"enumValues": null, "enumValues": null,
"genericArguments": null, "genericArguments": null,
"properties": [ "properties": [
{ {
"name": "Success", "name": "UserName",
"jsonName": null, "jsonName": null,
"type": "System.Boolean", "type": "System.String",
"typeSimple": "boolean", "typeSimple": "string",
"isRequired": false "isRequired": false
}, },
{ {
"name": "TenantId", "name": "Email",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "Name",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "Surname",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "PhoneNumber",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "IsExternal",
"jsonName": null,
"type": "System.Boolean",
"typeSimple": "boolean",
"isRequired": false
},
{
"name": "HasPassword",
"jsonName": null,
"type": "System.Boolean",
"typeSimple": "boolean",
"isRequired": false
},
{
"name": "ConcurrencyStamp",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
}
]
},
"Volo.Abp.Account.UpdateProfileDto": {
"baseType": "Volo.Abp.ObjectExtending.ExtensibleObject",
"isEnum": false,
"enumNames": null,
"enumValues": null,
"genericArguments": null,
"properties": [
{
"name": "UserName",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "Email",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "Name",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "Surname",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "PhoneNumber",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "ConcurrencyStamp",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
}
]
},
"Volo.Abp.Account.ChangePasswordInput": {
"baseType": null,
"isEnum": false,
"enumNames": null,
"enumValues": null,
"genericArguments": null,
"properties": [
{
"name": "CurrentPassword",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "NewPassword",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": true
}
]
},
"Volo.Abp.AspNetCore.Mvc.MultiTenancy.FindTenantResultDto": {
"baseType": null,
"isEnum": false,
"enumNames": null,
"enumValues": null,
"genericArguments": null,
"properties": [
{
"name": "Success",
"jsonName": null,
"type": "System.Boolean",
"typeSimple": "boolean",
"isRequired": false
},
{
"name": "TenantId",
"jsonName": null, "jsonName": null,
"type": "System.Guid?", "type": "System.Guid?",
"typeSimple": "string?", "typeSimple": "string?",
@ -3041,145 +3180,6 @@
} }
] ]
}, },
"Volo.Abp.Identity.ProfileDto": {
"baseType": "Volo.Abp.ObjectExtending.ExtensibleObject",
"isEnum": false,
"enumNames": null,
"enumValues": null,
"genericArguments": null,
"properties": [
{
"name": "UserName",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "Email",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "Name",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "Surname",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "PhoneNumber",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "IsExternal",
"jsonName": null,
"type": "System.Boolean",
"typeSimple": "boolean",
"isRequired": false
},
{
"name": "HasPassword",
"jsonName": null,
"type": "System.Boolean",
"typeSimple": "boolean",
"isRequired": false
},
{
"name": "ConcurrencyStamp",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
}
]
},
"Volo.Abp.Identity.UpdateProfileDto": {
"baseType": "Volo.Abp.ObjectExtending.ExtensibleObject",
"isEnum": false,
"enumNames": null,
"enumValues": null,
"genericArguments": null,
"properties": [
{
"name": "UserName",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "Email",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "Name",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "Surname",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "PhoneNumber",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "ConcurrencyStamp",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
}
]
},
"Volo.Abp.Identity.ChangePasswordInput": {
"baseType": null,
"isEnum": false,
"enumNames": null,
"enumValues": null,
"genericArguments": null,
"properties": [
{
"name": "CurrentPassword",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": false
},
{
"name": "NewPassword",
"jsonName": null,
"type": "System.String",
"typeSimple": "string",
"isRequired": true
}
]
},
"Volo.Abp.PermissionManagement.GetPermissionListResultDto": { "Volo.Abp.PermissionManagement.GetPermissionListResultDto": {
"baseType": null, "baseType": null,
"isEnum": false, "isEnum": false,

1
npm/ng-packs/packages/identity/proxy/src/lib/proxy/identity/index.ts

@ -2,4 +2,3 @@ export * from './identity-role.service';
export * from './identity-user-lookup.service'; export * from './identity-user-lookup.service';
export * from './identity-user.service'; export * from './identity-user.service';
export * from './models'; export * from './models';
export * from './profile.service';

35
npm/ng-packs/packages/identity/proxy/src/lib/proxy/identity/models.ts

@ -1,9 +1,9 @@
import type { ExtensibleEntityDto, ExtensibleFullAuditedEntityDto, ExtensibleObject, PagedAndSortedResultRequestDto } from '@abp/ng.core'; import type {
ExtensibleEntityDto,
export interface ChangePasswordInput { ExtensibleFullAuditedEntityDto,
currentPassword?: string; ExtensibleObject,
newPassword: string; PagedAndSortedResultRequestDto,
} } from '@abp/ng.core';
export interface GetIdentityRolesInput extends PagedAndSortedResultRequestDto { export interface GetIdentityRolesInput extends PagedAndSortedResultRequestDto {
filter?: string; filter?: string;
@ -13,8 +13,7 @@ export interface GetIdentityUsersInput extends PagedAndSortedResultRequestDto {
filter?: string; filter?: string;
} }
export interface IdentityRoleCreateDto extends IdentityRoleCreateOrUpdateDtoBase { export interface IdentityRoleCreateDto extends IdentityRoleCreateOrUpdateDtoBase {}
}
export interface IdentityRoleCreateOrUpdateDtoBase extends ExtensibleObject { export interface IdentityRoleCreateOrUpdateDtoBase extends ExtensibleObject {
name: string; name: string;
@ -73,26 +72,6 @@ export interface IdentityUserUpdateRolesDto {
roleNames: string[]; roleNames: string[];
} }
export interface ProfileDto extends ExtensibleObject {
userName?: string;
email?: string;
name?: string;
surname?: string;
phoneNumber?: string;
isExternal: boolean;
hasPassword: boolean;
concurrencyStamp?: string;
}
export interface UpdateProfileDto extends ExtensibleObject {
userName?: string;
email?: string;
name?: string;
surname?: string;
phoneNumber?: string;
concurrencyStamp?: string;
}
export interface UserLookupCountInputDto { export interface UserLookupCountInputDto {
filter?: string; filter?: string;
} }

35
npm/ng-packs/packages/identity/proxy/src/lib/proxy/identity/profile.service.ts

@ -1,35 +0,0 @@
import type { ChangePasswordInput, ProfileDto, UpdateProfileDto } from './models';
import { RestService } from '@abp/ng.core';
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root',
})
export class ProfileService {
apiName = 'AbpIdentity';
changePassword = (input: ChangePasswordInput) =>
this.restService.request<any, void>({
method: 'POST',
url: '/api/identity/my-profile/change-password',
body: input,
},
{ apiName: this.apiName });
get = () =>
this.restService.request<any, ProfileDto>({
method: 'GET',
url: '/api/identity/my-profile',
},
{ apiName: this.apiName });
update = (input: UpdateProfileDto) =>
this.restService.request<any, ProfileDto>({
method: 'PUT',
url: '/api/identity/my-profile',
body: input,
},
{ apiName: this.apiName });
constructor(private restService: RestService) {}
}
Loading…
Cancel
Save