@genesislcap/foundation-state-machine 14.71.1-auth-mf.6 → 14.71.1-auth-mf.9

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.
@@ -1,4 +1,4 @@
1
- import { DoneInvokeEvent, ErrorEvent, EventObject } from 'xstate';
1
+ import { AnyEventObject, DoneInvokeEvent, ErrorEvent, EventObject, ParameterizedObject } from 'xstate';
2
2
  /**
3
3
  * assertEvent.
4
4
  * @privateRemarks
@@ -37,6 +37,12 @@ export declare const isErrorCustomEvent: <TData = any>(event: EventObject | Erro
37
37
  * @public
38
38
  */
39
39
  export declare const isActorErrorEvent: <TData = any>(actorId: string, event: EventObject | ErrorEvent<TData>) => event is ErrorEvent<TData>;
40
+ /**
41
+ * isEventWithParams.
42
+ * @param event - An event.
43
+ * @public
44
+ */
45
+ export declare const isEventWithParams: (event: AnyEventObject) => event is ParameterizedObject;
40
46
  /**
41
47
  * isErrorType.
42
48
  * @param type - An event type.
@@ -1 +1 @@
1
- {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../../src/core/guards.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAElE;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,MAAM,SAAS,WAAW,GAAG,WAAW,EAClE,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,GACnB,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;CAAE,CAAC,CAI5D;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,+FAEuC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,YAAY,qFAE0C,CAAC;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,qFAEkC,CAAC;AAElE;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,yBACnB,MAAM,uEAE8E,CAAC;AAEhG;;;;GAIG;AACH,eAAO,MAAM,WAAW,0EAOrB,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,WAAW;;aAA+C,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,aAAa;;aAAiD,CAAC;AAE5E;;;GAGG;AACH,eAAO,MAAM,YAAY;;aAQxB,CAAC"}
1
+ {"version":3,"file":"guards.d.ts","sourceRoot":"","sources":["../../../src/core/guards.ts"],"names":[],"mappings":"AACA,OAAO,EACL,cAAc,EACd,eAAe,EACf,UAAU,EACV,WAAW,EACX,mBAAmB,EACpB,MAAM,QAAQ,CAAC;AAEhB;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,MAAM,SAAS,WAAW,GAAG,WAAW,EAClE,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,GACnB,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,CAAA;CAAE,CAAC,CAI5D;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,+FAEuC,CAAC;AAEtE;;;;GAIG;AACH,eAAO,MAAM,YAAY,qFAE0C,CAAC;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,qFAEkC,CAAC;AAElE;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,yBACnB,MAAM,uEAE8E,CAAC;AAEhG;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,UAAW,cAAc,iCAC3B,CAAC;AAE7B;;;;GAIG;AACH,eAAO,MAAM,WAAW,0EAOrB,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,WAAW;;aAA+C,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,aAAa;;aAAiD,CAAC;AAE5E;;;GAGG;AACH,eAAO,MAAM,YAAY;;aAQxB,CAAC"}
@@ -39,6 +39,12 @@ export const isErrorCustomEvent = (event) => /^xstate.error/.test(event.type);
39
39
  * @public
40
40
  */
41
41
  export const isActorErrorEvent = (actorId, event) => { var _a, _b; return ((_a = event.type) === null || _a === void 0 ? void 0 : _a.includes('error')) && ((_b = event.type) === null || _b === void 0 ? void 0 : _b.includes(actorId)); };
42
+ /**
43
+ * isEventWithParams.
44
+ * @param event - An event.
45
+ * @public
46
+ */
47
+ export const isEventWithParams = (event) => event.params !== undefined;
42
48
  /**
43
49
  * isErrorType.
44
50
  * @param type - An event type.
@@ -3823,6 +3823,52 @@
3823
3823
  "endIndex": 4
3824
3824
  }
3825
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
+ },
3826
3872
  {
3827
3873
  "kind": "Variable",
3828
3874
  "canonicalReference": "@genesislcap/foundation-state-machine!isGenesisServerError:var",
@@ -3,7 +3,7 @@
3
3
  import { ActionArgs } from 'xstate';
4
4
  import { AnyActorContext } from 'xstate';
5
5
  import { AnyActorRef } from 'xstate';
6
- import type { AnyEventObject } from 'xstate';
6
+ import { AnyEventObject } from 'xstate';
7
7
  import { AnyState } from 'xstate';
8
8
  import { Assigner } from 'xstate';
9
9
  import { BindingObserver } from '@microsoft/fast-element';
@@ -480,6 +480,13 @@ export declare const isErrorEvent: <TData = any>(event: EventObject | ErrorEvent
480
480
  */
