@requence/service 1.0.0-alpha.5 → 1.0.0-alpha.51
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 +276 -0
- package/build/{chunk-0x9092n4.js → chunk-6w7td62p.js} +5 -44
- package/build/chunk-6w7td62p.js.map +10 -0
- package/build/cli.js +123 -25
- package/build/cli.js.map +3 -3
- package/build/index.js +979 -840
- package/build/index.js.map +18 -16
- package/build/types/helpers/src/files/RequenceFile.d.ts +40 -0
- package/build/types/helpers/src/files/RequenceFile.d.ts.map +1 -0
- package/build/types/helpers/src/files/RequenceStream.d.ts +32 -0
- package/build/types/helpers/src/files/RequenceStream.d.ts.map +1 -0
- 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 +7 -0
- package/build/types/helpers/src/files/index.d.ts.map +1 -0
- package/build/types/helpers/src/files/isValidMimeType.d.ts +5 -0
- package/build/types/helpers/src/files/isValidMimeType.d.ts.map +1 -0
- package/build/types/helpers/src/files/mapOutput.d.ts +10 -0
- package/build/types/helpers/src/files/mapOutput.d.ts.map +1 -0
- 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/files/types.d.ts +4 -0
- package/build/types/helpers/src/files/types.d.ts.map +1 -0
- package/build/types/helpers/src/index.d.ts +12 -6
- package/build/types/helpers/src/index.d.ts.map +1 -1
- package/build/types/helpers/src/jsonschema/mapSchema.d.ts +20 -0
- package/build/types/helpers/src/jsonschema/mapSchema.d.ts.map +1 -0
- package/build/types/helpers/src/jsonschema/types.d.ts +13 -0
- package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -0
- package/build/types/helpers/src/jsonschema/validate.d.ts +32 -0
- package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -0
- package/build/types/helpers/src/jsonschema/zod.d.ts +17 -0
- package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/NodeTree.d.ts +496 -0
- package/build/types/helpers/src/protocol/NodeTree.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/command.d.ts +481 -0
- package/build/types/helpers/src/protocol/command.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/helpers.d.ts +7 -0
- package/build/types/helpers/src/protocol/helpers.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/index.d.ts +8 -0
- package/build/types/helpers/src/protocol/index.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/nodeType.d.ts +171 -0
- package/build/types/helpers/src/protocol/nodeType.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/taskOptions.d.ts +20 -0
- package/build/types/helpers/src/protocol/taskOptions.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/templateNodeTypes.d.ts +267 -0
- package/build/types/helpers/src/protocol/templateNodeTypes.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/treeNodes.d.ts +836 -0
- package/build/types/helpers/src/protocol/treeNodes.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/update.d.ts +383 -0
- package/build/types/helpers/src/protocol/update.d.ts.map +1 -0
- package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts +3 -0
- package/build/types/helpers/src/utils/callbackToAsyncIterator.d.ts.map +1 -0
- package/build/types/helpers/src/utils/clone.d.ts +3 -0
- package/build/types/helpers/src/utils/clone.d.ts.map +1 -0
- package/build/types/helpers/src/utils/createObjectProxy.d.ts +2 -0
- package/build/types/helpers/src/utils/createObjectProxy.d.ts.map +1 -0
- package/build/types/helpers/src/utils/debounce.d.ts +4 -0
- package/build/types/helpers/src/utils/debounce.d.ts.map +1 -0
- package/build/types/helpers/src/utils/guards.d.ts +3 -0
- package/build/types/helpers/src/utils/guards.d.ts.map +1 -0
- package/build/types/helpers/src/utils/mapData.d.ts +18 -0
- package/build/types/helpers/src/utils/mapData.d.ts.map +1 -0
- package/build/types/helpers/src/{utils.d.ts → utils/matchSchema.d.ts} +2 -2
- package/build/types/helpers/src/utils/matchSchema.d.ts.map +1 -0
- package/build/types/helpers/src/utils/obfuscate.d.ts.map +1 -0
- package/build/types/helpers/src/utils/obj.d.ts +4 -0
- package/build/types/helpers/src/utils/obj.d.ts.map +1 -0
- package/build/types/helpers/src/utils/requenceCallback.d.ts +17 -0
- package/build/types/helpers/src/utils/requenceCallback.d.ts.map +1 -0
- package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts +8 -0
- package/build/types/helpers/src/utils/resolveRequenceTypes.d.ts.map +1 -0
- package/build/types/helpers/src/utils/types.d.ts +7 -0
- package/build/types/helpers/src/utils/types.d.ts.map +1 -0
- package/build/types/service/src/createAmqpConnection.d.ts +29 -27
- package/build/types/service/src/createAmqpConnection.d.ts.map +1 -1
- package/build/types/service/src/errors.d.ts +3 -0
- package/build/types/service/src/errors.d.ts.map +1 -0
- package/build/types/service/src/helpers.d.ts +72 -90
- package/build/types/service/src/helpers.d.ts.map +1 -1
- package/build/types/service/src/index.d.ts +11 -4
- package/build/types/service/src/index.d.ts.map +1 -1
- package/build/types/service/src/macro.d.ts +2 -0
- package/build/types/service/src/macro.d.ts.map +1 -0
- package/build/types/service/src/mapInput.d.ts +2 -0
- package/build/types/service/src/mapInput.d.ts.map +1 -0
- package/build/types/service/src/utils.d.ts +6 -0
- package/build/types/service/src/utils.d.ts.map +1 -0
- package/package.json +10 -7
- package/build/chunk-0x9092n4.js.map +0 -12
- package/build/types/helpers/src/clone.d.ts +0 -3
- package/build/types/helpers/src/clone.d.ts.map +0 -1
- package/build/types/helpers/src/createObjectProxy.d.ts +0 -2
- package/build/types/helpers/src/createObjectProxy.d.ts.map +0 -1
- package/build/types/helpers/src/createRemotePromise.d.ts +0 -7
- package/build/types/helpers/src/createRemotePromise.d.ts.map +0 -1
- package/build/types/helpers/src/obfuscate.d.ts.map +0 -1
- package/build/types/helpers/src/utils.d.ts.map +0 -1
- /package/build/types/helpers/src/{obfuscate.d.ts → utils/obfuscate.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapOutput.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/files/mapOutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AA2E7D,wBAAsB,SAAS,CAAC,MAAM,EAAE;IACtC,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,WAAW,CAAC,CAAA;IACrD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,MAAM,CAAC,EAAE,WAAW,CAAA;CACrB,oBAwFA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
declare const streamObjectSchema: z.ZodObject<{
|
|
3
|
+
mime: z.ZodString;
|
|
4
|
+
url: z.ZodString;
|
|
5
|
+
__REQUENCE_type: z.ZodLiteral<"RequenceStream">;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type StreamObject = z.infer<typeof streamObjectSchema>;
|
|
8
|
+
export declare function isStreamObject(data: unknown): data is StreamObject;
|
|
9
|
+
export declare function toStreamObject(streamInfo: {
|
|
10
|
+
mime: string;
|
|
11
|
+
url: string;
|
|
12
|
+
}): StreamObject;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=streamObject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"streamObject.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/files/streamObject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B,QAAA,MAAM,kBAAkB;;;;iBAItB,CAAA;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAE7D,wBAAgB,cAAc,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,YAAY,CAElE;AAED,wBAAgB,cAAc,CAAC,UAAU,EAAE;IACzC,IAAI,EAAE,MAAM,CAAA;IACZ,GAAG,EAAE,MAAM,CAAA;CACZ,GAAG,YAAY,CAKf"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type MainMimeType<T extends string> = T extends `${infer V}/${string}` ? V extends '*' ? any : V : any;
|
|
2
|
+
export type SubMimeType<T extends string> = T extends `${string}/${infer V}` ? V extends '*' ? any : V : any;
|
|
3
|
+
export type ValidMimeType<T extends `${string}/${string}`> = T extends `${infer A}/${infer B}` ? A extends '*' | '' | '/' ? never : B extends '*' | '' | '/' ? never : T : never;
|
|
4
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/files/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,EAAE,GACzE,CAAC,SAAS,GAAG,GACX,GAAG,GACH,CAAC,GACH,GAAG,CAAA;AAEP,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,GAAG,MAAM,IAAI,MAAM,CAAC,EAAE,GACxE,CAAC,SAAS,GAAG,GACX,GAAG,GACH,CAAC,GACH,GAAG,CAAA;AAEP,MAAM,MAAM,aAAa,CAAC,CAAC,SAAS,GAAG,MAAM,IAAI,MAAM,EAAE,IACvD,CAAC,SAAS,GAAG,MAAM,CAAC,IAAI,MAAM,CAAC,EAAE,GAC7B,CAAC,SAAS,GAAG,GAAG,EAAE,GAAG,GAAG,GACtB,KAAK,GACL,CAAC,SAAS,GAAG,GAAG,EAAE,GAAG,GAAG,GACtB,KAAK,GACL,CAAC,GACL,KAAK,CAAA"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
export * from './utils.ts';
|
|
2
|
-
export * from './obfuscate.ts';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
1
|
+
export * from './utils/matchSchema.ts';
|
|
2
|
+
export * from './utils/obfuscate.ts';
|
|
3
|
+
export * from './utils/clone.ts';
|
|
4
|
+
export * from './utils/createObjectProxy.ts';
|
|
5
|
+
export * from './utils/callbackToAsyncIterator.ts';
|
|
6
|
+
export * from './utils/mapData.ts';
|
|
7
|
+
export * from './utils/guards.ts';
|
|
8
|
+
export * from './utils/resolveRequenceTypes.ts';
|
|
9
|
+
export * from './utils/requenceCallback.ts';
|
|
10
|
+
export * from './utils/types.ts';
|
|
11
|
+
export * from './utils/debounce.ts';
|
|
12
|
+
export * from './utils/obj.ts';
|
|
7
13
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../helpers/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../helpers/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,oCAAoC,CAAA;AAClD,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iCAAiC,CAAA;AAC/C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,kBAAkB,CAAA;AAChC,cAAc,qBAAqB,CAAA;AACnC,cAAc,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { JSONSchema7Definition } from 'json-schema';
|
|
2
|
+
import type { JSONSchema7 } from './types.ts';
|
|
3
|
+
interface Visitor {
|
|
4
|
+
String?: (schema: JSONSchema7) => JSONSchema7 | void;
|
|
5
|
+
Integer?: (schema: JSONSchema7) => JSONSchema7 | void;
|
|
6
|
+
Boolean?: (schema: JSONSchema7) => JSONSchema7 | void;
|
|
7
|
+
Null?: (schema: JSONSchema7) => JSONSchema7 | void;
|
|
8
|
+
Number?: (schema: JSONSchema7) => JSONSchema7 | void;
|
|
9
|
+
Array?: (schema: JSONSchema7) => JSONSchema7 | void;
|
|
10
|
+
Object?: (schema: JSONSchema7) => JSONSchema7 | void;
|
|
11
|
+
AnyOf?: (schema: JSONSchema7) => JSONSchema7 | void;
|
|
12
|
+
AllOf?: (schema: JSONSchema7) => JSONSchema7 | void;
|
|
13
|
+
OneOf?: (schema: JSONSchema7) => JSONSchema7 | void;
|
|
14
|
+
$ref?: (schema: JSONSchema7) => JSONSchema7 | void;
|
|
15
|
+
Enum?: (schema: JSONSchema7) => JSONSchema7 | void;
|
|
16
|
+
RequenceType?: (schema: JSONSchema7) => JSONSchema7 | void;
|
|
17
|
+
}
|
|
18
|
+
export declare function mapSchema<T extends JSONSchema7Definition>(rawSchema: T, visitor: Visitor, parentSchema?: JSONSchema7): T;
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=mapSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mapSchema.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/jsonschema/mapSchema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAExD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,UAAU,OAAO;IACf,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAA;IACpD,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAA;IACrD,OAAO,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAA;IACrD,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAA;IAClD,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAA;IACpD,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAA;IACnD,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAA;IACpD,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAA;IACnD,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAA;IACnD,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAA;IACnD,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAA;IAClD,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAA;IAClD,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAA;CAC3D;AAMD,wBAAgB,SAAS,CAAC,CAAC,SAAS,qBAAqB,EACvD,SAAS,EAAE,CAAC,EACZ,OAAO,EAAE,OAAO,EAChB,YAAY,CAAC,EAAE,WAAW,GACzB,CAAC,CAmHH"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { JSONSchema7, JSONSchema7TypeName } from 'json-schema';
|
|
2
|
+
declare module 'json-schema' {
|
|
3
|
+
interface JSONSchema7 {
|
|
4
|
+
requenceType?: 'file' | 'stream' | 'callback';
|
|
5
|
+
arg?: JSONSchema7;
|
|
6
|
+
maxByteLength?: number;
|
|
7
|
+
instanceOf?: string;
|
|
8
|
+
accept?: string;
|
|
9
|
+
requence?: Record<string, JSONSchema7Definition>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export type { JSONSchema7, JSONSchema7TypeName };
|
|
13
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/jsonschema/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEnE,OAAO,QAAQ,aAAa,CAAC;IAC3B,UAAU,WAAW;QACnB,YAAY,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAA;QAC7C,GAAG,CAAC,EAAE,WAAW,CAAA;QACjB,aAAa,CAAC,EAAE,MAAM,CAAA;QACtB,UAAU,CAAC,EAAE,MAAM,CAAA;QACnB,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAA;KACjD;CACF;AAED,YAAY,EAAE,WAAW,EAAE,mBAAmB,EAAE,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Ajv as BaseAjv, type KeywordDefinition, type Options } from 'ajv';
|
|
2
|
+
import type { JSONSchema7 } from 'json-schema';
|
|
3
|
+
export declare class ValidationError extends Error {
|
|
4
|
+
readonly property?: string | undefined;
|
|
5
|
+
constructor(message: string, property?: string | undefined);
|
|
6
|
+
}
|
|
7
|
+
export declare const acceptKeyword: KeywordDefinition;
|
|
8
|
+
export declare const acceptKeywordEnforced: KeywordDefinition;
|
|
9
|
+
export declare const requenceTypeKeywords: KeywordDefinition;
|
|
10
|
+
export declare const instanceOfKeyword: KeywordDefinition;
|
|
11
|
+
export declare const maxByteLengthKeyword: KeywordDefinition;
|
|
12
|
+
export declare const maxByteLengthKeywordEnforced: KeywordDefinition;
|
|
13
|
+
export declare class Ajv extends BaseAjv {
|
|
14
|
+
constructor(options?: Options & {
|
|
15
|
+
enforeFileKeywords?: boolean;
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
export declare function validate<T extends JSONSchema7>(options: {
|
|
19
|
+
schema: T;
|
|
20
|
+
schemas?: Record<string, JSONSchema7>;
|
|
21
|
+
value: unknown;
|
|
22
|
+
property?: string;
|
|
23
|
+
allowAdditionalProperties?: boolean;
|
|
24
|
+
enforeFileKeywords?: boolean;
|
|
25
|
+
coerceTypes?: boolean;
|
|
26
|
+
removeAdditional?: boolean;
|
|
27
|
+
}): {
|
|
28
|
+
[x: string]: {};
|
|
29
|
+
} & {
|
|
30
|
+
[x: string]: {};
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/jsonschema/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,IAAI,OAAO,EAEd,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACb,MAAM,KAAK,CAAA;AAEZ,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAO9C,qBAAa,eAAgB,SAAQ,KAAK;aAGtB,QAAQ,CAAC,EAAE,MAAM;gBADjC,OAAO,EAAE,MAAM,EACC,QAAQ,CAAC,EAAE,MAAM,YAAA;CAIpC;AAED,eAAO,MAAM,aAAa,EAAE,iBAQ3B,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,iBAkBnC,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,iBAKlC,CAAA;AAED,eAAO,MAAM,iBAAiB,EAAE,iBAkB/B,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,iBAOlC,CAAA;AAED,eAAO,MAAM,4BAA4B,EAAE,iBAmB1C,CAAA;AAMD,qBAAa,GAAI,SAAQ,OAAO;gBAClB,OAAO,CAAC,EAAE,OAAO,GAAG;QAAE,kBAAkB,CAAC,EAAE,OAAO,CAAA;KAAE;CAiBjE;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS,WAAW,EAAE,OAAO,EAAE;IACvD,MAAM,EAAE,CAAC,CAAA;IACT,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAA;IACrC,KAAK,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,yBAAyB,CAAC,EAAE,OAAO,CAAA;IACnC,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;;;;EAqEA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import type { JSONSchema7 } from './types.ts';
|
|
3
|
+
export declare const jsonSchema7Schema: z.ZodCustom<JSONSchema7, JSONSchema7>;
|
|
4
|
+
export declare const jsonSchema7ObjectSchema: z.ZodIntersection<z.ZodObject<{
|
|
5
|
+
type: z.ZodLiteral<"object">;
|
|
6
|
+
}, z.core.$strip>, z.ZodCustom<JSONSchema7, JSONSchema7>>;
|
|
7
|
+
export declare const jsonSchema7NullSchema: z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<"null">;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export declare const jsonSchema7RefSchema: z.ZodIntersection<z.ZodObject<{
|
|
11
|
+
$ref: z.ZodString;
|
|
12
|
+
}, z.core.$strip>, z.ZodCustom<JSONSchema7, JSONSchema7>>;
|
|
13
|
+
export type JSONSchema7Object = z.output<typeof jsonSchema7ObjectSchema>;
|
|
14
|
+
export type JSONSchema7Null = z.output<typeof jsonSchema7NullSchema>;
|
|
15
|
+
export type JSONSchema7Ref = z.output<typeof jsonSchema7RefSchema>;
|
|
16
|
+
export type ExtendedJSONSchema7Object = JSONSchema7Object | JSONSchema7Null | JSONSchema7Object;
|
|
17
|
+
//# sourceMappingURL=zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zod.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/jsonschema/zod.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAG1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAG7C,eAAO,MAAM,iBAAiB,uCAuC5B,CAAA;AAEF,eAAO,MAAM,uBAAuB;;yDAIX,CAAA;AAEzB,eAAO,MAAM,qBAAqB;;iBAEhC,CAAA;AAEF,eAAO,MAAM,oBAAoB;;yDAIR,CAAA;AAEzB,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAA;AACxE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAA;AACpE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAElE,MAAM,MAAM,yBAAyB,GACjC,iBAAiB,GACjB,eAAe,GACf,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
import type { Edge, Node } from './nodeType.ts';
|
|
2
|
+
export type OutputName = string | null;
|
|
3
|
+
type ExtendedEdge = Edge & {
|
|
4
|
+
traversed: number;
|
|
5
|
+
data?: string;
|
|
6
|
+
};
|
|
7
|
+
type Cycle = {
|
|
8
|
+
node: Node;
|
|
9
|
+
name: OutputName;
|
|
10
|
+
}[];
|
|
11
|
+
type CriticalGroup = {
|
|
12
|
+
nodeId: string;
|
|
13
|
+
name: OutputName;
|
|
14
|
+
}[];
|
|
15
|
+
type DataSet = {
|
|
16
|
+
data: unknown;
|
|
17
|
+
overwrite: boolean;
|
|
18
|
+
time: number;
|
|
19
|
+
};
|
|
20
|
+
interface NodeTreeOptions {
|
|
21
|
+
nodes: Node[];
|
|
22
|
+
edges: Edge[] | ExtendedEdge[];
|
|
23
|
+
}
|
|
24
|
+
export declare class NodeTree {
|
|
25
|
+
private nodes;
|
|
26
|
+
private edges;
|
|
27
|
+
private data;
|
|
28
|
+
private overriddenNodeData;
|
|
29
|
+
readonly cycles: {
|
|
30
|
+
node: Node;
|
|
31
|
+
name: OutputName;
|
|
32
|
+
}[][];
|
|
33
|
+
readonly entryNode: Extract<Node, {
|
|
34
|
+
type: 'entry';
|
|
35
|
+
}>;
|
|
36
|
+
constructor({ nodes, edges }: NodeTreeOptions, _data?: Map<string, DataSet>, _cycles?: Cycle[] | null, _overriddenNodeData?: Map<string, Record<string, unknown>>);
|
|
37
|
+
pack(): readonly [({
|
|
38
|
+
id: string;
|
|
39
|
+
type: "entry";
|
|
40
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
41
|
+
alias?: string | undefined;
|
|
42
|
+
} | {
|
|
43
|
+
id: string;
|
|
44
|
+
type: "service";
|
|
45
|
+
inputSchema: ({
|
|
46
|
+
type: "object";
|
|
47
|
+
} & import("json-schema").JSONSchema7) | {
|
|
48
|
+
type: "null";
|
|
49
|
+
} | ({
|
|
50
|
+
$ref: string;
|
|
51
|
+
} & import("json-schema").JSONSchema7);
|
|
52
|
+
name: string;
|
|
53
|
+
version: string;
|
|
54
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
55
|
+
outputs: {
|
|
56
|
+
name: string | null;
|
|
57
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
58
|
+
}[];
|
|
59
|
+
alias?: string | undefined;
|
|
60
|
+
configuration?: any;
|
|
61
|
+
ttl?: number | undefined;
|
|
62
|
+
retry?: number | undefined;
|
|
63
|
+
retryDelay?: number | undefined;
|
|
64
|
+
} | {
|
|
65
|
+
id: string;
|
|
66
|
+
type: "logic";
|
|
67
|
+
script: string;
|
|
68
|
+
concurrency: boolean;
|
|
69
|
+
language: "javascript" | "python" | "typescript";
|
|
70
|
+
maxExecutionTime: number;
|
|
71
|
+
outputs: {
|
|
72
|
+
name: string | null;
|
|
73
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
74
|
+
}[];
|
|
75
|
+
alias?: string | undefined;
|
|
76
|
+
} | {
|
|
77
|
+
id: string;
|
|
78
|
+
type: "or";
|
|
79
|
+
alias?: string | undefined;
|
|
80
|
+
} | {
|
|
81
|
+
id: string;
|
|
82
|
+
type: "reference";
|
|
83
|
+
reference: string;
|
|
84
|
+
inputSchema: ({
|
|
85
|
+
type: "object";
|
|
86
|
+
} & import("json-schema").JSONSchema7) | {
|
|
87
|
+
type: "null";
|
|
88
|
+
} | ({
|
|
89
|
+
$ref: string;
|
|
90
|
+
} & import("json-schema").JSONSchema7);
|
|
91
|
+
outputs: {
|
|
92
|
+
name: string | null;
|
|
93
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
94
|
+
}[];
|
|
95
|
+
alias?: string | undefined;
|
|
96
|
+
} | {
|
|
97
|
+
id: string;
|
|
98
|
+
type: "exit";
|
|
99
|
+
alias?: string | undefined;
|
|
100
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
101
|
+
} | {
|
|
102
|
+
id: string;
|
|
103
|
+
type: "comment";
|
|
104
|
+
text: string;
|
|
105
|
+
alias?: string | undefined;
|
|
106
|
+
})[], ExtendedEdge[], Map<string, DataSet>, {
|
|
107
|
+
node: Node;
|
|
108
|
+
name: OutputName;
|
|
109
|
+
}[][], Map<string, Record<string, unknown>>];
|
|
110
|
+
static unpack([nodes, edges, _data, _cycles, _overriddenNodeData]: ReturnType<typeof NodeTree.prototype.pack>): NodeTree;
|
|
111
|
+
static get ERROR(): string;
|
|
112
|
+
getCriticalGroups(nodeId: string, allowMultipleOutputs?: boolean): CriticalGroup[];
|
|
113
|
+
getNodes(condition?: (node: Node) => boolean): ({
|
|
114
|
+
id: string;
|
|
115
|
+
type: "entry";
|
|
116
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
117
|
+
alias?: string | undefined;
|
|
118
|
+
} | {
|
|
119
|
+
id: string;
|
|
120
|
+
type: "service";
|
|
121
|
+
inputSchema: ({
|
|
122
|
+
type: "object";
|
|
123
|
+
} & import("json-schema").JSONSchema7) | {
|
|
124
|
+
type: "null";
|
|
125
|
+
} | ({
|
|
126
|
+
$ref: string;
|
|
127
|
+
} & import("json-schema").JSONSchema7);
|
|
128
|
+
name: string;
|
|
129
|
+
version: string;
|
|
130
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
131
|
+
outputs: {
|
|
132
|
+
name: string | null;
|
|
133
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
134
|
+
}[];
|
|
135
|
+
alias?: string | undefined;
|
|
136
|
+
configuration?: any;
|
|
137
|
+
ttl?: number | undefined;
|
|
138
|
+
retry?: number | undefined;
|
|
139
|
+
retryDelay?: number | undefined;
|
|
140
|
+
} | {
|
|
141
|
+
id: string;
|
|
142
|
+
type: "logic";
|
|
143
|
+
script: string;
|
|
144
|
+
concurrency: boolean;
|
|
145
|
+
language: "javascript" | "python" | "typescript";
|
|
146
|
+
maxExecutionTime: number;
|
|
147
|
+
outputs: {
|
|
148
|
+
name: string | null;
|
|
149
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
150
|
+
}[];
|
|
151
|
+
alias?: string | undefined;
|
|
152
|
+
} | {
|
|
153
|
+
id: string;
|
|
154
|
+
type: "or";
|
|
155
|
+
alias?: string | undefined;
|
|
156
|
+
} | {
|
|
157
|
+
id: string;
|
|
158
|
+
type: "reference";
|
|
159
|
+
reference: string;
|
|
160
|
+
inputSchema: ({
|
|
161
|
+
type: "object";
|
|
162
|
+
} & import("json-schema").JSONSchema7) | {
|
|
163
|
+
type: "null";
|
|
164
|
+
} | ({
|
|
165
|
+
$ref: string;
|
|
166
|
+
} & import("json-schema").JSONSchema7);
|
|
167
|
+
outputs: {
|
|
168
|
+
name: string | null;
|
|
169
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
170
|
+
}[];
|
|
171
|
+
alias?: string | undefined;
|
|
172
|
+
} | {
|
|
173
|
+
id: string;
|
|
174
|
+
type: "exit";
|
|
175
|
+
alias?: string | undefined;
|
|
176
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
177
|
+
} | {
|
|
178
|
+
id: string;
|
|
179
|
+
type: "comment";
|
|
180
|
+
text: string;
|
|
181
|
+
alias?: string | undefined;
|
|
182
|
+
})[];
|
|
183
|
+
getNode(condition: (node: Node) => boolean): Node | undefined;
|
|
184
|
+
getChildren(nodeId: string, outputName: OutputName): ({
|
|
185
|
+
id: string;
|
|
186
|
+
type: "entry";
|
|
187
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
188
|
+
alias?: string | undefined;
|
|
189
|
+
} | {
|
|
190
|
+
id: string;
|
|
191
|
+
type: "service";
|
|
192
|
+
inputSchema: ({
|
|
193
|
+
type: "object";
|
|
194
|
+
} & import("json-schema").JSONSchema7) | {
|
|
195
|
+
type: "null";
|
|
196
|
+
} | ({
|
|
197
|
+
$ref: string;
|
|
198
|
+
} & import("json-schema").JSONSchema7);
|
|
199
|
+
name: string;
|
|
200
|
+
version: string;
|
|
201
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
202
|
+
outputs: {
|
|
203
|
+
name: string | null;
|
|
204
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
205
|
+
}[];
|
|
206
|
+
alias?: string | undefined;
|
|
207
|
+
configuration?: any;
|
|
208
|
+
ttl?: number | undefined;
|
|
209
|
+
retry?: number | undefined;
|
|
210
|
+
retryDelay?: number | undefined;
|
|
211
|
+
} | {
|
|
212
|
+
id: string;
|
|
213
|
+
type: "logic";
|
|
214
|
+
script: string;
|
|
215
|
+
concurrency: boolean;
|
|
216
|
+
language: "javascript" | "python" | "typescript";
|
|
217
|
+
maxExecutionTime: number;
|
|
218
|
+
outputs: {
|
|
219
|
+
name: string | null;
|
|
220
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
221
|
+
}[];
|
|
222
|
+
alias?: string | undefined;
|
|
223
|
+
} | {
|
|
224
|
+
id: string;
|
|
225
|
+
type: "or";
|
|
226
|
+
alias?: string | undefined;
|
|
227
|
+
} | {
|
|
228
|
+
id: string;
|
|
229
|
+
type: "reference";
|
|
230
|
+
reference: string;
|
|
231
|
+
inputSchema: ({
|
|
232
|
+
type: "object";
|
|
233
|
+
} & import("json-schema").JSONSchema7) | {
|
|
234
|
+
type: "null";
|
|
235
|
+
} | ({
|
|
236
|
+
$ref: string;
|
|
237
|
+
} & import("json-schema").JSONSchema7);
|
|
238
|
+
outputs: {
|
|
239
|
+
name: string | null;
|
|
240
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
241
|
+
}[];
|
|
242
|
+
alias?: string | undefined;
|
|
243
|
+
} | {
|
|
244
|
+
id: string;
|
|
245
|
+
type: "exit";
|
|
246
|
+
alias?: string | undefined;
|
|
247
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
248
|
+
} | {
|
|
249
|
+
id: string;
|
|
250
|
+
type: "comment";
|
|
251
|
+
text: string;
|
|
252
|
+
alias?: string | undefined;
|
|
253
|
+
})[];
|
|
254
|
+
getOutputNames(nodeId: string): (string | null)[];
|
|
255
|
+
getParents(nodeId: string): ({
|
|
256
|
+
id: string;
|
|
257
|
+
type: "entry";
|
|
258
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
259
|
+
alias?: string | undefined;
|
|
260
|
+
} | {
|
|
261
|
+
id: string;
|
|
262
|
+
type: "service";
|
|
263
|
+
inputSchema: ({
|
|
264
|
+
type: "object";
|
|
265
|
+
} & import("json-schema").JSONSchema7) | {
|
|
266
|
+
type: "null";
|
|
267
|
+
} | ({
|
|
268
|
+
$ref: string;
|
|
269
|
+
} & import("json-schema").JSONSchema7);
|
|
270
|
+
name: string;
|
|
271
|
+
version: string;
|
|
272
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
273
|
+
outputs: {
|
|
274
|
+
name: string | null;
|
|
275
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
276
|
+
}[];
|
|
277
|
+
alias?: string | undefined;
|
|
278
|
+
configuration?: any;
|
|
279
|
+
ttl?: number | undefined;
|
|
280
|
+
retry?: number | undefined;
|
|
281
|
+
retryDelay?: number | undefined;
|
|
282
|
+
} | {
|
|
283
|
+
id: string;
|
|
284
|
+
type: "logic";
|
|
285
|
+
script: string;
|
|
286
|
+
concurrency: boolean;
|
|
287
|
+
language: "javascript" | "python" | "typescript";
|
|
288
|
+
maxExecutionTime: number;
|
|
289
|
+
outputs: {
|
|
290
|
+
name: string | null;
|
|
291
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
292
|
+
}[];
|
|
293
|
+
alias?: string | undefined;
|
|
294
|
+
} | {
|
|
295
|
+
id: string;
|
|
296
|
+
type: "or";
|
|
297
|
+
alias?: string | undefined;
|
|
298
|
+
} | {
|
|
299
|
+
id: string;
|
|
300
|
+
type: "reference";
|
|
301
|
+
reference: string;
|
|
302
|
+
inputSchema: ({
|
|
303
|
+
type: "object";
|
|
304
|
+
} & import("json-schema").JSONSchema7) | {
|
|
305
|
+
type: "null";
|
|
306
|
+
} | ({
|
|
307
|
+
$ref: string;
|
|
308
|
+
} & import("json-schema").JSONSchema7);
|
|
309
|
+
outputs: {
|
|
310
|
+
name: string | null;
|
|
311
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
312
|
+
}[];
|
|
313
|
+
alias?: string | undefined;
|
|
314
|
+
} | {
|
|
315
|
+
id: string;
|
|
316
|
+
type: "exit";
|
|
317
|
+
alias?: string | undefined;
|
|
318
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
319
|
+
} | {
|
|
320
|
+
id: string;
|
|
321
|
+
type: "comment";
|
|
322
|
+
text: string;
|
|
323
|
+
alias?: string | undefined;
|
|
324
|
+
})[];
|
|
325
|
+
getAllParents(nodeId: string): ({
|
|
326
|
+
id: string;
|
|
327
|
+
type: "entry";
|
|
328
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
329
|
+
alias?: string | undefined;
|
|
330
|
+
} | {
|
|
331
|
+
id: string;
|
|
332
|
+
type: "service";
|
|
333
|
+
inputSchema: ({
|
|
334
|
+
type: "object";
|
|
335
|
+
} & import("json-schema").JSONSchema7) | {
|
|
336
|
+
type: "null";
|
|
337
|
+
} | ({
|
|
338
|
+
$ref: string;
|
|
339
|
+
} & import("json-schema").JSONSchema7);
|
|
340
|
+
name: string;
|
|
341
|
+
version: string;
|
|
342
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
343
|
+
outputs: {
|
|
344
|
+
name: string | null;
|
|
345
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
346
|
+
}[];
|
|
347
|
+
alias?: string | undefined;
|
|
348
|
+
configuration?: any;
|
|
349
|
+
ttl?: number | undefined;
|
|
350
|
+
retry?: number | undefined;
|
|
351
|
+
retryDelay?: number | undefined;
|
|
352
|
+
} | {
|
|
353
|
+
id: string;
|
|
354
|
+
type: "logic";
|
|
355
|
+
script: string;
|
|
356
|
+
concurrency: boolean;
|
|
357
|
+
language: "javascript" | "python" | "typescript";
|
|
358
|
+
maxExecutionTime: number;
|
|
359
|
+
outputs: {
|
|
360
|
+
name: string | null;
|
|
361
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
362
|
+
}[];
|
|
363
|
+
alias?: string | undefined;
|
|
364
|
+
} | {
|
|
365
|
+
id: string;
|
|
366
|
+
type: "or";
|
|
367
|
+
alias?: string | undefined;
|
|
368
|
+
} | {
|
|
369
|
+
id: string;
|
|
370
|
+
type: "reference";
|
|
371
|
+
reference: string;
|
|
372
|
+
inputSchema: ({
|
|
373
|
+
type: "object";
|
|
374
|
+
} & import("json-schema").JSONSchema7) | {
|
|
375
|
+
type: "null";
|
|
376
|
+
} | ({
|
|
377
|
+
$ref: string;
|
|
378
|
+
} & import("json-schema").JSONSchema7);
|
|
379
|
+
outputs: {
|
|
380
|
+
name: string | null;
|
|
381
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
382
|
+
}[];
|
|
383
|
+
alias?: string | undefined;
|
|
384
|
+
} | {
|
|
385
|
+
id: string;
|
|
386
|
+
type: "exit";
|
|
387
|
+
alias?: string | undefined;
|
|
388
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
389
|
+
} | {
|
|
390
|
+
id: string;
|
|
391
|
+
type: "comment";
|
|
392
|
+
text: string;
|
|
393
|
+
alias?: string | undefined;
|
|
394
|
+
})[];
|
|
395
|
+
isInCycle(nodeId: string, outputName?: OutputName): boolean;
|
|
396
|
+
/**
|
|
397
|
+
* normally a node is "reached" when all incoming edges are traversed with the following exceptions:
|
|
398
|
+
*
|
|
399
|
+
* when the incoming edge belongs to a service that is part of a loop where the questioned node is also part of,
|
|
400
|
+
* this incoming edge is considered traversed
|
|
401
|
+
*
|
|
402
|
+
* or nodes are "reaced" when at least one incoming edge is traversed
|
|
403
|
+
*
|
|
404
|
+
* the entry node is "reached" by default
|
|
405
|
+
*/
|
|
406
|
+
isReached(nodeId: string): boolean;
|
|
407
|
+
getParentsWithEdgeHandle(nodeId: string): {
|
|
408
|
+
node: {
|
|
409
|
+
id: string;
|
|
410
|
+
type: "entry";
|
|
411
|
+
inputSchema: import("json-schema").JSONSchema7;
|
|
412
|
+
alias?: string | undefined;
|
|
413
|
+
} | {
|
|
414
|
+
id: string;
|
|
415
|
+
type: "service";
|
|
416
|
+
inputSchema: ({
|
|
417
|
+
type: "object";
|
|
418
|
+
} & import("json-schema").JSONSchema7) | {
|
|
419
|
+
type: "null";
|
|
420
|
+
} | ({
|
|
421
|
+
$ref: string;
|
|
422
|
+
} & import("json-schema").JSONSchema7);
|
|
423
|
+
name: string;
|
|
424
|
+
version: string;
|
|
425
|
+
configurationSchema: import("json-schema").JSONSchema7;
|
|
426
|
+
outputs: {
|
|
427
|
+
name: string | null;
|
|
428
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
429
|
+
}[];
|
|
430
|
+
alias?: string | undefined;
|
|
431
|
+
configuration?: any;
|
|
432
|
+
ttl?: number | undefined;
|
|
433
|
+
retry?: number | undefined;
|
|
434
|
+
retryDelay?: number | undefined;
|
|
435
|
+
} | {
|
|
436
|
+
id: string;
|
|
437
|
+
type: "logic";
|
|
438
|
+
script: string;
|
|
439
|
+
concurrency: boolean;
|
|
440
|
+
language: "javascript" | "python" | "typescript";
|
|
441
|
+
maxExecutionTime: number;
|
|
442
|
+
outputs: {
|
|
443
|
+
name: string | null;
|
|
444
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
445
|
+
}[];
|
|
446
|
+
alias?: string | undefined;
|
|
447
|
+
} | {
|
|
448
|
+
id: string;
|
|
449
|
+
type: "or";
|
|
450
|
+
alias?: string | undefined;
|
|
451
|
+
} | {
|
|
452
|
+
id: string;
|
|
453
|
+
type: "reference";
|
|
454
|
+
reference: string;
|
|
455
|
+
inputSchema: ({
|
|
456
|
+
type: "object";
|
|
457
|
+
} & import("json-schema").JSONSchema7) | {
|
|
458
|
+
type: "null";
|
|
459
|
+
} | ({
|
|
460
|
+
$ref: string;
|
|
461
|
+
} & import("json-schema").JSONSchema7);
|
|
462
|
+
outputs: {
|
|
463
|
+
name: string | null;
|
|
464
|
+
schema: import("json-schema").JSONSchema7 | null;
|
|
465
|
+
}[];
|
|
466
|
+
alias?: string | undefined;
|
|
467
|
+
} | {
|
|
468
|
+
id: string;
|
|
469
|
+
type: "exit";
|
|
470
|
+
alias?: string | undefined;
|
|
471
|
+
inputSchema?: import("json-schema").JSONSchema7 | undefined;
|
|
472
|
+
} | {
|
|
473
|
+
id: string;
|
|
474
|
+
type: "comment";
|
|
475
|
+
text: string;
|
|
476
|
+
alias?: string | undefined;
|
|
477
|
+
};
|
|
478
|
+
handle: OutputName;
|
|
479
|
+
}[];
|
|
480
|
+
getTriggers(nodeId: string): string[];
|
|
481
|
+
traverse(nodeId: string, outputName: OutputName): void;
|
|
482
|
+
traverseWithData(nodeId: string, outputName: OutputName, data: unknown, overwrite?: boolean): void;
|
|
483
|
+
disconnect(sourceNodeId: string, sourceNodeOutputName: OutputName, targetNodeId: string): void;
|
|
484
|
+
getData(nodeId: string, outputName: OutputName): unknown;
|
|
485
|
+
traversed(sourceNodeId: string, targetNodeId: string): boolean;
|
|
486
|
+
getAllData(): Map<string, Map<OutputName, unknown>>;
|
|
487
|
+
private getAggregatedDataSetsByNode;
|
|
488
|
+
getAggregatedDataByNode(targetNodeId: string): Record<string, unknown>;
|
|
489
|
+
getAggregatedData(targetNodeId: string): Record<string, unknown>;
|
|
490
|
+
getAggregatedEdgeData(edgeId: string): Record<string, unknown>;
|
|
491
|
+
reset(): void;
|
|
492
|
+
gc(): void;
|
|
493
|
+
overrideAggregatedNodeData(nodeId: string, data: Record<string, unknown>): void;
|
|
494
|
+
}
|
|
495
|
+
export {};
|
|
496
|
+
//# sourceMappingURL=NodeTree.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeTree.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/NodeTree.ts"],"names":[],"mappings":"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"}
|