@reventlessdev/online-shop-dcb-ordering 1.0.0-alpha.302 → 1.0.0-alpha.303

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 (275) hide show
  1. package/CHANGELOG.md +7 -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_Decision-OrderingPlugin.cmi +0 -0
  7. package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Decision-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.ast +0 -0
  15. package/lib/bs/src/Customer/StateChange/ChangeAddress.res +4 -4
  16. package/lib/bs/src/Customer/StateChange/ChangeAddress.res.mjs +5 -4
  17. package/lib/bs/src/Customer/StateChange/ChangeAddress_Decision-OrderingPlugin.cmi +0 -0
  18. package/lib/bs/src/Customer/StateChange/ChangeAddress_Decision-OrderingPlugin.cmj +0 -0
  19. package/lib/bs/src/Customer/StateChange/ChangeAddress_Decision-OrderingPlugin.cmt +0 -0
  20. package/lib/bs/src/Customer/StateChange/ChangeAddress_Decision.ast +0 -0
  21. package/lib/bs/src/Customer/StateChange/ChangeAddress_Decision.res +4 -3
  22. package/lib/bs/src/Customer/StateChange/ChangeAddress_Decision.res.mjs +8 -4
  23. package/lib/bs/src/Customer/StateChange/ChangeEmail-OrderingPlugin.cmi +0 -0
  24. package/lib/bs/src/Customer/StateChange/ChangeEmail-OrderingPlugin.cmt +0 -0
  25. package/lib/bs/src/Customer/StateChange/ChangeEmail.ast +0 -0
  26. package/lib/bs/src/Customer/StateChange/ChangeEmail.res +4 -4
  27. package/lib/bs/src/Customer/StateChange/ChangeEmail.res.mjs +5 -4
  28. package/lib/bs/src/Customer/StateChange/ChangeEmail_Decision-OrderingPlugin.cmi +0 -0
  29. package/lib/bs/src/Customer/StateChange/ChangeEmail_Decision-OrderingPlugin.cmj +0 -0
  30. package/lib/bs/src/Customer/StateChange/ChangeEmail_Decision-OrderingPlugin.cmt +0 -0
  31. package/lib/bs/src/Customer/StateChange/ChangeEmail_Decision.ast +0 -0
  32. package/lib/bs/src/Customer/StateChange/ChangeEmail_Decision.res +8 -3
  33. package/lib/bs/src/Customer/StateChange/ChangeEmail_Decision.res.mjs +8 -4
  34. package/lib/bs/src/Customer/StateChange/DeactivateCustomer-OrderingPlugin.cmi +0 -0
  35. package/lib/bs/src/Customer/StateChange/DeactivateCustomer-OrderingPlugin.cmt +0 -0
  36. package/lib/bs/src/Customer/StateChange/DeactivateCustomer_Decision-OrderingPlugin.cmi +0 -0
  37. package/lib/bs/src/Customer/StateChange/DeactivateCustomer_Decision-OrderingPlugin.cmt +0 -0
  38. package/lib/bs/src/Customer/StateChange/RegisterCustomer-OrderingPlugin.cmi +0 -0
  39. package/lib/bs/src/Customer/StateChange/RegisterCustomer-OrderingPlugin.cmt +0 -0
  40. package/lib/bs/src/Customer/StateChange/RegisterCustomer.ast +0 -0
  41. package/lib/bs/src/Customer/StateChange/RegisterCustomer.res +12 -2
  42. package/lib/bs/src/Customer/StateChange/RegisterCustomer.res.mjs +5 -4
  43. package/lib/bs/src/Customer/StateChange/RegisterCustomer_Decision-OrderingPlugin.cmi +0 -0
  44. package/lib/bs/src/Customer/StateChange/RegisterCustomer_Decision-OrderingPlugin.cmt +0 -0
  45. package/lib/bs/src/Customer/StateChange/RegisterCustomer_Decision.ast +0 -0
  46. package/lib/bs/src/Customer/StateChange/RegisterCustomer_Decision.res +1 -1
  47. package/lib/bs/src/Customer/StateChange/RegisterCustomer_Decision.res.mjs +8 -2
  48. package/lib/bs/src/Customer/StateView/Customers-OrderingPlugin.cmi +0 -0
  49. package/lib/bs/src/Customer/StateView/Customers-OrderingPlugin.cmt +0 -0
  50. package/lib/bs/src/Customer/StateView/Customers.ast +0 -0
  51. package/lib/bs/src/Customer/StateView/Customers.res +3 -3
  52. package/lib/bs/src/Customer/StateView/Customers.res.mjs +5 -4
  53. package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmi +0 -0
  54. package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmj +0 -0
  55. package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmt +0 -0
  56. package/lib/bs/src/Customer/StateView/Customers_Projection.ast +0 -0
  57. package/lib/bs/src/Customer/StateView/Customers_Projection.res +17 -3
  58. package/lib/bs/src/Customer/StateView/Customers_Projection.res.mjs +6 -5
  59. package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmi +0 -0
  60. package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmt +0 -0
  61. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
  62. package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
  63. package/lib/bs/src/LifecycleModel-OrderingPlugin.cmi +0 -0
  64. package/lib/bs/src/LifecycleModel-OrderingPlugin.cmt +0 -0
  65. package/lib/bs/src/Order/Automation/AutoShipOrder-OrderingPlugin.cmi +0 -0
  66. package/lib/bs/src/Order/Automation/AutoShipOrder-OrderingPlugin.cmt +0 -0
  67. package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
  68. package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
  69. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation-OrderingPlugin.cmi +0 -0
  70. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation-OrderingPlugin.cmt +0 -0
  71. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation-OrderingPlugin.cmi +0 -0
  72. package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation-OrderingPlugin.cmt +0 -0
  73. package/lib/bs/src/Order/StateChange/CancelOrder-OrderingPlugin.cmi +0 -0
  74. package/lib/bs/src/Order/StateChange/CancelOrder-OrderingPlugin.cmt +0 -0
  75. package/lib/bs/src/Order/StateChange/CancelOrder_Decision-OrderingPlugin.cmi +0 -0
  76. package/lib/bs/src/Order/StateChange/CancelOrder_Decision-OrderingPlugin.cmt +0 -0
  77. package/lib/bs/src/Order/StateChange/PlaceOrder-OrderingPlugin.cmi +0 -0
  78. package/lib/bs/src/Order/StateChange/PlaceOrder-OrderingPlugin.cmt +0 -0
  79. package/lib/bs/src/Order/StateChange/PlaceOrder_Decision-OrderingPlugin.cmi +0 -0
  80. package/lib/bs/src/Order/StateChange/PlaceOrder_Decision-OrderingPlugin.cmt +0 -0
  81. package/lib/bs/src/Order/StateChange/ShipOrder-OrderingPlugin.cmi +0 -0
  82. package/lib/bs/src/Order/StateChange/ShipOrder-OrderingPlugin.cmt +0 -0
  83. package/lib/bs/src/Order/StateChange/ShipOrder_Decision-OrderingPlugin.cmi +0 -0
  84. package/lib/bs/src/Order/StateChange/ShipOrder_Decision-OrderingPlugin.cmt +0 -0
  85. package/lib/bs/src/Order/StateView/Orders-OrderingPlugin.cmi +0 -0
  86. package/lib/bs/src/Order/StateView/Orders-OrderingPlugin.cmt +0 -0
  87. package/lib/bs/src/Order/StateView/Orders_Projection-OrderingPlugin.cmi +0 -0
  88. package/lib/bs/src/Order/StateView/Orders_Projection-OrderingPlugin.cmt +0 -0
  89. package/lib/bs/src/Plugin-OrderingPlugin.cmi +0 -0
  90. package/lib/bs/src/Plugin-OrderingPlugin.cmt +0 -0
  91. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  92. package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  93. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  94. package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  95. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
  96. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
  97. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT.ast +0 -0
  98. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT.res +4 -4
  99. package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT.res.mjs +16 -4
  100. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
  101. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
  102. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT.ast +0 -0
  103. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT.res +4 -4
  104. package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT.res.mjs +16 -4
  105. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
  106. package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
  107. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
  108. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
  109. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT.ast +0 -0
  110. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT.res +3 -1
  111. package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT.res.mjs +8 -2
  112. package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmi +0 -0
  113. package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmt +0 -0
  114. package/lib/bs/tests/Customer/StateView/Customers_GWT.ast +0 -0
  115. package/lib/bs/tests/Customer/StateView/Customers_GWT.res +14 -6
  116. package/lib/bs/tests/Customer/StateView/Customers_GWT.res.mjs +40 -10
  117. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  118. package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  119. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  120. package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  121. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
  122. package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
  123. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
  124. package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
  125. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
  126. package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
  127. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
  128. package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
  129. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
  130. package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
  131. package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmi +0 -0
  132. package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmt +0 -0
  133. package/lib/ocaml/.compiler.log +2 -2
  134. package/lib/ocaml/AutoShipOrder-OrderingPlugin.cmi +0 -0
  135. package/lib/ocaml/AutoShipOrder-OrderingPlugin.cmt +0 -0
  136. package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
  137. package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
  138. package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
  139. package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
  140. package/lib/ocaml/AvailableProducts-OrderingPlugin.cmi +0 -0
  141. package/lib/ocaml/AvailableProducts-OrderingPlugin.cmt +0 -0
  142. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
  143. package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
  144. package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmi +0 -0
  145. package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmt +0 -0
  146. package/lib/ocaml/CancelOrder-OrderingPlugin.cmi +0 -0
  147. package/lib/ocaml/CancelOrder-OrderingPlugin.cmt +0 -0
  148. package/lib/ocaml/CancelOrder_Decision-OrderingPlugin.cmi +0 -0
  149. package/lib/ocaml/CancelOrder_Decision-OrderingPlugin.cmt +0 -0
  150. package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
  151. package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
  152. package/lib/ocaml/ChangeAddress-OrderingPlugin.cmi +0 -0
  153. package/lib/ocaml/ChangeAddress-OrderingPlugin.cmt +0 -0
  154. package/lib/ocaml/ChangeAddress.ast +0 -0
  155. package/lib/ocaml/ChangeAddress.res +4 -4
  156. package/lib/ocaml/ChangeAddress_Decision-OrderingPlugin.cmi +0 -0
  157. package/lib/ocaml/ChangeAddress_Decision-OrderingPlugin.cmj +0 -0
  158. package/lib/ocaml/ChangeAddress_Decision-OrderingPlugin.cmt +0 -0
  159. package/lib/ocaml/ChangeAddress_Decision.ast +0 -0
  160. package/lib/ocaml/ChangeAddress_Decision.res +4 -3
  161. package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
  162. package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
  163. package/lib/ocaml/ChangeAddress_GWT.ast +0 -0
  164. package/lib/ocaml/ChangeAddress_GWT.res +4 -4
  165. package/lib/ocaml/ChangeEmail-OrderingPlugin.cmi +0 -0
  166. package/lib/ocaml/ChangeEmail-OrderingPlugin.cmt +0 -0
  167. package/lib/ocaml/ChangeEmail.ast +0 -0
  168. package/lib/ocaml/ChangeEmail.res +4 -4
  169. package/lib/ocaml/ChangeEmail_Decision-OrderingPlugin.cmi +0 -0
  170. package/lib/ocaml/ChangeEmail_Decision-OrderingPlugin.cmj +0 -0
  171. package/lib/ocaml/ChangeEmail_Decision-OrderingPlugin.cmt +0 -0
  172. package/lib/ocaml/ChangeEmail_Decision.ast +0 -0
  173. package/lib/ocaml/ChangeEmail_Decision.res +8 -3
  174. package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
  175. package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
  176. package/lib/ocaml/ChangeEmail_GWT.ast +0 -0
  177. package/lib/ocaml/ChangeEmail_GWT.res +4 -4
  178. package/lib/ocaml/Customers-OrderingPlugin.cmi +0 -0
  179. package/lib/ocaml/Customers-OrderingPlugin.cmt +0 -0
  180. package/lib/ocaml/Customers.ast +0 -0
  181. package/lib/ocaml/Customers.res +3 -3
  182. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmi +0 -0
  183. package/lib/ocaml/Customers_GWT-OrderingPlugin.cmt +0 -0
  184. package/lib/ocaml/Customers_GWT.ast +0 -0
  185. package/lib/ocaml/Customers_GWT.res +14 -6
  186. package/lib/ocaml/Customers_Projection-OrderingPlugin.cmi +0 -0
  187. package/lib/ocaml/Customers_Projection-OrderingPlugin.cmj +0 -0
  188. package/lib/ocaml/Customers_Projection-OrderingPlugin.cmt +0 -0
  189. package/lib/ocaml/Customers_Projection.ast +0 -0
  190. package/lib/ocaml/Customers_Projection.res +17 -3
  191. package/lib/ocaml/DeactivateCustomer-OrderingPlugin.cmi +0 -0
  192. package/lib/ocaml/DeactivateCustomer-OrderingPlugin.cmt +0 -0
  193. package/lib/ocaml/DeactivateCustomer_Decision-OrderingPlugin.cmi +0 -0
  194. package/lib/ocaml/DeactivateCustomer_Decision-OrderingPlugin.cmt +0 -0
  195. package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
  196. package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
  197. package/lib/ocaml/LifecycleModel-OrderingPlugin.cmi +0 -0
  198. package/lib/ocaml/LifecycleModel-OrderingPlugin.cmt +0 -0
  199. package/lib/ocaml/Orders-OrderingPlugin.cmi +0 -0
  200. package/lib/ocaml/Orders-OrderingPlugin.cmt +0 -0
  201. package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
  202. package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
  203. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
  204. package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
  205. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmi +0 -0
  206. package/lib/ocaml/Orders_GWT-OrderingPlugin.cmt +0 -0
  207. package/lib/ocaml/Orders_Projection-OrderingPlugin.cmi +0 -0
  208. package/lib/ocaml/Orders_Projection-OrderingPlugin.cmt +0 -0
  209. package/lib/ocaml/PlaceOrder-OrderingPlugin.cmi +0 -0
  210. package/lib/ocaml/PlaceOrder-OrderingPlugin.cmt +0 -0
  211. package/lib/ocaml/PlaceOrder_Decision-OrderingPlugin.cmi +0 -0
  212. package/lib/ocaml/PlaceOrder_Decision-OrderingPlugin.cmt +0 -0
  213. package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
  214. package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
  215. package/lib/ocaml/Plugin-OrderingPlugin.cmi +0 -0
  216. package/lib/ocaml/Plugin-OrderingPlugin.cmt +0 -0
  217. package/lib/ocaml/Products_Extension-OrderingPlugin.cmi +0 -0
  218. package/lib/ocaml/Products_Extension-OrderingPlugin.cmt +0 -0
  219. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
  220. package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
  221. package/lib/ocaml/RegisterCustomer-OrderingPlugin.cmi +0 -0
  222. package/lib/ocaml/RegisterCustomer-OrderingPlugin.cmt +0 -0
  223. package/lib/ocaml/RegisterCustomer.ast +0 -0
  224. package/lib/ocaml/RegisterCustomer.res +12 -2
  225. package/lib/ocaml/RegisterCustomer_Decision-OrderingPlugin.cmi +0 -0
  226. package/lib/ocaml/RegisterCustomer_Decision-OrderingPlugin.cmt +0 -0
  227. package/lib/ocaml/RegisterCustomer_Decision.ast +0 -0
  228. package/lib/ocaml/RegisterCustomer_Decision.res +1 -1
  229. package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
  230. package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
  231. package/lib/ocaml/RegisterCustomer_GWT.ast +0 -0
  232. package/lib/ocaml/RegisterCustomer_GWT.res +3 -1
  233. package/lib/ocaml/SendOrderConfirmation-OrderingPlugin.cmi +0 -0
  234. package/lib/ocaml/SendOrderConfirmation-OrderingPlugin.cmt +0 -0
  235. package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
  236. package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
  237. package/lib/ocaml/SendOrderConfirmation_Translation-OrderingPlugin.cmi +0 -0
  238. package/lib/ocaml/SendOrderConfirmation_Translation-OrderingPlugin.cmt +0 -0
  239. package/lib/ocaml/ShipOrder-OrderingPlugin.cmi +0 -0
  240. package/lib/ocaml/ShipOrder-OrderingPlugin.cmt +0 -0
  241. package/lib/ocaml/ShipOrder_Decision-OrderingPlugin.cmi +0 -0
  242. package/lib/ocaml/ShipOrder_Decision-OrderingPlugin.cmt +0 -0
  243. package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
  244. package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
  245. package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmi +0 -0
  246. package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmt +0 -0
  247. package/lib/ocaml/SyncCatalogProduct_Decision-OrderingPlugin.cmi +0 -0
  248. package/lib/ocaml/SyncCatalogProduct_Decision-OrderingPlugin.cmt +0 -0
  249. package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
  250. package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
  251. package/package.json +7 -7
  252. package/src/Customer/StateChange/ChangeAddress.res +4 -4
  253. package/src/Customer/StateChange/ChangeAddress.res.mjs +5 -4
  254. package/src/Customer/StateChange/ChangeAddress_Decision.res +4 -3
  255. package/src/Customer/StateChange/ChangeAddress_Decision.res.mjs +8 -4
  256. package/src/Customer/StateChange/ChangeEmail.res +4 -4
  257. package/src/Customer/StateChange/ChangeEmail.res.mjs +5 -4
  258. package/src/Customer/StateChange/ChangeEmail_Decision.res +8 -3
  259. package/src/Customer/StateChange/ChangeEmail_Decision.res.mjs +8 -4
  260. package/src/Customer/StateChange/RegisterCustomer.res +12 -2
  261. package/src/Customer/StateChange/RegisterCustomer.res.mjs +5 -4
  262. package/src/Customer/StateChange/RegisterCustomer_Decision.res +1 -1
  263. package/src/Customer/StateChange/RegisterCustomer_Decision.res.mjs +8 -2
  264. package/src/Customer/StateView/Customers.res +3 -3
  265. package/src/Customer/StateView/Customers.res.mjs +5 -4
  266. package/src/Customer/StateView/Customers_Projection.res +17 -3
  267. package/src/Customer/StateView/Customers_Projection.res.mjs +6 -5
  268. package/tests/Customer/StateChange/ChangeAddress_GWT.res +4 -4
  269. package/tests/Customer/StateChange/ChangeAddress_GWT.res.mjs +16 -4
  270. package/tests/Customer/StateChange/ChangeEmail_GWT.res +4 -4
  271. package/tests/Customer/StateChange/ChangeEmail_GWT.res.mjs +16 -4
  272. package/tests/Customer/StateChange/RegisterCustomer_GWT.res +3 -1
  273. package/tests/Customer/StateChange/RegisterCustomer_GWT.res.mjs +8 -2
  274. package/tests/Customer/StateView/Customers_GWT.res +14 -6
  275. package/tests/Customer/StateView/Customers_GWT.res.mjs +40 -10
