@contentful/app-action-utils
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -189,6 +189,16 @@ "use strict"; | ||
}) { | ||
const defaults = api.raw.getDefaultParams(); | ||
const spaceId = (additionalParameters == null ? void 0 : additionalParameters.spaceId) || (defaults == null ? void 0 : defaults.spaceId); | ||
if (!spaceId) { | ||
throw Error("No space id provided"); | ||
} | ||
let environmentId = (additionalParameters == null ? void 0 : additionalParameters.environmentId) || (defaults == null ? void 0 : defaults.environmentId); | ||
if (!environmentId) { | ||
throw Error("No environment id provided"); | ||
} | ||
const params = { | ||
appDefinitionId, | ||
appActionId, | ||
...additionalParameters ?? {} | ||
spaceId, | ||
environmentId | ||
}; | ||
@@ -203,3 +213,5 @@ const createResponse = await api.appActionCall.create(params, { parameters }); | ||
retryInterval, | ||
timeout | ||
timeout, | ||
spaceId, | ||
environmentId | ||
}); | ||
@@ -206,0 +218,0 @@ return { result, callId }; |
{ | ||
"name": "@contentful/app-action-utils", | ||
"description": "Utilities for intearcting with Hosted App Actions", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"license": "MIT", | ||
@@ -100,3 +100,3 @@ "author": "Contentful <opensource@contentful.com>", | ||
"jest": "^29.4.3", | ||
"semantic-release": "^20.0.2", | ||
"semantic-release": "^21.0.0", | ||
"size-limit": "^8.1.1", | ||
@@ -107,3 +107,3 @@ "ts-jest": "^29.0.5", | ||
"tsup": "^6.6.3", | ||
"typescript": "^4.2.4" | ||
"typescript": "^5.0.2" | ||
}, | ||
@@ -110,0 +110,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
23673
575