@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.
Files changed (381) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +133 -0
  3. package/dist/index.d.ts +5 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +34 -0
  6. package/dist/index.mjs +4476 -0
  7. package/dist/lib/Blue.d.ts +99 -0
  8. package/dist/lib/Blue.d.ts.map +1 -0
  9. package/dist/lib/NodeProvider.d.ts +26 -0
  10. package/dist/lib/NodeProvider.d.ts.map +1 -0
  11. package/dist/lib/index.d.ts +9 -0
  12. package/dist/lib/index.d.ts.map +1 -0
  13. package/dist/lib/mapping/AnyConverter.d.ts +6 -0
  14. package/dist/lib/mapping/AnyConverter.d.ts.map +1 -0
  15. package/dist/lib/mapping/ArrayConverter.d.ts +10 -0
  16. package/dist/lib/mapping/ArrayConverter.d.ts.map +1 -0
  17. package/dist/lib/mapping/ComplexObjectConverter.d.ts +15 -0
  18. package/dist/lib/mapping/ComplexObjectConverter.d.ts.map +1 -0
  19. package/dist/lib/mapping/Converter.d.ts +6 -0
  20. package/dist/lib/mapping/Converter.d.ts.map +1 -0
  21. package/dist/lib/mapping/ConverterFactory.d.ts +14 -0
  22. package/dist/lib/mapping/ConverterFactory.d.ts.map +1 -0
  23. package/dist/lib/mapping/MapConverter.d.ts +14 -0
  24. package/dist/lib/mapping/MapConverter.d.ts.map +1 -0
  25. package/dist/lib/mapping/NodeToObjectConverter.d.ts +13 -0
  26. package/dist/lib/mapping/NodeToObjectConverter.d.ts.map +1 -0
  27. package/dist/lib/mapping/NullConverter.d.ts +5 -0
  28. package/dist/lib/mapping/NullConverter.d.ts.map +1 -0
  29. package/dist/lib/mapping/PrimitiveConverter.d.ts +7 -0
  30. package/dist/lib/mapping/PrimitiveConverter.d.ts.map +1 -0
  31. package/dist/lib/mapping/SetConverter.d.ts +10 -0
  32. package/dist/lib/mapping/SetConverter.d.ts.map +1 -0
  33. package/dist/lib/mapping/TupleConverter.d.ts +13 -0
  34. package/dist/lib/mapping/TupleConverter.d.ts.map +1 -0
  35. package/dist/lib/mapping/UnknownConverter.d.ts +6 -0
  36. package/dist/lib/mapping/UnknownConverter.d.ts.map +1 -0
  37. package/dist/lib/mapping/ValueConverter.d.ts +12 -0
  38. package/dist/lib/mapping/ValueConverter.d.ts.map +1 -0
  39. package/dist/lib/mapping/__tests__/schema/contract.d.ts +364 -0
  40. package/dist/lib/mapping/__tests__/schema/contract.d.ts.map +1 -0
  41. package/dist/lib/mapping/__tests__/schema/doctor.d.ts +19 -0
  42. package/dist/lib/mapping/__tests__/schema/doctor.d.ts.map +1 -0
  43. package/dist/lib/mapping/__tests__/schema/index.d.ts +3389 -0
  44. package/dist/lib/mapping/__tests__/schema/index.d.ts.map +1 -0
  45. package/dist/lib/mapping/__tests__/schema/nurse.d.ts +19 -0
  46. package/dist/lib/mapping/__tests__/schema/nurse.d.ts.map +1 -0
  47. package/dist/lib/mapping/__tests__/schema/person.d.ts +15 -0
  48. package/dist/lib/mapping/__tests__/schema/person.d.ts.map +1 -0
  49. package/dist/lib/mapping/__tests__/schema/personDictionaryExample.d.ts +75 -0
  50. package/dist/lib/mapping/__tests__/schema/personDictionaryExample.d.ts.map +1 -0
  51. package/dist/lib/mapping/__tests__/schema/personListExample.d.ts +61 -0
  52. package/dist/lib/mapping/__tests__/schema/personListExample.d.ts.map +1 -0
  53. package/dist/lib/mapping/__tests__/schema/personObjectExample.d.ts +61 -0
  54. package/dist/lib/mapping/__tests__/schema/personObjectExample.d.ts.map +1 -0
  55. package/dist/lib/mapping/__tests__/schema/personValueExample.d.ts +25 -0
  56. package/dist/lib/mapping/__tests__/schema/personValueExample.d.ts.map +1 -0
  57. package/dist/lib/mapping/__tests__/schema/x.d.ts +67 -0
  58. package/dist/lib/mapping/__tests__/schema/x.d.ts.map +1 -0
  59. package/dist/lib/mapping/__tests__/schema/x1.d.ts +73 -0
  60. package/dist/lib/mapping/__tests__/schema/x1.d.ts.map +1 -0
  61. package/dist/lib/mapping/__tests__/schema/x11.d.ts +80 -0
  62. package/dist/lib/mapping/__tests__/schema/x11.d.ts.map +1 -0
  63. package/dist/lib/mapping/__tests__/schema/x12.d.ts +80 -0
  64. package/dist/lib/mapping/__tests__/schema/x12.d.ts.map +1 -0
  65. package/dist/lib/mapping/__tests__/schema/x2.d.ts +67 -0
  66. package/dist/lib/mapping/__tests__/schema/x2.d.ts.map +1 -0
  67. package/dist/lib/mapping/__tests__/schema/x3.d.ts +77 -0
  68. package/dist/lib/mapping/__tests__/schema/x3.d.ts.map +1 -0
  69. package/dist/lib/mapping/__tests__/schema/xSubscription.d.ts +10 -0
  70. package/dist/lib/mapping/__tests__/schema/xSubscription.d.ts.map +1 -0
  71. package/dist/lib/mapping/__tests__/schema/y.d.ts +990 -0
  72. package/dist/lib/mapping/__tests__/schema/y.d.ts.map +1 -0
  73. package/dist/lib/mapping/__tests__/schema/y1.d.ts +1381 -0
  74. package/dist/lib/mapping/__tests__/schema/y1.d.ts.map +1 -0
  75. package/dist/lib/mapping/index.d.ts +4 -0
  76. package/dist/lib/mapping/index.d.ts.map +1 -0
  77. package/dist/lib/mapping/serializeBlueAnnotated.d.ts +3 -0
  78. package/dist/lib/mapping/serializeBlueAnnotated.d.ts.map +1 -0
  79. package/dist/lib/model/BigDecimalNumber.d.ts +9 -0
  80. package/dist/lib/model/BigDecimalNumber.d.ts.map +1 -0
  81. package/dist/lib/model/BigIntegerNumber.d.ts +9 -0
  82. package/dist/lib/model/BigIntegerNumber.d.ts.map +1 -0
  83. package/dist/lib/model/Node.d.ts +53 -0
  84. package/dist/lib/model/Node.d.ts.map +1 -0
  85. package/dist/lib/model/NodeDeserializer.d.ts +8 -0
  86. package/dist/lib/model/NodeDeserializer.d.ts.map +1 -0
  87. package/dist/lib/model/index.d.ts +5 -0
  88. package/dist/lib/model/index.d.ts.map +1 -0
  89. package/dist/lib/preprocess/BlueDirectivePreprocessor.d.ts +85 -0
  90. package/dist/lib/preprocess/BlueDirectivePreprocessor.d.ts.map +1 -0
  91. package/dist/lib/preprocess/Preprocessor.d.ts +68 -0
  92. package/dist/lib/preprocess/Preprocessor.d.ts.map +1 -0
  93. package/dist/lib/preprocess/index.d.ts +5 -0
  94. package/dist/lib/preprocess/index.d.ts.map +1 -0
  95. package/dist/lib/preprocess/interfaces.d.ts +24 -0
  96. package/dist/lib/preprocess/interfaces.d.ts.map +1 -0
  97. package/dist/lib/preprocess/processor/InferBasicTypesForUntypedValues.d.ts +20 -0
  98. package/dist/lib/preprocess/processor/InferBasicTypesForUntypedValues.d.ts.map +1 -0
  99. package/dist/lib/preprocess/processor/ReplaceInlineValuesForTypeAttributesWithImports.d.ts +23 -0
  100. package/dist/lib/preprocess/processor/ReplaceInlineValuesForTypeAttributesWithImports.d.ts.map +1 -0
  101. package/dist/lib/preprocess/processor/index.d.ts +3 -0
  102. package/dist/lib/preprocess/processor/index.d.ts.map +1 -0
  103. package/dist/lib/preprocess/utils/BlueIdsMappingGenerator.d.ts +53 -0
  104. package/dist/lib/preprocess/utils/BlueIdsMappingGenerator.d.ts.map +1 -0
  105. package/dist/lib/processor/BlueDocumentProcessor.d.ts +54 -0
  106. package/dist/lib/processor/BlueDocumentProcessor.d.ts.map +1 -0
  107. package/dist/lib/processor/context.d.ts +21 -0
  108. package/dist/lib/processor/context.d.ts.map +1 -0
  109. package/dist/lib/processor/processors/BaseChannelProcessor.d.ts +27 -0
  110. package/dist/lib/processor/processors/BaseChannelProcessor.d.ts.map +1 -0
  111. package/dist/lib/processor/processors/ChannelEventCheckpointProcessor.d.ts +13 -0
  112. package/dist/lib/processor/processors/ChannelEventCheckpointProcessor.d.ts.map +1 -0
  113. package/dist/lib/processor/processors/CompositeTimelineChannelProcessor.d.ts +9 -0
  114. package/dist/lib/processor/processors/CompositeTimelineChannelProcessor.d.ts.map +1 -0
  115. package/dist/lib/processor/processors/DocumentUpdateChannelProcessor.d.ts +9 -0
  116. package/dist/lib/processor/processors/DocumentUpdateChannelProcessor.d.ts.map +1 -0
  117. package/dist/lib/processor/processors/EmbeddedNodeChannelProcessor.d.ts +9 -0
  118. package/dist/lib/processor/processors/EmbeddedNodeChannelProcessor.d.ts.map +1 -0
  119. package/dist/lib/processor/processors/MyOSAgentChannelProcessor.d.ts +60 -0
  120. package/dist/lib/processor/processors/MyOSAgentChannelProcessor.d.ts.map +1 -0
  121. package/dist/lib/processor/processors/MyOSTimelineChannelProcessor.d.ts +9 -0
  122. package/dist/lib/processor/processors/MyOSTimelineChannelProcessor.d.ts.map +1 -0
  123. package/dist/lib/processor/processors/OperationProcessor.d.ts +11 -0
  124. package/dist/lib/processor/processors/OperationProcessor.d.ts.map +1 -0
  125. package/dist/lib/processor/processors/ProcessEmbeddedProcessor.d.ts +10 -0
  126. package/dist/lib/processor/processors/ProcessEmbeddedProcessor.d.ts.map +1 -0
  127. package/dist/lib/processor/processors/SequentialWorkflowOperationProcessor.d.ts +12 -0
  128. package/dist/lib/processor/processors/SequentialWorkflowOperationProcessor.d.ts.map +1 -0
  129. package/dist/lib/processor/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.d.ts +15 -0
  130. package/dist/lib/processor/processors/SequentialWorkflowProcessor/SequentialWorkflowProcessor.d.ts.map +1 -0
  131. package/dist/lib/processor/processors/SequentialWorkflowProcessor/index.d.ts +2 -0
  132. package/dist/lib/processor/processors/SequentialWorkflowProcessor/index.d.ts.map +1 -0
  133. package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/JavaScriptCodeExecutor.d.ts +8 -0
  134. package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/JavaScriptCodeExecutor.d.ts.map +1 -0
  135. package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.d.ts +8 -0
  136. package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/TriggerEventExecutor.d.ts.map +1 -0
  137. package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.d.ts +12 -0
  138. package/dist/lib/processor/processors/SequentialWorkflowProcessor/steps/UpdateDocumentExecutor.d.ts.map +1 -0
  139. package/dist/lib/processor/processors/SequentialWorkflowProcessor/types.d.ts +7 -0
  140. package/dist/lib/processor/processors/SequentialWorkflowProcessor/types.d.ts.map +1 -0
  141. package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/BindingsFactory.d.ts +12 -0
  142. package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/BindingsFactory.d.ts.map +1 -0
  143. package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.d.ts +59 -0
  144. package/dist/lib/processor/processors/SequentialWorkflowProcessor/utils/ExpressionEvaluator.d.ts.map +1 -0
  145. package/dist/lib/processor/processors/TimelineChannelProcessor.d.ts +9 -0
  146. package/dist/lib/processor/processors/TimelineChannelProcessor.d.ts.map +1 -0
  147. package/dist/lib/processor/processors/index.d.ts +12 -0
  148. package/dist/lib/processor/processors/index.d.ts.map +1 -0
  149. package/dist/lib/processor/queue/TaskKey.d.ts +22 -0
  150. package/dist/lib/processor/queue/TaskKey.d.ts.map +1 -0
  151. package/dist/lib/processor/queue/TaskQueue.d.ts +31 -0
  152. package/dist/lib/processor/queue/TaskQueue.d.ts.map +1 -0
  153. package/dist/lib/processor/registry/ContractRegistry.d.ts +47 -0
  154. package/dist/lib/processor/registry/ContractRegistry.d.ts.map +1 -0
  155. package/dist/lib/processor/routing/EventRouter.d.ts +51 -0
  156. package/dist/lib/processor/routing/EventRouter.d.ts.map +1 -0
  157. package/dist/lib/processor/types.d.ts +112 -0
  158. package/dist/lib/processor/types.d.ts.map +1 -0
  159. package/dist/lib/processor/utils/CheckpointCache.d.ts +9 -0
  160. package/dist/lib/processor/utils/CheckpointCache.d.ts.map +1 -0
  161. package/dist/lib/processor/utils/EventTraceManager.d.ts +46 -0
  162. package/dist/lib/processor/utils/EventTraceManager.d.ts.map +1 -0
  163. package/dist/lib/processor/utils/checkpoint.d.ts +3 -0
  164. package/dist/lib/processor/utils/checkpoint.d.ts.map +1 -0
  165. package/dist/lib/processor/utils/document.d.ts +19 -0
  166. package/dist/lib/processor/utils/document.d.ts.map +1 -0
  167. package/dist/lib/processor/utils/exceptions.d.ts +28 -0
  168. package/dist/lib/processor/utils/exceptions.d.ts.map +1 -0
  169. package/dist/lib/processor/utils/fetchText.d.ts +2 -0
  170. package/dist/lib/processor/utils/fetchText.d.ts.map +1 -0
  171. package/dist/lib/processor/utils/logPatchError.d.ts +3 -0
  172. package/dist/lib/processor/utils/logPatchError.d.ts.map +1 -0
  173. package/dist/lib/processor/utils/path.d.ts +2 -0
  174. package/dist/lib/processor/utils/path.d.ts.map +1 -0
  175. package/dist/lib/processor/utils/typeGuard.d.ts +5 -0
  176. package/dist/lib/processor/utils/typeGuard.d.ts.map +1 -0
  177. package/dist/lib/provider/BaseContentNodeProvider.d.ts +9 -0
  178. package/dist/lib/provider/BaseContentNodeProvider.d.ts.map +1 -0
  179. package/dist/lib/provider/BootstrapProvider.d.ts +13 -0
  180. package/dist/lib/provider/BootstrapProvider.d.ts.map +1 -0
  181. package/dist/lib/provider/InMemoryNodeProvider.d.ts +13 -0
  182. package/dist/lib/provider/InMemoryNodeProvider.d.ts.map +1 -0
  183. package/dist/lib/provider/SequentialNodeProvider.d.ts +14 -0
  184. package/dist/lib/provider/SequentialNodeProvider.d.ts.map +1 -0
  185. package/dist/lib/provider/UrlContentFetcher.d.ts +65 -0
  186. package/dist/lib/provider/UrlContentFetcher.d.ts.map +1 -0
  187. package/dist/lib/provider/index.d.ts +6 -0
  188. package/dist/lib/provider/index.d.ts.map +1 -0
  189. package/dist/lib/utils/Base58Sha256Provider.d.ts +11 -0
  190. package/dist/lib/utils/Base58Sha256Provider.d.ts.map +1 -0
  191. package/dist/lib/utils/BlueIdCalculator.d.ts +22 -0
  192. package/dist/lib/utils/BlueIdCalculator.d.ts.map +1 -0
  193. package/dist/lib/utils/BlueIdResolver.d.ts +9 -0
  194. package/dist/lib/utils/BlueIdResolver.d.ts.map +1 -0
  195. package/dist/lib/utils/BlueIdToCid.d.ts +4 -0
  196. package/dist/lib/utils/BlueIdToCid.d.ts.map +1 -0
  197. package/dist/lib/utils/BlueIds.d.ts +7 -0
  198. package/dist/lib/utils/BlueIds.d.ts.map +1 -0
  199. package/dist/lib/utils/CidToBlueId.d.ts +4 -0
  200. package/dist/lib/utils/CidToBlueId.d.ts.map +1 -0
  201. package/dist/lib/utils/CryptoEnvironment.d.ts +13 -0
  202. package/dist/lib/utils/CryptoEnvironment.d.ts.map +1 -0
  203. package/dist/lib/utils/JsonCanonicalizer.d.ts +4 -0
  204. package/dist/lib/utils/JsonCanonicalizer.d.ts.map +1 -0
  205. package/dist/lib/utils/NodeExtender.d.ts +31 -0
  206. package/dist/lib/utils/NodeExtender.d.ts.map +1 -0
  207. package/dist/lib/utils/NodePatch/NodePatch.d.ts +28 -0
  208. package/dist/lib/utils/NodePatch/NodePatch.d.ts.map +1 -0
  209. package/dist/lib/utils/NodePatch/index.d.ts +2 -0
  210. package/dist/lib/utils/NodePatch/index.d.ts.map +1 -0
  211. package/dist/lib/utils/NodePatch/patch-operations.d.ts +8 -0
  212. package/dist/lib/utils/NodePatch/patch-operations.d.ts.map +1 -0
  213. package/dist/lib/utils/NodePatch/patch-utils.d.ts +34 -0
  214. package/dist/lib/utils/NodePatch/patch-utils.d.ts.map +1 -0
  215. package/dist/lib/utils/NodePathAccessor.d.ts +8 -0
  216. package/dist/lib/utils/NodePathAccessor.d.ts.map +1 -0
  217. package/dist/lib/utils/NodeProviderWrapper.d.ts +13 -0
  218. package/dist/lib/utils/NodeProviderWrapper.d.ts.map +1 -0
  219. package/dist/lib/utils/NodeToMapListOrValue.d.ts +24 -0
  220. package/dist/lib/utils/NodeToMapListOrValue.d.ts.map +1 -0
  221. package/dist/lib/utils/NodeTransformer.d.ts +14 -0
  222. package/dist/lib/utils/NodeTransformer.d.ts.map +1 -0
  223. package/dist/lib/utils/Properties.d.ts +31 -0
  224. package/dist/lib/utils/Properties.d.ts.map +1 -0
  225. package/dist/lib/utils/TinyQueue.d.ts +12 -0
  226. package/dist/lib/utils/TinyQueue.d.ts.map +1 -0
  227. package/dist/lib/utils/TypeSchema.d.ts +6 -0
  228. package/dist/lib/utils/TypeSchema.d.ts.map +1 -0
  229. package/dist/lib/utils/TypeSchemaResolver.d.ts +11 -0
  230. package/dist/lib/utils/TypeSchemaResolver.d.ts.map +1 -0
  231. package/dist/lib/utils/__tests__/calculateCID.d.ts +3 -0
  232. package/dist/lib/utils/__tests__/calculateCID.d.ts.map +1 -0
  233. package/dist/lib/utils/index.d.ts +10 -0
  234. package/dist/lib/utils/index.d.ts.map +1 -0
  235. package/dist/lib/utils/limits/Limits.d.ts +31 -0
  236. package/dist/lib/utils/limits/Limits.d.ts.map +1 -0
  237. package/dist/lib/utils/limits/NoLimits.d.ts +25 -0
  238. package/dist/lib/utils/limits/NoLimits.d.ts.map +1 -0
  239. package/dist/lib/utils/limits/PathLimits.d.ts +100 -0
  240. package/dist/lib/utils/limits/PathLimits.d.ts.map +1 -0
  241. package/dist/lib/utils/limits/index.d.ts +9 -0
  242. package/dist/lib/utils/limits/index.d.ts.map +1 -0
  243. package/dist/repo/core/blue-ids/index.d.ts +21 -0
  244. package/dist/repo/core/blue-ids/index.d.ts.map +1 -0
  245. package/dist/repo/core/index.d.ts +191 -0
  246. package/dist/repo/core/index.d.ts.map +1 -0
  247. package/dist/repo/core/schema/Channel.d.ts +13 -0
  248. package/dist/repo/core/schema/Channel.d.ts.map +1 -0
  249. package/dist/repo/core/schema/CompositeTimelineChannel.d.ts +17 -0
  250. package/dist/repo/core/schema/CompositeTimelineChannel.d.ts.map +1 -0
  251. package/dist/repo/core/schema/DocumentUpdateChannel.d.ts +17 -0
  252. package/dist/repo/core/schema/DocumentUpdateChannel.d.ts.map +1 -0
  253. package/dist/repo/core/schema/EmbeddedNodeChannel.d.ts +17 -0
  254. package/dist/repo/core/schema/EmbeddedNodeChannel.d.ts.map +1 -0
  255. package/dist/repo/core/schema/JavaScriptCode.d.ts +10 -0
  256. package/dist/repo/core/schema/JavaScriptCode.d.ts.map +1 -0
  257. package/dist/repo/core/schema/JsonPatchEntry.d.ts +22 -0
  258. package/dist/repo/core/schema/JsonPatchEntry.d.ts.map +1 -0
  259. package/dist/repo/core/schema/Operation.d.ts +16 -0
  260. package/dist/repo/core/schema/Operation.d.ts.map +1 -0
  261. package/dist/repo/core/schema/OperationRequest.d.ts +29 -0
  262. package/dist/repo/core/schema/OperationRequest.d.ts.map +1 -0
  263. package/dist/repo/core/schema/ProcessEmbedded.d.ts +10 -0
  264. package/dist/repo/core/schema/ProcessEmbedded.d.ts.map +1 -0
  265. package/dist/repo/core/schema/SequentialWorkflow.d.ts +13 -0
  266. package/dist/repo/core/schema/SequentialWorkflow.d.ts.map +1 -0
  267. package/dist/repo/core/schema/SequentialWorkflowOperation.d.ts +15 -0
  268. package/dist/repo/core/schema/SequentialWorkflowOperation.d.ts.map +1 -0
  269. package/dist/repo/core/schema/SequentialWorkflowStep.d.ts +13 -0
  270. package/dist/repo/core/schema/SequentialWorkflowStep.d.ts.map +1 -0
  271. package/dist/repo/core/schema/TimelineChannel.d.ts +17 -0
  272. package/dist/repo/core/schema/TimelineChannel.d.ts.map +1 -0
  273. package/dist/repo/core/schema/TimelineEntry.d.ts +25 -0
  274. package/dist/repo/core/schema/TimelineEntry.d.ts.map +1 -0
  275. package/dist/repo/core/schema/TriggerEvent.d.ts +10 -0
  276. package/dist/repo/core/schema/TriggerEvent.d.ts.map +1 -0
  277. package/dist/repo/core/schema/UpdateDocument.d.ts +40 -0
  278. package/dist/repo/core/schema/UpdateDocument.d.ts.map +1 -0
  279. package/dist/repo/core/schema/index.d.ts +14 -0
  280. package/dist/repo/core/schema/index.d.ts.map +1 -0
  281. package/dist/repo/myos/blue-ids/index.d.ts +8 -0
  282. package/dist/repo/myos/blue-ids/index.d.ts.map +1 -0
  283. package/dist/repo/myos/index.d.ts +99 -0
  284. package/dist/repo/myos/index.d.ts.map +1 -0
  285. package/dist/repo/myos/schema/MyOSAgent.d.ts +10 -0
  286. package/dist/repo/myos/schema/MyOSAgent.d.ts.map +1 -0
  287. package/dist/repo/myos/schema/MyOSAgentChannel.d.ts +30 -0
  288. package/dist/repo/myos/schema/MyOSAgentChannel.d.ts.map +1 -0
  289. package/dist/repo/myos/schema/MyOSAgentEvent.d.ts +19 -0
  290. package/dist/repo/myos/schema/MyOSAgentEvent.d.ts.map +1 -0
  291. package/dist/repo/myos/schema/MyOSTimelineChannel.d.ts +24 -0
  292. package/dist/repo/myos/schema/MyOSTimelineChannel.d.ts.map +1 -0
  293. package/dist/repo/myos/schema/MyOSTimelineEntry.d.ts +32 -0
  294. package/dist/repo/myos/schema/MyOSTimelineEntry.d.ts.map +1 -0
  295. package/dist/repo/myos/schema/index.d.ts +6 -0
  296. package/dist/repo/myos/schema/index.d.ts.map +1 -0
  297. package/dist/schema/annotations/annotations.d.ts +10 -0
  298. package/dist/schema/annotations/annotations.d.ts.map +1 -0
  299. package/dist/schema/annotations/blueDescription.d.ts +5 -0
  300. package/dist/schema/annotations/blueDescription.d.ts.map +1 -0
  301. package/dist/schema/annotations/blueId.d.ts +5 -0
  302. package/dist/schema/annotations/blueId.d.ts.map +1 -0
  303. package/dist/schema/annotations/blueName.d.ts +5 -0
  304. package/dist/schema/annotations/blueName.d.ts.map +1 -0
  305. package/dist/schema/annotations/blueNode.d.ts +7 -0
  306. package/dist/schema/annotations/blueNode.d.ts.map +1 -0
  307. package/dist/schema/annotations/extends.d.ts +8 -0
  308. package/dist/schema/annotations/extends.d.ts.map +1 -0
  309. package/dist/schema/annotations/index.d.ts +7 -0
  310. package/dist/schema/annotations/index.d.ts.map +1 -0
  311. package/dist/schema/annotations/typeBlueId/index.d.ts +2 -0
  312. package/dist/schema/annotations/typeBlueId/index.d.ts.map +1 -0
  313. package/dist/schema/annotations/typeBlueId/proxySchema.d.ts +3 -0
  314. package/dist/schema/annotations/typeBlueId/proxySchema.d.ts.map +1 -0
  315. package/dist/schema/annotations/typeBlueId/typeBlueId.d.ts +19 -0
  316. package/dist/schema/annotations/typeBlueId/typeBlueId.d.ts.map +1 -0
  317. package/dist/schema/blueId.d.ts +4 -0
  318. package/dist/schema/blueId.d.ts.map +1 -0
  319. package/dist/schema/blueObjectPredicates.d.ts +11 -0
  320. package/dist/schema/blueObjectPredicates.d.ts.map +1 -0
  321. package/dist/schema/generated/blueObject.d.ts +37 -0
  322. package/dist/schema/generated/blueObject.d.ts.map +1 -0
  323. package/dist/schema/generated/blueObject.zod.d.ts +100 -0
  324. package/dist/schema/generated/blueObject.zod.d.ts.map +1 -0
  325. package/dist/schema/generated/index.d.ts +3 -0
  326. package/dist/schema/generated/index.d.ts.map +1 -0
  327. package/dist/schema/index.d.ts +5 -0
  328. package/dist/schema/index.d.ts.map +1 -0
  329. package/dist/schema/jsonBlue.d.ts +18 -0
  330. package/dist/schema/jsonBlue.d.ts.map +1 -0
  331. package/dist/types/index.d.ts +2 -0
  332. package/dist/types/index.d.ts.map +1 -0
  333. package/dist/types/zod.d.ts +5 -0
  334. package/dist/types/zod.d.ts.map +1 -0
  335. package/dist/utils/blueId/calculateBlueId.d.ts +15 -0
  336. package/dist/utils/blueId/calculateBlueId.d.ts.map +1 -0
  337. package/dist/utils/blueId/index.d.ts +2 -0
  338. package/dist/utils/blueId/index.d.ts.map +1 -0
  339. package/dist/utils/blueObject/enrichWithBlueId.d.ts +11 -0
  340. package/dist/utils/blueObject/enrichWithBlueId.d.ts.map +1 -0
  341. package/dist/utils/blueObject/getBlueObjectProperties.d.ts +6 -0
  342. package/dist/utils/blueObject/getBlueObjectProperties.d.ts.map +1 -0
  343. package/dist/utils/blueObject/getBlueObjectTypeLabel.d.ts +6 -0
  344. package/dist/utils/blueObject/getBlueObjectTypeLabel.d.ts.map +1 -0
  345. package/dist/utils/blueObject/getters.d.ts +7 -0
  346. package/dist/utils/blueObject/getters.d.ts.map +1 -0
  347. package/dist/utils/blueObject/index.d.ts +8 -0
  348. package/dist/utils/blueObject/index.d.ts.map +1 -0
  349. package/dist/utils/blueObject/isBlueObjectResolved.d.ts +3 -0
  350. package/dist/utils/blueObject/isBlueObjectResolved.d.ts.map +1 -0
  351. package/dist/utils/blueObject/normalizeToBlueObject.d.ts +10 -0
  352. package/dist/utils/blueObject/normalizeToBlueObject.d.ts.map +1 -0
  353. package/dist/utils/blueObject/resolveBlueObjectItems.d.ts +24 -0
  354. package/dist/utils/blueObject/resolveBlueObjectItems.d.ts.map +1 -0
  355. package/dist/utils/bs58/bs58.d.ts +3 -0
  356. package/dist/utils/bs58/bs58.d.ts.map +1 -0
  357. package/dist/utils/bs58/index.d.ts +2 -0
  358. package/dist/utils/bs58/index.d.ts.map +1 -0
  359. package/dist/utils/deepFreeze.d.ts +8 -0
  360. package/dist/utils/deepFreeze.d.ts.map +1 -0
  361. package/dist/utils/index.d.ts +5 -0
  362. package/dist/utils/index.d.ts.map +1 -0
  363. package/dist/utils/typeGuards/index.d.ts +2 -0
  364. package/dist/utils/typeGuards/index.d.ts.map +1 -0
  365. package/dist/utils/typeGuards/isBigNumber.d.ts +6 -0
  366. package/dist/utils/typeGuards/isBigNumber.d.ts.map +1 -0
  367. package/dist/utils/url.d.ts +7 -0
  368. package/dist/utils/url.d.ts.map +1 -0
  369. package/dist/utils/yamlBlue/dump.d.ts +5 -0
  370. package/dist/utils/yamlBlue/dump.d.ts.map +1 -0
  371. package/dist/utils/yamlBlue/index.d.ts +3 -0
  372. package/dist/utils/yamlBlue/index.d.ts.map +1 -0
  373. package/dist/utils/yamlBlue/parse.d.ts +9 -0
  374. package/dist/utils/yamlBlue/parse.d.ts.map +1 -0
  375. package/dist/utils/yamlBlue/schema.d.ts +3 -0
  376. package/dist/utils/yamlBlue/schema.d.ts.map +1 -0
  377. package/dist/utils/yamlBlue/type/float.d.ts +3 -0
  378. package/dist/utils/yamlBlue/type/float.d.ts.map +1 -0
  379. package/dist/utils/yamlBlue/type/int.d.ts +3 -0
  380. package/dist/utils/yamlBlue/type/int.d.ts.map +1 -0
  381. package/package.json +52 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"y1.d.ts","sourceRoot":"","sources":["../../../../../src/lib/mapping/__tests__/schema/y1.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAMpB,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMpB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { NodeToObjectConverter } from './NodeToObjectConverter';
2
+ export type { Converter } from './Converter';
3
+ export { ConverterFactory } from './ConverterFactory';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/mapping/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,YAAY,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { ZodType, ZodTypeDef, AnyZodObject } from 'zod';
2
+ export declare function serializeBlueAnnotated<T extends Record<string, unknown>>(value: T, schema: AnyZodObject | ZodType<T, ZodTypeDef, T>): Record<string, unknown>;
3
+ //# sourceMappingURL=serializeBlueAnnotated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serializeBlueAnnotated.d.ts","sourceRoot":"","sources":["../../../src/lib/mapping/serializeBlueAnnotated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAa,UAAU,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AAUnE,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACtE,KAAK,EAAE,CAAC,EACR,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,GAC/C,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuGzB"}
@@ -0,0 +1,9 @@
1
+ import { default as Big } from 'big.js';
2
+ /**
3
+ * BigDecimalNumber class extends the Big.js library to handle large float values.
4
+ * Created to make it similar to Java's implementation in the Blue language.
5
+ */
6
+ export declare class BigDecimalNumber extends Big {
7
+ constructor(value: number | string);
8
+ }
9
+ //# sourceMappingURL=BigDecimalNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BigDecimalNumber.d.ts","sourceRoot":"","sources":["../../../src/lib/model/BigDecimalNumber.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,QAAQ,CAAC;AAEzB;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,GAAG;gBAC3B,KAAK,EAAE,MAAM,GAAG,MAAM;CAGnC"}
@@ -0,0 +1,9 @@
1
+ import { default as Big } from 'big.js';
2
+ /**
3
+ * BigIntegerNumber class extends the Big.js library to handle large integer values.
4
+ * Created to make it similar to Java's implementation in the Blue language.
5
+ */
6
+ export declare class BigIntegerNumber extends Big {
7
+ constructor(value: number | string);
8
+ }
9
+ //# sourceMappingURL=BigIntegerNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BigIntegerNumber.d.ts","sourceRoot":"","sources":["../../../src/lib/model/BigIntegerNumber.ts"],"names":[],"mappings":"AAAA,OAAO,GAAG,MAAM,QAAQ,CAAC;AAEzB;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,GAAG;gBAC3B,KAAK,EAAE,MAAM,GAAG,MAAM;CAGnC"}
@@ -0,0 +1,53 @@
1
+ import { JsonPrimitive } from '@blue-labs/shared-utils';
2
+ import { BigIntegerNumber } from './BigIntegerNumber';
3
+ import { BigDecimalNumber } from './BigDecimalNumber';
4
+ export declare class BlueNode {
5
+ static INTEGER: BlueNode;
6
+ private name?;
7
+ private description?;
8
+ private type?;
9
+ private itemType?;
10
+ private keyType?;
11
+ private valueType?;
12
+ private value?;
13
+ private items?;
14
+ private properties?;
15
+ private contracts?;
16
+ private blueId?;
17
+ private blue?;
18
+ private inlineValue;
19
+ constructor(name?: string);
20
+ getName(): string | undefined;
21
+ setName(name: string | undefined): BlueNode;
22
+ getDescription(): string | undefined;
23
+ setDescription(description: string | undefined): BlueNode;
24
+ getType(): BlueNode | undefined;
25
+ setType(type: BlueNode | string | undefined): BlueNode;
26
+ getItemType(): BlueNode | undefined;
27
+ setItemType(itemType: BlueNode | string | undefined): BlueNode;
28
+ getKeyType(): BlueNode | undefined;
29
+ setKeyType(keyType: BlueNode | string | undefined): BlueNode;
30
+ getValueType(): BlueNode | undefined;
31
+ setValueType(valueType: BlueNode | string | undefined): BlueNode;
32
+ getValue(): string | boolean | BigIntegerNumber | BigDecimalNumber | null | undefined;
33
+ setValue(value: JsonPrimitive | BigIntegerNumber | BigDecimalNumber | number): BlueNode;
34
+ getItems(): BlueNode[] | undefined;
35
+ setItems(items: BlueNode[] | undefined): BlueNode;
36
+ addItems(...items: BlueNode[]): BlueNode;
37
+ getProperties(): Record<string, BlueNode> | undefined;
38
+ setProperties(properties: Record<string, BlueNode> | undefined): BlueNode;
39
+ addProperty(key: string, value: BlueNode): BlueNode;
40
+ getContracts(): Record<string, BlueNode> | undefined;
41
+ setContracts(contracts: Record<string, BlueNode> | undefined): BlueNode;
42
+ addContract(key: string, value: BlueNode): BlueNode;
43
+ getBlueId(): string | undefined;
44
+ setBlueId(blueId: string | undefined): BlueNode;
45
+ getBlue(): BlueNode | undefined;
46
+ setBlue(blue: BlueNode | undefined): BlueNode;
47
+ isInlineValue(): boolean;
48
+ setInlineValue(inlineValue: boolean): BlueNode;
49
+ get(path: string, linkingProvider?: (node: BlueNode) => BlueNode | null): BlueNode | string | boolean | BigIntegerNumber | BigDecimalNumber | null | undefined;
50
+ clone(): BlueNode;
51
+ toString(): string;
52
+ }
53
+ //# sourceMappingURL=Node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Node.d.ts","sourceRoot":"","sources":["../../../src/lib/model/Node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAOtD,qBAAa,QAAQ;IACnB,MAAM,CAAC,OAAO,EAAE,QAAQ,CAA2B;IAEnD,OAAO,CAAC,IAAI,CAAC,CAAS;IACtB,OAAO,CAAC,WAAW,CAAC,CAAS;IAC7B,OAAO,CAAC,IAAI,CAAC,CAAW;IACxB,OAAO,CAAC,QAAQ,CAAC,CAAW;IAC5B,OAAO,CAAC,OAAO,CAAC,CAAW;IAC3B,OAAO,CAAC,SAAS,CAAC,CAAW;IAC7B,OAAO,CAAC,KAAK,CAAC,CAGO;IACrB,OAAO,CAAC,KAAK,CAAC,CAAa;IAC3B,OAAO,CAAC,UAAU,CAAC,CAA2B;IAC9C,OAAO,CAAC,SAAS,CAAC,CAA2B;IAC7C,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,IAAI,CAAC,CAAW;IACxB,OAAO,CAAC,WAAW,CAAS;gBAEhB,IAAI,CAAC,EAAE,MAAM;IAIzB,OAAO;IAIP,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ;IAK3C,cAAc;IAId,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ;IAKzD,OAAO;IAIP,OAAO,CAAC,IAAI,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ;IAStD,WAAW;IAIX,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ;IAS9D,UAAU;IAIV,UAAU,CAAC,OAAO,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ;IAS5D,YAAY;IAIZ,YAAY,CAAC,SAAS,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ;IAShE,QAAQ;IAyBR,QAAQ,CACN,KAAK,EAAE,aAAa,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,MAAM,GAClE,QAAQ;IAaX,QAAQ;IAIR,QAAQ,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,SAAS,GAAG,QAAQ;IAKjD,QAAQ,CAAC,GAAG,KAAK,EAAE,QAAQ,EAAE,GAAG,QAAQ;IAQxC,aAAa;IAIb,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,SAAS,GAAG,QAAQ;IAKzE,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,QAAQ;IAQnD,YAAY;IAIZ,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GAAG,SAAS,GAAG,QAAQ;IAKvE,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,GAAG,QAAQ;IAQnD,SAAS;IAIT,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ;IAK/C,OAAO;IAIP,OAAO,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ;IAK7C,aAAa;IAIb,cAAc,CAAC,WAAW,EAAE,OAAO,GAAG,QAAQ;IAK9C,GAAG,CACD,IAAI,EAAE,MAAM,EACZ,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,QAAQ,GAAG,IAAI,GAEnD,QAAQ,GACR,MAAM,GACN,OAAO,GACP,gBAAgB,GAChB,gBAAgB,GAChB,IAAI,GACJ,SAAS;IAIb,KAAK,IAAI,QAAQ;IAyBjB,QAAQ,IAAI,MAAM;CAGnB"}
@@ -0,0 +1,8 @@
1
+ import { BlueNode } from './Node';
2
+ export declare class NodeDeserializer {
3
+ static deserialize(json: unknown): BlueNode;
4
+ private static handleNode;
5
+ private static handleValue;
6
+ private static handleArray;
7
+ }
8
+ //# sourceMappingURL=NodeDeserializer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeDeserializer.d.ts","sourceRoot":"","sources":["../../../src/lib/model/NodeDeserializer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAqBlC,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,OAAO;IAIhC,OAAO,CAAC,MAAM,CAAC,UAAU;IA2FzB,OAAO,CAAC,MAAM,CAAC,WAAW;IA2B1B,OAAO,CAAC,MAAM,CAAC,WAAW;CAY3B"}
@@ -0,0 +1,5 @@
1
+ export { BlueNode } from './Node';
2
+ export { NodeDeserializer } from './NodeDeserializer';
3
+ export { BigDecimalNumber } from './BigDecimalNumber';
4
+ export { BigIntegerNumber } from './BigIntegerNumber';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/model/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,85 @@
1
+ import { BlueNode } from '../model';
2
+ import { UrlContentFetcher } from '../provider/UrlContentFetcher';
3
+ /**
4
+ * A preprocessor specifically for handling blue directives before main preprocessing
5
+ */
6
+ export declare class BlueDirectivePreprocessor {
7
+ private preprocessingAliases;
8
+ private urlContentFetcher?;
9
+ /**
10
+ * Creates a new BlueDirectivePreprocessor
11
+ *
12
+ * @param preprocessingAliases - Map of alias values to BlueIds (optional)
13
+ * @param urlContentFetcher - UrlContentFetcher for fetching URL content
14
+ */
15
+ constructor(preprocessingAliases?: Map<string, string>, urlContentFetcher?: UrlContentFetcher);
16
+ /**
17
+ * Processes a node's blue directive synchronously
18
+ *
19
+ * @param node - The node to process
20
+ * @returns The node with processed blue directive
21
+ */
22
+ process(node: BlueNode): BlueNode;
23
+ /**
24
+ * Processes a node's blue directive asynchronously, with support for URL fetching
25
+ *
26
+ * @param node - The node to process
27
+ * @returns Promise that resolves to the node with processed blue directive
28
+ */
29
+ processAsync(node: BlueNode): Promise<BlueNode>;
30
+ /**
31
+ * Gets the blue node value if it exists and is a string
32
+ * @param node - The node to get the blue value from
33
+ * @returns The blue node value or null if it doesn't exist or isn't a string
34
+ */
35
+ private getBlueNodeValue;
36
+ /**
37
+ * Handles a blue value that is an alias
38
+ * @param node - The cloned node to modify
39
+ * @param value - The alias value
40
+ * @returns The modified node
41
+ */
42
+ private handleAliasValue;
43
+ /**
44
+ * Handles a blue value that is a potential BlueId
45
+ * @param node - The cloned node to modify
46
+ * @param value - The BlueId value
47
+ * @returns The modified node
48
+ */
49
+ private handleBlueId;
50
+ /**
51
+ * Fetches content from a URL
52
+ * @param url - The URL to fetch from
53
+ * @returns Promise that resolves to the fetched BlueNodes or null if fetch fails
54
+ */
55
+ private fetchFromUrl;
56
+ /**
57
+ * Gets the current preprocessing aliases
58
+ * @returns Map of aliases to BlueIds
59
+ */
60
+ getPreprocessingAliases(): Map<string, string>;
61
+ /**
62
+ * Sets the preprocessing aliases
63
+ * @param aliases - Map of aliases to set
64
+ * @returns this instance for chaining
65
+ */
66
+ setPreprocessingAliases(aliases: Map<string, string>): BlueDirectivePreprocessor;
67
+ /**
68
+ * Adds preprocessing aliases to the map
69
+ * @param aliases - Map of aliases to add
70
+ * @returns this instance for chaining
71
+ */
72
+ addPreprocessingAliases(aliases: Map<string, string>): BlueDirectivePreprocessor;
73
+ /**
74
+ * Updates the URL content fetcher
75
+ * @param urlContentFetcher - The UrlContentFetcher to use
76
+ * @returns this instance for chaining
77
+ */
78
+ setUrlContentFetcher(urlContentFetcher: UrlContentFetcher): BlueDirectivePreprocessor;
79
+ /**
80
+ * Gets the current URL content fetcher
81
+ * @returns The current UrlContentFetcher or undefined
82
+ */
83
+ getUrlContentFetcher(): UrlContentFetcher | undefined;
84
+ }
85
+ //# sourceMappingURL=BlueDirectivePreprocessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BlueDirectivePreprocessor.d.ts","sourceRoot":"","sources":["../../../src/lib/preprocess/BlueDirectivePreprocessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAGpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE;;GAEG;AACH,qBAAa,yBAAyB;IACpC,OAAO,CAAC,oBAAoB,CAAkC;IAC9D,OAAO,CAAC,iBAAiB,CAAC,CAAoB;IAE9C;;;;;OAKG;gBAED,oBAAoB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EAC1C,iBAAiB,CAAC,EAAE,iBAAiB;IAQvC;;;;;OAKG;IACI,OAAO,CAAC,IAAI,EAAE,QAAQ,GAAG,QAAQ;IAsBxC;;;;;OAKG;IACU,YAAY,CAAC,IAAI,EAAE,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;IAqC5D;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAQxB;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAOxB;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAKpB;;;;OAIG;YACW,YAAY;IAQ1B;;;OAGG;IACI,uBAAuB,IAAI,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;IAIrD;;;;OAIG;IACI,uBAAuB,CAC5B,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3B,yBAAyB;IAK5B;;;;OAIG;IACI,uBAAuB,CAC5B,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAC3B,yBAAyB;IAO5B;;;;OAIG;IACI,oBAAoB,CACzB,iBAAiB,EAAE,iBAAiB,GACnC,yBAAyB;IAK5B;;;OAGG;IACI,oBAAoB,IAAI,iBAAiB,GAAG,SAAS;CAG7D"}
@@ -0,0 +1,68 @@
1
+ import { NodeProvider } from '../NodeProvider';
2
+ import { BlueNode } from '../model';
3
+ import { TransformationProcessorProvider } from './interfaces';
4
+ import { BlueIdsRecord } from './utils/BlueIdsMappingGenerator';
5
+ /**
6
+ * Preprocessor class for transforming BlueNodes
7
+ */
8
+ export declare class Preprocessor {
9
+ static readonly DEFAULT_BLUE_BLUE_ID = "FREHAAGDZSzpnoTUoCQ86bBmxbVCULMjvx9JZM6fyqT1";
10
+ private processorProvider;
11
+ private nodeProvider;
12
+ private defaultSimpleBlue;
13
+ /**
14
+ * Creates a new Preprocessor with the specified provider and NodeProvider or just NodeProvider
15
+ * @param processorProviderOrNodeProvider - The TransformationProcessorProvider or NodeProvider to use
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
31
+ */
32
+ static getAllRegisteredBlueIds(): Record<string, string>;
33
+ /**
34
+ * Preprocesses a document node
35
+ * @param document - The document node to preprocess
36
+ * @returns The preprocessed document
37
+ */
38
+ preprocess(document: BlueNode): BlueNode;
39
+ /**
40
+ * Preprocesses a document node using the default Blue node
41
+ * @param document - The document node to preprocess
42
+ * @returns The preprocessed document
43
+ */
44
+ preprocessWithDefaultBlue(document: BlueNode): BlueNode;
45
+ /**
46
+ * Preprocesses a document node with the specified default Blue node
47
+ * @param document - The document node to preprocess
48
+ * @param defaultBlue - The default Blue node to use if the document doesn't have one
49
+ * @returns The preprocessed document
50
+ */
51
+ private preprocessWithOptions;
52
+ /**
53
+ * Gets the standard transformation processor provider
54
+ * @returns The standard provider
55
+ */
56
+ static getStandardProvider(): TransformationProcessorProvider;
57
+ /**
58
+ * Enriches the default Blue YAML with dynamic BlueIds mappings
59
+ * @param defaultBlue - The base default Blue YAML content
60
+ * @returns Enriched YAML content with dynamic mappings
61
+ */
62
+ private enrichDefaultBlue;
63
+ /**
64
+ * Loads the default simple Blue node
65
+ */
66
+ private loadDefaultSimpleBlue;
67
+ }
68
+ //# sourceMappingURL=Preprocessor.d.ts.map
@@ -0,0 +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;AAUtB,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,iCAAiC,CAAC;AAEzC;;GAEG;AACH,qBAAa,YAAY;IACvB,gBAAuB,oBAAoB,kDACM;IAEjD,OAAO,CAAC,iBAAiB,CAAkC;IAC3D,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,iBAAiB,CAAyB;IAElD;;;;OAIG;gBAED,+BAA+B,EAC3B,+BAA+B,GAC/B,YAAY,EAChB,YAAY,CAAC,EAAE,YAAY;IAqB7B;;;OAGG;WACW,eAAe,CAAC,GAAG,kBAAkB,EAAE,aAAa,EAAE,GAAG,IAAI;IAI3E;;OAEG;WACW,sBAAsB,IAAI,IAAI;IAK5C;;;OAGG;WACW,uBAAuB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAI/D;;;;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"}
@@ -0,0 +1,5 @@
1
+ export { type TransformationProcessor, type TransformationProcessorProvider, } from './interfaces';
2
+ export { InferBasicTypesForUntypedValues, ReplaceInlineValuesForTypeAttributesWithImports, } from './processor';
3
+ export { Preprocessor } from './Preprocessor';
4
+ export { BlueDirectivePreprocessor } from './BlueDirectivePreprocessor';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/preprocess/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,+BAA+B,GACrC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,+BAA+B,EAC/B,+CAA+C,GAChD,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { BlueNode } from '../model';
2
+ /**
3
+ * Interface for processors that transform BlueNodes
4
+ */
5
+ export interface TransformationProcessor {
6
+ /**
7
+ * Process a document node
8
+ * @param document - The document to process
9
+ * @returns The processed document
10
+ */
11
+ process(document: BlueNode): BlueNode;
12
+ }
13
+ /**
14
+ * Provider interface for transformation processors
15
+ */
16
+ export interface TransformationProcessorProvider {
17
+ /**
18
+ * Get a processor for the given transformation node
19
+ * @param transformation - The transformation node
20
+ * @returns The processor, or undefined if no processor is available
21
+ */
22
+ getProcessor(transformation: BlueNode): TransformationProcessor | undefined;
23
+ }
24
+ //# sourceMappingURL=interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/lib/preprocess/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;OAIG;IACH,OAAO,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC;CACvC;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,YAAY,CAAC,cAAc,EAAE,QAAQ,GAAG,uBAAuB,GAAG,SAAS,CAAC;CAC7E"}
@@ -0,0 +1,20 @@
1
+ import { BlueNode } from '../../model';
2
+ import { TransformationProcessor } from '../interfaces';
3
+ /**
4
+ * Processor that infers basic types for untyped values
5
+ */
6
+ export declare class InferBasicTypesForUntypedValues implements TransformationProcessor {
7
+ /**
8
+ * Process a document node to infer basic types for untyped values
9
+ * @param document - The document to process
10
+ * @returns The processed document
11
+ */
12
+ process(document: BlueNode): BlueNode;
13
+ /**
14
+ * Infer a basic type for a node
15
+ * @param node - The node to infer a type for
16
+ * @returns The node with the inferred type
17
+ */
18
+ private inferType;
19
+ }
20
+ //# sourceMappingURL=InferBasicTypesForUntypedValues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InferBasicTypesForUntypedValues.d.ts","sourceRoot":"","sources":["../../../../src/lib/preprocess/processor/InferBasicTypesForUntypedValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAcxD;;GAEG;AACH,qBAAa,+BACX,YAAW,uBAAuB;IAElC;;;;OAIG;IACH,OAAO,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ;IAIrC;;;;OAIG;IACH,OAAO,CAAC,SAAS;CAkBlB"}
@@ -0,0 +1,23 @@
1
+ import { BlueNode } from '../../model';
2
+ import { TransformationProcessor } from '../interfaces';
3
+ /**
4
+ * Processor that replaces inline values for type attributes with imports
5
+ */
6
+ export declare class ReplaceInlineValuesForTypeAttributesWithImports implements TransformationProcessor {
7
+ static readonly MAPPINGS = "mappings";
8
+ private mappings;
9
+ /**
10
+ * Creates a new processor with the given transformation node or mappings
11
+ * @param transformationOrMappings - The transformation node or mappings to use
12
+ */
13
+ constructor(transformationOrMappings: BlueNode | Map<string, string>);
14
+ /**
15
+ * Process a document node to replace inline values for type attributes with imports
16
+ * @param document - The document to process
17
+ * @returns The processed document
18
+ */
19
+ process(document: BlueNode): BlueNode;
20
+ private transformNode;
21
+ private transformTypeField;
22
+ }
23
+ //# sourceMappingURL=ReplaceInlineValuesForTypeAttributesWithImports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReplaceInlineValuesForTypeAttributesWithImports.d.ts","sourceRoot":"","sources":["../../../../src/lib/preprocess/processor/ReplaceInlineValuesForTypeAttributesWithImports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AAGxD;;GAEG;AACH,qBAAa,+CACX,YAAW,uBAAuB;IAElC,gBAAuB,QAAQ,cAAc;IAC7C,OAAO,CAAC,QAAQ,CAAkC;IAElD;;;OAGG;gBACS,wBAAwB,EAAE,QAAQ,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;IA2BpE;;;;OAIG;IACH,OAAO,CAAC,QAAQ,EAAE,QAAQ,GAAG,QAAQ;IAIrC,OAAO,CAAC,aAAa;IASrB,OAAO,CAAC,kBAAkB;CA6B3B"}
@@ -0,0 +1,3 @@
1
+ export * from './InferBasicTypesForUntypedValues';
2
+ export * from './ReplaceInlineValuesForTypeAttributesWithImports';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/preprocess/processor/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,mDAAmD,CAAC"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Type definition for BlueIds objects
3
+ */
4
+ export type BlueIdsRecord = Record<string, string>;
5
+ /**
6
+ * Utility class for generating YAML mappings from BlueIds objects
7
+ * This class provides a centralized way to manage and generate YAML mappings
8
+ * from various BlueIds collections, making it easy to extend with new collections.
9
+ */
10
+ export declare class BlueIdsMappingGenerator {
11
+ private static blueIdsCollections;
12
+ /**
13
+ * Initializes the generator with default BlueIds collections
14
+ * @param defaultCollections - Array of default BlueIds objects to initialize with
15
+ */
16
+ static initialize(...defaultCollections: BlueIdsRecord[]): void;
17
+ /**
18
+ * Registers additional BlueIds collections for mapping generation
19
+ * @param blueIdsCollections - Array of BlueIds objects to register
20
+ */
21
+ static registerBlueIds(...blueIdsCollections: BlueIdsRecord[]): void;
22
+ /**
23
+ * Generates YAML mappings section from all registered BlueIds collections
24
+ * @param transformationBlueId - The BlueId for the transformation type (defaults to the standard one)
25
+ * @returns YAML string with mappings for all BlueIds
26
+ */
27
+ static generateMappingsYaml(transformationBlueId?: string): string;
28
+ /**
29
+ * Gets all currently registered BlueIds as a merged object
30
+ * @returns Merged object containing all BlueIds from all collections
31
+ */
32
+ static getAllBlueIds(): Record<string, string>;
33
+ /**
34
+ * Gets the names of all registered BlueIds
35
+ * @returns Array of all BlueId names
36
+ */
37
+ static getAllBlueIdNames(): string[];
38
+ /**
39
+ * Clears all registered BlueIds collections
40
+ */
41
+ static clear(): void;
42
+ /**
43
+ * Gets the count of registered BlueIds collections
44
+ * @returns Number of registered collections
45
+ */
46
+ static getCollectionCount(): number;
47
+ /**
48
+ * Gets the total count of unique BlueIds across all collections
49
+ * @returns Number of unique BlueIds
50
+ */
51
+ static getTotalBlueIdCount(): number;
52
+ }
53
+ //# sourceMappingURL=BlueIdsMappingGenerator.d.ts.map
@@ -0,0 +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,MAAM,CAAC,kBAAkB,CAAuB;IAExD;;;OAGG;IACH,MAAM,CAAC,UAAU,CAAC,GAAG,kBAAkB,EAAE,aAAa,EAAE,GAAG,IAAI;IAI/D;;;OAGG;IACH,MAAM,CAAC,eAAe,CAAC,GAAG,kBAAkB,EAAE,aAAa,EAAE,GAAG,IAAI;IAIpE;;;;OAIG;IACH,MAAM,CAAC,oBAAoB,CACzB,oBAAoB,SAAiD,GACpE,MAAM;IAmBT;;;OAGG;IACH,MAAM,CAAC,aAAa,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAU9C;;;OAGG;IACH,MAAM,CAAC,iBAAiB,IAAI,MAAM,EAAE;IAIpC;;OAEG;IACH,MAAM,CAAC,KAAK,IAAI,IAAI;IAIpB;;;OAGG;IACH,MAAM,CAAC,kBAAkB,IAAI,MAAM;IAInC;;;OAGG;IACH,MAAM,CAAC,mBAAmB,IAAI,MAAM;CAGrC"}
@@ -0,0 +1,54 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,21 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,27 @@
1
+ import { ContractProcessor, EventNode, DocumentNode, ProcessingContext, BlueId } from '../types';
2
+ export declare abstract class BaseChannelProcessor implements ContractProcessor {
3
+ abstract readonly contractType: string;
4
+ abstract readonly contractBlueId: BlueId;
5
+ readonly role = "adapter";
6
+ /**
7
+ * Base implementation of supports that checks if the event is not from a channel
8
+ * Derived classes should call this method first in their supports implementation
9
+ */
10
+ protected baseSupports(event: EventNode): boolean;
11
+ /**
12
+ * Abstract method that derived classes must implement
13
+ * Should contain specific logic for determining if the processor supports the event
14
+ */
15
+ abstract supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext, contractName?: string): boolean;
16
+ /**
17
+ * Abstract method that derived classes must implement
18
+ * Should contain specific logic for handling the event
19
+ */
20
+ abstract handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext, contractName?: string): void | Promise<void>;
21
+ /**
22
+ * Base implementation that returns empty array
23
+ * Can be overridden by derived classes if needed
24
+ */
25
+ init(): EventNode[];
26
+ }
27
+ //# sourceMappingURL=BaseChannelProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseChannelProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/BaseChannelProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,MAAM,EACP,MAAM,UAAU,CAAC;AAElB,8BAAsB,oBAAqB,YAAW,iBAAiB;IACrE,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IACvC,QAAQ,CAAC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IACzC,QAAQ,CAAC,IAAI,aAAa;IAE1B;;;OAGG;IACH,SAAS,CAAC,YAAY,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO;IAKjD;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CACf,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO;IAEV;;;OAGG;IACH,QAAQ,CAAC,MAAM,CACb,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,YAAY,CAAC,EAAE,MAAM,GACpB,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAEvB;;;OAGG;IACH,IAAI,IAAI,SAAS,EAAE;CAGpB"}
@@ -0,0 +1,13 @@
1
+ import { ContractProcessor, DocumentNode, EventNode, ProcessingContext } from '../types';
2
+ import { CheckpointCache } from '../utils/CheckpointCache';
3
+ export declare class ChannelEventCheckpointProcessor implements ContractProcessor {
4
+ private readonly cache;
5
+ readonly contractType = "Channel Event Checkpoint";
6
+ readonly contractBlueId: "o27B7fuxMkKoutPh3uDxZ7dr6E5qxkQCS1VAptiCPc2R";
7
+ readonly role = "handler";
8
+ constructor(cache: CheckpointCache);
9
+ supports(evt: EventNode): boolean;
10
+ handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext): Promise<void>;
11
+ init(): EventNode[];
12
+ }
13
+ //# sourceMappingURL=ChannelEventCheckpointProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChannelEventCheckpointProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/ChannelEventCheckpointProcessor.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,iBAAiB,EACjB,YAAY,EACZ,SAAS,EACT,iBAAiB,EAClB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAO3D,qBAAa,+BAAgC,YAAW,iBAAiB;IAK3D,OAAO,CAAC,QAAQ,CAAC,KAAK;IAJlC,QAAQ,CAAC,YAAY,8BAA8B;IACnD,QAAQ,CAAC,cAAc,iDAAuC;IAC9D,QAAQ,CAAC,IAAI,aAAa;gBAEG,KAAK,EAAE,eAAe;IAEnD,QAAQ,CAAC,GAAG,EAAE,SAAS,GAAG,OAAO;IAQ3B,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,iBAAiB;IAYzE,IAAI,IAAI,SAAS,EAAE;CAGpB"}
@@ -0,0 +1,9 @@
1
+ import { EventNode, DocumentNode, ProcessingContext } from '../types';
2
+ import { BaseChannelProcessor } from './BaseChannelProcessor';
3
+ export declare class CompositeTimelineChannelProcessor extends BaseChannelProcessor {
4
+ readonly contractType = "Composite Timeline Channel";
5
+ readonly contractBlueId: "qxkh3uMkKoutP5DxZ7dr6Eo27B7fuxQCS1VAptiCPc2R";
6
+ supports(event: EventNode, node: DocumentNode, ctx: ProcessingContext): boolean;
7
+ handle(event: EventNode, node: DocumentNode, ctx: ProcessingContext, path: string): void;
8
+ }
9
+ //# sourceMappingURL=CompositeTimelineChannelProcessor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompositeTimelineChannelProcessor.d.ts","sourceRoot":"","sources":["../../../../src/lib/processor/processors/CompositeTimelineChannelProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAI9D,qBAAa,iCAAkC,SAAQ,oBAAoB;IACzE,QAAQ,CAAC,YAAY,gCAAgC;IACrD,QAAQ,CAAC,cAAc,iDAAyC;IAEhE,QAAQ,CACN,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,GACrB,OAAO;IAWV,MAAM,CACJ,KAAK,EAAE,SAAS,EAChB,IAAI,EAAE,YAAY,EAClB,GAAG,EAAE,iBAAiB,EACtB,IAAI,EAAE,MAAM,GACX,IAAI;CAOR"}
@@ -0,0 +1,9 @@
1
+ import { EventNode, DocumentNode, ProcessingContext } from '../types';
2
+ import { BaseChannelProcessor } from './BaseChannelProcessor';
3
+ export declare class DocumentUpdateChannelProcessor extends BaseChannelProcessor {
4
+ readonly contractType = "Document Update Channel";
5
+ readonly contractBlueId: "MkKoutP5qxkh3uDQCS1VAptiCPc2xZ7dr6Eo27B7fux";
6
+ supports(event: EventNode, contractNode: DocumentNode, ctx: ProcessingContext, contractName: string): boolean;
7
+ handle(event: EventNode, contractNode: DocumentNode, ctx: ProcessingContext, contractName: string): void;
8
+ }
9
+ //# sourceMappingURL=DocumentUpdateChannelProcessor.d.ts.map