
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@contentful/app-action-utils
Advanced tools
This repo is a growing collection of utils for interacting with App Actions
npm install --save @contentful/app-action-utils
# or
yarn add @contentful/app-action-utils
Right now it only supports calling the app action and retrieving the result. This consist of:
When passing the plain client generated from contentful-management, it has to have org, space and environment set as defaults. If not you can pass in the spaceId and environmentId to each of the methods.
To call an app action and get the result callAppAction can be used like this
import { createClient } from 'contentful-management'
const api = createClient({
accessToken: '<token>'
}, {
type: 'plain'
})
const parameters: AppActionCategoryParams<'<appActionCategory>'> = {} // The parameters the app action expects, when the generic is correct it will be fully typed
const abortController = new AbortController()
const additionalParameters = {
spaceId: '<spaceId>',
environmentId: '<environmentId>'
}
const appActionResult = await callAppAction({
api,
appActionId: '<appActionId>',
appDefinitionId: '<appDefinitionId>',
parameters,
})
const appActionResult = await callAppActionResult({
api,
appActionId: '<appActionId>',
callId: '<callId>',
spaceId: '<spaceId>',
environmentId: '<environmentId>'
})
FAQs
Utilities for intearcting with Hosted App Actions
We found that @contentful/app-action-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.