@reventlessdev/online-shop-dcb-catalog 1.0.0-alpha.284 → 1.0.0-alpha.285
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.
- package/CHANGELOG.md +14 -0
- package/lib/bs/.compiler.log +2 -2
- package/lib/bs/CatalogPlugin.cmi +0 -0
- package/lib/bs/CatalogPlugin.cmt +0 -0
- package/lib/bs/CatalogPlugin.mlmap +8 -8
- package/lib/bs/compiler-info.json +1 -1
- package/lib/bs/src/Category/CategoryId-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Category/CategoryId-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Category/StateChange/AddCategory-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Category/StateChange/AddCategory-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Category/StateChange/{AddCategory_Behavior-CatalogPlugin.cmi → AddCategory_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/bs/src/Category/StateChange/{AddCategory_Behavior-CatalogPlugin.cmt → AddCategory_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/{ocaml/AddCategory_Behavior.ast → bs/src/Category/StateChange/AddCategory_Decision.ast} +0 -0
- package/lib/bs/src/Category/StateChange/{AddCategory_Behavior.res → AddCategory_Decision.res} +1 -1
- package/{src/Category/StateChange/AddCategory_Behavior.res.mjs → lib/bs/src/Category/StateChange/AddCategory_Decision.res.mjs} +1 -1
- package/lib/bs/src/Category/StateChange/ArchiveCategory-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Category/StateChange/ArchiveCategory-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Category/StateChange/{ArchiveCategory_Behavior-CatalogPlugin.cmi → ArchiveCategory_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/bs/src/Category/StateChange/{ArchiveCategory_Behavior-CatalogPlugin.cmt → ArchiveCategory_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/{ocaml/ArchiveCategory_Behavior.ast → bs/src/Category/StateChange/ArchiveCategory_Decision.ast} +0 -0
- package/{src/Category/StateChange/ArchiveCategory_Behavior.res → lib/bs/src/Category/StateChange/ArchiveCategory_Decision.res} +1 -1
- package/{src/Category/StateChange/ArchiveCategory_Behavior.res.mjs → lib/bs/src/Category/StateChange/ArchiveCategory_Decision.res.mjs} +1 -1
- package/lib/bs/src/Category/StateChange/RenameCategory-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Category/StateChange/RenameCategory-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Category/StateChange/{RenameCategory_Behavior-CatalogPlugin.cmi → RenameCategory_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/bs/src/Category/StateChange/{RenameCategory_Behavior-CatalogPlugin.cmt → RenameCategory_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/{ocaml/RenameCategory_Behavior.ast → bs/src/Category/StateChange/RenameCategory_Decision.ast} +0 -0
- package/{src/Category/StateChange/RenameCategory_Behavior.res → lib/bs/src/Category/StateChange/RenameCategory_Decision.res} +1 -1
- package/{src/Category/StateChange/RenameCategory_Behavior.res.mjs → lib/bs/src/Category/StateChange/RenameCategory_Decision.res.mjs} +1 -1
- package/lib/bs/src/Category/StateView/Categories-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Category/StateView/Categories-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Category/StateView/Categories_Projection-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Category/StateView/Categories_Projection-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity_Projections-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity_Projections-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Extension/Orders_Extension-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/ExtensionPoint/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/LifecycleModel-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/LifecycleModel-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Plugin-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Plugin-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Plugin.ast +0 -0
- package/lib/bs/src/Plugin.res +8 -8
- package/lib/bs/src/Plugin.res.mjs +40 -40
- package/lib/bs/src/Product/InboundTranslation/ImportProduct-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Product/InboundTranslation/ImportProduct-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Product/InboundTranslation/ImportProduct_Translation-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Product/InboundTranslation/ImportProduct_Translation-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Product/StateChange/AddProduct-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Product/StateChange/AddProduct-CatalogPlugin.cmt +0 -0
- package/lib/{ocaml/AddProduct_Behavior-CatalogPlugin.cmi → bs/src/Product/StateChange/AddProduct_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/{ocaml/AddProduct_Behavior-CatalogPlugin.cmt → bs/src/Product/StateChange/AddProduct_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/{ocaml/AddProduct_Behavior.ast → bs/src/Product/StateChange/AddProduct_Decision.ast} +0 -0
- package/{src/Product/StateChange/AddProduct_Behavior.res → lib/bs/src/Product/StateChange/AddProduct_Decision.res} +1 -1
- package/{src/Product/StateChange/AddProduct_Behavior.res.mjs → lib/bs/src/Product/StateChange/AddProduct_Decision.res.mjs} +1 -1
- package/lib/bs/src/Product/StateChange/ChangeProductDescription-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Product/StateChange/ChangeProductDescription-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Product/StateChange/{ChangeProductDescription_Behavior-CatalogPlugin.cmi → ChangeProductDescription_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/{ocaml/ChangeProductDescription_Behavior-CatalogPlugin.cmt → bs/src/Product/StateChange/ChangeProductDescription_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/bs/src/Product/StateChange/{ChangeProductDescription_Behavior.ast → ChangeProductDescription_Decision.ast} +0 -0
- package/{src/Product/StateChange/ChangeProductDescription_Behavior.res → lib/bs/src/Product/StateChange/ChangeProductDescription_Decision.res} +1 -1
- package/{src/Product/StateChange/ChangeProductDescription_Behavior.res.mjs → lib/bs/src/Product/StateChange/ChangeProductDescription_Decision.res.mjs} +1 -1
- package/lib/bs/src/Product/StateChange/ChangeProductName-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Product/StateChange/ChangeProductName-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Product/StateChange/{ChangeProductName_Behavior-CatalogPlugin.cmi → ChangeProductName_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/bs/src/Product/StateChange/{ChangeProductName_Behavior-CatalogPlugin.cmt → ChangeProductName_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/bs/src/Product/StateChange/{ChangeProductName_Behavior.ast → ChangeProductName_Decision.ast} +0 -0
- package/{src/Product/StateChange/ChangeProductName_Behavior.res → lib/bs/src/Product/StateChange/ChangeProductName_Decision.res} +1 -1
- package/{src/Product/StateChange/ChangeProductName_Behavior.res.mjs → lib/bs/src/Product/StateChange/ChangeProductName_Decision.res.mjs} +1 -1
- package/lib/bs/src/Product/StateChange/ChangeProductPrice-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Product/StateChange/ChangeProductPrice-CatalogPlugin.cmt +0 -0
- package/lib/{ocaml/ChangeProductPrice_Behavior-CatalogPlugin.cmi → bs/src/Product/StateChange/ChangeProductPrice_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/bs/src/Product/StateChange/{ChangeProductPrice_Behavior-CatalogPlugin.cmt → ChangeProductPrice_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/bs/src/Product/StateChange/{ChangeProductPrice_Behavior.ast → ChangeProductPrice_Decision.ast} +0 -0
- package/lib/bs/src/Product/StateChange/{ChangeProductPrice_Behavior.res → ChangeProductPrice_Decision.res} +1 -1
- package/lib/bs/src/Product/StateChange/{ChangeProductPrice_Behavior.res.mjs → ChangeProductPrice_Decision.res.mjs} +1 -1
- package/lib/bs/src/Product/StateView/Products-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Product/StateView/Products-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Product/StateView/Products_Projection-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Product/StateView/Products_Projection-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/ProductDemand/StateChange/RecordProductDemand-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/ProductDemand/StateChange/RecordProductDemand-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/ProductDemand/StateChange/{RecordProductDemand_Behavior-CatalogPlugin.cmi → RecordProductDemand_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/bs/src/ProductDemand/StateChange/{RecordProductDemand_Behavior-CatalogPlugin.cmt → RecordProductDemand_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/bs/src/ProductDemand/StateChange/{RecordProductDemand_Behavior.ast → RecordProductDemand_Decision.ast} +0 -0
- package/lib/bs/src/ProductDemand/StateChange/{RecordProductDemand_Behavior.res → RecordProductDemand_Decision.res} +1 -1
- package/{src/ProductDemand/StateChange/RecordProductDemand_Behavior.res.mjs → lib/bs/src/ProductDemand/StateChange/RecordProductDemand_Decision.res.mjs} +1 -1
- package/lib/bs/src/ProductDemand/StateView/ProductDemand-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/ProductDemand/StateView/ProductDemand-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/ProductDemand/StateView/ProductDemand_Projection-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/ProductDemand/StateView/ProductDemand_Projection-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Task/ImportProducts-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Catalog_Examples-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Catalog_Examples-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Category/StateChange/AddCategory_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Category/StateChange/AddCategory_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Category/StateChange/AddCategory_GWT.ast +0 -0
- package/lib/bs/tests/Category/StateChange/AddCategory_GWT.res.mjs +8 -8
- package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT.ast +0 -0
- package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT.res +2 -2
- package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT.res.mjs +10 -10
- package/lib/bs/tests/Category/StateChange/RenameCategory_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Category/StateChange/RenameCategory_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Category/StateChange/RenameCategory_GWT.ast +0 -0
- package/lib/bs/tests/Category/StateChange/RenameCategory_GWT.res.mjs +8 -8
- package/lib/bs/tests/Category/StateView/Categories_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Category/StateView/Categories_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_GWT.ast +0 -0
- package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_GWT.res +1 -1
- package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Extension/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Product/StateChange/AddProduct_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/StateChange/AddProduct_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Product/StateChange/AddProduct_GWT.ast +0 -0
- package/lib/bs/tests/Product/StateChange/AddProduct_GWT.res.mjs +8 -8
- package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT.ast +0 -0
- package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT.res.mjs +8 -8
- package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT.ast +0 -0
- package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT.res.mjs +8 -8
- package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT.ast +0 -0
- package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT.res.mjs +8 -8
- package/lib/bs/tests/Product/StateView/Products_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/Product/StateView/Products_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT.ast +0 -0
- package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT.res.mjs +8 -8
- package/lib/bs/tests/ProductDemand/StateView/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
- package/lib/bs/tests/ProductDemand/StateView/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/.compiler.log +2 -2
- package/lib/ocaml/AddCategory-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/AddCategory-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/{AddCategory_Behavior-CatalogPlugin.cmi → AddCategory_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/ocaml/{AddCategory_Behavior-CatalogPlugin.cmt → AddCategory_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/{bs/src/Category/StateChange/AddCategory_Behavior.ast → ocaml/AddCategory_Decision.ast} +0 -0
- package/lib/ocaml/{AddCategory_Behavior.res → AddCategory_Decision.res} +1 -1
- package/lib/ocaml/AddCategory_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/AddCategory_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/AddCategory_GWT.ast +0 -0
- package/lib/ocaml/AddProduct-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/AddProduct-CatalogPlugin.cmt +0 -0
- package/lib/{bs/src/Product/StateChange/AddProduct_Behavior-CatalogPlugin.cmi → ocaml/AddProduct_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/{bs/src/Product/StateChange/AddProduct_Behavior-CatalogPlugin.cmt → ocaml/AddProduct_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/{bs/src/Product/StateChange/AddProduct_Behavior.ast → ocaml/AddProduct_Decision.ast} +0 -0
- package/lib/{bs/src/Product/StateChange/AddProduct_Behavior.res → ocaml/AddProduct_Decision.res} +1 -1
- package/lib/ocaml/AddProduct_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/AddProduct_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/AddProduct_GWT.ast +0 -0
- package/lib/ocaml/ArchiveCategory-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ArchiveCategory-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/{ArchiveCategory_Behavior-CatalogPlugin.cmi → ArchiveCategory_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/ocaml/{ArchiveCategory_Behavior-CatalogPlugin.cmt → ArchiveCategory_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/{bs/src/Category/StateChange/ArchiveCategory_Behavior.ast → ocaml/ArchiveCategory_Decision.ast} +0 -0
- package/lib/ocaml/{ArchiveCategory_Behavior.res → ArchiveCategory_Decision.res} +1 -1
- package/lib/ocaml/ArchiveCategory_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ArchiveCategory_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ArchiveCategory_GWT.ast +0 -0
- package/lib/ocaml/ArchiveCategory_GWT.res +2 -2
- package/lib/ocaml/CatalogPlugin.cmi +0 -0
- package/lib/ocaml/CatalogPlugin.cmt +0 -0
- package/lib/ocaml/CatalogPlugin.mlmap +8 -8
- package/lib/ocaml/Catalog_Examples-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Catalog_Examples-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Categories-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Categories-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Categories_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Categories_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Categories_Projection-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Categories_Projection-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/CategoryActivity-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/CategoryActivity-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/CategoryActivity_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/CategoryActivity_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/CategoryActivity_GWT.ast +0 -0
- package/lib/ocaml/CategoryActivity_GWT.res +1 -1
- package/lib/ocaml/CategoryActivity_Projections-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/CategoryActivity_Projections-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/CategoryId-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/CategoryId-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ChangeProductDescription-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ChangeProductDescription-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/{ChangeProductDescription_Behavior-CatalogPlugin.cmi → ChangeProductDescription_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/{bs/src/Product/StateChange/ChangeProductDescription_Behavior-CatalogPlugin.cmt → ocaml/ChangeProductDescription_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/ocaml/{ChangeProductDescription_Behavior.ast → ChangeProductDescription_Decision.ast} +0 -0
- package/lib/ocaml/{ChangeProductDescription_Behavior.res → ChangeProductDescription_Decision.res} +1 -1
- package/lib/ocaml/ChangeProductDescription_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ChangeProductDescription_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ChangeProductDescription_GWT.ast +0 -0
- package/lib/ocaml/ChangeProductName-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ChangeProductName-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/{ChangeProductName_Behavior-CatalogPlugin.cmi → ChangeProductName_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/ocaml/{ChangeProductName_Behavior-CatalogPlugin.cmt → ChangeProductName_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/ocaml/{ChangeProductName_Behavior.ast → ChangeProductName_Decision.ast} +0 -0
- package/lib/{bs/src/Product/StateChange/ChangeProductName_Behavior.res → ocaml/ChangeProductName_Decision.res} +1 -1
- package/lib/ocaml/ChangeProductName_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ChangeProductName_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ChangeProductName_GWT.ast +0 -0
- package/lib/ocaml/ChangeProductPrice-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ChangeProductPrice-CatalogPlugin.cmt +0 -0
- package/lib/{bs/src/Product/StateChange/ChangeProductPrice_Behavior-CatalogPlugin.cmi → ocaml/ChangeProductPrice_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/ocaml/{ChangeProductPrice_Behavior-CatalogPlugin.cmt → ChangeProductPrice_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/ocaml/{ChangeProductPrice_Behavior.ast → ChangeProductPrice_Decision.ast} +0 -0
- package/{src/Product/StateChange/ChangeProductPrice_Behavior.res → lib/ocaml/ChangeProductPrice_Decision.res} +1 -1
- package/lib/ocaml/ChangeProductPrice_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ChangeProductPrice_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ChangeProductPrice_GWT.ast +0 -0
- package/lib/ocaml/ImportProduct-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ImportProduct-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ImportProduct_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ImportProduct_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ImportProduct_Translation-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ImportProduct_Translation-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ImportProducts-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ImportProducts-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/LifecycleModel-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/LifecycleModel-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Orders_Extension-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Orders_Extension-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Orders_Extension_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Plugin-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Plugin-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Plugin.ast +0 -0
- package/lib/ocaml/Plugin.res +8 -8
- package/lib/ocaml/ProductDemand-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ProductDemand-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ProductDemand_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ProductDemand_Projection-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ProductDemand_Projection-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Products-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Products-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Products_ExtensionPointMapping-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Products_ExtensionPointMapping_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Products_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Products_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Products_Projection-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Products_Projection-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/RecordProductDemand-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/RecordProductDemand-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/{RecordProductDemand_Behavior-CatalogPlugin.cmi → RecordProductDemand_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/ocaml/{RecordProductDemand_Behavior-CatalogPlugin.cmt → RecordProductDemand_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/ocaml/{RecordProductDemand_Behavior.ast → RecordProductDemand_Decision.ast} +0 -0
- package/{src/ProductDemand/StateChange/RecordProductDemand_Behavior.res → lib/ocaml/RecordProductDemand_Decision.res} +1 -1
- package/lib/ocaml/RecordProductDemand_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/RecordProductDemand_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/RecordProductDemand_GWT.ast +0 -0
- package/lib/ocaml/RenameCategory-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/RenameCategory-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/{RenameCategory_Behavior-CatalogPlugin.cmi → RenameCategory_Decision-CatalogPlugin.cmi} +0 -0
- package/lib/ocaml/{RenameCategory_Behavior-CatalogPlugin.cmt → RenameCategory_Decision-CatalogPlugin.cmt} +0 -0
- package/lib/{bs/src/Category/StateChange/RenameCategory_Behavior.ast → ocaml/RenameCategory_Decision.ast} +0 -0
- package/lib/{bs/src/Category/StateChange/RenameCategory_Behavior.res → ocaml/RenameCategory_Decision.res} +1 -1
- package/lib/ocaml/RenameCategory_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/RenameCategory_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/RenameCategory_GWT.ast +0 -0
- package/package.json +7 -7
- package/src/Category/StateChange/{AddCategory_Behavior.res → AddCategory_Decision.res} +1 -1
- package/{lib/bs/src/Category/StateChange/AddCategory_Behavior.res.mjs → src/Category/StateChange/AddCategory_Decision.res.mjs} +1 -1
- package/{lib/bs/src/Category/StateChange/ArchiveCategory_Behavior.res → src/Category/StateChange/ArchiveCategory_Decision.res} +1 -1
- package/{lib/bs/src/Category/StateChange/ArchiveCategory_Behavior.res.mjs → src/Category/StateChange/ArchiveCategory_Decision.res.mjs} +1 -1
- package/{lib/ocaml/RenameCategory_Behavior.res → src/Category/StateChange/RenameCategory_Decision.res} +1 -1
- package/{lib/bs/src/Category/StateChange/RenameCategory_Behavior.res.mjs → src/Category/StateChange/RenameCategory_Decision.res.mjs} +1 -1
- package/src/Plugin.res +8 -8
- package/src/Plugin.res.mjs +40 -40
- package/{lib/ocaml/AddProduct_Behavior.res → src/Product/StateChange/AddProduct_Decision.res} +1 -1
- package/{lib/bs/src/Product/StateChange/AddProduct_Behavior.res.mjs → src/Product/StateChange/AddProduct_Decision.res.mjs} +1 -1
- package/{lib/bs/src/Product/StateChange/ChangeProductDescription_Behavior.res → src/Product/StateChange/ChangeProductDescription_Decision.res} +1 -1
- package/{lib/bs/src/Product/StateChange/ChangeProductDescription_Behavior.res.mjs → src/Product/StateChange/ChangeProductDescription_Decision.res.mjs} +1 -1
- package/{lib/ocaml/ChangeProductName_Behavior.res → src/Product/StateChange/ChangeProductName_Decision.res} +1 -1
- package/{lib/bs/src/Product/StateChange/ChangeProductName_Behavior.res.mjs → src/Product/StateChange/ChangeProductName_Decision.res.mjs} +1 -1
- package/{lib/ocaml/ChangeProductPrice_Behavior.res → src/Product/StateChange/ChangeProductPrice_Decision.res} +1 -1
- package/src/Product/StateChange/{ChangeProductPrice_Behavior.res.mjs → ChangeProductPrice_Decision.res.mjs} +1 -1
- package/{lib/ocaml/RecordProductDemand_Behavior.res → src/ProductDemand/StateChange/RecordProductDemand_Decision.res} +1 -1
- package/{lib/bs/src/ProductDemand/StateChange/RecordProductDemand_Behavior.res.mjs → src/ProductDemand/StateChange/RecordProductDemand_Decision.res.mjs} +1 -1
- package/tests/Category/StateChange/AddCategory_GWT.res.mjs +8 -8
- package/tests/Category/StateChange/ArchiveCategory_GWT.res +2 -2
- package/tests/Category/StateChange/ArchiveCategory_GWT.res.mjs +10 -10
- package/tests/Category/StateChange/RenameCategory_GWT.res.mjs +8 -8
- package/tests/CategoryActivity/ReadModel/CategoryActivity_GWT.res +1 -1
- package/tests/Product/StateChange/AddProduct_GWT.res.mjs +8 -8
- package/tests/Product/StateChange/ChangeProductDescription_GWT.res.mjs +8 -8
- package/tests/Product/StateChange/ChangeProductName_GWT.res.mjs +8 -8
- package/tests/Product/StateChange/ChangeProductPrice_GWT.res.mjs +8 -8
- package/tests/ProductDemand/StateChange/RecordProductDemand_GWT.res.mjs +8 -8
- /package/lib/bs/src/Category/StateChange/{AddCategory_Behavior-CatalogPlugin.cmj → AddCategory_Decision-CatalogPlugin.cmj} +0 -0
- /package/lib/bs/src/Category/StateChange/{ArchiveCategory_Behavior-CatalogPlugin.cmj → ArchiveCategory_Decision-CatalogPlugin.cmj} +0 -0
- /package/lib/bs/src/Category/StateChange/{RenameCategory_Behavior-CatalogPlugin.cmj → RenameCategory_Decision-CatalogPlugin.cmj} +0 -0
- /package/lib/bs/src/Product/StateChange/{AddProduct_Behavior-CatalogPlugin.cmj → AddProduct_Decision-CatalogPlugin.cmj} +0 -0
- /package/lib/bs/src/Product/StateChange/{ChangeProductDescription_Behavior-CatalogPlugin.cmj → ChangeProductDescription_Decision-CatalogPlugin.cmj} +0 -0
- /package/lib/bs/src/Product/StateChange/{ChangeProductName_Behavior-CatalogPlugin.cmj → ChangeProductName_Decision-CatalogPlugin.cmj} +0 -0
- /package/lib/bs/src/Product/StateChange/{ChangeProductPrice_Behavior-CatalogPlugin.cmj → ChangeProductPrice_Decision-CatalogPlugin.cmj} +0 -0
- /package/lib/bs/src/ProductDemand/StateChange/{RecordProductDemand_Behavior-CatalogPlugin.cmj → RecordProductDemand_Decision-CatalogPlugin.cmj} +0 -0
- /package/lib/ocaml/{AddCategory_Behavior-CatalogPlugin.cmj → AddCategory_Decision-CatalogPlugin.cmj} +0 -0
- /package/lib/ocaml/{AddProduct_Behavior-CatalogPlugin.cmj → AddProduct_Decision-CatalogPlugin.cmj} +0 -0
- /package/lib/ocaml/{ArchiveCategory_Behavior-CatalogPlugin.cmj → ArchiveCategory_Decision-CatalogPlugin.cmj} +0 -0
- /package/lib/ocaml/{ChangeProductDescription_Behavior-CatalogPlugin.cmj → ChangeProductDescription_Decision-CatalogPlugin.cmj} +0 -0
- /package/lib/ocaml/{ChangeProductName_Behavior-CatalogPlugin.cmj → ChangeProductName_Decision-CatalogPlugin.cmj} +0 -0
- /package/lib/ocaml/{ChangeProductPrice_Behavior-CatalogPlugin.cmj → ChangeProductPrice_Decision-CatalogPlugin.cmj} +0 -0
- /package/lib/ocaml/{RecordProductDemand_Behavior-CatalogPlugin.cmj → RecordProductDemand_Decision-CatalogPlugin.cmj} +0 -0
- /package/lib/ocaml/{RenameCategory_Behavior-CatalogPlugin.cmj → RenameCategory_Decision-CatalogPlugin.cmj} +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as AddCategory$CatalogPlugin from "../../../src/Category/StateChange/AddCategory.res.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as Decision_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Decision_GWT.res.mjs";
|
|
5
5
|
import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as AddCategory_Decision$CatalogPlugin from "../../../src/Category/StateChange/AddCategory_Decision.res.mjs";
|
|
7
7
|
|
|
8
|
-
let include =
|
|
8
|
+
let include = Decision_GWT$ReventlessGwt.Make({
|
|
9
9
|
name: AddCategory$CatalogPlugin.name,
|
|
10
10
|
consumedEventSchema: AddCategory$CatalogPlugin.consumedEventSchema,
|
|
11
11
|
commandSchema: AddCategory$CatalogPlugin.commandSchema,
|
|
@@ -13,9 +13,9 @@ let include = Behavior_GWT$ReventlessGwt.Make({
|
|
|
13
13
|
eventSchema: AddCategory$CatalogPlugin.eventSchema,
|
|
14
14
|
authorizationOf: AddCategory$CatalogPlugin.authorizationOf
|
|
15
15
|
})({
|
|
16
|
-
initialState:
|
|
17
|
-
evolve:
|
|
18
|
-
decide:
|
|
16
|
+
initialState: AddCategory_Decision$CatalogPlugin.initialState,
|
|
17
|
+
evolve: AddCategory_Decision$CatalogPlugin.evolve,
|
|
18
|
+
decide: AddCategory_Decision$CatalogPlugin.decide
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
let describe = include.describe;
|
|
@@ -71,7 +71,7 @@ let thenEventWithError = include.thenEventWithError;
|
|
|
71
71
|
|
|
72
72
|
let thenEventsWithError = include.thenEventsWithError;
|
|
73
73
|
|
|
74
|
-
let
|
|
74
|
+
let thenForbidden = include.thenForbidden;
|
|
75
75
|
|
|
76
76
|
let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
|
|
77
77
|
|
|
@@ -92,7 +92,7 @@ export {
|
|
|
92
92
|
thenEventWithError,
|
|
93
93
|
thenEventsWithError,
|
|
94
94
|
thenError,
|
|
95
|
-
|
|
95
|
+
thenForbidden,
|
|
96
96
|
thenAppendsConditionedOn,
|
|
97
97
|
thenAppendsConditionedOnExactly,
|
|
98
98
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -39,7 +39,7 @@ describe("Who may ArchiveCategory", () => {
|
|
|
39
39
|
givenEvents([CategoryAdded])
|
|
40
40
|
->asCaller(Caller.owner(shopper))
|
|
41
41
|
->whenCmd(ArchiveCategory({categoryId: c1}))
|
|
42
|
-
->
|
|
42
|
+
->thenForbidden
|
|
43
43
|
)
|
|
44
44
|
|
|
45
45
|
// scenario-id: 1ce2fe61-7c2c-44ee-9f2d-de0e6070242f
|
|
@@ -47,6 +47,6 @@ describe("Who may ArchiveCategory", () => {
|
|
|
47
47
|
givenEvents([CategoryAdded])
|
|
48
48
|
->asCaller(Caller.anonymous)
|
|
49
49
|
->whenCmd(ArchiveCategory({categoryId: c1}))
|
|
50
|
-
->
|
|
50
|
+
->thenForbidden
|
|
51
51
|
)
|
|
52
52
|
})
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Decision_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Decision_GWT.res.mjs";
|
|
4
4
|
import * as ArchiveCategory$CatalogPlugin from "../../../src/Category/StateChange/ArchiveCategory.res.mjs";
|
|
5
5
|
import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as ArchiveCategory_Decision$CatalogPlugin from "../../../src/Category/StateChange/ArchiveCategory_Decision.res.mjs";
|
|
7
7
|
|
|
8
|
-
let include =
|
|
8
|
+
let include = Decision_GWT$ReventlessGwt.Make({
|
|
9
9
|
name: ArchiveCategory$CatalogPlugin.name,
|
|
10
10
|
consumedEventSchema: ArchiveCategory$CatalogPlugin.consumedEventSchema,
|
|
11
11
|
commandSchema: ArchiveCategory$CatalogPlugin.commandSchema,
|
|
@@ -13,9 +13,9 @@ let include = Behavior_GWT$ReventlessGwt.Make({
|
|
|
13
13
|
eventSchema: ArchiveCategory$CatalogPlugin.eventSchema,
|
|
14
14
|
authorizationOf: ArchiveCategory$CatalogPlugin.authorizationOf
|
|
15
15
|
})({
|
|
16
|
-
initialState:
|
|
17
|
-
evolve:
|
|
18
|
-
decide:
|
|
16
|
+
initialState: ArchiveCategory_Decision$CatalogPlugin.initialState,
|
|
17
|
+
evolve: ArchiveCategory_Decision$CatalogPlugin.evolve,
|
|
18
|
+
decide: ArchiveCategory_Decision$CatalogPlugin.decide
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
let describe = include.describe;
|
|
@@ -36,7 +36,7 @@ let thenNoEvent = include.thenNoEvent;
|
|
|
36
36
|
|
|
37
37
|
let thenError = include.thenError;
|
|
38
38
|
|
|
39
|
-
let
|
|
39
|
+
let thenForbidden = include.thenForbidden;
|
|
40
40
|
|
|
41
41
|
describe("ArchiveCategory StateChangeSlice", () => {
|
|
42
42
|
test("non-existent category returns CategoryNotFound", () => thenError(whenCmd(givenEvents([]), {
|
|
@@ -67,11 +67,11 @@ describe("Who may ArchiveCategory", () => {
|
|
|
67
67
|
TAG: "CategoryArchived",
|
|
68
68
|
categoryId: Catalog_Examples$CatalogPlugin.c1
|
|
69
69
|
}));
|
|
70
|
-
test("a shopper may not archive a category", () =>
|
|
70
|
+
test("a shopper may not archive a category", () => thenForbidden(whenCmd(asCaller(givenEvents(["CategoryAdded"]), Caller.owner(Catalog_Examples$CatalogPlugin.shopper, undefined)), {
|
|
71
71
|
TAG: "ArchiveCategory",
|
|
72
72
|
categoryId: Catalog_Examples$CatalogPlugin.c1
|
|
73
73
|
})));
|
|
74
|
-
test("an anonymous caller may not archive a category", () =>
|
|
74
|
+
test("an anonymous caller may not archive a category", () => thenForbidden(whenCmd(asCaller(givenEvents(["CategoryAdded"]), Caller.anonymous), {
|
|
75
75
|
TAG: "ArchiveCategory",
|
|
76
76
|
categoryId: Catalog_Examples$CatalogPlugin.c1
|
|
77
77
|
})));
|
|
@@ -106,7 +106,7 @@ export {
|
|
|
106
106
|
thenEventWithError,
|
|
107
107
|
thenEventsWithError,
|
|
108
108
|
thenError,
|
|
109
|
-
|
|
109
|
+
thenForbidden,
|
|
110
110
|
thenAppendsConditionedOn,
|
|
111
111
|
thenAppendsConditionedOnExactly,
|
|
112
112
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Decision_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Decision_GWT.res.mjs";
|
|
4
4
|
import * as RenameCategory$CatalogPlugin from "../../../src/Category/StateChange/RenameCategory.res.mjs";
|
|
5
5
|
import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as RenameCategory_Decision$CatalogPlugin from "../../../src/Category/StateChange/RenameCategory_Decision.res.mjs";
|
|
7
7
|
|
|
8
|
-
let include =
|
|
8
|
+
let include = Decision_GWT$ReventlessGwt.Make({
|
|
9
9
|
name: RenameCategory$CatalogPlugin.name,
|
|
10
10
|
consumedEventSchema: RenameCategory$CatalogPlugin.consumedEventSchema,
|
|
11
11
|
commandSchema: RenameCategory$CatalogPlugin.commandSchema,
|
|
@@ -13,9 +13,9 @@ let include = Behavior_GWT$ReventlessGwt.Make({
|
|
|
13
13
|
eventSchema: RenameCategory$CatalogPlugin.eventSchema,
|
|
14
14
|
authorizationOf: RenameCategory$CatalogPlugin.authorizationOf
|
|
15
15
|
})({
|
|
16
|
-
initialState:
|
|
17
|
-
evolve:
|
|
18
|
-
decide:
|
|
16
|
+
initialState: RenameCategory_Decision$CatalogPlugin.initialState,
|
|
17
|
+
evolve: RenameCategory_Decision$CatalogPlugin.evolve,
|
|
18
|
+
decide: RenameCategory_Decision$CatalogPlugin.decide
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
let describe = include.describe;
|
|
@@ -85,7 +85,7 @@ let thenEventWithError = include.thenEventWithError;
|
|
|
85
85
|
|
|
86
86
|
let thenEventsWithError = include.thenEventsWithError;
|
|
87
87
|
|
|
88
|
-
let
|
|
88
|
+
let thenForbidden = include.thenForbidden;
|
|
89
89
|
|
|
90
90
|
let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
|
|
91
91
|
|
|
@@ -106,7 +106,7 @@ export {
|
|
|
106
106
|
thenEventWithError,
|
|
107
107
|
thenEventsWithError,
|
|
108
108
|
thenError,
|
|
109
|
-
|
|
109
|
+
thenForbidden,
|
|
110
110
|
thenAppendsConditionedOn,
|
|
111
111
|
thenAppendsConditionedOnExactly,
|
|
112
112
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -2,7 +2,7 @@ open Catalog_Examples
|
|
|
2
2
|
|
|
3
3
|
// Multi-source ReadModel: one `_GWT` instance per source mapping. The
|
|
4
4
|
// `MultiSourceProjection_GWT.Make` functor is single-source — wire one GWT
|
|
5
|
-
// module per Source view and let each describe its own slice of
|
|
5
|
+
// module per Source view and let each describe its own slice of behavior.
|
|
6
6
|
|
|
7
7
|
module CategoryGwt = ReventlessGwt.MultiSourceProjection_GWT.Make(
|
|
8
8
|
CategoryActivity_Projections.CategoryActivityMapping,
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
3
|
import * as AddProduct$CatalogPlugin from "../../../src/Product/StateChange/AddProduct.res.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as Decision_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Decision_GWT.res.mjs";
|
|
5
5
|
import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as AddProduct_Decision$CatalogPlugin from "../../../src/Product/StateChange/AddProduct_Decision.res.mjs";
|
|
7
7
|
|
|
8
|
-
let include =
|
|
8
|
+
let include = Decision_GWT$ReventlessGwt.Make({
|
|
9
9
|
name: AddProduct$CatalogPlugin.name,
|
|
10
10
|
consumedEventSchema: AddProduct$CatalogPlugin.consumedEventSchema,
|
|
11
11
|
commandSchema: AddProduct$CatalogPlugin.commandSchema,
|
|
@@ -13,9 +13,9 @@ let include = Behavior_GWT$ReventlessGwt.Make({
|
|
|
13
13
|
eventSchema: AddProduct$CatalogPlugin.eventSchema,
|
|
14
14
|
authorizationOf: AddProduct$CatalogPlugin.authorizationOf
|
|
15
15
|
})({
|
|
16
|
-
initialState:
|
|
17
|
-
evolve:
|
|
18
|
-
decide:
|
|
16
|
+
initialState: AddProduct_Decision$CatalogPlugin.initialState,
|
|
17
|
+
evolve: AddProduct_Decision$CatalogPlugin.evolve,
|
|
18
|
+
decide: AddProduct_Decision$CatalogPlugin.decide
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
let describe = include.describe;
|
|
@@ -69,7 +69,7 @@ let thenEventWithError = include.thenEventWithError;
|
|
|
69
69
|
|
|
70
70
|
let thenEventsWithError = include.thenEventsWithError;
|
|
71
71
|
|
|
72
|
-
let
|
|
72
|
+
let thenForbidden = include.thenForbidden;
|
|
73
73
|
|
|
74
74
|
let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
|
|
75
75
|
|
|
@@ -90,7 +90,7 @@ export {
|
|
|
90
90
|
thenEventWithError,
|
|
91
91
|
thenEventsWithError,
|
|
92
92
|
thenError,
|
|
93
|
-
|
|
93
|
+
thenForbidden,
|
|
94
94
|
thenAppendsConditionedOn,
|
|
95
95
|
thenAppendsConditionedOnExactly,
|
|
96
96
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Decision_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Decision_GWT.res.mjs";
|
|
4
4
|
import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
|
|
5
5
|
import * as ChangeProductDescription$CatalogPlugin from "../../../src/Product/StateChange/ChangeProductDescription.res.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as ChangeProductDescription_Decision$CatalogPlugin from "../../../src/Product/StateChange/ChangeProductDescription_Decision.res.mjs";
|
|
7
7
|
|
|
8
|
-
let include =
|
|
8
|
+
let include = Decision_GWT$ReventlessGwt.Make({
|
|
9
9
|
name: ChangeProductDescription$CatalogPlugin.name,
|
|
10
10
|
consumedEventSchema: ChangeProductDescription$CatalogPlugin.consumedEventSchema,
|
|
11
11
|
commandSchema: ChangeProductDescription$CatalogPlugin.commandSchema,
|
|
@@ -13,9 +13,9 @@ let include = Behavior_GWT$ReventlessGwt.Make({
|
|
|
13
13
|
eventSchema: ChangeProductDescription$CatalogPlugin.eventSchema,
|
|
14
14
|
authorizationOf: ChangeProductDescription$CatalogPlugin.authorizationOf
|
|
15
15
|
})({
|
|
16
|
-
initialState:
|
|
17
|
-
evolve:
|
|
18
|
-
decide:
|
|
16
|
+
initialState: ChangeProductDescription_Decision$CatalogPlugin.initialState,
|
|
17
|
+
evolve: ChangeProductDescription_Decision$CatalogPlugin.evolve,
|
|
18
|
+
decide: ChangeProductDescription_Decision$CatalogPlugin.decide
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
let describe = include.describe;
|
|
@@ -74,7 +74,7 @@ let thenEventWithError = include.thenEventWithError;
|
|
|
74
74
|
|
|
75
75
|
let thenEventsWithError = include.thenEventsWithError;
|
|
76
76
|
|
|
77
|
-
let
|
|
77
|
+
let thenForbidden = include.thenForbidden;
|
|
78
78
|
|
|
79
79
|
let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
|
|
80
80
|
|
|
@@ -95,7 +95,7 @@ export {
|
|
|
95
95
|
thenEventWithError,
|
|
96
96
|
thenEventsWithError,
|
|
97
97
|
thenError,
|
|
98
|
-
|
|
98
|
+
thenForbidden,
|
|
99
99
|
thenAppendsConditionedOn,
|
|
100
100
|
thenAppendsConditionedOnExactly,
|
|
101
101
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Decision_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Decision_GWT.res.mjs";
|
|
4
4
|
import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
|
|
5
5
|
import * as ChangeProductName$CatalogPlugin from "../../../src/Product/StateChange/ChangeProductName.res.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as ChangeProductName_Decision$CatalogPlugin from "../../../src/Product/StateChange/ChangeProductName_Decision.res.mjs";
|
|
7
7
|
|
|
8
|
-
let include =
|
|
8
|
+
let include = Decision_GWT$ReventlessGwt.Make({
|
|
9
9
|
name: ChangeProductName$CatalogPlugin.name,
|
|
10
10
|
consumedEventSchema: ChangeProductName$CatalogPlugin.consumedEventSchema,
|
|
11
11
|
commandSchema: ChangeProductName$CatalogPlugin.commandSchema,
|
|
@@ -13,9 +13,9 @@ let include = Behavior_GWT$ReventlessGwt.Make({
|
|
|
13
13
|
eventSchema: ChangeProductName$CatalogPlugin.eventSchema,
|
|
14
14
|
authorizationOf: ChangeProductName$CatalogPlugin.authorizationOf
|
|
15
15
|
})({
|
|
16
|
-
initialState:
|
|
17
|
-
evolve:
|
|
18
|
-
decide:
|
|
16
|
+
initialState: ChangeProductName_Decision$CatalogPlugin.initialState,
|
|
17
|
+
evolve: ChangeProductName_Decision$CatalogPlugin.evolve,
|
|
18
|
+
decide: ChangeProductName_Decision$CatalogPlugin.decide
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
let describe = include.describe;
|
|
@@ -74,7 +74,7 @@ let thenEventWithError = include.thenEventWithError;
|
|
|
74
74
|
|
|
75
75
|
let thenEventsWithError = include.thenEventsWithError;
|
|
76
76
|
|
|
77
|
-
let
|
|
77
|
+
let thenForbidden = include.thenForbidden;
|
|
78
78
|
|
|
79
79
|
let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
|
|
80
80
|
|
|
@@ -95,7 +95,7 @@ export {
|
|
|
95
95
|
thenEventWithError,
|
|
96
96
|
thenEventsWithError,
|
|
97
97
|
thenError,
|
|
98
|
-
|
|
98
|
+
thenForbidden,
|
|
99
99
|
thenAppendsConditionedOn,
|
|
100
100
|
thenAppendsConditionedOnExactly,
|
|
101
101
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Decision_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Decision_GWT.res.mjs";
|
|
4
4
|
import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
|
|
5
5
|
import * as ChangeProductPrice$CatalogPlugin from "../../../src/Product/StateChange/ChangeProductPrice.res.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as ChangeProductPrice_Decision$CatalogPlugin from "../../../src/Product/StateChange/ChangeProductPrice_Decision.res.mjs";
|
|
7
7
|
|
|
8
|
-
let include =
|
|
8
|
+
let include = Decision_GWT$ReventlessGwt.Make({
|
|
9
9
|
name: ChangeProductPrice$CatalogPlugin.name,
|
|
10
10
|
consumedEventSchema: ChangeProductPrice$CatalogPlugin.consumedEventSchema,
|
|
11
11
|
commandSchema: ChangeProductPrice$CatalogPlugin.commandSchema,
|
|
@@ -13,9 +13,9 @@ let include = Behavior_GWT$ReventlessGwt.Make({
|
|
|
13
13
|
eventSchema: ChangeProductPrice$CatalogPlugin.eventSchema,
|
|
14
14
|
authorizationOf: ChangeProductPrice$CatalogPlugin.authorizationOf
|
|
15
15
|
})({
|
|
16
|
-
initialState:
|
|
17
|
-
evolve:
|
|
18
|
-
decide:
|
|
16
|
+
initialState: ChangeProductPrice_Decision$CatalogPlugin.initialState,
|
|
17
|
+
evolve: ChangeProductPrice_Decision$CatalogPlugin.evolve,
|
|
18
|
+
decide: ChangeProductPrice_Decision$CatalogPlugin.decide
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
let describe = include.describe;
|
|
@@ -74,7 +74,7 @@ let thenEventWithError = include.thenEventWithError;
|
|
|
74
74
|
|
|
75
75
|
let thenEventsWithError = include.thenEventsWithError;
|
|
76
76
|
|
|
77
|
-
let
|
|
77
|
+
let thenForbidden = include.thenForbidden;
|
|
78
78
|
|
|
79
79
|
let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
|
|
80
80
|
|
|
@@ -95,7 +95,7 @@ export {
|
|
|
95
95
|
thenEventWithError,
|
|
96
96
|
thenEventsWithError,
|
|
97
97
|
thenError,
|
|
98
|
-
|
|
98
|
+
thenForbidden,
|
|
99
99
|
thenAppendsConditionedOn,
|
|
100
100
|
thenAppendsConditionedOnExactly,
|
|
101
101
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as Decision_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Decision_GWT.res.mjs";
|
|
4
4
|
import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
|
|
5
5
|
import * as RecordProductDemand$CatalogPlugin from "../../../src/ProductDemand/StateChange/RecordProductDemand.res.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as RecordProductDemand_Decision$CatalogPlugin from "../../../src/ProductDemand/StateChange/RecordProductDemand_Decision.res.mjs";
|
|
7
7
|
|
|
8
|
-
let include =
|
|
8
|
+
let include = Decision_GWT$ReventlessGwt.Make({
|
|
9
9
|
name: RecordProductDemand$CatalogPlugin.name,
|
|
10
10
|
consumedEventSchema: RecordProductDemand$CatalogPlugin.consumedEventSchema,
|
|
11
11
|
commandSchema: RecordProductDemand$CatalogPlugin.commandSchema,
|
|
@@ -13,9 +13,9 @@ let include = Behavior_GWT$ReventlessGwt.Make({
|
|
|
13
13
|
eventSchema: RecordProductDemand$CatalogPlugin.eventSchema,
|
|
14
14
|
authorizationOf: RecordProductDemand$CatalogPlugin.authorizationOf
|
|
15
15
|
})({
|
|
16
|
-
initialState:
|
|
17
|
-
evolve:
|
|
18
|
-
decide:
|
|
16
|
+
initialState: RecordProductDemand_Decision$CatalogPlugin.initialState,
|
|
17
|
+
evolve: RecordProductDemand_Decision$CatalogPlugin.evolve,
|
|
18
|
+
decide: RecordProductDemand_Decision$CatalogPlugin.decide
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
let describe = include.describe;
|
|
@@ -103,7 +103,7 @@ let thenEventsWithError = include.thenEventsWithError;
|
|
|
103
103
|
|
|
104
104
|
let thenError = include.thenError;
|
|
105
105
|
|
|
106
|
-
let
|
|
106
|
+
let thenForbidden = include.thenForbidden;
|
|
107
107
|
|
|
108
108
|
let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
|
|
109
109
|
|
|
@@ -124,7 +124,7 @@ export {
|
|
|
124
124
|
thenEventWithError,
|
|
125
125
|
thenEventsWithError,
|
|
126
126
|
thenError,
|
|
127
|
-
|
|
127
|
+
thenForbidden,
|
|
128
128
|
thenAppendsConditionedOn,
|
|
129
129
|
thenAppendsConditionedOnExactly,
|
|
130
130
|
}
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1792571253244)
|
|
2
|
+
#Done(1792571257138)
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/{AddCategory_Behavior-CatalogPlugin.cmi → AddCategory_Decision-CatalogPlugin.cmi}
RENAMED
|
Binary file
|
package/lib/ocaml/{AddCategory_Behavior-CatalogPlugin.cmt → AddCategory_Decision-CatalogPlugin.cmt}
RENAMED
|
Binary file
|
package/lib/{bs/src/Category/StateChange/AddCategory_Behavior.ast → ocaml/AddCategory_Decision.ast}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/{bs/src/Product/StateChange/AddProduct_Behavior.ast → ocaml/AddProduct_Decision.ast}
RENAMED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -39,7 +39,7 @@ describe("Who may ArchiveCategory", () => {
|
|
|
39
39
|
givenEvents([CategoryAdded])
|
|
40
40
|
->asCaller(Caller.owner(shopper))
|
|
41
41
|
->whenCmd(ArchiveCategory({categoryId: c1}))
|
|
42
|
-
->
|
|
42
|
+
->thenForbidden
|
|
43
43
|
)
|
|
44
44
|
|
|
45
45
|
// scenario-id: 1ce2fe61-7c2c-44ee-9f2d-de0e6070242f
|
|
@@ -47,6 +47,6 @@ describe("Who may ArchiveCategory", () => {
|
|
|
47
47
|
givenEvents([CategoryAdded])
|
|
48
48
|
->asCaller(Caller.anonymous)
|
|
49
49
|
->whenCmd(ArchiveCategory({categoryId: c1}))
|
|
50
|
-
->
|
|
50
|
+
->thenForbidden
|
|
51
51
|
)
|
|
52
52
|
})
|
|
Binary file
|