1 | import type { BasicMetaSysProps, DefaultElements, MakeRequest, SysLink } from '../common-types';
|
2 | export type ResourceProviderProps = {
|
3 | |
4 |
|
5 |
|
6 | sys: Omit<BasicMetaSysProps, 'version'> & {
|
7 | organization: SysLink;
|
8 | appDefinition: SysLink;
|
9 | };
|
10 | |
11 |
|
12 |
|
13 | type: 'function';
|
14 | |
15 |
|
16 |
|
17 | function: SysLink;
|
18 | };
|
19 | export type UpsertResourceProviderProps = Omit<ResourceProviderProps, 'sys'> & {
|
20 | sys: {
|
21 | id: string;
|
22 | };
|
23 | };
|
24 | export interface ResourceProvider extends ResourceProviderProps, DefaultElements<ResourceProviderProps> {
|
25 | upsert(): Promise<ResourceProvider>;
|
26 | delete(): Promise<void>;
|
27 | }
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | export declare function wrapResourceProvider(makeRequest: MakeRequest, data: ResourceProviderProps): ResourceProvider;
|