@dynatrace-sdk/client-query 1.0.5 → 1.2.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 (82) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +1 -1
  3. package/cjs/index.js +2602 -2489
  4. package/docs/DOCS.md +25 -1
  5. package/dynatrace-metadata.json +3 -3
  6. package/esm/index.js +2607 -2489
  7. package/package.json +2 -2
  8. package/types/packages/client/query/src/lib/apis/query-assistance-api.d.ts +6 -0
  9. package/types/packages/client/query/src/lib/apis/query-execution-api.d.ts +6 -0
  10. package/types/packages/client/query/src/lib/models/autocomplete-request.d.ts +0 -13
  11. package/types/packages/client/query/src/lib/models/autocomplete-request.transformation.d.ts +11 -0
  12. package/types/packages/client/query/src/lib/models/autocomplete-response.d.ts +1 -13
  13. package/types/packages/client/query/src/lib/models/autocomplete-response.transformation.d.ts +11 -0
  14. package/types/packages/client/query/src/lib/models/autocomplete-suggestion-part.d.ts +1 -14
  15. package/types/packages/client/query/src/lib/models/autocomplete-suggestion-part.transformation.d.ts +12 -0
  16. package/types/packages/client/query/src/lib/models/autocomplete-suggestion.d.ts +1 -13
  17. package/types/packages/client/query/src/lib/models/autocomplete-suggestion.transformation.d.ts +11 -0
  18. package/types/packages/client/query/src/lib/models/dql-alternative-node.d.ts +1 -11
  19. package/types/packages/client/query/src/lib/models/dql-alternative-node.transformation.d.ts +9 -0
  20. package/types/packages/client/query/src/lib/models/dql-container-node.d.ts +1 -12
  21. package/types/packages/client/query/src/lib/models/dql-container-node.transformation.d.ts +10 -0
  22. package/types/packages/client/query/src/lib/models/dql-node-node-type.d.ts +0 -6
  23. package/types/packages/client/query/src/lib/models/dql-node-node-type.transformation.d.ts +6 -0
  24. package/types/packages/client/query/src/lib/models/dql-node.d.ts +2 -19
  25. package/types/packages/client/query/src/lib/models/dql-node.transformation.d.ts +17 -0
  26. package/types/packages/client/query/src/lib/models/dql-terminal-node.d.ts +2 -14
  27. package/types/packages/client/query/src/lib/models/dql-terminal-node.transformation.d.ts +12 -0
  28. package/types/packages/client/query/src/lib/models/error-envelope.d.ts +1 -14
  29. package/types/packages/client/query/src/lib/models/error-envelope.transformation.d.ts +12 -0
  30. package/types/packages/client/query/src/lib/models/error-response-details.d.ts +1 -18
  31. package/types/packages/client/query/src/lib/models/error-response-details.transformation.d.ts +16 -0
  32. package/types/packages/client/query/src/lib/models/error-response.d.ts +1 -13
  33. package/types/packages/client/query/src/lib/models/error-response.transformation.d.ts +11 -0
  34. package/types/packages/client/query/src/lib/models/execute-request.d.ts +0 -20
  35. package/types/packages/client/query/src/lib/models/execute-request.transformation.d.ts +18 -0
  36. package/types/packages/client/query/src/lib/models/field-type-type.d.ts +0 -6
  37. package/types/packages/client/query/src/lib/models/field-type-type.transformation.d.ts +6 -0
  38. package/types/packages/client/query/src/lib/models/field-type.d.ts +2 -13
  39. package/types/packages/client/query/src/lib/models/field-type.transformation.d.ts +11 -0
  40. package/types/packages/client/query/src/lib/models/geo-point.d.ts +0 -11
  41. package/types/packages/client/query/src/lib/models/geo-point.transformation.d.ts +9 -0
  42. package/types/packages/client/query/src/lib/models/grail-metadata.d.ts +6 -22
  43. package/types/packages/client/query/src/lib/models/grail-metadata.transformation.d.ts +21 -0
  44. package/types/packages/client/query/src/lib/models/index.d.ts +35 -0
  45. package/types/packages/client/query/src/lib/models/metadata-notification.d.ts +1 -17
  46. package/types/packages/client/query/src/lib/models/metadata-notification.transformation.d.ts +15 -0
  47. package/types/packages/client/query/src/lib/models/metadata.d.ts +2 -13
  48. package/types/packages/client/query/src/lib/models/metadata.transformation.d.ts +11 -0
  49. package/types/packages/client/query/src/lib/models/metric-metadata.d.ts +0 -13
  50. package/types/packages/client/query/src/lib/models/metric-metadata.transformation.d.ts +11 -0
  51. package/types/packages/client/query/src/lib/models/parse-request.d.ts +0 -12
  52. package/types/packages/client/query/src/lib/models/parse-request.transformation.d.ts +10 -0
  53. package/types/packages/client/query/src/lib/models/position-info.d.ts +0 -12
  54. package/types/packages/client/query/src/lib/models/position-info.transformation.d.ts +10 -0
  55. package/types/packages/client/query/src/lib/models/query-poll-response.d.ts +2 -15
  56. package/types/packages/client/query/src/lib/models/query-poll-response.transformation.d.ts +13 -0
  57. package/types/packages/client/query/src/lib/models/query-result.d.ts +3 -15
  58. package/types/packages/client/query/src/lib/models/query-result.transformation.d.ts +13 -0
  59. package/types/packages/client/query/src/lib/models/query-start-response.d.ts +2 -16
  60. package/types/packages/client/query/src/lib/models/query-start-response.transformation.d.ts +14 -0
  61. package/types/packages/client/query/src/lib/models/query-state.d.ts +0 -6
  62. package/types/packages/client/query/src/lib/models/query-state.transformation.d.ts +6 -0
  63. package/types/packages/client/query/src/lib/models/ranged-field-types-mappings.d.ts +1 -11
  64. package/types/packages/client/query/src/lib/models/ranged-field-types-mappings.transformation.d.ts +9 -0
  65. package/types/packages/client/query/src/lib/models/ranged-field-types.d.ts +1 -12
  66. package/types/packages/client/query/src/lib/models/ranged-field-types.transformation.d.ts +10 -0
  67. package/types/packages/client/query/src/lib/models/result-record-value.d.ts +3 -23
  68. package/types/packages/client/query/src/lib/models/result-record-value.transformation.d.ts +26 -0
  69. package/types/packages/client/query/src/lib/models/result-record.d.ts +1 -11
  70. package/types/packages/client/query/src/lib/models/result-record.transformation.d.ts +9 -0
  71. package/types/packages/client/query/src/lib/models/timeframe.d.ts +0 -11
  72. package/types/packages/client/query/src/lib/models/timeframe.transformation.d.ts +9 -0
  73. package/types/packages/client/query/src/lib/models/token-position.d.ts +1 -15
  74. package/types/packages/client/query/src/lib/models/token-position.transformation.d.ts +13 -0
  75. package/types/packages/client/query/src/lib/models/token-type.d.ts +0 -6
  76. package/types/packages/client/query/src/lib/models/token-type.transformation.d.ts +6 -0
  77. package/types/packages/client/query/src/lib/models/verify-request.d.ts +0 -12
  78. package/types/packages/client/query/src/lib/models/verify-request.transformation.d.ts +10 -0
  79. package/types/packages/client/query/src/lib/models/verify-response.d.ts +1 -12
  80. package/types/packages/client/query/src/lib/models/verify-response.transformation.d.ts +10 -0
  81. package/types/packages/platform/error-handlers/src/lib/types/common-serialized-error.d.ts +1 -0
  82. package/types/packages/platform/error-handlers/src/lib/types/http-serialized-error.d.ts +1 -0
