Minor Changes
-
add collaboration comments client (
@alpha) (#1235) (5906f72) -
add variant actions (#1279) (dd25720)
Adds
CreateVariantAction,EditVariantAction,DeleteVariantAction,PublishVariantActionand
UnpublishVariantAction, along with aVariantActionunion, covering the
sanity.action.document.variant.*actions. They are included in theActionunion, so
client.action()accepts them.Each action addresses a variant document by the
publishedId,variantIdandbundleIdtriple
rather than by document ID, since the API derives the document ID from those three values.Note that
Actionwidening is a breaking change for code that exhaustively switches on
Action['actionType']with aneverfallthrough, which will need to handle the new cases.