# Document

@dynatrace-sdk/client-document

## 1.30.0

### Minor changes
- `listDocuments` endpoint supports `IN` operator in filter
- allow to opt-out from E-Mail notifications on share operations

## 1.29.0

### Minor changes

- Introduce editor sharing. Users with write access to a specific document may re-share the document with other users.

## 1.28.0

### Minor changes

- Add optional `isShared` and `isSharedWithCurrentUser` properties to `listDocuments` endpoint response.

### Patch changes

- add `lastModifyingAppId` property to `modificationInfo` and support partial result for `modificationInfo.lastModifyingAppId` in` getDocument` and `getDocumentMetadata`
- add missing pagination parameters to `GetDirectShareRecipientsParams`

## 1.27.0

### Minor changes

- `bulkDeleteDocument` (/documents:delete) is now limited to 100 documents per request

## 1.26.1

### Patch Changes

- Update dependencies. (APPDEV-13611)

## 1.26.0

### Minor changes

- Add admin access to all document endpoints

## 1.25.1

### Patch changes

- Fix incorrect max length documentation for documents filter

## 1.25.0

### Minor changes

- Introduce optional client-provided id. Deprecate external id.
- Introduce admin access to trash endpoints.

## 1.24.5

### Patch changes

- Add missing response codes and entities to `createDocument`, `updateDocument`, `updateDocumentContent` and `transferOwner`.

## 1.24.4

### Patch Changes

- Update dependencies. (APPDEV-11813)

## 1.24.3

### Patch Changes

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

## 1.24.2

### Patch Changes

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

## 1.24.1

### Patch Changes

- Fix for form-data JSON fields deserialization. (APPDEV-12880)

## 1.24.0

### Minor Changes

- Added support for optional transformations. (APPDEV-11914)

### Patch Changes

- Added fix for 'transformToFormDataField' function. (APPDEV-12478)
- Remove generatedAt property from metadata file. (APPDEV-12696)

## 1.23.0

### Minor changes

- createDocument - enforce documents per tenant limit, if limit is exceeded HTTP 507 Insufficient Storage is returned.

## 1.22.0

### Minor Changes

- Use optimised transformations. (APPDEV-11447)

## 1.21.3

### Patch changes

- Add origin extension id to list-documents endpoint documentation

## 1.21.2

### Patch Changes

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

## 1.21.1

Platform tokens notice updated

## 1.21.0

### Minor changes

- Add origin extension id to document responses

## 1.20.0

### Minor Changes

- Enums are replaced with unions of literals. APPDEV-10338
- Inline enums as union of literals. APPDEV-9924

### Patch Changes

- Add return types and improve usage examples inside JSDoc. APPDEV-7536

## 1.19.2

### Patch changes

- Mark `createdSnapshot` as optional in `RestoreDocumentResult`

## 1.19.1

### Patch changes

- Change new transfer-owner endpoint so that the owner id gets transported in the body instead of in query param

## 1.19.0

###Minor changes

- restoresSnapshot - change behavior so that new snapshot gets created before instead of after the restoration

## 1.18.1

### Patch changes

- Add missing add-fields param to getDocument and getDocumentMetadata

## 1.18.0

### Minor changes

- Enhance list-documents endpoint so that it supports add-fields and sort for the user's lastAccessedTime
- Enhance get-document and get-document-metadata endpoints so that they support add-fields for the user's lastAccessedTime

## 1.17.0

### Minor changes

- Add transfer-owner endpoint
- Add explanation for admin-access
- Add add-fields to list-document endpoint
- Remove description from list-documents response schema, can be added via add-fields now

## 1.16.0

### Features

- Export errors from the package.

## 1.15.0

### Minor changes

- Add admin access for endpoints: list-document, get-document, get-document-metadata, get-document-content, delete-document

## 1.14.0

### Minor changes

- Add bulk deletion endpoint for documents.
- Remove no longer required id-type query param from get-metadata endpoint.
- Update snapshot endpoints documentation (accessing snapshots now requires write-access on the document).

## 1.13.0

### Minor Changes

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

## 1.12.0

### Minor changes

- Prevent that a uuid is used as external id

## 1.11.0

### Minor changes

- Extend list-documents operation with filtering and sorting capability for property originAppId

## 1.10.1

### Patch Changes

- Updated boolean serialization handling. APPDEV-9047

## 1.10.0

### Minor changes

- Add public documents feature (allows to share a document with all users in the environment)
- Add external id feature (allows to define an optional, unique id for a document)
- Add optional description to documents (allows users to describe a document)
- Add origin app id to documents (readonly property which indicates whether a document is app-shipped)

## 1.9.2

### Patch Changes

- Fix broken links in the readme file.

## 1.9.1

### Patch Changes

- Use updated http client with fix for Safari multipart/form-data parsing. APPDEV-8496

## 1.9.0

- Add getSnapshotMetadata endpoint

## 1.8.1

### Patch Changes

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

## 1.8.0

### Minor Changes

- Add versioning feature

## 1.7.1

### Patch Changes

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

## 1.7.0

### Minor Changes

- Update client-document - improve docs

## 1.6.1

### Patch Changes

- Update documentation.

## 1.6.0

### Minor Changes

- Release document locking endpoints

## 1.5.4

### Patch Changes

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

## 1.5.3

### Patch Changes

- Update dependencies.

## 1.5.2

### Patch Changes

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

## 1.5.1

### Patch Changes

- Update JSDoc examples.

## 1.5.0

### Minor Changes

- Add trash functionality

## 1.4.1

### Patch Changes

- Fix transformation of null values for nullable properties

## 1.4.0

### Minor Changes

- Add offset-based pagination to all list endpoints

### Patch Changes

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

  - @dynatrace-sdk/http-client@1.0.6

## 1.3.2

### Patch Changes

- Update error messages
- Updated dependencies 

  - @dynatrace-sdk/http-client@1.0.5

## 1.3.1

### Patch Changes

- Update documentation

## 1.3.0

### Minor Changes

- Add update document (metadata + content)

## 1.2.2

### Patch Changes

- Update docs.

## 1.2.1

### Patch Changes

- Add JSDoc @example for operations.
- Fix handling of the application/cloudevent+json content type.

## 1.2.0

### Minor Changes

- Update doc-service sdk

## 1.1.0

### Minor Changes

- Export model transformations

## 1.0.6

### Patch Changes

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

## 1.0.5

### Patch Changes

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

## 1.0.4

### Patch Changes

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

## 1.0.3

### 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.0.2

### Patch Changes

- Generate client package with template-typescript-client v0.13.9.
  Config param is now optional for valid operations.
  Improve error handling of unsupported data types.
- Process HTML tags in the documentation.

## 1.0.1

### Patch Changes

- Fix create-direct-share endpoint response code

## 1.0.0

### Major Changes

- Initial release of @dynatrace-sdk/client-document.