@reventlessdev/reventless-core 3.0.0-alpha.239 → 3.0.0-alpha.241
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 +35 -0
- package/package.json +11 -11
- package/src/Message.res +11 -11
- package/src/Message.res.mjs +15 -14
- package/src/Projection.res +2 -2
- package/src/Projection.res.mjs +5 -4
- package/src/adapter/Monitoring/Monitoring.res +24 -2
- package/src/adapter/Monitoring/Monitoring.res.mjs +3 -3
- package/src/admin/Platform_Admin.res +1 -16
- package/src/admin/Platform_Admin.res.mjs +2 -30
- package/src/admin/Platform_AdminApi.res.mjs +3 -3
- package/src/admin/Platform_Admin_Structure.res +58 -113
- package/src/admin/Platform_Admin_Structure.res.mjs +24 -139
- package/src/admin/UiFragmentRegistry/StateChangeSlice/UiFragmentRegistry.res.mjs +12 -12
- package/src/admin/UiFragmentRegistry/StateViewSlice/UiFragments.res.mjs +14 -14
- package/src/components/Aggregate/Aggregate_Callback.res +2 -2
- package/src/components/Aggregate/Aggregate_Callback.res.mjs +4 -4
- package/src/components/Api/ApiAllowedStatesHelpers.res.mjs +3 -3
- package/src/components/Api/ApiNoApiHelpers.res.mjs +5 -5
- package/src/components/Api/ApiTargetStateHelpers.res.mjs +3 -3
- package/src/components/Api/GraphQL_FragmentGenerator.res +18 -12
- package/src/components/Api/GraphQL_FragmentGenerator.res.mjs +7 -13
- package/src/components/Api/GraphQL_SchemaInspector.res +1 -1
- package/src/components/Api/GraphQL_SchemaInspector.res.mjs +1 -1
- package/src/components/Api/MCP_SchemaGenerator.res +1 -1
- package/src/components/Api/MCP_SchemaGenerator.res.mjs +1 -1
- package/src/components/Api/SchemaType.res +6 -10
- package/src/components/Api/SchemaType.res.mjs +4 -4
- package/src/components/Api/StorageRefFields.res +1 -1
- package/src/components/Api/StorageRefFields.res.mjs +1 -1
- package/src/components/Api/SuryToJsonSchema.res +11 -0
- package/src/components/Api/SuryToJsonSchema.res.mjs +2 -1
- package/src/components/AutomationSlice/AutomationSlice_Callback.res +3 -4
- package/src/components/AutomationSlice/AutomationSlice_Callback.res.mjs +22 -23
- package/src/components/CommandTopic/CommandTopic_Callback.res +1 -2
- package/src/components/CommandTopic/CommandTopic_Callback.res.mjs +3 -4
- package/src/components/CommandTopic/CommandTopic_Helpers.res +1 -1
- package/src/components/CommandTopic/CommandTopic_Helpers.res.mjs +3 -3
- package/src/components/Counter/Counter.res.mjs +2 -2
- package/src/components/Counter/Counter_Callback.res.mjs +4 -4
- package/src/components/Counter/Counter_Operations.res.mjs +4 -4
- package/src/components/Dcb/Dcb_Builder.res +1 -1
- package/src/components/Dcb/Dcb_Builder.res.mjs +8 -6
- package/src/components/DcbEventLog/DcbEventLog_Builder.res.mjs +4 -3
- package/src/components/EventCollector/EventCollector_Builder.res +1 -1
- package/src/components/InboundTranslationSlice/InboundTranslationSlice_Callback.res +1 -2
- package/src/components/InboundTranslationSlice/InboundTranslationSlice_Callback.res.mjs +11 -12
- package/src/components/OutboundTranslationSlice/OutboundTranslationSlice_Callback.res +3 -4
- package/src/components/OutboundTranslationSlice/OutboundTranslationSlice_Callback.res.mjs +24 -25
- package/src/components/SideEffectHandler/SideEffectHandler_Callback.res +1 -1
- package/src/components/SideEffectHandler/SideEffectHandler_Callback.res.mjs +3 -3
- package/src/components/StateChangeSlice/StateChangeSlice_Callback.res +2 -2
- package/src/components/StateChangeSlice/StateChangeSlice_Callback.res.mjs +4 -4
- package/src/components/StateViewSlice/StateViewSlice_Builder.res +1 -1
- package/src/components/StateViewSlice/StateViewSlice_Builder.res.mjs +3 -3
- package/src/plugin/api/PluginBaseFragment.res +12 -29
- package/src/plugin/api/PluginBaseFragment.res.mjs +3 -22
- package/src/plugin/component/Capability_Inference.res +118 -1
- package/src/plugin/component/Capability_Inference.res.mjs +128 -1
- package/src/plugin/component/Plugin_Builder.res +2 -2
- package/src/plugin/component/Plugin_Builder.res.mjs +2 -1
- package/src/plugin/component/Plugin_Helpers.res +11 -11
- package/src/plugin/component/Plugin_Helpers.res.mjs +11 -10
- package/src/plugin/component/Plugin_Structure.res +349 -274
- package/src/plugin/component/Plugin_Structure.res.mjs +212 -175
- package/src/plugin/component/Plugin_SubscriptionSchema.res +1 -1
- package/src/plugin/component/Plugin_SubscriptionSchema.res.mjs +1 -1
- package/src/plugin/component/SchemaWalker.res +11 -11
- package/src/plugin/component/SchemaWalker.res.mjs +8 -9
- package/src/plugin/connect/PluginExtensionPoint_Plugin.res.mjs +15 -15
- package/src/plugin/lifecycle/PluginBehavior.res.mjs +55 -55
- package/src/plugin/lifecycle/PluginSpec.res +22 -7
- package/src/plugin/lifecycle/PluginSpec.res.mjs +91 -36
- package/src/plugin/lifecycle/PluginsReadModelSpec.res +36 -9
- package/src/plugin/lifecycle/PluginsReadModelSpec.res.mjs +33 -22
- package/src/util/Interstack.res +3 -3
- package/src/util/LogFormat.res +1 -2
- package/src/util/LogFormat.res.mjs +2 -2
- package/tests/IdentityTest.res +6 -7
- package/tests/IdentityTest.res.mjs +7 -9
- package/tests/adapter/MonitoringTest.res +30 -3
- package/tests/adapter/MonitoringTest.res.mjs +31 -12
- package/tests/adapter/RuntimeExtensionHookReachTest.res +0 -1
- package/tests/adapter/RuntimeExtensionHookReachTest.res.mjs +5 -7
- package/tests/admin/Platform_Admin_StructureTest.res +254 -0
- package/tests/admin/Platform_Admin_StructureTest.res.mjs +219 -0
- package/tests/aggregate/AggregateCacheTest.res +0 -1
- package/tests/aggregate/AggregateCacheTest.res.mjs +13 -15
- package/tests/aggregate/AggregateConflictTest.res +0 -1
- package/tests/aggregate/AggregateConflictTest.res.mjs +7 -9
- package/tests/aggregate/AggregateFixtures.res +0 -1
- package/tests/aggregate/AggregateFixtures.res.mjs +19 -21
- package/tests/aggregate/AggregateSnapshotTest.res +1 -2
- package/tests/aggregate/AggregateSnapshotTest.res.mjs +15 -16
- package/tests/api/ApiNoApiTest.res.mjs +17 -9
- package/tests/api/GraphQL_FragmentGeneratorTest.res +62 -1
- package/tests/api/GraphQL_FragmentGeneratorTest.res.mjs +102 -58
- package/tests/api/PsInternalFieldsReadModel.res +21 -0
- package/tests/api/PsInternalFieldsReadModel.res.mjs +74 -0
- package/tests/api/StorageRefFieldsTest.res.mjs +13 -13
- package/tests/api/SuryToJsonSchemaTest.res +43 -0
- package/tests/api/SuryToJsonSchemaTest.res.mjs +352 -849
- package/tests/commandgenerator/CommandGeneratorFixtures.res +0 -1
- package/tests/commandgenerator/CommandGeneratorFixtures.res.mjs +19 -21
- package/tests/commandgenerator/OwnerStampingTest.res +0 -1
- package/tests/commandgenerator/OwnerStampingTest.res.mjs +9 -11
- package/tests/commandtopic/CommandTopicCallbackFixtures.res +0 -1
- package/tests/commandtopic/CommandTopicCallbackFixtures.res.mjs +7 -9
- package/tests/counter/CounterFixtures.res +0 -1
- package/tests/counter/CounterFixtures.res.mjs +1 -4
- package/tests/dcb/DcbDecodeTest.res.mjs +24 -24
- package/tests/dcb/DcbEventLogOperationsTest.res +2 -2
- package/tests/dcb/DcbEventLogOperationsTest.res.mjs +3 -3
- package/tests/dcb/DcbEventLogSchemaTest.res.mjs +7 -7
- package/tests/dcb/DcbFixtures.res +0 -1
- package/tests/dcb/DcbFixtures.res.mjs +87 -89
- package/tests/dcb/DcbTagTest.res.mjs +6 -6
- package/tests/dcb/DcbValidationTest.res.mjs +52 -52
- package/tests/eventlog/EventLogFixtures.res +0 -1
- package/tests/eventlog/EventLogFixtures.res.mjs +7 -9
- package/tests/eventmapper/EventMapperFixtures.res +0 -1
- package/tests/eventmapper/EventMapperFixtures.res.mjs +24 -26
- package/tests/eventtopic/EventTopicFixtures.res +0 -1
- package/tests/eventtopic/EventTopicFixtures.res.mjs +7 -9
- package/tests/extensionpoint/ExtensionPointFixtures.res +0 -1
- package/tests/extensionpoint/ExtensionPointFixtures.res.mjs +10 -12
- package/tests/extensionpoint/ExtensionPointOperationsTest.res +1 -2
- package/tests/extensionpoint/ExtensionPointOperationsTest.res.mjs +9 -10
- package/tests/logger/LogFormatTest.res +3 -2
- package/tests/logger/LogFormatTest.res.mjs +7 -9
- package/tests/message/MessageTest.res +2 -2
- package/tests/message/MessageTest.res.mjs +8 -7
- package/tests/message/MetaEnvelopeTest.res +5 -5
- package/tests/message/MetaEnvelopeTest.res.mjs +12 -11
- package/tests/plugin/ManifestVisibilityTest.res.mjs +7 -7
- package/tests/plugin/PluginDefinitionScalars.res +5 -3
- package/tests/plugin/PluginDefinitionScalars.res.mjs +2 -2
- package/tests/plugin/PluginLifecycleCorpusTest.res +4 -3
- package/tests/plugin/PluginLifecycleCorpusTest.res.mjs +3 -6
- package/tests/plugin/PluginSpecExperiment.res +0 -1
- package/tests/plugin/PluginSpecExperiment.res.mjs +12 -14
- package/tests/plugin/PluginStructureTest.res +188 -1
- package/tests/plugin/PluginStructureTest.res.mjs +293 -102
- package/tests/plugin/Plugin_EventQuerySchemaTest.res.mjs +3 -3
- package/tests/plugin/SchemaWalkerTest.res +0 -1
- package/tests/plugin/SchemaWalkerTest.res.mjs +17 -19
- package/tests/plugin/StateChangeSlice/PsAttachInvoice.res.mjs +5 -5
- package/tests/plugin/StateChangeSlice/PsChangePhoto.res.mjs +8 -8
- package/tests/plugin/StateChangeSlice/PsDispatchShipment.res.mjs +5 -5
- package/tests/plugin/StateChangeSlice/PsGatedCommands.res.mjs +9 -9
- package/tests/plugin/StateChangeSlice/PsPlaceOrder.res.mjs +5 -5
- package/tests/plugin/StateChangeSlice/PsReserveStock.res.mjs +8 -8
- package/tests/plugin/StateChangeSlice/PsShipOrder.res.mjs +15 -15
- package/tests/plugin/StateChangeSlice/PsTypoStore.res +31 -0
- package/tests/plugin/StateChangeSlice/PsTypoStore.res.mjs +62 -0
- package/tests/plugin/StateChangeSlice/PsUploadAvatar.res.mjs +8 -8
- package/tests/plugin/StateChangeSlice/PsUploadImages.res +40 -0
- package/tests/plugin/StateChangeSlice/PsUploadImages.res.mjs +66 -0
- package/tests/plugin/StateViewSlice/PsAnnotatedView.res.mjs +13 -12
- package/tests/plugin/StateViewSlice/PsAvailableProductsView.res.mjs +8 -8
- package/tests/plugin/StateViewSlice/PsCategoriesView.res.mjs +6 -6
- package/tests/plugin/StateViewSlice/PsCustomersView.res.mjs +10 -10
- package/tests/plugin/StateViewSlice/PsGatedView.res.mjs +6 -6
- package/tests/plugin/StateViewSlice/PsOrdersView.res.mjs +9 -9
- package/tests/plugin/StateViewSlice/PsShipmentsView.res.mjs +11 -10
- package/tests/plugin/pluginDefinitionRequiredScalars.txt +15 -0
- package/tests/querydb/QueryDbFixtures.res +0 -1
- package/tests/querydb/QueryDbFixtures.res.mjs +5 -7
- package/tests/sideeffecthandler/SideEffectHandlerFixtures.res +0 -1
- package/tests/sideeffecthandler/SideEffectHandlerFixtures.res.mjs +4 -6
- package/tests/util/CommandPublisherTest.res +0 -1
- package/tests/util/CommandPublisherTest.res.mjs +4 -6
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Sury from "sury";
|
|
4
4
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
5
|
import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/components/ReadModel.res.mjs";
|
|
6
6
|
|
|
7
|
-
let consumedEventSchema =
|
|
8
|
-
|
|
7
|
+
let consumedEventSchema = Sury.union([
|
|
8
|
+
Sury.$schema(s => ({
|
|
9
9
|
TAG: "CatalogProductSynced",
|
|
10
10
|
productId: s.m(DcbTag$Reventless.string),
|
|
11
|
-
name: s.m(
|
|
11
|
+
name: s.m(Sury.string)
|
|
12
12
|
})),
|
|
13
|
-
|
|
13
|
+
Sury.$schema(s => ({
|
|
14
14
|
TAG: "CatalogProductPriceChanged",
|
|
15
15
|
productId: s.m(DcbTag$Reventless.string)
|
|
16
16
|
}))
|
|
17
17
|
]);
|
|
18
18
|
|
|
19
|
-
let stateSchema =
|
|
20
|
-
productId: s.m(
|
|
21
|
-
name: s.m(
|
|
19
|
+
let stateSchema = Sury.$schema(s => ({
|
|
20
|
+
productId: s.m(Sury.string),
|
|
21
|
+
name: s.m(Sury.string)
|
|
22
22
|
}));
|
|
23
23
|
|
|
24
24
|
function project(param) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Sury from "sury";
|
|
4
4
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
5
|
import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/components/ReadModel.res.mjs";
|
|
6
6
|
|
|
7
|
-
let consumedEventSchema =
|
|
7
|
+
let consumedEventSchema = Sury.$schema(s => ({
|
|
8
8
|
TAG: "CategoryAdded",
|
|
9
9
|
categoryId: s.m(DcbTag$Reventless.string),
|
|
10
|
-
name: s.m(
|
|
10
|
+
name: s.m(Sury.string)
|
|
11
11
|
}));
|
|
12
12
|
|
|
13
|
-
let stateSchema =
|
|
14
|
-
categoryId: s.m(
|
|
15
|
-
name: s.m(
|
|
13
|
+
let stateSchema = Sury.$schema(s => ({
|
|
14
|
+
categoryId: s.m(Sury.string),
|
|
15
|
+
name: s.m(Sury.string)
|
|
16
16
|
}));
|
|
17
17
|
|
|
18
18
|
function project(param) {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Sury from "sury";
|
|
4
4
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
5
|
import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/components/ReadModel.res.mjs";
|
|
6
6
|
import * as DisplayName$Reventless from "@reventlessdev/reventless-spec/src/components/DisplayName.res.mjs";
|
|
7
7
|
|
|
8
|
-
let consumedEventSchema =
|
|
8
|
+
let consumedEventSchema = Sury.$schema(s => ({
|
|
9
9
|
TAG: "CustomerAdded",
|
|
10
10
|
customerId: s.m(DcbTag$Reventless.string),
|
|
11
|
-
firstName: s.m(
|
|
12
|
-
lastName: s.m(
|
|
11
|
+
firstName: s.m(Sury.string),
|
|
12
|
+
lastName: s.m(Sury.string)
|
|
13
13
|
}));
|
|
14
14
|
|
|
15
|
-
let stateSchema =
|
|
16
|
-
customerId: s.m(
|
|
17
|
-
firstName: s.m(
|
|
18
|
-
lastName: s.m(
|
|
19
|
-
displayName: s.m(
|
|
15
|
+
let stateSchema = Sury.$schema(s => ({
|
|
16
|
+
customerId: s.m(Sury.string),
|
|
17
|
+
firstName: s.m(Sury.string),
|
|
18
|
+
lastName: s.m(Sury.string),
|
|
19
|
+
displayName: s.m(Sury.$option(Sury.string))
|
|
20
20
|
}));
|
|
21
21
|
|
|
22
|
-
let stateSchema$1 =
|
|
22
|
+
let stateSchema$1 = Sury.$Metadata_set(stateSchema, DisplayName$Reventless.displayNameId, {
|
|
23
23
|
fields: [
|
|
24
24
|
"firstName",
|
|
25
25
|
"lastName"
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Sury from "sury";
|
|
4
4
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
5
|
import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/components/ReadModel.res.mjs";
|
|
6
6
|
|
|
7
|
-
let consumedEventSchema =
|
|
7
|
+
let consumedEventSchema = Sury.$schema(s => ({
|
|
8
8
|
TAG: "OrderPlaced",
|
|
9
9
|
orderId: s.m(DcbTag$Reventless.string),
|
|
10
|
-
customerName: s.m(
|
|
10
|
+
customerName: s.m(Sury.string)
|
|
11
11
|
}));
|
|
12
12
|
|
|
13
|
-
let stateSchema =
|
|
14
|
-
orderId: s.m(
|
|
15
|
-
customerName: s.m(
|
|
13
|
+
let stateSchema = Sury.$schema(s => ({
|
|
14
|
+
orderId: s.m(Sury.string),
|
|
15
|
+
customerName: s.m(Sury.string)
|
|
16
16
|
}));
|
|
17
17
|
|
|
18
18
|
function project(param) {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Sury from "sury";
|
|
4
4
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
5
|
import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/components/ReadModel.res.mjs";
|
|
6
6
|
|
|
7
|
-
let consumedEventSchema =
|
|
8
|
-
|
|
7
|
+
let consumedEventSchema = Sury.union([
|
|
8
|
+
Sury.$schema(s => ({
|
|
9
9
|
TAG: "OrderPlaced",
|
|
10
10
|
orderId: s.m(DcbTag$Reventless.string),
|
|
11
|
-
customerName: s.m(
|
|
11
|
+
customerName: s.m(Sury.string)
|
|
12
12
|
})),
|
|
13
|
-
|
|
13
|
+
Sury.$schema(s => ({
|
|
14
14
|
TAG: "OrderShipped",
|
|
15
15
|
orderId: s.m(DcbTag$Reventless.string)
|
|
16
16
|
})),
|
|
17
|
-
|
|
17
|
+
Sury.$schema(s => ({
|
|
18
18
|
TAG: "OrderCancelled",
|
|
19
19
|
orderId: s.m(DcbTag$Reventless.string)
|
|
20
20
|
}))
|
|
21
21
|
]);
|
|
22
22
|
|
|
23
|
-
let stateSchema =
|
|
24
|
-
orderId: s.m(
|
|
25
|
-
customerName: s.m(
|
|
23
|
+
let stateSchema = Sury.$schema(s => ({
|
|
24
|
+
orderId: s.m(Sury.string),
|
|
25
|
+
customerName: s.m(Sury.string)
|
|
26
26
|
}));
|
|
27
27
|
|
|
28
28
|
function project(param) {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Sury from "sury";
|
|
4
4
|
import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
|
|
5
5
|
import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/components/ReadModel.res.mjs";
|
|
6
6
|
import * as StateAnnotations$Reventless from "@reventlessdev/reventless-spec/src/components/StateAnnotations.res.mjs";
|
|
7
7
|
|
|
8
|
-
let consumedEventSchema =
|
|
9
|
-
|
|
8
|
+
let consumedEventSchema = Sury.union([
|
|
9
|
+
Sury.$schema(s => ({
|
|
10
10
|
TAG: "ShipmentBooked",
|
|
11
11
|
shipmentId: s.m(DcbTag$Reventless.string)
|
|
12
12
|
})),
|
|
13
|
-
|
|
13
|
+
Sury.$schema(s => ({
|
|
14
14
|
TAG: "ShipmentDispatched",
|
|
15
15
|
shipmentId: s.m(DcbTag$Reventless.string)
|
|
16
16
|
}))
|
|
17
17
|
]);
|
|
18
18
|
|
|
19
|
-
let shipmentStatusSchema =
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
let shipmentStatusSchema = Sury.union([
|
|
20
|
+
Sury.literal("Booked"),
|
|
21
|
+
Sury.literal("Dispatched")
|
|
22
22
|
]);
|
|
23
23
|
|
|
24
|
-
let stateSchema =
|
|
25
|
-
shipmentId: s.m(
|
|
24
|
+
let stateSchema = Sury.$schema(s => ({
|
|
25
|
+
shipmentId: s.m(Sury.string),
|
|
26
26
|
shipmentStatus: s.m(shipmentStatusSchema)
|
|
27
27
|
}));
|
|
28
28
|
|
|
@@ -51,7 +51,7 @@ function project(param) {
|
|
|
51
51
|
|
|
52
52
|
let config = ReadModel$Reventless.config(undefined, undefined, undefined);
|
|
53
53
|
|
|
54
|
-
let stateSchema$1 =
|
|
54
|
+
let stateSchema$1 = Sury.$Metadata_set(stateSchema, StateAnnotations$Reventless.stateAnnotationsId, {
|
|
55
55
|
ids: [],
|
|
56
56
|
compositeIds: [],
|
|
57
57
|
subIds: [],
|
|
@@ -59,6 +59,7 @@ let stateSchema$1 = S.Metadata.set(stateSchema, StateAnnotations$Reventless.stat
|
|
|
59
59
|
indexes: [],
|
|
60
60
|
hidden: [],
|
|
61
61
|
summary: [],
|
|
62
|
+
internal: [],
|
|
62
63
|
drillTargets: [],
|
|
63
64
|
drillTargetKeys: [],
|
|
64
65
|
collapsed: [],
|
|
@@ -20,6 +20,17 @@
|
|
|
20
20
|
# how requiredStoreDeclarations[].annotation, a required string inside a nullable array,
|
|
21
21
|
# froze a plugin's registration for two days; it is absent from this list because it has
|
|
22
22
|
# since been made `js_nullable`.
|
|
23
|
+
#
|
|
24
|
+
# The `.$offload.*` lines are the reference arm of an `@offload` field. They are not new
|
|
25
|
+
# fields — they have been persisted since `@offload` existed. They appear here because the
|
|
26
|
+
# arm stopped being a hand-written `S.transform` (opaque to any schema walker, so this
|
|
27
|
+
# guard could not see it) and became a declared `S.object`. Both arms of every offloadable
|
|
28
|
+
# field are now covered; before, only the inline one was. Adding a fifth key to
|
|
29
|
+
# `Offload.offloadedRef` would now show up here, and should.
|
|
30
|
+
.apiSchemaFragment.$offload.bytes: number
|
|
31
|
+
.apiSchemaFragment.$offload.hash: string
|
|
32
|
+
.apiSchemaFragment.$offload.key: string
|
|
33
|
+
.apiSchemaFragment.$offload.store: string
|
|
23
34
|
.apiSchemaFragment.encoded: string
|
|
24
35
|
.apiSchemaFragment.protocol: string
|
|
25
36
|
.dcbEventLog.eventTopicArn: string
|
|
@@ -36,6 +47,10 @@
|
|
|
36
47
|
.extensions[].name: string
|
|
37
48
|
.id: string
|
|
38
49
|
.name: string
|
|
50
|
+
.structure.$offload.bytes: number
|
|
51
|
+
.structure.$offload.hash: string
|
|
52
|
+
.structure.$offload.key: string
|
|
53
|
+
.structure.$offload.store: string
|
|
39
54
|
.structure.aggregates[].commands[].allowedStates[]: string
|
|
40
55
|
.structure.aggregates[].commands[].mutationField: string
|
|
41
56
|
.structure.aggregates[].commands[].name: string
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Sury from "sury";
|
|
4
4
|
import * as Stdlib_Dict from "@rescript/runtime/lib/es6/Stdlib_Dict.js";
|
|
5
5
|
import * as Stdlib_Option from "@rescript/runtime/lib/es6/Stdlib_Option.js";
|
|
6
6
|
import * as Stream from "effect/Stream";
|
|
7
7
|
import * as ReadModel$Reventless from "@reventlessdev/reventless-spec/src/components/ReadModel.res.mjs";
|
|
8
8
|
|
|
9
|
-
S.enableJson();
|
|
10
|
-
|
|
11
9
|
let moduleUrl = import.meta.url;
|
|
12
10
|
|
|
13
|
-
let stateSchema =
|
|
14
|
-
name: s.m(
|
|
15
|
-
count: s.m(
|
|
11
|
+
let stateSchema = Sury.$schema(s => ({
|
|
12
|
+
name: s.m(Sury.string),
|
|
13
|
+
count: s.m(Sury.int)
|
|
16
14
|
}));
|
|
17
15
|
|
|
18
16
|
let config = ReadModel$Reventless.config(undefined, undefined, undefined);
|
|
@@ -132,4 +130,4 @@ export {
|
|
|
132
130
|
mockJsonOps,
|
|
133
131
|
reset,
|
|
134
132
|
}
|
|
135
|
-
/*
|
|
133
|
+
/* moduleUrl Not a pure module */
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Sury from "sury";
|
|
4
4
|
import * as Id$Reventless from "@reventlessdev/reventless-spec/src/types/Id.res.mjs";
|
|
5
5
|
import * as Stdlib_JsError from "@rescript/runtime/lib/es6/Stdlib_JsError.js";
|
|
6
6
|
import * as Message$ReventlessCore from "../../src/Message.res.mjs";
|
|
7
7
|
import * as SideEffectHandler_Callback$ReventlessCore from "../../src/components/SideEffectHandler/SideEffectHandler_Callback.res.mjs";
|
|
8
8
|
|
|
9
|
-
S.enableJson();
|
|
10
|
-
|
|
11
9
|
let name = "TestSideEffectSource";
|
|
12
10
|
|
|
13
|
-
let eventSchema =
|
|
11
|
+
let eventSchema = Sury.$schema(s => ({
|
|
14
12
|
TAG: "SomethingHappened",
|
|
15
|
-
value: s.m(
|
|
13
|
+
value: s.m(Sury.string)
|
|
16
14
|
}));
|
|
17
15
|
|
|
18
16
|
let TestSource = {
|
|
@@ -136,4 +134,4 @@ export {
|
|
|
136
134
|
makeEventJson,
|
|
137
135
|
reset,
|
|
138
136
|
}
|
|
139
|
-
/*
|
|
137
|
+
/* eventSchema Not a pure module */
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Sury from "sury";
|
|
4
4
|
import * as CommandPublisher$ReventlessCore from "../../src/util/CommandPublisher.res.mjs";
|
|
5
5
|
|
|
6
|
-
S.enableJson();
|
|
7
|
-
|
|
8
6
|
let published = {
|
|
9
7
|
contents: []
|
|
10
8
|
};
|
|
11
9
|
|
|
12
|
-
let commandSchema =
|
|
13
|
-
value: s.m(
|
|
10
|
+
let commandSchema = Sury.$schema(s => ({
|
|
11
|
+
value: s.m(Sury.int)
|
|
14
12
|
}));
|
|
15
13
|
|
|
16
14
|
function commandAuthorization(param) {
|
|
@@ -75,4 +73,4 @@ export {
|
|
|
75
73
|
TestConfig,
|
|
76
74
|
Pub,
|
|
77
75
|
}
|
|
78
|
-
/*
|
|
76
|
+
/* commandSchema Not a pure module */
|