Implements

Constructors

Properties

jsonParseReviver: undefined | (key: string, value: any) => any = undefined

Methods

    • The request body is a polymorphic annotation discriminated by annotationType; supply the writable members for that type.
    • For attachment and bitmap annotations, create the annotation first, then upload its binary content via the dedicated sub-resource.
    • Requires the "annotate" entry right.
    • Required OAuth scope: repository.Write

    Parameters

    • args: {
          entryId: number;
          pageNumber: number;
          repositoryId: string;
          request: Annotation;
      }

    Returns Promise<Annotation>

    Successfully created the annotation. Returned the created annotation.

    • Requires the "annotate" entry right.
    • Required OAuth scope: repository.Write

    Parameters

    • args: { entryId: number; itemId: number; pageNumber: number; repositoryId: string }

    Returns Promise<void>

    Successfully deleted the annotation.

    • When force is false, deleting a reason that is in use fails.
    • Required OAuth scope: repository.Write

    Parameters

    • args: { force?: boolean; reasonId: number; repositoryId: string }
      • Optionalforce?: boolean

        (optional)

      • reasonId: number
      • repositoryId: string

    Returns Promise<void>

    Successfully deleted the annotation reason.

    • Returns the annotation, typed by annotation type.
    • Requires the "see annotations" entry right; redaction content is only revealed to callers with the "see through redactions" right.
    • Required OAuth scope: repository.Read

    Parameters

    • args: {
          entryId: number;
          itemId: number;
          pageNumber: number;
          repositoryId: string;
          select?: null | string;
      }
      • entryId: number

        The document entry ID.

      • itemId: number

        The annotation item ID, unique within the page.

      • pageNumber: number

        The 1-based page number.

      • repositoryId: string

        The requested repository ID.

      • Optionalselect?: null | string

        (optional) Limits the properties returned in the result.

    Returns Promise<Annotation>

    Successfully returned the requested annotation.

    • Streams the attached file. Fails with a bad request if the annotation is not an attachment.
    • Requires the "see annotations" entry right.
    • Required OAuth scope: repository.Read

    Parameters

    • args: {
          entryId: number;
          itemId: number;
          pageNumber: number;
          repositoryId: string;
          select?: null | string;
      }
      • entryId: number

        The document entry ID.

      • itemId: number

        The attachment annotation's item ID.

      • pageNumber: number

        The 1-based page number.

      • repositoryId: string

        The requested repository ID.

      • Optionalselect?: null | string

        (optional) Limits the properties returned in the result.

    Returns Promise<FileResponse>

    Successfully returned the content of the attachment annotation.

    • Returns the redaction reasons defined in the repository.
    • Required OAuth scope: repository.Read

    Parameters

    • args: {
          count?: boolean;
          orderby?: null | string;
          repositoryId: string;
          select?: null | string;
      }
      • Optionalcount?: boolean

        (optional) Indicates whether the total count of items within a collection are returned in the result.

      • Optionalorderby?: null | string

        (optional) Specifies the order in which items are returned. The maximum number of expressions is 5.

      • repositoryId: string

        The requested repository ID.

      • Optionalselect?: null | string

        (optional) Limits the properties returned in the result.

    Returns Promise<AnnotationReason[]>

    Successfully returned the repository's annotation reasons.

    • Returns every annotation on every page of the document, as a polymorphic list keyed by annotation type.
    • Requires the "see annotations" entry right; redaction content is only revealed to callers with the "see through redactions" right.
    • Required OAuth scope: repository.Read

    Parameters

    • args: {
          count?: boolean;
          entryId: number;
          orderby?: null | string;
          repositoryId: string;
          select?: null | string;
      }
      • Optionalcount?: boolean

        (optional) Indicates whether the total count of items within a collection are returned in the result.

      • entryId: number

        The document entry ID.

      • Optionalorderby?: null | string

        (optional) Specifies the order in which items are returned. The maximum number of expressions is 5.

      • repositoryId: string

        The requested repository ID.

      • Optionalselect?: null | string

        (optional) Limits the properties returned in the result.

    Returns Promise<Annotation[]>

    Successfully returned the annotations on the document.

    • Returns the annotations on the requested page, as a polymorphic list keyed by annotation type.
    • Requires the "see annotations" entry right; redaction content is only revealed to callers with the "see through redactions" right.
    • Required OAuth scope: repository.Read

    Parameters

    • args: {
          count?: boolean;
          entryId: number;
          orderby?: null | string;
          pageNumber: number;
          repositoryId: string;
          select?: null | string;
      }
      • Optionalcount?: boolean

        (optional) Indicates whether the total count of items within a collection are returned in the result.

      • entryId: number

        The document entry ID.

      • Optionalorderby?: null | string

        (optional) Specifies the order in which items are returned. The maximum number of expressions is 5.

      • pageNumber: number

        The 1-based page number.

      • repositoryId: string

        The requested repository ID.

      • Optionalselect?: null | string

        (optional) Limits the properties returned in the result.

    Returns Promise<Annotation[]>

    Successfully returned the annotations on the page.

    • Supply only the members to change; omitted members are left unchanged. The annotationType must match the existing annotation.
    • Requires the "annotate" entry right.
    • Required OAuth scope: repository.Write

    Parameters

    • args: {
          entryId: number;
          itemId: number;
          pageNumber: number;
          repositoryId: string;
          request: Annotation;
      }

    Returns Promise<Annotation>

    Successfully updated the annotation. Returned the updated annotation.

    • Send the file as multipart/form-data under the form field "file". The annotation must already exist and be an attachment annotation.
    • Requires the "annotate" entry right.
    • Required OAuth scope: repository.Write

    Parameters

    • args: {
          entryId: number;
          file?: FileParameter;
          itemId: number;
          pageNumber: number;
          repositoryId: string;
      }

    Returns Promise<void>

    Successfully uploaded the attachment content.

    • Send the image as multipart/form-data under the form field "file". The annotation must already exist and be a bitmap annotation.
    • Requires the "annotate" entry right.
    • Required OAuth scope: repository.Write

    Parameters

    • args: {
          entryId: number;
          file?: FileParameter;
          itemId: number;
          pageNumber: number;
          repositoryId: string;
      }

    Returns Promise<void>

    Successfully uploaded the bitmap annotation image.