@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.
- package/README.md +6 -26
- package/package.json +12 -12
- package/docs/api/foundation-state-machine.abstractmachine.actor.md +0 -18
- package/docs/api/foundation-state-machine.abstractmachine.binding.md +0 -102
- package/docs/api/foundation-state-machine.abstractmachine.complete.md +0 -13
- package/docs/api/foundation-state-machine.abstractmachine.context.md +0 -13
- package/docs/api/foundation-state-machine.abstractmachine.error.md +0 -13
- package/docs/api/foundation-state-machine.abstractmachine.errors.md +0 -13
- package/docs/api/foundation-state-machine.abstractmachine.getfromcontainer.md +0 -23
- package/docs/api/foundation-state-machine.abstractmachine.getmetavaluesbykey.md +0 -58
- package/docs/api/foundation-state-machine.abstractmachine.hastag.md +0 -58
- package/docs/api/foundation-state-machine.abstractmachine.machine.md +0 -18
- package/docs/api/foundation-state-machine.abstractmachine.matches.md +0 -58
- package/docs/api/foundation-state-machine.abstractmachine.md +0 -435
- package/docs/api/foundation-state-machine.abstractmachine.meta.md +0 -13
- package/docs/api/foundation-state-machine.abstractmachine.onsendevent.md +0 -13
- package/docs/api/foundation-state-machine.abstractmachine.output.md +0 -13
- package/docs/api/foundation-state-machine.abstractmachine.provide.md +0 -54
- package/docs/api/foundation-state-machine.abstractmachine.send.md +0 -54
- package/docs/api/foundation-state-machine.abstractmachine.snapshot.md +0 -13
- package/docs/api/foundation-state-machine.abstractmachine.start.md +0 -58
- package/docs/api/foundation-state-machine.abstractmachine.startingcontext.md +0 -13
- package/docs/api/foundation-state-machine.abstractmachine.startingstate.md +0 -13
- package/docs/api/foundation-state-machine.abstractmachine.state.md +0 -13
- package/docs/api/foundation-state-machine.abstractmachine.stop.md +0 -17
- package/docs/api/foundation-state-machine.apierror._constructor_.md +0 -80
- package/docs/api/foundation-state-machine.apierror.data.md +0 -11
- package/docs/api/foundation-state-machine.apierror.isunauthorized.md +0 -16
- package/docs/api/foundation-state-machine.apierror.md +0 -147
- package/docs/api/foundation-state-machine.apierror.status.md +0 -11
- package/docs/api/foundation-state-machine.assertevent.md +0 -72
- package/docs/api/foundation-state-machine.createerrorstatenode.md +0 -86
- package/docs/api/foundation-state-machine.createfetchpolicy.md +0 -122
- package/docs/api/foundation-state-machine.createresponsedataextractorwithdeserializer.md +0 -70
- package/docs/api/foundation-state-machine.defaultfetchconfig.md +0 -13
- package/docs/api/foundation-state-machine.defaultfetchmachine._constructor_.md +0 -50
- package/docs/api/foundation-state-machine.defaultfetchmachine.getfromcontainer.md +0 -23
- package/docs/api/foundation-state-machine.defaultfetchmachine.md +0 -99
- package/docs/api/foundation-state-machine.defaultfetchmachine.start.md +0 -58
- package/docs/api/foundation-state-machine.defaultfetchmachinecontext.md +0 -13
- package/docs/api/foundation-state-machine.defaultfetchpolicy.md +0 -13
- package/docs/api/foundation-state-machine.defaultresponsedataextractor.md +0 -18
- package/docs/api/foundation-state-machine.defaultresponseokchecker.md +0 -13
- package/docs/api/foundation-state-machine.defaultretrystatscodes.md +0 -13
- package/docs/api/foundation-state-machine.errorworkflowinput.md +0 -17
- package/docs/api/foundation-state-machine.escalateerror.md +0 -42
- package/docs/api/foundation-state-machine.fetchconfig.fetcher.md +0 -13
- package/docs/api/foundation-state-machine.fetchconfig.fetchpolicy.md +0 -13
- package/docs/api/foundation-state-machine.fetchconfig.md +0 -115
- package/docs/api/foundation-state-machine.fetchconfig.responsedataextractor.md +0 -13
- package/docs/api/foundation-state-machine.fetchconfig.responseokchecker.md +0 -13
- package/docs/api/foundation-state-machine.fetchmachine.md +0 -15
- package/docs/api/foundation-state-machine.fetchmachinecontext.controller.md +0 -13
- package/docs/api/foundation-state-machine.fetchmachinecontext.data.md +0 -13
- package/docs/api/foundation-state-machine.fetchmachinecontext.md +0 -120
- package/docs/api/foundation-state-machine.fetchmachinecontext.params.md +0 -17
- package/docs/api/foundation-state-machine.fetchmachinecontext.response.md +0 -13
- package/docs/api/foundation-state-machine.fetchmachineevent.md +0 -24
- package/docs/api/foundation-state-machine.fetchmachineeventmap.md +0 -21
- package/docs/api/foundation-state-machine.fetchmachineoutput.md +0 -21
- package/docs/api/foundation-state-machine.genesisservererror._constructor_.md +0 -82
- package/docs/api/foundation-state-machine.genesisservererror.getdetailserror.md +0 -15
- package/docs/api/foundation-state-machine.genesisservererror.getmessageerror.md +0 -15
- package/docs/api/foundation-state-machine.genesisservererror.haserrorcode.md +0 -50
- package/docs/api/foundation-state-machine.genesisservererror.isignorableerror.md +0 -17
- package/docs/api/foundation-state-machine.genesisservererror.md +0 -186
- package/docs/api/foundation-state-machine.genesisservererror.received.md +0 -11
- package/docs/api/foundation-state-machine.genesisservererror.sent.md +0 -11
- package/docs/api/foundation-state-machine.isaborterror.md +0 -54
- package/docs/api/foundation-state-machine.isactorerrorevent.md +0 -70
- package/docs/api/foundation-state-machine.isapierror.md +0 -52
- package/docs/api/foundation-state-machine.isdoneinvokeevent.md +0 -54
- package/docs/api/foundation-state-machine.iserrorcustomevent.md +0 -58
- package/docs/api/foundation-state-machine.iserrorevent.md +0 -54
- package/docs/api/foundation-state-machine.iserrortype.md +0 -54
- package/docs/api/foundation-state-machine.iseventwithparams.md +0 -54
- package/docs/api/foundation-state-machine.isgenesisservererror.md +0 -52
- package/docs/api/foundation-state-machine.ismappingerror.md +0 -52
- package/docs/api/foundation-state-machine.isnetworkerror.md +0 -52
- package/docs/api/foundation-state-machine.isnotfounderror.md +0 -54
- package/docs/api/foundation-state-machine.issyntaxerror.md +0 -54
- package/docs/api/foundation-state-machine.istypeerror.md +0 -54
- package/docs/api/foundation-state-machine.isunauthorizederror.md +0 -54
- package/docs/api/foundation-state-machine.logger.md +0 -12
- package/docs/api/foundation-state-machine.machine.actor.md +0 -18
- package/docs/api/foundation-state-machine.machine.binding.md +0 -122
- package/docs/api/foundation-state-machine.machine.complete.md +0 -13
- package/docs/api/foundation-state-machine.machine.context.md +0 -13
- package/docs/api/foundation-state-machine.machine.error.md +0 -13
- package/docs/api/foundation-state-machine.machine.errors.md +0 -13
- package/docs/api/foundation-state-machine.machine.getfromcontainer.md +0 -35
- package/docs/api/foundation-state-machine.machine.getmetavaluesbykey.md +0 -58
- package/docs/api/foundation-state-machine.machine.hastag.md +0 -65
- package/docs/api/foundation-state-machine.machine.machine.md +0 -18
- package/docs/api/foundation-state-machine.machine.matches.md +0 -65
- package/docs/api/foundation-state-machine.machine.md +0 -474
- package/docs/api/foundation-state-machine.machine.meta.md +0 -13
- package/docs/api/foundation-state-machine.machine.onsendevent.md +0 -54
- package/docs/api/foundation-state-machine.machine.output.md +0 -13
- package/docs/api/foundation-state-machine.machine.provide.md +0 -74
- package/docs/api/foundation-state-machine.machine.send.md +0 -54
- package/docs/api/foundation-state-machine.machine.snapshot.md +0 -13
- package/docs/api/foundation-state-machine.machine.start.md +0 -58
- package/docs/api/foundation-state-machine.machine.startingcontext.md +0 -13
- package/docs/api/foundation-state-machine.machine.startingstate.md +0 -13
- package/docs/api/foundation-state-machine.machine.state.md +0 -13
- package/docs/api/foundation-state-machine.machine.stop.md +0 -17
- package/docs/api/foundation-state-machine.machinecontext.error.md +0 -13
- package/docs/api/foundation-state-machine.machinecontext.errors.md +0 -13
- package/docs/api/foundation-state-machine.machinecontext.md +0 -96
- package/docs/api/foundation-state-machine.mappingerror._constructor_.md +0 -66
- package/docs/api/foundation-state-machine.mappingerror.dto.md +0 -11
- package/docs/api/foundation-state-machine.mappingerror.md +0 -93
- package/docs/api/foundation-state-machine.md +0 -600
- package/docs/api/foundation-state-machine.networkerror._constructor_.md +0 -64
- package/docs/api/foundation-state-machine.networkerror.md +0 -95
- package/docs/api/foundation-state-machine.networkerror.url.md +0 -11
- package/docs/api/foundation-state-machine.responsedataextractor.md +0 -18
- package/docs/api/foundation-state-machine.responseokchecker.md +0 -13
- package/docs/api/foundation-state-machine.seterror.md +0 -25
- package/docs/api/foundation-state-machine.seterrorbykey.md +0 -65
- package/docs/api/index.md +0 -30
- 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) > [@genesislcap/foundation-state-machine](./foundation-state-machine.md) > [isErrorCustomEvent](./foundation-state-machine.iserrorcustomevent.md)
|
|
4
|
-
|
|
5
|
-
## isErrorCustomEvent() function
|
|
6
|
-
|
|
7
|
-
isErrorCustomEvent.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
isErrorCustomEvent: <TData = any>(event: EventObject | ErrorEvent<TData>) => event is ErrorEvent<TData>
|
|
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
|
-
event
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
EventObject \| ErrorEvent<TData>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
An event.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
event is ErrorEvent<TData>
|
|
54
|
-
|
|
55
|
-
## Remarks
|
|
56
|
-
|
|
57
|
-
What `escalate` from a child is typed as.
|
|
58
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-state-machine](./foundation-state-machine.md) > [isErrorEvent](./foundation-state-machine.iserrorevent.md)
|
|
4
|
-
|
|
5
|
-
## isErrorEvent() function
|
|
6
|
-
|
|
7
|
-
isErrorEvent.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
isErrorEvent: <TData = any>(event: EventObject | ErrorEvent<TData>) => event is ErrorEvent<TData>
|
|
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
|
-
event
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
EventObject \| ErrorEvent<TData>
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
An event.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
event is ErrorEvent<TData>
|
|
54
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-state-machine](./foundation-state-machine.md) > [isErrorType](./foundation-state-machine.iserrortype.md)
|
|
4
|
-
|
|
5
|
-
## isErrorType() function
|
|
6
|
-
|
|
7
|
-
isErrorType.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
isErrorType: <TType extends ErrorConstructor>(type: TType) => (event: any) => boolean
|
|
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
|
-
type
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
TType
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
An event type.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
(event: any) => boolean
|
|
54
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-state-machine](./foundation-state-machine.md) > [isEventWithParams](./foundation-state-machine.iseventwithparams.md)
|
|
4
|
-
|
|
5
|
-
## isEventWithParams() function
|
|
6
|
-
|
|
7
|
-
isEventWithParams.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
isEventWithParams: (event: AnyEventObject) => event is ParameterizedObject
|
|
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
|
-
event
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
AnyEventObject
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
An event.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
event is ParameterizedObject
|
|
54
|
-
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-state-machine](./foundation-state-machine.md) > [isGenesisServerError](./foundation-state-machine.isgenesisservererror.md)
|
|
4
|
-
|
|
5
|
-
## isGenesisServerError() function
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
isGenesisServerError: (error: unknown) => error is GenesisServerError
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
<table><thead><tr><th>
|
|
16
|
-
|
|
17
|
-
Parameter
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</th><th>
|
|
21
|
-
|
|
22
|
-
Type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</th><th>
|
|
26
|
-
|
|
27
|
-
Description
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</th></tr></thead>
|
|
31
|
-
<tbody><tr><td>
|
|
32
|
-
|
|
33
|
-
error
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td><td>
|
|
37
|
-
|
|
38
|
-
unknown
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</td><td>
|
|
42
|
-
|
|
43
|
-
An error.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
</tbody></table>
|
|
48
|
-
|
|
49
|
-
**Returns:**
|
|
50
|
-
|
|
51
|
-
error is [GenesisServerError](./foundation-state-machine.genesisservererror.md)
|
|
52
|
-
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-state-machine](./foundation-state-machine.md) > [isMappingError](./foundation-state-machine.ismappingerror.md)
|
|
4
|
-
|
|
5
|
-
## isMappingError() function
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
isMappingError: (error: unknown) => error is MappingError
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
<table><thead><tr><th>
|
|
16
|
-
|
|
17
|
-
Parameter
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</th><th>
|
|
21
|
-
|
|
22
|
-
Type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</th><th>
|
|
26
|
-
|
|
27
|
-
Description
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</th></tr></thead>
|
|
31
|
-
<tbody><tr><td>
|
|
32
|
-
|
|
33
|
-
error
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td><td>
|
|
37
|
-
|
|
38
|
-
unknown
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</td><td>
|
|
42
|
-
|
|
43
|
-
An error.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
</tbody></table>
|
|
48
|
-
|
|
49
|
-
**Returns:**
|
|
50
|
-
|
|
51
|
-
error is [MappingError](./foundation-state-machine.mappingerror.md)
|
|
52
|
-
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-state-machine](./foundation-state-machine.md) > [isNetworkError](./foundation-state-machine.isnetworkerror.md)
|
|
4
|
-
|
|
5
|
-
## isNetworkError() function
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
isNetworkError: (error: unknown) => error is NetworkError
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Parameters
|
|
14
|
-
|
|
15
|
-
<table><thead><tr><th>
|
|
16
|
-
|
|
17
|
-
Parameter
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</th><th>
|
|
21
|
-
|
|
22
|
-
Type
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
</th><th>
|
|
26
|
-
|
|
27
|
-
Description
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</th></tr></thead>
|
|
31
|
-
<tbody><tr><td>
|
|
32
|
-
|
|
33
|
-
error
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
</td><td>
|
|
37
|
-
|
|
38
|
-
unknown
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
</td><td>
|
|
42
|
-
|
|
43
|
-
An error.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</td></tr>
|
|
47
|
-
</tbody></table>
|
|
48
|
-
|
|
49
|
-
**Returns:**
|
|
50
|
-
|
|
51
|
-
error is [NetworkError](./foundation-state-machine.networkerror.md)
|
|
52
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-state-machine](./foundation-state-machine.md) > [isNotFoundError](./foundation-state-machine.isnotfounderror.md)
|
|
4
|
-
|
|
5
|
-
## isNotFoundError() function
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
isNotFoundError: (error: {
|
|
11
|
-
status?: number;
|
|
12
|
-
}) => error is APIError
|
|
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
|
-
error
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
{ status?: number; }
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
An error.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
error is [APIError](./foundation-state-machine.apierror.md)
|
|
54
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-state-machine](./foundation-state-machine.md) > [isSyntaxError](./foundation-state-machine.issyntaxerror.md)
|
|
4
|
-
|
|
5
|
-
## isSyntaxError() function
|
|
6
|
-
|
|
7
|
-
isSyntaxError.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
isSyntaxError: ({ event }: {
|
|
13
|
-
event: any;
|
|
14
|
-
}) => boolean
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Parameters
|
|
18
|
-
|
|
19
|
-
<table><thead><tr><th>
|
|
20
|
-
|
|
21
|
-
Parameter
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
</th><th>
|
|
25
|
-
|
|
26
|
-
Type
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</th><th>
|
|
30
|
-
|
|
31
|
-
Description
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
</th></tr></thead>
|
|
35
|
-
<tbody><tr><td>
|
|
36
|
-
|
|
37
|
-
{ event }
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
</td><td>
|
|
41
|
-
|
|
42
|
-
{ event: any; }
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</td><td>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
boolean
|
|
54
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-state-machine](./foundation-state-machine.md) > [isTypeError](./foundation-state-machine.istypeerror.md)
|
|
4
|
-
|
|
5
|
-
## isTypeError() function
|
|
6
|
-
|
|
7
|
-
isTypeError.
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
isTypeError: ({ event }: {
|
|
13
|
-
event: any;
|
|
14
|
-
}) => boolean
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Parameters
|
|
18
|
-
|
|
19
|
-
<table><thead><tr><th>
|
|
20
|
-
|
|
21
|
-
Parameter
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
</th><th>
|
|
25
|
-
|
|
26
|
-
Type
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</th><th>
|
|
30
|
-
|
|
31
|
-
Description
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
</th></tr></thead>
|
|
35
|
-
<tbody><tr><td>
|
|
36
|
-
|
|
37
|
-
{ event }
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
</td><td>
|
|
41
|
-
|
|
42
|
-
{ event: any; }
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
</td><td>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
boolean
|
|
54
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-state-machine](./foundation-state-machine.md) > [isUnauthorizedError](./foundation-state-machine.isunauthorizederror.md)
|
|
4
|
-
|
|
5
|
-
## isUnauthorizedError() function
|
|
6
|
-
|
|
7
|
-
**Signature:**
|
|
8
|
-
|
|
9
|
-
```typescript
|
|
10
|
-
isUnauthorizedError: (error: {
|
|
11
|
-
status?: number;
|
|
12
|
-
}) => error is APIError
|
|
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
|
-
error
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
</td><td>
|
|
39
|
-
|
|
40
|
-
{ status?: number; }
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
</td><td>
|
|
44
|
-
|
|
45
|
-
An error.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
</td></tr>
|
|
49
|
-
</tbody></table>
|
|
50
|
-
|
|
51
|
-
**Returns:**
|
|
52
|
-
|
|
53
|
-
error is [APIError](./foundation-state-machine.apierror.md)
|
|
54
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-state-machine](./foundation-state-machine.md) > [logger](./foundation-state-machine.logger.md)
|
|
4
|
-
|
|
5
|
-
## logger variable
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
**Signature:**
|
|
9
|
-
|
|
10
|
-
```typescript
|
|
11
|
-
logger: import("@genesislcap/foundation-logger").Logger
|
|
12
|
-
```
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
-
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-state-machine](./foundation-state-machine.md) > [Machine](./foundation-state-machine.machine.md) > [actor](./foundation-state-machine.machine.actor.md)
|
|
4
|
-
|
|
5
|
-
## Machine.actor property
|
|
6
|
-
|
|
7
|
-
Optional actor
|
|
8
|
-
|
|
9
|
-
**Signature:**
|
|
10
|
-
|
|
11
|
-
```typescript
|
|
12
|
-
readonly actor?: InterpreterFrom<StateMachine<TContext, TEvent, TAction, TActor, TInput, TResolvedTypesMeta>>;
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Remarks
|
|
16
|
-
|
|
17
|
-
Callers can decide to reuse/reference if set or create their own.
|
|
18
|
-
|