@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,44 @@
|
|
|
1
|
+
// functor to create specific Mapper for projections
|
|
2
|
+
module Spec = Reventless.Projection
|
|
3
|
+
|
|
4
|
+
module type StateTarget = {
|
|
5
|
+
let name: string
|
|
6
|
+
@schema
|
|
7
|
+
type state
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
module MakeGenericTargetFromStateTarget = (StateTarget: StateTarget): (
|
|
11
|
+
Mapper.GenericTarget with type t = StateTarget.state
|
|
12
|
+
) => {
|
|
13
|
+
let name = StateTarget.name
|
|
14
|
+
type t = StateTarget.state
|
|
15
|
+
let decode = json => json->Message.decode(StateTarget.stateSchema)
|
|
16
|
+
let encode = value => value->Message.encode(StateTarget.stateSchema)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
module Make = (
|
|
20
|
+
Target: Reventless.Projection.Target,
|
|
21
|
+
Mappings: Reventless.Projection.Mappings with module Target := Target,
|
|
22
|
+
): (
|
|
23
|
+
MapperNto1.Mapper
|
|
24
|
+
with type targetState := Target.state
|
|
25
|
+
and type action<'id, 'state> := Spec.action<string, Target.state>
|
|
26
|
+
) => {
|
|
27
|
+
module GenericTarget = MakeGenericTargetFromStateTarget(Target)
|
|
28
|
+
module GenericMappings = {
|
|
29
|
+
module type Mapping = MapperNto1.Mapping
|
|
30
|
+
with module Spec := Spec
|
|
31
|
+
and type target := Target.state
|
|
32
|
+
|
|
33
|
+
let mappings: array<module(Mapping)> = Mappings.mappings->Array.map((module(M)) => {
|
|
34
|
+
module GenericMapping = {
|
|
35
|
+
let sourceName = M.sourceName
|
|
36
|
+
let acceptedTags = Reventless.DcbTag.extractAllVariantNames(M.sourceEventSchema)
|
|
37
|
+
module Source = Projection.Mapping.MakeGenericSource(M)
|
|
38
|
+
let project = MapperNto1.makeGenericMap(Source.decode', M.project)
|
|
39
|
+
}
|
|
40
|
+
module(GenericMapping: Mapping)
|
|
41
|
+
})
|
|
42
|
+
}
|
|
43
|
+
include MapperNto1.Mapper(Spec, GenericTarget, GenericMappings)
|
|
44
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
+
|
|
3
|
+
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
4
|
+
import * as Message$ReventlessCore from "./Message.res.mjs";
|
|
5
|
+
import * as MapperNto1$ReventlessCore from "./MapperNto1.res.mjs";
|
|
6
|
+
import * as Projection$ReventlessCore from "./Projection.res.mjs";
|
|
7
|
+
|
|
8
|
+
function MakeGenericTargetFromStateTarget(StateTarget) {
|
|
9
|
+
let decode = json => Message$ReventlessCore.decode(json, StateTarget.stateSchema);
|
|
10
|
+
let encode = value => Message$ReventlessCore.encode(value, StateTarget.stateSchema);
|
|
11
|
+
return {
|
|
12
|
+
name: StateTarget.name,
|
|
13
|
+
decode: decode,
|
|
14
|
+
encode: encode
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function Make(Target) {
|
|
19
|
+
return Mappings => {
|
|
20
|
+
let decode = json => Message$ReventlessCore.decode(json, Target.stateSchema);
|
|
21
|
+
let encode = value => Message$ReventlessCore.encode(value, Target.stateSchema);
|
|
22
|
+
let GenericTarget_name = Target.name;
|
|
23
|
+
let GenericTarget = {
|
|
24
|
+
name: GenericTarget_name,
|
|
25
|
+
decode: decode,
|
|
26
|
+
encode: encode
|
|
27
|
+
};
|
|
28
|
+
let mappings = Mappings.mappings.map(M => {
|
|
29
|
+
let acceptedTags = DcbTag$Reventless.extractAllVariantNames(M.sourceEventSchema);
|
|
30
|
+
let Source = Projection$ReventlessCore.Mapping.MakeGenericSource(M);
|
|
31
|
+
let project = MapperNto1$ReventlessCore.makeGenericMap(Source.decode$p, M.project);
|
|
32
|
+
return {
|
|
33
|
+
sourceName: M.sourceName,
|
|
34
|
+
acceptedTags: acceptedTags,
|
|
35
|
+
project: project
|
|
36
|
+
};
|
|
37
|
+
});
|
|
38
|
+
return MapperNto1$ReventlessCore.Mapper({})(GenericTarget)({
|
|
39
|
+
mappings: mappings
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
let Spec;
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
Spec,
|
|
48
|
+
MakeGenericTargetFromStateTarget,
|
|
49
|
+
Make,
|
|
50
|
+
}
|
|
51
|
+
/* DcbTag-Reventless Not a pure module */
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// RequestContext service — carries per-invocation data through an Effect pipeline
|
|
2
|
+
// without explicit argument threading.
|
|
3
|
+
//
|
|
4
|
+
// Populated at the Lambda handler entry point from the incoming event's meta field.
|
|
5
|
+
// All Effects that need correlationId or identity use serviceWith(RequestContext.tag, ...)
|
|
6
|
+
// instead of accepting them as function arguments.
|
|
7
|
+
//
|
|
8
|
+
// Provide in Lambda handler:
|
|
9
|
+
// let ctx = { correlationId: event.meta.correlationId, identity: Identity.anonymous, claims: Dict.make() }
|
|
10
|
+
// myEffect
|
|
11
|
+
// ->Effect.provideService(RequestContext.tag, ctx)
|
|
12
|
+
// ->Effect.runPromise
|
|
13
|
+
//
|
|
14
|
+
// In tests:
|
|
15
|
+
// ->Effect.provideService(RequestContext.tag, RequestContext.test())
|
|
16
|
+
|
|
17
|
+
type t = {
|
|
18
|
+
correlationId: string,
|
|
19
|
+
identity: Reventless.Identity.t,
|
|
20
|
+
claims: dict<string>,
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
let tag: Context.tag<t> = Context.genericTag("reventless/RequestContext")
|
|
24
|
+
|
|
25
|
+
let getClaim = (ctx: t, key: string): option<string> =>
|
|
26
|
+
ctx.claims->Dict.get(key)
|
|
27
|
+
|
|
28
|
+
let withClaim = (ctx: t, key: string, value: string): t => {
|
|
29
|
+
let next = ctx.claims->Dict.toArray->Dict.fromArray
|
|
30
|
+
next->Dict.set(key, value)
|
|
31
|
+
{...ctx, claims: next}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
let test = (
|
|
35
|
+
~correlationId="test-correlation-id",
|
|
36
|
+
~identity=Reventless.Identity.anonymous,
|
|
37
|
+
~claims=Dict.make(),
|
|
38
|
+
): t => {
|
|
39
|
+
correlationId,
|
|
40
|
+
identity,
|
|
41
|
+
claims,
|
|
42
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
+
|
|
3
|
+
import * as Context from "effect/Context";
|
|
4
|
+
import * as Identity$Reventless from "@reventlessdev/reventless-spec/src/types/Identity.res.mjs";
|
|
5
|
+
|
|
6
|
+
let tag = Context.GenericTag("reventless/RequestContext");
|
|
7
|
+
|
|
8
|
+
function getClaim(ctx, key) {
|
|
9
|
+
return ctx.claims[key];
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function withClaim(ctx, key, value) {
|
|
13
|
+
let next = Object.fromEntries(Object.entries(ctx.claims));
|
|
14
|
+
next[key] = value;
|
|
15
|
+
return {
|
|
16
|
+
correlationId: ctx.correlationId,
|
|
17
|
+
identity: ctx.identity,
|
|
18
|
+
claims: next
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function test(correlationIdOpt, identityOpt, claimsOpt) {
|
|
23
|
+
let correlationId = correlationIdOpt !== undefined ? correlationIdOpt : "test-correlation-id";
|
|
24
|
+
let identity = identityOpt !== undefined ? identityOpt : Identity$Reventless.anonymous;
|
|
25
|
+
let claims = claimsOpt !== undefined ? claimsOpt : ({});
|
|
26
|
+
return {
|
|
27
|
+
correlationId: correlationId,
|
|
28
|
+
identity: identity,
|
|
29
|
+
claims: claims
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
tag,
|
|
35
|
+
getClaim,
|
|
36
|
+
withClaim,
|
|
37
|
+
test,
|
|
38
|
+
}
|
|
39
|
+
/* tag Not a pure module */
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
let log = Logger.fromEnv()
|
|
2
|
+
|
|
3
|
+
type resolvedResource = ReventlessInfra.Adapter.resolvedResource
|
|
4
|
+
|
|
5
|
+
let outputToResource: Pulumi.Output.t<
|
|
6
|
+
ReventlessInfra.Adapter.resource,
|
|
7
|
+
> => ReventlessInfra.Adapter.resource = resourceOutput => {
|
|
8
|
+
id: resourceOutput->Pulumi.Output.flatMap(r => r.id),
|
|
9
|
+
name: resourceOutput->Pulumi.Output.flatMap(r => r.name),
|
|
10
|
+
urn: resourceOutput->Pulumi.Output.flatMap(r => r.urn),
|
|
11
|
+
resourceInfo: resourceOutput->Pulumi.Output.flatMap(r => r.resourceInfo),
|
|
12
|
+
service: resourceOutput->Pulumi.Output.flatMap(r => r.service),
|
|
13
|
+
role: resourceOutput->Pulumi.Output.flatMap(r => r.role),
|
|
14
|
+
region: resourceOutput->Pulumi.Output.flatMap(r => r.region),
|
|
15
|
+
resourceType: resourceOutput->Pulumi.Output.flatMap(r => r.resourceType),
|
|
16
|
+
configuration: resourceOutput->Pulumi.Output.flatMap(r => r.configuration),
|
|
17
|
+
tags: resourceOutput->Pulumi.Output.flatMap(r => r.tags),
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
let resourcesOutputToResource: Pulumi.Output.t<array<ReventlessInfra.Adapter.resource>> => option<
|
|
21
|
+
ReventlessInfra.Adapter.resource,
|
|
22
|
+
> = resourcesOutput =>
|
|
23
|
+
try {
|
|
24
|
+
id: resourcesOutput->Pulumi.Output.flatMap(r => (r->Array.getUnsafe(0)).id),
|
|
25
|
+
name: resourcesOutput->Pulumi.Output.flatMap(r => (r->Array.getUnsafe(0)).name),
|
|
26
|
+
urn: resourcesOutput->Pulumi.Output.flatMap(r => (r->Array.getUnsafe(0)).urn),
|
|
27
|
+
resourceInfo: resourcesOutput->Pulumi.Output.flatMap(r => (r->Array.getUnsafe(0)).resourceInfo),
|
|
28
|
+
service: resourcesOutput->Pulumi.Output.flatMap(r => (r->Array.getUnsafe(0)).service),
|
|
29
|
+
role: resourcesOutput->Pulumi.Output.flatMap(r => (r->Array.getUnsafe(0)).role),
|
|
30
|
+
region: resourcesOutput->Pulumi.Output.flatMap(r => (r->Array.getUnsafe(0)).region),
|
|
31
|
+
resourceType: resourcesOutput->Pulumi.Output.flatMap(r => (r->Array.getUnsafe(0)).resourceType),
|
|
32
|
+
configuration: resourcesOutput->Pulumi.Output.flatMap(r =>
|
|
33
|
+
(r->Array.getUnsafe(0)).configuration
|
|
34
|
+
),
|
|
35
|
+
tags: resourcesOutput->Pulumi.Output.flatMap(r => (r->Array.getUnsafe(0)).tags),
|
|
36
|
+
}->Some catch {
|
|
37
|
+
| _ => None
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
let resolvedToResource = (
|
|
41
|
+
{id, name, urn, resourceInfo, service, role, region, resourceType, configuration, tags}: resolvedResource,
|
|
42
|
+
): ReventlessInfra.Adapter.resource => {
|
|
43
|
+
id: id->Pulumi.Output.make,
|
|
44
|
+
name: name->Pulumi.Output.make,
|
|
45
|
+
urn: urn->Pulumi.Output.make,
|
|
46
|
+
resourceInfo: resourceInfo->Pulumi.Output.make,
|
|
47
|
+
service: service->Pulumi.Output.make,
|
|
48
|
+
role: role->Pulumi.Output.make,
|
|
49
|
+
region: region->Pulumi.Output.make,
|
|
50
|
+
resourceType: resourceType->Pulumi.Output.make,
|
|
51
|
+
configuration: configuration->Pulumi.Output.make,
|
|
52
|
+
tags: tags->Pulumi.Output.make,
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
let resolvedToResources = (resolved: array<resolvedResource>) =>
|
|
56
|
+
resolved->Array.map(resolved => resolved->resolvedToResource)
|
|
57
|
+
|
|
58
|
+
let resolvedOutputToResource: Pulumi.Output.t<
|
|
59
|
+
resolvedResource,
|
|
60
|
+
> => ReventlessInfra.Adapter.resource = resolvedResource => {
|
|
61
|
+
service: resolvedResource->Pulumi.Output.apply(r => r.service),
|
|
62
|
+
name: resolvedResource->Pulumi.Output.apply(r => r.name),
|
|
63
|
+
id: resolvedResource->Pulumi.Output.apply(r => r.id),
|
|
64
|
+
urn: resolvedResource->Pulumi.Output.apply(r => r.urn),
|
|
65
|
+
resourceInfo: resolvedResource->Pulumi.Output.apply(r => r.resourceInfo),
|
|
66
|
+
role: resolvedResource->Pulumi.Output.apply(r => r.role),
|
|
67
|
+
region: resolvedResource->Pulumi.Output.apply(r => r.region),
|
|
68
|
+
resourceType: resolvedResource->Pulumi.Output.apply(r => r.resourceType),
|
|
69
|
+
configuration: resolvedResource->Pulumi.Output.apply(r => r.configuration),
|
|
70
|
+
tags: resolvedResource->Pulumi.Output.apply(r => r.tags),
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
let resourceToResolvedOutput = (r: ReventlessInfra.Adapter.resource) =>
|
|
74
|
+
(r.name, r.id, r.urn, r.resourceInfo, r.service, r.role)
|
|
75
|
+
->Pulumi.Output.all6
|
|
76
|
+
->Pulumi.Output.flatMap(((name, id, urn, resourceInfo, service, role)) =>
|
|
77
|
+
(r.region, r.resourceType, r.configuration, r.tags)
|
|
78
|
+
->Pulumi.Output.all4
|
|
79
|
+
->Pulumi.Output.apply(((region, resourceType, configuration, tags)) => {
|
|
80
|
+
let result: resolvedResource = {
|
|
81
|
+
name,
|
|
82
|
+
id,
|
|
83
|
+
urn,
|
|
84
|
+
resourceInfo,
|
|
85
|
+
service,
|
|
86
|
+
role,
|
|
87
|
+
region,
|
|
88
|
+
resourceType,
|
|
89
|
+
configuration,
|
|
90
|
+
tags,
|
|
91
|
+
}
|
|
92
|
+
result
|
|
93
|
+
})
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
let resourcesToResolvedOutput = (resources: array<ReventlessInfra.Adapter.resource>) =>
|
|
97
|
+
resources
|
|
98
|
+
->Array.map(resource => resource->resourceToResolvedOutput)
|
|
99
|
+
->Pulumi.Output.all
|
|
100
|
+
|
|
101
|
+
let logResource = r => {
|
|
102
|
+
let _ =
|
|
103
|
+
r
|
|
104
|
+
->resourceToResolvedOutput
|
|
105
|
+
->Pulumi.Output.apply(r =>
|
|
106
|
+
log.debug(
|
|
107
|
+
~comp="Adapter",
|
|
108
|
+
~data=r->JSON.stringifyAny->Option.getOr("")->JSON.Encode.string,
|
|
109
|
+
"resource",
|
|
110
|
+
)
|
|
111
|
+
)
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
let resolvedToString = (resources: array<resolvedResource>) => {
|
|
115
|
+
resources->Array.filterMap(resource => resource->JSON.stringifyAny)->Array.joinUnsafe(", ")
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
let urns = resources => resources->Array.map((resource: resolvedResource) => resource.urn)
|
|
119
|
+
|
|
120
|
+
// ---------------------------------------------------------------------------
|
|
121
|
+
// Interop resource conversions
|
|
122
|
+
// ReventlessInterop.Resource.t and resolvedResource are structurally identical;
|
|
123
|
+
// these helpers bridge the two type-system identities without runtime cost.
|
|
124
|
+
// ---------------------------------------------------------------------------
|
|
125
|
+
|
|
126
|
+
let toInteropResource = (
|
|
127
|
+
{name, id, urn, resourceInfo, service, role, region, resourceType, configuration, tags}: resolvedResource,
|
|
128
|
+
): ReventlessInterop.Resource.t => {
|
|
129
|
+
name,
|
|
130
|
+
id,
|
|
131
|
+
urn,
|
|
132
|
+
resourceInfo: (resourceInfo :> ReventlessInterop.Resource.resourceInfo),
|
|
133
|
+
service,
|
|
134
|
+
role,
|
|
135
|
+
region,
|
|
136
|
+
resourceType,
|
|
137
|
+
configuration,
|
|
138
|
+
tags,
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
let resourcesToInterop = (resources: array<ReventlessInfra.Adapter.resource>) =>
|
|
142
|
+
resources
|
|
143
|
+
->resourcesToResolvedOutput
|
|
144
|
+
->Pulumi.Output.apply(rs => rs->Array.map(toInteropResource))
|
|
145
|
+
|
|
146
|
+
let fromInteropResolved = (
|
|
147
|
+
{name, id, urn, resourceInfo, service, role, region, resourceType, configuration, tags}: ReventlessInterop.Resource.t,
|
|
148
|
+
): resolvedResource => {
|
|
149
|
+
name,
|
|
150
|
+
id,
|
|
151
|
+
urn,
|
|
152
|
+
resourceInfo: (resourceInfo :> ReventlessInfra.Adapter.resourceInfo),
|
|
153
|
+
service,
|
|
154
|
+
role,
|
|
155
|
+
region,
|
|
156
|
+
resourceType,
|
|
157
|
+
configuration,
|
|
158
|
+
tags,
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
let fromInteropResource = (
|
|
162
|
+
{name, id, urn, resourceInfo, service, role, region, resourceType, configuration, tags}: ReventlessInterop.Resource.t,
|
|
163
|
+
): ReventlessInfra.Adapter.resource => {
|
|
164
|
+
id: id->Pulumi.Output.make,
|
|
165
|
+
name: name->Pulumi.Output.make,
|
|
166
|
+
urn: urn->Pulumi.Output.make,
|
|
167
|
+
resourceInfo: (resourceInfo :> ReventlessInfra.Adapter.resourceInfo)->Pulumi.Output.make,
|
|
168
|
+
service: service->Pulumi.Output.make,
|
|
169
|
+
role: role->Pulumi.Output.make,
|
|
170
|
+
region: region->Pulumi.Output.make,
|
|
171
|
+
resourceType: resourceType->Pulumi.Output.make,
|
|
172
|
+
configuration: configuration->Pulumi.Output.make,
|
|
173
|
+
tags: tags->Pulumi.Output.make,
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
let fromInteropResources = (rs: array<ReventlessInterop.Resource.t>): array<
|
|
177
|
+
ReventlessInfra.Adapter.resource,
|
|
178
|
+
> => rs->Array.map(fromInteropResource)
|
|
@@ -0,0 +1,201 @@
|
|
|
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 Output$Pulumi from "@reventlessdev/rescript-pulumi-pulumi/src/Output.res.mjs";
|
|
5
|
+
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
6
|
+
import * as Pulumi from "@pulumi/pulumi";
|
|
7
|
+
import * as Logger$ReventlessCore from "../util/Logger.res.mjs";
|
|
8
|
+
|
|
9
|
+
let log = Logger$ReventlessCore.fromEnv();
|
|
10
|
+
|
|
11
|
+
function outputToResource(resourceOutput) {
|
|
12
|
+
return {
|
|
13
|
+
name: Output$Pulumi.flatMap(resourceOutput, r => r.name),
|
|
14
|
+
id: Output$Pulumi.flatMap(resourceOutput, r => r.id),
|
|
15
|
+
urn: Output$Pulumi.flatMap(resourceOutput, r => r.urn),
|
|
16
|
+
resourceInfo: Output$Pulumi.flatMap(resourceOutput, r => r.resourceInfo),
|
|
17
|
+
service: Output$Pulumi.flatMap(resourceOutput, r => r.service),
|
|
18
|
+
role: Output$Pulumi.flatMap(resourceOutput, r => r.role),
|
|
19
|
+
region: Output$Pulumi.flatMap(resourceOutput, r => r.region),
|
|
20
|
+
resourceType: Output$Pulumi.flatMap(resourceOutput, r => r.resourceType),
|
|
21
|
+
configuration: Output$Pulumi.flatMap(resourceOutput, r => r.configuration),
|
|
22
|
+
tags: Output$Pulumi.flatMap(resourceOutput, r => r.tags)
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function resourcesOutputToResource(resourcesOutput) {
|
|
27
|
+
try {
|
|
28
|
+
return {
|
|
29
|
+
name: Output$Pulumi.flatMap(resourcesOutput, r => r[0].name),
|
|
30
|
+
id: Output$Pulumi.flatMap(resourcesOutput, r => r[0].id),
|
|
31
|
+
urn: Output$Pulumi.flatMap(resourcesOutput, r => r[0].urn),
|
|
32
|
+
resourceInfo: Output$Pulumi.flatMap(resourcesOutput, r => r[0].resourceInfo),
|
|
33
|
+
service: Output$Pulumi.flatMap(resourcesOutput, r => r[0].service),
|
|
34
|
+
role: Output$Pulumi.flatMap(resourcesOutput, r => r[0].role),
|
|
35
|
+
region: Output$Pulumi.flatMap(resourcesOutput, r => r[0].region),
|
|
36
|
+
resourceType: Output$Pulumi.flatMap(resourcesOutput, r => r[0].resourceType),
|
|
37
|
+
configuration: Output$Pulumi.flatMap(resourcesOutput, r => r[0].configuration),
|
|
38
|
+
tags: Output$Pulumi.flatMap(resourcesOutput, r => r[0].tags)
|
|
39
|
+
};
|
|
40
|
+
} catch (exn) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function resolvedToResource(param) {
|
|
46
|
+
return {
|
|
47
|
+
name: Pulumi.output(param.name),
|
|
48
|
+
id: Pulumi.output(param.id),
|
|
49
|
+
urn: Pulumi.output(param.urn),
|
|
50
|
+
resourceInfo: Pulumi.output(param.resourceInfo),
|
|
51
|
+
service: Pulumi.output(param.service),
|
|
52
|
+
role: Pulumi.output(param.role),
|
|
53
|
+
region: Pulumi.output(param.region),
|
|
54
|
+
resourceType: Pulumi.output(param.resourceType),
|
|
55
|
+
configuration: Pulumi.output(param.configuration),
|
|
56
|
+
tags: Pulumi.output(param.tags)
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function resolvedToResources(resolved) {
|
|
61
|
+
return resolved.map(resolvedToResource);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function resolvedOutputToResource(resolvedResource) {
|
|
65
|
+
return {
|
|
66
|
+
name: resolvedResource.apply(r => r.name),
|
|
67
|
+
id: resolvedResource.apply(r => r.id),
|
|
68
|
+
urn: resolvedResource.apply(r => r.urn),
|
|
69
|
+
resourceInfo: resolvedResource.apply(r => r.resourceInfo),
|
|
70
|
+
service: resolvedResource.apply(r => r.service),
|
|
71
|
+
role: resolvedResource.apply(r => r.role),
|
|
72
|
+
region: resolvedResource.apply(r => r.region),
|
|
73
|
+
resourceType: resolvedResource.apply(r => r.resourceType),
|
|
74
|
+
configuration: resolvedResource.apply(r => r.configuration),
|
|
75
|
+
tags: resolvedResource.apply(r => r.tags)
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function resourceToResolvedOutput(r) {
|
|
80
|
+
return Output$Pulumi.flatMap(Pulumi.all([
|
|
81
|
+
r.name,
|
|
82
|
+
r.id,
|
|
83
|
+
r.urn,
|
|
84
|
+
r.resourceInfo,
|
|
85
|
+
r.service,
|
|
86
|
+
r.role
|
|
87
|
+
]), param => {
|
|
88
|
+
let role = param[5];
|
|
89
|
+
let service = param[4];
|
|
90
|
+
let resourceInfo = param[3];
|
|
91
|
+
let urn = param[2];
|
|
92
|
+
let id = param[1];
|
|
93
|
+
let name = param[0];
|
|
94
|
+
return Pulumi.all([
|
|
95
|
+
r.region,
|
|
96
|
+
r.resourceType,
|
|
97
|
+
r.configuration,
|
|
98
|
+
r.tags
|
|
99
|
+
]).apply(param => ({
|
|
100
|
+
name: name,
|
|
101
|
+
id: id,
|
|
102
|
+
urn: urn,
|
|
103
|
+
resourceInfo: resourceInfo,
|
|
104
|
+
service: service,
|
|
105
|
+
role: role,
|
|
106
|
+
region: param[0],
|
|
107
|
+
resourceType: param[1],
|
|
108
|
+
configuration: param[2],
|
|
109
|
+
tags: param[3]
|
|
110
|
+
}));
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function resourcesToResolvedOutput(resources) {
|
|
115
|
+
return Pulumi.all(resources.map(resourceToResolvedOutput));
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function logResource(r) {
|
|
119
|
+
resourceToResolvedOutput(r).apply(r => log.debug("Adapter", Stdlib_Option.getOr(JSON.stringify(r), ""), "resource"));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function resolvedToString(resources) {
|
|
123
|
+
return Stdlib_Array.filterMap(resources, resource => JSON.stringify(resource)).join(", ");
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function urns(resources) {
|
|
127
|
+
return resources.map(resource => resource.urn);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function toInteropResource(param) {
|
|
131
|
+
return {
|
|
132
|
+
name: param.name,
|
|
133
|
+
id: param.id,
|
|
134
|
+
urn: param.urn,
|
|
135
|
+
resourceInfo: param.resourceInfo,
|
|
136
|
+
service: param.service,
|
|
137
|
+
role: param.role,
|
|
138
|
+
region: param.region,
|
|
139
|
+
resourceType: param.resourceType,
|
|
140
|
+
configuration: param.configuration,
|
|
141
|
+
tags: param.tags
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
function resourcesToInterop(resources) {
|
|
146
|
+
return resourcesToResolvedOutput(resources).apply(rs => rs.map(toInteropResource));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function fromInteropResolved(param) {
|
|
150
|
+
return {
|
|
151
|
+
name: param.name,
|
|
152
|
+
id: param.id,
|
|
153
|
+
urn: param.urn,
|
|
154
|
+
resourceInfo: param.resourceInfo,
|
|
155
|
+
service: param.service,
|
|
156
|
+
role: param.role,
|
|
157
|
+
region: param.region,
|
|
158
|
+
resourceType: param.resourceType,
|
|
159
|
+
configuration: param.configuration,
|
|
160
|
+
tags: param.tags
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function fromInteropResource(param) {
|
|
165
|
+
return {
|
|
166
|
+
name: Pulumi.output(param.name),
|
|
167
|
+
id: Pulumi.output(param.id),
|
|
168
|
+
urn: Pulumi.output(param.urn),
|
|
169
|
+
resourceInfo: Pulumi.output(param.resourceInfo),
|
|
170
|
+
service: Pulumi.output(param.service),
|
|
171
|
+
role: Pulumi.output(param.role),
|
|
172
|
+
region: Pulumi.output(param.region),
|
|
173
|
+
resourceType: Pulumi.output(param.resourceType),
|
|
174
|
+
configuration: Pulumi.output(param.configuration),
|
|
175
|
+
tags: Pulumi.output(param.tags)
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
function fromInteropResources(rs) {
|
|
180
|
+
return rs.map(fromInteropResource);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export {
|
|
184
|
+
log,
|
|
185
|
+
outputToResource,
|
|
186
|
+
resourcesOutputToResource,
|
|
187
|
+
resolvedToResource,
|
|
188
|
+
resolvedToResources,
|
|
189
|
+
resolvedOutputToResource,
|
|
190
|
+
resourceToResolvedOutput,
|
|
191
|
+
resourcesToResolvedOutput,
|
|
192
|
+
logResource,
|
|
193
|
+
resolvedToString,
|
|
194
|
+
urns,
|
|
195
|
+
toInteropResource,
|
|
196
|
+
resourcesToInterop,
|
|
197
|
+
fromInteropResolved,
|
|
198
|
+
fromInteropResource,
|
|
199
|
+
fromInteropResources,
|
|
200
|
+
}
|
|
201
|
+
/* log Not a pure module */
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
let resolvedToResource: Adapter.resolvedResource => ReventlessInfra.Adapter.resource = ({
|
|
2
|
+
name,
|
|
3
|
+
id,
|
|
4
|
+
urn,
|
|
5
|
+
resourceInfo,
|
|
6
|
+
service,
|
|
7
|
+
role,
|
|
8
|
+
region,
|
|
9
|
+
resourceType,
|
|
10
|
+
configuration,
|
|
11
|
+
tags,
|
|
12
|
+
}) => {
|
|
13
|
+
name: name->Pulumi.Output.make,
|
|
14
|
+
id: id->Pulumi.Output.make,
|
|
15
|
+
urn: urn->Pulumi.Output.make,
|
|
16
|
+
resourceInfo: resourceInfo->Pulumi.Output.make,
|
|
17
|
+
service: service->Pulumi.Output.make,
|
|
18
|
+
role: role->Pulumi.Output.make,
|
|
19
|
+
region: region->Pulumi.Output.make,
|
|
20
|
+
resourceType: resourceType->Pulumi.Output.make,
|
|
21
|
+
configuration: configuration->Pulumi.Output.make,
|
|
22
|
+
tags: tags->Pulumi.Output.make,
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
external unsafeUnwrapResource: ReventlessInfra.Adapter.resource => Adapter.resolvedResource =
|
|
26
|
+
"%identity"
|
|
27
|
+
|
|
28
|
+
let stackRefResourceToResource = stackRefResource =>
|
|
29
|
+
stackRefResource->unsafeUnwrapResource->resolvedToResource // StackReference outputs are not wrapped in Pulumi.Outputs !
|
|
30
|
+
|
|
31
|
+
// Convert from interop Resource.t directly to a Pulumi-wrapped resource.
|
|
32
|
+
// Identical to resolvedToResource but accepts the interop type, avoiding the
|
|
33
|
+
// intermediate Adapter.resolvedResource step.
|
|
34
|
+
let fromInteropResource: ReventlessInterop.Resource.t => ReventlessInfra.Adapter.resource = ({
|
|
35
|
+
name,
|
|
36
|
+
id,
|
|
37
|
+
urn,
|
|
38
|
+
resourceInfo,
|
|
39
|
+
service,
|
|
40
|
+
role,
|
|
41
|
+
region,
|
|
42
|
+
resourceType,
|
|
43
|
+
configuration,
|
|
44
|
+
tags,
|
|
45
|
+
}) => {
|
|
46
|
+
name: name->Pulumi.Output.make,
|
|
47
|
+
id: id->Pulumi.Output.make,
|
|
48
|
+
urn: urn->Pulumi.Output.make,
|
|
49
|
+
resourceInfo: (resourceInfo :> ReventlessInfra.Adapter.resourceInfo)->Pulumi.Output.make,
|
|
50
|
+
service: service->Pulumi.Output.make,
|
|
51
|
+
role: role->Pulumi.Output.make,
|
|
52
|
+
region: region->Pulumi.Output.make,
|
|
53
|
+
resourceType: resourceType->Pulumi.Output.make,
|
|
54
|
+
configuration: configuration->Pulumi.Output.make,
|
|
55
|
+
tags: tags->Pulumi.Output.make,
|
|
56
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
+
|
|
3
|
+
import * as Pulumi from "@pulumi/pulumi";
|
|
4
|
+
|
|
5
|
+
function resolvedToResource(param) {
|
|
6
|
+
return {
|
|
7
|
+
name: Pulumi.output(param.name),
|
|
8
|
+
id: Pulumi.output(param.id),
|
|
9
|
+
urn: Pulumi.output(param.urn),
|
|
10
|
+
resourceInfo: Pulumi.output(param.resourceInfo),
|
|
11
|
+
service: Pulumi.output(param.service),
|
|
12
|
+
role: Pulumi.output(param.role),
|
|
13
|
+
region: Pulumi.output(param.region),
|
|
14
|
+
resourceType: Pulumi.output(param.resourceType),
|
|
15
|
+
configuration: Pulumi.output(param.configuration),
|
|
16
|
+
tags: Pulumi.output(param.tags)
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
let stackRefResourceToResource = resolvedToResource;
|
|
21
|
+
|
|
22
|
+
function fromInteropResource(param) {
|
|
23
|
+
return {
|
|
24
|
+
name: Pulumi.output(param.name),
|
|
25
|
+
id: Pulumi.output(param.id),
|
|
26
|
+
urn: Pulumi.output(param.urn),
|
|
27
|
+
resourceInfo: Pulumi.output(param.resourceInfo),
|
|
28
|
+
service: Pulumi.output(param.service),
|
|
29
|
+
role: Pulumi.output(param.role),
|
|
30
|
+
region: Pulumi.output(param.region),
|
|
31
|
+
resourceType: Pulumi.output(param.resourceType),
|
|
32
|
+
configuration: Pulumi.output(param.configuration),
|
|
33
|
+
tags: Pulumi.output(param.tags)
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
resolvedToResource,
|
|
39
|
+
stackRefResourceToResource,
|
|
40
|
+
fromInteropResource,
|
|
41
|
+
}
|
|
42
|
+
/* @pulumi/pulumi Not a pure module */
|