Browse Source

Extend ABP proxy JSON & add multi-tenancy exports

Update generated proxy metadata and related ABP exports. The generate-proxy.json was extended with many Account endpoints (email/phone confirmation, two-factor, profile picture upload/download, security logs, confirmation checks, etc.), added authorizeDatas fields, and switched Account contract type references to the Pro.Public.Application.Contracts package while changing the account remoteServiceName to AbpAccountPublic. Also add multi-tenancy index and tenant-user-sharing-strategy enum exports and update several Volo.Abp model/index files to reflect these API and model changes to support ABP Pro public account and multi-tenancy features.
pull/25051/head
Fahri Gedik 7 months ago
parent
commit
2b488341c8
  1. 52038
      npm/ng-packs/packages/core/src/lib/proxy/generate-proxy.json
  2. 82
      npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/models.ts
  3. 30
      npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models.ts
  4. 93
      npm/ng-packs/packages/core/src/lib/proxy/volo/abp/http/modeling/models.ts
  5. 3
      npm/ng-packs/packages/core/src/lib/proxy/volo/abp/index.ts
  6. 1
      npm/ng-packs/packages/core/src/lib/proxy/volo/abp/multi-tenancy/index.ts
  7. 8
      npm/ng-packs/packages/core/src/lib/proxy/volo/abp/multi-tenancy/tenant-user-sharing-strategy.enum.ts

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

File diff suppressed because it is too large

82
npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/object-extending/models.ts

