File tree 1 file changed +2
-4
lines changed
packages/contentful--app-scripts/src
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -13,12 +13,10 @@ const functionEvents = {
13
13
queryEvent : 'graphql.query' ,
14
14
resourceLinksSearchEvent : 'resources.search' ,
15
15
resourceLinksLookupEvent : 'resources.lookup' ,
16
- } ;
17
-
18
- const appEvents = {
19
16
appEventFilter : 'appevent.filter' ,
20
17
appEventHandler : 'appevent.handler' ,
21
18
appEventTransformation : 'appevent.transformation' ,
19
+ appActionCall : 'appaction.call' ,
22
20
} ;
23
21
24
22
export const throwValidationException = ( subject : string , message ?: string , details ?: string ) => {
@@ -132,7 +130,7 @@ export function getEntityFromManifest<Type extends 'actions' | 'functions'>(
132
130
133
131
const accepts = 'accepts' in item && Array . isArray ( item . accepts ) ? item . accepts : undefined ;
134
132
const hasInvalidEvent = accepts ?. some (
135
- ( event ) => ! [ ... Object . values ( functionEvents ) , ... Object . values ( appEvents ) ] . includes ( event )
133
+ ( event ) => ! Object . values ( functionEvents ) . includes ( event )
136
134
) ;
137
135
138
136
const hasInvalidNetwork = allowNetworks . find ( ( netWork ) => ! isValidNetwork ( netWork ) ) ;
You can’t perform that action at this time.
0 commit comments