contentful 9.2.20 → 9.3.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.
@@ -63,7 +63,7 @@ export function createClient(params) {
63
63
  environment: 'master'
64
64
  };
65
65
  const config = _objectSpread(_objectSpread({}, defaultConfig), params);
66
- const userAgentHeader = getUserAgentHeader(`contentful.js/${"9.2.20"}`, config.application, config.integration);
66
+ const userAgentHeader = getUserAgentHeader(`contentful.js/${"9.3.1"}`, config.application, config.integration);
67
67
  config.headers = _objectSpread(_objectSpread({}, config.headers), {}, {
68
68
  'Content-Type': 'application/vnd.contentful.delivery.v1+json',
69
69
  'X-Contentful-User-Agent': userAgentHeader
package/index.d.ts CHANGED
@@ -191,6 +191,13 @@ export interface Field {
191
191
  type: FieldType;
192
192
  validations: FieldValidation[];
193
193
  items?: FieldItem;
194
+ allowedFields?: ContentTypeAllowedResources
195
+ }
196
+
197
+ interface ContentTypeAllowedResources {
198
+ type: string
199
+ source: string
200
+ contentTypes: string[]
194
201
  }
195
202
 
196
203
  export type FieldType =
@@ -204,7 +211,8 @@ export type FieldType =
204
211
  | 'Link'
205
212
  | 'Array'
206
213
  | 'Object'
207
- | 'RichText';
214
+ | 'RichText'
215
+ | 'ResourceLink';
208
216
 
209
217
  export interface FieldValidation {
210
218
  unique?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "contentful",
3
3
  "description": "Client for Contentful's Content Delivery API",
4
- "version": "9.2.20",
4
+ "version": "9.3.1",
5
5
  "homepage": "https://www.contentful.com/developers/documentation/content-delivery-api/",
6
6
  "main": "./dist/contentful.node.js",
7
7
  "module": "./dist/es-modules/contentful.js",
@@ -156,6 +156,11 @@
156
156
  "name": "beta-v10",
157
157
  "channel": "beta-v10",
158
158
  "prerelease": true
159
+ },
160
+ {
161
+ "name": "beta-resource-links",
162
+ "channel": "beta-resource-links",
163
+ "prerelease": true
159
164
  }
160
165
  ],
161
166
  "plugins": [