@genesislcap/foundation-state-machine 14.408.0 → 14.409.0

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.
Files changed (123) hide show
  1. package/README.md +6 -26
  2. package/package.json +12 -12
  3. package/docs/api/foundation-state-machine.abstractmachine.actor.md +0 -18
  4. package/docs/api/foundation-state-machine.abstractmachine.binding.md +0 -102
  5. package/docs/api/foundation-state-machine.abstractmachine.complete.md +0 -13
  6. package/docs/api/foundation-state-machine.abstractmachine.context.md +0 -13
  7. package/docs/api/foundation-state-machine.abstractmachine.error.md +0 -13
  8. package/docs/api/foundation-state-machine.abstractmachine.errors.md +0 -13
  9. package/docs/api/foundation-state-machine.abstractmachine.getfromcontainer.md +0 -23
  10. package/docs/api/foundation-state-machine.abstractmachine.getmetavaluesbykey.md +0 -58
  11. package/docs/api/foundation-state-machine.abstractmachine.hastag.md +0 -58
  12. package/docs/api/foundation-state-machine.abstractmachine.machine.md +0 -18
  13. package/docs/api/foundation-state-machine.abstractmachine.matches.md +0 -58
  14. package/docs/api/foundation-state-machine.abstractmachine.md +0 -435
  15. package/docs/api/foundation-state-machine.abstractmachine.meta.md +0 -13
  16. package/docs/api/foundation-state-machine.abstractmachine.onsendevent.md +0 -13
  17. package/docs/api/foundation-state-machine.abstractmachine.output.md +0 -13
  18. package/docs/api/foundation-state-machine.abstractmachine.provide.md +0 -54
  19. package/docs/api/foundation-state-machine.abstractmachine.send.md +0 -54
  20. package/docs/api/foundation-state-machine.abstractmachine.snapshot.md +0 -13
  21. package/docs/api/foundation-state-machine.abstractmachine.start.md +0 -58
  22. package/docs/api/foundation-state-machine.abstractmachine.startingcontext.md +0 -13
  23. package/docs/api/foundation-state-machine.abstractmachine.startingstate.md +0 -13
  24. package/docs/api/foundation-state-machine.abstractmachine.state.md +0 -13
  25. package/docs/api/foundation-state-machine.abstractmachine.stop.md +0 -17
  26. package/docs/api/foundation-state-machine.apierror._constructor_.md +0 -80
  27. package/docs/api/foundation-state-machine.apierror.data.md +0 -11
  28. package/docs/api/foundation-state-machine.apierror.isunauthorized.md +0 -16
  29. package/docs/api/foundation-state-machine.apierror.md +0 -147
  30. package/docs/api/foundation-state-machine.apierror.status.md +0 -11
  31. package/docs/api/foundation-state-machine.assertevent.md +0 -72
  32. package/docs/api/foundation-state-machine.createerrorstatenode.md +0 -86
  33. package/docs/api/foundation-state-machine.createfetchpolicy.md +0 -122
  34. package/docs/api/foundation-state-machine.createresponsedataextractorwithdeserializer.md +0 -70
  35. package/docs/api/foundation-state-machine.defaultfetchconfig.md +0 -13
  36. package/docs/api/foundation-state-machine.defaultfetchmachine._constructor_.md +0 -50
  37. package/docs/api/foundation-state-machine.defaultfetchmachine.getfromcontainer.md +0 -23
  38. package/docs/api/foundation-state-machine.defaultfetchmachine.md +0 -99
  39. package/docs/api/foundation-state-machine.defaultfetchmachine.start.md +0 -58
  40. package/docs/api/foundation-state-machine.defaultfetchmachinecontext.md +0 -13
  41. package/docs/api/foundation-state-machine.defaultfetchpolicy.md +0 -13
  42. package/docs/api/foundation-state-machine.defaultresponsedataextractor.md +0 -18
  43. package/docs/api/foundation-state-machine.defaultresponseokchecker.md +0 -13
  44. package/docs/api/foundation-state-machine.defaultretrystatscodes.md +0 -13
  45. package/docs/api/foundation-state-machine.errorworkflowinput.md +0 -17
  46. package/docs/api/foundation-state-machine.escalateerror.md +0 -42
  47. package/docs/api/foundation-state-machine.fetchconfig.fetcher.md +0 -13
  48. package/docs/api/foundation-state-machine.fetchconfig.fetchpolicy.md +0 -13
  49. package/docs/api/foundation-state-machine.fetchconfig.md +0 -115
  50. package/docs/api/foundation-state-machine.fetchconfig.responsedataextractor.md +0 -13
  51. package/docs/api/foundation-state-machine.fetchconfig.responseokchecker.md +0 -13
  52. package/docs/api/foundation-state-machine.fetchmachine.md +0 -15
  53. package/docs/api/foundation-state-machine.fetchmachinecontext.controller.md +0 -13
  54. package/docs/api/foundation-state-machine.fetchmachinecontext.data.md +0 -13
  55. package/docs/api/foundation-state-machine.fetchmachinecontext.md +0 -120
  56. package/docs/api/foundation-state-machine.fetchmachinecontext.params.md +0 -17
  57. package/docs/api/foundation-state-machine.fetchmachinecontext.response.md +0 -13
  58. package/docs/api/foundation-state-machine.fetchmachineevent.md +0 -24
  59. package/docs/api/foundation-state-machine.fetchmachineeventmap.md +0 -21
  60. package/docs/api/foundation-state-machine.fetchmachineoutput.md +0 -21
  61. package/docs/api/foundation-state-machine.genesisservererror._constructor_.md +0 -82
  62. package/docs/api/foundation-state-machine.genesisservererror.getdetailserror.md +0 -15
  63. package/docs/api/foundation-state-machine.genesisservererror.getmessageerror.md +0 -15
  64. package/docs/api/foundation-state-machine.genesisservererror.haserrorcode.md +0 -50
  65. package/docs/api/foundation-state-machine.genesisservererror.isignorableerror.md +0 -17
  66. package/docs/api/foundation-state-machine.genesisservererror.md +0 -186
  67. package/docs/api/foundation-state-machine.genesisservererror.received.md +0 -11
  68. package/docs/api/foundation-state-machine.genesisservererror.sent.md +0 -11
  69. package/docs/api/foundation-state-machine.isaborterror.md +0 -54
  70. package/docs/api/foundation-state-machine.isactorerrorevent.md +0 -70
  71. package/docs/api/foundation-state-machine.isapierror.md +0 -52
  72. package/docs/api/foundation-state-machine.isdoneinvokeevent.md +0 -54
  73. package/docs/api/foundation-state-machine.iserrorcustomevent.md +0 -58
  74. package/docs/api/foundation-state-machine.iserrorevent.md +0 -54
  75. package/docs/api/foundation-state-machine.iserrortype.md +0 -54
  76. package/docs/api/foundation-state-machine.iseventwithparams.md +0 -54
  77. package/docs/api/foundation-state-machine.isgenesisservererror.md +0 -52
  78. package/docs/api/foundation-state-machine.ismappingerror.md +0 -52
  79. package/docs/api/foundation-state-machine.isnetworkerror.md +0 -52
  80. package/docs/api/foundation-state-machine.isnotfounderror.md +0 -54
  81. package/docs/api/foundation-state-machine.issyntaxerror.md +0 -54
  82. package/docs/api/foundation-state-machine.istypeerror.md +0 -54
  83. package/docs/api/foundation-state-machine.isunauthorizederror.md +0 -54
  84. package/docs/api/foundation-state-machine.logger.md +0 -12
  85. package/docs/api/foundation-state-machine.machine.actor.md +0 -18
  86. package/docs/api/foundation-state-machine.machine.binding.md +0 -122
  87. package/docs/api/foundation-state-machine.machine.complete.md +0 -13
  88. package/docs/api/foundation-state-machine.machine.context.md +0 -13
  89. package/docs/api/foundation-state-machine.machine.error.md +0 -13
  90. package/docs/api/foundation-state-machine.machine.errors.md +0 -13
  91. package/docs/api/foundation-state-machine.machine.getfromcontainer.md +0 -35
  92. package/docs/api/foundation-state-machine.machine.getmetavaluesbykey.md +0 -58
  93. package/docs/api/foundation-state-machine.machine.hastag.md +0 -65
  94. package/docs/api/foundation-state-machine.machine.machine.md +0 -18
  95. package/docs/api/foundation-state-machine.machine.matches.md +0 -65
  96. package/docs/api/foundation-state-machine.machine.md +0 -474
  97. package/docs/api/foundation-state-machine.machine.meta.md +0 -13
  98. package/docs/api/foundation-state-machine.machine.onsendevent.md +0 -54
  99. package/docs/api/foundation-state-machine.machine.output.md +0 -13
  100. package/docs/api/foundation-state-machine.machine.provide.md +0 -74
  101. package/docs/api/foundation-state-machine.machine.send.md +0 -54
  102. package/docs/api/foundation-state-machine.machine.snapshot.md +0 -13
  103. package/docs/api/foundation-state-machine.machine.start.md +0 -58
  104. package/docs/api/foundation-state-machine.machine.startingcontext.md +0 -13
  105. package/docs/api/foundation-state-machine.machine.startingstate.md +0 -13
  106. package/docs/api/foundation-state-machine.machine.state.md +0 -13
  107. package/docs/api/foundation-state-machine.machine.stop.md +0 -17
  108. package/docs/api/foundation-state-machine.machinecontext.error.md +0 -13
  109. package/docs/api/foundation-state-machine.machinecontext.errors.md +0 -13
  110. package/docs/api/foundation-state-machine.machinecontext.md +0 -96
  111. package/docs/api/foundation-state-machine.mappingerror._constructor_.md +0 -66
  112. package/docs/api/foundation-state-machine.mappingerror.dto.md +0 -11
  113. package/docs/api/foundation-state-machine.mappingerror.md +0 -93
  114. package/docs/api/foundation-state-machine.md +0 -600
  115. package/docs/api/foundation-state-machine.networkerror._constructor_.md +0 -64
  116. package/docs/api/foundation-state-machine.networkerror.md +0 -95
  117. package/docs/api/foundation-state-machine.networkerror.url.md +0 -11
  118. package/docs/api/foundation-state-machine.responsedataextractor.md +0 -18
  119. package/docs/api/foundation-state-machine.responseokchecker.md +0 -13
  120. package/docs/api/foundation-state-machine.seterror.md +0 -25
  121. package/docs/api/foundation-state-machine.seterrorbykey.md +0 -65
  122. package/docs/api/index.md +0 -30
  123. package/docs/api-report.md.api.md +0 -410
