contentful-management 8.2.1 → 8.2.2

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.
@@ -15,13 +15,18 @@ export var put = function put(http, _ref3, payload) {
15
15
  config = _ref3.config;
16
16
  return raw.put(http, url, payload, config);
17
17
  };
18
- export var del = function del(http, _ref4) {
18
+ export var patch = function patch(http, _ref4, payload) {
19
19
  var url = _ref4.url,
20
20
  config = _ref4.config;
21
- return raw.del(http, url, config);
21
+ return raw.patch(http, url, payload, config);
22
22
  };
23
- export var request = function request(http, _ref5) {
23
+ export var del = function del(http, _ref5) {
24
24
  var url = _ref5.url,
25
25
  config = _ref5.config;
26
+ return raw.del(http, url, config);
27
+ };
28
+ export var request = function request(http, _ref6) {
29
+ var url = _ref6.url,
30
+ config = _ref6.config;
26
31
  return raw.http(http, url, config);
27
32
  };
@@ -25,7 +25,7 @@ function createClient(params) {
25
25
  var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
26
26
  var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
27
27
  var userAgent = getUserAgentHeader( // @ts-expect-error
28
- "".concat(sdkMain, "/").concat("8.2.1"), params.application, params.integration, params.feature);
28
+ "".concat(sdkMain, "/").concat("8.2.2"), params.application, params.integration, params.feature);
29
29
  var adapter = createAdapter(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
30
30
  // https://github.com/microsoft/TypeScript/issues/26591
31
31
  // @ts-expect-error
@@ -2,5 +2,6 @@ import { RestEndpoint } from '../types';
2
2
  export declare const get: RestEndpoint<'Http', 'get'>;
3
3
  export declare const post: RestEndpoint<'Http', 'post'>;
4
4
  export declare const put: RestEndpoint<'Http', 'put'>;
5
+ export declare const patch: RestEndpoint<'Http', 'patch'>;
5
6
  export declare const del: RestEndpoint<'Http', 'delete'>;
6
7
  export declare const request: RestEndpoint<'Http', 'request'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-management",
3
- "version": "8.2.1",
3
+ "version": "8.2.2",
4
4
  "description": "Client for Contentful's Content Management API",
5
5
  "homepage": "https://www.contentful.com/developers/documentation/content-management-api/",
6
6
  "main": "./dist/contentful-management.node.js",