@dynatrace-sdk/client-classic-environment-v2 1.10.0 → 1.12.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 (89) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +18259 -8
  3. package/cjs/index.js +4577 -3406
  4. package/docs/DOCS.md +7226 -4091
  5. package/dynatrace-metadata.json +2 -2
  6. package/esm/index.js +4577 -3406
  7. package/package.json +2 -2
  8. package/types/packages/client/classic-environment-v2/src/lib/apis/audit-logs-api.d.ts +4 -0
  9. package/types/packages/client/classic-environment-v2/src/lib/apis/business-events-api.d.ts +2 -2
  10. package/types/packages/client/classic-environment-v2/src/lib/apis/credential-vault-api.d.ts +2 -2
  11. package/types/packages/client/classic-environment-v2/src/lib/apis/extensions-2-0-api.d.ts +0 -2
  12. package/types/packages/client/classic-environment-v2/src/lib/apis/monitored-entities-api.d.ts +8 -4
  13. package/types/packages/client/classic-environment-v2/src/lib/apis/settings-objects-api.d.ts +4 -2
  14. package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-locations-nodes-and-configuration-api.d.ts +9 -6
  15. package/types/packages/client/classic-environment-v2/src/lib/models/any-value.d.ts +6 -0
  16. package/types/packages/client/classic-environment-v2/src/lib/models/any-value.transformation.d.ts +4 -0
  17. package/types/packages/client/classic-environment-v2/src/lib/models/api-token-create-scopes-item.d.ts +6 -1
  18. package/types/packages/client/classic-environment-v2/src/lib/models/api-token-create.d.ts +5 -0
  19. package/types/packages/client/classic-environment-v2/src/lib/models/api-token-scopes-item.d.ts +5 -0
  20. package/types/packages/client/classic-environment-v2/src/lib/models/api-token-update-scopes-item.d.ts +6 -1
  21. package/types/packages/client/classic-environment-v2/src/lib/models/api-token-update.d.ts +5 -0
  22. package/types/packages/client/classic-environment-v2/src/lib/models/asset-info-dto-type.d.ts +2 -0
  23. package/types/packages/client/classic-environment-v2/src/lib/models/audit-log-entry.d.ts +31 -2
  24. package/types/packages/client/classic-environment-v2/src/lib/models/audit-log-entry.transformation.d.ts +8 -2
  25. package/types/packages/client/classic-environment-v2/src/lib/models/complex-constraint.d.ts +4 -0
  26. package/types/packages/client/classic-environment-v2/src/lib/models/complex-constraint.transformation.d.ts +1 -0
  27. package/types/packages/client/classic-environment-v2/src/lib/models/constraint.d.ts +4 -0
  28. package/types/packages/client/classic-environment-v2/src/lib/models/constraint.transformation.d.ts +1 -0
  29. package/types/packages/client/classic-environment-v2/src/lib/models/credentials-response-element-scope.d.ts +0 -2
  30. package/types/packages/client/classic-environment-v2/src/lib/models/credentials-response-element-scopes-item.d.ts +1 -3
  31. package/types/packages/client/classic-environment-v2/src/lib/models/credentials-scope.d.ts +0 -2
  32. package/types/packages/client/classic-environment-v2/src/lib/models/credentials-scopes-item.d.ts +1 -3
  33. package/types/packages/client/classic-environment-v2/src/lib/models/effective-settings-value.d.ts +9 -2
  34. package/types/packages/client/classic-environment-v2/src/lib/models/effective-settings-value.transformation.d.ts +2 -2
  35. package/types/packages/client/classic-environment-v2/src/lib/models/enum-value.d.ts +5 -2
  36. package/types/packages/client/classic-environment-v2/src/lib/models/enum-value.transformation.d.ts +2 -2
  37. package/types/packages/client/classic-environment-v2/src/lib/models/execute-actions-response.d.ts +4 -0
  38. package/types/packages/client/classic-environment-v2/src/lib/models/execute-actions-response.transformation.d.ts +1 -0
  39. package/types/packages/client/classic-environment-v2/src/lib/models/index.d.ts +6 -16
  40. package/types/packages/client/classic-environment-v2/src/lib/models/item.d.ts +5 -2
  41. package/types/packages/client/classic-environment-v2/src/lib/models/item.transformation.d.ts +2 -2
  42. package/types/packages/client/classic-environment-v2/src/lib/models/log-message-json.d.ts +53 -9
  43. package/types/packages/client/classic-environment-v2/src/lib/models/metric-query-dql-translation-status.d.ts +7 -0
  44. package/types/packages/client/classic-environment-v2/src/lib/models/metric-query-dql-translation-status.transformation.d.ts +4 -0
  45. package/types/packages/client/classic-environment-v2/src/lib/models/metric-query-dql-translation.d.ts +15 -0
  46. package/types/packages/client/classic-environment-v2/src/lib/models/metric-query-dql-translation.transformation.d.ts +9 -0
  47. package/types/packages/client/classic-environment-v2/src/lib/models/metric-series-collection.d.ts +2 -0
  48. package/types/packages/client/classic-environment-v2/src/lib/models/metric-series-collection.transformation.d.ts +2 -0
  49. package/types/packages/client/classic-environment-v2/src/lib/models/network-zone.d.ts +1 -1
  50. package/types/packages/client/classic-environment-v2/src/lib/models/precondition.d.ts +8 -3
  51. package/types/packages/client/classic-environment-v2/src/lib/models/precondition.transformation.d.ts +3 -3
  52. package/types/packages/client/classic-environment-v2/src/lib/models/property-definition.d.ts +12 -4
  53. package/types/packages/client/classic-environment-v2/src/lib/models/property-definition.transformation.d.ts +4 -4
  54. package/types/packages/client/classic-environment-v2/src/lib/models/schema-constraint-rest-dto.d.ts +4 -0
  55. package/types/packages/client/classic-environment-v2/src/lib/models/schema-constraint-rest-dto.transformation.d.ts +1 -0
  56. package/types/packages/client/classic-environment-v2/src/lib/models/settings-object-create.d.ts +9 -2
  57. package/types/packages/client/classic-environment-v2/src/lib/models/settings-object-create.transformation.d.ts +2 -2
  58. package/types/packages/client/classic-environment-v2/src/lib/models/settings-object-response.d.ts +9 -2
  59. package/types/packages/client/classic-environment-v2/src/lib/models/settings-object-response.transformation.d.ts +2 -2
  60. package/types/packages/client/classic-environment-v2/src/lib/models/settings-object-update.d.ts +9 -2
  61. package/types/packages/client/classic-environment-v2/src/lib/models/settings-object-update.transformation.d.ts +2 -2
  62. package/types/packages/client/classic-environment-v2/src/lib/models/settings-object.d.ts +9 -2
  63. package/types/packages/client/classic-environment-v2/src/lib/models/settings-object.transformation.d.ts +2 -2
  64. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-dto.d.ts +4 -0
  65. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-dto.transformation.d.ts +1 -0
  66. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-update-dto.d.ts +4 -0
  67. package/types/packages/client/classic-environment-v2/src/lib/models/synthetic-multi-protocol-monitor-update-dto.transformation.d.ts +1 -0
  68. package/types/packages/client/classic-environment-v2/src/lib/models/ui-button-customization.d.ts +5 -2
  69. package/types/packages/client/classic-environment-v2/src/lib/models/ui-button-customization.transformation.d.ts +2 -2
  70. package/types/packages/client/classic-environment-v2/src/lib/utils/url-helpers.d.ts +4 -1
  71. package/types/packages/http-client/src/index.d.ts +1 -1
  72. package/types/packages/http-client/src/lib/platform/index.d.ts +1 -0
  73. package/types/packages/http-client/src/lib/platform/oauth-http-client.d.ts +41 -0
  74. package/types/packages/client/classic-environment-v2/src/lib/models/audit-log-entry-patch.d.ts +0 -8
  75. package/types/packages/client/classic-environment-v2/src/lib/models/audit-log-entry-patch.transformation.d.ts +0 -4
  76. package/types/packages/client/classic-environment-v2/src/lib/models/enum-value-value.d.ts +0 -6
  77. package/types/packages/client/classic-environment-v2/src/lib/models/enum-value-value.transformation.d.ts +0 -4
  78. package/types/packages/client/classic-environment-v2/src/lib/models/item-type.d.ts +0 -6
  79. package/types/packages/client/classic-environment-v2/src/lib/models/item-type.transformation.d.ts +0 -5
  80. package/types/packages/client/classic-environment-v2/src/lib/models/precondition-expected-value.d.ts +0 -8
  81. package/types/packages/client/classic-environment-v2/src/lib/models/precondition-expected-value.transformation.d.ts +0 -4
  82. package/types/packages/client/classic-environment-v2/src/lib/models/property-definition-default.d.ts +0 -8
  83. package/types/packages/client/classic-environment-v2/src/lib/models/property-definition-default.transformation.d.ts +0 -4
  84. package/types/packages/client/classic-environment-v2/src/lib/models/property-definition-type.d.ts +0 -6
  85. package/types/packages/client/classic-environment-v2/src/lib/models/property-definition-type.transformation.d.ts +0 -5
  86. package/types/packages/client/classic-environment-v2/src/lib/models/settings-value.d.ts +0 -10
  87. package/types/packages/client/classic-environment-v2/src/lib/models/settings-value.transformation.d.ts +0 -4
  88. package/types/packages/client/classic-environment-v2/src/lib/models/ui-button-customization-insert.d.ts +0 -6
  89. package/types/packages/client/classic-environment-v2/src/lib/models/ui-button-customization-insert.transformation.d.ts +0 -5
