@reventlessdev/online-shop-dcb-catalog 1.0.0-alpha.274 → 1.0.0-alpha.275

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 (202) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/lib/bs/.compiler.log +2 -2
  3. package/lib/bs/compiler-info.json +1 -1
  4. package/lib/bs/src/Category/StateChange/AddCategory-CatalogPlugin.cmi +0 -0
  5. package/lib/bs/src/Category/StateChange/AddCategory-CatalogPlugin.cmt +0 -0
  6. package/lib/bs/src/Category/StateChange/AddCategory_Behavior-CatalogPlugin.cmi +0 -0
  7. package/lib/bs/src/Category/StateChange/AddCategory_Behavior-CatalogPlugin.cmt +0 -0
  8. package/lib/bs/src/Category/StateChange/ArchiveCategory-CatalogPlugin.cmi +0 -0
  9. package/lib/bs/src/Category/StateChange/ArchiveCategory-CatalogPlugin.cmt +0 -0
  10. package/lib/bs/src/Category/StateChange/ArchiveCategory_Behavior-CatalogPlugin.cmi +0 -0
  11. package/lib/bs/src/Category/StateChange/ArchiveCategory_Behavior-CatalogPlugin.cmt +0 -0
  12. package/lib/bs/src/Category/StateChange/RenameCategory-CatalogPlugin.cmi +0 -0
  13. package/lib/bs/src/Category/StateChange/RenameCategory-CatalogPlugin.cmt +0 -0
  14. package/lib/bs/src/Category/StateChange/RenameCategory_Behavior-CatalogPlugin.cmi +0 -0
  15. package/lib/bs/src/Category/StateChange/RenameCategory_Behavior-CatalogPlugin.cmt +0 -0
  16. package/lib/bs/src/Category/StateView/Categories-CatalogPlugin.cmi +0 -0
  17. package/lib/bs/src/Category/StateView/Categories-CatalogPlugin.cmt +0 -0
  18. package/lib/bs/src/Category/StateView/Categories_Projection-CatalogPlugin.cmi +0 -0
  19. package/lib/bs/src/Category/StateView/Categories_Projection-CatalogPlugin.cmt +0 -0
  20. package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity-CatalogPlugin.cmi +0 -0
  21. package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity-CatalogPlugin.cmt +0 -0
  22. package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity_Projections-CatalogPlugin.cmi +0 -0
  23. package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity_Projections-CatalogPlugin.cmt +0 -0
  24. package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmi +0 -0
  25. package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmt +0 -0
  26. package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
  27. package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
  28. package/lib/bs/src/Plugin-CatalogPlugin.cmi +0 -0
  29. package/lib/bs/src/Plugin-CatalogPlugin.cmt +0 -0
  30. package/lib/bs/src/Plugin.res.mjs +1 -2
  31. package/lib/bs/src/Product/InboundTranslation/ImportProduct-CatalogPlugin.cmi +0 -0
  32. package/lib/bs/src/Product/InboundTranslation/ImportProduct-CatalogPlugin.cmj +0 -0
  33. package/lib/bs/src/Product/InboundTranslation/ImportProduct-CatalogPlugin.cmt +0 -0
  34. package/lib/bs/src/Product/InboundTranslation/ImportProduct.ast +0 -0
  35. package/lib/bs/src/Product/InboundTranslation/ImportProduct.res.mjs +0 -5
  36. package/lib/bs/src/Product/InboundTranslation/ImportProduct_Translation-CatalogPlugin.cmi +0 -0
  37. package/lib/bs/src/Product/InboundTranslation/ImportProduct_Translation-CatalogPlugin.cmt +0 -0
  38. package/lib/bs/src/Product/StateChange/AddProduct-CatalogPlugin.cmi +0 -0
  39. package/lib/bs/src/Product/StateChange/AddProduct-CatalogPlugin.cmt +0 -0
  40. package/lib/bs/src/Product/StateChange/AddProduct_Behavior-CatalogPlugin.cmi +0 -0
  41. package/lib/bs/src/Product/StateChange/AddProduct_Behavior-CatalogPlugin.cmt +0 -0
  42. package/lib/bs/src/Product/StateChange/ChangeProductDescription-CatalogPlugin.cmi +0 -0
  43. package/lib/bs/src/Product/StateChange/ChangeProductDescription-CatalogPlugin.cmt +0 -0
  44. package/lib/bs/src/Product/StateChange/ChangeProductDescription_Behavior-CatalogPlugin.cmi +0 -0
  45. package/lib/bs/src/Product/StateChange/ChangeProductDescription_Behavior-CatalogPlugin.cmt +0 -0
  46. package/lib/bs/src/Product/StateChange/ChangeProductName-CatalogPlugin.cmi +0 -0
  47. package/lib/bs/src/Product/StateChange/ChangeProductName-CatalogPlugin.cmt +0 -0
  48. package/lib/bs/src/Product/StateChange/ChangeProductName_Behavior-CatalogPlugin.cmi +0 -0
  49. package/lib/bs/src/Product/StateChange/ChangeProductName_Behavior-CatalogPlugin.cmt +0 -0
  50. package/lib/bs/src/Product/StateChange/ChangeProductPrice-CatalogPlugin.cmi +0 -0
  51. package/lib/bs/src/Product/StateChange/ChangeProductPrice-CatalogPlugin.cmt +0 -0
  52. package/lib/bs/src/Product/StateChange/ChangeProductPrice_Behavior-CatalogPlugin.cmi +0 -0
  53. package/lib/bs/src/Product/StateChange/ChangeProductPrice_Behavior-CatalogPlugin.cmt +0 -0
  54. package/lib/bs/src/Product/StateView/Products-CatalogPlugin.cmi +0 -0
  55. package/lib/bs/src/Product/StateView/Products-CatalogPlugin.cmt +0 -0
  56. package/lib/bs/src/Product/StateView/Products_Projection-CatalogPlugin.cmi +0 -0
  57. package/lib/bs/src/Product/StateView/Products_Projection-CatalogPlugin.cmt +0 -0
  58. package/lib/bs/src/ProductDemand/StateChange/RecordProductDemand-CatalogPlugin.cmi +0 -0
  59. package/lib/bs/src/ProductDemand/StateChange/RecordProductDemand-CatalogPlugin.cmt +0 -0
  60. package/lib/bs/src/ProductDemand/StateChange/RecordProductDemand_Behavior-CatalogPlugin.cmi +0 -0
  61. package/lib/bs/src/ProductDemand/StateChange/RecordProductDemand_Behavior-CatalogPlugin.cmt +0 -0
  62. package/lib/bs/src/ProductDemand/StateView/ProductDemand-CatalogPlugin.cmi +0 -0
  63. package/lib/bs/src/ProductDemand/StateView/ProductDemand-CatalogPlugin.cmt +0 -0
  64. package/lib/bs/src/ProductDemand/StateView/ProductDemand_Projection-CatalogPlugin.cmi +0 -0
  65. package/lib/bs/src/ProductDemand/StateView/ProductDemand_Projection-CatalogPlugin.cmt +0 -0
  66. package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmi +0 -0
  67. package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmt +0 -0
  68. package/lib/bs/tests/Category/StateChange/AddCategory_GWT-CatalogPlugin.cmi +0 -0
  69. package/lib/bs/tests/Category/StateChange/AddCategory_GWT-CatalogPlugin.cmt +0 -0
  70. package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT-CatalogPlugin.cmi +0 -0
  71. package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT-CatalogPlugin.cmt +0 -0
  72. package/lib/bs/tests/Category/StateChange/RenameCategory_GWT-CatalogPlugin.cmi +0 -0
  73. package/lib/bs/tests/Category/StateChange/RenameCategory_GWT-CatalogPlugin.cmt +0 -0
  74. package/lib/bs/tests/Category/StateView/Categories_GWT-CatalogPlugin.cmi +0 -0
  75. package/lib/bs/tests/Category/StateView/Categories_GWT-CatalogPlugin.cmt +0 -0
  76. package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_GWT-CatalogPlugin.cmi +0 -0
  77. package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_GWT-CatalogPlugin.cmt +0 -0
  78. package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
  79. package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
  80. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
  81. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
  82. package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT-CatalogPlugin.cmi +0 -0
  83. package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT-CatalogPlugin.cmj +0 -0
  84. package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT-CatalogPlugin.cmt +0 -0
  85. package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT.ast +0 -0
  86. package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT.res +5 -10
  87. package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT.res.mjs +24 -17
  88. package/lib/bs/tests/Product/StateChange/AddProduct_GWT-CatalogPlugin.cmi +0 -0
  89. package/lib/bs/tests/Product/StateChange/AddProduct_GWT-CatalogPlugin.cmt +0 -0
  90. package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT-CatalogPlugin.cmi +0 -0
  91. package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT-CatalogPlugin.cmt +0 -0
  92. package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT-CatalogPlugin.cmi +0 -0
  93. package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT-CatalogPlugin.cmt +0 -0
  94. package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT-CatalogPlugin.cmi +0 -0
  95. package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT-CatalogPlugin.cmt +0 -0
  96. package/lib/bs/tests/Product/StateView/Products_GWT-CatalogPlugin.cmi +0 -0
  97. package/lib/bs/tests/Product/StateView/Products_GWT-CatalogPlugin.cmt +0 -0
  98. package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT-CatalogPlugin.cmi +0 -0
  99. package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT-CatalogPlugin.cmt +0 -0
  100. package/lib/bs/tests/ProductDemand/StateView/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
  101. package/lib/bs/tests/ProductDemand/StateView/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
  102. package/lib/ocaml/.compiler.log +2 -2
  103. package/lib/ocaml/AddCategory-CatalogPlugin.cmi +0 -0
  104. package/lib/ocaml/AddCategory-CatalogPlugin.cmt +0 -0
  105. package/lib/ocaml/AddCategory_Behavior-CatalogPlugin.cmi +0 -0
  106. package/lib/ocaml/AddCategory_Behavior-CatalogPlugin.cmt +0 -0
  107. package/lib/ocaml/AddCategory_GWT-CatalogPlugin.cmi +0 -0
  108. package/lib/ocaml/AddCategory_GWT-CatalogPlugin.cmt +0 -0
  109. package/lib/ocaml/AddProduct-CatalogPlugin.cmi +0 -0
  110. package/lib/ocaml/AddProduct-CatalogPlugin.cmt +0 -0
  111. package/lib/ocaml/AddProduct_Behavior-CatalogPlugin.cmi +0 -0
  112. package/lib/ocaml/AddProduct_Behavior-CatalogPlugin.cmt +0 -0
  113. package/lib/ocaml/AddProduct_GWT-CatalogPlugin.cmi +0 -0
  114. package/lib/ocaml/AddProduct_GWT-CatalogPlugin.cmt +0 -0
  115. package/lib/ocaml/ArchiveCategory-CatalogPlugin.cmi +0 -0
  116. package/lib/ocaml/ArchiveCategory-CatalogPlugin.cmt +0 -0
  117. package/lib/ocaml/ArchiveCategory_Behavior-CatalogPlugin.cmi +0 -0
  118. package/lib/ocaml/ArchiveCategory_Behavior-CatalogPlugin.cmt +0 -0
  119. package/lib/ocaml/ArchiveCategory_GWT-CatalogPlugin.cmi +0 -0
  120. package/lib/ocaml/ArchiveCategory_GWT-CatalogPlugin.cmt +0 -0
  121. package/lib/ocaml/Categories-CatalogPlugin.cmi +0 -0
  122. package/lib/ocaml/Categories-CatalogPlugin.cmt +0 -0
  123. package/lib/ocaml/Categories_GWT-CatalogPlugin.cmi +0 -0
  124. package/lib/ocaml/Categories_GWT-CatalogPlugin.cmt +0 -0
  125. package/lib/ocaml/Categories_Projection-CatalogPlugin.cmi +0 -0
  126. package/lib/ocaml/Categories_Projection-CatalogPlugin.cmt +0 -0
  127. package/lib/ocaml/CategoryActivity-CatalogPlugin.cmi +0 -0
  128. package/lib/ocaml/CategoryActivity-CatalogPlugin.cmt +0 -0
  129. package/lib/ocaml/CategoryActivity_GWT-CatalogPlugin.cmi +0 -0
  130. package/lib/ocaml/CategoryActivity_GWT-CatalogPlugin.cmt +0 -0
  131. package/lib/ocaml/CategoryActivity_Projections-CatalogPlugin.cmi +0 -0
  132. package/lib/ocaml/CategoryActivity_Projections-CatalogPlugin.cmt +0 -0
  133. package/lib/ocaml/ChangeProductDescription-CatalogPlugin.cmi +0 -0
  134. package/lib/ocaml/ChangeProductDescription-CatalogPlugin.cmt +0 -0
  135. package/lib/ocaml/ChangeProductDescription_Behavior-CatalogPlugin.cmi +0 -0
  136. package/lib/ocaml/ChangeProductDescription_Behavior-CatalogPlugin.cmt +0 -0
  137. package/lib/ocaml/ChangeProductDescription_GWT-CatalogPlugin.cmi +0 -0
  138. package/lib/ocaml/ChangeProductDescription_GWT-CatalogPlugin.cmt +0 -0
  139. package/lib/ocaml/ChangeProductName-CatalogPlugin.cmi +0 -0
  140. package/lib/ocaml/ChangeProductName-CatalogPlugin.cmt +0 -0
  141. package/lib/ocaml/ChangeProductName_Behavior-CatalogPlugin.cmi +0 -0
  142. package/lib/ocaml/ChangeProductName_Behavior-CatalogPlugin.cmt +0 -0
  143. package/lib/ocaml/ChangeProductName_GWT-CatalogPlugin.cmi +0 -0
  144. package/lib/ocaml/ChangeProductName_GWT-CatalogPlugin.cmt +0 -0
  145. package/lib/ocaml/ChangeProductPrice-CatalogPlugin.cmi +0 -0
  146. package/lib/ocaml/ChangeProductPrice-CatalogPlugin.cmt +0 -0
  147. package/lib/ocaml/ChangeProductPrice_Behavior-CatalogPlugin.cmi +0 -0
  148. package/lib/ocaml/ChangeProductPrice_Behavior-CatalogPlugin.cmt +0 -0
  149. package/lib/ocaml/ChangeProductPrice_GWT-CatalogPlugin.cmi +0 -0
  150. package/lib/ocaml/ChangeProductPrice_GWT-CatalogPlugin.cmt +0 -0
  151. package/lib/ocaml/ImportProduct-CatalogPlugin.cmi +0 -0
  152. package/lib/ocaml/ImportProduct-CatalogPlugin.cmj +0 -0
  153. package/lib/ocaml/ImportProduct-CatalogPlugin.cmt +0 -0
  154. package/lib/ocaml/ImportProduct.ast +0 -0
  155. package/lib/ocaml/ImportProduct_GWT-CatalogPlugin.cmi +0 -0
  156. package/lib/ocaml/ImportProduct_GWT-CatalogPlugin.cmj +0 -0
  157. package/lib/ocaml/ImportProduct_GWT-CatalogPlugin.cmt +0 -0
  158. package/lib/ocaml/ImportProduct_GWT.ast +0 -0
  159. package/lib/ocaml/ImportProduct_GWT.res +5 -10
  160. package/lib/ocaml/ImportProduct_Translation-CatalogPlugin.cmi +0 -0
  161. package/lib/ocaml/ImportProduct_Translation-CatalogPlugin.cmt +0 -0
  162. package/lib/ocaml/ImportProducts-CatalogPlugin.cmi +0 -0
  163. package/lib/ocaml/ImportProducts-CatalogPlugin.cmt +0 -0
  164. package/lib/ocaml/Orders_Extension-CatalogPlugin.cmi +0 -0
  165. package/lib/ocaml/Orders_Extension-CatalogPlugin.cmt +0 -0
  166. package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
  167. package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
  168. package/lib/ocaml/Plugin-CatalogPlugin.cmi +0 -0
  169. package/lib/ocaml/Plugin-CatalogPlugin.cmt +0 -0
  170. package/lib/ocaml/ProductDemand-CatalogPlugin.cmi +0 -0
  171. package/lib/ocaml/ProductDemand-CatalogPlugin.cmt +0 -0
  172. package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
  173. package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
  174. package/lib/ocaml/ProductDemand_Projection-CatalogPlugin.cmi +0 -0
  175. package/lib/ocaml/ProductDemand_Projection-CatalogPlugin.cmt +0 -0
  176. package/lib/ocaml/Products-CatalogPlugin.cmi +0 -0
  177. package/lib/ocaml/Products-CatalogPlugin.cmt +0 -0
  178. package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
  179. package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
  180. package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
  181. package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
  182. package/lib/ocaml/Products_GWT-CatalogPlugin.cmi +0 -0
  183. package/lib/ocaml/Products_GWT-CatalogPlugin.cmt +0 -0
  184. package/lib/ocaml/Products_Projection-CatalogPlugin.cmi +0 -0
  185. package/lib/ocaml/Products_Projection-CatalogPlugin.cmt +0 -0
  186. package/lib/ocaml/RecordProductDemand-CatalogPlugin.cmi +0 -0
  187. package/lib/ocaml/RecordProductDemand-CatalogPlugin.cmt +0 -0
  188. package/lib/ocaml/RecordProductDemand_Behavior-CatalogPlugin.cmi +0 -0
  189. package/lib/ocaml/RecordProductDemand_Behavior-CatalogPlugin.cmt +0 -0
  190. package/lib/ocaml/RecordProductDemand_GWT-CatalogPlugin.cmi +0 -0
  191. package/lib/ocaml/RecordProductDemand_GWT-CatalogPlugin.cmt +0 -0
  192. package/lib/ocaml/RenameCategory-CatalogPlugin.cmi +0 -0
  193. package/lib/ocaml/RenameCategory-CatalogPlugin.cmt +0 -0
  194. package/lib/ocaml/RenameCategory_Behavior-CatalogPlugin.cmi +0 -0
  195. package/lib/ocaml/RenameCategory_Behavior-CatalogPlugin.cmt +0 -0
  196. package/lib/ocaml/RenameCategory_GWT-CatalogPlugin.cmi +0 -0
  197. package/lib/ocaml/RenameCategory_GWT-CatalogPlugin.cmt +0 -0
  198. package/package.json +7 -7
  199. package/src/Plugin.res.mjs +1 -2
  200. package/src/Product/InboundTranslation/ImportProduct.res.mjs +0 -5
  201. package/tests/Product/InboundTranslation/ImportProduct_GWT.res +5 -10
  202. package/tests/Product/InboundTranslation/ImportProduct_GWT.res.mjs +24 -17
