contentful-management 11.43.0-beta.1 → 11.43.0
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/contentful-management.browser.js +1 -1
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +1 -1
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/typings/plain/entities/function.d.ts +4 -4
- package/package.json +1 -1
|
@@ -46,7 +46,7 @@ function createClient(params, opts = {}) {
|
|
|
46
46
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
47
47
|
const userAgent = getUserAgentHeader(
|
|
48
48
|
// @ts-expect-error
|
|
49
|
-
`${sdkMain}/${"11.43.0
|
|
49
|
+
`${sdkMain}/${"11.43.0"}`, params.application, params.integration, params.feature);
|
|
50
50
|
const adapter = createAdapter(_objectSpread(_objectSpread({}, params), {}, {
|
|
51
51
|
userAgent
|
|
52
52
|
}));
|
|
@@ -3,9 +3,9 @@ import type { FunctionProps } from '../../entities/function';
|
|
|
3
3
|
import type { OptionalDefaults } from '../wrappers/wrap';
|
|
4
4
|
export type FunctionPlainClientAPI = {
|
|
5
5
|
/**
|
|
6
|
-
* Fetches the specified
|
|
6
|
+
* Fetches the specified Function
|
|
7
7
|
* @param params organization ID, app definition ID, entity ID to identify the function
|
|
8
|
-
* @returns the
|
|
8
|
+
* @returns the Function
|
|
9
9
|
* @throws if the request fails, or the Function is not found
|
|
10
10
|
* @example
|
|
11
11
|
* ```javascript
|
|
@@ -18,7 +18,7 @@ export type FunctionPlainClientAPI = {
|
|
|
18
18
|
*/
|
|
19
19
|
get(params: OptionalDefaults<GetFunctionParams>): Promise<FunctionProps>;
|
|
20
20
|
/**
|
|
21
|
-
* Fetches all
|
|
21
|
+
* Fetches all Functions for the given app
|
|
22
22
|
* @param params organization ID, app definition ID to identify the functions
|
|
23
23
|
* @returns an object containing an array of Functions
|
|
24
24
|
* @throws if the request fails, or the App is not found
|
|
@@ -32,7 +32,7 @@ export type FunctionPlainClientAPI = {
|
|
|
32
32
|
*/
|
|
33
33
|
getMany(params: OptionalDefaults<GetManyFunctionParams>): Promise<CollectionProp<FunctionProps>>;
|
|
34
34
|
/**
|
|
35
|
-
* Fetches all
|
|
35
|
+
* Fetches all Functions for the given environment
|
|
36
36
|
* @param params space ID, environment ID, app installation ID to identify the functions
|
|
37
37
|
* @returns an object containing an array of Functions
|
|
38
38
|
* @throws if the request fails, or the Environment is not found
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-management",
|
|
3
|
-
"version": "11.43.0
|
|
3
|
+
"version": "11.43.0",
|
|
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",
|