@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/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
- import { BaseCmsConfig, IArticle, INavigationItem, IPage, IVisual, IInternalLink, INavigation, IPerson } from '@se-studio/core-data-types';
2
- import { EntrySkeletonType, EntryFieldTypes, Entry, CreateClientParams, ContentfulClientApi } from 'contentful';
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<TConfig extends BaseCmsConfig> {
39
+ interface BaseNavigationItemFields {
38
40
  title: EntryFieldTypes.Symbol;
39
41
  useTitle: EntryFieldTypes.Boolean;
40
- navigationItems?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseNavigationItemSkeleton<TConfig>>>;
42
+ navigationItems?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseNavigationItemSkeleton>>;
41
43
  text?: EntryFieldTypes.Symbol;
42
- internal?: EntryFieldTypes.EntryLink<BaseLink<TConfig>>;
44
+ internal?: EntryFieldTypes.EntryLink<BaseLink>;
43
45
  link?: EntryFieldTypes.Symbol;
44
46
  isButton?: EntryFieldTypes.Boolean;
45
47
  isOutlined?: EntryFieldTypes.Boolean;
46
- backgroundColour?: EntryFieldTypes.Symbol<TConfig['ColourName'] | TConfig['GradientName']>;
47
- textColour?: EntryFieldTypes.Symbol<TConfig['ColourName']>;
48
+ backgroundColour?: EntryFieldTypes.Symbol<string>;
49
+ textColour?: EntryFieldTypes.Symbol<string>;
48
50
  icon?: EntryFieldTypes.AssetLink;
49
- variant?: EntryFieldTypes.Symbol<TConfig['ButtonVariant']>;
50
- size?: EntryFieldTypes.Symbol<TConfig['ButtonSize']>;
51
+ variant?: EntryFieldTypes.Symbol<string>;
52
+ size?: EntryFieldTypes.Symbol<string>;
51
53
  longText?: EntryFieldTypes.RichText;
52
54
  }
53
- type BaseNavigationItemSkeleton<TConfig extends BaseCmsConfig> = EntrySkeletonType<BaseNavigationItemFields<TConfig>, 'navigationItem'>;
55
+ type BaseNavigationItemSkeleton = EntrySkeletonType<BaseNavigationItemFields, 'navigationItem'>;
54
56
 
55
- interface BaseNavigationFields<TConfig extends BaseCmsConfig> {
57
+ interface BaseNavigationFields {
56
58
  adminLabel: EntryFieldTypes.Symbol;
57
59
  name: EntryFieldTypes.Symbol;
58
- backgroundColour?: EntryFieldTypes.Symbol<TConfig['ColourName'] | TConfig['GradientName']>;
59
- textColour?: EntryFieldTypes.Symbol<TConfig['ColourName']>;
60
- entries?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseNavigationItemSkeleton<TConfig>>>;
60
+ backgroundColour?: EntryFieldTypes.Symbol<string>;
61
+ textColour?: EntryFieldTypes.Symbol<string>;
62
+ entries?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseNavigationItemSkeleton>>;
61
63
  }
62
- type BaseNavigationSkeleton<TConfig extends BaseCmsConfig> = EntrySkeletonType<BaseNavigationFields<TConfig>, 'navigation'>;
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<TConfig extends BaseCmsConfig> {
72
+ interface BaseTemplateFields {
71
73
  cmsLabel: EntryFieldTypes.Symbol;
72
- preContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent<TConfig>>>;
73
- postContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent<TConfig>>>;
74
- menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton<TConfig>>;
75
- footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton<TConfig>>;
76
- backgroundColour?: EntryFieldTypes.Symbol<TConfig['ColourName'] | TConfig['GradientName']>;
77
- textColour?: EntryFieldTypes.Symbol<TConfig['ColourName']>;
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<TConfig extends BaseCmsConfig> = EntrySkeletonType<BaseTemplateFields<TConfig>, 'template'>;
82
+ type BaseTemplateSkeleton = EntrySkeletonType<BaseTemplateFields, 'template'>;
81
83
 
82
- interface BaseArticleTypeFields<TConfig extends BaseCmsConfig> {
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<TConfig>>;
90
- footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton<TConfig>>;
91
- indexPageTemplate?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton<TConfig>>;
92
- indexPageTopContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent<TConfig>>>;
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<TConfig>>;
96
- articlePageTopContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent<TConfig>>>;
97
+ articleTemplate?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton>;
98
+ articlePageTopContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
97
99
  structuredData?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseSchemaSkeleton>>;
98
- backgroundColour?: EntryFieldTypes.Symbol<TConfig['ColourName'] | TConfig['GradientName']>;
99
- textColour?: EntryFieldTypes.Symbol<TConfig['ColourName']>;
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<TConfig>>;
106
- searchTopContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent<TConfig>>>;
107
+ searchTemplate?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton>;
108
+ searchTopContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent>>;
107
109
  }
108
- type BaseArticleTypeSkeleton<TConfig extends BaseCmsConfig> = EntrySkeletonType<BaseArticleTypeFields<TConfig>, 'articleType'>;
110
+ type BaseArticleTypeSkeleton = EntrySkeletonType<BaseArticleTypeFields, 'articleType'>;
109
111
 
110
- interface BasePersonFields<TConfig extends BaseCmsConfig> {
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<TConfig>>>;
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<TConfig['ColourName']>;
126
- backgroundColour?: EntryFieldTypes.Symbol<TConfig['ColourName'] | TConfig['GradientName']>;
127
+ textColour?: EntryFieldTypes.Symbol<string>;
128
+ backgroundColour?: EntryFieldTypes.Symbol<string>;
127
129
  visuals?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseExternalVideoSkeleton | BaseMediaSkeleton>>;
128
130
  }
129
- type BasePersonSkeleton<TConfig extends BaseCmsConfig> = EntrySkeletonType<BasePersonFields<TConfig>, 'person'>;
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<TConfig extends BaseCmsConfig> {
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<TConfig>>;
145
- footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton<TConfig>>;
146
- template?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton<TConfig>>;
147
- topContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent<TConfig>>>;
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<TConfig['ColourName'] | TConfig['GradientName']>;
150
- textColour?: EntryFieldTypes.Symbol<TConfig['ColourName']>;
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<TConfig extends BaseCmsConfig> = EntrySkeletonType<BaseTagFields<TConfig>, 'tag'>;
156
+ type BaseTagSkeleton = EntrySkeletonType<BaseTagFields, 'tag'>;
155
157
 
156
- interface BaseArticleFields<TConfig extends BaseCmsConfig> {
158
+ interface BaseArticleFields {
157
159
  cmsLabel: EntryFieldTypes.Symbol;
158
- articleType: EntryFieldTypes.EntryLink<BaseArticleTypeSkeleton<TConfig>>;
160
+ articleType: EntryFieldTypes.EntryLink<BaseArticleTypeSkeleton>;
159
161
  title: EntryFieldTypes.Symbol;
160
162
  description?: EntryFieldTypes.Text;
161
- author?: EntryFieldTypes.EntryLink<BasePersonSkeleton<TConfig>>;
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<TConfig>>>;
169
- topContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent<TConfig>>>;
170
- content?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent<TConfig>>>;
171
- bottomContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent<TConfig>>>;
172
- menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton<TConfig>>;
173
- footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton<TConfig>>;
174
- template?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton<TConfig>>;
175
- backgroundColour?: EntryFieldTypes.Symbol<TConfig['ColourName'] | TConfig['GradientName']>;
176
- textColour?: EntryFieldTypes.Symbol<TConfig['ColourName']>;
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<TConfig extends BaseCmsConfig> = EntrySkeletonType<BaseArticleFields<TConfig>, 'article'>;
186
+ type BaseArticleSkeleton = EntrySkeletonType<BaseArticleFields, 'article'>;
185
187
 
186
- interface BaseLinkFields<TConfig extends BaseCmsConfig> {
188
+ interface BaseLinkFields {
187
189
  name: EntryFieldTypes.Symbol;
188
190
  useName: EntryFieldTypes.Boolean;
189
191
  linkText?: EntryFieldTypes.Symbol;
190
- internal?: EntryFieldTypes.EntryLink<BaseArticleSkeleton<TConfig> | BaseArticleTypeSkeleton<TConfig> | BasePageSkeleton<TConfig> | BasePageVariantSkeleton<TConfig> | BasePersonSkeleton<TConfig> | BaseTagSkeleton<TConfig>>;
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<TConfig['ColourName'] | TConfig['GradientName']>;
195
- textColour?: EntryFieldTypes.Symbol<TConfig['ColourName']>;
196
+ backgroundColour?: EntryFieldTypes.Symbol<string>;
197
+ textColour?: EntryFieldTypes.Symbol<string>;
196
198
  icon?: EntryFieldTypes.AssetLink;
197
199
  downloadAsset?: EntryFieldTypes.AssetLink;
198
- variant?: EntryFieldTypes.Symbol<TConfig['ButtonVariant']>;
199
- size?: EntryFieldTypes.Symbol<TConfig['ButtonSize']>;
200
+ variant?: EntryFieldTypes.Symbol<string>;
201
+ size?: EntryFieldTypes.Symbol<string>;
200
202
  }
201
- type BaseLinkSkeleton<TConfig extends BaseCmsConfig> = EntrySkeletonType<BaseLinkFields<TConfig>, 'link'>;
203
+ type BaseLinkSkeleton = EntrySkeletonType<BaseLinkFields, 'link'>;
202
204
 
203
- interface BaseCollectionFields<TConfig extends BaseCmsConfig> {
205
+ interface BaseCollectionFields {
204
206
  cmsLabel: EntryFieldTypes.Symbol;
205
207
  heading?: EntryFieldTypes.Symbol;
206
- collectionType: EntryFieldTypes.Symbol<TConfig['CollectionType']>;
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<TConfig['ColourName'] | TConfig['GradientName']>;
211
+ backgroundColour?: EntryFieldTypes.Symbol<string>;
211
212
  backgroundVisual?: EntryFieldTypes.AssetLink;
212
213
  mobileBackgroundVisual?: EntryFieldTypes.AssetLink;
213
214
  backgroundOverlayOpacity?: EntryFieldTypes.Number;
214
- textColour?: EntryFieldTypes.Symbol<TConfig['ColourName']>;
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<TConfig> | BaseLink<TConfig>>>;
220
- contents?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent<TConfig> | BaseLink<TConfig>>>;
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<TConfig extends BaseCmsConfig> = EntrySkeletonType<BaseCollectionFields<TConfig>, 'collection'>;
227
+ type BaseCollectionSkeleton = EntrySkeletonType<BaseCollectionFields, 'collection'>;
227
228
 
228
- interface BaseComponentFields<TConfig extends BaseCmsConfig> {
229
+ interface BaseComponentFields {
229
230
  cmsLabel: EntryFieldTypes.Symbol;
230
231
  heading?: EntryFieldTypes.Symbol;
231
232
  showHeading: EntryFieldTypes.Boolean;
232
- componentType: EntryFieldTypes.Symbol<TConfig['ComponentType']>;
233
- textSize?: EntryFieldTypes.Symbol<'Large' | 'Medium' | 'Small'>;
233
+ componentType: EntryFieldTypes.Symbol<string>;
234
234
  anchor?: EntryFieldTypes.Symbol;
235
- backgroundColour?: EntryFieldTypes.Symbol<TConfig['ColourName'] | TConfig['GradientName']>;
235
+ backgroundColour?: EntryFieldTypes.Symbol<string>;
236
236
  backgroundVisual?: EntryFieldTypes.AssetLink;
237
237
  mobileBackgroundVisual?: EntryFieldTypes.AssetLink;
238
238
  backgroundOverlayOpacity?: EntryFieldTypes.Number;
239
- textColour?: EntryFieldTypes.Symbol<TConfig['ColourName']>;
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<TConfig> | BaseLinkSkeleton<TConfig>>>;
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<TConfig extends BaseCmsConfig> = EntrySkeletonType<BaseComponentFields<TConfig>, 'component'>;
252
+ type BaseComponentSkeleton = EntrySkeletonType<BaseComponentFields, 'component'>;
253
253
 
254
- interface BaseExternalComponentFields<TConfig extends BaseCmsConfig> {
254
+ interface BaseExternalComponentFields {
255
255
  cmsLabel: EntryFieldTypes.Symbol;
256
- externalComponentType: EntryFieldTypes.Symbol<TConfig['ExternalComponentType']>;
256
+ externalComponentType: EntryFieldTypes.Symbol<string>;
257
257
  heading?: EntryFieldTypes.Symbol;
258
258
  data: EntryFieldTypes.Object;
259
- backgroundColour?: EntryFieldTypes.Symbol<TConfig['ColourName'] | TConfig['GradientName']>;
260
- textColour?: EntryFieldTypes.Symbol<TConfig['ColourName']>;
259
+ backgroundColour?: EntryFieldTypes.Symbol<string>;
260
+ textColour?: EntryFieldTypes.Symbol<string>;
261
261
  }
262
- type BaseExternalComponentSkeleton<TConfig extends BaseCmsConfig> = EntrySkeletonType<BaseExternalComponentFields<TConfig>, 'externalComponent'>;
262
+ type BaseExternalComponentSkeleton = EntrySkeletonType<BaseExternalComponentFields, 'externalComponent'>;
263
263
 
264
- interface BasePageFields<TConfig extends BaseCmsConfig> {
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<TConfig>>>;
272
- menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton<TConfig>>;
273
- footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton<TConfig>>;
274
- template?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton<TConfig>>;
275
- topContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent<TConfig>>>;
276
- content?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent<TConfig>>>;
277
- bottomContent?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseContent<TConfig>>>;
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<TConfig['ColourName'] | TConfig['GradientName']>;
280
- textColour?: EntryFieldTypes.Symbol<TConfig['ColourName']>;
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<TConfig extends BaseCmsConfig> = EntrySkeletonType<BasePageFields<TConfig>, 'page'>;
284
+ type BasePageSkeleton = EntrySkeletonType<BasePageFields, 'page'>;
285
285
 
286
- interface BaseAlternatePageContentFields<TConfig extends BaseCmsConfig> {
286
+ interface BaseAlternatePageContentFields {
287
287
  cmsLabel: EntryFieldTypes.Symbol;
288
- sourceContent: EntryFieldTypes.EntryLink<BaseContent<TConfig>>;
289
- replacementContent?: EntryFieldTypes.EntryLink<BaseContent<TConfig>>;
288
+ sourceContent: EntryFieldTypes.EntryLink<BaseContent>;
289
+ replacementContent?: EntryFieldTypes.EntryLink<BaseContent>;
290
290
  }
291
- type BaseAlternatePageContentSkeleton<TConfig extends BaseCmsConfig> = EntrySkeletonType<BaseAlternatePageContentFields<TConfig>, 'alternatePageContent'>;
291
+ type BaseAlternatePageContentSkeleton = EntrySkeletonType<BaseAlternatePageContentFields, 'alternatePageContent'>;
292
292
 
293
- interface BasePageVariantFields<TConfig extends BaseCmsConfig> {
293
+ interface BasePageVariantFields {
294
294
  cmsLabel: EntryFieldTypes.Symbol;
295
295
  title?: EntryFieldTypes.Symbol;
296
296
  slug: EntryFieldTypes.Symbol;
297
- originalPage: EntryFieldTypes.EntryLink<BasePageSkeleton<TConfig>>;
298
- alternativeContents?: EntryFieldTypes.Array<EntryFieldTypes.EntryLink<BaseAlternatePageContentSkeleton<TConfig>>>;
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<TConfig>>>;
303
- template?: EntryFieldTypes.EntryLink<BaseTemplateSkeleton<TConfig>>;
304
- menu?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton<TConfig>>;
305
- footer?: EntryFieldTypes.EntryLink<BaseNavigationSkeleton<TConfig>>;
306
- backgroundColour?: EntryFieldTypes.Symbol<TConfig['ColourName'] | TConfig['GradientName']>;
307
- textColour?: EntryFieldTypes.Symbol<TConfig['ColourName']>;
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<TConfig extends BaseCmsConfig> = EntrySkeletonType<BasePageVariantFields<TConfig>, 'pageVariant'>;
313
+ type BasePageVariantSkeleton = EntrySkeletonType<BasePageVariantFields, 'pageVariant'>;
314
314
 
315
- type BaseContent<TConfig extends BaseCmsConfig> = BaseCollectionSkeleton<TConfig> | BaseComponentSkeleton<TConfig> | BaseExternalComponentSkeleton<TConfig> | BaseExternalVideoSkeleton | BaseMediaSkeleton | BasePersonSkeleton<TConfig>;
316
- type BaseLink<TConfig extends BaseCmsConfig> = BaseArticleSkeleton<TConfig> | BaseArticleTypeSkeleton<TConfig> | BaseLinkSkeleton<TConfig> | BasePageSkeleton<TConfig> | BasePageVariantSkeleton<TConfig> | BasePersonSkeleton<TConfig> | BaseTagSkeleton<TConfig>;
317
- type BaseLinkTypes<TConfig extends BaseCmsConfig> = BaseLink<TConfig>['contentTypeId'];
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
- declare function baseArticleConverter<TConfig extends BaseCmsConfig>(context: ConverterContext<TConfig>, entry: Entry<BaseArticleSkeleton<TConfig>, DefaultChainModifier, string>): IArticle<TConfig>;
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 baseCollectionConverter<TConfig extends BaseCmsConfig>(context: ConverterContext<TConfig>, entry: Entry<BaseCollectionSkeleton<TConfig>, DefaultChainModifier, string>): TConfig['Collection'];
341
+ declare function baseArticleConverter(context: ConverterContext, entry: Entry<BaseArticleSkeleton, DefaultChainModifier, string>): IBaseArticle;
322
342
 
323
- declare function baseComponentConverter<TConfig extends BaseCmsConfig>(context: ConverterContext<TConfig>, entry: Entry<BaseComponentSkeleton<TConfig>, DefaultChainModifier, string>): TConfig['Component'];
343
+ declare function baseCollectionConverter(context: ConverterContext, entry: Entry<BaseCollectionSkeleton, DefaultChainModifier, string>): IBaseCollection;
324
344
 
325
- declare function baseNavigationItemConverter<TConfig extends BaseCmsConfig>(context: ConverterContext<TConfig>, entry: Entry<BaseNavigationItemSkeleton<TConfig>, DefaultChainModifier, string>): INavigationItem<TConfig>;
345
+ declare function baseComponentConverter(context: ConverterContext, entry: Entry<BaseComponentSkeleton, DefaultChainModifier, string>): IBaseComponent;
326
346
 
327
- declare function basePageConverter<TConfig extends BaseCmsConfig>(context: ConverterContext<TConfig>, entry: Entry<BasePageSkeleton<TConfig>, DefaultChainModifier, string>): IPage<TConfig>;
347
+ declare function baseNavigationItemConverter(context: ConverterContext, entry: Entry<BaseNavigationItemSkeleton, DefaultChainModifier, string>): INavigationItem;
328
348
 
329
- type LinkResolverFunction<TConfig extends BaseCmsConfig> = (context: ConverterContext<TConfig>, entry: Entry<BaseLink<TConfig>, DefaultChainModifier, string>) => IInternalLink<TConfig>;
330
- type LinkResolverMap<TConfig extends BaseCmsConfig> = Map<BaseLinkTypes<TConfig>, LinkResolverFunction<TConfig>>;
331
- type ConverterContext<TConfig extends BaseCmsConfig> = {
332
- includes: Map<string, PossibleResolvedEntry<TConfig>>;
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<TConfig>;
335
- navigationItemResolver: typeof baseNavigationItemConverter<TConfig>;
336
- pageResolver: typeof basePageConverter<TConfig>;
337
- articleResolver: typeof baseArticleConverter<TConfig>;
338
- componentResolver: typeof baseComponentConverter<TConfig>;
339
- collectionResolver: typeof baseCollectionConverter<TConfig>;
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?: CacheConfig;
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<TConfig extends BaseCmsConfig> = IPage<TConfig> | IArticle<TConfig> | INavigation<TConfig> | INavigationItem<TConfig> | IInternalLink<TConfig> | TConfig['Component'] | TConfig['Collection'] | TConfig['ExternalComponent'] | IPerson<TConfig>;
371
- type PossibleResolvedEntry<TConfig extends BaseCmsConfig> = {
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<TConfig>;
398
+ resolved?: ResolvedEntry;
376
399
  };
377
- declare function contentfulPageRest<TConfig extends BaseCmsConfig>(context: Omit<ConverterContext<TConfig>, 'includes' | 'assets'>, config: ContentfulConfig, slug: string, options?: FetchOptions): Promise<IPage<TConfig> | null>;
378
- declare function createBaseConverterContext<TConfig extends BaseCmsConfig>(): Omit<ConverterContext<TConfig>, 'includes' | 'assets'>;
379
- declare function contentfulArticleRest<TConfig extends BaseCmsConfig>(context: Omit<ConverterContext<TConfig>, 'includes' | 'assets'>, config: ContentfulConfig, slug: string, articleTypeSlug: string, options?: FetchOptions): Promise<IArticle<TConfig> | null>;
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
- declare function createContentfulClient(config: ContentfulConfig): ContentfulClient;
382
- declare function createContentfulPreviewClient(config: ContentfulConfig): ContentfulClient;
383
- declare function getContentfulClient(config: ContentfulConfig, preview?: boolean): ContentfulClientApi<'WITHOUT_LINK_RESOLUTION'>;
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
- interface MemoryDelta {
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 };