@transai/connector-runner-dummy-node 0.21.0 → 0.26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +60 -0
- package/index.cjs +1 -1
- package/index.cjs.map +4 -4
- package/libs/connector-runtime-sdk/src/lib/sdk/http-client.interface.d.ts +2 -0
- package/libs/connector-runtime-sdk/src/lib/types/action.d.ts +2 -2
- package/libs/connector-runtime-sdk/src/lib/types/kafka.d.ts +1 -0
- package/package.json +2 -2
- /package/{libs → integrations}/connector-runner-dummy-node/src/index.d.ts +0 -0
- /package/{libs → integrations}/connector-runner-dummy-node/src/lib/connector-runner-dummy-node.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,63 @@
|
|
|
1
|
+
## 0.26.2 (2026-10-09)
|
|
2
|
+
|
|
3
|
+
### 🧱 Updated Dependencies
|
|
4
|
+
|
|
5
|
+
- Updated @transai/connector-runtime-sdk to 0.22.2
|
|
6
|
+
|
|
7
|
+
## 0.26.1 (2026-10-02)
|
|
8
|
+
|
|
9
|
+
### 🧱 Updated Dependencies
|
|
10
|
+
|
|
11
|
+
- Updated @transai/connector-runtime-sdk to 0.22.1
|
|
12
|
+
|
|
13
|
+
## 0.26.0 (2026-09-14)
|
|
14
|
+
|
|
15
|
+
### 🧱 Updated Dependencies
|
|
16
|
+
|
|
17
|
+
- Updated @transai/connector-runtime-sdk to 0.22.0
|
|
18
|
+
|
|
19
|
+
## 0.25.0 (2026-08-13)
|
|
20
|
+
|
|
21
|
+
### 🧱 Updated Dependencies
|
|
22
|
+
|
|
23
|
+
- Updated @transai/connector-runtime-sdk to 0.21.0
|
|
24
|
+
|
|
25
|
+
## 0.24.1 (2026-08-12)
|
|
26
|
+
|
|
27
|
+
### 🧱 Updated Dependencies
|
|
28
|
+
|
|
29
|
+
- Updated @transai/connector-runtime-sdk to 0.20.1
|
|
30
|
+
|
|
31
|
+
## 0.24.0 (2026-08-05)
|
|
32
|
+
|
|
33
|
+
### 🧱 Updated Dependencies
|
|
34
|
+
|
|
35
|
+
- Updated @transai/connector-runtime-sdk to 0.20.0
|
|
36
|
+
|
|
37
|
+
## 0.23.1 (2026-07-20)
|
|
38
|
+
|
|
39
|
+
### 🧱 Updated Dependencies
|
|
40
|
+
|
|
41
|
+
- Updated @transai/connector-runtime-sdk to 0.19.1
|
|
42
|
+
|
|
43
|
+
## 0.23.0 (2026-06-22)
|
|
44
|
+
|
|
45
|
+
### 🧱 Updated Dependencies
|
|
46
|
+
|
|
47
|
+
- Updated @transai/connector-runtime-sdk to 0.19.0
|
|
48
|
+
|
|
49
|
+
## 0.22.0 (2026-06-01)
|
|
50
|
+
|
|
51
|
+
### 🧱 Updated Dependencies
|
|
52
|
+
|
|
53
|
+
- Updated @transai/connector-runtime-sdk to 0.18.0
|
|
54
|
+
|
|
55
|
+
## 0.21.0 (2026-05-12)
|
|
56
|
+
|
|
57
|
+
### 🧱 Updated Dependencies
|
|
58
|
+
|
|
59
|
+
- Updated @transai/connector-runtime-sdk to 0.17.0
|
|
60
|
+
|
|
1
61
|
## 0.20.0 (2026-05-06)
|
|
2
62
|
|
|
3
63
|
### 🧱 Updated Dependencies
|
package/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var l=Object.create;var
|
|
1
|
+
"use strict";var l=Object.create;var s=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var g=Object.getOwnPropertyNames;var I=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty;var y=(t,r)=>{for(var e in r)s(t,e,{get:r[e],enumerable:!0})},m=(t,r,e,o)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of g(r))!b.call(t,n)&&n!==e&&s(t,n,{get:()=>r[n],enumerable:!(o=d(r,n))||o.enumerable});return t};var P=(t,r,e)=>(e=t!=null?l(I(t)):{},m(r||!t||!t.__esModule?s(e,"default",{value:t,enumerable:!0}):e,t)),x=t=>m(s({},"__esModule",{value:!0}),t);var C={};y(C,{ConnectorRunnerDummyNode:()=>p});module.exports=x(C);var a=P(require("node:process")),c=class{#r="connector-runtime";#e;constructor(r,e){this.#e=e,a.default.on?a.default.on("message",o=>{o.cmd===this.#r&&e.logger.verbose(`${a.default.pid} Received message from parent process:`,o)}):e.logger.warn("IPC channel is not available. process.on is undefined."),a.default.send||e.logger.warn("IPC channel is not available. process.send is undefined."),r.actions?.forEach(o=>{if(o.config.templates===void 0)return;let n={};Object.entries(o.config.templates).forEach(([i,f])=>{try{n[i]=e.templating.compile(f)}catch(u){e.logger.error(`Error compiling template ${i} for action ${o.identifier}`,u)}}),o.config.parsedTemplates=n})}init=()=>Promise.resolve();start=()=>Promise.resolve();stop=()=>Promise.resolve();set callbackFunction(r){this.connectorSDK.receiver.registerCallback(this.#t(r))}get connectorSDK(){return this.#e}#t(r){return async e=>{let o=await this.#e.receiver.getActionConfig(e);return o?r(e,o):this.#e.receiver.responses.badRequest("Action not found")(e)}}};var p=class extends c{CONNECTOR_INSTANCE="XOD_CONNECTOR_DUMMY_NODE_CONFIG";init=async()=>{let{config:r}=this.connectorSDK,e=r.failProbability||0;e>0&&this.connectorSDK.logger.debug("Fail probability set to",e);let o=n=>Math.random()<(n??e);this.callbackFunction=async(n,i)=>(this.connectorSDK.logger.info("Received message: ",n.testRun?"(test run)":"",n.eventId,n.payload),o(i.config?.failProbability)?(this.connectorSDK.logger.error("Dummy process failed"),this.connectorSDK.receiver.responses.internalServerError("Dummy process failed")(n)):this.connectorSDK.receiver.responses.ok()(n))}};0&&(module.exports={ConnectorRunnerDummyNode});
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/index.cjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../
|
|
4
|
-
"sourcesContent": ["export * from './lib/connector-runner-dummy-node';\n", "import process from 'node:process';\n\nimport { ConnectorRuntimeInterface } from './connector-runtime.interface';\nimport { CompileDelegate, ConnectorSDKInterface } from './sdk';\nimport {\n ActionInterface,\n BaseConnectorConfig,\n ConnectorInterface,\n KafkaCallbackResponse,\n XodJobType,\n} from './types';\n\nexport interface IpcMessage {\n cmd: string;\n message: string;\n}\n\nexport abstract class ConnectorRuntimeSDK<\n T extends BaseConnectorConfig = BaseConnectorConfig,\n> implements ConnectorRuntimeInterface {\n readonly #IPC_CHANNEL = 'connector-runtime';\n\n readonly #connectorSDK: ConnectorSDKInterface<T>;\n\n constructor(\n connector: ConnectorInterface,\n connectorSDK: ConnectorSDKInterface,\n ) {\n this.#connectorSDK = connectorSDK as ConnectorSDKInterface<T>;\n\n if (process.on) {\n process.on('message', (message: IpcMessage) => {\n if (message.cmd === this.#IPC_CHANNEL) {\n connectorSDK.logger.verbose(\n `${process.pid} Received message from parent process:`,\n message,\n );\n }\n });\n } else {\n connectorSDK.logger.warn(\n 'IPC channel is not available. process.on is undefined.',\n );\n }\n\n if (!process.send) {\n // Check if process.send is available\n connectorSDK.logger.warn(\n 'IPC channel is not available. process.send is undefined.',\n );\n }\n\n // eslint-disable-next-line no-restricted-syntax\n connector.actions?.forEach((action: ActionInterface) => {\n if (action.config['templates'] === undefined) {\n return;\n }\n\n const containers: {\n [key: string]: CompileDelegate;\n } = {};\n\n Object.entries(action.config['templates']).forEach(([key, value]) => {\n try {\n // eslint-disable-next-line security/detect-object-injection\n containers[key] = connectorSDK.templating.compile(value);\n } catch (error: unknown) {\n connectorSDK.logger.error(\n `Error compiling template ${key} for action ${action.identifier}`,\n error,\n );\n }\n });\n\n // eslint-disable-next-line no-param-reassign\n action.config['parsedTemplates'] = containers;\n });\n }\n\n public init: () => Promise<void> = () => Promise.resolve();\n\n public start: () => Promise<void> = () => Promise.resolve();\n\n public stop: () => Promise<void> = () => Promise.resolve();\n\n set callbackFunction(\n callback: (\n message: XodJobType,\n action: ActionInterface,\n ) => Promise<KafkaCallbackResponse>,\n ) {\n this.connectorSDK.receiver.registerCallback(\n this.#enrichWithActionConfig(callback),\n );\n }\n\n protected get connectorSDK(): ConnectorSDKInterface<T> {\n return this.#connectorSDK;\n }\n\n #enrichWithActionConfig(\n callbackFunction: (\n message: XodJobType,\n action: ActionInterface,\n ) => Promise<KafkaCallbackResponse>,\n ): (message: XodJobType) => Promise<KafkaCallbackResponse> {\n return async (message: XodJobType) => {\n const action = await this.#connectorSDK.receiver.getActionConfig(message);\n if (!action) {\n return this.#connectorSDK.receiver.responses.badRequest(\n 'Action not found',\n )(message);\n }\n return callbackFunction(message, action);\n };\n }\n}\n", "import {\n BaseConnectorConfig,\n ConnectorRuntimeSDK,\n KafkaCallbackResponse,\n XodJobType,\n} from '@transai/connector-runtime-sdk';\n\nexport class ConnectorRunnerDummyNode extends ConnectorRuntimeSDK<\n {\n failProbability?: number;\n } & BaseConnectorConfig\n> {\n readonly CONNECTOR_INSTANCE: string = 'XOD_CONNECTOR_DUMMY_NODE_CONFIG';\n\n override init = async (): Promise<void> => {\n const { config } = this.connectorSDK;\n\n const
|
|
5
|
-
"mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,8BAAAE,IAAA,eAAAC,EAAAH,GCAA,IAAAI,EAAoB,2BAiBEC,EAAf,KAEgC,CAC5BC,GAAe,oBAEfC,GAET,YACEC,EACAC,EACA,CACA,KAAKF,GAAgBE,EAEjB,EAAAC,QAAQ,GACV,EAAAA,QAAQ,GAAG,UAAYC,GAAwB,CACzCA,EAAQ,MAAQ,KAAKL,IACvBG,EAAa,OAAO,QAClB,GAAG,EAAAC,QAAQ,GAAG,yCACdC,CACF,CAEJ,CAAC,EAEDF,EAAa,OAAO,KAClB,wDACF,EAGG,EAAAC,QAAQ,MAEXD,EAAa,OAAO,KAClB,0DACF,EAIFD,EAAU,SAAS,QAASI,GAA4B,CACtD,GAAIA,EAAO,OAAO,YAAiB,OACjC,OAGF,IAAMC,EAEF,CAAC,EAEL,OAAO,QAAQD,EAAO,OAAO,SAAY,EAAE,QAAQ,CAAC,CAACE,EAAKC,CAAK,IAAM,CACnE,GAAI,CAEFF,EAAWC,CAAG,EAAIL,EAAa,WAAW,QAAQM,CAAK,CACzD,OAASC,EAAgB,CACvBP,EAAa,OAAO,MAClB,4BAA4BK,CAAG,eAAeF,EAAO,UAAU,GAC/DI,CACF,CACF,CACF,CAAC,EAGDJ,EAAO,OAAO,gBAAqBC,CACrC,CAAC,CACH,CAEO,KAA4B,IAAM,QAAQ,QAAQ,EAElD,MAA6B,IAAM,QAAQ,QAAQ,EAEnD,KAA4B,IAAM,QAAQ,QAAQ,EAEzD,IAAI,iBACFI,EAIA,CACA,KAAK,aAAa,SAAS,iBACzB,KAAKC,GAAwBD,CAAQ,CACvC,CACF,CAEA,IAAc,cAAyC,CACrD,OAAO,KAAKV,EACd,CAEAW,GACEC,EAIyD,CACzD,MAAO,OAAOR,GAAwB,CACpC,IAAMC,EAAS,MAAM,KAAKL,GAAc,SAAS,gBAAgBI,CAAO,EACxE,OAAKC,EAKEO,EAAiBR,EAASC,CAAM,EAJ9B,KAAKL,GAAc,SAAS,UAAU,WAC3C,kBACF,EAAEI,CAAO,CAGb,CACF,CACF,EC7GO,IAAMS,EAAN,cAAuCC,CAI5C,CACS,mBAA6B,kCAE7B,KAAO,SAA2B,CACzC,GAAM,CAAE,OAAAC,CAAO,EAAI,KAAK,aAElBC,
|
|
6
|
-
"names": ["index_exports", "__export", "ConnectorRunnerDummyNode", "__toCommonJS", "import_node_process", "ConnectorRuntimeSDK", "#IPC_CHANNEL", "#connectorSDK", "connector", "connectorSDK", "process", "message", "action", "containers", "key", "value", "error", "callback", "#enrichWithActionConfig", "callbackFunction", "ConnectorRunnerDummyNode", "ConnectorRuntimeSDK", "config", "
|
|
3
|
+
"sources": ["../../../integrations/connector-runner-dummy-node/src/index.ts", "../../../libs/connector-runtime-sdk/src/lib/connector-runtime.ts", "../../../integrations/connector-runner-dummy-node/src/lib/connector-runner-dummy-node.ts"],
|
|
4
|
+
"sourcesContent": ["export * from './lib/connector-runner-dummy-node';\n", "import process from 'node:process';\n\nimport { ConnectorRuntimeInterface } from './connector-runtime.interface';\nimport { CompileDelegate, ConnectorSDKInterface } from './sdk';\nimport {\n ActionInterface,\n BaseConnectorConfig,\n ConnectorInterface,\n KafkaCallbackResponse,\n XodJobType,\n} from './types';\n\nexport interface IpcMessage {\n cmd: string;\n message: string;\n}\n\nexport abstract class ConnectorRuntimeSDK<\n T extends BaseConnectorConfig = BaseConnectorConfig,\n> implements ConnectorRuntimeInterface {\n readonly #IPC_CHANNEL = 'connector-runtime';\n\n readonly #connectorSDK: ConnectorSDKInterface<T>;\n\n constructor(\n connector: ConnectorInterface,\n connectorSDK: ConnectorSDKInterface,\n ) {\n this.#connectorSDK = connectorSDK as ConnectorSDKInterface<T>;\n\n if (process.on) {\n process.on('message', (message: IpcMessage) => {\n if (message.cmd === this.#IPC_CHANNEL) {\n connectorSDK.logger.verbose(\n `${process.pid} Received message from parent process:`,\n message,\n );\n }\n });\n } else {\n connectorSDK.logger.warn(\n 'IPC channel is not available. process.on is undefined.',\n );\n }\n\n if (!process.send) {\n // Check if process.send is available\n connectorSDK.logger.warn(\n 'IPC channel is not available. process.send is undefined.',\n );\n }\n\n // eslint-disable-next-line no-restricted-syntax\n connector.actions?.forEach((action: ActionInterface) => {\n if (action.config['templates'] === undefined) {\n return;\n }\n\n const containers: {\n [key: string]: CompileDelegate;\n } = {};\n\n Object.entries(action.config['templates']).forEach(([key, value]) => {\n try {\n // eslint-disable-next-line security/detect-object-injection\n containers[key] = connectorSDK.templating.compile(value);\n } catch (error: unknown) {\n connectorSDK.logger.error(\n `Error compiling template ${key} for action ${action.identifier}`,\n error,\n );\n }\n });\n\n // eslint-disable-next-line no-param-reassign\n action.config['parsedTemplates'] = containers;\n });\n }\n\n public init: () => Promise<void> = () => Promise.resolve();\n\n public start: () => Promise<void> = () => Promise.resolve();\n\n public stop: () => Promise<void> = () => Promise.resolve();\n\n set callbackFunction(\n callback: (\n message: XodJobType,\n action: ActionInterface,\n ) => Promise<KafkaCallbackResponse>,\n ) {\n this.connectorSDK.receiver.registerCallback(\n this.#enrichWithActionConfig(callback),\n );\n }\n\n protected get connectorSDK(): ConnectorSDKInterface<T> {\n return this.#connectorSDK;\n }\n\n #enrichWithActionConfig(\n callbackFunction: (\n message: XodJobType,\n action: ActionInterface,\n ) => Promise<KafkaCallbackResponse>,\n ): (message: XodJobType) => Promise<KafkaCallbackResponse> {\n return async (message: XodJobType) => {\n const action = await this.#connectorSDK.receiver.getActionConfig(message);\n if (!action) {\n return this.#connectorSDK.receiver.responses.badRequest(\n 'Action not found',\n )(message);\n }\n return callbackFunction(message, action);\n };\n }\n}\n", "import {\n BaseConnectorConfig,\n ConnectorRuntimeSDK,\n KafkaCallbackResponse,\n XodJobType,\n} from '@transai/connector-runtime-sdk';\n\nexport class ConnectorRunnerDummyNode extends ConnectorRuntimeSDK<\n {\n failProbability?: number;\n } & BaseConnectorConfig\n> {\n readonly CONNECTOR_INSTANCE: string = 'XOD_CONNECTOR_DUMMY_NODE_CONFIG';\n\n override init = async (): Promise<void> => {\n const { config } = this.connectorSDK;\n\n const connectorFailProbability = config.failProbability || 0.0;\n if (connectorFailProbability > 0) {\n this.connectorSDK.logger.debug(\n 'Fail probability set to',\n connectorFailProbability,\n );\n }\n\n const dummyProcessFailed = (actionFailPropability?: number): boolean => {\n return (\n Math.random() < (actionFailPropability ?? connectorFailProbability)\n );\n };\n\n this.callbackFunction = async (\n message: XodJobType,\n action: { config: { failProbability?: number } },\n ): Promise<KafkaCallbackResponse> => {\n this.connectorSDK.logger.info(\n 'Received message: ',\n message.testRun ? '(test run)' : '',\n message.eventId,\n message.payload,\n );\n\n if (dummyProcessFailed(action.config?.failProbability)) {\n this.connectorSDK.logger.error('Dummy process failed');\n return this.connectorSDK.receiver.responses.internalServerError(\n 'Dummy process failed',\n )(message);\n }\n\n return this.connectorSDK.receiver.responses.ok()(message);\n };\n };\n}\n"],
|
|
5
|
+
"mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,8BAAAE,IAAA,eAAAC,EAAAH,GCAA,IAAAI,EAAoB,2BAiBEC,EAAf,KAEgC,CAC5BC,GAAe,oBAEfC,GAET,YACEC,EACAC,EACA,CACA,KAAKF,GAAgBE,EAEjB,EAAAC,QAAQ,GACV,EAAAA,QAAQ,GAAG,UAAYC,GAAwB,CACzCA,EAAQ,MAAQ,KAAKL,IACvBG,EAAa,OAAO,QAClB,GAAG,EAAAC,QAAQ,GAAG,yCACdC,CACF,CAEJ,CAAC,EAEDF,EAAa,OAAO,KAClB,wDACF,EAGG,EAAAC,QAAQ,MAEXD,EAAa,OAAO,KAClB,0DACF,EAIFD,EAAU,SAAS,QAASI,GAA4B,CACtD,GAAIA,EAAO,OAAO,YAAiB,OACjC,OAGF,IAAMC,EAEF,CAAC,EAEL,OAAO,QAAQD,EAAO,OAAO,SAAY,EAAE,QAAQ,CAAC,CAACE,EAAKC,CAAK,IAAM,CACnE,GAAI,CAEFF,EAAWC,CAAG,EAAIL,EAAa,WAAW,QAAQM,CAAK,CACzD,OAASC,EAAgB,CACvBP,EAAa,OAAO,MAClB,4BAA4BK,CAAG,eAAeF,EAAO,UAAU,GAC/DI,CACF,CACF,CACF,CAAC,EAGDJ,EAAO,OAAO,gBAAqBC,CACrC,CAAC,CACH,CAEO,KAA4B,IAAM,QAAQ,QAAQ,EAElD,MAA6B,IAAM,QAAQ,QAAQ,EAEnD,KAA4B,IAAM,QAAQ,QAAQ,EAEzD,IAAI,iBACFI,EAIA,CACA,KAAK,aAAa,SAAS,iBACzB,KAAKC,GAAwBD,CAAQ,CACvC,CACF,CAEA,IAAc,cAAyC,CACrD,OAAO,KAAKV,EACd,CAEAW,GACEC,EAIyD,CACzD,MAAO,OAAOR,GAAwB,CACpC,IAAMC,EAAS,MAAM,KAAKL,GAAc,SAAS,gBAAgBI,CAAO,EACxE,OAAKC,EAKEO,EAAiBR,EAASC,CAAM,EAJ9B,KAAKL,GAAc,SAAS,UAAU,WAC3C,kBACF,EAAEI,CAAO,CAGb,CACF,CACF,EC7GO,IAAMS,EAAN,cAAuCC,CAI5C,CACS,mBAA6B,kCAE7B,KAAO,SAA2B,CACzC,GAAM,CAAE,OAAAC,CAAO,EAAI,KAAK,aAElBC,EAA2BD,EAAO,iBAAmB,EACvDC,EAA2B,GAC7B,KAAK,aAAa,OAAO,MACvB,0BACAA,CACF,EAGF,IAAMC,EAAsBC,GAExB,KAAK,OAAO,GAAKA,GAAyBF,GAI9C,KAAK,iBAAmB,MACtBG,EACAC,KAEA,KAAK,aAAa,OAAO,KACvB,qBACAD,EAAQ,QAAU,aAAe,GACjCA,EAAQ,QACRA,EAAQ,OACV,EAEIF,EAAmBG,EAAO,QAAQ,eAAe,GACnD,KAAK,aAAa,OAAO,MAAM,sBAAsB,EAC9C,KAAK,aAAa,SAAS,UAAU,oBAC1C,sBACF,EAAED,CAAO,GAGJ,KAAK,aAAa,SAAS,UAAU,GAAG,EAAEA,CAAO,EAE5D,CACF",
|
|
6
|
+
"names": ["index_exports", "__export", "ConnectorRunnerDummyNode", "__toCommonJS", "import_node_process", "ConnectorRuntimeSDK", "#IPC_CHANNEL", "#connectorSDK", "connector", "connectorSDK", "process", "message", "action", "containers", "key", "value", "error", "callback", "#enrichWithActionConfig", "callbackFunction", "ConnectorRunnerDummyNode", "ConnectorRuntimeSDK", "config", "connectorFailProbability", "dummyProcessFailed", "actionFailPropability", "message", "action"]
|
|
7
7
|
}
|
|
@@ -2,6 +2,7 @@ export interface HttpConfig {
|
|
|
2
2
|
baseUrl?: string;
|
|
3
3
|
contentType?: string;
|
|
4
4
|
timeout?: number;
|
|
5
|
+
insecure?: boolean;
|
|
5
6
|
}
|
|
6
7
|
export type HttpRequestOptions<D = string | object> = {
|
|
7
8
|
headers?: Record<string, string>;
|
|
@@ -28,6 +29,7 @@ export type HttpResponse<D = unknown> = {
|
|
|
28
29
|
export type HttpError = {
|
|
29
30
|
status: number;
|
|
30
31
|
error?: string;
|
|
32
|
+
headers?: Record<string, HttpResponseHeader>;
|
|
31
33
|
};
|
|
32
34
|
interface PromiseWithReason<T = unknown, R = unknown> extends Promise<T> {
|
|
33
35
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: R) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
|
|
@@ -52,8 +52,8 @@ export interface ActionInterface {
|
|
|
52
52
|
connectorIdentifier: string;
|
|
53
53
|
config: {
|
|
54
54
|
[key: string]: {
|
|
55
|
-
[key: string]: string | object;
|
|
56
|
-
} | string | object;
|
|
55
|
+
[key: string]: string | number | object;
|
|
56
|
+
} | string | number | object;
|
|
57
57
|
};
|
|
58
58
|
inputParameters: Array<InputParameterInterface>;
|
|
59
59
|
outputParameters: LegacyOutputParameterInterface | OutputParameterInterface;
|
package/package.json
CHANGED
|
File without changes
|
/package/{libs → integrations}/connector-runner-dummy-node/src/lib/connector-runner-dummy-node.d.ts
RENAMED
|
File without changes
|