@reventlessdev/online-shop-dcb-catalog 1.0.0-alpha.251 → 1.0.0-alpha.253
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 +16 -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 +1 -0
- 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 +0 -0
- package/lib/bs/src/Category/StateChange/AddCategory_Behavior-CatalogPlugin.cmt +0 -0
- 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 +0 -0
- package/lib/bs/src/Category/StateChange/ArchiveCategory_Behavior-CatalogPlugin.cmt +0 -0
- 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 +0 -0
- package/lib/bs/src/Category/StateChange/RenameCategory_Behavior-CatalogPlugin.cmt +0 -0
- 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/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/bs/src/Product/StateChange/AddProduct_Behavior-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Product/StateChange/AddProduct_Behavior-CatalogPlugin.cmt +0 -0
- 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 +0 -0
- package/lib/bs/src/Product/StateChange/ChangeProductDescription_Behavior-CatalogPlugin.cmt +0 -0
- 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 +0 -0
- package/lib/bs/src/Product/StateChange/ChangeProductName_Behavior-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Product/StateChange/ChangeProductPrice-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Product/StateChange/ChangeProductPrice-CatalogPlugin.cmt +0 -0
- package/lib/bs/src/Product/StateChange/ChangeProductPrice_Behavior-CatalogPlugin.cmi +0 -0
- package/lib/bs/src/Product/StateChange/ChangeProductPrice_Behavior-CatalogPlugin.cmt +0 -0
- 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 +0 -0
- package/lib/bs/src/ProductDemand/StateChange/RecordProductDemand_Behavior-CatalogPlugin.cmt +0 -0
- 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.cmj +0 -0
- package/lib/bs/tests/Catalog_Examples-CatalogPlugin.cmt +0 -0
- package/lib/bs/tests/Catalog_Examples.ast +0 -0
- package/lib/bs/tests/Catalog_Examples.res +17 -0
- package/lib/bs/tests/Catalog_Examples.res.mjs +47 -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 +8 -5
- package/lib/bs/tests/Category/StateChange/AddCategory_GWT.res.mjs +9 -12
- 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 +8 -5
- package/lib/bs/tests/Category/StateChange/ArchiveCategory_GWT.res.mjs +5 -8
- 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 +13 -9
- package/lib/bs/tests/Category/StateChange/RenameCategory_GWT.res.mjs +14 -17
- 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/Category/StateView/Categories_GWT.ast +0 -0
- package/lib/bs/tests/Category/StateView/Categories_GWT.res +12 -12
- package/lib/bs/tests/Category/StateView/Categories_GWT.res.mjs +16 -18
- 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 +14 -10
- package/lib/bs/tests/CategoryActivity/ReadModel/CategoryActivity_GWT.res.mjs +9 -16
- 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/Extension/Orders_Extension_GWT.ast +0 -0
- package/lib/bs/tests/Extension/Orders_Extension_GWT.res +5 -3
- package/lib/bs/tests/Extension/Orders_Extension_GWT.res.mjs +3 -6
- 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/ExtensionPoint/Products_ExtensionPointMapping_GWT.ast +0 -0
- package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT.res +7 -8
- package/lib/bs/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT.res.mjs +5 -8
- 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/InboundTranslation/ImportProduct_GWT.ast +0 -0
- package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT.res +21 -15
- package/lib/bs/tests/Product/InboundTranslation/ImportProduct_GWT.res.mjs +17 -16
- 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 +6 -4
- package/lib/bs/tests/Product/StateChange/AddProduct_GWT.res.mjs +10 -13
- 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 +10 -7
- package/lib/bs/tests/Product/StateChange/ChangeProductDescription_GWT.res.mjs +9 -12
- 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 +10 -7
- package/lib/bs/tests/Product/StateChange/ChangeProductName_GWT.res.mjs +11 -14
- 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 +8 -5
- package/lib/bs/tests/Product/StateChange/ChangeProductPrice_GWT.res.mjs +5 -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/Product/StateView/Products_GWT.ast +0 -0
- package/lib/bs/tests/Product/StateView/Products_GWT.res +22 -15
- package/lib/bs/tests/Product/StateView/Products_GWT.res.mjs +30 -32
- 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 +20 -14
- package/lib/bs/tests/ProductDemand/StateChange/RecordProductDemand_GWT.res.mjs +23 -26
- 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/bs/tests/ProductDemand/StateView/ProductDemand_GWT.ast +0 -0
- package/lib/bs/tests/ProductDemand/StateView/ProductDemand_GWT.res +18 -14
- package/lib/bs/tests/ProductDemand/StateView/ProductDemand_GWT.res.mjs +22 -24
- 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 +0 -0
- package/lib/ocaml/AddCategory_Behavior-CatalogPlugin.cmt +0 -0
- 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/AddCategory_GWT.res +8 -5
- package/lib/ocaml/AddProduct-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/AddProduct-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/AddProduct_Behavior-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/AddProduct_Behavior-CatalogPlugin.cmt +0 -0
- 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/AddProduct_GWT.res +6 -4
- package/lib/ocaml/ArchiveCategory-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ArchiveCategory-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ArchiveCategory_Behavior-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ArchiveCategory_Behavior-CatalogPlugin.cmt +0 -0
- 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 +8 -5
- package/lib/ocaml/CatalogPlugin.cmi +0 -0
- package/lib/ocaml/CatalogPlugin.cmt +0 -0
- package/lib/ocaml/CatalogPlugin.mlmap +1 -0
- package/lib/ocaml/Catalog_Examples-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Catalog_Examples-CatalogPlugin.cmj +0 -0
- package/lib/ocaml/Catalog_Examples-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Catalog_Examples.ast +0 -0
- package/lib/ocaml/Catalog_Examples.res +17 -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_GWT.ast +0 -0
- package/lib/ocaml/Categories_GWT.res +12 -12
- 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 +14 -10
- 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 +0 -0
- package/lib/ocaml/ChangeProductDescription_Behavior-CatalogPlugin.cmt +0 -0
- 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/ChangeProductDescription_GWT.res +10 -7
- package/lib/ocaml/ChangeProductName-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ChangeProductName-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ChangeProductName_Behavior-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ChangeProductName_Behavior-CatalogPlugin.cmt +0 -0
- 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/ChangeProductName_GWT.res +10 -7
- package/lib/ocaml/ChangeProductPrice-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ChangeProductPrice-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/ChangeProductPrice_Behavior-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/ChangeProductPrice_Behavior-CatalogPlugin.cmt +0 -0
- 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/ChangeProductPrice_GWT.res +8 -5
- 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_GWT.ast +0 -0
- package/lib/ocaml/ImportProduct_GWT.res +21 -15
- 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/Orders_Extension_GWT.ast +0 -0
- package/lib/ocaml/Orders_Extension_GWT.res +5 -3
- package/lib/ocaml/Plugin-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Plugin-CatalogPlugin.cmt +0 -0
- 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_GWT.ast +0 -0
- package/lib/ocaml/ProductDemand_GWT.res +18 -14
- 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_ExtensionPointMapping_GWT.ast +0 -0
- package/lib/ocaml/Products_ExtensionPointMapping_GWT.res +7 -8
- package/lib/ocaml/Products_GWT-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/Products_GWT-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/Products_GWT.ast +0 -0
- package/lib/ocaml/Products_GWT.res +22 -15
- 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 +0 -0
- package/lib/ocaml/RecordProductDemand_Behavior-CatalogPlugin.cmt +0 -0
- 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/RecordProductDemand_GWT.res +20 -14
- package/lib/ocaml/RenameCategory-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/RenameCategory-CatalogPlugin.cmt +0 -0
- package/lib/ocaml/RenameCategory_Behavior-CatalogPlugin.cmi +0 -0
- package/lib/ocaml/RenameCategory_Behavior-CatalogPlugin.cmt +0 -0
- 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/lib/ocaml/RenameCategory_GWT.res +13 -9
- package/package.json +8 -8
- package/tests/Catalog_Examples.res +17 -0
- package/tests/Catalog_Examples.res.mjs +47 -0
- package/tests/Category/StateChange/AddCategory_GWT.res +8 -5
- package/tests/Category/StateChange/AddCategory_GWT.res.mjs +9 -12
- package/tests/Category/StateChange/ArchiveCategory_GWT.res +8 -5
- package/tests/Category/StateChange/ArchiveCategory_GWT.res.mjs +5 -8
- package/tests/Category/StateChange/RenameCategory_GWT.res +13 -9
- package/tests/Category/StateChange/RenameCategory_GWT.res.mjs +14 -17
- package/tests/Category/StateView/Categories_GWT.res +12 -12
- package/tests/Category/StateView/Categories_GWT.res.mjs +16 -18
- package/tests/CategoryActivity/ReadModel/CategoryActivity_GWT.res +14 -10
- package/tests/CategoryActivity/ReadModel/CategoryActivity_GWT.res.mjs +9 -16
- package/tests/Extension/Orders_Extension_GWT.res +5 -3
- package/tests/Extension/Orders_Extension_GWT.res.mjs +3 -6
- package/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT.res +7 -8
- package/tests/ExtensionPoint/Products_ExtensionPointMapping_GWT.res.mjs +5 -8
- package/tests/Product/InboundTranslation/ImportProduct_GWT.res +21 -15
- package/tests/Product/InboundTranslation/ImportProduct_GWT.res.mjs +17 -16
- package/tests/Product/StateChange/AddProduct_GWT.res +6 -4
- package/tests/Product/StateChange/AddProduct_GWT.res.mjs +10 -13
- package/tests/Product/StateChange/ChangeProductDescription_GWT.res +10 -7
- package/tests/Product/StateChange/ChangeProductDescription_GWT.res.mjs +9 -12
- package/tests/Product/StateChange/ChangeProductName_GWT.res +10 -7
- package/tests/Product/StateChange/ChangeProductName_GWT.res.mjs +11 -14
- package/tests/Product/StateChange/ChangeProductPrice_GWT.res +8 -5
- package/tests/Product/StateChange/ChangeProductPrice_GWT.res.mjs +5 -8
- package/tests/Product/StateView/Products_GWT.res +22 -15
- package/tests/Product/StateView/Products_GWT.res.mjs +30 -32
- package/tests/ProductDemand/StateChange/RecordProductDemand_GWT.res +20 -14
- package/tests/ProductDemand/StateChange/RecordProductDemand_GWT.res.mjs +23 -26
- package/tests/ProductDemand/StateView/ProductDemand_GWT.res +18 -14
- package/tests/ProductDemand/StateView/ProductDemand_GWT.res.mjs +22 -24
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.253 (2026-09-23)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @reventlessdev/online-shop-dcb-catalog
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# 1.0.0-alpha.252 (2026-09-22)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @reventlessdev/online-shop-dcb-catalog
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# 1.0.0-alpha.251 (2026-09-21)
|
|
7
23
|
|
|
8
24
|
### Bug Fixes
|
package/lib/bs/.compiler.log
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
#Start(
|
|
2
|
-
#Done(
|
|
1
|
+
#Start(1790168171120)
|
|
2
|
+
#Done(1790168173912)
|
package/lib/bs/CatalogPlugin.cmi
CHANGED
|
Binary file
|
package/lib/bs/CatalogPlugin.cmt
CHANGED
|
Binary file
|
|
@@ -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": "
|
|
7
|
+
"generated_at": "1790168173924"
|
|
8
8
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity_Projections-CatalogPlugin.cmi
CHANGED
|
Binary file
|
package/lib/bs/src/CategoryActivity/ReadModel/CategoryActivity_Projections-CatalogPlugin.cmt
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@@reventless.examples
|
|
2
|
+
|
|
3
|
+
let c1: CategoryId.t = CategoryId.makeFromString("c1")
|
|
4
|
+
|
|
5
|
+
let p1: CatalogSpec.ProductId.t = CatalogSpec.ProductId.makeFromString("p1")
|
|
6
|
+
|
|
7
|
+
let anyDescription: string = "x"
|
|
8
|
+
let consumerElectronics: string = "Consumer Electronics"
|
|
9
|
+
let electronics: string = "Electronics"
|
|
10
|
+
let gamingLaptop: string = "Gaming Laptop"
|
|
11
|
+
let highEnd: string = "high-end"
|
|
12
|
+
let laptop: string = "Laptop"
|
|
13
|
+
let laptopDescription: string = "A laptop"
|
|
14
|
+
let order1: string = "order-1"
|
|
15
|
+
let order2: string = "order-2"
|
|
16
|
+
let sku: string = "p-1"
|
|
17
|
+
let usd: string = "USD"
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
|
+
|
|
3
|
+
import * as ProductId$CatalogSpec from "@reventlessdev/online-shop-dcb-catalog-spec/src/ProductId.res.mjs";
|
|
4
|
+
import * as CategoryId$CatalogPlugin from "../src/Category/CategoryId.res.mjs";
|
|
5
|
+
|
|
6
|
+
let c1 = CategoryId$CatalogPlugin.makeFromString("c1");
|
|
7
|
+
|
|
8
|
+
let p1 = ProductId$CatalogSpec.makeFromString("p1");
|
|
9
|
+
|
|
10
|
+
let anyDescription = "x";
|
|
11
|
+
|
|
12
|
+
let consumerElectronics = "Consumer Electronics";
|
|
13
|
+
|
|
14
|
+
let electronics = "Electronics";
|
|
15
|
+
|
|
16
|
+
let gamingLaptop = "Gaming Laptop";
|
|
17
|
+
|
|
18
|
+
let highEnd = "high-end";
|
|
19
|
+
|
|
20
|
+
let laptop = "Laptop";
|
|
21
|
+
|
|
22
|
+
let laptopDescription = "A laptop";
|
|
23
|
+
|
|
24
|
+
let order1 = "order-1";
|
|
25
|
+
|
|
26
|
+
let order2 = "order-2";
|
|
27
|
+
|
|
28
|
+
let sku = "p-1";
|
|
29
|
+
|
|
30
|
+
let usd = "USD";
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
c1,
|
|
34
|
+
p1,
|
|
35
|
+
anyDescription,
|
|
36
|
+
consumerElectronics,
|
|
37
|
+
electronics,
|
|
38
|
+
gamingLaptop,
|
|
39
|
+
highEnd,
|
|
40
|
+
laptop,
|
|
41
|
+
laptopDescription,
|
|
42
|
+
order1,
|
|
43
|
+
order2,
|
|
44
|
+
sku,
|
|
45
|
+
usd,
|
|
46
|
+
}
|
|
47
|
+
/* c1 Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
@@reventless.gwt
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
open Catalog_Examples
|
|
4
4
|
|
|
5
5
|
describe("AddCategory StateChangeSlice", () => {
|
|
6
|
+
// scenario-id: 47177361-8d6c-4779-a480-205c15f81cba
|
|
6
7
|
test("empty event log produces CategoryAdded", () =>
|
|
7
8
|
givenEvents([])
|
|
8
|
-
->whenCmd(AddCategory({categoryId:
|
|
9
|
-
->thenEvent(CategoryAdded({categoryId:
|
|
9
|
+
->whenCmd(AddCategory({categoryId: c1, name: electronics}))
|
|
10
|
+
->thenEvent(CategoryAdded({categoryId: c1, name: electronics}))
|
|
10
11
|
)
|
|
11
12
|
|
|
13
|
+
// scenario-id: f992f21a-5262-460d-8cb5-525cb1f47535
|
|
12
14
|
test("existing category returns CategoryAlreadyExists", () =>
|
|
13
15
|
givenEvents([CategoryAdded])
|
|
14
|
-
->whenCmd(AddCategory({categoryId:
|
|
16
|
+
->whenCmd(AddCategory({categoryId: c1, name: electronics}))
|
|
15
17
|
->thenError(CategoryAlreadyExists)
|
|
16
18
|
)
|
|
17
19
|
|
|
20
|
+
// scenario-id: 2876b32e-3cf4-43e2-94b2-849a4b6ec1ef
|
|
18
21
|
test("archived category still rejects new AddCategory", () =>
|
|
19
22
|
givenEvents([CategoryAdded, CategoryArchived])
|
|
20
|
-
->whenCmd(AddCategory({categoryId:
|
|
23
|
+
->whenCmd(AddCategory({categoryId: c1, name: electronics}))
|
|
21
24
|
->thenError(CategoryAlreadyExists)
|
|
22
25
|
)
|
|
23
26
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as CategoryId$CatalogPlugin from "../../../src/Category/CategoryId.res.mjs";
|
|
4
3
|
import * as AddCategory$CatalogPlugin from "../../../src/Category/StateChange/AddCategory.res.mjs";
|
|
5
4
|
import * as Behavior_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Behavior_GWT.res.mjs";
|
|
5
|
+
import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
|
|
6
6
|
import * as AddCategory_Behavior$CatalogPlugin from "../../../src/Category/StateChange/AddCategory_Behavior.res.mjs";
|
|
7
7
|
|
|
8
8
|
let include = Behavior_GWT$ReventlessGwt.Make({
|
|
@@ -32,25 +32,25 @@ let thenError = include.thenError;
|
|
|
32
32
|
describe("AddCategory StateChangeSlice", () => {
|
|
33
33
|
test("empty event log produces CategoryAdded", () => thenEvent(whenCmd(givenEvents([]), {
|
|
34
34
|
TAG: "AddCategory",
|
|
35
|
-
categoryId:
|
|
36
|
-
name:
|
|
35
|
+
categoryId: Catalog_Examples$CatalogPlugin.c1,
|
|
36
|
+
name: Catalog_Examples$CatalogPlugin.electronics
|
|
37
37
|
}), {
|
|
38
38
|
TAG: "CategoryAdded",
|
|
39
|
-
categoryId:
|
|
40
|
-
name:
|
|
39
|
+
categoryId: Catalog_Examples$CatalogPlugin.c1,
|
|
40
|
+
name: Catalog_Examples$CatalogPlugin.electronics
|
|
41
41
|
}));
|
|
42
42
|
test("existing category returns CategoryAlreadyExists", () => thenError(whenCmd(givenEvents(["CategoryAdded"]), {
|
|
43
43
|
TAG: "AddCategory",
|
|
44
|
-
categoryId:
|
|
45
|
-
name:
|
|
44
|
+
categoryId: Catalog_Examples$CatalogPlugin.c1,
|
|
45
|
+
name: Catalog_Examples$CatalogPlugin.electronics
|
|
46
46
|
}), "CategoryAlreadyExists"));
|
|
47
47
|
test("archived category still rejects new AddCategory", () => thenError(whenCmd(givenEvents([
|
|
48
48
|
"CategoryAdded",
|
|
49
49
|
"CategoryArchived"
|
|
50
50
|
]), {
|
|
51
51
|
TAG: "AddCategory",
|
|
52
|
-
categoryId:
|
|
53
|
-
name:
|
|
52
|
+
categoryId: Catalog_Examples$CatalogPlugin.c1,
|
|
53
|
+
name: Catalog_Examples$CatalogPlugin.electronics
|
|
54
54
|
}), "CategoryAlreadyExists"));
|
|
55
55
|
});
|
|
56
56
|
|
|
@@ -70,8 +70,6 @@ let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
|
|
|
70
70
|
|
|
71
71
|
let thenAppendsConditionedOnExactly = include.thenAppendsConditionedOnExactly;
|
|
72
72
|
|
|
73
|
-
let catId = CategoryId$CatalogPlugin.make;
|
|
74
|
-
|
|
75
73
|
export {
|
|
76
74
|
Spec,
|
|
77
75
|
describe,
|
|
@@ -87,6 +85,5 @@ export {
|
|
|
87
85
|
thenError,
|
|
88
86
|
thenAppendsConditionedOn,
|
|
89
87
|
thenAppendsConditionedOnExactly,
|
|
90
|
-
catId,
|
|
91
88
|
}
|
|
92
89
|
/* include Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
@@reventless.gwt
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
open Catalog_Examples
|
|
4
4
|
|
|
5
5
|
describe("ArchiveCategory StateChangeSlice", () => {
|
|
6
|
+
// scenario-id: 49ce0e1d-9e21-4883-b59a-86951fd8ff07
|
|
6
7
|
test("non-existent category returns CategoryNotFound", () =>
|
|
7
8
|
givenEvents([])
|
|
8
|
-
->whenCmd(ArchiveCategory({categoryId:
|
|
9
|
+
->whenCmd(ArchiveCategory({categoryId: c1}))
|
|
9
10
|
->thenError(CategoryNotFound)
|
|
10
11
|
)
|
|
11
12
|
|
|
13
|
+
// scenario-id: b424296a-dd52-469a-90af-76a2a5a6edab
|
|
12
14
|
test("existing active category produces CategoryArchived", () =>
|
|
13
15
|
givenEvents([CategoryAdded])
|
|
14
|
-
->whenCmd(ArchiveCategory({categoryId:
|
|
15
|
-
->thenEvent(CategoryArchived({categoryId:
|
|
16
|
+
->whenCmd(ArchiveCategory({categoryId: c1}))
|
|
17
|
+
->thenEvent(CategoryArchived({categoryId: c1}))
|
|
16
18
|
)
|
|
17
19
|
|
|
20
|
+
// scenario-id: ad141ffb-7abc-4fbc-8450-195851a2e44d
|
|
18
21
|
test("already archived category produces no events (idempotent)", () =>
|
|
19
22
|
givenEvents([CategoryAdded, CategoryArchived])
|
|
20
|
-
->whenCmd(ArchiveCategory({categoryId:
|
|
23
|
+
->whenCmd(ArchiveCategory({categoryId: c1}))
|
|
21
24
|
->thenNoEvent
|
|
22
25
|
)
|
|
23
26
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as CategoryId$CatalogPlugin from "../../../src/Category/CategoryId.res.mjs";
|
|
4
3
|
import * as Behavior_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Behavior_GWT.res.mjs";
|
|
5
4
|
import * as ArchiveCategory$CatalogPlugin from "../../../src/Category/StateChange/ArchiveCategory.res.mjs";
|
|
5
|
+
import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
|
|
6
6
|
import * as ArchiveCategory_Behavior$CatalogPlugin from "../../../src/Category/StateChange/ArchiveCategory_Behavior.res.mjs";
|
|
7
7
|
|
|
8
8
|
let include = Behavior_GWT$ReventlessGwt.Make({
|
|
@@ -34,21 +34,21 @@ let thenError = include.thenError;
|
|
|
34
34
|
describe("ArchiveCategory StateChangeSlice", () => {
|
|
35
35
|
test("non-existent category returns CategoryNotFound", () => thenError(whenCmd(givenEvents([]), {
|
|
36
36
|
TAG: "ArchiveCategory",
|
|
37
|
-
categoryId:
|
|
37
|
+
categoryId: Catalog_Examples$CatalogPlugin.c1
|
|
38
38
|
}), "CategoryNotFound"));
|
|
39
39
|
test("existing active category produces CategoryArchived", () => thenEvent(whenCmd(givenEvents(["CategoryAdded"]), {
|
|
40
40
|
TAG: "ArchiveCategory",
|
|
41
|
-
categoryId:
|
|
41
|
+
categoryId: Catalog_Examples$CatalogPlugin.c1
|
|
42
42
|
}), {
|
|
43
43
|
TAG: "CategoryArchived",
|
|
44
|
-
categoryId:
|
|
44
|
+
categoryId: Catalog_Examples$CatalogPlugin.c1
|
|
45
45
|
}));
|
|
46
46
|
test("already archived category produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([
|
|
47
47
|
"CategoryAdded",
|
|
48
48
|
"CategoryArchived"
|
|
49
49
|
]), {
|
|
50
50
|
TAG: "ArchiveCategory",
|
|
51
|
-
categoryId:
|
|
51
|
+
categoryId: Catalog_Examples$CatalogPlugin.c1
|
|
52
52
|
})));
|
|
53
53
|
});
|
|
54
54
|
|
|
@@ -66,8 +66,6 @@ let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
|
|
|
66
66
|
|
|
67
67
|
let thenAppendsConditionedOnExactly = include.thenAppendsConditionedOnExactly;
|
|
68
68
|
|
|
69
|
-
let catId = CategoryId$CatalogPlugin.make;
|
|
70
|
-
|
|
71
69
|
export {
|
|
72
70
|
Spec,
|
|
73
71
|
describe,
|
|
@@ -83,6 +81,5 @@ export {
|
|
|
83
81
|
thenError,
|
|
84
82
|
thenAppendsConditionedOn,
|
|
85
83
|
thenAppendsConditionedOnExactly,
|
|
86
|
-
catId,
|
|
87
84
|
}
|
|
88
85
|
/* include Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
@@reventless.gwt
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
open Catalog_Examples
|
|
4
4
|
|
|
5
5
|
describe("RenameCategory StateChangeSlice", () => {
|
|
6
|
+
// scenario-id: 510ec7f6-4a46-4807-ba06-0cbf43eed254
|
|
6
7
|
test("non-existent category returns CategoryNotFound", () =>
|
|
7
8
|
givenEvents([])
|
|
8
|
-
->whenCmd(RenameCategory({categoryId:
|
|
9
|
+
->whenCmd(RenameCategory({categoryId: c1, name: consumerElectronics}))
|
|
9
10
|
->thenError(CategoryNotFound)
|
|
10
11
|
)
|
|
11
12
|
|
|
13
|
+
// scenario-id: 29ecdd5f-5225-438d-8129-1e3f0a1a978d
|
|
12
14
|
test("existing active category produces CategoryRenamed", () =>
|
|
13
|
-
givenEvents([CategoryAdded({name:
|
|
14
|
-
->whenCmd(RenameCategory({categoryId:
|
|
15
|
-
->thenEvent(CategoryRenamed({categoryId:
|
|
15
|
+
givenEvents([CategoryAdded({name: electronics})])
|
|
16
|
+
->whenCmd(RenameCategory({categoryId: c1, name: consumerElectronics}))
|
|
17
|
+
->thenEvent(CategoryRenamed({categoryId: c1, name: consumerElectronics}))
|
|
16
18
|
)
|
|
17
19
|
|
|
20
|
+
// scenario-id: 4fd166f6-e9de-4872-8aa5-e7b89b95288f
|
|
18
21
|
test("renaming to the current name produces no events (idempotent)", () =>
|
|
19
|
-
givenEvents([CategoryAdded({name:
|
|
20
|
-
->whenCmd(RenameCategory({categoryId:
|
|
22
|
+
givenEvents([CategoryAdded({name: electronics})])
|
|
23
|
+
->whenCmd(RenameCategory({categoryId: c1, name: electronics}))
|
|
21
24
|
->thenNoEvent
|
|
22
25
|
)
|
|
23
26
|
|
|
27
|
+
// scenario-id: a2323466-eec1-42c7-86ad-26a2bcc811d3
|
|
24
28
|
test("archived category returns CategoryAlreadyArchived", () =>
|
|
25
|
-
givenEvents([CategoryAdded({name:
|
|
26
|
-
->whenCmd(RenameCategory({categoryId:
|
|
29
|
+
givenEvents([CategoryAdded({name: electronics}), CategoryArchived])
|
|
30
|
+
->whenCmd(RenameCategory({categoryId: c1, name: consumerElectronics}))
|
|
27
31
|
->thenError(CategoryAlreadyArchived)
|
|
28
32
|
)
|
|
29
33
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Generated by ReScript, PLEASE EDIT WITH CARE
|
|
2
2
|
|
|
3
|
-
import * as CategoryId$CatalogPlugin from "../../../src/Category/CategoryId.res.mjs";
|
|
4
3
|
import * as Behavior_GWT$ReventlessGwt from "@reventlessdev/reventless-gwt/src/Behavior_GWT.res.mjs";
|
|
5
4
|
import * as RenameCategory$CatalogPlugin from "../../../src/Category/StateChange/RenameCategory.res.mjs";
|
|
5
|
+
import * as Catalog_Examples$CatalogPlugin from "../../Catalog_Examples.res.mjs";
|
|
6
6
|
import * as RenameCategory_Behavior$CatalogPlugin from "../../../src/Category/StateChange/RenameCategory_Behavior.res.mjs";
|
|
7
7
|
|
|
8
8
|
let include = Behavior_GWT$ReventlessGwt.Make({
|
|
@@ -34,39 +34,39 @@ let thenError = include.thenError;
|
|
|
34
34
|
describe("RenameCategory StateChangeSlice", () => {
|
|
35
35
|
test("non-existent category returns CategoryNotFound", () => thenError(whenCmd(givenEvents([]), {
|
|
36
36
|
TAG: "RenameCategory",
|
|
37
|
-
categoryId:
|
|
38
|
-
name:
|
|
37
|
+
categoryId: Catalog_Examples$CatalogPlugin.c1,
|
|
38
|
+
name: Catalog_Examples$CatalogPlugin.consumerElectronics
|
|
39
39
|
}), "CategoryNotFound"));
|
|
40
40
|
test("existing active category produces CategoryRenamed", () => thenEvent(whenCmd(givenEvents([{
|
|
41
41
|
TAG: "CategoryAdded",
|
|
42
|
-
name:
|
|
42
|
+
name: Catalog_Examples$CatalogPlugin.electronics
|
|
43
43
|
}]), {
|
|
44
44
|
TAG: "RenameCategory",
|
|
45
|
-
categoryId:
|
|
46
|
-
name:
|
|
45
|
+
categoryId: Catalog_Examples$CatalogPlugin.c1,
|
|
46
|
+
name: Catalog_Examples$CatalogPlugin.consumerElectronics
|
|
47
47
|
}), {
|
|
48
48
|
TAG: "CategoryRenamed",
|
|
49
|
-
categoryId:
|
|
50
|
-
name:
|
|
49
|
+
categoryId: Catalog_Examples$CatalogPlugin.c1,
|
|
50
|
+
name: Catalog_Examples$CatalogPlugin.consumerElectronics
|
|
51
51
|
}));
|
|
52
52
|
test("renaming to the current name produces no events (idempotent)", () => thenNoEvent(whenCmd(givenEvents([{
|
|
53
53
|
TAG: "CategoryAdded",
|
|
54
|
-
name:
|
|
54
|
+
name: Catalog_Examples$CatalogPlugin.electronics
|
|
55
55
|
}]), {
|
|
56
56
|
TAG: "RenameCategory",
|
|
57
|
-
categoryId:
|
|
58
|
-
name:
|
|
57
|
+
categoryId: Catalog_Examples$CatalogPlugin.c1,
|
|
58
|
+
name: Catalog_Examples$CatalogPlugin.electronics
|
|
59
59
|
})));
|
|
60
60
|
test("archived category returns CategoryAlreadyArchived", () => thenError(whenCmd(givenEvents([
|
|
61
61
|
{
|
|
62
62
|
TAG: "CategoryAdded",
|
|
63
|
-
name:
|
|
63
|
+
name: Catalog_Examples$CatalogPlugin.electronics
|
|
64
64
|
},
|
|
65
65
|
"CategoryArchived"
|
|
66
66
|
]), {
|
|
67
67
|
TAG: "RenameCategory",
|
|
68
|
-
categoryId:
|
|
69
|
-
name:
|
|
68
|
+
categoryId: Catalog_Examples$CatalogPlugin.c1,
|
|
69
|
+
name: Catalog_Examples$CatalogPlugin.consumerElectronics
|
|
70
70
|
}), "CategoryAlreadyArchived"));
|
|
71
71
|
});
|
|
72
72
|
|
|
@@ -84,8 +84,6 @@ let thenAppendsConditionedOn = include.thenAppendsConditionedOn;
|
|
|
84
84
|
|
|
85
85
|
let thenAppendsConditionedOnExactly = include.thenAppendsConditionedOnExactly;
|
|
86
86
|
|
|
87
|
-
let catId = CategoryId$CatalogPlugin.make;
|
|
88
|
-
|
|
89
87
|
export {
|
|
90
88
|
Spec,
|
|
91
89
|
describe,
|
|
@@ -101,6 +99,5 @@ export {
|
|
|
101
99
|
thenError,
|
|
102
100
|
thenAppendsConditionedOn,
|
|
103
101
|
thenAppendsConditionedOnExactly,
|
|
104
|
-
catId,
|
|
105
102
|
}
|
|
106
103
|
/* include Not a pure module */
|
|
Binary file
|
|
Binary file
|
|
Binary file
|