@quesmed/types 2.5.92 → 2.5.94

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.
@@ -1,3 +1,4 @@
1
+ import { IPicture } from './Picture';
1
2
  import { Id } from './Type';
2
3
  export interface IBlogTag {
3
4
  id: Id;
@@ -11,7 +12,9 @@ export interface IBlogPost {
11
12
  deletedAt: number | Date;
12
13
  title: string;
13
14
  body: string;
15
+ pictureId: number | null;
14
16
  tags?: IBlogTag[];
17
+ picture?: IPicture;
15
18
  relatedBlogPosts?: IBlogPost[];
16
19
  }
17
20
  export interface IBlogPostTags {
@@ -8,6 +8,15 @@ exports.BLOG_POST_FIELDS = (0, client_1.gql) `
8
8
  createdAt
9
9
  updatedAt
10
10
  title
11
+ pictureId
12
+ picture {
13
+ id
14
+ name
15
+ path
16
+ path512
17
+ path256
18
+ caption
19
+ }
11
20
  body
12
21
  tags {
13
22
  id
@@ -1,5 +1,5 @@
1
1
  import { IBlogPost, IBlogTag } from '../../models';
2
- import { graphqlNormalize, RootData } from '../types';
2
+ import { RootData, graphqlNormalize } from '../types';
3
3
  export declare const BLOG_TAGS: import("@apollo/client").DocumentNode;
4
4
  export type IBlogTagsVar = null;
5
5
  export type IBlogTagsData = RootData<(graphqlNormalize & IBlogTag)[], 'blogTags'>;
@@ -25,8 +25,8 @@ exports.BLOG_POST = (0, client_1.gql) `
25
25
  `;
26
26
  exports.BLOG_POSTS = (0, client_1.gql) `
27
27
  ${blog_1.BLOG_POST_FIELDS}
28
- query BlogPosts($tags: [Int]!) {
29
- blogPosts(tagIds: $tags) {
28
+ query BlogPosts($tagIds: [Int]!) {
29
+ blogPosts(tagIds: $tagIds) {
30
30
  ...BlogPostFields
31
31
  relatedBlogPosts {
32
32
  ...BlogPostFields
@@ -1,3 +1,4 @@
1
+ import { IPicture } from './Picture';
1
2
  import { Id } from './Type';
2
3
  export interface IBlogTag {
3
4
  id: Id;
@@ -11,7 +12,9 @@ export interface IBlogPost {
11
12
  deletedAt: number | Date;
12
13
  title: string;
13
14
  body: string;
15
+ pictureId: number | null;
14
16
  tags?: IBlogTag[];
17
+ picture?: IPicture;
15
18
  relatedBlogPosts?: IBlogPost[];
16
19
  }
17
20
  export interface IBlogPostTags {
@@ -5,6 +5,15 @@ export const BLOG_POST_FIELDS = gql `
5
5
  createdAt
6
6
  updatedAt
7
7
  title
8
+ pictureId
9
+ picture {
10
+ id
11
+ name
12
+ path
13
+ path512
14
+ path256
15
+ caption
16
+ }
8
17
  body
9
18
  tags {
10
19
  id
@@ -1,5 +1,5 @@
1
1
  import { IBlogPost, IBlogTag } from '../../models';
2
- import { graphqlNormalize, RootData } from '../types';
2
+ import { RootData, graphqlNormalize } from '../types';
3
3
  export declare const BLOG_TAGS: import("@apollo/client").DocumentNode;
4
4
  export type IBlogTagsVar = null;
5
5
  export type IBlogTagsData = RootData<(graphqlNormalize & IBlogTag)[], 'blogTags'>;
@@ -22,8 +22,8 @@ export const BLOG_POST = gql `
22
22
  `;
23
23
  export const BLOG_POSTS = gql `
24
24
  ${BLOG_POST_FIELDS}
25
- query BlogPosts($tags: [Int]!) {
26
- blogPosts(tagIds: $tags) {
25
+ query BlogPosts($tagIds: [Int]!) {
26
+ blogPosts(tagIds: $tagIds) {
27
27
  ...BlogPostFields
28
28
  relatedBlogPosts {
29
29
  ...BlogPostFields
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quesmed/types",
3
- "version": "2.5.92",
3
+ "version": "2.5.94",
4
4
  "description": "Typescript types for Quesmed",
5
5
  "keywords": [
6
6
  "quesmed",