@genesislcap/foundation-comms 14.199.3-alpha-40ecfcd.0 → 14.200.0-FUI-2127.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/dts/connect/connect.d.ts +3 -4
- package/dist/dts/connect/connect.d.ts.map +1 -1
- package/dist/dts/connect/message.d.ts +5 -14
- package/dist/dts/connect/message.d.ts.map +1 -1
- package/dist/dts/datasource/datasource.d.ts +16 -21
- package/dist/dts/datasource/datasource.d.ts.map +1 -1
- package/dist/dts/datasource/datasource.types.d.ts +17 -37
- package/dist/dts/datasource/datasource.types.d.ts.map +1 -1
- package/dist/dts/metadata/metadata.types.d.ts +1 -23
- package/dist/dts/metadata/metadata.types.d.ts.map +1 -1
- package/dist/dts/testing/mocks/datasource/datasource.d.ts +2 -4
- 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 +1 -2
- package/dist/esm/datasource/datasource.js +32 -63
- package/dist/esm/metadata/metadata.utils.js +1 -2
- package/dist/esm/testing/mocks/datasource/datasource.js +2 -14
- package/dist/foundation-comms.api.json +93 -510
- package/dist/foundation-comms.d.ts +44 -105
- package/docs/api/foundation-comms.connect.getmorerows.md +2 -3
- package/docs/api/foundation-comms.connect.md +1 -1
- package/docs/api/{foundation-comms.datasource.startstream.md → foundation-comms.datasource.deinit.md} +9 -5
- package/docs/api/foundation-comms.datasource.destroy.md +1 -5
- package/docs/api/foundation-comms.datasource.init.md +1 -2
- 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.validresourcename.md +0 -5
- package/docs/api/foundation-comms.datasourcemetadata.md +0 -1
- package/docs/api/foundation-comms.datasourceoptions.criteria.md +0 -5
- package/docs/api/foundation-comms.datasourceoptions.disablepolling.md +0 -5
- package/docs/api/foundation-comms.datasourceoptions.fields.md +0 -5
- package/docs/api/foundation-comms.datasourceoptions.maxrows.md +0 -5
- package/docs/api/foundation-comms.datasourceoptions.maxview.md +0 -5
- package/docs/api/foundation-comms.datasourceoptions.md +0 -2
- package/docs/api/foundation-comms.datasourceoptions.movingview.md +0 -5
- package/docs/api/foundation-comms.datasourceoptions.orderby.md +0 -5
- package/docs/api/foundation-comms.datasourceoptions.request.md +0 -5
- package/docs/api/foundation-comms.datasourceoptions.reverse.md +0 -5
- package/docs/api/foundation-comms.defaultconnect.getmorerows.md +1 -2
- package/docs/api/foundation-comms.defaultconnect.md +1 -1
- package/docs/api/{foundation-comms.defaultdatasource.startstream.md → foundation-comms.defaultdatasource.deinit.md} +4 -4
- package/docs/api/foundation-comms.defaultdatasource.destroy.md +1 -5
- package/docs/api/foundation-comms.defaultdatasource.init.md +1 -2
- package/docs/api/foundation-comms.defaultdatasource.md +4 -6
- package/docs/api/foundation-comms.defaultdatasource.snapshot.md +1 -8
- package/docs/api/foundation-comms.defaultmessagebuilder.createmorerowsmessage.md +2 -3
- package/docs/api/foundation-comms.defaultmessagebuilder.md +1 -1
- package/docs/api/foundation-comms.md +0 -2
- package/docs/api/foundation-comms.messagebuilder.createmorerowsmessage.md +3 -4
- 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 +0 -1
- package/docs/api/foundation-comms.metadata.md +2 -5
- package/docs/api/foundation-comms.metadatadetail.md +0 -3
- package/docs/api/foundation-comms.requestparams.md +1 -3
- package/docs/api/foundation-comms.requestserverresult.md +0 -5
- package/docs/api-report.md +17 -59
- package/package.json +13 -13
- package/docs/api/foundation-comms.datasourcemetadata.customrequestfields.md +0 -11
- package/docs/api/foundation-comms.datasourceoptions.requestautosetup.md +0 -18
- package/docs/api/foundation-comms.datasourceoptions.viewnumber.md +0 -18
- package/docs/api/foundation-comms.defaultdatasource.customrequestfields.md +0 -12
- package/docs/api/foundation-comms.defaultdatasource.startstreamrequired.md +0 -12
- package/docs/api/foundation-comms.replydetail.md +0 -21
- package/docs/api/foundation-comms.requestdetailsparam.md +0 -15
@@ -110,11 +110,10 @@ export interface Connect {
|
|
110
110
|
/**
|
111
111
|
* Requests additional rows of data for the specified source reference.
|
112
112
|
* @public
|
113
|
-
* @param sourceRef -
|
114
|
-
* @param viewNumber - The specific view number to request more rows for. Default: previous view number result + 1.
|
113
|
+
* @param sourceRef - The source reference to request more rows for.
|
115
114
|
* @returns A promise that resolves with the additional rows of data.
|
116
115
|
*/
|
117
|
-
getMoreRows(sourceRef: string
|
116
|
+
getMoreRows(sourceRef: string): Promise<Message>;
|
118
117
|
/**
|
119
118
|
* Requests additional columns for the specified source reference.
|
120
119
|
* @public
|
@@ -199,7 +198,7 @@ export declare class DefaultConnect implements Connect {
|
|
199
198
|
stream(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
200
199
|
streamState(resourceName: string, onMessage?: Function, onError?: Function, params?: any, initialState?: any[]): Observable<any[]>;
|
201
200
|
streamWithoutAutoTeardown(resourceName: string, onMessage: Function, onError: Function, params?: any): SocketObservable<Message>;
|
202
|
-
getMoreRows(sourceRef: string
|
201
|
+
getMoreRows(sourceRef: string): Promise<Message>;
|
203
202
|
getMoreColumns(sourceRef: string): Promise<Message>;
|
204
203
|
dataLogoff(streamSourceRef: string): Promise<Message>;
|
205
204
|
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,EAAE,MAAM,kBAAkB,CAAC;AACxD,O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,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,7 +136,6 @@ export declare namespace MessageDetails {
|
|
136
136
|
*/
|
137
137
|
type MoreRows = {
|
138
138
|
SOURCE_REF: string;
|
139
|
-
VIEW_NUMBER?: number;
|
140
139
|
};
|
141
140
|
/**
|
142
141
|
* Details type to update columns
|
@@ -259,19 +258,12 @@ export type ResourcesMessage = {
|
|
259
258
|
SOURCE_REF: string;
|
260
259
|
RESOURCES: ResourceItem[];
|
261
260
|
};
|
262
|
-
/**
|
263
|
-
* @public
|
264
|
-
*/
|
265
|
-
export type RequestDetailsParam = {
|
266
|
-
MAX_ROWS?: number;
|
267
|
-
CRITERIA_MATCH?: string;
|
268
|
-
};
|
269
261
|
/**
|
270
262
|
* Parameters for a REQUEST message
|
271
263
|
* @public
|
272
264
|
*/
|
273
265
|
export type RequestParams = {
|
274
|
-
DETAILS?:
|
266
|
+
DETAILS?: any;
|
275
267
|
REQUEST?: any;
|
276
268
|
};
|
277
269
|
/**
|
@@ -350,11 +342,10 @@ export interface MessageBuilder {
|
|
350
342
|
*
|
351
343
|
* @remarks MORE_ROWS
|
352
344
|
* @public
|
353
|
-
* @param sourceRef - The
|
354
|
-
* @param viewNumber - The desired view number. Default:always the first view, if not spceified.
|
345
|
+
* @param sourceRef - The source reference.
|
355
346
|
* @returns The more rows message.
|
356
347
|
*/
|
357
|
-
createMoreRowsMessage(sourceRef: string
|
348
|
+
createMoreRowsMessage(sourceRef: string): Message;
|
358
349
|
/**
|
359
350
|
* Creates a message to request more columns.
|
360
351
|
*
|
@@ -374,7 +365,7 @@ export interface MessageBuilder {
|
|
374
365
|
* @param params - The additional parameters.
|
375
366
|
* @returns The request message.
|
376
367
|
*/
|
377
|
-
createRequestMessage<T = any>(resourceName: string, params?:
|
368
|
+
createRequestMessage<T = any>(resourceName: string, params?: any): Message<T>;
|
378
369
|
/**
|
379
370
|
* Creates a message for getting list of resources.
|
380
371
|
*
|
@@ -484,7 +475,7 @@ export declare class DefaultMessageBuilder implements MessageBuilder {
|
|
484
475
|
createChangePasswordMessage(username: string, oldPassword: string, newPassword: string): Message<MessageDetails.ChangePassword>;
|
485
476
|
createForgotPasswordMessage(username: string, returnUrl: string, requester?: string): Message<MessageDetails.ForgotPassword>;
|
486
477
|
createForgotPasswordTokenMessage(username: string, resetToken: string, newPassword: string, requester?: string): Message<MessageDetails.ForgotPasswordToken>;
|
487
|
-
createMoreRowsMessage(sourceRef: string
|
478
|
+
createMoreRowsMessage(sourceRef: string): Message;
|
488
479
|
createMoreColumnsMessage(sourceRef: string): Message;
|
489
480
|
createHTTPHeadersFromMessage(message: Message, contentType?: string): HeadersInit;
|
490
481
|
/** {@inheritDoc MessageBuilder.createHeartbeatPingMessage} */
|
@@ -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,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,KAAK,EAAE,YAAY,EAA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MAAM,EAClB,WAAW,EAAE,MAAM,EACnB,SAAS,GAAE,MAAiB,GAC3B,OAAO,CAAC,cAAc,CAAC,mBAAmB,CAAC;IAavC,qBAAqB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAWjD,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,7 +15,6 @@ export interface DatasourceMetadata {
|
|
15
15
|
readonly originalFieldDef: MetadataDetail[];
|
16
16
|
readonly fieldMetadata: FieldMetadata[];
|
17
17
|
readonly requestFields: MetadataDetail[];
|
18
|
-
readonly customRequestFields: MetadataDetail[];
|
19
18
|
}
|
20
19
|
/**
|
21
20
|
* Datasource interface.
|
@@ -52,7 +51,6 @@ export interface Datasource extends DatasourceMetadata {
|
|
52
51
|
/**
|
53
52
|
* Indicates whether the resourceName is valid or not.
|
54
53
|
* @public
|
55
|
-
* @deprecated - Please use {@link (GenesisResources:interface).isValidResource} instead.
|
56
54
|
*/
|
57
55
|
validResourceName(resourceName: string): boolean;
|
58
56
|
/**
|
@@ -60,21 +58,15 @@ export interface Datasource extends DatasourceMetadata {
|
|
60
58
|
* @public
|
61
59
|
* @param options - The options to initialize the datasource with.
|
62
60
|
* @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.
|
64
61
|
* @returns A promise that resolves with a boolean indicating whether the initialization was successful.
|
65
62
|
*/
|
66
|
-
init(options: DatasourceOptions, fetchMeta?: boolean
|
63
|
+
init(options: DatasourceOptions, fetchMeta?: boolean): Promise<boolean>;
|
67
64
|
/**
|
68
|
-
*
|
69
|
-
* @public
|
70
|
-
*/
|
71
|
-
startStream(): Promise<void>;
|
72
|
-
/**
|
73
|
-
* Destroys the datasource.
|
65
|
+
* Deinitializes the datasource.
|
74
66
|
* @remarks This should be called to clean up any resources when the datasource is no longer needed.
|
75
67
|
* @public
|
76
68
|
*/
|
77
|
-
|
69
|
+
deinit(): any;
|
78
70
|
/**
|
79
71
|
* Fetches metadata for the specified resource name.
|
80
72
|
* @public
|
@@ -85,15 +77,15 @@ export interface Datasource extends DatasourceMetadata {
|
|
85
77
|
/**
|
86
78
|
* Takes a snapshot of the data in the datasource.
|
87
79
|
* @public
|
88
|
-
* @param
|
80
|
+
* @param params - Optional parameters for taking the snapshot.
|
89
81
|
*/
|
90
|
-
snapshot(
|
82
|
+
snapshot(params?: any): any;
|
91
83
|
/**
|
92
84
|
* Takes a filtered snapshot of the data in the datasource.
|
93
85
|
* @public
|
94
86
|
* @param rowId - Optional ID of the row to filter.
|
95
87
|
*/
|
96
|
-
snapshotFiltered(rowId?: string):
|
88
|
+
snapshotFiltered(rowId?: string): any;
|
97
89
|
/**
|
98
90
|
* Updates the data in the datasource with the specified data.
|
99
91
|
* @public
|
@@ -158,6 +150,13 @@ export interface Datasource extends DatasourceMetadata {
|
|
158
150
|
* @returns A promise that resolves when the item has been updated.
|
159
151
|
*/
|
160
152
|
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;
|
161
160
|
}
|
162
161
|
/**
|
163
162
|
* The default implementation for the Datasource interface.
|
@@ -174,16 +173,12 @@ export declare class DefaultDatasource implements Datasource {
|
|
174
173
|
status: DatasourceStatus;
|
175
174
|
/** {@inheritDoc DatasourceMetadata.fetchMetadataRequired} */
|
176
175
|
fetchMetadataRequired: boolean;
|
177
|
-
/** {@inheritDoc DatasourceMetadata.startStream} */
|
178
|
-
startStreamRequired: boolean;
|
179
176
|
/** {@inheritDoc DatasourceMetadata.originalFieldDef} */
|
180
177
|
originalFieldDef: MetadataDetail[];
|
181
178
|
/** {@inheritDoc DatasourceMetadata.fieldMetadata} */
|
182
179
|
fieldMetadata: FieldMetadata[];
|
183
180
|
/** {@inheritDoc DatasourceMetadata.requestFields} */
|
184
181
|
requestFields: MetadataDetail[];
|
185
|
-
/** {@inheritDoc DatasourceMetadata.customRequestFields} */
|
186
|
-
customRequestFields: MetadataDetail[];
|
187
182
|
/** {@inheritDoc DatasourceMetadata.availableIndexes} */
|
188
183
|
availableIndexes: IndexDetail[];
|
189
184
|
/** {@inheritDoc Datasource.initialized} */
|
@@ -197,12 +192,12 @@ export declare class DefaultDatasource implements Datasource {
|
|
197
192
|
* @deprecated - Please use {@link (GenesisResources:interface).isValidResource} instead.
|
198
193
|
*/
|
199
194
|
validResourceName(resourceName: string): boolean;
|
200
|
-
init(options: DatasourceOptions, fetchMeta?: boolean
|
201
|
-
|
195
|
+
init(options: DatasourceOptions, fetchMeta?: boolean): Promise<boolean>;
|
196
|
+
deinit(): void;
|
202
197
|
/** {@inheritDoc Datasource.destroy} */
|
203
198
|
destroy(): void;
|
204
199
|
get params(): any;
|
205
|
-
snapshot(
|
200
|
+
snapshot(): Promise<Message>;
|
206
201
|
snapshotFiltered(rowId?: string): Promise<any[]>;
|
207
202
|
private createStream;
|
208
203
|
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,EA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B,SAAS,CAAC,OAAO,EAAE,iBAAiB,CAAC;IAC9B,YAAY,EAAE,YAAY,CAAC;IAEtB,MAAM,EAAE,gBAAgB,CAAC,wBAAwB,GAAG,mBAAmB,CAAC,CAAC;gBAGhE,OAAO,EAAE,OAAO,EACnB,IAAI,EAAE,IAAI,EACE,SAAS,EAAE,gBAAgB,EAC3B,MAAM,EAAE,gBAAgB;IAGtD;;OAEG;IACI,iBAAiB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO;IAWjD,IAAI,CACR,OAAO,EAAE,iBAAiB,EAC1B,SAAS,GAAE,OAAoC,GAC9C,OAAO,CAAC,OAAO,CAAC;IAkDnB,MAAM;IAYN,uCAAuC;IACvC,OAAO;IAOP,IAAI,MAAM,QA4BT;IAEK,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC;IA2B5B,gBAAgB,CAAC,KAAK,GAAE,MAAkB;YAYlC,YAAY;YAeZ,sBAAsB;IAMpC,OAAO,CAAC,kBAAkB;cAaV,qBAAqB,CAAC,YAAY,EAAE,MAAM;IA0B1D;;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"}
|
@@ -46,75 +46,55 @@ export interface Dataview {
|
|
46
46
|
* @public
|
47
47
|
*/
|
48
48
|
export interface DatasourceOptions {
|
49
|
-
/**
|
50
|
-
* The name of the resource to use for the datasource.
|
51
|
-
*/
|
52
|
-
resourceName?: string;
|
53
|
-
/**
|
54
|
-
* Whether the datasource is a snapshot or not.
|
55
|
-
*/
|
56
|
-
isSnapshot?: boolean;
|
57
49
|
/**
|
58
50
|
* The criteria used to filter data in the datasource.
|
59
|
-
* @remarks Works with both DATASERVER and REQUEST_SERVER resources.
|
60
51
|
*/
|
61
52
|
criteria?: string;
|
62
53
|
/**
|
63
|
-
* The
|
64
|
-
* @remarks Works with both DATASERVER and REQUEST_SERVER resources.
|
54
|
+
* The fields to include in the returned data.
|
65
55
|
*/
|
66
|
-
|
56
|
+
fields?: string;
|
67
57
|
/**
|
68
|
-
*
|
69
|
-
* @remarks Works with both DATASERVER and REQUEST_SERVER resources.
|
58
|
+
* Whether the datasource is a snapshot or not.
|
70
59
|
*/
|
71
|
-
|
60
|
+
isSnapshot?: boolean;
|
72
61
|
/**
|
73
|
-
* The
|
74
|
-
* @remarks Only works with DATASERVER resources.
|
62
|
+
* The maximum number of rows to return from the datasource.
|
75
63
|
*/
|
76
|
-
|
64
|
+
maxRows?: number;
|
77
65
|
/**
|
78
66
|
* The maximum number of rows to track as part of a client "view"
|
79
|
-
* @remarks Only works with DATASERVER resources.
|
80
67
|
*/
|
81
68
|
maxView?: number;
|
82
69
|
/**
|
83
70
|
* Defines the behaviour of the client view when new rows are received in real time.
|
84
|
-
* @remarks Only works with DATASERVER resources.
|
85
71
|
*/
|
86
72
|
movingView?: boolean;
|
87
73
|
/**
|
88
|
-
* The
|
89
|
-
* @remarks
|
90
|
-
*/
|
91
|
-
orderBy?: string;
|
92
|
-
/**
|
93
|
-
* Whether to return the data in reverse order or not.
|
94
|
-
* @remarks Only works with DATASERVER resources.
|
74
|
+
* The polling interval to use when using request/reply.
|
75
|
+
* @remarks in milliseconds
|
95
76
|
*/
|
96
|
-
|
77
|
+
pollingInterval?: number;
|
97
78
|
/**
|
98
79
|
* Whether to disable polling when using request/reply
|
99
|
-
* @remarks Only works with REQUEST_SERVER resources.
|
100
80
|
*/
|
101
81
|
disablePolling?: boolean;
|
102
82
|
/**
|
103
|
-
* The
|
104
|
-
* @remarks Only works with REQUEST_SERVER resources.
|
105
|
-
* @remarks in milliseconds
|
83
|
+
* The field to use for sorting the data.
|
106
84
|
*/
|
107
|
-
|
85
|
+
orderBy?: string;
|
108
86
|
/**
|
109
87
|
* The request to send to the server.
|
110
|
-
* @remarks Only works with REQUEST_SERVER resources.
|
111
88
|
*/
|
112
89
|
request?: any;
|
113
90
|
/**
|
114
|
-
*
|
115
|
-
* @remarks Only works with REQUEST_SERVER resources.
|
91
|
+
* The name of the resource to use for the datasource.
|
116
92
|
*/
|
117
|
-
|
93
|
+
resourceName?: string;
|
94
|
+
/**
|
95
|
+
* Whether to return the data in reverse order or not.
|
96
|
+
*/
|
97
|
+
reverse?: boolean;
|
118
98
|
}
|
119
99
|
/**
|
120
100
|
* 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;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,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,OAAO,CAAC,EAAE,GAAG,CAAC;IACd;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;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,12 +6,9 @@ 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;
|
11
9
|
VALID_VALUES?: string;
|
12
10
|
READ_ONLY?: boolean;
|
13
11
|
OPTIONAL?: boolean;
|
14
|
-
NULLABLE?: boolean;
|
15
12
|
UI_LABEL?: string;
|
16
13
|
};
|
17
14
|
/**
|
@@ -27,28 +24,14 @@ export type IndexDetail = {
|
|
27
24
|
* @public
|
28
25
|
*/
|
29
26
|
export type Metadata = {
|
30
|
-
DEFINITIONS?: Record<string, any>;
|
31
|
-
DESCRIPTION?: string;
|
32
27
|
FIELD?: MetadataDetail[];
|
33
|
-
|
28
|
+
INDEXES?: IndexDetail[];
|
34
29
|
REPLY_FIELD?: MetadataDetail[];
|
35
30
|
REQUEST_FIELD?: MetadataDetail[];
|
36
31
|
NAME?: string;
|
37
32
|
TYPE?: string;
|
38
|
-
INDEXES?: IndexDetail[];
|
39
33
|
ERROR?: string;
|
40
34
|
};
|
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
|
-
};
|
52
35
|
/**
|
53
36
|
* Schema Response definition.
|
54
37
|
* @public
|
@@ -106,11 +89,6 @@ export type RequestServerResult = {
|
|
106
89
|
SOURCE_REF?: string;
|
107
90
|
REPLY: any[];
|
108
91
|
MESSAGE_TYPE?: string;
|
109
|
-
MORE_ROWS?: boolean;
|
110
|
-
NEXT_VIEW?: number;
|
111
|
-
PARAMETRIC_TYPE?: string;
|
112
|
-
ROWS_COUNT?: number;
|
113
|
-
SEQUENCE_ID?: number;
|
114
92
|
};
|
115
93
|
/**
|
116
94
|
* 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,
|
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,W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AO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,GAAG,EAAE,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF;;;GAGG;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,14 +11,12 @@ export declare class DatasourceMock implements Datasource {
|
|
11
11
|
originalFieldDef: MetadataDetail[];
|
12
12
|
fieldMetadata: FieldMetadata[];
|
13
13
|
requestFields: MetadataDetail[];
|
14
|
-
customRequestFields: MetadataDetail[];
|
15
14
|
availableIndexes: IndexDetail[];
|
16
15
|
initialized: boolean;
|
17
16
|
readOnly: boolean;
|
18
17
|
resourceType: ResourceType;
|
19
18
|
stream: SocketObservable<FilteredDataServerResult | RequestServerResult>;
|
20
19
|
init(options: DatasourceOptions, fetchMeta: boolean): Promise<boolean>;
|
21
|
-
startStream(): Promise<void>;
|
22
20
|
/**
|
23
21
|
* Convenience method to avoid you having to prime connect etc.
|
24
22
|
* @param meta - The metadata to set.
|
@@ -35,8 +33,8 @@ export declare class DatasourceMock implements Datasource {
|
|
35
33
|
destroy(): void;
|
36
34
|
validResourceName(resourceName: string): boolean;
|
37
35
|
getMetadata?(resourceName: string): Promise<FieldMetadata[]>;
|
38
|
-
snapshot(params?: any):
|
39
|
-
snapshotFiltered(rowId?: string):
|
36
|
+
snapshot(params?: any): void;
|
37
|
+
snapshotFiltered(rowId?: string): void;
|
40
38
|
updateData?(data: any[]): Promise<void>;
|
41
39
|
dataHandler?(data: any[]): any[];
|
42
40
|
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,
|
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,E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AAG,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) {
|
101
101
|
return __awaiter(this, void 0, void 0, function* () {
|
102
|
-
const moreRowsMessage = this.messageBuilder.createMoreRowsMessage(sourceRef
|
102
|
+
const moreRowsMessage = this.messageBuilder.createMoreRowsMessage(sourceRef);
|
103
103
|
logger.debug(`${moreRowsMessage.MESSAGE_TYPE} message created -> `, moreRowsMessage);
|
104
104
|
return this.socket.send(moreRowsMessage, false);
|
105
105
|
});
|
@@ -216,13 +216,12 @@ let DefaultMessageBuilder = class DefaultMessageBuilder {
|
|
216
216
|
},
|
217
217
|
};
|
218
218
|
}
|
219
|
-
createMoreRowsMessage(sourceRef
|
219
|
+
createMoreRowsMessage(sourceRef) {
|
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,
|
226
225
|
},
|
227
226
|
SESSION_AUTH_TOKEN: this.session.getSessionStorageItem('authToken'),
|
228
227
|
};
|