import { __decorate } from "tslib";
import gql from 'graphql-tag';
import { customElement } from 'lit/decorators.js';
import { client, gqlContext } from '@operato/graphql';
import { BoardViewerPage } from './board-viewer-page';
let BoardViewerByNamePage = class BoardViewerByNamePage extends BoardViewerPage {
    async fetch(name) {
        return await client.query({
            query: gql `
        query FetchBoardByName($name: String!) {
          response: boardByName(name: $name) {
            id
            name
            model
          }
        }
      `,
            variables: { name },
            context: gqlContext()
        });
    }
};
BoardViewerByNamePage = __decorate([
    customElement('board-viewer-by-name-page')
], BoardViewerByNamePage);
export { BoardViewerByNamePage };
//# sourceMappingURL=board-viewer-by-name-page.js.map