Release action parameters:
releaseId
- The id of the release to archive.Optional
options: BaseActionOptionsAdditional action options.
A promise that resolves to the transactionId
.
Creates a new release and generates an id and metadata.
Additional action options.
A promise that resolves to the transactionId
and the release id and metadata.
Creates a new release under the given id and metadata.
Release action parameters:
releaseId
(optional) - The id of the release to create.metadata
(optional) - The metadata to associate with the release ReleaseDocument.Optional
options: BaseActionOptionsAdditional action options.
A promise that resolves to the transactionId
and the release id and metadata.
const releaseId = 'my-release'
const releaseMetadata: ReleaseDocument['metadata'] = {
releaseType: 'asap',
}
const result =
await client.releases.create({releaseId, metadata: releaseMetadata})
console.log(result)
// {
// transactionId: 'transaction-id',
// releaseId: 'my-release',
// metadata: {releaseType: 'asap'},
// }
A delete action removes a published or archived release. The backing system document will be removed from the dataset.
Release action parameters:
releaseId
- The id of the release to delete.Optional
options: BaseActionOptionsAdditional action options.
A promise that resolves to the transactionId
.
Edits an existing release, updating the metadata.
Release action parameters:
releaseId
- The id of the release to edit.patch
- The patch operation to apply on the release metadata PatchMutationOperation.Optional
options: BaseActionOptionsAdditional action options.
A promise that resolves to the transactionId
.
Fetch the documents in a release by release id.
Release action parameters:
releaseId
- The id of the release to fetch documents for.Optional
options: BaseMutationOptionsAdditional mutation options BaseMutationOptions.
A promise that resolves to the documents in the release.
Retrieve a release by id.
Release action parameters:
releaseId
- The id of the release to retrieve.Optional
options: { signal?: AbortSignal; tag?: string }Additional query options including abort signal and query tag.
A promise that resolves to the release document ReleaseDocument.
Publishes all documents in a release at once. For larger releases the effect of the publish
will be visible immediately when querying but the removal of the versions.<releasesId>.*
documents and creation of the corresponding published documents with the new content may
take some time.
During this period both the source and target documents are locked and cannot be modified through any other means.
Release action parameters:
releaseId
- The id of the release to publish.Optional
options: BaseActionOptionsAdditional action options.
A promise that resolves to the transactionId
.
A schedule action queues a release for publishing at the given future time. The release is locked such that no documents in the release can be modified and no documents that it references can be deleted as this would make the publish fail. At the given time, the same logic as for the publish action is triggered.
Release action parameters:
releaseId
- The id of the release to schedule.publishAt
- The serialised date and time to publish the release. If the publishAt
is in the past, the release will be published immediately.Optional
options: BaseActionOptionsAdditional action options.
A promise that resolves to the transactionId
.
An unarchive action restores an archived release and all documents with the content they had just prior to archiving.
Release action parameters:
releaseId
- The id of the release to unarchive.Optional
options: BaseActionOptionsAdditional action options.
A promise that resolves to the transactionId
.
An unschedule action stops a release from being published. The documents in the release are considered unlocked and can be edited again. This may fail if another release is scheduled to be published after this one and has a reference to a document created by this one.
Release action parameters:
releaseId
- The id of the release to unschedule.Optional
options: BaseActionOptionsAdditional action options.
A promise that resolves to the transactionId
.
An archive action removes an active release. The documents that comprise the release are deleted and therefore no longer queryable.
While the documents remain in retention the last version can still be accessed using document history endpoint.