Skip to main content
Query

scriptSharing

Returns who a screenplay is shared with outside the project's space: collaborators, pending invites and share links. Requires edit access to the project.

Arguments

  • localeString

    Canonical content language of a SEQUENCE review; omit for the source review.

  • projectIdID!

    ID of the project.

  • screenplayIdID!

    ID of the screenplay.

  • targetKindShareTargetKind

    SCREENPLAY (default) for the screenplay's text, SEQUENCE for its AV script under review.

Returns

ScriptSharing!

Example

query ScriptSharing($locale: String, $projectId: ID!, $screenplayId: ID!, $targetKind: ShareTargetKind) {
  scriptSharing(
    locale: $locale
    projectId: $projectId
    screenplayId: $screenplayId
    targetKind: $targetKind
  ) {
    collaborators {
      accessLevel
      createdAt
      email
      name
      source
      userId
    }
    pendingInvites {
      accessLevel
      createdAt
      email
      expiresAt
      hasAccount
      id
    }
    shareLinks {
      accessLevel
      createdAt
      expiresAt
      id
      label
      lastUsedAt
      locale
      publicationId
    }
  }
}