@reventlessdev/reventless-core 3.0.0-alpha.251 → 3.0.0-alpha.252

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 (66) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/package.json +7 -7
  3. package/src/admin/Platform_Admin_Structure.res +4 -1
  4. package/src/admin/Platform_Admin_Structure.res.mjs +4 -2
  5. package/src/admin/Platform_BakedManifest.res.mjs +3 -1
  6. package/src/admin/Platform_PluginStructuresApi.res +43 -7
  7. package/src/admin/Platform_PluginStructuresApi.res.mjs +47 -1
  8. package/src/admin/UiFragmentRegistry/StateChangeSlice/UiFragmentRegistry.res.mjs +8 -0
  9. package/src/components/Api/ApiNoApiHelpers.res +37 -3
  10. package/src/components/Api/ApiNoApiHelpers.res.mjs +29 -2
  11. package/src/components/AutomationSlice/AutomationSlice_Callback.res +4 -4
  12. package/src/components/AutomationSlice/AutomationSlice_Callback.res.mjs +3 -3
  13. package/src/plugin/api/PluginBaseFragment.res +3 -3
  14. package/src/plugin/component/Plugin_Structure.res +175 -22
  15. package/src/plugin/component/Plugin_Structure.res.mjs +89 -17
  16. package/src/plugin/connect/PluginConnectExtension_Mapping.res.mjs +3 -1
  17. package/src/plugin/connect/PluginExtensionPoint_Plugin.res.mjs +3 -1
  18. package/src/plugin/connect/PluginExtensionPoint_UiFragment.res.mjs +3 -1
  19. package/src/plugin/lifecycle/PluginBehavior.res +11 -11
  20. package/src/plugin/lifecycle/PluginBehavior.res.mjs +11 -11
  21. package/src/plugin/lifecycle/PluginSpec.res +11 -3
  22. package/src/plugin/lifecycle/PluginSpec.res.mjs +11 -3
  23. package/tests/admin/AdminApiSchemaDriftTest.res +27 -1
  24. package/tests/admin/AdminApiSchemaDriftTest.res.mjs +22 -2
  25. package/tests/admin/Platform_Admin_StructureTest.res +8 -3
  26. package/tests/admin/Platform_Admin_StructureTest.res.mjs +8 -2
  27. package/tests/admin/Platform_BakedManifestTest.res +2 -0
  28. package/tests/admin/Platform_BakedManifestTest.res.mjs +3 -1
  29. package/tests/admin/Platform_ComponentDefinitionsApiTest.res +4 -0
  30. package/tests/admin/Platform_ComponentDefinitionsApiTest.res.mjs +21 -7
  31. package/tests/admin/Platform_PluginStructuresApiTest.res +16 -0
  32. package/tests/admin/Platform_PluginStructuresApiTest.res.mjs +17 -3
  33. package/tests/aggregate/AggregateCacheTest.res.mjs +15 -3
  34. package/tests/aggregate/AggregateConflictTest.res.mjs +15 -3
  35. package/tests/aggregate/AggregateFixtures.res.mjs +15 -3
  36. package/tests/aggregate/AggregateSnapshotTest.res.mjs +21 -5
  37. package/tests/api/ApiNoApiTest.res +46 -0
  38. package/tests/api/ApiNoApiTest.res.mjs +49 -1
  39. package/tests/api/GraphQL_FragmentGeneratorTest.res.mjs +27 -3
  40. package/tests/commandgenerator/CommandGeneratorFixtures.res.mjs +12 -2
  41. package/tests/commandtopic/CommandOutcomeHookTest.res.mjs +2 -0
  42. package/tests/commandtopic/CommandTopicCallbackFixtures.res.mjs +12 -2
  43. package/tests/dcb/DcbFixtures.res.mjs +8 -0
  44. package/tests/dcb/DcbStateChangeSliceTest.res.mjs +18 -0
  45. package/tests/eventmapper/EventMapperFixtures.res.mjs +15 -3
  46. package/tests/extensionpoint/ExtensionPointFixtures.res.mjs +9 -1
  47. package/tests/extensionpoint/ExtensionPointOperationsTest.res.mjs +9 -1
  48. package/tests/message/MessageTest.res +2 -0
  49. package/tests/message/MessageTest.res.mjs +3 -1
  50. package/tests/plugin/PluginStructureAccessTest.res.mjs +2 -0
  51. package/tests/plugin/PluginStructureTest.res +185 -1
  52. package/tests/plugin/PluginStructureTest.res.mjs +246 -3
  53. package/tests/plugin/StateChangeSlice/PsAttachInvoice.res.mjs +8 -0
  54. package/tests/plugin/StateChangeSlice/PsChangePhoto.res.mjs +8 -0
  55. package/tests/plugin/StateChangeSlice/PsDispatchShipment.res.mjs +8 -0
  56. package/tests/plugin/StateChangeSlice/PsGatedCommands.res.mjs +8 -0
  57. package/tests/plugin/StateChangeSlice/PsPlaceOrder.res.mjs +8 -0
  58. package/tests/plugin/StateChangeSlice/PsReserveStock.res.mjs +8 -0
  59. package/tests/plugin/StateChangeSlice/PsShipOrder.res.mjs +8 -0
  60. package/tests/plugin/StateChangeSlice/PsTransitionSwitch.res +59 -0
  61. package/tests/plugin/StateChangeSlice/PsTransitionSwitch.res.mjs +115 -0
  62. package/tests/plugin/StateChangeSlice/PsTypoStore.res.mjs +8 -0
  63. package/tests/plugin/StateChangeSlice/PsUploadAvatar.res.mjs +8 -0
  64. package/tests/plugin/StateChangeSlice/PsUploadImages.res.mjs +8 -0
  65. package/tests/plugin/pluginDefinitionRequiredScalars.txt +18 -0
  66. package/tests/util/CommandPublisherTest.res.mjs +9 -1