@@ -12,21 +12,21 @@ describe("ChangeAddress StateChangeSlice", () => {
12
12
 
13
13
  // scenario-id: a0268783-c043-4c2e-ad16-063b08f9d3f3
14
14
  test("active customer produces AddressChanged", () =>
15
- givenEvents([CustomerRegistered({address: mainStreet})])
15
+ givenEvents([CustomerRegistered({address: Value(mainStreet)})])
16
16
  ->whenCmd(ChangeAddress({customerId: c1, address: pineStreet}))
17
- ->thenEvent(AddressChanged({customerId: c1, address: pineStreet}))
17
+ ->thenEvent(AddressChanged({customerId: c1, address: Value(pineStreet)}))
18
18
  )
19
19
 
20
20
  // scenario-id: 9c652691-a3f7-4aee-b1a7-0055db84d836
21
21
  test("same address produces no events (idempotent)", () =>
22
- givenEvents([CustomerRegistered({address: mainStreet})])
22
+ givenEvents([CustomerRegistered({address: Value(mainStreet)})])
23
23
  ->whenCmd(ChangeAddress({customerId: c1, address: mainStreet}))
24
24
  ->thenNoEvent
25
25
  )
26
26
 
27
27
  // scenario-id: 909078a3-adc9-479e-85cc-88549075d963
28
28
  test("deactivated customer returns CustomerAlreadyDeactivated", () =>
29
- givenEvents([CustomerRegistered({address: mainStreet}), CustomerDeactivated])
29
+ givenEvents([CustomerRegistered({address: Value(mainStreet)}), CustomerDeactivated])
30
30
  ->whenCmd(ChangeAddress({customerId: c1, address: pineStreet}))
31
31
  ->thenError(CustomerAlreadyDeactivated)
32
32
  )
@@ -40,7 +40,10 @@ describe("ChangeAddress StateChangeSlice", () => {
40
40
  }), "CustomerNotFound"));
