@dynatrace-sdk/client-query 1.11.1 → 1.12.1

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.
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@dynatrace-sdk/client-query",
3
- "version": "1.11.1",
3
+ "version": "1.12.1",
4
4
  "description": "Exposes an API to fetch records stored in Grail.",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {
7
7
  "@dynatrace-sdk/error-handlers": "^1.2.0",
8
- "@dynatrace-sdk/http-client": "^1.0.10"
8
+ "@dynatrace-sdk/http-client": "^1.3.0"
9
9
  },
10
10
  "main": "./cjs/index.js",
11
11
  "module": "./esm/index.js",
@@ -0,0 +1,14 @@
1
+ export interface ErrorResponseDetailsConstraintViolationsItem {
2
+ /**
3
+ * Message describing the error.
4
+ */
5
+ message: string;
6
+ /**
7
+ * Describes the general location of the violating parameter.
8
+ */
9
+ parameterLocation?: string;
10
+ /**
11
+ * Describes the violating parameter.
12
+ */
13
+ parameterDescriptor?: string;
14
+ }
@@ -0,0 +1,10 @@
1
+ import { ErrorResponseDetailsConstraintViolationsItem } from './error-response-details-constraint-violations-item';
2
+ export interface AsJson {
3
+ message: string;
4
+ parameterLocation?: string;
5
+ parameterDescriptor?: string;
6
+ }
7
+ export declare function isErrorResponseDetailsConstraintViolationsItem(value: any): value is ErrorResponseDetailsConstraintViolationsItem;
8
+ export declare function isJson(value: any): value is AsJson;
9
+ export declare function fromJson($model: AsJson): ErrorResponseDetailsConstraintViolationsItem;
10
+ export declare function toJson($model: ErrorResponseDetailsConstraintViolationsItem): AsJson;
@@ -1,3 +1,4 @@
1
+ import { ErrorResponseDetailsConstraintViolationsItem } from './error-response-details-constraint-violations-item';
1
2
  import { TokenPosition } from './token-position';
2
3
  /**
3
4
  * Detailed information about the error.
@@ -6,31 +7,43 @@ export interface ErrorResponseDetails {
6
7
  /**
7
8
  * The exception type.
8
9
  */
9
- exceptionType: string;
10
+ exceptionType?: string;
10
11
  syntaxErrorPosition?: TokenPosition;
11
12
  /**
12
13
  * The error type, e.g. COMMAND_NAME_MISSING
13
14
  */
14
- errorType: string;
15
+ errorType?: string;
15
16
  /**
16
17
  * Complete error message.
17
18
  */
18
- errorMessage: string;
19
+ errorMessage?: string;
19
20
  /**
20
21
  * The arguments for the message format.
21
22
  */
22
- arguments: string[];
23
+ arguments?: string[];
23
24
  /**
24
25
  * Submitted query string.
25
26
  */
26
- queryString: string;
27
+ queryString?: string;
27
28
  /**
28
29
  * The corresponding DQL format specifier types for each format specifier used in the error message format.
29
30
  */
30
- errorMessageFormatSpecifierTypes: string[];
31
+ errorMessageFormatSpecifierTypes?: string[];
31
32
  /**
32
33
  * The message format of the error message, string.format based.
33
34
  */
34
- errorMessageFormat: string;
35
+ errorMessageFormat?: string;
35
36
  queryId?: string;
37
+ /**
38
+ * Information about an input parameter that violated some validation rule of the service API.
39
+ */
40
+ constraintViolations?: ErrorResponseDetailsConstraintViolationsItem[];
41
+ /**
42
+ * List of missing IAM scopes necessary to successfully execute the request.
43
+ */
44
+ missingScopes?: string[];
45
+ /**
46
+ * List of missing IAM permissions necessary to successfully execute the request.
47
+ */
48
+ missingPermissions?: string[];
36
49
  }
@@ -1,15 +1,19 @@
1
1
  import { ErrorResponseDetails } from './error-response-details';
2
+ import * as _ErrorResponseDetailsConstraintViolationsItemTransformation from './error-response-details-constraint-violations-item.transformation';
2
3
  import * as _TokenPositionTransformation from './token-position.transformation';
3
4
  export interface AsJson {
4
- exceptionType: string;
5
+ exceptionType?: string;
5
6
  syntaxErrorPosition?: _TokenPositionTransformation.AsJson;
6
- errorType: string;
7
- errorMessage: string;
8
- arguments: string[];
9
- queryString: string;
10
- errorMessageFormatSpecifierTypes: string[];
11
- errorMessageFormat: string;
7
+ errorType?: string;
8
+ errorMessage?: string;
9
+ arguments?: string[];
10
+ queryString?: string;
11
+ errorMessageFormatSpecifierTypes?: string[];
12
+ errorMessageFormat?: string;
12
13
  queryId?: string;
14
+ constraintViolations?: _ErrorResponseDetailsConstraintViolationsItemTransformation.AsJson[];
15
+ missingScopes?: string[];
16
+ missingPermissions?: string[];
13
17
  }
14
18
  export declare function isErrorResponseDetails(value: any): value is ErrorResponseDetails;
15
19
  export declare function isJson(value: any): value is AsJson;
@@ -7,7 +7,7 @@ export interface ErrorResponse {
7
7
  * A short, clear error message without details
8
8
  */
9
9
  message: string;
10
- details: ErrorResponseDetails;
10
+ details?: ErrorResponseDetails;
11
11
  /**
12
12
  * Error code, which normally matches the HTTP error code.
13
13
  */
@@ -2,7 +2,7 @@ import { ErrorResponse } from './error-response';
2
2
  import * as _ErrorResponseDetailsTransformation from './error-response-details.transformation';
3
3
  export interface AsJson {
4
4
  message: string;
5
- details: _ErrorResponseDetailsTransformation.AsJson;
5
+ details?: _ErrorResponseDetailsTransformation.AsJson;
6
6
  code: number;
7
7
  }
8
8
  export declare function isErrorResponse(value: any): value is ErrorResponse;
@@ -22,6 +22,8 @@ export * from './error-response';
22
22
  export * as _ErrorResponseTransformation from './error-response.transformation';
23
23
  export * from './error-response-details';
24
24
  export * as _ErrorResponseDetailsTransformation from './error-response-details.transformation';
25
+ export * from './error-response-details-constraint-violations-item';
26
+ export * as _ErrorResponseDetailsConstraintViolationsItemTransformation from './error-response-details-constraint-violations-item.transformation';
25
27
  export * from './execute-request';
26
28
  export * as _ExecuteRequestTransformation from './execute-request.transformation';
27
29
  export * from './field-type';
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Represents a signal object that allows to communicate with the request and abort it using the `AbortController`.
3
+ * @deprecated Will be removed from HttpClient. We encourage using native interface for AbortSignal.
3
4
  */
4
- export interface AbortSignal extends EventTarget {
5
+ interface HttpClientAbortSignal extends EventTarget {
5
6
  readonly reason: any;
6
7
  throwIfAborted(): void;
7
8
  /**
@@ -13,3 +14,5 @@ export interface AbortSignal extends EventTarget {
13
14
  */
14
15
  onabort: ((this: AbortSignal, event: Event) => void) | null;
15
16
  }
17
+ export type AbortSignal = HttpClientAbortSignal | globalThis.AbortSignal;
18
+ export {};