@reventlessdev/reventless-core 3.0.0-alpha.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1355 -0
- package/LICENSE +202 -0
- package/README.md +173 -0
- package/__mocks__/emptyModule.js +2 -0
- package/jest.setup.cjs +5 -0
- package/package.json +73 -0
- package/rescript.json +41 -0
- package/scripts/deploy.sh +6 -0
- package/scripts/post-deploy.sh +5 -0
- package/scripts/pre-deploy.sh +18 -0
- package/scripts/pulumi-up.sh +30 -0
- package/src/Behavior.res +18 -0
- package/src/Behavior.res.mjs +2 -0
- package/src/ComponentType.res +125 -0
- package/src/ComponentType.res.mjs +199 -0
- package/src/Env.res +5 -0
- package/src/Env.res.mjs +2 -0
- package/src/Mapper.res +36 -0
- package/src/Mapper.res.mjs +18 -0
- package/src/Mapper1toN.res +107 -0
- package/src/Mapper1toN.res.mjs +2 -0
- package/src/MapperNto1.res +78 -0
- package/src/MapperNto1.res.mjs +35 -0
- package/src/Message.res +353 -0
- package/src/Message.res.mjs +418 -0
- package/src/PluginRuntimeOperations.res +15 -0
- package/src/PluginRuntimeOperations.res.mjs +2 -0
- package/src/Projection.res +447 -0
- package/src/Projection.res.mjs +712 -0
- package/src/ProjectionMapper.res +44 -0
- package/src/ProjectionMapper.res.mjs +51 -0
- package/src/RequestContext.res +42 -0
- package/src/RequestContext.res.mjs +39 -0
- package/src/adapter/Adapter.res +178 -0
- package/src/adapter/Adapter.res.mjs +201 -0
- package/src/adapter/AdapterDeploytime.res +56 -0
- package/src/adapter/AdapterDeploytime.res.mjs +42 -0
- package/src/adapter/Auth/Auth_Adapter.res +42 -0
- package/src/adapter/Auth/Auth_Adapter.res.mjs +2 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder.res +22 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder.res.mjs +2 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_Common.res +259 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_Common.res.mjs +190 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_Micro.res +92 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_Micro.res.mjs +59 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_PerAggregate.res +52 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_PerAggregate.res.mjs +49 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_Single.res +64 -0
- package/src/adapter/Runtime/AggregateRuntime_Builder_Single.res.mjs +59 -0
- package/src/adapter/Runtime/EventCollectorRuntime_Builder.res +11 -0
- package/src/adapter/Runtime/EventCollectorRuntime_Builder.res.mjs +2 -0
- package/src/adapter/Runtime/EventCollectorRuntime_Builder_PerEventCollector.res +46 -0
- package/src/adapter/Runtime/EventCollectorRuntime_Builder_PerEventCollector.res.mjs +40 -0
- package/src/adapter/Runtime/EventCollectorRuntime_Builder_Single.res +204 -0
- package/src/adapter/Runtime/EventCollectorRuntime_Builder_Single.res.mjs +150 -0
- package/src/adapter/Runtime/ExtensionPointRuntime_Builder.res +18 -0
- package/src/adapter/Runtime/ExtensionPointRuntime_Builder.res.mjs +2 -0
- package/src/adapter/Runtime/ExtensionPointRuntime_Builder_PerExtensionPoint.res +36 -0
- package/src/adapter/Runtime/ExtensionPointRuntime_Builder_PerExtensionPoint.res.mjs +28 -0
- package/src/adapter/Runtime/PluginRuntime_Builder.res +23 -0
- package/src/adapter/Runtime/PluginRuntime_Builder.res.mjs +2 -0
- package/src/adapter/Runtime/PluginRuntime_Builder_Micro.res +97 -0
- package/src/adapter/Runtime/PluginRuntime_Builder_Micro.res.mjs +62 -0
- package/src/adapter/Runtime/PluginRuntime_Builder_Single.res +89 -0
- package/src/adapter/Runtime/PluginRuntime_Builder_Single.res.mjs +62 -0
- package/src/adapter/Runtime/Runtime.res +106 -0
- package/src/adapter/Runtime/Runtime.res.mjs +22 -0
- package/src/adapter/Runtime/TaskRuntime_Builder.res +32 -0
- package/src/adapter/Runtime/TaskRuntime_Builder.res.mjs +2 -0
- package/src/adapter/Runtime/TaskRuntime_Builder_PerBucket.res +42 -0
- package/src/adapter/Runtime/TaskRuntime_Builder_PerBucket.res.mjs +29 -0
- package/src/admin/AdminApi.res +88 -0
- package/src/admin/AdminApi.res.mjs +89 -0
- package/src/admin/Admin_Callback.res +27 -0
- package/src/admin/Admin_Callback.res.mjs +20 -0
- package/src/admin/Platform_Admin.res +402 -0
- package/src/admin/Platform_Admin.res.mjs +250 -0
- package/src/admin/Platform_Admin_Structure.res +125 -0
- package/src/admin/Platform_Admin_Structure.res.mjs +182 -0
- package/src/admin/Platform_ComponentDefinitionsApi.res +160 -0
- package/src/admin/Platform_ComponentDefinitionsApi.res.mjs +299 -0
- package/src/admin/Platform_UIFragmentsApi.res +55 -0
- package/src/admin/Platform_UIFragmentsApi.res.mjs +124 -0
- package/src/admin/UIFragmentRegistryProjection.res +43 -0
- package/src/admin/UIFragmentRegistryProjection.res.mjs +81 -0
- package/src/admin/UIFragmentRegistryReadModelSpec.res +13 -0
- package/src/admin/UIFragmentRegistryReadModelSpec.res.mjs +40 -0
- package/src/components/Aggregate/Aggregate.res +96 -0
- package/src/components/Aggregate/Aggregate.res.mjs +82 -0
- package/src/components/Aggregate/Aggregate_Builder.res +175 -0
- package/src/components/Aggregate/Aggregate_Builder.res.mjs +119 -0
- package/src/components/Aggregate/Aggregate_Callback.res +273 -0
- package/src/components/Aggregate/Aggregate_Callback.res.mjs +208 -0
- package/src/components/Api/ApiAllowedStatesHelpers.res +19 -0
- package/src/components/Api/ApiAllowedStatesHelpers.res.mjs +16 -0
- package/src/components/Api/ApiNoApiHelpers.res +13 -0
- package/src/components/Api/ApiNoApiHelpers.res.mjs +29 -0
- package/src/components/Api/Api_Builder.res +40 -0
- package/src/components/Api/Api_Builder.res.mjs +33 -0
- package/src/components/Api/Api_Naming.res +92 -0
- package/src/components/Api/Api_Naming.res.mjs +103 -0
- package/src/components/Api/Api_Operations.res +13 -0
- package/src/components/Api/Api_Operations.res.mjs +12 -0
- package/src/components/Api/GraphQL_FragmentGenerator.res +612 -0
- package/src/components/Api/GraphQL_FragmentGenerator.res.mjs +503 -0
- package/src/components/Api/GraphQL_SchemaInspector.res +156 -0
- package/src/components/Api/GraphQL_SchemaInspector.res.mjs +123 -0
- package/src/components/Api/GraphQL_Stitcher.res +271 -0
- package/src/components/Api/GraphQL_Stitcher.res.mjs +229 -0
- package/src/components/Api/MCP_SchemaGenerator.res +185 -0
- package/src/components/Api/MCP_SchemaGenerator.res.mjs +146 -0
- package/src/components/Api/SchemaType.res +126 -0
- package/src/components/Api/SchemaType.res.mjs +143 -0
- package/src/components/Api/SuryToJsonSchema.res +142 -0
- package/src/components/Api/SuryToJsonSchema.res.mjs +210 -0
- package/src/components/AutomationSlice/AutomationSlice.res +39 -0
- package/src/components/AutomationSlice/AutomationSlice.res.mjs +24 -0
- package/src/components/AutomationSlice/AutomationSlice_Builder.res +207 -0
- package/src/components/AutomationSlice/AutomationSlice_Builder.res.mjs +123 -0
- package/src/components/AutomationSlice/AutomationSlice_Callback.res +212 -0
- package/src/components/AutomationSlice/AutomationSlice_Callback.res.mjs +189 -0
- package/src/components/Builder_Helpers.res +196 -0
- package/src/components/Builder_Helpers.res.mjs +142 -0
- package/src/components/Cloner.res +84 -0
- package/src/components/Cloner.res.mjs +88 -0
- package/src/components/CommandGenerator/CommandGenerator.res +54 -0
- package/src/components/CommandGenerator/CommandGenerator.res.mjs +15 -0
- package/src/components/CommandGenerator/CommandGenerator_Adapter.res +22 -0
- package/src/components/CommandGenerator/CommandGenerator_Adapter.res.mjs +2 -0
- package/src/components/CommandGenerator/CommandGenerator_Builder.res +70 -0
- package/src/components/CommandGenerator/CommandGenerator_Builder.res.mjs +68 -0
- package/src/components/CommandGenerator/CommandGenerator_Callback.res +191 -0
- package/src/components/CommandGenerator/CommandGenerator_Callback.res.mjs +161 -0
- package/src/components/CommandTopic/CommandTopic.res +79 -0
- package/src/components/CommandTopic/CommandTopic.res.mjs +68 -0
- package/src/components/CommandTopic/CommandTopic_Adapter.res +53 -0
- package/src/components/CommandTopic/CommandTopic_Adapter.res.mjs +2 -0
- package/src/components/CommandTopic/CommandTopic_Builder.res +146 -0
- package/src/components/CommandTopic/CommandTopic_Builder.res.mjs +127 -0
- package/src/components/CommandTopic/CommandTopic_Callback.res +38 -0
- package/src/components/CommandTopic/CommandTopic_Callback.res.mjs +49 -0
- package/src/components/CommandTopic/CommandTopic_Helpers.res +176 -0
- package/src/components/CommandTopic/CommandTopic_Helpers.res.mjs +195 -0
- package/src/components/CommandTopic/CommandTopic_Operations.res +40 -0
- package/src/components/CommandTopic/CommandTopic_Operations.res.mjs +49 -0
- package/src/components/Component.res +1 -0
- package/src/components/Component.res.mjs +34 -0
- package/src/components/Component.resi +1 -0
- package/src/components/Counter/Counter.res +47 -0
- package/src/components/Counter/Counter.res.mjs +55 -0
- package/src/components/Counter/Counter_Adapter.res +18 -0
- package/src/components/Counter/Counter_Adapter.res.mjs +2 -0
- package/src/components/Counter/Counter_Builder.res +142 -0
- package/src/components/Counter/Counter_Builder.res.mjs +112 -0
- package/src/components/Counter/Counter_Callback.res +94 -0
- package/src/components/Counter/Counter_Callback.res.mjs +70 -0
- package/src/components/Counter/Counter_Operations.res +70 -0
- package/src/components/Counter/Counter_Operations.res.mjs +91 -0
- package/src/components/Dcb/Dcb_Builder.res +971 -0
- package/src/components/Dcb/Dcb_Builder.res.mjs +572 -0
- package/src/components/DcbEventLog/DcbEventLog.res +43 -0
- package/src/components/DcbEventLog/DcbEventLog.res.mjs +24 -0
- package/src/components/DcbEventLog/DcbEventLog_Adapter.res +57 -0
- package/src/components/DcbEventLog/DcbEventLog_Adapter.res.mjs +2 -0
- package/src/components/DcbEventLog/DcbEventLog_Builder.res +72 -0
- package/src/components/DcbEventLog/DcbEventLog_Builder.res.mjs +67 -0
- package/src/components/DcbEventLog/DcbEventLog_Operations.res +160 -0
- package/src/components/DcbEventLog/DcbEventLog_Operations.res.mjs +121 -0
- package/src/components/EventCollector/EventCollector.res +34 -0
- package/src/components/EventCollector/EventCollector.res.mjs +9 -0
- package/src/components/EventCollector/EventCollector_Adapter.res +45 -0
- package/src/components/EventCollector/EventCollector_Adapter.res.mjs +2 -0
- package/src/components/EventCollector/EventCollector_Builder.res +91 -0
- package/src/components/EventCollector/EventCollector_Builder.res.mjs +64 -0
- package/src/components/EventLog/EventLog.res +27 -0
- package/src/components/EventLog/EventLog.res.mjs +13 -0
- package/src/components/EventLog/EventLog_Adapter.res +15 -0
- package/src/components/EventLog/EventLog_Adapter.res.mjs +2 -0
- package/src/components/EventLog/EventLog_Builder.res +65 -0
- package/src/components/EventLog/EventLog_Builder.res.mjs +57 -0
- package/src/components/EventLog/EventLog_Operations.res +209 -0
- package/src/components/EventLog/EventLog_Operations.res.mjs +202 -0
- package/src/components/EventLog/EventPublish_Callback.res +29 -0
- package/src/components/EventLog/EventPublish_Callback.res.mjs +32 -0
- package/src/components/EventMapper/EventMapper.res +72 -0
- package/src/components/EventMapper/EventMapper.res.mjs +54 -0
- package/src/components/EventMapper/EventMapper_Builder.res +128 -0
- package/src/components/EventMapper/EventMapper_Builder.res.mjs +81 -0
- package/src/components/EventMapper/EventMapper_Callback.res +323 -0
- package/src/components/EventMapper/EventMapper_Callback.res.mjs +231 -0
- package/src/components/EventTopic/EventTopic.res +69 -0
- package/src/components/EventTopic/EventTopic.res.mjs +50 -0
- package/src/components/EventTopic/EventTopic_Adapter.res +15 -0
- package/src/components/EventTopic/EventTopic_Adapter.res.mjs +2 -0
- package/src/components/EventTopic/EventTopic_Builder.res +53 -0
- package/src/components/EventTopic/EventTopic_Builder.res.mjs +46 -0
- package/src/components/EventTopic/EventTopic_Operations.res +37 -0
- package/src/components/EventTopic/EventTopic_Operations.res.mjs +39 -0
- package/src/components/Extension/Extension.res +32 -0
- package/src/components/Extension/Extension.res.mjs +9 -0
- package/src/components/Extension/Extension_Builder.res +82 -0
- package/src/components/Extension/Extension_Builder.res.mjs +57 -0
- package/src/components/Extension/Extension_Operations.res +203 -0
- package/src/components/Extension/Extension_Operations.res.mjs +154 -0
- package/src/components/ExtensionPoint/ExtensionPoint.res +49 -0
- package/src/components/ExtensionPoint/ExtensionPoint.res.mjs +25 -0
- package/src/components/ExtensionPoint/ExtensionPoint_Builder.res +163 -0
- package/src/components/ExtensionPoint/ExtensionPoint_Builder.res.mjs +113 -0
- package/src/components/ExtensionPoint/ExtensionPoint_Callback.res +110 -0
- package/src/components/ExtensionPoint/ExtensionPoint_Callback.res.mjs +76 -0
- package/src/components/ExtensionPoint/ExtensionPoint_Operations.res +146 -0
- package/src/components/ExtensionPoint/ExtensionPoint_Operations.res.mjs +122 -0
- package/src/components/Heartbeat/Heartbeat.res +25 -0
- package/src/components/Heartbeat/Heartbeat.res.mjs +9 -0
- package/src/components/Heartbeat/Heartbeat_Adapter.res +14 -0
- package/src/components/Heartbeat/Heartbeat_Adapter.res.mjs +2 -0
- package/src/components/Heartbeat/Heartbeat_Builder.res +43 -0
- package/src/components/Heartbeat/Heartbeat_Builder.res.mjs +47 -0
- package/src/components/Heartbeat/Heartbeat_Callback.res +32 -0
- package/src/components/Heartbeat/Heartbeat_Callback.res.mjs +40 -0
- package/src/components/InboundTranslationSlice/InboundTranslationSlice.res +34 -0
- package/src/components/InboundTranslationSlice/InboundTranslationSlice.res.mjs +24 -0
- package/src/components/InboundTranslationSlice/InboundTranslationSlice_Builder.res +98 -0
- package/src/components/InboundTranslationSlice/InboundTranslationSlice_Builder.res.mjs +87 -0
- package/src/components/InboundTranslationSlice/InboundTranslationSlice_Callback.res +191 -0
- package/src/components/InboundTranslationSlice/InboundTranslationSlice_Callback.res.mjs +175 -0
- package/src/components/OutboundTranslationSlice/OutboundTranslationSlice.res +35 -0
- package/src/components/OutboundTranslationSlice/OutboundTranslationSlice.res.mjs +24 -0
- package/src/components/OutboundTranslationSlice/OutboundTranslationSlice_Builder.res +181 -0
- package/src/components/OutboundTranslationSlice/OutboundTranslationSlice_Builder.res.mjs +137 -0
- package/src/components/OutboundTranslationSlice/OutboundTranslationSlice_Callback.res +173 -0
- package/src/components/OutboundTranslationSlice/OutboundTranslationSlice_Callback.res.mjs +173 -0
- package/src/components/QueryDb/QueryDb.res +74 -0
- package/src/components/QueryDb/QueryDb.res.mjs +37 -0
- package/src/components/QueryDb/QueryDb_Adapter.res +78 -0
- package/src/components/QueryDb/QueryDb_Adapter.res.mjs +17 -0
- package/src/components/QueryDb/QueryDb_Builder.res +76 -0
- package/src/components/QueryDb/QueryDb_Builder.res.mjs +53 -0
- package/src/components/QueryDb/QueryDb_Callback.res +18 -0
- package/src/components/QueryDb/QueryDb_Callback.res.mjs +21 -0
- package/src/components/QueryDb/QueryDb_Operations.res +116 -0
- package/src/components/QueryDb/QueryDb_Operations.res.mjs +165 -0
- package/src/components/ReadModel/ReadModel.res +42 -0
- package/src/components/ReadModel/ReadModel.res.mjs +27 -0
- package/src/components/ReadModel/ReadModel_Builder.res +155 -0
- package/src/components/ReadModel/ReadModel_Builder.res.mjs +101 -0
- package/src/components/ReadModel/ReadModel_Callback.res +48 -0
- package/src/components/ReadModel/ReadModel_Callback.res.mjs +48 -0
- package/src/components/Scheduler/Scheduler.res +13 -0
- package/src/components/Scheduler/Scheduler.res.mjs +9 -0
- package/src/components/Scheduler/Scheduler_Adapter.res +13 -0
- package/src/components/Scheduler/Scheduler_Adapter.res.mjs +2 -0
- package/src/components/Scheduler/Scheduler_Builder.res +19 -0
- package/src/components/Scheduler/Scheduler_Builder.res.mjs +29 -0
- package/src/components/SideEffectHandler/SideEffectHandler.res +30 -0
- package/src/components/SideEffectHandler/SideEffectHandler.res.mjs +12 -0
- package/src/components/SideEffectHandler/SideEffectHandler_Builder.res +117 -0
- package/src/components/SideEffectHandler/SideEffectHandler_Builder.res.mjs +64 -0
- package/src/components/SideEffectHandler/SideEffectHandler_Callback.res +116 -0
- package/src/components/SideEffectHandler/SideEffectHandler_Callback.res.mjs +95 -0
- package/src/components/StateChangeSlice/StateChangeSlice.res +38 -0
- package/src/components/StateChangeSlice/StateChangeSlice.res.mjs +17 -0
- package/src/components/StateChangeSlice/StateChangeSlice_Builder.res +91 -0
- package/src/components/StateChangeSlice/StateChangeSlice_Builder.res.mjs +81 -0
- package/src/components/StateChangeSlice/StateChangeSlice_Callback.res +412 -0
- package/src/components/StateChangeSlice/StateChangeSlice_Callback.res.mjs +299 -0
- package/src/components/StateTopic.res +91 -0
- package/src/components/StateTopic.res.mjs +41 -0
- package/src/components/StateViewSlice/StateViewSlice.res +33 -0
- package/src/components/StateViewSlice/StateViewSlice.res.mjs +24 -0
- package/src/components/StateViewSlice/StateViewSlice_Builder.res +176 -0
- package/src/components/StateViewSlice/StateViewSlice_Builder.res.mjs +134 -0
- package/src/components/StateViewSlice/StateViewSlice_Callback.res +64 -0
- package/src/components/StateViewSlice/StateViewSlice_Callback.res.mjs +56 -0
- package/src/components/Task/Task.res +81 -0
- package/src/components/Task/Task.res.mjs +51 -0
- package/src/components/Task/Task_Adapter.res +31 -0
- package/src/components/Task/Task_Adapter.res.mjs +2 -0
- package/src/components/Task/Task_Builder.res +223 -0
- package/src/components/Task/Task_Builder.res.mjs +115 -0
- package/src/plugin/api/PluginBaseFragment.res +104 -0
- package/src/plugin/api/PluginBaseFragment.res.mjs +64 -0
- package/src/plugin/component/Plugin.res +100 -0
- package/src/plugin/component/Plugin.res.mjs +61 -0
- package/src/plugin/component/Plugin_Builder.res +1017 -0
- package/src/plugin/component/Plugin_Builder.res.mjs +608 -0
- package/src/plugin/component/Plugin_BuiltHook.res +141 -0
- package/src/plugin/component/Plugin_BuiltHook.res.mjs +39 -0
- package/src/plugin/component/Plugin_Callback.res +98 -0
- package/src/plugin/component/Plugin_Callback.res.mjs +55 -0
- package/src/plugin/component/Plugin_Helpers.res +1730 -0
- package/src/plugin/component/Plugin_Helpers.res.mjs +1010 -0
- package/src/plugin/component/Plugin_ResolverError.res +27 -0
- package/src/plugin/component/Plugin_ResolverError.res.mjs +21 -0
- package/src/plugin/component/Plugin_Structure.res +570 -0
- package/src/plugin/component/Plugin_Structure.res.mjs +458 -0
- package/src/plugin/component/Plugin_SubscriptionSchema.res +103 -0
- package/src/plugin/component/Plugin_SubscriptionSchema.res.mjs +71 -0
- package/src/plugin/component/SchemaWalker.res +164 -0
- package/src/plugin/component/SchemaWalker.res.mjs +183 -0
- package/src/plugin/connect/PluginConnectExtension_Builder.res +14 -0
- package/src/plugin/connect/PluginConnectExtension_Builder.res.mjs +36 -0
- package/src/plugin/connect/PluginConnectExtension_Mapping.res +76 -0
- package/src/plugin/connect/PluginConnectExtension_Mapping.res.mjs +89 -0
- package/src/plugin/connect/PluginExtensionPoint_Builder.res +39 -0
- package/src/plugin/connect/PluginExtensionPoint_Builder.res.mjs +33 -0
- package/src/plugin/connect/PluginExtensionPoint_Plugin.res +231 -0
- package/src/plugin/connect/PluginExtensionPoint_Plugin.res.mjs +353 -0
- package/src/plugin/lifecycle/PluginBehavior.res +250 -0
- package/src/plugin/lifecycle/PluginBehavior.res.mjs +391 -0
- package/src/plugin/lifecycle/PluginSpec.res +84 -0
- package/src/plugin/lifecycle/PluginSpec.res.mjs +148 -0
- package/src/plugin/lifecycle/PluginsProjection.res +154 -0
- package/src/plugin/lifecycle/PluginsProjection.res.mjs +230 -0
- package/src/plugin/lifecycle/PluginsReadModelSpec.res +66 -0
- package/src/plugin/lifecycle/PluginsReadModelSpec.res.mjs +58 -0
- package/src/util/AWS.res +7 -0
- package/src/util/AWS.res.mjs +20 -0
- package/src/util/CSV.res +27 -0
- package/src/util/CSV.res.mjs +56 -0
- package/src/util/CommandPublisher.res +133 -0
- package/src/util/CommandPublisher.res.mjs +161 -0
- package/src/util/CsvStream.res +39 -0
- package/src/util/CsvStream.res.mjs +42 -0
- package/src/util/EffectLogger.res +178 -0
- package/src/util/EffectLogger.res.mjs +171 -0
- package/src/util/FTP.res +69 -0
- package/src/util/FTP.res.mjs +101 -0
- package/src/util/FTPHandler.res +142 -0
- package/src/util/FTPHandler.res.mjs +136 -0
- package/src/util/Hash.res +1 -0
- package/src/util/Hash.res.mjs +10 -0
- package/src/util/Interstack.res +74 -0
- package/src/util/Interstack.res.mjs +126 -0
- package/src/util/Interstack.resi +25 -0
- package/src/util/LogFormat.res +222 -0
- package/src/util/LogFormat.res.mjs +257 -0
- package/src/util/Logger.res +196 -0
- package/src/util/Logger.res.mjs +238 -0
- package/src/util/Lru.res +51 -0
- package/src/util/Lru.res.mjs +59 -0
- package/src/util/Lru.resi +32 -0
- package/src/util/Metrics.res +32 -0
- package/src/util/Metrics.res.mjs +42 -0
- package/src/util/OutputFailsafeDeploytime.res +16 -0
- package/src/util/OutputFailsafeDeploytime.res.mjs +20 -0
- package/src/util/OutputFailsafeRuntime.res +6 -0
- package/src/util/OutputFailsafeRuntime.res.mjs +15 -0
- package/src/util/OutputLogger.res +9 -0
- package/src/util/OutputLogger.res.mjs +19 -0
- package/src/util/ResourceQuery.res +14 -0
- package/src/util/ResourceQuery.res.mjs +17 -0
- package/src/util/ResourceQueryRuntime.res +17 -0
- package/src/util/ResourceQueryRuntime.res.mjs +18 -0
- package/src/util/ScheduleOps.res +124 -0
- package/src/util/ScheduleOps.res.mjs +132 -0
- package/src/util/Util.res +12 -0
- package/src/util/Util.res.mjs +42 -0
- package/src/util/Util_Adapter.res +97 -0
- package/src/util/Util_Adapter.res.mjs +82 -0
- package/src/util/Util_AdapterRuntime.res +39 -0
- package/src/util/Util_AdapterRuntime.res.mjs +42 -0
- package/src/util/Util_Array.res +2 -0
- package/src/util/Util_Array.res.mjs +12 -0
- package/src/util/Util_Error.res +16 -0
- package/src/util/Util_Error.res.mjs +19 -0
- package/src/util/Util_Promise.res +67 -0
- package/src/util/Util_Promise.res.mjs +105 -0
- package/src/util/Util_Pulumi.res +35 -0
- package/src/util/Util_Pulumi.res.mjs +55 -0
- package/src/util/Util_Pulumi.resi +21 -0
- package/src/util/Util_QueryDb.res +14 -0
- package/src/util/Util_QueryDb.res.mjs +21 -0
- package/src/util/Util_QueryDbRuntime.res +11 -0
- package/src/util/Util_QueryDbRuntime.res.mjs +19 -0
- package/src/util/Util_ReadModel.res +2 -0
- package/src/util/Util_ReadModel.res.mjs +10 -0
- package/src/util/Util_StackRefs.res +24 -0
- package/src/util/Util_StackRefs.res.mjs +39 -0
- package/src/util/Validation.res +75 -0
- package/src/util/Validation.res.mjs +181 -0
- package/tests/.gitkeep +0 -0
- package/tests/IdentityTest.res +155 -0
- package/tests/IdentityTest.res.mjs +174 -0
- package/tests/admin/Platform_ComponentDefinitionsApiTest.res +237 -0
- package/tests/admin/Platform_ComponentDefinitionsApiTest.res.mjs +298 -0
- package/tests/admin/Platform_UIFragmentsApiTest.res +96 -0
- package/tests/admin/Platform_UIFragmentsApiTest.res.mjs +101 -0
- package/tests/aggregate/AggregateCallbackTest.res +81 -0
- package/tests/aggregate/AggregateCallbackTest.res.mjs +140 -0
- package/tests/aggregate/AggregateCausationTest.res +49 -0
- package/tests/aggregate/AggregateCausationTest.res.mjs +44 -0
- package/tests/aggregate/AggregateConflictTest.res +212 -0
- package/tests/aggregate/AggregateConflictTest.res.mjs +363 -0
- package/tests/aggregate/AggregateFixtures.res +177 -0
- package/tests/aggregate/AggregateFixtures.res.mjs +285 -0
- package/tests/aggregate/AggregateRejectionTest.res +139 -0
- package/tests/aggregate/AggregateRejectionTest.res.mjs +163 -0
- package/tests/api/ApiNoApiTest.res +62 -0
- package/tests/api/ApiNoApiTest.res.mjs +90 -0
- package/tests/api/GraphQL_StitcherTest.res +107 -0
- package/tests/api/GraphQL_StitcherTest.res.mjs +99 -0
- package/tests/api/SimpleTest.res +7 -0
- package/tests/api/SimpleTest.res.mjs +10 -0
- package/tests/api/SuryToJsonSchemaTest.res +405 -0
- package/tests/api/SuryToJsonSchemaTest.res.mjs +623 -0
- package/tests/commandgenerator/CommandGeneratorCallbackTest.res +128 -0
- package/tests/commandgenerator/CommandGeneratorCallbackTest.res.mjs +160 -0
- package/tests/commandgenerator/CommandGeneratorFixtures.res +139 -0
- package/tests/commandgenerator/CommandGeneratorFixtures.res.mjs +197 -0
- package/tests/commandtopic/CommandTopicCallbackFixtures.res +87 -0
- package/tests/commandtopic/CommandTopicCallbackFixtures.res.mjs +152 -0
- package/tests/commandtopic/CommandTopicCallbackTest.res +66 -0
- package/tests/commandtopic/CommandTopicCallbackTest.res.mjs +106 -0
- package/tests/commandtopic/CommandTopicHelpersRejectionTest.res +83 -0
- package/tests/commandtopic/CommandTopicHelpersRejectionTest.res.mjs +109 -0
- package/tests/counter/CounterCallbackTest.res +83 -0
- package/tests/counter/CounterCallbackTest.res.mjs +140 -0
- package/tests/counter/CounterFixtures.res +57 -0
- package/tests/counter/CounterFixtures.res.mjs +67 -0
- package/tests/dcb/DcbDecodeTest.res +122 -0
- package/tests/dcb/DcbDecodeTest.res.mjs +194 -0
- package/tests/dcb/DcbEventLogOperationsTest.res +195 -0
- package/tests/dcb/DcbEventLogOperationsTest.res.mjs +268 -0
- package/tests/dcb/DcbFixtures.res +422 -0
- package/tests/dcb/DcbFixtures.res.mjs +534 -0
- package/tests/dcb/DcbScopeInferenceTest.res +242 -0
- package/tests/dcb/DcbScopeInferenceTest.res.mjs +480 -0
- package/tests/dcb/DcbStateChangeSliceTest.res +362 -0
- package/tests/dcb/DcbStateChangeSliceTest.res.mjs +546 -0
- package/tests/dcb/DcbTagTest.res +978 -0
- package/tests/dcb/DcbTagTest.res.mjs +867 -0
- package/tests/dcb/DcbValidationTest.res +349 -0
- package/tests/dcb/DcbValidationTest.res.mjs +476 -0
- package/tests/eventlog/EventLogFixtures.res +113 -0
- package/tests/eventlog/EventLogFixtures.res.mjs +166 -0
- package/tests/eventlog/EventLogOperationsTest.res +96 -0
- package/tests/eventlog/EventLogOperationsTest.res.mjs +192 -0
- package/tests/eventlog/EventLogRetryTest.res +121 -0
- package/tests/eventlog/EventLogRetryTest.res.mjs +171 -0
- package/tests/eventmapper/EventMapperCallbackTest.res +134 -0
- package/tests/eventmapper/EventMapperCallbackTest.res.mjs +141 -0
- package/tests/eventmapper/EventMapperFixtures.res +255 -0
- package/tests/eventmapper/EventMapperFixtures.res.mjs +440 -0
- package/tests/eventmapper/EventMapperTest.res +53 -0
- package/tests/eventmapper/EventMapperTest.res.mjs +83 -0
- package/tests/eventtopic/EventTopicFixtures.res +36 -0
- package/tests/eventtopic/EventTopicFixtures.res.mjs +65 -0
- package/tests/eventtopic/EventTopicOperationsTest.res +48 -0
- package/tests/eventtopic/EventTopicOperationsTest.res.mjs +71 -0
- package/tests/extensionpoint/ExtensionPointCallbackTest.res +84 -0
- package/tests/extensionpoint/ExtensionPointCallbackTest.res.mjs +94 -0
- package/tests/extensionpoint/ExtensionPointFixtures.res +173 -0
- package/tests/extensionpoint/ExtensionPointFixtures.res.mjs +205 -0
- package/tests/extensionpoint/ExtensionPointOperationsTest.res +261 -0
- package/tests/extensionpoint/ExtensionPointOperationsTest.res.mjs +304 -0
- package/tests/ftp/FTPTest.res +64 -0
- package/tests/ftp/FTPTest.res.mjs +88 -0
- package/tests/logger/LogFormatTest.res +348 -0
- package/tests/logger/LogFormatTest.res.mjs +309 -0
- package/tests/message/MessageTest.res +95 -0
- package/tests/message/MessageTest.res.mjs +93 -0
- package/tests/message/MetaEnvelopeTest.res +200 -0
- package/tests/message/MetaEnvelopeTest.res.mjs +188 -0
- package/tests/plugin/ManifestVisibilityTest.res +137 -0
- package/tests/plugin/ManifestVisibilityTest.res.mjs +205 -0
- package/tests/plugin/PluginSpecExperiment.res +13 -0
- package/tests/plugin/PluginSpecExperiment.res.mjs +31 -0
- package/tests/plugin/PluginStructureTest.res +298 -0
- package/tests/plugin/PluginStructureTest.res.mjs +388 -0
- package/tests/plugin/PluginVersionTest.res +34 -0
- package/tests/plugin/PluginVersionTest.res.mjs +30 -0
- package/tests/plugin/SchemaWalkerTest.res +115 -0
- package/tests/plugin/SchemaWalkerTest.res.mjs +160 -0
- package/tests/plugin/StateChangeSlice/PsPlaceOrder.res +24 -0
- package/tests/plugin/StateChangeSlice/PsPlaceOrder.res.mjs +62 -0
- package/tests/plugin/StateChangeSlice/PsShipOrder.res +29 -0
- package/tests/plugin/StateChangeSlice/PsShipOrder.res.mjs +69 -0
- package/tests/plugin/StateViewSlice/PsAnnotatedView.res +24 -0
- package/tests/plugin/StateViewSlice/PsAnnotatedView.res.mjs +94 -0
- package/tests/plugin/StateViewSlice/PsAvailableProductsView.res +18 -0
- package/tests/plugin/StateViewSlice/PsAvailableProductsView.res.mjs +69 -0
- package/tests/plugin/StateViewSlice/PsCustomersView.res +22 -0
- package/tests/plugin/StateViewSlice/PsCustomersView.res.mjs +69 -0
- package/tests/plugin/StateViewSlice/PsOrdersView.res +20 -0
- package/tests/plugin/StateViewSlice/PsOrdersView.res.mjs +81 -0
- package/tests/poc/StructuralSubtypingPoc.res +211 -0
- package/tests/poc/StructuralSubtypingPoc.res.mjs +61 -0
- package/tests/querydb/QueryDbFixtures.res +65 -0
- package/tests/querydb/QueryDbFixtures.res.mjs +135 -0
- package/tests/querydb/QueryDbOperationsTest.res +94 -0
- package/tests/querydb/QueryDbOperationsTest.res.mjs +168 -0
- package/tests/sideeffecthandler/SideEffectHandlerCallbackTest.res +56 -0
- package/tests/sideeffecthandler/SideEffectHandlerCallbackTest.res.mjs +77 -0
- package/tests/sideeffecthandler/SideEffectHandlerFixtures.res +96 -0
- package/tests/sideeffecthandler/SideEffectHandlerFixtures.res.mjs +139 -0
- package/tests/util/CsvStreamTest.res +54 -0
- package/tests/util/CsvStreamTest.res.mjs +51 -0
- package/tests/util/LruTest.res +73 -0
- package/tests/util/LruTest.res.mjs +105 -0
- package/tests/util/MetricsTest.res +36 -0
- package/tests/util/MetricsTest.res.mjs +53 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
+
|
|
3
|
+
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
4
|
+
import * as Pulumi from "@pulumi/pulumi";
|
|
5
|
+
import * as Component$ReventlessCore from "../Component.res.mjs";
|
|
6
|
+
import * as ComponentType$ReventlessCore from "../../ComponentType.res.mjs";
|
|
7
|
+
import * as Plugin_Helpers$ReventlessCore from "../../plugin/component/Plugin_Helpers.res.mjs";
|
|
8
|
+
import * as CommandGenerator$ReventlessCore from "./CommandGenerator.res.mjs";
|
|
9
|
+
import * as CommandGenerator_Callback$ReventlessCore from "./CommandGenerator_Callback.res.mjs";
|
|
10
|
+
|
|
11
|
+
function Make(Spec) {
|
|
12
|
+
return Resolvers => {
|
|
13
|
+
let construct = (self, _name) => {
|
|
14
|
+
let resources = Stdlib_Option.getOr(Plugin_Helpers$ReventlessCore.aggregateMutationFieldsRegistry[Spec.name], []).map(field => ({
|
|
15
|
+
name: Pulumi.output(""),
|
|
16
|
+
id: Pulumi.output(""),
|
|
17
|
+
urn: Pulumi.output(""),
|
|
18
|
+
resourceInfo: Pulumi.output({
|
|
19
|
+
TAG: "ApiResolver",
|
|
20
|
+
typeName: "Mutation",
|
|
21
|
+
fieldName: field
|
|
22
|
+
}),
|
|
23
|
+
service: Pulumi.output(""),
|
|
24
|
+
role: Pulumi.output("commandGenerator"),
|
|
25
|
+
region: Pulumi.output(""),
|
|
26
|
+
resourceType: Pulumi.output(""),
|
|
27
|
+
configuration: Pulumi.output({}),
|
|
28
|
+
tags: Pulumi.output({})
|
|
29
|
+
}));
|
|
30
|
+
let outputs = {
|
|
31
|
+
resources: resources
|
|
32
|
+
};
|
|
33
|
+
Component$ReventlessCore.setOutputs(self, outputs);
|
|
34
|
+
};
|
|
35
|
+
let connect = (api, resources, runtime, commandGenerator) => {
|
|
36
|
+
let commandGeneratorResource = Component$ReventlessCore.toPulumiResource(commandGenerator);
|
|
37
|
+
let name = ComponentType$ReventlessCore.name(Stdlib_Option.getOr(commandGeneratorResource.__name, "Unnamed"), CommandGenerator$ReventlessCore.componentType);
|
|
38
|
+
let opts_parent = commandGeneratorResource;
|
|
39
|
+
let opts = {
|
|
40
|
+
parent: opts_parent
|
|
41
|
+
};
|
|
42
|
+
let fields = Stdlib_Option.getOr(Plugin_Helpers$ReventlessCore.aggregateMutationFieldsRegistry[Spec.name], []);
|
|
43
|
+
let resolvers = Resolvers.make(name, api, fields, Spec.commandSchema, runtime, resources, opts);
|
|
44
|
+
let cgOutputs = {
|
|
45
|
+
resources: resolvers.resources
|
|
46
|
+
};
|
|
47
|
+
Component$ReventlessCore.setOutputs(commandGenerator, cgOutputs);
|
|
48
|
+
};
|
|
49
|
+
let makeHandler = (publishJsons, publishJsonsAndWait) => {
|
|
50
|
+
let Callback = CommandGenerator_Callback$ReventlessCore.Make({
|
|
51
|
+
publishJsons: publishJsons,
|
|
52
|
+
publishJsonsAndWait: publishJsonsAndWait
|
|
53
|
+
})(Spec);
|
|
54
|
+
return Resolvers.handleResolversEvent(Callback.generateCommand);
|
|
55
|
+
};
|
|
56
|
+
let make = (name, opts) => Component$ReventlessCore.make(ComponentType$ReventlessCore.toString(CommandGenerator$ReventlessCore.componentType), name, construct, opts);
|
|
57
|
+
return {
|
|
58
|
+
connect: connect,
|
|
59
|
+
makeHandler: makeHandler,
|
|
60
|
+
make: make
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export {
|
|
66
|
+
Make,
|
|
67
|
+
}
|
|
68
|
+
/* @pulumi/pulumi Not a pure module */
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
type interceptResult = Allow | Deny(string)
|
|
2
|
+
|
|
3
|
+
type commandComponentKind = Aggregate | StateChangeSlice
|
|
4
|
+
|
|
5
|
+
type commandInterceptor = (
|
|
6
|
+
~identity: Reventless.Identity.t,
|
|
7
|
+
~componentName: string,
|
|
8
|
+
~componentKind: commandComponentKind,
|
|
9
|
+
~tag: string,
|
|
10
|
+
~args: JSON.t,
|
|
11
|
+
) => promise<interceptResult>
|
|
12
|
+
|
|
13
|
+
/** Module-level interceptor hook. None = passthrough (default). */
|
|
14
|
+
let commandInterceptorHook: ref<option<commandInterceptor>> = ref(None)
|
|
15
|
+
|
|
16
|
+
let registerCommandInterceptor = (interceptor: commandInterceptor) => {
|
|
17
|
+
commandInterceptorHook.contents = Some(interceptor)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
let clearCommandInterceptor = () => {
|
|
21
|
+
commandInterceptorHook.contents = None
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
module type Spec = {
|
|
25
|
+
let publishJsons: CommandGenerator.publishJsons
|
|
26
|
+
let publishJsonsAndWait: option<CommandTopic.publishJsonsAndWait>
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
module type T = {
|
|
30
|
+
let generateCommand: CommandGenerator.commandGenerator
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
let makeGenerateCommand = (
|
|
34
|
+
~publishJsons: CommandGenerator.publishJsons,
|
|
35
|
+
~publishJsonsAndWait: option<CommandTopic.publishJsonsAndWait>=?,
|
|
36
|
+
~serviceName: string,
|
|
37
|
+
~commandSchema: S.t<unknown>,
|
|
38
|
+
~componentKind: commandComponentKind,
|
|
39
|
+
~stripIdFromParams: bool=true,
|
|
40
|
+
): CommandGenerator.commandGenerator => {
|
|
41
|
+
(payload: CommandGenerator.payload) =>
|
|
42
|
+
Effect.sync(() => {
|
|
43
|
+
let msgId = Message.uuid()
|
|
44
|
+
let meta = {
|
|
45
|
+
{
|
|
46
|
+
Message.service: serviceName,
|
|
47
|
+
ip: payload.meta.ip->Array.shift->Option.getOr(""),
|
|
48
|
+
user: payload.meta.user,
|
|
49
|
+
time: Message.nowAsISOString(),
|
|
50
|
+
msgId,
|
|
51
|
+
correlationId: msgId,
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
let params = switch payload.arguments
|
|
55
|
+
->JSON.stringifyAny
|
|
56
|
+
->Option.flatMap(jsonString => jsonString->JSON.parseOrThrow->JSON.Decode.object) {
|
|
57
|
+
| Some(obj) => {
|
|
58
|
+
if stripIdFromParams {
|
|
59
|
+
obj->Dict.delete("id")
|
|
60
|
+
}
|
|
61
|
+
obj->Dict.toArray
|
|
62
|
+
}
|
|
63
|
+
| None =>
|
|
64
|
+
JsError.throwWithMessage(
|
|
65
|
+
"Couldn't decode:" ++
|
|
66
|
+
payload.arguments
|
|
67
|
+
->JSON.stringifyAny
|
|
68
|
+
->Option.getOr("<payload.arguments>"),
|
|
69
|
+
)
|
|
70
|
+
}
|
|
71
|
+
let commandStr = JSON.Encode.string(payload.command)
|
|
72
|
+
let commandJson = switch params->Array.length {
|
|
73
|
+
| 0 => commandStr
|
|
74
|
+
| _ => [("TAG", commandStr)]->Array.concat(params)->Dict.fromArray->JSON.Encode.object
|
|
75
|
+
}
|
|
76
|
+
// Resolve the envelope id.
|
|
77
|
+
// - Aggregates always rely on the resolver-supplied id (id: ID! arg in SDL).
|
|
78
|
+
// - DCB StateChangeSlices fall back to deriving the id from the command's
|
|
79
|
+
// partition tag(s) when the resolver didn't supply one — this is what makes
|
|
80
|
+
// @compositePartitionTag work end-to-end without per-call-site id stuffing.
|
|
81
|
+
let suppliedId = payload.arguments.id
|
|
82
|
+
let id = switch componentKind {
|
|
83
|
+
| Aggregate => suppliedId
|
|
84
|
+
| StateChangeSlice =>
|
|
85
|
+
switch (suppliedId->Obj.magic: Nullable.t<string>)->Nullable.toOption {
|
|
86
|
+
| Some(idValue) => idValue
|
|
87
|
+
| None =>
|
|
88
|
+
try {
|
|
89
|
+
let derived = Reventless.DcbTag.derivePartitionTag([
|
|
90
|
+
(serviceName, "", commandSchema),
|
|
91
|
+
])
|
|
92
|
+
switch derived {
|
|
93
|
+
| Simple(pt) =>
|
|
94
|
+
let tags = Reventless.DcbTag.extractTagsFromJson(commandSchema, commandJson)
|
|
95
|
+
Reventless.DcbTag.getPartitionTagValue([{tags: tags}], pt)->Option.getOr("")
|
|
96
|
+
| Composite(spec) =>
|
|
97
|
+
let tags = Reventless.DcbTag.extractTagsFromJson(commandSchema, commandJson)
|
|
98
|
+
Reventless.DcbTag.getCompositePartitionKeyValue(tags, spec)
|
|
99
|
+
}
|
|
100
|
+
} catch {
|
|
101
|
+
// Permissive schemas (e.g. S.json on the AppSync direct-invocation path)
|
|
102
|
+
// have no tagged fields — derivePartitionTag throws. Fall back to "" so
|
|
103
|
+
// existing transports keep their pre-fix behavior; the slice decoder
|
|
104
|
+
// surfaces the missing id downstream as it did before.
|
|
105
|
+
| _ => ""
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
(meta, commandJson, id)
|
|
110
|
+
})
|
|
111
|
+
->Effect.tap(((_, commandJson, _id)) =>
|
|
112
|
+
// Render `Name({fields})` without the standalone id: it's the command's
|
|
113
|
+
// partition-tag value, already shown among the fields, so a leading
|
|
114
|
+
// `(id)` would just duplicate it.
|
|
115
|
+
EffectLogger.logInfo(
|
|
116
|
+
~comp=`CommandGenerator(${serviceName})`,
|
|
117
|
+
~detail=commandJson,
|
|
118
|
+
`generated command: ${commandJson->LogFormat.cmdLabelOfJson}`,
|
|
119
|
+
)
|
|
120
|
+
)
|
|
121
|
+
->Effect.flatMap(((meta, commandJson, id)) => {
|
|
122
|
+
switch commandJson->Message.decode(commandSchema) {
|
|
123
|
+
| _ =>
|
|
124
|
+
let interceptEffect = switch commandInterceptorHook.contents {
|
|
125
|
+
| Some(interceptor) =>
|
|
126
|
+
Effect.promise(() =>
|
|
127
|
+
interceptor(
|
|
128
|
+
~identity=payload.identity,
|
|
129
|
+
~componentName=serviceName,
|
|
130
|
+
~componentKind,
|
|
131
|
+
~tag=payload.command,
|
|
132
|
+
~args=payload.arguments->Obj.magic,
|
|
133
|
+
)
|
|
134
|
+
)
|
|
135
|
+
| None => Effect.succeed(Allow)
|
|
136
|
+
}
|
|
137
|
+
interceptEffect->Effect.flatMap(interceptResult =>
|
|
138
|
+
switch interceptResult {
|
|
139
|
+
| Allow =>
|
|
140
|
+
switch publishJsonsAndWait {
|
|
141
|
+
| Some(publishAndWait) =>
|
|
142
|
+
Effect.promise(() => publishAndWait([{id, meta, commandJson}]))
|
|
143
|
+
->Effect.map(outcomes => {
|
|
144
|
+
// For aggregates, entityId comes from the envelope id.
|
|
145
|
+
// DCB slices populate entityId via the side-channel; don't override it.
|
|
146
|
+
switch outcomes->Array.getUnsafe(0) {
|
|
147
|
+
| CommandTopic.Accepted(payload) when payload.entityId->Option.isNone =>
|
|
148
|
+
CommandTopic.Accepted({...payload, entityId: id})
|
|
149
|
+
| outcome => outcome
|
|
150
|
+
}
|
|
151
|
+
})
|
|
152
|
+
| None =>
|
|
153
|
+
Effect.promise(() => publishJsons([{id, meta, commandJson}]))
|
|
154
|
+
->Effect.map(_ => CommandTopic.Pending({msgId: meta.msgId}))
|
|
155
|
+
}
|
|
156
|
+
| Deny(msg) =>
|
|
157
|
+
JsError.throwWithMessage(msg)
|
|
158
|
+
}
|
|
159
|
+
)
|
|
160
|
+
| exception err =>
|
|
161
|
+
switch Plugin_ResolverError.onResolverErrorHook.contents {
|
|
162
|
+
| Some(hook) =>
|
|
163
|
+
hook({
|
|
164
|
+
pluginName: "",
|
|
165
|
+
componentName: serviceName,
|
|
166
|
+
attemptedCommandType: commandJson->Message.variantNameOfJson,
|
|
167
|
+
timestamp: Message.nowAsISOString(),
|
|
168
|
+
})
|
|
169
|
+
| None => ()
|
|
170
|
+
}
|
|
171
|
+
JsError.throwWithMessage(
|
|
172
|
+
`Error: Couldn't decode ${commandJson->JSON.stringify}: ${err
|
|
173
|
+
->JSON.stringifyAny
|
|
174
|
+
->Option.getOrThrow}`,
|
|
175
|
+
)
|
|
176
|
+
}
|
|
177
|
+
})
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
module Make = (
|
|
181
|
+
Spec: Spec,
|
|
182
|
+
AggregateSpec: Reventless.Aggregate.Spec,
|
|
183
|
+
): T => {
|
|
184
|
+
let generateCommand = makeGenerateCommand(
|
|
185
|
+
~publishJsons=Spec.publishJsons,
|
|
186
|
+
~publishJsonsAndWait=?Spec.publishJsonsAndWait,
|
|
187
|
+
~serviceName=AggregateSpec.name,
|
|
188
|
+
~commandSchema=AggregateSpec.commandSchema->S.castToUnknown,
|
|
189
|
+
~componentKind=Aggregate,
|
|
190
|
+
)
|
|
191
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
+
|
|
3
|
+
import * as Stdlib_Dict from "@rescript/runtime/lib/es6/Stdlib_Dict.js";
|
|
4
|
+
import * as Stdlib_JSON from "@rescript/runtime/lib/es6/Stdlib_JSON.js";
|
|
5
|
+
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
6
|
+
import * as Effect from "effect/Effect";
|
|
7
|
+
import * as Stdlib_JsError from "@rescript/runtime/lib/es6/Stdlib_JsError.js";
|
|
8
|
+
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
9
|
+
import * as Primitive_exceptions from "@rescript/runtime/lib/es6/Primitive_exceptions.js";
|
|
10
|
+
import * as Message$ReventlessCore from "../../Message.res.mjs";
|
|
11
|
+
import * as LogFormat$ReventlessCore from "../../util/LogFormat.res.mjs";
|
|
12
|
+
import * as EffectLogger$ReventlessCore from "../../util/EffectLogger.res.mjs";
|
|
13
|
+
import * as Plugin_ResolverError$ReventlessCore from "../../plugin/component/Plugin_ResolverError.res.mjs";
|
|
14
|
+
|
|
15
|
+
let commandInterceptorHook = {
|
|
16
|
+
contents: undefined
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
function registerCommandInterceptor(interceptor) {
|
|
20
|
+
commandInterceptorHook.contents = interceptor;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function clearCommandInterceptor() {
|
|
24
|
+
commandInterceptorHook.contents = undefined;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function makeGenerateCommand(publishJsons, publishJsonsAndWait, serviceName, commandSchema, componentKind, $staropt$star) {
|
|
28
|
+
return payload => {
|
|
29
|
+
let stripIdFromParams = $staropt$star !== undefined ? $staropt$star : true;
|
|
30
|
+
return Effect.flatMap(Effect.tap(Effect.sync(() => {
|
|
31
|
+
let msgId = Message$ReventlessCore.uuid();
|
|
32
|
+
let meta_time = Message$ReventlessCore.nowAsISOString();
|
|
33
|
+
let meta_ip = Stdlib_Option.getOr(payload.meta.ip.shift(), "");
|
|
34
|
+
let meta_user = payload.meta.user;
|
|
35
|
+
let meta = {
|
|
36
|
+
service: serviceName,
|
|
37
|
+
time: meta_time,
|
|
38
|
+
ip: meta_ip,
|
|
39
|
+
user: meta_user,
|
|
40
|
+
msgId: msgId,
|
|
41
|
+
correlationId: msgId
|
|
42
|
+
};
|
|
43
|
+
let obj = Stdlib_Option.flatMap(JSON.stringify(payload.arguments), jsonString => Stdlib_JSON.Decode.object(JSON.parse(jsonString)));
|
|
44
|
+
let params = obj !== undefined ? (stripIdFromParams ? Stdlib_Dict.$$delete(obj, "id") : undefined, Object.entries(obj)) : Stdlib_JsError.throwWithMessage("Couldn't decode:" + Stdlib_Option.getOr(JSON.stringify(payload.arguments), "<payload.arguments>"));
|
|
45
|
+
let commandStr = payload.command;
|
|
46
|
+
let match = params.length;
|
|
47
|
+
let commandJson = match !== 0 ? Object.fromEntries([[
|
|
48
|
+
"TAG",
|
|
49
|
+
commandStr
|
|
50
|
+
]].concat(params)) : commandStr;
|
|
51
|
+
let suppliedId = payload.arguments.id;
|
|
52
|
+
let id;
|
|
53
|
+
if (componentKind === "Aggregate" || !(suppliedId == null)) {
|
|
54
|
+
id = suppliedId;
|
|
55
|
+
} else {
|
|
56
|
+
try {
|
|
57
|
+
let derived = DcbTag$Reventless.derivePartitionTag([[
|
|
58
|
+
serviceName,
|
|
59
|
+
"",
|
|
60
|
+
commandSchema
|
|
61
|
+
]]);
|
|
62
|
+
if (derived.TAG === "Simple") {
|
|
63
|
+
let tags = DcbTag$Reventless.extractTagsFromJson(commandSchema, commandJson);
|
|
64
|
+
id = Stdlib_Option.getOr(DcbTag$Reventless.getPartitionTagValue([{
|
|
65
|
+
tags: tags
|
|
66
|
+
}], derived._0), "");
|
|
67
|
+
} else {
|
|
68
|
+
let tags$1 = DcbTag$Reventless.extractTagsFromJson(commandSchema, commandJson);
|
|
69
|
+
id = DcbTag$Reventless.getCompositePartitionKeyValue(tags$1, derived._0);
|
|
70
|
+
}
|
|
71
|
+
} catch (exn) {
|
|
72
|
+
id = "";
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return [
|
|
76
|
+
meta,
|
|
77
|
+
commandJson,
|
|
78
|
+
id
|
|
79
|
+
];
|
|
80
|
+
}), param => {
|
|
81
|
+
let commandJson = param[1];
|
|
82
|
+
return EffectLogger$ReventlessCore.logInfo(`CommandGenerator(` + serviceName + `)`, commandJson, `generated command: ` + LogFormat$ReventlessCore.cmdLabelOfJson(commandJson));
|
|
83
|
+
}), param => {
|
|
84
|
+
let id = param[2];
|
|
85
|
+
let commandJson = param[1];
|
|
86
|
+
let meta = param[0];
|
|
87
|
+
let val;
|
|
88
|
+
try {
|
|
89
|
+
val = Message$ReventlessCore.decode(commandJson, commandSchema);
|
|
90
|
+
} catch (raw_err) {
|
|
91
|
+
let err = Primitive_exceptions.internalToException(raw_err);
|
|
92
|
+
let hook = Plugin_ResolverError$ReventlessCore.onResolverErrorHook.contents;
|
|
93
|
+
if (hook !== undefined) {
|
|
94
|
+
hook({
|
|
95
|
+
pluginName: "",
|
|
96
|
+
componentName: serviceName,
|
|
97
|
+
attemptedCommandType: Message$ReventlessCore.variantNameOfJson(commandJson),
|
|
98
|
+
timestamp: Message$ReventlessCore.nowAsISOString()
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
return Stdlib_JsError.throwWithMessage(`Error: Couldn't decode ` + JSON.stringify(commandJson) + `: ` + Stdlib_Option.getOrThrow(JSON.stringify(err), undefined));
|
|
102
|
+
}
|
|
103
|
+
let interceptor = commandInterceptorHook.contents;
|
|
104
|
+
let interceptEffect = interceptor !== undefined ? Effect.promise(() => interceptor(payload.identity, serviceName, componentKind, payload.command, payload.arguments)) : Effect.succeed("Allow");
|
|
105
|
+
return Effect.flatMap(interceptEffect, interceptResult => {
|
|
106
|
+
if (typeof interceptResult !== "object") {
|
|
107
|
+
if (publishJsonsAndWait !== undefined) {
|
|
108
|
+
return Effect.map(Effect.promise(() => publishJsonsAndWait([{
|
|
109
|
+
id: id,
|
|
110
|
+
meta: meta,
|
|
111
|
+
commandJson: commandJson
|
|
112
|
+
}])), outcomes => {
|
|
113
|
+
let payload = outcomes[0];
|
|
114
|
+
switch (payload.TAG) {
|
|
115
|
+
case "Accepted" :
|
|
116
|
+
if (!Stdlib_Option.isNone(payload.entityId)) {
|
|
117
|
+
return payload;
|
|
118
|
+
}
|
|
119
|
+
let newrecord = {...payload};
|
|
120
|
+
newrecord.entityId = id;
|
|
121
|
+
return newrecord;
|
|
122
|
+
case "Rejected" :
|
|
123
|
+
case "Pending" :
|
|
124
|
+
return payload;
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
} else {
|
|
128
|
+
return Effect.map(Effect.promise(() => publishJsons([{
|
|
129
|
+
id: id,
|
|
130
|
+
meta: meta,
|
|
131
|
+
commandJson: commandJson
|
|
132
|
+
}])), () => ({
|
|
133
|
+
TAG: "Pending",
|
|
134
|
+
msgId: meta.msgId
|
|
135
|
+
}));
|
|
136
|
+
}
|
|
137
|
+
} else {
|
|
138
|
+
return Stdlib_JsError.throwWithMessage(interceptResult._0);
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function Make(Spec) {
|
|
146
|
+
return AggregateSpec => {
|
|
147
|
+
let generateCommand = makeGenerateCommand(Spec.publishJsons, Spec.publishJsonsAndWait, AggregateSpec.name, AggregateSpec.commandSchema, "Aggregate", undefined);
|
|
148
|
+
return {
|
|
149
|
+
generateCommand: generateCommand
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export {
|
|
155
|
+
commandInterceptorHook,
|
|
156
|
+
registerCommandInterceptor,
|
|
157
|
+
clearCommandInterceptor,
|
|
158
|
+
makeGenerateCommand,
|
|
159
|
+
Make,
|
|
160
|
+
}
|
|
161
|
+
/* effect/Effect Not a pure module */
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
let componentType = ComponentType.CommandTopic
|
|
2
|
+
|
|
3
|
+
type outputs = ReventlessInfra.CommandTopic.outputs
|
|
4
|
+
type allOutputs = ReventlessInfra.CommandTopic.allOutputs
|
|
5
|
+
|
|
6
|
+
type t
|
|
7
|
+
type component<'operations> = Component.t<t, outputs, 'operations>
|
|
8
|
+
|
|
9
|
+
exception NotPublishedToChannel(exn)
|
|
10
|
+
|
|
11
|
+
include CommandTopic_Helpers
|
|
12
|
+
|
|
13
|
+
type publish<'id, 'command> = Message.command'<'id, 'command> => promise<unit>
|
|
14
|
+
type publishJsons = ReventlessInfra.CommandTopic.publishJsons
|
|
15
|
+
type publishJsonsStream = ReventlessInfra.CommandTopic.publishJsonsStream
|
|
16
|
+
|
|
17
|
+
type commandsHandler<'command> = ReventlessInfra.CommandTopic.commandsHandler<'command>
|
|
18
|
+
|
|
19
|
+
module type T = {
|
|
20
|
+
module Spec: ReventlessInfra.CommandTopic.T
|
|
21
|
+
type callbackEvent
|
|
22
|
+
|
|
23
|
+
type publish = publish<Spec.Id.t, Spec.command>
|
|
24
|
+
|
|
25
|
+
type operations = {
|
|
26
|
+
publish: publish,
|
|
27
|
+
publishJsons: publishJsons,
|
|
28
|
+
publishJsonsStream: ReventlessInfra.CommandTopic.publishJsonsStream,
|
|
29
|
+
publishJsonsAndWait: option<publishJsonsAndWait>,
|
|
30
|
+
}
|
|
31
|
+
type component = component<operations>
|
|
32
|
+
|
|
33
|
+
type commandsHandler = commandsHandler<Message.command'<Spec.Id.t, Spec.command>>
|
|
34
|
+
|
|
35
|
+
let connect: (
|
|
36
|
+
~runtime: Runtime.environment<'runtimeParts>,
|
|
37
|
+
~resources: array<ReventlessInfra.Adapter.resource>,
|
|
38
|
+
component,
|
|
39
|
+
) => unit
|
|
40
|
+
|
|
41
|
+
let registerHandler: (
|
|
42
|
+
~commandTopic: component,
|
|
43
|
+
~schema: S.t<unknown>,
|
|
44
|
+
~handler: jsonCommandsHandler,
|
|
45
|
+
~typeNames: array<string>,
|
|
46
|
+
) => unit
|
|
47
|
+
|
|
48
|
+
let makeHandler: (
|
|
49
|
+
~commandTopic: component,
|
|
50
|
+
~commandsHandler: commandsHandler,
|
|
51
|
+
) => Pulumi.Output.t<Runtime.effectHandler<callbackEvent, 'context, unit, string>>
|
|
52
|
+
|
|
53
|
+
// Returns the filtering handler output for runtime connection
|
|
54
|
+
// Registers the handler with the channel's event routing
|
|
55
|
+
let makeFilteringHandler: component => Pulumi.Output.t<
|
|
56
|
+
Runtime.effectHandler<callbackEvent, 'context, unit, string>,
|
|
57
|
+
>
|
|
58
|
+
|
|
59
|
+
let make: (~name: string, ~opts: Pulumi.ComponentResource.options=?) => component
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
let toResolvedOutputs = (
|
|
63
|
+
outputs: outputs,
|
|
64
|
+
): Pulumi.Output.t<ReventlessInterop.CommandTopic.resolvedOutputs> =>
|
|
65
|
+
outputs.resources
|
|
66
|
+
->Adapter.resourcesToInterop
|
|
67
|
+
->Pulumi.Output.apply(resources => {
|
|
68
|
+
let resolved: ReventlessInterop.CommandTopic.resolvedOutputs = {resources: resources}
|
|
69
|
+
resolved
|
|
70
|
+
})
|
|
71
|
+
|
|
72
|
+
let filter = (allCommandTopics: allOutputs, names) =>
|
|
73
|
+
names
|
|
74
|
+
->Set.values
|
|
75
|
+
->Iterator.toArray
|
|
76
|
+
->Array.filterMap(name =>
|
|
77
|
+
allCommandTopics->Dict.get(name)->Option.map(commandTopic => (name, commandTopic))
|
|
78
|
+
)
|
|
79
|
+
->Dict.fromArray
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
+
|
|
3
|
+
import * as Stdlib_Array from "@rescript/runtime/lib/es6/Stdlib_Array.js";
|
|
4
|
+
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
5
|
+
import * as Primitive_exceptions from "@rescript/runtime/lib/es6/Primitive_exceptions.js";
|
|
6
|
+
import * as Adapter$ReventlessCore from "../../adapter/Adapter.res.mjs";
|
|
7
|
+
import * as CommandTopic_Helpers$ReventlessCore from "./CommandTopic_Helpers.res.mjs";
|
|
8
|
+
|
|
9
|
+
let NotPublishedToChannel = /* @__PURE__ */Primitive_exceptions.create("CommandTopic-ReventlessCore.NotPublishedToChannel");
|
|
10
|
+
|
|
11
|
+
function toResolvedOutputs(outputs) {
|
|
12
|
+
return Adapter$ReventlessCore.resourcesToInterop(outputs.resources).apply(resources => ({
|
|
13
|
+
resources: resources
|
|
14
|
+
}));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function filter(allCommandTopics, names) {
|
|
18
|
+
return Object.fromEntries(Stdlib_Array.filterMap(names.values().toArray(), name => Stdlib_Option.map(allCommandTopics[name], commandTopic => [
|
|
19
|
+
name,
|
|
20
|
+
commandTopic
|
|
21
|
+
])));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
let componentType = "CommandTopic";
|
|
25
|
+
|
|
26
|
+
let acceptedResultChannel = CommandTopic_Helpers$ReventlessCore.acceptedResultChannel;
|
|
27
|
+
|
|
28
|
+
let rejectedResultChannel = CommandTopic_Helpers$ReventlessCore.rejectedResultChannel;
|
|
29
|
+
|
|
30
|
+
let reportAccepted = CommandTopic_Helpers$ReventlessCore.reportAccepted;
|
|
31
|
+
|
|
32
|
+
let reportRejected = CommandTopic_Helpers$ReventlessCore.reportRejected;
|
|
33
|
+
|
|
34
|
+
let commandOutcomeToJson = CommandTopic_Helpers$ReventlessCore.commandOutcomeToJson;
|
|
35
|
+
|
|
36
|
+
let encodeCommandJson = CommandTopic_Helpers$ReventlessCore.encodeCommandJson;
|
|
37
|
+
|
|
38
|
+
let runInlineAndCollect = CommandTopic_Helpers$ReventlessCore.runInlineAndCollect;
|
|
39
|
+
|
|
40
|
+
let callHandlerWithArray = CommandTopic_Helpers$ReventlessCore.callHandlerWithArray;
|
|
41
|
+
|
|
42
|
+
let extractTypeNamesFromSchema = CommandTopic_Helpers$ReventlessCore.extractTypeNamesFromSchema;
|
|
43
|
+
|
|
44
|
+
let globalRegistry = CommandTopic_Helpers$ReventlessCore.globalRegistry;
|
|
45
|
+
|
|
46
|
+
let registerHandler = CommandTopic_Helpers$ReventlessCore.registerHandler;
|
|
47
|
+
|
|
48
|
+
let getHandlers = CommandTopic_Helpers$ReventlessCore.getHandlers;
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
componentType,
|
|
52
|
+
NotPublishedToChannel,
|
|
53
|
+
acceptedResultChannel,
|
|
54
|
+
rejectedResultChannel,
|
|
55
|
+
reportAccepted,
|
|
56
|
+
reportRejected,
|
|
57
|
+
commandOutcomeToJson,
|
|
58
|
+
encodeCommandJson,
|
|
59
|
+
runInlineAndCollect,
|
|
60
|
+
callHandlerWithArray,
|
|
61
|
+
extractTypeNamesFromSchema,
|
|
62
|
+
globalRegistry,
|
|
63
|
+
registerHandler,
|
|
64
|
+
getHandlers,
|
|
65
|
+
toResolvedOutputs,
|
|
66
|
+
filter,
|
|
67
|
+
}
|
|
68
|
+
/* Adapter-ReventlessCore Not a pure module */
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
type rec connect<'callbackEvent, 'context, 'channelParts, 'runtimeParts> = (
|
|
2
|
+
~name: string,
|
|
3
|
+
~channel: channel<'callbackEvent, 'context, 'channelParts, 'runtimeParts>,
|
|
4
|
+
~runtime: Runtime.environment<'runtimeParts>,
|
|
5
|
+
~resources: array<ReventlessInfra.Adapter.resource>,
|
|
6
|
+
~opts: Pulumi.ComponentResource.options,
|
|
7
|
+
) => array<ReventlessInfra.Adapter.resource>
|
|
8
|
+
and channel<'callbackEvent, 'context, 'channelParts, 'runtimeParts> = {
|
|
9
|
+
parts: 'channelParts,
|
|
10
|
+
resources: array<ReventlessInfra.Adapter.resource>,
|
|
11
|
+
publishJsons: Pulumi.Output.t<CommandTopic.publishJsons>,
|
|
12
|
+
publishJsonsStream: Pulumi.Output.t<ReventlessInfra.CommandTopic.publishJsonsStream>,
|
|
13
|
+
publishJsonsAndWait: Pulumi.Output.t<option<CommandTopic.publishJsonsAndWait>>,
|
|
14
|
+
handleChannelEvent: CommandTopic.jsonCommandsHandler => Pulumi.Output.t<
|
|
15
|
+
Runtime.effectHandler<'callbackEvent, 'context, unit, string>,
|
|
16
|
+
>,
|
|
17
|
+
connect: connect<'callbackEvent, 'context, 'channelParts, 'runtimeParts>,
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@set
|
|
21
|
+
external setChannel: (
|
|
22
|
+
Component.t<CommandTopic.t, CommandTopic.outputs, 'operations>,
|
|
23
|
+
channel<'callbackEvent, 'context, 'channelParts, 'runtimeParts>,
|
|
24
|
+
) => unit = "channel"
|
|
25
|
+
@get
|
|
26
|
+
external channel: Component.t<CommandTopic.t, CommandTopic.outputs, 'operations> => channel<
|
|
27
|
+
'callbackEvent,
|
|
28
|
+
'context,
|
|
29
|
+
'channelParts,
|
|
30
|
+
'runtimeParts,
|
|
31
|
+
> = "channel"
|
|
32
|
+
|
|
33
|
+
type channelMaker<'callbackEvent, 'context, 'channelParts, 'runtimeParts> = (
|
|
34
|
+
~name: string,
|
|
35
|
+
~opts: Pulumi.ComponentResource.options=?,
|
|
36
|
+
) => channel<'callbackEvent, 'context, 'channelParts, 'runtimeParts>
|
|
37
|
+
|
|
38
|
+
module type Channel = {
|
|
39
|
+
type callbackEvent
|
|
40
|
+
type runtimeParts
|
|
41
|
+
type channelParts
|
|
42
|
+
let make: channelMaker<callbackEvent, 'context, channelParts, runtimeParts>
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
type remoteChannel = {
|
|
46
|
+
resources: array<ReventlessInfra.Adapter.resolvedResource>,
|
|
47
|
+
remotePublish: CommandTopic.publishJsons,
|
|
48
|
+
}
|
|
49
|
+
type remoteChannelMaker = array<ReventlessInfra.Adapter.resolvedResource> => remoteChannel
|
|
50
|
+
|
|
51
|
+
module type RemoteChannel = {
|
|
52
|
+
let make: remoteChannelMaker
|
|
53
|
+
}
|