@reventlessdev/online-shop-dcb-ordering 1.0.0-alpha.271 → 1.0.0-alpha.273

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 (191) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/lib/bs/.compiler.log +2 -2
  3. package/lib/bs/compiler-info.json +1 -1
  4. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct-OrderingPlugin.cmi +0 -0
  5. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct-OrderingPlugin.cmt +0 -0
  6. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior-OrderingPlugin.cmi +0 -0
  7. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior-OrderingPlugin.cmt +0 -0
  8. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts-OrderingPlugin.cmi +0 -0
  9. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts-OrderingPlugin.cmt +0 -0
  10. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts_Projection-OrderingPlugin.cmi +0 -0
  11. package/lib/bs/src/CatalogProduct/StateView/AvailableProducts_Projection-OrderingPlugin.cmt +0 -0
  12. package/lib/bs/src/Customer/StateChange/ChangeAddress-OrderingPlugin.cmi +0 -0
  13. package/lib/bs/src/Customer/StateChange/ChangeAddress-OrderingPlugin.cmt +0 -0
  14. package/lib/bs/src/Customer/StateChange/ChangeAddress_Behavior-OrderingPlugin.cmi +0 -0
  15. package/lib/bs/src/Customer/StateChange/ChangeAddress_Behavior-OrderingPlugin.cmt +0 -0
  16. package/lib/bs/src/Customer/StateChange/ChangeEmail-OrderingPlugin.cmi +0 -0
  17. package/lib/bs/src/Customer/StateChange/ChangeEmail-OrderingPlugin.cmt +0 -0
  18. package/lib/bs/src/Customer/StateChange/ChangeEmail_Behavior-OrderingPlugin.cmi +0 -0
  19. package/lib/bs/src/Customer/StateChange/ChangeEmail_Behavior-OrderingPlugin.cmt +0 -0
  20. package/lib/bs/src/Customer/StateChange/DeactivateCustomer-OrderingPlugin.cmi +0 -0
  21. package/lib/bs/src/Customer/StateChange/DeactivateCustomer-OrderingPlugin.cmt +0 -0
  22. package/lib/bs/src/Customer/StateChange/DeactivateCustomer_Behavior-OrderingPlugin.cmi +0 -0
  23. package/lib/bs/src/Customer/StateChange/DeactivateCustomer_Behavior-OrderingPlugin.cmt +0 -0
  24. package/lib/bs/src/Customer/StateChange/RegisterCustomer-OrderingPlugin.cmi +0 -0
  25. package/lib/bs/src/Customer/StateChange/RegisterCustomer-OrderingPlugin.cmt +0 -0
  26. package/lib/bs/src/Customer/StateChange/RegisterCustomer_Behavior-OrderingPlugin.cmi +0 -0
  27. package/lib/bs/src/Customer/StateChange/RegisterCustomer_Behavior-OrderingPlugin.cmt +0 -0
  28. package/lib/bs/src/Customer/StateView/Customers-OrderingPlugin.cmi +0 -0
  29. package/lib/bs/src/Customer/StateView/Customers-OrderingPlugin.cmt +0 -0
  30. package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmi +0 -0
  31. package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmt +0 -0
  32. package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmi +0 -0
  33. package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmt +0 -0
  34. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
  35. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
  36. package/lib/bs/src/Order/Automation/AutoShipOrder-OrderingPlugin.cmi +0 -0
  37. package/lib/bs/src/Order/Automation/AutoShipOrder-OrderingPlugin.cmt +0 -0
  38. package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
  39. package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
  40. package/lib/bs/src/Order/StateChange/CancelOrder-OrderingPlugin.cmi +0 -0
  41. package/lib/bs/src/Order/StateChange/CancelOrder-OrderingPlugin.cmt +0 -0
  42. package/lib/bs/src/Order/StateChange/CancelOrder_Behavior-OrderingPlugin.cmi +0 -0
  43. package/lib/bs/src/Order/StateChange/CancelOrder_Behavior-OrderingPlugin.cmt +0 -0
  44. package/lib/bs/src/Order/StateChange/PlaceOrder-OrderingPlugin.cmi +0 -0
  45. package/lib/bs/src/Order/StateChange/PlaceOrder-OrderingPlugin.cmt +0 -0
  46. package/lib/bs/src/Order/StateChange/PlaceOrder_Behavior-OrderingPlugin.cmi +0 -0
  47. package/lib/bs/src/Order/StateChange/PlaceOrder_Behavior-OrderingPlugin.cmt +0 -0
  48. package/lib/bs/src/Order/StateChange/ShipOrder-OrderingPlugin.cmi +0 -0
  49. package/lib/bs/src/Order/StateChange/ShipOrder-OrderingPlugin.cmt +0 -0
  50. package/lib/bs/src/Order/StateChange/ShipOrder_Behavior-OrderingPlugin.cmi +0 -0
  51. package/lib/bs/src/Order/StateChange/ShipOrder_Behavior-OrderingPlugin.cmt +0 -0
  52. package/lib/bs/src/Order/StateView/Orders-OrderingPlugin.cmi +0 -0
  53. package/lib/bs/src/Order/StateView/Orders-OrderingPlugin.cmt +0 -0
  54. package/lib/bs/src/Order/StateView/Orders_Projection-OrderingPlugin.cmi +0 -0
  55. package/lib/bs/src/Order/StateView/Orders_Projection-OrderingPlugin.cmt +0 -0
  56. package/lib/bs/src/Plugin-OrderingPlugin.cmi +0 -0
  57. package/lib/bs/src/Plugin-OrderingPlugin.cmt +0 -0
  58. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  59. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  60. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  61. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  62. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
  63. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
  64. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
  65. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
  66. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
  67. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
  68. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
  69. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
  70. package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmi +0 -0
  71. package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmt +0 -0
  72. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  73. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  74. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  75. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  76. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
  77. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmj +0 -0
  78. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
  79. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT.ast +0 -0
  80. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT.res +2 -22
  81. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT.res.mjs +47 -51
  82. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
  83. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmj +0 -0
  84. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
  85. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.ast +0 -0
  86. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res +4 -13
  87. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res.mjs +45 -18
  88. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
  89. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
  90. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
  91. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
  92. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
  93. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
  94. package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmi +0 -0
  95. package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmt +0 -0
  96. package/lib/ocaml/.compiler.log +2 -2
  97. package/lib/ocaml/AutoShipOrder-OrderingPlugin.cmi +0 -0
  98. package/lib/ocaml/AutoShipOrder-OrderingPlugin.cmt +0 -0
  99. package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
  100. package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
  101. package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
  102. package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmj +0 -0
  103. package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
  104. package/lib/ocaml/AutoShipOrder_GWT.ast +0 -0
  105. package/lib/ocaml/AutoShipOrder_GWT.res +2 -22
  106. package/lib/ocaml/AvailableProducts-OrderingPlugin.cmi +0 -0
  107. package/lib/ocaml/AvailableProducts-OrderingPlugin.cmt +0 -0
  108. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  109. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  110. package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmi +0 -0
  111. package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmt +0 -0
  112. package/lib/ocaml/CancelOrder-OrderingPlugin.cmi +0 -0
  113. package/lib/ocaml/CancelOrder-OrderingPlugin.cmt +0 -0
  114. package/lib/ocaml/CancelOrder_Behavior-OrderingPlugin.cmi +0 -0
  115. package/lib/ocaml/CancelOrder_Behavior-OrderingPlugin.cmt +0 -0
  116. package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
  117. package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
  118. package/lib/ocaml/ChangeAddress-OrderingPlugin.cmi +0 -0
  119. package/lib/ocaml/ChangeAddress-OrderingPlugin.cmt +0 -0
  120. package/lib/ocaml/ChangeAddress_Behavior-OrderingPlugin.cmi +0 -0
  121. package/lib/ocaml/ChangeAddress_Behavior-OrderingPlugin.cmt +0 -0
  122. package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
  123. package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
  124. package/lib/ocaml/ChangeEmail-OrderingPlugin.cmi +0 -0
  125. package/lib/ocaml/ChangeEmail-OrderingPlugin.cmt +0 -0
  126. package/lib/ocaml/ChangeEmail_Behavior-OrderingPlugin.cmi +0 -0
  127. package/lib/ocaml/ChangeEmail_Behavior-OrderingPlugin.cmt +0 -0
  128. package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
  129. package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
  130. package/lib/ocaml/Customers-OrderingPlugin.cmi +0 -0
  131. package/lib/ocaml/Customers-OrderingPlugin.cmt +0 -0
  132. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmi +0 -0
  133. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmt +0 -0
  134. package/lib/ocaml/Customers_Projection-OrderingPlugin.cmi +0 -0
  135. package/lib/ocaml/Customers_Projection-OrderingPlugin.cmt +0 -0
  136. package/lib/ocaml/DeactivateCustomer-OrderingPlugin.cmi +0 -0
  137. package/lib/ocaml/DeactivateCustomer-OrderingPlugin.cmt +0 -0
  138. package/lib/ocaml/DeactivateCustomer_Behavior-OrderingPlugin.cmi +0 -0
  139. package/lib/ocaml/DeactivateCustomer_Behavior-OrderingPlugin.cmt +0 -0
  140. package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
  141. package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
  142. package/lib/ocaml/Orders-OrderingPlugin.cmi +0 -0
  143. package/lib/ocaml/Orders-OrderingPlugin.cmt +0 -0
  144. package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
  145. package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
  146. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  147. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  148. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmi +0 -0
  149. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmt +0 -0
  150. package/lib/ocaml/Orders_Projection-OrderingPlugin.cmi +0 -0
  151. package/lib/ocaml/Orders_Projection-OrderingPlugin.cmt +0 -0
  152. package/lib/ocaml/PlaceOrder-OrderingPlugin.cmi +0 -0
  153. package/lib/ocaml/PlaceOrder-OrderingPlugin.cmt +0 -0
  154. package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmi +0 -0
  155. package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmt +0 -0
  156. package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
  157. package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
  158. package/lib/ocaml/Plugin-OrderingPlugin.cmi +0 -0
  159. package/lib/ocaml/Plugin-OrderingPlugin.cmt +0 -0
  160. package/lib/ocaml/Products_Extension-OrderingPlugin.cmi +0 -0
  161. package/lib/ocaml/Products_Extension-OrderingPlugin.cmt +0 -0
  162. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  163. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  164. package/lib/ocaml/RegisterCustomer-OrderingPlugin.cmi +0 -0
  165. package/lib/ocaml/RegisterCustomer-OrderingPlugin.cmt +0 -0
  166. package/lib/ocaml/RegisterCustomer_Behavior-OrderingPlugin.cmi +0 -0
  167. package/lib/ocaml/RegisterCustomer_Behavior-OrderingPlugin.cmt +0 -0
  168. package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
  169. package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
  170. package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
  171. package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmj +0 -0
  172. package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
  173. package/lib/ocaml/SendOrderConfirmation_GWT.ast +0 -0
  174. package/lib/ocaml/SendOrderConfirmation_GWT.res +4 -13
  175. package/lib/ocaml/ShipOrder-OrderingPlugin.cmi +0 -0
  176. package/lib/ocaml/ShipOrder-OrderingPlugin.cmt +0 -0
  177. package/lib/ocaml/ShipOrder_Behavior-OrderingPlugin.cmi +0 -0
  178. package/lib/ocaml/ShipOrder_Behavior-OrderingPlugin.cmt +0 -0
  179. package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
  180. package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
  181. package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmi +0 -0
  182. package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmt +0 -0
  183. package/lib/ocaml/SyncCatalogProduct_Behavior-OrderingPlugin.cmi +0 -0
  184. package/lib/ocaml/SyncCatalogProduct_Behavior-OrderingPlugin.cmt +0 -0
  185. package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  186. package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  187. package/package.json +7 -7
  188. package/tests/Order/Automation/AutoShipOrder_GWT.res +2 -22
  189. package/tests/Order/Automation/AutoShipOrder_GWT.res.mjs +47 -51
  190. package/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res +4 -13
  191. package/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT.res.mjs +45 -18
