@genesislcap/foundation-comms 14.214.2-alpha-40e31af.0 → 14.214.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/dts/connect/message.d.ts +30 -2
- package/dist/dts/connect/message.d.ts.map +1 -1
- package/dist/dts/datasource/datasource.d.ts +4 -2
- package/dist/dts/datasource/datasource.d.ts.map +1 -1
- package/dist/esm/datasource/datasource.js +38 -25
- package/dist/foundation-comms.api.json +116 -27
- package/dist/foundation-comms.d.ts +34 -3
- package/docs/api/foundation-comms.dataserverparams.md +28 -0
- package/docs/api/{foundation-comms.defaultdatasource.params.md → foundation-comms.defaultdatasource.allparams.md} +3 -3
- package/docs/api/foundation-comms.defaultdatasource.dataserverparams.md +11 -0
- package/docs/api/foundation-comms.defaultdatasource.md +3 -1
- package/docs/api/foundation-comms.defaultdatasource.requestparams.md +11 -0
- package/docs/api/foundation-comms.md +2 -1
- package/docs/api/foundation-comms.messagebuilder.createdatalogonmessage.md +2 -2
- package/docs/api/foundation-comms.requestdetailsparam.md +1 -0
- package/docs/api/foundation-comms.requestparams.md +1 -1
- package/docs/api-report.md +21 -3
- package/package.json +13 -13
@@ -259,15 +259,43 @@ export type ResourcesMessage = {
|
|
259
259
|
SOURCE_REF: string;
|
260
260
|
RESOURCES: ResourceItem[];
|
261
261
|
};
|
262
|
+
/**
|
263
|
+
* Parameters for a DATA_LOGON messages
|
264
|
+
* @remarks
|
265
|
+
* - The DATASOURCE_NAME is required for all DATA_LOGON messages.
|
266
|
+
* - The CRITERIA_MATCH is optional and can be used to filter the data.
|
267
|
+
* - The MAX_ROWS is optional and can be used to limit the number of rows returned.
|
268
|
+
* - The VIEW_NUMBER is optional and can be used to specify the desired page/view number.
|
269
|
+
* - The FIELDS is optional and can be used to specify the desired fields to be returned.
|
270
|
+
* - The MAX_VIEW is optional and can be used to specify the maximum view size. You can have this as 100 and MAX_ROWS as 50 for example.
|
271
|
+
* That way you can fetch 50 rows at a time and have a view size of 100, which is the maximum number of rows that can be displayed in the grid.
|
272
|
+
* - The MOVING_VIEW defines the behaviour of the front-end view when it receives new rows in real time.
|
273
|
+
* - The ORDER_BY is optional and can be used to specify the order of the rows.
|
274
|
+
* - The REVERSE is optional and can be used to specify if the order should be reversed.
|
275
|
+
* For more information, see the {@link https://learn.genesis.global/docs/server/data-server/advanced/?_highlight=moving_view#incoming-data_logon-messages | Dataserver Parameters} documentation.
|
276
|
+
* @public
|
277
|
+
*/
|
278
|
+
export type DataserverParams = {
|
279
|
+
DATASOURCE_NAME?: string;
|
280
|
+
CRITERIA_MATCH?: string;
|
281
|
+
MAX_ROWS?: number;
|
282
|
+
VIEW_NUMBER?: number;
|
283
|
+
FIELDS?: string;
|
284
|
+
MAX_VIEW?: number;
|
285
|
+
MOVING_VIEW?: boolean;
|
286
|
+
ORDER_BY?: string;
|
287
|
+
REVERSE?: boolean;
|
288
|
+
};
|
262
289
|
/**
|
263
290
|
* @public
|
264
291
|
*/
|
265
292
|
export type RequestDetailsParam = {
|
266
293
|
MAX_ROWS?: number;
|
267
294
|
CRITERIA_MATCH?: string;
|
295
|
+
VIEW_NUMBER?: number;
|
268
296
|
};
|
269
297
|
/**
|
270
|
-
* Parameters for a
|
298
|
+
* Parameters for a REQ_ messages
|
271
299
|
* @public
|
272
300
|
*/
|
273
301
|
export type RequestParams = {
|
@@ -335,7 +363,7 @@ export interface MessageBuilder {
|
|
335
363
|
* @param params - The additional parameters.
|
336
364
|
* @returns The data logon message.
|
337
365
|
*/
|
338
|
-
createDataLogonMessage(resourceName: string, params?:
|
366
|
+
createDataLogonMessage(resourceName: string, params?: DataserverParams): Message<MessageDetails.DataserverRequest>;
|
339
367
|
/**
|
340
368
|
* Creates a message to logoff from a DATASERVER.
|
341
369
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../../src/connect/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAErD,OAAO,EAAE,QAAQ,EAAY,WAAW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MAAM,EACnB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC;IAYlC,2BAA2B,CAChC,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,EACjB,SAAS,GAAE,MAAiB,GAC3B,OAAO,CAAC,cAAc,CAAC,cAAc,CAAC;IAYlC,gCAAgC,CACrC,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,SAAS,GAAE,MAAiB,GAC3B,OAAO,CAAC,cAAc,CAAC,mBAAmB,CAAC;IAavC,qBAAqB,CAC1B,SAAS,EAAE,MAAM,EACjB,UAAU,CAAC,EAAE,MAAM,GAClB,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC;IAY5B,wBAAwB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAOpD,4BAA4B,CACjC,OAAO,EAAE,OAAO,EAChB,WAAW,GAAE,MAA0C,GACtD,WAAW;IAed,8DAA8D;IACvD,0BAA0B,CAAC,OAAO,UAAQ,GAAG,WAAW;CAShE;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,sEAE1B,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Auth } from '../auth';
|
2
|
-
import { Connect, Message, SocketObservable } from '../connect';
|
2
|
+
import { Connect, DataserverParams, Message, RequestParams, SocketObservable } from '../connect';
|
3
3
|
import type { FieldMetadata, FilteredDataServerResult, IndexDetail, MetadataDetail, RequestServerResult } from '../metadata/metadata.types';
|
4
4
|
import { GenesisResources } from '../resources';
|
5
5
|
import { DatasourceConfig } from './datasource.config';
|
@@ -201,7 +201,9 @@ export declare class DefaultDatasource implements Datasource {
|
|
201
201
|
startStream(): Promise<void>;
|
202
202
|
/** {@inheritDoc Datasource.destroy} */
|
203
203
|
destroy(): void;
|
204
|
-
get
|
204
|
+
get allParams(): any;
|
205
|
+
get dataserverParams(): DataserverParams;
|
206
|
+
get requestParams(): RequestParams;
|
205
207
|
snapshot(overrideParams?: any): Promise<Message>;
|
206
208
|
snapshotFiltered(rowId?: string): Promise<any[]>;
|
207
209
|
private createStream;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACjG,OAAO,KAAK,EACV,aAAa,EACb,wBAAwB,EACxB,WAAW,EACX,cAAc,EAEd,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACxF,OAAO,EAA2B,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAE3E;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,QAAQ,CAAC,gBAAgB,EAAE,WAAW,EAAE,CAAC;IACzC,QAAQ,CAAC,gBAAgB,EAAE,cAAc,EAAE,CAAC;IAC5C,QAAQ,CAAC,aAAa,EAAE,aAAa,EAAE,CAAC;IACxC,QAAQ,CAAC,aAAa,EAAE,cAAc,EAAE,CAAC;IACzC,QAAQ,CAAC,mBAAmB,EAAE,cAAc,EAAE,CAAC;CAChD;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;;;;;;GA6BG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAE1C"}
|
@@ -109,7 +109,7 @@ let DefaultDatasource = class DefaultDatasource {
|
|
109
109
|
this.requestFields = [];
|
110
110
|
this.stream = undefined;
|
111
111
|
}
|
112
|
-
get
|
112
|
+
get allParams() {
|
113
113
|
var _a;
|
114
114
|
let ORDER_BY;
|
115
115
|
if (this.options.orderBy) {
|
@@ -140,34 +140,47 @@ let DefaultDatasource = class DefaultDatasource {
|
|
140
140
|
logger.debug('Getting configured params:', params);
|
141
141
|
return params;
|
142
142
|
}
|
143
|
-
|
143
|
+
get dataserverParams() {
|
144
|
+
return {
|
145
|
+
CRITERIA_MATCH: this.allParams.CRITERIA_MATCH,
|
146
|
+
MAX_ROWS: this.allParams.MAX_ROWS,
|
147
|
+
VIEW_NUMBER: this.allParams.VIEW_NUMBER,
|
148
|
+
FIELDS: this.allParams.FIELDS,
|
149
|
+
MAX_VIEW: this.allParams.MAX_VIEW,
|
150
|
+
MOVING_VIEW: this.allParams.MOVING_VIEW,
|
151
|
+
ORDER_BY: this.allParams.ORDER_BY,
|
152
|
+
REVERSE: this.allParams.REVERSE,
|
153
|
+
};
|
154
|
+
}
|
155
|
+
get requestParams() {
|
144
156
|
var _a;
|
157
|
+
const _b = this.allParams, { REQUEST } = _b, DETAILS = __rest(_b, ["REQUEST"]);
|
158
|
+
const reqParams = {
|
159
|
+
DETAILS: {
|
160
|
+
CRITERIA_MATCH: !this.options.requestAutoSetup ? DETAILS.CRITERIA_MATCH : undefined,
|
161
|
+
MAX_ROWS: DETAILS.MAX_ROWS,
|
162
|
+
VIEW_NUMBER: DETAILS.VIEW_NUMBER,
|
163
|
+
},
|
164
|
+
REQUEST,
|
165
|
+
};
|
166
|
+
if (!reqParams.REQUEST) {
|
167
|
+
if (this.options.requestAutoSetup) {
|
168
|
+
reqParams.REQUEST = Object.assign(Object.assign({}, Object.fromEntries(this.requestFields.map((rf) => [rf.NAME, '*']))), (((_a = this === null || this === void 0 ? void 0 : this.options) === null || _a === void 0 ? void 0 : _a.criteria) ? this.config.criteriaToFields(this.options.criteria) : {}));
|
169
|
+
}
|
170
|
+
else {
|
171
|
+
reqParams.REQUEST = {};
|
172
|
+
}
|
173
|
+
}
|
174
|
+
return reqParams;
|
175
|
+
}
|
176
|
+
snapshot(overrideParams) {
|
145
177
|
return __awaiter(this, void 0, void 0, function* () {
|
146
178
|
logger.debug(`Requesting snapshot for ${this.options.resourceName} (${this.resourceType}).`);
|
147
179
|
switch (this.resourceType) {
|
148
180
|
case ResourceType.DATASERVER:
|
149
|
-
return this.connect.snapshot(this.options.resourceName, Object.assign(Object.assign({}, this.
|
181
|
+
return this.connect.snapshot(this.options.resourceName, Object.assign(Object.assign({}, this.dataserverParams), overrideParams));
|
150
182
|
case ResourceType.REQUEST_SERVER: {
|
151
|
-
|
152
|
-
const reqParams = {
|
153
|
-
DETAILS: {
|
154
|
-
CRITERIA_MATCH: !this.options.requestAutoSetup ? DETAILS.CRITERIA_MATCH : undefined,
|
155
|
-
MAX_ROWS: DETAILS.MAX_ROWS,
|
156
|
-
VIEW_NUMBER: DETAILS.VIEW_NUMBER,
|
157
|
-
},
|
158
|
-
REQUEST,
|
159
|
-
};
|
160
|
-
if (!reqParams.REQUEST) {
|
161
|
-
if (this.options.requestAutoSetup) {
|
162
|
-
reqParams.REQUEST = Object.assign(Object.assign({}, Object.fromEntries(this.requestFields.map((rf) => [rf.NAME, '*']))), (((_a = this === null || this === void 0 ? void 0 : this.options) === null || _a === void 0 ? void 0 : _a.criteria)
|
163
|
-
? this.config.criteriaToFields(this.options.criteria)
|
164
|
-
: {}));
|
165
|
-
}
|
166
|
-
else {
|
167
|
-
reqParams.REQUEST = {};
|
168
|
-
}
|
169
|
-
}
|
170
|
-
return this.connect.request(this.options.resourceName, Object.assign(Object.assign({}, reqParams), overrideParams));
|
183
|
+
return this.connect.request(this.options.resourceName, Object.assign(Object.assign({}, this.requestParams), overrideParams));
|
171
184
|
}
|
172
185
|
default:
|
173
186
|
throw new Error(`Snapshot not supported for selected resource type: ${this.resourceType}`);
|
@@ -204,11 +217,11 @@ let DefaultDatasource = class DefaultDatasource {
|
|
204
217
|
return __awaiter(this, void 0, void 0, function* () {
|
205
218
|
const onMessage = (message) => { };
|
206
219
|
const onError = (error) => logger.error(error);
|
207
|
-
return this.connect.stream(this.options.resourceName, onMessage, onError, this.
|
220
|
+
return this.connect.stream(this.options.resourceName, onMessage, onError, this.dataserverParams);
|
208
221
|
});
|
209
222
|
}
|
210
223
|
createReqRepStream() {
|
211
|
-
return timer(0, this.
|
224
|
+
return timer(0, this.allParams.DISABLE_POLLING ? undefined : this.allParams.POLLING_INTERVAL).pipe(switchMap(() => {
|
212
225
|
// Combine the isConnected status with the isLoggedIn status
|
213
226
|
return combineLatest([this.connect.isConnected$, this.auth.isLoggedIn$]).pipe(
|
214
227
|
// Use takeWhile to continue polling until isConnected becomes false or isLoggedIn becomes false
|
@@ -4424,6 +4424,32 @@
|
|
4424
4424
|
}
|
4425
4425
|
]
|
4426
4426
|
},
|
4427
|
+
{
|
4428
|
+
"kind": "TypeAlias",
|
4429
|
+
"canonicalReference": "@genesislcap/foundation-comms!DataserverParams:type",
|
4430
|
+
"docComment": "/**\n * Parameters for a DATA_LOGON messages\n *\n * @remarks\n *\n * - The DATASOURCE_NAME is required for all DATA_LOGON messages. - The CRITERIA_MATCH is optional and can be used to filter the data. - The MAX_ROWS is optional and can be used to limit the number of rows returned. - The VIEW_NUMBER is optional and can be used to specify the desired page/view number. - The FIELDS is optional and can be used to specify the desired fields to be returned. - The MAX_VIEW is optional and can be used to specify the maximum view size. You can have this as 100 and MAX_ROWS as 50 for example. That way you can fetch 50 rows at a time and have a view size of 100, which is the maximum number of rows that can be displayed in the grid. - The MOVING_VIEW defines the behaviour of the front-end view when it receives new rows in real time. - The ORDER_BY is optional and can be used to specify the order of the rows. - The REVERSE is optional and can be used to specify if the order should be reversed. For more information, see the {@link https://learn.genesis.global/docs/server/data-server/advanced/?_highlight=moving_view#incoming-data_logon-messages | Dataserver Parameters} documentation.\n *\n * @public\n */\n",
|
4431
|
+
"excerptTokens": [
|
4432
|
+
{
|
4433
|
+
"kind": "Content",
|
4434
|
+
"text": "export type DataserverParams = "
|
4435
|
+
},
|
4436
|
+
{
|
4437
|
+
"kind": "Content",
|
4438
|
+
"text": "{\n DATASOURCE_NAME?: string;\n CRITERIA_MATCH?: string;\n MAX_ROWS?: number;\n VIEW_NUMBER?: number;\n FIELDS?: string;\n MAX_VIEW?: number;\n MOVING_VIEW?: boolean;\n ORDER_BY?: string;\n REVERSE?: boolean;\n}"
|
4439
|
+
},
|
4440
|
+
{
|
4441
|
+
"kind": "Content",
|
4442
|
+
"text": ";"
|
4443
|
+
}
|
4444
|
+
],
|
4445
|
+
"fileUrlPath": "src/connect/message.ts",
|
4446
|
+
"releaseTag": "Public",
|
4447
|
+
"name": "DataserverParams",
|
4448
|
+
"typeTokenRange": {
|
4449
|
+
"startIndex": 1,
|
4450
|
+
"endIndex": 2
|
4451
|
+
}
|
4452
|
+
},
|
4427
4453
|
{
|
4428
4454
|
"kind": "Function",
|
4429
4455
|
"canonicalReference": "@genesislcap/foundation-comms!dataServerResultFilter:function(1)",
|
@@ -13922,6 +13948,36 @@
|
|
13922
13948
|
}
|
13923
13949
|
]
|
13924
13950
|
},
|
13951
|
+
{
|
13952
|
+
"kind": "Property",
|
13953
|
+
"canonicalReference": "@genesislcap/foundation-comms!DefaultDatasource#allParams:member",
|
13954
|
+
"docComment": "",
|
13955
|
+
"excerptTokens": [
|
13956
|
+
{
|
13957
|
+
"kind": "Content",
|
13958
|
+
"text": "get allParams(): "
|
13959
|
+
},
|
13960
|
+
{
|
13961
|
+
"kind": "Content",
|
13962
|
+
"text": "any"
|
13963
|
+
},
|
13964
|
+
{
|
13965
|
+
"kind": "Content",
|
13966
|
+
"text": ";"
|
13967
|
+
}
|
13968
|
+
],
|
13969
|
+
"isReadonly": true,
|
13970
|
+
"isOptional": false,
|
13971
|
+
"releaseTag": "Public",
|
13972
|
+
"name": "allParams",
|
13973
|
+
"propertyTypeTokenRange": {
|
13974
|
+
"startIndex": 1,
|
13975
|
+
"endIndex": 2
|
13976
|
+
},
|
13977
|
+
"isStatic": false,
|
13978
|
+
"isProtected": false,
|
13979
|
+
"isAbstract": false
|
13980
|
+
},
|
13925
13981
|
{
|
13926
13982
|
"kind": "Property",
|
13927
13983
|
"canonicalReference": "@genesislcap/foundation-comms!DefaultDatasource#auth:member",
|
@@ -14085,6 +14141,37 @@
|
|
14085
14141
|
"isProtected": false,
|
14086
14142
|
"isAbstract": false
|
14087
14143
|
},
|
14144
|
+
{
|
14145
|
+
"kind": "Property",
|
14146
|
+
"canonicalReference": "@genesislcap/foundation-comms!DefaultDatasource#dataserverParams:member",
|
14147
|
+
"docComment": "",
|
14148
|
+
"excerptTokens": [
|
14149
|
+
{
|
14150
|
+
"kind": "Content",
|
14151
|
+
"text": "get dataserverParams(): "
|
14152
|
+
},
|
14153
|
+
{
|
14154
|
+
"kind": "Reference",
|
14155
|
+
"text": "DataserverParams",
|
14156
|
+
"canonicalReference": "@genesislcap/foundation-comms!DataserverParams:type"
|
14157
|
+
},
|
14158
|
+
{
|
14159
|
+
"kind": "Content",
|
14160
|
+
"text": ";"
|
14161
|
+
}
|
14162
|
+
],
|
14163
|
+
"isReadonly": true,
|
14164
|
+
"isOptional": false,
|
14165
|
+
"releaseTag": "Public",
|
14166
|
+
"name": "dataserverParams",
|
14167
|
+
"propertyTypeTokenRange": {
|
14168
|
+
"startIndex": 1,
|
14169
|
+
"endIndex": 2
|
14170
|
+
},
|
14171
|
+
"isStatic": false,
|
14172
|
+
"isProtected": false,
|
14173
|
+
"isAbstract": false
|
14174
|
+
},
|
14088
14175
|
{
|
14089
14176
|
"kind": "Method",
|
14090
14177
|
"canonicalReference": "@genesislcap/foundation-comms!DefaultDatasource#destroy:member(1)",
|
@@ -14418,26 +14505,26 @@
|
|
14418
14505
|
},
|
14419
14506
|
{
|
14420
14507
|
"kind": "Property",
|
14421
|
-
"canonicalReference": "@genesislcap/foundation-comms!DefaultDatasource#
|
14508
|
+
"canonicalReference": "@genesislcap/foundation-comms!DefaultDatasource#readOnly:member",
|
14422
14509
|
"docComment": "",
|
14423
14510
|
"excerptTokens": [
|
14424
14511
|
{
|
14425
14512
|
"kind": "Content",
|
14426
|
-
"text": "
|
14513
|
+
"text": "readOnly: "
|
14427
14514
|
},
|
14428
14515
|
{
|
14429
14516
|
"kind": "Content",
|
14430
|
-
"text": "
|
14517
|
+
"text": "boolean"
|
14431
14518
|
},
|
14432
14519
|
{
|
14433
14520
|
"kind": "Content",
|
14434
14521
|
"text": ";"
|
14435
14522
|
}
|
14436
14523
|
],
|
14437
|
-
"isReadonly":
|
14524
|
+
"isReadonly": false,
|
14438
14525
|
"isOptional": false,
|
14439
14526
|
"releaseTag": "Public",
|
14440
|
-
"name": "
|
14527
|
+
"name": "readOnly",
|
14441
14528
|
"propertyTypeTokenRange": {
|
14442
14529
|
"startIndex": 1,
|
14443
14530
|
"endIndex": 2
|
@@ -14448,16 +14535,21 @@
|
|
14448
14535
|
},
|
14449
14536
|
{
|
14450
14537
|
"kind": "Property",
|
14451
|
-
"canonicalReference": "@genesislcap/foundation-comms!DefaultDatasource#
|
14452
|
-
"docComment": "",
|
14538
|
+
"canonicalReference": "@genesislcap/foundation-comms!DefaultDatasource#requestFields:member",
|
14539
|
+
"docComment": "/**\n * {@inheritDoc DatasourceMetadata.requestFields}\n */\n",
|
14453
14540
|
"excerptTokens": [
|
14454
14541
|
{
|
14455
14542
|
"kind": "Content",
|
14456
|
-
"text": "
|
14543
|
+
"text": "requestFields: "
|
14544
|
+
},
|
14545
|
+
{
|
14546
|
+
"kind": "Reference",
|
14547
|
+
"text": "MetadataDetail",
|
14548
|
+
"canonicalReference": "@genesislcap/foundation-comms!MetadataDetail:type"
|
14457
14549
|
},
|
14458
14550
|
{
|
14459
14551
|
"kind": "Content",
|
14460
|
-
"text": "
|
14552
|
+
"text": "[]"
|
14461
14553
|
},
|
14462
14554
|
{
|
14463
14555
|
"kind": "Content",
|
@@ -14467,10 +14559,10 @@
|
|
14467
14559
|
"isReadonly": false,
|
14468
14560
|
"isOptional": false,
|
14469
14561
|
"releaseTag": "Public",
|
14470
|
-
"name": "
|
14562
|
+
"name": "requestFields",
|
14471
14563
|
"propertyTypeTokenRange": {
|
14472
14564
|
"startIndex": 1,
|
14473
|
-
"endIndex":
|
14565
|
+
"endIndex": 3
|
14474
14566
|
},
|
14475
14567
|
"isStatic": false,
|
14476
14568
|
"isProtected": false,
|
@@ -14478,34 +14570,30 @@
|
|
14478
14570
|
},
|
14479
14571
|
{
|
14480
14572
|
"kind": "Property",
|
14481
|
-
"canonicalReference": "@genesislcap/foundation-comms!DefaultDatasource#
|
14482
|
-
"docComment": "
|
14573
|
+
"canonicalReference": "@genesislcap/foundation-comms!DefaultDatasource#requestParams:member",
|
14574
|
+
"docComment": "",
|
14483
14575
|
"excerptTokens": [
|
14484
14576
|
{
|
14485
14577
|
"kind": "Content",
|
14486
|
-
"text": "
|
14578
|
+
"text": "get requestParams(): "
|
14487
14579
|
},
|
14488
14580
|
{
|
14489
14581
|
"kind": "Reference",
|
14490
|
-
"text": "
|
14491
|
-
"canonicalReference": "@genesislcap/foundation-comms!
|
14492
|
-
},
|
14493
|
-
{
|
14494
|
-
"kind": "Content",
|
14495
|
-
"text": "[]"
|
14582
|
+
"text": "RequestParams",
|
14583
|
+
"canonicalReference": "@genesislcap/foundation-comms!RequestParams:type"
|
14496
14584
|
},
|
14497
14585
|
{
|
14498
14586
|
"kind": "Content",
|
14499
14587
|
"text": ";"
|
14500
14588
|
}
|
14501
14589
|
],
|
14502
|
-
"isReadonly":
|
14590
|
+
"isReadonly": true,
|
14503
14591
|
"isOptional": false,
|
14504
14592
|
"releaseTag": "Public",
|
14505
|
-
"name": "
|
14593
|
+
"name": "requestParams",
|
14506
14594
|
"propertyTypeTokenRange": {
|
14507
14595
|
"startIndex": 1,
|
14508
|
-
"endIndex":
|
14596
|
+
"endIndex": 2
|
14509
14597
|
},
|
14510
14598
|
"isStatic": false,
|
14511
14599
|
"isProtected": false,
|
@@ -24822,8 +24910,9 @@
|
|
24822
24910
|
"text": ", params?: "
|
24823
24911
|
},
|
24824
24912
|
{
|
24825
|
-
"kind": "
|
24826
|
-
"text": "
|
24913
|
+
"kind": "Reference",
|
24914
|
+
"text": "DataserverParams",
|
24915
|
+
"canonicalReference": "@genesislcap/foundation-comms!DataserverParams:type"
|
24827
24916
|
},
|
24828
24917
|
{
|
24829
24918
|
"kind": "Content",
|
@@ -28355,7 +28444,7 @@
|
|
28355
28444
|
},
|
28356
28445
|
{
|
28357
28446
|
"kind": "Content",
|
28358
|
-
"text": "{\n MAX_ROWS?: number;\n CRITERIA_MATCH?: string;\n}"
|
28447
|
+
"text": "{\n MAX_ROWS?: number;\n CRITERIA_MATCH?: string;\n VIEW_NUMBER?: number;\n}"
|
28359
28448
|
},
|
28360
28449
|
{
|
28361
28450
|
"kind": "Content",
|
@@ -28373,7 +28462,7 @@
|
|
28373
28462
|
{
|
28374
28463
|
"kind": "TypeAlias",
|
28375
28464
|
"canonicalReference": "@genesislcap/foundation-comms!RequestParams:type",
|
28376
|
-
"docComment": "/**\n * Parameters for a
|
28465
|
+
"docComment": "/**\n * Parameters for a REQ_ messages\n *\n * @public\n */\n",
|
28377
28466
|
"excerptTokens": [
|
28378
28467
|
{
|
28379
28468
|
"kind": "Content",
|
@@ -809,6 +809,34 @@ declare type DATA_LOGON_DETAILS = {
|
|
809
809
|
REVERSE?: boolean;
|
810
810
|
};
|
811
811
|
|
812
|
+
/**
|
813
|
+
* Parameters for a DATA_LOGON messages
|
814
|
+
* @remarks
|
815
|
+
* - The DATASOURCE_NAME is required for all DATA_LOGON messages.
|
816
|
+
* - The CRITERIA_MATCH is optional and can be used to filter the data.
|
817
|
+
* - The MAX_ROWS is optional and can be used to limit the number of rows returned.
|
818
|
+
* - The VIEW_NUMBER is optional and can be used to specify the desired page/view number.
|
819
|
+
* - The FIELDS is optional and can be used to specify the desired fields to be returned.
|
820
|
+
* - The MAX_VIEW is optional and can be used to specify the maximum view size. You can have this as 100 and MAX_ROWS as 50 for example.
|
821
|
+
* That way you can fetch 50 rows at a time and have a view size of 100, which is the maximum number of rows that can be displayed in the grid.
|
822
|
+
* - The MOVING_VIEW defines the behaviour of the front-end view when it receives new rows in real time.
|
823
|
+
* - The ORDER_BY is optional and can be used to specify the order of the rows.
|
824
|
+
* - The REVERSE is optional and can be used to specify if the order should be reversed.
|
825
|
+
* For more information, see the {@link https://learn.genesis.global/docs/server/data-server/advanced/?_highlight=moving_view#incoming-data_logon-messages | Dataserver Parameters} documentation.
|
826
|
+
* @public
|
827
|
+
*/
|
828
|
+
export declare type DataserverParams = {
|
829
|
+
DATASOURCE_NAME?: string;
|
830
|
+
CRITERIA_MATCH?: string;
|
831
|
+
MAX_ROWS?: number;
|
832
|
+
VIEW_NUMBER?: number;
|
833
|
+
FIELDS?: string;
|
834
|
+
MAX_VIEW?: number;
|
835
|
+
MOVING_VIEW?: boolean;
|
836
|
+
ORDER_BY?: string;
|
837
|
+
REVERSE?: boolean;
|
838
|
+
};
|
839
|
+
|
812
840
|
/**
|
813
841
|
* Data server result filter.
|
814
842
|
*
|
@@ -1778,7 +1806,9 @@ export declare class DefaultDatasource implements Datasource {
|
|
1778
1806
|
startStream(): Promise<void>;
|
1779
1807
|
/** {@inheritDoc Datasource.destroy} */
|
1780
1808
|
destroy(): void;
|
1781
|
-
get
|
1809
|
+
get allParams(): any;
|
1810
|
+
get dataserverParams(): DataserverParams;
|
1811
|
+
get requestParams(): RequestParams;
|
1782
1812
|
snapshot(overrideParams?: any): Promise<Message>;
|
1783
1813
|
snapshotFiltered(rowId?: string): Promise<any[]>;
|
1784
1814
|
private createStream;
|
@@ -3264,7 +3294,7 @@ export declare interface MessageBuilder {
|
|
3264
3294
|
* @param params - The additional parameters.
|
3265
3295
|
* @returns The data logon message.
|
3266
3296
|
*/
|
3267
|
-
createDataLogonMessage(resourceName: string, params?:
|
3297
|
+
createDataLogonMessage(resourceName: string, params?: DataserverParams): Message<MessageDetails.DataserverRequest>;
|
3268
3298
|
/**
|
3269
3299
|
* Creates a message to logoff from a DATASERVER.
|
3270
3300
|
*
|
@@ -3930,10 +3960,11 @@ export declare type ReplyDetail = {
|
|
3930
3960
|
export declare type RequestDetailsParam = {
|
3931
3961
|
MAX_ROWS?: number;
|
3932
3962
|
CRITERIA_MATCH?: string;
|
3963
|
+
VIEW_NUMBER?: number;
|
3933
3964
|
};
|
3934
3965
|
|
3935
3966
|
/**
|
3936
|
-
* Parameters for a
|
3967
|
+
* Parameters for a REQ_ messages
|
3937
3968
|
* @public
|
3938
3969
|
*/
|
3939
3970
|
export declare type RequestParams = {
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DataserverParams](./foundation-comms.dataserverparams.md)
|
4
|
+
|
5
|
+
## DataserverParams type
|
6
|
+
|
7
|
+
Parameters for a DATA\_LOGON messages
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
export type DataserverParams = {
|
13
|
+
DATASOURCE_NAME?: string;
|
14
|
+
CRITERIA_MATCH?: string;
|
15
|
+
MAX_ROWS?: number;
|
16
|
+
VIEW_NUMBER?: number;
|
17
|
+
FIELDS?: string;
|
18
|
+
MAX_VIEW?: number;
|
19
|
+
MOVING_VIEW?: boolean;
|
20
|
+
ORDER_BY?: string;
|
21
|
+
REVERSE?: boolean;
|
22
|
+
};
|
23
|
+
```
|
24
|
+
|
25
|
+
## Remarks
|
26
|
+
|
27
|
+
- The DATASOURCE\_NAME is required for all DATA\_LOGON messages. - The CRITERIA\_MATCH is optional and can be used to filter the data. - The MAX\_ROWS is optional and can be used to limit the number of rows returned. - The VIEW\_NUMBER is optional and can be used to specify the desired page/view number. - The FIELDS is optional and can be used to specify the desired fields to be returned. - The MAX\_VIEW is optional and can be used to specify the maximum view size. You can have this as 100 and MAX\_ROWS as 50 for example. That way you can fetch 50 rows at a time and have a view size of 100, which is the maximum number of rows that can be displayed in the grid. - The MOVING\_VIEW defines the behaviour of the front-end view when it receives new rows in real time. - The ORDER\_BY is optional and can be used to specify the order of the rows. - The REVERSE is optional and can be used to specify if the order should be reversed. For more information, see the [Dataserver Parameters](https://learn.genesis.global/docs/server/data-server/advanced/?_highlight=moving_view#incoming-data_logon-messages) documentation.
|
28
|
+
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
2
|
|
3
|
-
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultDatasource](./foundation-comms.defaultdatasource.md) > [
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultDatasource](./foundation-comms.defaultdatasource.md) > [allParams](./foundation-comms.defaultdatasource.allparams.md)
|
4
4
|
|
5
|
-
## DefaultDatasource.
|
5
|
+
## DefaultDatasource.allParams property
|
6
6
|
|
7
7
|
**Signature:**
|
8
8
|
|
9
9
|
```typescript
|
10
|
-
get
|
10
|
+
get allParams(): any;
|
11
11
|
```
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultDatasource](./foundation-comms.defaultdatasource.md) > [dataserverParams](./foundation-comms.defaultdatasource.dataserverparams.md)
|
4
|
+
|
5
|
+
## DefaultDatasource.dataserverParams property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
get dataserverParams(): DataserverParams;
|
11
|
+
```
|
@@ -23,19 +23,21 @@ export declare class DefaultDatasource implements Datasource
|
|
23
23
|
|
24
24
|
| Property | Modifiers | Type | Description |
|
25
25
|
| --- | --- | --- | --- |
|
26
|
+
| [allParams](./foundation-comms.defaultdatasource.allparams.md) | <code>readonly</code> | any | |
|
26
27
|
| [auth](./foundation-comms.defaultdatasource.auth.md) | <code>protected</code> | [Auth](./foundation-comms.auth.md) | |
|
27
28
|
| [availableIndexes](./foundation-comms.defaultdatasource.availableindexes.md) | | [IndexDetail](./foundation-comms.indexdetail.md)<!-- -->\[\] | |
|
28
29
|
| [config](./foundation-comms.defaultdatasource.config.md) | <code>protected</code> | [DatasourceConfig](./foundation-comms.datasourceconfig.md) | |
|
29
30
|
| [connect](./foundation-comms.defaultdatasource.connect.md) | <code>protected</code> | [Connect](./foundation-comms.connect.md) | |
|
30
31
|
| [customRequestFields](./foundation-comms.defaultdatasource.customrequestfields.md) | | [MetadataDetail](./foundation-comms.metadatadetail.md)<!-- -->\[\] | |
|
32
|
+
| [dataserverParams](./foundation-comms.defaultdatasource.dataserverparams.md) | <code>readonly</code> | [DataserverParams](./foundation-comms.dataserverparams.md) | |
|
31
33
|
| [fetchMetadataRequired](./foundation-comms.defaultdatasource.fetchmetadatarequired.md) | | boolean | |
|
32
34
|
| [fieldMetadata](./foundation-comms.defaultdatasource.fieldmetadata.md) | | [FieldMetadata](./foundation-comms.fieldmetadata.md)<!-- -->\[\] | |
|
33
35
|
| [initialized](./foundation-comms.defaultdatasource.initialized.md) | <code>readonly</code> | boolean | Indicates whether the datasource has been initialized. |
|
34
36
|
| [options](./foundation-comms.defaultdatasource.options.md) | <code>protected</code> | [DatasourceOptions](./foundation-comms.datasourceoptions.md) | |
|
35
37
|
| [originalFieldDef](./foundation-comms.defaultdatasource.originalfielddef.md) | | [MetadataDetail](./foundation-comms.metadatadetail.md)<!-- -->\[\] | |
|
36
|
-
| [params](./foundation-comms.defaultdatasource.params.md) | <code>readonly</code> | any | |
|
37
38
|
| [readOnly](./foundation-comms.defaultdatasource.readonly.md) | | boolean | |
|
38
39
|
| [requestFields](./foundation-comms.defaultdatasource.requestfields.md) | | [MetadataDetail](./foundation-comms.metadatadetail.md)<!-- -->\[\] | |
|
40
|
+
| [requestParams](./foundation-comms.defaultdatasource.requestparams.md) | <code>readonly</code> | [RequestParams](./foundation-comms.requestparams.md) | |
|
39
41
|
| [resources](./foundation-comms.defaultdatasource.resources.md) | <code>protected</code> | [GenesisResources](./foundation-comms.genesisresources.md) | |
|
40
42
|
| [resourceType](./foundation-comms.defaultdatasource.resourcetype.md) | | [ResourceType](./foundation-comms.resourcetype.md) | |
|
41
43
|
| [startStreamRequired](./foundation-comms.defaultdatasource.startstreamrequired.md) | | boolean | |
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [@genesislcap/foundation-comms](./foundation-comms.md) > [DefaultDatasource](./foundation-comms.defaultdatasource.md) > [requestParams](./foundation-comms.defaultdatasource.requestparams.md)
|
4
|
+
|
5
|
+
## DefaultDatasource.requestParams property
|
6
|
+
|
7
|
+
**Signature:**
|
8
|
+
|
9
|
+
```typescript
|
10
|
+
get requestParams(): RequestParams;
|
11
|
+
```
|
@@ -152,6 +152,7 @@
|
|
152
152
|
| [CommitParams](./foundation-comms.commitparams.md) | Parameters for a COMMIT message |
|
153
153
|
| [ConnectionStatus](./foundation-comms.connectionstatus.md) | The connection status of the Genesis client. |
|
154
154
|
| [CredentialData\_2](./foundation-comms.credentialdata_2.md) | Represents user credentials. |
|
155
|
+
| [DataserverParams](./foundation-comms.dataserverparams.md) | Parameters for a DATA\_LOGON messages |
|
155
156
|
| [DatasourceStatus](./foundation-comms.datasourcestatus.md) | DatasourceStatus. |
|
156
157
|
| [DatasourceStatusChangedEvent](./foundation-comms.datasourcestatuschangedevent.md) | DatasourceStatusChangedEvent. |
|
157
158
|
| [FieldMetadata](./foundation-comms.fieldmetadata.md) | Field Metadata definition. |
|
@@ -179,7 +180,7 @@
|
|
179
180
|
| [RefreshCredentialsInput](./foundation-comms.refreshcredentialsinput.md) | Represents refresh credentials for a user. |
|
180
181
|
| [ReplyDetail](./foundation-comms.replydetail.md) | Reply Detail definition. |
|
181
182
|
| [RequestDetailsParam](./foundation-comms.requestdetailsparam.md) | |
|
182
|
-
| [RequestParams](./foundation-comms.requestparams.md) | Parameters for a
|
183
|
+
| [RequestParams](./foundation-comms.requestparams.md) | Parameters for a REQ\_ messages |
|
183
184
|
| [RequestServerResult](./foundation-comms.requestserverresult.md) | Raw result from a REQUEST\_SERVER data fetch. |
|
184
185
|
| [ResourceHealth](./foundation-comms.resourcehealth.md) | ResourceHealth. |
|
185
186
|
| [ResourceItem](./foundation-comms.resourceitem.md) | |
|
@@ -9,7 +9,7 @@ Creates a message to logon to a DATASERVER. Used for data fetching.
|
|
9
9
|
**Signature:**
|
10
10
|
|
11
11
|
```typescript
|
12
|
-
createDataLogonMessage(resourceName: string, params?:
|
12
|
+
createDataLogonMessage(resourceName: string, params?: DataserverParams): Message<MessageDetails.DataserverRequest>;
|
13
13
|
```
|
14
14
|
|
15
15
|
## Parameters
|
@@ -17,7 +17,7 @@ createDataLogonMessage(resourceName: string, params?: any): Message<MessageDetai
|
|
17
17
|
| Parameter | Type | Description |
|
18
18
|
| --- | --- | --- |
|
19
19
|
| resourceName | string | The resource name. |
|
20
|
-
| params |
|
20
|
+
| params | [DataserverParams](./foundation-comms.dataserverparams.md) | _(Optional)_ The additional parameters. |
|
21
21
|
|
22
22
|
**Returns:**
|
23
23
|
|
package/docs/api-report.md
CHANGED
@@ -370,6 +370,19 @@ export function criteriaFiltersToFields(filters: string): Record<string, string>
|
|
370
370
|
export class CurrentUser extends DefaultUser implements User {
|
371
371
|
}
|
372
372
|
|
373
|
+
// @public
|
374
|
+
export type DataserverParams = {
|
375
|
+
DATASOURCE_NAME?: string;
|
376
|
+
CRITERIA_MATCH?: string;
|
377
|
+
MAX_ROWS?: number;
|
378
|
+
VIEW_NUMBER?: number;
|
379
|
+
FIELDS?: string;
|
380
|
+
MAX_VIEW?: number;
|
381
|
+
MOVING_VIEW?: boolean;
|
382
|
+
ORDER_BY?: string;
|
383
|
+
REVERSE?: boolean;
|
384
|
+
};
|
385
|
+
|
373
386
|
// @public
|
374
387
|
export function dataServerResultFilter(result: RawDataServerResult, rowId?: string): FilteredDataServerResult;
|
375
388
|
|
@@ -1081,6 +1094,8 @@ export const defaultCredentialRequestOptions: GetCredentialOptions;
|
|
1081
1094
|
export class DefaultDatasource implements Datasource {
|
1082
1095
|
constructor(connect: Connect, auth: Auth, resources: GenesisResources, config: DatasourceConfig);
|
1083
1096
|
// (undocumented)
|
1097
|
+
get allParams(): any;
|
1098
|
+
// (undocumented)
|
1084
1099
|
protected auth: Auth;
|
1085
1100
|
// (undocumented)
|
1086
1101
|
availableIndexes: IndexDetail[];
|
@@ -1090,6 +1105,8 @@ export class DefaultDatasource implements Datasource {
|
|
1090
1105
|
protected connect: Connect;
|
1091
1106
|
// (undocumented)
|
1092
1107
|
customRequestFields: MetadataDetail[];
|
1108
|
+
// (undocumented)
|
1109
|
+
get dataserverParams(): DataserverParams;
|
1093
1110
|
// Warning: (ae-unresolved-inheritdoc-reference) The @inheritDoc reference could not be resolved: The reference is ambiguous because "Datasource" has more than one declaration; you need to add a TSDoc member reference selector
|
1094
1111
|
//
|
1095
1112
|
// (undocumented)
|
@@ -1113,14 +1130,14 @@ export class DefaultDatasource implements Datasource {
|
|
1113
1130
|
// (undocumented)
|
1114
1131
|
originalFieldDef: MetadataDetail[];
|
1115
1132
|
// (undocumented)
|
1116
|
-
get params(): any;
|
1117
|
-
// (undocumented)
|
1118
1133
|
readOnly: boolean;
|
1119
1134
|
// @internal (undocumented)
|
1120
1135
|
protected reportStatus(detail?: Partial<DatasourceStatus>): void;
|
1121
1136
|
// (undocumented)
|
1122
1137
|
requestFields: MetadataDetail[];
|
1123
1138
|
// (undocumented)
|
1139
|
+
get requestParams(): RequestParams;
|
1140
|
+
// (undocumented)
|
1124
1141
|
protected resources: GenesisResources;
|
1125
1142
|
// (undocumented)
|
1126
1143
|
resourceType: ResourceType;
|
@@ -1972,7 +1989,7 @@ export interface MessageBuilder {
|
|
1972
1989
|
createChangePasswordMessage(username: string, oldPassword: string, newPassword: string): Message<MessageDetails.ChangePassword>;
|
1973
1990
|
createCommitMessage<T = any>(eventName: string, params?: CommitParams): Message<T>;
|
1974
1991
|
createDataLogoffMessage<T = any>(sourceRef: string): Message<T>;
|
1975
|
-
createDataLogonMessage(resourceName: string, params?:
|
1992
|
+
createDataLogonMessage(resourceName: string, params?: DataserverParams): Message<MessageDetails.DataserverRequest>;
|
1976
1993
|
createForgotPasswordMessage(username: string, returnUrl: string, requester?: string): Message<MessageDetails.ForgotPassword>;
|
1977
1994
|
createForgotPasswordTokenMessage(username: string, resetToken: string, newPassword: string, requester?: string): Message<MessageDetails.ForgotPasswordToken>;
|
1978
1995
|
// (undocumented)
|
@@ -2292,6 +2309,7 @@ export type ReplyDetail = {
|
|
2292
2309
|
export type RequestDetailsParam = {
|
2293
2310
|
MAX_ROWS?: number;
|
2294
2311
|
CRITERIA_MATCH?: string;
|
2312
|
+
VIEW_NUMBER?: number;
|
2295
2313
|
};
|
2296
2314
|
|
2297
2315
|
// @public
|
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.214.
|
4
|
+
"version": "14.214.3",
|
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.214.
|
79
|
-
"@genesislcap/genx": "14.214.
|
80
|
-
"@genesislcap/rollup-builder": "14.214.
|
81
|
-
"@genesislcap/ts-builder": "14.214.
|
82
|
-
"@genesislcap/uvu-playwright-builder": "14.214.
|
83
|
-
"@genesislcap/vite-builder": "14.214.
|
84
|
-
"@genesislcap/webpack-builder": "14.214.
|
78
|
+
"@genesislcap/foundation-testing": "14.214.3",
|
79
|
+
"@genesislcap/genx": "14.214.3",
|
80
|
+
"@genesislcap/rollup-builder": "14.214.3",
|
81
|
+
"@genesislcap/ts-builder": "14.214.3",
|
82
|
+
"@genesislcap/uvu-playwright-builder": "14.214.3",
|
83
|
+
"@genesislcap/vite-builder": "14.214.3",
|
84
|
+
"@genesislcap/webpack-builder": "14.214.3",
|
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.214.
|
92
|
-
"@genesislcap/foundation-logger": "14.214.
|
93
|
-
"@genesislcap/foundation-user": "14.214.
|
94
|
-
"@genesislcap/foundation-utils": "14.214.
|
91
|
+
"@genesislcap/foundation-broadcast-channel": "14.214.3",
|
92
|
+
"@genesislcap/foundation-logger": "14.214.3",
|
93
|
+
"@genesislcap/foundation-user": "14.214.3",
|
94
|
+
"@genesislcap/foundation-utils": "14.214.3",
|
95
95
|
"@microsoft/fast-element": "^1.12.0",
|
96
96
|
"@microsoft/fast-foundation": "^2.49.4",
|
97
97
|
"analytics": "^0.8.0",
|
@@ -111,5 +111,5 @@
|
|
111
111
|
"publishConfig": {
|
112
112
|
"access": "public"
|
113
113
|
},
|
114
|
-
"gitHead": "
|
114
|
+
"gitHead": "0fa68769a2f17b633fa1a558cdfbd0fe10ecaf64"
|
115
115
|
}
|