@@ -5,7 +5,7 @@ import {ActionTransferServiceClient, TransferRequest} from "@code0-tech/tucana/a
55import { FlowTypeSetting , } from "@code0-tech/tucana/shared" ;
66import { constructValue , toAllowedValue } from "@code0-tech/tucana/helpers" ;
77import 'reflect-metadata' ;
8- import { connect as connectHelper } from "./sdk/connection/connection" ;
8+ import { connect } from "./sdk/connection/connection" ;
99import { registerFunctionDefinitionClass } from "./sdk/builder/registerFunctionDefinitionClass" ;
1010import { registerRuntimeFunctionDefinitionClass } from "./builder/registerRuntimeFunctionDefinitionClass" ;
1111
@@ -52,7 +52,7 @@ const createSdk = (config: ActionSdk["config"], configDefinitions?: HerculesActi
5252 state . stream ?. responses . onError ( handler )
5353 } ,
5454 connect : options => {
55- return connectHelper ( state , config , options ) ;
55+ return connect ( state , config , options ) ;
5656 } ,
5757 getProjectActionConfigurations : ( ) => {
5858 return state . projectConfigurations . map ( value => {
@@ -97,14 +97,14 @@ const createSdk = (config: ActionSdk["config"], configDefinitions?: HerculesActi
9797 linkedDataTypeIdentifiers : dataType . linkedDataTypes || [ ] ,
9898 displayMessage : dataType . displayMessage || [ ] ,
9999 definitionSource : "action" ,
100- version : dataType . version || config . version ,
100+ version : config . version ,
101101 } ) ;
102102 } )
103103
104104
105105 return Promise . resolve ( )
106106 } ,
107- registerFlowTypes : async ( ...flowTypes ) => {
107+ registerEventTypes : async ( ...flowTypes ) => {
108108 flowTypes . forEach ( flowType => {
109109 state . flowTypes . push ( {
110110 signature : flowType . signature ,
@@ -116,7 +116,7 @@ const createSdk = (config: ActionSdk["config"], configDefinitions?: HerculesActi
116116 displayMessage : flowType . displayMessage || [ ] ,
117117 documentation : flowType . documentation || [ ] ,
118118 definitionSource : "action" ,
119- version : flowType . version || config . version ,
119+ version : config . version ,
120120 linkedDataTypeIdentifiers : flowType . linkedDataTypes || [ ] ,
121121 settings : ( flowType . settings || [ ] ) . map ( setting => ( {
122122 name : setting . name || [ ] ,
@@ -146,7 +146,7 @@ const createSdk = (config: ActionSdk["config"], configDefinitions?: HerculesActi
146146 event : {
147147 projectId : projectIdBigInt ,
148148 eventType : eventType ,
149- payload : constructValue ( payload ) || constructValue ( null ) ,
149+ payload : constructValue ( payload || null ) ,
150150 }
151151 }
152152 } )
@@ -161,5 +161,5 @@ const createSdk = (config: ActionSdk["config"], configDefinitions?: HerculesActi
161161
162162export {
163163 createSdk ,
164- connectHelper as connect
164+ connect
165165}
0 commit comments