Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,7 @@ export type ReleaseAction =
| ScheduleReleaseAction
| UnscheduleReleaseAction
| DeleteReleaseAction
| ImportReleaseAction

/** @public */
export type VersionAction =
Expand All @@ -642,6 +643,21 @@ export type Action =
| VersionAction
| ReleaseAction

/** @public */
export type ImportReleaseAction =
| {
actionType: 'sanity.action.release.import'
attributes: IdentifiedSanityDocumentStub
releaseId: string
ifExists: 'fail' | 'ignore' | 'replace'
}
| {
actionType: 'sanity.action.release.import'
document: IdentifiedSanityDocumentStub
releaseId: string
ifExists: 'fail' | 'ignore' | 'replace'
}

/**
* Creates a new release under the given id, with metadata.
*
Expand Down
Loading