@genesislcap/foundation-comms 14.200.1-alpha-e974201.0 → 14.202.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 +4 -3
- package/dist/dts/connect/connect.d.ts.map +1 -1
- package/dist/dts/connect/message.d.ts +14 -5
- package/dist/dts/connect/message.d.ts.map +1 -1
- package/dist/dts/datasource/datasource.d.ts +21 -16
- package/dist/dts/datasource/datasource.d.ts.map +1 -1
- package/dist/dts/datasource/datasource.types.d.ts +37 -17
- package/dist/dts/datasource/datasource.types.d.ts.map +1 -1
- package/dist/dts/metadata/metadata.types.d.ts +23 -1
- package/dist/dts/metadata/metadata.types.d.ts.map +1 -1
- package/dist/dts/testing/mocks/datasource/datasource.d.ts +4 -2
- package/dist/dts/testing/mocks/datasource/datasource.d.ts.map +1 -1
- package/dist/esm/connect/connect.js +2 -2
- package/dist/esm/connect/message.js +2 -1
- package/dist/esm/datasource/datasource.js +63 -32
- package/dist/esm/metadata/metadata.utils.js +2 -1
- package/dist/esm/testing/mocks/datasource/datasource.js +14 -2
- package/dist/foundation-comms.api.json +510 -93
- package/dist/foundation-comms.d.ts +105 -44
- package/docs/api/foundation-comms.connect.getmorerows.md +3 -2
- package/docs/api/foundation-comms.connect.md +1 -1
- package/docs/api/foundation-comms.datasource.destroy.md +5 -1
- package/docs/api/foundation-comms.datasource.init.md +2 -1
- package/docs/api/foundation-comms.datasource.md +4 -4
- package/docs/api/foundation-comms.datasource.snapshot.md +3 -3
- package/docs/api/foundation-comms.datasource.snapshotfiltered.md +2 -2
- package/docs/api/{foundation-comms.datasource.deinit.md → foundation-comms.datasource.startstream.md} +5 -9
- package/docs/api/foundation-comms.datasource.validresourcename.md +5 -0
- package/docs/api/foundation-comms.datasourcemetadata.customrequestfields.md +11 -0
- package/docs/api/foundation-comms.datasourcemetadata.md +1 -0
- package/docs/api/foundation-comms.datasourceoptions.criteria.md +5 -0
- package/docs/api/foundation-comms.datasourceoptions.disablepolling.md +5 -0
- package/docs/api/foundation-comms.datasourceoptions.fields.md +5 -0
- package/docs/api/foundation-comms.datasourceoptions.maxrows.md +5 -0
- package/docs/api/foundation-comms.datasourceoptions.maxview.md +5 -0
- package/docs/api/foundation-comms.datasourceoptions.md +2 -0
- package/docs/api/foundation-comms.datasourceoptions.movingview.md +5 -0
- package/docs/api/foundation-comms.datasourceoptions.orderby.md +5 -0
- package/docs/api/foundation-comms.datasourceoptions.request.md +5 -0
- package/docs/api/foundation-comms.datasourceoptions.requestautosetup.md +18 -0
- package/docs/api/foundation-comms.datasourceoptions.reverse.md +5 -0
- package/docs/api/foundation-comms.datasourceoptions.viewnumber.md +18 -0
- package/docs/api/foundation-comms.defaultconnect.getmorerows.md +2 -1
- package/docs/api/foundation-comms.defaultconnect.md +1 -1
- package/docs/api/foundation-comms.defaultdatasource.customrequestfields.md +12 -0
- package/docs/api/foundation-comms.defaultdatasource.destroy.md +5 -1
- package/docs/api/foundation-comms.defaultdatasource.init.md +2 -1
- package/docs/api/foundation-comms.defaultdatasource.md +6 -4
- package/docs/api/foundation-comms.defaultdatasource.snapshot.md +8 -1
- package/docs/api/{foundation-comms.defaultdatasource.deinit.md → foundation-comms.defaultdatasource.startstream.md} +4 -4
- package/docs/api/foundation-comms.defaultdatasource.startstreamrequired.md +12 -0
- package/docs/api/foundation-comms.defaultmessagebuilder.createmorerowsmessage.md +3 -2
- package/docs/api/foundation-comms.defaultmessagebuilder.md +1 -1
- package/docs/api/foundation-comms.md +2 -0
- package/docs/api/foundation-comms.messagebuilder.createmorerowsmessage.md +4 -3
- package/docs/api/foundation-comms.messagebuilder.createrequestmessage.md +2 -2
- package/docs/api/foundation-comms.messagebuilder.md +1 -1
- package/docs/api/foundation-comms.messagedetails.morerows.md +1 -0
- package/docs/api/foundation-comms.metadata.md +5 -2
- package/docs/api/foundation-comms.metadatadetail.md +3 -0
- package/docs/api/foundation-comms.replydetail.md +21 -0
- package/docs/api/foundation-comms.requestdetailsparam.md +15 -0
- package/docs/api/foundation-comms.requestparams.md +3 -1
- package/docs/api/foundation-comms.requestserverresult.md +5 -0
- package/docs/api-report.md +59 -17
- package/package.json +13 -13
@@ -110,10 +110,11 @@ export interface Connect {
|
|
110
110
|
/**
|
111
111
|
* Requests additional rows of data for the specified source reference.
|
112
112
|
* @public
|
113
|
-
* @param sourceRef -
|
113
|
+
* @param sourceRef - An existing source reference to request more rows for.
|
114
|
+
* @param viewNumber - The specific view number to request more rows for. Default: previous view number result + 1.
|
114
115
|
* @returns A promise that resolves with the additional rows of data.
|
115
116
|
*/
|
116
|
-
getMoreRows(sourceRef: string): Promise<Message>;
|
117
|
+
getMoreRows(sourceRef: string, viewNumber?: number): Promise<Message>;
|
117
118
|
/**
|
118
119
|
* Requests additional columns for the specified source reference.
|
119
120
|
* @public
|
@@ -198,7 +199,7 @@ export declare class DefaultConnect implements Connect {
|
|
198
199
|
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
199
200
|
streamState(resourceName: string, onMessage?: Function, onError?: Function, params?: any, initialState?: any[]): Observable<any[]>;
|
200
201
|
streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
201
|
-
getMoreRows(sourceRef: string): Promise<Message>;
|
202
|
+
getMoreRows(sourceRef: string, viewNumber?: number): Promise<Message>;
|
202
203
|
getMoreColumns(sourceRef: string): Promise<Message>;
|
203
204
|
dataLogoff(streamSourceRef: string): Promise<Message>;
|
204
205
|
getMetadata(resourceName: string, useCache?: boolean): Promise<Metadata>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"connect.d.ts","sourceRoot":"","sources":["../../../src/connect/connect.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAQ,MAAM,MAAM,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,EAAE,oBAAoB,EA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,OAAO,CAAC;IAMrD,WAAW,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,GAAE,OAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAmC9E,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;IASxE,qBAAqB,CAAC,MAAM,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAMvD,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC;CAOrF;AAID;;;GAGG;AACH,eAAO,MAAM,SAAS,+DAAkE,CAAC;AAEzF;;;GAGG;AACH,eAAO,MAAM,OAAO,+DAEnB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,UAAU,IAAI,OAAO,CAEpC"}
|
@@ -136,6 +136,7 @@ export declare namespace MessageDetails {
|
|
136
136
|
*/
|
137
137
|
type MoreRows = {
|
138
138
|
SOURCE_REF: string;
|
139
|
+
VIEW_NUMBER?: number;
|
139
140
|
};
|
140
141
|
/**
|
141
142
|
* Details type to update columns
|
@@ -258,12 +259,19 @@ export type ResourcesMessage = {
|
|
258
259
|
SOURCE_REF: string;
|
259
260
|
RESOURCES: ResourceItem[];
|
260
261
|
};
|
262
|
+
/**
|
263
|
+
* @public
|
264
|
+
*/
|
265
|
+
export type RequestDetailsParam = {
|
266
|
+
MAX_ROWS?: number;
|
267
|
+
CRITERIA_MATCH?: string;
|
268
|
+
};
|
261
269
|
/**
|
262
270
|
* Parameters for a REQUEST message
|
263
271
|
* @public
|
264
272
|
*/
|
265
273
|
export type RequestParams = {
|
266
|
-
DETAILS?: any;
|
274
|
+
DETAILS?: RequestDetailsParam | any;
|
267
275
|
REQUEST?: any;
|
268
276
|
};
|
269
277
|
/**
|
@@ -342,10 +350,11 @@ export interface MessageBuilder {
|
|
342
350
|
*
|
343
351
|
* @remarks MORE_ROWS
|
344
352
|
* @public
|
345
|
-
* @param sourceRef - The source reference.
|
353
|
+
* @param sourceRef - The unique source reference.
|
354
|
+
* @param viewNumber - The desired view number. Default:always the first view, if not spceified.
|
346
355
|
* @returns The more rows message.
|
347
356
|
*/
|
348
|
-
createMoreRowsMessage(sourceRef: string): Message
|
357
|
+
createMoreRowsMessage(sourceRef: string, viewNumber?: number): Message<MessageDetails.MoreRows>;
|
349
358
|
/**
|
350
359
|
* Creates a message to request more columns.
|
351
360
|
*
|
@@ -365,7 +374,7 @@ export interface MessageBuilder {
|
|
365
374
|
* @param params - The additional parameters.
|
366
375
|
* @returns The request message.
|
367
376
|
*/
|
368
|
-
createRequestMessage<T = any>(resourceName: string, params?:
|
377
|
+
createRequestMessage<T = any>(resourceName: string, params?: RequestParams): Message<T>;
|
369
378
|
/**
|
370
379
|
* Creates a message for getting list of resources.
|
371
380
|
*
|
@@ -475,7 +484,7 @@ export declare class DefaultMessageBuilder implements MessageBuilder {
|
|
475
484
|
createChangePasswordMessage(username: string, oldPassword: string, newPassword: string): Message<MessageDetails.ChangePassword>;
|
476
485
|
createForgotPasswordMessage(username: string, returnUrl: string, requester?: string): Message<MessageDetails.ForgotPassword>;
|
477
486
|
createForgotPasswordTokenMessage(username: string, resetToken: string, newPassword: string, requester?: string): Message<MessageDetails.ForgotPasswordToken>;
|
478
|
-
createMoreRowsMessage(sourceRef: string): Message
|
487
|
+
createMoreRowsMessage(sourceRef: string, viewNumber?: number): Message<MessageDetails.MoreRows>;
|
479
488
|
createMoreColumnsMessage(sourceRef: string): Message;
|
480
489
|
createHTTPHeadersFromMessage(message: Message, contentType?: string): HeadersInit;
|
481
490
|
/** {@inheritDoc MessageBuilder.createHeartbeatPingMessage} */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","s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AC,EAAE,YAAY,GAAG,OAAO,CAAC,CAAC,CAAC;IASlF,yBAAyB,IAAI,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC;IAYjE,2BAA2B,CAChC,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,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"}
|
@@ -15,6 +15,7 @@ export interface DatasourceMetadata {
|
|
15
15
|
readonly originalFieldDef: MetadataDetail[];
|
16
16
|
readonly fieldMetadata: FieldMetadata[];
|
17
17
|
readonly requestFields: MetadataDetail[];
|
18
|
+
readonly customRequestFields: MetadataDetail[];
|
18
19
|
}
|
19
20
|
/**
|
20
21
|
* Datasource interface.
|
@@ -51,6 +52,7 @@ export interface Datasource extends DatasourceMetadata {
|
|
51
52
|
/**
|
52
53
|
* Indicates whether the resourceName is valid or not.
|
53
54
|
* @public
|
55
|
+
* @deprecated - Please use {@link (GenesisResources:interface).isValidResource} instead.
|
54
56
|
*/
|
55
57
|
validResourceName(resourceName: string): boolean;
|
56
58
|
/**
|
@@ -58,15 +60,21 @@ export interface Datasource extends DatasourceMetadata {
|
|
58
60
|
* @public
|
59
61
|
* @param options - The options to initialize the datasource with.
|
60
62
|
* @param fetchMeta - Optional flag to fetch metadata for the datasource. Defaults to true.
|
63
|
+
* @param startStream - Optional flag to start the data stream. Defaults to true.
|
61
64
|
* @returns A promise that resolves with a boolean indicating whether the initialization was successful.
|
62
65
|
*/
|
63
|
-
init(options: DatasourceOptions, fetchMeta?: boolean): Promise<boolean>;
|
66
|
+
init(options: DatasourceOptions, fetchMeta?: boolean, startStream?: boolean): Promise<boolean>;
|
64
67
|
/**
|
65
|
-
*
|
68
|
+
* Starts the data stream for the datasource.
|
69
|
+
* @public
|
70
|
+
*/
|
71
|
+
startStream(): Promise<void>;
|
72
|
+
/**
|
73
|
+
* Destroys the datasource.
|
66
74
|
* @remarks This should be called to clean up any resources when the datasource is no longer needed.
|
67
75
|
* @public
|
68
76
|
*/
|
69
|
-
|
77
|
+
destroy(): void;
|
70
78
|
/**
|
71
79
|
* Fetches metadata for the specified resource name.
|
72
80
|
* @public
|
@@ -77,15 +85,15 @@ export interface Datasource extends DatasourceMetadata {
|
|
77
85
|
/**
|
78
86
|
* Takes a snapshot of the data in the datasource.
|
79
87
|
* @public
|
80
|
-
* @param
|
88
|
+
* @param overrideParams - Optional parameters for taking the snapshot.
|
81
89
|
*/
|
82
|
-
snapshot(
|
90
|
+
snapshot(overrideParams?: any): Promise<Message>;
|
83
91
|
/**
|
84
92
|
* Takes a filtered snapshot of the data in the datasource.
|
85
93
|
* @public
|
86
94
|
* @param rowId - Optional ID of the row to filter.
|
87
95
|
*/
|
88
|
-
snapshotFiltered(rowId?: string): any
|
96
|
+
snapshotFiltered(rowId?: string): Promise<any[]>;
|
89
97
|
/**
|
90
98
|
* Updates the data in the datasource with the specified data.
|
91
99
|
* @public
|
@@ -150,13 +158,6 @@ export interface Datasource extends DatasourceMetadata {
|
|
150
158
|
* @returns A promise that resolves when the item has been updated.
|
151
159
|
*/
|
152
160
|
updateItem?(itemId: string, data: any): Promise<void>;
|
153
|
-
/**
|
154
|
-
* Destroy the datasource.
|
155
|
-
* @privateRemarks
|
156
|
-
* I suspect we may need to call this from datasource disconnectedCallbacks etc to ensure we fully clean up.
|
157
|
-
* @public
|
158
|
-
*/
|
159
|
-
destroy(): void;
|
160
161
|
}
|
161
162
|
/**
|
162
163
|
* The default implementation for the Datasource interface.
|
@@ -173,12 +174,16 @@ export declare class DefaultDatasource implements Datasource {
|
|
173
174
|
status: DatasourceStatus;
|
174
175
|
/** {@inheritDoc DatasourceMetadata.fetchMetadataRequired} */
|
175
176
|
fetchMetadataRequired: boolean;
|
177
|
+
/** {@inheritDoc DatasourceMetadata.startStream} */
|
178
|
+
startStreamRequired: boolean;
|
176
179
|
/** {@inheritDoc DatasourceMetadata.originalFieldDef} */
|
177
180
|
originalFieldDef: MetadataDetail[];
|
178
181
|
/** {@inheritDoc DatasourceMetadata.fieldMetadata} */
|
179
182
|
fieldMetadata: FieldMetadata[];
|
180
183
|
/** {@inheritDoc DatasourceMetadata.requestFields} */
|
181
184
|
requestFields: MetadataDetail[];
|
185
|
+
/** {@inheritDoc DatasourceMetadata.customRequestFields} */
|
186
|
+
customRequestFields: MetadataDetail[];
|
182
187
|
/** {@inheritDoc DatasourceMetadata.availableIndexes} */
|
183
188
|
availableIndexes: IndexDetail[];
|
184
189
|
/** {@inheritDoc Datasource.initialized} */
|
@@ -192,12 +197,12 @@ export declare class DefaultDatasource implements Datasource {
|
|
192
197
|
* @deprecated - Please use {@link (GenesisResources:interface).isValidResource} instead.
|
193
198
|
*/
|
194
199
|
validResourceName(resourceName: string): boolean;
|
195
|
-
init(options: DatasourceOptions, fetchMeta?: boolean): Promise<boolean>;
|
196
|
-
|
200
|
+
init(options: DatasourceOptions, fetchMeta?: boolean, startStream?: boolean): Promise<boolean>;
|
201
|
+
startStream(): Promise<void>;
|
197
202
|
/** {@inheritDoc Datasource.destroy} */
|
198
203
|
destroy(): void;
|
199
204
|
get params(): any;
|
200
|
-
snapshot(): Promise<Message>;
|
205
|
+
snapshot(overrideParams?: any): Promise<Message>;
|
201
206
|
snapshotFiltered(rowId?: string): Promise<any[]>;
|
202
207
|
private createStream;
|
203
208
|
private createDataserverStream;
|
@@ -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;AAChE,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;
|
1
|
+
{"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/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AoC,EAC/C,WAAW,GAAE,OAAkC,GAC9C,OAAO,CAAC,OAAO,CAAC;IAkDb,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;IAMlC,uCAAuC;IACvC,OAAO;IAaP,IAAI,MAAM,QAoCT;IAEK,QAAQ,CAAC,cAAc,CAAC,EAAE,GAAG,GAAG,OAAO,CAAC,OAAO,CAAC;IA0ChD,gBAAgB,CAAC,KAAK,GAAE,MAAkB,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;YAYnD,YAAY;YAeZ,sBAAsB;IAMpC,OAAO,CAAC,kBAAkB;cAaV,qBAAqB,CAAC,YAAY,EAAE,MAAM;IA2B1D;;OAEG;IACH,SAAS,CAAC,YAAY,CAAC,MAAM,GAAE,OAAO,CAAC,gBAAgB,CAAM;IAa7D;;OAEG;IACH,SAAS,CAAC,eAAe,CAAC,MAAM,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAAG,gBAAgB;CAY/E;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,kEAAwE,CAAC;AAEhG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,aAAa,IAAI,UAAU,CAE1C"}
|
@@ -47,54 +47,74 @@ export interface Dataview {
|
|
47
47
|
*/
|
48
48
|
export interface DatasourceOptions {
|
49
49
|
/**
|
50
|
-
* The
|
51
|
-
*/
|
52
|
-
criteria?: string;
|
53
|
-
/**
|
54
|
-
* The fields to include in the returned data.
|
50
|
+
* The name of the resource to use for the datasource.
|
55
51
|
*/
|
56
|
-
|
52
|
+
resourceName?: string;
|
57
53
|
/**
|
58
54
|
* Whether the datasource is a snapshot or not.
|
59
55
|
*/
|
60
56
|
isSnapshot?: boolean;
|
57
|
+
/**
|
58
|
+
* The criteria used to filter data in the datasource.
|
59
|
+
* @remarks Works with both DATASERVER and REQUEST_SERVER resources.
|
60
|
+
*/
|
61
|
+
criteria?: string;
|
61
62
|
/**
|
62
63
|
* The maximum number of rows to return from the datasource.
|
64
|
+
* @remarks Works with both DATASERVER and REQUEST_SERVER resources.
|
63
65
|
*/
|
64
66
|
maxRows?: number;
|
67
|
+
/**
|
68
|
+
* The current page/"view" number being displayed.
|
69
|
+
* @remarks Works with both DATASERVER and REQUEST_SERVER resources.
|
70
|
+
*/
|
71
|
+
viewNumber?: number;
|
72
|
+
/**
|
73
|
+
* The fields to include in the returned data.
|
74
|
+
* @remarks Only works with DATASERVER resources.
|
75
|
+
*/
|
76
|
+
fields?: string;
|
65
77
|
/**
|
66
78
|
* The maximum number of rows to track as part of a client "view"
|
79
|
+
* @remarks Only works with DATASERVER resources.
|
67
80
|
*/
|
68
81
|
maxView?: number;
|
69
82
|
/**
|
70
83
|
* Defines the behaviour of the client view when new rows are received in real time.
|
84
|
+
* @remarks Only works with DATASERVER resources.
|
71
85
|
*/
|
72
86
|
movingView?: boolean;
|
73
87
|
/**
|
74
|
-
* The
|
75
|
-
* @remarks
|
88
|
+
* The field to use for sorting the data.
|
89
|
+
* @remarks Only works with DATASERVER.
|
76
90
|
*/
|
77
|
-
|
91
|
+
orderBy?: string;
|
92
|
+
/**
|
93
|
+
* Whether to return the data in reverse order or not.
|
94
|
+
* @remarks Only works with DATASERVER resources.
|
95
|
+
*/
|
96
|
+
reverse?: boolean;
|
78
97
|
/**
|
79
98
|
* Whether to disable polling when using request/reply
|
99
|
+
* @remarks Only works with REQUEST_SERVER resources.
|
80
100
|
*/
|
81
101
|
disablePolling?: boolean;
|
82
102
|
/**
|
83
|
-
* The
|
103
|
+
* The polling interval to use when using request/reply.
|
104
|
+
* @remarks Only works with REQUEST_SERVER resources.
|
105
|
+
* @remarks in milliseconds
|
84
106
|
*/
|
85
|
-
|
107
|
+
pollingInterval?: number;
|
86
108
|
/**
|
87
109
|
* The request to send to the server.
|
110
|
+
* @remarks Only works with REQUEST_SERVER resources.
|
88
111
|
*/
|
89
112
|
request?: any;
|
90
113
|
/**
|
91
|
-
*
|
114
|
+
* Whether the Datasource service will setup RQUEST object based on metadata.
|
115
|
+
* @remarks Default is `true`. Only works with REQUEST_SERVER resources.
|
92
116
|
*/
|
93
|
-
|
94
|
-
/**
|
95
|
-
* Whether to return the data in reverse order or not.
|
96
|
-
*/
|
97
|
-
reverse?: boolean;
|
117
|
+
requestAutoSetup?: boolean;
|
98
118
|
}
|
99
119
|
/**
|
100
120
|
* DatasourceStatus.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"datasource.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE;;;GAGG;AACH,oBAAY,YAAY;IACtB,UAAU,eAAe;IACzB,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;CAClC;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACjB,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAClB,MAAM,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACvB;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C;;OAEG;IACH,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ;;OAEG;IACH,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,
|
1
|
+
{"version":3,"file":"datasource.types.d.ts","sourceRoot":"","sources":["../../../src/datasource/datasource.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAEhE;;;GAGG;AACH,oBAAY,YAAY;IACtB,UAAU,eAAe;IAC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;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,GAAG,YAAY,EAAE,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,8BAA8B,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,4BAA4B,GAAG,WAAW,CAAC,gBAAgB,CAAC,CAAC"}
|
@@ -6,9 +6,12 @@ import { JSONSchema7 } from 'json-schema';
|
|
6
6
|
export type MetadataDetail = {
|
7
7
|
NAME: string;
|
8
8
|
TYPE: string;
|
9
|
+
DESCRIPTION?: string;
|
10
|
+
JSON_TYPE?: string;
|
9
11
|
VALID_VALUES?: string;
|
10
12
|
READ_ONLY?: boolean;
|
11
13
|
OPTIONAL?: boolean;
|
14
|
+
NULLABLE?: boolean;
|
12
15
|
UI_LABEL?: string;
|
13
16
|
};
|
14
17
|
/**
|
@@ -24,14 +27,28 @@ export type IndexDetail = {
|
|
24
27
|
* @public
|
25
28
|
*/
|
26
29
|
export type Metadata = {
|
30
|
+
DEFINITIONS?: Record<string, any>;
|
31
|
+
DESCRIPTION?: string;
|
27
32
|
FIELD?: MetadataDetail[];
|
28
|
-
|
33
|
+
REPLY?: ReplyDetail;
|
29
34
|
REPLY_FIELD?: MetadataDetail[];
|
30
35
|
REQUEST_FIELD?: MetadataDetail[];
|
31
36
|
NAME?: string;
|
32
37
|
TYPE?: string;
|
38
|
+
INDEXES?: IndexDetail[];
|
33
39
|
ERROR?: string;
|
34
40
|
};
|
41
|
+
/**
|
42
|
+
* Reply Detail definition.
|
43
|
+
* @public
|
44
|
+
*/
|
45
|
+
export type ReplyDetail = {
|
46
|
+
DEFINITIONS?: Record<string, any>;
|
47
|
+
DESCRIPTION?: string;
|
48
|
+
FIELD: MetadataDetail[];
|
49
|
+
NAME: string;
|
50
|
+
[key: string]: any;
|
51
|
+
};
|
35
52
|
/**
|
36
53
|
* Schema Response definition.
|
37
54
|
* @public
|
@@ -89,6 +106,11 @@ export type RequestServerResult = {
|
|
89
106
|
SOURCE_REF?: string;
|
90
107
|
REPLY: any[];
|
91
108
|
MESSAGE_TYPE?: string;
|
109
|
+
MORE_ROWS?: boolean;
|
110
|
+
NEXT_VIEW?: number;
|
111
|
+
PARAMETRIC_TYPE?: string;
|
112
|
+
ROWS_COUNT?: number;
|
113
|
+
SEQUENCE_ID?: number;
|
92
114
|
};
|
93
115
|
/**
|
94
116
|
* Available types for a field metadata.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"metadata.types.d.ts","sourceRoot":"","sources":["../../../src/metadata/metadata.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,KAAK,CAAC,EAAE,cAAc,EAAE,CAAC;IACzB,
|
1
|
+
{"version":3,"file":"metadata.types.d.ts","sourceRoot":"","sources":["../../../src/metadata/metadata.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C;;;GAGG;AACH,MAAM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G;AACH,oBAAY,aAAa;IACvB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,MAAM,WAAW;CAClB;AAED;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,aAAa,CAAC;IACpB,WAAW,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;CAUrB,CAAC"}
|
@@ -11,12 +11,14 @@ export declare class DatasourceMock implements Datasource {
|
|
11
11
|
originalFieldDef: MetadataDetail[];
|
12
12
|
fieldMetadata: FieldMetadata[];
|
13
13
|
requestFields: MetadataDetail[];
|
14
|
+
customRequestFields: MetadataDetail[];
|
14
15
|
availableIndexes: IndexDetail[];
|
15
16
|
initialized: boolean;
|
16
17
|
readOnly: boolean;
|
17
18
|
resourceType: ResourceType;
|
18
19
|
stream: SocketObservable<FilteredDataServerResult | RequestServerResult>;
|
19
20
|
init(options: DatasourceOptions, fetchMeta: boolean): Promise<boolean>;
|
21
|
+
startStream(): Promise<void>;
|
20
22
|
/**
|
21
23
|
* Convenience method to avoid you having to prime connect etc.
|
22
24
|
* @param meta - The metadata to set.
|
@@ -33,8 +35,8 @@ export declare class DatasourceMock implements Datasource {
|
|
33
35
|
destroy(): void;
|
34
36
|
validResourceName(resourceName: string): boolean;
|
35
37
|
getMetadata?(resourceName: string): Promise<FieldMetadata[]>;
|
36
|
-
snapshot(params?: any):
|
37
|
-
snapshotFiltered(rowId?: string):
|
38
|
+
snapshot(params?: any): Promise<Message<any>>;
|
39
|
+
snapshotFiltered(rowId?: string): Promise<any[]>;
|
38
40
|
updateData?(data: any[]): Promise<void>;
|
39
41
|
dataHandler?(data: any[]): any[];
|
40
42
|
addView?(view: Dataview): void;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/datasource/datasource.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAC7D,OAAO,KAAK,EACV,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,QAAQ,EACR,YAAY,EACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAEL,aAAa,EACb,wBAAwB,EACxB,WAAW,EACX,QAAQ,EACR,cAAc,EACd,mBAAmB,EAEpB,MAAM,mBAAmB,CAAC;AAE3B;;GAEG;AACH,qBAAa,cAAe,YAAW,UAAU;IACnC,MAAM,EAAE,gBAAgB,CAAC;IACzB,qBAAqB,UAAQ;IACzC,SAAS,CAAC,gBAAgB,UAAS;IACvB,gBAAgB,EAAE,cAAc,EAAE,CAAM;IACxC,aAAa,EAAE,aAAa,EAAE,CAAM;IACpC,aAAa,EAAE,cAAc,EAAE,CAAM;IACrC,gBAAgB,EAAE,WAAW,EAAE,CAAM;IAEjD,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,YAAY,EAAE,YAAY,CAAC;IAC3B,MAAM,EAAE,gBAAgB,CAAC,wBAAwB,GAAG,mBAAmB,CAAC,CAAC;IAEzE,IAAI,CAAC,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAItE;;;OAGG;IACH,WAAW,CAAC,IAAI,EAAE,QAAQ;
|
1
|
+
{"version":3,"file":"datasource.d.ts","sourceRoot":"","sources":["../../../../../src/testing/mocks/datasource/datasource.ts"],"names":[],"mappings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GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAG7C,gBAAgB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAIhD,UAAU,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAIvC,WAAW,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,EAAE;IAIhC,OAAO,CAAC,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IAE9B,QAAQ,CAAC,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI;IAE/B,SAAS,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIlE,WAAW,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAIzC,UAAU,CAAC,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,MAAM,CAAC;IAIvC,UAAU,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI1C,UAAU,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;CAGtD"}
|
@@ -97,9 +97,9 @@ let DefaultConnect = class DefaultConnect {
|
|
97
97
|
});
|
98
98
|
return resource;
|
99
99
|
}
|
100
|
-
getMoreRows(sourceRef) {
|
100
|
+
getMoreRows(sourceRef, viewNumber) {
|
101
101
|
return __awaiter(this, void 0, void 0, function* () {
|
102
|
-
const moreRowsMessage = this.messageBuilder.createMoreRowsMessage(sourceRef);
|
102
|
+
const moreRowsMessage = this.messageBuilder.createMoreRowsMessage(sourceRef, viewNumber);
|
103
103
|
logger.debug(`${moreRowsMessage.MESSAGE_TYPE} message created -> `, moreRowsMessage);
|
104
104
|
return this.socket.send(moreRowsMessage, false);
|
105
105
|
});
|
@@ -216,12 +216,13 @@ let DefaultMessageBuilder = class DefaultMessageBuilder {
|
|
216
216
|
},
|
217
217
|
};
|
218
218
|
}
|
219
|
-
createMoreRowsMessage(sourceRef) {
|
219
|
+
createMoreRowsMessage(sourceRef, viewNumber) {
|
220
220
|
return {
|
221
221
|
SOURCE_REF: this.uuid.createId(),
|
222
222
|
MESSAGE_TYPE: MessageType.MORE_ROWS,
|
223
223
|
DETAILS: {
|
224
224
|
SOURCE_REF: sourceRef,
|
225
|
+
VIEW_NUMBER: viewNumber,
|
225
226
|
},
|
226
227
|
SESSION_AUTH_TOKEN: this.session.getSessionStorageItem('authToken'),
|
227
228
|
};
|