@ketrics/sdk-backend 0.13.0 → 0.13.1
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/dist/applications.d.ts
CHANGED
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
/**
|
|
25
25
|
* Result of invoking a function on a connected application
|
|
26
26
|
*/
|
|
27
|
-
export interface ApplicationInvokeResult {
|
|
27
|
+
export interface ApplicationInvokeResult<T = unknown> {
|
|
28
28
|
/** Whether the invocation succeeded */
|
|
29
29
|
success: boolean;
|
|
30
30
|
/** Return value from the target function */
|
|
31
|
-
result?:
|
|
31
|
+
result?: T;
|
|
32
32
|
/** Execution time in milliseconds */
|
|
33
33
|
executionTime?: number;
|
|
34
34
|
/** Error details (only present when success is false) */
|
|
@@ -62,6 +62,6 @@ export interface IApplicationConnection {
|
|
|
62
62
|
* @throws ApplicationInvocationError if the function fails
|
|
63
63
|
* @throws ApplicationTimeoutError if the function exceeds the timeout
|
|
64
64
|
*/
|
|
65
|
-
invoke(functionName: string, payload?:
|
|
65
|
+
invoke<P = Record<string, unknown>, R = unknown>(functionName: string, payload?: P): Promise<ApplicationInvokeResult<R>>;
|
|
66
66
|
}
|
|
67
67
|
//# sourceMappingURL=applications.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applications.d.ts","sourceRoot":"","sources":["../src/applications.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAMH;;GAEG;AACH,MAAM,WAAW,uBAAuB;
|
|
1
|
+
{"version":3,"file":"applications.d.ts","sourceRoot":"","sources":["../src/applications.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAMH;;GAEG;AACH,MAAM,WAAW,uBAAuB,CAAC,CAAC,GAAG,OAAO;IAClD,uCAAuC;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,CAAC,CAAC;IACX,qCAAqC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAMD;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kDAAkD;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAE/B;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC;CAC1H"}
|