481
481
  export declare const isErrorType: <TType extends ErrorConstructor>(type: TType) => (event: any) => boolean;
482
482
 
483
+ /**
484
+ * isEventWithParams.
485
+ * @param event - An event.
486
+ * @public
487
+ */
488
+ export declare const isEventWithParams: (event: AnyEventObject) => event is ParameterizedObject;
489
+
483
490
  /**
484
491
  * @param error - An error.
485
492
  * @public
@@ -0,0 +1,13 @@
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; [isEventWithParams](./foundation-state-machine.iseventwithparams.md)
4
+
5
+ ## isEventWithParams variable
6
+
7
+ isEventWithParams.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ isEventWithParams: (event: AnyEventObject) => event is ParameterizedObject
13
+ ```
@@ -58,6 +58,7 @@
58
58
  | [isErrorCustomEvent](./foundation-state-machine.iserrorcustomevent.md) | isErrorCustomEvent. |
59
59
  | [isErrorEvent](./foundation-state-machine.iserrorevent.md) | isErrorEvent. |
60
60
  | [isErrorType](./foundation-state-machine.iserrortype.md) | isErrorType. |
61
+ | [isEventWithParams](./foundation-state-machine.iseventwithparams.md) | isEventWithParams. |
61
62
  | [isGenesisServerError](./foundation-state-machine.isgenesisservererror.md) | |
62
63
  | [isMappingError](./foundation-state-machine.ismappingerror.md) | |
63
64
  | [isNetworkError](./foundation-state-machine.isnetworkerror.md) | |
@@ -9,7 +9,7 @@
9
9
  import { ActionArgs } from 'xstate';
10
10
  import { AnyActorContext } from 'xstate';
11
11
  import { AnyActorRef } from 'xstate';
12
- import type { AnyEventObject } from 'xstate';
12
+ import { AnyEventObject } from 'xstate';
13
13
  import { AnyState } from 'xstate';
14
14
  import { Assigner } from 'xstate';
15
15
  import { BindingObserver } from '@microsoft/fast-element';
@@ -276,6 +276,9 @@ export const isErrorEvent: <TData = any>(event: EventObject | ErrorEvent_2<TData
276
276
  // @public
277
277
  export const isErrorType: <TType extends ErrorConstructor>(type: TType) => (event: any) => boolean;
278
278
 
279
+ // @public
280
+ export const isEventWithParams: (event: AnyEventObject) => event is ParameterizedObject;
281
+
279
282
  // @public (undocumented)
280
283
  export const isGenesisServerError: (error: unknown) => error is GenesisServerError;
281
284
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-state-machine",
3
3
  "description": "Genesis Foundation State Machine",
4
- "version": "14.71.1-auth-mf.6",
4
+ "version": "14.71.1-auth-mf.9",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -34,13 +34,13 @@
34
34
  "test": "genx test"
35
35
  },
36
36
  "devDependencies": {
37
- "@genesislcap/foundation-testing": "14.71.1-auth-mf.6",
38
- "@genesislcap/genx": "14.71.1-auth-mf.6",
37
+ "@genesislcap/foundation-testing": "14.71.1-auth-mf.9",
38
+ "@genesislcap/genx": "14.71.1-auth-mf.9",
39
39
  "rimraf": "^3.0.2"
40
40
  },
41
41
  "dependencies": {
42
- "@genesislcap/foundation-comms": "14.71.1-auth-mf.6",
43
- "@genesislcap/foundation-utils": "14.71.1-auth-mf.6",
42
+ "@genesislcap/foundation-comms": "14.71.1-auth-mf.9",
43
+ "@genesislcap/foundation-utils": "14.71.1-auth-mf.9",
44
44
  "@microsoft/fast-element": "^1.7.0",
45
45
  "@microsoft/fast-foundation": "^2.33.2",
46
46
  "cockatiel": "^3.1.1",
@@ -56,5 +56,5 @@
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  },
59
- "gitHead": "cc206db0175582626b829d06ca03b5aaedc3c55d"
59
+ "gitHead": "2b76c57d885f0f1cecb509a1e9ee32f6bd527055"
60
60
  }