@@ -1,10 +1,10 @@
1
+ import * as _InsertPositionTransformation from './insert-position.transformation';
1
2
  import { UiButtonCustomization } from './ui-button-customization';
2
- import * as _UiButtonCustomizationInsertTransformation from './ui-button-customization-insert.transformation';
3
3
  export interface AsJson {
4
4
  description?: string;
5
5
  displayName: string;
6
6
  identifier: string;
7
- insert: _UiButtonCustomizationInsertTransformation.AsJson;
7
+ insert: string | _InsertPositionTransformation.AsJson;
8
8
  }
9
9
  export declare function fromJson($model: AsJson): UiButtonCustomization;
10
10
  export declare function toJson($model: UiButtonCustomization): AsJson;
@@ -1,3 +1,6 @@
1
1
  declare type QueryParamsType = Record<string | number, any>;
2
- export declare const toQueryString: (rawQuery?: QueryParamsType) => string;
2
+ interface ParametersFlags {
3
+ explode?: Record<string, boolean>;
4
+ }
5
+ export declare const toQueryString: (rawQuery?: QueryParamsType, flags?: ParametersFlags) => string;
3
6
  export {};
@@ -1,2 +1,2 @@
1
1
  export { AbortController, AbortSignal, BaseError, Binary, BinaryFormDataRequestField, BinaryFormDataResponseField, DataTypeError, DataTypes, FormDataRequestBody, FormDataRequestField, FormDataResponseBody, FormDataResponseField, Headers, HttpClient, HttpClientAbortError, HttpClientNetworkError, HttpClientRequestError, HttpClientRequestOptions, HttpClientResponse, HttpClientResponseError, JsonFormDataRequestField, RequestBodyTypes, ResponseBodyTypes, StatusValidator, TextFormDataRequestField, TextFormDataResponseField, UnsupportedOperationError, isHttpClientResponseError, isHttpClientAbortError, isHttpClientNetworkError, isHttpClientRequestError, } from './lib/types';
