@@ -174,31 +174,30 @@ const createSdk = (config: ActionSdk["config"], configDefinitions?: HerculesActi
174174 return Promise . resolve ( )
175175 } ,
176176 registerFunctionDefinitions : async ( ...functionDefinitions ) => {
177- for ( const registeredFunction of functionDefinitions ) {
178- const runtimeFunctionDefinition = registeredFunction . definition ;
177+ for ( const functionDefinition of functionDefinitions ) {
179178 state . functions . push ( {
180- identifier : runtimeFunctionDefinition . runtimeName ,
179+ identifier : functionDefinition . runtimeName ,
181180 definition : {
182- displayMessage : runtimeFunctionDefinition . displayMessage || [ ] ,
183- name : runtimeFunctionDefinition . name || [ ] ,
184- documentation : runtimeFunctionDefinition . documentation || [ ] ,
185- description : runtimeFunctionDefinition . description || [ ] ,
186- deprecationMessage : runtimeFunctionDefinition . deprecationMessage || [ ] ,
187- displayIcon : runtimeFunctionDefinition . displayIcon || "" ,
188- alias : runtimeFunctionDefinition . alias || [ ] ,
189- linkedDataTypeIdentifiers : runtimeFunctionDefinition . linkedDataTypes || [ ] ,
181+ displayMessage : functionDefinition . displayMessage || [ ] ,
182+ name : functionDefinition . name || [ ] ,
183+ documentation : functionDefinition . documentation || [ ] ,
184+ description : functionDefinition . description || [ ] ,
185+ deprecationMessage : functionDefinition . deprecationMessage || [ ] ,
186+ displayIcon : functionDefinition . displayIcon || "" ,
187+ alias : functionDefinition . alias || [ ] ,
188+ linkedDataTypeIdentifiers : functionDefinition . linkedDataTypes || [ ] ,
190189 definitionSource : "action" ,
191- version : runtimeFunctionDefinition . version || config . version ,
192- runtimeName : runtimeFunctionDefinition . runtimeName ,
193- parameterDefinitions : ( runtimeFunctionDefinition . parameters || [ ] ) . map ( param => ( {
190+ version : functionDefinition . version || config . version ,
191+ runtimeName : functionDefinition . runtimeName ,
192+ parameterDefinitions : ( functionDefinition . parameters || [ ] ) . map ( param => ( {
194193 runtimeName : param . runtimeName ,
195194 name : param . name || [ ] ,
196195 description : param . description || [ ] ,
197196 documentation : param . documentation || [ ] ,
198197 defaultValue : constructValue ( param . defaultValue || null ) ,
199198 } ) ) ,
200- signature : runtimeFunctionDefinition . signature ,
201- throwsError : runtimeFunctionDefinition . throwsError || false ,
199+ signature : functionDefinition . signature ,
200+ throwsError : functionDefinition . throwsError || false ,
202201 }
203202 } ) ;
204203 }
0 commit comments