# Automation

@dynatrace-sdk/client-automation

## 7.0.1

### Patch Changes

- Revert: Fix redundant undefined or optional properties in model types. (APPDEV-7583) (APPDEV-16631)

## 7.0.0

### Major changes

- Removed read-only and computed properties from workflow template and workflow export endpoints
- Remove guide property from workflow list
- Adapt restore business calendar history response and restore rule history response to return no response body on success (200)

## 6.2.0

Add `POST_PROCESSING` state for task execution

## 6.1.0

### Minor changes

- Support analysisReady property in Davis Problem trigger configuration

## 6.0.0

### Major changes

- Changing Date fields to string
- Require trackingId when specifying basedOnTemplate for creating a new workflow

## 5.22.0

### Minor changes

- Add maintenanceWindowTriggerBehavior for davis event trigger

## 5.21.0

### Minor Changes

- Add export workflow template endpoint
- Add new approval task execution state and approval flag

## 5.20.1

### Patch Changes

- Fix redundant undefined or optional properties in model types. (APPDEV-7583)

## 5.20.0

Added "ONCE" schedule type.

## 5.19.0

### Minor changes

- Add workflow history export endpoint

## 5.18.0

### Minor changes

- one trigger introduction
- workflow template based
- new workflow export endpoint

## 5.17.0

### Minor changes

- Add guide to workflow persistence

## 5.16.2

- Add missing `nullable` properties
- Add examples for workflow trigger types

## 5.16.1

### Patch Changes

- Fix transformations for date format strings. (APPDEV-14400)
- Update dependencies. (APPDEV-13611)

## 5.16.0

### Minor changes

- Handle skipped schedule acknowledgements by datetime column instead of a boolean column

## 5.15.0

### Minor changes

- handle skipped schedule acknowledgements

## 5.14.0

### Minor changes

- Support security.events

## 5.13.1

- ErrorDetails accepts additional properties.

## 5.13.0

### Minor changes

- Improved naming for the execution limits
- Introduced typed component for ErrorDetails

## 5.12.0

### Minor changes

- Add information about provided settings

## 5.11.2

### Patch changes

- Add rule to preview schedule request payload

## 5.11.1

### Patch Changes

- Update dependencies. (APPDEV-11813)

## 5.11.0

### Minor changes

- Update restore API description
- Add missing timezones

## 5.10.1

### Patch Changes

- Improve performance of date transformations. (APPDEV-12840)

## 5.10.0

### Minor changes

- Support filter workflows list by isDeployed

## 5.9.2

### Patch Changes

- Improve performance of payload transformations. (APPDEV-12840)

## 5.9.1

Expose 'all' query parameter for listing rule history, calendar history

## 5.9.0

- Added `all` parameter for getting historical records.
- Allowed deploying/undeploying a workflow by changing `is_deployed` property.

## 5.8.0

### Minor changes

- Support workflow version 0 for undeployed workflow

## 5.7.0

### Minor changes

-: run undeployed workflow as draft executions
- remove legacy task input preview endpoint

## 5.6.0

- Added `idDeployed` property to `Workflow`

## 5.5.0

### Minor changes

- Introduce provided input for executions
- Workflow execution events for subworkflows

## 5.4.0

Allow filtering for subworkflow executions using combination of parent execution id and task name
Add parentTaskName to execution model

## 5.3.0

### Minor Changes

- introduce trigger type detail in execution to track the trigger information

## 5.2.0

### Minor changes

- Introduce new `resetWorkflowThrottles` method.
- Add `hourlyExecutionLimit` and read-only `workflowLimit` properties to Workflow.

## 5.1.0

- `ThrottleLimitEvent` now includes `ThrottleLimitEventType`
- Execution model exposes `parentTaskExecutiuonId` and `parentExecution`
- Execution list can be filtered by `parentWorkflow` or `parentExecution`

## 5.0.2

Actually add code to error schema.

## 5.0.1

Add code to error schema.

## 5.0.0

### Breaking changes

- Removed duplicated, anonymous references and generated corresponding components.
- Changed multiple property types to align them with their usage.
- The `id` property is no longer exposed on the update components.
- Distinct components have been created for selected entities: `Workflow`, `BusinessCalendar`, and `Rule`. For example:
  - `Workflow` - for fetching requests and responses
  - `WorkflowCreate` - for creation
  - `WorkflowUpdate` - for full and partial updates where all the fields are optional
- Replaced inline enums with reusable components.

### Minor changes

- Deprecated several endpoints not used publicly.
- Updated the `state` property to reference `ActionExecutionState` and `ExecutionState`.

## 4.15.0

### Minor changes

- Introduce workflow and execution result

## 4.14.1

### Patch Changes

- Fix date-time format serialization. (APPDEV-11661)

## 4.14.0

### Minor changes

- Added workflow property of Task schema
- Added input property of Workflow schema

## 4.13.1

### Patch Changes

- Replace model transformations with single transformation function. (APPDEV-10818)

## 4.13.0

### Minor changes

- Add `UNKNOWN` state in `ExecutionState`, `TaskExecutionState ` and `ActionExecutionState`

## 4.12.0

- WorkflowType is defined as enum (STANDARD | SIMPLE)
- updateAuthorizations requires `workflows:read` permission instead of `workflows:write`

## 4.11.2

### Patch Changes

- Applied enum literal type rendering for "additionalProperties". APPDEV-10967

## 4.11.1

Simplify typescript types

## 4.11.0

### Minor Changes

- Enums are replaced with unions of literals. APPDEV-10338

## 4.10.0

### Minor Changes

- `Workflow` event trigger configuration supports `dt.system.events`.

## 4.9.0

### Minor Changes

- Interfaces used as response types now have the required `id` property.

