remove repository from data source + prefix with Umb

This commit is contained in:
Mads Rasmussen
2023-03-24 14:41:17 +01:00
parent 960a43f330
commit 54465d2c4a
9 changed files with 27 additions and 23 deletions

View File

@@ -1,9 +1,9 @@
import type { DataSourceResponse } from '@umbraco-cms/backoffice/repository';
export interface RepositoryDetailDataSource<DetailType> {
createScaffold(parentKey: string | null): Promise<DataSourceResponse<DetailType>>;
get(key: string): Promise<DataSourceResponse<DetailType>>;
insert(data: DetailType): Promise<DataSourceResponse<DetailType>>;
update(data: DetailType): Promise<DataSourceResponse<DetailType>>;
delete(key: string): Promise<DataSourceResponse<DetailType>>;
export interface UmbDataSource<T> {
createScaffold(parentKey: string | null): Promise<DataSourceResponse<T>>;
get(key: string): Promise<DataSourceResponse<T>>;
insert(data: T): Promise<DataSourceResponse<T>>;
update(data: T): Promise<DataSourceResponse<T>>;
delete(key: string): Promise<DataSourceResponse<T>>;
}