package/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
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.275 (2026-10-10)
7
+
8
+ ### Bug Fixes
9
+
10
+ * an inbound translation is gated alike on every door, and encodes its commands by schema ([6ec3ce6](https://github.com/ReventlessDev/reventless-core/commit/6ec3ce672e53e2c162c64a90d103be691391be5e))
11
+ ### Features
12
+
13
+ * **gwt:** automation and translation tests take the slice as written, and the sidecars read them ([93a0919](https://github.com/ReventlessDev/reventless-core/commit/93a0919a0d66730cf9bf89144ad8fba3cb025332))
14
+
15
+
6
16
  # 1.0.0-alpha.274 (2026-10-08)
7
17
 
8
18
  **Note:** Version bump only for package @reventlessdev/online-shop-dcb-catalog
@@ -1,2 +1,2 @@
1
- #Start(1791480367060)
2
- #Done(1791480370159)
1
+ #Start(1791641990335)
2
+ #Done(1791641993217)
@@ -4,5 +4,5 @@
4
4
  "bsc_hash": "1006241435e8d5052329c523202a7fe6359a37e1e1688c023d37d6a7ebb5fb6d",
5
5
  "rescript_config_hash": "ca6bf04caf4f6b27dbf31b935f934d99c6fe59248cc8b122f9cc48ff2675eb4a",
6
6
  "runtime_path": "/home/runner/work/reventless-core/reventless-core/node_modules/@rescript/runtime",
7
- "generated_at": "1791480370173"
7
+ "generated_at": "1791641993225"
8
8
  }
Binary file
Binary file
@@ -282,8 +282,7 @@ function Make(Platform) {
282
282
  commandSchema: ImportProduct$CatalogPlugin.commandSchema,
283
283
  targetName: ImportProduct$CatalogPlugin.targetName,
284
284
  externalSystem: ImportProduct$CatalogPlugin.externalSystem,
285
- commandAuthorization: ImportProduct$CatalogPlugin.commandAuthorization,
286
- commandTransition: ImportProduct$CatalogPlugin.commandTransition
285
+ commandAuthorization: ImportProduct$CatalogPlugin.commandAuthorization
287
286
  })({
288
287
  translate: ImportProduct_Translation$CatalogPlugin.translate,
289
288
  moduleUrl: ImportProduct_Translation$CatalogPlugin.moduleUrl
@@ -24,10 +24,6 @@ function commandAuthorization(param) {
24
24
  return "AllowAuthenticated";
25
25
  }
26
26
 
27
- function commandTransition(param) {
28
- return "Undeclared";
29
- }
30
-
31
27
  let traits = [];
32
28
 
33
29
  let name = "ImportProduct";
@@ -49,7 +45,6 @@ export {
49
45
  externalSystem,
50
46
  moduleUrl,
51
47
  commandAuthorization,
52
- commandTransition,
53
48
  traits,
54
49
  }
55
50
  /* externalInputSchema Not a pure module */
@@ -1,13 +1,3 @@
1
- // `InboundTranslation_GWT.Make` expects a single SliceSpec carrying both the
2
- // types (from the spec file) and the `translate` function (from the body
3
- // file). The split-form production layout doesn't expose them as one module,
4
- // so we compose them locally before handing the result to the DSL.
5
-
6
- module ImportProductSlice = {
7
- include ImportProduct
8
- let translate = ImportProduct_Translation.translate
9
- }
10
-
11
1
  @@reventless.gwt
12
2
 
13
3
  open Catalog_Examples
@@ -61,4 +51,9 @@ describe("ImportProduct InboundTranslationSlice", () => {
61
51
  currency: usd,
62
52
  })->thenTranslateError("SKU is required")
63
53
  )
54
+
55
+ // A payload the feed's contract does not describe never reaches `translate`.
56
+ test("a payload missing its title is refused before translation", () =>
57
+ whenReceived(JSON.parseOrThrow(`{"sku": "SKU-1"}`))->thenRefusedInput("title")
58
+ )
64
59
  })
@@ -6,25 +6,17 @@ import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs"
6
6
  import * as InboundTranslation_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/InboundTranslation_GWT.res.mjs";
7
7
  import * as ImportProduct_Translation$CatalogPlugin from "../../../src/Product/InboundTranslation/ImportProduct_Translation.res.mjs";
8
8
 
9
- let ImportProductSlice = {
9
+ let include = InboundTranslation_GWT$ReventlessGwt.FromSlice({
10
10
  name: ImportProduct$CatalogPlugin.name,
11
- Id: ImportProduct$CatalogPlugin.Id,
11
+ moduleUrl: ImportProduct$CatalogPlugin.moduleUrl,
12
12
  externalInputSchema: ImportProduct$CatalogPlugin.externalInputSchema,
13
13
  commandSchema: ImportProduct$CatalogPlugin.commandSchema,
14
14
  targetName: ImportProduct$CatalogPlugin.targetName,
15
15
  externalSystem: ImportProduct$CatalogPlugin.externalSystem,
16
- moduleUrl: ImportProduct$CatalogPlugin.moduleUrl,
17
- commandAuthorization: ImportProduct$CatalogPlugin.commandAuthorization,
18
- commandTransition: ImportProduct$CatalogPlugin.commandTransition,
19
- traits: ImportProduct$CatalogPlugin.traits,
20
- translate: ImportProduct_Translation$CatalogPlugin.translate
21
- };
22
-
23
- let include = InboundTranslation_GWT$ReventlessGwt.Make({
24
- name: ImportProduct$CatalogPlugin.name,
25
- externalInputSchema: ImportProduct$CatalogPlugin.externalInputSchema,
26
- commandSchema: ImportProduct$CatalogPlugin.commandSchema,
27
- translate: ImportProduct_Translation$CatalogPlugin.translate
16
+ commandAuthorization: ImportProduct$CatalogPlugin.commandAuthorization
17
+ })({
18
+ translate: ImportProduct_Translation$CatalogPlugin.translate,
19
+ moduleUrl: ImportProduct_Translation$CatalogPlugin.moduleUrl
28
20
  });
29
21
 
30
22
  let describe = include.describe;
@@ -33,10 +25,14 @@ let test = include.test;
33
25
 
34
26
  let whenInput = include.whenInput;
35
27
 
28
+ let whenReceived = include.whenReceived;
29
+
36
30
  let thenCommand = include.thenCommand;
37
31
 
38
32
  let thenTranslateError = include.thenTranslateError;
39
33
 
34
+ let thenRefusedInput = include.thenRefusedInput;
35
+
40
36
  describe("ImportProduct InboundTranslationSlice", () => {
41
37
  test("USD payload translates to AddProduct command", () => thenCommand(whenInput({
42
38
  sku: Catalog_Examples$CatalogPlugin.sku,
@@ -72,26 +68,37 @@ describe("ImportProduct InboundTranslationSlice", () => {
72
68
  unitPrice: 100,
73
69
  currency: Catalog_Examples$CatalogPlugin.usd
74
70
  }), "SKU is required"));
71
+ test("a payload missing its title is refused before translation", () => thenRefusedInput(whenReceived(JSON.parse(`{"sku": "SKU-1"}`)), "title"));
75
72
  });
76
73
 
77
- let Spec = include.Spec;
74
+ let encPairs = include.encPairs;
75
+
76
+ let describeOther = include.describeOther;
77
+
78
+ let roundTrips = include.roundTrips;
78
79
 
79
80
  let thenCommands = include.thenCommands;
80
81
 
81
82
  let thenNoCommand = include.thenNoCommand;
82
83
 
84
+ let thenNotUnderstood = include.thenNotUnderstood;
85
+
83
86
  let pid = ProductId$CatalogSpec.make;
84
87
 
85
88
  export {
86
- ImportProductSlice,
87
- Spec,
88
89
  describe,
89
90
  test,
91
+ encPairs,
90
92
  whenInput,
93
+ whenReceived,
94
+ describeOther,
95
+ roundTrips,
91
96
  thenCommands,
92
97
  thenCommand,
93
98
  thenNoCommand,
99
+ thenNotUnderstood,
94
100
  thenTranslateError,
101
+ thenRefusedInput,
95
102
  pid,
96
103
  }
97
104
  /* include Not a pure module */
@@ -1,2 +1,2 @@
1
- #Start(1791480367060)
2
- #Done(1791480370159)
1
+ #Start(1791641990335)
2
+ #Done(1791641993217)
Binary file
Binary file
@@ -1,13 +1,3 @@
1
- // `InboundTranslation_GWT.Make` expects a single SliceSpec carrying both the
2
- // types (from the spec file) and the `translate` function (from the body
3
- // file). The split-form production layout doesn't expose them as one module,
4
- // so we compose them locally before handing the result to the DSL.
5
-
6
- module ImportProductSlice = {
7
- include ImportProduct
8
- let translate = ImportProduct_Translation.translate
9
- }
10
-
11
1
  @@reventless.gwt
12
2
 
13
3
  open Catalog_Examples
@@ -61,4 +51,9 @@ describe("ImportProduct InboundTranslationSlice", () => {
61
51
  currency: usd,
62
52
  })->thenTranslateError("SKU is required")
63
53
  )
54
+
55
+ // A payload the feed's contract does not describe never reaches `translate`.
56
+ test("a payload missing its title is refused before translation", () =>
57
+ whenReceived(JSON.parseOrThrow(`{"sku": "SKU-1"}`))->thenRefusedInput("title")
58
+ )
64
59
  })
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/online-shop-dcb-catalog",
3
- "version": "1.0.0-alpha.274",
3
+ "version": "1.0.0-alpha.275",
4
4
  "description": "Online Shop example — Catalog bounded context (Product & Category) using the DCB pattern",
5
5
  "license": "Apache-2.0",
6
6
  "jest": {
@@ -21,13 +21,13 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "sury": "11.0.0",
24
- "@reventlessdev/online-shop-dcb-catalog-spec": "1.0.0-alpha.160",
25
- "@reventlessdev/online-shop-dcb-ordering-spec": "1.0.0-alpha.160",
24
+ "@reventlessdev/online-shop-dcb-catalog-spec": "1.0.0-alpha.161",
26
25
  "@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.23",
27
- "@reventlessdev/reventless-gwt": "1.0.0-alpha.238",
28
- "@reventlessdev/reventless-infra": "3.0.0-alpha.188",
29
- "@reventlessdev/reventless-local": "3.0.0-alpha.281",
30
- "@reventlessdev/reventless-spec": "3.0.0-alpha.160"
26
+ "@reventlessdev/online-shop-dcb-ordering-spec": "1.0.0-alpha.161",
27
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.189",
28
+ "@reventlessdev/reventless-gwt": "1.0.0-alpha.239",
29
+ "@reventlessdev/reventless-local": "3.0.0-alpha.282",
30
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.161"
31
31
  },
32
32
  "devDependencies": {
33
33
  "rescript": "12.3.1",
@@ -282,8 +282,7 @@ function Make(Platform) {
282
282
  commandSchema: ImportProduct$CatalogPlugin.commandSchema,
283
283
  targetName: ImportProduct$CatalogPlugin.targetName,
284
284
  externalSystem: ImportProduct$CatalogPlugin.externalSystem,
285
- commandAuthorization: ImportProduct$CatalogPlugin.commandAuthorization,
286
- commandTransition: ImportProduct$CatalogPlugin.commandTransition
285
+ commandAuthorization: ImportProduct$CatalogPlugin.commandAuthorization
287
286
  })({
288
287
  translate: ImportProduct_Translation$CatalogPlugin.translate,
289
288
  moduleUrl: ImportProduct_Translation$CatalogPlugin.moduleUrl
@@ -24,10 +24,6 @@ function commandAuthorization(param) {
24
24
  return "AllowAuthenticated";
25
25
  }
26
26
 
27
- function commandTransition(param) {
28
- return "Undeclared";
29
- }
30
-
31
27
  let traits = [];
32
28
 
33
29
  let name = "ImportProduct";
@@ -49,7 +45,6 @@ export {
49
45
  externalSystem,
50
46
  moduleUrl,
51
47
  commandAuthorization,
52
- commandTransition,
53
48
  traits,
54
49
  }
55
50
  /* externalInputSchema Not a pure module */
@@ -1,13 +1,3 @@
1
- // `InboundTranslation_GWT.Make` expects a single SliceSpec carrying both the
2
- // types (from the spec file) and the `translate` function (from the body
3
- // file). The split-form production layout doesn't expose them as one module,
4
- // so we compose them locally before handing the result to the DSL.
5
-
6
- module ImportProductSlice = {
7
- include ImportProduct
8
- let translate = ImportProduct_Translation.translate
9
- }
10
-
11
1
  @@reventless.gwt
12
2
 
13
3
  open Catalog_Examples
@@ -61,4 +51,9 @@ describe("ImportProduct InboundTranslationSlice", () => {
61
51
  currency: usd,
62
52
  })->thenTranslateError("SKU is required")
63
53
  )
54
+
55
+ // A payload the feed's contract does not describe never reaches `translate`.
56
+ test("a payload missing its title is refused before translation", () =>
57
+ whenReceived(JSON.parseOrThrow(`{"sku": "SKU-1"}`))->thenRefusedInput("title")
58
+ )
64
59
  })
@@ -6,25 +6,17 @@ import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs"
6
6
  import * as InboundTranslation_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/InboundTranslation_GWT.res.mjs";
7
7
  import * as ImportProduct_Translation$CatalogPlugin from "../../../src/Product/InboundTranslation/ImportProduct_Translation.res.mjs";
8
8
 
9
- let ImportProductSlice = {
9
+ let include = InboundTranslation_GWT$ReventlessGwt.FromSlice({
10
10
  name: ImportProduct$CatalogPlugin.name,
11
- Id: ImportProduct$CatalogPlugin.Id,
11
+ moduleUrl: ImportProduct$CatalogPlugin.moduleUrl,
12
12
  externalInputSchema: ImportProduct$CatalogPlugin.externalInputSchema,
13
13
  commandSchema: ImportProduct$CatalogPlugin.commandSchema,
14
14
  targetName: ImportProduct$CatalogPlugin.targetName,
15
15
  externalSystem: ImportProduct$CatalogPlugin.externalSystem,
16
- moduleUrl: ImportProduct$CatalogPlugin.moduleUrl,
17
- commandAuthorization: ImportProduct$CatalogPlugin.commandAuthorization,
18
- commandTransition: ImportProduct$CatalogPlugin.commandTransition,
19
- traits: ImportProduct$CatalogPlugin.traits,
20
- translate: ImportProduct_Translation$CatalogPlugin.translate
21
- };
22
-
23
- let include = InboundTranslation_GWT$ReventlessGwt.Make({
24
- name: ImportProduct$CatalogPlugin.name,
25
- externalInputSchema: ImportProduct$CatalogPlugin.externalInputSchema,
26
- commandSchema: ImportProduct$CatalogPlugin.commandSchema,
27
- translate: ImportProduct_Translation$CatalogPlugin.translate
16
+ commandAuthorization: ImportProduct$CatalogPlugin.commandAuthorization
17
+ })({
18
+ translate: ImportProduct_Translation$CatalogPlugin.translate,
19
+ moduleUrl: ImportProduct_Translation$CatalogPlugin.moduleUrl
28
20
  });
29
21
 
30
22
  let describe = include.describe;
@@ -33,10 +25,14 @@ let test = include.test;
33
25
 
34
26
  let whenInput = include.whenInput;
35
27
 
28
+ let whenReceived = include.whenReceived;
29
+
36
30
  let thenCommand = include.thenCommand;
37
31
 
38
32
  let thenTranslateError = include.thenTranslateError;
39
33
 
34
+ let thenRefusedInput = include.thenRefusedInput;
35
+
40
36
  describe("ImportProduct InboundTranslationSlice", () => {
41
37
  test("USD payload translates to AddProduct command", () => thenCommand(whenInput({
42
38
  sku: Catalog_Examples$CatalogPlugin.sku,
@@ -72,26 +68,37 @@ describe("ImportProduct InboundTranslationSlice", () => {
72
68
  unitPrice: 100,
73
69
  currency: Catalog_Examples$CatalogPlugin.usd
74
70
  }), "SKU is required"));
71
+ test("a payload missing its title is refused before translation", () => thenRefusedInput(whenReceived(JSON.parse(`{"sku": "SKU-1"}`)), "title"));
75
72
  });
76
73
 
77
- let Spec = include.Spec;
74
+ let encPairs = include.encPairs;
75
+
76
+ let describeOther = include.describeOther;
77
+
78
+ let roundTrips = include.roundTrips;
78
79
 
79
80
  let thenCommands = include.thenCommands;
80
81
 
81
82
  let thenNoCommand = include.thenNoCommand;
82
83
 
84
+ let thenNotUnderstood = include.thenNotUnderstood;
85
+
83
86
  let pid = ProductId$CatalogSpec.make;
84
87
 
85
88
  export {
86
- ImportProductSlice,
87
- Spec,
88
89
  describe,
89
90
  test,
91
+ encPairs,
90
92
  whenInput,
93
+ whenReceived,
94
+ describeOther,
95
+ roundTrips,
91
96
  thenCommands,
92
97
  thenCommand,
93
98
  thenNoCommand,
99
+ thenNotUnderstood,
94
100
  thenTranslateError,
101
+ thenRefusedInput,
95
102
  pid,
96
103
  }
97
104
  /* include Not a pure module */