@@ -1,5 +1,5 @@
1
- import { MetadataNotification, _MetadataNotificationTransformation } from './metadata-notification';
2
- import { Timeframe, _TimeframeTransformation } from './timeframe';
1
+ import { MetadataNotification } from './metadata-notification';
2
+ import { Timeframe } from './timeframe';
3
3
  /**
4
4
  * Collects various bits of metadata information.
5
5
  */
@@ -45,24 +45,8 @@ export interface GrailMetadata {
45
45
  * The id of the query
46
46
  */
47
47
  queryId?: string;
48
- }
49
- /** @ignore */
50
- export declare namespace _GrailMetadataTransformation {
51
- interface AsJson {
52
- canonicalQuery?: string;
53
- timezone?: string;
54
- query?: string;
55
- scannedRecords?: number;
56
- dqlVersion?: string;
57
- scannedBytes?: number;
58
- analysisTimeframe?: _TimeframeTransformation.AsJson;
59
- locale?: string;
60
- executionTimeMilliseconds?: number;
61
- notifications?: _MetadataNotificationTransformation.AsJson[];
62
- queryId?: string;
63
- }
64
- function isGrailMetadata(value: any): value is GrailMetadata;
65
- function isJson(value: any): value is AsJson;
66
- function fromJson($model: AsJson): GrailMetadata;
67
- function toJson($model: GrailMetadata): AsJson;
48
+ /**
49
+ * True if sampling was used for at least one segment.
50
+ */
51
+ sampled?: boolean;
68
52
  }
