@reventlessdev/reventless-core 3.0.0-alpha.239 → 3.0.0-alpha.240

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/package.json +9 -9
  3. package/src/Message.res +11 -11
  4. package/src/Message.res.mjs +15 -14
  5. package/src/Projection.res +2 -2
  6. package/src/Projection.res.mjs +5 -4
  7. package/src/adapter/Monitoring/Monitoring.res +24 -2
  8. package/src/adapter/Monitoring/Monitoring.res.mjs +3 -3
  9. package/src/admin/Platform_AdminApi.res.mjs +3 -3
  10. package/src/admin/Platform_Admin_Structure.res +33 -113
  11. package/src/admin/Platform_Admin_Structure.res.mjs +8 -139
  12. package/src/admin/UiFragmentRegistry/StateChangeSlice/UiFragmentRegistry.res.mjs +12 -12
  13. package/src/admin/UiFragmentRegistry/StateViewSlice/UiFragments.res.mjs +14 -14
  14. package/src/components/Aggregate/Aggregate_Callback.res +2 -2
  15. package/src/components/Aggregate/Aggregate_Callback.res.mjs +4 -4
  16. package/src/components/Api/ApiAllowedStatesHelpers.res.mjs +3 -3
  17. package/src/components/Api/ApiNoApiHelpers.res.mjs +5 -5
  18. package/src/components/Api/ApiTargetStateHelpers.res.mjs +3 -3
  19. package/src/components/Api/GraphQL_FragmentGenerator.res +18 -12
  20. package/src/components/Api/GraphQL_FragmentGenerator.res.mjs +7 -13
  21. package/src/components/Api/GraphQL_SchemaInspector.res +1 -1
  22. package/src/components/Api/GraphQL_SchemaInspector.res.mjs +1 -1
  23. package/src/components/Api/MCP_SchemaGenerator.res +1 -1
  24. package/src/components/Api/MCP_SchemaGenerator.res.mjs +1 -1
  25. package/src/components/Api/SchemaType.res +6 -10
  26. package/src/components/Api/SchemaType.res.mjs +4 -4
  27. package/src/components/Api/StorageRefFields.res +1 -1
  28. package/src/components/Api/StorageRefFields.res.mjs +1 -1
  29. package/src/components/Api/SuryToJsonSchema.res +11 -0
  30. package/src/components/Api/SuryToJsonSchema.res.mjs +2 -1
  31. package/src/components/AutomationSlice/AutomationSlice_Callback.res +3 -4
  32. package/src/components/AutomationSlice/AutomationSlice_Callback.res.mjs +22 -23
  33. package/src/components/CommandTopic/CommandTopic_Callback.res +1 -2
  34. package/src/components/CommandTopic/CommandTopic_Callback.res.mjs +3 -4
  35. package/src/components/CommandTopic/CommandTopic_Helpers.res +1 -1
  36. package/src/components/CommandTopic/CommandTopic_Helpers.res.mjs +3 -3
  37. package/src/components/Counter/Counter.res.mjs +2 -2
  38. package/src/components/Counter/Counter_Callback.res.mjs +4 -4
  39. package/src/components/Counter/Counter_Operations.res.mjs +4 -4
  40. package/src/components/Dcb/Dcb_Builder.res +1 -1
  41. package/src/components/Dcb/Dcb_Builder.res.mjs +8 -6
  42. package/src/components/DcbEventLog/DcbEventLog_Builder.res.mjs +4 -3
  43. package/src/components/EventCollector/EventCollector_Builder.res +1 -1
  44. package/src/components/InboundTranslationSlice/InboundTranslationSlice_Callback.res +1 -2
  45. package/src/components/InboundTranslationSlice/InboundTranslationSlice_Callback.res.mjs +11 -12
  46. package/src/components/OutboundTranslationSlice/OutboundTranslationSlice_Callback.res +3 -4
  47. package/src/components/OutboundTranslationSlice/OutboundTranslationSlice_Callback.res.mjs +24 -25
  48. package/src/components/SideEffectHandler/SideEffectHandler_Callback.res +1 -1
  49. package/src/components/SideEffectHandler/SideEffectHandler_Callback.res.mjs +3 -3
  50. package/src/components/StateChangeSlice/StateChangeSlice_Callback.res +2 -2
  51. package/src/components/StateChangeSlice/StateChangeSlice_Callback.res.mjs +4 -4
  52. package/src/components/StateViewSlice/StateViewSlice_Builder.res +1 -1
  53. package/src/components/StateViewSlice/StateViewSlice_Builder.res.mjs +3 -3
  54. package/src/plugin/api/PluginBaseFragment.res +12 -29
  55. package/src/plugin/api/PluginBaseFragment.res.mjs +3 -22
  56. package/src/plugin/component/Capability_Inference.res +118 -1
  57. package/src/plugin/component/Capability_Inference.res.mjs +128 -1
  58. package/src/plugin/component/Plugin_Builder.res +2 -2
  59. package/src/plugin/component/Plugin_Builder.res.mjs +2 -1
  60. package/src/plugin/component/Plugin_Helpers.res +11 -11
  61. package/src/plugin/component/Plugin_Helpers.res.mjs +11 -10
  62. package/src/plugin/component/Plugin_Structure.res +349 -274
  63. package/src/plugin/component/Plugin_Structure.res.mjs +212 -175
  64. package/src/plugin/component/Plugin_SubscriptionSchema.res +1 -1
  65. package/src/plugin/component/Plugin_SubscriptionSchema.res.mjs +1 -1
  66. package/src/plugin/component/SchemaWalker.res +11 -11
  67. package/src/plugin/component/SchemaWalker.res.mjs +8 -9
  68. package/src/plugin/connect/PluginExtensionPoint_Plugin.res.mjs +15 -15
  69. package/src/plugin/lifecycle/PluginBehavior.res.mjs +55 -55
  70. package/src/plugin/lifecycle/PluginSpec.res +22 -7
  71. package/src/plugin/lifecycle/PluginSpec.res.mjs +91 -36
  72. package/src/plugin/lifecycle/PluginsReadModelSpec.res +36 -9
  73. package/src/plugin/lifecycle/PluginsReadModelSpec.res.mjs +33 -22
  74. package/src/util/Interstack.res +3 -3
  75. package/src/util/LogFormat.res +1 -2
  76. package/src/util/LogFormat.res.mjs +2 -2
  77. package/tests/IdentityTest.res +6 -7
  78. package/tests/IdentityTest.res.mjs +7 -9
  79. package/tests/adapter/MonitoringTest.res +30 -3
  80. package/tests/adapter/MonitoringTest.res.mjs +31 -12
  81. package/tests/adapter/RuntimeExtensionHookReachTest.res +0 -1
  82. package/tests/adapter/RuntimeExtensionHookReachTest.res.mjs +5 -7
  83. package/tests/admin/Platform_Admin_StructureTest.res +254 -0
  84. package/tests/admin/Platform_Admin_StructureTest.res.mjs +219 -0
  85. package/tests/aggregate/AggregateCacheTest.res +0 -1
  86. package/tests/aggregate/AggregateCacheTest.res.mjs +13 -15
  87. package/tests/aggregate/AggregateConflictTest.res +0 -1
  88. package/tests/aggregate/AggregateConflictTest.res.mjs +7 -9
  89. package/tests/aggregate/AggregateFixtures.res +0 -1
  90. package/tests/aggregate/AggregateFixtures.res.mjs +19 -21
  91. package/tests/aggregate/AggregateSnapshotTest.res +1 -2
  92. package/tests/aggregate/AggregateSnapshotTest.res.mjs +15 -16
  93. package/tests/api/ApiNoApiTest.res.mjs +17 -9
  94. package/tests/api/GraphQL_FragmentGeneratorTest.res +62 -1
  95. package/tests/api/GraphQL_FragmentGeneratorTest.res.mjs +102 -58
  96. package/tests/api/PsInternalFieldsReadModel.res +21 -0
  97. package/tests/api/PsInternalFieldsReadModel.res.mjs +74 -0
  98. package/tests/api/StorageRefFieldsTest.res.mjs +13 -13
  99. package/tests/api/SuryToJsonSchemaTest.res +43 -0
  100. package/tests/api/SuryToJsonSchemaTest.res.mjs +352 -849
  101. package/tests/commandgenerator/CommandGeneratorFixtures.res +0 -1
  102. package/tests/commandgenerator/CommandGeneratorFixtures.res.mjs +19 -21
  103. package/tests/commandgenerator/OwnerStampingTest.res +0 -1
  104. package/tests/commandgenerator/OwnerStampingTest.res.mjs +9 -11
  105. package/tests/commandtopic/CommandTopicCallbackFixtures.res +0 -1
  106. package/tests/commandtopic/CommandTopicCallbackFixtures.res.mjs +7 -9
  107. package/tests/counter/CounterFixtures.res +0 -1
  108. package/tests/counter/CounterFixtures.res.mjs +1 -4
  109. package/tests/dcb/DcbDecodeTest.res.mjs +24 -24
  110. package/tests/dcb/DcbEventLogOperationsTest.res +2 -2
  111. package/tests/dcb/DcbEventLogOperationsTest.res.mjs +3 -3
  112. package/tests/dcb/DcbEventLogSchemaTest.res.mjs +7 -7
  113. package/tests/dcb/DcbFixtures.res +0 -1
  114. package/tests/dcb/DcbFixtures.res.mjs +87 -89
  115. package/tests/dcb/DcbTagTest.res.mjs +6 -6
  116. package/tests/dcb/DcbValidationTest.res.mjs +52 -52
  117. package/tests/eventlog/EventLogFixtures.res +0 -1
  118. package/tests/eventlog/EventLogFixtures.res.mjs +7 -9
  119. package/tests/eventmapper/EventMapperFixtures.res +0 -1
  120. package/tests/eventmapper/EventMapperFixtures.res.mjs +24 -26
  121. package/tests/eventtopic/EventTopicFixtures.res +0 -1
  122. package/tests/eventtopic/EventTopicFixtures.res.mjs +7 -9
  123. package/tests/extensionpoint/ExtensionPointFixtures.res +0 -1
  124. package/tests/extensionpoint/ExtensionPointFixtures.res.mjs +10 -12
  125. package/tests/extensionpoint/ExtensionPointOperationsTest.res +1 -2
  126. package/tests/extensionpoint/ExtensionPointOperationsTest.res.mjs +9 -10
  127. package/tests/logger/LogFormatTest.res +3 -2
  128. package/tests/logger/LogFormatTest.res.mjs +7 -9
  129. package/tests/message/MessageTest.res +2 -2
  130. package/tests/message/MessageTest.res.mjs +8 -7
  131. package/tests/message/MetaEnvelopeTest.res +5 -5
  132. package/tests/message/MetaEnvelopeTest.res.mjs +12 -11
  133. package/tests/plugin/ManifestVisibilityTest.res.mjs +7 -7
  134. package/tests/plugin/PluginDefinitionScalars.res +5 -3
  135. package/tests/plugin/PluginDefinitionScalars.res.mjs +2 -2
  136. package/tests/plugin/PluginLifecycleCorpusTest.res +4 -3
  137. package/tests/plugin/PluginLifecycleCorpusTest.res.mjs +3 -6
  138. package/tests/plugin/PluginSpecExperiment.res +0 -1
  139. package/tests/plugin/PluginSpecExperiment.res.mjs +12 -14
  140. package/tests/plugin/PluginStructureTest.res +188 -1
  141. package/tests/plugin/PluginStructureTest.res.mjs +293 -102
  142. package/tests/plugin/Plugin_EventQuerySchemaTest.res.mjs +3 -3
  143. package/tests/plugin/SchemaWalkerTest.res +0 -1
  144. package/tests/plugin/SchemaWalkerTest.res.mjs +17 -19
  145. package/tests/plugin/StateChangeSlice/PsAttachInvoice.res.mjs +5 -5
  146. package/tests/plugin/StateChangeSlice/PsChangePhoto.res.mjs +8 -8
  147. package/tests/plugin/StateChangeSlice/PsDispatchShipment.res.mjs +5 -5
  148. package/tests/plugin/StateChangeSlice/PsGatedCommands.res.mjs +9 -9
  149. package/tests/plugin/StateChangeSlice/PsPlaceOrder.res.mjs +5 -5
  150. package/tests/plugin/StateChangeSlice/PsReserveStock.res.mjs +8 -8
  151. package/tests/plugin/StateChangeSlice/PsShipOrder.res.mjs +15 -15
  152. package/tests/plugin/StateChangeSlice/PsTypoStore.res +31 -0
  153. package/tests/plugin/StateChangeSlice/PsTypoStore.res.mjs +62 -0
  154. package/tests/plugin/StateChangeSlice/PsUploadAvatar.res.mjs +8 -8
  155. package/tests/plugin/StateChangeSlice/PsUploadImages.res +40 -0
  156. package/tests/plugin/StateChangeSlice/PsUploadImages.res.mjs +66 -0
  157. package/tests/plugin/StateViewSlice/PsAnnotatedView.res.mjs +13 -12
  158. package/tests/plugin/StateViewSlice/PsAvailableProductsView.res.mjs +8 -8
  159. package/tests/plugin/StateViewSlice/PsCategoriesView.res.mjs +6 -6
  160. package/tests/plugin/StateViewSlice/PsCustomersView.res.mjs +10 -10
  161. package/tests/plugin/StateViewSlice/PsGatedView.res.mjs +6 -6
  162. package/tests/plugin/StateViewSlice/PsOrdersView.res.mjs +9 -9
  163. package/tests/plugin/StateViewSlice/PsShipmentsView.res.mjs +11 -10
  164. package/tests/plugin/pluginDefinitionRequiredScalars.txt +15 -0
  165. package/tests/querydb/QueryDbFixtures.res +0 -1
  166. package/tests/querydb/QueryDbFixtures.res.mjs +5 -7
  167. package/tests/sideeffecthandler/SideEffectHandlerFixtures.res +0 -1
  168. package/tests/sideeffecthandler/SideEffectHandlerFixtures.res.mjs +4 -6
  169. package/tests/util/CommandPublisherTest.res +0 -1
  170. 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 S from "sury/src/S.res.mjs";
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 = S.union([
8
- S.schema(s => ({
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(S.string)
11
+ name: s.m(Sury.string)
12
12
  })),
13
- S.schema(s => ({
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 = S.schema(s => ({
20
- productId: s.m(S.string),
21
- name: s.m(S.string)
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 S from "sury/src/S.res.mjs";
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 = S.schema(s => ({
7
+ let consumedEventSchema = Sury.$schema(s => ({
8
8
  TAG: "CategoryAdded",
9
9
  categoryId: s.m(DcbTag$Reventless.string),
10
- name: s.m(S.string)
10
+ name: s.m(Sury.string)
11
11
  }));
12
12
 
13
- let stateSchema = S.schema(s => ({
14
- categoryId: s.m(S.string),
15
- name: s.m(S.string)
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 S from "sury/src/S.res.mjs";
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 = S.schema(s => ({
8
+ let consumedEventSchema = Sury.$schema(s => ({
9
9
  TAG: "CustomerAdded",
10
10
  customerId: s.m(DcbTag$Reventless.string),
11
- firstName: s.m(S.string),
12
- lastName: s.m(S.string)
11
+ firstName: s.m(Sury.string),
12
+ lastName: s.m(Sury.string)
13
13
  }));
14
14
 
15
- let stateSchema = S.schema(s => ({
16
- customerId: s.m(S.string),
17
- firstName: s.m(S.string),
18
- lastName: s.m(S.string),
19
- displayName: s.m(S.option(S.string))
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 = S.Metadata.set(stateSchema, DisplayName$Reventless.displayNameId, {
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 S from "sury/src/S.res.mjs";
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 = S.schema(s => ({
7
+ let consumedEventSchema = Sury.$schema(s => ({
8
8
  TAG: "OrderPlaced",
9
9
  orderId: s.m(DcbTag$Reventless.string),
10
- customerName: s.m(S.string)
10
+ customerName: s.m(Sury.string)
11
11
  }));
12
12
 
13
- let stateSchema = S.schema(s => ({
14
- orderId: s.m(S.string),
15
- customerName: s.m(S.string)
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 S from "sury/src/S.res.mjs";
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 = S.union([
8
- S.schema(s => ({
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(S.string)
11
+ customerName: s.m(Sury.string)
12
12
  })),
13
- S.schema(s => ({
13
+ Sury.$schema(s => ({
14
14
  TAG: "OrderShipped",
15
15
  orderId: s.m(DcbTag$Reventless.string)
16
16
  })),
17
- S.schema(s => ({
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 = S.schema(s => ({
24
- orderId: s.m(S.string),
25
- customerName: s.m(S.string)
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 S from "sury/src/S.res.mjs";
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 = S.union([
9
- S.schema(s => ({
8
+ let consumedEventSchema = Sury.union([
9
+ Sury.$schema(s => ({
10
10
  TAG: "ShipmentBooked",
11
11
  shipmentId: s.m(DcbTag$Reventless.string)
12
12
  })),
13
- S.schema(s => ({
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 = S.union([
20
- S.literal("Booked"),
21
- S.literal("Dispatched")
19
+ let shipmentStatusSchema = Sury.union([
20
+ Sury.literal("Booked"),
21
+ Sury.literal("Dispatched")
22
22
  ]);
23
23
 
24
- let stateSchema = S.schema(s => ({
25
- shipmentId: s.m(S.string),
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 = S.Metadata.set(stateSchema, StateAnnotations$Reventless.stateAnnotationsId, {
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,4 +1,3 @@
1
- S.enableJson()
2
1
 
3
2
  // ─────────────────────────────────────────────────────────────
4
3
  // Test state spec
@@ -1,18 +1,16 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as S from "sury/src/S.res.mjs";
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 = S.schema(s => ({
14
- name: s.m(S.string),
15
- count: s.m(S.int)
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
- /* Not a pure module */
133
+ /* moduleUrl Not a pure module */
@@ -1,4 +1,3 @@
1
- S.enableJson()
2
1
 
3
2
  // ─────────────────────────────────────────────────────────────
4
3
  // Event source spec for SideEffect
@@ -1,18 +1,16 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as S from "sury/src/S.res.mjs";
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 = S.schema(s => ({
11
+ let eventSchema = Sury.$schema(s => ({
14
12
  TAG: "SomethingHappened",
15
- value: s.m(S.string)
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
- /* Not a pure module */
137
+ /* eventSchema Not a pure module */
@@ -11,7 +11,6 @@
11
11
 
12
12
  open JestGlobals
13
13
 
14
- S.enableJson()
15
14
 
16
15
  let published: ref<array<Reventless.Message.commandJson>> = ref([])
17
16
 
@@ -1,16 +1,14 @@
1
1
  // Generated by ReScript, PLEASE EDIT WITH CARE
2
2
 
3
- import * as S from "sury/src/S.res.mjs";
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 = S.schema(s => ({
13
- value: s.m(S.int)
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
- /* Not a pure module */
76
+ /* commandSchema Not a pure module */