@reventlessdev/reventless-core 3.0.0-alpha.299 → 3.0.0-alpha.301
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/README.md +3 -3
- package/package.json +10 -10
- package/src/{Behavior.res → Decision.res} +1 -1
- package/src/Message.res +1 -1
- package/src/ResourceAttribution.res +8 -8
- package/src/adapter/Auth/Auth_ActiveRole.res +1 -1
- package/src/adapter/Auth/Auth_RefusalVocabulary.res +1 -1
- package/src/adapter/EventLogProvisioning/EventLogProvisioning.res +1 -1
- package/src/adapter/RuntimeExtension/RuntimeExtension.res +3 -3
- package/src/admin/Platform_BakedManifest.res +1 -1
- package/src/admin/Platform_PluginStructuresApi.res +1 -1
- package/src/admin/UiFragmentRegistry/StateChange/{UiFragmentRegistry_Behavior.res → UiFragmentRegistry_Decision.res} +1 -1
- package/src/admin/UiFragmentRegistry/StateChange/{UiFragmentRegistry_Behavior.res.mjs → UiFragmentRegistry_Decision.res.mjs} +1 -1
- package/src/components/Aggregate/Aggregate_Builder.res +2 -2
- package/src/components/Aggregate/Aggregate_Builder.res.mjs +2 -2
- package/src/components/Aggregate/Aggregate_Callback.res +17 -17
- package/src/components/Aggregate/Aggregate_Callback.res.mjs +11 -11
- package/src/components/Api/ApiNoApiHelpers.res +1 -1
- package/src/components/Api/GraphQL_FragmentGenerator.res +1 -1
- package/src/components/Api/SchemaType.res +1 -1
- package/src/components/CommandTopic/CommandTopic_Helpers.res +4 -4
- package/src/components/EventLog/EventLog_Operations.res +2 -2
- package/src/components/StateChangeSlice/StateChangeSlice.res +1 -1
- package/src/components/StateChangeSlice/StateChangeSlice_Builder.res +3 -3
- package/src/components/StateChangeSlice/StateChangeSlice_Builder.res.mjs +3 -3
- package/src/components/StateChangeSlice/StateChangeSlice_Callback.res +9 -9
- package/src/components/StateChangeSlice/StateChangeSlice_Callback.res.mjs +4 -4
- package/src/plugin/component/Plugin_Structure.res +1 -1
- package/src/plugin/lifecycle/{PluginBehavior.res → PluginDecision.res} +4 -4
- package/src/plugin/lifecycle/{PluginBehavior.res.mjs → PluginDecision.res.mjs} +1 -1
- package/tests/aggregate/AggregateCacheTest.res +4 -4
- package/tests/aggregate/AggregateCacheTest.res.mjs +2 -2
- package/tests/aggregate/AggregateCallbackTest.res +2 -2
- package/tests/aggregate/AggregateCallbackTest.res.mjs +1 -1
- package/tests/aggregate/AggregateConflictTest.res +4 -4
- package/tests/aggregate/AggregateConflictTest.res.mjs +2 -2
- package/tests/aggregate/AggregateFixtures.res +5 -5
- package/tests/aggregate/AggregateFixtures.res.mjs +2 -2
- package/tests/aggregate/AggregateRejectionTest.res +1 -1
- package/tests/aggregate/AggregateSnapshotTest.res +7 -7
- package/tests/aggregate/AggregateSnapshotTest.res.mjs +4 -4
- package/tests/api/PsInternalFieldsReadModel.res +1 -1
- package/tests/api/TaggedUnionSchemaTest.res +1 -1
- package/tests/commandgenerator/CommandGeneratorCallbackTest.res +1 -1
- package/tests/commandgenerator/CommandGeneratorFixtures.res +2 -2
- package/tests/commandgenerator/CommandGeneratorFixtures.res.mjs +2 -2
- package/tests/commandgenerator/OwnerActingTest.res +4 -4
- package/tests/commandgenerator/OwnerActingTest.res.mjs +4 -4
- package/tests/commandgenerator/OwnerStampingTest.res +1 -1
- package/tests/commandtopic/CommandOutcomeHookTest.res +2 -2
- package/tests/commandtopic/CommandOutcomeHookTest.res.mjs +3 -3
- package/tests/dcb/DcbStateChangeSliceTest.res +5 -5
- package/tests/dcb/DcbStateChangeSliceTest.res.mjs +5 -5
- package/tests/plugin/PluginStructureAccessTest.res +1 -1
- package/tests/plugin/PluginStructureAccessTest.res.mjs +2 -2
- package/tests/plugin/PluginStructureTest.res +15 -15
- package/tests/plugin/PluginStructureTest.res.mjs +20 -20
- package/tests/projection/LifecycleTrailTest.res +1 -1
- /package/src/{Behavior.res.mjs → Decision.res.mjs} +0 -0
|
@@ -45,7 +45,7 @@ let decide = DcbFixtures$ReventlessCore.TestCommandSpec.decide;
|
|
|
45
45
|
|
|
46
46
|
let moduleUrl = DcbFixtures$ReventlessCore.TestCommandSpec.moduleUrl;
|
|
47
47
|
|
|
48
|
-
let
|
|
48
|
+
let TestCommandDecision = {
|
|
49
49
|
initialState: initialState,
|
|
50
50
|
evolve: evolve,
|
|
51
51
|
decide: decide,
|
|
@@ -63,7 +63,7 @@ let TestHandler = StateChangeSlice_Callback$ReventlessCore.Make({
|
|
|
63
63
|
commandTransition: DcbFixtures$ReventlessCore.TestCommandSpec.commandTransition,
|
|
64
64
|
traits: DcbFixtures$ReventlessCore.TestCommandSpec.traits,
|
|
65
65
|
readConsistency: DcbFixtures$ReventlessCore.TestCommandSpec.readConsistency
|
|
66
|
-
})(
|
|
66
|
+
})(TestCommandDecision);
|
|
67
67
|
|
|
68
68
|
let name = DcbFixtures$ReventlessCore.TestCommandSpec.name;
|
|
69
69
|
|
|
@@ -162,7 +162,7 @@ let StrongHandler = StateChangeSlice_Callback$ReventlessCore.Make({
|
|
|
162
162
|
commandTransition: commandTransition,
|
|
163
163
|
traits: traits,
|
|
164
164
|
readConsistency: "AlwaysStrong"
|
|
165
|
-
})(
|
|
165
|
+
})(TestCommandDecision);
|
|
166
166
|
|
|
167
167
|
let EventualHandler = StateChangeSlice_Callback$ReventlessCore.Make({
|
|
168
168
|
name: name$1,
|
|
@@ -175,7 +175,7 @@ let EventualHandler = StateChangeSlice_Callback$ReventlessCore.Make({
|
|
|
175
175
|
commandTransition: commandTransition$1,
|
|
176
176
|
traits: traits$1,
|
|
177
177
|
readConsistency: "AlwaysEventual"
|
|
178
|
-
})(
|
|
178
|
+
})(TestCommandDecision);
|
|
179
179
|
|
|
180
180
|
function makeTopicItem(reference, command) {
|
|
181
181
|
return {
|
|
@@ -544,7 +544,7 @@ export {
|
|
|
544
544
|
TestDcbOps,
|
|
545
545
|
EventLogOps,
|
|
546
546
|
testDcbEventLog,
|
|
547
|
-
|
|
547
|
+
TestCommandDecision,
|
|
548
548
|
TestHandler,
|
|
549
549
|
StrongSpec,
|
|
550
550
|
EventualSpec,
|
|
@@ -18,7 +18,7 @@ type svsComponent = Component.t<
|
|
|
18
18
|
|
|
19
19
|
module PsGatedCommandsSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
20
20
|
module Spec = PsGatedCommands
|
|
21
|
-
module
|
|
21
|
+
module Decision = {
|
|
22
22
|
type state = PsGatedCommands.state
|
|
23
23
|
let initialState = PsGatedCommands.initialState
|
|
24
24
|
let evolve = PsGatedCommands.evolve
|
|
@@ -12,7 +12,7 @@ import * as PsGatedCommands$ReventlessCore from "./StateChange/PsGatedCommands.r
|
|
|
12
12
|
import * as Plugin_Structure$ReventlessCore from "../../src/plugin/component/Plugin_Structure.res.mjs";
|
|
13
13
|
import * as Platform_ComponentDefinitionsApi$ReventlessCore from "../../src/admin/Platform_ComponentDefinitionsApi.res.mjs";
|
|
14
14
|
|
|
15
|
-
let
|
|
15
|
+
let Decision = {
|
|
16
16
|
initialState: false,
|
|
17
17
|
evolve: PsGatedCommands$ReventlessCore.evolve,
|
|
18
18
|
decide: PsGatedCommands$ReventlessCore.decide,
|
|
@@ -38,7 +38,7 @@ let PsGatedCommandsSlice_Spec = {
|
|
|
38
38
|
|
|
39
39
|
let PsGatedCommandsSlice = {
|
|
40
40
|
Spec: PsGatedCommandsSlice_Spec,
|
|
41
|
-
|
|
41
|
+
Decision: Decision,
|
|
42
42
|
isAsync: false,
|
|
43
43
|
make: make
|
|
44
44
|
};
|
|
@@ -18,7 +18,7 @@ type svsComponent = Component.t<
|
|
|
18
18
|
|
|
19
19
|
module PsPlaceOrderSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
20
20
|
module Spec = PsPlaceOrder
|
|
21
|
-
module
|
|
21
|
+
module Decision = {
|
|
22
22
|
type state = PsPlaceOrder.state
|
|
23
23
|
let initialState = PsPlaceOrder.initialState
|
|
24
24
|
let evolve = PsPlaceOrder.evolve
|
|
@@ -39,7 +39,7 @@ module PsPlaceOrderSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
|
39
39
|
}
|
|
40
40
|
module PsShipOrderSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
41
41
|
module Spec = PsShipOrder
|
|
42
|
-
module
|
|
42
|
+
module Decision = {
|
|
43
43
|
type state = PsShipOrder.state
|
|
44
44
|
let initialState = PsShipOrder.initialState
|
|
45
45
|
let evolve = PsShipOrder.evolve
|
|
@@ -106,7 +106,7 @@ module PsCategoriesViewSlice: ReventlessInfra.StateViewSlice.T = {
|
|
|
106
106
|
|
|
107
107
|
module PsAttachInvoiceSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
108
108
|
module Spec = PsAttachInvoice
|
|
109
|
-
module
|
|
109
|
+
module Decision = {
|
|
110
110
|
type state = PsAttachInvoice.state
|
|
111
111
|
let initialState = PsAttachInvoice.initialState
|
|
112
112
|
let evolve = PsAttachInvoice.evolve
|
|
@@ -128,7 +128,7 @@ module PsAttachInvoiceSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
|
128
128
|
|
|
129
129
|
module PsUploadAvatarSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
130
130
|
module Spec = PsUploadAvatar
|
|
131
|
-
module
|
|
131
|
+
module Decision = {
|
|
132
132
|
type state = PsUploadAvatar.state
|
|
133
133
|
let initialState = PsUploadAvatar.initialState
|
|
134
134
|
let evolve = PsUploadAvatar.evolve
|
|
@@ -150,7 +150,7 @@ module PsUploadAvatarSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
|
150
150
|
|
|
151
151
|
module PsUploadImagesSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
152
152
|
module Spec = PsUploadImages
|
|
153
|
-
module
|
|
153
|
+
module Decision = {
|
|
154
154
|
type state = PsUploadImages.state
|
|
155
155
|
let initialState = PsUploadImages.initialState
|
|
156
156
|
let evolve = PsUploadImages.evolve
|
|
@@ -172,7 +172,7 @@ module PsUploadImagesSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
|
172
172
|
|
|
173
173
|
module PsTypoStoreSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
174
174
|
module Spec = PsTypoStore
|
|
175
|
-
module
|
|
175
|
+
module Decision = {
|
|
176
176
|
type state = PsTypoStore.state
|
|
177
177
|
let initialState = PsTypoStore.initialState
|
|
178
178
|
let evolve = PsTypoStore.evolve
|
|
@@ -194,7 +194,7 @@ module PsTypoStoreSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
|
194
194
|
|
|
195
195
|
module PsChangePhotoSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
196
196
|
module Spec = PsChangePhoto
|
|
197
|
-
module
|
|
197
|
+
module Decision = {
|
|
198
198
|
type state = PsChangePhoto.state
|
|
199
199
|
let initialState = PsChangePhoto.initialState
|
|
200
200
|
let evolve = PsChangePhoto.evolve
|
|
@@ -216,7 +216,7 @@ module PsChangePhotoSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
|
216
216
|
|
|
217
217
|
module PsReserveStockSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
218
218
|
module Spec = PsReserveStock
|
|
219
|
-
module
|
|
219
|
+
module Decision = {
|
|
220
220
|
type state = PsReserveStock.state
|
|
221
221
|
let initialState = PsReserveStock.initialState
|
|
222
222
|
let evolve = PsReserveStock.evolve
|
|
@@ -238,7 +238,7 @@ module PsReserveStockSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
|
238
238
|
|
|
239
239
|
module PsDispatchShipmentSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
240
240
|
module Spec = PsDispatchShipment
|
|
241
|
-
module
|
|
241
|
+
module Decision = {
|
|
242
242
|
type state = PsDispatchShipment.state
|
|
243
243
|
let initialState = PsDispatchShipment.initialState
|
|
244
244
|
let evolve = PsDispatchShipment.evolve
|
|
@@ -259,7 +259,7 @@ module PsDispatchShipmentSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
|
259
259
|
}
|
|
260
260
|
module PsTransitionSwitchSlice: ReventlessInfra.StateChangeSlice.T = {
|
|
261
261
|
module Spec = PsTransitionSwitch
|
|
262
|
-
module
|
|
262
|
+
module Decision = {
|
|
263
263
|
type state = PsTransitionSwitch.state
|
|
264
264
|
let initialState = PsTransitionSwitch.initialState
|
|
265
265
|
let evolve = PsTransitionSwitch.evolve
|
|
@@ -410,7 +410,7 @@ describe("commandTransition — the edge as a switch", () => {
|
|
|
410
410
|
testSync("a guard declares its from-set and no target", () => {
|
|
411
411
|
// A positive claim rather than an omission: legal in these states, and it
|
|
412
412
|
// moves the row nowhere. Distinguishable on the wire from both fields being
|
|
413
|
-
// None, and consumers are expected to
|
|
413
|
+
// None, and consumers are expected to honor it.
|
|
414
414
|
expect((
|
|
415
415
|
byName("Rebook")->Option.flatMap(c => c.allowedStates),
|
|
416
416
|
byName("Rebook")->Option.flatMap(c => c.targetState),
|
|
@@ -1431,7 +1431,7 @@ describe("Plugin_Structure.make — Phase 2 graph fields", () => {
|
|
|
1431
1431
|
},
|
|
1432
1432
|
)
|
|
1433
1433
|
|
|
1434
|
-
// The one
|
|
1434
|
+
// The one behavior the rename deliberately changes, so it is asserted rather
|
|
1435
1435
|
// than assumed. `status` is a promiscuous name — geocoding progress, todo-queue
|
|
1436
1436
|
// progress, translation audit outcome — and a convention keyed on it guessed
|
|
1437
1437
|
// often. A record whose lifecycle really does live in a field called `status`
|
|
@@ -1700,7 +1700,7 @@ describe("Plugin_Structure.make — Phase 2 graph fields", () => {
|
|
|
1700
1700
|
)
|
|
1701
1701
|
|
|
1702
1702
|
// The second rule stays a warning: retirement still works, and which field
|
|
1703
|
-
// carries it is a
|
|
1703
|
+
// carries it is a modeling judgement rather than a name that is wrong.
|
|
1704
1704
|
testSync(
|
|
1705
1705
|
"a state on a non-lifecycle field is not a failure",
|
|
1706
1706
|
() => {
|
|
@@ -2174,7 +2174,7 @@ describe("Plugin_Structure.make — Phase 2 graph fields", () => {
|
|
|
2174
2174
|
testSync("nothing else is collected", () => expect(stores->Array.length)->toBe(4))
|
|
2175
2175
|
|
|
2176
2176
|
// The event field derives the same store as the command field of the same
|
|
2177
|
-
// name, so the two collapse to one declaration site — the
|
|
2177
|
+
// name, so the two collapse to one declaration site — the behavior the
|
|
2178
2178
|
// annotation form already had, reached without an annotation.
|
|
2179
2179
|
testSync(
|
|
2180
2180
|
"each requirement keeps its declaring sites",
|
|
@@ -2480,7 +2480,7 @@ describe("Plugin_Structure.make — Phase 2 graph fields", () => {
|
|
|
2480
2480
|
// the marker where `Reference.to_` returns it: on the element schema, one level
|
|
2481
2481
|
// inside the array. Reading the field's own schema therefore answers "no
|
|
2482
2482
|
// reference" for every `@ref` array — and the consuming side treats a missing
|
|
2483
|
-
// declaration as
|
|
2483
|
+
// declaration as license to guess, so the field resolves to whatever its name
|
|
2484
2484
|
// suggests instead of what the author wrote.
|
|
2485
2485
|
describe("plural references reach the manifest", () => {
|
|
2486
2486
|
let withPluralRefs = Plugin_Structure.make(
|
|
@@ -35,7 +35,7 @@ import * as PsTransitionSwitch$ReventlessCore from "./StateChange/PsTransitionSw
|
|
|
35
35
|
import * as Capability_Inference$ReventlessCore from "../../src/plugin/component/Capability_Inference.res.mjs";
|
|
36
36
|
import * as PsAvailableProductsView$ReventlessCore from "./StateView/PsAvailableProductsView.res.mjs";
|
|
37
37
|
|
|
38
|
-
let
|
|
38
|
+
let Decision = {
|
|
39
39
|
initialState: false,
|
|
40
40
|
evolve: PsPlaceOrder$ReventlessCore.evolve,
|
|
41
41
|
decide: PsPlaceOrder$ReventlessCore.decide,
|
|
@@ -61,12 +61,12 @@ let PsPlaceOrderSlice_Spec = {
|
|
|
61
61
|
|
|
62
62
|
let PsPlaceOrderSlice = {
|
|
63
63
|
Spec: PsPlaceOrderSlice_Spec,
|
|
64
|
-
|
|
64
|
+
Decision: Decision,
|
|
65
65
|
isAsync: false,
|
|
66
66
|
make: make
|
|
67
67
|
};
|
|
68
68
|
|
|
69
|
-
let
|
|
69
|
+
let Decision$1 = {
|
|
70
70
|
initialState: false,
|
|
71
71
|
evolve: PsShipOrder$ReventlessCore.evolve,
|
|
72
72
|
decide: PsShipOrder$ReventlessCore.decide,
|
|
@@ -92,7 +92,7 @@ let PsShipOrderSlice_Spec = {
|
|
|
92
92
|
|
|
93
93
|
let PsShipOrderSlice = {
|
|
94
94
|
Spec: PsShipOrderSlice_Spec,
|
|
95
|
-
|
|
95
|
+
Decision: Decision$1,
|
|
96
96
|
isAsync: false,
|
|
97
97
|
make: make$1
|
|
98
98
|
};
|
|
@@ -262,7 +262,7 @@ let PsCategoriesViewSlice = {
|
|
|
262
262
|
make: make$6
|
|
263
263
|
};
|
|
264
264
|
|
|
265
|
-
let
|
|
265
|
+
let Decision$2 = {
|
|
266
266
|
initialState: false,
|
|
267
267
|
evolve: PsAttachInvoice$ReventlessCore.evolve,
|
|
268
268
|
decide: PsAttachInvoice$ReventlessCore.decide,
|
|
@@ -288,12 +288,12 @@ let PsAttachInvoiceSlice_Spec = {
|
|
|
288
288
|
|
|
289
289
|
let PsAttachInvoiceSlice = {
|
|
290
290
|
Spec: PsAttachInvoiceSlice_Spec,
|
|
291
|
-
|
|
291
|
+
Decision: Decision$2,
|
|
292
292
|
isAsync: false,
|
|
293
293
|
make: make$7
|
|
294
294
|
};
|
|
295
295
|
|
|
296
|
-
let
|
|
296
|
+
let Decision$3 = {
|
|
297
297
|
initialState: false,
|
|
298
298
|
evolve: PsUploadAvatar$ReventlessCore.evolve,
|
|
299
299
|
decide: PsUploadAvatar$ReventlessCore.decide,
|
|
@@ -319,12 +319,12 @@ let PsUploadAvatarSlice_Spec = {
|
|
|
319
319
|
|
|
320
320
|
let PsUploadAvatarSlice = {
|
|
321
321
|
Spec: PsUploadAvatarSlice_Spec,
|
|
322
|
-
|
|
322
|
+
Decision: Decision$3,
|
|
323
323
|
isAsync: false,
|
|
324
324
|
make: make$8
|
|
325
325
|
};
|
|
326
326
|
|
|
327
|
-
let
|
|
327
|
+
let Decision$4 = {
|
|
328
328
|
initialState: false,
|
|
329
329
|
evolve: PsUploadImages$ReventlessCore.evolve,
|
|
330
330
|
decide: PsUploadImages$ReventlessCore.decide,
|
|
@@ -350,12 +350,12 @@ let PsUploadImagesSlice_Spec = {
|
|
|
350
350
|
|
|
351
351
|
let PsUploadImagesSlice = {
|
|
352
352
|
Spec: PsUploadImagesSlice_Spec,
|
|
353
|
-
|
|
353
|
+
Decision: Decision$4,
|
|
354
354
|
isAsync: false,
|
|
355
355
|
make: make$9
|
|
356
356
|
};
|
|
357
357
|
|
|
358
|
-
let
|
|
358
|
+
let Decision$5 = {
|
|
359
359
|
initialState: false,
|
|
360
360
|
evolve: PsTypoStore$ReventlessCore.evolve,
|
|
361
361
|
decide: PsTypoStore$ReventlessCore.decide,
|
|
@@ -381,12 +381,12 @@ let PsTypoStoreSlice_Spec = {
|
|
|
381
381
|
|
|
382
382
|
let PsTypoStoreSlice = {
|
|
383
383
|
Spec: PsTypoStoreSlice_Spec,
|
|
384
|
-
|
|
384
|
+
Decision: Decision$5,
|
|
385
385
|
isAsync: false,
|
|
386
386
|
make: make$10
|
|
387
387
|
};
|
|
388
388
|
|
|
389
|
-
let
|
|
389
|
+
let Decision$6 = {
|
|
390
390
|
initialState: false,
|
|
391
391
|
evolve: PsChangePhoto$ReventlessCore.evolve,
|
|
392
392
|
decide: PsChangePhoto$ReventlessCore.decide,
|
|
@@ -412,12 +412,12 @@ let PsChangePhotoSlice_Spec = {
|
|
|
412
412
|
|
|
413
413
|
let PsChangePhotoSlice = {
|
|
414
414
|
Spec: PsChangePhotoSlice_Spec,
|
|
415
|
-
|
|
415
|
+
Decision: Decision$6,
|
|
416
416
|
isAsync: false,
|
|
417
417
|
make: make$11
|
|
418
418
|
};
|
|
419
419
|
|
|
420
|
-
let
|
|
420
|
+
let Decision$7 = {
|
|
421
421
|
initialState: false,
|
|
422
422
|
evolve: PsReserveStock$ReventlessCore.evolve,
|
|
423
423
|
decide: PsReserveStock$ReventlessCore.decide,
|
|
@@ -443,12 +443,12 @@ let PsReserveStockSlice_Spec = {
|
|
|
443
443
|
|
|
444
444
|
let PsReserveStockSlice = {
|
|
445
445
|
Spec: PsReserveStockSlice_Spec,
|
|
446
|
-
|
|
446
|
+
Decision: Decision$7,
|
|
447
447
|
isAsync: false,
|
|
448
448
|
make: make$12
|
|
449
449
|
};
|
|
450
450
|
|
|
451
|
-
let
|
|
451
|
+
let Decision$8 = {
|
|
452
452
|
initialState: false,
|
|
453
453
|
evolve: PsDispatchShipment$ReventlessCore.evolve,
|
|
454
454
|
decide: PsDispatchShipment$ReventlessCore.decide,
|
|
@@ -474,12 +474,12 @@ let PsDispatchShipmentSlice_Spec = {
|
|
|
474
474
|
|
|
475
475
|
let PsDispatchShipmentSlice = {
|
|
476
476
|
Spec: PsDispatchShipmentSlice_Spec,
|
|
477
|
-
|
|
477
|
+
Decision: Decision$8,
|
|
478
478
|
isAsync: false,
|
|
479
479
|
make: make$13
|
|
480
480
|
};
|
|
481
481
|
|
|
482
|
-
let
|
|
482
|
+
let Decision$9 = {
|
|
483
483
|
initialState: false,
|
|
484
484
|
evolve: PsTransitionSwitch$ReventlessCore.evolve,
|
|
485
485
|
decide: PsTransitionSwitch$ReventlessCore.decide,
|
|
@@ -505,7 +505,7 @@ let PsTransitionSwitchSlice_Spec = {
|
|
|
505
505
|
|
|
506
506
|
let PsTransitionSwitchSlice = {
|
|
507
507
|
Spec: PsTransitionSwitchSlice_Spec,
|
|
508
|
-
|
|
508
|
+
Decision: Decision$9,
|
|
509
509
|
isAsync: false,
|
|
510
510
|
make: make$14
|
|
511
511
|
};
|
|
@@ -91,7 +91,7 @@ describe("the lifecycle trail:", () => {
|
|
|
91
91
|
expect(run(events)->statesOf)->toEqual(run(events)->statesOf)
|
|
92
92
|
})
|
|
93
93
|
|
|
94
|
-
// The marker is what makes a trail
|
|
94
|
+
// The marker is what makes a trail recognizable to a consumer holding only the
|
|
95
95
|
// schema. `SchemaType.trailShape` walks the entries by shape, which skips the
|
|
96
96
|
// semantic dispatch `fromSury` does, so this is the assertion that catches it
|
|
97
97
|
// being dropped there — the field would still emit as a plain array of objects.
|
|
File without changes
|