@dynatrace-sdk/client-classic-environment-v2 4.2.0 → 4.2.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +834 -210
  3. package/cjs/index.js +3837 -3619
  4. package/dynatrace-metadata.json +2 -2
  5. package/esm/index.js +1988 -1972
  6. package/package.json +3 -4
  7. package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-active-gate-tokens-api.d.ts +1 -1
  8. package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-agent-tokens-api.d.ts +1 -1
  9. package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-api-tokens-api.d.ts +1 -1
  10. package/types/packages/client/classic-environment-v2/src/lib/apis/access-tokens-tenant-tokens-api.d.ts +1 -1
  11. package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-active-gate-groups-api.d.ts +1 -1
  12. package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-api.d.ts +1 -1
  13. package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-auto-update-configuration-api.d.ts +1 -1
  14. package/types/packages/client/classic-environment-v2/src/lib/apis/active-gates-auto-update-jobs-api.d.ts +1 -1
  15. package/types/packages/{shared-client-utils/src → client/classic-environment-v2/src/lib/apis}/api-client-options.d.ts +1 -1
  16. package/types/packages/client/classic-environment-v2/src/lib/apis/attacks-api.d.ts +1 -1
  17. package/types/packages/client/classic-environment-v2/src/lib/apis/audit-logs-api.d.ts +1 -1
  18. package/types/packages/client/classic-environment-v2/src/lib/apis/business-events-api.d.ts +1 -1
  19. package/types/packages/client/classic-environment-v2/src/lib/apis/credential-vault-api.d.ts +1 -1
  20. package/types/packages/client/classic-environment-v2/src/lib/apis/davis-security-advisor-api.d.ts +1 -1
  21. package/types/packages/client/classic-environment-v2/src/lib/apis/events-api.d.ts +1 -1
  22. package/types/packages/client/classic-environment-v2/src/lib/apis/extensions-2-0-api.d.ts +1 -1
  23. package/types/packages/client/classic-environment-v2/src/lib/apis/logs-api.d.ts +1 -1
  24. package/types/packages/client/classic-environment-v2/src/lib/apis/metrics-api.d.ts +1 -1
  25. package/types/packages/client/classic-environment-v2/src/lib/apis/metrics-units-api.d.ts +1 -1
  26. package/types/packages/client/classic-environment-v2/src/lib/apis/monitored-entities-api.d.ts +1 -1
  27. package/types/packages/client/classic-environment-v2/src/lib/apis/monitored-entities-custom-tags-api.d.ts +1 -1
  28. package/types/packages/client/classic-environment-v2/src/lib/apis/monitored-entities-monitoring-state-api.d.ts +1 -1
  29. package/types/packages/client/classic-environment-v2/src/lib/apis/network-zones-api.d.ts +1 -1
  30. package/types/packages/client/classic-environment-v2/src/lib/apis/problems-api.d.ts +1 -1
  31. package/types/packages/client/classic-environment-v2/src/lib/apis/releases-api.d.ts +1 -1
  32. package/types/packages/client/classic-environment-v2/src/lib/apis/rum-manual-insertion-tags-api.d.ts +1 -1
  33. package/types/packages/client/classic-environment-v2/src/lib/apis/security-problems-api.d.ts +1 -1
  34. package/types/packages/client/classic-environment-v2/src/lib/apis/service-level-objectives-api.d.ts +1 -1
  35. package/types/packages/client/classic-environment-v2/src/lib/apis/settings-management-zones-api.d.ts +1 -1
  36. package/types/packages/client/classic-environment-v2/src/lib/apis/settings-objects-api.d.ts +1 -1
  37. package/types/packages/client/classic-environment-v2/src/lib/apis/settings-schemas-api.d.ts +1 -1
  38. package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-http-monitor-executions-api.d.ts +1 -1
  39. package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-locations-nodes-and-configuration-api.d.ts +1 -1
  40. package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-network-availability-monitors-api.d.ts +1 -1
  41. package/types/packages/client/classic-environment-v2/src/lib/apis/synthetic-on-demand-monitor-executions-api.d.ts +1 -1
  42. package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/api-gateway-errors-handler.d.ts +2 -0
  43. package/types/packages/client/classic-environment-v2/src/lib/error-envelopes/get-error-message.d.ts +1 -0
  44. package/types/packages/client/classic-environment-v2/src/lib/utils/encoding.d.ts +10 -0
  45. package/types/packages/client/classic-environment-v2/src/lib/utils/transformations.d.ts +8 -0
  46. package/types/packages/client/classic-environment-v2/src/lib/utils/url-helpers.d.ts +6 -0
  47. package/types/packages/shared-errors/src/client-request-error.d.ts +1 -1
  48. package/types/packages/shared-errors/src/types.d.ts +1 -1
  49. package/types/packages/shared-client-utils/src/api-gateway-errors-handler.d.ts +0 -9
  50. package/types/packages/shared-client-utils/src/encoding.d.ts +0 -17
  51. package/types/packages/shared-client-utils/src/get-error-message.d.ts +0 -8
  52. package/types/packages/shared-client-utils/src/index.d.ts +0 -6
  53. package/types/packages/shared-client-utils/src/transformations.d.ts +0 -64
  54. package/types/packages/shared-client-utils/src/url-helpers.d.ts +0 -12
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@dynatrace-sdk/client-classic-environment-v2",
3
- "version": "4.2.0",
3
+ "version": "4.2.1",
4
4
  "description": "Client for the Dynatrace Environment API v2",
