|
@@ -80,6 +80,17 @@ export function getGraphs(params: any): Promise<StandardResponse> {
|
|
|
return serverRequest(URL_GET_GRAPHS, data)
|
|
|
}
|
|
|
|
|
|
+export function applyGraph(graph_id: number): Promise<StandardResponse> {
|
|
|
+ var data: RequestBody = {
|
|
|
+ id: getRequestId(),
|
|
|
+ action: 'confirm_graph',
|
|
|
+ params: [
|
|
|
+ { name: 'graph_id', value: graph_id },
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ return serverRequest(URL_GET_GRAPHS, data)
|
|
|
+}
|
|
|
+
|
|
|
export function searchNodes(keyword: string, graph_id: number, category: string = "any"): Promise<StandardResponse> {
|
|
|
var data: RequestBody = {
|
|
|
id: getRequestId(),
|
|
@@ -127,7 +138,7 @@ export function getNode(node_id: number, graph_id: number): Promise<StandardResp
|
|
|
// return serverRequest(URL_GET_NODE, data)
|
|
|
// }
|
|
|
export function updateNode(params: any): Promise<StandardResponse> {
|
|
|
- console.log(params)
|
|
|
+ // console.log(params)
|
|
|
var data: RequestBody = {
|
|
|
id: getRequestId(),
|
|
|
action: 'update_node',
|
|
@@ -176,7 +187,7 @@ export function getGraphSummary(params: any): Promise<StandardResponse> {
|
|
|
}
|
|
|
|
|
|
export function getGraphNodeSchema(params: any): Promise<StandardResponse> {
|
|
|
- console.log(params)
|
|
|
+ // console.log(params)
|
|
|
var data: RequestBody = {
|
|
|
id: getRequestId(),
|
|
|
action: 'get_nodes_schemas',
|
|
@@ -189,7 +200,7 @@ export function getGraphNodeSchema(params: any): Promise<StandardResponse> {
|
|
|
|
|
|
|
|
|
export function getGraphEdgeSchema(params: any): Promise<StandardResponse> {
|
|
|
- console.log(params)
|
|
|
+ // console.log(params)
|
|
|
var data: RequestBody = {
|
|
|
id: getRequestId(),
|
|
|
action: 'get_edges_schemas',
|
|
@@ -214,7 +225,7 @@ export function getGraphStdSchemas(params: any): Promise<StandardResponse> {
|
|
|
}
|
|
|
|
|
|
export function reindexSchema(params: any): Promise<StandardResponse> {
|
|
|
- console.log(params)
|
|
|
+ // console.log(params)
|
|
|
var data: RequestBody = {
|
|
|
id: getRequestId(),
|
|
|
action: 'index_std_schema',
|
|
@@ -226,7 +237,7 @@ export function reindexSchema(params: any): Promise<StandardResponse> {
|
|
|
}
|
|
|
|
|
|
export function searchStdSchema(params: any): Promise<StandardResponse> {
|
|
|
- console.log(params)
|
|
|
+ // console.log(params)
|
|
|
var data: RequestBody = {
|
|
|
id: getRequestId(),
|
|
|
action: 'std_schema_search',
|
|
@@ -239,7 +250,7 @@ export function searchStdSchema(params: any): Promise<StandardResponse> {
|
|
|
return serverRequest(URL_GET_STD_SCHEMA, data)
|
|
|
}
|
|
|
export function updateStdSchemaContent(params: any): Promise<StandardResponse> {
|
|
|
- console.log("updateStdSchemaContent", params)
|
|
|
+ // console.log("updateStdSchemaContent", params)
|
|
|
var data: RequestBody = {
|
|
|
id: getRequestId(),
|
|
|
action: 'std_schema_update_content',
|
|
@@ -251,7 +262,7 @@ export function updateStdSchemaContent(params: any): Promise<StandardResponse> {
|
|
|
return serverRequest(URL_GET_STD_SCHEMA, data)
|
|
|
}
|
|
|
export function updateGraphNodeSchema(params: any): Promise<StandardResponse> {
|
|
|
- console.log(params)
|
|
|
+ // console.log(params)
|
|
|
var data: RequestBody = {
|
|
|
id: getRequestId(),
|
|
|
action: 'update_node_schema',
|
|
@@ -264,7 +275,7 @@ export function updateGraphNodeSchema(params: any): Promise<StandardResponse> {
|
|
|
return serverRequest(URL_GET_SCHEMA, data)
|
|
|
}
|
|
|
export function updateGraphEdgeSchema(params: any): Promise<StandardResponse> {
|
|
|
- console.log(params)
|
|
|
+ // console.log(params)
|
|
|
var data: RequestBody = {
|
|
|
id: getRequestId(),
|
|
|
action: 'update_edge_schema',
|
|
@@ -278,7 +289,7 @@ export function updateGraphEdgeSchema(params: any): Promise<StandardResponse> {
|
|
|
}
|
|
|
|
|
|
export function createGraphCheckReport(params: any): Promise<StandardResponse> {
|
|
|
- console.log(params)
|
|
|
+ // console.log(params)
|
|
|
var data: RequestBody = {
|
|
|
id: getRequestId(),
|
|
|
action: 'create_graph_check_report',
|