@reventlessdev/online-shop-dcb-catalog 1.0.0-alpha.291 → 1.0.0-alpha.292

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 (217) 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/Category/CategoryId-CatalogPlugin.cmi +0 -0
  5. package/lib/bs/src/Category/CategoryId-CatalogPlugin.cmt +0 -0
  6. package/lib/bs/src/Category/StateChange/AddCategory-CatalogPlugin.cmi +0 -0
  7. package/lib/bs/src/Category/StateChange/AddCategory-CatalogPlugin.cmt +0 -0
  8. package/lib/bs/src/Category/StateChange/AddCategory_Decision-CatalogPlugin.cmi +0 -0
  9. package/lib/bs/src/Category/StateChange/AddCategory_Decision-CatalogPlugin.cmt +0 -0
  10. package/lib/bs/src/Category/StateChange/ArchiveCategory-CatalogPlugin.cmi +0 -0
  11. package/lib/bs/src/Category/StateChange/ArchiveCategory-CatalogPlugin.cmt +0 -0
  12. package/lib/bs/src/Category/StateChange/ArchiveCategory_Decision-CatalogPlugin.cmi +0 -0
  13. package/lib/bs/src/Category/StateChange/ArchiveCategory_Decision-CatalogPlugin.cmt +0 -0
  14. package/lib/bs/src/Category/StateChange/RenameCategory-CatalogPlugin.cmi +0 -0
  15. package/lib/bs/src/Category/StateChange/RenameCategory-CatalogPlugin.cmt +0 -0
  16. package/lib/bs/src/Category/StateChange/RenameCategory_Decision-CatalogPlugin.cmi +0 -0
  17. package/lib/bs/src/Category/StateChange/RenameCategory_Decision-CatalogPlugin.cmt +0 -0
  18. package/lib/bs/src/Category/StateView/Categories-CatalogPlugin.cmi +0 -0
  19. package/lib/bs/src/Category/StateView/Categories-CatalogPlugin.cmt +0 -0
  20. package/lib/bs/src/Category/StateView/Categories_Projection-CatalogPlugin.cmi +0 -0
  21. package/lib/bs/src/Category/StateView/Categories_Projection-CatalogPlugin.cmt +0 -0
  22. package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity-CatalogPlugin.cmi +0 -0
  23. package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity-CatalogPlugin.cmt +0 -0
  24. package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity_Projections-CatalogPlugin.cmi +0 -0
  25. package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity_Projections-CatalogPlugin.cmt +0 -0
  26. package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmi +0 -0
  27. package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmt +0 -0
  28. package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
  29. package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
  30. package/lib/bs/src/LifecycleModel-CatalogPlugin.cmi +0 -0
  31. package/lib/bs/src/LifecycleModel-CatalogPlugin.cmt +0 -0
  32. package/lib/bs/src/Plugin-CatalogPlugin.cmi +0 -0
  33. package/lib/bs/src/Plugin-CatalogPlugin.cmt +0 -0
  34. package/lib/bs/src/Plugin.res.mjs +3 -2
  35. package/lib/bs/src/Product/InboundTranslation/ImportProduct-CatalogPlugin.cmi +0 -0
  36. package/lib/bs/src/Product/InboundTranslation/ImportProduct-CatalogPlugin.cmt +0 -0
  37. package/lib/bs/src/Product/InboundTranslation/ImportProduct.ast +0 -0
  38. package/lib/bs/src/Product/InboundTranslation/ImportProduct.res +3 -0
  39. package/lib/bs/src/Product/InboundTranslation/ImportProduct.res.mjs +3 -0
  40. package/lib/bs/src/Product/InboundTranslation/ImportProduct_Translation-CatalogPlugin.cmi +0 -0
  41. package/lib/bs/src/Product/InboundTranslation/ImportProduct_Translation-CatalogPlugin.cmj +0 -0
  42. package/lib/bs/src/Product/InboundTranslation/ImportProduct_Translation-CatalogPlugin.cmt +0 -0
  43. package/lib/bs/src/Product/InboundTranslation/ImportProduct_Translation.ast +0 -0
  44. package/lib/bs/src/Product/InboundTranslation/ImportProduct_Translation.res +1 -1
  45. package/lib/bs/src/Product/InboundTranslation/ImportProduct_Translation.res.mjs +1 -1
  46. package/lib/bs/src/Product/StateChange/AddProduct-CatalogPlugin.cmi +0 -0
  47. package/lib/bs/src/Product/StateChange/AddProduct-CatalogPlugin.cmt +0 -0
  48. package/lib/bs/src/Product/StateChange/AddProduct_Decision-CatalogPlugin.cmi +0 -0
  49. package/lib/bs/src/Product/StateChange/AddProduct_Decision-CatalogPlugin.cmt +0 -0
  50. package/lib/bs/src/Product/StateChange/ChangeProductDescription-CatalogPlugin.cmi +0 -0
  51. package/lib/bs/src/Product/StateChange/ChangeProductDescription-CatalogPlugin.cmt +0 -0
  52. package/lib/bs/src/Product/StateChange/ChangeProductDescription_Decision-CatalogPlugin.cmi +0 -0
  53. package/lib/bs/src/Product/StateChange/ChangeProductDescription_Decision-CatalogPlugin.cmt +0 -0
  54. package/lib/bs/src/Product/StateChange/ChangeProductName-CatalogPlugin.cmi +0 -0
  55. package/lib/bs/src/Product/StateChange/ChangeProductName-CatalogPlugin.cmt +0 -0
  56. package/lib/bs/src/Product/StateChange/ChangeProductName_Decision-CatalogPlugin.cmi +0 -0
  57. package/lib/bs/src/Product/StateChange/ChangeProductName_Decision-CatalogPlugin.cmt +0 -0
  58. package/lib/bs/src/Product/StateChange/ChangeProductPrice-CatalogPlugin.cmi +0 -0
  59. package/lib/bs/src/Product/StateChange/ChangeProductPrice-CatalogPlugin.cmt +0 -0
  60. package/lib/bs/src/Product/StateChange/ChangeProductPrice_Decision-CatalogPlugin.cmi +0 -0
  61. package/lib/bs/src/Product/StateChange/ChangeProductPrice_Decision-CatalogPlugin.cmt +0 -0
  62. package/lib/bs/src/Product/StateView/Products-CatalogPlugin.cmi +0 -0
  63. package/lib/bs/src/Product/StateView/Products-CatalogPlugin.cmt +0 -0
  64. package/lib/bs/src/Product/StateView/Products_Projection-CatalogPlugin.cmi +0 -0
  65. package/lib/bs/src/Product/StateView/Products_Projection-CatalogPlugin.cmt +0 -0
  66. package/lib/bs/src/ProductDemand/StateChange/RecordProductDemand-CatalogPlugin.cmi +0 -0
  67. package/lib/bs/src/ProductDemand/StateChange/RecordProductDemand-CatalogPlugin.cmt +0 -0
  68. package/lib/bs/src/ProductDemand/StateChange/RecordProductDemand_Decision-CatalogPlugin.cmi +0 -0
  69. package/lib/bs/src/ProductDemand/StateChange/RecordProductDemand_Decision-CatalogPlugin.cmt +0 -0
  70. package/lib/bs/src/ProductDemand/StateView/ProductDemand-CatalogPlugin.cmi +0 -0
  71. package/lib/bs/src/ProductDemand/StateView/ProductDemand-CatalogPlugin.cmt +0 -0
  72. package/lib/bs/src/ProductDemand/StateView/ProductDemand_Projection-CatalogPlugin.cmi +0 -0
  73. package/lib/bs/src/ProductDemand/StateView/ProductDemand_Projection-CatalogPlugin.cmt +0 -0
  74. package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmi +0 -0
  75. package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmt +0 -0
  76. package/lib/bs/tests/Catalog_Examples-CatalogPlugin.cmi +0 -0
  77. package/lib/bs/tests/Catalog_Examples-CatalogPlugin.cmt +0 -0
  78. package/lib/bs/tests/Category/StateChange/AddCategory_GWT-CatalogPlugin.cmi +0 -0
  79. package/lib/bs/tests/Category/StateChange/AddCategory_GWT-CatalogPlugin.cmt +0 -0
  80. package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT-CatalogPlugin.cmi +0 -0
  81. package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT-CatalogPlugin.cmt +0 -0
  82. package/lib/bs/tests/Category/StateChange/RenameCategory_GWT-CatalogPlugin.cmi +0 -0
  83. package/lib/bs/tests/Category/StateChange/RenameCategory_GWT-CatalogPlugin.cmt +0 -0
  84. package/lib/bs/tests/Category/StateView/Categories_GWT-CatalogPlugin.cmi +0 -0
  85. package/lib/bs/tests/Category/StateView/Categories_GWT-CatalogPlugin.cmt +0 -0
  86. package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_GWT-CatalogPlugin.cmi +0 -0
  87. package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_GWT-CatalogPlugin.cmt +0 -0
  88. package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
  89. package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
  90. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
  91. package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
  92. package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT-CatalogPlugin.cmi +0 -0
  93. package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT-CatalogPlugin.cmt +0 -0
  94. package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT.res.mjs +23 -10
  95. package/lib/bs/tests/Product/StateChange/AddProduct_GWT-CatalogPlugin.cmi +0 -0
  96. package/lib/bs/tests/Product/StateChange/AddProduct_GWT-CatalogPlugin.cmt +0 -0
  97. package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT-CatalogPlugin.cmi +0 -0
  98. package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT-CatalogPlugin.cmt +0 -0
  99. package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT-CatalogPlugin.cmi +0 -0
  100. package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT-CatalogPlugin.cmt +0 -0
  101. package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT-CatalogPlugin.cmi +0 -0
  102. package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT-CatalogPlugin.cmt +0 -0
  103. package/lib/bs/tests/Product/StateView/Products_GWT-CatalogPlugin.cmi +0 -0
  104. package/lib/bs/tests/Product/StateView/Products_GWT-CatalogPlugin.cmt +0 -0
  105. package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT-CatalogPlugin.cmi +0 -0
  106. package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT-CatalogPlugin.cmt +0 -0
  107. package/lib/bs/tests/ProductDemand/StateView/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
  108. package/lib/bs/tests/ProductDemand/StateView/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
  109. package/lib/ocaml/.compiler.log +2 -2
  110. package/lib/ocaml/AddCategory-CatalogPlugin.cmi +0 -0
  111. package/lib/ocaml/AddCategory-CatalogPlugin.cmt +0 -0
  112. package/lib/ocaml/AddCategory_Decision-CatalogPlugin.cmi +0 -0
  113. package/lib/ocaml/AddCategory_Decision-CatalogPlugin.cmt +0 -0
  114. package/lib/ocaml/AddCategory_GWT-CatalogPlugin.cmi +0 -0
  115. package/lib/ocaml/AddCategory_GWT-CatalogPlugin.cmt +0 -0
  116. package/lib/ocaml/AddProduct-CatalogPlugin.cmi +0 -0
  117. package/lib/ocaml/AddProduct-CatalogPlugin.cmt +0 -0
  118. package/lib/ocaml/AddProduct_Decision-CatalogPlugin.cmi +0 -0
  119. package/lib/ocaml/AddProduct_Decision-CatalogPlugin.cmt +0 -0
  120. package/lib/ocaml/AddProduct_GWT-CatalogPlugin.cmi +0 -0
  121. package/lib/ocaml/AddProduct_GWT-CatalogPlugin.cmt +0 -0
  122. package/lib/ocaml/ArchiveCategory-CatalogPlugin.cmi +0 -0
  123. package/lib/ocaml/ArchiveCategory-CatalogPlugin.cmt +0 -0
  124. package/lib/ocaml/ArchiveCategory_Decision-CatalogPlugin.cmi +0 -0
  125. package/lib/ocaml/ArchiveCategory_Decision-CatalogPlugin.cmt +0 -0
  126. package/lib/ocaml/ArchiveCategory_GWT-CatalogPlugin.cmi +0 -0
  127. package/lib/ocaml/ArchiveCategory_GWT-CatalogPlugin.cmt +0 -0
  128. package/lib/ocaml/Catalog_Examples-CatalogPlugin.cmi +0 -0
  129. package/lib/ocaml/Catalog_Examples-CatalogPlugin.cmt +0 -0
  130. package/lib/ocaml/Categories-CatalogPlugin.cmi +0 -0
  131. package/lib/ocaml/Categories-CatalogPlugin.cmt +0 -0
  132. package/lib/ocaml/Categories_GWT-CatalogPlugin.cmi +0 -0
  133. package/lib/ocaml/Categories_GWT-CatalogPlugin.cmt +0 -0
  134. package/lib/ocaml/Categories_Projection-CatalogPlugin.cmi +0 -0
  135. package/lib/ocaml/Categories_Projection-CatalogPlugin.cmt +0 -0
  136. package/lib/ocaml/CategoryActivity-CatalogPlugin.cmi +0 -0
  137. package/lib/ocaml/CategoryActivity-CatalogPlugin.cmt +0 -0
  138. package/lib/ocaml/CategoryActivity_GWT-CatalogPlugin.cmi +0 -0
  139. package/lib/ocaml/CategoryActivity_GWT-CatalogPlugin.cmt +0 -0
  140. package/lib/ocaml/CategoryActivity_Projections-CatalogPlugin.cmi +0 -0
  141. package/lib/ocaml/CategoryActivity_Projections-CatalogPlugin.cmt +0 -0
  142. package/lib/ocaml/CategoryId-CatalogPlugin.cmi +0 -0
  143. package/lib/ocaml/CategoryId-CatalogPlugin.cmt +0 -0
  144. package/lib/ocaml/ChangeProductDescription-CatalogPlugin.cmi +0 -0
  145. package/lib/ocaml/ChangeProductDescription-CatalogPlugin.cmt +0 -0
  146. package/lib/ocaml/ChangeProductDescription_Decision-CatalogPlugin.cmi +0 -0
  147. package/lib/ocaml/ChangeProductDescription_Decision-CatalogPlugin.cmt +0 -0
  148. package/lib/ocaml/ChangeProductDescription_GWT-CatalogPlugin.cmi +0 -0
  149. package/lib/ocaml/ChangeProductDescription_GWT-CatalogPlugin.cmt +0 -0
  150. package/lib/ocaml/ChangeProductName-CatalogPlugin.cmi +0 -0
  151. package/lib/ocaml/ChangeProductName-CatalogPlugin.cmt +0 -0
  152. package/lib/ocaml/ChangeProductName_Decision-CatalogPlugin.cmi +0 -0
  153. package/lib/ocaml/ChangeProductName_Decision-CatalogPlugin.cmt +0 -0
  154. package/lib/ocaml/ChangeProductName_GWT-CatalogPlugin.cmi +0 -0
  155. package/lib/ocaml/ChangeProductName_GWT-CatalogPlugin.cmt +0 -0
  156. package/lib/ocaml/ChangeProductPrice-CatalogPlugin.cmi +0 -0
  157. package/lib/ocaml/ChangeProductPrice-CatalogPlugin.cmt +0 -0
  158. package/lib/ocaml/ChangeProductPrice_Decision-CatalogPlugin.cmi +0 -0
  159. package/lib/ocaml/ChangeProductPrice_Decision-CatalogPlugin.cmt +0 -0
  160. package/lib/ocaml/ChangeProductPrice_GWT-CatalogPlugin.cmi +0 -0
  161. package/lib/ocaml/ChangeProductPrice_GWT-CatalogPlugin.cmt +0 -0
  162. package/lib/ocaml/ImportProduct-CatalogPlugin.cmi +0 -0
  163. package/lib/ocaml/ImportProduct-CatalogPlugin.cmt +0 -0
  164. package/lib/ocaml/ImportProduct.ast +0 -0
  165. package/lib/ocaml/ImportProduct.res +3 -0
  166. package/lib/ocaml/ImportProduct_GWT-CatalogPlugin.cmi +0 -0
  167. package/lib/ocaml/ImportProduct_GWT-CatalogPlugin.cmt +0 -0
  168. package/lib/ocaml/ImportProduct_Translation-CatalogPlugin.cmi +0 -0
  169. package/lib/ocaml/ImportProduct_Translation-CatalogPlugin.cmj +0 -0
  170. package/lib/ocaml/ImportProduct_Translation-CatalogPlugin.cmt +0 -0
  171. package/lib/ocaml/ImportProduct_Translation.ast +0 -0
  172. package/lib/ocaml/ImportProduct_Translation.res +1 -1
  173. package/lib/ocaml/ImportProducts-CatalogPlugin.cmi +0 -0
  174. package/lib/ocaml/ImportProducts-CatalogPlugin.cmt +0 -0
  175. package/lib/ocaml/LifecycleModel-CatalogPlugin.cmi +0 -0
  176. package/lib/ocaml/LifecycleModel-CatalogPlugin.cmt +0 -0
  177. package/lib/ocaml/Orders_Extension-CatalogPlugin.cmi +0 -0
  178. package/lib/ocaml/Orders_Extension-CatalogPlugin.cmt +0 -0
  179. package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
  180. package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
  181. package/lib/ocaml/Plugin-CatalogPlugin.cmi +0 -0
  182. package/lib/ocaml/Plugin-CatalogPlugin.cmt +0 -0
  183. package/lib/ocaml/ProductDemand-CatalogPlugin.cmi +0 -0
  184. package/lib/ocaml/ProductDemand-CatalogPlugin.cmt +0 -0
  185. package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
  186. package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
  187. package/lib/ocaml/ProductDemand_Projection-CatalogPlugin.cmi +0 -0
  188. package/lib/ocaml/ProductDemand_Projection-CatalogPlugin.cmt +0 -0
  189. package/lib/ocaml/Products-CatalogPlugin.cmi +0 -0
  190. package/lib/ocaml/Products-CatalogPlugin.cmt +0 -0
  191. package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
  192. package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
  193. package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
  194. package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
  195. package/lib/ocaml/Products_GWT-CatalogPlugin.cmi +0 -0
  196. package/lib/ocaml/Products_GWT-CatalogPlugin.cmt +0 -0
  197. package/lib/ocaml/Products_Projection-CatalogPlugin.cmi +0 -0
  198. package/lib/ocaml/Products_Projection-CatalogPlugin.cmt +0 -0
  199. package/lib/ocaml/RecordProductDemand-CatalogPlugin.cmi +0 -0
  200. package/lib/ocaml/RecordProductDemand-CatalogPlugin.cmt +0 -0
  201. package/lib/ocaml/RecordProductDemand_Decision-CatalogPlugin.cmi +0 -0
  202. package/lib/ocaml/RecordProductDemand_Decision-CatalogPlugin.cmt +0 -0
  203. package/lib/ocaml/RecordProductDemand_GWT-CatalogPlugin.cmi +0 -0
  204. package/lib/ocaml/RecordProductDemand_GWT-CatalogPlugin.cmt +0 -0
  205. package/lib/ocaml/RenameCategory-CatalogPlugin.cmi +0 -0
  206. package/lib/ocaml/RenameCategory-CatalogPlugin.cmt +0 -0
  207. package/lib/ocaml/RenameCategory_Decision-CatalogPlugin.cmi +0 -0
  208. package/lib/ocaml/RenameCategory_Decision-CatalogPlugin.cmt +0 -0
  209. package/lib/ocaml/RenameCategory_GWT-CatalogPlugin.cmi +0 -0
  210. package/lib/ocaml/RenameCategory_GWT-CatalogPlugin.cmt +0 -0
  211. package/package.json +7 -7
  212. package/src/Plugin.res.mjs +3 -2
  213. package/src/Product/InboundTranslation/ImportProduct.res +3 -0
  214. package/src/Product/InboundTranslation/ImportProduct.res.mjs +3 -0
  215. package/src/Product/InboundTranslation/ImportProduct_Translation.res +1 -1
  216. package/src/Product/InboundTranslation/ImportProduct_Translation.res.mjs +1 -1
  217. package/tests/Product/InboundTranslation/ImportProduct_GWT.res.mjs +23 -10
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.292 (2026-10-25)
7
+
8
+ * feat!: an inbound translation is async and handed the platform's capabilities, and its audit row withholds sensitive fields ([dae6049](https://github.com/ReventlessDev/reventless-core/commit/dae6049e084f81408a494a2cd2011ec564dda65c))
9
+ ### Features
10
+
11
+ * a plugin declares per role how a person is admitted, and the local platform honors the self-service and provisioned halves ([9c37bf5](https://github.com/ReventlessDev/reventless-core/commit/9c37bf50f15cac1703bf2c351713518121a56211))
12
+
13
+ ### BREAKING CHANGES
14
+
15
+ * an inbound translation's translate takes ~capabilities and
16
+ returns a promise, and its spec must declare capabilityNeeds ([] for one that
17
+ only maps input). FromSlice steps return promises.
18
+
19
+
20
+
6
21
  # 1.0.0-alpha.291 (2026-10-23)
7
22
 
8
23
  **Note:** Version bump only for package @reventlessdev/online-shop-dcb-catalog
@@ -1,2 +1,2 @@
1
- #Start(1792749589310)
2
- #Done(1792749592581)
1
+ #Start(1792931540237)
2
+ #Done(1792931542510)
@@ -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": "1792749592582"
7
+ "generated_at": "1792931542524"
8
8
  }
Binary file
Binary file
@@ -283,7 +283,8 @@ function Make(Platform) {
283
283
  targetName: ImportProduct$CatalogPlugin.targetName,
284
284
  externalSystem: ImportProduct$CatalogPlugin.externalSystem,
285
285
  authorizationOf: ImportProduct$CatalogPlugin.authorizationOf,
286
- endpoint: ImportProduct$CatalogPlugin.endpoint
286
+ endpoint: ImportProduct$CatalogPlugin.endpoint,
287
+ capabilityNeeds: ImportProduct$CatalogPlugin.capabilityNeeds
287
288
  })({
288
289
  translate: ImportProduct_Translation$CatalogPlugin.translate,
289
290
  moduleUrl: ImportProduct_Translation$CatalogPlugin.moduleUrl
@@ -447,7 +448,7 @@ function Make(Platform) {
447
448
  "RenameCategory",
448
449
  "Category"
449
450
  ]
450
- ]), LifecycleModel$CatalogPlugin.model, [CategoryId$CatalogPlugin.key]);
451
+ ]), LifecycleModel$CatalogPlugin.model, [CategoryId$CatalogPlugin.key], undefined, undefined);
451
452
  let make = () => Platform.Plugin.make("Catalog", 5, [Products_ExtensionPoint], [Orders_Extension], undefined, [CategoryActivityReadModel], [ImportProductsTask], [
452
453
  AddCategorySlice,
453
454
  AddProductSlice,
@@ -24,6 +24,9 @@ let targetName = "AddProduct"
24
24
  // external box outside the Catalog plugin in the Event Graph.
25
25
  let externalSystem = Some("SupplierFeed")
26
26
 
27
+ // A feed is only mapped, so nothing is provisioned on its behalf.
28
+ let capabilityNeeds: array<Reventless.CapabilityNeed.t> = []
29
+
27
30
  // The supplier signs each post with the secret `supplierFeed`
28
31
  // (`pulumi config set --secret webhook:supplierFeed …` on AWS,
29
32
  // `REVENTLESS_WEBHOOK_SECRET_SUPPLIERFEED` locally); a signed post acts as Admin.
@@ -20,6 +20,8 @@ let commandSchema = Sury.$schema(s => ({
20
20
  price: s.m(Sury.number)
21
21
  }));
22
22
 
23
+ let capabilityNeeds = [];
24
+
23
25
  function authorizationOf(param) {
24
26
  return {
25
27
  TAG: "AllowRoles",
@@ -60,6 +62,7 @@ export {
60
62
  commandSchema,
61
63
  targetName,
62
64
  externalSystem,
65
+ capabilityNeeds,
63
66
  endpoint,
64
67
  moduleUrl,
65
68
  authorizationOf,
@@ -1,6 +1,6 @@
1
1
  @@reventless.translation
2
2
 
3
- let translate = input =>
3
+ let translate = async (input, ~capabilities as _, ~caller as _) =>
4
4
  if input.currency !== "USD" {
5
5
  Error("Unsupported currency: " ++ input.currency)
6
6
  } else if input.unitPrice <= 0 {
@@ -2,7 +2,7 @@
2
2
 
3
3
  import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-dcb-catalog-spec/src/ProductId.res.mjs";
4
4
 
5
- function translate(input) {
5
+ async function translate(input, param, param$1) {
6
6
  if (input.currency !== "USD") {
7
7
  return {
8
8
  TAG: "Error",
@@ -14,7 +14,8 @@ let include = InboundTranslation_GWT$ReventlessGwt.FromSlice({
14
14
  targetName: ImportProduct$CatalogPlugin.targetName,
15
15
  externalSystem: ImportProduct$CatalogPlugin.externalSystem,
16
16
  authorizationOf: ImportProduct$CatalogPlugin.authorizationOf,
17
- endpoint: ImportProduct$CatalogPlugin.endpoint
17
+ endpoint: ImportProduct$CatalogPlugin.endpoint,
18
+ capabilityNeeds: ImportProduct$CatalogPlugin.capabilityNeeds
18
19
  })({
19
20
  translate: ImportProduct_Translation$CatalogPlugin.translate,
20
21
  moduleUrl: ImportProduct_Translation$CatalogPlugin.moduleUrl
@@ -35,45 +36,49 @@ let thenTranslateError = include.thenTranslateError;
35
36
  let thenRefusedInput = include.thenRefusedInput;
36
37
 
37
38
  describe("ImportProduct InboundTranslationSlice", () => {
38
- test("USD payload translates to AddProduct command", () => thenCommand(whenInput({
39
+ test("USD payload translates to AddProduct command", undefined, () => thenCommand(whenInput({
39
40
  sku: Catalog_Examples$CatalogPlugin.sku,
40
41
  title: Catalog_Examples$CatalogPlugin.laptop,
41
42
  desc: Catalog_Examples$CatalogPlugin.highEnd,
42
43
  unitPrice: 99999,
43
44
  currency: Catalog_Examples$CatalogPlugin.usd
44
- }), "p-1", {
45
+ }, undefined, undefined), "p-1", {
45
46
  TAG: "AddProduct",
46
47
  productId: ProductId$CatalogSpec.make("p-1"),
47
48
  name: Catalog_Examples$CatalogPlugin.laptop,
48
49
  description: Catalog_Examples$CatalogPlugin.highEnd,
49
50
  price: 999.99
50
51
  }));
51
- test("non-USD currency surfaces a translate error", () => thenTranslateError(whenInput({
52
+ test("non-USD currency surfaces a translate error", undefined, () => thenTranslateError(whenInput({
52
53
  sku: Catalog_Examples$CatalogPlugin.sku,
53
54
  title: Catalog_Examples$CatalogPlugin.laptop,
54
55
  desc: Catalog_Examples$CatalogPlugin.anyDescription,
55
56
  unitPrice: 1,
56
57
  currency: "EUR"
57
- }), "Unsupported currency: EUR"));
58
- test("non-positive price surfaces a translate error", () => thenTranslateError(whenInput({
58
+ }, undefined, undefined), "Unsupported currency: EUR"));
59
+ test("non-positive price surfaces a translate error", undefined, () => thenTranslateError(whenInput({
59
60
  sku: Catalog_Examples$CatalogPlugin.sku,
60
61
  title: Catalog_Examples$CatalogPlugin.laptop,
61
62
  desc: Catalog_Examples$CatalogPlugin.anyDescription,
62
63
  unitPrice: 0,
63
64
  currency: Catalog_Examples$CatalogPlugin.usd
64
- }), "Price must be positive"));
65
- test("empty SKU surfaces a translate error", () => thenTranslateError(whenInput({
65
+ }, undefined, undefined), "Price must be positive"));
66
+ test("empty SKU surfaces a translate error", undefined, () => thenTranslateError(whenInput({
66
67
  sku: "",
67
68
  title: Catalog_Examples$CatalogPlugin.laptop,
68
69
  desc: Catalog_Examples$CatalogPlugin.anyDescription,
69
70
  unitPrice: 100,
70
71
  currency: Catalog_Examples$CatalogPlugin.usd
71
- }), "SKU is required"));
72
- test("a payload missing its title is refused before translation", () => thenRefusedInput(whenReceived(JSON.parse(`{"sku": "SKU-1"}`)), "title"));
72
+ }, undefined, undefined), "SKU is required"));
73
+ test("a payload missing its title is refused before translation", undefined, () => thenRefusedInput(whenReceived(JSON.parse(`{"sku": "SKU-1"}`), undefined, undefined), "title"));
73
74
  });
74
75
 
76
+ let fakes = include.fakes;
77
+
75
78
  let encPairs = include.encPairs;
76
79
 
80
+ let errorOf = include.errorOf;
81
+
77
82
  let describeOther = include.describeOther;
78
83
 
79
84
  let roundTrips = include.roundTrips;
@@ -84,12 +89,18 @@ let thenNoCommand = include.thenNoCommand;
84
89
 
85
90
  let thenNotUnderstood = include.thenNotUnderstood;
86
91
 
92
+ let thenSent = include.thenSent;
93
+
94
+ let thenNothingSent = include.thenNothingSent;
95
+
87
96
  let pid = ProductId$CatalogSpec.make;
88
97
 
89
98
  export {
90
99
  describe,
91
100
  test,
101
+ fakes,
92
102
  encPairs,
103
+ errorOf,
93
104
  whenInput,
94
105
  whenReceived,
95
106
  describeOther,
@@ -100,6 +111,8 @@ export {
100
111
  thenNotUnderstood,
101
112
  thenTranslateError,
102
113
  thenRefusedInput,
114
+ thenSent,
115
+ thenNothingSent,
103
116
  pid,
104
117
  }
105
118
  /* include Not a pure module */
@@ -1,2 +1,2 @@
1
- #Start(1792749589310)
2
- #Done(1792749592581)
1
+ #Start(1792931540237)
2
+ #Done(1792931542510)