@quesmed/types 1.4.18 → 1.4.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "1.4.18",
3
+ "version": "1.4.19",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "main": "index.js",
6
6
  "module": "index.mjs",
@@ -1,5 +1,8 @@
1
- import { IBlogPost } from '../../models';
1
+ import { IBlogPost, IBlogTag } from '../../models';
2
2
  import { graphqlNormalize, RootData } from '../types';
3
+ export declare const BLOG_TAGS: import("@apollo/client").DocumentNode;
4
+ export declare type IBlogTagsVar = null;
5
+ export declare type IBlogTagsData = RootData<(graphqlNormalize & IBlogTag)[], 'blogTags'>;
3
6
  export declare const BLOG_POST: import("@apollo/client").DocumentNode;
4
7
  export interface IBlogPostVar {
5
8
  id: number;
@@ -1,8 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BLOG_POSTS = exports.BLOG_POST = void 0;
3
+ exports.BLOG_POSTS = exports.BLOG_POST = exports.BLOG_TAGS = void 0;
4
4
  const client_1 = require("@apollo/client");
5
5
  const blog_1 = require("../fragments/blog");
6
+ exports.BLOG_TAGS = (0, client_1.gql) `
7
+ ${blog_1.BLOG_POST_FIELDS}
8
+ query BlogTags {
9
+ blogTags {
10
+ id
11
+ name
12
+ }
13
+ }
14
+ `;
6
15
  exports.BLOG_POST = (0, client_1.gql) `
7
16
  ${blog_1.BLOG_POST_FIELDS}
8
17
  query BlogPost($id: Int!) {
@@ -1,5 +1,14 @@
1
1
  import { gql } from '@apollo/client';
2
2
  import { BLOG_POST_FIELDS } from '../fragments/blog';
3
+ export const BLOG_TAGS = gql `
4
+ ${BLOG_POST_FIELDS}
5
+ query BlogTags {
6
+ blogTags {
7
+ id
8
+ name
9
+ }
10
+ }
11
+ `;
3
12
  export const BLOG_POST = gql `
4
13
  ${BLOG_POST_FIELDS}
5
14
  query BlogPost($id: Int!) {