41
41
  test("active customer produces AddressChanged", () => thenEvent(whenCmd(givenEvents([{
42
42
  TAG: "CustomerRegistered",
43
- address: Ordering_Examples$OrderingPlugin.mainStreet
43
+ address: {
44
+ TAG: "Value",
45
+ _0: Ordering_Examples$OrderingPlugin.mainStreet
46
+ }
44
47
  }]), {
45
48
  TAG: "ChangeAddress",
46
49
  customerId: Ordering_Examples$OrderingPlugin.c1,
@@ -48,11 +51,17 @@ describe("ChangeAddress StateChangeSlice", () => {
48
51
  }), {
49
52
  TAG: "AddressChanged",
50
53
  customerId: Ordering_Examples$OrderingPlugin.c1,
51
- address: Ordering_Examples$OrderingPlugin.pineStreet
54
+ address: {
55
+ TAG: "Value",
56
+ _0: Ordering_Examples$OrderingPlugin.pineStreet
57
+ }
52
58
  }));
53
59
  test("same address produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([{
54
60
  TAG: "CustomerRegistered",
55
- address: Ordering_Examples$OrderingPlugin.mainStreet
61
+ address: {
62
+ TAG: "Value",
63
+ _0: Ordering_Examples$OrderingPlugin.mainStreet
64
+ }
56
65
  }]), {
57
66
  TAG: "ChangeAddress",
58
67
  customerId: Ordering_Examples$OrderingPlugin.c1,
@@ -61,7 +70,10 @@ describe("ChangeAddress StateChangeSlice", () => {
61
70
  test("deactivated customer returns CustomerAlreadyDeactivated", () => thenError(whenCmd(givenEvents([
62
71
  {
63
72
  TAG: "CustomerRegistered",
64
- address: Ordering_Examples$OrderingPlugin.mainStreet
73
+ address: {
74
+ TAG: "Value",
75
+ _0: Ordering_Examples$OrderingPlugin.mainStreet
76
+ }
65
77
  },
66
78
  "CustomerDeactivated"
67
79
  ]), {
@@ -12,21 +12,21 @@ describe("ChangeEmail StateChangeSlice", () => {
12
12
 
13
13
  // scenario-id: c772aca9-7aa7-4ee0-bb3e-be1a2dc46967
14
14
  test("active customer produces EmailChanged", () =>
15
- givenEvents([CustomerRegistered({email: aliceEmail})])
15
+ givenEvents([CustomerRegistered({email: Value(aliceEmail)})])
16
16
  ->whenCmd(ChangeEmail({customerId: c1, email: aliceNewEmail}))
17
- ->thenEvent(EmailChanged({customerId: c1, email: aliceNewEmail}))
17
+ ->thenEvent(EmailChanged({customerId: c1, email: Value(aliceNewEmail)}))
18
18
  )
19
19
 
20
20
  // scenario-id: 659398db-0145-4e2f-8087-905a1ff03af3
21
21
  test("same email produces no events (idempotent)", () =>
22
- givenEvents([CustomerRegistered({email: aliceEmail})])
22
+ givenEvents([CustomerRegistered({email: Value(aliceEmail)})])
23
23
  ->whenCmd(ChangeEmail({customerId: c1, email: aliceEmail}))
24
24
  ->thenNoEvent
25
25
  )
26
26
 
27
27
  // scenario-id: c868f35b-ea20-438e-947d-58568db6adbd
28
28
  test("deactivated customer returns CustomerAlreadyDeactivated", () =>
29
- givenEvents([CustomerRegistered({email: aliceEmail}), CustomerDeactivated])
29
+ givenEvents([CustomerRegistered({email: Value(aliceEmail)}), CustomerDeactivated])
30
30
  ->whenCmd(ChangeEmail({customerId: c1, email: aliceNewEmail}))
31
31
  ->thenError(CustomerAlreadyDeactivated)
32
32
  )
@@ -40,7 +40,10 @@ describe("ChangeEmail StateChangeSlice", () => {
40
40
  }), "CustomerNotFound"));
41
41
  test("active customer produces EmailChanged", () => thenEvent(whenCmd(givenEvents([{
42
42
  TAG: "CustomerRegistered",
43
- email: Ordering_Examples$OrderingPlugin.aliceEmail
43
+ email: {
44
+ TAG: "Value",
45
+ _0: Ordering_Examples$OrderingPlugin.aliceEmail
46
+ }
44
47
  }]), {
45
48
  TAG: "ChangeEmail",
46
49
  customerId: Ordering_Examples$OrderingPlugin.c1,
@@ -48,11 +51,17 @@ describe("ChangeEmail StateChangeSlice", () => {
48
51
  }), {
49
52
  TAG: "EmailChanged",
50
53
  customerId: Ordering_Examples$OrderingPlugin.c1,
51
- email: Ordering_Examples$OrderingPlugin.aliceNewEmail
54
+ email: {
55
+ TAG: "Value",
56
+ _0: Ordering_Examples$OrderingPlugin.aliceNewEmail
57
+ }
52
58
  }));
53
59
  test("same email produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([{
54
60
  TAG: "CustomerRegistered",
55
- email: Ordering_Examples$OrderingPlugin.aliceEmail
61
+ email: {
62
+ TAG: "Value",
63
+ _0: Ordering_Examples$OrderingPlugin.aliceEmail
64
+ }
56
65
  }]), {
57
66
  TAG: "ChangeEmail",
58
67
  customerId: Ordering_Examples$OrderingPlugin.c1,
@@ -61,7 +70,10 @@ describe("ChangeEmail StateChangeSlice", () => {
61
70
  test("deactivated customer returns CustomerAlreadyDeactivated", () => thenError(whenCmd(givenEvents([
62
71
  {
63
72
  TAG: "CustomerRegistered",
64
- email: Ordering_Examples$OrderingPlugin.aliceEmail
73
+ email: {
74
+ TAG: "Value",
75
+ _0: Ordering_Examples$OrderingPlugin.aliceEmail
76
+ }
65
77
  },
66
78
  "CustomerDeactivated"
67
79
  ]), {
@@ -7,7 +7,9 @@ describe("RegisterCustomer StateChangeSlice", () => {
7
7
  test("empty event log produces CustomerRegistered", () =>
8
8
  givenEvents([])
9
9
  ->whenCmd(RegisterCustomer({customerId: c1, email: aliceEmail, address: mainStreet}))
10
- ->thenEvent(CustomerRegistered({customerId: c1, email: aliceEmail, address: mainStreet}))
10
+ ->thenEvent(
11
+ CustomerRegistered({customerId: c1, email: Value(aliceEmail), address: Value(mainStreet)}),
12
+ )
11
13
  )
12
14
 
13
15
  // scenario-id: d99db741-d659-456e-b84f-9af30a7d8a41
@@ -39,8 +39,14 @@ describe("RegisterCustomer StateChangeSlice", () => {
39
39
  }), {
40
40
  TAG: "CustomerRegistered",
41
41
  customerId: Ordering_Examples$OrderingPlugin.c1,
42
- email: Ordering_Examples$OrderingPlugin.aliceEmail,
43
- address: Ordering_Examples$OrderingPlugin.mainStreet
42
+ email: {
43
+ TAG: "Value",
44
+ _0: Ordering_Examples$OrderingPlugin.aliceEmail
45
+ },
46
+ address: {
47
+ TAG: "Value",
48
+ _0: Ordering_Examples$OrderingPlugin.mainStreet
49
+ }
44
50
  }));
45
51
  test("existing customer returns CustomerAlreadyRegistered", () => thenError(whenCmd(givenEvents(["CustomerRegistered"]), {
46
52
  TAG: "RegisterCustomer",
@@ -6,7 +6,9 @@ describe("Customers StateViewSlice", () => {
6
6
  // scenario-id: 56a23bc7-31ce-4e9c-a7f1-d523e75aefba
7
7
  test("CustomerRegistered creates a row", () =>
8
8
  givenEvents([])
9
- ->whenEvent(CustomerRegistered({customerId: c1, email: aliceEmail, address: mainStreet}))
9
+ ->whenEvent(
10
+ CustomerRegistered({customerId: c1, email: Value(aliceEmail), address: Value(mainStreet)}),
11
+ )
10
12
  ->thenStateWithId(
11
13
  "c1",
12
14
  {customerId: c1, email: aliceEmail, address: mainStreet, deactivated: false},
@@ -15,8 +17,10 @@ describe("Customers StateViewSlice", () => {
15
17
 
16
18
  // scenario-id: 941f8ba9-3740-49f7-bb3a-e3aca90f10bf
17
19
  test("EmailChanged updates the email", () =>
18
- givenEvents([CustomerRegistered({customerId: c1, email: aliceEmail, address: mainStreet})])
19
- ->whenEvent(EmailChanged({customerId: c1, email: aliceNewEmail}))
20
+ givenEvents([
21
+ CustomerRegistered({customerId: c1, email: Value(aliceEmail), address: Value(mainStreet)}),
22
+ ])
23
+ ->whenEvent(EmailChanged({customerId: c1, email: Value(aliceNewEmail)}))
20
24
  ->thenStateWithId(
21
25
  "c1",
22
26
  {customerId: c1, email: aliceNewEmail, address: mainStreet, deactivated: false},
@@ -25,8 +29,10 @@ describe("Customers StateViewSlice", () => {
25
29
 
26
30
  // scenario-id: 778d3e61-2b9b-4f55-a4ca-57f5e476a09b
27
31
  test("AddressChanged updates the address", () =>
28
- givenEvents([CustomerRegistered({customerId: c1, email: aliceEmail, address: mainStreet})])
29
- ->whenEvent(AddressChanged({customerId: c1, address: pineStreet}))
32
+ givenEvents([
33
+ CustomerRegistered({customerId: c1, email: Value(aliceEmail), address: Value(mainStreet)}),
34
+ ])
35
+ ->whenEvent(AddressChanged({customerId: c1, address: Value(pineStreet)}))
30
36
  ->thenStateWithId(
31
37
  "c1",
32
38
  {customerId: c1, email: aliceEmail, address: pineStreet, deactivated: false},
@@ -35,7 +41,9 @@ describe("Customers StateViewSlice", () => {
35
41
 
36
42
  // scenario-id: 783d84a5-3b4d-41df-bf3c-abaa9c717bd7
37
43
  test("CustomerDeactivated sets deactivated flag", () =>
38
- givenEvents([CustomerRegistered({customerId: c1, email: aliceEmail, address: mainStreet})])
44
+ givenEvents([
45
+ CustomerRegistered({customerId: c1, email: Value(aliceEmail), address: Value(mainStreet)}),
46
+ ])
39
47
  ->whenEvent(CustomerDeactivated({customerId: c1}))
40
48
  ->thenStateWithId(
41
49
  "c1",
@@ -30,8 +30,14 @@ describe("Customers StateViewSlice", () => {
30
30
  test("CustomerRegistered creates a row", undefined, () => thenStateWithId(whenEvent(givenEvents([]), {
31
31
  TAG: "CustomerRegistered",
32
32
  customerId: Ordering_Examples$OrderingPlugin.c1,
33
- email: Ordering_Examples$OrderingPlugin.aliceEmail,
34
- address: Ordering_Examples$OrderingPlugin.mainStreet
33
+ email: {
34
+ TAG: "Value",
35
+ _0: Ordering_Examples$OrderingPlugin.aliceEmail
36
+ },
37
+ address: {
38
+ TAG: "Value",
39
+ _0: Ordering_Examples$OrderingPlugin.mainStreet
40
+ }
35
41
  }), "c1", {
36
42
  customerId: Ordering_Examples$OrderingPlugin.c1,
37
43
  email: Ordering_Examples$OrderingPlugin.aliceEmail,
@@ -41,12 +47,21 @@ describe("Customers StateViewSlice", () => {
41
47
  test("EmailChanged updates the email", undefined, () => thenStateWithId(whenEvent(givenEvents([{
42
48
  TAG: "CustomerRegistered",
43
49
  customerId: Ordering_Examples$OrderingPlugin.c1,
44
- email: Ordering_Examples$OrderingPlugin.aliceEmail,
45
- address: Ordering_Examples$OrderingPlugin.mainStreet
50
+ email: {
51
+ TAG: "Value",
52
+ _0: Ordering_Examples$OrderingPlugin.aliceEmail
53
+ },
54
+ address: {
55
+ TAG: "Value",
56
+ _0: Ordering_Examples$OrderingPlugin.mainStreet
57
+ }
46
58
  }]), {
47
59
  TAG: "EmailChanged",
48
60
  customerId: Ordering_Examples$OrderingPlugin.c1,
49
- email: Ordering_Examples$OrderingPlugin.aliceNewEmail
61
+ email: {
62
+ TAG: "Value",
63
+ _0: Ordering_Examples$OrderingPlugin.aliceNewEmail
64
+ }
50
65
  }), "c1", {
51
66
  customerId: Ordering_Examples$OrderingPlugin.c1,
52
67
  email: Ordering_Examples$OrderingPlugin.aliceNewEmail,
@@ -56,12 +71,21 @@ describe("Customers StateViewSlice", () => {
56
71
  test("AddressChanged updates the address", undefined, () => thenStateWithId(whenEvent(givenEvents([{
57
72
  TAG: "CustomerRegistered",
58
73
  customerId: Ordering_Examples$OrderingPlugin.c1,
59
- email: Ordering_Examples$OrderingPlugin.aliceEmail,
60
- address: Ordering_Examples$OrderingPlugin.mainStreet
74
+ email: {
75
+ TAG: "Value",
76
+ _0: Ordering_Examples$OrderingPlugin.aliceEmail
77
+ },
78
+ address: {
79
+ TAG: "Value",
80
+ _0: Ordering_Examples$OrderingPlugin.mainStreet
81
+ }
61
82
  }]), {
62
83
  TAG: "AddressChanged",
63
84
  customerId: Ordering_Examples$OrderingPlugin.c1,
64
- address: Ordering_Examples$OrderingPlugin.pineStreet
85
+ address: {
86
+ TAG: "Value",
87
+ _0: Ordering_Examples$OrderingPlugin.pineStreet
88
+ }
65
89
  }), "c1", {
66
90
  customerId: Ordering_Examples$OrderingPlugin.c1,
67
91
  email: Ordering_Examples$OrderingPlugin.aliceEmail,
@@ -71,8 +95,14 @@ describe("Customers StateViewSlice", () => {
71
95
  test("CustomerDeactivated sets deactivated flag", undefined, () => thenStateWithId(whenEvent(givenEvents([{
72
96
  TAG: "CustomerRegistered",
73
97
  customerId: Ordering_Examples$OrderingPlugin.c1,
74
- email: Ordering_Examples$OrderingPlugin.aliceEmail,
75
- address: Ordering_Examples$OrderingPlugin.mainStreet
98
+ email: {
99
+ TAG: "Value",
100
+ _0: Ordering_Examples$OrderingPlugin.aliceEmail
101
+ },
102
+ address: {
103
+ TAG: "Value",
104
+ _0: Ordering_Examples$OrderingPlugin.mainStreet
105
+ }
76
106
  }]), {
77
107
  TAG: "CustomerDeactivated",
78
108
  customerId: Ordering_Examples$OrderingPlugin.c1
@@ -1,2 +1,2 @@
1
- #Start(1793347145165)
2
- #Done(1793347148655)
1
+ #Start(1793351463162)
2
+ #Done(1793351466851)
Binary file
@@ -4,12 +4,12 @@
4
4
 
5
5
  @schema
6
6
  type consumedEvent =
7
- | CustomerRegistered({address: string})
8
- | AddressChanged({address: string})
7
+ | CustomerRegistered({@pii address: string})
8
+ | AddressChanged({@pii address: string})
9
9
  | CustomerDeactivated
10
10
 
11
11
  @schema
12
- type command = ChangeAddress({customerId: CustomerId.t, address: string})
12
+ type command = ChangeAddress({customerId: CustomerId.t, @pii("customerId") address: string})
13
13
 
14
14
  @schema
15
15
  type error =
@@ -17,4 +17,4 @@ type error =
17
17
  | CustomerAlreadyDeactivated
18
18
 
19
19
  @schema
20
- type event = AddressChanged({customerId: CustomerId.t, address: string})
20
+ type event = AddressChanged({customerId: CustomerId.t, @pii("customerId") address: string})
@@ -9,9 +9,10 @@ let evolve = (state, event) =>
9
9
  | CustomerRegistered({address}) => {
10
10
  exists: true,
11
11
  deactivated: false,
12
- currentAddress: address,
12
+ // An erased address matches no address presented later.
13
+ currentAddress: address->Reventless.Pii.getOr(""),
13
14
  }
14
- | AddressChanged({address}) => {...state, currentAddress: address}
15
+ | AddressChanged({address}) => {...state, currentAddress: address->Reventless.Pii.getOr("")}
15
16
  | CustomerDeactivated => {...state, deactivated: true}
16
17
  }
17
18
 
@@ -25,6 +26,6 @@ let decide = (state, command) =>
25
26
  } else if address == state.currentAddress {
26
27
  Ok([]) // idempotent — address unchanged
27
28
  } else {
28
- Ok([AddressChanged({customerId, address})])
29
+ Ok([AddressChanged({customerId, address: Value(address)})])
29
30
  }
30
31
  }
Binary file
@@ -12,21 +12,21 @@ describe("ChangeAddress StateChangeSlice", () => {
12
12
 
13
13
  // scenario-id: a0268783-c043-4c2e-ad16-063b08f9d3f3
14
14
  test("active customer produces AddressChanged", () =>
15
- givenEvents([CustomerRegistered({address: mainStreet})])
15
+ givenEvents([CustomerRegistered({address: Value(mainStreet)})])
16
16
  ->whenCmd(ChangeAddress({customerId: c1, address: pineStreet}))
17
- ->thenEvent(AddressChanged({customerId: c1, address: pineStreet}))
17
+ ->thenEvent(AddressChanged({customerId: c1, address: Value(pineStreet)}))
18
18
  )
19
19
 
20
20
  // scenario-id: 9c652691-a3f7-4aee-b1a7-0055db84d836
21
21
  test("same address produces no events (idempotent)", () =>
22
- givenEvents([CustomerRegistered({address: mainStreet})])
22
+ givenEvents([CustomerRegistered({address: Value(mainStreet)})])
23
23
  ->whenCmd(ChangeAddress({customerId: c1, address: mainStreet}))
24
24
  ->thenNoEvent
25
25
  )
26
26
 
27
27
  // scenario-id: 909078a3-adc9-479e-85cc-88549075d963
28
28
  test("deactivated customer returns CustomerAlreadyDeactivated", () =>
29
- givenEvents([CustomerRegistered({address: mainStreet}), CustomerDeactivated])
29
+ givenEvents([CustomerRegistered({address: Value(mainStreet)}), CustomerDeactivated])
30
30
  ->whenCmd(ChangeAddress({customerId: c1, address: pineStreet}))
31
31
  ->thenError(CustomerAlreadyDeactivated)
32
32
  )
Binary file
@@ -4,12 +4,12 @@
4
4
 
5
5
  @schema
6
6
  type consumedEvent =
7
- | CustomerRegistered({email: string})
8
- | EmailChanged({email: string})
7
+ | CustomerRegistered({@pii email: string})
8
+ | EmailChanged({@pii email: string})
9
9
  | CustomerDeactivated
10
10
 
11
11
  @schema
12
- type command = ChangeEmail({customerId: CustomerId.t, email: string})
12
+ type command = ChangeEmail({customerId: CustomerId.t, @pii("customerId") email: string})
13
13
 
14
14
  @schema
15
15
  type error =
@@ -17,4 +17,4 @@ type error =
17
17
  | CustomerAlreadyDeactivated
18
18
 
19
19
  @schema
20
- type event = EmailChanged({customerId: CustomerId.t, email: string})
20
+ type event = EmailChanged({customerId: CustomerId.t, @pii("customerId") email: string})
Binary file