remove repository from data source + prefix with Umb
This commit is contained in:
@@ -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>>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user