@janbox/contentful-marketplace-sdk 1.0.11 → 1.0.12

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,4 +1,4 @@
1
- import { TypeBlogCollectionSkeleton } from '../types';
1
+ import { TypeBlogCollectionSkeleton, GraphQLAsset } from '../types';
2
2
  import { Entry } from 'contentful';
3
3
  type BlogCollectionEntry = Entry<TypeBlogCollectionSkeleton, "WITHOUT_UNRESOLVABLE_LINKS", string>;
4
4
  type BlogCollectionCategoryGraphQLItem = {
@@ -10,6 +10,7 @@ export type BlogCollectionGraphQLItem = {
10
10
  id: string;
11
11
  };
12
12
  category: BlogCollectionCategoryGraphQLItem | null;
13
+ featuredImage: GraphQLAsset | null;
13
14
  } & Pick<BlogCollectionEntry["fields"], "name" | "type" | "order">;
14
15
  export type GetBlogCollectionsResponse = {
15
16
  page: number;
package/dist/index.cjs CHANGED
@@ -251,6 +251,12 @@ query${u} {
251
251
  title
252
252
  slug
253
253
  }
254
+ featuredImage {
255
+ url
256
+ width
257
+ height
258
+ contentType
259
+ }
254
260
  }
255
261
  }
256
262
  }
package/dist/index.js CHANGED
@@ -1012,6 +1012,12 @@ query${u} {
1012
1012
  title
1013
1013
  slug
1014
1014
  }
1015
+ featuredImage {
1016
+ url
1017
+ width
1018
+ height
1019
+ contentType
1020
+ }
1015
1021
  }
1016
1022
  }
1017
1023
  }
@@ -37,6 +37,7 @@ export type TypeBlogCategory<Modifiers extends ChainModifiers, Locales extends L
37
37
  export interface TypeBlogCollectionFields {
38
38
  name: EntryFieldTypes.Symbol;
39
39
  type: EntryFieldTypes.Symbol<"category" | "manual">;
40
+ featuredImage?: EntryFieldTypes.AssetLink;
40
41
  posts?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<TypeBlogPostSkeleton>>;
41
42
  category?: EntryFieldTypes.EntryLink<TypeBlogCategorySkeleton>;
42
43
  markets?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<TypeMarketSkeleton>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@janbox/contentful-marketplace-sdk",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",