Cleanup: move dictionary interface (#612)

* use import aliases when importing when the libs folder

* move data source response interface to the repository module

* remove unused interfaces

* move dictionary interface into dictionary silo

* delete unused interface
This commit is contained in:
Mads Rasmussen
2023-03-21 14:59:46 +01:00
committed by GitHub
parent a688541f85
commit 8e6cf62625
9 changed files with 22 additions and 30 deletions

View File

@@ -1,6 +1,5 @@
import type {
ContentTreeItemResponseModel,
DictionaryItemTranslationModel,
EntityTreeItemResponseModel,
FolderTreeItemResponseModel,
PackageManifestResponseModel,
@@ -23,13 +22,6 @@ export interface Entity {
parentKey: string | null;
}
export interface ContentDetails extends ContentTreeItemResponseModel {
isTrashed: boolean; // TODO: remove only temp part of refactor
properties: Array<ContentProperty>;
//data: Array<ContentPropertyData>;
//layout?: any; // TODO: define layout type - make it non-optional
}
export interface UserEntity extends Entity {
type: 'user';
}
@@ -108,12 +100,6 @@ export interface MemberDetails extends EntityTreeItemResponseModel {
key: string; // TODO: Remove this when the backend is fixed
}
// Dictionary
export interface DictionaryDetails extends EntityTreeItemResponseModel {
key: string; // TODO: Remove this when the backend is fixed
translations: DictionaryItemTranslationModel[];
}
// Document Blueprint
export interface DocumentBlueprintDetails {
key: string;