File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,13 @@ type CustomAppActionProps = {
4242type AppActionCategory = BuiltInCategoriesProps | CustomAppActionProps
4343export type AppActionCategoryType = AppActionCategory [ 'category' ]
4444
45+ export type AppActionType = 'endpoint' | 'function' | 'function-invocation'
46+
4547export type CreateAppActionProps = AppActionCategory & {
4648 url : string
4749 name : string
4850 description ?: string
51+ type ?: AppActionType
4952}
5053
5154export type AppActionProps = AppActionCategory & {
@@ -65,7 +68,13 @@ export type AppActionProps = AppActionCategory & {
6568 * Human readable description of the action
6669 */
6770 description ?: string
68- type ?: 'endpoint' | 'function'
71+ /**
72+ * Type of the action, defaults to endpoint if not provided
73+ * endpoint: action is sent to specified URL
74+ * function: deprecated, use function-invocation instead
75+ * function-invocation: action invokes a contentful function
76+ */
77+ type ?: AppActionType
6978}
7079
7180export type AppAction = AppActionProps &
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ export type {
77 AppActionCategoryType ,
88 AppActionParameterDefinition ,
99 AppActionProps ,
10+ AppActionType ,
1011 CreateAppActionProps ,
1112} from './entities/app-action'
1213export type {
You can’t perform that action at this time.
0 commit comments