@requence/service 1.0.0-alpha.17 → 1.0.0-alpha.19
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 +12 -0
- package/build/index.js +192 -826
- package/build/index.js.map +12 -23
- package/build/types/helpers/src/files/fileObject.d.ts +16 -0
- package/build/types/helpers/src/files/fileObject.d.ts.map +1 -0
- package/build/types/helpers/src/files/index.d.ts +2 -43
- package/build/types/helpers/src/files/index.d.ts.map +1 -1
- package/build/types/helpers/src/files/mapOutput.d.ts +1 -1
- package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -1
- package/build/types/helpers/src/files/streamObject.d.ts +14 -0
- package/build/types/helpers/src/files/streamObject.d.ts.map +1 -0
- package/build/types/helpers/src/index.d.ts +1 -0
- package/build/types/helpers/src/index.d.ts.map +1 -1
- package/build/types/helpers/src/jsonschema/validate.d.ts +2 -0
- package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -1
- package/build/types/helpers/src/jsonschema/zod.d.ts +4 -12
- package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/NodeTree.d.ts +504 -0
- package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/NodesError.d.ts +5 -0
- package/build/types/helpers/src/protocol/NodesError.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/command.d.ts +373 -1954
- package/build/types/helpers/src/protocol/command.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/index.d.ts +5 -7
- package/build/types/helpers/src/protocol/index.d.ts.map +1 -1
- package/build/types/helpers/src/protocol/nodeOptions.d.ts +16 -0
- package/build/types/helpers/src/protocol/nodeOptions.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/nodeType.d.ts +283 -0
- package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/targetNodes.d.ts +253 -0
- package/build/types/helpers/src/protocol/targetNodes.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/treeNodes.d.ts +606 -0
- package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/update.d.ts +198 -3044
- package/build/types/helpers/src/protocol/update.d.ts.map +1 -1
- package/build/types/helpers/src/utils/mapData.d.ts +4 -0
- package/build/types/helpers/src/utils/mapData.d.ts.map +1 -1
- package/build/types/helpers/src/utils/matchSchema.d.ts +1 -1
- package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -1
- package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +2 -0
- package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
- package/build/types/helpers/src/utils/types.d.ts +4 -0
- package/build/types/helpers/src/utils/types.d.ts.map +1 -0
- package/build/types/service/src/createAmqpConnection.d.ts +4 -6
- package/build/types/service/src/createAmqpConnection.d.ts.map +1 -1
- package/build/types/service/src/helpers.d.ts +8 -68
- package/build/types/service/src/helpers.d.ts.map +1 -1
- package/package.json +4 -4
- package/build/types/helpers/src/context/context.d.ts +0 -156
- package/build/types/helpers/src/context/context.d.ts.map +0 -1
- package/build/types/helpers/src/context/index.d.ts +0 -2
- package/build/types/helpers/src/context/index.d.ts.map +0 -1
- package/build/types/helpers/src/protocol/createNodeMaps.d.ts +0 -10
- package/build/types/helpers/src/protocol/createNodeMaps.d.ts.map +0 -1
- package/build/types/helpers/src/protocol/getCycles.d.ts +0 -3
- package/build/types/helpers/src/protocol/getCycles.d.ts.map +0 -1
- package/build/types/helpers/src/protocol/getNodeOutputs.d.ts +0 -4
- package/build/types/helpers/src/protocol/getNodeOutputs.d.ts.map +0 -1
- package/build/types/helpers/src/protocol/getPossiblePaths.d.ts +0 -9
- package/build/types/helpers/src/protocol/getPossiblePaths.d.ts.map +0 -1
- package/build/types/helpers/src/protocol/identifyNode.d.ts +0 -4
- package/build/types/helpers/src/protocol/identifyNode.d.ts.map +0 -1
- package/build/types/helpers/src/protocol/node.d.ts +0 -1014
- package/build/types/helpers/src/protocol/node.d.ts.map +0 -1
- package/build/types/helpers/src/protocol/nodes.d.ts +0 -801
- package/build/types/helpers/src/protocol/nodes.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAiB1B,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;iBAGzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;iBAGzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;iBAIpB,CAAA;AAEF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEzD,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;iBAE5B,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEzE,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;iBAIzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;iBAGzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,qBAAqB;;;;;;;;;iBAWzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,qBAAqB;;;;iBAGzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA,MAAM,wBAAwB;;;;;iBAI5B,CAAA;AACF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAEzE,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAUvB,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
|
@@ -6,8 +6,12 @@ interface DataVistors {
|
|
|
6
6
|
Object?: DataVistor<object>;
|
|
7
7
|
Array?: DataVistor<Array<any>>;
|
|
8
8
|
Buffer?: DataVistor<Buffer>;
|
|
9
|
+
Symbol?: DataVistor<symbol>;
|
|
9
10
|
}
|
|
10
11
|
type HasPromiseVistor<T extends DataVistors, Then, Else> = T[keyof T] extends (...args: any[]) => any ? Promise<any> extends ReturnType<T[keyof T]> ? Then : Else : Else;
|
|
11
12
|
export declare function mapData<Output, Input = unknown, V extends DataVistors = DataVistors>(data: Input, visitors: V): HasPromiseVistor<V, Promise<unknown extends Output ? Input : Output>, unknown extends Output ? Input : Output>;
|
|
13
|
+
export declare namespace mapData {
|
|
14
|
+
var abort: () => never;
|
|
15
|
+
}
|
|
12
16
|
export {};
|
|
13
17
|
//# sourceMappingURL=mapData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapData.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/mapData.ts"],"names":[],"mappings":"AAEA,KAAK,UAAU,CAAC,CAAC,IAAI,CACnB,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,KACzB,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,CAAA;AAEvB,UAAU,WAAW;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;IACvB,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IAC9B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;CAC5B;AAED,KAAK,gBAAgB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAC5E,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,GAAG,GACJ,OAAO,CAAC,GAAG,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GACzC,IAAI,GACJ,IAAI,GACN,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"mapData.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/mapData.ts"],"names":[],"mappings":"AAEA,KAAK,UAAU,CAAC,CAAC,IAAI,CACnB,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,KACzB,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,CAAA;AAEvB,UAAU,WAAW;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAA;IACvB,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,KAAK,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA;IAC9B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3B,MAAM,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,CAAA;CAC5B;AAED,KAAK,gBAAgB,CAAC,CAAC,SAAS,WAAW,EAAE,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAC5E,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,GAAG,GACJ,OAAO,CAAC,GAAG,CAAC,SAAS,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GACzC,IAAI,GACJ,IAAI,GACN,IAAI,CAAA;AAmBR,wBAAgB,OAAO,CACrB,MAAM,EACN,KAAK,GAAG,OAAO,EACf,CAAC,SAAS,WAAW,GAAG,WAAW,EAEnC,IAAI,EAAE,KAAK,EACX,QAAQ,EAAE,CAAC,GACV,gBAAgB,CACjB,CAAC,EACD,OAAO,CAAC,OAAO,SAAS,MAAM,GAAG,KAAK,GAAG,MAAM,CAAC,EAChD,OAAO,SAAS,MAAM,GAAG,KAAK,GAAG,MAAM,CACxC,CA2EA;yBAtFe,OAAO"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { z } from 'zod';
|
|
1
|
+
import type { z } from 'zod/v4';
|
|
2
2
|
export declare function matchSchema<Schema extends z.ZodSchema>(schema: Schema, input: unknown): input is z.infer<Schema>;
|
|
3
3
|
export declare function matchSchema<Schema extends z.ZodSchema>(schema: Schema): (input: unknown) => input is z.infer<Schema>;
|
|
4
4
|
//# sourceMappingURL=matchSchema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"matchSchema.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/matchSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"matchSchema.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/matchSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE/B,wBAAgB,WAAW,CAAC,MAAM,SAAS,CAAC,CAAC,SAAS,EACpD,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,OAAO,GACb,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;AAC3B,wBAAgB,WAAW,CAAC,MAAM,SAAS,CAAC,CAAC,SAAS,EACpD,MAAM,EAAE,MAAM,GACb,CAAC,KAAK,EAAE,OAAO,KAAK,KAAK,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolveRequenceTypes.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/resolveRequenceTypes.ts"],"names":[],"mappings":"AAQA,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,OAY7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/utils/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KACvB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,GAAG,EAAE,CAAA"}
|
|
@@ -4,11 +4,9 @@ type Input<V extends keyof RequenceService.Version> = RequenceService.Version[V]
|
|
|
4
4
|
type Configuration<V extends keyof RequenceService.Version> = RequenceService.Version[V]['configuration'];
|
|
5
5
|
type OutputName<V extends keyof RequenceService.Version, K = keyof RequenceService.Version[V]['outputs']> = K extends '__default__' ? null : K;
|
|
6
6
|
type OutputValue<V extends keyof RequenceService.Version, O extends OutputName<V> | null> = RequenceService.Version[V]['outputs'][O extends null ? '__default__' : O];
|
|
7
|
-
interface ServiceContextHelper<V extends keyof RequenceService.Version> extends Omit<ContextHelper, 'getData' | 'getConfiguration' | 'toOutput'> {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
getConfiguration(): Configuration<V>;
|
|
7
|
+
interface ServiceContextHelper<V extends keyof RequenceService.Version> extends Omit<ContextHelper, 'input' | 'configuration' | 'getData' | 'getConfiguration' | 'toOutput'> {
|
|
8
|
+
input: Input<V>;
|
|
9
|
+
configuration: Configuration<V>;
|
|
12
10
|
toOutput<O extends OutputName<V>>(name: O, value: OutputValue<V, O>): '__output_value__';
|
|
13
11
|
}
|
|
14
12
|
type ReturnValue<V extends keyof RequenceService.Version> = ReturnType<ServiceContextHelper<V>['toOutput']> | OutputValue<V, null> | '__output_value__';
|
|
@@ -38,7 +36,7 @@ type MessageHandlerReturnValue<V> = V extends keyof RequenceService.Version ? Re
|
|
|
38
36
|
type MessageHandlerFunction<V> = (context: MessageHandlerContext<V>) => MaybePromise<MessageHandlerReturnValue<V> | void>;
|
|
39
37
|
type MessageHandlerGenerator<V> = (context: MessageHandlerContext<V>) => Generator<MessageHandlerReturnValue<V>, MessageHandlerReturnValue<V>, void>;
|
|
40
38
|
type MessageHandlerAsyncGenerator<V> = (context: MessageHandlerContext<V>) => AsyncGenerator<MessageHandlerReturnValue<V>, MessageHandlerReturnValue<V>, void>;
|
|
41
|
-
export type MessageHandler<V> = MessageHandlerAsyncGenerator<V> | MessageHandlerGenerator<V> | MessageHandlerFunction<V>;
|
|
39
|
+
export type MessageHandler<V> = V extends keyof RequenceService.Version ? RequenceService.Version[V]['mode'] extends 'linear' ? MessageHandlerFunction<V> : MessageHandlerAsyncGenerator<V> | MessageHandlerGenerator<V> | MessageHandlerFunction<V> : MessageHandlerAsyncGenerator<V> | MessageHandlerGenerator<V> | MessageHandlerFunction<V>;
|
|
42
40
|
export default function createConnection<V>({ url, version, prefetch, silent, connectionTimeout, connectionOptions, }: ConnectionOptions, messageHandler: MessageHandler<V>): ConnectionApi<V>;
|
|
43
41
|
export {};
|
|
44
42
|
//# sourceMappingURL=createAmqpConnection.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAmqpConnection.d.ts","sourceRoot":"","sources":["../../../../src/createAmqpConnection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createAmqpConnection.d.ts","sourceRoot":"","sources":["../../../../src/createAmqpConnection.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { NodeOptions, Nodes, ServiceNode } from '../../helpers/src/protocol/index.js';
|
|
1
|
+
import type { NodeOptions } from '../../helpers/src/protocol/index.js';
|
|
3
2
|
export type JSONValue = string | number | boolean | {
|
|
4
3
|
[x: string]: JSONValue;
|
|
5
4
|
} | Array<JSONValue> | null;
|
|
@@ -7,6 +6,8 @@ export declare class RetryError extends Error {
|
|
|
7
6
|
delay?: number | undefined;
|
|
8
7
|
constructor(delay?: number | undefined);
|
|
9
8
|
}
|
|
9
|
+
export declare class SkipError extends Error {
|
|
10
|
+
}
|
|
10
11
|
export declare class AbortError extends Error {
|
|
11
12
|
}
|
|
12
13
|
declare const OUTPUT_VALUE: unique symbol;
|
|
@@ -18,80 +19,18 @@ export declare function unwrapResult(result: unknown, options: Pick<NodeOptions,
|
|
|
18
19
|
value: unknown;
|
|
19
20
|
outputName: string | null;
|
|
20
21
|
}>;
|
|
21
|
-
type NodeResult = {
|
|
22
|
-
executionDate: null | Date;
|
|
23
|
-
data: any | null;
|
|
24
|
-
error: string | null;
|
|
25
|
-
};
|
|
26
22
|
export default function createContextHelper(options: {
|
|
27
|
-
serviceId: string;
|
|
28
23
|
taskId: string;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
state: Record<string, any>;
|
|
24
|
+
input: unknown;
|
|
25
|
+
configuration: unknown;
|
|
32
26
|
onLog: (method: 'log' | 'warn' | 'info' | 'error', data: any[]) => void;
|
|
33
27
|
onDefer: (reason?: string) => string;
|
|
34
|
-
onStateChange: (newObj: Record<string, unknown>) => void;
|
|
35
28
|
}): {
|
|
36
29
|
taskId: string;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
getData(): {
|
|
40
|
-
[x: string]: any;
|
|
41
|
-
};
|
|
30
|
+
input: any;
|
|
31
|
+
configuration: any;
|
|
42
32
|
toOutput(name: string | null, value: unknown): OutputValue;
|
|
43
33
|
defer: (reason?: string) => string;
|
|
44
|
-
getConfiguration(): unknown;
|
|
45
|
-
getNode(): ServiceNode & NodeResult;
|
|
46
|
-
getNodes(): (({
|
|
47
|
-
type: "entry";
|
|
48
|
-
id: "__entry__";
|
|
49
|
-
output: import("../../helpers/src/protocol").Output[];
|
|
50
|
-
inputSchema: import("json-schema").JSONSchema7;
|
|
51
|
-
metaSchema: import("json-schema").JSONSchema7;
|
|
52
|
-
meta?: Record<string, any> | undefined;
|
|
53
|
-
} | {
|
|
54
|
-
type: "service";
|
|
55
|
-
id: string;
|
|
56
|
-
name: string;
|
|
57
|
-
output: import("../../helpers/src/protocol").Output[];
|
|
58
|
-
inputSchema: ({
|
|
59
|
-
type: "object";
|
|
60
|
-
} & import("json-schema").JSONSchema7) | {
|
|
61
|
-
type: "null";
|
|
62
|
-
};
|
|
63
|
-
version: string;
|
|
64
|
-
configurationSchema: import("json-schema").JSONSchema7;
|
|
65
|
-
meta?: Record<string, any> | undefined;
|
|
66
|
-
configuration?: any;
|
|
67
|
-
alias?: string | undefined;
|
|
68
|
-
ttl?: number | undefined;
|
|
69
|
-
retry?: number | undefined;
|
|
70
|
-
retryDelay?: number | undefined;
|
|
71
|
-
} | {
|
|
72
|
-
type: "catch";
|
|
73
|
-
id: string;
|
|
74
|
-
output: import("../../helpers/src/protocol").Output[];
|
|
75
|
-
subject: string;
|
|
76
|
-
meta?: Record<string, any> | undefined;
|
|
77
|
-
} | {
|
|
78
|
-
type: "logic";
|
|
79
|
-
id: string;
|
|
80
|
-
output: import("../../helpers/src/protocol").Output[];
|
|
81
|
-
script: string;
|
|
82
|
-
concurrency: boolean;
|
|
83
|
-
language: "javascript" | "python" | "typescript";
|
|
84
|
-
maxExecutionTime: number;
|
|
85
|
-
meta?: Record<string, any> | undefined;
|
|
86
|
-
alias?: string | undefined;
|
|
87
|
-
} | {
|
|
88
|
-
type: "or";
|
|
89
|
-
id: string;
|
|
90
|
-
output: import("../../helpers/src/protocol").Output[];
|
|
91
|
-
meta?: Record<string, any> | undefined;
|
|
92
|
-
alias?: string | undefined;
|
|
93
|
-
}) & NodeResult)[];
|
|
94
|
-
state: Record<string, any>;
|
|
95
34
|
debug: {
|
|
96
35
|
log(...data: any[]): void;
|
|
97
36
|
info(...data: any[]): void;
|
|
@@ -100,6 +39,7 @@ export default function createContextHelper(options: {
|
|
|
100
39
|
};
|
|
101
40
|
retry(delay?: number): never;
|
|
102
41
|
abort(reason?: string): never;
|
|
42
|
+
skip(): never;
|
|
103
43
|
};
|
|
104
44
|
export type ContextHelper = ReturnType<typeof createContextHelper>;
|
|
105
45
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/helpers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAE7D,MAAM,MAAM,SAAS,GACjB,MAAM,GACN,MAAM,GACN,OAAO,GACP;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAC1B,KAAK,CAAC,SAAS,CAAC,GAChB,IAAI,CAAA;AAER,qBAAa,UAAW,SAAQ,KAAK;IAChB,KAAK,CAAC,EAAE,MAAM;gBAAd,KAAK,CAAC,EAAE,MAAM,YAAA;CAGlC;AAED,qBAAa,SAAU,SAAQ,KAAK;CAAG;AAEvC,qBAAa,UAAW,SAAQ,KAAK;CAAG;AAExC,QAAA,MAAM,YAAY,eAAyB,CAAA;AAE3C,KAAK,WAAW,GAAG;IACjB,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B,KAAK,EAAE,GAAG,CAAA;CACX,CAAA;AAMD,wBAAsB,YAAY,CAChC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAAC,EACrD,MAAM,EAAE,MAAM,IAAI;;;GAYnB;AAED,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,OAAO,EAAE;IACnD,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,OAAO,CAAA;IACd,aAAa,EAAE,OAAO,CAAA;IACtB,KAAK,EAAE,CAAC,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,KAAK,IAAI,CAAA;IACvE,OAAO,EAAE,CAAC,MAAM,CAAC,EAAE,MAAM,KAAK,MAAM,CAAA;CACrC;;;;mBAMkB,MAAM,GAAG,IAAI,SAAS,OAAO,GAAG,WAAW;qBAPzC,MAAM,KAAK,MAAM;;qBAgBnB,GAAG,EAAE;sBAGJ,GAAG,EAAE;sBAGL,GAAG,EAAE;uBAGJ,GAAG,EAAE;;kBAIR,MAAM;mBAGL,MAAM;;EAOxB;AAED,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@requence/service",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.19",
|
|
5
5
|
"bin": {
|
|
6
6
|
"requence-service": "build/cli.js"
|
|
7
7
|
},
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"ajv": "^8.17.1",
|
|
15
15
|
"amqp-connection-manager": "^4.1.14",
|
|
16
|
-
"amqplib": "^0.10.
|
|
16
|
+
"amqplib": "^0.10.8",
|
|
17
17
|
"chalk": "^5.4.1",
|
|
18
|
-
"mime-types": "^
|
|
18
|
+
"mime-types": "^3.0.1",
|
|
19
19
|
"yargs": "^17.7.2",
|
|
20
|
-
"zod": "^3.
|
|
20
|
+
"zod": "^3.25.56"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@requence/helpers": "workspace:*",
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import type { Nodes } from '../protocol/nodes.ts';
|
|
3
|
-
export declare const contextSchema: z.ZodObject<{
|
|
4
|
-
input: z.ZodAny;
|
|
5
|
-
meta: z.ZodAny;
|
|
6
|
-
tenant: z.ZodObject<{
|
|
7
|
-
name: z.ZodString;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
name: string;
|
|
10
|
-
}, {
|
|
11
|
-
name: string;
|
|
12
|
-
}>;
|
|
13
|
-
data: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
14
|
-
errors: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
15
|
-
dates: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
errors: Record<string, string>;
|
|
18
|
-
data: Record<string, any>;
|
|
19
|
-
tenant: {
|
|
20
|
-
name: string;
|
|
21
|
-
};
|
|
22
|
-
dates: Record<string, string>;
|
|
23
|
-
meta?: any;
|
|
24
|
-
input?: any;
|
|
25
|
-
}, {
|
|
26
|
-
errors: Record<string, string>;
|
|
27
|
-
data: Record<string, any>;
|
|
28
|
-
tenant: {
|
|
29
|
-
name: string;
|
|
30
|
-
};
|
|
31
|
-
dates: Record<string, string>;
|
|
32
|
-
meta?: any;
|
|
33
|
-
input?: any;
|
|
34
|
-
}>;
|
|
35
|
-
export type Context = z.infer<typeof contextSchema>;
|
|
36
|
-
declare const internalKey: "internal";
|
|
37
|
-
export declare function getInternalContext(contextHelper: ContextHelper): {
|
|
38
|
-
results: Map<string, {
|
|
39
|
-
node: {
|
|
40
|
-
type: "entry";
|
|
41
|
-
id: "__entry__";
|
|
42
|
-
output: import("../protocol/node.ts").Output[];
|
|
43
|
-
inputSchema: import("json-schema").JSONSchema7;
|
|
44
|
-
metaSchema: import("json-schema").JSONSchema7;
|
|
45
|
-
meta?: Record<string, any> | undefined;
|
|
46
|
-
} | {
|
|
47
|
-
type: "service";
|
|
48
|
-
id: string;
|
|
49
|
-
name: string;
|
|
50
|
-
output: import("../protocol/node.ts").Output[];
|
|
51
|
-
inputSchema: ({
|
|
52
|
-
type: "object";
|
|
53
|
-
} & import("json-schema").JSONSchema7) | {
|
|
54
|
-
type: "null";
|
|
55
|
-
};
|
|
56
|
-
version: string;
|
|
57
|
-
configurationSchema: import("json-schema").JSONSchema7;
|
|
58
|
-
meta?: Record<string, any> | undefined;
|
|
59
|
-
configuration?: any;
|
|
60
|
-
alias?: string | undefined;
|
|
61
|
-
ttl?: number | undefined;
|
|
62
|
-
retry?: number | undefined;
|
|
63
|
-
retryDelay?: number | undefined;
|
|
64
|
-
} | {
|
|
65
|
-
type: "catch";
|
|
66
|
-
id: string;
|
|
67
|
-
output: import("../protocol/node.ts").Output[];
|
|
68
|
-
subject: string;
|
|
69
|
-
meta?: Record<string, any> | undefined;
|
|
70
|
-
} | {
|
|
71
|
-
type: "logic";
|
|
72
|
-
id: string;
|
|
73
|
-
output: import("../protocol/node.ts").Output[];
|
|
74
|
-
script: string;
|
|
75
|
-
concurrency: boolean;
|
|
76
|
-
language: "javascript" | "python" | "typescript";
|
|
77
|
-
maxExecutionTime: number;
|
|
78
|
-
meta?: Record<string, any> | undefined;
|
|
79
|
-
alias?: string | undefined;
|
|
80
|
-
} | {
|
|
81
|
-
type: "or";
|
|
82
|
-
id: string;
|
|
83
|
-
output: import("../protocol/node.ts").Output[];
|
|
84
|
-
meta?: Record<string, any> | undefined;
|
|
85
|
-
alias?: string | undefined;
|
|
86
|
-
};
|
|
87
|
-
executionDate: Date | null;
|
|
88
|
-
data: any;
|
|
89
|
-
error: string;
|
|
90
|
-
}>;
|
|
91
|
-
};
|
|
92
|
-
export declare function createContextHelper(context: Context, nodes: Nodes): {
|
|
93
|
-
internal: {
|
|
94
|
-
results: Map<string, {
|
|
95
|
-
node: {
|
|
96
|
-
type: "entry";
|
|
97
|
-
id: "__entry__";
|
|
98
|
-
output: import("../protocol/node.ts").Output[];
|
|
99
|
-
inputSchema: import("json-schema").JSONSchema7;
|
|
100
|
-
metaSchema: import("json-schema").JSONSchema7;
|
|
101
|
-
meta?: Record<string, any> | undefined;
|
|
102
|
-
} | {
|
|
103
|
-
type: "service";
|
|
104
|
-
id: string;
|
|
105
|
-
name: string;
|
|
106
|
-
output: import("../protocol/node.ts").Output[];
|
|
107
|
-
inputSchema: ({
|
|
108
|
-
type: "object";
|
|
109
|
-
} & import("json-schema").JSONSchema7) | {
|
|
110
|
-
type: "null";
|
|
111
|
-
};
|
|
112
|
-
version: string;
|
|
113
|
-
configurationSchema: import("json-schema").JSONSchema7;
|
|
114
|
-
meta?: Record<string, any> | undefined;
|
|
115
|
-
configuration?: any;
|
|
116
|
-
alias?: string | undefined;
|
|
117
|
-
ttl?: number | undefined;
|
|
118
|
-
retry?: number | undefined;
|
|
119
|
-
retryDelay?: number | undefined;
|
|
120
|
-
} | {
|
|
121
|
-
type: "catch";
|
|
122
|
-
id: string;
|
|
123
|
-
output: import("../protocol/node.ts").Output[];
|
|
124
|
-
subject: string;
|
|
125
|
-
meta?: Record<string, any> | undefined;
|
|
126
|
-
} | {
|
|
127
|
-
type: "logic";
|
|
128
|
-
id: string;
|
|
129
|
-
output: import("../protocol/node.ts").Output[];
|
|
130
|
-
script: string;
|
|
131
|
-
concurrency: boolean;
|
|
132
|
-
language: "javascript" | "python" | "typescript";
|
|
133
|
-
maxExecutionTime: number;
|
|
134
|
-
meta?: Record<string, any> | undefined;
|
|
135
|
-
alias?: string | undefined;
|
|
136
|
-
} | {
|
|
137
|
-
type: "or";
|
|
138
|
-
id: string;
|
|
139
|
-
output: import("../protocol/node.ts").Output[];
|
|
140
|
-
meta?: Record<string, any> | undefined;
|
|
141
|
-
alias?: string | undefined;
|
|
142
|
-
};
|
|
143
|
-
executionDate: Date | null;
|
|
144
|
-
data: any;
|
|
145
|
-
error: string;
|
|
146
|
-
}>;
|
|
147
|
-
};
|
|
148
|
-
getInput(): unknown;
|
|
149
|
-
getMeta(): unknown;
|
|
150
|
-
getData(alias?: string): any;
|
|
151
|
-
getError(alias: string): string | null;
|
|
152
|
-
};
|
|
153
|
-
type InternalContextHelper = ReturnType<typeof createContextHelper>;
|
|
154
|
-
export type ContextHelper = Omit<InternalContextHelper, typeof internalKey>;
|
|
155
|
-
export {};
|
|
156
|
-
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/context/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAGjD,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOxB,CAAA;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAA;AAMnD,QAAA,MAAM,WAAW,EAAwC,UAAU,CAAA;AAEnE,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE9D;AAgBD,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA8ClD,OAAO;eAGR,OAAO;oBAGF,MAAM;oBAuCN,MAAM;EAWzB;AAED,KAAK,qBAAqB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAA;AACnE,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,qBAAqB,EAAE,OAAO,WAAW,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { EntryNode, Node, Nodes } from './nodes.ts';
|
|
2
|
-
import type { NamedString } from './types.d.ts';
|
|
3
|
-
export interface NodeMaps {
|
|
4
|
-
getNode(node: '__entry__'): EntryNode;
|
|
5
|
-
getNode(nodeId: string): Node | undefined;
|
|
6
|
-
getInputs(node: NamedString<'exit'> | Node): Array<Node>;
|
|
7
|
-
lookupNode(nameOrAlias: string): Node | undefined;
|
|
8
|
-
}
|
|
9
|
-
export default function createNodeMaps(nodes: Nodes): NodeMaps;
|
|
10
|
-
//# sourceMappingURL=createNodeMaps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createNodeMaps.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/createNodeMaps.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE/C,MAAM,WAAW,QAAQ;IACvB,OAAO,CAAC,IAAI,EAAE,WAAW,GAAG,SAAS,CAAA;IACrC,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;IACzC,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,CAAA;IACxD,UAAU,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAA;CAClD;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,QAAQ,CA4C7D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getCycles.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/getCycles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAGnD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,cAuB7D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getNodeOutputs.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/getNodeOutputs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE/C,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,IAAI,EAAE,IAAI,EACV,UAAU,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,GAClC,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,CAiB5B"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { NodeMaps } from './createNodeMaps.ts';
|
|
2
|
-
import type { Node } from './nodes.ts';
|
|
3
|
-
type PathSegment = '__entry__' | '__exit__' | (string & {});
|
|
4
|
-
interface GetPossiblePathsOptions extends Pick<NodeMaps, 'getInputs' | 'getNode'> {
|
|
5
|
-
onMissingInputs?: (node: Node, path: Array<PathSegment>) => void;
|
|
6
|
-
}
|
|
7
|
-
export default function getPossiblePaths({ getInputs, getNode, onMissingInputs, }: GetPossiblePathsOptions): PathSegment[][];
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=getPossiblePaths.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getPossiblePaths.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/getPossiblePaths.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AAEtC,KAAK,WAAW,GAAG,WAAW,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAE3D,UAAU,uBACR,SAAQ,IAAI,CAAC,QAAQ,EAAE,WAAW,GAAG,SAAS,CAAC;IAC/C,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,KAAK,IAAI,CAAA;CACjE;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,SAAS,EACT,OAAO,EACP,eAAe,GAChB,EAAE,uBAAuB,mBAwCzB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"identifyNode.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/identifyNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAE/C,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,MAAM,EAAE,WAAW,CAAC,WAAW,GAAG,UAAU,CAAC,EAC7C,OAAO,EAAE,QAAQ,CAAC,SAAS,CAAC,GAC3B,MAAM,CAoCR"}
|