Function
list
(
plugin: string,
connectionId: ID,
data?: Pagination & {
blueprints?: boolean;
searchTerm?: string;
},
)
Source from the content-addressed store, hash-verified
| 20 | import { request } from '@/utils'; |
| 21 | |
| 22 | export const list = ( |
| 23 | plugin: string, |
| 24 | connectionId: ID, |
| 25 | data?: Pagination & { |
| 26 | blueprints?: boolean; |
| 27 | searchTerm?: string; |
| 28 | }, |
| 29 | ): Promise<{ |
| 30 | count: number; |
| 31 | scopes: Array<{ |
| 32 | scope: IDataScope; |
| 33 | scopeConfig?: IScopeConfig; |
| 34 | }>; |
| 35 | }> => |
| 36 | request(`/plugins/${plugin}/connections/${connectionId}/scopes`, { |
| 37 | data, |
| 38 | }); |
| 39 | |
| 40 | export const get = (plugin: string, connectionId: ID, scopeId: ID, payload?: { blueprints: boolean }) => |
| 41 | request(`/plugins/${plugin}/connections/${connectionId}/scopes/${scopeId}`, { |