@@ -35,6 +35,12 @@ function commandAuthorization(param) {
35
35
  return "AllowAuthenticated";
36
36
  }
37
37
 
38
+ function commandTransition(param) {
39
+ return "Unrestricted";
40
+ }
41
+
42
+ let traits = [];
43
+
38
44
  let name = "TypoStore";
39
45
 
40
46
  let Id;
@@ -58,5 +64,7 @@ export {
58
64
  moduleUrl,
59
65
  commandAuthorization,
60
66
  readConsistency,
67
+ commandTransition,
68
+ traits,
61
69
  }
62
70
  /* consumedEventSchema Not a pure module */
@@ -37,6 +37,12 @@ function commandAuthorization(param) {
37
37
  return "AllowAuthenticated";
38
38
  }
39
39
 
40
+ function commandTransition(param) {
41
+ return "Unrestricted";
42
+ }
43
+
44
+ let traits = [];
45
+
40
46
  let name = "UploadAvatar";
41
47
 
42
48
  let Id;
@@ -60,5 +66,7 @@ export {
60
66
  moduleUrl,
61
67
  commandAuthorization,
62
68
  readConsistency,
69
+ commandTransition,
70
+ traits,
63
71
  }
64
72
  /* consumedEventSchema Not a pure module */
@@ -39,6 +39,12 @@ function commandAuthorization(param) {
39
39
  return "AllowAuthenticated";
40
40
  }
41
41
 
42
+ function commandTransition(param) {
43
+ return "Unrestricted";
44
+ }
45
+
46
+ let traits = [];
47
+
42
48
  let name = "UploadImages";
43
49
 
44
50
  let Id;
@@ -62,5 +68,7 @@ export {
62
68
  moduleUrl,
63
69
  commandAuthorization,
64
70
  readConsistency,
71
+ commandTransition,
72
+ traits,
65
73
  }
66
74
  /* consumedEventSchema Not a pure module */
@@ -105,6 +105,24 @@
105
105
  .structure.readModels[].retiredValues[]: string
106
106
  .structure.readModels[].schema: string
107
107
  .structure.readModels[].searchableFields[]: string
108
+ # `requiredCapabilities` is itself `js_nullable` and is NEW, so no persisted payload
109
+ # carries the array: a stored structure heals to null and these two are never reached.
110
+ # Required inside it because a declaration naming no capability, or no declaring
111
+ # component, is not a declaration — the same call `requiredStoreDeclarations` made for
112
+ # `store`/`component`/`field`.
113
+ .structure.requiredCapabilities[].capability: string
114
+ .structure.requiredCapabilities[].component: string
115
+ # `traitDeclarations` is itself `js_nullable` and is NEW, so no persisted payload
116
+ # carries the array: a stored structure heals to null and these four are never
117
+ # reached. Required inside it for the same reason the two above are — a graft
118
+ # naming no trait, no version, no posture or no component is not a record of a
119
+ # graft, and a fabricated `""` here would read as "grafted from nothing", which is
120
+ # worse than absent. The version is read from the trait's own package rather than
121
+ # written by hand, so it cannot be the empty string in practice either.
122
+ .structure.traitDeclarations[].component: string
123
+ .structure.traitDeclarations[].posture: string
124
+ .structure.traitDeclarations[].trait: string
125
+ .structure.traitDeclarations[].version: string
108
126
  .structure.requiredStoreDeclarations[].component: string
109
127
  .structure.requiredStoreDeclarations[].field: string
110
128
  .structure.requiredStoreDeclarations[].store: string
@@ -15,10 +15,18 @@ function commandAuthorization(param) {
15
15
  return "AllowAuthenticated";
16
16
  }
17
17
 
18
+ function commandTransition(param) {
19
+ return "Unrestricted";
20
+ }
21
+
22
+ let traits = [];
23
+
18
24
  let TestSpec = {
19
25
  name: "TestCmd",
20
26
  commandSchema: commandSchema,
21
- commandAuthorization: commandAuthorization
27
+ commandAuthorization: commandAuthorization,
28
+ commandTransition: commandTransition,
29
+ traits: traits
22
30
  };
23
31
 
24
32
  function publishCommands(_name, cmds) {