@genesislcap/foundation-comms 14.147.1-alpha-e3b7ca7.0 → 14.148.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/dts/connect/connect.d.ts +8 -0
- package/dist/dts/connect/connect.d.ts.map +1 -1
- package/dist/dts/connect/http.connect.d.ts +1 -0
- package/dist/dts/connect/http.connect.d.ts.map +1 -1
- package/dist/dts/connect/message.d.ts +9 -0
- package/dist/dts/connect/message.d.ts.map +1 -1
- package/dist/dts/testing/mocks/connect/connect.d.ts +1 -0
- package/dist/dts/testing/mocks/connect/connect.d.ts.map +1 -1
- package/dist/esm/connect/connect.js +5 -0
- package/dist/esm/connect/http.connect.js +5 -0
- package/dist/esm/connect/message.js +3 -0
- package/dist/esm/testing/mocks/connect/connect.js +4 -0
- package/dist/foundation-comms.api.json +256 -1
- package/dist/foundation-comms.d.ts +19 -0
- package/docs/api/foundation-comms.connect.getavailableresources.md +26 -0
- package/docs/api/foundation-comms.connect.md +1 -0
- package/docs/api/foundation-comms.defaultconnect.getavailableresources.md +22 -0
- package/docs/api/foundation-comms.defaultconnect.md +1 -0
- package/docs/api/foundation-comms.defaulthttpconnect.getavailableresources.md +22 -0
- package/docs/api/foundation-comms.defaulthttpconnect.md +1 -0
- package/docs/api/foundation-comms.message.md +1 -0
- package/docs/api/foundation-comms.messagebuilder.createresourcesmessage.md +26 -0
- package/docs/api/foundation-comms.messagebuilder.md +1 -0
- package/docs/api-report.md +9 -0
- package/package.json +11 -11
@@ -125,6 +125,13 @@ export interface Connect {
|
|
125
125
|
* @returns A promise that resolves to a Message containing the server's response.
|
126
126
|
*/
|
127
127
|
request(resourceName: string, params?: RequestParams): Promise<Message>;
|
128
|
+
/**
|
129
|
+
* Sends a request to the server to get available resources.
|
130
|
+
* @public
|
131
|
+
* @param params - An object containing optional parameters to include in the request.
|
132
|
+
* @returns A promise that resolves to a Message containing the server's response with available resources.
|
133
|
+
*/
|
134
|
+
getAvailableResources(params?: RequestParams): Promise<Message>;
|
128
135
|
/**
|
129
136
|
* Sends a request to the server to retrieve data or perform an action.
|
130
137
|
* @public
|
@@ -160,6 +167,7 @@ export declare class DefaultConnect implements Connect {
|
|
160
167
|
getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
|
161
168
|
getJSONSchema(resourceName: string, useCache?: boolean): Promise<SchemaResponse>;
|
162
169
|
request(resourceName: string, params?: RequestParams): Promise<Message>;
|
170
|
+
getAvailableResources(params?: any): Promise<Message>;
|
163
171
|
commitEvent(eventName: string, params?: CommitParams): Promise<Message>;
|
164
172
|
}
|
165
173
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/connect/connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AACnD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAoB,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACnG,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAalC,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACtB;;;OAGG;IACH,SAAS,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;IAE9B;;;OAGG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAE5C;;;;OAIG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IAEvD;;;;;;;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,CAAC;IA+B9E,aAAa,CACxB,YAAY,EAAE,MAAM,EACpB,QAAQ,GAAE,OAAc,GACvB,OAAO,CAAC,cAAc,CAAC;IAiCnB,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC;IASvE,qBAAqB,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAM/C,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;CAKrF;AAID;;;GAGG;AACH,eAAO,MAAM,SAAS,+DAAkE,CAAC;AAEzF;;;GAGG;AACH,eAAO,MAAM,OAAO,+DAEnB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAEpC"}
|
@@ -58,6 +58,7 @@ export declare class DefaultHttpConnect implements Connect {
|
|
58
58
|
getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
|
59
59
|
getJSONSchema(resourceName: string): Promise<SchemaResponse>;
|
60
60
|
request(resourceName: string, params?: RequestParams): Promise<Message>;
|
61
|
+
getAvailableResources(params?: any): Promise<Message>;
|
61
62
|
commitEvent(eventName: string, params?: CommitParams): Promise<Message>;
|
62
63
|
private maybeTurbo;
|
63
64
|
private updateIntervals;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"http.connect.d.ts","sourceRoot":"","sources":["../../../src/connect/http.connect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAG5E,OAAO,EACL,eAAe,EAKf,UAAU,EAGX,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,YA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EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAapE,MAAM,CACX,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,GAAG,GACX,gBAAgB,CAAC,OAAO,CAAC;YAkCd,UAAU;IAMX,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAShD,UAAU,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAWrD,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,GAAE,OAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAU9E,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAYlE,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC;IASvE,qBAAqB,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAS/C,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;IAYpF,OAAO,CAAC,UAAU;IAkDlB,OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,8BAA8B;IAmBtC,OAAO,CAAC,MAAM,CAAC,OAAO;IAItB,OAAO,CAAC,MAAM,CAAC,MAAM;CAUtB;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,+DAAsE,CAAC"}
|
@@ -195,6 +195,7 @@ export type Message<T = void | any> = {
|
|
195
195
|
MESSAGE_TYPE?: MessageType | EventMessageType | string;
|
196
196
|
PERMISSION?: string[];
|
197
197
|
PROFILE?: string[];
|
198
|
+
RESOURCES?: any[];
|
198
199
|
REFRESH_AUTH_TOKEN?: string;
|
199
200
|
ROW?: any[];
|
200
201
|
ROWS_COUNT?: number;
|
@@ -294,6 +295,14 @@ export interface MessageBuilder {
|
|
294
295
|
* @returns The request message.
|
295
296
|
*/
|
296
297
|
createRequestMessage<T = any>(resourceName: string, params?: any): Message<T>;
|
298
|
+
/**
|
299
|
+
* Creates a message for getting list of resources.
|
300
|
+
*
|
301
|
+
* @public
|
302
|
+
* @param params - The additional parameters.
|
303
|
+
* @returns The request message.
|
304
|
+
*/
|
305
|
+
createResourcesMessage<T = any>(params?: any): Message<T>;
|
297
306
|
/**
|
298
307
|
* Creates a metadata fetch message.
|
299
308
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/connect/message.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAY,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGrE;;;GAGG;AACH,oBAAY,WAAW;IACrB,SAAS,cAAc;IACvB,UAAU,eAAe;IAEzB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAE3B,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IAEjC,SAAS,cAAc;IAEvB,OAAO,YAAY;IACnB,QAAQ,aAAa;IAErB,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAE3B,YAAY,iBAAiB;CAC9B;AAED;;;GAGG;AACH,oBAAY,gBAAgB;IAC1B,gBAAgB,qBAAqB;IACrC,oBAAoB,yBAAyB;IAC7C,qBAAqB,0BAA0B;IAE/C,YAAY,iBAAiB;IAC7B,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAE3B,YAAY,iBAAiB;IAC7B,mBAAmB,wBAAwB;IAC3C,iBAAiB,sBAAsB;IAEvC,0BAA0B,+BAA+B;IACzD,iCAAiC,sCAAsC;IACvE,2BAA2B,gCAAgC;CAC5D;AAED;;;GAGG;AACH,oBAAY,WAAW;IACrB,iBAAiB,sBAAsB;IACvC,oBAAoB,yBAAyB;CAC9C;AAED;;GAEG;AACH,yBAAiB,cAAc,CAAC;IAC9B;;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CAAC;IAEvC;;;;;;;OAOG;IACH,mBAAmB,CAAC,CAAC,GAAG,GAAG,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAEnF;;;;;;OAMG;IACH,yBAAyB,IAAI,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;IAElE;;;;;;;;;OASG;IACH,2BAA2B,CACzB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IAE1C;;;;;;;;;OASG;IACH,2BAA2B,CACzB,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IAE1C;;;;;;;;;OASG;IACH,gCAAgC,CAC9B,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,SAAS,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,cAAc,CAAC,mBAAmB,CAAC,CAAC;IAE/C;;;;;;;OAOG;IACH,4BAA4B,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC;CACnF;AAsND;;;GAGG;AACH,eAAO,MAAM,cAAc,sEAE1B,CAAC"}
|
@@ -21,6 +21,7 @@ export declare class ConnectMock implements Connect {
|
|
21
21
|
disconnect(): void;
|
22
22
|
getMetadata(resourceName: string): Promise<Metadata>;
|
23
23
|
request(resourceName: string, params?: RequestParams): Promise<Message>;
|
24
|
+
getAvailableResources(params?: RequestParams): Promise<Message>;
|
24
25
|
snapshot(resourceName: string, params?: any): Promise<Message>;
|
25
26
|
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
26
27
|
getMoreRows(sourceRef: string): Promise<Message<any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C;IACvB,cAAc,EAAE,GAAG,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,aAAa,CAAC;IAE7B,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;IAIvE,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIvC,UAAU,IAAI,IAAI;IAElB,WAAW,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIpD,OAAO,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC;IAKvE,qBAAqB,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,OAAO,CAAC;IAK/D,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IAI9D,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,SAAS,EAAE,QAAQ,EACnB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,GAAG,GACX,gBAAgB,CAAC,OAAO,CAAC;IAI5B,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAIrD,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAIpD,aAAa,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC;CAGlD"}
|
@@ -159,6 +159,11 @@ let DefaultConnect = class DefaultConnect {
|
|
159
159
|
logger.debug(`${requestMessage.MESSAGE_TYPE} (request server) message created -> `, requestMessage);
|
160
160
|
return this.socket.send(requestMessage);
|
161
161
|
}
|
162
|
+
getAvailableResources(params) {
|
163
|
+
const requestMessage = this.messageBuilder.createResourcesMessage(params);
|
164
|
+
logger.debug(`${requestMessage.MESSAGE_TYPE} (resources) message created -> `, requestMessage);
|
165
|
+
return this.socket.send(requestMessage);
|
166
|
+
}
|
162
167
|
commitEvent(eventName, params) {
|
163
168
|
return __awaiter(this, void 0, void 0, function* () {
|
164
169
|
const commitMessage = this.messageBuilder.createCommitMessage(eventName, params);
|
@@ -194,6 +194,11 @@ let DefaultHttpConnect = class DefaultHttpConnect {
|
|
194
194
|
logger.debug(`HTTP MODE! - ${requestMessage.MESSAGE_TYPE} (request server) message created -> `, requestMessage);
|
195
195
|
return this.send(requestMessage);
|
196
196
|
}
|
197
|
+
getAvailableResources(params) {
|
198
|
+
const requestMessage = this.messageBuilder.createResourcesMessage(params);
|
199
|
+
logger.debug(`HTTP MODE! - ${requestMessage.MESSAGE_TYPE} (getResources) message created -> `, requestMessage);
|
200
|
+
return this.send(requestMessage);
|
201
|
+
}
|
197
202
|
commitEvent(eventName, params) {
|
198
203
|
return __awaiter(this, void 0, void 0, function* () {
|
199
204
|
const commitMessage = this.messageBuilder.createCommitMessage(eventName, params);
|
@@ -135,6 +135,9 @@ let MessageBuilderService = class MessageBuilderService {
|
|
135
135
|
createRequestMessage(resourceName, params) {
|
136
136
|
return Object.assign({ SOURCE_REF: this.uuid.createId(), SESSION_AUTH_TOKEN: this.session.getSessionStorageItem('authToken'), MESSAGE_TYPE: resourceName.startsWith('REQ_') ? resourceName : `REQ_${resourceName}` }, params);
|
137
137
|
}
|
138
|
+
createResourcesMessage(params) {
|
139
|
+
return Object.assign({ SOURCE_REF: this.uuid.createId(), SESSION_AUTH_TOKEN: this.session.getSessionStorageItem('authToken'), MESSAGE_TYPE: EventMessageType.RESOURCES_REQUEST }, params);
|
140
|
+
}
|
138
141
|
createMetaRequestMessage(resourceName, messageType = EventMessageType.META_REQUEST) {
|
139
142
|
return {
|
140
143
|
SOURCE_REF: this.uuid.createId(),
|
@@ -37,6 +37,10 @@ export class ConnectMock {
|
|
37
37
|
this.requestParams = params;
|
38
38
|
return Promise.resolve(this.nextMessage);
|
39
39
|
}
|
40
|
+
getAvailableResources(params) {
|
41
|
+
this.requestParams = params;
|
42
|
+
return Promise.resolve(this.nextMessage);
|
43
|
+
}
|
40
44
|
snapshot(resourceName, params) {
|
41
45
|
return Promise.resolve(this.nextMessage);
|
42
46
|
}
|
@@ -1253,6 +1253,66 @@
|
|
1253
1253
|
"parameters": [],
|
1254
1254
|
"name": "disconnect"
|
1255
1255
|
},
|
1256
|
+
{
|
1257
|
+
"kind": "MethodSignature",
|
1258
|
+
"canonicalReference": "@genesislcap/foundation-comms!Connect#getAvailableResources:member(1)",
|
1259
|
+
"docComment": "/**\n * Sends a request to the server to get available resources.\n *\n * @param params - An object containing optional parameters to include in the request.\n *\n * @returns A promise that resolves to a Message containing the server's response with available resources.\n *\n * @public\n */\n",
|
1260
|
+
"excerptTokens": [
|
1261
|
+
{
|
1262
|
+
"kind": "Content",
|
1263
|
+
"text": "getAvailableResources(params?: "
|
1264
|
+
},
|
1265
|
+
{
|
1266
|
+
"kind": "Reference",
|
1267
|
+
"text": "RequestParams",
|
1268
|
+
"canonicalReference": "@genesislcap/foundation-comms!RequestParams:type"
|
1269
|
+
},
|
1270
|
+
{
|
1271
|
+
"kind": "Content",
|
1272
|
+
"text": "): "
|
1273
|
+
},
|
1274
|
+
{
|
1275
|
+
"kind": "Reference",
|
1276
|
+
"text": "Promise",
|
1277
|
+
"canonicalReference": "!Promise:interface"
|
1278
|
+
},
|
1279
|
+
{
|
1280
|
+
"kind": "Content",
|
1281
|
+
"text": "<"
|
1282
|
+
},
|
1283
|
+
{
|
1284
|
+
"kind": "Reference",
|
1285
|
+
"text": "Message",
|
1286
|
+
"canonicalReference": "@genesislcap/foundation-comms!Message:type"
|
1287
|
+
},
|
1288
|
+
{
|
1289
|
+
"kind": "Content",
|
1290
|
+
"text": ">"
|
1291
|
+
},
|
1292
|
+
{
|
1293
|
+
"kind": "Content",
|
1294
|
+
"text": ";"
|
1295
|
+
}
|
1296
|
+
],
|
1297
|
+
"isOptional": false,
|
1298
|
+
"returnTypeTokenRange": {
|
1299
|
+
"startIndex": 3,
|
1300
|
+
"endIndex": 7
|
1301
|
+
},
|
1302
|
+
"releaseTag": "Public",
|
1303
|
+
"overloadIndex": 1,
|
1304
|
+
"parameters": [
|
1305
|
+
{
|
1306
|
+
"parameterName": "params",
|
1307
|
+
"parameterTypeTokenRange": {
|
1308
|
+
"startIndex": 1,
|
1309
|
+
"endIndex": 2
|
1310
|
+
},
|
1311
|
+
"isOptional": true
|
1312
|
+
}
|
1313
|
+
],
|
1314
|
+
"name": "getAvailableResources"
|
1315
|
+
},
|
1256
1316
|
{
|
1257
1317
|
"kind": "MethodSignature",
|
1258
1318
|
"canonicalReference": "@genesislcap/foundation-comms!Connect#getJSONSchema:member(1)",
|
@@ -6311,6 +6371,68 @@
|
|
6311
6371
|
"isAbstract": false,
|
6312
6372
|
"name": "disconnect"
|
6313
6373
|
},
|
6374
|
+
{
|
6375
|
+
"kind": "Method",
|
6376
|
+
"canonicalReference": "@genesislcap/foundation-comms!DefaultConnect#getAvailableResources:member(1)",
|
6377
|
+
"docComment": "",
|
6378
|
+
"excerptTokens": [
|
6379
|
+
{
|
6380
|
+
"kind": "Content",
|
6381
|
+
"text": "getAvailableResources(params?: "
|
6382
|
+
},
|
6383
|
+
{
|
6384
|
+
"kind": "Content",
|
6385
|
+
"text": "any"
|
6386
|
+
},
|
6387
|
+
{
|
6388
|
+
"kind": "Content",
|
6389
|
+
"text": "): "
|
6390
|
+
},
|
6391
|
+
{
|
6392
|
+
"kind": "Reference",
|
6393
|
+
"text": "Promise",
|
6394
|
+
"canonicalReference": "!Promise:interface"
|
6395
|
+
},
|
6396
|
+
{
|
6397
|
+
"kind": "Content",
|
6398
|
+
"text": "<"
|
6399
|
+
},
|
6400
|
+
{
|
6401
|
+
"kind": "Reference",
|
6402
|
+
"text": "Message",
|
6403
|
+
"canonicalReference": "@genesislcap/foundation-comms!Message:type"
|
6404
|
+
},
|
6405
|
+
{
|
6406
|
+
"kind": "Content",
|
6407
|
+
"text": ">"
|
6408
|
+
},
|
6409
|
+
{
|
6410
|
+
"kind": "Content",
|
6411
|
+
"text": ";"
|
6412
|
+
}
|
6413
|
+
],
|
6414
|
+
"isStatic": false,
|
6415
|
+
"returnTypeTokenRange": {
|
6416
|
+
"startIndex": 3,
|
6417
|
+
"endIndex": 7
|
6418
|
+
},
|
6419
|
+
"releaseTag": "Public",
|
6420
|
+
"isProtected": false,
|
6421
|
+
"overloadIndex": 1,
|
6422
|
+
"parameters": [
|
6423
|
+
{
|
6424
|
+
"parameterName": "params",
|
6425
|
+
"parameterTypeTokenRange": {
|
6426
|
+
"startIndex": 1,
|
6427
|
+
"endIndex": 2
|
6428
|
+
},
|
6429
|
+
"isOptional": true
|
6430
|
+
}
|
6431
|
+
],
|
6432
|
+
"isOptional": false,
|
6433
|
+
"isAbstract": false,
|
6434
|
+
"name": "getAvailableResources"
|
6435
|
+
},
|
6314
6436
|
{
|
6315
6437
|
"kind": "Method",
|
6316
6438
|
"canonicalReference": "@genesislcap/foundation-comms!DefaultConnect#getJSONSchema:member(1)",
|
@@ -10058,6 +10180,68 @@
|
|
10058
10180
|
"isAbstract": false,
|
10059
10181
|
"name": "disconnect"
|
10060
10182
|
},
|
10183
|
+
{
|
10184
|
+
"kind": "Method",
|
10185
|
+
"canonicalReference": "@genesislcap/foundation-comms!DefaultHttpConnect#getAvailableResources:member(1)",
|
10186
|
+
"docComment": "",
|
10187
|
+
"excerptTokens": [
|
10188
|
+
{
|
10189
|
+
"kind": "Content",
|
10190
|
+
"text": "getAvailableResources(params?: "
|
10191
|
+
},
|
10192
|
+
{
|
10193
|
+
"kind": "Content",
|
10194
|
+
"text": "any"
|
10195
|
+
},
|
10196
|
+
{
|
10197
|
+
"kind": "Content",
|
10198
|
+
"text": "): "
|
10199
|
+
},
|
10200
|
+
{
|
10201
|
+
"kind": "Reference",
|
10202
|
+
"text": "Promise",
|
10203
|
+
"canonicalReference": "!Promise:interface"
|
10204
|
+
},
|
10205
|
+
{
|
10206
|
+
"kind": "Content",
|
10207
|
+
"text": "<"
|
10208
|
+
},
|
10209
|
+
{
|
10210
|
+
"kind": "Reference",
|
10211
|
+
"text": "Message",
|
10212
|
+
"canonicalReference": "@genesislcap/foundation-comms!Message:type"
|
10213
|
+
},
|
10214
|
+
{
|
10215
|
+
"kind": "Content",
|
10216
|
+
"text": ">"
|
10217
|
+
},
|
10218
|
+
{
|
10219
|
+
"kind": "Content",
|
10220
|
+
"text": ";"
|
10221
|
+
}
|
10222
|
+
],
|
10223
|
+
"isStatic": false,
|
10224
|
+
"returnTypeTokenRange": {
|
10225
|
+
"startIndex": 3,
|
10226
|
+
"endIndex": 7
|
10227
|
+
},
|
10228
|
+
"releaseTag": "Public",
|
10229
|
+
"isProtected": false,
|
10230
|
+
"overloadIndex": 1,
|
10231
|
+
"parameters": [
|
10232
|
+
{
|
10233
|
+
"parameterName": "params",
|
10234
|
+
"parameterTypeTokenRange": {
|
10235
|
+
"startIndex": 1,
|
10236
|
+
"endIndex": 2
|
10237
|
+
},
|
10238
|
+
"isOptional": true
|
10239
|
+
}
|
10240
|
+
],
|
10241
|
+
"isOptional": false,
|
10242
|
+
"isAbstract": false,
|
10243
|
+
"name": "getAvailableResources"
|
10244
|
+
},
|
10061
10245
|
{
|
10062
10246
|
"kind": "Method",
|
10063
10247
|
"canonicalReference": "@genesislcap/foundation-comms!DefaultHttpConnect#getJSONSchema:member(1)",
|
@@ -14366,7 +14550,7 @@
|
|
14366
14550
|
},
|
14367
14551
|
{
|
14368
14552
|
"kind": "Content",
|
14369
|
-
"text": " | string;\n PERMISSION?: string[];\n PROFILE?: string[];\n REFRESH_AUTH_TOKEN?: string;\n ROW?: any[];\n ROWS_COUNT?: number;\n SEQUENCE_ID?: number;\n SERVICE_NAME?: string;\n SESSION_AUTH_TOKEN?: string;\n SESSION_ID?: string;\n SOURCE_REF?: string;\n USER_NAME?: string;\n WARNING?: any[];\n}"
|
14553
|
+
"text": " | string;\n PERMISSION?: string[];\n PROFILE?: string[];\n RESOURCES?: any[];\n REFRESH_AUTH_TOKEN?: string;\n ROW?: any[];\n ROWS_COUNT?: number;\n SEQUENCE_ID?: number;\n SERVICE_NAME?: string;\n SESSION_AUTH_TOKEN?: string;\n SESSION_ID?: string;\n SOURCE_REF?: string;\n USER_NAME?: string;\n WARNING?: any[];\n}"
|
14370
14554
|
},
|
14371
14555
|
{
|
14372
14556
|
"kind": "Content",
|
@@ -15352,6 +15536,77 @@
|
|
15352
15536
|
}
|
15353
15537
|
],
|
15354
15538
|
"name": "createRequestMessage"
|
15539
|
+
},
|
15540
|
+
{
|
15541
|
+
"kind": "MethodSignature",
|
15542
|
+
"canonicalReference": "@genesislcap/foundation-comms!MessageBuilder#createResourcesMessage:member(1)",
|
15543
|
+
"docComment": "/**\n * Creates a message for getting list of resources.\n *\n * @param params - The additional parameters.\n *\n * @returns The request message.\n *\n * @public\n */\n",
|
15544
|
+
"excerptTokens": [
|
15545
|
+
{
|
15546
|
+
"kind": "Content",
|
15547
|
+
"text": "createResourcesMessage<T = "
|
15548
|
+
},
|
15549
|
+
{
|
15550
|
+
"kind": "Content",
|
15551
|
+
"text": "any"
|
15552
|
+
},
|
15553
|
+
{
|
15554
|
+
"kind": "Content",
|
15555
|
+
"text": ">(params?: "
|
15556
|
+
},
|
15557
|
+
{
|
15558
|
+
"kind": "Content",
|
15559
|
+
"text": "any"
|
15560
|
+
},
|
15561
|
+
{
|
15562
|
+
"kind": "Content",
|
15563
|
+
"text": "): "
|
15564
|
+
},
|
15565
|
+
{
|
15566
|
+
"kind": "Reference",
|
15567
|
+
"text": "Message",
|
15568
|
+
"canonicalReference": "@genesislcap/foundation-comms!Message:type"
|
15569
|
+
},
|
15570
|
+
{
|
15571
|
+
"kind": "Content",
|
15572
|
+
"text": "<T>"
|
15573
|
+
},
|
15574
|
+
{
|
15575
|
+
"kind": "Content",
|
15576
|
+
"text": ";"
|
15577
|
+
}
|
15578
|
+
],
|
15579
|
+
"isOptional": false,
|
15580
|
+
"returnTypeTokenRange": {
|
15581
|
+
"startIndex": 5,
|
15582
|
+
"endIndex": 7
|
15583
|
+
},
|
15584
|
+
"releaseTag": "Public",
|
15585
|
+
"overloadIndex": 1,
|
15586
|
+
"parameters": [
|
15587
|
+
{
|
15588
|
+
"parameterName": "params",
|
15589
|
+
"parameterTypeTokenRange": {
|
15590
|
+
"startIndex": 3,
|
15591
|
+
"endIndex": 4
|
15592
|
+
},
|
15593
|
+
"isOptional": true
|
15594
|
+
}
|
15595
|
+
],
|
15596
|
+
"typeParameters": [
|
15597
|
+
{
|
15598
|
+
"typeParameterName": "T",
|
15599
|
+
"constraintTokenRange": {
|
15600
|
+
"startIndex": 0,
|
15601
|
+
"endIndex": 0
|
15602
|
+
},
|
15603
|
+
"defaultTypeTokenRange": {
|
15604
|
+
"startIndex": 1,
|
15605
|
+
"endIndex": 2
|
15606
|
+
}
|
15607
|
+
}
|
15608
|
+
],
|
15609
|
+
"name": "createResourcesMessage"
|
15355
15610
|
}
|
15356
15611
|
],
|
15357
15612
|
"extendsTokenRanges": []
|
@@ -273,6 +273,13 @@ export declare interface Connect {
|
|
273
273
|
* @returns A promise that resolves to a Message containing the server's response.
|
274
274
|
*/
|
275
275
|
request(resourceName: string, params?: RequestParams): Promise<Message>;
|
276
|
+
/**
|
277
|
+
* Sends a request to the server to get available resources.
|
278
|
+
* @public
|
279
|
+
* @param params - An object containing optional parameters to include in the request.
|
280
|
+
* @returns A promise that resolves to a Message containing the server's response with available resources.
|
281
|
+
*/
|
282
|
+
getAvailableResources(params?: RequestParams): Promise<Message>;
|
276
283
|
/**
|
277
284
|
* Sends a request to the server to retrieve data or perform an action.
|
278
285
|
* @public
|
@@ -337,6 +344,7 @@ export declare class ConnectMock implements Connect {
|
|
337
344
|
disconnect(): void;
|
338
345
|
getMetadata(resourceName: string): Promise<Metadata>;
|
339
346
|
request(resourceName: string, params?: RequestParams): Promise<Message>;
|
347
|
+
getAvailableResources(params?: RequestParams): Promise<Message>;
|
340
348
|
snapshot(resourceName: string, params?: any): Promise<Message>;
|
341
349
|
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
342
350
|
getMoreRows(sourceRef: string): Promise<Message<any>>;
|
@@ -1018,6 +1026,7 @@ export declare class DefaultConnect implements Connect {
|
|
1018
1026
|
getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
|
1019
1027
|
getJSONSchema(resourceName: string, useCache?: boolean): Promise<SchemaResponse>;
|
1020
1028
|
request(resourceName: string, params?: RequestParams): Promise<Message>;
|
1029
|
+
getAvailableResources(params?: any): Promise<Message>;
|
1021
1030
|
commitEvent(eventName: string, params?: CommitParams): Promise<Message>;
|
1022
1031
|
}
|
1023
1032
|
|
@@ -1215,6 +1224,7 @@ export declare class DefaultHttpConnect implements Connect {
|
|
1215
1224
|
getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
|
1216
1225
|
getJSONSchema(resourceName: string): Promise<SchemaResponse>;
|
1217
1226
|
request(resourceName: string, params?: RequestParams): Promise<Message>;
|
1227
|
+
getAvailableResources(params?: any): Promise<Message>;
|
1218
1228
|
commitEvent(eventName: string, params?: CommitParams): Promise<Message>;
|
1219
1229
|
private maybeTurbo;
|
1220
1230
|
private updateIntervals;
|
@@ -2102,6 +2112,7 @@ export declare type Message<T = void | any> = {
|
|
2102
2112
|
MESSAGE_TYPE?: MessageType | EventMessageType | string;
|
2103
2113
|
PERMISSION?: string[];
|
2104
2114
|
PROFILE?: string[];
|
2115
|
+
RESOURCES?: any[];
|
2105
2116
|
REFRESH_AUTH_TOKEN?: string;
|
2106
2117
|
ROW?: any[];
|
2107
2118
|
ROWS_COUNT?: number;
|
@@ -2177,6 +2188,14 @@ export declare interface MessageBuilder {
|
|
2177
2188
|
* @returns The request message.
|
2178
2189
|
*/
|
2179
2190
|
createRequestMessage<T = any>(resourceName: string, params?: any): Message<T>;
|
2191
|
+
/**
|
2192
|
+
* Creates a message for getting list of resources.
|
2193
|
+
*
|
2194
|
+
* @public
|
2195
|
+
* @param params - The additional parameters.
|
2196
|
+
* @returns The request message.
|
2197
|
+
*/
|
2198
|
+
createResourcesMessage<T = any>(params?: any): Message<T>;
|
2180
2199
|
/**
|
2181
2200
|
* Creates a metadata fetch message.
|
2182
2201
|
*
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [Connect](./foundation-comms.connect.md) > [getAvailableResources](./foundation-comms.connect.getavailableresources.md)
|
4
|
+
|
5
|
+
## Connect.getAvailableResources() method
|
6
|
+
|
7
|
+
Sends a request to the server to get available resources.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
getAvailableResources(params?: RequestParams): Promise<Message>;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
| Parameter | Type | Description |
|
18
|
+
| --- | --- | --- |
|
19
|
+
| params | [RequestParams](./foundation-comms.requestparams.md) | _(Optional)_ An object containing optional parameters to include in the request. |
|
20
|
+
|
21
|
+
**Returns:**
|
22
|
+
|
23
|
+
Promise<[Message](./foundation-comms.message.md)<!-- -->>
|
24
|
+
|
25
|
+
A promise that resolves to a Message containing the server's response with available resources.
|
26
|
+
|
@@ -29,6 +29,7 @@ export interface Connect
|
|
29
29
|
| [connect(host)](./foundation-comms.connect.connect.md) | Connects to a server at the specified host. |
|
30
30
|
| [dataLogoff(sourceRef)](./foundation-comms.connect.datalogoff.md) | Logs off from the specified data source. |
|
31
31
|
| [disconnect()](./foundation-comms.connect.disconnect.md) | Disconnects from the server. |
|
32
|
+
| [getAvailableResources(params)](./foundation-comms.connect.getavailableresources.md) | Sends a request to the server to get available resources. |
|
32
33
|
| [getJSONSchema(resourceName)](./foundation-comms.connect.getjsonschema.md) | Retrieves the JSON schema for the specified resource. |
|
33
34
|
| [getMetadata(resourceName, useCache)](./foundation-comms.connect.getmetadata.md) | Retrieves the metadata for the specified resource. |
|
34
35
|
| [getMoreRows(sourceRef)](./foundation-comms.connect.getmorerows.md) | Requests additional rows of data for the specified source reference. |
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultConnect](./foundation-comms.defaultconnect.md) > [getAvailableResources](./foundation-comms.defaultconnect.getavailableresources.md)
|
4
|
+
|
5
|
+
## DefaultConnect.getAvailableResources() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
getAvailableResources(params?: any): Promise<Message>;
|
11
|
+
```
|
12
|
+
|
13
|
+
## Parameters
|
14
|
+
|
15
|
+
| Parameter | Type | Description |
|
16
|
+
| --- | --- | --- |
|
17
|
+
| params | any | _(Optional)_ |
|
18
|
+
|
19
|
+
**Returns:**
|
20
|
+
|
21
|
+
Promise<[Message](./foundation-comms.message.md)<!-- -->>
|
22
|
+
|
@@ -37,6 +37,7 @@ export declare class DefaultConnect implements Connect
|
|
37
37
|
| [connect(host)](./foundation-comms.defaultconnect.connect.md) | | |
|
38
38
|
| [dataLogoff(streamSourceRef)](./foundation-comms.defaultconnect.datalogoff.md) | | |
|
39
39
|
| [disconnect()](./foundation-comms.defaultconnect.disconnect.md) | | |
|
40
|
+
| [getAvailableResources(params)](./foundation-comms.defaultconnect.getavailableresources.md) | | |
|
40
41
|
| [getJSONSchema(resourceName, useCache)](./foundation-comms.defaultconnect.getjsonschema.md) | | |
|
41
42
|
| [getMetadata(resourceName, useCache)](./foundation-comms.defaultconnect.getmetadata.md) | | |
|
42
43
|
| [getMoreRows(sourceRef)](./foundation-comms.defaultconnect.getmorerows.md) | | |
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultHttpConnect](./foundation-comms.defaulthttpconnect.md) > [getAvailableResources](./foundation-comms.defaulthttpconnect.getavailableresources.md)
|
4
|
+
|
5
|
+
## DefaultHttpConnect.getAvailableResources() method
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
getAvailableResources(params?: any): Promise<Message>;
|
11
|
+
```
|
12
|
+
|
13
|
+
## Parameters
|
14
|
+
|
15
|
+
| Parameter | Type | Description |
|
16
|
+
| --- | --- | --- |
|
17
|
+
| params | any | _(Optional)_ |
|
18
|
+
|
19
|
+
**Returns:**
|
20
|
+
|
21
|
+
Promise<[Message](./foundation-comms.message.md)<!-- -->>
|
22
|
+
|
@@ -38,6 +38,7 @@ export declare class DefaultHttpConnect implements Connect
|
|
38
38
|
| [connect(host)](./foundation-comms.defaulthttpconnect.connect.md) | | |
|
39
39
|
| [dataLogoff(streamSourceRef)](./foundation-comms.defaulthttpconnect.datalogoff.md) | | |
|
40
40
|
| [disconnect()](./foundation-comms.defaulthttpconnect.disconnect.md) | | |
|
41
|
+
| [getAvailableResources(params)](./foundation-comms.defaulthttpconnect.getavailableresources.md) | | |
|
41
42
|
| [getJSONSchema(resourceName)](./foundation-comms.defaulthttpconnect.getjsonschema.md) | | |
|
42
43
|
| [getMetadata(resourceName, useCache)](./foundation-comms.defaulthttpconnect.getmetadata.md) | | |
|
43
44
|
| [getMoreRows(sourceRef)](./foundation-comms.defaulthttpconnect.getmorerows.md) | | |
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [MessageBuilder](./foundation-comms.messagebuilder.md) > [createResourcesMessage](./foundation-comms.messagebuilder.createresourcesmessage.md)
|
4
|
+
|
5
|
+
## MessageBuilder.createResourcesMessage() method
|
6
|
+
|
7
|
+
Creates a message for getting list of resources.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
createResourcesMessage<T = any>(params?: any): Message<T>;
|
13
|
+
```
|
14
|
+
|
15
|
+
## Parameters
|
16
|
+
|
17
|
+
| Parameter | Type | Description |
|
18
|
+
| --- | --- | --- |
|
19
|
+
| params | any | _(Optional)_ The additional parameters. |
|
20
|
+
|
21
|
+
**Returns:**
|
22
|
+
|
23
|
+
[Message](./foundation-comms.message.md)<!-- --><T>
|
24
|
+
|
25
|
+
The request message.
|
26
|
+
|
@@ -29,4 +29,5 @@ export interface MessageBuilder
|
|
29
29
|
| [createMoreRowsMessage(sourceRef)](./foundation-comms.messagebuilder.createmorerowsmessage.md) | Creates a message to request more rows. |
|
30
30
|
| [createRefreshTokenMessage()](./foundation-comms.messagebuilder.createrefreshtokenmessage.md) | Creates an auth message specific for token refresh. |
|
31
31
|
| [createRequestMessage(resourceName, params)](./foundation-comms.messagebuilder.createrequestmessage.md) | Creates a request message. |
|
32
|
+
| [createResourcesMessage(params)](./foundation-comms.messagebuilder.createresourcesmessage.md) | Creates a message for getting list of resources. |
|
32
33
|
|
package/docs/api-report.md
CHANGED
@@ -133,6 +133,7 @@ export interface Connect {
|
|
133
133
|
connect(host: string): Promise<boolean>;
|
134
134
|
dataLogoff(sourceRef: string): Promise<Message>;
|
135
135
|
disconnect(): void;
|
136
|
+
getAvailableResources(params?: RequestParams): Promise<Message>;
|
136
137
|
getJSONSchema(resourceName: string): Promise<SchemaResponse>;
|
137
138
|
getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
|
138
139
|
getMoreRows(sourceRef: string): Promise<Message>;
|
@@ -182,6 +183,8 @@ export class ConnectMock implements Connect {
|
|
182
183
|
// (undocumented)
|
183
184
|
disconnect(): void;
|
184
185
|
// (undocumented)
|
186
|
+
getAvailableResources(params?: RequestParams): Promise<Message>;
|
187
|
+
// (undocumented)
|
185
188
|
getJSONSchema(resourceName: string): Promise<any>;
|
186
189
|
// (undocumented)
|
187
190
|
getMetadata(resourceName: string): Promise<Metadata>;
|
@@ -494,6 +497,8 @@ export class DefaultConnect implements Connect {
|
|
494
497
|
// (undocumented)
|
495
498
|
disconnect(): void;
|
496
499
|
// (undocumented)
|
500
|
+
getAvailableResources(params?: any): Promise<Message>;
|
501
|
+
// (undocumented)
|
497
502
|
getJSONSchema(resourceName: string, useCache?: boolean): Promise<SchemaResponse>;
|
498
503
|
// (undocumented)
|
499
504
|
getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
|
@@ -707,6 +712,8 @@ export class DefaultHttpConnect implements Connect {
|
|
707
712
|
// (undocumented)
|
708
713
|
disconnect(): void;
|
709
714
|
// (undocumented)
|
715
|
+
getAvailableResources(params?: any): Promise<Message>;
|
716
|
+
// (undocumented)
|
710
717
|
getJSONSchema(resourceName: string): Promise<SchemaResponse>;
|
711
718
|
// (undocumented)
|
712
719
|
getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
|
@@ -1163,6 +1170,7 @@ export type Message<T = void | any> = {
|
|
1163
1170
|
MESSAGE_TYPE?: MessageType | EventMessageType | string;
|
1164
1171
|
PERMISSION?: string[];
|
1165
1172
|
PROFILE?: string[];
|
1173
|
+
RESOURCES?: any[];
|
1166
1174
|
REFRESH_AUTH_TOKEN?: string;
|
1167
1175
|
ROW?: any[];
|
1168
1176
|
ROWS_COUNT?: number;
|
@@ -1192,6 +1200,7 @@ export interface MessageBuilder {
|
|
1192
1200
|
createMoreRowsMessage(sourceRef: string): Message;
|
1193
1201
|
createRefreshTokenMessage(): Message<MessageDetails.RefreshToken>;
|
1194
1202
|
createRequestMessage<T = any>(resourceName: string, params?: any): Message<T>;
|
1203
|
+
createResourcesMessage<T = any>(params?: any): Message<T>;
|
1195
1204
|
}
|
1196
1205
|
|
1197
1206
|
// @internal
|
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.
|
4
|
+
"version": "14.148.0",
|
5
5
|
"sideEffects": false,
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
7
7
|
"main": "dist/esm/index.js",
|
@@ -59,13 +59,13 @@
|
|
59
59
|
"test:debug": "genx test --debug"
|
60
60
|
},
|
61
61
|
"devDependencies": {
|
62
|
-
"@genesislcap/foundation-testing": "14.
|
63
|
-
"@genesislcap/genx": "14.
|
64
|
-
"@genesislcap/rollup-builder": "14.
|
65
|
-
"@genesislcap/ts-builder": "14.
|
66
|
-
"@genesislcap/uvu-playwright-builder": "14.
|
67
|
-
"@genesislcap/vite-builder": "14.
|
68
|
-
"@genesislcap/webpack-builder": "14.
|
62
|
+
"@genesislcap/foundation-testing": "14.148.0",
|
63
|
+
"@genesislcap/genx": "14.148.0",
|
64
|
+
"@genesislcap/rollup-builder": "14.148.0",
|
65
|
+
"@genesislcap/ts-builder": "14.148.0",
|
66
|
+
"@genesislcap/uvu-playwright-builder": "14.148.0",
|
67
|
+
"@genesislcap/vite-builder": "14.148.0",
|
68
|
+
"@genesislcap/webpack-builder": "14.148.0",
|
69
69
|
"@types/js-cookie": "^3.0.2",
|
70
70
|
"@types/json-schema": "^7.0.11",
|
71
71
|
"@types/webappsec-credential-management": "^0.6.2",
|
@@ -73,8 +73,8 @@
|
|
73
73
|
},
|
74
74
|
"dependencies": {
|
75
75
|
"@finos/fdc3": "^1.2.0",
|
76
|
-
"@genesislcap/foundation-logger": "14.
|
77
|
-
"@genesislcap/foundation-utils": "14.
|
76
|
+
"@genesislcap/foundation-logger": "14.148.0",
|
77
|
+
"@genesislcap/foundation-utils": "14.148.0",
|
78
78
|
"@microsoft/fast-element": "^1.12.0",
|
79
79
|
"@microsoft/fast-foundation": "^2.49.4",
|
80
80
|
"analytics": "^0.8.0",
|
@@ -91,5 +91,5 @@
|
|
91
91
|
"publishConfig": {
|
92
92
|
"access": "public"
|
93
93
|
},
|
94
|
-
"gitHead": "
|
94
|
+
"gitHead": "18e7851814a2c8025b486040224ff19b84fca29b"
|
95
95
|
}
|