@jupiterone/jupiterone-client-nodejs
Advanced tools
Comparing version 1.1.0 to 2.0.0
@@ -44,11 +44,2 @@ import { ApolloClient, QueryOptions } from 'apollo-client'; | ||
} | ||
export interface CommitRange { | ||
account_uuid: string; | ||
repo_uuid: string; | ||
source: string; | ||
destination: string; | ||
} | ||
export interface IngestionResults { | ||
entities: object[]; | ||
} | ||
export interface QueryResult { | ||
@@ -179,4 +170,2 @@ id: string; | ||
queryGraphQL(query: any): Promise<import("apollo-client").ApolloQueryResult<any>>; | ||
ingestEntities(integrationInstanceId: string, entities: any[]): Promise<IngestionResults>; | ||
ingestCommitRange(integrationInstanceId: string, commitRange: CommitRange): Promise<IngestionResults>; | ||
mutateAlertRule(rule: any, update: any): Promise<any>; | ||
@@ -183,0 +172,0 @@ createEntity(key: string, type: string, classLabels: string[], properties: any): Promise<object>; |
@@ -384,26 +384,2 @@ "use strict"; | ||
} | ||
async ingestEntities(integrationInstanceId, entities) { | ||
return node_fetch_1.default(this.apiUrl + '/integrations/ingest', { | ||
method: 'POST', | ||
body: JSON.stringify({ integrationInstanceId, entities }), | ||
headers: { | ||
'Content-Type': 'application/json', | ||
...this.headers, | ||
}, | ||
}).then((res) => res.json()); | ||
} | ||
async ingestCommitRange(integrationInstanceId, commitRange) { | ||
return node_fetch_1.default(this.apiUrl + '/integrations/action', { | ||
method: 'POST', | ||
body: JSON.stringify({ | ||
integrationInstanceId, | ||
action: { name: 'INGEST', commitRange }, | ||
}), | ||
headers: { | ||
'Content-Type': 'application/json', | ||
...this.headers, | ||
}, | ||
timeout: 10000, | ||
}).then((res) => res.json()); | ||
} | ||
async mutateAlertRule(rule, update) { | ||
@@ -410,0 +386,0 @@ var _a; |
{ | ||
"name": "@jupiterone/jupiterone-client-nodejs", | ||
"version": "1.1.0", | ||
"version": "2.0.0", | ||
"description": "A node.js client wrapper for JupiterOne public API", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89174
2165