Laserfiche.Repository.Api.Client  1.1.8
Loading...
Searching...
No Matches
Changelog

1.1.8

Features

  • Allow setting base url when using CreateFromHttpRequestHandler

1.1.7

Fixes

  • Fix retry when locked

1.1.6

Features

  • Add additional methods that retry when entry is locked.

1.1.5

Features

  • Add retry when entry is locked. Defaults to 30 seconds. Allows setting by EntriesClient.RetryIfLockedForTimeout

1.1.4

Features

  • Add ability to update HttpClient timeout as needed. Increased default timeout to 180 seconds.

1.1.3

Features

  • Added the gzip compression header which will compress every API response to improve performance
  • Add StartTestTaskAsync to TasksClient to allow starting a "mock" operation with a specified duration and outcome.

Chore & Maintenance

  • Re-generated client using updated swagger.json to include any changes from the last year

1.1.2

Features

  • Added RepositoriesClient.GetSelfHostedRepositoryListAsync method that will enable self hosted users to get their repository list without an access token.

1.1.1

Features

  • CreateFromAccessKey now has an optional parameter scope to specify the request scope(s) for the access token.

1.1.0

Fixes

  • Fix IEntriesClient.GetDocumentContentTypeAsync return type from Task to Task<HttpResponseHead> to allow retrieving response headers.
  • Fix IEntriesClient.GetDocumentContentTypeAsync from throwing an error when trying to deserialize the response from an error response code.
  • Fix ISimpleSearchesClient.CreateSimpleSearchOperationAsync return type from Task<ODataValueOfIListOfEntry> to Task<ODataValueContextOfIListOfEntry> to more accurately represent the response. The ODataValueContextOfIListOfEntry type derives from the ODataValueOfIListOfEntry type.
  • Fix FuzzyType enum to serialize to string values instead of numbers.
  • Fix the error message when an ApiException is thrown and use the ProblemDetails.Title if possible.
  • Add more properties to the ProblemDetails type to more accurately represent the response.
  • [BREAKING] Types ApiException and ProblemDetails have been moved to namespace Laserfiche.Api.Client.
  • [BREAKING] Property ProblemDetails.AdditionalProperties has been removed. Use property ProblemDetails.Extensions instead.
  • [BREAKING] Types of ApiException<T> has been removed. Use ApiException instead. The ApiException has a ProblemDetails property which may contain additional information.\ IEntriesClient.ImportDocumentAsync API v1 can succeed in creating a document, but fail in setting some or all of its metadata components. To retrieve errors in the case of a partial success, inspect the content of the ProblemDetails.Extensions. See example below.
    #
    try
    {
    await repositoryApiClient.EntriesClient.ImportDocumentAsync(...);
    }
    catch (ApiException e)
    {
    Console.Error.WriteLine(e.Message);
    Console.Error.WriteLine(e);
    if (e?.ProblemDetails?.Extensions?.TryGetValue(nameof(CreateEntryResult), out var value) == true && value is CreateEntryResult partialSuccessResult)
    {
    int? createdEntryId = partialSuccessResult?.Operations?.EntryCreate?.EntryId;
    }
    }

1.0.5

Fixes

  • Add missing 403 and 404 status codes to various APIs.
  • Add missing property EntryId to OperationProgress type.
  • Change Entry type to abstract. Should use the derived types like Folder, Document, Shortcut, and RecordSeries.
  • Deprecate the ServerSession APIs. This applies to the following:
    • ServerSessionClient.CreateServerSessionAsync
    • ServerSessionClient.RefreshServerSessionAsync
    • ServerSessionClient.InvalidateServerSessionAsync
  • [BREAKING]: IEntriesClient
    • Rename MoveOrRenameDocumentAsync to MoveOrRenameEntryAsync to better represent its capability.