* split data type handlers into multiple files * return promise * test register root as same entity as items * add insert method to entity db * redirect to new data type when selecting in options modal * add options to modal name * Update manifests.ts * add margin to data type info view * fix import * update with models from server * push new item to tree
18 lines
658 B
TypeScript
18 lines
658 B
TypeScript
import { Observable } from 'rxjs';
|
|
import { UmbControllerHostElement } from '@umbraco-cms/backoffice/controller';
|
|
|
|
export interface UmbWorkspaceContextInterface<DataType = unknown> {
|
|
host: UmbControllerHostElement;
|
|
repository: any; // TODO: add type
|
|
isNew: Observable<boolean>;
|
|
getIsNew(): boolean;
|
|
setIsNew(value: boolean): void;
|
|
// TODO: should we consider another name than entity type. File system files are not entities but still have this type.
|
|
getEntityType(): string;
|
|
getData(): DataType | undefined;
|
|
destroy(): void;
|
|
// TODO: temp solution to bubble validation errors to the UI
|
|
setValidationErrors?(errorMap: any): void;
|
|
save(): void;
|
|
}
|