@reventlessdev/reventless-core 3.0.0-alpha.189 → 3.0.0-alpha.191

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.
@@ -0,0 +1,63 @@
1
+ // Generated by ReScript, PLEASE EDIT WITH CARE
2
+
3
+ import * as S from "sury/src/S.res.mjs";
4
+ import * as DcbTag$Reventless from "@reventlessdev/reventless-spec/src/components/DcbTag.res.mjs";
5
+ import * as StorageRef$Reventless from "@reventlessdev/reventless-spec/src/semantic/StorageRef.res.mjs";
6
+
7
+ let consumedEventSchema = S.literal("OrderPlaced");
8
+
9
+ function evolve(_state, _event) {
10
+ return true;
11
+ }
12
+
13
+ let commandSchema = S.schema(s => ({
14
+ TAG: "AttachInvoice",
15
+ orderId: s.m(DcbTag$Reventless.string),
16
+ documentUrl: s.m(StorageRef$Reventless.forStore(undefined, "documents")),
17
+ logoUrl: s.m(StorageRef$Reventless.forStore("branding", "logos"))
18
+ }));
19
+
20
+ let errorSchema = S.literal("OrderNotFound");
21
+
22
+ let eventSchema = S.schema(s => ({
23
+ TAG: "InvoiceAttached",
24
+ orderId: s.m(DcbTag$Reventless.string),
25
+ documentUrl: s.m(StorageRef$Reventless.forStore(undefined, "documents"))
26
+ }));
27
+
28
+ function decide(_state, _command) {
29
+ return {
30
+ TAG: "Ok",
31
+ _0: []
32
+ };
33
+ }
34
+
35
+ function commandAuthorization(param) {
36
+ return "AllowAuthenticated";
37
+ }
38
+
39
+ let name = "AttachInvoice";
40
+
41
+ let Id;
42
+
43
+ let initialState = false;
44
+
45
+ let moduleUrl = "@reventlessdev/reventless-core/tests/plugin/StateChangeSlice/PsAttachInvoice.res.mjs";
46
+
47
+ let readConsistency = "EscalateOnRetry";
48
+
49
+ export {
50
+ name,
51
+ Id,
52
+ initialState,
53
+ consumedEventSchema,
54
+ evolve,
55
+ commandSchema,
56
+ errorSchema,
57
+ eventSchema,
58
+ decide,
59
+ moduleUrl,
60
+ commandAuthorization,
61
+ readConsistency,
62
+ }
63
+ /* consumedEventSchema Not a pure module */