@@ -0,0 +1,21 @@
1
+ import { GrailMetadata } from './grail-metadata';
2
+ import * as _MetadataNotificationTransformation from './metadata-notification.transformation';
3
+ import * as _TimeframeTransformation from './timeframe.transformation';
4
+ export interface AsJson {
5
+ canonicalQuery?: string;
6
+ timezone?: string;
7
+ query?: string;
8
+ scannedRecords?: number;
9
+ dqlVersion?: string;
10
+ scannedBytes?: number;
11
+ analysisTimeframe?: _TimeframeTransformation.AsJson;
12
+ locale?: string;
13
+ executionTimeMilliseconds?: number;
14
+ notifications?: _MetadataNotificationTransformation.AsJson[];
15
+ queryId?: string;
16
+ sampled?: boolean;
17
+ }
18
+ export declare function isGrailMetadata(value: any): value is GrailMetadata;
19
+ export declare function isJson(value: any): value is AsJson;
20
+ export declare function fromJson($model: AsJson): GrailMetadata;
21
+ export declare function toJson($model: GrailMetadata): AsJson;
@@ -1,35 +1,70 @@
1
1
  export * from './autocomplete-request';
2
+ export * as _AutocompleteRequestTransformation from './autocomplete-request.transformation';
2
3
  export * from './autocomplete-response';
4
+ export * as _AutocompleteResponseTransformation from './autocomplete-response.transformation';
3
5
  export * from './autocomplete-suggestion';
6
+ export * as _AutocompleteSuggestionTransformation from './autocomplete-suggestion.transformation';
4
7
  export * from './autocomplete-suggestion-part';
8
+ export * as _AutocompleteSuggestionPartTransformation from './autocomplete-suggestion-part.transformation';
5
9
  export * from './dql-alternative-node';
10
+ export * as _DQLAlternativeNodeTransformation from './dql-alternative-node.transformation';
6
11
  export * from './dql-container-node';
12
+ export * as _DQLContainerNodeTransformation from './dql-container-node.transformation';
7
13
  export * from './dql-node';
14
+ export * as _DQLNodeTransformation from './dql-node.transformation';
8
15
  export * from './dql-node-node-type';
16
+ export * as _DQLNodeNodeTypeTransformation from './dql-node-node-type.transformation';
9
17
  export * from './dql-terminal-node';
18
+ export * as _DQLTerminalNodeTransformation from './dql-terminal-node.transformation';
10
19
  export * from './error-envelope';
20
+ export * as _ErrorEnvelopeTransformation from './error-envelope.transformation';
11
21
  export * from './error-response';
22
+ export * as _ErrorResponseTransformation from './error-response.transformation';
12
23
  export * from './error-response-details';
24
+ export * as _ErrorResponseDetailsTransformation from './error-response-details.transformation';
13
25
  export * from './execute-request';
26
+ export * as _ExecuteRequestTransformation from './execute-request.transformation';
14
27
  export * from './field-type';
28
+ export * as _FieldTypeTransformation from './field-type.transformation';
15
29
  export * from './field-type-type';
30
+ export * as _FieldTypeTypeTransformation from './field-type-type.transformation';
16
31
  export * from './geo-point';
32
+ export * as _GeoPointTransformation from './geo-point.transformation';
17
33
  export * from './grail-metadata';
34
+ export * as _GrailMetadataTransformation from './grail-metadata.transformation';
18
35
  export * from './metadata';
36
+ export * as _MetadataTransformation from './metadata.transformation';
19
37
  export * from './metadata-notification';
38
+ export * as _MetadataNotificationTransformation from './metadata-notification.transformation';
20
39
  export * from './metric-metadata';
40
+ export * as _MetricMetadataTransformation from './metric-metadata.transformation';
21
41
  export * from './parse-request';
42
+ export * as _ParseRequestTransformation from './parse-request.transformation';
22
43
  export * from './position-info';
44
+ export * as _PositionInfoTransformation from './position-info.transformation';
23
45
  export * from './query-poll-response';
46
+ export * as _QueryPollResponseTransformation from './query-poll-response.transformation';
24
47
  export * from './query-result';
48
+ export * as _QueryResultTransformation from './query-result.transformation';
25
49
  export * from './query-start-response';
50
+ export * as _QueryStartResponseTransformation from './query-start-response.transformation';
26
51
  export * from './query-state';
52
+ export * as _QueryStateTransformation from './query-state.transformation';
27
53
  export * from './ranged-field-types';
54
+ export * as _RangedFieldTypesTransformation from './ranged-field-types.transformation';
28
55
  export * from './ranged-field-types-mappings';
56
+ export * as _RangedFieldTypesMappingsTransformation from './ranged-field-types-mappings.transformation';
29
57
  export * from './result-record';
58
+ export * as _ResultRecordTransformation from './result-record.transformation';
30
59
  export * from './result-record-value';
60
+ export * as _ResultRecordValueTransformation from './result-record-value.transformation';
31
61
  export * from './timeframe';
62
+ export * as _TimeframeTransformation from './timeframe.transformation';
32
63
  export * from './token-position';
64
+ export * as _TokenPositionTransformation from './token-position.transformation';
33
65
  export * from './token-type';
66
+ export * as _TokenTypeTransformation from './token-type.transformation';
34
67
  export * from './verify-request';