5
5
  "license": "Apache-2.0",
6
6
  "dependencies": {
7
- "@dynatrace-sdk/http-client": "^1.3.0",
8
- "@dynatrace-sdk/shared-client-utils": "^1.0.1",
9
- "@dynatrace-sdk/shared-errors": "^1.0.0"
7
+ "@dynatrace-sdk/http-client": "^1.3.1",
8
+ "@dynatrace-sdk/shared-errors": "^1.0.2"
10
9
  },
11
10
  "main": "./cjs/index.js",
12
11
  "module": "./esm/index.js",
@@ -1,9 +1,9 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { ActiveGateToken } from '../models/active-gate-token';
4
3
  import { ActiveGateTokenCreate } from '../models/active-gate-token-create';
5
4
  import { ActiveGateTokenCreated } from '../models/active-gate-token-created';
6
5
  import { ActiveGateTokenList } from '../models/active-gate-token-list';
6
+ import { ApiClientOptions } from './api-client-options';
7
7
  /**
8
8
  * Manage Dynatrace ActiveGate tokens
9
9
  */
@@ -1,6 +1,6 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { AgentConnectionToken } from '../models/agent-connection-token';
3
+ import { ApiClientOptions } from './api-client-options';
4
4
  /**
5
5
  * Manage Dynatrace Agent tokens
6
6
  */
@@ -1,11 +1,11 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { ApiToken } from '../models/api-token';
4
3
  import { ApiTokenCreate } from '../models/api-token-create';
5
4
  import { ApiTokenCreated } from '../models/api-token-created';
6
5
  import { ApiTokenList } from '../models/api-token-list';
7
6
  import { ApiTokenSecret } from '../models/api-token-secret';
8
7
  import { ApiTokenUpdate } from '../models/api-token-update';
8
+ import { ApiClientOptions } from './api-client-options';
9
9
  /**
10
10
  * Manage Dynatrace API tokens
11
11
  */
@@ -1,6 +1,6 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { TenantTokenConfig } from '../models/tenant-token-config';
3
+ import { ApiClientOptions } from './api-client-options';
4
4
  /**
5
5
  * Rotate tenant tokens
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { ActiveGateGroups } from '../models/active-gate-groups';
3
+ import { ApiClientOptions } from './api-client-options';
4
4
  /**
5
5
  * View information about ActiveGate groups
6
6
  */
@@ -1,7 +1,7 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { ActiveGate } from '../models/active-gate';
4
3
  import { ActiveGateList } from '../models/active-gate-list';
4
+ import { ApiClientOptions } from './api-client-options';
5
5
  /**
6
6
  * View information about your ActiveGates
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { ActiveGateAutoUpdateConfig } from '../models/active-gate-auto-update-config';
4
3
  import { ActiveGateGlobalAutoUpdateConfig } from '../models/active-gate-global-auto-update-config';
4
+ import { ApiClientOptions } from './api-client-options';
5
5
  /**
6
6
  * Manage ActiveGate auto-update settings.
7
7
  */
@@ -1,8 +1,8 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { UpdateJob } from '../models/update-job';
4
3
  import { UpdateJobList } from '../models/update-job-list';
