import { injectable } from '@cloudbeaver/core-di' ; import { GraphQLService , CachedDataResource , DataTransferProcessorInfo } from '@cloudbeaver/core-sdk' ; @ injectable ( ) export class DataTransferProcessorsResource extends CachedDataResource < Map < string , DataTransferProcessorInfo > , void > { constructor ( private graphQLService ) { super ( new Map ( ) ) ; } protected async loader ( ) { const { processors } = await this . graphQLService . sdk . getDataTransferProcessors ( ) ; this . data . clear ( ) ; for ( const processor of processors ) { this . data . set ( processor . id , processor ) ; } return this . data ; } }