@requence/service 1.0.0-alpha.11 → 1.0.0-alpha.13
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/{chunk-7zejeth1.js → chunk-fa95vcc4.js} +3 -23
- package/build/{chunk-7zejeth1.js.map → chunk-fa95vcc4.js.map} +2 -2
- package/build/cli.js +1 -1
- package/build/cli.js.map +1 -1
- package/build/index.js +64 -14903
- package/build/index.js.map +4 -74
- package/build/types/helpers/src/context/context.d.ts +156 -0
- package/build/types/helpers/src/context/context.d.ts.map +1 -0
- package/build/types/helpers/src/context/index.d.ts +2 -0
- package/build/types/helpers/src/context/index.d.ts.map +1 -0
- 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/index.d.ts +48 -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 +7 -0
- package/build/types/helpers/src/files/mapOutput.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/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 +11 -0
- package/build/types/helpers/src/jsonschema/types.d.ts.map +1 -0
- package/build/types/helpers/src/jsonschema/validate.d.ts +27 -0
- package/build/types/helpers/src/jsonschema/validate.d.ts.map +1 -0
- package/build/types/helpers/src/jsonschema/zod.d.ts +20 -0
- package/build/types/helpers/src/jsonschema/zod.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/command.d.ts +1969 -0
- package/build/types/helpers/src/protocol/command.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/createNodeMaps.d.ts +10 -0
- package/build/types/helpers/src/protocol/createNodeMaps.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/getCycles.d.ts +3 -0
- package/build/types/helpers/src/protocol/getCycles.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/getNodeOutputs.d.ts +4 -0
- package/build/types/helpers/src/protocol/getNodeOutputs.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/getPossiblePaths.d.ts +9 -0
- package/build/types/helpers/src/protocol/getPossiblePaths.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/identifyNode.d.ts +4 -0
- package/build/types/helpers/src/protocol/identifyNode.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/index.d.ts +10 -0
- package/build/types/helpers/src/protocol/index.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/node.d.ts +1014 -0
- package/build/types/helpers/src/protocol/node.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/nodes.d.ts +801 -0
- package/build/types/helpers/src/protocol/nodes.d.ts.map +1 -0
- package/build/types/helpers/src/protocol/update.d.ts +3087 -0
- package/build/types/helpers/src/protocol/update.d.ts.map +1 -0
- package/build/types/service/src/helpers.d.ts +7 -7
- package/build/types/service/src/index.d.ts +1 -1
- package/package.json +5 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../../helpers/src/protocol/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAgBvB,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGzB,CAAA;AACF,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAEnE,QAAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUvB,CAAA;AAEF,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Context } from '
|
|
2
|
-
import type { NodeOptions, Nodes, ServiceNode } from '
|
|
1
|
+
import type { Context } from '../../helpers/src/context/index.js';
|
|
2
|
+
import type { NodeOptions, Nodes, ServiceNode } from '../../helpers/src/protocol/index.js';
|
|
3
3
|
export type JSONValue = string | number | boolean | {
|
|
4
4
|
[x: string]: JSONValue;
|
|
5
5
|
} | Array<JSONValue> | null;
|
|
@@ -46,7 +46,7 @@ export default function createContextHelper(options: {
|
|
|
46
46
|
getNodes(): (({
|
|
47
47
|
type: "entry";
|
|
48
48
|
id: "__entry__";
|
|
49
|
-
output: import("
|
|
49
|
+
output: import("../../helpers/src/protocol").Output[];
|
|
50
50
|
inputSchema: import("json-schema").JSONSchema7;
|
|
51
51
|
metaSchema: import("json-schema").JSONSchema7;
|
|
52
52
|
meta?: Record<string, any> | undefined;
|
|
@@ -54,7 +54,7 @@ export default function createContextHelper(options: {
|
|
|
54
54
|
type: "service";
|
|
55
55
|
id: string;
|
|
56
56
|
name: string;
|
|
57
|
-
output: import("
|
|
57
|
+
output: import("../../helpers/src/protocol").Output[];
|
|
58
58
|
inputSchema: ({
|
|
59
59
|
type: "object";
|
|
60
60
|
} & import("json-schema").JSONSchema7) | {
|
|
@@ -71,13 +71,13 @@ export default function createContextHelper(options: {
|
|
|
71
71
|
} | {
|
|
72
72
|
type: "catch";
|
|
73
73
|
id: string;
|
|
74
|
-
output: import("
|
|
74
|
+
output: import("../../helpers/src/protocol").Output[];
|
|
75
75
|
subject: string;
|
|
76
76
|
meta?: Record<string, any> | undefined;
|
|
77
77
|
} | {
|
|
78
78
|
type: "logic";
|
|
79
79
|
id: string;
|
|
80
|
-
output: import("
|
|
80
|
+
output: import("../../helpers/src/protocol").Output[];
|
|
81
81
|
script: string;
|
|
82
82
|
concurrency: boolean;
|
|
83
83
|
language: "javascript" | "python" | "typescript";
|
|
@@ -87,7 +87,7 @@ export default function createContextHelper(options: {
|
|
|
87
87
|
} | {
|
|
88
88
|
type: "or";
|
|
89
89
|
id: string;
|
|
90
|
-
output: import("
|
|
90
|
+
output: import("../../helpers/src/protocol").Output[];
|
|
91
91
|
meta?: Record<string, any> | undefined;
|
|
92
92
|
alias?: string | undefined;
|
|
93
93
|
}) & NodeResult)[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ConnectionApi, type MessageHandler } from './createAmqpConnection.ts';
|
|
2
|
-
export { RequenceFile, RequenceStream } from '
|
|
2
|
+
export { RequenceFile, RequenceStream } from '../../helpers/src/files/index.js';
|
|
3
3
|
export type ServiceApi<V extends keyof Requence.Version | (string & {})> = ConnectionApi<V>;
|
|
4
4
|
interface ServiceOptions<V extends string> {
|
|
5
5
|
accessToken?: string;
|
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.13",
|
|
5
5
|
"bin": {
|
|
6
6
|
"requence-service": "build/cli.js"
|
|
7
7
|
},
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"amqp-connection-manager": "^4.1.14",
|
|
15
15
|
"amqplib": "^0.10.5",
|
|
16
16
|
"chalk": "^5.4.1",
|
|
17
|
+
"mime-types": "^2.1.35",
|
|
17
18
|
"prettier": "^3.5.0",
|
|
18
|
-
"semver": "^7.7.1",
|
|
19
19
|
"yargs": "^17.7.2",
|
|
20
|
-
"zod": "^3.24.2"
|
|
20
|
+
"zod": "^3.24.2",
|
|
21
|
+
"ajv": "^8.17.1"
|
|
21
22
|
},
|
|
22
23
|
"devDependencies": {
|
|
23
24
|
"@requence/helpers": "workspace:*",
|
|
24
|
-
"@requence/utils": "workspace:*"
|
|
25
|
-
"@types/semver": "^7.5.8"
|
|
25
|
+
"@requence/utils": "workspace:*"
|
|
26
26
|
},
|
|
27
27
|
"exports": {
|
|
28
28
|
"default": "./build/index.js",
|