Skip to content

v2.1.201

Choose a tag to compare

@mittwald-machine mittwald-machine released this 16 Jul 19:37

New Features

Template Asset Management

  • Introduced a new request and response structure for managing assets associated with container templates, enhancing flexibility in specifying and retrieving template-related resources.

Deprecated Functionality

  • The getTemplateIcon method has been deprecated in favor of the new getTemplateAsset method, which provides a more comprehensive handling of template resources.

Enhanced List Templates Request

  • Added a sortOrder parameter to the list templates request, allowing sorting by specific criteria (e.g., trend over 30 days).

Details of Changes

Core Changes

  • ContainerClient Interface

    • Deprecated the getTemplateIcon method and introduced getTemplateAsset.
    • Added deprecatedContainerGetTemplateIcon method for backward compatibility with warnings about its future removal.
  • ContainerClient Implementation

    • Updated method implementations to meet the new specifications for template assets.
  • Request and Response Classes

    • Created new classes as follows:
      • GetTemplateAssetRequest
      • GetTemplateAssetBadRequestResponse
      • GetTemplateAssetDefaultResponse
      • GetTemplateAssetForbiddenResponse
      • GetTemplateAssetInternalServerErrorResponse
      • GetTemplateAssetNotFoundResponse
      • GetTemplateAssetServiceUnavailableResponse
      • GetTemplateAssetTooManyRequestsResponse

Domain Migration Adjustments

  • Added ownerContactIssues to the NonMigratableDomain schema, allowing consumers to address specific owner contact problems during domain migrations.
  • Introduced OwnerContactIssue class to manage information about individual field issues in owner contact data.

Activity Log Enhancements

  • Added classes to handle new activity logs concerning app installations:
    • AppInstallationDeleted
    • AppInstallationDatabaseLinked
    • AppInstallationDatabaseUnlinked
    • AppInstallationDescriptionSet

Template Enhancements

  • Introduced TemplateScreenshotsItem class to manage screenshots associated with container templates, including properties for background images and translated text.

Bug Fixes and Improvements

  • Refined the validation and construction logic of existing classes to ensure better error handling and usability, especially for optional properties in schemas.

Overall Improvements

  • This release includes significant shifts toward more standardized and extensible structures for managing templates, assets, and activity logs within the Mittwald API, enabling easier integration and better user experience for developers.