2
- export { AbortController as PlatformAbortController, AbortSignal as PlatformAbortSignal, BaseError as PlatformBaseError, Binary as PlatformBinary, DataTypeError as PlatformDataTypeError, HttpClient as PlatformHttpClient, HttpClientAbortError as PlatformHttpClientAbortError, HttpClientRequestError as PlatformHttpClientRequestError, HttpClientResponse as PlatformHttpClientResponse, HttpClientResponseError as PlatformHttpClientResponseError, UnsupportedOperationError as PlatformUnsupportedOperationError, httpClient, } from './lib/platform';
2
+ export { AbortController as PlatformAbortController, AbortSignal as PlatformAbortSignal, BaseError as PlatformBaseError, Binary as PlatformBinary, DataTypeError as PlatformDataTypeError, HttpClient as PlatformHttpClient, HttpClientAbortError as PlatformHttpClientAbortError, HttpClientRequestError as PlatformHttpClientRequestError, HttpClientResponse as PlatformHttpClientResponse, HttpClientResponseError as PlatformHttpClientResponseError, OAuthHttpClient as _OAuthHttpClient, OAuthHttpClientConfig as _OAuthHttpClientConfig, UnsupportedOperationError as PlatformUnsupportedOperationError, httpClient, } from './lib/platform';
@@ -8,4 +8,5 @@ export * from './http-client-abort-error';
8
8
  export * from './http-client-request-error';
