mirror of https://github.com/abpframework/abp.git
48 changed files with 6571 additions and 162 deletions
File diff suppressed because it is too large
@ -0,0 +1,17 @@ |
|||||
|
# Proxy Generation Output |
||||
|
|
||||
|
This directory includes the output of the latest proxy generation. |
||||
|
The files and folders in it will be overwritten when proxy generation is run again. |
||||
|
Therefore, please do not place your own content in this folder. |
||||
|
|
||||
|
In addition, `generate-proxy.json` works like a lock file. |
||||
|
It includes information used by the proxy generator, so please do not delete or modify it. |
||||
|
|
||||
|
Finally, the name of the files and folders should not be changed for two reasons: |
||||
|
- Proxy generator will keep creating them at those paths and you will have multiple copies of the same content. |
||||
|
- ABP Suite generates files which include imports from this folder. |
||||
|
|
||||
|
> **Important Notice:** If you are building a module and are planning to publish to npm, |
||||
|
> some of the generated proxies are likely to be exported from public-api.ts file. In such a case, |
||||
|
> please make sure you export files directly and not from barrel exports. In other words, |
||||
|
> do not include index.ts exports in your public-api.ts exports. |
||||
File diff suppressed because it is too large
@ -0,0 +1,3 @@ |
|||||
|
import * as Pages from './pages'; |
||||
|
import * as Volo from './volo'; |
||||
|
export { Pages, Volo }; |
||||
@ -0,0 +1,2 @@ |
|||||
|
import * as MultiTenancy from './multi-tenancy'; |
||||
|
export { MultiTenancy }; |
||||
@ -0,0 +1,26 @@ |
|||||
|
import { RestService } from '@abp/ng.core'; |
||||
|
import { Injectable } from '@angular/core'; |
||||
|
import type { FindTenantResultDto } from '../../../volo/abp/asp-net-core/mvc/multi-tenancy/models'; |
||||
|
|
||||
|
@Injectable({ |
||||
|
providedIn: 'root', |
||||
|
}) |
||||
|
export class AbpTenantService { |
||||
|
apiName = 'abp'; |
||||
|
|
||||
|
findTenantById = (id: string) => |
||||
|
this.restService.request<any, FindTenantResultDto>({ |
||||
|
method: 'GET', |
||||
|
url: `/api/abp/multi-tenancy/tenants/by-id/${id}`, |
||||
|
}, |
||||
|
{ apiName: this.apiName }); |
||||
|
|
||||
|
findTenantByName = (name: string) => |
||||
|
this.restService.request<any, FindTenantResultDto>({ |
||||
|
method: 'GET', |
||||
|
url: `/api/abp/multi-tenancy/tenants/by-name/${name}`, |
||||
|
}, |
||||
|
{ apiName: this.apiName }); |
||||
|
|
||||
|
constructor(private restService: RestService) {} |
||||
|
} |
||||
@ -0,0 +1 @@ |
|||||
|
export * from './abp-tenant.service'; |
||||
@ -0,0 +1,2 @@ |
|||||
|
import * as Abp from './abp'; |
||||
|
export { Abp }; |
||||
@ -0,0 +1,2 @@ |
|||||
|
import * as Mvc from './mvc'; |
||||
|
export { Mvc }; |
||||
@ -0,0 +1,20 @@ |
|||||
|
import { RestService } from '@abp/ng.core'; |
||||
|
import { Injectable } from '@angular/core'; |
||||
|
import type { ApplicationApiDescriptionModel, ApplicationApiDescriptionModelRequestDto } from '../../../http/modeling/models'; |
||||
|
|
||||
|
@Injectable({ |
||||
|
providedIn: 'root', |
||||
|
}) |
||||
|
export class AbpApiDefinitionService { |
||||
|
apiName = 'abp'; |
||||
|
|
||||
|
getByModel = (model: ApplicationApiDescriptionModelRequestDto) => |
||||
|
this.restService.request<any, ApplicationApiDescriptionModel>({ |
||||
|
method: 'GET', |
||||
|
url: '/api/abp/api-definition', |
||||
|
params: { includeTypes: model.includeTypes }, |
||||
|
}, |
||||
|
{ apiName: this.apiName }); |
||||
|
|
||||
|
constructor(private restService: RestService) {} |
||||
|
} |
||||
@ -0,0 +1 @@ |
|||||
|
export * from './abp-api-definition.service'; |
||||
@ -0,0 +1,19 @@ |
|||||
|
import type { ApplicationConfigurationDto } from './models'; |
||||
|
import { RestService } from '@abp/ng.core'; |
||||
|
import { Injectable } from '@angular/core'; |
||||
|
|
||||
|
@Injectable({ |
||||
|
providedIn: 'root', |
||||
|
}) |
||||
|
export class AbpApplicationConfigurationService { |
||||
|
apiName = 'abp'; |
||||
|
|
||||
|
get = () => |
||||
|
this.restService.request<any, ApplicationConfigurationDto>({ |
||||
|
method: 'GET', |
||||
|
url: '/api/abp/application-configuration', |
||||
|
}, |
||||
|
{ apiName: this.apiName }); |
||||
|
|
||||
|
constructor(private restService: RestService) {} |
||||
|
} |
||||
@ -0,0 +1,4 @@ |
|||||
|
import * as ObjectExtending from './object-extending'; |
||||
|
export * from './abp-application-configuration.service'; |
||||
|
export * from './models'; |
||||
|
export { ObjectExtending }; |
||||
@ -0,0 +1,96 @@ |
|||||
|
import type { CurrentTenantDto, MultiTenancyInfoDto } from '../multi-tenancy/models'; |
||||
|
import type { ObjectExtensionsDto } from './object-extending/models'; |
||||
|
import type { LanguageInfo } from '../../../localization/models'; |
||||
|
import type { NameValue } from '../../../models'; |
||||
|
|
||||
|
export interface ApplicationAuthConfigurationDto { |
||||
|
policies: Record<string, boolean>; |
||||
|
grantedPolicies: Record<string, boolean>; |
||||
|
} |
||||
|
|
||||
|
export interface ApplicationConfigurationDto { |
||||
|
localization: ApplicationLocalizationConfigurationDto; |
||||
|
auth: ApplicationAuthConfigurationDto; |
||||
|
setting: ApplicationSettingConfigurationDto; |
||||
|
currentUser: CurrentUserDto; |
||||
|
features: ApplicationFeatureConfigurationDto; |
||||
|
multiTenancy: MultiTenancyInfoDto; |
||||
|
currentTenant: CurrentTenantDto; |
||||
|
timing: TimingDto; |
||||
|
clock: ClockDto; |
||||
|
objectExtensions: ObjectExtensionsDto; |
||||
|
} |
||||
|
|
||||
|
export interface ApplicationFeatureConfigurationDto { |
||||
|
values: Record<string, string>; |
||||
|
} |
||||
|
|
||||
|
export interface ApplicationLocalizationConfigurationDto { |
||||
|
values: Record<string, Dictionary<string, string>>; |
||||
|
languages: LanguageInfo[]; |
||||
|
currentCulture: CurrentCultureDto; |
||||
|
defaultResourceName?: string; |
||||
|
languagesMap: Record<string, NameValue[]>; |
||||
|
languageFilesMap: Record<string, NameValue[]>; |
||||
|
} |
||||
|
|
||||
|
export interface ApplicationSettingConfigurationDto { |
||||
|
values: Record<string, string>; |
||||
|
} |
||||
|
|
||||
|
export interface ClockDto { |
||||
|
kind?: string; |
||||
|
} |
||||
|
|
||||
|
export interface CurrentCultureDto { |
||||
|
displayName?: string; |
||||
|
englishName?: string; |
||||
|
threeLetterIsoLanguageName?: string; |
||||
|
twoLetterIsoLanguageName?: string; |
||||
|
isRightToLeft: boolean; |
||||
|
cultureName?: string; |
||||
|
name?: string; |
||||
|
nativeName?: string; |
||||
|
dateTimeFormat: DateTimeFormatDto; |
||||
|
} |
||||
|
|
||||
|
export interface CurrentUserDto { |
||||
|
isAuthenticated: boolean; |
||||
|
id?: string; |
||||
|
tenantId?: string; |
||||
|
userName?: string; |
||||
|
name?: string; |
||||
|
surName?: string; |
||||
|
email?: string; |
||||
|
emailVerified: boolean; |
||||
|
phoneNumber?: string; |
||||
|
phoneNumberVerified: boolean; |
||||
|
roles: string[]; |
||||
|
} |
||||
|
|
||||
|
export interface DateTimeFormatDto { |
||||
|
calendarAlgorithmType?: string; |
||||
|
dateTimeFormatLong?: string; |
||||
|
shortDatePattern?: string; |
||||
|
fullDateTimePattern?: string; |
||||
|
dateSeparator?: string; |
||||
|
shortTimePattern?: string; |
||||
|
longTimePattern?: string; |
||||
|
} |
||||
|
|
||||
|
export interface IanaTimeZone { |
||||
|
timeZoneName?: string; |
||||
|
} |
||||
|
|
||||
|
export interface TimeZone { |
||||
|
iana: IanaTimeZone; |
||||
|
windows: WindowsTimeZone; |
||||
|
} |
||||
|
|
||||
|
export interface TimingDto { |
||||
|
timeZone: TimeZone; |
||||
|
} |
||||
|
|
||||
|
export interface WindowsTimeZone { |
||||
|
timeZoneId?: string; |
||||
|
} |
||||
@ -0,0 +1 @@ |
|||||
|
export * from './models'; |
||||
@ -0,0 +1,87 @@ |
|||||
|
|
||||
|
export interface EntityExtensionDto { |
||||
|
properties: Record<string, ExtensionPropertyDto>; |
||||
|
configuration: Record<string, object>; |
||||
|
} |
||||
|
|
||||
|
export interface ExtensionEnumDto { |
||||
|
fields: ExtensionEnumFieldDto[]; |
||||
|
localizationResource?: string; |
||||
|
} |
||||
|
|
||||
|
export interface ExtensionEnumFieldDto { |
||||
|
name?: string; |
||||
|
value: object; |
||||
|
} |
||||
|
|
||||
|
export interface ExtensionPropertyApiCreateDto { |
||||
|
isAvailable: boolean; |
||||
|
} |
||||
|
|
||||
|
export interface ExtensionPropertyApiDto { |
||||
|
onGet: ExtensionPropertyApiGetDto; |
||||
|
onCreate: ExtensionPropertyApiCreateDto; |
||||
|
onUpdate: ExtensionPropertyApiUpdateDto; |
||||
|
} |
||||
|
|
||||
|
export interface ExtensionPropertyApiGetDto { |
||||
|
isAvailable: boolean; |
||||
|
} |
||||
|
|
||||
|
export interface ExtensionPropertyApiUpdateDto { |
||||
|
isAvailable: boolean; |
||||
|
} |
||||
|
|
||||
|
export interface ExtensionPropertyAttributeDto { |
||||
|
typeSimple?: string; |
||||
|
config: Record<string, object>; |
||||
|
} |
||||
|
|
||||
|
export interface ExtensionPropertyDto { |
||||
|
type?: string; |
||||
|
typeSimple?: string; |
||||
|
displayName: LocalizableStringDto; |
||||
|
api: ExtensionPropertyApiDto; |
||||
|
ui: ExtensionPropertyUiDto; |
||||
|
attributes: ExtensionPropertyAttributeDto[]; |
||||
|
configuration: Record<string, object>; |
||||
|
defaultValue: object; |
||||
|
} |
||||
|
|
||||
|
export interface ExtensionPropertyUiDto { |
||||
|
onTable: ExtensionPropertyUiTableDto; |
||||
|
onCreateForm: ExtensionPropertyUiFormDto; |
||||
|
onEditForm: ExtensionPropertyUiFormDto; |
||||
|
lookup: ExtensionPropertyUiLookupDto; |
||||
|
} |
||||
|
|
||||
|
export interface ExtensionPropertyUiFormDto { |
||||
|
isVisible: boolean; |
||||
|
} |
||||
|
|
||||
|
export interface ExtensionPropertyUiLookupDto { |
||||
|
url?: string; |
||||
|
resultListPropertyName?: string; |
||||
|
displayPropertyName?: string; |
||||
|
valuePropertyName?: string; |
||||
|
filterParamName?: string; |
||||
|
} |
||||
|
|
||||
|
export interface ExtensionPropertyUiTableDto { |
||||
|
isVisible: boolean; |
||||
|
} |
||||
|
|
||||
|
export interface LocalizableStringDto { |
||||
|
name?: string; |
||||
|
resource?: string; |
||||
|
} |
||||
|
|
||||
|
export interface ModuleExtensionDto { |
||||
|
entities: Record<string, EntityExtensionDto>; |
||||
|
configuration: Record<string, object>; |
||||
|
} |
||||
|
|
||||
|
export interface ObjectExtensionsDto { |
||||
|
modules: Record<string, ModuleExtensionDto>; |
||||
|
enums: Record<string, ExtensionEnumDto>; |
||||
|
} |
||||
@ -0,0 +1,4 @@ |
|||||
|
import * as ApiExploring from './api-exploring'; |
||||
|
import * as ApplicationConfigurations from './application-configurations'; |
||||
|
import * as MultiTenancy from './multi-tenancy'; |
||||
|
export { ApiExploring, ApplicationConfigurations, MultiTenancy }; |
||||
@ -0,0 +1 @@ |
|||||
|
export * from './models'; |
||||
@ -0,0 +1,16 @@ |
|||||
|
|
||||
|
export interface FindTenantResultDto { |
||||
|
success: boolean; |
||||
|
tenantId?: string; |
||||
|
name?: string; |
||||
|
} |
||||
|
|
||||
|
export interface CurrentTenantDto { |
||||
|
id?: string; |
||||
|
name?: string; |
||||
|
isAvailable: boolean; |
||||
|
} |
||||
|
|
||||
|
export interface MultiTenancyInfoDto { |
||||
|
isEnabled: boolean; |
||||
|
} |
||||
@ -0,0 +1,2 @@ |
|||||
|
import * as Modeling from './modeling'; |
||||
|
export { Modeling }; |
||||
@ -0,0 +1 @@ |
|||||
|
export * from './models'; |
||||
@ -0,0 +1,79 @@ |
|||||
|
|
||||
|
export interface ActionApiDescriptionModel { |
||||
|
uniqueName?: string; |
||||
|
name?: string; |
||||
|
httpMethod?: string; |
||||
|
url?: string; |
||||
|
supportedVersions: string[]; |
||||
|
parametersOnMethod: MethodParameterApiDescriptionModel[]; |
||||
|
parameters: ParameterApiDescriptionModel[]; |
||||
|
returnValue: ReturnValueApiDescriptionModel; |
||||
|
} |
||||
|
|
||||
|
export interface ApplicationApiDescriptionModel { |
||||
|
modules: Record<string, ModuleApiDescriptionModel>; |
||||
|
types: Record<string, TypeApiDescriptionModel>; |
||||
|
} |
||||
|
|
||||
|
export interface ApplicationApiDescriptionModelRequestDto { |
||||
|
includeTypes: boolean; |
||||
|
} |
||||
|
|
||||
|
export interface ControllerApiDescriptionModel { |
||||
|
controllerName?: string; |
||||
|
type?: string; |
||||
|
interfaces: ControllerInterfaceApiDescriptionModel[]; |
||||
|
actions: Record<string, ActionApiDescriptionModel>; |
||||
|
} |
||||
|
|
||||
|
export interface ControllerInterfaceApiDescriptionModel { |
||||
|
type?: string; |
||||
|
} |
||||
|
|
||||
|
export interface MethodParameterApiDescriptionModel { |
||||
|
name?: string; |
||||
|
typeAsString?: string; |
||||
|
type?: string; |
||||
|
typeSimple?: string; |
||||
|
isOptional: boolean; |
||||
|
defaultValue: object; |
||||
|
} |
||||
|
|
||||
|
export interface ModuleApiDescriptionModel { |
||||
|
rootPath?: string; |
||||
|
remoteServiceName?: string; |
||||
|
controllers: Record<string, ControllerApiDescriptionModel>; |
||||
|
} |
||||
|
|
||||
|
export interface ParameterApiDescriptionModel { |
||||
|
nameOnMethod?: string; |
||||
|
name?: string; |
||||
|
type?: string; |
||||
|
typeSimple?: string; |
||||
|
isOptional: boolean; |
||||
|
defaultValue: object; |
||||
|
constraintTypes: string[]; |
||||
|
bindingSourceId?: string; |
||||
|
descriptorName?: string; |
||||
|
} |
||||
|
|
||||
|
export interface PropertyApiDescriptionModel { |
||||
|
name?: string; |
||||
|
type?: string; |
||||
|
typeSimple?: string; |
||||
|
isRequired: boolean; |
||||
|
} |
||||
|
|
||||
|
export interface ReturnValueApiDescriptionModel { |
||||
|
type?: string; |
||||
|
typeSimple?: string; |
||||
|
} |
||||
|
|
||||
|
export interface TypeApiDescriptionModel { |
||||
|
baseType?: string; |
||||
|
isEnum: boolean; |
||||
|
enumNames: string[]; |
||||
|
enumValues: object[]; |
||||
|
genericArguments: string[]; |
||||
|
properties: PropertyApiDescriptionModel[]; |
||||
|
} |
||||
@ -0,0 +1,5 @@ |
|||||
|
import * as AspNetCore from './asp-net-core'; |
||||
|
import * as Http from './http'; |
||||
|
import * as Localization from './localization'; |
||||
|
export * from './models'; |
||||
|
export { AspNetCore, Http, Localization }; |
||||
@ -0,0 +1 @@ |
|||||
|
export * from './models'; |
||||
@ -0,0 +1,7 @@ |
|||||
|
|
||||
|
export interface LanguageInfo { |
||||
|
cultureName?: string; |
||||
|
uiCultureName?: string; |
||||
|
displayName?: string; |
||||
|
flagIcon?: string; |
||||
|
} |
||||
@ -0,0 +1,5 @@ |
|||||
|
|
||||
|
export interface NameValue<T = string> { |
||||
|
name: string; |
||||
|
value: T; |
||||
|
} |
||||
@ -0,0 +1,2 @@ |
|||||
|
import * as Abp from './abp'; |
||||
|
export { Abp }; |
||||
Loading…
Reference in new issue