5
4
  import { UpdateJobsAll } from '../models/update-jobs-all';
5
+ import { ApiClientOptions } from './api-client-options';
6
6
  /**
7
7
  * Manage ActiveGate auto-update jobs.
8
8
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Configuration for the API client.
2
+ * Configuration for generated TypeScript SDK clients
3
3
  * @param {boolean} transformDates - Flag to control date transformations, enabled by default.
4
4
  */
5
5
  export interface ApiClientOptions {
@@ -1,7 +1,7 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { Attack } from '../models/attack';
4
3
  import { AttackList } from '../models/attack-list';
4
+ import { ApiClientOptions } from './api-client-options';
5
5
  /**
6
6
  * Read attacks
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { AuditLog } from '../models/audit-log';
4
3
  import { AuditLogEntry } from '../models/audit-log-entry';
4
+ import { ApiClientOptions } from './api-client-options';
5
5
  /**
6
6
  * Read audit logs
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { CloudEvent } from '../models/cloud-event';
4
3
  import { IngestBody } from '../models/ingest-body';
4
+ import { ApiClientOptions } from './api-client-options';
5
5
  export declare class BusinessEventsClient {
6
6
  private httpClient;
7
7
  private shouldTransformDates;
@@ -1,10 +1,10 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { AbstractCredentialsResponseElement } from '../models/abstract-credentials-response-element';
4
3
  import { Credentials } from '../models/credentials';
5
4
  import { CredentialsId } from '../models/credentials-id';
6
5
  import { CredentialsList } from '../models/credentials-list';
7
6
  import { CredentialsResponseElement } from '../models/credentials-response-element';
7
+ import { ApiClientOptions } from './api-client-options';
8
8
  /**
9
9
  * Manage credentials
10
10
  */
@@ -1,6 +1,6 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { DavisSecurityAdviceList } from '../models/davis-security-advice-list';
3
+ import { ApiClientOptions } from './api-client-options';
4
4
  /**
5
5
  * Manage Davis security advices
6
6
  */
@@ -1,5 +1,4 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { Event } from '../models/event';
4
3
  import { EventIngest } from '../models/event-ingest';
5
4
  import { EventIngestResults } from '../models/event-ingest-results';
@@ -8,6 +7,7 @@ import { EventPropertiesList } from '../models/event-properties-list';
8
7
  import { EventPropertyDetails } from '../models/event-property-details';
9
8
  import { EventType } from '../models/event-type';
10
9
  import { EventTypeList } from '../models/event-type-list';
10
+ import { ApiClientOptions } from './api-client-options';
11
11
  /**
12
12
  * Manage events
13
13
  */
@@ -1,5 +1,4 @@
1
1
  import { AbortSignal, Binary, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { ActiveGateGroupsInfoDto } from '../models/active-gate-groups-info-dto';
4
3
  import { AlertTemplateDto } from '../models/alert-template-dto';
5
4
  import { AuditLog } from '../models/audit-log';
@@ -25,6 +24,7 @@ import { RegisteredExtensionResultDto } from '../models/registered-extension-res
25
24
  import { SchemaDefinitionRestDto } from '../models/schema-definition-rest-dto';
26
25
  import { SchemaFiles } from '../models/schema-files';
27
26
  import { SchemasList } from '../models/schemas-list';
27
+ import { ApiClientOptions } from './api-client-options';
28
28
  /**
29
29
  * Manage Extensions 2.0 life cycle
30
30
  */
@@ -1,11 +1,11 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { AggregatedLog } from '../models/aggregated-log';
4
3
  import { ExportedLogRecordList } from '../models/exported-log-record-list';
5
4
  import { LogMessageJson } from '../models/log-message-json';
6
5
  import { LogMessagePlain } from '../models/log-message-plain';
7
6
  import { LogRecordsList } from '../models/log-records-list';
8
7
  import { SuccessEnvelope } from '../models/success-envelope';
8
+ import { ApiClientOptions } from './api-client-options';
9
9
  /**
10
10
  * Read and ingest logs
11
11
  */
@@ -1,9 +1,9 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { MetricData } from '../models/metric-data';
4
3
  import { MetricDescriptor } from '../models/metric-descriptor';
5
4
  import { MetricDescriptorCollection } from '../models/metric-descriptor-collection';
6
5
  import { ValidationResponse } from '../models/validation-response';
6
+ import { ApiClientOptions } from './api-client-options';
7
7
  /**
8
8
  * Query and ingest metrics
9
9
  */
@@ -1,8 +1,8 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { Unit } from '../models/unit';
4
3
  import { UnitConversionResult } from '../models/unit-conversion-result';
5
4
  import { UnitList } from '../models/unit-list';
5
+ import { ApiClientOptions } from './api-client-options';
6
6
  /**
7
7
  * View metric units
8
8
  */
@@ -1,5 +1,4 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { CustomDeviceCreation } from '../models/custom-device-creation';
4
3
  import { CustomDeviceCreationResult } from '../models/custom-device-creation-result';
5
4
  import { EntitiesList } from '../models/entities-list';
@@ -8,6 +7,7 @@ import { EntityType } from '../models/entity-type';
8
7
  import { EntityTypeList } from '../models/entity-type-list';
9
8
  import { SecurityContextDtoImpl } from '../models/security-context-dto-impl';
10
9
  import { SecurityContextResultDto } from '../models/security-context-result-dto';
10
+ import { ApiClientOptions } from './api-client-options';
11
11
  /**
12
12
  * Manage monitored entities
13
13
  */
@@ -1,9 +1,9 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { AddEntityTags } from '../models/add-entity-tags';
4
3
  import { AddedEntityTags } from '../models/added-entity-tags';
5
4
  import { CustomEntityTags } from '../models/custom-entity-tags';
6
5
  import { DeletedEntityTags } from '../models/deleted-entity-tags';
6
+ import { ApiClientOptions } from './api-client-options';
7
7
  /**
8
8
  * Manage custom tags of monitored entities
9
9
  */
@@ -1,6 +1,6 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { MonitoredStates } from '../models/monitored-states';
3
+ import { ApiClientOptions } from './api-client-options';
4
4
  /**
5
5
  * Read state of monitored entities
6
6
  */
@@ -1,10 +1,10 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { EntityShortRepresentation } from '../models/entity-short-representation';
4
3
  import { NetworkZone } from '../models/network-zone';
5
4
  import { NetworkZoneConnectionStatistics } from '../models/network-zone-connection-statistics';
6
5
  import { NetworkZoneList } from '../models/network-zone-list';
7
6
  import { NetworkZoneSettings } from '../models/network-zone-settings';
7
+ import { ApiClientOptions } from './api-client-options';
8
8
  /**
9
9
  * Manage network zones
10
10
  */
@@ -1,5 +1,4 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { Comment } from '../models/comment';
4
3
  import { CommentRequestDtoImpl } from '../models/comment-request-dto-impl';
5
4
  import { CommentsList } from '../models/comments-list';
@@ -7,6 +6,7 @@ import { Problem } from '../models/problem';
7
6
  import { ProblemCloseRequestDtoImpl } from '../models/problem-close-request-dto-impl';
8
7
  import { ProblemCloseResult } from '../models/problem-close-result';
9
8
  import { Problems } from '../models/problems';
9
+ import { ApiClientOptions } from './api-client-options';
10
10
  /**
11
11
  * Manage problems and comments
12
12
  */
@@ -1,6 +1,6 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { Releases } from '../models/releases';
3
+ import { ApiClientOptions } from './api-client-options';
4
4
  /**
5
5
  * Analyze your deployed components
6
6
  */
@@ -1,5 +1,5 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
2
+ import { ApiClientOptions } from './api-client-options';
3
3
  /**
4
4
  * Download RUM manual insertion tags
5
5
  */
@@ -1,5 +1,4 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { RemediationDetailsItem } from '../models/remediation-details-item';
4
3
  import { RemediationItemList } from '../models/remediation-item-list';
5
4
  import { RemediationItemMuteStateChange } from '../models/remediation-item-mute-state-change';
@@ -19,6 +18,7 @@ import { SecurityProblemsBulkMuteResponse } from '../models/security-problems-bu
19
18
  import { SecurityProblemsBulkUnmute } from '../models/security-problems-bulk-unmute';
20
19
  import { SecurityProblemsBulkUnmuteResponse } from '../models/security-problems-bulk-unmute-response';
21
20
  import { VulnerableFunctionsContainer } from '../models/vulnerable-functions-container';
21
+ import { ApiClientOptions } from './api-client-options';
22
22
  /**
23
23
  * Manage security problems
24
24
  */
@@ -1,10 +1,10 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { AbstractSloAlertDto } from '../models/abstract-slo-alert-dto';
4
3
  import { EntityShortRepresentation } from '../models/entity-short-representation';
5
4
  import { SLOs } from '../models/sl-os';
6
5
  import { SLO } from '../models/slo';
7
6
  import { SloConfigItemDtoImpl } from '../models/slo-config-item-dto-impl';
7
+ import { ApiClientOptions } from './api-client-options';
8
8
  /**
9
9
  * Manage SLOs
10
10
  */
@@ -1,6 +1,6 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { ManagementZoneDetails } from '../models/management-zone-details';
3
+ import { ApiClientOptions } from './api-client-options';
4
4
  /**
5
5
  * View management zone details
6
6
  */
@@ -1,5 +1,4 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { AccessorPermissions } from '../models/accessor-permissions';
4
3
  import { AccessorPermissionsList } from '../models/accessor-permissions-list';
5
4
  import { EffectivePermission } from '../models/effective-permission';
@@ -13,6 +12,7 @@ import { SettingsObjectResponse } from '../models/settings-object-response';
13
12
  import { SettingsObjectUpdate } from '../models/settings-object-update';
14
13
  import { TransferOwnershipRequest } from '../models/transfer-ownership-request';
15
14
  import { UpdatePermissionsRequest } from '../models/update-permissions-request';
15
+ import { ApiClientOptions } from './api-client-options';
16
16
  /**
17
17
  * Manage settings objects
18
18
  */
@@ -1,7 +1,7 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { SchemaDefinitionRestDto } from '../models/schema-definition-rest-dto';
4
3
  import { SchemaList } from '../models/schema-list';
4
+ import { ApiClientOptions } from './api-client-options';
5
5
  /**
6
6
  * View settings schemas
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { MonitorExecutionResults } from '../models/monitor-execution-results';
3
+ import { ApiClientOptions } from './api-client-options';
4
4
  export declare class SyntheticHttpMonitorExecutionsClient {
5
5
  private httpClient;
6
6
  private shouldTransformDates;
@@ -1,5 +1,4 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { Node } from '../models/node';
4
3
  import { Nodes } from '../models/nodes';
5
4
  import { PrivateSyntheticLocation } from '../models/private-synthetic-location';
@@ -9,6 +8,7 @@ import { SyntheticLocationIdsDto } from '../models/synthetic-location-ids-dto';
9
8
  import { SyntheticLocationUpdate } from '../models/synthetic-location-update';
10
9
  import { SyntheticLocations } from '../models/synthetic-locations';
11
10
  import { SyntheticPublicLocationsStatus } from '../models/synthetic-public-locations-status';
11
+ import { ApiClientOptions } from './api-client-options';
12
12
  export declare class SyntheticLocationsNodesAndConfigurationClient {
13
13
  private httpClient;
14
14
  private shouldTransformDates;
@@ -1,9 +1,9 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { MonitorEntityIdDto } from '../models/monitor-entity-id-dto';
4
3
  import { SyntheticMonitorListDto } from '../models/synthetic-monitor-list-dto';
5
4
  import { SyntheticMultiProtocolMonitorRequest } from '../models/synthetic-multi-protocol-monitor-request';
6
5
  import { SyntheticMultiProtocolMonitorResponse } from '../models/synthetic-multi-protocol-monitor-response';
6
+ import { ApiClientOptions } from './api-client-options';
7
7
  /**
8
8
  * Create, read, update and delete synthetic monitors. Currently network availability monitors only.
9
9
  */
@@ -1,10 +1,10 @@
1
1
  import { AbortSignal, HttpClient } from '@dynatrace-sdk/http-client';
2
- import { ApiClientOptions } from '@dynatrace-sdk/shared-client-utils';
3
2
  import { SyntheticOnDemandBatchStatus } from '../models/synthetic-on-demand-batch-status';
4
3
  import { SyntheticOnDemandExecution } from '../models/synthetic-on-demand-execution';
5
4
  import { SyntheticOnDemandExecutionRequest } from '../models/synthetic-on-demand-execution-request';
6
5
  import { SyntheticOnDemandExecutionResult } from '../models/synthetic-on-demand-execution-result';
7
6
  import { SyntheticOnDemandExecutions } from '../models/synthetic-on-demand-executions';
7
+ import { ApiClientOptions } from './api-client-options';
8
8
  /**
9
9
  * Trigger and view information about on-demand synthetic monitor executions
10
10
  */
@@ -0,0 +1,2 @@
1
+ import { HttpClientResponse } from '@dynatrace-sdk/http-client';
2
+ export declare function apiGatewayErrorsHandler(response: HttpClientResponse): Promise<void>;
@@ -0,0 +1 @@
1
+ export declare function getErrorMessage(errorBody: unknown, defaultMessage: string): string;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Available formats to transform models to and from
3
+ */
4
+ export declare enum Encoding {
5
+ Json = "json",
6
+ Text = "text",
7
+ Binary = "binary",
8
+ FormData = "form-data"
9
+ }
10
+ export declare function mimeTypeToEncoding(mimeType: string, defaultEncoding?: Encoding): Encoding;
@@ -0,0 +1,8 @@
1
+ type TransformRuleConfig = {
2
+ force?: boolean;
3
+ datetime?: boolean;
4
+ };
5
+ type TransformRulesParam = Array<string | [string, TransformRuleConfig]>;
6
+ export declare function transformRequest<T = any>(object: T, rules: TransformRulesParam): T;
7
+ export declare function transformResponse<T = any>(object: T, rules: TransformRulesParam): T;
8
+ export {};
@@ -0,0 +1,6 @@
1
+ type QueryParamsType = Record<string | number, any>;
2
+ interface ParametersFlags {
3
+ explode?: Record<string, boolean>;
4
+ }
5
+ export declare const toQueryString: (rawQuery?: QueryParamsType, flags?: ParametersFlags) => string;
6
+ export {};
@@ -36,4 +36,4 @@ export declare class ClientRequestError<DTO = ErrorResponseBody> extends ApiClie
36
36
  * }
37
37
  * }
