The object returned by the Releases API

Hierarchy

Properties

entities: BaseCollection<Link<Entity>>
metadata?: ReleaseMetadata
title: string

Methods

  • Archives a release and locks any actions such as adding new entities or publishing/unpublishing. This operation increases the sys.version property

    Throws

    if the release is already archived

    Returns Promise<Release>

  • Deletes a Release and all ReleaseActions linked to it (non-reversible)

    Returns Promise<void>

  • Publishes a Release and waits until the asynchronous action is completed

    Parameters

    • Optional options: AsyncActionProcessingOptions

    Returns Promise<ReleaseAction<"publish">>

  • Unarchives an archived release and unlocks operations on the Release. This operation increases the sys.version property

    Throws

    if the release is not archived

    Returns Promise<Release>

  • Unpublishes a Release and waits until the asynchronous action is completed

    Parameters

    • Optional options: AsyncActionProcessingOptions

    Returns Promise<ReleaseAction<"unpublish">>

  • Validates a Release and waits until the asynchronous action is completed

    Parameters

    • Optional __namedParameters: {
          options?: AsyncActionProcessingOptions;
          payload?: ReleaseValidatePayload;
      }
      • Optional options?: AsyncActionProcessingOptions
      • Optional payload?: ReleaseValidatePayload

    Returns Promise<ReleaseAction<"validate">>