@genesislcap/foundation-state-machine 14.95.0 → 14.96.1
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/dist/dts/core/actions.d.ts +6 -1
- package/dist/dts/core/actions.d.ts.map +1 -1
- package/dist/dts/core/errors.d.ts +2 -2
- package/dist/dts/core/errors.d.ts.map +1 -1
- package/dist/dts/core/guards.d.ts +7 -1
- package/dist/dts/core/guards.d.ts.map +1 -1
- package/dist/dts/core/machine.d.ts +28 -1
- package/dist/dts/core/machine.d.ts.map +1 -1
- package/dist/dts/core/state.d.ts.map +1 -1
- package/dist/dts/machines/fetch/errors.d.ts +14 -3
- package/dist/dts/machines/fetch/errors.d.ts.map +1 -1
- package/dist/esm/core/actions.js +23 -8
- package/dist/esm/core/guards.js +6 -0
- package/dist/esm/core/machine.js +39 -12
- package/dist/esm/core/state.js +18 -6
- package/dist/esm/machines/fetch/errors.js +11 -0
- package/dist/esm/machines/fetch/policies.js +5 -5
- package/dist/foundation-state-machine.api.json +464 -11
- package/dist/foundation-state-machine.d.ts +59 -7
- package/docs/api/foundation-state-machine.abstractmachine.getmetavaluesbykey.md +28 -0
- package/docs/api/foundation-state-machine.abstractmachine.md +3 -0
- package/docs/api/foundation-state-machine.abstractmachine.meta.md +13 -0
- package/docs/api/foundation-state-machine.abstractmachine.snapshot.md +13 -0
- package/docs/api/foundation-state-machine.apierror.isunauthorized.md +16 -0
- package/docs/api/foundation-state-machine.apierror.md +6 -0
- package/docs/api/foundation-state-machine.escalateerror.md +1 -1
- package/docs/api/foundation-state-machine.isapierror.md +1 -1
- package/docs/api/foundation-state-machine.iseventwithparams.md +13 -0
- package/docs/api/foundation-state-machine.isgenesisservererror.md +1 -1
- package/docs/api/foundation-state-machine.ismappingerror.md +1 -1
- package/docs/api/foundation-state-machine.isnetworkerror.md +1 -1
- package/docs/api/foundation-state-machine.isnotfounderror.md +1 -1
- package/docs/api/foundation-state-machine.isunauthorizederror.md +13 -0
- package/docs/api/foundation-state-machine.machine.getmetavaluesbykey.md +28 -0
- package/docs/api/foundation-state-machine.machine.md +3 -0
- package/docs/api/foundation-state-machine.machine.meta.md +13 -0
- package/docs/api/foundation-state-machine.machine.snapshot.md +13 -0
- package/docs/api/foundation-state-machine.md +3 -1
- package/docs/api-report.md +25 -6
- package/package.json +7 -7
|
@@ -732,6 +732,75 @@
|
|
|
732
732
|
"isAbstract": true,
|
|
733
733
|
"name": "getFromContainer"
|
|
734
734
|
},
|
|
735
|
+
{
|
|
736
|
+
"kind": "Method",
|
|
737
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!AbstractMachine#getMetaValuesByKey:member(1)",
|
|
738
|
+
"docComment": "/**\n * Get `meta` values by key.\n *\n * @remarks\n *\n * Meta is cumulative across all state nodes represented by the state value.\n *\n * @param key - A key within the `meta` object. Defaults to `content`.\n */\n",
|
|
739
|
+
"excerptTokens": [
|
|
740
|
+
{
|
|
741
|
+
"kind": "Content",
|
|
742
|
+
"text": "getMetaValuesByKey<T = "
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"kind": "Content",
|
|
746
|
+
"text": "string"
|
|
747
|
+
},
|
|
748
|
+
{
|
|
749
|
+
"kind": "Content",
|
|
750
|
+
"text": ">(key?: "
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"kind": "Content",
|
|
754
|
+
"text": "string"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
"kind": "Content",
|
|
758
|
+
"text": "): "
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"kind": "Content",
|
|
762
|
+
"text": "T[]"
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
"kind": "Content",
|
|
766
|
+
"text": ";"
|
|
767
|
+
}
|
|
768
|
+
],
|
|
769
|
+
"typeParameters": [
|
|
770
|
+
{
|
|
771
|
+
"typeParameterName": "T",
|
|
772
|
+
"constraintTokenRange": {
|
|
773
|
+
"startIndex": 0,
|
|
774
|
+
"endIndex": 0
|
|
775
|
+
},
|
|
776
|
+
"defaultTypeTokenRange": {
|
|
777
|
+
"startIndex": 1,
|
|
778
|
+
"endIndex": 2
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
],
|
|
782
|
+
"isStatic": false,
|
|
783
|
+
"returnTypeTokenRange": {
|
|
784
|
+
"startIndex": 5,
|
|
785
|
+
"endIndex": 6
|
|
786
|
+
},
|
|
787
|
+
"releaseTag": "Public",
|
|
788
|
+
"isProtected": false,
|
|
789
|
+
"overloadIndex": 1,
|
|
790
|
+
"parameters": [
|
|
791
|
+
{
|
|
792
|
+
"parameterName": "key",
|
|
793
|
+
"parameterTypeTokenRange": {
|
|
794
|
+
"startIndex": 3,
|
|
795
|
+
"endIndex": 4
|
|
796
|
+
},
|
|
797
|
+
"isOptional": true
|
|
798
|
+
}
|
|
799
|
+
],
|
|
800
|
+
"isOptional": false,
|
|
801
|
+
"isAbstract": false,
|
|
802
|
+
"name": "getMetaValuesByKey"
|
|
803
|
+
},
|
|
735
804
|
{
|
|
736
805
|
"kind": "Method",
|
|
737
806
|
"canonicalReference": "@genesislcap/foundation-state-machine!AbstractMachine#hasTag:member(1)",
|
|
@@ -877,6 +946,41 @@
|
|
|
877
946
|
"isAbstract": false,
|
|
878
947
|
"name": "matches"
|
|
879
948
|
},
|
|
949
|
+
{
|
|
950
|
+
"kind": "Property",
|
|
951
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!AbstractMachine#meta:member",
|
|
952
|
+
"docComment": "/**\n * The `meta` from the current `state`.\n */\n",
|
|
953
|
+
"excerptTokens": [
|
|
954
|
+
{
|
|
955
|
+
"kind": "Content",
|
|
956
|
+
"text": "meta: "
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"kind": "Reference",
|
|
960
|
+
"text": "Record",
|
|
961
|
+
"canonicalReference": "!Record:type"
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"kind": "Content",
|
|
965
|
+
"text": "<string, any>"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"kind": "Content",
|
|
969
|
+
"text": ";"
|
|
970
|
+
}
|
|
971
|
+
],
|
|
972
|
+
"isReadonly": false,
|
|
973
|
+
"isOptional": false,
|
|
974
|
+
"releaseTag": "Public",
|
|
975
|
+
"name": "meta",
|
|
976
|
+
"propertyTypeTokenRange": {
|
|
977
|
+
"startIndex": 1,
|
|
978
|
+
"endIndex": 3
|
|
979
|
+
},
|
|
980
|
+
"isStatic": false,
|
|
981
|
+
"isProtected": false,
|
|
982
|
+
"isAbstract": false
|
|
983
|
+
},
|
|
880
984
|
{
|
|
881
985
|
"kind": "Property",
|
|
882
986
|
"canonicalReference": "@genesislcap/foundation-state-machine!AbstractMachine#onSendEvent:member",
|
|
@@ -1047,6 +1151,41 @@
|
|
|
1047
1151
|
"isAbstract": false,
|
|
1048
1152
|
"name": "send"
|
|
1049
1153
|
},
|
|
1154
|
+
{
|
|
1155
|
+
"kind": "Property",
|
|
1156
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!AbstractMachine#snapshot:member",
|
|
1157
|
+
"docComment": "/**\n * The last `snapshot` from the actor.\n */\n",
|
|
1158
|
+
"excerptTokens": [
|
|
1159
|
+
{
|
|
1160
|
+
"kind": "Content",
|
|
1161
|
+
"text": "snapshot: "
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
"kind": "Reference",
|
|
1165
|
+
"text": "State",
|
|
1166
|
+
"canonicalReference": "xstate!State:class"
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
"kind": "Content",
|
|
1170
|
+
"text": "<TContext, TEvent, TActor, TResolvedTypesMeta>"
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"kind": "Content",
|
|
1174
|
+
"text": ";"
|
|
1175
|
+
}
|
|
1176
|
+
],
|
|
1177
|
+
"isReadonly": false,
|
|
1178
|
+
"isOptional": false,
|
|
1179
|
+
"releaseTag": "Public",
|
|
1180
|
+
"name": "snapshot",
|
|
1181
|
+
"propertyTypeTokenRange": {
|
|
1182
|
+
"startIndex": 1,
|
|
1183
|
+
"endIndex": 3
|
|
1184
|
+
},
|
|
1185
|
+
"isStatic": false,
|
|
1186
|
+
"isProtected": false,
|
|
1187
|
+
"isAbstract": false
|
|
1188
|
+
},
|
|
1050
1189
|
{
|
|
1051
1190
|
"kind": "Method",
|
|
1052
1191
|
"canonicalReference": "@genesislcap/foundation-state-machine!AbstractMachine#start:member(1)",
|
|
@@ -1364,6 +1503,37 @@
|
|
|
1364
1503
|
"isProtected": false,
|
|
1365
1504
|
"isAbstract": false
|
|
1366
1505
|
},
|
|
1506
|
+
{
|
|
1507
|
+
"kind": "Method",
|
|
1508
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!APIError#isUnauthorized:member(1)",
|
|
1509
|
+
"docComment": "/**\n * @public\n */\n",
|
|
1510
|
+
"excerptTokens": [
|
|
1511
|
+
{
|
|
1512
|
+
"kind": "Content",
|
|
1513
|
+
"text": "isUnauthorized(): "
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
"kind": "Content",
|
|
1517
|
+
"text": "boolean"
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
"kind": "Content",
|
|
1521
|
+
"text": ";"
|
|
1522
|
+
}
|
|
1523
|
+
],
|
|
1524
|
+
"isStatic": false,
|
|
1525
|
+
"returnTypeTokenRange": {
|
|
1526
|
+
"startIndex": 1,
|
|
1527
|
+
"endIndex": 2
|
|
1528
|
+
},
|
|
1529
|
+
"releaseTag": "Public",
|
|
1530
|
+
"isProtected": false,
|
|
1531
|
+
"overloadIndex": 1,
|
|
1532
|
+
"parameters": [],
|
|
1533
|
+
"isOptional": false,
|
|
1534
|
+
"isAbstract": false,
|
|
1535
|
+
"name": "isUnauthorized"
|
|
1536
|
+
},
|
|
1367
1537
|
{
|
|
1368
1538
|
"kind": "Property",
|
|
1369
1539
|
"canonicalReference": "@genesislcap/foundation-state-machine!APIError#status:member",
|
|
@@ -2158,7 +2328,7 @@
|
|
|
2158
2328
|
{
|
|
2159
2329
|
"kind": "Variable",
|
|
2160
2330
|
"canonicalReference": "@genesislcap/foundation-state-machine!escalateError:var",
|
|
2161
|
-
"docComment": "/**\n * Escalate error action.\n *\n * @remarks\n *\n * Guard this call with a parent check to avoid warnings when there's no parent.\n *\n * @public\n */\n",
|
|
2331
|
+
"docComment": "/**\n * Escalate context error action.\n *\n * @remarks\n *\n * Guard this call with a parent check to avoid warnings when there's no parent.\n *\n * @public\n */\n",
|
|
2162
2332
|
"excerptTokens": [
|
|
2163
2333
|
{
|
|
2164
2334
|
"kind": "Content",
|
|
@@ -3418,7 +3588,21 @@
|
|
|
3418
3588
|
},
|
|
3419
3589
|
{
|
|
3420
3590
|
"kind": "Content",
|
|
3421
|
-
"text": "(error: unknown) =>
|
|
3591
|
+
"text": "(error: unknown) => "
|
|
3592
|
+
},
|
|
3593
|
+
{
|
|
3594
|
+
"kind": "Reference",
|
|
3595
|
+
"text": "error",
|
|
3596
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!~error"
|
|
3597
|
+
},
|
|
3598
|
+
{
|
|
3599
|
+
"kind": "Content",
|
|
3600
|
+
"text": " is "
|
|
3601
|
+
},
|
|
3602
|
+
{
|
|
3603
|
+
"kind": "Reference",
|
|
3604
|
+
"text": "APIError",
|
|
3605
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!APIError:class"
|
|
3422
3606
|
}
|
|
3423
3607
|
],
|
|
3424
3608
|
"fileUrlPath": "src/machines/fetch/errors.ts",
|
|
@@ -3427,7 +3611,7 @@
|
|
|
3427
3611
|
"name": "isAPIError",
|
|
3428
3612
|
"variableTypeTokenRange": {
|
|
3429
3613
|
"startIndex": 1,
|
|
3430
|
-
"endIndex":
|
|
3614
|
+
"endIndex": 5
|
|
3431
3615
|
}
|
|
3432
3616
|
},
|
|
3433
3617
|
{
|
|
@@ -3639,6 +3823,52 @@
|
|
|
3639
3823
|
"endIndex": 4
|
|
3640
3824
|
}
|
|
3641
3825
|
},
|
|
3826
|
+
{
|
|
3827
|
+
"kind": "Variable",
|
|
3828
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!isEventWithParams:var",
|
|
3829
|
+
"docComment": "/**\n * isEventWithParams.\n *\n * @param event - An event.\n *\n * @public\n */\n",
|
|
3830
|
+
"excerptTokens": [
|
|
3831
|
+
{
|
|
3832
|
+
"kind": "Content",
|
|
3833
|
+
"text": "isEventWithParams: "
|
|
3834
|
+
},
|
|
3835
|
+
{
|
|
3836
|
+
"kind": "Content",
|
|
3837
|
+
"text": "(event: "
|
|
3838
|
+
},
|
|
3839
|
+
{
|
|
3840
|
+
"kind": "Reference",
|
|
3841
|
+
"text": "AnyEventObject",
|
|
3842
|
+
"canonicalReference": "xstate!AnyEventObject:interface"
|
|
3843
|
+
},
|
|
3844
|
+
{
|
|
3845
|
+
"kind": "Content",
|
|
3846
|
+
"text": ") => "
|
|
3847
|
+
},
|
|
3848
|
+
{
|
|
3849
|
+
"kind": "Reference",
|
|
3850
|
+
"text": "event",
|
|
3851
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!~event"
|
|
3852
|
+
},
|
|
3853
|
+
{
|
|
3854
|
+
"kind": "Content",
|
|
3855
|
+
"text": " is "
|
|
3856
|
+
},
|
|
3857
|
+
{
|
|
3858
|
+
"kind": "Reference",
|
|
3859
|
+
"text": "ParameterizedObject",
|
|
3860
|
+
"canonicalReference": "xstate!ParameterizedObject:interface"
|
|
3861
|
+
}
|
|
3862
|
+
],
|
|
3863
|
+
"fileUrlPath": "src/core/guards.ts",
|
|
3864
|
+
"isReadonly": true,
|
|
3865
|
+
"releaseTag": "Public",
|
|
3866
|
+
"name": "isEventWithParams",
|
|
3867
|
+
"variableTypeTokenRange": {
|
|
3868
|
+
"startIndex": 1,
|
|
3869
|
+
"endIndex": 7
|
|
3870
|
+
}
|
|
3871
|
+
},
|
|
3642
3872
|
{
|
|
3643
3873
|
"kind": "Variable",
|
|
3644
3874
|
"canonicalReference": "@genesislcap/foundation-state-machine!isGenesisServerError:var",
|
|
@@ -3650,7 +3880,21 @@
|
|
|
3650
3880
|
},
|
|
3651
3881
|
{
|
|
3652
3882
|
"kind": "Content",
|
|
3653
|
-
"text": "(error: unknown) =>
|
|
3883
|
+
"text": "(error: unknown) => "
|
|
3884
|
+
},
|
|
3885
|
+
{
|
|
3886
|
+
"kind": "Reference",
|
|
3887
|
+
"text": "error",
|
|
3888
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!~error"
|
|
3889
|
+
},
|
|
3890
|
+
{
|
|
3891
|
+
"kind": "Content",
|
|
3892
|
+
"text": " is "
|
|
3893
|
+
},
|
|
3894
|
+
{
|
|
3895
|
+
"kind": "Reference",
|
|
3896
|
+
"text": "GenesisServerError",
|
|
3897
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!GenesisServerError:class"
|
|
3654
3898
|
}
|
|
3655
3899
|
],
|
|
3656
3900
|
"fileUrlPath": "src/core/errors.ts",
|
|
@@ -3659,7 +3903,7 @@
|
|
|
3659
3903
|
"name": "isGenesisServerError",
|
|
3660
3904
|
"variableTypeTokenRange": {
|
|
3661
3905
|
"startIndex": 1,
|
|
3662
|
-
"endIndex":
|
|
3906
|
+
"endIndex": 5
|
|
3663
3907
|
}
|
|
3664
3908
|
},
|
|
3665
3909
|
{
|
|
@@ -3673,7 +3917,21 @@
|
|
|
3673
3917
|
},
|
|
3674
3918
|
{
|
|
3675
3919
|
"kind": "Content",
|
|
3676
|
-
"text": "(error: unknown) =>
|
|
3920
|
+
"text": "(error: unknown) => "
|
|
3921
|
+
},
|
|
3922
|
+
{
|
|
3923
|
+
"kind": "Reference",
|
|
3924
|
+
"text": "error",
|
|
3925
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!~error"
|
|
3926
|
+
},
|
|
3927
|
+
{
|
|
3928
|
+
"kind": "Content",
|
|
3929
|
+
"text": " is "
|
|
3930
|
+
},
|
|
3931
|
+
{
|
|
3932
|
+
"kind": "Reference",
|
|
3933
|
+
"text": "MappingError",
|
|
3934
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!MappingError:class"
|
|
3677
3935
|
}
|
|
3678
3936
|
],
|
|
3679
3937
|
"fileUrlPath": "src/core/errors.ts",
|
|
@@ -3682,7 +3940,7 @@
|
|
|
3682
3940
|
"name": "isMappingError",
|
|
3683
3941
|
"variableTypeTokenRange": {
|
|
3684
3942
|
"startIndex": 1,
|
|
3685
|
-
"endIndex":
|
|
3943
|
+
"endIndex": 5
|
|
3686
3944
|
}
|
|
3687
3945
|
},
|
|
3688
3946
|
{
|
|
@@ -3696,7 +3954,21 @@
|
|
|
3696
3954
|
},
|
|
3697
3955
|
{
|
|
3698
3956
|
"kind": "Content",
|
|
3699
|
-
"text": "(error: unknown) =>
|
|
3957
|
+
"text": "(error: unknown) => "
|
|
3958
|
+
},
|
|
3959
|
+
{
|
|
3960
|
+
"kind": "Reference",
|
|
3961
|
+
"text": "error",
|
|
3962
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!~error"
|
|
3963
|
+
},
|
|
3964
|
+
{
|
|
3965
|
+
"kind": "Content",
|
|
3966
|
+
"text": " is "
|
|
3967
|
+
},
|
|
3968
|
+
{
|
|
3969
|
+
"kind": "Reference",
|
|
3970
|
+
"text": "NetworkError",
|
|
3971
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!NetworkError:class"
|
|
3700
3972
|
}
|
|
3701
3973
|
],
|
|
3702
3974
|
"fileUrlPath": "src/machines/fetch/errors.ts",
|
|
@@ -3705,7 +3977,7 @@
|
|
|
3705
3977
|
"name": "isNetworkError",
|
|
3706
3978
|
"variableTypeTokenRange": {
|
|
3707
3979
|
"startIndex": 1,
|
|
3708
|
-
"endIndex":
|
|
3980
|
+
"endIndex": 5
|
|
3709
3981
|
}
|
|
3710
3982
|
},
|
|
3711
3983
|
{
|
|
@@ -3719,7 +3991,21 @@
|
|
|
3719
3991
|
},
|
|
3720
3992
|
{
|
|
3721
3993
|
"kind": "Content",
|
|
3722
|
-
"text": "(error: {\n status?: number;\n}) =>
|
|
3994
|
+
"text": "(error: {\n status?: number;\n}) => "
|
|
3995
|
+
},
|
|
3996
|
+
{
|
|
3997
|
+
"kind": "Reference",
|
|
3998
|
+
"text": "error",
|
|
3999
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!~error"
|
|
4000
|
+
},
|
|
4001
|
+
{
|
|
4002
|
+
"kind": "Content",
|
|
4003
|
+
"text": " is "
|
|
4004
|
+
},
|
|
4005
|
+
{
|
|
4006
|
+
"kind": "Reference",
|
|
4007
|
+
"text": "APIError",
|
|
4008
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!APIError:class"
|
|
3723
4009
|
}
|
|
3724
4010
|
],
|
|
3725
4011
|
"fileUrlPath": "src/machines/fetch/errors.ts",
|
|
@@ -3728,7 +4014,7 @@
|
|
|
3728
4014
|
"name": "isNotFoundError",
|
|
3729
4015
|
"variableTypeTokenRange": {
|
|
3730
4016
|
"startIndex": 1,
|
|
3731
|
-
"endIndex":
|
|
4017
|
+
"endIndex": 5
|
|
3732
4018
|
}
|
|
3733
4019
|
},
|
|
3734
4020
|
{
|
|
@@ -3777,6 +4063,43 @@
|
|
|
3777
4063
|
"endIndex": 2
|
|
3778
4064
|
}
|
|
3779
4065
|
},
|
|
4066
|
+
{
|
|
4067
|
+
"kind": "Variable",
|
|
4068
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!isUnauthorizedError:var",
|
|
4069
|
+
"docComment": "/**\n * @param error - An error.\n *\n * @public\n */\n",
|
|
4070
|
+
"excerptTokens": [
|
|
4071
|
+
{
|
|
4072
|
+
"kind": "Content",
|
|
4073
|
+
"text": "isUnauthorizedError: "
|
|
4074
|
+
},
|
|
4075
|
+
{
|
|
4076
|
+
"kind": "Content",
|
|
4077
|
+
"text": "(error: {\n status?: number;\n}) => "
|
|
4078
|
+
},
|
|
4079
|
+
{
|
|
4080
|
+
"kind": "Reference",
|
|
4081
|
+
"text": "error",
|
|
4082
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!~error"
|
|
4083
|
+
},
|
|
4084
|
+
{
|
|
4085
|
+
"kind": "Content",
|
|
4086
|
+
"text": " is "
|
|
4087
|
+
},
|
|
4088
|
+
{
|
|
4089
|
+
"kind": "Reference",
|
|
4090
|
+
"text": "APIError",
|
|
4091
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!APIError:class"
|
|
4092
|
+
}
|
|
4093
|
+
],
|
|
4094
|
+
"fileUrlPath": "src/machines/fetch/errors.ts",
|
|
4095
|
+
"isReadonly": true,
|
|
4096
|
+
"releaseTag": "Public",
|
|
4097
|
+
"name": "isUnauthorizedError",
|
|
4098
|
+
"variableTypeTokenRange": {
|
|
4099
|
+
"startIndex": 1,
|
|
4100
|
+
"endIndex": 5
|
|
4101
|
+
}
|
|
4102
|
+
},
|
|
3780
4103
|
{
|
|
3781
4104
|
"kind": "Variable",
|
|
3782
4105
|
"canonicalReference": "@genesislcap/foundation-state-machine!logger:var",
|
|
@@ -4330,6 +4653,72 @@
|
|
|
4330
4653
|
"parameters": [],
|
|
4331
4654
|
"name": "getFromContainer"
|
|
4332
4655
|
},
|
|
4656
|
+
{
|
|
4657
|
+
"kind": "MethodSignature",
|
|
4658
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!Machine#getMetaValuesByKey:member(1)",
|
|
4659
|
+
"docComment": "/**\n * Get `meta` values by key.\n *\n * @remarks\n *\n * Meta is cumulative across all state nodes represented by the state value.\n *\n * @param key - A key within the `meta` object. Defaults to `content`.\n */\n",
|
|
4660
|
+
"excerptTokens": [
|
|
4661
|
+
{
|
|
4662
|
+
"kind": "Content",
|
|
4663
|
+
"text": "getMetaValuesByKey<T = "
|
|
4664
|
+
},
|
|
4665
|
+
{
|
|
4666
|
+
"kind": "Content",
|
|
4667
|
+
"text": "string"
|
|
4668
|
+
},
|
|
4669
|
+
{
|
|
4670
|
+
"kind": "Content",
|
|
4671
|
+
"text": ">(key?: "
|
|
4672
|
+
},
|
|
4673
|
+
{
|
|
4674
|
+
"kind": "Content",
|
|
4675
|
+
"text": "string"
|
|
4676
|
+
},
|
|
4677
|
+
{
|
|
4678
|
+
"kind": "Content",
|
|
4679
|
+
"text": "): "
|
|
4680
|
+
},
|
|
4681
|
+
{
|
|
4682
|
+
"kind": "Content",
|
|
4683
|
+
"text": "T[]"
|
|
4684
|
+
},
|
|
4685
|
+
{
|
|
4686
|
+
"kind": "Content",
|
|
4687
|
+
"text": ";"
|
|
4688
|
+
}
|
|
4689
|
+
],
|
|
4690
|
+
"isOptional": false,
|
|
4691
|
+
"returnTypeTokenRange": {
|
|
4692
|
+
"startIndex": 5,
|
|
4693
|
+
"endIndex": 6
|
|
4694
|
+
},
|
|
4695
|
+
"releaseTag": "Public",
|
|
4696
|
+
"overloadIndex": 1,
|
|
4697
|
+
"parameters": [
|
|
4698
|
+
{
|
|
4699
|
+
"parameterName": "key",
|
|
4700
|
+
"parameterTypeTokenRange": {
|
|
4701
|
+
"startIndex": 3,
|
|
4702
|
+
"endIndex": 4
|
|
4703
|
+
},
|
|
4704
|
+
"isOptional": true
|
|
4705
|
+
}
|
|
4706
|
+
],
|
|
4707
|
+
"typeParameters": [
|
|
4708
|
+
{
|
|
4709
|
+
"typeParameterName": "T",
|
|
4710
|
+
"constraintTokenRange": {
|
|
4711
|
+
"startIndex": 0,
|
|
4712
|
+
"endIndex": 0
|
|
4713
|
+
},
|
|
4714
|
+
"defaultTypeTokenRange": {
|
|
4715
|
+
"startIndex": 1,
|
|
4716
|
+
"endIndex": 2
|
|
4717
|
+
}
|
|
4718
|
+
}
|
|
4719
|
+
],
|
|
4720
|
+
"name": "getMetaValuesByKey"
|
|
4721
|
+
},
|
|
4333
4722
|
{
|
|
4334
4723
|
"kind": "MethodSignature",
|
|
4335
4724
|
"canonicalReference": "@genesislcap/foundation-state-machine!Machine#hasTag:member(1)",
|
|
@@ -4466,6 +4855,38 @@
|
|
|
4466
4855
|
],
|
|
4467
4856
|
"name": "matches"
|
|
4468
4857
|
},
|
|
4858
|
+
{
|
|
4859
|
+
"kind": "PropertySignature",
|
|
4860
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!Machine#meta:member",
|
|
4861
|
+
"docComment": "/**\n * The `meta` from the current `state`.\n */\n",
|
|
4862
|
+
"excerptTokens": [
|
|
4863
|
+
{
|
|
4864
|
+
"kind": "Content",
|
|
4865
|
+
"text": "readonly meta: "
|
|
4866
|
+
},
|
|
4867
|
+
{
|
|
4868
|
+
"kind": "Reference",
|
|
4869
|
+
"text": "Record",
|
|
4870
|
+
"canonicalReference": "!Record:type"
|
|
4871
|
+
},
|
|
4872
|
+
{
|
|
4873
|
+
"kind": "Content",
|
|
4874
|
+
"text": "<string, any>"
|
|
4875
|
+
},
|
|
4876
|
+
{
|
|
4877
|
+
"kind": "Content",
|
|
4878
|
+
"text": ";"
|
|
4879
|
+
}
|
|
4880
|
+
],
|
|
4881
|
+
"isReadonly": true,
|
|
4882
|
+
"isOptional": false,
|
|
4883
|
+
"releaseTag": "Public",
|
|
4884
|
+
"name": "meta",
|
|
4885
|
+
"propertyTypeTokenRange": {
|
|
4886
|
+
"startIndex": 1,
|
|
4887
|
+
"endIndex": 3
|
|
4888
|
+
}
|
|
4889
|
+
},
|
|
4469
4890
|
{
|
|
4470
4891
|
"kind": "MethodSignature",
|
|
4471
4892
|
"canonicalReference": "@genesislcap/foundation-state-machine!Machine#onSendEvent:member(1)",
|
|
@@ -4638,6 +5059,38 @@
|
|
|
4638
5059
|
],
|
|
4639
5060
|
"name": "send"
|
|
4640
5061
|
},
|
|
5062
|
+
{
|
|
5063
|
+
"kind": "PropertySignature",
|
|
5064
|
+
"canonicalReference": "@genesislcap/foundation-state-machine!Machine#snapshot:member",
|
|
5065
|
+
"docComment": "/**\n * The last `snapshot` from the actor.\n */\n",
|
|
5066
|
+
"excerptTokens": [
|
|
5067
|
+
{
|
|
5068
|
+
"kind": "Content",
|
|
5069
|
+
"text": "readonly snapshot: "
|
|
5070
|
+
},
|
|
5071
|
+
{
|
|
5072
|
+
"kind": "Reference",
|
|
5073
|
+
"text": "State",
|
|
5074
|
+
"canonicalReference": "xstate!State:class"
|
|
5075
|
+
},
|
|
5076
|
+
{
|
|
5077
|
+
"kind": "Content",
|
|
5078
|
+
"text": "<TContext, TEvent, TActor, TResolvedTypesMeta>"
|
|
5079
|
+
},
|
|
5080
|
+
{
|
|
5081
|
+
"kind": "Content",
|
|
5082
|
+
"text": ";"
|
|
5083
|
+
}
|
|
5084
|
+
],
|
|
5085
|
+
"isReadonly": true,
|
|
5086
|
+
"isOptional": false,
|
|
5087
|
+
"releaseTag": "Public",
|
|
5088
|
+
"name": "snapshot",
|
|
5089
|
+
"propertyTypeTokenRange": {
|
|
5090
|
+
"startIndex": 1,
|
|
5091
|
+
"endIndex": 3
|
|
5092
|
+
}
|
|
5093
|
+
},
|
|
4641
5094
|
{
|
|
4642
5095
|
"kind": "MethodSignature",
|
|
4643
5096
|
"canonicalReference": "@genesislcap/foundation-state-machine!Machine#start:member(1)",
|