68
+ export * as _VerifyRequestTransformation from './verify-request.transformation';
35
69
  export * from './verify-response';
70
+ export * as _VerifyResponseTransformation from './verify-response.transformation';
@@ -1,4 +1,4 @@
1
- import { TokenPosition, _TokenPositionTransformation } from './token-position';
1
+ import { TokenPosition } from './token-position';
2
2
  /**
3
3
  * The message that provides additional information about the execution of the query.
4
4
  */
@@ -29,19 +29,3 @@ export interface MetadataNotification {
29
29
  */
30
30
  message?: string;
31
31
  }
32
- /** @ignore */
33
- export declare namespace _MetadataNotificationTransformation {
34
- interface AsJson {
35
- severity?: string;
36
- messageFormat?: string;
37
- syntaxPosition?: _TokenPositionTransformation.AsJson;
38
- messageFormatSpecifierTypes?: string[];
39
- arguments?: string[];
40
- notificationType?: string;
41
- message?: string;
42
- }
43
- function isMetadataNotification(value: any): value is MetadataNotification;
44
- function isJson(value: any): value is AsJson;
45
- function fromJson($model: AsJson): MetadataNotification;
46
- function toJson($model: MetadataNotification): AsJson;
47
- }
@@ -0,0 +1,15 @@
1
+ import { MetadataNotification } from './metadata-notification';
2
+ import * as _TokenPositionTransformation from './token-position.transformation';
3
+ export interface AsJson {
4
+ severity?: string;
5
+ messageFormat?: string;
6
+ syntaxPosition?: _TokenPositionTransformation.AsJson;
7
+ messageFormatSpecifierTypes?: string[];
8
+ arguments?: string[];
9
+ notificationType?: string;
10
+ message?: string;
11
+ }
12
+ export declare function isMetadataNotification(value: any): value is MetadataNotification;
13
+ export declare function isJson(value: any): value is AsJson;
14
+ export declare function fromJson($model: AsJson): MetadataNotification;
15
+ export declare function toJson($model: MetadataNotification): AsJson;
@@ -1,5 +1,5 @@
1
- import { GrailMetadata, _GrailMetadataTransformation } from './grail-metadata';
2
- import { MetricMetadata, _MetricMetadataTransformation } from './metric-metadata';
1
+ import { GrailMetadata } from './grail-metadata';
2
+ import { MetricMetadata } from './metric-metadata';
3
3
  /**
4
4
  * Collects various bits of metadata information.
5
5
  */
@@ -7,14 +7,3 @@ export interface Metadata {
7
7
  grail?: GrailMetadata;
8
8
  metrics?: MetricMetadata[];
9
9
  }
10
- /** @ignore */
11
- export declare namespace _MetadataTransformation {
12
- interface AsJson {
13
- grail?: _GrailMetadataTransformation.AsJson;
14
- metrics?: _MetricMetadataTransformation.AsJson[];
15
- }
16
- function isMetadata(value: any): value is Metadata;
17
- function isJson(value: any): value is AsJson;
18
- function fromJson($model: AsJson): Metadata;
19
- function toJson($model: Metadata): AsJson;
20
- }
@@ -0,0 +1,11 @@
1
+ import * as _GrailMetadataTransformation from './grail-metadata.transformation';
2
+ import { Metadata } from './metadata';
3
+ import * as _MetricMetadataTransformation from './metric-metadata.transformation';
4
+ export interface AsJson {
5
+ grail?: _GrailMetadataTransformation.AsJson;
6
+ metrics?: _MetricMetadataTransformation.AsJson[];
7
+ }
8
+ export declare function isMetadata(value: any): value is Metadata;
9
+ export declare function isJson(value: any): value is AsJson;
10
+ export declare function fromJson($model: AsJson): Metadata;
11
+ export declare function toJson($model: Metadata): AsJson;
@@ -19,16 +19,3 @@ export interface MetricMetadata {
19
19
  */
20
20
  unit?: string;
21
21
  }
22
- /** @ignore */
23
- export declare namespace _MetricMetadataTransformation {
24
- interface AsJson {
25
- 'metric.key'?: string;
26
- displayName?: string;
27
- description?: string;
28
- unit?: string;
29
- }
30
- function isMetricMetadata(value: any): value is MetricMetadata;
31
- function isJson(value: any): value is AsJson;
32
- function fromJson($model: AsJson): MetricMetadata;
33
- function toJson($model: MetricMetadata): AsJson;
34
- }
@@ -0,0 +1,11 @@
1
+ import { MetricMetadata } from './metric-metadata';
2
+ export interface AsJson {
3
+ 'metric.key'?: string;
4
+ displayName?: string;
5
+ description?: string;
6
+ unit?: string;
7
+ }
8
+ export declare function isMetricMetadata(value: any): value is MetricMetadata;
9
+ export declare function isJson(value: any): value is AsJson;
10
+ export declare function fromJson($model: AsJson): MetricMetadata;
11
+ export declare function toJson($model: MetricMetadata): AsJson;
@@ -12,15 +12,3 @@ export interface ParseRequest {
12
12
  */
13
13
  locale?: string;
14
14
  }
