@se-studio/contentful-rest-api 0.1.0 → 0.1.1
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/README.md +34 -2
- package/dist/index.d.ts +211 -186
- package/dist/index.js +212 -343
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Document } from '@contentful/rich-text-types';
|
|
2
|
+
import { IBaseArticle, IBaseCollection, IBaseComponent, INavigationItem, IBasePage, IVisual, IInternalLink, INavigation, IPerson, IResponsiveVisual } from '@se-studio/core-data-types';
|
|
3
|
+
import * as contentful from 'contentful';
|
|
4
|
+
import { EntrySkeletonType, EntryFieldTypes, Entry, UnresolvedLink } from 'contentful';
|
|
3
5
|
|
|
4
6
|
interface BaseExternalVideoFields {
|
|
5
7
|
name: EntryFieldTypes.Symbol;
|
|
@@ -34,32 +36,32 @@ interface BaseMediaFields {
|
|
|
34
36
|
}
|
|
35
37
|
type BaseMediaSkeleton = EntrySkeletonType<BaseMediaFields, 'media'>;
|
|
36
38
|
|
|
37
|
-
interface BaseNavigationItemFields
|
|
39
|
+
interface BaseNavigationItemFields {
|
|
38
40
|
title: EntryFieldTypes.Symbol;
|
|
39
41
|
useTitle: EntryFieldTypes.Boolean;
|
|
40
|
-
navigationItems?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseNavigationItemSkeleton
|
|
42
|
+
navigationItems?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseNavigationItemSkeleton>>;
|
|
41
43
|
text?: EntryFieldTypes.Symbol;
|
|
42
|
-
internal?: EntryFieldTypes.EntryLink<BaseLink
|
|
44
|
+
internal?: EntryFieldTypes.EntryLink<BaseLink>;
|
|
43
45
|
link?: EntryFieldTypes.Symbol;
|
|
44
46
|
isButton?: EntryFieldTypes.Boolean;
|
|
45
47
|
isOutlined?: EntryFieldTypes.Boolean;
|
|
46
|
-
backgroundColour?: EntryFieldTypes.Symbol<
|
|
47
|
-
textColour?: EntryFieldTypes.Symbol<
|
|
48
|
+
backgroundColour?: EntryFieldTypes.Symbol<string>;
|
|
49
|
+
textColour?: EntryFieldTypes.Symbol<string>;
|
|
48
50
|
icon?: EntryFieldTypes.AssetLink;
|
|
49
|
-
variant?: EntryFieldTypes.Symbol<
|
|
50
|
-
size?: EntryFieldTypes.Symbol<
|
|
51
|
+
variant?: EntryFieldTypes.Symbol<string>;
|
|
52
|
+
size?: EntryFieldTypes.Symbol<string>;
|
|
51
53
|
longText?: EntryFieldTypes.RichText;
|
|
52
54
|
}
|
|
53
|
-
type BaseNavigationItemSkeleton
|
|
55
|
+
type BaseNavigationItemSkeleton = EntrySkeletonType<BaseNavigationItemFields, 'navigationItem'>;
|
|
54
56
|
|
|
55
|
-
interface BaseNavigationFields
|
|
57
|
+
interface BaseNavigationFields {
|
|
56
58
|
adminLabel: EntryFieldTypes.Symbol;
|
|
57
59
|
name: EntryFieldTypes.Symbol;
|
|
58
|
-
backgroundColour?: EntryFieldTypes.Symbol<
|
|
59
|
-
textColour?: EntryFieldTypes.Symbol<
|
|
60
|
-
entries?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseNavigationItemSkeleton
|
|
60
|
+
backgroundColour?: EntryFieldTypes.Symbol<string>;
|
|
61
|
+
textColour?: EntryFieldTypes.Symbol<string>;
|
|
62
|
+
entries?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseNavigationItemSkeleton>>;
|
|
61
63
|
}
|
|
62
|
-
type BaseNavigationSkeleton
|
|
64
|
+
type BaseNavigationSkeleton = EntrySkeletonType<BaseNavigationFields, 'navigation'>;
|
|
63
65
|
|
|
64
66
|
interface BaseSchemaFields {
|
|
65
67
|
cmsLabel: EntryFieldTypes.Symbol;
|
|
@@ -67,47 +69,47 @@ interface BaseSchemaFields {
|
|
|
67
69
|
}
|
|
68
70
|
type BaseSchemaSkeleton = EntrySkeletonType<BaseSchemaFields, 'schema'>;
|
|
69
71
|
|
|
70
|
-
interface BaseTemplateFields
|
|
72
|
+
interface BaseTemplateFields {
|
|
71
73
|
cmsLabel: EntryFieldTypes.Symbol;
|
|
72
|
-
preContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent
|
|
73
|
-
postContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent
|
|
74
|
-
menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton
|
|
75
|
-
footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton
|
|
76
|
-
backgroundColour?: EntryFieldTypes.Symbol<
|
|
77
|
-
textColour?: EntryFieldTypes.Symbol<
|
|
74
|
+
preContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
|
|
75
|
+
postContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
|
|
76
|
+
menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton>;
|
|
77
|
+
footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton>;
|
|
78
|
+
backgroundColour?: EntryFieldTypes.Symbol<string>;
|
|
79
|
+
textColour?: EntryFieldTypes.Symbol<string>;
|
|
78
80
|
flags?: EntryFieldTypes.Array<EntryFieldTypes.Symbol<'Sticky nav'>>;
|
|
79
81
|
}
|
|
80
|
-
type BaseTemplateSkeleton
|
|
82
|
+
type BaseTemplateSkeleton = EntrySkeletonType<BaseTemplateFields, 'template'>;
|
|
81
83
|
|
|
82
|
-
interface BaseArticleTypeFields
|
|
84
|
+
interface BaseArticleTypeFields {
|
|
83
85
|
name: EntryFieldTypes.Symbol;
|
|
84
86
|
slug: EntryFieldTypes.Symbol;
|
|
85
87
|
indexPageName: EntryFieldTypes.Symbol;
|
|
86
88
|
indexPageSlug: EntryFieldTypes.Symbol;
|
|
87
89
|
indexPageDescription: EntryFieldTypes.Symbol;
|
|
88
90
|
featuredImage: EntryFieldTypes.AssetLink;
|
|
89
|
-
menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton
|
|
90
|
-
footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton
|
|
91
|
-
indexPageTemplate?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton
|
|
92
|
-
indexPageTopContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent
|
|
91
|
+
menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton>;
|
|
92
|
+
footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton>;
|
|
93
|
+
indexPageTemplate?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton>;
|
|
94
|
+
indexPageTopContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
|
|
93
95
|
indexPageStructuredData?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseSchemaSkeleton>>;
|
|
94
96
|
visuals?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseExternalVideoSkeleton | BaseMediaSkeleton>>;
|
|
95
|
-
articleTemplate?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton
|
|
96
|
-
articlePageTopContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent
|
|
97
|
+
articleTemplate?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton>;
|
|
98
|
+
articlePageTopContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
|
|
97
99
|
structuredData?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseSchemaSkeleton>>;
|
|
98
|
-
backgroundColour?: EntryFieldTypes.Symbol<
|
|
99
|
-
textColour?: EntryFieldTypes.Symbol<
|
|
100
|
+
backgroundColour?: EntryFieldTypes.Symbol<string>;
|
|
101
|
+
textColour?: EntryFieldTypes.Symbol<string>;
|
|
100
102
|
indexed: EntryFieldTypes.Boolean;
|
|
101
103
|
hidden: EntryFieldTypes.Boolean;
|
|
102
104
|
indexPageHidden?: EntryFieldTypes.Boolean;
|
|
103
105
|
articlePageHidden?: EntryFieldTypes.Boolean;
|
|
104
106
|
flags?: EntryFieldTypes.Array<EntryFieldTypes.Symbol<'Sticky nav'>>;
|
|
105
|
-
searchTemplate?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton
|
|
106
|
-
searchTopContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent
|
|
107
|
+
searchTemplate?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton>;
|
|
108
|
+
searchTopContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
|
|
107
109
|
}
|
|
108
|
-
type BaseArticleTypeSkeleton
|
|
110
|
+
type BaseArticleTypeSkeleton = EntrySkeletonType<BaseArticleTypeFields, 'articleType'>;
|
|
109
111
|
|
|
110
|
-
interface BasePersonFields
|
|
112
|
+
interface BasePersonFields {
|
|
111
113
|
name: EntryFieldTypes.Symbol;
|
|
112
114
|
slug: EntryFieldTypes.Symbol;
|
|
113
115
|
jobTitle: EntryFieldTypes.Symbol;
|
|
@@ -117,23 +119,23 @@ interface BasePersonFields<TConfig extends BaseCmsConfig> {
|
|
|
117
119
|
linkedIn?: EntryFieldTypes.Symbol;
|
|
118
120
|
media?: EntryFieldTypes.AssetLink;
|
|
119
121
|
location?: EntryFieldTypes.Symbol;
|
|
120
|
-
content?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent
|
|
122
|
+
content?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
|
|
121
123
|
structuredData?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseSchemaSkeleton>>;
|
|
122
124
|
indexed: EntryFieldTypes.Boolean;
|
|
123
125
|
hidden: EntryFieldTypes.Boolean;
|
|
124
126
|
bio?: EntryFieldTypes.RichText;
|
|
125
|
-
textColour?: EntryFieldTypes.Symbol<
|
|
126
|
-
backgroundColour?: EntryFieldTypes.Symbol<
|
|
127
|
+
textColour?: EntryFieldTypes.Symbol<string>;
|
|
128
|
+
backgroundColour?: EntryFieldTypes.Symbol<string>;
|
|
127
129
|
visuals?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseExternalVideoSkeleton | BaseMediaSkeleton>>;
|
|
128
130
|
}
|
|
129
|
-
type BasePersonSkeleton
|
|
131
|
+
type BasePersonSkeleton = EntrySkeletonType<BasePersonFields, 'person'>;
|
|
130
132
|
|
|
131
133
|
interface BaseTagTypeFields {
|
|
132
134
|
name: EntryFieldTypes.Symbol;
|
|
133
135
|
}
|
|
134
136
|
type BaseTagTypeSkeleton = EntrySkeletonType<BaseTagTypeFields, 'tagType'>;
|
|
135
137
|
|
|
136
|
-
interface BaseTagFields
|
|
138
|
+
interface BaseTagFields {
|
|
137
139
|
cmsLabel: EntryFieldTypes.Symbol;
|
|
138
140
|
name: EntryFieldTypes.Symbol;
|
|
139
141
|
tagType: EntryFieldTypes.EntryLink<BaseTagTypeSkeleton>;
|
|
@@ -141,39 +143,39 @@ interface BaseTagFields<TConfig extends BaseCmsConfig> {
|
|
|
141
143
|
description: EntryFieldTypes.Symbol;
|
|
142
144
|
featuredImage: EntryFieldTypes.AssetLink;
|
|
143
145
|
visuals?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseExternalVideoSkeleton | BaseMediaSkeleton>>;
|
|
144
|
-
menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton
|
|
145
|
-
footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton
|
|
146
|
-
template?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton
|
|
147
|
-
topContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent
|
|
146
|
+
menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton>;
|
|
147
|
+
footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton>;
|
|
148
|
+
template?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton>;
|
|
149
|
+
topContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
|
|
148
150
|
structuredData?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseSchemaSkeleton>>;
|
|
149
|
-
backgroundColour?: EntryFieldTypes.Symbol<
|
|
150
|
-
textColour?: EntryFieldTypes.Symbol<
|
|
151
|
+
backgroundColour?: EntryFieldTypes.Symbol<string>;
|
|
152
|
+
textColour?: EntryFieldTypes.Symbol<string>;
|
|
151
153
|
indexed: EntryFieldTypes.Boolean;
|
|
152
154
|
hidden: EntryFieldTypes.Boolean;
|
|
153
155
|
}
|
|
154
|
-
type BaseTagSkeleton
|
|
156
|
+
type BaseTagSkeleton = EntrySkeletonType<BaseTagFields, 'tag'>;
|
|
155
157
|
|
|
156
|
-
interface BaseArticleFields
|
|
158
|
+
interface BaseArticleFields {
|
|
157
159
|
cmsLabel: EntryFieldTypes.Symbol;
|
|
158
|
-
articleType: EntryFieldTypes.EntryLink<BaseArticleTypeSkeleton
|
|
160
|
+
articleType: EntryFieldTypes.EntryLink<BaseArticleTypeSkeleton>;
|
|
159
161
|
title: EntryFieldTypes.Symbol;
|
|
160
162
|
description?: EntryFieldTypes.Text;
|
|
161
|
-
author?: EntryFieldTypes.EntryLink<BasePersonSkeleton
|
|
163
|
+
author?: EntryFieldTypes.EntryLink<BasePersonSkeleton>;
|
|
162
164
|
subtitle?: EntryFieldTypes.Symbol;
|
|
163
165
|
date: EntryFieldTypes.Date;
|
|
164
166
|
slug: EntryFieldTypes.Symbol;
|
|
165
167
|
featuredImage: EntryFieldTypes.AssetLink;
|
|
166
168
|
visuals?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseExternalVideoSkeleton | BaseMediaSkeleton>>;
|
|
167
169
|
icon?: EntryFieldTypes.AssetLink;
|
|
168
|
-
tags?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseTagSkeleton
|
|
169
|
-
topContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent
|
|
170
|
-
content?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent
|
|
171
|
-
bottomContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent
|
|
172
|
-
menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton
|
|
173
|
-
footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton
|
|
174
|
-
template?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton
|
|
175
|
-
backgroundColour?: EntryFieldTypes.Symbol<
|
|
176
|
-
textColour?: EntryFieldTypes.Symbol<
|
|
170
|
+
tags?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseTagSkeleton>>;
|
|
171
|
+
topContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
|
|
172
|
+
content?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
|
|
173
|
+
bottomContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
|
|
174
|
+
menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton>;
|
|
175
|
+
footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton>;
|
|
176
|
+
template?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton>;
|
|
177
|
+
backgroundColour?: EntryFieldTypes.Symbol<string>;
|
|
178
|
+
textColour?: EntryFieldTypes.Symbol<string>;
|
|
177
179
|
indexed: EntryFieldTypes.Boolean;
|
|
178
180
|
hidden: EntryFieldTypes.Boolean;
|
|
179
181
|
redirectTo?: EntryFieldTypes.Symbol;
|
|
@@ -181,67 +183,65 @@ interface BaseArticleFields<TConfig extends BaseCmsConfig> {
|
|
|
181
183
|
externalLink?: EntryFieldTypes.Symbol;
|
|
182
184
|
flags?: EntryFieldTypes.Array<EntryFieldTypes.Symbol<'Sticky nav'>>;
|
|
183
185
|
}
|
|
184
|
-
type BaseArticleSkeleton
|
|
186
|
+
type BaseArticleSkeleton = EntrySkeletonType<BaseArticleFields, 'article'>;
|
|
185
187
|
|
|
186
|
-
interface BaseLinkFields
|
|
188
|
+
interface BaseLinkFields {
|
|
187
189
|
name: EntryFieldTypes.Symbol;
|
|
188
190
|
useName: EntryFieldTypes.Boolean;
|
|
189
191
|
linkText?: EntryFieldTypes.Symbol;
|
|
190
|
-
internal?: EntryFieldTypes.EntryLink<BaseArticleSkeleton
|
|
192
|
+
internal?: EntryFieldTypes.EntryLink<BaseArticleSkeleton | BaseArticleTypeSkeleton | BasePageSkeleton | BasePageVariantSkeleton | BasePersonSkeleton | BaseTagSkeleton>;
|
|
191
193
|
external?: EntryFieldTypes.Symbol;
|
|
192
194
|
isButton?: EntryFieldTypes.Boolean;
|
|
193
195
|
isOutlined?: EntryFieldTypes.Boolean;
|
|
194
|
-
backgroundColour?: EntryFieldTypes.Symbol<
|
|
195
|
-
textColour?: EntryFieldTypes.Symbol<
|
|
196
|
+
backgroundColour?: EntryFieldTypes.Symbol<string>;
|
|
197
|
+
textColour?: EntryFieldTypes.Symbol<string>;
|
|
196
198
|
icon?: EntryFieldTypes.AssetLink;
|
|
197
199
|
downloadAsset?: EntryFieldTypes.AssetLink;
|
|
198
|
-
variant?: EntryFieldTypes.Symbol<
|
|
199
|
-
size?: EntryFieldTypes.Symbol<
|
|
200
|
+
variant?: EntryFieldTypes.Symbol<string>;
|
|
201
|
+
size?: EntryFieldTypes.Symbol<string>;
|
|
200
202
|
}
|
|
201
|
-
type BaseLinkSkeleton
|
|
203
|
+
type BaseLinkSkeleton = EntrySkeletonType<BaseLinkFields, 'link'>;
|
|
202
204
|
|
|
203
|
-
interface BaseCollectionFields
|
|
205
|
+
interface BaseCollectionFields {
|
|
204
206
|
cmsLabel: EntryFieldTypes.Symbol;
|
|
205
207
|
heading?: EntryFieldTypes.Symbol;
|
|
206
|
-
collectionType: EntryFieldTypes.Symbol<
|
|
207
|
-
textSize?: EntryFieldTypes.Symbol<'Large' | 'Medium' | 'Small'>;
|
|
208
|
+
collectionType: EntryFieldTypes.Symbol<string>;
|
|
208
209
|
showHeading: EntryFieldTypes.Boolean;
|
|
209
210
|
anchor?: EntryFieldTypes.Symbol;
|
|
210
|
-
backgroundColour?: EntryFieldTypes.Symbol<
|
|
211
|
+
backgroundColour?: EntryFieldTypes.Symbol<string>;
|
|
211
212
|
backgroundVisual?: EntryFieldTypes.AssetLink;
|
|
212
213
|
mobileBackgroundVisual?: EntryFieldTypes.AssetLink;
|
|
213
214
|
backgroundOverlayOpacity?: EntryFieldTypes.Number;
|
|
214
|
-
textColour?: EntryFieldTypes.Symbol<
|
|
215
|
+
textColour?: EntryFieldTypes.Symbol<string>;
|
|
215
216
|
preHeading?: EntryFieldTypes.Symbol;
|
|
216
217
|
postHeading?: EntryFieldTypes.Symbol;
|
|
217
218
|
body?: EntryFieldTypes.RichText;
|
|
218
219
|
icon?: EntryFieldTypes.AssetLink;
|
|
219
|
-
links?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseLinkSkeleton
|
|
220
|
-
contents?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent
|
|
220
|
+
links?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseLinkSkeleton | BaseLink>>;
|
|
221
|
+
contents?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent | BaseLink>>;
|
|
221
222
|
visual?: EntryFieldTypes.EntryLink<BaseExternalVideoSkeleton | BaseMediaSkeleton>;
|
|
222
223
|
mobileVisual?: EntryFieldTypes.EntryLink<BaseExternalVideoSkeleton | BaseMediaSkeleton>;
|
|
223
224
|
visualCustomSize?: EntryFieldTypes.Integer;
|
|
224
225
|
additionalCopy?: EntryFieldTypes.RichText;
|
|
225
226
|
}
|
|
226
|
-
type BaseCollectionSkeleton
|
|
227
|
+
type BaseCollectionSkeleton = EntrySkeletonType<BaseCollectionFields, 'collection'>;
|
|
227
228
|
|
|
228
|
-
interface BaseComponentFields
|
|
229
|
+
interface BaseComponentFields {
|
|
229
230
|
cmsLabel: EntryFieldTypes.Symbol;
|
|
230
231
|
heading?: EntryFieldTypes.Symbol;
|
|
231
232
|
showHeading: EntryFieldTypes.Boolean;
|
|
232
|
-
componentType: EntryFieldTypes.Symbol<
|
|
233
|
-
textSize?: EntryFieldTypes.Symbol<'Large' | 'Medium' | 'Small'>;
|
|
233
|
+
componentType: EntryFieldTypes.Symbol<string>;
|
|
234
234
|
anchor?: EntryFieldTypes.Symbol;
|
|
235
|
-
backgroundColour?: EntryFieldTypes.Symbol<
|
|
235
|
+
backgroundColour?: EntryFieldTypes.Symbol<string>;
|
|
236
236
|
backgroundVisual?: EntryFieldTypes.AssetLink;
|
|
237
237
|
mobileBackgroundVisual?: EntryFieldTypes.AssetLink;
|
|
238
238
|
backgroundOverlayOpacity?: EntryFieldTypes.Number;
|
|
239
|
-
textColour?: EntryFieldTypes.Symbol<
|
|
239
|
+
textColour?: EntryFieldTypes.Symbol<string>;
|
|
240
240
|
preHeading?: EntryFieldTypes.Symbol;
|
|
241
241
|
postHeading?: EntryFieldTypes.Symbol;
|
|
242
242
|
body?: EntryFieldTypes.RichText;
|
|
243
243
|
icon?: EntryFieldTypes.AssetLink;
|
|
244
|
-
links?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseLink
|
|
244
|
+
links?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseLink | BaseLinkSkeleton>>;
|
|
245
245
|
visual?: EntryFieldTypes.EntryLink<BaseExternalVideoSkeleton | BaseMediaSkeleton>;
|
|
246
246
|
mobileVisual?: EntryFieldTypes.EntryLink<BaseExternalVideoSkeleton | BaseMediaSkeleton>;
|
|
247
247
|
visualCustomSize?: EntryFieldTypes.Integer;
|
|
@@ -249,94 +249,120 @@ interface BaseComponentFields<TConfig extends BaseCmsConfig> {
|
|
|
249
249
|
otherVisuals?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseExternalVideoSkeleton | BaseMediaSkeleton>>;
|
|
250
250
|
additionalCopy?: EntryFieldTypes.RichText;
|
|
251
251
|
}
|
|
252
|
-
type BaseComponentSkeleton
|
|
252
|
+
type BaseComponentSkeleton = EntrySkeletonType<BaseComponentFields, 'component'>;
|
|
253
253
|
|
|
254
|
-
interface BaseExternalComponentFields
|
|
254
|
+
interface BaseExternalComponentFields {
|
|
255
255
|
cmsLabel: EntryFieldTypes.Symbol;
|
|
256
|
-
externalComponentType: EntryFieldTypes.Symbol<
|
|
256
|
+
externalComponentType: EntryFieldTypes.Symbol<string>;
|
|
257
257
|
heading?: EntryFieldTypes.Symbol;
|
|
258
258
|
data: EntryFieldTypes.Object;
|
|
259
|
-
backgroundColour?: EntryFieldTypes.Symbol<
|
|
260
|
-
textColour?: EntryFieldTypes.Symbol<
|
|
259
|
+
backgroundColour?: EntryFieldTypes.Symbol<string>;
|
|
260
|
+
textColour?: EntryFieldTypes.Symbol<string>;
|
|
261
261
|
}
|
|
262
|
-
type BaseExternalComponentSkeleton
|
|
262
|
+
type BaseExternalComponentSkeleton = EntrySkeletonType<BaseExternalComponentFields, 'externalComponent'>;
|
|
263
263
|
|
|
264
|
-
interface BasePageFields
|
|
264
|
+
interface BasePageFields {
|
|
265
265
|
cmsLabel: EntryFieldTypes.Symbol;
|
|
266
266
|
title: EntryFieldTypes.Symbol;
|
|
267
267
|
slug: EntryFieldTypes.Symbol;
|
|
268
268
|
description?: EntryFieldTypes.Text;
|
|
269
269
|
featuredImage: EntryFieldTypes.AssetLink;
|
|
270
270
|
visuals?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseExternalVideoSkeleton | BaseMediaSkeleton>>;
|
|
271
|
-
tags?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseTagSkeleton
|
|
272
|
-
menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton
|
|
273
|
-
footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton
|
|
274
|
-
template?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton
|
|
275
|
-
topContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent
|
|
276
|
-
content?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent
|
|
277
|
-
bottomContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent
|
|
271
|
+
tags?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseTagSkeleton>>;
|
|
272
|
+
menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton>;
|
|
273
|
+
footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton>;
|
|
274
|
+
template?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton>;
|
|
275
|
+
topContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
|
|
276
|
+
content?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
|
|
277
|
+
bottomContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
|
|
278
278
|
structuredData?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseSchemaSkeleton>>;
|
|
279
|
-
backgroundColour?: EntryFieldTypes.Symbol<
|
|
280
|
-
textColour?: EntryFieldTypes.Symbol<
|
|
279
|
+
backgroundColour?: EntryFieldTypes.Symbol<string>;
|
|
280
|
+
textColour?: EntryFieldTypes.Symbol<string>;
|
|
281
281
|
indexed: EntryFieldTypes.Boolean;
|
|
282
282
|
hidden: EntryFieldTypes.Boolean;
|
|
283
283
|
}
|
|
284
|
-
type BasePageSkeleton
|
|
284
|
+
type BasePageSkeleton = EntrySkeletonType<BasePageFields, 'page'>;
|
|
285
285
|
|
|
286
|
-
interface BaseAlternatePageContentFields
|
|
286
|
+
interface BaseAlternatePageContentFields {
|
|
287
287
|
cmsLabel: EntryFieldTypes.Symbol;
|
|
288
|
-
sourceContent: EntryFieldTypes.EntryLink<BaseContent
|
|
289
|
-
replacementContent?: EntryFieldTypes.EntryLink<BaseContent
|
|
288
|
+
sourceContent: EntryFieldTypes.EntryLink<BaseContent>;
|
|
289
|
+
replacementContent?: EntryFieldTypes.EntryLink<BaseContent>;
|
|
290
290
|
}
|
|
291
|
-
type BaseAlternatePageContentSkeleton
|
|
291
|
+
type BaseAlternatePageContentSkeleton = EntrySkeletonType<BaseAlternatePageContentFields, 'alternatePageContent'>;
|
|
292
292
|
|
|
293
|
-
interface BasePageVariantFields
|
|
293
|
+
interface BasePageVariantFields {
|
|
294
294
|
cmsLabel: EntryFieldTypes.Symbol;
|
|
295
295
|
title?: EntryFieldTypes.Symbol;
|
|
296
296
|
slug: EntryFieldTypes.Symbol;
|
|
297
|
-
originalPage: EntryFieldTypes.EntryLink<BasePageSkeleton
|
|
298
|
-
alternativeContents?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseAlternatePageContentSkeleton
|
|
297
|
+
originalPage: EntryFieldTypes.EntryLink<BasePageSkeleton>;
|
|
298
|
+
alternativeContents?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseAlternatePageContentSkeleton>>;
|
|
299
299
|
description?: EntryFieldTypes.Symbol;
|
|
300
300
|
featuredImage?: EntryFieldTypes.AssetLink;
|
|
301
301
|
structuredData?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseSchemaSkeleton>>;
|
|
302
|
-
tags?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseTagSkeleton
|
|
303
|
-
template?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton
|
|
304
|
-
menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton
|
|
305
|
-
footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton
|
|
306
|
-
backgroundColour?: EntryFieldTypes.Symbol<
|
|
307
|
-
textColour?: EntryFieldTypes.Symbol<
|
|
302
|
+
tags?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseTagSkeleton>>;
|
|
303
|
+
template?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton>;
|
|
304
|
+
menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton>;
|
|
305
|
+
footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton>;
|
|
306
|
+
backgroundColour?: EntryFieldTypes.Symbol<string>;
|
|
307
|
+
textColour?: EntryFieldTypes.Symbol<string>;
|
|
308
308
|
indexed: EntryFieldTypes.Boolean;
|
|
309
309
|
hidden: EntryFieldTypes.Boolean;
|
|
310
310
|
redirectTo?: EntryFieldTypes.Symbol;
|
|
311
311
|
visuals?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseExternalVideoSkeleton | BaseMediaSkeleton>>;
|
|
312
312
|
}
|
|
313
|
-
type BasePageVariantSkeleton
|
|
313
|
+
type BasePageVariantSkeleton = EntrySkeletonType<BasePageVariantFields, 'pageVariant'>;
|
|
314
314
|
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
315
|
+
interface BaseCustomTypeFields {
|
|
316
|
+
name: EntryFieldTypes.Symbol;
|
|
317
|
+
slug: EntryFieldTypes.Symbol;
|
|
318
|
+
indexPageName: EntryFieldTypes.Symbol;
|
|
319
|
+
indexPageSlug: EntryFieldTypes.Symbol;
|
|
320
|
+
indexPageDescription: EntryFieldTypes.Symbol;
|
|
321
|
+
featuredImage: EntryFieldTypes.AssetLink;
|
|
322
|
+
menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton>;
|
|
323
|
+
footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton>;
|
|
324
|
+
indexPageTemplate?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton>;
|
|
325
|
+
indexPageTopContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
|
|
326
|
+
indexPageStructuredData?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseSchemaSkeleton>>;
|
|
327
|
+
template?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton>;
|
|
328
|
+
topContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
|
|
329
|
+
structuredData?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseSchemaSkeleton>>;
|
|
330
|
+
backgroundColour?: EntryFieldTypes.Symbol<string>;
|
|
331
|
+
textColour?: EntryFieldTypes.Symbol<string>;
|
|
332
|
+
indexed: EntryFieldTypes.Boolean;
|
|
333
|
+
hidden: EntryFieldTypes.Boolean;
|
|
334
|
+
visuals?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseExternalVideoSkeleton | BaseMediaSkeleton>>;
|
|
335
|
+
}
|
|
336
|
+
type BaseCustomTypeSkeleton = EntrySkeletonType<BaseCustomTypeFields, 'customType'>;
|
|
318
337
|
|
|
319
|
-
|
|
338
|
+
type BaseContent = BaseCollectionSkeleton | BaseComponentSkeleton | BaseExternalComponentSkeleton | BaseExternalVideoSkeleton | BaseMediaSkeleton | BasePersonSkeleton;
|
|
339
|
+
type BaseLink = BaseArticleSkeleton | BaseArticleTypeSkeleton | BaseLinkSkeleton | BasePageSkeleton | BasePageVariantSkeleton | BasePersonSkeleton | BaseTagSkeleton | BaseCustomTypeSkeleton;
|
|
320
340
|
|
|
321
|
-
declare function
|
|
341
|
+
declare function baseArticleConverter(context: ConverterContext, entry: Entry<BaseArticleSkeleton, DefaultChainModifier, string>): IBaseArticle;
|
|
322
342
|
|
|
323
|
-
declare function
|
|
343
|
+
declare function baseCollectionConverter(context: ConverterContext, entry: Entry<BaseCollectionSkeleton, DefaultChainModifier, string>): IBaseCollection;
|
|
324
344
|
|
|
325
|
-
declare function
|
|
345
|
+
declare function baseComponentConverter(context: ConverterContext, entry: Entry<BaseComponentSkeleton, DefaultChainModifier, string>): IBaseComponent;
|
|
326
346
|
|
|
327
|
-
declare function
|
|
347
|
+
declare function baseNavigationItemConverter(context: ConverterContext, entry: Entry<BaseNavigationItemSkeleton, DefaultChainModifier, string>): INavigationItem;
|
|
328
348
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
349
|
+
declare function basePageConverter(context: ConverterContext, entry: Entry<BasePageSkeleton, DefaultChainModifier, string>): IBasePage;
|
|
350
|
+
|
|
351
|
+
declare function lookupAsset(context: ConverterContext, asset: UnresolvedLink<'Asset'> | undefined): IVisual | undefined;
|
|
352
|
+
type ContentResolverFunction = (context: ConverterContext, entry: Entry<BaseContent, DefaultChainModifier, string>) => unknown;
|
|
353
|
+
type LinkResolverFunction = (context: ConverterContext, entry: Entry<BaseLink, DefaultChainModifier, string>) => IInternalLink;
|
|
354
|
+
type LinkResolverMap = Map<string, LinkResolverFunction>;
|
|
355
|
+
type ConverterContext = {
|
|
356
|
+
videoPrefix: string;
|
|
357
|
+
includes: Map<string, PossibleResolvedEntry>;
|
|
333
358
|
assets: Map<string, IVisual>;
|
|
334
|
-
linkResolver: LinkResolverMap
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
359
|
+
linkResolver: LinkResolverMap;
|
|
360
|
+
contentResolver: Map<string, (context: ConverterContext, entry: Entry<BaseContent, DefaultChainModifier, string>) => unknown>;
|
|
361
|
+
navigationItemResolver: typeof baseNavigationItemConverter;
|
|
362
|
+
pageResolver: typeof basePageConverter;
|
|
363
|
+
articleResolver: typeof baseArticleConverter;
|
|
364
|
+
componentResolver: typeof baseComponentConverter;
|
|
365
|
+
collectionResolver: typeof baseCollectionConverter;
|
|
340
366
|
};
|
|
341
367
|
|
|
342
368
|
interface ContentfulConfig {
|
|
@@ -344,13 +370,6 @@ interface ContentfulConfig {
|
|
|
344
370
|
accessToken: string;
|
|
345
371
|
environment?: string;
|
|
346
372
|
host?: string;
|
|
347
|
-
options?: Partial<Omit<CreateClientParams, 'space' | 'accessToken'>>;
|
|
348
|
-
}
|
|
349
|
-
type ContentfulClient = ContentfulClientApi<undefined>;
|
|
350
|
-
interface CacheConfig {
|
|
351
|
-
tags?: string[];
|
|
352
|
-
revalidate?: number | false;
|
|
353
|
-
cache?: 'force-cache' | 'no-store';
|
|
354
373
|
}
|
|
355
374
|
interface RetryConfig {
|
|
356
375
|
maxRetries?: number;
|
|
@@ -362,25 +381,68 @@ interface FetchOptions {
|
|
|
362
381
|
locale?: string;
|
|
363
382
|
preview?: boolean;
|
|
364
383
|
include?: number;
|
|
365
|
-
cache?:
|
|
384
|
+
cache?: 'force-cache' | 'no-store';
|
|
385
|
+
next?: {
|
|
386
|
+
revalidate?: number | false;
|
|
387
|
+
tags?: string[];
|
|
388
|
+
};
|
|
366
389
|
retry?: RetryConfig;
|
|
367
390
|
}
|
|
368
391
|
|
|
369
392
|
type DefaultChainModifier = 'WITHOUT_LINK_RESOLUTION';
|
|
370
|
-
type ResolvedEntry
|
|
371
|
-
type PossibleResolvedEntry
|
|
393
|
+
type ResolvedEntry = IBasePage | IBaseArticle | INavigation | INavigationItem | IInternalLink | unknown | IPerson;
|
|
394
|
+
type PossibleResolvedEntry = {
|
|
372
395
|
id: string;
|
|
373
396
|
type: string;
|
|
374
397
|
entry: Entry<EntrySkeletonType, DefaultChainModifier, string>;
|
|
375
|
-
resolved?: ResolvedEntry
|
|
398
|
+
resolved?: ResolvedEntry;
|
|
376
399
|
};
|
|
377
|
-
declare function contentfulPageRest
|
|
378
|
-
|
|
379
|
-
|
|
400
|
+
declare function contentfulPageRest(context: Omit<ConverterContext, 'includes' | 'assets'>, config: ContentfulConfig, slug: string, options?: FetchOptions): Promise<IBasePage | null>;
|
|
401
|
+
interface IContentfulRichText {
|
|
402
|
+
json: Document;
|
|
403
|
+
customStyles?: ReadonlyArray<string> | null;
|
|
404
|
+
}
|
|
405
|
+
declare function createBaseConverterContext(): Omit<ConverterContext, 'includes' | 'assets'>;
|
|
406
|
+
declare function contentfulArticleRest(context: Omit<ConverterContext, 'includes' | 'assets'>, config: ContentfulConfig, slug: string, articleTypeSlug: string, options?: FetchOptions): Promise<IBaseArticle | null>;
|
|
380
407
|
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
408
|
+
interface ContentfulResponse<T = any> {
|
|
409
|
+
sys: {
|
|
410
|
+
type: 'Array';
|
|
411
|
+
};
|
|
412
|
+
total: number;
|
|
413
|
+
skip: number;
|
|
414
|
+
limit: number;
|
|
415
|
+
items: T extends contentful.EntrySkeletonType ? Array<contentful.Entry<T, 'WITHOUT_LINK_RESOLUTION', string>> : T[];
|
|
416
|
+
includes?: {
|
|
417
|
+
Entry?: any[];
|
|
418
|
+
Asset?: any[];
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
interface ContentfulQuery {
|
|
422
|
+
content_type?: string;
|
|
423
|
+
locale?: string;
|
|
424
|
+
include?: number;
|
|
425
|
+
limit?: number;
|
|
426
|
+
skip?: number;
|
|
427
|
+
[key: string]: any;
|
|
428
|
+
}
|
|
429
|
+
declare class ContentfulFetchClient {
|
|
430
|
+
private readonly baseUrl;
|
|
431
|
+
private readonly accessToken;
|
|
432
|
+
constructor(config: ContentfulConfig, preview?: boolean);
|
|
433
|
+
getEntries<T = any>(query: ContentfulQuery, options?: FetchOptions): Promise<ContentfulResponse<T>>;
|
|
434
|
+
}
|
|
435
|
+
declare function createContentfulClient(config: ContentfulConfig): ContentfulFetchClient;
|
|
436
|
+
declare function createContentfulPreviewClient(config: ContentfulConfig): ContentfulFetchClient;
|
|
437
|
+
declare function getContentfulClient(config: ContentfulConfig, preview?: boolean): ContentfulFetchClient;
|
|
438
|
+
|
|
439
|
+
declare function createResponsiveVisual(visual: IVisual | undefined, mobileVisual: IVisual | undefined, customSize?: number | null): IResponsiveVisual | undefined;
|
|
440
|
+
|
|
441
|
+
declare function resolveLink(context: ConverterContext, entry: UnresolvedLink<'Entry'>): IInternalLink;
|
|
442
|
+
declare function resolveLinks(context: ConverterContext, entries: UnresolvedLink<'Entry'>[] | undefined): IInternalLink[] | undefined;
|
|
443
|
+
declare function resolveRichTextDocument(context: ConverterContext, richText: Document | undefined): {
|
|
444
|
+
json: Document;
|
|
445
|
+
} | undefined;
|
|
384
446
|
|
|
385
447
|
declare class ContentfulError extends Error {
|
|
386
448
|
readonly statusCode?: number | undefined;
|
|
@@ -422,41 +484,4 @@ declare class RateLimiter {
|
|
|
422
484
|
getAvailableTokens(): number;
|
|
423
485
|
}
|
|
424
486
|
|
|
425
|
-
|
|
426
|
-
heapUsedMB: number;
|
|
427
|
-
heapTotalMB: number;
|
|
428
|
-
rssMB: number;
|
|
429
|
-
externalMB: number;
|
|
430
|
-
}
|
|
431
|
-
interface TimingResult {
|
|
432
|
-
label: string;
|
|
433
|
-
duration: number;
|
|
434
|
-
memoryDelta?: MemoryDelta;
|
|
435
|
-
children?: TimingResult[];
|
|
436
|
-
metadata?: Record<string, unknown>;
|
|
437
|
-
}
|
|
438
|
-
declare class Timer {
|
|
439
|
-
private startTime;
|
|
440
|
-
private memoryStart?;
|
|
441
|
-
private label;
|
|
442
|
-
private children;
|
|
443
|
-
private metadata;
|
|
444
|
-
private trackMemory;
|
|
445
|
-
constructor(label: string, trackMemory?: boolean);
|
|
446
|
-
addMetadata(key: string, value: unknown): void;
|
|
447
|
-
child(label: string): Timer;
|
|
448
|
-
end(): TimingResult;
|
|
449
|
-
endAndLog(): TimingResult;
|
|
450
|
-
static time<T>(label: string, fn: () => Promise<T>, metadata?: Record<string, unknown>): Promise<{
|
|
451
|
-
result: T;
|
|
452
|
-
timing: TimingResult;
|
|
453
|
-
}>;
|
|
454
|
-
static timeSync<T>(label: string, fn: () => T, metadata?: Record<string, unknown>): {
|
|
455
|
-
result: T;
|
|
456
|
-
timing: TimingResult;
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
|
-
declare function logTimingResult(result: TimingResult): void;
|
|
460
|
-
declare function createTimer(label: string): Timer;
|
|
461
|
-
|
|
462
|
-
export { AuthenticationError, type CacheConfig, type ContentfulClient, type ContentfulConfig, ContentfulError, type ConverterContext, EntryNotFoundError, type FetchOptions, RateLimitError, RateLimiter, type RetryConfig, Timer, type TimingResult, ValidationError, basePageConverter, calculateBackoffDelay, contentfulArticleRest, contentfulPageRest, createBaseConverterContext, createContentfulClient, createContentfulPreviewClient, createTimer, getContentfulClient, getRetryAfter, isContentfulError, isRateLimitError, isRetryableError, logTimingResult, withRetry };
|
|
487
|
+
export { AuthenticationError, type ContentResolverFunction, ContentfulFetchClient as ContentfulClient, type ContentfulConfig, ContentfulError, ContentfulFetchClient, type ConverterContext, type DefaultChainModifier, EntryNotFoundError, type FetchOptions, type IContentfulRichText, RateLimitError, RateLimiter, type RetryConfig, ValidationError, basePageConverter, calculateBackoffDelay, contentfulArticleRest, contentfulPageRest, createBaseConverterContext, createContentfulClient, createContentfulPreviewClient, createResponsiveVisual, getContentfulClient, getRetryAfter, isContentfulError, isRateLimitError, isRetryableError, lookupAsset, resolveLink, resolveLinks, resolveRichTextDocument, withRetry };
|