9
9
  export * from './http-client-response';
10
10
  export * from './http-client-response-error';
11
+ export * from './oauth-http-client';
11
12
  export * from './unsupported-operation-error';
@@ -0,0 +1,41 @@
1
+ import * as types from '../types';
2
+ /**
3
+ * DO NOT USE - internal use only.
4
+ */
5
+ export interface OAuthHttpClientConfig {
6
+ clientId: string;
7
+ secret: string;
8
+ scopes: string[];
9
+ environmentUrl: string;
10
+ authUrl: string;
11
+ }
12
+ export interface OAuthTokenResponse {
13
+ scope: string;
14
+ token_type: string;
15
+ expires_in: number;
16
+ access_token: string;
17
+ }
18
+ /**
19
+ * DO NOT USE - internal use only.
20
+ */
21
+ export declare class OAuthToken {
22
+ private readonly _scope;
23
+ private readonly _tokenType;
24
+ private readonly _expirationDate;
25
+ private readonly _accessToken;
26
+ constructor(oauthTokenResponse: OAuthTokenResponse);
27
+ get scope(): string;
28
+ get tokenType(): string;
29
+ isExpired(): boolean;
30
+ get accessToken(): string;
31
+ }
32
+ /**
33
+ * DO NOT USE - internal use only.
34
+ */
35
+ export declare class OAuthHttpClient implements types.HttpClient {
36
+ private readonly config;
37
+ private oauthToken?;
38
+ constructor(config: OAuthHttpClientConfig);
39
+ send<T extends keyof types.RequestBodyTypes = 'json'>(options: types.HttpClientRequestOptions<T>): Promise<types.HttpClientResponse>;
40
+ private requestToken;
41
+ }
@@ -1,8 +0,0 @@
1
- /**
2
- * The patch of the recorded operation as the JSON representation.
3
-
4
- The format is an enhanced RFC 6902. The patch also carries the previous value in the **oldValue** field.
5
- * This is just an alias for a type Record<string, any>.
6
- * @typedef {Record<string, any>} AuditLogEntryPatch
7
- */
8
- export declare type AuditLogEntryPatch = Record<string, any>;
@@ -1,4 +0,0 @@
1
- import { AuditLogEntryPatch } from './audit-log-entry-patch';
2
- export declare type AsJson = Record<string, any>;
3
- export declare function fromJson($model: AsJson): AuditLogEntryPatch;
4
- export declare function toJson($model: AuditLogEntryPatch): AsJson;
@@ -1,6 +0,0 @@
1
- /**
2
- * The allowed value of the enum.
3
- * This is just an alias for a type Record<string, any>.
4
- * @typedef {Record<string, any>} EnumValueValue
5
- */
6
- export declare type EnumValueValue = Record<string, any>;
@@ -1,4 +0,0 @@
1
- import { EnumValueValue } from './enum-value-value';
2
- export declare type AsJson = Record<string, any>;
3
- export declare function fromJson($model: AsJson): EnumValueValue;
4
- export declare function toJson($model: EnumValueValue): AsJson;
@@ -1,6 +0,0 @@
1
- import { RefPointer } from '../models/ref-pointer';
2
- /**
3
- * The type of the item's value.
4
- * @typedef {string | RefPointer} ItemType
5
- */
6
- export declare type ItemType = string | RefPointer;
@@ -1,5 +0,0 @@
1
- import * as _RefPointerTransformation from '../models/ref-pointer.transformation';
2
- import { ItemType } from './item-type';
3
- export declare type AsJson = string | _RefPointerTransformation.AsJson;
4
- export declare function fromJson($model: AsJson): any;
5
- export declare function toJson($model: ItemType): any;
@@ -1,8 +0,0 @@
1
- /**
2
- * The expected value of the property.
3
-
4
- Only applicable to properties of the `EQUALS` type.
5
- * This is just an alias for a type Record<string, any>.
6
- * @typedef {Record<string, any>} PreconditionExpectedValue
7
- */
8
- export declare type PreconditionExpectedValue = Record<string, any>;
@@ -1,4 +0,0 @@
1
- import { PreconditionExpectedValue } from './precondition-expected-value';
2
- export declare type AsJson = Record<string, any>;
3
- export declare function fromJson($model: AsJson): PreconditionExpectedValue;
4
- export declare function toJson($model: PreconditionExpectedValue): AsJson;
@@ -1,8 +0,0 @@
1
- /**
2
- * The default value to be used when no value is provided.
3
-
4
- If a non-singleton has the value of `null`, it means an empty collection.
5
- * This is just an alias for a type Record<string, any>.
6
- * @typedef {Record<string, any>} PropertyDefinitionDefault
7
- */
8
- export declare type PropertyDefinitionDefault = Record<string, any>;
@@ -1,4 +0,0 @@
1
- import { PropertyDefinitionDefault } from './property-definition-default';
2
- export declare type AsJson = Record<string, any>;
3
- export declare function fromJson($model: AsJson): PropertyDefinitionDefault;
4
- export declare function toJson($model: PropertyDefinitionDefault): AsJson;
@@ -1,6 +0,0 @@
1
- import { RefPointer } from '../models/ref-pointer';
2
- /**
3
- * The type of the property's value.
4
- * @typedef {string | RefPointer} PropertyDefinitionType
5
- */
6
- export declare type PropertyDefinitionType = string | RefPointer;
@@ -1,5 +0,0 @@
1
- import * as _RefPointerTransformation from '../models/ref-pointer.transformation';
2
- import { PropertyDefinitionType } from './property-definition-type';
3
- export declare type AsJson = string | _RefPointerTransformation.AsJson;
4
- export declare function fromJson($model: AsJson): any;
5
- export declare function toJson($model: PropertyDefinitionType): any;
@@ -1,10 +0,0 @@
1
- /**
2
- * The value of the setting.
3
-
4
- It defines the actual values of settings' parameters.
5
-
6
- The actual content depends on the object's schema.
7
- * This is just an alias for a type Record<string, any>.
8
- * @typedef {Record<string, any>} SettingsValue
9
- */
10
- export declare type SettingsValue = Record<string, any>;
@@ -1,4 +0,0 @@
1
- import { SettingsValue } from './settings-value';
2
- export declare type AsJson = Record<string, any>;
3
- export declare function fromJson($model: AsJson): SettingsValue;
4
- export declare function toJson($model: SettingsValue): AsJson;
@@ -1,6 +0,0 @@
1
- import { InsertPosition } from '../models/insert-position';
2
- /**
3
- * The position where the button should be shown in the UI
4
- * @typedef {string | InsertPosition} UiButtonCustomizationInsert
5
- */
6
- export declare type UiButtonCustomizationInsert = string | InsertPosition;
@@ -1,5 +0,0 @@
1
- import * as _InsertPositionTransformation from '../models/insert-position.transformation';
2
- import { UiButtonCustomizationInsert } from './ui-button-customization-insert';
3
- export declare type AsJson = string | _InsertPositionTransformation.AsJson;
4
- export declare function fromJson($model: AsJson): any;
5
- export declare function toJson($model: UiButtonCustomizationInsert): any;