15
- /** @ignore */
16
- export declare namespace _ParseRequestTransformation {
17
- interface AsJson {
18
- query: string;
19
- timezone?: string;
20
- locale?: string;
21
- }
22
- function isParseRequest(value: any): value is ParseRequest;
23
- function isJson(value: any): value is AsJson;
24
- function fromJson($model: AsJson): ParseRequest;
25
- function toJson($model: ParseRequest): AsJson;
26
- }
@@ -0,0 +1,10 @@
1
+ import { ParseRequest } from './parse-request';
2
+ export interface AsJson {
3
+ query: string;
4
+ timezone?: string;
5
+ locale?: string;
6
+ }
7
+ export declare function isParseRequest(value: any): value is ParseRequest;
8
+ export declare function isJson(value: any): value is AsJson;
9
+ export declare function fromJson($model: AsJson): ParseRequest;
10
+ export declare function toJson($model: ParseRequest): AsJson;
@@ -15,15 +15,3 @@ export interface PositionInfo {
15
15
  */
16
16
  line: number;
17
17
  }
18
- /** @ignore */
19
- export declare namespace _PositionInfoTransformation {
20
- interface AsJson {
21
- column: number;
22
- index: number;
23
- line: number;
24
- }
25
- function isPositionInfo(value: any): value is PositionInfo;
26
- function isJson(value: any): value is AsJson;
27
- function fromJson($model: AsJson): PositionInfo;
28
- function toJson($model: PositionInfo): AsJson;
29
- }
@@ -0,0 +1,10 @@
1
+ import { PositionInfo } from './position-info';
2
+ export interface AsJson {
3
+ column: number;
4
+ index: number;
5
+ line: number;
6
+ }
7
+ export declare function isPositionInfo(value: any): value is PositionInfo;
8
+ export declare function isJson(value: any): value is AsJson;
9
+ export declare function fromJson($model: AsJson): PositionInfo;
10
+ export declare function toJson($model: PositionInfo): AsJson;
@@ -1,5 +1,5 @@
1
- import { QueryResult, _QueryResultTransformation } from './query-result';
2
- import { QueryState, _QueryStateTransformation } from './query-state';
1
+ import { QueryResult } from './query-result';
2
+ import { QueryState } from './query-state';
3
3
  /**
4
4
  * The response of GET query:execute call.
5
5
  */
@@ -15,16 +15,3 @@ export interface QueryPollResponse {
15
15
  progress?: number;
16
16
  state: QueryState;
17
17
  }
18
- /** @ignore */
19
- export declare namespace _QueryPollResponseTransformation {
20
- interface AsJson {
21
- result?: _QueryResultTransformation.AsJson;
22
- ttlSeconds?: number;
23
- progress?: number;
24
- state: _QueryStateTransformation.AsJson;
25
- }
26
- function isQueryPollResponse(value: any): value is QueryPollResponse;
27
- function isJson(value: any): value is AsJson;
28
- function fromJson($model: AsJson): QueryPollResponse;
29
- function toJson($model: QueryPollResponse): AsJson;
30
- }
@@ -0,0 +1,13 @@
1
+ import { QueryPollResponse } from './query-poll-response';
2
+ import * as _QueryResultTransformation from './query-result.transformation';
3
+ import * as _QueryStateTransformation from './query-state.transformation';
4
+ export interface AsJson {
5
+ result?: _QueryResultTransformation.AsJson;
6
+ ttlSeconds?: number;
7
+ progress?: number;
8
+ state: _QueryStateTransformation.AsJson;
9
+ }
10
+ export declare function isQueryPollResponse(value: any): value is QueryPollResponse;
11
+ export declare function isJson(value: any): value is AsJson;
12
+ export declare function fromJson($model: AsJson): QueryPollResponse;
13
+ export declare function toJson($model: QueryPollResponse): AsJson;
@@ -1,6 +1,6 @@
1
- import { Metadata, _MetadataTransformation } from './metadata';
2
- import { RangedFieldTypes, _RangedFieldTypesTransformation } from './ranged-field-types';
3
- import { ResultRecord, _ResultRecordTransformation } from './result-record';
1
+ import { Metadata } from './metadata';
2
+ import { RangedFieldTypes } from './ranged-field-types';
3
+ import { ResultRecord } from './result-record';
4
4
  /**
5
5
  * The result of the DQL query.
6
6
  */
@@ -15,15 +15,3 @@ export interface QueryResult {
15
15
  */
16
16
  types: RangedFieldTypes[];
17
17
  }
