@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,712 @@
|
|
|
1
|
+
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
+
|
|
3
|
+
import * as S from "sury/src/S.res.mjs";
|
|
4
|
+
import * as Stream from "@reventlessdev/rescript-effect/src/Stream.res.mjs";
|
|
5
|
+
import * as Stdlib_JSON from "@rescript/runtime/lib/es6/Stdlib_JSON.js";
|
|
6
|
+
import * as Stdlib_Array from "@rescript/runtime/lib/es6/Stdlib_Array.js";
|
|
7
|
+
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
8
|
+
import * as Effect from "effect/Effect";
|
|
9
|
+
import * as Stream$1 from "effect/Stream";
|
|
10
|
+
import * as Belt_SetString from "@rescript/runtime/lib/es6/Belt_SetString.js";
|
|
11
|
+
import * as Stdlib_JsError from "@rescript/runtime/lib/es6/Stdlib_JsError.js";
|
|
12
|
+
import * as Primitive_object from "@rescript/runtime/lib/es6/Primitive_object.js";
|
|
13
|
+
import * as Logger$ReventlessCore from "./util/Logger.res.mjs";
|
|
14
|
+
import * as DisplayName$Reventless from "@reventlessdev/reventless-spec/src/components/DisplayName.res.mjs";
|
|
15
|
+
import * as Message$ReventlessCore from "./Message.res.mjs";
|
|
16
|
+
import * as QueryDb$ReventlessCore from "./components/QueryDb/QueryDb.res.mjs";
|
|
17
|
+
import * as QueryDb$ReventlessInfra from "@reventlessdev/reventless-infra/src/components/QueryDb.res.mjs";
|
|
18
|
+
|
|
19
|
+
let log = Logger$ReventlessCore.fromEnv();
|
|
20
|
+
|
|
21
|
+
function MakeGenericSource(Mapping) {
|
|
22
|
+
let decode$p = json => Message$ReventlessCore.decodeEvent$p(json, S.string, Mapping.sourceEventSchema);
|
|
23
|
+
return {
|
|
24
|
+
name: Mapping.sourceName,
|
|
25
|
+
decode$p: decode$p
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
let Mapping = {
|
|
30
|
+
MakeGenericSource: MakeGenericSource
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
function logAction(str) {
|
|
34
|
+
log.debug("Projection", undefined, str);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function overlayDisplayName(state, stateSchema, spec) {
|
|
38
|
+
let json = S.reverseConvertToJsonOrThrow(state, stateSchema);
|
|
39
|
+
let stateDict = Stdlib_JSON.Decode.object(json);
|
|
40
|
+
if (stateDict === undefined) {
|
|
41
|
+
return state;
|
|
42
|
+
}
|
|
43
|
+
let label = DisplayName$Reventless.computeLabel(spec, stateDict);
|
|
44
|
+
stateDict["displayName"] = label;
|
|
45
|
+
return S.parseJsonOrThrow(stateDict, stateSchema);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function rewriteAction(action, stateSchema) {
|
|
49
|
+
let spec = DisplayName$Reventless.getSpec(stateSchema);
|
|
50
|
+
if (spec === undefined) {
|
|
51
|
+
return action;
|
|
52
|
+
}
|
|
53
|
+
let overlay = state => overlayDisplayName(state, stateSchema, spec);
|
|
54
|
+
if (typeof action !== "object") {
|
|
55
|
+
return action;
|
|
56
|
+
}
|
|
57
|
+
switch (action.TAG) {
|
|
58
|
+
case "Create" :
|
|
59
|
+
return {
|
|
60
|
+
TAG: "Create",
|
|
61
|
+
_0: action._0,
|
|
62
|
+
_1: overlayDisplayName(action._1, stateSchema, spec)
|
|
63
|
+
};
|
|
64
|
+
case "CreateMany" :
|
|
65
|
+
return {
|
|
66
|
+
TAG: "CreateMany",
|
|
67
|
+
_0: action._0.map(param => [
|
|
68
|
+
param[0],
|
|
69
|
+
overlayDisplayName(param[1], stateSchema, spec)
|
|
70
|
+
])
|
|
71
|
+
};
|
|
72
|
+
case "Update" :
|
|
73
|
+
let fn = action._1;
|
|
74
|
+
return {
|
|
75
|
+
TAG: "Update",
|
|
76
|
+
_0: action._0,
|
|
77
|
+
_1: state => overlayDisplayName(fn(state), stateSchema, spec)
|
|
78
|
+
};
|
|
79
|
+
case "UpdateMany" :
|
|
80
|
+
let fn$1 = action._1;
|
|
81
|
+
return {
|
|
82
|
+
TAG: "UpdateMany",
|
|
83
|
+
_0: action._0,
|
|
84
|
+
_1: (id, s) => overlayDisplayName(fn$1(id, s), stateSchema, spec)
|
|
85
|
+
};
|
|
86
|
+
case "UpdateWithDefault" :
|
|
87
|
+
let fn$2 = action._2;
|
|
88
|
+
return {
|
|
89
|
+
TAG: "UpdateWithDefault",
|
|
90
|
+
_0: action._0,
|
|
91
|
+
_1: overlayDisplayName(action._1, stateSchema, spec),
|
|
92
|
+
_2: state => overlayDisplayName(fn$2(state), stateSchema, spec)
|
|
93
|
+
};
|
|
94
|
+
case "UpdateManyWithDefault" :
|
|
95
|
+
let fn$3 = action._2;
|
|
96
|
+
let defFn = action._1;
|
|
97
|
+
return {
|
|
98
|
+
TAG: "UpdateManyWithDefault",
|
|
99
|
+
_0: action._0,
|
|
100
|
+
_1: id => overlayDisplayName(defFn(id), stateSchema, spec),
|
|
101
|
+
_2: (id, s) => overlayDisplayName(fn$3(id, s), stateSchema, spec)
|
|
102
|
+
};
|
|
103
|
+
case "Set" :
|
|
104
|
+
return {
|
|
105
|
+
TAG: "Set",
|
|
106
|
+
_0: action._0,
|
|
107
|
+
_1: overlayDisplayName(action._1, stateSchema, spec)
|
|
108
|
+
};
|
|
109
|
+
case "SetMany" :
|
|
110
|
+
let fn$4 = action._1;
|
|
111
|
+
return {
|
|
112
|
+
TAG: "SetMany",
|
|
113
|
+
_0: action._0,
|
|
114
|
+
_1: id => overlayDisplayName(fn$4(id), stateSchema, spec)
|
|
115
|
+
};
|
|
116
|
+
case "CreateMultiState" :
|
|
117
|
+
return {
|
|
118
|
+
TAG: "CreateMultiState",
|
|
119
|
+
_0: action._0,
|
|
120
|
+
_1: action._1.map(overlay)
|
|
121
|
+
};
|
|
122
|
+
case "UpdateMultiState" :
|
|
123
|
+
let fn$5 = action._1;
|
|
124
|
+
return {
|
|
125
|
+
TAG: "UpdateMultiState",
|
|
126
|
+
_0: action._0,
|
|
127
|
+
_1: states => fn$5(states).map(overlay)
|
|
128
|
+
};
|
|
129
|
+
case "UpdateManyMultiStates" :
|
|
130
|
+
let fn$6 = action._1;
|
|
131
|
+
return {
|
|
132
|
+
TAG: "UpdateManyMultiStates",
|
|
133
|
+
_0: action._0,
|
|
134
|
+
_1: (id, states) => fn$6(id, states).map(overlay)
|
|
135
|
+
};
|
|
136
|
+
default:
|
|
137
|
+
return action;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
async function applyChanges(action, id, beforeStates, afterStates, param, param$1) {
|
|
142
|
+
let getSubId = param$1.getSubId;
|
|
143
|
+
let subIdField = param$1.subIdField;
|
|
144
|
+
let beforeCount = beforeStates.length;
|
|
145
|
+
let beforeSubIds = Belt_SetString.fromArray(beforeStates.map(state => getSubId(state)));
|
|
146
|
+
let afterCount = afterStates.length;
|
|
147
|
+
let afterSubIds = Belt_SetString.fromArray(afterStates.map(state => getSubId(state)));
|
|
148
|
+
let addedSubIds = Belt_SetString.diff(afterSubIds, beforeSubIds);
|
|
149
|
+
let addedStates = afterStates.filter(state => Belt_SetString.has(addedSubIds, getSubId(state)));
|
|
150
|
+
let addedCount = addedStates.length;
|
|
151
|
+
let changedStates = Stdlib_Array.filterMap(beforeStates, before => {
|
|
152
|
+
let beforeSubId = getSubId(before);
|
|
153
|
+
return afterStates.find(after => {
|
|
154
|
+
if (getSubId(after) === beforeSubId) {
|
|
155
|
+
return Primitive_object.notequal(after, before);
|
|
156
|
+
} else {
|
|
157
|
+
return false;
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
let changedCount = changedStates.length;
|
|
162
|
+
let batchToSave = changedStates.concat(addedStates).map(state => [
|
|
163
|
+
id,
|
|
164
|
+
state,
|
|
165
|
+
undefined
|
|
166
|
+
]);
|
|
167
|
+
let deletedSubIds = Belt_SetString.toArray(Belt_SetString.diff(beforeSubIds, afterSubIds));
|
|
168
|
+
let batchToDelete = deletedSubIds.map(subId => [
|
|
169
|
+
id,
|
|
170
|
+
[
|
|
171
|
+
subIdField,
|
|
172
|
+
subId
|
|
173
|
+
]
|
|
174
|
+
]);
|
|
175
|
+
let deletedCount = batchToDelete.length;
|
|
176
|
+
logAction(action + `(` + id + `): beforeStates:` + beforeCount.toString() + ` afterStates:` + afterCount.toString() + ` added:` + addedCount.toString() + ` changed:` + changedCount.toString() + ` deleted:` + deletedCount.toString());
|
|
177
|
+
await Promise.all([
|
|
178
|
+
param.deleteBatch(batchToDelete),
|
|
179
|
+
param.saveBatch(batchToSave)
|
|
180
|
+
]);
|
|
181
|
+
return {
|
|
182
|
+
TAG: "Ok",
|
|
183
|
+
_0: undefined
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
function stateToString(state) {
|
|
188
|
+
return Stdlib_Option.getOrThrow(JSON.stringify(state), undefined);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
function statesToString(states) {
|
|
192
|
+
return states.map(stateToString).join(", ");
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
async function handleAction(action, operations, subIdConfig) {
|
|
196
|
+
let saveBatch = operations.saveBatch;
|
|
197
|
+
let save = operations.save;
|
|
198
|
+
let loadStream = operations.loadStream;
|
|
199
|
+
let loadAtMost = (n, id) => Effect.runPromise(Effect.catchAll(Effect.map(Stream.runCollect(Stream$1.take(loadStream(id), n)), states => ({
|
|
200
|
+
TAG: "Ok",
|
|
201
|
+
_0: states
|
|
202
|
+
})), e => Effect.succeed({
|
|
203
|
+
TAG: "Error",
|
|
204
|
+
_0: e
|
|
205
|
+
})));
|
|
206
|
+
let loadAll = id => Effect.runPromise(Effect.catchAll(Effect.map(Stream.runCollect(loadStream(id)), states => ({
|
|
207
|
+
TAG: "Ok",
|
|
208
|
+
_0: states
|
|
209
|
+
})), e => Effect.succeed({
|
|
210
|
+
TAG: "Error",
|
|
211
|
+
_0: e
|
|
212
|
+
})));
|
|
213
|
+
if (typeof action !== "object") {
|
|
214
|
+
logAction("Ignore");
|
|
215
|
+
return {
|
|
216
|
+
TAG: "Ok",
|
|
217
|
+
_0: undefined
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
switch (action.TAG) {
|
|
221
|
+
case "Create" :
|
|
222
|
+
let state = action._1;
|
|
223
|
+
let id = action._0;
|
|
224
|
+
logAction(`Create(` + id + `, ` + stateToString(state) + `)`);
|
|
225
|
+
return await save(id, state, "Init", undefined);
|
|
226
|
+
case "CreateMany" :
|
|
227
|
+
let batch = action._0.map(param => [
|
|
228
|
+
param[0],
|
|
229
|
+
param[1],
|
|
230
|
+
undefined
|
|
231
|
+
]);
|
|
232
|
+
let statesStr = batch.map(param => `(` + param[0] + `,` + stateToString(param[1]) + `)`).join(", ");
|
|
233
|
+
logAction(`CreateMany(` + statesStr + `)`);
|
|
234
|
+
return await saveBatch(batch);
|
|
235
|
+
case "Update" :
|
|
236
|
+
let id$1 = action._0;
|
|
237
|
+
let states = await loadAtMost(2, id$1);
|
|
238
|
+
if (states.TAG !== "Ok") {
|
|
239
|
+
return {
|
|
240
|
+
TAG: "Error",
|
|
241
|
+
_0: states._0
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
let states$1 = states._0;
|
|
245
|
+
let len = states$1.length;
|
|
246
|
+
if (len !== 1) {
|
|
247
|
+
if (len !== 0) {
|
|
248
|
+
logAction(`Update Error: Multiple oldStates for ` + id$1 + `)`);
|
|
249
|
+
return {
|
|
250
|
+
TAG: "Error",
|
|
251
|
+
_0: "StaleState"
|
|
252
|
+
};
|
|
253
|
+
} else {
|
|
254
|
+
logAction(`Update Error: No oldState for ` + id$1 + `)`);
|
|
255
|
+
return {
|
|
256
|
+
TAG: "Error",
|
|
257
|
+
_0: "StaleState"
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
let oldState = states$1[0];
|
|
262
|
+
let newState = action._1(oldState);
|
|
263
|
+
logAction(`Update(` + id$1 + `, ` + stateToString(oldState) + ` => ` + stateToString(newState) + `)`);
|
|
264
|
+
return await save(id$1, newState, "Overwrite", undefined);
|
|
265
|
+
case "UpdateWithDefault" :
|
|
266
|
+
let $$default = action._1;
|
|
267
|
+
let id$2 = action._0;
|
|
268
|
+
log.debug("Projection", undefined, `UpdateWithDefault(` + id$2 + `, loading ...`);
|
|
269
|
+
let states$2 = await loadAtMost(2, id$2);
|
|
270
|
+
if (states$2.TAG === "Ok") {
|
|
271
|
+
let states$3 = states$2._0;
|
|
272
|
+
let len$1 = states$3.length;
|
|
273
|
+
if (len$1 !== 1) {
|
|
274
|
+
if (len$1 !== 0) {
|
|
275
|
+
logAction(`UpdateWithDefault Error: Multiple oldStates for ` + id$2 + `)`);
|
|
276
|
+
return {
|
|
277
|
+
TAG: "Error",
|
|
278
|
+
_0: "StaleState"
|
|
279
|
+
};
|
|
280
|
+
} else {
|
|
281
|
+
logAction(`UpdateWithDefault(` + id$2 + `, default: ` + stateToString($$default) + `)`);
|
|
282
|
+
return await save(id$2, $$default, "Init", undefined);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
let oldState$1 = states$3[0];
|
|
286
|
+
let newState$1 = action._2(oldState$1);
|
|
287
|
+
logAction(`UpdateWithDefault(` + id$2 + `, ` + stateToString(oldState$1) + ` => ` + stateToString(newState$1) + `)`);
|
|
288
|
+
return await save(id$2, newState$1, "Overwrite", undefined);
|
|
289
|
+
}
|
|
290
|
+
let err = states$2._0;
|
|
291
|
+
logAction(`UpdateWithDefault Error: Couldn't load oldState(s) for ` + id$2 + `: ` + QueryDb$ReventlessCore.storageErrorToString(err) + `)`);
|
|
292
|
+
return {
|
|
293
|
+
TAG: "Error",
|
|
294
|
+
_0: err
|
|
295
|
+
};
|
|
296
|
+
case "Set" :
|
|
297
|
+
let state$1 = action._1;
|
|
298
|
+
let id$3 = action._0;
|
|
299
|
+
logAction(`Set(` + id$3 + `, ` + stateToString(state$1) + `)`);
|
|
300
|
+
return await save(id$3, state$1, "Any", undefined);
|
|
301
|
+
case "SetMany" :
|
|
302
|
+
let set = action._1;
|
|
303
|
+
let batch$1 = action._0.map(id => [
|
|
304
|
+
id,
|
|
305
|
+
set(id),
|
|
306
|
+
undefined
|
|
307
|
+
]);
|
|
308
|
+
let statesStr$1 = batch$1.map(param => `(` + param[0] + `,` + stateToString(param[1]) + `)`).join(", ");
|
|
309
|
+
logAction(`SetMany(` + statesStr$1 + `)`);
|
|
310
|
+
return await saveBatch(batch$1);
|
|
311
|
+
case "Delete" :
|
|
312
|
+
let id$4 = action._0;
|
|
313
|
+
logAction(`Delete(` + id$4 + `)`);
|
|
314
|
+
return await operations.delete(id$4, undefined);
|
|
315
|
+
case "DeleteMany" :
|
|
316
|
+
let ids = action._0;
|
|
317
|
+
logAction(`DeleteMany(` + ids.join(", ") + `)`);
|
|
318
|
+
return await operations.deleteBatch(ids.map(id => [
|
|
319
|
+
id,
|
|
320
|
+
undefined
|
|
321
|
+
]));
|
|
322
|
+
case "CreateMultiState" :
|
|
323
|
+
let states$4 = action._1;
|
|
324
|
+
let id$5 = action._0;
|
|
325
|
+
logAction(`CreateMultiState(` + id$5 + `, ` + states$4.map(stateToString).join(", ") + `)`);
|
|
326
|
+
let len$2 = states$4.length;
|
|
327
|
+
if (len$2 !== 1) {
|
|
328
|
+
if (len$2 === 0) {
|
|
329
|
+
return {
|
|
330
|
+
TAG: "Ok",
|
|
331
|
+
_0: undefined
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
let batch$2 = states$4.map(state => [
|
|
335
|
+
id$5,
|
|
336
|
+
state,
|
|
337
|
+
undefined
|
|
338
|
+
]);
|
|
339
|
+
return await saveBatch(batch$2);
|
|
340
|
+
}
|
|
341
|
+
let state$2 = states$4[0];
|
|
342
|
+
return await save(id$5, state$2, "Init", undefined);
|
|
343
|
+
case "UpdateMultiState" :
|
|
344
|
+
let id$6 = action._0;
|
|
345
|
+
let match = await loadAll(id$6);
|
|
346
|
+
if (match.TAG === "Ok") {
|
|
347
|
+
if (subIdConfig !== undefined) {
|
|
348
|
+
let states$5 = match._0;
|
|
349
|
+
let afterStates = action._1(states$5);
|
|
350
|
+
return await applyChanges("UpdateMultiState", id$6, states$5, afterStates, operations, subIdConfig);
|
|
351
|
+
}
|
|
352
|
+
logAction("UpdateMultiState Error: Missing SubIdConfig !");
|
|
353
|
+
return {
|
|
354
|
+
TAG: "Error",
|
|
355
|
+
_0: "MissingSubIdConfig"
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
if (subIdConfig !== undefined) {
|
|
359
|
+
let err$1 = match._0;
|
|
360
|
+
logAction(`UpdateMultiState Error: Couldn't load states for ` + id$6 + `: ` + QueryDb$ReventlessCore.storageErrorToString(err$1) + `)`);
|
|
361
|
+
return {
|
|
362
|
+
TAG: "Error",
|
|
363
|
+
_0: err$1
|
|
364
|
+
};
|
|
365
|
+
}
|
|
366
|
+
logAction("UpdateMultiState Error: Missing SubIdConfig !");
|
|
367
|
+
return {
|
|
368
|
+
TAG: "Error",
|
|
369
|
+
_0: "MissingSubIdConfig"
|
|
370
|
+
};
|
|
371
|
+
default:
|
|
372
|
+
logAction("Error: Action not yet supported !");
|
|
373
|
+
return {
|
|
374
|
+
TAG: "Ok",
|
|
375
|
+
_0: undefined
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
function actionsWithId(action) {
|
|
381
|
+
if (typeof action !== "object") {
|
|
382
|
+
return [];
|
|
383
|
+
}
|
|
384
|
+
switch (action.TAG) {
|
|
385
|
+
case "CreateMany" :
|
|
386
|
+
return action._0.map(param => {
|
|
387
|
+
let id = param[0];
|
|
388
|
+
return [
|
|
389
|
+
id,
|
|
390
|
+
{
|
|
391
|
+
TAG: "Create",
|
|
392
|
+
_0: id,
|
|
393
|
+
_1: param[1]
|
|
394
|
+
}
|
|
395
|
+
];
|
|
396
|
+
});
|
|
397
|
+
case "SetMany" :
|
|
398
|
+
let set = action._1;
|
|
399
|
+
return action._0.map(id => [
|
|
400
|
+
id,
|
|
401
|
+
{
|
|
402
|
+
TAG: "Set",
|
|
403
|
+
_0: id,
|
|
404
|
+
_1: set(id)
|
|
405
|
+
}
|
|
406
|
+
]);
|
|
407
|
+
case "DeleteMany" :
|
|
408
|
+
return action._0.map(id => [
|
|
409
|
+
id,
|
|
410
|
+
{
|
|
411
|
+
TAG: "Delete",
|
|
412
|
+
_0: id
|
|
413
|
+
}
|
|
414
|
+
]);
|
|
415
|
+
case "UpdateMany" :
|
|
416
|
+
case "UpdateManyWithDefault" :
|
|
417
|
+
case "DeleteIf" :
|
|
418
|
+
case "DeleteManyIf" :
|
|
419
|
+
logAction("Error: Action not yet supported !");
|
|
420
|
+
return [];
|
|
421
|
+
case "UpdateManyMultiStates" :
|
|
422
|
+
let update = action._1;
|
|
423
|
+
return action._0.map(id => [
|
|
424
|
+
id,
|
|
425
|
+
{
|
|
426
|
+
TAG: "UpdateMultiState",
|
|
427
|
+
_0: id,
|
|
428
|
+
_1: states => update(id, states)
|
|
429
|
+
}
|
|
430
|
+
]);
|
|
431
|
+
default:
|
|
432
|
+
return [[
|
|
433
|
+
action._0,
|
|
434
|
+
action
|
|
435
|
+
]];
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
function groupActionsById(actions) {
|
|
440
|
+
let allActionsWithId = actions.map(actionsWithId).flat();
|
|
441
|
+
let ids = allActionsWithId.map(param => param[0]);
|
|
442
|
+
return Belt_SetString.toArray(Belt_SetString.fromArray(ids)).map(id => [
|
|
443
|
+
id,
|
|
444
|
+
Stdlib_Array.filterMap(allActionsWithId, param => {
|
|
445
|
+
if (param[0] === id) {
|
|
446
|
+
return param[1];
|
|
447
|
+
}
|
|
448
|
+
})
|
|
449
|
+
]);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
function optimizeActions(actions) {
|
|
453
|
+
return Stdlib_Array.reduce(actions, [], (optimizedActions, action) => {
|
|
454
|
+
let optimizedActionsCount = optimizedActions.length;
|
|
455
|
+
if (optimizedActionsCount === 0) {
|
|
456
|
+
return [action];
|
|
457
|
+
}
|
|
458
|
+
let lastAction = optimizedActions[optimizedActionsCount - 1 | 0];
|
|
459
|
+
let previousActions = optimizedActionsCount === 1 ? [] : optimizedActions.slice(0, optimizedActionsCount);
|
|
460
|
+
if (typeof lastAction === "object") {
|
|
461
|
+
switch (lastAction.TAG) {
|
|
462
|
+
case "Create" :
|
|
463
|
+
let state1 = lastAction._1;
|
|
464
|
+
let id1 = lastAction._0;
|
|
465
|
+
if (typeof action === "object") {
|
|
466
|
+
switch (action.TAG) {
|
|
467
|
+
case "Create" :
|
|
468
|
+
if (id1 === action._0) {
|
|
469
|
+
log.warn("Projection", undefined, `optimizing 2 sequential Create for id=` + id1 + `, ignoring second: ` + Stdlib_Option.getOr(JSON.stringify(action._1), "?"));
|
|
470
|
+
return previousActions.concat([{
|
|
471
|
+
TAG: "Create",
|
|
472
|
+
_0: id1,
|
|
473
|
+
_1: state1
|
|
474
|
+
}]);
|
|
475
|
+
}
|
|
476
|
+
break;
|
|
477
|
+
case "Update" :
|
|
478
|
+
if (id1 === action._0) {
|
|
479
|
+
return previousActions.concat([{
|
|
480
|
+
TAG: "Create",
|
|
481
|
+
_0: id1,
|
|
482
|
+
_1: action._1(state1)
|
|
483
|
+
}]);
|
|
484
|
+
}
|
|
485
|
+
break;
|
|
486
|
+
case "UpdateWithDefault" :
|
|
487
|
+
if (id1 === action._0) {
|
|
488
|
+
return previousActions.concat([{
|
|
489
|
+
TAG: "Create",
|
|
490
|
+
_0: id1,
|
|
491
|
+
_1: action._2(state1)
|
|
492
|
+
}]);
|
|
493
|
+
}
|
|
494
|
+
break;
|
|
495
|
+
case "Set" :
|
|
496
|
+
if (id1 === action._0) {
|
|
497
|
+
log.warn("Projection", undefined, `optimizing Set after Create for id=` + id1 + `, ignoring Create: ` + Stdlib_Option.getOr(JSON.stringify(state1), "?"));
|
|
498
|
+
return previousActions.concat([{
|
|
499
|
+
TAG: "Set",
|
|
500
|
+
_0: id1,
|
|
501
|
+
_1: action._1
|
|
502
|
+
}]);
|
|
503
|
+
}
|
|
504
|
+
break;
|
|
505
|
+
case "Delete" :
|
|
506
|
+
if (id1 === action._0) {
|
|
507
|
+
log.warn("Projection", undefined, `optimizing Delete after Create for id=` + id1 + `, ignoring Create: ` + Stdlib_Option.getOr(JSON.stringify(state1), "?"));
|
|
508
|
+
return previousActions.concat([{
|
|
509
|
+
TAG: "Delete",
|
|
510
|
+
_0: id1
|
|
511
|
+
}]);
|
|
512
|
+
}
|
|
513
|
+
break;
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
break;
|
|
517
|
+
case "Update" :
|
|
518
|
+
let f = lastAction._1;
|
|
519
|
+
let id1$1 = lastAction._0;
|
|
520
|
+
if (typeof action === "object") {
|
|
521
|
+
switch (action.TAG) {
|
|
522
|
+
case "Update" :
|
|
523
|
+
if (id1$1 === action._0) {
|
|
524
|
+
let g = action._1;
|
|
525
|
+
return previousActions.concat([{
|
|
526
|
+
TAG: "Update",
|
|
527
|
+
_0: id1$1,
|
|
528
|
+
_1: state => g(f(state))
|
|
529
|
+
}]);
|
|
530
|
+
}
|
|
531
|
+
break;
|
|
532
|
+
case "UpdateWithDefault" :
|
|
533
|
+
if (id1$1 === action._0) {
|
|
534
|
+
let g$1 = action._2;
|
|
535
|
+
return previousActions.concat([{
|
|
536
|
+
TAG: "UpdateWithDefault",
|
|
537
|
+
_0: id1$1,
|
|
538
|
+
_1: action._1,
|
|
539
|
+
_2: state => g$1(f(state))
|
|
540
|
+
}]);
|
|
541
|
+
}
|
|
542
|
+
break;
|
|
543
|
+
case "Set" :
|
|
544
|
+
if (id1$1 === action._0) {
|
|
545
|
+
log.warn("Projection", undefined, `optimizing Set after Update for id=` + id1$1 + `, ignoring the Update`);
|
|
546
|
+
return previousActions.concat([{
|
|
547
|
+
TAG: "Set",
|
|
548
|
+
_0: id1$1,
|
|
549
|
+
_1: action._1
|
|
550
|
+
}]);
|
|
551
|
+
}
|
|
552
|
+
break;
|
|
553
|
+
case "Delete" :
|
|
554
|
+
if (id1$1 === action._0) {
|
|
555
|
+
log.warn("Projection", undefined, `optimizing Delete after Update for id=` + id1$1 + `, ignoring the Update`);
|
|
556
|
+
return previousActions.concat([{
|
|
557
|
+
TAG: "Delete",
|
|
558
|
+
_0: id1$1
|
|
559
|
+
}]);
|
|
560
|
+
}
|
|
561
|
+
break;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
break;
|
|
565
|
+
case "UpdateWithDefault" :
|
|
566
|
+
let f$1 = lastAction._2;
|
|
567
|
+
let defaultState1 = lastAction._1;
|
|
568
|
+
let id1$2 = lastAction._0;
|
|
569
|
+
if (typeof action === "object") {
|
|
570
|
+
switch (action.TAG) {
|
|
571
|
+
case "Create" :
|
|
572
|
+
if (id1$2 === action._0) {
|
|
573
|
+
log.warn("Projection", undefined, `optimizing Create after UpdateWithDefault for id=` + id1$2 + `, ignoring the Create`);
|
|
574
|
+
return previousActions.concat([{
|
|
575
|
+
TAG: "UpdateWithDefault",
|
|
576
|
+
_0: id1$2,
|
|
577
|
+
_1: defaultState1,
|
|
578
|
+
_2: f$1
|
|
579
|
+
}]);
|
|
580
|
+
}
|
|
581
|
+
break;
|
|
582
|
+
case "Update" :
|
|
583
|
+
if (id1$2 === action._0) {
|
|
584
|
+
let g$2 = action._1;
|
|
585
|
+
return previousActions.concat([{
|
|
586
|
+
TAG: "UpdateWithDefault",
|
|
587
|
+
_0: id1$2,
|
|
588
|
+
_1: g$2(defaultState1),
|
|
589
|
+
_2: state => g$2(f$1(state))
|
|
590
|
+
}]);
|
|
591
|
+
}
|
|
592
|
+
break;
|
|
593
|
+
case "UpdateWithDefault" :
|
|
594
|
+
if (id1$2 === action._0) {
|
|
595
|
+
let g$3 = action._2;
|
|
596
|
+
return previousActions.concat([{
|
|
597
|
+
TAG: "UpdateWithDefault",
|
|
598
|
+
_0: id1$2,
|
|
599
|
+
_1: g$3(defaultState1),
|
|
600
|
+
_2: state => g$3(f$1(state))
|
|
601
|
+
}]);
|
|
602
|
+
}
|
|
603
|
+
break;
|
|
604
|
+
case "Set" :
|
|
605
|
+
if (id1$2 === action._0) {
|
|
606
|
+
log.warn("Projection", undefined, `optimizing Set after UpdateWithDefault for id=` + id1$2 + `, ignoring the UpdateWithDefault`);
|
|
607
|
+
return previousActions.concat([{
|
|
608
|
+
TAG: "Set",
|
|
609
|
+
_0: id1$2,
|
|
610
|
+
_1: action._1
|
|
611
|
+
}]);
|
|
612
|
+
}
|
|
613
|
+
break;
|
|
614
|
+
case "Delete" :
|
|
615
|
+
if (id1$2 === action._0) {
|
|
616
|
+
log.warn("Projection", undefined, `optimizing Delete after UpdateWithDefault for id=` + id1$2 + `, ignoring the UpdateWithDefault`);
|
|
617
|
+
return previousActions.concat([{
|
|
618
|
+
TAG: "Delete",
|
|
619
|
+
_0: id1$2
|
|
620
|
+
}]);
|
|
621
|
+
}
|
|
622
|
+
break;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
break;
|
|
626
|
+
case "Delete" :
|
|
627
|
+
if (typeof action === "object" && action.TAG === "Create") {
|
|
628
|
+
let id1$3 = lastAction._0;
|
|
629
|
+
if (id1$3 === action._0) {
|
|
630
|
+
return previousActions.concat([{
|
|
631
|
+
TAG: "Set",
|
|
632
|
+
_0: id1$3,
|
|
633
|
+
_1: action._1
|
|
634
|
+
}]);
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
break;
|
|
638
|
+
case "UpdateMultiState" :
|
|
639
|
+
if (typeof action === "object" && action.TAG === "UpdateMultiState") {
|
|
640
|
+
let id1$4 = lastAction._0;
|
|
641
|
+
if (id1$4 === action._0) {
|
|
642
|
+
let g$4 = action._1;
|
|
643
|
+
let f$2 = lastAction._1;
|
|
644
|
+
return previousActions.concat([{
|
|
645
|
+
TAG: "UpdateMultiState",
|
|
646
|
+
_0: id1$4,
|
|
647
|
+
_1: state => g$4(f$2(state))
|
|
648
|
+
}]);
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
break;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
log.warn("Projection", undefined, `actions not optimized: ` + Stdlib_Option.getOr(JSON.stringify(lastAction), "?") + ` + ` + Stdlib_Option.getOr(JSON.stringify(action), "?"));
|
|
655
|
+
return optimizedActions.concat([action]);
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
async function handleActions(actions, operations, subIdConfig) {
|
|
660
|
+
let handleActionsForId = async (actions, id) => {
|
|
661
|
+
let actionCount = actions.length;
|
|
662
|
+
if (actionCount > 1) {
|
|
663
|
+
log.debug("Projection", undefined, `handleActions: optimizing ` + actionCount.toString() + ` actions for id=` + id);
|
|
664
|
+
}
|
|
665
|
+
let optimizedActions = optimizeActions(actions);
|
|
666
|
+
let optimizedActionCount = optimizedActions.length;
|
|
667
|
+
log.info("Projection", undefined, `handleActions: id=` + id + ` actions=` + optimizedActionCount.toString());
|
|
668
|
+
return await Stdlib_Array.reduce(optimizedActions, Promise.resolve({
|
|
669
|
+
TAG: "Ok",
|
|
670
|
+
_0: undefined
|
|
671
|
+
}), async (p, action) => {
|
|
672
|
+
let err = await p;
|
|
673
|
+
if (err.TAG !== "Ok") {
|
|
674
|
+
log.error("Projection", undefined, `storage error: ` + JSON.stringify(Message$ReventlessCore.encode(err._0, QueryDb$ReventlessInfra.storageErrorSchema)));
|
|
675
|
+
}
|
|
676
|
+
return await handleAction(action, operations, subIdConfig);
|
|
677
|
+
});
|
|
678
|
+
};
|
|
679
|
+
let results = await Promise.all(groupActionsById(actions).map(param => handleActionsForId(param[1], param[0])));
|
|
680
|
+
let errors = Stdlib_Array.filterMap(results, x => {
|
|
681
|
+
if (x.TAG === "Ok") {
|
|
682
|
+
return;
|
|
683
|
+
} else {
|
|
684
|
+
return x._0;
|
|
685
|
+
}
|
|
686
|
+
});
|
|
687
|
+
if (errors.length === 0) {
|
|
688
|
+
return;
|
|
689
|
+
}
|
|
690
|
+
let count = errors.length;
|
|
691
|
+
return Stdlib_JsError.throwWithMessage(`Projection.handleActions failed with ` + count.toString() + ` errors: ` + errors.map(QueryDb$ReventlessCore.storageErrorToString).join(","));
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
let $$Set;
|
|
695
|
+
|
|
696
|
+
export {
|
|
697
|
+
$$Set,
|
|
698
|
+
log,
|
|
699
|
+
Mapping,
|
|
700
|
+
logAction,
|
|
701
|
+
overlayDisplayName,
|
|
702
|
+
rewriteAction,
|
|
703
|
+
applyChanges,
|
|
704
|
+
stateToString,
|
|
705
|
+
statesToString,
|
|
706
|
+
handleAction,
|
|
707
|
+
actionsWithId,
|
|
708
|
+
groupActionsById,
|
|
709
|
+
optimizeActions,
|
|
710
|
+
handleActions,
|
|
711
|
+
}
|
|
712
|
+
/* log Not a pure module */
|