@blue-labs/language 1.20.0 → 1.21.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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -15
- package/dist/index.mjs +2065 -3581
- package/dist/lib/Blue.d.ts +29 -4
- package/dist/lib/Blue.d.ts.map +1 -1
- package/dist/lib/mapping/__tests__/schema/contract.d.ts +12 -12
- package/dist/lib/mapping/__tests__/schema/index.d.ts +12 -12
- package/dist/lib/preprocess/Preprocessor.d.ts +10 -19
- package/dist/lib/preprocess/Preprocessor.d.ts.map +1 -1
- package/dist/lib/preprocess/utils/BlueIdsMappingGenerator.d.ts +9 -9
- package/dist/lib/preprocess/utils/BlueIdsMappingGenerator.d.ts.map +1 -1
- package/dist/lib/utils/index.d.ts +3 -1
- package/dist/lib/utils/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/package.json +11 -18
- package/dist/lib/processor/BlueDocumentProcessor.d.ts +0 -54
- package/dist/lib/processor/BlueDocumentProcessor.d.ts.map +0 -1
- package/dist/lib/processor/context.d.ts +0 -21
- package/dist/lib/processor/context.d.ts.map +0 -1
- package/dist/lib/processor/processors/BaseChannelProcessor.d.ts +0 -27
- package/dist/lib/processor/processors/BaseChannelProcessor.d.ts.map +0 -1
- package/dist/lib/processor/processors/ChannelEventCheckpointProcessor.d.ts +0 -13
- package/dist/lib/processor/processors/ChannelEventCheckpointProcessor.d.ts.map +0 -1
- package/dist/lib/processor/processors/CompositeTimelineChannelProcessor.d.ts +0 -9
- package/dist/lib/processor/processors/CompositeTimelineChannelProcessor.d.ts.map +0 -1
- package/dist/lib/processor/processors/DocumentUpdateChannelProcessor.d.ts +0 -9
- package/dist/lib/processor/processors/DocumentUpdateChannelProcessor.d.ts.map +0 -1
- package/dist/lib/processor/processors/EmbeddedNodeChannelProcessor.d.ts +0 -9
- package/dist/lib/processor/processors/EmbeddedNodeChannelProcessor.d.ts.map +0 -1
- package/dist/lib/processor/processors/MyOSAgentChannelProcessor.d.ts +0 -60
- package/dist/lib/processor/processors/MyOSAgentChannelProcessor.d.ts.map +0 -1
- package/dist/lib/processor/processors/MyOSTimelineChannelProcessor.d.ts +0 -9
- package/dist/lib/processor/processors/MyOSTimelineChannelProcessor.d.ts.map +0 -1
- package/dist/lib/processor/processors/OperationProcessor.d.ts +0 -11
- package/dist/lib/processor/processors/OperationProcessor.d.ts.map +0 -1
- package/dist/lib/processor/processors/ProcessEmbeddedProcessor.d.ts +0 -10
- package/dist/lib/processor/processors/ProcessEmbeddedProcessor.d.ts.map +0 -1
- package/dist/lib/processor/processors/SequentialWorkflowOperationProcessor.d.ts +0 -12
- package/dist/lib/processor/processors/SequentialWorkflowOperationProcessor.d.ts.map +0 -1
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.d.ts +0 -15
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.d.ts.map +0 -1
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/index.d.ts +0 -2
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/index.d.ts.map +0 -1
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/JavaScriptCodeExecutor.d.ts +0 -8
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/JavaScriptCodeExecutor.d.ts.map +0 -1
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.d.ts +0 -8
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.d.ts.map +0 -1
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.d.ts +0 -12
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.d.ts.map +0 -1
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/types.d.ts +0 -7
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/types.d.ts.map +0 -1
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/BindingsFactory.d.ts +0 -12
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/BindingsFactory.d.ts.map +0 -1
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.d.ts +0 -59
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.d.ts.map +0 -1
- package/dist/lib/processor/processors/TimelineChannelProcessor.d.ts +0 -9
- package/dist/lib/processor/processors/TimelineChannelProcessor.d.ts.map +0 -1
- package/dist/lib/processor/processors/index.d.ts +0 -12
- package/dist/lib/processor/processors/index.d.ts.map +0 -1
- package/dist/lib/processor/queue/TaskKey.d.ts +0 -22
- package/dist/lib/processor/queue/TaskKey.d.ts.map +0 -1
- package/dist/lib/processor/queue/TaskQueue.d.ts +0 -31
- package/dist/lib/processor/queue/TaskQueue.d.ts.map +0 -1
- package/dist/lib/processor/registry/ContractRegistry.d.ts +0 -47
- package/dist/lib/processor/registry/ContractRegistry.d.ts.map +0 -1
- package/dist/lib/processor/routing/EventRouter.d.ts +0 -51
- package/dist/lib/processor/routing/EventRouter.d.ts.map +0 -1
- package/dist/lib/processor/types.d.ts +0 -112
- package/dist/lib/processor/types.d.ts.map +0 -1
- package/dist/lib/processor/utils/CheckpointCache.d.ts +0 -9
- package/dist/lib/processor/utils/CheckpointCache.d.ts.map +0 -1
- package/dist/lib/processor/utils/EventTraceManager.d.ts +0 -46
- package/dist/lib/processor/utils/EventTraceManager.d.ts.map +0 -1
- package/dist/lib/processor/utils/checkpoint.d.ts +0 -3
- package/dist/lib/processor/utils/checkpoint.d.ts.map +0 -1
- package/dist/lib/processor/utils/document.d.ts +0 -19
- package/dist/lib/processor/utils/document.d.ts.map +0 -1
- package/dist/lib/processor/utils/exceptions.d.ts +0 -28
- package/dist/lib/processor/utils/exceptions.d.ts.map +0 -1
- package/dist/lib/processor/utils/fetchText.d.ts +0 -2
- package/dist/lib/processor/utils/fetchText.d.ts.map +0 -1
- package/dist/lib/processor/utils/logPatchError.d.ts +0 -3
- package/dist/lib/processor/utils/logPatchError.d.ts.map +0 -1
- package/dist/lib/processor/utils/path.d.ts +0 -2
- package/dist/lib/processor/utils/path.d.ts.map +0 -1
- package/dist/lib/processor/utils/typeGuard.d.ts +0 -5
- package/dist/lib/processor/utils/typeGuard.d.ts.map +0 -1
- package/dist/lib/utils/TinyQueue.d.ts +0 -12
- package/dist/lib/utils/TinyQueue.d.ts.map +0 -1
- package/dist/repo/core/blue-ids/index.d.ts +0 -21
- package/dist/repo/core/blue-ids/index.d.ts.map +0 -1
- package/dist/repo/core/index.d.ts +0 -191
- package/dist/repo/core/index.d.ts.map +0 -1
- package/dist/repo/core/schema/Channel.d.ts +0 -13
- package/dist/repo/core/schema/Channel.d.ts.map +0 -1
- package/dist/repo/core/schema/CompositeTimelineChannel.d.ts +0 -17
- package/dist/repo/core/schema/CompositeTimelineChannel.d.ts.map +0 -1
- package/dist/repo/core/schema/DocumentUpdateChannel.d.ts +0 -17
- package/dist/repo/core/schema/DocumentUpdateChannel.d.ts.map +0 -1
- package/dist/repo/core/schema/EmbeddedNodeChannel.d.ts +0 -17
- package/dist/repo/core/schema/EmbeddedNodeChannel.d.ts.map +0 -1
- package/dist/repo/core/schema/JavaScriptCode.d.ts +0 -10
- package/dist/repo/core/schema/JavaScriptCode.d.ts.map +0 -1
- package/dist/repo/core/schema/JsonPatchEntry.d.ts +0 -22
- package/dist/repo/core/schema/JsonPatchEntry.d.ts.map +0 -1
- package/dist/repo/core/schema/Operation.d.ts +0 -16
- package/dist/repo/core/schema/Operation.d.ts.map +0 -1
- package/dist/repo/core/schema/OperationRequest.d.ts +0 -29
- package/dist/repo/core/schema/OperationRequest.d.ts.map +0 -1
- package/dist/repo/core/schema/ProcessEmbedded.d.ts +0 -10
- package/dist/repo/core/schema/ProcessEmbedded.d.ts.map +0 -1
- package/dist/repo/core/schema/SequentialWorkflow.d.ts +0 -13
- package/dist/repo/core/schema/SequentialWorkflow.d.ts.map +0 -1
- package/dist/repo/core/schema/SequentialWorkflowOperation.d.ts +0 -15
- package/dist/repo/core/schema/SequentialWorkflowOperation.d.ts.map +0 -1
- package/dist/repo/core/schema/SequentialWorkflowStep.d.ts +0 -13
- package/dist/repo/core/schema/SequentialWorkflowStep.d.ts.map +0 -1
- package/dist/repo/core/schema/TimelineChannel.d.ts +0 -17
- package/dist/repo/core/schema/TimelineChannel.d.ts.map +0 -1
- package/dist/repo/core/schema/TimelineEntry.d.ts +0 -25
- package/dist/repo/core/schema/TimelineEntry.d.ts.map +0 -1
- package/dist/repo/core/schema/TriggerEvent.d.ts +0 -10
- package/dist/repo/core/schema/TriggerEvent.d.ts.map +0 -1
- package/dist/repo/core/schema/UpdateDocument.d.ts +0 -40
- package/dist/repo/core/schema/UpdateDocument.d.ts.map +0 -1
- package/dist/repo/core/schema/index.d.ts +0 -14
- package/dist/repo/core/schema/index.d.ts.map +0 -1
- package/dist/repo/myos/blue-ids/index.d.ts +0 -8
- package/dist/repo/myos/blue-ids/index.d.ts.map +0 -1
- package/dist/repo/myos/index.d.ts +0 -99
- package/dist/repo/myos/index.d.ts.map +0 -1
- package/dist/repo/myos/schema/MyOSAgent.d.ts +0 -10
- package/dist/repo/myos/schema/MyOSAgent.d.ts.map +0 -1
- package/dist/repo/myos/schema/MyOSAgentChannel.d.ts +0 -30
- package/dist/repo/myos/schema/MyOSAgentChannel.d.ts.map +0 -1
- package/dist/repo/myos/schema/MyOSAgentEvent.d.ts +0 -19
- package/dist/repo/myos/schema/MyOSAgentEvent.d.ts.map +0 -1
- package/dist/repo/myos/schema/MyOSTimelineChannel.d.ts +0 -24
- package/dist/repo/myos/schema/MyOSTimelineChannel.d.ts.map +0 -1
- package/dist/repo/myos/schema/MyOSTimelineEntry.d.ts +0 -32
- package/dist/repo/myos/schema/MyOSTimelineEntry.d.ts.map +0 -1
- package/dist/repo/myos/schema/index.d.ts +0 -6
- package/dist/repo/myos/schema/index.d.ts.map +0 -1
- package/dist/utils/deepFreeze.d.ts +0 -8
- package/dist/utils/deepFreeze.d.ts.map +0 -1
package/dist/lib/Blue.d.ts
CHANGED
|
@@ -2,20 +2,25 @@ import { JsonBlueValue } from '../schema';
|
|
|
2
2
|
import { BlueNode } from './model';
|
|
3
3
|
import { NodeProvider } from './NodeProvider';
|
|
4
4
|
import { NodeToMapListOrValue, TypeSchemaResolver } from './utils';
|
|
5
|
-
import { ZodTypeDef, ZodType } from 'zod';
|
|
5
|
+
import { ZodTypeDef, ZodType, ZodTypeAny } from 'zod';
|
|
6
6
|
import { UrlContentFetcher, UrlFetchStrategy } from './provider/UrlContentFetcher';
|
|
7
|
-
import {
|
|
7
|
+
import { BlueIdsMappingGenerator, BlueIdsRecord } from './preprocess/utils/BlueIdsMappingGenerator';
|
|
8
|
+
export interface BlueRepository {
|
|
9
|
+
blueIds: BlueIdsRecord;
|
|
10
|
+
schemas: ZodTypeAny[];
|
|
11
|
+
}
|
|
8
12
|
export interface BlueOptions {
|
|
9
13
|
nodeProvider?: NodeProvider;
|
|
10
14
|
typeSchemaResolver?: TypeSchemaResolver;
|
|
11
15
|
urlFetchStrategy?: UrlFetchStrategy;
|
|
16
|
+
repositories?: BlueRepository[];
|
|
12
17
|
}
|
|
13
18
|
export declare class Blue {
|
|
14
19
|
private nodeProvider;
|
|
15
20
|
private typeSchemaResolver;
|
|
16
21
|
private blueDirectivePreprocessor;
|
|
17
22
|
private urlContentFetcher;
|
|
18
|
-
private
|
|
23
|
+
private blueIdsMappingGenerator;
|
|
19
24
|
constructor(options?: BlueOptions);
|
|
20
25
|
/**
|
|
21
26
|
* Converts a BlueNode to a JSON representation based on the specified strategy.
|
|
@@ -26,7 +31,6 @@ export declare class Blue {
|
|
|
26
31
|
*/
|
|
27
32
|
nodeToJson(node: BlueNode, strategy?: Parameters<typeof NodeToMapListOrValue.get>[1]): import('type-fest').JsonValue;
|
|
28
33
|
nodeToSchemaOutput<Output = unknown, Def extends ZodTypeDef = ZodTypeDef, Input = Output>(node: BlueNode, schema: ZodType<Output, Def, Input>): Output;
|
|
29
|
-
process(node: BlueNode, events: EventNodePayload[]): Promise<import('./processor/types').ProcessingResult>;
|
|
30
34
|
jsonValueToNode(json: unknown): BlueNode;
|
|
31
35
|
jsonValueToNodeAsync(json: unknown): Promise<BlueNode>;
|
|
32
36
|
yamlToNode(yaml: string): BlueNode;
|
|
@@ -95,5 +99,26 @@ export declare class Blue {
|
|
|
95
99
|
isPreprocessingDirectivesFetchForUrlsEnabled(): boolean;
|
|
96
100
|
getPreprocessingAliases(): Map<string, string>;
|
|
97
101
|
setPreprocessingAliases(aliases: Map<string, string>): Blue;
|
|
102
|
+
/**
|
|
103
|
+
* Registers additional BlueIds collections for mapping generation
|
|
104
|
+
* @param blueIdsCollections - Array of BlueIds objects to register
|
|
105
|
+
* @returns This instance for chaining
|
|
106
|
+
*/
|
|
107
|
+
registerBlueIds(...blueIdsCollections: BlueIdsRecord[]): Blue;
|
|
108
|
+
/**
|
|
109
|
+
* Gets all currently registered BlueIds
|
|
110
|
+
* @returns Merged object containing all BlueIds from all collections
|
|
111
|
+
*/
|
|
112
|
+
getAllRegisteredBlueIds(): Record<string, string>;
|
|
113
|
+
/**
|
|
114
|
+
* Gets the names of all registered BlueIds
|
|
115
|
+
* @returns Array of all BlueId names
|
|
116
|
+
*/
|
|
117
|
+
getAllBlueIdNames(): string[];
|
|
118
|
+
/**
|
|
119
|
+
* Gets the BlueIdsMappingGenerator instance
|
|
120
|
+
* @returns The BlueIdsMappingGenerator instance
|
|
121
|
+
*/
|
|
122
|
+
getBlueIdsMappingGenerator(): BlueIdsMappingGenerator;
|
|
98
123
|
}
|
|
99
124
|
//# sourceMappingURL=Blue.d.ts.map
|
package/dist/lib/Blue.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Blue.d.ts","sourceRoot":"","sources":["../../src/lib/Blue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,OAAO,EAAE,QAAQ,EAAoB,MAAM,SAAS,CAAC;AACrD,OAAO,EAAE,YAAY,EAAsB,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAEL,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"Blue.d.ts","sourceRoot":"","sources":["../../src/lib/Blue.ts"],"names":[],"mappings":"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"}
|
|
@@ -8,13 +8,13 @@ export declare const TriggerEventStepSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
8
8
|
}>, "strip", z.ZodTypeAny, {
|
|
9
9
|
name?: string | undefined;
|
|
10
10
|
description?: string | undefined;
|
|
11
|
-
event?: import('../../..').BlueNode | undefined;
|
|
12
11
|
condition?: import('../../..').BlueNode | undefined;
|
|
12
|
+
event?: import('../../..').BlueNode | undefined;
|
|
13
13
|
}, {
|
|
14
14
|
name?: string | undefined;
|
|
15
15
|
description?: string | undefined;
|
|
16
|
-
event?: import('../../..').BlueNode | undefined;
|
|
17
16
|
condition?: import('../../..').BlueNode | undefined;
|
|
17
|
+
event?: import('../../..').BlueNode | undefined;
|
|
18
18
|
}>;
|
|
19
19
|
export declare const UpdateStepSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
20
20
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -37,21 +37,21 @@ export declare const UpdateStepSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
37
37
|
}>, "strip", z.ZodTypeAny, {
|
|
38
38
|
name?: string | undefined;
|
|
39
39
|
description?: string | undefined;
|
|
40
|
+
condition?: import('../../..').BlueNode | undefined;
|
|
40
41
|
changeset?: {
|
|
41
42
|
path?: string | undefined;
|
|
42
43
|
val?: import('../../..').BlueNode | undefined;
|
|
43
44
|
op?: "add" | "replace" | "remove" | undefined;
|
|
44
45
|
}[] | undefined;
|
|
45
|
-
condition?: import('../../..').BlueNode | undefined;
|
|
46
46
|
}, {
|
|
47
47
|
name?: string | undefined;
|
|
48
48
|
description?: string | undefined;
|
|
49
|
+
condition?: import('../../..').BlueNode | undefined;
|
|
49
50
|
changeset?: {
|
|
50
51
|
path?: string | undefined;
|
|
51
52
|
val?: import('../../..').BlueNode | undefined;
|
|
52
53
|
op?: "add" | "replace" | "remove" | undefined;
|
|
53
54
|
}[] | undefined;
|
|
54
|
-
condition?: import('../../..').BlueNode | undefined;
|
|
55
55
|
}>;
|
|
56
56
|
export declare const JavaScriptCodeStepSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
57
57
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -120,21 +120,21 @@ export declare const ContractSchema: z.ZodObject<{
|
|
|
120
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
121
|
name?: string | undefined;
|
|
122
122
|
description?: string | undefined;
|
|
123
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
123
124
|
steps?: {
|
|
124
125
|
name?: string | undefined;
|
|
125
126
|
description?: string | undefined;
|
|
126
127
|
condition?: import('../../..').BlueNode | undefined;
|
|
127
128
|
}[] | undefined;
|
|
128
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
129
129
|
}, {
|
|
130
130
|
name?: string | undefined;
|
|
131
131
|
description?: string | undefined;
|
|
132
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
132
133
|
steps?: {
|
|
133
134
|
name?: string | undefined;
|
|
134
135
|
description?: string | undefined;
|
|
135
136
|
condition?: import('../../..').BlueNode | undefined;
|
|
136
137
|
}[] | undefined;
|
|
137
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
138
138
|
}>, "many">>;
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
140
140
|
name?: string | undefined;
|
|
@@ -149,12 +149,12 @@ export declare const ContractSchema: z.ZodObject<{
|
|
|
149
149
|
workflows?: {
|
|
150
150
|
name?: string | undefined;
|
|
151
151
|
description?: string | undefined;
|
|
152
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
152
153
|
steps?: {
|
|
153
154
|
name?: string | undefined;
|
|
154
155
|
description?: string | undefined;
|
|
155
156
|
condition?: import('../../..').BlueNode | undefined;
|
|
156
157
|
}[] | undefined;
|
|
157
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
158
158
|
}[] | undefined;
|
|
159
159
|
}, {
|
|
160
160
|
name?: string | undefined;
|
|
@@ -169,12 +169,12 @@ export declare const ContractSchema: z.ZodObject<{
|
|
|
169
169
|
workflows?: {
|
|
170
170
|
name?: string | undefined;
|
|
171
171
|
description?: string | undefined;
|
|
172
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
172
173
|
steps?: {
|
|
173
174
|
name?: string | undefined;
|
|
174
175
|
description?: string | undefined;
|
|
175
176
|
condition?: import('../../..').BlueNode | undefined;
|
|
176
177
|
}[] | undefined;
|
|
177
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
178
178
|
}[] | undefined;
|
|
179
179
|
}>;
|
|
180
180
|
export declare const ChessProperties: z.ZodObject<{
|
|
@@ -255,21 +255,21 @@ export declare const ChessContractSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
255
255
|
}, "strip", z.ZodTypeAny, {
|
|
256
256
|
name?: string | undefined;
|
|
257
257
|
description?: string | undefined;
|
|
258
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
258
259
|
steps?: {
|
|
259
260
|
name?: string | undefined;
|
|
260
261
|
description?: string | undefined;
|
|
261
262
|
condition?: import('../../..').BlueNode | undefined;
|
|
262
263
|
}[] | undefined;
|
|
263
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
264
264
|
}, {
|
|
265
265
|
name?: string | undefined;
|
|
266
266
|
description?: string | undefined;
|
|
267
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
267
268
|
steps?: {
|
|
268
269
|
name?: string | undefined;
|
|
269
270
|
description?: string | undefined;
|
|
270
271
|
condition?: import('../../..').BlueNode | undefined;
|
|
271
272
|
}[] | undefined;
|
|
272
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
273
273
|
}>, "many">>;
|
|
274
274
|
}, {
|
|
275
275
|
properties: z.ZodOptional<z.ZodObject<{
|
|
@@ -323,12 +323,12 @@ export declare const ChessContractSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
323
323
|
workflows?: {
|
|
324
324
|
name?: string | undefined;
|
|
325
325
|
description?: string | undefined;
|
|
326
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
326
327
|
steps?: {
|
|
327
328
|
name?: string | undefined;
|
|
328
329
|
description?: string | undefined;
|
|
329
330
|
condition?: import('../../..').BlueNode | undefined;
|
|
330
331
|
}[] | undefined;
|
|
331
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
332
332
|
}[] | undefined;
|
|
333
333
|
}, {
|
|
334
334
|
name?: string | undefined;
|
|
@@ -353,12 +353,12 @@ export declare const ChessContractSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
353
353
|
workflows?: {
|
|
354
354
|
name?: string | undefined;
|
|
355
355
|
description?: string | undefined;
|
|
356
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
356
357
|
steps?: {
|
|
357
358
|
name?: string | undefined;
|
|
358
359
|
description?: string | undefined;
|
|
359
360
|
condition?: import('../../..').BlueNode | undefined;
|
|
360
361
|
}[] | undefined;
|
|
361
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
362
362
|
}[] | undefined;
|
|
363
363
|
}>;
|
|
364
364
|
//# sourceMappingURL=contract.d.ts.map
|
|
@@ -49,21 +49,21 @@ export declare const schemas: {
|
|
|
49
49
|
}, "strip", import('zod').ZodTypeAny, {
|
|
50
50
|
name?: string | undefined;
|
|
51
51
|
description?: string | undefined;
|
|
52
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
52
53
|
steps?: {
|
|
53
54
|
name?: string | undefined;
|
|
54
55
|
description?: string | undefined;
|
|
55
56
|
condition?: import('../../..').BlueNode | undefined;
|
|
56
57
|
}[] | undefined;
|
|
57
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
58
58
|
}, {
|
|
59
59
|
name?: string | undefined;
|
|
60
60
|
description?: string | undefined;
|
|
61
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
61
62
|
steps?: {
|
|
62
63
|
name?: string | undefined;
|
|
63
64
|
description?: string | undefined;
|
|
64
65
|
condition?: import('../../..').BlueNode | undefined;
|
|
65
66
|
}[] | undefined;
|
|
66
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
67
67
|
}>, "many">>;
|
|
68
68
|
}, "strip", import('zod').ZodTypeAny, {
|
|
69
69
|
name?: string | undefined;
|
|
@@ -78,12 +78,12 @@ export declare const schemas: {
|
|
|
78
78
|
workflows?: {
|
|
79
79
|
name?: string | undefined;
|
|
80
80
|
description?: string | undefined;
|
|
81
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
81
82
|
steps?: {
|
|
82
83
|
name?: string | undefined;
|
|
83
84
|
description?: string | undefined;
|
|
84
85
|
condition?: import('../../..').BlueNode | undefined;
|
|
85
86
|
}[] | undefined;
|
|
86
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
87
87
|
}[] | undefined;
|
|
88
88
|
}, {
|
|
89
89
|
name?: string | undefined;
|
|
@@ -98,12 +98,12 @@ export declare const schemas: {
|
|
|
98
98
|
workflows?: {
|
|
99
99
|
name?: string | undefined;
|
|
100
100
|
description?: string | undefined;
|
|
101
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
101
102
|
steps?: {
|
|
102
103
|
name?: string | undefined;
|
|
103
104
|
description?: string | undefined;
|
|
104
105
|
condition?: import('../../..').BlueNode | undefined;
|
|
105
106
|
}[] | undefined;
|
|
106
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
107
107
|
}[] | undefined;
|
|
108
108
|
}>;
|
|
109
109
|
ChessContractSchema: import('zod').ZodObject<import("zod").objectUtil.extendShape<{
|
|
@@ -156,21 +156,21 @@ export declare const schemas: {
|
|
|
156
156
|
}, "strip", import('zod').ZodTypeAny, {
|
|
157
157
|
name?: string | undefined;
|
|
158
158
|
description?: string | undefined;
|
|
159
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
159
160
|
steps?: {
|
|
160
161
|
name?: string | undefined;
|
|
161
162
|
description?: string | undefined;
|
|
162
163
|
condition?: import('../../..').BlueNode | undefined;
|
|
163
164
|
}[] | undefined;
|
|
164
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
165
165
|
}, {
|
|
166
166
|
name?: string | undefined;
|
|
167
167
|
description?: string | undefined;
|
|
168
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
168
169
|
steps?: {
|
|
169
170
|
name?: string | undefined;
|
|
170
171
|
description?: string | undefined;
|
|
171
172
|
condition?: import('../../..').BlueNode | undefined;
|
|
172
173
|
}[] | undefined;
|
|
173
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
174
174
|
}>, "many">>;
|
|
175
175
|
}, {
|
|
176
176
|
properties: import('zod').ZodOptional<import('zod').ZodObject<{
|
|
@@ -224,12 +224,12 @@ export declare const schemas: {
|
|
|
224
224
|
workflows?: {
|
|
225
225
|
name?: string | undefined;
|
|
226
226
|
description?: string | undefined;
|
|
227
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
227
228
|
steps?: {
|
|
228
229
|
name?: string | undefined;
|
|
229
230
|
description?: string | undefined;
|
|
230
231
|
condition?: import('../../..').BlueNode | undefined;
|
|
231
232
|
}[] | undefined;
|
|
232
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
233
233
|
}[] | undefined;
|
|
234
234
|
}, {
|
|
235
235
|
name?: string | undefined;
|
|
@@ -254,12 +254,12 @@ export declare const schemas: {
|
|
|
254
254
|
workflows?: {
|
|
255
255
|
name?: string | undefined;
|
|
256
256
|
description?: string | undefined;
|
|
257
|
+
trigger?: import('../../..').BlueNode | undefined;
|
|
257
258
|
steps?: {
|
|
258
259
|
name?: string | undefined;
|
|
259
260
|
description?: string | undefined;
|
|
260
261
|
condition?: import('../../..').BlueNode | undefined;
|
|
261
262
|
}[] | undefined;
|
|
262
|
-
trigger?: import('../../..').BlueNode | undefined;
|
|
263
263
|
}[] | undefined;
|
|
264
264
|
}>;
|
|
265
265
|
UpdateStepSchema: import('zod').ZodObject<import("zod").objectUtil.extendShape<{
|
|
@@ -283,21 +283,21 @@ export declare const schemas: {
|
|
|
283
283
|
}>, "strip", import('zod').ZodTypeAny, {
|
|
284
284
|
name?: string | undefined;
|
|
285
285
|
description?: string | undefined;
|
|
286
|
+
condition?: import('../../..').BlueNode | undefined;
|
|
286
287
|
changeset?: {
|
|
287
288
|
path?: string | undefined;
|
|
288
289
|
val?: import('../../..').BlueNode | undefined;
|
|
289
290
|
op?: "add" | "replace" | "remove" | undefined;
|
|
290
291
|
}[] | undefined;
|
|
291
|
-
condition?: import('../../..').BlueNode | undefined;
|
|
292
292
|
}, {
|
|
293
293
|
name?: string | undefined;
|
|
294
294
|
description?: string | undefined;
|
|
295
|
+
condition?: import('../../..').BlueNode | undefined;
|
|
295
296
|
changeset?: {
|
|
296
297
|
path?: string | undefined;
|
|
297
298
|
val?: import('../../..').BlueNode | undefined;
|
|
298
299
|
op?: "add" | "replace" | "remove" | undefined;
|
|
299
300
|
}[] | undefined;
|
|
300
|
-
condition?: import('../../..').BlueNode | undefined;
|
|
301
301
|
}>;
|
|
302
302
|
TriggerEventStepSchema: import('zod').ZodObject<import("zod").objectUtil.extendShape<{
|
|
303
303
|
name: import('zod').ZodOptional<import('zod').ZodString>;
|
|
@@ -308,13 +308,13 @@ export declare const schemas: {
|
|
|
308
308
|
}>, "strip", import('zod').ZodTypeAny, {
|
|
309
309
|
name?: string | undefined;
|
|
310
310
|
description?: string | undefined;
|
|
311
|
-
event?: import('../../..').BlueNode | undefined;
|
|
312
311
|
condition?: import('../../..').BlueNode | undefined;
|
|
312
|
+
event?: import('../../..').BlueNode | undefined;
|
|
313
313
|
}, {
|
|
314
314
|
name?: string | undefined;
|
|
315
315
|
description?: string | undefined;
|
|
316
|
-
event?: import('../../..').BlueNode | undefined;
|
|
317
316
|
condition?: import('../../..').BlueNode | undefined;
|
|
317
|
+
event?: import('../../..').BlueNode | undefined;
|
|
318
318
|
}>;
|
|
319
319
|
JavaScriptCodeStepSchema: import('zod').ZodObject<import("zod").objectUtil.extendShape<{
|
|
320
320
|
name: import('zod').ZodOptional<import('zod').ZodString>;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { NodeProvider } from '../NodeProvider';
|
|
2
2
|
import { BlueNode } from '../model';
|
|
3
3
|
import { TransformationProcessorProvider } from './interfaces';
|
|
4
|
-
import {
|
|
4
|
+
import { BlueIdsMappingGenerator } from './utils/BlueIdsMappingGenerator';
|
|
5
|
+
export interface PreprocessorOptions {
|
|
6
|
+
nodeProvider?: NodeProvider;
|
|
7
|
+
processorProvider?: TransformationProcessorProvider;
|
|
8
|
+
blueIdsMappingGenerator?: BlueIdsMappingGenerator;
|
|
9
|
+
}
|
|
5
10
|
/**
|
|
6
11
|
* Preprocessor class for transforming BlueNodes
|
|
7
12
|
*/
|
|
@@ -10,26 +15,12 @@ export declare class Preprocessor {
|
|
|
10
15
|
private processorProvider;
|
|
11
16
|
private nodeProvider;
|
|
12
17
|
private defaultSimpleBlue;
|
|
18
|
+
private blueIdsMappingGenerator;
|
|
13
19
|
/**
|
|
14
|
-
* Creates a new Preprocessor with the specified
|
|
15
|
-
* @param
|
|
16
|
-
* @param nodeProvider - The NodeProvider to use for resolving nodes (optional)
|
|
17
|
-
*/
|
|
18
|
-
constructor(processorProviderOrNodeProvider: TransformationProcessorProvider | NodeProvider, nodeProvider?: NodeProvider);
|
|
19
|
-
/**
|
|
20
|
-
* Registers additional BlueIds collections for dynamic mapping generation
|
|
21
|
-
* @param blueIdsCollections - Array of BlueIds objects to register
|
|
22
|
-
*/
|
|
23
|
-
static registerBlueIds(...blueIdsCollections: BlueIdsRecord[]): void;
|
|
24
|
-
/**
|
|
25
|
-
* Resets BlueIds collections to defaults (core and myos only)
|
|
26
|
-
*/
|
|
27
|
-
static resetBlueIdsToDefaults(): void;
|
|
28
|
-
/**
|
|
29
|
-
* Gets all currently registered BlueIds
|
|
30
|
-
* @returns Merged object containing all BlueIds from all collections
|
|
20
|
+
* Creates a new Preprocessor with the specified options
|
|
21
|
+
* @param options - Configuration options for the preprocessor
|
|
31
22
|
*/
|
|
32
|
-
|
|
23
|
+
constructor(options?: PreprocessorOptions);
|
|
33
24
|
/**
|
|
34
25
|
* Preprocesses a document node
|
|
35
26
|
* @param document - The document node to preprocess
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preprocessor.d.ts","sourceRoot":"","sources":["../../../src/lib/preprocess/Preprocessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIpC,OAAO,EAEL,+BAA+B,EAChC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Preprocessor.d.ts","sourceRoot":"","sources":["../../../src/lib/preprocess/Preprocessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAIpC,OAAO,EAEL,+BAA+B,EAChC,MAAM,cAAc,CAAC;AAQtB,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E,MAAM,WAAW,mBAAmB;IAClC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,iBAAiB,CAAC,EAAE,+BAA+B,CAAC;IACpD,uBAAuB,CAAC,EAAE,uBAAuB,CAAC;CACnD;AAED;;GAEG;AACH,qBAAa,YAAY;IACvB,gBAAuB,oBAAoB,kDACM;IAEjD,OAAO,CAAC,iBAAiB,CAAkC;IAC3D,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,iBAAiB,CAAyB;IAClD,OAAO,CAAC,uBAAuB,CAA0B;IAEzD;;;OAGG;gBACS,OAAO,GAAE,mBAAwB;IAqB7C;;;;OAIG;IACI,UAAU,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ;IAI/C;;;;OAIG;IACI,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ;IAI9D;;;;;OAKG;IACH,OAAO,CAAC,qBAAqB;IAqC7B;;;OAGG;WACW,mBAAmB,IAAI,+BAA+B;IAyBpE;;;;OAIG;IACH,OAAO,CAAC,iBAAiB;IASzB;;OAEG;IACH,OAAO,CAAC,qBAAqB;CAa9B"}
|
|
@@ -8,46 +8,46 @@ export type BlueIdsRecord = Record<string, string>;
|
|
|
8
8
|
* from various BlueIds collections, making it easy to extend with new collections.
|
|
9
9
|
*/
|
|
10
10
|
export declare class BlueIdsMappingGenerator {
|
|
11
|
-
private
|
|
11
|
+
private blueIdsCollections;
|
|
12
12
|
/**
|
|
13
13
|
* Initializes the generator with default BlueIds collections
|
|
14
14
|
* @param defaultCollections - Array of default BlueIds objects to initialize with
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
initialize(...defaultCollections: BlueIdsRecord[]): void;
|
|
17
17
|
/**
|
|
18
18
|
* Registers additional BlueIds collections for mapping generation
|
|
19
19
|
* @param blueIdsCollections - Array of BlueIds objects to register
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
registerBlueIds(...blueIdsCollections: BlueIdsRecord[]): void;
|
|
22
22
|
/**
|
|
23
23
|
* Generates YAML mappings section from all registered BlueIds collections
|
|
24
24
|
* @param transformationBlueId - The BlueId for the transformation type (defaults to the standard one)
|
|
25
25
|
* @returns YAML string with mappings for all BlueIds
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
generateMappingsYaml(transformationBlueId?: string): string;
|
|
28
28
|
/**
|
|
29
29
|
* Gets all currently registered BlueIds as a merged object
|
|
30
30
|
* @returns Merged object containing all BlueIds from all collections
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
getAllBlueIds(): Record<string, string>;
|
|
33
33
|
/**
|
|
34
34
|
* Gets the names of all registered BlueIds
|
|
35
35
|
* @returns Array of all BlueId names
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
getAllBlueIdNames(): string[];
|
|
38
38
|
/**
|
|
39
39
|
* Clears all registered BlueIds collections
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
clear(): void;
|
|
42
42
|
/**
|
|
43
43
|
* Gets the count of registered BlueIds collections
|
|
44
44
|
* @returns Number of registered collections
|
|
45
45
|
*/
|
|
46
|
-
|
|
46
|
+
getCollectionCount(): number;
|
|
47
47
|
/**
|
|
48
48
|
* Gets the total count of unique BlueIds across all collections
|
|
49
49
|
* @returns Number of unique BlueIds
|
|
50
50
|
*/
|
|
51
|
-
|
|
51
|
+
getTotalBlueIdCount(): number;
|
|
52
52
|
}
|
|
53
53
|
//# sourceMappingURL=BlueIdsMappingGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BlueIdsMappingGenerator.d.ts","sourceRoot":"","sources":["../../../../src/lib/preprocess/utils/BlueIdsMappingGenerator.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnD;;;;GAIG;AACH,qBAAa,uBAAuB;IAClC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"BlueIdsMappingGenerator.d.ts","sourceRoot":"","sources":["../../../../src/lib/preprocess/utils/BlueIdsMappingGenerator.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEnD;;;;GAIG;AACH,qBAAa,uBAAuB;IAClC,OAAO,CAAC,kBAAkB,CAAuB;IAEjD;;;OAGG;IACH,UAAU,CAAC,GAAG,kBAAkB,EAAE,aAAa,EAAE,GAAG,IAAI;IAIxD;;;OAGG;IACH,eAAe,CAAC,GAAG,kBAAkB,EAAE,aAAa,EAAE,GAAG,IAAI;IAI7D;;;;OAIG;IACH,oBAAoB,CAClB,oBAAoB,SAAiD,GACpE,MAAM;IAmBT;;;OAGG;IACH,aAAa,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAUvC;;;OAGG;IACH,iBAAiB,IAAI,MAAM,EAAE;IAI7B;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;;OAGG;IACH,kBAAkB,IAAI,MAAM;IAI5B;;;OAGG;IACH,mBAAmB,IAAI,MAAM;CAG9B"}
|
|
@@ -5,6 +5,8 @@ export { BlueIdToCid } from './BlueIdToCid';
|
|
|
5
5
|
export { JsonCanonicalizer } from './JsonCanonicalizer';
|
|
6
6
|
export * from './NodeToMapListOrValue';
|
|
7
7
|
export * as Properties from './Properties';
|
|
8
|
-
export * from './TypeSchemaResolver';
|
|
9
8
|
export * from './NodeTransformer';
|
|
9
|
+
export * from './NodePatch';
|
|
10
|
+
export * from './TypeSchema';
|
|
11
|
+
export * from './TypeSchemaResolver';
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,wBAAwB,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,cAAc,WAAW,CAAC;AAC1B,cAAc,oBAAoB,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,wBAAwB,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blue-labs/language",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.1",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@blue-labs/shared-utils": "1.
|
|
6
|
-
"@types/big.js": "6.2.2",
|
|
7
|
-
"@types/js-yaml": "4.0.9",
|
|
8
|
-
"base32.js": "0.1.0",
|
|
9
|
-
"big.js": "6.2.1",
|
|
10
|
-
"bs58": "6.0.0",
|
|
11
|
-
"
|
|
12
|
-
"js-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"type-fest": "4.20.1",
|
|
16
|
-
"zod": "3.23.8"
|
|
5
|
+
"@blue-labs/shared-utils": "1.21.1",
|
|
6
|
+
"@types/big.js": "^6.2.2",
|
|
7
|
+
"@types/js-yaml": "^4.0.9",
|
|
8
|
+
"base32.js": "^0.1.0",
|
|
9
|
+
"big.js": "^6.2.1",
|
|
10
|
+
"bs58": "^6.0.0",
|
|
11
|
+
"js-sha256": "^0.11.0",
|
|
12
|
+
"js-yaml": "^4.1.0",
|
|
13
|
+
"radash": "^12.1.0",
|
|
14
|
+
"type-fest": "^4.20.1"
|
|
17
15
|
},
|
|
18
16
|
"main": "./dist/index.js",
|
|
19
17
|
"module": "./dist/index.mjs",
|
|
@@ -43,10 +41,5 @@
|
|
|
43
41
|
},
|
|
44
42
|
"peerDependencies": {
|
|
45
43
|
"zod": "^3.20.0"
|
|
46
|
-
},
|
|
47
|
-
"peerDependenciesMeta": {
|
|
48
|
-
"zod": {
|
|
49
|
-
"optional": false
|
|
50
|
-
}
|
|
51
44
|
}
|
|
52
45
|
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { ContractProcessor, DocumentNode, EventNodePayload, ProcessingResult } from './types';
|
|
2
|
-
import { Blue } from '../Blue';
|
|
3
|
-
/**
|
|
4
|
-
* BlueDocumentProcessor - Main orchestrator for document processing
|
|
5
|
-
*
|
|
6
|
-
* Orchestrates the document processing pipeline, managing state transitions
|
|
7
|
-
* and event propagation through the registered contract processors.
|
|
8
|
-
*/
|
|
9
|
-
export declare class BlueDocumentProcessor {
|
|
10
|
-
private readonly blue;
|
|
11
|
-
private taskCounter;
|
|
12
|
-
private eventCounter;
|
|
13
|
-
private readonly registry;
|
|
14
|
-
private readonly queue;
|
|
15
|
-
private readonly router;
|
|
16
|
-
private readonly checkpointCache;
|
|
17
|
-
/**
|
|
18
|
-
* Creates a new document processor
|
|
19
|
-
*
|
|
20
|
-
* @param processors - Initial list of processors to register
|
|
21
|
-
*/
|
|
22
|
-
constructor(blue: Blue, processors?: ContractProcessor[]);
|
|
23
|
-
/**
|
|
24
|
-
* Registers a new contract processor
|
|
25
|
-
*
|
|
26
|
-
* @param cp - The processor to register
|
|
27
|
-
* @param orderHint - Optional priority value for execution order
|
|
28
|
-
*/
|
|
29
|
-
register(cp: ContractProcessor, orderHint?: number): void;
|
|
30
|
-
/**
|
|
31
|
-
* Initializes a document and runs all init events
|
|
32
|
-
*
|
|
33
|
-
* @param document - The document to initialize
|
|
34
|
-
* @returns Processing result with final state and emitted events
|
|
35
|
-
*/
|
|
36
|
-
initialise(document: DocumentNode): Promise<ProcessingResult>;
|
|
37
|
-
/**
|
|
38
|
-
* Processes a batch of events against the document
|
|
39
|
-
*
|
|
40
|
-
* @param document - The document to process events against
|
|
41
|
-
* @param incoming - List of event payloads to process
|
|
42
|
-
* @returns Processing result with final state and emitted events
|
|
43
|
-
*/
|
|
44
|
-
processEvents(document: DocumentNode, incoming: EventNodePayload[]): Promise<ProcessingResult>;
|
|
45
|
-
/**
|
|
46
|
-
* Collects initialization events from contract processors
|
|
47
|
-
*/
|
|
48
|
-
private bootstrapContracts;
|
|
49
|
-
/**
|
|
50
|
-
* Drains the task queue and applies all actions
|
|
51
|
-
*/
|
|
52
|
-
private drainQueue;
|
|
53
|
-
}
|
|
54
|
-
//# sourceMappingURL=BlueDocumentProcessor.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BlueDocumentProcessor.d.ts","sourceRoot":"","sources":["../../../src/lib/processor/BlueDocumentProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,YAAY,EAEZ,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAYjB,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B;;;;;GAKG;AACH,qBAAa,qBAAqB;IAc9B,OAAO,CAAC,QAAQ,CAAC,IAAI;IAbvB,OAAO,CAAC,WAAW,CAAK;IACxB,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;IAC5C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAY;IAClC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAc;IACrC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAyB;IAEzD;;;;OAIG;gBAEgB,IAAI,EAAE,IAAI,EAC3B,UAAU,GAAE,iBAAiB,EAAO;IAkBtC;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,EAAE,iBAAiB,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI;IAIzD;;;;;OAKG;IACG,UAAU,CAAC,QAAQ,EAAE,YAAY,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAYnE;;;;;;OAMG;IACG,aAAa,CACjB,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,gBAAgB,EAAE,GAC3B,OAAO,CAAC,gBAAgB,CAAC;IAyB5B;;OAEG;YACW,kBAAkB;IAoBhC;;OAEG;YACW,UAAU;CAmFzB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { DocumentNode, ProcessingContext, Patch, EventNode, ProcessingAction, HandlerTask } from './types';
|
|
2
|
-
import { Blue } from '../Blue';
|
|
3
|
-
export declare class InternalContext implements ProcessingContext {
|
|
4
|
-
private getDocument;
|
|
5
|
-
private taskInfo;
|
|
6
|
-
private blue;
|
|
7
|
-
private onFlush?;
|
|
8
|
-
private readonly actions;
|
|
9
|
-
constructor(getDocument: () => DocumentNode, taskInfo: HandlerTask, blue: Blue, onFlush?: ((actions: ProcessingAction[]) => Promise<void>) | undefined);
|
|
10
|
-
get(path: string): string | boolean | import('..').BlueNode | import('..').BigIntegerNumber | import('..').BigDecimalNumber | null | undefined;
|
|
11
|
-
addPatch(patch: Patch): void;
|
|
12
|
-
emitEvent(event: EventNode): void;
|
|
13
|
-
flush(): Promise<ProcessingAction[]>;
|
|
14
|
-
getNodePath(): string;
|
|
15
|
-
resolvePath(path: string): string;
|
|
16
|
-
getTaskInfo(): HandlerTask | undefined;
|
|
17
|
-
getBlue(): Blue;
|
|
18
|
-
loadExternalModule(url: string): Promise<string>;
|
|
19
|
-
loadBlueContent(blueId: string): Promise<string>;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/lib/processor/context.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,KAAK,EACL,SAAS,EACT,gBAAgB,EAChB,WAAW,EACZ,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,qBAAa,eAAgB,YAAW,iBAAiB;IAIrD,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,OAAO,CAAC;IANlB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA0B;gBAGxC,WAAW,EAAE,MAAM,YAAY,EAC/B,QAAQ,EAAE,WAAW,EACrB,IAAI,EAAE,IAAI,EACV,OAAO,CAAC,GAAE,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,OAAO,CAAC,IAAI,CAAC,aAAA;IAGlE,GAAG,CAAC,IAAI,EAAE,MAAM;IAMhB,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAU5B,SAAS,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAa3B,KAAK,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAQ1C,WAAW,IAAI,MAAM;IAIrB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAIjC,WAAW,IAAI,WAAW,GAAG,SAAS;IAItC,OAAO,IAAI,IAAI;IAMf,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAOhD,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;CAGjD"}
|