18
- /** @ignore */
19
- export declare namespace _QueryResultTransformation {
20
- interface AsJson {
21
- records: (_ResultRecordTransformation.AsJson | null)[];
22
- metadata: _MetadataTransformation.AsJson;
23
- types: _RangedFieldTypesTransformation.AsJson[];
24
- }
25
- function isQueryResult(value: any): value is QueryResult;
26
- function isJson(value: any): value is AsJson;
27
- function fromJson($model: AsJson): QueryResult;
28
- function toJson($model: QueryResult): AsJson;
29
- }
@@ -0,0 +1,13 @@
1
+ import * as _MetadataTransformation from './metadata.transformation';
2
+ import { QueryResult } from './query-result';
3
+ import * as _RangedFieldTypesTransformation from './ranged-field-types.transformation';
4
+ import * as _ResultRecordTransformation from './result-record.transformation';
5
+ export interface AsJson {
6
+ records: (_ResultRecordTransformation.AsJson | null)[];
7
+ metadata: _MetadataTransformation.AsJson;
8
+ types: _RangedFieldTypesTransformation.AsJson[];
9
+ }
10
+ export declare function isQueryResult(value: any): value is QueryResult;
11
+ export declare function isJson(value: any): value is AsJson;
12
+ export declare function fromJson($model: AsJson): QueryResult;
13
+ export declare function toJson($model: QueryResult): AsJson;
@@ -1,5 +1,5 @@
1
- import { QueryResult, _QueryResultTransformation } from './query-result';
2
- import { QueryState, _QueryStateTransformation } from './query-state';
1
+ import { QueryResult } from './query-result';
2
+ import { QueryState } from './query-state';
3
3
  /**
4
4
  * The response when starting a query.
5
5
  */
@@ -19,17 +19,3 @@ export interface QueryStartResponse {
19
19
  requestToken?: string;
20
20
  state: QueryState;
21
21
  }
22
- /** @ignore */
23
- export declare namespace _QueryStartResponseTransformation {
24
- interface AsJson {
25
- result?: _QueryResultTransformation.AsJson;
26
- ttlSeconds?: number;
27
- progress?: number;
28
- requestToken?: string;
29
- state: _QueryStateTransformation.AsJson;
30
- }
31
- function isQueryStartResponse(value: any): value is QueryStartResponse;
32
- function isJson(value: any): value is AsJson;
33
- function fromJson($model: AsJson): QueryStartResponse;
34
- function toJson($model: QueryStartResponse): AsJson;
35
- }
@@ -0,0 +1,14 @@
1
+ import * as _QueryResultTransformation from './query-result.transformation';
2
+ import { QueryStartResponse } from './query-start-response';
3
+ import * as _QueryStateTransformation from './query-state.transformation';
4
+ export interface AsJson {
5
+ result?: _QueryResultTransformation.AsJson;
6
+ ttlSeconds?: number;
7
+ progress?: number;
8
+ requestToken?: string;
9
+ state: _QueryStateTransformation.AsJson;
10
+ }
11
+ export declare function isQueryStartResponse(value: any): value is QueryStartResponse;
12
+ export declare function isJson(value: any): value is AsJson;
13
+ export declare function fromJson($model: AsJson): QueryStartResponse;
14
+ export declare function toJson($model: QueryStartResponse): AsJson;
@@ -9,9 +9,3 @@ export declare enum QueryState {
9
9
  Cancelled = "CANCELLED",
10
10
  Failed = "FAILED"
11
11
  }
12
- /** @ignore */
13
- export declare namespace _QueryStateTransformation {
14
- type AsJson = QueryState;
15
- const toJson: (value: QueryState) => AsJson;
16
- const fromJson: (value: AsJson) => QueryState;
17
- }
@@ -0,0 +1,6 @@
1
+ import { QueryState } from './query-state';
2
+ export declare type AsJson = string;
3
+ export declare function isQueryState(value: any): value is QueryState;
4
+ export declare function isJson(value: any): value is AsJson;
5
+ export declare function fromJson($model: AsJson): QueryState;
6
+ export declare function toJson($model: QueryState): AsJson;
@@ -1,17 +1,7 @@
1
- import { FieldType, _FieldTypeTransformation } from './field-type';
1
+ import { FieldType } from './field-type';
2
2
  /**
3
3
  * The mapping between the field name and data type.
4
4
  */
5
5
  export interface RangedFieldTypesMappings {
6
6
  [propName: string]: FieldType | undefined;
7
7
  }
