MCPcopy Create free account
hub / github.com/apache/devlake / list

Function list

config-ui/src/api/scope/index.ts:22–38  ·  view source on GitHub ↗
(
  plugin: string,
  connectionId: ID,
  data?: Pagination & {
    blueprints?: boolean;
    searchTerm?: string;
  },
)

Source from the content-addressed store, hash-verified

20import { request } from '@/utils';
21
22export 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
40export const get = (plugin: string, connectionId: ID, scopeId: ID, payload?: { blueprints: boolean }) =>
41 request(`/plugins/${plugin}/connections/${connectionId}/scopes/${scopeId}`, {

Callers 8

ScopeConfigClass · 0.50
test_collect_dataFunction · 0.50
test_extract_dataFunction · 0.50
test_convert_dataFunction · 0.50

Calls 1

requestFunction · 0.90

Tested by 6

test_collect_dataFunction · 0.40
test_extract_dataFunction · 0.40
test_convert_dataFunction · 0.40