@genesislcap/foundation-comms 14.219.3-alpha-cbd5fc5.0 → 14.220.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,6 +20,10 @@ export interface GenesisResources {
20
20
  * @param resourceName - The name of the resource to get the type for.
21
21
  */
22
22
  getResourceTypeFor: (resourceName: string) => Promise<ResourceType>;
23
+ /**
24
+ * All available resources
25
+ */
26
+ getAllResources: () => Promise<ResourceItem[]>;
23
27
  /**
24
28
  * Destroy and garbage collect
25
29
  */
@@ -39,9 +43,11 @@ export declare class DefaultGenesisResources implements GenesisResources {
39
43
  isValidResource(resourceName: string): Promise<boolean>;
40
44
  /** {@inheritDoc GenesisResources.getResourceTypeFor} */
41
45
  getResourceTypeFor(resourceName: string): Promise<ResourceType>;
46
+ /** {@inheritDoc GenesisResources.allResources} */
47
+ getAllResources(): Promise<ResourceItem[]>;
42
48
  /** {@inheritDoc GenesisResources.destroy} */
43
49
  destroy(): void;
44
- protected getResources(): Promise<void>;
50
+ protected fetchResources(): Promise<void>;
45
51
  protected postLoadedMessage(): void;
46
52
  }
47
53
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"genesis.d.ts","sourceRoot":"","sources":["../../../../src/resources/genesis/genesis.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,sBAAsB,EAA8B,MAAM,UAAU,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5D;;;OAGG;IACH,kBAAkB,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IACpE;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;GAGG;AACH,qBAAa,uBAAwB,YAAW,gBAAgB;IAKnD,SAAS,CAAC,OAAO,EAAE,OAAO;IACX,SAAS,CAAC,MAAM,EAAE,sBAAsB;IALlE,SAAS,CAAC,SAAS,EAAE,YAAY,EAAE,CAAC;IACpC,SAAS,CAAC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;gBAGjC,OAAO,EAAE,OAAO,EACD,MAAM,EAAE,sBAAsB;IAGlE,qDAAqD;IAC/C,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAU7D,wDAAwD;IAClD,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAarE,6CAA6C;IAC7C,OAAO;cAKS,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAyB7C,SAAS,CAAC,iBAAiB;CAU5B;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,wEAE5B,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,IAAI,gBAAgB,CAEtD"}
1
+ {"version":3,"file":"genesis.d.ts","sourceRoot":"","sources":["../../../../src/resources/genesis/genesis.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,sBAAsB,EAA8B,MAAM,UAAU,CAAC;AAC9E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,eAAe,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5D;;;OAGG;IACH,kBAAkB,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;IACpE;;OAEG;IACH,eAAe,EAAE,MAAM,OAAO,CAAC,YAAY,EAAE,CAAC,CAAC;IAC/C;;OAEG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED;;;GAGG;AACH,qBAAa,uBAAwB,YAAW,gBAAgB;IAKnD,SAAS,CAAC,OAAO,EAAE,OAAO;IACX,SAAS,CAAC,MAAM,EAAE,sBAAsB;IALlE,SAAS,CAAC,SAAS,EAAE,YAAY,EAAE,CAAC;IACpC,SAAS,CAAC,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;gBAGjC,OAAO,EAAE,OAAO,EACD,MAAM,EAAE,sBAAsB;IAGlE,qDAAqD;IAC/C,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAU7D,wDAAwD;IAClD,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAarE,kDAAkD;IAC5C,eAAe,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAQhD,6CAA6C;IAC7C,OAAO;cAKS,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IA6B/C,SAAS,CAAC,iBAAiB;CAU5B;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,wEAE5B,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,mBAAmB,IAAI,gBAAgB,CAEtD"}
@@ -11,6 +11,7 @@ export declare class GenesisResourcesMock implements GenesisResources {
11
11
  isValidResource(resourceName: string): Promise<boolean>;
12
12
  /** {@inheritDoc GenesisResources.getResourceTypeFor} */
13
13
  getResourceTypeFor(resourceName: string): Promise<ResourceType>;
14
+ getAllResources(): Promise<ResourceItem[]>;
14
15
  destroy(): void;
15
16
  }
16
17
  //# sourceMappingURL=genesis.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"genesis.d.ts","sourceRoot":"","sources":["../../../../../../src/testing/mocks/resources/genesis/genesis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE5E;;GAEG;AACH,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,SAAS,EAAE,YAAY,EAAE,CAAM;IAC/B,2BAA2B,EAAE,OAAO,CAAQ;IAC5C,2BAA2B,EAAE,YAAY,CAA2B;IAEpE,qDAAqD;IAC/C,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI7D,wDAAwD;IAClD,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAIrE,OAAO;CACR"}
1
+ {"version":3,"file":"genesis.d.ts","sourceRoot":"","sources":["../../../../../../src/testing/mocks/resources/genesis/genesis.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE5E;;GAEG;AACH,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D,SAAS,EAAE,YAAY,EAAE,CAAM;IAC/B,2BAA2B,EAAE,OAAO,CAAQ;IAC5C,2BAA2B,EAAE,YAAY,CAA2B;IAEpE,qDAAqD;IAC/C,eAAe,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAI7D,wDAAwD;IAClD,kBAAkB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAI/D,eAAe,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;IAIhD,OAAO;CACR"}
@@ -19,7 +19,7 @@ let DefaultGenesisResources = class DefaultGenesisResources {
19
19
  if (!resourceName) {
20
20
  return false;
21
21
  }
22
- yield this.getResources();
22
+ yield this.fetchResources();
23
23
  const resourceItem = this.resources.find((item) => item.RESOURCE_NAME === resourceName);
24
24
  return !!resourceItem;
25
25
  });
@@ -27,7 +27,7 @@ let DefaultGenesisResources = class DefaultGenesisResources {
27
27
  /** {@inheritDoc GenesisResources.getResourceTypeFor} */
28
28
  getResourceTypeFor(resourceName) {
29
29
  return __awaiter(this, void 0, void 0, function* () {
30
- yield this.getResources();
30
+ yield this.fetchResources();
31
31
  const resourceItem = this.resources.find((item) => item.RESOURCE_NAME === resourceName);
32
32
  if (resourceItem) {
33
33
  return resourceItem.RESOURCE_TYPE;
@@ -39,14 +39,26 @@ let DefaultGenesisResources = class DefaultGenesisResources {
39
39
  }
40
40
  });
41
41
  }
42
+ /** {@inheritDoc GenesisResources.allResources} */
43
+ getAllResources() {
44
+ return __awaiter(this, void 0, void 0, function* () {
45
+ if (!this.resources) {
46
+ yield this.fetchResources();
47
+ }
48
+ return this.resources;
49
+ });
50
+ }
42
51
  /** {@inheritDoc GenesisResources.destroy} */
43
52
  destroy() {
44
53
  this.resources = undefined;
45
54
  this.resourcesPromise = undefined;
46
55
  }
47
- getResources() {
56
+ fetchResources() {
48
57
  var _a;
49
58
  return __awaiter(this, void 0, void 0, function* () {
59
+ if (this.resources) {
60
+ return Promise.resolve();
61
+ }
50
62
  if (!this.resourcesPromise) {
51
63
  /**
52
64
  * Await a resources request
@@ -21,5 +21,10 @@ export class GenesisResourcesMock {
21
21
  return this.nextResourceTypeForResponse;
22
22
  });
23
23
  }
24
+ getAllResources() {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ return this.resources;
27
+ });
28
+ }
24
29
  destroy() { }
25
30
  }
@@ -15381,12 +15381,12 @@
15381
15381
  },
15382
15382
  {
15383
15383
  "kind": "Method",
15384
- "canonicalReference": "@genesislcap/foundation-comms!DefaultGenesisResources#getResources:member(1)",
15384
+ "canonicalReference": "@genesislcap/foundation-comms!DefaultGenesisResources#fetchResources:member(1)",
15385
15385
  "docComment": "",
15386
15386
  "excerptTokens": [
15387
15387
  {
15388
15388
  "kind": "Content",
15389
- "text": "protected getResources(): "
15389
+ "text": "protected fetchResources(): "
15390
15390
  },
15391
15391
  {
15392
15392
  "kind": "Reference",
@@ -15413,7 +15413,52 @@
15413
15413
  "parameters": [],
15414
15414
  "isOptional": false,
15415
15415
  "isAbstract": false,
15416
- "name": "getResources"
15416
+ "name": "fetchResources"
15417
+ },
15418
+ {
15419
+ "kind": "Method",
15420
+ "canonicalReference": "@genesislcap/foundation-comms!DefaultGenesisResources#getAllResources:member(1)",
15421
+ "docComment": "/**\n * {@inheritDoc GenesisResources.allResources}\n */\n",
15422
+ "excerptTokens": [
15423
+ {
15424
+ "kind": "Content",
15425
+ "text": "getAllResources(): "
15426
+ },
15427
+ {
15428
+ "kind": "Reference",
15429
+ "text": "Promise",
15430
+ "canonicalReference": "!Promise:interface"
15431
+ },
15432
+ {
15433
+ "kind": "Content",
15434
+ "text": "<"
15435
+ },
15436
+ {
15437
+ "kind": "Reference",
15438
+ "text": "ResourceItem",
15439
+ "canonicalReference": "@genesislcap/foundation-comms!ResourceItem:type"
15440
+ },
15441
+ {
15442
+ "kind": "Content",
15443
+ "text": "[]>"
15444
+ },
15445
+ {
15446
+ "kind": "Content",
15447
+ "text": ";"
15448
+ }
15449
+ ],
15450
+ "isStatic": false,
15451
+ "returnTypeTokenRange": {
15452
+ "startIndex": 1,
15453
+ "endIndex": 5
15454
+ },
15455
+ "releaseTag": "Public",
15456
+ "isProtected": false,
15457
+ "overloadIndex": 1,
15458
+ "parameters": [],
15459
+ "isOptional": false,
15460
+ "isAbstract": false,
15461
+ "name": "getAllResources"
15417
15462
  },
15418
15463
  {
15419
15464
  "kind": "Method",
@@ -23016,6 +23061,51 @@
23016
23061
  "endIndex": 2
23017
23062
  }
23018
23063
  },
23064
+ {
23065
+ "kind": "PropertySignature",
23066
+ "canonicalReference": "@genesislcap/foundation-comms!GenesisResources#getAllResources:member",
23067
+ "docComment": "/**\n * All available resources\n */\n",
23068
+ "excerptTokens": [
23069
+ {
23070
+ "kind": "Content",
23071
+ "text": "getAllResources: "
23072
+ },
23073
+ {
23074
+ "kind": "Content",
23075
+ "text": "() => "
23076
+ },
23077
+ {
23078
+ "kind": "Reference",
23079
+ "text": "Promise",
23080
+ "canonicalReference": "!Promise:interface"
23081
+ },
23082
+ {
23083
+ "kind": "Content",
23084
+ "text": "<"
23085
+ },
23086
+ {
23087
+ "kind": "Reference",
23088
+ "text": "ResourceItem",
23089
+ "canonicalReference": "@genesislcap/foundation-comms!ResourceItem:type"
23090
+ },
23091
+ {
23092
+ "kind": "Content",
23093
+ "text": "[]>"
23094
+ },
23095
+ {
23096
+ "kind": "Content",
23097
+ "text": ";"
23098
+ }
23099
+ ],
23100
+ "isReadonly": false,
23101
+ "isOptional": false,
23102
+ "releaseTag": "Public",
23103
+ "name": "getAllResources",
23104
+ "propertyTypeTokenRange": {
23105
+ "startIndex": 1,
23106
+ "endIndex": 6
23107
+ }
23108
+ },
23019
23109
  {
23020
23110
  "kind": "PropertySignature",
23021
23111
  "canonicalReference": "@genesislcap/foundation-comms!GenesisResources#getResourceTypeFor:member",
@@ -23334,6 +23424,51 @@
23334
23424
  "isAbstract": false,
23335
23425
  "name": "destroy"
23336
23426
  },
23427
+ {
23428
+ "kind": "Method",
23429
+ "canonicalReference": "@genesislcap/foundation-comms!GenesisResourcesMock#getAllResources:member(1)",
23430
+ "docComment": "",
23431
+ "excerptTokens": [
23432
+ {
23433
+ "kind": "Content",
23434
+ "text": "getAllResources(): "
23435
+ },
23436
+ {
23437
+ "kind": "Reference",
23438
+ "text": "Promise",
23439
+ "canonicalReference": "!Promise:interface"
23440
+ },
23441
+ {
23442
+ "kind": "Content",
23443
+ "text": "<"
23444
+ },
23445
+ {
23446
+ "kind": "Reference",
23447
+ "text": "ResourceItem",
23448
+ "canonicalReference": "@genesislcap/foundation-comms!ResourceItem:type"
23449
+ },
23450
+ {
23451
+ "kind": "Content",
23452
+ "text": "[]>"
23453
+ },
23454
+ {
23455
+ "kind": "Content",
23456
+ "text": ";"
23457
+ }
23458
+ ],
23459
+ "isStatic": false,
23460
+ "returnTypeTokenRange": {
23461
+ "startIndex": 1,
23462
+ "endIndex": 5
23463
+ },
23464
+ "releaseTag": "Public",
23465
+ "isProtected": false,
23466
+ "overloadIndex": 1,
23467
+ "parameters": [],
23468
+ "isOptional": false,
23469
+ "isAbstract": false,
23470
+ "name": "getAllResources"
23471
+ },
23337
23472
  {
23338
23473
  "kind": "Method",
23339
23474
  "canonicalReference": "@genesislcap/foundation-comms!GenesisResourcesMock#getResourceTypeFor:member(1)",
@@ -1897,9 +1897,11 @@ export declare class DefaultGenesisResources implements GenesisResources {
1897
1897
  isValidResource(resourceName: string): Promise<boolean>;
1898
1898
  /** {@inheritDoc GenesisResources.getResourceTypeFor} */
1899
1899
  getResourceTypeFor(resourceName: string): Promise<ResourceType>;
1900
+ /** {@inheritDoc GenesisResources.allResources} */
1901
+ getAllResources(): Promise<ResourceItem[]>;
1900
1902
  /** {@inheritDoc GenesisResources.destroy} */
1901
1903
  destroy(): void;
1902
- protected getResources(): Promise<void>;
1904
+ protected fetchResources(): Promise<void>;
1903
1905
  protected postLoadedMessage(): void;
1904
1906
  }
1905
1907
 
@@ -2659,6 +2661,10 @@ export declare interface GenesisResources {
2659
2661
  * @param resourceName - The name of the resource to get the type for.
2660
2662
  */
2661
2663
  getResourceTypeFor: (resourceName: string) => Promise<ResourceType>;
2664
+ /**
2665
+ * All available resources
2666
+ */
2667
+ getAllResources: () => Promise<ResourceItem[]>;
2662
2668
  /**
2663
2669
  * Destroy and garbage collect
2664
2670
  */
@@ -2750,6 +2756,7 @@ export declare class GenesisResourcesMock implements GenesisResources {
2750
2756
  isValidResource(resourceName: string): Promise<boolean>;
2751
2757
  /** {@inheritDoc GenesisResources.getResourceTypeFor} */
2752
2758
  getResourceTypeFor(resourceName: string): Promise<ResourceType>;
2759
+ getAllResources(): Promise<ResourceItem[]>;
2753
2760
  destroy(): void;
2754
2761
  }
2755
2762
 
@@ -1,13 +1,13 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [DefaultGenesisResources](./foundation-comms.defaultgenesisresources.md) &gt; [getResources](./foundation-comms.defaultgenesisresources.getresources.md)
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [DefaultGenesisResources](./foundation-comms.defaultgenesisresources.md) &gt; [fetchResources](./foundation-comms.defaultgenesisresources.fetchresources.md)
4
4
 
5
- ## DefaultGenesisResources.getResources() method
5
+ ## DefaultGenesisResources.fetchResources() method
6
6
 
7
7
  **Signature:**
8
8
 
9
9
  ```typescript
10
- protected getResources(): Promise<void>;
10
+ protected fetchResources(): Promise<void>;
11
11
  ```
12
12
  **Returns:**
13
13
 
@@ -0,0 +1,16 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [DefaultGenesisResources](./foundation-comms.defaultgenesisresources.md) &gt; [getAllResources](./foundation-comms.defaultgenesisresources.getallresources.md)
4
+
5
+ ## DefaultGenesisResources.getAllResources() method
6
+
7
+
8
+ **Signature:**
9
+
10
+ ```typescript
11
+ getAllResources(): Promise<ResourceItem[]>;
12
+ ```
13
+ **Returns:**
14
+
15
+ Promise&lt;[ResourceItem](./foundation-comms.resourceitem.md)<!-- -->\[\]&gt;
16
+
@@ -33,7 +33,8 @@ export declare class DefaultGenesisResources implements GenesisResources
33
33
  | Method | Modifiers | Description |
34
34
  | --- | --- | --- |
35
35
  | [destroy()](./foundation-comms.defaultgenesisresources.destroy.md) | | Destroy and garbage collect |
36
- | [getResources()](./foundation-comms.defaultgenesisresources.getresources.md) | <code>protected</code> | |
36
+ | [fetchResources()](./foundation-comms.defaultgenesisresources.fetchresources.md) | <code>protected</code> | |
37
+ | [getAllResources()](./foundation-comms.defaultgenesisresources.getallresources.md) | | |
37
38
  | [getResourceTypeFor(resourceName)](./foundation-comms.defaultgenesisresources.getresourcetypefor.md) | | Gets the type of resource |
38
39
  | [isValidResource(resourceName)](./foundation-comms.defaultgenesisresources.isvalidresource.md) | | Checks if the resource exists |
39
40
  | [postLoadedMessage()](./foundation-comms.defaultgenesisresources.postloadedmessage.md) | <code>protected</code> | |
@@ -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-comms](./foundation-comms.md) &gt; [GenesisResources](./foundation-comms.genesisresources.md) &gt; [getAllResources](./foundation-comms.genesisresources.getallresources.md)
4
+
5
+ ## GenesisResources.getAllResources property
6
+
7
+ All available resources
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ getAllResources: () => Promise<ResourceItem[]>;
13
+ ```
@@ -21,6 +21,7 @@ A lazy shared Genesis Resources lookup system. N number of callers can request i
21
21
  | Property | Modifiers | Type | Description |
22
22
  | --- | --- | --- | --- |
23
23
  | [destroy](./foundation-comms.genesisresources.destroy.md) | | () =&gt; void | Destroy and garbage collect |
24
+ | [getAllResources](./foundation-comms.genesisresources.getallresources.md) | | () =&gt; Promise&lt;[ResourceItem](./foundation-comms.resourceitem.md)<!-- -->\[\]&gt; | All available resources |
24
25
  | [getResourceTypeFor](./foundation-comms.genesisresources.getresourcetypefor.md) | | (resourceName: string) =&gt; Promise&lt;[ResourceType](./foundation-comms.resourcetype.md)<!-- -->&gt; | Gets the type of resource |
25
26
  | [isValidResource](./foundation-comms.genesisresources.isvalidresource.md) | | (resourceName: string) =&gt; Promise&lt;boolean&gt; | Checks if the resource exists |
26
27
 
@@ -0,0 +1,15 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-comms](./foundation-comms.md) &gt; [GenesisResourcesMock](./foundation-comms.genesisresourcesmock.md) &gt; [getAllResources](./foundation-comms.genesisresourcesmock.getallresources.md)
4
+
5
+ ## GenesisResourcesMock.getAllResources() method
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ getAllResources(): Promise<ResourceItem[]>;
11
+ ```
12
+ **Returns:**
13
+
14
+ Promise&lt;[ResourceItem](./foundation-comms.resourceitem.md)<!-- -->\[\]&gt;
15
+
@@ -25,6 +25,7 @@ export declare class GenesisResourcesMock implements GenesisResources
25
25
  | Method | Modifiers | Description |
26
26
  | --- | --- | --- |
27
27
  | [destroy()](./foundation-comms.genesisresourcesmock.destroy.md) | | |
28
+ | [getAllResources()](./foundation-comms.genesisresourcesmock.getallresources.md) | | |
28
29
  | [getResourceTypeFor(resourceName)](./foundation-comms.genesisresourcesmock.getresourcetypefor.md) | | Gets the type of resource |
29
30
  | [isValidResource(resourceName)](./foundation-comms.genesisresourcesmock.isvalidresource.md) | | Checks if the resource exists |
30
31
 
@@ -1233,7 +1233,11 @@ export class DefaultGenesisResources implements GenesisResources {
1233
1233
  // (undocumented)
1234
1234
  destroy(): void;
1235
1235
  // (undocumented)
1236
- protected getResources(): Promise<void>;
1236
+ protected fetchResources(): Promise<void>;
1237
+ // Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The reference is ambiguous because "GenesisResources" has more than one declaration; you need to add a TSDoc member reference selector
1238
+ //
1239
+ // (undocumented)
1240
+ getAllResources(): Promise<ResourceItem[]>;
1237
1241
  // Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The reference is ambiguous because "GenesisResources" has more than one declaration; you need to add a TSDoc member reference selector
1238
1242
  //
1239
1243
  // (undocumented)
@@ -1723,6 +1727,7 @@ export type GenesisConnectEvents = 'stream' | 'commit';
1723
1727
  // @public
1724
1728
  export interface GenesisResources {
1725
1729
  destroy: () => void;
1730
+ getAllResources: () => Promise<ResourceItem[]>;
1726
1731
  getResourceTypeFor: (resourceName: string) => Promise<ResourceType>;
1727
1732
  isValidResource: (resourceName: string) => Promise<boolean>;
1728
1733
  }
@@ -1763,6 +1768,8 @@ export type GenesisResourcesEvents = {
1763
1768
  export class GenesisResourcesMock implements GenesisResources {
1764
1769
  // (undocumented)
1765
1770
  destroy(): void;
1771
+ // (undocumented)
1772
+ getAllResources(): Promise<ResourceItem[]>;
1766
1773
  // Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The reference is ambiguous because "GenesisResources" has more than one declaration; you need to add a TSDoc member reference selector
1767
1774
  //
1768
1775
  // (undocumented)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-comms",
3
3
  "description": "Genesis Foundation UI Comms",
4
- "version": "14.219.3-alpha-cbd5fc5.0",
4
+ "version": "14.220.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -75,23 +75,23 @@
75
75
  }
76
76
  },
77
77
  "devDependencies": {
78
- "@genesislcap/foundation-testing": "14.219.3-alpha-cbd5fc5.0",
79
- "@genesislcap/genx": "14.219.3-alpha-cbd5fc5.0",
80
- "@genesislcap/rollup-builder": "14.219.3-alpha-cbd5fc5.0",
81
- "@genesislcap/ts-builder": "14.219.3-alpha-cbd5fc5.0",
82
- "@genesislcap/uvu-playwright-builder": "14.219.3-alpha-cbd5fc5.0",
83
- "@genesislcap/vite-builder": "14.219.3-alpha-cbd5fc5.0",
84
- "@genesislcap/webpack-builder": "14.219.3-alpha-cbd5fc5.0",
78
+ "@genesislcap/foundation-testing": "14.220.0",
79
+ "@genesislcap/genx": "14.220.0",
80
+ "@genesislcap/rollup-builder": "14.220.0",
81
+ "@genesislcap/ts-builder": "14.220.0",
82
+ "@genesislcap/uvu-playwright-builder": "14.220.0",
83
+ "@genesislcap/vite-builder": "14.220.0",
84
+ "@genesislcap/webpack-builder": "14.220.0",
85
85
  "@types/js-cookie": "^3.0.2",
86
86
  "@types/json-schema": "^7.0.11",
87
87
  "@types/webappsec-credential-management": "^0.6.2",
88
88
  "rimraf": "^5.0.0"
89
89
  },
90
90
  "dependencies": {
91
- "@genesislcap/foundation-broadcast-channel": "14.219.3-alpha-cbd5fc5.0",
92
- "@genesislcap/foundation-logger": "14.219.3-alpha-cbd5fc5.0",
93
- "@genesislcap/foundation-user": "14.219.3-alpha-cbd5fc5.0",
94
- "@genesislcap/foundation-utils": "14.219.3-alpha-cbd5fc5.0",
91
+ "@genesislcap/foundation-broadcast-channel": "14.220.0",
92
+ "@genesislcap/foundation-logger": "14.220.0",
93
+ "@genesislcap/foundation-user": "14.220.0",
94
+ "@genesislcap/foundation-utils": "14.220.0",
95
95
  "@microsoft/fast-element": "^1.12.0",
96
96
  "@microsoft/fast-foundation": "2.49.6",
97
97
  "analytics": "^0.8.0",
@@ -111,5 +111,5 @@
111
111
  "publishConfig": {
112
112
  "access": "public"
113
113
  },
114
- "gitHead": "1882a14a52bd115b82d360b63510b3102fac2aa8"
114
+ "gitHead": "18dcf3cbca18cf957d0bb082cb87c8b677ffe7b6"
115
115
  }