8
- /** @ignore */
9
- export declare namespace _RangedFieldTypesMappingsTransformation {
10
- interface AsJson {
11
- [propName: string]: _FieldTypeTransformation.AsJson | undefined;
12
- }
13
- function isRangedFieldTypesMappings(value: any): value is RangedFieldTypesMappings;
14
- function isJson(value: any): value is AsJson;
15
- function fromJson($model: AsJson): RangedFieldTypesMappings;
16
- function toJson($model: RangedFieldTypesMappings): AsJson;
17
- }
@@ -0,0 +1,9 @@
1
+ import * as _FieldTypeTransformation from './field-type.transformation';
2
+ import { RangedFieldTypesMappings } from './ranged-field-types-mappings';
3
+ export interface AsJson {
4
+ [propName: string]: _FieldTypeTransformation.AsJson | undefined;
5
+ }
6
+ export declare function isRangedFieldTypesMappings(value: any): value is RangedFieldTypesMappings;
7
+ export declare function isJson(value: any): value is AsJson;
8
+ export declare function fromJson($model: AsJson): RangedFieldTypesMappings;
9
+ export declare function toJson($model: RangedFieldTypesMappings): AsJson;
@@ -1,4 +1,4 @@
1
- import { RangedFieldTypesMappings, _RangedFieldTypesMappingsTransformation } from './ranged-field-types-mappings';
1
+ import { RangedFieldTypesMappings } from './ranged-field-types-mappings';
2
2
  /**
3
3
  * The field type in range.
4
4
  */
@@ -9,14 +9,3 @@ export interface RangedFieldTypes {
9
9
  */
10
10
  indexRange?: number[];
11
11
  }
12
- /** @ignore */
13
- export declare namespace _RangedFieldTypesTransformation {
14
- interface AsJson {
15
- mappings: _RangedFieldTypesMappingsTransformation.AsJson;
16
- indexRange?: number[];
17
- }
18
- function isRangedFieldTypes(value: any): value is RangedFieldTypes;
19
- function isJson(value: any): value is AsJson;
20
- function fromJson($model: AsJson): RangedFieldTypes;
21
- function toJson($model: RangedFieldTypes): AsJson;
22
- }
@@ -0,0 +1,10 @@
1
+ import { RangedFieldTypes } from './ranged-field-types';
2
+ import * as _RangedFieldTypesMappingsTransformation from './ranged-field-types-mappings.transformation';
3
+ export interface AsJson {
4
+ mappings: _RangedFieldTypesMappingsTransformation.AsJson;
5
+ indexRange?: number[];
6
+ }
7
+ export declare function isRangedFieldTypes(value: any): value is RangedFieldTypes;
8
+ export declare function isJson(value: any): value is AsJson;
9
+ export declare function fromJson($model: AsJson): RangedFieldTypes;
10
+ export declare function toJson($model: RangedFieldTypes): AsJson;
@@ -1,28 +1,8 @@
1
- import { GeoPoint, _GeoPointTransformation } from '../models/geo-point';
2
- import { ResultRecord, _ResultRecordTransformation } from '../models/result-record';
3
- import { Timeframe, _TimeframeTransformation } from '../models/timeframe';
1
+ import { GeoPoint } from '../models/geo-point';
2
+ import { ResultRecord } from '../models/result-record';
3
+ import { Timeframe } from '../models/timeframe';
4
4
  /**
5
5
  * Single result field of a record.
6
6
  * @typedef {boolean | number | string | Timeframe | GeoPoint | ResultRecord | null | (ResultRecordValue | null)[] | null} ResultRecordValue
7
7
  */
8
8
  export declare type ResultRecordValue = boolean | number | string | Timeframe | GeoPoint | ResultRecord | null | (ResultRecordValue | null)[] | null;
