11import type { SDK } from "caido:plugin" ;
22
3- import { executeGraphQLQuery } from "../graphql" ;
3+ import { executeGraphQLQueryviaSDK } from "../graphql" ;
44import {
55 CREATE_REPLAY_SESSION_COLLECTION_MUTATION ,
66 getDefaultReplayCollectionsQuery ,
@@ -345,7 +345,7 @@ export const rename_replay_collection = async (sdk: SDK, input: any) => {
345345 name : newName ,
346346 } ;
347347
348- const result = await executeGraphQLQuery ( sdk , {
348+ const result = await executeGraphQLQueryviaSDK ( sdk , {
349349 query,
350350 variables,
351351 operationName : "renameReplaySessionCollection" ,
@@ -415,7 +415,7 @@ export const rename_replay_session = async (sdk: SDK, input: any) => {
415415 } ;
416416
417417 try {
418- const result = await executeGraphQLQuery ( sdk , {
418+ const result = await executeGraphQLQueryviaSDK ( sdk , {
419419 query : mutation ,
420420 variables : variables ,
421421 operationName : "renameReplaySession" ,
@@ -477,7 +477,7 @@ export const graphql_collection_requests = async (sdk: SDK, input: any) => {
477477 sdk . console . log ( "Variables:" , JSON . stringify ( queryVariables , null , 2 ) ) ;
478478
479479 // Execute the GraphQL query using our helper function
480- const result = await executeGraphQLQuery ( sdk , {
480+ const result = await executeGraphQLQueryviaSDK ( sdk , {
481481 query : queryToExecute ,
482482 variables : queryVariables ,
483483 operationName : "replaySessionCollections" ,
@@ -605,7 +605,7 @@ export const graphql_list_collections = async (sdk: SDK, input: any) => {
605605 sdk . console . log ( "Listing all replay collections using GraphQL API..." ) ;
606606
607607 // Execute the GraphQL query using our helper function
608- const result = await executeGraphQLQuery ( sdk , {
608+ const result = await executeGraphQLQueryviaSDK ( sdk , {
609609 query : getDefaultReplayCollectionsQuery ( ) ,
610610 variables : { } ,
611611 operationName : "replaySessionCollections" ,
@@ -721,7 +721,7 @@ export const list_replay_connections = async (sdk: SDK, input: any) => {
721721 ) ;
722722
723723 // Execute the GraphQL query using our helper function
724- const result = await executeGraphQLQuery ( sdk , {
724+ const result = await executeGraphQLQueryviaSDK ( sdk , {
725725 query : getDefaultReplayCollectionsQuery ( ) ,
726726 variables : { } ,
727727 operationName : "replaySessionCollections" ,
@@ -859,7 +859,7 @@ export const create_replay_collection = async (sdk: SDK, input: any) => {
859859 } ;
860860
861861 try {
862- const result = await executeGraphQLQuery ( sdk , {
862+ const result = await executeGraphQLQueryviaSDK ( sdk , {
863863 query : mutation ,
864864 variables : variables ,
865865 operationName : "createReplaySessionCollection" ,
@@ -886,9 +886,7 @@ export const create_replay_collection = async (sdk: SDK, input: any) => {
886886 } ;
887887 } else {
888888 return {
889- error :
890- result . error ||
891- "Failed to create collection - no collection data returned" ,
889+ error : JSON . stringify ( result ) ,
892890 summary : "Collection creation failed" ,
893891 } ;
894892 }
@@ -938,7 +936,7 @@ export const move_replay_session = async (sdk: SDK, input: any) => {
938936 collectionId : collectionId ,
939937 } ;
940938
941- const result = await executeGraphQLQuery ( sdk , {
939+ const result = await executeGraphQLQueryviaSDK ( sdk , {
942940 query,
943941 variables,
944942 operationName : "moveReplaySession" ,
@@ -1035,7 +1033,7 @@ export const start_replay_task = async (sdk: SDK, input: any) => {
10351033 } ,
10361034 } ;
10371035
1038- const result = await executeGraphQLQuery ( sdk , {
1036+ const result = await executeGraphQLQueryviaSDK ( sdk , {
10391037 query,
10401038 variables,
10411039 operationName : "startReplayTask" ,
0 commit comments