@reventlessdev/online-shop-dcb-ordering 1.0.0-alpha.241 → 1.0.0-alpha.243
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 +22 -0
- package/lib/bs/.compiler.log +2 -2
- package/lib/bs/compiler-info.json +1 -1
- package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/StateChange/SyncCatalogProduct_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/CatalogProduct/StateView/AvailableProducts-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/StateView/AvailableProducts-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/CatalogProduct/StateView/AvailableProducts_Projection-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/CatalogProduct/StateView/AvailableProducts_Projection-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeAddress-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeAddress-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeAddress_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeAddress_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeEmail-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeEmail-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeEmail_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/ChangeEmail_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/DeactivateCustomer-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/DeactivateCustomer-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/DeactivateCustomer_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/DeactivateCustomer_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/RegisterCustomer-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/RegisterCustomer-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateChange/RegisterCustomer_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateChange/RegisterCustomer_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateView/Customers-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateView/Customers-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Customer/StateView/Customers_Projection-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Extension/Products_Extension-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/ExtensionPoint/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/Automation/AutoShipOrder-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/Automation/AutoShipOrder-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/Automation/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/OutboundTranslation/SendOrderConfirmation_Translation-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChange/CancelOrder-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChange/CancelOrder-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChange/CancelOrder.ast +0 -0
- package/lib/bs/src/Order/StateChange/CancelOrder.res +1 -6
- package/lib/bs/src/Order/StateChange/CancelOrder.res.mjs +1 -1
- package/lib/bs/src/Order/StateChange/CancelOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChange/CancelOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChange/PlaceOrder-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChange/PlaceOrder-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChange/PlaceOrder.ast +0 -0
- package/lib/bs/src/Order/StateChange/PlaceOrder.res +2 -4
- package/lib/bs/src/Order/StateChange/PlaceOrder.res.mjs +2 -2
- package/lib/bs/src/Order/StateChange/PlaceOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChange/PlaceOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChange/ShipOrder-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChange/ShipOrder-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateChange/ShipOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateChange/ShipOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateView/Orders-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateView/Orders-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Order/StateView/Orders_Projection-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Order/StateView/Orders_Projection-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Plugin-OrderingPlugin.cmi +0 -0
- package/lib/bs/src/Plugin-OrderingPlugin.cmt +0 -0
- package/lib/bs/src/Plugin.ast +0 -0
- package/lib/bs/src/Plugin.res +8 -0
- package/lib/bs/src/Plugin.res.mjs +16 -8
- package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/CatalogProduct/StateChange/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/CatalogProduct/StateView/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChange/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChange/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChange/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateChange/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Customer/StateView/Customers_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Extension/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/ExtensionPoint/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/Automation/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/OutboundTranslation/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateChange/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateChange/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateChange/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmi +0 -0
- package/lib/bs/tests/Order/StateView/Orders_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/.compiler.log +2 -2
- package/lib/ocaml/AutoShipOrder-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AutoShipOrder-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AutoShipOrder_Automation-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AutoShipOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/AvailableProducts-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AvailableProducts-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AvailableProducts_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/AvailableProducts_Projection-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/CancelOrder-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CancelOrder-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/CancelOrder.ast +0 -0
- package/lib/ocaml/CancelOrder.res +1 -6
- package/lib/ocaml/CancelOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CancelOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/CancelOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeAddress-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeAddress-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeAddress_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeAddress_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeAddress_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeEmail-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeEmail-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeEmail_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeEmail_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ChangeEmail_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Customers-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Customers-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Customers_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Customers_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Customers_Projection-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Customers_Projection-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/DeactivateCustomer-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/DeactivateCustomer-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/DeactivateCustomer_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/DeactivateCustomer_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/DeactivateCustomer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Orders-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Orders-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Orders_ExtensionPointMapping-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Orders_ExtensionPointMapping_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Orders_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Orders_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Orders_Projection-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Orders_Projection-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/PlaceOrder-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/PlaceOrder-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/PlaceOrder.ast +0 -0
- package/lib/ocaml/PlaceOrder.res +2 -4
- package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/PlaceOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/PlaceOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Plugin-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Plugin-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Plugin.ast +0 -0
- package/lib/ocaml/Plugin.res +8 -0
- package/lib/ocaml/Products_Extension-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Products_Extension-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/Products_Extension_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/RegisterCustomer-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/RegisterCustomer-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/RegisterCustomer_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/RegisterCustomer_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/RegisterCustomer_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SendOrderConfirmation-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SendOrderConfirmation-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SendOrderConfirmation_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SendOrderConfirmation_Translation-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SendOrderConfirmation_Translation-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ShipOrder-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ShipOrder-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ShipOrder_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ShipOrder_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/ShipOrder_GWT-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SyncCatalogProduct-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SyncCatalogProduct_Behavior-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SyncCatalogProduct_Behavior-OrderingPlugin.cmt +0 -0
- package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmi +0 -0
- package/lib/ocaml/SyncCatalogProduct_GWT-OrderingPlugin.cmt +0 -0
- package/package.json +8 -8
- package/src/Order/StateChange/CancelOrder.res +1 -6
- package/src/Order/StateChange/CancelOrder.res.mjs +1 -1
- package/src/Order/StateChange/PlaceOrder.res +2 -4
- package/src/Order/StateChange/PlaceOrder.res.mjs +2 -2
- package/src/Plugin.res +8 -0
- package/src/Plugin.res.mjs +16 -8
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/PlaceOrder.ast
CHANGED
|
Binary file
|
package/lib/ocaml/PlaceOrder.res
CHANGED
|
@@ -11,9 +11,8 @@ type consumedEvent =
|
|
|
11
11
|
|
|
12
12
|
@schema
|
|
13
13
|
type command =
|
|
14
|
-
// Multiple tagged fields — @partitionTag picks orderId as the storage partition.
|
|
15
14
|
| PlaceOrder({
|
|
16
|
-
|
|
15
|
+
orderId: string,
|
|
17
16
|
customerId: string,
|
|
18
17
|
@ref("AvailableProducts") productIds: array<string>,
|
|
19
18
|
})
|
|
@@ -24,5 +23,4 @@ type error =
|
|
|
24
23
|
| ProductsNotAvailable({missing: array<string>})
|
|
25
24
|
|
|
26
25
|
@schema
|
|
27
|
-
type event =
|
|
28
|
-
OrderPlaced({@partitionTag orderId: string, customerId: string, productIds: array<string>})
|
|
26
|
+
type event = OrderPlaced({orderId: string, customerId: string, productIds: array<string>})
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/lib/ocaml/Plugin.ast
CHANGED
|
Binary file
|
package/lib/ocaml/Plugin.res
CHANGED
|
@@ -8,48 +8,56 @@ let dcbSliceSchemas: array<Reventless.DcbTag.sliceSchemas> = [
|
|
|
8
8
|
commandSchema: CancelOrder.commandSchema->S.castToUnknown,
|
|
9
9
|
consumedEventSchema: CancelOrder.consumedEventSchema->S.castToUnknown,
|
|
10
10
|
eventSchema: CancelOrder.eventSchema->S.castToUnknown,
|
|
11
|
+
moduleUrl: CancelOrder.moduleUrl,
|
|
11
12
|
},
|
|
12
13
|
{
|
|
13
14
|
name: ChangeAddress.name,
|
|
14
15
|
commandSchema: ChangeAddress.commandSchema->S.castToUnknown,
|
|
15
16
|
consumedEventSchema: ChangeAddress.consumedEventSchema->S.castToUnknown,
|
|
16
17
|
eventSchema: ChangeAddress.eventSchema->S.castToUnknown,
|
|
18
|
+
moduleUrl: ChangeAddress.moduleUrl,
|
|
17
19
|
},
|
|
18
20
|
{
|
|
19
21
|
name: ChangeEmail.name,
|
|
20
22
|
commandSchema: ChangeEmail.commandSchema->S.castToUnknown,
|
|
21
23
|
consumedEventSchema: ChangeEmail.consumedEventSchema->S.castToUnknown,
|
|
22
24
|
eventSchema: ChangeEmail.eventSchema->S.castToUnknown,
|
|
25
|
+
moduleUrl: ChangeEmail.moduleUrl,
|
|
23
26
|
},
|
|
24
27
|
{
|
|
25
28
|
name: DeactivateCustomer.name,
|
|
26
29
|
commandSchema: DeactivateCustomer.commandSchema->S.castToUnknown,
|
|
27
30
|
consumedEventSchema: DeactivateCustomer.consumedEventSchema->S.castToUnknown,
|
|
28
31
|
eventSchema: DeactivateCustomer.eventSchema->S.castToUnknown,
|
|
32
|
+
moduleUrl: DeactivateCustomer.moduleUrl,
|
|
29
33
|
},
|
|
30
34
|
{
|
|
31
35
|
name: PlaceOrder.name,
|
|
32
36
|
commandSchema: PlaceOrder.commandSchema->S.castToUnknown,
|
|
33
37
|
consumedEventSchema: PlaceOrder.consumedEventSchema->S.castToUnknown,
|
|
34
38
|
eventSchema: PlaceOrder.eventSchema->S.castToUnknown,
|
|
39
|
+
moduleUrl: PlaceOrder.moduleUrl,
|
|
35
40
|
},
|
|
36
41
|
{
|
|
37
42
|
name: RegisterCustomer.name,
|
|
38
43
|
commandSchema: RegisterCustomer.commandSchema->S.castToUnknown,
|
|
39
44
|
consumedEventSchema: RegisterCustomer.consumedEventSchema->S.castToUnknown,
|
|
40
45
|
eventSchema: RegisterCustomer.eventSchema->S.castToUnknown,
|
|
46
|
+
moduleUrl: RegisterCustomer.moduleUrl,
|
|
41
47
|
},
|
|
42
48
|
{
|
|
43
49
|
name: ShipOrder.name,
|
|
44
50
|
commandSchema: ShipOrder.commandSchema->S.castToUnknown,
|
|
45
51
|
consumedEventSchema: ShipOrder.consumedEventSchema->S.castToUnknown,
|
|
46
52
|
eventSchema: ShipOrder.eventSchema->S.castToUnknown,
|
|
53
|
+
moduleUrl: ShipOrder.moduleUrl,
|
|
47
54
|
},
|
|
48
55
|
{
|
|
49
56
|
name: SyncCatalogProduct.name,
|
|
50
57
|
commandSchema: SyncCatalogProduct.commandSchema->S.castToUnknown,
|
|
51
58
|
consumedEventSchema: SyncCatalogProduct.consumedEventSchema->S.castToUnknown,
|
|
52
59
|
eventSchema: SyncCatalogProduct.eventSchema->S.castToUnknown,
|
|
60
|
+
moduleUrl: SyncCatalogProduct.moduleUrl,
|
|
53
61
|
},
|
|
54
62
|
]
|
|
55
63
|
|
|
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reventlessdev/online-shop-dcb-ordering",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.243",
|
|
4
4
|
"description": "Online Shop example — Ordering bounded context (Customer & Order) using the DCB pattern",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"jest": {
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"sury": "11.0.0-rc.2",
|
|
24
|
-
"@reventlessdev/online-shop-dcb-
|
|
25
|
-
"@reventlessdev/
|
|
26
|
-
"@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.
|
|
27
|
-
"@reventlessdev/reventless-
|
|
28
|
-
"@reventlessdev/reventless-
|
|
29
|
-
"@reventlessdev/reventless-spec": "3.0.0-alpha.
|
|
30
|
-
"@reventlessdev/
|
|
24
|
+
"@reventlessdev/online-shop-dcb-ordering-spec": "1.0.0-alpha.136",
|
|
25
|
+
"@reventlessdev/online-shop-dcb-catalog-spec": "1.0.0-alpha.136",
|
|
26
|
+
"@reventlessdev/rescript-pulumi-pulumi": "2.3.0-alpha.21",
|
|
27
|
+
"@reventlessdev/reventless-gwt": "1.0.0-alpha.210",
|
|
28
|
+
"@reventlessdev/reventless-infra": "3.0.0-alpha.164",
|
|
29
|
+
"@reventlessdev/reventless-spec": "3.0.0-alpha.136",
|
|
30
|
+
"@reventlessdev/reventless-local": "3.0.0-alpha.253"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"rescript": "12.3.0",
|
|
@@ -17,12 +17,7 @@ type error =
|
|
|
17
17
|
| OrderAlreadyShipped
|
|
18
18
|
|
|
19
19
|
@schema
|
|
20
|
-
type event =
|
|
21
|
-
| OrderCancelled({
|
|
22
|
-
// orderId and productIds both tag — @partitionTag picks the storage partition.
|
|
23
|
-
@partitionTag orderId: string,
|
|
24
|
-
productIds: array<string>,
|
|
25
|
-
})
|
|
20
|
+
type event = OrderCancelled({orderId: string, productIds: array<string>})
|
|
26
21
|
|
|
27
22
|
type lifecycleState = Orders.lifecycle
|
|
28
23
|
|
|
@@ -24,7 +24,7 @@ let errorSchema = Sury.union([
|
|
|
24
24
|
|
|
25
25
|
let eventSchema = Sury.$schema(s => ({
|
|
26
26
|
TAG: "OrderCancelled",
|
|
27
|
-
orderId: s.m(DcbTag$Reventless.
|
|
27
|
+
orderId: s.m(DcbTag$Reventless.string),
|
|
28
28
|
productIds: s.m(Sury.array(DcbTag$Reventless.stringForKey("productId")))
|
|
29
29
|
}));
|
|
30
30
|
|
|
@@ -11,9 +11,8 @@ type consumedEvent =
|
|
|
11
11
|
|
|
12
12
|
@schema
|
|
13
13
|
type command =
|
|
14
|
-
// Multiple tagged fields — @partitionTag picks orderId as the storage partition.
|
|
15
14
|
| PlaceOrder({
|
|
16
|
-
|
|
15
|
+
orderId: string,
|
|
17
16
|
customerId: string,
|
|
18
17
|
@ref("AvailableProducts") productIds: array<string>,
|
|
19
18
|
})
|
|
@@ -24,5 +23,4 @@ type error =
|
|
|
24
23
|
| ProductsNotAvailable({missing: array<string>})
|
|
25
24
|
|
|
26
25
|
@schema
|
|
27
|
-
type event =
|
|
28
|
-
OrderPlaced({@partitionTag orderId: string, customerId: string, productIds: array<string>})
|
|
26
|
+
type event = OrderPlaced({orderId: string, customerId: string, productIds: array<string>})
|
|
@@ -17,7 +17,7 @@ let consumedEventSchema = Sury.union([
|
|
|
17
17
|
|
|
18
18
|
let commandSchema = Sury.$schema(s => ({
|
|
19
19
|
TAG: "PlaceOrder",
|
|
20
|
-
orderId: s.m(DcbTag$Reventless.
|
|
20
|
+
orderId: s.m(DcbTag$Reventless.string),
|
|
21
21
|
customerId: s.m(DcbTag$Reventless.string),
|
|
22
22
|
productIds: s.m(Sury.array(Reference$Reventless.to_(undefined, "productId", "AvailableProducts")))
|
|
23
23
|
}));
|
|
@@ -32,7 +32,7 @@ let errorSchema = Sury.union([
|
|
|
32
32
|
|
|
33
33
|
let eventSchema = Sury.$schema(s => ({
|
|
34
34
|
TAG: "OrderPlaced",
|
|
35
|
-
orderId: s.m(DcbTag$Reventless.
|
|
35
|
+
orderId: s.m(DcbTag$Reventless.string),
|
|
36
36
|
customerId: s.m(DcbTag$Reventless.string),
|
|
37
37
|
productIds: s.m(Sury.array(DcbTag$Reventless.stringForKey("productId")))
|
|
38
38
|
}));
|
package/src/Plugin.res
CHANGED
|
@@ -8,48 +8,56 @@ let dcbSliceSchemas: array<Reventless.DcbTag.sliceSchemas> = [
|
|
|
8
8
|
commandSchema: CancelOrder.commandSchema->S.castToUnknown,
|
|
9
9
|
consumedEventSchema: CancelOrder.consumedEventSchema->S.castToUnknown,
|
|
10
10
|
eventSchema: CancelOrder.eventSchema->S.castToUnknown,
|
|
11
|
+
moduleUrl: CancelOrder.moduleUrl,
|
|
11
12
|
},
|
|
12
13
|
{
|
|
13
14
|
name: ChangeAddress.name,
|
|
14
15
|
commandSchema: ChangeAddress.commandSchema->S.castToUnknown,
|
|
15
16
|
consumedEventSchema: ChangeAddress.consumedEventSchema->S.castToUnknown,
|
|
16
17
|
eventSchema: ChangeAddress.eventSchema->S.castToUnknown,
|
|
18
|
+
moduleUrl: ChangeAddress.moduleUrl,
|
|
17
19
|
},
|
|
18
20
|
{
|
|
19
21
|
name: ChangeEmail.name,
|
|
20
22
|
commandSchema: ChangeEmail.commandSchema->S.castToUnknown,
|
|
21
23
|
consumedEventSchema: ChangeEmail.consumedEventSchema->S.castToUnknown,
|
|
22
24
|
eventSchema: ChangeEmail.eventSchema->S.castToUnknown,
|
|
25
|
+
moduleUrl: ChangeEmail.moduleUrl,
|
|
23
26
|
},
|
|
24
27
|
{
|
|
25
28
|
name: DeactivateCustomer.name,
|
|
26
29
|
commandSchema: DeactivateCustomer.commandSchema->S.castToUnknown,
|
|
27
30
|
consumedEventSchema: DeactivateCustomer.consumedEventSchema->S.castToUnknown,
|
|
28
31
|
eventSchema: DeactivateCustomer.eventSchema->S.castToUnknown,
|
|
32
|
+
moduleUrl: DeactivateCustomer.moduleUrl,
|
|
29
33
|
},
|
|
30
34
|
{
|
|
31
35
|
name: PlaceOrder.name,
|
|
32
36
|
commandSchema: PlaceOrder.commandSchema->S.castToUnknown,
|
|
33
37
|
consumedEventSchema: PlaceOrder.consumedEventSchema->S.castToUnknown,
|
|
34
38
|
eventSchema: PlaceOrder.eventSchema->S.castToUnknown,
|
|
39
|
+
moduleUrl: PlaceOrder.moduleUrl,
|
|
35
40
|
},
|
|
36
41
|
{
|
|
37
42
|
name: RegisterCustomer.name,
|
|
38
43
|
commandSchema: RegisterCustomer.commandSchema->S.castToUnknown,
|
|
39
44
|
consumedEventSchema: RegisterCustomer.consumedEventSchema->S.castToUnknown,
|
|
40
45
|
eventSchema: RegisterCustomer.eventSchema->S.castToUnknown,
|
|
46
|
+
moduleUrl: RegisterCustomer.moduleUrl,
|
|
41
47
|
},
|
|
42
48
|
{
|
|
43
49
|
name: ShipOrder.name,
|
|
44
50
|
commandSchema: ShipOrder.commandSchema->S.castToUnknown,
|
|
45
51
|
consumedEventSchema: ShipOrder.consumedEventSchema->S.castToUnknown,
|
|
46
52
|
eventSchema: ShipOrder.eventSchema->S.castToUnknown,
|
|
53
|
+
moduleUrl: ShipOrder.moduleUrl,
|
|
47
54
|
},
|
|
48
55
|
{
|
|
49
56
|
name: SyncCatalogProduct.name,
|
|
50
57
|
commandSchema: SyncCatalogProduct.commandSchema->S.castToUnknown,
|
|
51
58
|
consumedEventSchema: SyncCatalogProduct.consumedEventSchema->S.castToUnknown,
|
|
52
59
|
eventSchema: SyncCatalogProduct.eventSchema->S.castToUnknown,
|
|
60
|
+
moduleUrl: SyncCatalogProduct.moduleUrl,
|
|
53
61
|
},
|
|
54
62
|
]
|
|
55
63
|
|
package/src/Plugin.res.mjs
CHANGED
|
@@ -39,49 +39,57 @@ let dcbSliceSchemas = [
|
|
|
39
39
|
name: CancelOrder$OrderingPlugin.name,
|
|
40
40
|
commandSchema: CancelOrder$OrderingPlugin.commandSchema,
|
|
41
41
|
consumedEventSchema: CancelOrder$OrderingPlugin.consumedEventSchema,
|
|
42
|
-
eventSchema: CancelOrder$OrderingPlugin.eventSchema
|
|
42
|
+
eventSchema: CancelOrder$OrderingPlugin.eventSchema,
|
|
43
|
+
moduleUrl: CancelOrder$OrderingPlugin.moduleUrl
|
|
43
44
|
},
|
|
44
45
|
{
|
|
45
46
|
name: ChangeAddress$OrderingPlugin.name,
|
|
46
47
|
commandSchema: ChangeAddress$OrderingPlugin.commandSchema,
|
|
47
48
|
consumedEventSchema: ChangeAddress$OrderingPlugin.consumedEventSchema,
|
|
48
|
-
eventSchema: ChangeAddress$OrderingPlugin.eventSchema
|
|
49
|
+
eventSchema: ChangeAddress$OrderingPlugin.eventSchema,
|
|
50
|
+
moduleUrl: ChangeAddress$OrderingPlugin.moduleUrl
|
|
49
51
|
},
|
|
50
52
|
{
|
|
51
53
|
name: ChangeEmail$OrderingPlugin.name,
|
|
52
54
|
commandSchema: ChangeEmail$OrderingPlugin.commandSchema,
|
|
53
55
|
consumedEventSchema: ChangeEmail$OrderingPlugin.consumedEventSchema,
|
|
54
|
-
eventSchema: ChangeEmail$OrderingPlugin.eventSchema
|
|
56
|
+
eventSchema: ChangeEmail$OrderingPlugin.eventSchema,
|
|
57
|
+
moduleUrl: ChangeEmail$OrderingPlugin.moduleUrl
|
|
55
58
|
},
|
|
56
59
|
{
|
|
57
60
|
name: DeactivateCustomer$OrderingPlugin.name,
|
|
58
61
|
commandSchema: DeactivateCustomer$OrderingPlugin.commandSchema,
|
|
59
62
|
consumedEventSchema: DeactivateCustomer$OrderingPlugin.consumedEventSchema,
|
|
60
|
-
eventSchema: DeactivateCustomer$OrderingPlugin.eventSchema
|
|
63
|
+
eventSchema: DeactivateCustomer$OrderingPlugin.eventSchema,
|
|
64
|
+
moduleUrl: DeactivateCustomer$OrderingPlugin.moduleUrl
|
|
61
65
|
},
|
|
62
66
|
{
|
|
63
67
|
name: PlaceOrder$OrderingPlugin.name,
|
|
64
68
|
commandSchema: PlaceOrder$OrderingPlugin.commandSchema,
|
|
65
69
|
consumedEventSchema: PlaceOrder$OrderingPlugin.consumedEventSchema,
|
|
66
|
-
eventSchema: PlaceOrder$OrderingPlugin.eventSchema
|
|
70
|
+
eventSchema: PlaceOrder$OrderingPlugin.eventSchema,
|
|
71
|
+
moduleUrl: PlaceOrder$OrderingPlugin.moduleUrl
|
|
67
72
|
},
|
|
68
73
|
{
|
|
69
74
|
name: RegisterCustomer$OrderingPlugin.name,
|
|
70
75
|
commandSchema: RegisterCustomer$OrderingPlugin.commandSchema,
|
|
71
76
|
consumedEventSchema: RegisterCustomer$OrderingPlugin.consumedEventSchema,
|
|
72
|
-
eventSchema: RegisterCustomer$OrderingPlugin.eventSchema
|
|
77
|
+
eventSchema: RegisterCustomer$OrderingPlugin.eventSchema,
|
|
78
|
+
moduleUrl: RegisterCustomer$OrderingPlugin.moduleUrl
|
|
73
79
|
},
|
|
74
80
|
{
|
|
75
81
|
name: ShipOrder$OrderingPlugin.name,
|
|
76
82
|
commandSchema: ShipOrder$OrderingPlugin.commandSchema,
|
|
77
83
|
consumedEventSchema: ShipOrder$OrderingPlugin.consumedEventSchema,
|
|
78
|
-
eventSchema: ShipOrder$OrderingPlugin.eventSchema
|
|
84
|
+
eventSchema: ShipOrder$OrderingPlugin.eventSchema,
|
|
85
|
+
moduleUrl: ShipOrder$OrderingPlugin.moduleUrl
|
|
79
86
|
},
|
|
80
87
|
{
|
|
81
88
|
name: SyncCatalogProduct$OrderingPlugin.name,
|
|
82
89
|
commandSchema: SyncCatalogProduct$OrderingPlugin.commandSchema,
|
|
83
90
|
consumedEventSchema: SyncCatalogProduct$OrderingPlugin.consumedEventSchema,
|
|
84
|
-
eventSchema: SyncCatalogProduct$OrderingPlugin.eventSchema
|
|
91
|
+
eventSchema: SyncCatalogProduct$OrderingPlugin.eventSchema,
|
|
92
|
+
moduleUrl: SyncCatalogProduct$OrderingPlugin.moduleUrl
|
|
85
93
|
}
|
|
86
94
|
];
|
|
87
95
|
|