38
38
  */
39
- export declare function isClientRequestError(e: any): e is ClientRequestError;
39
+ export declare function isClientRequestError<T = ErrorResponseBody>(e: any): e is ClientRequestError<T>;
@@ -16,7 +16,7 @@ export interface ErrorResponseBody<T = CommonApiError> {
16
16
  /**
17
17
  * Common API error structure, established by Dynatrace API guidelines.
18
18
  * */
19
- export interface CommonApiError<T extends Record<string, any> = Record<string, any>> {
19
+ export interface CommonApiError<T extends CommonErrorDetails & Record<string, any> = CommonErrorDetails & Record<string, any>> {
20
20
  /** The error code should be set to the HTTP error code by default.<br>
21
21
  * The error code may be set to an API-specific error code which must be properly documented.*/
22
22
  code: number;
@@ -1,9 +0,0 @@
1
- import type { HttpClientResponse } from '@dynatrace-sdk/http-client';
2
- /**
3
- * Handles errors from API Gateway responses.
4
- * Throws an ApiGatewayError if the response source is 'API Gateway'.
5
- *
6
- * @param {HttpClientResponse} response - The HTTP response to check for API Gateway errors.
7
- * @throws {ApiGatewayError} If the response is from API Gateway and contains an error.
8
- */
9
- export declare function apiGatewayErrorsHandler(response: HttpClientResponse): Promise<void>;
@@ -1,17 +0,0 @@
1
- /**
2
- * Available formats to transform models to and from
3
- */
4
- export declare enum Encoding {
5
- Json = "json",
6
- Text = "text",
7
- Binary = "binary",
8
- FormData = "form-data"
9
- }
10
- /**
11
- * Maps a MIME type string to an Encoding.
12
- *
13
- * @param {string} mimeType - The MIME type to convert (e.g., 'application/json').
14
- * @param {Encoding} [defaultEncoding] - The encoding to return if the MIME type isn't recognized.
15
- * @returns {Encoding} The corresponding Encoding enum value, or the defaultEncoding if not recognized.
16
- */
17
- export declare function mimeTypeToEncoding(mimeType: string, defaultEncoding?: Encoding): Encoding;
@@ -1,8 +0,0 @@
1
- /**
2
- * Returns a user-friendly error message from an error body object.
3
- *
4
- * @param {unknown} errorBody - The error object or response body to extract the message from.
5
- * @param {string} defaultMessage - The default message to use if no error message is found.
6
- * @returns {string} The extracted or default error message, possibly including details.
7
- */
8
- export declare function getErrorMessage(errorBody: unknown, defaultMessage: string): string;
@@ -1,6 +0,0 @@
1
- export * from './api-client-options';
2
- export * from './api-gateway-errors-handler';
3
- export * from './encoding';
4
- export * from './get-error-message';
5
- export * from './transformations';
6
- export * from './url-helpers';
@@ -1,64 +0,0 @@
1
- import { FormDataRequestBody, FormDataRequestField, FormDataResponseBody } from '@dynatrace-sdk/http-client';
2
- export type TransformRuleConfig = {
3
- force?: boolean;
4
- datetime?: boolean;
5
- };
6
- export type TransformRulesParam = Array<string | [string, TransformRuleConfig]>;
7
- /**
8
- * Transforms an object by applying transformation rules before sending it in a request.
9
- *
10
- * @template T
11
- * @param {T} object - The object to transform.
12
- * @param {TransformRulesParam} rules - The transformation rules to apply.
13
- * @returns {T} The transformed object.
14
- */
15
- export declare function transformRequest<T = any>(object: T, rules: TransformRulesParam): T;
16
- /**
17
- * Transforms an object by applying transformation rules after receiving it in a response.
18
- *
19
- * @template T
20
- * @param {T} object - The object to transform.
21
- * @param {TransformRulesParam} rules - The transformation rules to apply.
22
- * @returns {T} The transformed object.
23
- */
24
- export declare function transformResponse<T = any>(object: T, rules: TransformRulesParam): T;
25
- export interface FormDataRequestFieldDefinition {
26
- key: string;
27
- type: 'text' | 'json' | 'binary';
28
- required: boolean;
29
- }
30
- export interface FormDataResponseGenericFieldDefinition {
31
- type: 'text' | 'binary';
32
- }
33
- export interface FormDataResponseJsonFieldDefinition {
34
- type: 'json';
35
- transformations: Array<string | [string, TransformRuleConfig]>;
36
- }
37
- export type FormDataResponseFieldDefinition = FormDataResponseGenericFieldDefinition | FormDataResponseJsonFieldDefinition;
38
- /**
39
- * Converts an object to a FormDataRequestBody using field definitions.
40
- *
41
- * @template T
42
- * @param {T} value - The object to convert.
43
- * @param {Array<FormDataRequestFieldDefinition>} fields - The field definitions for the form data.
44
- * @returns {FormDataRequestBody} The resulting form data body.
45
- */
46
- export declare function transformToFormData<T extends Record<any, any>>(value: T, fields: Array<FormDataRequestFieldDefinition>): FormDataRequestBody;
47
- /**
48
- * Converts a value to a FormDataRequestField based on the field definition.
49
- *
50
- * @template T
51
- * @param {T} value - The value to convert.
52
- * @param {FormDataRequestFieldDefinition} field - The field definition.
53
- * @returns {FormDataRequestField | null} The resulting form data field or null if not required and undefined.
54
- */
55
- export declare function transformToFormDataField<T = any>(value: T, field: FormDataRequestFieldDefinition): FormDataRequestField | null;
56
- /**
57
- * Converts form data and field definitions into a typed object, applying transformations for JSON fields.
58
- *
59
- * @template T
60
- * @param {FormDataResponseBody} formData - The form data to convert.
61
- * @param {Record<string, FormDataResponseFieldDefinition>} fields - The field definitions for the form data.
62
- * @returns {T} The resulting typed object.
63
- */
64
- export declare function transformFromFormData<T extends Record<any, any>>(formData: FormDataResponseBody, fields: Record<string, FormDataResponseFieldDefinition>): T;
@@ -1,12 +0,0 @@
1
- export type QueryParamsType = Record<string | number, any>;
2
- export interface ParametersFlags {
3
- explode?: Record<string, boolean>;
4
- }
5
- /**
6
- * Converts an object of query parameters into a URL query string.
7
- *
8
- * @param {QueryParamsType} [rawQuery] - The object containing query parameters.
9
- * @param {ParametersFlags} [flags] - Flags to control parameter formatting (e.g., explode arrays).
10
- * @returns {string} The resulting query string.
11
- */
12
- export declare const toQueryString: (rawQuery?: QueryParamsType, flags?: ParametersFlags) => string;