@@ -750,7 +750,7 @@ export const fetchAssetAttachments = createAppAsyncThunk("eventDetails/fetchAsse
750750 const params = new URLSearchParams ( ) ;
751751 params . append ( "id1" , "attachment" ) ;
752752
753- const attachmentsRequest = await axios . get (
753+ const attachmentsRequest = await axios . get < EventDetailsState [ "assetAttachments" ] > (
754754 `/admin-ng/event/${ eventId } /asset/attachment/attachments.json` ,
755755 { params } ,
756756 ) ;
@@ -765,7 +765,7 @@ export const fetchAssetAttachmentDetails = createAppAsyncThunk("eventDetails/fet
765765 const searchParams = new URLSearchParams ( ) ;
766766 searchParams . append ( "id1" , "attachment" ) ;
767767
768- const attachmentDetailsRequest = await axios . get (
768+ const attachmentDetailsRequest = await axios . get < EventDetailsState [ "assetAttachmentDetails" ] > (
769769 `/admin-ng/event/${ eventId } /asset/attachment/${ attachmentId } .json` ,
770770 { params } ,
771771 ) ;
@@ -776,7 +776,7 @@ export const fetchAssetCatalogs = createAppAsyncThunk("eventDetails/fetchAssetCa
776776 const params = new URLSearchParams ( ) ;
777777 params . append ( "id1" , "catalog" ) ;
778778
779- const catalogsRequest = await axios . get (
779+ const catalogsRequest = await axios . get < EventDetailsState [ "assetCatalogs" ] > (
780780 `/admin-ng/event/${ eventId } /asset/catalog/catalogs.json` ,
781781 { params } ,
782782 ) ;
@@ -791,7 +791,7 @@ export const fetchAssetCatalogDetails = createAppAsyncThunk("eventDetails/fetchA
791791 const searchParams = new URLSearchParams ( ) ;
792792 searchParams . append ( "id1" , "catalog" ) ;
793793
794- const catalogDetailsRequest = await axios . get (
794+ const catalogDetailsRequest = await axios . get < EventDetailsState [ "assetCatalogDetails" ] > (
795795 `/admin-ng/event/${ eventId } /asset/catalog/${ catalogId } .json` ,
796796 { params } ,
797797 ) ;
@@ -873,7 +873,7 @@ export const fetchAssetPublications = createAppAsyncThunk("eventDetails/fetchAss
873873 const params = new URLSearchParams ( ) ;
874874 params . append ( "id1" , "publication" ) ;
875875
876- const publicationsRequest = await axios . get (
876+ const publicationsRequest = await axios . get < EventDetailsState [ "assetPublications" ] > (
877877 `/admin-ng/event/${ eventId } /asset/publication/publications.json` ,
878878 { params } ,
879879 ) ;
@@ -888,7 +888,7 @@ export const fetchAssetPublicationDetails = createAppAsyncThunk("eventDetails/fe
888888 const searchParams = new URLSearchParams ( ) ;
889889 searchParams . append ( "id1" , "publication" ) ;
890890
891- const publicationDetailsRequest = await axios . get (
891+ const publicationDetailsRequest = await axios . get < EventDetailsState [ "assetPublicationDetails" ] > (
892892 `/admin-ng/event/${ eventId } /asset/publication/${ publicationId } .json` ,
893893 { params } ,
894894 ) ;
@@ -1351,7 +1351,7 @@ export const fetchWorkflowDetails = createAppAsyncThunk("eventDetails/fetchWorkf
13511351 workflowId : string
13521352} ) => {
13531353 const { eventId, workflowId } = params ;
1354- const data = await axios . get (
1354+ const data = await axios . get < EventDetailsState [ "workflows" ] [ "workflow" ] > (
13551355 `/admin-ng/event/${ eventId } /workflows/${ workflowId } .json` ,
13561356 ) ;
13571357 return await data . data ;
@@ -1501,7 +1501,7 @@ export const fetchWorkflowOperationDetails = createAppAsyncThunk("eventDetails/f
15011501 operationId ?: number
15021502} ) => {
15031503 const { eventId, workflowId, operationId } = params ;
1504- const data = await axios . get (
1504+ const data = await axios . get < EventDetailsState [ "workflowOperationDetails" ] > (
15051505 `/admin-ng/event/${ eventId } /workflows/${ workflowId } /operations/${ operationId } ` ,
15061506 ) ;
15071507 return await data . data ;
@@ -1525,7 +1525,7 @@ export const fetchWorkflowErrorDetails = createAppAsyncThunk("eventDetails/fetch
15251525 errorId ?: number
15261526} ) => {
15271527 const { eventId, workflowId, errorId } = params ;
1528- const data = await axios . get (
1528+ const data = await axios . get < EventDetailsState [ "workflowErrorDetails" ] > (
15291529 `/admin-ng/event/${ eventId } /workflows/${ workflowId } /errors/${ errorId } .json` ,
15301530 ) ;
15311531 return await data . data ;
@@ -1831,6 +1831,7 @@ export const saveWorkflowConfig = createAppAsyncThunk("eventDetails/saveWorkflow
18311831 const header = getHttpHeaders ( ) ;
18321832 const data = new URLSearchParams ( ) ;
18331833 // Scheduler service in Opencast expects values to be strings, so we convert them here
1834+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
18341835 data . append ( "configuration" , JSON . stringify ( jsonData , ( _k , v ) => v && typeof v === "object" ? v : "" + v ) ) ;
18351836
18361837 axios
0 commit comments