mirror of https://github.com/abpframework/abp.git
committed by
GitHub
9 changed files with 48504 additions and 3961 deletions
File diff suppressed because it is too large
@ -1,87 +1,87 @@ |
|||||
|
|
||||
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; |
||||
} |
} |
||||
|
|
||||
export interface ExtensionEnumFieldDto { |
export interface ExtensionEnumFieldDto { |
||||
name?: string; |
name?: string; |
||||
value: object; |
value: object; |
||||
} |
} |
||||
|
|
||||
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; |
||||
api: ExtensionPropertyApiDto; |
api: ExtensionPropertyApiDto; |
||||
ui: ExtensionPropertyUiDto; |
ui: ExtensionPropertyUiDto; |
||||
attributes: ExtensionPropertyAttributeDto[]; |
attributes: ExtensionPropertyAttributeDto[]; |
||||
configuration: Record<string, object>; |
configuration: Record<string, object>; |
||||
defaultValue: object; |
defaultValue: object; |
||||
} |
} |
||||
|
|
||||
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 { |
||||
url?: string; |
url?: string; |
||||
resultListPropertyName?: string; |
resultListPropertyName?: string; |
||||
displayPropertyName?: string; |
displayPropertyName?: string; |
||||
valuePropertyName?: string; |
valuePropertyName?: string; |
||||
filterParamName?: string; |
filterParamName?: string; |
||||
} |
} |
||||
|
|
||||
export interface ExtensionPropertyUiTableDto { |
export interface ExtensionPropertyUiTableDto { |
||||
isVisible: boolean; |
isVisible: boolean; |
||||
} |
} |
||||
|
|
||||
export interface LocalizableStringDto { |
export interface LocalizableStringDto { |
||||
name?: string; |
name?: string; |
||||
resource?: string; |
resource?: string; |
||||
} |
} |
||||
|
|
||||
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>; |
||||
} |
} |
||||
|
|||||
@ -1,18 +1,20 @@ |
|||||
|
import type { TenantUserSharingStrategy } from '../../../multi-tenancy/tenant-user-sharing-strategy.enum'; |
||||
export interface FindTenantResultDto { |
|
||||
success: boolean; |
export interface FindTenantResultDto { |
||||
tenantId?: string; |
success: boolean; |
||||
name?: string; |
tenantId?: string; |
||||
normalizedName?: string; |
name?: string; |
||||
isActive: boolean; |
normalizedName?: string; |
||||
} |
isActive: boolean; |
||||
|
} |
||||
export interface CurrentTenantDto { |
|
||||
id?: string; |
export interface CurrentTenantDto { |
||||
name?: string; |
id?: string; |
||||
isAvailable: boolean; |
name?: string; |
||||
} |
isAvailable: boolean; |
||||
|
} |
||||
export interface MultiTenancyInfoDto { |
|
||||
isEnabled: boolean; |
export interface MultiTenancyInfoDto { |
||||
} |
isEnabled: boolean; |
||||
|
userSharingStrategy?: TenantUserSharingStrategy; |
||||
|
} |
||||
|
|||||
@ -1,100 +1,100 @@ |
|||||
|
|
||||
export interface ActionApiDescriptionModel { |
export interface ActionApiDescriptionModel { |
||||
uniqueName?: string; |
uniqueName?: string; |
||||
name?: string; |
name?: string; |
||||
httpMethod?: string; |
httpMethod?: string; |
||||
url?: string; |
url?: string; |
||||
supportedVersions: string[]; |
supportedVersions: string[]; |
||||
parametersOnMethod: MethodParameterApiDescriptionModel[]; |
parametersOnMethod: MethodParameterApiDescriptionModel[]; |
||||
parameters: ParameterApiDescriptionModel[]; |
parameters: ParameterApiDescriptionModel[]; |
||||
returnValue: ReturnValueApiDescriptionModel; |
returnValue: ReturnValueApiDescriptionModel; |
||||
allowAnonymous?: boolean; |
allowAnonymous?: boolean; |
||||
implementFrom?: string; |
implementFrom?: string; |
||||
} |
} |
||||
|
|
||||
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 ControllerApiDescriptionModel { |
export interface ControllerApiDescriptionModel { |
||||
controllerName?: string; |
controllerName?: string; |
||||
controllerGroupName?: string; |
controllerGroupName?: string; |
||||
isRemoteService: boolean; |
isRemoteService: boolean; |
||||
isIntegrationService: boolean; |
isIntegrationService: boolean; |
||||
apiVersion?: string; |
apiVersion?: string; |
||||
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 { |
||||
name?: string; |
name?: string; |
||||
typeAsString?: string; |
typeAsString?: string; |
||||
type?: string; |
type?: string; |
||||
typeSimple?: string; |
typeSimple?: string; |
||||
isOptional: boolean; |
isOptional: boolean; |
||||
defaultValue: object; |
defaultValue: object; |
||||
} |
} |
||||
|
|
||||
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; |
||||
type?: string; |
type?: string; |
||||
typeSimple?: string; |
typeSimple?: string; |
||||
isOptional: boolean; |
isOptional: boolean; |
||||
defaultValue: object; |
defaultValue: object; |
||||
constraintTypes: string[]; |
constraintTypes: string[]; |
||||
bindingSourceId?: string; |
bindingSourceId?: string; |
||||
descriptorName?: string; |
descriptorName?: string; |
||||
} |
} |
||||
|
|
||||
export interface PropertyApiDescriptionModel { |
export interface PropertyApiDescriptionModel { |
||||
name?: string; |
name?: string; |
||||
jsonName?: string; |
jsonName?: string; |
||||
type?: string; |
type?: string; |
||||
typeSimple?: string; |
typeSimple?: string; |
||||
isRequired: boolean; |
isRequired: boolean; |
||||
minLength?: number; |
minLength?: number; |
||||
maxLength?: number; |
maxLength?: number; |
||||
minimum?: string; |
minimum?: string; |
||||
maximum?: string; |
maximum?: string; |
||||
regex?: string; |
regex?: string; |
||||
} |
} |
||||
|
|
||||
export interface ReturnValueApiDescriptionModel { |
export interface ReturnValueApiDescriptionModel { |
||||
type?: string; |
type?: string; |
||||
typeSimple?: string; |
typeSimple?: string; |
||||
} |
} |
||||
|
|
||||
export interface TypeApiDescriptionModel { |
export interface TypeApiDescriptionModel { |
||||
baseType?: string; |
baseType?: string; |
||||
isEnum: boolean; |
isEnum: boolean; |
||||
enumNames: string[]; |
enumNames: string[]; |
||||
enumValues: object[]; |
enumValues: object[]; |
||||
genericArguments: string[]; |
genericArguments: string[]; |
||||
properties: PropertyApiDescriptionModel[]; |
properties: PropertyApiDescriptionModel[]; |
||||
} |
} |
||||
|
|||||
@ -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 }; |
||||
|
|||||
@ -0,0 +1 @@ |
|||||
|
export * from './tenant-user-sharing-strategy.enum'; |
||||
@ -0,0 +1,8 @@ |
|||||
|
import { mapEnumToOptions } from '../../../../utils/form-utils'; |
||||
|
|
||||
|
export enum TenantUserSharingStrategy { |
||||
|
Isolated = 0, |
||||
|
Shared = 1, |
||||
|
} |
||||
|
|
||||
|
export const tenantUserSharingStrategyOptions = mapEnumToOptions(TenantUserSharingStrategy); |
||||
Loading…
Reference in new issue