1 | import { ResourceAdapter } from './ResourceAdapter';
|
2 | import { TaskList } from './TaskList';
|
3 | import { BaseResource, BaseResourceOptions } from './types';
|
4 |
|
5 | export interface ResourceAdapterOptions {
|
6 | readonly name: string;
|
7 | readonly dataPath: string;
|
8 | }
|
9 |
|
10 | export interface ResourceDependency {
|
11 | readonly plugin: string;
|
12 | readonly resourceType: string;
|
13 | readonly name: string;
|
14 | }
|
15 |
|
16 | export interface MasterResourceAdapter<Resource extends BaseResource, ResourceOptions extends BaseResourceOptions> {
|
17 | readonly initResourceAdapter: (
|
18 | options: ResourceAdapterOptions,
|
19 | ) => Promise<ResourceAdapter<Resource, ResourceOptions>>;
|
20 |
|
21 | readonly createResourceAdapter: (adapterOptions: ResourceAdapterOptions, options: ResourceOptions) => TaskList;
|
22 | }
|