@@ -1,58 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-state-machine](./foundation-state-machine.md) &gt; [Machine](./foundation-state-machine.machine.md) &gt; [start](./foundation-state-machine.machine.start.md)
4
-
5
- ## Machine.start() method
6
-
7
- Start the machine.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- start(options?: InterpreterOptions<StateMachine<TContext, TEvent, TAction, TActor, TInput, TResolvedTypesMeta>>): any;
13
- ```
14
-
15
- ## Parameters
16
-
17
- <table><thead><tr><th>
18
-
19
- Parameter
20
-
21
-
22
- </th><th>
23
-
24
- Type
25
-
26
-
27
- </th><th>
28
-
29
- Description
30
-
31
-
32
- </th></tr></thead>
33
- <tbody><tr><td>
34
-
35
- options
36
-
37
-
38
- </td><td>
39
-
40
- InterpreterOptions&lt;StateMachine&lt;TContext, TEvent, TAction, TActor, TInput, TResolvedTypesMeta&gt;&gt;
41
-
42
-
43
- </td><td>
44
-
45
- _(Optional)_ Optional InterpreterOptions. Can be used to restore to a previously persisted state.
46
-
47
-
48
- </td></tr>
49
- </tbody></table>
50
-
51
- **Returns:**
52
-
53
- any
54
-
55
- ## Remarks
56
-
57
- Called to ready the machine and create the internal actor (interpreter). This is called internally after `createMachine` by convention, however it should also be called after calling [provide](./foundation-state-machine.machine.provide.md) when overriding logic. Calling `start` on an injected machine allows you to restart/reuse it if needed. This is okay for machines registered as `transient` in the DI, but care should be taken when creating a machine registered as a `singleton`<!-- -->. You may need to check the status of the machine and block re-starts.
58
-
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-state-machine](./foundation-state-machine.md) &gt; [Machine](./foundation-state-machine.machine.md) &gt; [startingContext](./foundation-state-machine.machine.startingcontext.md)
4
-
5
- ## Machine.startingContext property
6
-
7
- The `context` of the machine when started.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- readonly startingContext: Partial<TContext>;
13
- ```
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-state-machine](./foundation-state-machine.md) &gt; [Machine](./foundation-state-machine.machine.md) &gt; [startingState](./foundation-state-machine.machine.startingstate.md)
4
-
5
- ## Machine.startingState property
6
-
7
- The `state` of the machine when started. Allows consumers to start a machine from a persisted state.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- readonly startingState: StateValue;
13
- ```
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-state-machine](./foundation-state-machine.md) &gt; [Machine](./foundation-state-machine.machine.md) &gt; [state](./foundation-state-machine.machine.state.md)
4
-
5
- ## Machine.state property
6
-
7
- The current `state` of the machine itself. This is not to be confused with state in the data or store sense.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- readonly state: StateValue;
13
- ```
@@ -1,17 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-state-machine](./foundation-state-machine.md) &gt; [Machine](./foundation-state-machine.machine.md) &gt; [stop](./foundation-state-machine.machine.stop.md)
4
-
5
- ## Machine.stop() method
6
-
7
- Stop the machine.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- stop(): void;
13
- ```
14
- **Returns:**
15
-
16
- void
17
-
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-state-machine](./foundation-state-machine.md) &gt; [MachineContext](./foundation-state-machine.machinecontext.md) &gt; [error](./foundation-state-machine.machinecontext.error.md)
4
-
5
- ## MachineContext.error property
6
-
7
- A general machine error. Maybe equal to `errors.lastError`<!-- -->.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- readonly error: any;
13
- ```
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-state-machine](./foundation-state-machine.md) &gt; [MachineContext](./foundation-state-machine.machinecontext.md) &gt; [errors](./foundation-state-machine.machinecontext.errors.md)
4
-
5
- ## MachineContext.errors property
6
-
7
- A `ErrorMap` of errors that may have occurred during the machine's workflows.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- readonly errors: ErrorMap<ErrorDetailMap>;
13
- ```
@@ -1,96 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-state-machine](./foundation-state-machine.md) &gt; [MachineContext](./foundation-state-machine.machinecontext.md)
4
-
5
- ## MachineContext interface
6
-
7
- MachineContext interface.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export interface MachineContext extends XMachineContext
13
- ```
14
- **Extends:** XMachineContext
15
-
16
- ## Remarks
17
-
18
- The interface of our xstate based machine contexts that include `error` and `errors` properties. Should be extended.
19
-
20
- ## Example
21
-
22
- Creating a machine context.
23
-
24
- ```ts
25
- export interface MyMachineContext extends MachineContext {
26
- ...
27
- };
28
- ```
29
-
30
- ## Properties
31
-
32
- <table><thead><tr><th>
33
-
34
- Property
35
-
36
-
37
- </th><th>
38
-
39
- Modifiers
40
-
41
-
42
- </th><th>
43
-
44
- Type
45
-
46
-
47
- </th><th>
48
-
49
- Description
50
-
51
-
52
- </th></tr></thead>
53
- <tbody><tr><td>
54
-
55
- [error](./foundation-state-machine.machinecontext.error.md)
56
-
57
-
58
- </td><td>
59
-
60
- `readonly`
61
-
62
-
63
- </td><td>
64
-
65
- any
66
-
67
-
68
- </td><td>
69
-
70
- A general machine error. Maybe equal to `errors.lastError`<!-- -->.
71
-
72
-
73
- </td></tr>
74
- <tr><td>
75
-
76
- [errors](./foundation-state-machine.machinecontext.errors.md)
77
-
78
-
79
- </td><td>
80
-
81
- `readonly`
82
-
83
-
84
- </td><td>
85
-
86
- ErrorMap&lt;ErrorDetailMap&gt;
87
-
88
-
89
- </td><td>
90
-
91
- A `ErrorMap` of errors that may have occurred during the machine's workflows.
92
-
93
-
94
- </td></tr>
95
- </tbody></table>
96
-
@@ -1,66 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-state-machine](./foundation-state-machine.md) &gt; [MappingError](./foundation-state-machine.mappingerror.md) &gt; [(constructor)](./foundation-state-machine.mappingerror._constructor_.md)
4
-
5
- ## MappingError.(constructor)
6
-
7
- Constructs a new instance of the `MappingError` class
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- constructor(dto?: unknown, message?: string);
13
- ```
14
-
15
- ## Parameters
16
-
17
- <table><thead><tr><th>
18
-
19
- Parameter
20
-
21
-
22
- </th><th>
23
-
24
- Type
25
-
26
-
27
- </th><th>
28
-
29
- Description
30
-
31
-
32
- </th></tr></thead>
33
- <tbody><tr><td>
34
-
35
- dto
36
-
37
-
38
- </td><td>
39
-
40
- unknown
41
-
42
-
43
- </td><td>
44
-
45
- _(Optional)_
46
-
47
-
48
- </td></tr>
49
- <tr><td>
50
-
51
- message
52
-
53
-
54
- </td><td>
55
-
56
- string
57
-
58
-
59
- </td><td>
60
-
61
- _(Optional)_
62
-
63
-
64
- </td></tr>
65
- </tbody></table>
66
-
@@ -1,11 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-state-machine](./foundation-state-machine.md) &gt; [MappingError](./foundation-state-machine.mappingerror.md) &gt; [dto](./foundation-state-machine.mappingerror.dto.md)
4
-
5
- ## MappingError.dto property
6
-
7
- **Signature:**
8
-
9
- ```typescript
10
- dto?: unknown;
11
- ```
@@ -1,93 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-state-machine](./foundation-state-machine.md) &gt; [MappingError](./foundation-state-machine.mappingerror.md)
4
-
5
- ## MappingError class
6
-
7
- MappingError.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export declare class MappingError extends Error
13
- ```
14
- **Extends:** Error
15
-
16
- ## Constructors
17
-
18
- <table><thead><tr><th>
19
-
20
- Constructor
21
-
22
-
23
- </th><th>
24
-
25
- Modifiers
26
-
27
-
28
- </th><th>
29
-
30
- Description
31
-
32
-
33
- </th></tr></thead>
34
- <tbody><tr><td>
35
-
36
- [(constructor)(dto, message)](./foundation-state-machine.mappingerror._constructor_.md)
37
-
38
-
39
- </td><td>
40
-
41
-
42
- </td><td>
43
-
44
- Constructs a new instance of the `MappingError` class
45
-
46
-
47
- </td></tr>
48
- </tbody></table>
49
-
50
- ## Properties
51
-
52
- <table><thead><tr><th>
53
-
54
- Property
55
-
56
-
57
- </th><th>
58
-
59
- Modifiers
60
-
61
-
62
- </th><th>
63
-
64
- Type
65
-
66
-
67
- </th><th>
68
-
69
- Description
70
-
71
-
72
- </th></tr></thead>
73
- <tbody><tr><td>
74
-
75
- [dto?](./foundation-state-machine.mappingerror.dto.md)
76
-
77
-
78
- </td><td>
79
-
80
-
81
- </td><td>
82
-
83
- unknown
84
-
85
-
86
- </td><td>
87
-
88
- _(Optional)_
89
-
90
-
91
- </td></tr>
92
- </tbody></table>
93
-