UNPKG

@rcsb/rcsb-saguaro-app

Version:
24 lines (23 loc) 893 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RcsbQueryAssemblyInterfaces = void 0; const tslib_1 = require("tslib"); const QueryAssemblyInterfaces_graphql_1 = tslib_1.__importDefault(require("../RcsbQueries/Yosemite/QueryAssemblyInterfaces.graphql")); class RcsbQueryAssemblyInterfaces { constructor(getClient) { this.getClient = getClient; } request(requestConfig) { return tslib_1.__awaiter(this, void 0, void 0, function* () { try { const response = yield this.getClient().request(requestConfig, QueryAssemblyInterfaces_graphql_1.default); return response.assemblies; } catch (error) { console.error(error); throw error; } }); } } exports.RcsbQueryAssemblyInterfaces = RcsbQueryAssemblyInterfaces;