package/CHANGELOG.md CHANGED
@@ -3,6 +3,21 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 1.0.0-alpha.273 (2026-10-10)
7
+
8
+ ### Features
9
+
10
+ * **gwt:** automation and translation tests take the slice as written, and the sidecars read them ([93a0919](https://github.com/ReventlessDev/reventless-core/commit/93a0919a0d66730cf9bf89144ad8fba3cb025332))
11
+
12
+
13
+ # 1.0.0-alpha.272 (2026-10-08)
14
+
15
+ **Note:** Version bump only for package @reventlessdev/online-shop-dcb-ordering
16
+
17
+
18
+
19
+
20
+
6
21
  # 1.0.0-alpha.271 (2026-10-08)
7
22
 
8
23
  **Note:** Version bump only for package @reventlessdev/online-shop-dcb-ordering
@@ -1,2 +1,2 @@
1
- #Start(1791470944270)
2
- #Done(1791470948213)
1
+ #Start(1791641990336)
2
+ #Done(1791641993221)
@@ -4,5 +4,5 @@
4
4
  "bsc_hash": "1006241435e8d5052329c523202a7fe6359a37e1e1688c023d37d6a7ebb5fb6d",
5
5
  "rescript_config_hash": "2b45634c4ef9d26c69e2cd8282eb5d077ce9cf087ded0065001d0f0d889e241c",
6
6
  "runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
7
- "generated_at": "1791470948218"
7
+ "generated_at": "1791641993225"
8
8
  }
@@ -1,27 +1,7 @@
1
- // `Automation_GWT.Make` expects a single SliceSpec with `collect`, `resolve`
2
- // and `process` as top-level bindings. The split-form production layout puts
3
- // `collect`/`resolve` inside the per-source `FromOrderingDcb` mapping, so we
4
- // compose the pieces locally before handing the result to the DSL.
5
-
6
- let testContext: Reventless.AutomationSlice.context = {
7
- environment: "test",
8
- platformName: "test",
9
- pluginName: "ordering",
10
- sliceName: "AutoShipOrder",
11
- }
12
-
13
- module AutoShipOrderSlice = {
14
- include AutoShipOrder
15
- type consumedEvent = AutoShipOrder_Automation.FromOrderingDcb.sourceEvent
16
- let consumedEventSchema = AutoShipOrder_Automation.FromOrderingDcb.sourceEventSchema
17
-
18
- let collect = e => AutoShipOrder_Automation.FromOrderingDcb.collect(e, ~sourceId="", testContext)
19
- let resolve = AutoShipOrder_Automation.FromOrderingDcb.resolve
20
- let process = AutoShipOrder_Automation.process
21
- }
22
-
23
1
  @@reventless.gwt
24
2
 
3
+ include Mapping(FromOrderingDcb)
4
+
25
5
  open Ordering_Examples
26
6
 
27
7
  describe("AutoShipOrder AutomationSlice", () => {
@@ -5,74 +5,50 @@ import * as Automation_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src
5
5
  import * as Ordering_Examples$OrderingPlugin from "../../Ordering_Examples.res.mjs";
6
6
  import * as AutoShipOrder_Automation$OrderingPlugin from "../../../src/Order/Automation/AutoShipOrder_Automation.res.mjs";
7
7
 
8
- let testContext = {
9
- environment: "test",
10
- platformName: "test",
11
- pluginName: "ordering",
12
- sliceName: "AutoShipOrder"
13
- };
14
-
15
- let consumedEventSchema = AutoShipOrder_Automation$OrderingPlugin.FromOrderingDcb.sourceEventSchema;
16
-
17
- function collect(e) {
18
- return AutoShipOrder_Automation$OrderingPlugin.FromOrderingDcb.collect(e, "", testContext);
19
- }
20
-
21
- let resolve = AutoShipOrder_Automation$OrderingPlugin.FromOrderingDcb.resolve;
22
-
23
- let AutoShipOrderSlice = {
8
+ let include = Automation_GWT$ReventlessGwt.FromSlice({
24
9
  name: AutoShipOrder$OrderingPlugin.name,
25
- Id: AutoShipOrder$OrderingPlugin.Id,
10
+ moduleUrl: AutoShipOrder$OrderingPlugin.moduleUrl,
26
11
  todoItemSchema: AutoShipOrder$OrderingPlugin.todoItemSchema,
27
12
  commandSchema: AutoShipOrder$OrderingPlugin.commandSchema,
28
13
  maxRetries: AutoShipOrder$OrderingPlugin.maxRetries,
29
14
  heartbeatInterval: AutoShipOrder$OrderingPlugin.heartbeatInterval,
30
- targetName: AutoShipOrder$OrderingPlugin.targetName,
31
- moduleUrl: AutoShipOrder$OrderingPlugin.moduleUrl,
32
- commandAuthorization: AutoShipOrder$OrderingPlugin.commandAuthorization,
33
- commandTransition: AutoShipOrder$OrderingPlugin.commandTransition,
34
- traits: AutoShipOrder$OrderingPlugin.traits,
35
- consumedEventSchema: consumedEventSchema,
36
- collect: collect,
37
- resolve: resolve,
38
- process: AutoShipOrder_Automation$OrderingPlugin.process
39
- };
40
-
41
- let include = Automation_GWT$ReventlessGwt.Make({
42
- name: AutoShipOrder$OrderingPlugin.name,
43
- consumedEventSchema: consumedEventSchema,
44
- todoItemSchema: AutoShipOrder$OrderingPlugin.todoItemSchema,
45
- commandSchema: AutoShipOrder$OrderingPlugin.commandSchema,
46
- collect: collect,
47
- resolve: resolve,
48
- process: AutoShipOrder_Automation$OrderingPlugin.process
15
+ targetName: AutoShipOrder$OrderingPlugin.targetName
16
+ })({
17
+ process: AutoShipOrder_Automation$OrderingPlugin.process,
18
+ onExhausted: AutoShipOrder_Automation$OrderingPlugin.onExhausted,
19
+ moduleUrl: AutoShipOrder_Automation$OrderingPlugin.moduleUrl,
20
+ mappings: AutoShipOrder_Automation$OrderingPlugin.mappings
49
21
  });
50
22
 
51
23
  let describe = include.describe;
52
24
 
53
25
  let test = include.test;
54
26
 
55
- let givenEvent = include.givenEvent;
56
-
57
- let whenCollect = include.whenCollect;
58
-
59
27
  let thenTodos = include.thenTodos;
60
28
 
61
- let whenResolve = include.whenResolve;
62
-
63
29
  let thenResolved = include.thenResolved;
64
30
 
31
+ let Mapping = include.Mapping;
32
+
65
33
  let givenTodo = include.givenTodo;
66
34
 
67
35
  let whenProcess = include.whenProcess;
68
36
 
69
37
  let thenCommand = include.thenCommand;
70
38
 
39
+ let include$1 = Mapping(AutoShipOrder_Automation$OrderingPlugin.FromOrderingDcb);
40
+
41
+ let givenEvent = include$1.givenEvent;
42
+
43
+ let whenCollect = include$1.whenCollect;
44
+
45
+ let whenResolve = include$1.whenResolve;
46
+
71
47
  describe("AutoShipOrder AutomationSlice", () => {
72
48
  test("collect: OrderPlaced creates a pending TODO", () => thenTodos(whenCollect(givenEvent({
73
49
  TAG: "OrderPlaced",
74
50
  orderId: Ordering_Examples$OrderingPlugin.o1
75
- })), [[
51
+ }), undefined, undefined), [[
76
52
  "o1",
77
53
  {
78
54
  orderId: Ordering_Examples$OrderingPlugin.o1
@@ -81,7 +57,7 @@ describe("AutoShipOrder AutomationSlice", () => {
81
57
  test("collect: OrderShipped is ignored (no TODO)", () => thenTodos(whenCollect(givenEvent({
82
58
  TAG: "OrderShipped",
83
59
  orderId: Ordering_Examples$OrderingPlugin.o1
84
- })), []));
60
+ }), undefined, undefined), []));
85
61
  test("resolve: OrderShipped marks the TODO done", () => thenResolved(whenResolve(givenEvent({
86
62
  TAG: "OrderShipped",
87
63
  orderId: Ordering_Examples$OrderingPlugin.o1
@@ -98,12 +74,24 @@ describe("AutoShipOrder AutomationSlice", () => {
98
74
  }));
99
75
  });
100
76
 
101
- let Spec = include.Spec;
77
+ let Route = include.Route;
78
+
79
+ let testContext = include.testContext;
80
+
81
+ let encTodos = include.encTodos;
82
+
83
+ let encPair = include.encPair;
84
+
85
+ let whenExhausted = include.whenExhausted;
102
86
 
103
87
  let thenNoCommand = include.thenNoCommand;
104
88
 
105
89
  let givenEvents = include.givenEvents;
106
90
 
91
+ let routeAll = include.routeAll;
92
+
93
+ let sweep = include.sweep;
94
+
107
95
  let whenSweep = include.whenSweep;
108
96
 
109
97
  let thenCommands = include.thenCommands;
@@ -112,25 +100,33 @@ let andThenEvents = include.andThenEvents;
112
100
 
113
101
  let thenScenarioTodos = include.thenScenarioTodos;
114
102
 
103
+ let event = include$1.event;
104
+
115
105
  export {
116
- testContext,
117
- AutoShipOrderSlice,
118
- Spec,
106
+ Route,
119
107
  describe,
120
108
  test,
121
- givenEvent,
122
- whenCollect,
109
+ testContext,
110
+ encTodos,
111
+ encPair,
123
112
  thenTodos,
124
- whenResolve,
125
113
  thenResolved,
114
+ Mapping,
126
115
  givenTodo,
127
116
  whenProcess,
117
+ whenExhausted,
128
118
  thenCommand,
129
119
  thenNoCommand,
130
120
  givenEvents,
121
+ routeAll,
122
+ sweep,
131
123
  whenSweep,
132
124
  thenCommands,
133
125
  andThenEvents,
134
126
  thenScenarioTodos,
127
+ event,
128
+ givenEvent,
129
+ whenCollect,
130
+ whenResolve,
135
131
  }
136
132
  /* include Not a pure module */
@@ -1,14 +1,5 @@
1
- // `OutboundTranslation_GWT.Make` expects a single SliceSpec with `collect` at
2
- // the top level. The split-form production layout keeps `collect` in the
3
- // translation body file, so we compose it onto the spec module locally.
4
- //
5
- // `translate` is supplied at test time via `whenTranslateMocked`; the real
6
- // `translate` (which calls `EmailService`) is exercised in component tests.
7
-
8
- module SendOrderConfirmationSlice = {
9
- include SendOrderConfirmation
10
- let collect = SendOrderConfirmation_Translation.collect
11
- }
1
+ // `translate` calls a mailer the framework does not broker, so these scenarios
2
+ // answer for it with `whenTranslateMocked`.
12
3
 
13
4
  @@reventless.gwt
14
5
 
@@ -29,9 +20,9 @@ describe("SendOrderConfirmation OutboundTranslationSlice", () => {
29
20
  )
30
21
 
31
22
  // scenario-id: a4563058-8777-4756-8e12-983fcd0e8f20
32
- test("translate failure leaves the TODO Pending for retry", () =>
23
+ test("translate failure leaves the TODO Failed for retry", () =>
33
24
  givenTodo("o1", {orderId: o1, customerId: c1})
34
25
  ->whenTranslateMocked((_id, _item) => Promise.resolve(Error("smtp down")))
35
- ->thenTodoStatus("o1", #Pending)
26
+ ->thenTodoStatus("o1", #Failed)
36
27
  )
37
28
  })
@@ -5,9 +5,9 @@ import * as SendOrderConfirmation$OrderingPlugin from "../../../src/Order/Outbou
5
5
  import * as OutboundTranslation_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/OutboundTranslation_GWT.res.mjs";
6
6
  import * as SendOrderConfirmation_Translation$OrderingPlugin from "../../../src/Order/OutboundTranslation/SendOrderConfirmation_Translation.res.mjs";
7
7
 
8
- let SendOrderConfirmationSlice = {
8
+ let include = OutboundTranslation_GWT$ReventlessGwt.FromSlice({
9
9
  name: SendOrderConfirmation$OrderingPlugin.name,
10
- Id: SendOrderConfirmation$OrderingPlugin.Id,
10
+ moduleUrl: SendOrderConfirmation$OrderingPlugin.moduleUrl,
11
11
  consumedEventSchema: SendOrderConfirmation$OrderingPlugin.consumedEventSchema,
12
12
  outboundItemSchema: SendOrderConfirmation$OrderingPlugin.outboundItemSchema,
13
13
  inboundCommandSchema: SendOrderConfirmation$OrderingPlugin.inboundCommandSchema,
@@ -17,17 +17,12 @@ let SendOrderConfirmationSlice = {
17
17
  sourceNames: SendOrderConfirmation$OrderingPlugin.sourceNames,
18
18
  externalSystem: SendOrderConfirmation$OrderingPlugin.externalSystem,
19
19
  capabilityNeeds: SendOrderConfirmation$OrderingPlugin.capabilityNeeds,
20
- moduleUrl: SendOrderConfirmation$OrderingPlugin.moduleUrl,
21
- traits: SendOrderConfirmation$OrderingPlugin.traits,
22
- collect: SendOrderConfirmation_Translation$OrderingPlugin.collect
23
- };
24
-
25
- let include = OutboundTranslation_GWT$ReventlessGwt.Make({
26
- name: SendOrderConfirmation$OrderingPlugin.name,
27
- consumedEventSchema: SendOrderConfirmation$OrderingPlugin.consumedEventSchema,
28
- outboundItemSchema: SendOrderConfirmation$OrderingPlugin.outboundItemSchema,
29
- inboundCommandSchema: SendOrderConfirmation$OrderingPlugin.inboundCommandSchema,
30
- collect: SendOrderConfirmation_Translation$OrderingPlugin.collect
20
+ traits: SendOrderConfirmation$OrderingPlugin.traits
21
+ })({
22
+ collect: SendOrderConfirmation_Translation$OrderingPlugin.collect,
23
+ translate: SendOrderConfirmation_Translation$OrderingPlugin.translate,
24
+ onExhausted: SendOrderConfirmation_Translation$OrderingPlugin.onExhausted,
25
+ moduleUrl: SendOrderConfirmation_Translation$OrderingPlugin.moduleUrl
31
26
  });
32
27
 
33
28
  let describe = include.describe;
@@ -67,40 +62,72 @@ describe("SendOrderConfirmation OutboundTranslationSlice", () => {
67
62
  TAG: "Ok",
68
63
  _0: undefined
69
64
  })), "o1", "Completed"));
70
- test("translate failure leaves the TODO Pending for retry", undefined, () => thenTodoStatus(whenTranslateMocked(givenTodo("o1", {
65
+ test("translate failure leaves the TODO Failed for retry", undefined, () => thenTodoStatus(whenTranslateMocked(givenTodo("o1", {
71
66
  orderId: Ordering_Examples$OrderingPlugin.o1,
72
67
  customerId: Ordering_Examples$OrderingPlugin.c1
73
68
  }), (_id, _item) => Promise.resolve({
74
69
  TAG: "Error",
75
70
  _0: "smtp down"
76
- })), "o1", "Pending"));
71
+ })), "o1", "Failed"));
77
72
  });
78
73
 
79
- let Spec = include.Spec;
74
+ let encItems = include.encItems;
75
+
76
+ let commandPairJson = include.commandPairJson;
77
+
78
+ let errorOf = include.errorOf;
79
+
80
+ let fakes = include.fakes;
81
+
82
+ let givenCapabilities = include.givenCapabilities;
83
+
84
+ let attemptWith = include.attemptWith;
85
+
86
+ let attempts = include.attempts;
87
+
88
+ let whenTranslated = include.whenTranslated;
80
89
 
81
90
  let whenTranslateRetrying = include.whenTranslateRetrying;
82
91
 
92
+ let whenExhausted = include.whenExhausted;
93
+
83
94
  let thenCommand = include.thenCommand;
84
95
 
85
96
  let thenNoCommand = include.thenNoCommand;
86
97
 
98
+ let thenSent = include.thenSent;
99
+
100
+ let thenNothingSent = include.thenNothingSent;
101
+
87
102
  let thenRetryRecorded = include.thenRetryRecorded;
88
103
 
104
+ let statusName = include.statusName;
105
+
89
106
  export {
90
- SendOrderConfirmationSlice,
91
- Spec,
92
107
  describe,
93
108
  test,
94
109
  testSync,
110
+ encItems,
111
+ commandPairJson,
112
+ errorOf,
95
113
  givenEvent,
96
114
  whenCollect,
97
115
  thenTodos,
98
116
  givenTodo,
117
+ fakes,
118
+ givenCapabilities,
119
+ attemptWith,
120
+ attempts,
121
+ whenTranslated,
99
122
  whenTranslateMocked,
100
123
  whenTranslateRetrying,
124
+ whenExhausted,
101
125
  thenCommand,
102
126
  thenNoCommand,
127
+ thenSent,
128
+ thenNothingSent,
103
129
  thenRetryRecorded,
130
+ statusName,
104
131
  thenTodoStatus,
105
132
  }
106
133
  /* include Not a pure module */
@@ -1,2 +1,2 @@
1
- #Start(1791470944270)
2
- #Done(1791470948213)
1
+ #Start(1791641990336)
2
+ #Done(1791641993221)
Binary file