@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.
- package/dist/entries/footer-menu.d.ts +8 -12
- package/dist/entries/hyperlink.d.ts +3 -0
- package/dist/entries/index.d.ts +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +5 -4
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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, }: {
|
package/dist/entries/index.d.ts
CHANGED
package/dist/index.cjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -127,7 +127,7 @@ const u = async ({
|
|
|
127
127
|
...t,
|
|
128
128
|
content_type: "documentationCategory"
|
|
129
129
|
}
|
|
130
|
-
),
|
|
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
|
-
},
|
|
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
|
-
|
|
219
|
+
h as findDocCategoryEntry,
|
|
219
220
|
f as listBannerEntries,
|
|
220
221
|
u as listBlogPostEntries,
|
|
221
|
-
|
|
222
|
+
p as listDocArticleEntries,
|
|
222
223
|
k as listDocCategoryEntries,
|
|
223
224
|
T as listFooterMenuEntries
|
|
224
225
|
};
|