@managespace/sdk 0.1.114 → 0.1.115
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/extensibility/functions/extensibility-function.d.ts +4 -19
- package/dist/extensibility/functions/extensibility-function.d.ts.map +1 -1
- package/dist/extensibility/types/extensibility-function-api.d.ts +10 -0
- package/dist/extensibility/types/extensibility-function-api.d.ts.map +1 -0
- package/dist/extensibility/types/extensibility-function-api.js +2 -0
- package/dist/extensibility/types/extensibility-function-signature.d.ts +4 -0
- package/dist/extensibility/types/extensibility-function-signature.d.ts.map +1 -0
- package/dist/extensibility/types/extensibility-function-signature.js +2 -0
- package/dist/extensibility/types/step-function-api.d.ts +7 -0
- package/dist/extensibility/types/step-function-api.d.ts.map +1 -0
- package/dist/extensibility/types/step-function-api.js +2 -0
- package/dist/extensibility/types/step-function-signature.d.ts +2 -6
- package/dist/extensibility/types/step-function-signature.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/extensibility/functions/extensibility-function.ts +3 -18
- package/src/extensibility/types/extensibility-function-api.ts +10 -0
- package/src/extensibility/types/extensibility-function-signature.ts +7 -0
- package/src/extensibility/types/step-function-api.ts +7 -0
- package/src/extensibility/types/step-function-signature.ts +2 -6
|
@@ -1,22 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare const defineExFn: <T extends ExtPlugin>(callback: (payload: ExtBasePayload & T['payload'], api: DefaultApi & {
|
|
5
|
-
configurationSettings: {
|
|
6
|
-
[key: string]: string | number | boolean | Record<string, unknown>;
|
|
7
|
-
};
|
|
8
|
-
secrets: {
|
|
9
|
-
[key: string]: any;
|
|
10
|
-
};
|
|
11
|
-
}) => Promise<ExtReturnType<T['responseType']>>) => {
|
|
1
|
+
import { ExtPlugin } from '../types';
|
|
2
|
+
import { ExtensibilityFunctionSignature } from '../types/extensibility-function-signature';
|
|
3
|
+
export declare const defineExFn: <T extends ExtPlugin>(callback: ExtensibilityFunctionSignature<T>) => {
|
|
12
4
|
message: string;
|
|
13
|
-
callback:
|
|
14
|
-
configurationSettings: {
|
|
15
|
-
[key: string]: string | number | boolean | Record<string, unknown>;
|
|
16
|
-
};
|
|
17
|
-
secrets: {
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
};
|
|
20
|
-
}) => Promise<ExtReturnType<T['responseType']>>;
|
|
5
|
+
callback: ExtensibilityFunctionSignature<T>;
|
|
21
6
|
};
|
|
22
7
|
//# sourceMappingURL=extensibility-function.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extensibility-function.d.ts","sourceRoot":"","sources":["../../../src/extensibility/functions/extensibility-function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"extensibility-function.d.ts","sourceRoot":"","sources":["../../../src/extensibility/functions/extensibility-function.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAE3F,eAAO,MAAM,UAAU,kCACT,+BAA+B,CAAC,CAAC;;;CAW9C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DefaultApi } from '../../generated';
|
|
2
|
+
export type ExFnApi = DefaultApi & {
|
|
3
|
+
configurationSettings: {
|
|
4
|
+
[key: string]: string | number | boolean | Record<string, unknown>;
|
|
5
|
+
};
|
|
6
|
+
secrets: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=extensibility-function-api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensibility-function-api.d.ts","sourceRoot":"","sources":["../../../src/extensibility/types/extensibility-function-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG;IAC/B,qBAAqB,EAAE;QACnB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACtE,CAAC;IACF,OAAO,EAAE;QACL,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACtB,CAAC;CACL,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ExtBasePayload, ExtPlugin, ExtReturnType } from './extensibility';
|
|
2
|
+
import { ExFnApi } from './extensibility-function-api';
|
|
3
|
+
export type ExtensibilityFunctionSignature<T extends ExtPlugin> = (payload: ExtBasePayload & T['payload'], api: ExFnApi) => Promise<ExtReturnType<T['responseType']>>;
|
|
4
|
+
//# sourceMappingURL=extensibility-function-signature.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"extensibility-function-signature.d.ts","sourceRoot":"","sources":["../../../src/extensibility/types/extensibility-function-signature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AAEvD,MAAM,MAAM,8BAA8B,CAAC,CAAC,SAAS,SAAS,IAAI,CAC9D,OAAO,EAAE,cAAc,GAAG,CAAC,CAAC,SAAS,CAAC,EACtC,GAAG,EAAE,OAAO,KACX,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-function-api.d.ts","sourceRoot":"","sources":["../../../src/extensibility/types/step-function-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG;IACvC,qBAAqB,EAAE;QACnB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;KACtE,CAAC;CACL,CAAC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
import { DefaultApi } from '../../generated';
|
|
2
1
|
import { DefaultPorts } from './default-result';
|
|
2
|
+
import { StepFunctionApi } from './step-function-api';
|
|
3
3
|
import { WorkflowStepBasePayload, WorkflowStepReturnType } from './workflow-step';
|
|
4
|
-
export type StepFunctionSignature<T extends string = DefaultPorts> = (payload: WorkflowStepBasePayload & any, api:
|
|
5
|
-
configurationSettings: {
|
|
6
|
-
[key: string]: string | number | boolean | Record<string, unknown>;
|
|
7
|
-
};
|
|
8
|
-
}, state: any) => Promise<WorkflowStepReturnType<T>>;
|
|
4
|
+
export type StepFunctionSignature<T extends string = DefaultPorts> = (payload: WorkflowStepBasePayload & any, api: StepFunctionApi, state: any) => Promise<WorkflowStepReturnType<T>>;
|
|
9
5
|
//# sourceMappingURL=step-function-signature.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"step-function-signature.d.ts","sourceRoot":"","sources":["../../../src/extensibility/types/step-function-signature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"step-function-signature.d.ts","sourceRoot":"","sources":["../../../src/extensibility/types/step-function-signature.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EACH,uBAAuB,EACvB,sBAAsB,EACzB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,MAAM,GAAG,YAAY,IAAI,CACjE,OAAO,EAAE,uBAAuB,GAAG,GAAG,EACtC,GAAG,EAAE,eAAe,EACpB,KAAK,EAAE,GAAG,KACT,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,23 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ExtPlugin, ExtBasePayload } from '../types';
|
|
1
|
+
import { ExtPlugin } from '../types';
|
|
2
|
+
import { ExtensibilityFunctionSignature } from '../types/extensibility-function-signature';
|
|
4
3
|
|
|
5
4
|
export const defineExFn = <T extends ExtPlugin>(
|
|
6
|
-
callback:
|
|
7
|
-
payload: ExtBasePayload & T['payload'],
|
|
8
|
-
api: DefaultApi & {
|
|
9
|
-
configurationSettings: {
|
|
10
|
-
[key: string]:
|
|
11
|
-
| string
|
|
12
|
-
| number
|
|
13
|
-
| boolean
|
|
14
|
-
| Record<string, unknown>;
|
|
15
|
-
};
|
|
16
|
-
secrets: {
|
|
17
|
-
[key: string]: any;
|
|
18
|
-
};
|
|
19
|
-
},
|
|
20
|
-
) => Promise<ExtReturnType<T['responseType']>>,
|
|
5
|
+
callback: ExtensibilityFunctionSignature<T>,
|
|
21
6
|
) => {
|
|
22
7
|
// let fnDescription = 'some default description';
|
|
23
8
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ExtBasePayload, ExtPlugin, ExtReturnType } from './extensibility';
|
|
2
|
+
import { ExFnApi } from './extensibility-function-api';
|
|
3
|
+
|
|
4
|
+
export type ExtensibilityFunctionSignature<T extends ExtPlugin> = (
|
|
5
|
+
payload: ExtBasePayload & T['payload'],
|
|
6
|
+
api: ExFnApi,
|
|
7
|
+
) => Promise<ExtReturnType<T['responseType']>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DefaultApi } from '../../generated';
|
|
2
1
|
import { DefaultPorts } from './default-result';
|
|
2
|
+
import { StepFunctionApi } from './step-function-api';
|
|
3
3
|
import {
|
|
4
4
|
WorkflowStepBasePayload,
|
|
5
5
|
WorkflowStepReturnType,
|
|
@@ -7,10 +7,6 @@ import {
|
|
|
7
7
|
|
|
8
8
|
export type StepFunctionSignature<T extends string = DefaultPorts> = (
|
|
9
9
|
payload: WorkflowStepBasePayload & any,
|
|
10
|
-
api:
|
|
11
|
-
configurationSettings: {
|
|
12
|
-
[key: string]: string | number | boolean | Record<string, unknown>;
|
|
13
|
-
};
|
|
14
|
-
},
|
|
10
|
+
api: StepFunctionApi,
|
|
15
11
|
state: any,
|
|
16
12
|
) => Promise<WorkflowStepReturnType<T>>;
|