@dynatrace-sdk/client-query 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/cjs/index.js +2601 -1038
  3. package/docs/DOCS.md +31 -225
  4. package/dynatrace-metadata.json +5 -2
  5. package/esm/index.js +2606 -1038
  6. package/package.json +2 -2
  7. package/types/packages/client/query/src/lib/apis/query-execution-api.d.ts +27 -221
  8. package/types/packages/client/query/src/lib/models/autocomplete-request.d.ts +0 -11
  9. package/types/packages/client/query/src/lib/models/autocomplete-request.transformation.d.ts +11 -0
  10. package/types/packages/client/query/src/lib/models/autocomplete-response.d.ts +1 -11
  11. package/types/packages/client/query/src/lib/models/autocomplete-response.transformation.d.ts +11 -0
  12. package/types/packages/client/query/src/lib/models/autocomplete-suggestion-part.d.ts +1 -12
  13. package/types/packages/client/query/src/lib/models/autocomplete-suggestion-part.transformation.d.ts +12 -0
  14. package/types/packages/client/query/src/lib/models/autocomplete-suggestion.d.ts +1 -11
  15. package/types/packages/client/query/src/lib/models/autocomplete-suggestion.transformation.d.ts +11 -0
  16. package/types/packages/client/query/src/lib/models/dql-alternative-node.d.ts +1 -9
  17. package/types/packages/client/query/src/lib/models/dql-alternative-node.transformation.d.ts +9 -0
  18. package/types/packages/client/query/src/lib/models/dql-container-node.d.ts +1 -10
  19. package/types/packages/client/query/src/lib/models/dql-container-node.transformation.d.ts +10 -0
  20. package/types/packages/client/query/src/lib/models/dql-node-node-type.d.ts +0 -6
  21. package/types/packages/client/query/src/lib/models/dql-node-node-type.transformation.d.ts +6 -0
  22. package/types/packages/client/query/src/lib/models/dql-node.d.ts +2 -18
  23. package/types/packages/client/query/src/lib/models/dql-node.transformation.d.ts +17 -0
  24. package/types/packages/client/query/src/lib/models/dql-terminal-node.d.ts +2 -12
  25. package/types/packages/client/query/src/lib/models/dql-terminal-node.transformation.d.ts +12 -0
  26. package/types/packages/client/query/src/lib/models/error-envelope.d.ts +1 -12
  27. package/types/packages/client/query/src/lib/models/error-envelope.transformation.d.ts +12 -0
  28. package/types/packages/client/query/src/lib/models/error-response-details.d.ts +1 -16
  29. package/types/packages/client/query/src/lib/models/error-response-details.transformation.d.ts +16 -0
  30. package/types/packages/client/query/src/lib/models/error-response.d.ts +1 -11
  31. package/types/packages/client/query/src/lib/models/error-response.transformation.d.ts +11 -0
  32. package/types/packages/client/query/src/lib/models/execute-request.d.ts +1 -19
  33. package/types/packages/client/query/src/lib/models/execute-request.transformation.d.ts +18 -0
  34. package/types/packages/client/query/src/lib/models/field-type-type.d.ts +0 -6
  35. package/types/packages/client/query/src/lib/models/field-type-type.transformation.d.ts +6 -0
  36. package/types/packages/client/query/src/lib/models/field-type.d.ts +2 -11
  37. package/types/packages/client/query/src/lib/models/field-type.transformation.d.ts +11 -0
  38. package/types/packages/client/query/src/lib/models/geo-point.d.ts +0 -9
  39. package/types/packages/client/query/src/lib/models/geo-point.transformation.d.ts +9 -0
  40. package/types/packages/client/query/src/lib/models/grail-metadata.d.ts +2 -20
  41. package/types/packages/client/query/src/lib/models/grail-metadata.transformation.d.ts +20 -0
  42. package/types/packages/client/query/src/lib/models/index.d.ts +35 -0
  43. package/types/packages/client/query/src/lib/models/metadata-notification.d.ts +1 -15
  44. package/types/packages/client/query/src/lib/models/metadata-notification.transformation.d.ts +15 -0
  45. package/types/packages/client/query/src/lib/models/metadata.d.ts +2 -11
  46. package/types/packages/client/query/src/lib/models/metadata.transformation.d.ts +11 -0
  47. package/types/packages/client/query/src/lib/models/metric-metadata.d.ts +0 -11
  48. package/types/packages/client/query/src/lib/models/metric-metadata.transformation.d.ts +11 -0
  49. package/types/packages/client/query/src/lib/models/parse-request.d.ts +0 -10
  50. package/types/packages/client/query/src/lib/models/parse-request.transformation.d.ts +10 -0
  51. package/types/packages/client/query/src/lib/models/position-info.d.ts +0 -10
  52. package/types/packages/client/query/src/lib/models/position-info.transformation.d.ts +10 -0
  53. package/types/packages/client/query/src/lib/models/query-poll-response.d.ts +2 -13
  54. package/types/packages/client/query/src/lib/models/query-poll-response.transformation.d.ts +13 -0
  55. package/types/packages/client/query/src/lib/models/query-result.d.ts +3 -13
  56. package/types/packages/client/query/src/lib/models/query-result.transformation.d.ts +13 -0
  57. package/types/packages/client/query/src/lib/models/query-start-response.d.ts +2 -14
  58. package/types/packages/client/query/src/lib/models/query-start-response.transformation.d.ts +14 -0
  59. package/types/packages/client/query/src/lib/models/query-state.d.ts +0 -6
  60. package/types/packages/client/query/src/lib/models/query-state.transformation.d.ts +6 -0
  61. package/types/packages/client/query/src/lib/models/ranged-field-types-mappings.d.ts +1 -9
  62. package/types/packages/client/query/src/lib/models/ranged-field-types-mappings.transformation.d.ts +9 -0
  63. package/types/packages/client/query/src/lib/models/ranged-field-types.d.ts +1 -10
  64. package/types/packages/client/query/src/lib/models/ranged-field-types.transformation.d.ts +10 -0
  65. package/types/packages/client/query/src/lib/models/result-record-value.d.ts +3 -8
  66. package/types/packages/client/query/src/lib/models/result-record-value.transformation.d.ts +26 -0
  67. package/types/packages/client/query/src/lib/models/result-record.d.ts +1 -9
  68. package/types/packages/client/query/src/lib/models/result-record.transformation.d.ts +9 -0
  69. package/types/packages/client/query/src/lib/models/timeframe.d.ts +0 -9
  70. package/types/packages/client/query/src/lib/models/timeframe.transformation.d.ts +9 -0
  71. package/types/packages/client/query/src/lib/models/token-position.d.ts +1 -13
  72. package/types/packages/client/query/src/lib/models/token-position.transformation.d.ts +13 -0
  73. package/types/packages/client/query/src/lib/models/token-type.d.ts +0 -6
  74. package/types/packages/client/query/src/lib/models/token-type.transformation.d.ts +6 -0
  75. package/types/packages/client/query/src/lib/models/verify-request.d.ts +0 -10
  76. package/types/packages/client/query/src/lib/models/verify-request.transformation.d.ts +10 -0
  77. package/types/packages/client/query/src/lib/models/verify-response.d.ts +1 -10
  78. package/types/packages/client/query/src/lib/models/verify-response.transformation.d.ts +10 -0
  79. package/types/packages/http-client/src/lib/platform/http-client-response-error-serializer.d.ts +2 -0
  80. package/types/packages/platform/error-handlers/src/lib/types/common-serialized-error.d.ts +1 -0
  81. package/types/packages/platform/error-handlers/src/lib/types/http-serialized-error.d.ts +2 -0
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@dynatrace-sdk/client-query",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "dependencies": {
5
- "@dynatrace-sdk/http-client": "^0.4.11"
5
+ "@dynatrace-sdk/http-client": "^1.0.3"
6
6
  },
