@contentful/node-apps-toolkit
Advanced tools
Comparing version 3.7.0 to 3.8.0
@@ -0,1 +1,8 @@ | ||
# [3.8.0](https://github.com/contentful/node-apps-toolkit/compare/v3.7.0...v3.8.0) (2024-09-03) | ||
### Features | ||
* add appaction.call to types ([#699](https://github.com/contentful/node-apps-toolkit/issues/699)) ([7ea547d](https://github.com/contentful/node-apps-toolkit/commit/7ea547d5d50cb84c59a74b7d22e4227088e1bcc6)) | ||
# [3.7.0](https://github.com/contentful/node-apps-toolkit/compare/v3.6.1...v3.7.0) (2024-08-23) | ||
@@ -2,0 +9,0 @@ |
@@ -8,2 +8,3 @@ import { AppInstallationProps, AssetProps, BulkActionProps, CommentProps, ContentTypeProps, EntryProps, EnvironmentTemplateInstallationProps, PlainClientAPI, ReleaseActionProps, ReleaseProps, ScheduledActionProps, TaskProps } from 'contentful-management'; | ||
declare const APP_EVENT_TRANSFORMATION = "appevent.transformation"; | ||
declare const APP_ACTION_CALL = "appaction.call"; | ||
type GraphQLFieldTypeMappingRequest = { | ||
@@ -84,2 +85,8 @@ type: typeof GRAPHQL_FIELD_MAPPING_EVENT; | ||
export type AppEventHandlerResponse = void; | ||
export type AppActionRequest = { | ||
headers: Record<string, string | number>; | ||
body: Record<string, unknown>; | ||
type: typeof APP_ACTION_CALL; | ||
}; | ||
export type AppActionResponse = void | Record<string, unknown>; | ||
/** | ||
@@ -103,2 +110,6 @@ * P: Possibility to type app installation parameters | ||
}; | ||
[APP_ACTION_CALL]: { | ||
event: AppActionRequest; | ||
response: AppActionResponse; | ||
}; | ||
[APP_EVENT_FILTER]: { | ||
@@ -105,0 +116,0 @@ event: AppEventRequest; |
@@ -12,1 +12,2 @@ "use strict"; | ||
const APP_EVENT_TRANSFORMATION = 'appevent.transformation'; | ||
const APP_ACTION_CALL = 'appaction.call'; |
{ | ||
"name": "@contentful/node-apps-toolkit", | ||
"version": "3.7.0", | ||
"version": "3.8.0", | ||
"description": "A collection of helpers and utilities for creating NodeJS Contentful Apps", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65695
910