@ -1,62 +1,84 @@
export interface EntityExtensionDto { export interface EntityExtensionDto {
properties: Record<string, ExtensionPropertyDto>; properties?: Record<string, ExtensionPropertyDto>;
configuration: Record<string, object>; configuration?: Record<string, object>;
} }
export interface ExtensionEnumDto { export interface ExtensionEnumDto {
fields: ExtensionEnumFieldDto[]; fields?: ExtensionEnumFieldDto[];
localizationResource?: string; localizationResource?: string | null;
} }
export interface ExtensionEnumFieldDto { export interface ExtensionEnumFieldDto {
name?: string; name?: string | null;
value: object; value?: object | null;
} }
export interface ExtensionPropertyApiCreateDto { export interface ExtensionPropertyApiCreateDto {
isAvailable: boolean; isAvailable?: boolean;
} }
export interface ExtensionPropertyApiDto { export interface ExtensionPropertyApiDto {
onGet: ExtensionPropertyApiGetDto; onGet?: ExtensionPropertyApiGetDto;
onCreate: ExtensionPropertyApiCreateDto; onCreate?: ExtensionPropertyApiCreateDto;
onUpdate: ExtensionPropertyApiUpdateDto; onUpdate?: ExtensionPropertyApiUpdateDto;
} }
export interface ExtensionPropertyApiGetDto { export interface ExtensionPropertyApiGetDto {
isAvailable: boolean; isAvailable?: boolean;
} }
export interface ExtensionPropertyApiUpdateDto { export interface ExtensionPropertyApiUpdateDto {
isAvailable: boolean; isAvailable?: boolean;
} }
export interface ExtensionPropertyAttributeDto { export interface ExtensionPropertyAttributeDto {
typeSimple?: string; typeSimple?: string;
config: Record<string, object>; config?: Record<string, object>;
} }
export interface ExtensionPropertyDto { export interface ExtensionPropertyDto {
type?: string; type?: string;
typeSimple?: string; typeSimple?: string;
displayName: LocalizableStringDto; displayName?: LocalizableStringDto | null;
api: ExtensionPropertyApiDto; api?: ExtensionPropertyApiDto;
ui: ExtensionPropertyUiDto; ui?: ExtensionPropertyUiDto;
attributes: ExtensionPropertyAttributeDto[]; policy?: ExtensionPropertyPolicyDto;
configuration: Record<string, object>; attributes?: ExtensionPropertyAttributeDto[];
defaultValue: object; configuration?: Record<string, object>;
defaultValue?: object | null;
}
export interface ExtensionPropertyFeaturePolicyDto {
features?: string[];
requiresAll?: boolean;
}
export interface ExtensionPropertyGlobalFeaturePolicyDto {
features?: string[];
requiresAll?: boolean;
}
export interface ExtensionPropertyPermissionPolicyDto {
permissionNames?: string[];
requiresAll?: boolean;
}
export interface ExtensionPropertyPolicyDto {
globalFeatures?: ExtensionPropertyGlobalFeaturePolicyDto;
features?: ExtensionPropertyFeaturePolicyDto;
permissions?: ExtensionPropertyPermissionPolicyDto;
} }
export interface ExtensionPropertyUiDto { export interface ExtensionPropertyUiDto {
onTable: ExtensionPropertyUiTableDto; onTable?: ExtensionPropertyUiTableDto;
onCreateForm: ExtensionPropertyUiFormDto; onCreateForm?: ExtensionPropertyUiFormDto;
onEditForm: ExtensionPropertyUiFormDto; onEditForm?: ExtensionPropertyUiFormDto;
lookup: ExtensionPropertyUiLookupDto; lookup?: ExtensionPropertyUiLookupDto;
} }
export interface ExtensionPropertyUiFormDto { export interface ExtensionPropertyUiFormDto {
isVisible: boolean; isVisible?: boolean;
} }
export interface ExtensionPropertyUiLookupDto { export interface ExtensionPropertyUiLookupDto {
@ -68,20 +90,20 @@ export interface ExtensionPropertyUiLookupDto {
} }
export interface ExtensionPropertyUiTableDto { export interface ExtensionPropertyUiTableDto {
isVisible: boolean; isVisible?: boolean;
} }
export interface LocalizableStringDto { export interface LocalizableStringDto {
name?: string; name?: string;
resource?: string; resource?: string | null;
} }
export interface ModuleExtensionDto { export interface ModuleExtensionDto {
entities: Record<string, EntityExtensionDto>; entities?: Record<string, EntityExtensionDto>;
configuration: Record<string, object>; configuration?: Record<string, object>;
} }
export interface ObjectExtensionsDto { export interface ObjectExtensionsDto {
modules: Record<string, ModuleExtensionDto>; modules?: Record<string, ModuleExtensionDto>;
enums: Record<string, ExtensionEnumDto>; enums?: Record<string, ExtensionEnumDto>;
} }

30
npm/ng-packs/packages/core/src/lib/proxy/volo/abp/asp-net-core/mvc/multi-tenancy/models.ts

@ -1,24 +1,20 @@
import type { TenantUserSharingStrategy } from '../../../multi-tenancy/tenant-user-sharing-strategy.enum';
export interface FindTenantResultDto { export interface FindTenantResultDto {
success: boolean; success?: boolean;
tenantId?: string; tenantId?: string | null;
name?: string; name?: string | null;
normalizedName?: string; normalizedName?: string | null;
isActive: boolean; isActive?: boolean;
} }
export interface CurrentTenantDto { export interface CurrentTenantDto {
id?: string; id?: string | null;
name?: string; name?: string | null;
isAvailable: boolean; isAvailable?: boolean;
} }
export enum TenantUserSharingStrategy { export interface MultiTenancyInfoDto {
Isolated = 0, isEnabled?: boolean;
Shared = 1, userSharingStrategy?: TenantUserSharingStrategy;
} }
export interface MultiTenancyInfoDto {
isEnabled: boolean;
userSharingStrategy?: TenantUserSharingStrategy;
}

93
npm/ng-packs/packages/core/src/lib/proxy/volo/abp/http/modeling/models.ts

@ -2,46 +2,52 @@
export interface ActionApiDescriptionModel { export interface ActionApiDescriptionModel {
uniqueName?: string; uniqueName?: string;
name?: string; name?: string;
httpMethod?: string; httpMethod?: string | null;
url?: string; url?: string;
supportedVersions: string[]; supportedVersions?: string[] | null;
parametersOnMethod: MethodParameterApiDescriptionModel[]; parametersOnMethod?: MethodParameterApiDescriptionModel[];
parameters: ParameterApiDescriptionModel[]; parameters?: ParameterApiDescriptionModel[];
returnValue: ReturnValueApiDescriptionModel; returnValue?: ReturnValueApiDescriptionModel;
allowAnonymous?: boolean; allowAnonymous?: boolean | null;
implementFrom?: string; authorizeDatas?: AuthorizeDataApiDescriptionModel[];
implementFrom?: string | null;
} }
export interface ApplicationApiDescriptionModel { export interface ApplicationApiDescriptionModel {
modules: Record<string, ModuleApiDescriptionModel>; modules?: Record<string, ModuleApiDescriptionModel>;
types: Record<string, TypeApiDescriptionModel>; types?: Record<string, TypeApiDescriptionModel>;
} }
export interface ApplicationApiDescriptionModelRequestDto { export interface ApplicationApiDescriptionModelRequestDto {
includeTypes: boolean; includeTypes?: boolean;
}
export interface AuthorizeDataApiDescriptionModel {
policy?: string | null;
roles?: string | null;
} }
export interface ControllerApiDescriptionModel { export interface ControllerApiDescriptionModel {
controllerName?: string; controllerName?: string;
controllerGroupName?: string; controllerGroupName?: string | null;
isRemoteService: boolean; isRemoteService?: boolean;
isIntegrationService: boolean; isIntegrationService?: boolean;
apiVersion?: string; apiVersion?: string | null;
type?: string; type?: string;
interfaces: ControllerInterfaceApiDescriptionModel[]; interfaces?: ControllerInterfaceApiDescriptionModel[];
actions: Record<string, ActionApiDescriptionModel>; actions?: Record<string, ActionApiDescriptionModel>;
} }
export interface ControllerInterfaceApiDescriptionModel { export interface ControllerInterfaceApiDescriptionModel {
type?: string; type?: string;
name?: string; name?: string;
methods: InterfaceMethodApiDescriptionModel[]; methods?: InterfaceMethodApiDescriptionModel[];
} }
export interface InterfaceMethodApiDescriptionModel { export interface InterfaceMethodApiDescriptionModel {
name?: string; name?: string;
parametersOnMethod: MethodParameterApiDescriptionModel[]; parametersOnMethod?: MethodParameterApiDescriptionModel[];
returnValue: ReturnValueApiDescriptionModel; returnValue?: ReturnValueApiDescriptionModel;
} }
export interface MethodParameterApiDescriptionModel { export interface MethodParameterApiDescriptionModel {
@ -49,40 +55,41 @@ export interface MethodParameterApiDescriptionModel {
typeAsString?: string; typeAsString?: string;
type?: string; type?: string;
typeSimple?: string; typeSimple?: string;
isOptional: boolean; isOptional?: boolean;
defaultValue: object; defaultValue?: object | null;
} }
export interface ModuleApiDescriptionModel { export interface ModuleApiDescriptionModel {
rootPath?: string; rootPath?: string;
remoteServiceName?: string; remoteServiceName?: string;
controllers: Record<string, ControllerApiDescriptionModel>; controllers?: Record<string, ControllerApiDescriptionModel>;
} }
export interface ParameterApiDescriptionModel { export interface ParameterApiDescriptionModel {
nameOnMethod?: string; nameOnMethod?: string;
name?: string; name?: string;
jsonName?: string; jsonName?: string | null;
type?: string; type?: string | null;
typeSimple?: string; typeSimple?: string | null;
isOptional: boolean; isOptional?: boolean;
defaultValue: object; defaultValue?: object | null;
constraintTypes: string[]; constraintTypes?: string[] | null;
bindingSourceId?: string; bindingSourceId?: string | null;
descriptorName?: string; descriptorName?: string | null;
} }
export interface PropertyApiDescriptionModel { export interface PropertyApiDescriptionModel {
name?: string; name?: string;
jsonName?: string; jsonName?: string | null;
type?: string; type?: string;
typeSimple?: string; typeSimple?: string;
isRequired: boolean; isRequired?: boolean;
minLength?: number; minLength?: number | null;
maxLength?: number; maxLength?: number | null;
minimum?: string; minimum?: string | null;
maximum?: string; maximum?: string | null;
regex?: string; regex?: string | null;
isNullable?: boolean;
} }
export interface ReturnValueApiDescriptionModel { export interface ReturnValueApiDescriptionModel {
@ -91,10 +98,10 @@ export interface ReturnValueApiDescriptionModel {
} }
export interface TypeApiDescriptionModel { export interface TypeApiDescriptionModel {
baseType?: string; baseType?: string | null;
isEnum: boolean; isEnum?: boolean;
enumNames: string[]; enumNames?: string[] | null;
enumValues: object[]; enumValues?: object[] | null;
genericArguments: string[]; genericArguments?: string[] | null;
properties: PropertyApiDescriptionModel[]; properties?: PropertyApiDescriptionModel[] | null;
} }

3
npm/ng-packs/packages/core/src/lib/proxy/volo/abp/index.ts

@ -1,5 +1,6 @@
import * as AspNetCore from './asp-net-core'; import * as AspNetCore from './asp-net-core';
import * as Http from './http'; import * as Http from './http';
import * as Localization from './localization'; import * as Localization from './localization';
import * as MultiTenancy from './multi-tenancy';
export * from './models'; export * from './models';
export { AspNetCore, Http, Localization }; export { AspNetCore, Http, Localization, MultiTenancy };

1
npm/ng-packs/packages/core/src/lib/proxy/volo/abp/multi-tenancy/index.ts

@ -0,0 +1 @@
export * from './tenant-user-sharing-strategy.enum';

8
npm/ng-packs/packages/core/src/lib/proxy/volo/abp/multi-tenancy/tenant-user-sharing-strategy.enum.ts

@ -0,0 +1,8 @@
import { mapEnumToOptions } from '@abp/ng.core';
export enum TenantUserSharingStrategy {
Isolated = 0,
Shared = 1,
}
export const tenantUserSharingStrategyOptions = mapEnumToOptions(TenantUserSharingStrategy);
Loading…
Cancel
Save