@blue-labs/language 1.20.0
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/LICENSE +21 -0
- package/README.md +133 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +34 -0
- package/dist/index.mjs +4476 -0
- package/dist/lib/Blue.d.ts +99 -0
- package/dist/lib/Blue.d.ts.map +1 -0
- package/dist/lib/NodeProvider.d.ts +26 -0
- package/dist/lib/NodeProvider.d.ts.map +1 -0
- package/dist/lib/index.d.ts +9 -0
- package/dist/lib/index.d.ts.map +1 -0
- package/dist/lib/mapping/AnyConverter.d.ts +6 -0
- package/dist/lib/mapping/AnyConverter.d.ts.map +1 -0
- package/dist/lib/mapping/ArrayConverter.d.ts +10 -0
- package/dist/lib/mapping/ArrayConverter.d.ts.map +1 -0
- package/dist/lib/mapping/ComplexObjectConverter.d.ts +15 -0
- package/dist/lib/mapping/ComplexObjectConverter.d.ts.map +1 -0
- package/dist/lib/mapping/Converter.d.ts +6 -0
- package/dist/lib/mapping/Converter.d.ts.map +1 -0
- package/dist/lib/mapping/ConverterFactory.d.ts +14 -0
- package/dist/lib/mapping/ConverterFactory.d.ts.map +1 -0
- package/dist/lib/mapping/MapConverter.d.ts +14 -0
- package/dist/lib/mapping/MapConverter.d.ts.map +1 -0
- package/dist/lib/mapping/NodeToObjectConverter.d.ts +13 -0
- package/dist/lib/mapping/NodeToObjectConverter.d.ts.map +1 -0
- package/dist/lib/mapping/NullConverter.d.ts +5 -0
- package/dist/lib/mapping/NullConverter.d.ts.map +1 -0
- package/dist/lib/mapping/PrimitiveConverter.d.ts +7 -0
- package/dist/lib/mapping/PrimitiveConverter.d.ts.map +1 -0
- package/dist/lib/mapping/SetConverter.d.ts +10 -0
- package/dist/lib/mapping/SetConverter.d.ts.map +1 -0
- package/dist/lib/mapping/TupleConverter.d.ts +13 -0
- package/dist/lib/mapping/TupleConverter.d.ts.map +1 -0
- package/dist/lib/mapping/UnknownConverter.d.ts +6 -0
- package/dist/lib/mapping/UnknownConverter.d.ts.map +1 -0
- package/dist/lib/mapping/ValueConverter.d.ts +12 -0
- package/dist/lib/mapping/ValueConverter.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/contract.d.ts +364 -0
- package/dist/lib/mapping/__tests__/schema/contract.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/doctor.d.ts +19 -0
- package/dist/lib/mapping/__tests__/schema/doctor.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/index.d.ts +3389 -0
- package/dist/lib/mapping/__tests__/schema/index.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/nurse.d.ts +19 -0
- package/dist/lib/mapping/__tests__/schema/nurse.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/person.d.ts +15 -0
- package/dist/lib/mapping/__tests__/schema/person.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/personDictionaryExample.d.ts +75 -0
- package/dist/lib/mapping/__tests__/schema/personDictionaryExample.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/personListExample.d.ts +61 -0
- package/dist/lib/mapping/__tests__/schema/personListExample.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/personObjectExample.d.ts +61 -0
- package/dist/lib/mapping/__tests__/schema/personObjectExample.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/personValueExample.d.ts +25 -0
- package/dist/lib/mapping/__tests__/schema/personValueExample.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/x.d.ts +67 -0
- package/dist/lib/mapping/__tests__/schema/x.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/x1.d.ts +73 -0
- package/dist/lib/mapping/__tests__/schema/x1.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/x11.d.ts +80 -0
- package/dist/lib/mapping/__tests__/schema/x11.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/x12.d.ts +80 -0
- package/dist/lib/mapping/__tests__/schema/x12.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/x2.d.ts +67 -0
- package/dist/lib/mapping/__tests__/schema/x2.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/x3.d.ts +77 -0
- package/dist/lib/mapping/__tests__/schema/x3.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/xSubscription.d.ts +10 -0
- package/dist/lib/mapping/__tests__/schema/xSubscription.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/y.d.ts +990 -0
- package/dist/lib/mapping/__tests__/schema/y.d.ts.map +1 -0
- package/dist/lib/mapping/__tests__/schema/y1.d.ts +1381 -0
- package/dist/lib/mapping/__tests__/schema/y1.d.ts.map +1 -0
- package/dist/lib/mapping/index.d.ts +4 -0
- package/dist/lib/mapping/index.d.ts.map +1 -0
- package/dist/lib/mapping/serializeBlueAnnotated.d.ts +3 -0
- package/dist/lib/mapping/serializeBlueAnnotated.d.ts.map +1 -0
- package/dist/lib/model/BigDecimalNumber.d.ts +9 -0
- package/dist/lib/model/BigDecimalNumber.d.ts.map +1 -0
- package/dist/lib/model/BigIntegerNumber.d.ts +9 -0
- package/dist/lib/model/BigIntegerNumber.d.ts.map +1 -0
- package/dist/lib/model/Node.d.ts +53 -0
- package/dist/lib/model/Node.d.ts.map +1 -0
- package/dist/lib/model/NodeDeserializer.d.ts +8 -0
- package/dist/lib/model/NodeDeserializer.d.ts.map +1 -0
- package/dist/lib/model/index.d.ts +5 -0
- package/dist/lib/model/index.d.ts.map +1 -0
- package/dist/lib/preprocess/BlueDirectivePreprocessor.d.ts +85 -0
- package/dist/lib/preprocess/BlueDirectivePreprocessor.d.ts.map +1 -0
- package/dist/lib/preprocess/Preprocessor.d.ts +68 -0
- package/dist/lib/preprocess/Preprocessor.d.ts.map +1 -0
- package/dist/lib/preprocess/index.d.ts +5 -0
- package/dist/lib/preprocess/index.d.ts.map +1 -0
- package/dist/lib/preprocess/interfaces.d.ts +24 -0
- package/dist/lib/preprocess/interfaces.d.ts.map +1 -0
- package/dist/lib/preprocess/processor/InferBasicTypesForUntypedValues.d.ts +20 -0
- package/dist/lib/preprocess/processor/InferBasicTypesForUntypedValues.d.ts.map +1 -0
- package/dist/lib/preprocess/processor/ReplaceInlineValuesForTypeAttributesWithImports.d.ts +23 -0
- package/dist/lib/preprocess/processor/ReplaceInlineValuesForTypeAttributesWithImports.d.ts.map +1 -0
- package/dist/lib/preprocess/processor/index.d.ts +3 -0
- package/dist/lib/preprocess/processor/index.d.ts.map +1 -0
- package/dist/lib/preprocess/utils/BlueIdsMappingGenerator.d.ts +53 -0
- package/dist/lib/preprocess/utils/BlueIdsMappingGenerator.d.ts.map +1 -0
- package/dist/lib/processor/BlueDocumentProcessor.d.ts +54 -0
- package/dist/lib/processor/BlueDocumentProcessor.d.ts.map +1 -0
- package/dist/lib/processor/context.d.ts +21 -0
- package/dist/lib/processor/context.d.ts.map +1 -0
- package/dist/lib/processor/processors/BaseChannelProcessor.d.ts +27 -0
- package/dist/lib/processor/processors/BaseChannelProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/ChannelEventCheckpointProcessor.d.ts +13 -0
- package/dist/lib/processor/processors/ChannelEventCheckpointProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/CompositeTimelineChannelProcessor.d.ts +9 -0
- package/dist/lib/processor/processors/CompositeTimelineChannelProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/DocumentUpdateChannelProcessor.d.ts +9 -0
- package/dist/lib/processor/processors/DocumentUpdateChannelProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/EmbeddedNodeChannelProcessor.d.ts +9 -0
- package/dist/lib/processor/processors/EmbeddedNodeChannelProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/MyOSAgentChannelProcessor.d.ts +60 -0
- package/dist/lib/processor/processors/MyOSAgentChannelProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/MyOSTimelineChannelProcessor.d.ts +9 -0
- package/dist/lib/processor/processors/MyOSTimelineChannelProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/OperationProcessor.d.ts +11 -0
- package/dist/lib/processor/processors/OperationProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/ProcessEmbeddedProcessor.d.ts +10 -0
- package/dist/lib/processor/processors/ProcessEmbeddedProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowOperationProcessor.d.ts +12 -0
- package/dist/lib/processor/processors/SequentialWorkflowOperationProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.d.ts +15 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/index.d.ts +2 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/index.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/JavaScriptCodeExecutor.d.ts +8 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/JavaScriptCodeExecutor.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.d.ts +8 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.d.ts +12 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/types.d.ts +7 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/types.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/BindingsFactory.d.ts +12 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/BindingsFactory.d.ts.map +1 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.d.ts +59 -0
- package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.d.ts.map +1 -0
- package/dist/lib/processor/processors/TimelineChannelProcessor.d.ts +9 -0
- package/dist/lib/processor/processors/TimelineChannelProcessor.d.ts.map +1 -0
- package/dist/lib/processor/processors/index.d.ts +12 -0
- package/dist/lib/processor/processors/index.d.ts.map +1 -0
- package/dist/lib/processor/queue/TaskKey.d.ts +22 -0
- package/dist/lib/processor/queue/TaskKey.d.ts.map +1 -0
- package/dist/lib/processor/queue/TaskQueue.d.ts +31 -0
- package/dist/lib/processor/queue/TaskQueue.d.ts.map +1 -0
- package/dist/lib/processor/registry/ContractRegistry.d.ts +47 -0
- package/dist/lib/processor/registry/ContractRegistry.d.ts.map +1 -0
- package/dist/lib/processor/routing/EventRouter.d.ts +51 -0
- package/dist/lib/processor/routing/EventRouter.d.ts.map +1 -0
- package/dist/lib/processor/types.d.ts +112 -0
- package/dist/lib/processor/types.d.ts.map +1 -0
- package/dist/lib/processor/utils/CheckpointCache.d.ts +9 -0
- package/dist/lib/processor/utils/CheckpointCache.d.ts.map +1 -0
- package/dist/lib/processor/utils/EventTraceManager.d.ts +46 -0
- package/dist/lib/processor/utils/EventTraceManager.d.ts.map +1 -0
- package/dist/lib/processor/utils/checkpoint.d.ts +3 -0
- package/dist/lib/processor/utils/checkpoint.d.ts.map +1 -0
- package/dist/lib/processor/utils/document.d.ts +19 -0
- package/dist/lib/processor/utils/document.d.ts.map +1 -0
- package/dist/lib/processor/utils/exceptions.d.ts +28 -0
- package/dist/lib/processor/utils/exceptions.d.ts.map +1 -0
- package/dist/lib/processor/utils/fetchText.d.ts +2 -0
- package/dist/lib/processor/utils/fetchText.d.ts.map +1 -0
- package/dist/lib/processor/utils/logPatchError.d.ts +3 -0
- package/dist/lib/processor/utils/logPatchError.d.ts.map +1 -0
- package/dist/lib/processor/utils/path.d.ts +2 -0
- package/dist/lib/processor/utils/path.d.ts.map +1 -0
- package/dist/lib/processor/utils/typeGuard.d.ts +5 -0
- package/dist/lib/processor/utils/typeGuard.d.ts.map +1 -0
- package/dist/lib/provider/BaseContentNodeProvider.d.ts +9 -0
- package/dist/lib/provider/BaseContentNodeProvider.d.ts.map +1 -0
- package/dist/lib/provider/BootstrapProvider.d.ts +13 -0
- package/dist/lib/provider/BootstrapProvider.d.ts.map +1 -0
- package/dist/lib/provider/InMemoryNodeProvider.d.ts +13 -0
- package/dist/lib/provider/InMemoryNodeProvider.d.ts.map +1 -0
- package/dist/lib/provider/SequentialNodeProvider.d.ts +14 -0
- package/dist/lib/provider/SequentialNodeProvider.d.ts.map +1 -0
- package/dist/lib/provider/UrlContentFetcher.d.ts +65 -0
- package/dist/lib/provider/UrlContentFetcher.d.ts.map +1 -0
- package/dist/lib/provider/index.d.ts +6 -0
- package/dist/lib/provider/index.d.ts.map +1 -0
- package/dist/lib/utils/Base58Sha256Provider.d.ts +11 -0
- package/dist/lib/utils/Base58Sha256Provider.d.ts.map +1 -0
- package/dist/lib/utils/BlueIdCalculator.d.ts +22 -0
- package/dist/lib/utils/BlueIdCalculator.d.ts.map +1 -0
- package/dist/lib/utils/BlueIdResolver.d.ts +9 -0
- package/dist/lib/utils/BlueIdResolver.d.ts.map +1 -0
- package/dist/lib/utils/BlueIdToCid.d.ts +4 -0
- package/dist/lib/utils/BlueIdToCid.d.ts.map +1 -0
- package/dist/lib/utils/BlueIds.d.ts +7 -0
- package/dist/lib/utils/BlueIds.d.ts.map +1 -0
- package/dist/lib/utils/CidToBlueId.d.ts +4 -0
- package/dist/lib/utils/CidToBlueId.d.ts.map +1 -0
- package/dist/lib/utils/CryptoEnvironment.d.ts +13 -0
- package/dist/lib/utils/CryptoEnvironment.d.ts.map +1 -0
- package/dist/lib/utils/JsonCanonicalizer.d.ts +4 -0
- package/dist/lib/utils/JsonCanonicalizer.d.ts.map +1 -0
- package/dist/lib/utils/NodeExtender.d.ts +31 -0
- package/dist/lib/utils/NodeExtender.d.ts.map +1 -0
- package/dist/lib/utils/NodePatch/NodePatch.d.ts +28 -0
- package/dist/lib/utils/NodePatch/NodePatch.d.ts.map +1 -0
- package/dist/lib/utils/NodePatch/index.d.ts +2 -0
- package/dist/lib/utils/NodePatch/index.d.ts.map +1 -0
- package/dist/lib/utils/NodePatch/patch-operations.d.ts +8 -0
- package/dist/lib/utils/NodePatch/patch-operations.d.ts.map +1 -0
- package/dist/lib/utils/NodePatch/patch-utils.d.ts +34 -0
- package/dist/lib/utils/NodePatch/patch-utils.d.ts.map +1 -0
- package/dist/lib/utils/NodePathAccessor.d.ts +8 -0
- package/dist/lib/utils/NodePathAccessor.d.ts.map +1 -0
- package/dist/lib/utils/NodeProviderWrapper.d.ts +13 -0
- package/dist/lib/utils/NodeProviderWrapper.d.ts.map +1 -0
- package/dist/lib/utils/NodeToMapListOrValue.d.ts +24 -0
- package/dist/lib/utils/NodeToMapListOrValue.d.ts.map +1 -0
- package/dist/lib/utils/NodeTransformer.d.ts +14 -0
- package/dist/lib/utils/NodeTransformer.d.ts.map +1 -0
- package/dist/lib/utils/Properties.d.ts +31 -0
- package/dist/lib/utils/Properties.d.ts.map +1 -0
- package/dist/lib/utils/TinyQueue.d.ts +12 -0
- package/dist/lib/utils/TinyQueue.d.ts.map +1 -0
- package/dist/lib/utils/TypeSchema.d.ts +6 -0
- package/dist/lib/utils/TypeSchema.d.ts.map +1 -0
- package/dist/lib/utils/TypeSchemaResolver.d.ts +11 -0
- package/dist/lib/utils/TypeSchemaResolver.d.ts.map +1 -0
- package/dist/lib/utils/__tests__/calculateCID.d.ts +3 -0
- package/dist/lib/utils/__tests__/calculateCID.d.ts.map +1 -0
- package/dist/lib/utils/index.d.ts +10 -0
- package/dist/lib/utils/index.d.ts.map +1 -0
- package/dist/lib/utils/limits/Limits.d.ts +31 -0
- package/dist/lib/utils/limits/Limits.d.ts.map +1 -0
- package/dist/lib/utils/limits/NoLimits.d.ts +25 -0
- package/dist/lib/utils/limits/NoLimits.d.ts.map +1 -0
- package/dist/lib/utils/limits/PathLimits.d.ts +100 -0
- package/dist/lib/utils/limits/PathLimits.d.ts.map +1 -0
- package/dist/lib/utils/limits/index.d.ts +9 -0
- package/dist/lib/utils/limits/index.d.ts.map +1 -0
- package/dist/repo/core/blue-ids/index.d.ts +21 -0
- package/dist/repo/core/blue-ids/index.d.ts.map +1 -0
- package/dist/repo/core/index.d.ts +191 -0
- package/dist/repo/core/index.d.ts.map +1 -0
- package/dist/repo/core/schema/Channel.d.ts +13 -0
- package/dist/repo/core/schema/Channel.d.ts.map +1 -0
- package/dist/repo/core/schema/CompositeTimelineChannel.d.ts +17 -0
- package/dist/repo/core/schema/CompositeTimelineChannel.d.ts.map +1 -0
- package/dist/repo/core/schema/DocumentUpdateChannel.d.ts +17 -0
- package/dist/repo/core/schema/DocumentUpdateChannel.d.ts.map +1 -0
- package/dist/repo/core/schema/EmbeddedNodeChannel.d.ts +17 -0
- package/dist/repo/core/schema/EmbeddedNodeChannel.d.ts.map +1 -0
- package/dist/repo/core/schema/JavaScriptCode.d.ts +10 -0
- package/dist/repo/core/schema/JavaScriptCode.d.ts.map +1 -0
- package/dist/repo/core/schema/JsonPatchEntry.d.ts +22 -0
- package/dist/repo/core/schema/JsonPatchEntry.d.ts.map +1 -0
- package/dist/repo/core/schema/Operation.d.ts +16 -0
- package/dist/repo/core/schema/Operation.d.ts.map +1 -0
- package/dist/repo/core/schema/OperationRequest.d.ts +29 -0
- package/dist/repo/core/schema/OperationRequest.d.ts.map +1 -0
- package/dist/repo/core/schema/ProcessEmbedded.d.ts +10 -0
- package/dist/repo/core/schema/ProcessEmbedded.d.ts.map +1 -0
- package/dist/repo/core/schema/SequentialWorkflow.d.ts +13 -0
- package/dist/repo/core/schema/SequentialWorkflow.d.ts.map +1 -0
- package/dist/repo/core/schema/SequentialWorkflowOperation.d.ts +15 -0
- package/dist/repo/core/schema/SequentialWorkflowOperation.d.ts.map +1 -0
- package/dist/repo/core/schema/SequentialWorkflowStep.d.ts +13 -0
- package/dist/repo/core/schema/SequentialWorkflowStep.d.ts.map +1 -0
- package/dist/repo/core/schema/TimelineChannel.d.ts +17 -0
- package/dist/repo/core/schema/TimelineChannel.d.ts.map +1 -0
- package/dist/repo/core/schema/TimelineEntry.d.ts +25 -0
- package/dist/repo/core/schema/TimelineEntry.d.ts.map +1 -0
- package/dist/repo/core/schema/TriggerEvent.d.ts +10 -0
- package/dist/repo/core/schema/TriggerEvent.d.ts.map +1 -0
- package/dist/repo/core/schema/UpdateDocument.d.ts +40 -0
- package/dist/repo/core/schema/UpdateDocument.d.ts.map +1 -0
- package/dist/repo/core/schema/index.d.ts +14 -0
- package/dist/repo/core/schema/index.d.ts.map +1 -0
- package/dist/repo/myos/blue-ids/index.d.ts +8 -0
- package/dist/repo/myos/blue-ids/index.d.ts.map +1 -0
- package/dist/repo/myos/index.d.ts +99 -0
- package/dist/repo/myos/index.d.ts.map +1 -0
- package/dist/repo/myos/schema/MyOSAgent.d.ts +10 -0
- package/dist/repo/myos/schema/MyOSAgent.d.ts.map +1 -0
- package/dist/repo/myos/schema/MyOSAgentChannel.d.ts +30 -0
- package/dist/repo/myos/schema/MyOSAgentChannel.d.ts.map +1 -0
- package/dist/repo/myos/schema/MyOSAgentEvent.d.ts +19 -0
- package/dist/repo/myos/schema/MyOSAgentEvent.d.ts.map +1 -0
- package/dist/repo/myos/schema/MyOSTimelineChannel.d.ts +24 -0
- package/dist/repo/myos/schema/MyOSTimelineChannel.d.ts.map +1 -0
- package/dist/repo/myos/schema/MyOSTimelineEntry.d.ts +32 -0
- package/dist/repo/myos/schema/MyOSTimelineEntry.d.ts.map +1 -0
- package/dist/repo/myos/schema/index.d.ts +6 -0
- package/dist/repo/myos/schema/index.d.ts.map +1 -0
- package/dist/schema/annotations/annotations.d.ts +10 -0
- package/dist/schema/annotations/annotations.d.ts.map +1 -0
- package/dist/schema/annotations/blueDescription.d.ts +5 -0
- package/dist/schema/annotations/blueDescription.d.ts.map +1 -0
- package/dist/schema/annotations/blueId.d.ts +5 -0
- package/dist/schema/annotations/blueId.d.ts.map +1 -0
- package/dist/schema/annotations/blueName.d.ts +5 -0
- package/dist/schema/annotations/blueName.d.ts.map +1 -0
- package/dist/schema/annotations/blueNode.d.ts +7 -0
- package/dist/schema/annotations/blueNode.d.ts.map +1 -0
- package/dist/schema/annotations/extends.d.ts +8 -0
- package/dist/schema/annotations/extends.d.ts.map +1 -0
- package/dist/schema/annotations/index.d.ts +7 -0
- package/dist/schema/annotations/index.d.ts.map +1 -0
- package/dist/schema/annotations/typeBlueId/index.d.ts +2 -0
- package/dist/schema/annotations/typeBlueId/index.d.ts.map +1 -0
- package/dist/schema/annotations/typeBlueId/proxySchema.d.ts +3 -0
- package/dist/schema/annotations/typeBlueId/proxySchema.d.ts.map +1 -0
- package/dist/schema/annotations/typeBlueId/typeBlueId.d.ts +19 -0
- package/dist/schema/annotations/typeBlueId/typeBlueId.d.ts.map +1 -0
- package/dist/schema/blueId.d.ts +4 -0
- package/dist/schema/blueId.d.ts.map +1 -0
- package/dist/schema/blueObjectPredicates.d.ts +11 -0
- package/dist/schema/blueObjectPredicates.d.ts.map +1 -0
- package/dist/schema/generated/blueObject.d.ts +37 -0
- package/dist/schema/generated/blueObject.d.ts.map +1 -0
- package/dist/schema/generated/blueObject.zod.d.ts +100 -0
- package/dist/schema/generated/blueObject.zod.d.ts.map +1 -0
- package/dist/schema/generated/index.d.ts +3 -0
- package/dist/schema/generated/index.d.ts.map +1 -0
- package/dist/schema/index.d.ts +5 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/jsonBlue.d.ts +18 -0
- package/dist/schema/jsonBlue.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/zod.d.ts +5 -0
- package/dist/types/zod.d.ts.map +1 -0
- package/dist/utils/blueId/calculateBlueId.d.ts +15 -0
- package/dist/utils/blueId/calculateBlueId.d.ts.map +1 -0
- package/dist/utils/blueId/index.d.ts +2 -0
- package/dist/utils/blueId/index.d.ts.map +1 -0
- package/dist/utils/blueObject/enrichWithBlueId.d.ts +11 -0
- package/dist/utils/blueObject/enrichWithBlueId.d.ts.map +1 -0
- package/dist/utils/blueObject/getBlueObjectProperties.d.ts +6 -0
- package/dist/utils/blueObject/getBlueObjectProperties.d.ts.map +1 -0
- package/dist/utils/blueObject/getBlueObjectTypeLabel.d.ts +6 -0
- package/dist/utils/blueObject/getBlueObjectTypeLabel.d.ts.map +1 -0
- package/dist/utils/blueObject/getters.d.ts +7 -0
- package/dist/utils/blueObject/getters.d.ts.map +1 -0
- package/dist/utils/blueObject/index.d.ts +8 -0
- package/dist/utils/blueObject/index.d.ts.map +1 -0
- package/dist/utils/blueObject/isBlueObjectResolved.d.ts +3 -0
- package/dist/utils/blueObject/isBlueObjectResolved.d.ts.map +1 -0
- package/dist/utils/blueObject/normalizeToBlueObject.d.ts +10 -0
- package/dist/utils/blueObject/normalizeToBlueObject.d.ts.map +1 -0
- package/dist/utils/blueObject/resolveBlueObjectItems.d.ts +24 -0
- package/dist/utils/blueObject/resolveBlueObjectItems.d.ts.map +1 -0
- package/dist/utils/bs58/bs58.d.ts +3 -0
- package/dist/utils/bs58/bs58.d.ts.map +1 -0
- package/dist/utils/bs58/index.d.ts +2 -0
- package/dist/utils/bs58/index.d.ts.map +1 -0
- package/dist/utils/deepFreeze.d.ts +8 -0
- package/dist/utils/deepFreeze.d.ts.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/typeGuards/index.d.ts +2 -0
- package/dist/utils/typeGuards/index.d.ts.map +1 -0
- package/dist/utils/typeGuards/isBigNumber.d.ts +6 -0
- package/dist/utils/typeGuards/isBigNumber.d.ts.map +1 -0
- package/dist/utils/url.d.ts +7 -0
- package/dist/utils/url.d.ts.map +1 -0
- package/dist/utils/yamlBlue/dump.d.ts +5 -0
- package/dist/utils/yamlBlue/dump.d.ts.map +1 -0
- package/dist/utils/yamlBlue/index.d.ts +3 -0
- package/dist/utils/yamlBlue/index.d.ts.map +1 -0
- package/dist/utils/yamlBlue/parse.d.ts +9 -0
- package/dist/utils/yamlBlue/parse.d.ts.map +1 -0
- package/dist/utils/yamlBlue/schema.d.ts +3 -0
- package/dist/utils/yamlBlue/schema.d.ts.map +1 -0
- package/dist/utils/yamlBlue/type/float.d.ts +3 -0
- package/dist/utils/yamlBlue/type/float.d.ts.map +1 -0
- package/dist/utils/yamlBlue/type/int.d.ts +3 -0
- package/dist/utils/yamlBlue/type/int.d.ts.map +1 -0
- package/package.json +52 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodePatch.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/NodePatch/NodePatch.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAa5C,MAAM,MAAM,aAAa,GACrB;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,GACzC;IAAE,EAAE,EAAE,QAAQ,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,EAAE,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,GAC7C;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC1C;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAC1C;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,OAAO,CAAA;CAAE,CAAC;AAmB/C,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,QAAQ,EACd,OAAO,EAAE,SAAS,aAAa,EAAE,EACjC,cAAc,UAAQ,GACrB,QAAQ,CAMV;AAED,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,QAAQ,EACd,KAAK,EAAE,aAAa,EACpB,cAAc,UAAQ,GACrB,QAAQ,CAIV"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/NodePatch/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BlueNode } from '../../model/Node';
|
|
2
|
+
export declare function opAdd(root: BlueNode, path: string, raw: unknown): boolean;
|
|
3
|
+
export declare function opReplace(root: BlueNode, path: string, raw: unknown): boolean;
|
|
4
|
+
export declare function opRemove(root: BlueNode, path: string): boolean;
|
|
5
|
+
export declare function opCopy(root: BlueNode, from: string, to: string): boolean;
|
|
6
|
+
export declare function opMove(root: BlueNode, from: string, to: string): boolean;
|
|
7
|
+
export declare function opTest(root: BlueNode, path: string, expected: unknown): boolean;
|
|
8
|
+
//# sourceMappingURL=patch-operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-operations.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/NodePatch/patch-operations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAoB5C,wBAAgB,KAAK,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,OAAO,CAiCzE;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,OAAO,CAoC7E;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAW9D;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAIxE;AAED,wBAAgB,MAAM,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAYxE;AAED,wBAAgB,MAAM,CACpB,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,OAAO,GAChB,OAAO,CA8DT"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BlueNode } from '../../model/Node';
|
|
2
|
+
import { BigIntegerNumber as ModelBigIntegerNumber } from '../../model/BigIntegerNumber';
|
|
3
|
+
import { BigDecimalNumber as ModelBigDecimalNumber } from '../../model/BigDecimalNumber';
|
|
4
|
+
import { JsonPrimitive } from '@blue-labs/shared-utils';
|
|
5
|
+
export { ModelBigIntegerNumber as BigIntegerNumber };
|
|
6
|
+
export { ModelBigDecimalNumber as BigDecimalNumber };
|
|
7
|
+
export type Dict = Record<string, BlueNode>;
|
|
8
|
+
export type Primitive = JsonPrimitive;
|
|
9
|
+
export type Numeric = ModelBigIntegerNumber | ModelBigDecimalNumber;
|
|
10
|
+
export type Leaf = Primitive | Numeric;
|
|
11
|
+
export type Container = BlueNode | BlueNode[] | Dict | Leaf | undefined;
|
|
12
|
+
export type RValue = BlueNode | BlueNode[] | Dict | Leaf | undefined;
|
|
13
|
+
export declare const isDict: (v: unknown) => v is Dict;
|
|
14
|
+
export declare const isNumeric: (v: unknown) => v is Numeric;
|
|
15
|
+
export declare const decode: (s: string) => string;
|
|
16
|
+
export declare function split(path: string): string[];
|
|
17
|
+
export declare function asIndex(t: string | number): number;
|
|
18
|
+
export interface Cursor {
|
|
19
|
+
parent: Container;
|
|
20
|
+
key: string | number;
|
|
21
|
+
actualTarget?: RValue;
|
|
22
|
+
}
|
|
23
|
+
export declare function step(container: Container, tok: string, allowStepIntoBlueNodeValue?: boolean): Container;
|
|
24
|
+
export declare function resolve(root: BlueNode, tokens: readonly string[]): Cursor;
|
|
25
|
+
export declare function read(parent: Container, key: string | number): RValue;
|
|
26
|
+
export declare function nodeify(v: unknown): BlueNode;
|
|
27
|
+
export declare function write(parent: Container, key: string | number, raw: RValue): void;
|
|
28
|
+
export declare function insert(parent: Container, key: string | number, rawVal: unknown, overwrite: boolean): void;
|
|
29
|
+
export declare function remove(parent: Container, key: string | number): void;
|
|
30
|
+
export declare function deepClone(v: RValue): RValue;
|
|
31
|
+
export declare function deepEqual(a: RValue, b: unknown): boolean;
|
|
32
|
+
export declare function readPath(root: BlueNode, path: string): RValue;
|
|
33
|
+
export declare function writePath(root: BlueNode, path: string, raw: unknown): void;
|
|
34
|
+
//# sourceMappingURL=patch-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"patch-utils.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/NodePatch/patch-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,gBAAgB,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACzF,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,qBAAqB,IAAI,gBAAgB,EAAE,CAAC;AACrD,OAAO,EAAE,qBAAqB,IAAI,gBAAgB,EAAE,CAAC;AAGrD,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAC5C,MAAM,MAAM,SAAS,GAAG,aAAa,CAAC;AACtC,MAAM,MAAM,OAAO,GAAG,qBAAqB,GAAG,qBAAqB,CAAC;AACpE,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC;AACvC,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,QAAQ,EAAE,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;AACxE,MAAM,MAAM,MAAM,GAAG,QAAQ,GAAG,QAAQ,EAAE,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;AAErE,eAAO,MAAM,MAAM,MAAO,OAAO,KAAG,CAAC,IAAI,IACsC,CAAC;AAChF,eAAO,MAAM,SAAS,MAAO,OAAO,KAAG,CAAC,IAAI,OAC8B,CAAC;AAG3E,eAAO,MAAM,MAAM,MAAO,MAAM,KAAG,MACQ,CAAC;AAE5C,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAK5C;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAYlD;AAGD,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,SAAS,CAAC;IAClB,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAsDD,wBAAgB,IAAI,CAClB,SAAS,EAAE,SAAS,EACpB,GAAG,EAAE,MAAM,EACX,0BAA0B,UAAO,GAChC,SAAS,CA8CX;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CA2CzE;AAGD,wBAAgB,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAoCpE;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,OAAO,GAAG,QAAQ,CAa5C;AAaD,wBAAgB,KAAK,CACnB,MAAM,EAAE,SAAS,EACjB,GAAG,EAAE,MAAM,GAAG,MAAM,EACpB,GAAG,EAAE,MAAM,GACV,IAAI,CAuFN;AA6CD,wBAAgB,MAAM,CACpB,MAAM,EAAE,SAAS,EACjB,GAAG,EAAE,MAAM,GAAG,MAAM,EACpB,MAAM,EAAE,OAAO,EACf,SAAS,EAAE,OAAO,GACjB,IAAI,CAwCN;AAED,wBAAgB,MAAM,CAAC,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CA2BpE;AAGD,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAc3C;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAkCxD;AAGD,wBAAgB,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAG7D;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,GAAG,IAAI,CAc1E"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BlueNode, BigIntegerNumber, BigDecimalNumber } from '../model';
|
|
2
|
+
export declare class NodePathAccessor {
|
|
3
|
+
static get(node: BlueNode, path: string, linkingProvider?: (node: BlueNode) => BlueNode | null, resolveFinalLink?: boolean): BlueNode | string | boolean | BigIntegerNumber | BigDecimalNumber | null | undefined;
|
|
4
|
+
private static getRecursive;
|
|
5
|
+
private static getNodeForSegment;
|
|
6
|
+
private static link;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=NodePathAccessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodePathAccessor.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/NodePathAccessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE9D,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,GAAG,CACR,IAAI,EAAE,QAAQ,EACd,IAAI,EAAE,MAAM,EACZ,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,QAAQ,GAAG,IAAI,EACrD,gBAAgB,UAAO,GAErB,QAAQ,GACR,MAAM,GACN,OAAO,GACP,gBAAgB,GAChB,gBAAgB,GAChB,IAAI,GACJ,SAAS;IAoBb,OAAO,CAAC,MAAM,CAAC,YAAY;IAmD3B,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAoGhC,OAAO,CAAC,MAAM,CAAC,IAAI;CAOpB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { NodeProvider } from '../NodeProvider';
|
|
2
|
+
/**
|
|
3
|
+
* Utility to wrap a NodeProvider with a SequentialNodeProvider that includes bootstrap providers
|
|
4
|
+
*/
|
|
5
|
+
export declare class NodeProviderWrapper {
|
|
6
|
+
/**
|
|
7
|
+
* Wraps a NodeProvider with a SequentialNodeProvider that includes bootstrap providers
|
|
8
|
+
* @param originalProvider - The original NodeProvider to wrap
|
|
9
|
+
* @returns A wrapped NodeProvider that includes bootstrap providers
|
|
10
|
+
*/
|
|
11
|
+
static wrap(originalProvider: NodeProvider): NodeProvider;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=NodeProviderWrapper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeProviderWrapper.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/NodeProviderWrapper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C;;GAEG;AACH,qBAAa,mBAAmB;IAC9B;;;;OAIG;WACW,IAAI,CAAC,gBAAgB,EAAE,YAAY,GAAG,YAAY;CAMjE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { JsonValue } from 'type-fest';
|
|
2
|
+
import { BlueNode } from '../model/Node';
|
|
3
|
+
/**
|
|
4
|
+
* Strategy for converting BlueNode to JSON representation.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type Strategy = 'official' | 'simple' | 'original';
|
|
9
|
+
export declare class NodeToMapListOrValue {
|
|
10
|
+
/**
|
|
11
|
+
* Converts a BlueNode to a JSON representation based on the specified strategy.
|
|
12
|
+
*
|
|
13
|
+
* @param node - The BlueNode to convert.
|
|
14
|
+
* @param strategy - The conversion strategy to use. Defaults to 'official'.
|
|
15
|
+
* - `'official'`: Always returns complete objects with type information and metadata
|
|
16
|
+
* - `'simple'`: Returns unwrapped values/arrays when possible, objects when metadata exists
|
|
17
|
+
* - `'original'`: Returns simple values when no name/description, otherwise full objects
|
|
18
|
+
* @returns A JSON representation of the node.
|
|
19
|
+
*/
|
|
20
|
+
static get(node: BlueNode, strategy?: Strategy): JsonValue;
|
|
21
|
+
static handleValue(value: BlueNode['value']): string | number | boolean | null | undefined;
|
|
22
|
+
private static inferTypeBlueId;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=NodeToMapListOrValue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeToMapListOrValue.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/NodeToMapListOrValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAqBzC;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,UAAU,CAAC;AAE1D,qBAAa,oBAAoB;IAC/B;;;;;;;;;OASG;IACH,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,GAAE,QAAqB,GAAG,SAAS;IAsGtE,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,QAAQ,CAAC,OAAO,CAAC;IAe3C,OAAO,CAAC,MAAM,CAAC,eAAe;CAY/B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BlueNode } from '../model';
|
|
2
|
+
/**
|
|
3
|
+
* Utility class for transforming BlueNodes
|
|
4
|
+
*/
|
|
5
|
+
export declare class NodeTransformer {
|
|
6
|
+
/**
|
|
7
|
+
* Transforms a node and all its child nodes using the provided transformer function
|
|
8
|
+
* @param node - The node to transform
|
|
9
|
+
* @param transformer - The transformer function to apply to each node
|
|
10
|
+
* @returns The transformed node
|
|
11
|
+
*/
|
|
12
|
+
static transform(node: BlueNode, transformer: (node: BlueNode) => BlueNode): BlueNode;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=NodeTransformer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NodeTransformer.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/NodeTransformer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC;;GAEG;AACH,qBAAa,eAAe;IAC1B;;;;;OAKG;IACH,MAAM,CAAC,SAAS,CACd,IAAI,EAAE,QAAQ,EACd,WAAW,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,QAAQ,GACxC,QAAQ;CA6DZ"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const OBJECT_NAME = "name";
|
|
2
|
+
export declare const OBJECT_DESCRIPTION = "description";
|
|
3
|
+
export declare const OBJECT_TYPE = "type";
|
|
4
|
+
export declare const OBJECT_ITEM_TYPE = "itemType";
|
|
5
|
+
export declare const OBJECT_KEY_TYPE = "keyType";
|
|
6
|
+
export declare const OBJECT_VALUE_TYPE = "valueType";
|
|
7
|
+
export declare const OBJECT_VALUE = "value";
|
|
8
|
+
export declare const OBJECT_ITEMS = "items";
|
|
9
|
+
export declare const OBJECT_BLUE_ID = "blueId";
|
|
10
|
+
export declare const OBJECT_BLUE = "blue";
|
|
11
|
+
export declare const OBJECT_CONTRACTS = "contracts";
|
|
12
|
+
export declare const OBJECT_SPECIFIC_KEYS: readonly ["name", "description", "type", "itemType", "keyType", "valueType", "value", "items", "blueId", "blue", "contracts"];
|
|
13
|
+
export declare const TEXT_TYPE = "Text";
|
|
14
|
+
export declare const DOUBLE_TYPE = "Double";
|
|
15
|
+
export declare const INTEGER_TYPE = "Integer";
|
|
16
|
+
export declare const BOOLEAN_TYPE = "Boolean";
|
|
17
|
+
export declare const LIST_TYPE = "List";
|
|
18
|
+
export declare const DICTIONARY_TYPE = "Dictionary";
|
|
19
|
+
export declare const BASIC_TYPES: readonly ["Text", "Double", "Integer", "Boolean"];
|
|
20
|
+
export declare const CORE_TYPES: readonly ["Text", "Double", "Integer", "Boolean", "List", "Dictionary"];
|
|
21
|
+
export declare const TEXT_TYPE_BLUE_ID = "F92yo19rCcbBoBSpUA5LRxpfDejJDAaP1PRxxbWAraVP";
|
|
22
|
+
export declare const DOUBLE_TYPE_BLUE_ID = "68ryJtnmui4j5rCZWUnkZ3DChtmEb7Z9F8atn1mBSM3L";
|
|
23
|
+
export declare const INTEGER_TYPE_BLUE_ID = "DHmxTkFbXePZHCHCYmQr2dSzcNLcryFVjXVHkdQrrZr8";
|
|
24
|
+
export declare const BOOLEAN_TYPE_BLUE_ID = "EL6AjrbJsxTWRTPzY8WR8Y2zAMXRbydQj83PcZwuAHbo";
|
|
25
|
+
export declare const LIST_TYPE_BLUE_ID = "G8wmfjEqugPEEXByMYWJXiEdbLToPRWNQEekNxrxfQWB";
|
|
26
|
+
export declare const DICTIONARY_TYPE_BLUE_ID = "294NBTj2mFRL3RB4kDRUSckwGg7Kzj6T8CTAFeR1kcSA";
|
|
27
|
+
export declare const BASIC_TYPE_BLUE_IDS: readonly ["F92yo19rCcbBoBSpUA5LRxpfDejJDAaP1PRxxbWAraVP", "68ryJtnmui4j5rCZWUnkZ3DChtmEb7Z9F8atn1mBSM3L", "DHmxTkFbXePZHCHCYmQr2dSzcNLcryFVjXVHkdQrrZr8", "EL6AjrbJsxTWRTPzY8WR8Y2zAMXRbydQj83PcZwuAHbo"];
|
|
28
|
+
export declare const CORE_TYPE_BLUE_IDS: readonly ["F92yo19rCcbBoBSpUA5LRxpfDejJDAaP1PRxxbWAraVP", "68ryJtnmui4j5rCZWUnkZ3DChtmEb7Z9F8atn1mBSM3L", "DHmxTkFbXePZHCHCYmQr2dSzcNLcryFVjXVHkdQrrZr8", "EL6AjrbJsxTWRTPzY8WR8Y2zAMXRbydQj83PcZwuAHbo", "G8wmfjEqugPEEXByMYWJXiEdbLToPRWNQEekNxrxfQWB", "294NBTj2mFRL3RB4kDRUSckwGg7Kzj6T8CTAFeR1kcSA"];
|
|
29
|
+
export declare const CORE_TYPE_NAME_TO_BLUE_ID_MAP: Record<(typeof CORE_TYPES)[number], (typeof CORE_TYPE_BLUE_IDS)[number]>;
|
|
30
|
+
export declare const CORE_TYPE_BLUE_ID_TO_NAME_MAP: Record<(typeof CORE_TYPE_BLUE_IDS)[number], (typeof CORE_TYPES)[number]>;
|
|
31
|
+
//# sourceMappingURL=Properties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Properties.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/Properties.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,SAAS,CAAC;AAClC,eAAO,MAAM,kBAAkB,gBAAgB,CAAC;AAChD,eAAO,MAAM,WAAW,SAAS,CAAC;AAClC,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAC3C,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,YAAY,UAAU,CAAC;AACpC,eAAO,MAAM,YAAY,UAAU,CAAC;AACpC,eAAO,MAAM,cAAc,WAAW,CAAC;AACvC,eAAO,MAAM,WAAW,SAAS,CAAC;AAClC,eAAO,MAAM,gBAAgB,cAAc,CAAC;AAE5C,eAAO,MAAM,oBAAoB,+HAYvB,CAAC;AAEX,eAAO,MAAM,SAAS,SAAS,CAAC;AAChC,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,YAAY,YAAY,CAAC;AACtC,eAAO,MAAM,YAAY,YAAY,CAAC;AACtC,eAAO,MAAM,SAAS,SAAS,CAAC;AAChC,eAAO,MAAM,eAAe,eAAe,CAAC;AAE5C,eAAO,MAAM,WAAW,mDAKd,CAAC;AACX,eAAO,MAAM,UAAU,yEAAwD,CAAC;AAEhF,eAAO,MAAM,iBAAiB,iDAAiD,CAAC;AAChF,eAAO,MAAM,mBAAmB,iDACgB,CAAC;AACjD,eAAO,MAAM,oBAAoB,iDACe,CAAC;AACjD,eAAO,MAAM,oBAAoB,iDACe,CAAC;AACjD,eAAO,MAAM,iBAAiB,iDAAiD,CAAC;AAChF,eAAO,MAAM,uBAAuB,iDACY,CAAC;AAEjD,eAAO,MAAM,mBAAmB,2MAKtB,CAAC;AACX,eAAO,MAAM,kBAAkB,2SAIrB,CAAC;AAEX,eAAO,MAAM,6BAA6B,EAErC,MAAM,CAAC,CAAC,OAAO,UAAU,EAAE,MAAM,CAAC,EAAE,CAAC,OAAO,kBAAkB,EAAE,MAAM,CAAC,CAAC,CAAC;AAE9E,eAAO,MAAM,6BAA6B,EAErC,MAAM,CAAC,CAAC,OAAO,kBAAkB,EAAE,MAAM,CAAC,EAAE,CAAC,OAAO,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class TinyQueue<T> {
|
|
2
|
+
data: T[];
|
|
3
|
+
length: number;
|
|
4
|
+
compare: (a: T, b: T) => number;
|
|
5
|
+
constructor(data?: T[], compare?: (a: T, b: T) => number);
|
|
6
|
+
push(item: T): void;
|
|
7
|
+
pop(): T | undefined;
|
|
8
|
+
peek(): T;
|
|
9
|
+
_up(pos: number): void;
|
|
10
|
+
_down(pos: number): void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=TinyQueue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TinyQueue.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/TinyQueue.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAS,CAAC,CAAC;IACtB,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAAM,CAAC;gBAG9B,IAAI,GAAE,CAAC,EAAO,EACd,OAAO,GAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAA+C;IAW1E,IAAI,CAAC,IAAI,EAAE,CAAC;IAKZ,GAAG;IAcH,IAAI;IAIJ,GAAG,CAAC,GAAG,EAAE,MAAM;IAef,KAAK,CAAC,GAAG,EAAE,MAAM;CAoBlB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ZodRawShape, objectOutputType, objectInputType, UnknownKeysParam, ZodTypeAny, ZodObject } from 'zod';
|
|
2
|
+
import { BlueNode } from '../model';
|
|
3
|
+
export declare class BlueNodeTypeSchema {
|
|
4
|
+
static isTypeOf<T extends ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny, Output = objectOutputType<T, Catchall, UnknownKeys>, Input = objectInputType<T, Catchall, UnknownKeys>>(node: BlueNode, schema: ZodObject<T, UnknownKeys, Catchall, Output, Input>): boolean;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=TypeSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypeSchema.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/TypeSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,UAAU,EACV,SAAS,EACV,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAKpC,qBAAa,kBAAkB;IAC7B,MAAM,CAAC,QAAQ,CACb,CAAC,SAAS,WAAW,EACrB,WAAW,SAAS,gBAAgB,GAAG,gBAAgB,EACvD,QAAQ,SAAS,UAAU,GAAG,UAAU,EACxC,MAAM,GAAG,gBAAgB,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,CAAC,EACnD,KAAK,GAAG,eAAe,CAAC,CAAC,EAAE,QAAQ,EAAE,WAAW,CAAC,EAEjD,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,SAAS,CAAC,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,CAAC,GACzD,OAAO;CAUX"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ZodTypeAny } from 'zod';
|
|
2
|
+
import { BlueNode } from '../model/Node';
|
|
3
|
+
export declare class TypeSchemaResolver {
|
|
4
|
+
private readonly blueIdMap;
|
|
5
|
+
constructor(schemas: ZodTypeAny[]);
|
|
6
|
+
private registerSchema;
|
|
7
|
+
resolveSchema(node: BlueNode): ZodTypeAny | null | undefined;
|
|
8
|
+
private getEffectiveBlueId;
|
|
9
|
+
getBlueIdMap(): Map<string, ZodTypeAny>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=TypeSchemaResolver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TypeSchemaResolver.d.ts","sourceRoot":"","sources":["../../../src/lib/utils/TypeSchemaResolver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAGjC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiC;gBAE/C,OAAO,EAAE,UAAU,EAAE;IAMjC,OAAO,CAAC,cAAc;IAWf,aAAa,CAAC,IAAI,EAAE,QAAQ;IAQnC,OAAO,CAAC,kBAAkB;IAUnB,YAAY;CAGpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"calculateCID.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/__tests__/calculateCID.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,UAAiB,MAAM,oBAQzD,CAAC;AAEF,eAAO,MAAM,sBAAsB,UAAiB,MAAM,oBAOzD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { Base58Sha256Provider } from './Base58Sha256Provider';
|
|
2
|
+
export * from './BlueIds';
|
|
3
|
+
export * from './BlueIdCalculator';
|
|
4
|
+
export { BlueIdToCid } from './BlueIdToCid';
|
|
5
|
+
export { JsonCanonicalizer } from './JsonCanonicalizer';
|
|
6
|
+
export * from './NodeToMapListOrValue';
|
|
7
|
+
export * as Properties from './Properties';
|
|
8
|
+
export * from './TypeSchemaResolver';
|
|
9
|
+
export * from './NodeTransformer';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BlueNode } from '../../model';
|
|
2
|
+
/**
|
|
3
|
+
* Abstract class for specifying limits on node extension
|
|
4
|
+
*/
|
|
5
|
+
export declare abstract class Limits {
|
|
6
|
+
/**
|
|
7
|
+
* Determines if a path segment should be extended
|
|
8
|
+
* @param pathSegment - The path segment
|
|
9
|
+
* @param currentNode - The current node
|
|
10
|
+
* @returns True if the segment should be extended, false otherwise
|
|
11
|
+
*/
|
|
12
|
+
abstract shouldExtendPathSegment(pathSegment: string, currentNode: BlueNode): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Determines if a path segment should be merged
|
|
15
|
+
* @param pathSegment - The path segment
|
|
16
|
+
* @param currentNode - The current node
|
|
17
|
+
* @returns True if the segment should be merged, false otherwise
|
|
18
|
+
*/
|
|
19
|
+
abstract shouldMergePathSegment(pathSegment: string, currentNode: BlueNode): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Enters a path segment with an optional node
|
|
22
|
+
* @param pathSegment - The path segment
|
|
23
|
+
* @param currentNode - The current node (optional)
|
|
24
|
+
*/
|
|
25
|
+
abstract enterPathSegment(pathSegment: string, currentNode?: BlueNode): void;
|
|
26
|
+
/**
|
|
27
|
+
* Exits a path segment
|
|
28
|
+
*/
|
|
29
|
+
abstract exitPathSegment(): void;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=Limits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Limits.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/limits/Limits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC;;GAEG;AACH,8BAAsB,MAAM;IAC1B;;;;;OAKG;aACa,uBAAuB,CACrC,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,QAAQ,GACpB,OAAO;IAEV;;;;;OAKG;aACa,sBAAsB,CACpC,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,QAAQ,GACpB,OAAO;IAEV;;;;OAIG;aACa,gBAAgB,CAC9B,WAAW,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,QAAQ,GACrB,IAAI;IAEP;;OAEG;aACa,eAAe,IAAI,IAAI;CACxC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Limits } from './Limits';
|
|
2
|
+
/**
|
|
3
|
+
* Implementation of Limits that imposes no limits on node extension
|
|
4
|
+
*/
|
|
5
|
+
export declare class NoLimits extends Limits {
|
|
6
|
+
/**
|
|
7
|
+
* Determines if a path segment should be extended - always returns true
|
|
8
|
+
* @returns Always true
|
|
9
|
+
*/
|
|
10
|
+
shouldExtendPathSegment(): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Determines if a path segment should be merged - always returns true
|
|
13
|
+
* @returns Always true
|
|
14
|
+
*/
|
|
15
|
+
shouldMergePathSegment(): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Enters a path segment - no-op
|
|
18
|
+
*/
|
|
19
|
+
enterPathSegment(): void;
|
|
20
|
+
/**
|
|
21
|
+
* Exits a path segment - no-op
|
|
22
|
+
*/
|
|
23
|
+
exitPathSegment(): void;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=NoLimits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NoLimits.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/limits/NoLimits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC;;GAEG;AACH,qBAAa,QAAS,SAAQ,MAAM;IAClC;;;OAGG;IACI,uBAAuB;IAI9B;;;OAGG;IACI,sBAAsB;IAI7B;;OAEG;IACa,gBAAgB;IAIhC;;OAEG;IACI,eAAe;CAGvB"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Limits } from './Limits';
|
|
2
|
+
/**
|
|
3
|
+
* Supported features:
|
|
4
|
+
* 1. Exact path matching (e.g., "/a/b/c")
|
|
5
|
+
* 2. Single-level wildcards (e.g., "/a/*\/c")
|
|
6
|
+
* 3. Maximum depth limitation
|
|
7
|
+
*/
|
|
8
|
+
export declare class PathLimits extends Limits {
|
|
9
|
+
private readonly allowedPaths;
|
|
10
|
+
private readonly maxDepth;
|
|
11
|
+
private readonly currentPath;
|
|
12
|
+
/**
|
|
13
|
+
* Creates path limits with the specified paths and max depth
|
|
14
|
+
* @param allowedPaths - The paths to limit extension to
|
|
15
|
+
* @param maxDepth - The maximum depth of paths to allow
|
|
16
|
+
*/
|
|
17
|
+
constructor(allowedPaths: Set<string>, maxDepth: number);
|
|
18
|
+
/**
|
|
19
|
+
* Determines if a path segment should be extended
|
|
20
|
+
* @param pathSegment - The path segment
|
|
21
|
+
* @returns True if the segment should be extended, false otherwise
|
|
22
|
+
*/
|
|
23
|
+
shouldExtendPathSegment(pathSegment: string): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Determines if a path segment should be merged
|
|
26
|
+
* @param pathSegment - The path segment
|
|
27
|
+
* @returns True if the segment should be merged, false otherwise
|
|
28
|
+
*/
|
|
29
|
+
shouldMergePathSegment(pathSegment: string): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Checks if a path is allowed
|
|
32
|
+
* @param path - The path to check
|
|
33
|
+
* @returns True if the path is allowed, false otherwise
|
|
34
|
+
*/
|
|
35
|
+
private isAllowedPath;
|
|
36
|
+
/**
|
|
37
|
+
* Checks if a path matches an allowed path pattern
|
|
38
|
+
* @param allowedPath - The allowed path pattern
|
|
39
|
+
* @param path - The path to check
|
|
40
|
+
* @returns True if the path matches the allowed path pattern, false otherwise
|
|
41
|
+
*/
|
|
42
|
+
private matchesAllowedPath;
|
|
43
|
+
/**
|
|
44
|
+
* Enters a path segment
|
|
45
|
+
* @param pathSegment - The path segment
|
|
46
|
+
*/
|
|
47
|
+
enterPathSegment(pathSegment: string): void;
|
|
48
|
+
/**
|
|
49
|
+
* Exits a path segment
|
|
50
|
+
*/
|
|
51
|
+
exitPathSegment(): void;
|
|
52
|
+
/**
|
|
53
|
+
* Gets the current full path
|
|
54
|
+
* @returns The current full path
|
|
55
|
+
*/
|
|
56
|
+
private getCurrentFullPath;
|
|
57
|
+
/**
|
|
58
|
+
* Normalizes a path
|
|
59
|
+
* @param path - The path to normalize
|
|
60
|
+
* @returns The normalized path
|
|
61
|
+
*/
|
|
62
|
+
private normalizePath;
|
|
63
|
+
/**
|
|
64
|
+
* Creates path limits with a maximum depth
|
|
65
|
+
* @param maxDepth - The maximum depth
|
|
66
|
+
* @returns The path limits
|
|
67
|
+
*/
|
|
68
|
+
static withMaxDepth(maxDepth: number): PathLimits;
|
|
69
|
+
/**
|
|
70
|
+
* Creates path limits with a single path
|
|
71
|
+
* @param path - The path to limit extension to
|
|
72
|
+
* @returns The path limits
|
|
73
|
+
*/
|
|
74
|
+
static withSinglePath(path: string): PathLimits;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Builder for PathLimits
|
|
78
|
+
*/
|
|
79
|
+
export declare class PathLimitsBuilder {
|
|
80
|
+
private allowedPaths;
|
|
81
|
+
private maxDepth;
|
|
82
|
+
/**
|
|
83
|
+
* Adds a path to the allowed paths
|
|
84
|
+
* @param path - The path to add
|
|
85
|
+
* @returns The builder
|
|
86
|
+
*/
|
|
87
|
+
addPath(path: string): PathLimitsBuilder;
|
|
88
|
+
/**
|
|
89
|
+
* Sets the maximum depth
|
|
90
|
+
* @param maxDepth - The maximum depth
|
|
91
|
+
* @returns The builder
|
|
92
|
+
*/
|
|
93
|
+
setMaxDepth(maxDepth: number): PathLimitsBuilder;
|
|
94
|
+
/**
|
|
95
|
+
* Builds the PathLimits
|
|
96
|
+
* @returns The built PathLimits
|
|
97
|
+
*/
|
|
98
|
+
build(): PathLimits;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=PathLimits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PathLimits.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/limits/PathLimits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AASlC;;;;;GAKG;AACH,qBAAa,UAAW,SAAQ,MAAM;IACpC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAc;IAC3C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAS;IAClC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAgB;IAE5C;;;;OAIG;gBACS,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,MAAM;IAMvD;;;;OAIG;IACa,uBAAuB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO;IAYrE;;;;OAIG;IACa,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO;IAIpE;;;;OAIG;IACH,OAAO,CAAC,aAAa;IASrB;;;;;OAKG;IACH,OAAO,CAAC,kBAAkB;IAiB1B;;;OAGG;IACa,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAI3D;;OAEG;IACa,eAAe,IAAI,IAAI;IAMvC;;;OAGG;IACH,OAAO,CAAC,kBAAkB;IAI1B;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAUrB;;;;OAIG;WACW,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU;IAIxD;;;;OAIG;WACW,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU;CAGvD;AAED;;GAEG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,YAAY,CAAkC;IACtD,OAAO,CAAC,QAAQ,CAAmC;IAEnD;;;;OAIG;IACI,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB;IAK/C;;;;OAIG;IACI,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,iBAAiB;IAKvD;;;OAGG;IACI,KAAK,IAAI,UAAU;CAG3B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Limits } from './Limits';
|
|
2
|
+
export * from './Limits';
|
|
3
|
+
export * from './PathLimits';
|
|
4
|
+
export * from './NoLimits';
|
|
5
|
+
/**
|
|
6
|
+
* No limits implementation - extends all paths
|
|
7
|
+
*/
|
|
8
|
+
export declare const NO_LIMITS: Limits;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/utils/limits/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAE3B,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,MAAuB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const blueIds: {
|
|
2
|
+
readonly Channel: "2RMkKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiCPc";
|
|
3
|
+
readonly 'Timeline Channel': "RMkKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiCPc2";
|
|
4
|
+
readonly 'Composite Timeline Channel': "qxkh3uMkKoutP5DxZ7dr6Eo27B7fuxQCS1VAptiCPc2R";
|
|
5
|
+
readonly 'MyOS Timeline Channel': "MkKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiCPc2R";
|
|
6
|
+
readonly 'Sequential Workflow': "h3uDxZ7dr6Eo27B7fuxMkKoutP5qxkQCS1VAptiCPc2R";
|
|
7
|
+
readonly 'Sequential Workflow Step': "6EoMkKoutP5DxZ7drqxkh3u27B7fuxQCS1VAptiCPc2R";
|
|
8
|
+
readonly 'Process Embedded': "DxZ7dr6EoMkKoutP5qxkh3u27B7fuxQCS1VAptiCPc2R";
|
|
9
|
+
readonly 'Embedded Node Channel': "MkKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiCPc2";
|
|
10
|
+
readonly 'Document Update Channel': "MkKoutP5qxkh3uDQCS1VAptiCPc2xZ7dr6Eo27B7fux";
|
|
11
|
+
readonly 'Channel Event Checkpoint': "o27B7fuxMkKoutPh3uDxZ7dr6E5qxkQCS1VAptiCPc2R";
|
|
12
|
+
readonly 'Update Document': "7fuxMkKoutPh3uDxZ7dr6E5qxkQCS1VAptiCPc2R";
|
|
13
|
+
readonly 'Trigger Event': "kQCS1VAp7fuxMkKoutPh3uDxZ7dr6E5qxtiCPc2R";
|
|
14
|
+
readonly 'Json Patch Entry': "EnUQeMiMa2wHFW3JbeSPvdgfpL6qZYCR29m3SfeHsKSY";
|
|
15
|
+
readonly 'JavaScript Code': "MkKoutPDxZ7dr6Eo5qxkh3u27B7fuxQCS1VAptiCPc2R";
|
|
16
|
+
readonly 'Timeline Entry': "uDxZ7dr6Eo27B7fMkKoutP5qxkh3uxQCS1VAptiCPc2R";
|
|
17
|
+
readonly Operation: "OpKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiCPc2R";
|
|
18
|
+
readonly 'Sequential Workflow Operation': "SeqOpKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiC";
|
|
19
|
+
readonly 'Operation Request': "OpReqKoutP5qxkh3uDxZ7dr6Eo27B7fuxQCS1VAptiC";
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/repo/core/blue-ids/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;CAoBV,CAAC"}
|