## 4.8.0

Expose Workflow type

## 4.7.1

Deprecate endpoint "/settings/service-users"

## 4.7.0

Update execution state enums

## 4.6.0

### Features

- Export errors from the package.

### Bugfixes

- Internal type `PreviewTaskInputResponseError` is no longer exported. Use `PreviewTaskInputResponse` instead.

## 4.5.0

### Minor Changes

- Execution logs internally use JSON.

## 4.4.1

Strict the position value in the task

## 4.4.0

Introduce Workflow type.

## 4.3.0

### Minor Changes

- Introduced @dynatrace-sdk/shared-errors package and improved response errors handling.

## 4.2.0

added more documentation

## 4.1.0

### Minor changes

Introduce wait before task option

## 4.0.0

- Stabilize the request/response model for `/business-calendars/*` endpoint
- Stabilize the request/response model for `/schedules/holiday-calendars/*` endpoint
- Add workflow version attribute

## 3.1.2

### Patch Changes

- Updated boolean serialization handling. APPDEV-9047

## 3.1.1

### Patch Changes

- Fix broken links in the readme file.

## 3.1.0

### Minor Changes

- Provide actual error code in the error message instead of wildcard. APPDEV-7744

### Patch Changes

- Do not print empty fields in the default message of an error. APPDEV-7630
- Update documentation. APPDEV-8154
- Updated dependencies 

## 3.0.2

### Patch Changes

- Sanitize links in the documentation
- Add API reference to the readme file

## 3.0.1

### Patch Changes

- Fixed explode method of query parameters serialization.

## 3.0.0

### Major Changes

- update json types, remove unused fields TaskExecution.triggered_by and Workflow.usages, update scopes in some doc strings

### Patch Changes

- Update http-client

## 2.4.6

### Patch Changes

- Make task execution position nullable

## 2.4.5

### Patch Changes

- Correct response structure for history endpoint

## 2.4.4

### Patch Changes

- correct restore workflow history record spec

## 2.4.3

### Patch Changes

- Fix an issue with dates serialization.

## 2.4.2

### Patch Changes

- Update documentation.

## 2.4.1

### Patch Changes

- Use `Record` type instead of `any` for free-form objects where applicable.

## 2.4.0

### Minor Changes

- drop action-execution list endpoint, added workflow throttle event

## 2.3.0

### Minor Changes

- Support for non-distinct entity tags values.

## 2.2.0

### Minor Changes

- Added task-input-preview, authorizations-update; removed WorkflowListItem.

## 2.1.1

### Patch Changes

- Fixed a bug that caused abort errors from http-client to be wrapped in ApiClientError('UnexpectedError').

## 2.1.0

### Minor Changes

- Added action-sample-result endpoint. Removed TaskExecutionResult type, use any instead.

## 2.0.3

### Patch Changes

- Update dependencies.

## 2.0.2

### Patch Changes

- Fixed a bug that caused internal http-client errors to be thrown for error responses.

## 2.0.1

### Patch Changes

- workflow.lastExecution could be null.

## 2.0.0

### Major Changes

- Cleanup unsupported fields in Workflow, Execution, TaskExecution entity

### Patch Changes

- createWorkflow endpoint schema has adminAccess query

## 1.6.1

### Patch Changes

- Update JSDoc examples.

## 1.6.0

### Minor Changes

- Add "actor" field in Execution

## 1.5.0

### Minor Changes

- Add api settings/user; Add ownerType filter to workflow; remove unused attributes from Rule

## 1.4.5

### Patch Changes

- Fix transformation of null values for nullable properties

## 1.4.4

### Patch Changes

- Update documentation
- Fix transformation of null and Date values
- Update package description
- Updated dependencies 

  - @dynatrace-sdk/http-client@1.0.6

## 1.4.3

### Patch Changes

- Update error messages
- Updated dependencies 

  - @dynatrace-sdk/http-client@1.0.5

## 1.4.2

### Patch Changes

- Update documentation

## 1.4.1

### Patch Changes

- The type of task execution result is now "any"

## 1.4.0

### Minor Changes

- Introduce admin access flag

## 1.3.2

### Patch Changes

- Update docs.

## 1.3.1

### Patch Changes

- Add JSDoc @example for operations.

## 1.3.0

### Minor Changes

- Update client-automation to compatible with automation-server:2.137.0

  ### Changes

  - Add get `service users` API
  - Add capability to transfer `workflow` ownership or change `workflow` actor to the service user
  - Change workflow `task` name to an optional field
  - Update schema for `Davis Event` configuration and `Davis Problem` configuration
  - Add explicit schema for Business Calendar `Holidays` and `Weekdays`

  ### Fixes

  - Correct the method document to show the required permissions on `Business Calendar` API

### Patch Changes

- Fix handling of the application/cloudevent+json content type.

## 1.2.0

### Minor Changes

- Export model transformations

## 1.1.4

### Patch Changes

- Move model transformations to a separate module
- Update `@dynatrace-sdk/http-client` to `^1.0.3`

## 1.1.3

### Patch Changes

- Update `@dynatrace-sdk/http-client` to `^1.0.1`
- Use parsed response body in error serializer

## 1.1.2

### Patch Changes

- Send response body in error serializer
- Updated dependencies
  - @dynatrace-sdk/http-client@1.0.0

## 1.1.1

### Patch Changes

- Generate client package with template-typescript-client v0.13.10. Query question mark is now removed from url when there are no search params.

## 1.1.0

### Minor Changes

- - Omit obsolete workflow attributes
  - Support entity tag filter in Davis Event/Davis Problem
  - Add the permission scopes for each apis method

## 1.0.0

### Major Changes

- Initial release of @dynatrace-sdk/client-automation