@@ -169,17 +169,6 @@ export interface JupiterOneEntity {
169169 properties : any ;
170170}
171171
172- export interface CommitRange {
173- account_uuid : string ;
174- repo_uuid : string ;
175- source : string ;
176- destination : string ;
177- }
178-
179- export interface IngestionResults {
180- entities : object [ ] ;
181- }
182-
183172export interface QueryResult {
184173 id : string ;
185174 entity : object ;
@@ -452,38 +441,6 @@ export class JupiterOneClient {
452441 return res ;
453442 }
454443
455- async ingestEntities (
456- integrationInstanceId : string ,
457- entities : any [ ] ,
458- ) : Promise < IngestionResults > {
459- return fetch ( this . apiUrl + '/integrations/ingest' , {
460- method : 'POST' ,
461- body : JSON . stringify ( { integrationInstanceId, entities } ) ,
462- headers : {
463- 'Content-Type' : 'application/json' ,
464- ...this . headers ,
465- } ,
466- } ) . then ( ( res : any ) => res . json ( ) ) ;
467- }
468-
469- async ingestCommitRange (
470- integrationInstanceId : string ,
471- commitRange : CommitRange ,
472- ) : Promise < IngestionResults > {
473- return fetch ( this . apiUrl + '/integrations/action' , {
474- method : 'POST' ,
475- body : JSON . stringify ( {
476- integrationInstanceId,
477- action : { name : 'INGEST' , commitRange } ,
478- } ) ,
479- headers : {
480- 'Content-Type' : 'application/json' ,
481- ...this . headers ,
482- } ,
483- timeout : 10000 ,
484- } ) . then ( ( res : any ) => res . json ( ) ) ;
485- }
486-
487444 async mutateAlertRule ( rule : any , update : any ) {
488445 const inlineQuestion = ! ! rule . instance ?. question ;
489446 let mutation ;
0 commit comments