contentful-management 11.60.1 → 11.60.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.
- package/dist/contentful-management.browser.js +3 -3
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +3 -3
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/app-action-call.js +2 -2
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/typings/entities/app-action-call.d.ts +1 -3
- package/package.json +1 -1
|
@@ -92,9 +92,9 @@ async function pollStructuredAppActionCall(http, params, {
|
|
|
92
92
|
|
|
93
93
|
// If backend has not yet written the record, keep polling up to retries
|
|
94
94
|
// Otherwise, resolve when status is terminal
|
|
95
|
-
if ((result === null || result === void 0 ? void 0 : result.status) === 'succeeded' || (result === null || result === void 0 ? void 0 : result.status) === 'failed') {
|
|
95
|
+
if ((result === null || result === void 0 ? void 0 : result.sys.status) === 'succeeded' || (result === null || result === void 0 ? void 0 : result.sys.status) === 'failed') {
|
|
96
96
|
resolve(result);
|
|
97
|
-
} else if ((result === null || result === void 0 ? void 0 : result.status) === 'processing' && checkCount < retries) {
|
|
97
|
+
} else if ((result === null || result === void 0 ? void 0 : result.sys.status) === 'processing' && checkCount < retries) {
|
|
98
98
|
checkCount++;
|
|
99
99
|
await waitFor(retryInterval);
|
|
100
100
|
poll();
|
|
@@ -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.60.
|
|
50
|
+
`${sdkMain}/${"11.60.2"}`, params.application, params.integration, params.feature);
|
|
51
51
|
const adapter = createAdapter(_objectSpread(_objectSpread({}, params), {}, {
|
|
52
52
|
userAgent
|
|
53
53
|
}));
|
|
@@ -35,9 +35,6 @@ export type AppActionCallProps = {
|
|
|
35
35
|
* System metadata
|
|
36
36
|
*/
|
|
37
37
|
sys: AppActionCallSys;
|
|
38
|
-
status: AppActionCallStatus;
|
|
39
|
-
result?: JsonValue;
|
|
40
|
-
error?: AppActionCallErrorProps;
|
|
41
38
|
};
|
|
42
39
|
export type CreateAppActionCallProps = {
|
|
43
40
|
/** The body for the call */
|
|
@@ -61,6 +58,7 @@ export interface AppActionCallRawResponseProps {
|
|
|
61
58
|
appInstallation: SysLink;
|
|
62
59
|
appAction: SysLink;
|
|
63
60
|
createdAt: string;
|
|
61
|
+
createdBy: SysLink;
|
|
64
62
|
};
|
|
65
63
|
response: {
|
|
66
64
|
headers?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-management",
|
|
3
|
-
"version": "11.60.
|
|
3
|
+
"version": "11.60.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",
|