9
- export declare namespace _ResultRecordValueTransformation {
10
- type AsJson = boolean | number | string | _TimeframeTransformation.AsJson | _GeoPointTransformation.AsJson | _ResultRecordTransformation.AsJson | null | (_ResultRecordValueTransformation.AsJson | null)[] | null;
11
- function checkBoolean(value: any): value is boolean;
12
- function checkNumber(value: any): value is number;
13
- function checkString(value: any): value is string;
14
- function checkTimeframe(value: any): value is Timeframe;
15
- function checkGeoPoint(value: any): value is GeoPoint;
16
- function checkResultRecord(value: any): value is ResultRecord;
17
- function checkArrayResultRecordValueNullItemDatatype(value: any): value is ResultRecordValue;
18
- function checkArrayResultRecordValue(value: any): value is Array<ResultRecordValue | null>;
19
- function isResultRecordValue(value: any): value is ResultRecordValue;
20
- function checkTimeframeAsJson(value: any): value is _TimeframeTransformation.AsJson;
21
- function checkGeoPointAsJson(value: any): value is _GeoPointTransformation.AsJson;
22
- function checkResultRecordAsJson(value: any): value is _ResultRecordTransformation.AsJson;
23
- function checkArrayResultRecordValueTransformationAsJsonNullItemDatatype(value: any): value is ResultRecordValue;
24
- function checkArrayResultRecordValueAsJson(value: any): value is Array<_ResultRecordValueTransformation.AsJson | null>;
25
- function isJson(value: any): value is AsJson;
26
- function fromJson(model: AsJson): ResultRecordValue;
27
- function toJson(model: ResultRecordValue): AsJson;
28
- }
@@ -0,0 +1,26 @@
1
+ import { GeoPoint } from '../models/geo-point';
2
+ import * as _GeoPointTransformation from '../models/geo-point.transformation';
3
+ import { ResultRecord } from '../models/result-record';
4
+ import * as _ResultRecordTransformation from '../models/result-record.transformation';
5
+ import { Timeframe } from '../models/timeframe';
6
+ import * as _TimeframeTransformation from '../models/timeframe.transformation';
7
+ import { ResultRecordValue } from './result-record-value';
8
+ import * as _ResultRecordValueTransformation from './result-record-value.transformation';
9
+ export declare type AsJson = boolean | number | string | _TimeframeTransformation.AsJson | _GeoPointTransformation.AsJson | _ResultRecordTransformation.AsJson | null | (_ResultRecordValueTransformation.AsJson | null)[] | null;
10
+ export declare function checkBoolean(value: any): value is boolean;
11
+ export declare function checkNumber(value: any): value is number;
12
+ export declare function checkString(value: any): value is string;
13
+ export declare function checkTimeframe(value: any): value is Timeframe;
14
+ export declare function checkGeoPoint(value: any): value is GeoPoint;
15
+ export declare function checkResultRecord(value: any): value is ResultRecord;
16
+ export declare function checkArrayResultRecordValueNullItemDatatype(value: any): value is ResultRecordValue;
17
+ export declare function checkArrayResultRecordValue(value: any): value is Array<ResultRecordValue | null>;
18
+ export declare function isResultRecordValue(value: any): value is ResultRecordValue;
19
+ export declare function checkTimeframeAsJson(value: any): value is _TimeframeTransformation.AsJson;
20
+ export declare function checkGeoPointAsJson(value: any): value is _GeoPointTransformation.AsJson;
21
+ export declare function checkResultRecordAsJson(value: any): value is _ResultRecordTransformation.AsJson;
22
+ export declare function checkArrayResultRecordValueTransformationAsJsonNullItemDatatype(value: any): value is ResultRecordValue;
23
+ export declare function checkArrayResultRecordValueAsJson(value: any): value is Array<_ResultRecordValueTransformation.AsJson | null>;
24
+ export declare function isJson(value: any): value is AsJson;
25
+ export declare function fromJson($model: AsJson): ResultRecordValue;
26
+ export declare function toJson($model: ResultRecordValue): AsJson;
@@ -1,17 +1,7 @@
1
- import { ResultRecordValue, _ResultRecordValueTransformation } from './result-record-value';
1
+ import { ResultRecordValue } from './result-record-value';
2
2
  /**
3
3
  * Single record that contains the result fields.
4
4
  */
5
5
  export interface ResultRecord {
6
6
  [propName: string]: ResultRecordValue | null | undefined;
7
7
  }
8
- /** @ignore */
9
- export declare namespace _ResultRecordTransformation {
10
- interface AsJson {
11
- [propName: string]: _ResultRecordValueTransformation.AsJson | null | undefined;
12
- }
13
- function isResultRecord(value: any): value is ResultRecord;
14
- function isJson(value: any): value is AsJson;
15
- function fromJson($model: AsJson | null): ResultRecord | null;
16
- function toJson($model: ResultRecord | null): AsJson | null;
17
- }
@@ -0,0 +1,9 @@
1
+ import { ResultRecord } from './result-record';
2
+ import * as _ResultRecordValueTransformation from './result-record-value.transformation';
3
+ export interface AsJson {
4
+ [propName: string]: _ResultRecordValueTransformation.AsJson | null | undefined;
5
+ }
6
+ export declare function isResultRecord(value: any): value is ResultRecord;
7
+ export declare function isJson(value: any): value is AsJson;
8
+ export declare function fromJson($model: AsJson | null): ResultRecord | null;
9
+ export declare function toJson($model: ResultRecord | null): AsJson | null;
@@ -11,14 +11,3 @@ export interface Timeframe {
11
11
  */
12
12
  end?: Date;
13
13
  }
14
- /** @ignore */
15
- export declare namespace _TimeframeTransformation {
16
- interface AsJson {
17
- start?: string;
18
- end?: string;
19
- }
20
- function isTimeframe(value: any): value is Timeframe;
21
- function isJson(value: any): value is AsJson;
22
- function fromJson($model: AsJson): Timeframe;
23
- function toJson($model: Timeframe): AsJson;
24
- }
@@ -0,0 +1,9 @@
1
+ import { Timeframe } from './timeframe';
2
+ export interface AsJson {
3
+ start?: string;
4
+ end?: string;
5
+ }
6
+ export declare function isTimeframe(value: any): value is Timeframe;
7
+ export declare function isJson(value: any): value is AsJson;
8
+ export declare function fromJson($model: AsJson): Timeframe;
9
+ export declare function toJson($model: Timeframe): AsJson;