@janbox/contentful-marketplace-sdk 0.0.5 → 0.0.6

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,21 +1,17 @@
1
+ import { Entry, EntrySys } from 'contentful';
2
+ import { TypeFooterMenuSkeleton } from '../types';
3
+ import { HyperlinkEntry } from './hyperlink';
4
+ export type FooterMenuEntry = Entry<TypeFooterMenuSkeleton, "WITHOUT_UNRESOLVABLE_LINKS", string>;
1
5
  export type FooterMenuGraphQLResponse = {
2
6
  footerMenuCollection: {
3
7
  items: Array<{
4
- sys: {
5
- id: string;
6
- };
7
- name: string;
8
+ sys: EntrySys;
8
9
  childrenCollection: {
9
10
  items: Array<{
10
- sys: {
11
- id: string;
12
- };
13
- label: string;
14
- url: string;
15
- target: string;
16
- }>;
11
+ sys: EntrySys;
12
+ } & Pick<HyperlinkEntry["fields"], "label" | "url" | "target" | "basePath">>;
17
13
  };
18
- }>;
14
+ } & Pick<FooterMenuEntry["fields"], "name">>;
19
15
  };
20
16
  };
21
17
  export declare const listFooterMenuEntries: ({ marketId, language, }: {
@@ -0,0 +1,3 @@
1
+ import { TypeHyperlinkSkeleton } from '../types';
2
+ import { Entry } from 'contentful';
3
+ export type HyperlinkEntry = Entry<TypeHyperlinkSkeleton, "WITHOUT_UNRESOLVABLE_LINKS", string>;
@@ -2,3 +2,4 @@ export * from './banner';
2
2
  export * from './blog';
3
3
  export * from './documentation';
4
4
  export * from './footer-menu';
5
+ export * from './hyperlink';
package/dist/index.cjs CHANGED
@@ -24,6 +24,7 @@ query ($marketId: String!, $language: String!) {
24
24
  label
25
25
  url
26
26
  target
27
+ basePath
27
28
  }
28
29
  }
29
30
  }
package/dist/index.js CHANGED
@@ -127,7 +127,7 @@ const u = async ({
127
127
  ...t,
128
128
  content_type: "documentationCategory"
129
129
  }
130
- ), p = async ({
130
+ ), h = async ({
131
131
  query: t,
132
132
  marketId: e,
133
133
  language: s
@@ -144,7 +144,7 @@ const u = async ({
144
144
  if (!n)
145
145
  throw new o();
146
146
  return n;
147
- }, h = ({
147
+ }, p = ({
148
148
  query: t,
149
149
  marketId: e,
150
150
  language: s
@@ -202,6 +202,7 @@ query ($marketId: String!, $language: String!) {
202
202
  label
203
203
  url
204
204
  target
205
+ basePath
205
206
  }
206
207
  }
207
208
  }
@@ -215,10 +216,10 @@ export {
215
216
  i as ContentfulSDK,
216
217
  m as findBlogPostEntry,
217
218
  w as findDocArticleEntry,
218
- p as findDocCategoryEntry,
219
+ h as findDocCategoryEntry,
219
220
  f as listBannerEntries,
220
221
  u as listBlogPostEntries,
221
- h as listDocArticleEntries,
222
+ p as listDocArticleEntries,
222
223
  k as listDocCategoryEntries,
223
224
  T as listFooterMenuEntries
224
225
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@janbox/contentful-marketplace-sdk",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",