Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated legacy object extensions types #7914

Merged
merged 1 commit into from
Mar 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -106,146 +106,3 @@ export interface PropContributors<T = any> {
createForm: PropContributorCallbacks<FormPropList<T>>;
editForm: PropContributorCallbacks<FormPropList<T>>;
}

/**
* @deprecated To be deleted in v4.2.
*/
export interface Config {
objectExtensions: Item;
}

/**
* @deprecated Use ObjectExtensionsDto. To be deleted in v4.2.
*/
export interface Item {
modules: Modules;
enums: Enums;
}

/**
* @deprecated Use Record<string, ModuleExtensionDto>. To be deleted in v4.2.
*/
export type Modules = Configuration<Module>;

/**
* @deprecated Use ModuleExtensionDto. To be deleted in v4.2.
*/
export interface Module {
configuration: Configuration;
entities: Entities;
}

/**
* @deprecated Use Record<string, EntityExtensionDto>. To be deleted in v4.2.
*/
export type Entities = Configuration<Entity>;

/**
* @deprecated Use EntityExtensionDto. To be deleted in v4.2.
*/
export interface Entity {
configuration: Configuration;
properties: Properties;
}

/**
* @deprecated Use Record<string, ExtensionPropertyDto>. To be deleted in v4.2.
*/
export type Properties = Configuration<Property>;

/**
* @deprecated Use ExtensionPropertyDto. To be deleted in v4.2.
*/
export interface Property {
type: string;
typeSimple: ePropType;
displayName: DisplayName | null;
api: Api;
ui: Ui;
attributes: Attribute[];
configuration: Configuration;
defaultValue?: any;
}

/**
* @deprecated Use LocalizableStringDto. To be deleted in v4.2.
*/
export interface DisplayName {
name: string;
resource: string;
}

/**
* @deprecated Use ExtensionPropertyApiDto. To be deleted in v4.2.
*/
export interface Api {
onGet: ApiConfig;
onCreate: ApiConfig;
onUpdate: ApiConfig;
}

/**
* @deprecated Use ExtensionPropertyApiCreateDto. To be deleted in v4.2.
*/
export interface ApiConfig {
isAvailable: boolean;
}

/**
* @deprecated Use ExtensionPropertyUiDto. To be deleted in v4.2.
*/
export interface Ui {
onTable: UiPropConfig;
onCreateForm: UiFormConfig;
onEditForm: UiFormConfig;
}

/**
* @deprecated Use ExtensionPropertyUiTableDto. To be deleted in v4.2.
*/
export interface UiPropConfig {
isSortable: boolean;
isVisible: boolean;
}

/**
* @deprecated Use ExtensionPropertyUiFormDto. To be deleted in v4.2.
*/
export interface UiFormConfig {
isVisible: boolean;
}

/**
* @deprecated Use ExtensionPropertyAttributeDto. To be deleted in v4.2.
*/
export interface Attribute {
typeSimple: string;
config: Configuration;
}

/**
* @deprecated To be deleted in v4.2.
*/
export type Configuration<T = any> = Record<string, T>;

/**
* @deprecated Use Record<string, ExtensionEnumDto>. To be deleted in v4.2.
*/
export type Enums = Record<string, Enum>;

/**
* @deprecated Use ExtensionEnumDto. To be deleted in v4.2.
*/
export interface Enum {
fields: EnumMember[];
localizationResource?: string;
transformed?: any;
}

/**
* @deprecated Use ExtensionEnumFieldDto. To be deleted in v4.2.
*/
export interface EnumMember {
name: string;
value: any;
}