import { injectable } from '@cloudbeaver/core-di' ; import { GraphQLService , CachedDataResource , WebFeatureSet } from '@cloudbeaver/core-sdk' ; import { ServerConfigResource } from './ServerConfigResource' ; export type ApplicationFeature = WebFeatureSet ; @ injectable ( ) export class FeaturesResource extends CachedDataResource < ApplicationFeature [ ] , void | any > { constructor ( private graphQLService , serverConfigResource ) { super ( [ ] ) ; this . sync ( serverConfigResource ) ; } protected async loader ( ) { const { features } = await this . graphQLService . sdk . listFeatureSets ( ) ; return features ; } }