contentful-management 11.56.0 → 11.57.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/contentful-management.browser.js +274 -194
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +433 -248
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/common-types.js +2 -0
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/typings/common-types.d.ts +5 -3
- package/dist/typings/entities/app-action-call.d.ts +2 -2
- package/dist/typings/entities/ui-config.d.ts +1 -1
- package/dist/typings/plain/entities/app-action-call.d.ts +3 -3
- package/package.json +1 -1
|
@@ -55,6 +55,8 @@
|
|
|
55
55
|
|
|
56
56
|
/** Base interface for all Payload interfaces. Used as part of the MakeRequestOptions to simplify payload definitions. */
|
|
57
57
|
|
|
58
|
+
// Retry options used by createWithResponse and createWithResult. Kept separate for clarity.
|
|
59
|
+
|
|
58
60
|
// New route params for fetching structured call or raw response
|
|
59
61
|
|
|
60
62
|
export let ScheduledActionReferenceFilters = /*#__PURE__*/function (ScheduledActionReferenceFilters) {
|
|
@@ -47,7 +47,7 @@ function createClient(params, opts = {}) {
|
|
|
47
47
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
48
48
|
const userAgent = getUserAgentHeader(
|
|
49
49
|
// @ts-expect-error
|
|
50
|
-
`${sdkMain}/${"11.
|
|
50
|
+
`${sdkMain}/${"11.57.1"}`, params.application, params.integration, params.feature);
|
|
51
51
|
const adapter = createAdapter(_objectSpread(_objectSpread({}, params), {}, {
|
|
52
52
|
userAgent
|
|
53
53
|
}));
|
|
@@ -800,12 +800,12 @@ export type MRActions = {
|
|
|
800
800
|
return: AppActionCallResponse;
|
|
801
801
|
};
|
|
802
802
|
createWithResponse: {
|
|
803
|
-
params:
|
|
803
|
+
params: CreateWithResponseParams;
|
|
804
804
|
payload: CreateAppActionCallProps;
|
|
805
805
|
return: AppActionCallResponse;
|
|
806
806
|
};
|
|
807
807
|
createWithResult: {
|
|
808
|
-
params:
|
|
808
|
+
params: CreateWithResultParams;
|
|
809
809
|
payload: CreateAppActionCallProps;
|
|
810
810
|
return: AppActionCallProps;
|
|
811
811
|
};
|
|
@@ -2508,10 +2508,12 @@ export type GetAppActionsForEnvParams = GetSpaceParams & {
|
|
|
2508
2508
|
export type GetAppActionCallParams = GetAppInstallationParams & {
|
|
2509
2509
|
appActionId: string;
|
|
2510
2510
|
};
|
|
2511
|
-
export type
|
|
2511
|
+
export type AppActionCallRetryOptions = {
|
|
2512
2512
|
retries?: number;
|
|
2513
2513
|
retryInterval?: number;
|
|
2514
2514
|
};
|
|
2515
|
+
export type CreateWithResponseParams = GetAppActionCallParams & AppActionCallRetryOptions;
|
|
2516
|
+
export type CreateWithResultParams = GetAppActionCallParams & AppActionCallRetryOptions;
|
|
2515
2517
|
export type GetAppActionCallDetailsParams = GetSpaceEnvironmentParams & {
|
|
2516
2518
|
appActionId: string;
|
|
2517
2519
|
callId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Except } from 'type-fest';
|
|
2
|
-
import type { BasicMetaSysProps,
|
|
2
|
+
import type { BasicMetaSysProps, AppActionCallRetryOptions, DefaultElements, MakeRequest, SysLink } from '../common-types';
|
|
3
3
|
import type { WebhookCallDetailsProps } from './webhook';
|
|
4
4
|
type AppActionCallSys = Except<BasicMetaSysProps, 'version'> & {
|
|
5
5
|
appDefinition: SysLink;
|
|
@@ -8,7 +8,7 @@ type AppActionCallSys = Except<BasicMetaSysProps, 'version'> & {
|
|
|
8
8
|
action: SysLink;
|
|
9
9
|
appActionCallResponse?: SysLink;
|
|
10
10
|
};
|
|
11
|
-
type RetryOptions =
|
|
11
|
+
type RetryOptions = AppActionCallRetryOptions;
|
|
12
12
|
export type AppActionCallStatus = 'processing' | 'succeeded' | 'failed';
|
|
13
13
|
export interface AppActionCallErrorProps {
|
|
14
14
|
sys: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { GetAppActionCallDetailsParams, GetAppActionCallParams, GetAppActionCallParamsWithId } from '../../common-types';
|
|
1
|
+
import type { GetAppActionCallDetailsParams, GetAppActionCallParams, GetAppActionCallParamsWithId, CreateWithResponseParams, CreateWithResultParams } from '../../common-types';
|
|
2
2
|
import type { AppActionCallProps, AppActionCallResponse, AppActionCallRawResponseProps, CreateAppActionCallProps } from '../../entities/app-action-call';
|
|
3
3
|
import type { OptionalDefaults } from '../wrappers/wrap';
|
|
4
4
|
export type AppActionCallPlainClientAPI = {
|
|
@@ -61,7 +61,7 @@ export type AppActionCallPlainClientAPI = {
|
|
|
61
61
|
* );
|
|
62
62
|
* ```
|
|
63
63
|
*/
|
|
64
|
-
createWithResponse(params: OptionalDefaults<
|
|
64
|
+
createWithResponse(params: OptionalDefaults<CreateWithResponseParams>, payload: CreateAppActionCallProps): Promise<AppActionCallResponse>;
|
|
65
65
|
/**
|
|
66
66
|
* Fetches a structured App Action Call by id.
|
|
67
67
|
*
|
|
@@ -121,7 +121,7 @@ export type AppActionCallPlainClientAPI = {
|
|
|
121
121
|
* }
|
|
122
122
|
* ```
|
|
123
123
|
*/
|
|
124
|
-
createWithResult(params: OptionalDefaults<
|
|
124
|
+
createWithResult(params: OptionalDefaults<CreateWithResultParams>, payload: CreateAppActionCallProps): Promise<AppActionCallProps>;
|
|
125
125
|
/**
|
|
126
126
|
* Fetches the raw response (headers/body) for a completed App Action Call.
|
|
127
127
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-management",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.57.1",
|
|
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",
|