7
7
  "license": "Apache-2.0",
8
8
  "main": "./cjs/index.js",
@@ -21,17 +21,7 @@ export declare class QueryExecutionClient {
21
21
  * Polls the status of a Grail query. Returns the status of the query, including the result if the query finished.
22
22
  *
23
23
  * ### The response format:
24
- * The response consists of:
25
- * * The state of the query.
26
- * * ttlSeconds until the query will be wiped
27
- * * If the query succeeded, also a result
28
- *
29
- * ```json
30
- * {
31
- * "state":"RUNNING",
32
- * "ttlSeconds":197
33
- * }
34
- * ```
24
+ * The json response will contain the state of the query. If the query succeeded, the result will be included.
35
25
  *
36
26
  * The result has two main sections:
37
27
  * * The 'records' section contains the individual records, where each record consists of a set of fields and their corresponding values.
@@ -56,109 +46,11 @@ export declare class QueryExecutionClient {
56
46
  * the new record field types will be placed.
57
47
  * It is guaranteed that every field of every record will have a corresponding type.
58
48
  * **Clients should always take the included types into account when consuming records!**
59
- *
60
- * As an example, the following response highlights a collision, where a field called "cancelled" was ingested both as a
61
- * boolean but also wrongly as a string. The first record contains the field "cancelled" as a string, but the very next record has the
62
- * field with the same name but of boolean type. The types section has two entries. One corresponds to first record that has
63
- * the field cancelled of type string. The second entry in the types section corresponds to the subsequent records which have
64
- * the boolean field type.
65
- *
66
- * ```json
67
- * {
68
- * "state":"SUCCEEDED",
69
- * "result": {
70
- * "records": [
71
- * {
72
- * "type": "user_event",
73
- * "order_id": "1ea34-2515-1515-fe1g",
74
- * "cancelled": "true"
75
- * },
76
- * {
77
- * "type": "user_event",
78
- * "order_id": "2ea34-2515-1515-fe1g",
79
- * "cancelled": false
80
- * },
81
- * {
82
- * "type": "user_event",
83
- * "order_id": "3ea34-2515-1515-fe1g",
84
- * "cancelled": true
85
- * },
86
- * {
87
- * "type": "user_event",
88
- * "order_id": "4ea34-2515-1515-fe1g",
89
- * "cancelled": false
90
- * }
91
- * ],
92
- * "types": [
93
- * {
94
- * "indexRange": [
95
- * 0,
96
- * 1
97
- * ],
98
- * "mappings": {
99
- * "type": {
100
- * "type": "string"
101
- * },
102
- * "order_id": {
103
- * "type": "string"
104
- * },
105
- * "cancelled": {
106
- * "type": "string"
107
- * }
108
- * }
109
- * },
110
- * {
111
- * "indexRange": [
112
- * 1,
113
- * 4
114
- * ],
115
- * "mappings": {
116
- * "type": {
117
- * "type": "string"
118
- * },
119
- * "order_id": {
120
- * "type": "string"
121
- * },
122
- * "cancelled": {
123
- * "type": "boolean"
124
- * }
125
- * }
126
- * }
127
- * ],
128
- * "metadata": {
129
- * "query": "fetch events | ...",
130
- * "dqlVersion": "V0_3",
131
- * "appliedTimeframe": {
132
- * "start": 1657624357056,
133
- * "end": 1657631557056
134
- * },
135
- * "timezone": "Z",
136
- * "locale": ""
137
- * }
138
- * }
139
- * }
140
- * ```
141
- *
142
- * The possible Grail types ened in the "types" section is limited to a list of well-defined types:
143
- * ```
144
- * BOOLEAN
145
- * STRING
146
- * DOUBLE
147
- * LONG
148
- * TIMESTAMP
149
- * TIMEFRAME
150
- * DURATION
151
- * BINARY
152
- * IP_ADDRESS
153
- * GEO_POINT
154
- * ARRAY
155
- * RECORD
156
- * ```
157
49
  * @returns The current status and results of the supplied query.
158
50
  */
159
51
  queryPoll(config: {
160
52
  /** The request-token of the query. */ requestToken: string;
161
- /** The request timeout in milliseconds. The response will be delayed for up to the specified time in milliseconds to wait for the result of the query. */ requestTimeoutMilliseconds?: number;
53
+ /** The time a client is willing to wait for the query result. In case the query finishes within the specified timeout, the query result is returned. Otherwise, the query status is returned. */ requestTimeoutMilliseconds?: number;
162
54
  /** If set additional data will be available in the metadata section. */ enrich?: string;
163
55
  abortSignal?: AbortSignal;
164
56
  }): Promise<QueryPollResponse>;
@@ -173,16 +65,32 @@ export declare class QueryExecutionClient {
173
65
  *
174
66
  * ### The response format:
175
67
  *
176
- * The json response will contain the state of the started query and a request token to reference it in future polling requests:
68
+ * The json response will contain the state of the started query. If the query succeeded, the result will be included. Otherwise the response will contain a request token to reference the query in future polling requests.
69
+ *
70
+ * The result has two main sections:
71
+ * * The 'records' section contains the individual records, where each record consists of a set of fields and their corresponding values.
72
+ * * The 'types' section describes the corresponding data types that a record field has.
73
+ *
74
+ * Every record has an implicit 'index' according to the position in the 'records' JSON array.
75
+ * The types section has a list of 1..N possible type 'buckets'. Each such bucket has an 'indexRange' which indicates which
76
+ * records will find their field types in which bucket. The index range has two values start & end and can be thought of as [startIndex, endIndex).
177
77
  *
178
- * ```json
179
- * {
180
- * "state":"RUNNING",
181
- * "requestToken":"5tCm27WbTHmyi+749/wGsw==",
182
- * "ttlSeconds":197
183
- * }
78
+ * A field part of a record with index 'i' will find its corresponding field type by first locating the bucket that satisfies:
79
+ *
80
+ * ```text
81
+ * startIndex <= i <= endIndex
184
82
  * ```
185
- * @returns The final status and results of the supplied query if it finished within a supplied request-timeout-milliseconds. | The status of the query to start.
83
+ *
84
+ * Once the bucket is found the 'mappings' object has an entry for all the fields that are part of that record with index 'i'.
85
+ *
86
+ *
87
+ * Since enforcement of a particular schema is absent at ingestion time, it is possible to have records that share the same
88
+ * field name but their values are of a different type. This phenomenon will hence forth be named as a **"collision"**.
89
+ * When a collision does occur, we will create a new type 'bucket' that will have a different index range where
90
+ * the new record field types will be placed.
91
+ * It is guaranteed that every field of every record will have a corresponding type.
92
+ * **Clients should always take the included types into account when consuming records!**
93
+ * @returns The final status and results of the supplied query if it finished within a supplied requestTimeoutMilliseconds. | The status of the query to start.
186
94
  */
187
95
  queryExecute(config: {
188
96
  body: ExecuteRequest;
@@ -207,7 +115,7 @@ export declare class QueryExecutionClient {
207
115
  * * the 'metadata' section contains information about the query like 'analysisTimeframe', 'timezone' or 'locale'.
208
116
  *
209
117
  * Every record has an implicit 'index' according to the position in the 'records' JSON array.
210
- * The types section has a list of 1..N possibhttps://dev.deus-dev.internal.dynatracelabs.com/query-frontend/docs/rest/swagger-ui/index.html?urls.primaryName=v0.5#/Query%20Execution/query%3Acancelle type 'buckets'. Each such bucket has an 'indexRange' which indicates which
118
+ * The types section has a list of 1..N possible type 'buckets'. Each such bucket has an 'indexRange' which indicates which
211
119
  * records will find their field types in which bucket. The index range has two values start & end and can be thought of as [startIndex, endIndex).
212
120
  *
213
121
  * A field part of a record with index 'i' will find its corresponding field type by first locating the bucket that satisfies:
@@ -225,108 +133,6 @@ export declare class QueryExecutionClient {
225
133
  * the new record field types will be placed.
226
134
  * It is guaranteed that every field of every record will have a corresponding type.
227
135
  * **Clients should always take the included types into account when consuming records!**
228
- *
229
- *
230
- * As an example, the following response highlights a collision, where a field called "cancelled" was ingested both as a
231
- * boolean but also wrongly as a string. The first record contains the field "cancelled" as a string, but the very next record has the
232
- * field with the same name but of boolean type. The types section has two entries. One corresponds to first record that has
233
- * the field cancelled of type string. The second entry in the types section corresponds to the subsequent records which have
234
- * the boolean field type.
235
- *
236
- * ```json
237
- * {
238
- * "state":"SUCCEEDED",
239
- * "ttlSeconds":197,
240
- * "result": {
241
- * "records": [
242
- * {
243
- * "type": "user_event",
244
- * "order_id": "1ea34-2515-1515-fe1g",
245
- * "cancelled": "true"
246
- * },
247
- * {
248
- * "type": "user_event",
249
- * "order_id": "2ea34-2515-1515-fe1g",
250
- * "cancelled": false
251
- * },
252
- * {
253
- * "type": "user_event",
254
- * "order_id": "3ea34-2515-1515-fe1g",
255
- * "cancelled": true
256
- * },
257
- * {
258
- * "type": "user_event",
259
- * "order_id": "4ea34-2515-1515-fe1g",
260
- * "cancelled": false
261
- * }
262
- * ],
263
- * "types": [
264
- * {
265
- * "indexRange": [
266
- * 0,
267
- * 1
268
- * ],
269
- * "mappings": {
270
- * "type": {
271
- * "type": "string"
272
- * },
273
- * "order_id": {
274
- * "type": "string"
275
- * },
276
- * "cancelled": {
277
- * "type": "string"
278
- * }
279
- * }
280
- * },
281
- * {
282
- * "indexRange": [
283
- * 1,
284
- * 4
285
- * ],
286
- * "mappings": {
287
- * "type": {
288
- * "type": "string"
289
- * },
290
- * "order_id": {
291
- * "type": "string"
292
- * },
293
- * "cancelled": {
294
- * "type": "boolean"
295
- * }
296
- * }
297
- * }
298
- * ],
299
- * "metadata": {
300
- * "query": "fetch events | ...",
301
- * "dqlVersion": "V0_3",
302
- * "appliedTimeframe": {
303
- * "start": 1657624357056,
304
- * "end": 1657631557056
305
- * },
306
- * "timezone": "Z",
307
- * "locale": ""
308
- * }
309
- * }
310
- * }
311
- * ```
312
- *
313
- * ### Field data types
314
- *
315
- * The possible Grail types encountered in the "types" section is limited to a list of well-defined types:
316
- * ```
317
- * BOOLEAN
318
- * STRING
319
- * DOUBLE
320
- * LONG
321
- * TIMESTAMP
322
- * TIMEFRAME
323
- * DURATION
324
- * BINARY
325
- * IP_ADDRESS
326
- * GEO_POINT
327
- * ARRAY
328
- * RECORD
329
- * ```
330
136
  * @returns The query already finished.
331
137
  */
332
138
  queryCancel(config: {
@@ -13,14 +13,3 @@ export interface AutocompleteRequest {
13
13
  */
14
14
  locale?: string;
15
15
  }
16
- /** @ignore */
17
- export declare namespace _AutocompleteRequestTransformation {
18
- interface AsJson {
19
- query: string;
20
- cursorPosition?: number;
21
- timezone?: string;
22
- locale?: string;
23
- }
24
- function fromJson(model: AsJson): AutocompleteRequest;
25
- function toJson(model: AutocompleteRequest): AsJson;
26
- }
@@ -0,0 +1,11 @@
1
+ import { AutocompleteRequest } from './autocomplete-request';
2
+ export interface AsJson {
3
+ query: string;
4
+ cursorPosition?: number;
5
+ timezone?: string;
6
+ locale?: string;
7
+ }
8
+ export declare function isAutocompleteRequest(value: any): value is AutocompleteRequest;
9
+ export declare function isJson(value: any): value is AsJson;
10
+ export declare function fromJson($model: AsJson): AutocompleteRequest;
11
+ export declare function toJson($model: AutocompleteRequest): AsJson;
@@ -1,4 +1,4 @@
1
- import { AutocompleteSuggestion, _AutocompleteSuggestionTransformation } from './autocomplete-suggestion';
1
+ import { AutocompleteSuggestion } from './autocomplete-suggestion';
2
2
  /**
3
3
  * The response of the autocomplete call.
4
4
  */
@@ -16,13 +16,3 @@ export interface AutocompleteResponse {
16
16
  */
17
17
  suggestedTtlSeconds?: number;
18
18
  }
19
- /** @ignore */
20
- export declare namespace _AutocompleteResponseTransformation {
21
- interface AsJson {
22
- optional: boolean;
23
- suggestions: _AutocompleteSuggestionTransformation.AsJson[];
24
- suggestedTtlSeconds?: number;
25
- }
26
- function fromJson(model: AsJson): AutocompleteResponse;
27
- function toJson(model: AutocompleteResponse): AsJson;
28
- }
@@ -0,0 +1,11 @@
1
+ import { AutocompleteResponse } from './autocomplete-response';
2
+ import * as _AutocompleteSuggestionTransformation from './autocomplete-suggestion.transformation';
3
+ export interface AsJson {
4
+ optional: boolean;
5
+ suggestions: _AutocompleteSuggestionTransformation.AsJson[];
6
+ suggestedTtlSeconds?: number;
7
+ }
8
+ export declare function isAutocompleteResponse(value: any): value is AutocompleteResponse;
9
+ export declare function isJson(value: any): value is AsJson;
10
+ export declare function fromJson($model: AsJson): AutocompleteResponse;
11
+ export declare function toJson($model: AutocompleteResponse): AsJson;
@@ -1,4 +1,4 @@
1
- import { TokenType, _TokenTypeTransformation } from './token-type';
1
+ import { TokenType } from './token-type';
2
2
  /**
3
3
  * Part of the suggestion.
4
4
  */
@@ -17,14 +17,3 @@ export interface AutocompleteSuggestionPart {
17
17
  */
18
18
  suggestion: string;
19
19
  }
20
- /** @ignore */
21
- export declare namespace _AutocompleteSuggestionPartTransformation {
22
- interface AsJson {
23
- type: _TokenTypeTransformation.AsJson;
24
- info?: string;
25
- synopsis?: string;
26
- suggestion: string;
27
- }
28
- function fromJson(model: AsJson): AutocompleteSuggestionPart;
29
- function toJson(model: AutocompleteSuggestionPart): AsJson;
30
- }
@@ -0,0 +1,12 @@
1
+ import { AutocompleteSuggestionPart } from './autocomplete-suggestion-part';
2
+ import * as _TokenTypeTransformation from './token-type.transformation';
3
+ export interface AsJson {
4
+ type: _TokenTypeTransformation.AsJson;
5
+ info?: string;
6
+ synopsis?: string;
7
+ suggestion: string;
8
+ }
9
+ export declare function isAutocompleteSuggestionPart(value: any): value is AutocompleteSuggestionPart;
10
+ export declare function isJson(value: any): value is AsJson;
11
+ export declare function fromJson($model: AsJson): AutocompleteSuggestionPart;
12
+ export declare function toJson($model: AutocompleteSuggestionPart): AsJson;
@@ -1,4 +1,4 @@
1
- import { AutocompleteSuggestionPart, _AutocompleteSuggestionPartTransformation } from './autocomplete-suggestion-part';
1
+ import { AutocompleteSuggestionPart } from './autocomplete-suggestion-part';
2
2
  /**
3
3
  * Single suggestion for completion of the query.
4
4
  */
@@ -16,13 +16,3 @@ export interface AutocompleteSuggestion {
16
16
  */
17
17
  suggestion: string;
18
18
  }
19
- /** @ignore */
20
- export declare namespace _AutocompleteSuggestionTransformation {
21
- interface AsJson {
22
- parts: _AutocompleteSuggestionPartTransformation.AsJson[];
23
- alreadyTypedCharacters: number;
24
- suggestion: string;
25
- }
26
- function fromJson(model: AsJson): AutocompleteSuggestion;
27
- function toJson(model: AutocompleteSuggestion): AsJson;
28
- }
@@ -0,0 +1,11 @@
1
+ import { AutocompleteSuggestion } from './autocomplete-suggestion';
2
+ import * as _AutocompleteSuggestionPartTransformation from './autocomplete-suggestion-part.transformation';
3
+ export interface AsJson {
4
+ parts: _AutocompleteSuggestionPartTransformation.AsJson[];
5
+ alreadyTypedCharacters: number;
6
+ suggestion: string;
7
+ }
8
+ export declare function isAutocompleteSuggestion(value: any): value is AutocompleteSuggestion;
9
+ export declare function isJson(value: any): value is AsJson;
10
+ export declare function fromJson($model: AsJson): AutocompleteSuggestion;
11
+ export declare function toJson($model: AutocompleteSuggestion): AsJson;
@@ -1,4 +1,4 @@
1
- import { DQLNode, _DQLNodeTransformation } from './dql-node';
1
+ import { DQLNode } from './dql-node';
2
2
  /**
3
3
  * The DQL node that has alternatives.
4
4
  */
@@ -8,11 +8,3 @@ export interface DQLAlternativeNode extends DQLNode {
8
8
  */
9
9
  alternatives?: object;
10
10
  }
11
- /** @ignore */
12
- export declare namespace _DQLAlternativeNodeTransformation {
13
- interface AsJson extends _DQLNodeTransformation.AsJson {
14
- alternatives?: object;
15
- }
16
- function fromJson(model: AsJson): DQLAlternativeNode;
17
- function toJson(model: DQLAlternativeNode): AsJson;
18
- }
@@ -0,0 +1,9 @@
1
+ import { DQLAlternativeNode } from './dql-alternative-node';
2
+ import * as _DQLNodeTransformation from './dql-node.transformation';
3
+ export interface AsJson extends _DQLNodeTransformation.AsJson {
4
+ alternatives?: object;
5
+ }
6
+ export declare function isDqlAlternativeNode(value: any): value is DQLAlternativeNode;
7
+ export declare function isJson(value: any): value is AsJson;
8
+ export declare function fromJson($model: AsJson): DQLAlternativeNode;
9
+ export declare function toJson($model: DQLAlternativeNode): AsJson;
@@ -1,4 +1,4 @@
1
- import { DQLNode, _DQLNodeTransformation } from './dql-node';
1
+ import { DQLNode } from './dql-node';
2
2
  /**
3
3
  * The DQL node that contains other nodes.
4
4
  */
@@ -12,12 +12,3 @@ export interface DQLContainerNode extends DQLNode {
12
12
  */
13
13
  children?: DQLNode[];
14
14
  }
15
- /** @ignore */
16
- export declare namespace _DQLContainerNodeTransformation {
17
- interface AsJson extends _DQLNodeTransformation.AsJson {
18
- type?: string;
19
- children?: _DQLNodeTransformation.AsJson[];
20
- }
21
- function fromJson(model: AsJson): DQLContainerNode;
22
- function toJson(model: DQLContainerNode): AsJson;
23
- }
@@ -0,0 +1,10 @@
1
+ import { DQLContainerNode } from './dql-container-node';
2
+ import * as _DQLNodeTransformation from './dql-node.transformation';
3
+ export interface AsJson extends _DQLNodeTransformation.AsJson {
4
+ type?: string;
5
+ children?: _DQLNodeTransformation.AsJson[];
6
+ }
7
+ export declare function isDqlContainerNode(value: any): value is DQLContainerNode;
8
+ export declare function isJson(value: any): value is AsJson;
9
+ export declare function fromJson($model: AsJson): DQLContainerNode;
10
+ export declare function toJson($model: DQLContainerNode): AsJson;
@@ -6,9 +6,3 @@ export declare enum DQLNodeNodeType {
6
6
  Container = "CONTAINER",
7
7
  Alternative = "ALTERNATIVE"
8
8
  }
9
- /** @ignore */
10
- export declare namespace _DQLNodeNodeTypeTransformation {
11
- type AsJson = DQLNodeNodeType;
12
- const toJson: (value: DQLNodeNodeType) => AsJson;
13
- const fromJson: (value: AsJson) => DQLNodeNodeType;
14
- }
@@ -0,0 +1,6 @@
1
+ import { DQLNodeNodeType } from './dql-node-node-type';
2
+ export declare type AsJson = string;
3
+ export declare function isDqlNodeNodeType(value: any): value is DQLNodeNodeType;
4
+ export declare function isJson(value: any): value is AsJson;
5
+ export declare function fromJson($model: AsJson): DQLNodeNodeType;
6
+ export declare function toJson($model: DQLNodeNodeType): AsJson;
@@ -1,8 +1,5 @@
1
- import { DQLAlternativeNode } from './dql-alternative-node';
2
- import { DQLContainerNode } from './dql-container-node';
3
- import { DQLNodeNodeType, _DQLNodeNodeTypeTransformation } from './dql-node-node-type';
4
- import { DQLTerminalNode } from './dql-terminal-node';
5
- import { TokenPosition, _TokenPositionTransformation } from './token-position';
1
+ import { DQLNodeNodeType } from './dql-node-node-type';
2
+ import { TokenPosition } from './token-position';
6
3
  /**
7
4
  * General Node in the DQL query.
8
5
  */
@@ -14,16 +11,3 @@ export interface DQLNode {
14
11
  */
15
12
  isOptional: boolean;
16
13
  }
17
- /** @ignore */
18
- export declare namespace _DQLNodeTransformation {
19
- function isDqlTerminalNode(model: DQLNode): model is DQLTerminalNode;
20
- function isDqlContainerNode(model: DQLNode): model is DQLContainerNode;
21
- function isDqlAlternativeNode(model: DQLNode): model is DQLAlternativeNode;
22
- interface AsJson {
23
- nodeType: _DQLNodeNodeTypeTransformation.AsJson;
24
- tokenPosition?: _TokenPositionTransformation.AsJson;
25
- isOptional: boolean;
26
- }
27
- function fromJson(model: AsJson, includeChildProps?: boolean): DQLNode;
28
- function toJson(model: DQLNode, includeChildProps?: boolean): AsJson;
29
- }
@@ -0,0 +1,17 @@
1
+ import { DQLAlternativeNode } from './dql-alternative-node';
2
+ import { DQLContainerNode } from './dql-container-node';
3
+ import { DQLNode } from './dql-node';
4
+ import * as _DQLNodeNodeTypeTransformation from './dql-node-node-type.transformation';
5
+ import { DQLTerminalNode } from './dql-terminal-node';
6
+ import * as _TokenPositionTransformation from './token-position.transformation';
7
+ export declare function isDqlTerminalNode($model: DQLNode): $model is DQLTerminalNode;
8
+ export declare function isDqlContainerNode($model: DQLNode): $model is DQLContainerNode;
9
+ export declare function isDqlAlternativeNode($model: DQLNode): $model is DQLAlternativeNode;
10
+ export interface AsJson {
11
+ nodeType: _DQLNodeNodeTypeTransformation.AsJson;
12
+ tokenPosition?: _TokenPositionTransformation.AsJson;
13
+ isOptional: boolean;
14
+ }
15
+ export declare function isJson(value: any): value is AsJson;
16
+ export declare function fromJson($model: AsJson, includeChildProps?: boolean): DQLNode;
17
+ export declare function toJson($model: DQLNode, includeChildProps?: boolean): AsJson;
@@ -1,5 +1,5 @@
1
- import { DQLNode, _DQLNodeTransformation } from './dql-node';
2
- import { TokenType, _TokenTypeTransformation } from './token-type';
1
+ import { DQLNode } from './dql-node';
2
+ import { TokenType } from './token-type';
3
3
  /**
4
4
  * Node that represents single token.
5
5
  */
@@ -14,13 +14,3 @@ export interface DQLTerminalNode extends DQLNode {
14
14
  */
15
15
  canonicalString?: string;
16
16
  }
17
- /** @ignore */
18
- export declare namespace _DQLTerminalNodeTransformation {
19
- interface AsJson extends _DQLNodeTransformation.AsJson {
20
- type?: _TokenTypeTransformation.AsJson;
21
- isMandatoryOnUserOrder?: boolean;
22
- canonicalString?: string;
23
- }
24
- function fromJson(model: AsJson): DQLTerminalNode;
25
- function toJson(model: DQLTerminalNode): AsJson;
26
- }
@@ -0,0 +1,12 @@
1
+ import * as _DQLNodeTransformation from './dql-node.transformation';
2
+ import { DQLTerminalNode } from './dql-terminal-node';
3
+ import * as _TokenTypeTransformation from './token-type.transformation';
4
+ export interface AsJson extends _DQLNodeTransformation.AsJson {
5
+ type?: _TokenTypeTransformation.AsJson;
6
+ isMandatoryOnUserOrder?: boolean;
7
+ canonicalString?: string;
8
+ }
9
+ export declare function isDqlTerminalNode(value: any): value is DQLTerminalNode;
10
+ export declare function isJson(value: any): value is AsJson;
11
+ export declare function fromJson($model: AsJson): DQLTerminalNode;
12
+ export declare function toJson($model: DQLTerminalNode): AsJson;
@@ -1,18 +1,7 @@
1
- import { FormDataRequestBody, FormDataResponseBody } from '@dynatrace-sdk/http-client';
2
- import { ErrorResponse, _ErrorResponseTransformation } from './error-response';
1
+ import { ErrorResponse } from './error-response';
3
2
  /**
4
3
  * An 'envelope' error object that has the mandatory error object.
5
4
  */
6
5
  export interface ErrorEnvelope {
7
6
  error: ErrorResponse;
8
7
  }
9
- /** @ignore */
10
- export declare namespace _ErrorEnvelopeTransformation {
11
- interface AsJson {
12
- error: _ErrorResponseTransformation.AsJson;
13
- }
14
- function fromJson(model: AsJson): ErrorEnvelope;
15
- function toJson(model: ErrorEnvelope): AsJson;
16
- function fromFormData(formData: FormDataResponseBody): ErrorEnvelope;
17
- function toFormData(model: ErrorEnvelope): FormDataRequestBody;
18
- }
@@ -0,0 +1,12 @@
1
+ import { FormDataRequestBody, FormDataResponseBody } from '@dynatrace-sdk/http-client';
2
+ import { ErrorEnvelope } from './error-envelope';
3
+ import * as _ErrorResponseTransformation from './error-response.transformation';
4
+ export interface AsJson {
5
+ error: _ErrorResponseTransformation.AsJson;
6
+ }
7
+ export declare function isErrorEnvelope(value: any): value is ErrorEnvelope;
8
+ export declare function isJson(value: any): value is AsJson;
9
+ export declare function fromJson($model: AsJson): ErrorEnvelope;
10
+ export declare function toJson($model: ErrorEnvelope): AsJson;
11
+ export declare function fromFormData(formData: FormDataResponseBody): ErrorEnvelope;
12
+ export declare function toFormData($model: ErrorEnvelope): FormDataRequestBody;
@@ -1,4 +1,4 @@
1
- import { TokenPosition, _TokenPositionTransformation } from './token-position';
1
+ import { TokenPosition } from './token-position';
2
2
  /**
3
3
  * Detailed information about the error.
4
4
  */
@@ -33,18 +33,3 @@ export interface ErrorResponseDetails {
33
33
  */
34
34
  errorMessageFormat: string;
35
35
  }
36
- /** @ignore */
37
- export declare namespace _ErrorResponseDetailsTransformation {
38
- interface AsJson {
39
- exceptionType: string;
40
- syntaxErrorPosition?: _TokenPositionTransformation.AsJson;
41
- errorType: string;
42
- errorMessage: string;
43
- arguments: string[];
44
- queryString: string;
45
- errorMessageFormatSpecifierTypes: string[];
46
- errorMessageFormat: string;
47
- }
48
- function fromJson(model: AsJson): ErrorResponseDetails;
49
- function toJson(model: ErrorResponseDetails): AsJson;
50
- }