openapi: 3.0.2
info:
  title: ""
  description: "With the pubs service, you can retrieve a list of publications, tasks, and profile information. This API uses token (cursor) based pagination."
  version: "2.0"
servers:
- url: "https://{instanceUrl}/services/apexrest/mvn/pubs"
tags:
- name: Publications
  description: Handling of publication records.
- name: Tasks
  description: Handling of task records.
- name: Profile
  description: Handling of profile information.
- name: Pubs API Version
  description: Returns the Org's API
paths:
  /publications:
    get:
      tags:
      - Publications
      summary: Returns a list of publications related to the running user.
      description: "Returns a list of publications where the running user is a document collaborator. Unless specified otherwise, the publications are returned in sorted order, with the most recently updated publication appearing first. </br></br> If there is another page of results, the endpoint also returns a URL that you can use to retrieve the next page. The URL points to the Id of the last record retrieved."
      parameters:
      - name: active
        in: query
        description: Returns only active (`true`) or inactive publications (`false`).
        required: false
        schema:
          type: boolean
      - name: pageSize
        in: query
        description: Maximum number of results to return in a single page.
        required: false
        schema:
          type: integer
          default: 10
      - name: sortFieldName
        in: query
        description: API name of the Document Version field that the results are sorted by.
        required: false
        schema:
          type: string
      - name: sortDirection
        in: query
        description: Direction that the results are sorted.
        required: false
        schema:
          type: string
          enum:
          - ASC
          - DESC
      - name: lastValueOfSortedField
        in: query
        description: Last value from the list of the field to sort by.
        required: false
        schema:
          type: string
      - name: lastRecordId
        in: query
        description: "Id of the last record from the list, used by the cursor."
        required: false
        schema:
          type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PP_PublicationListResponse"
              examples:
                Publications response:
                  $ref: "#/components/examples/PP_PublicationListResponse"
  /publications/{id}:
    get:
      tags:
      - Publications
      summary: Returns detailed information about a single publication.
      description: Returns detailed information about a single publication.
      parameters:
      - name: id
        in: path
        description: Id of the publication record.
        required: true
        schema:
          type: string
      - name: Accept-Version
        in: header
        description: The API Version ex. V2
        required: false
        schema:
          type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PP_PublicationDetailResponseV2"
              examples:
                Publications response:
                  $ref: "#/components/examples/PP_PublicationDetailResponseV2"
  /publications/{documentId}/supportingDocuments/{contentDocumentId}/requestDownload:
    post:
      tags:
      - Publications
      summary: Returns a URL to download a supporting document.
      description: Returns a URL that you can use to download a supporting document (`ContentDocument`).
      parameters:
      - name: documentId
        in: path
        description: Id of the document (`mvn__CM_Document__c`) record.
        required: true
        schema:
          type: string
      - name: contentDocumentId
        in: path
        description: Id of the supporting document (`ContentDocument`) that you want to download.
        required: true
        schema:
          type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PP_RequestDownloadResponse"
              examples:
                Publications response:
                  $ref: "#/components/examples/PP_RequestDownloadResponse"
  /tasks:
    get:
      tags:
      - Tasks
      summary: Returns a list of tasks related to the running user.
      description: "Returns a list of tasks related to the running user. Unless specified differently, the publications are returned in sorted order, with the most recently updated publication appearing first. </br></br> If there is another page of results, the endpoint also returns a URL that you can use to retrieve the next page. The URL points to the Id of the last record retrieved."
      parameters:
      - name: open
        in: query
        description: Returns only open (`true`) or closed tasks (`false`).
        required: false
        schema:
          type: boolean
      - name: lastRecordId
        in: query
        description: "Id of the last record from the list, used by the cursor."
        required: false
        schema:
          type: string
      - name: pageSize
        in: query
        description: Maximum number of results to return in a single page.
        required: false
        schema:
          type: integer
          default: 10
      - name: sortFieldName
        in: query
        description: Name of the field that the results are sorted by.
        required: false
        schema:
          type: string
      - name: sortDirection
        in: query
        description: Direction that the results are sorted.
        required: false
        schema:
          type: string
          enum:
          - ASC
          - DESC
      - name: lastValueOfSortedField
        in: query
        description: Last value from the list of the field to sort by.
        required: false
        schema:
          type: string
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PP_PublicationTaskListResponse"
              examples:
                Tasks response:
                  $ref: "#/components/examples/PP_PublicationTaskListResponse"
  /tasks/{id}/closeTask:
    post:
      tags:
      - Tasks
      summary: Closes a task.
      description: Closes a task with a specific verdict and associates any accompanying revisions (`ContentDocuments`) with the task.
      parameters:
      - name: id
        in: path
        description: Id of the task record.
        required: true
        schema:
          type: string
      requestBody:
        description: Use the JSON body to specify the verdict of the task. You can also associate a comment and revisions (`ContentDocuments`) to the task.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PP_PublicationTaskCloseRequest"
            examples:
              Task close:
                $ref: "#/components/examples/PP_PublicationTaskCloseRequest"
        required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PP_PublicationTaskCloseResponse"
              examples:
                Close task response:
                  $ref: "#/components/examples/PP_PublicationTaskCloseResponse"
  /profile:
    get:
      tags:
      - Profile
      summary: Retrieves your profile details.
      description: Retrieves your profile details. Details include your user name and contact information.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PP_ProfileDetailResponse"
              examples:
                Profile detail response:
                  $ref: "#/components/examples/PP_ProfileDetailResponse"
    post:
      tags:
      - Profile
      summary: Updates your profile details.
      description: Updates your name and contact information.
      requestBody:
        description: Use the JSON body to specify the profile details that you want to update.
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/PP_ProfileEditRequest"
            examples:
              Profile update response:
                $ref: "#/components/examples/PP_ProfileEditRequest"
        required: true
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/PP_ProfileEditResponse"
              examples:
                Profile detail response:
                  $ref: "#/components/examples/PP_ProfileEditResponse"
  /apiVersion:
    get:
      tags:
      - Pubs API Version
      summary: Retrieves the current api version of pubs in the salesforce org.
      description: Retrieves the current api version of pubs in the salesforce org including the pubs api version number and the portal api version number.
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/mvn__PP_Pubs_API_Version__mdt"
              examples:
                Profile detail response:
                  $ref: "#/components/examples/mvn__PP_Pubs_API_Version__mdt"
components:
  schemas:
    PP_CursorPaginatedResponse:
      type: object
      properties:
        nextRecordsUrl:
          type: string
          description: URL to the next page of records. This value is null if there is no next page.
        totalSize:
          type: integer
          description: Total number of records that meet the request criteria.
    PP_DocumentVersion:
      type: object
      properties:
        title:
          type: string
          description: "Title of the document version, e.g. `Dosing Guide`. Title does not include Version Number."
        description:
          type: string
          description: Description of the document version.
        fullyQualifiedName:
          type: string
          description: "Fully Qualified Name of the document version. The Fully Qualified Name is comprised of the Title followed by the Version Number. For example, if the Fully Qualified Name of a document version is `Dosing Guide (v0.4)`, `Dosing Guide` is the Title, and `0.4` is the Version Number."
        versionNumber:
          type: string
          description: "Version Number of the document version, e.g. `5.4` where `5` is the Major Version Number and `4` is the Minor Version Number."
        changeLog:
          type: string
          description: Change log for the document version.
        downloadUrl:
          type: string
          description: URL to download the file associated with the document version.
        documentNumber:
          type: string
          description: Represents the Document Version record document number.
        documentType:
          type: string
          description: DeveloperName of the Document Type (`mvn__CM_Document_Type__mdt`) associated with the document version.
        documentTypeLabel:
          type: string
          description: Label of the Document Type (`mvn__CM_Document_Type__mdt`) associated with the document version.
        documentSubtype:
          type: string
          description: DeveloperName of the document subtype (`mvn__CM_Document_Type__mdt`) associated with the document version.
        documentSubtypeLabel:
          type: string
          description: Label of the document subtype (`mvn__CM_Document_Type__mdt`) associated with the document version.
        status:
          type: string
          description: DeveloperName of the Status (`CM_Status__mdt`) custom metadata type associated to the document version.
        statusLabel:
          type: string
          description: Custom Label API Name used to translate the Document State (`mvn__CM_Document_State__mdt`).
        statusColor:
          type: string
          description: Color used to depict the Document State (`mvn__CM_Document_State__mdt`) in the user interface.
        checkoutType:
          type: string
          description: Checkout type for the document version.
        checkoutUrl:
          type: string
          description: URL of the checked out document version.
        fileName:
          type: string
          description: File name of the document version.
        fileExtension:
          type: string
          description: File extension of the file associated with the document version.
        sourceURL:
          type: string
          description: URL for the document version record.
        renditionUrl:
          type: string
          description: URL for the document version rendition.
        createdById:
          type: string
          description: Id of the user who created the document version.
        createdByName:
          type: string
          description: Name of the user who created the document version.
        createdDate:
          type: string
          description: Date and time the document version was created.
        products:
          type: array
          description: An array of products associated with the document version.
          items:
            $ref: "#/components/schemas/PP_PublicationProduct"
    PP_ProfileDetail:
      type: object
      properties:
        lastName:
          type: string
          description: Last name of the user.
        firstName:
          type: string
          description: First name of the user.
        email:
          type: string
          description: Email of the user.
        phone:
          type: string
          description: Phone number of the user.
    PP_ProfileDetailResponse:
      allOf:
      - $ref: "#/components/schemas/PP_ProfileDetail"
      - type: object
        properties:
          id:
            type: string
            description: Id of the user.
    PP_ProfileEditResponse:
      type: object
      properties:
        id:
          type: string
          description: Id of the user.
        success:
          type: boolean
          description: Indicates if the profile update job succeeded (`true`) or failed (`false`).
    PP_ProfileEditRequest:
      $ref: "#/components/schemas/PP_ProfileDetail"
    PP_Publication:
      type: object
      properties:
        id:
          type: string
          description: Id of the document version.
        active:
          type: boolean
          description: Indicates whether the publication is active (`true`) or not active (`false`).
        latestAvailableDocumentVersion:
          $ref: "#/components/schemas/PP_DocumentVersion"
        target:
          $ref: "#/components/schemas/PP_PublicationTarget"
    PP_PublicationDetailResponse:
      type: object
      properties:
        publication:
          $ref: "#/components/schemas/PP_Publication"
        myTasks:
          type: array
          description: An array of task records that are associated with the publication and assigned to you.
          items:
            $ref: "#/components/schemas/PP_PublicationTask"
        history:
          type: array
          description: An array of revisions associated with the publication.
          items:
            $ref: "#/components/schemas/PP_PublicationHistory"
        supportingDocuments:
          type: array
          description: An array of supporting documents (`ContentDocuments`) associated with the publication.
          items:
            $ref: "#/components/schemas/PP_PublicationSupportingDocument"
    PP_PublicationDetailResponseV2:
      type: object
      properties:
        publication:
          $ref: "#/components/schemas/PP_Publication"
        packageFiles:
          type: array
          description: An array of package file records that are associated with the publication.
          items:
            $ref: "#/components/schemas/PP_PackageFile"
        myTasks:
          type: array
          description: An array of task records that are associated with the publication and assigned to you.
          items:
            $ref: "#/components/schemas/PP_PublicationTask"
        history:
          type: array
          description: An array of revisions associated with the publication.
          items:
            $ref: "#/components/schemas/PP_PublicationHistory"
        supportingDocuments:
          type: array
          description: An array of supporting documents (`ContentDocuments`) associated with the publication.
          items:
            $ref: "#/components/schemas/PP_PublicationSupportingDocument"
    PP_PublicationHistory:
      type: object
      properties:
        documentVersion:
          $ref: "#/components/schemas/PP_DocumentVersion"
        revisions:
          type: array
          description: An array of tasks associated with the revision of a document version.
          items:
            $ref: "#/components/schemas/PP_PublicationTask"
    PP_PublicationListItem:
      allOf:
      - $ref: "#/components/schemas/PP_Publication"
      - type: object
        properties:
          openTaskCount:
            type: integer
            description: Number of open tasks associated with the document version.
    PP_PublicationListResponse:
      allOf:
      - $ref: "#/components/schemas/PP_CursorPaginatedResponse"
      - type: object
        properties:
          records:
            type: array
            description: An array of publication records.
            items:
              $ref: "#/components/schemas/PP_PublicationListItem"
    PP_PublicationProduct:
      type: object
      properties:
        id:
          type: string
          description: Id of the product.
        name:
          type: string
          description: Name of the product.
    PP_PublicationReference:
      type: object
      properties:
        id:
          type: string
          description: Id of the publication record.
        documentVersionId:
          type: string
          description: Id of the document version.
        fullyQualifiedName:
          type: string
          description: "Fully Qualified Name of the document version. The Fully Qualified Name is comprised of the Title followed by the Version Number. For example, if the Fully Qualified Name of a document version is `Dosing Guide (v0.4)`, `Dosing Guide` is the Title, and `0.4` is the Version Number."
    PP_PublicationSupportingDocument:
      type: object
      properties:
        id:
          type: string
          description: Id of the supporting document (`ContentDocuments`).
        title:
          type: string
          description: Title of the supporting document (`ContentDocuments`).
        fileType:
          type: string
          description: File type of the supporting document (`ContentDocuments`).
        fileExtension:
          type: string
          description: File extension of the supporting document (`ContentDocuments`).
      description: Publication supporting document.
    PP_PackageFile:
      type: object
      properties:
        id:
          type: string
          description: Id of the package file (`PackageFiles`).
        documentVersionId:
          type: string
          description: Id of the document version (`PackageFiles`).
        contentDocumentId:
          type: string
          description: Id of content document (`PackageFiles`).
        checkoutUrl:
          type: string
          description: The checkout url of the package faile (`PackageFiles`).
      description: Publication document version package file.
    PP_PublicationTarget:
      type: object
      properties:
        name:
          type: string
          description: Name of the congress or journal.
        targetDate:
          type: string
          description: Date of the target. This value is null if hte target is a journal.
    PP_PublicationTask:
      type: object
      properties:
        id:
          type: string
          description: Id of the task record.
        type:
          type: string
          description: API name of the task record type.
        typeLabel:
          type: string
          description: Label of the task record type.
        subject:
          type: string
          description: Subject of the task.
        directions:
          type: string
          description: Instructions to the task assignee.
        documentNumber:
          type: string
          description: Represents the document number.
        consentLanguage:
          type: string
          description: Consent language of the task.
        comments:
          type: string
          description: Notes associated with the task.
        status:
          type: string
          description: "Status of a task, e.g. `not started` or `completed`."
        isOpen:
          type: boolean
          description: Indicates if the task is open (`true`) or closed (`false`).
        dueDate:
          type: string
          description: Date when the task is due.
        completedDate:
          type: string
          description: Represents the completed date.
        completedDateTime:
          type: string
          description: Date and time the task was completed.
        owner:
          $ref: "#/components/schemas/PP_User"
        documents:
          type: array
          description: Documents associated with the task.
          items:
            $ref: "#/components/schemas/PP_PublicationSupportingDocument"
        publicationReference:
          $ref: "#/components/schemas/PP_PublicationReference"
    PP_PublicationTaskCloseRequest:
      type: object
      properties:
        verdict:
          type: string
          description: Verdict used to close the task.
          enum:
          - APPROVED
          - REJECTED
          - COMPLETED
          - ACCEPTED
        comments:
          type: string
          description: Any commentary to add to the task when closing it.
        revisionIds:
          type: array
          description: Revisions (`ContentDocuments`) to associate to the task.
          items:
            type: object
            properties:
              id:
                type: string
                description: Id of the `ContentDocument` record.
    PP_PublicationTaskCloseResponse:
      type: object
      properties:
        id:
          type: string
          description: Id of the task.
        success:
          type: boolean
          description: Indicates if the task was closed (`true`) or not (`false`).
    PP_PublicationTaskListResponse:
      allOf:
      - $ref: "#/components/schemas/PP_CursorPaginatedResponse"
      - type: object
        properties:
          records:
            type: array
            description: An array of task records.
            items:
              $ref: "#/components/schemas/PP_PublicationTask"
    PP_RequestDownloadResponse:
      type: object
      properties:
        downloadUrl:
          type: string
          description: URL to download the supporting document (`ContentDocument`).
        success:
          type: boolean
          description: Indicates if the call succeeded (`true`) or failed (`false`).
    PP_User:
      type: object
      properties:
        name:
          type: string
          description: First and last name of the user who is assigned the task.
        id:
          type: string
          description: Id of the user who is assigned the task.
    mvn__PP_Pubs_API_Version__mdt:
      type: object
      properties:
        mvn__PP_isActive__c:
          type: boolean
          description: "When checked, this is the active Pubs API Version."
        mvn__PP_Portal_API_Version__c:
          type: string
          description: The API Version of the Portal API.
        mvn__PP_Pubs_API_Version__c:
          type: string
          description: The API Version of the Pubs API.
  examples:
    mvn__PP_Pubs_API_Version__mdt:
      value:
        mvn__PP_isActive__c: true
        mvn__PP_Portal_API_Version__c: v1.10
        mvn__PP_Pubs_API_Version__c: v1.10
    PP_ProfileDetailResponse:
      value:
        phone: (555) 555-5555
        lastName: Etup
        id: 00563000009HlWuAAK
        firstName: Sylvia
        email: setup@kalospharma.com
    PP_ProfileEditRequest:
      value:
        phone: (555) 555-5555
        lastName: Etup
        id: 00563000009HlWuAAK
        firstName: Sylvia
        email: setup@kalospharma.com
    PP_ProfileEditResponse:
      value:
        id: 00563000009HlWuAAK
        success: true
    PP_PublicationDetailResponse:
      value:
        supportingDocuments:
        - title: Summary
          id: 069550000033RbRAAU
          fileExtension: pdf
        - title: Test
          id: 069550000033WR2AAM
          fileExtension: docx
        publication:
          latestAvailableDocumentVersion:
            versionNumber: "2.0"
            title: Kalytex Abstract - 4
            statusLabel: "mvn__CM_Document_State_Published [translation error]"
            statusColor: green
            status: PP_Pub_Published
            products:
            - name: Kalytex
              id: a0G55000005j2kKEAQ
            fullyQualifiedName: Kalytex Abstract - 4 (v2.0)
            fileExtension: docx
            downloadUrl: /sfc/servlet.shepherd/document/download/069550000033MEIAA2
            documentTypeLabel: Publication
            documentType: Publication
            documentSubtypeLabel: Abstract
            documentSubtype: Abstract
            description: Kalytex Abstract
            createdDate: 2022-02-10T13:53:49.000Z
            createdByName: User1643051998781509078
            createdById: 0055500000A0x3BAAR
          id: a0D55000005tQDYEA2
          active: false
          openTaskCount: 1
        myTasks:
        - typeLabel: Review
          type: CM_Review
          subject: Publication Document Review
          status: Canceled
          owner:
            name: Bruno Hearn
            id: 0055500000A6ckdAAB
          isOpen: true
          id: 00T5500000PxadiEAB
          dueDate: 2022-02-24
          directions: Please review this publication document.
        history:
        - revisions:
          - typeLabel: Review
            type: CM_Review
            subject: Publication Document Review
            status: Completed
            owner:
              name: User1643051998781509078
              id: 0055500000A0x3BAAR
            isOpen: false
            id: 00T5500000PxadjEAB
            dueDate: 2022-02-24
            documents: []
            directions: Please review this publication document.
            completedDateTime: 2022-02-10T17:55:20.000Z
            comments: Done
          - typeLabel: Review
            type: CM_Review
            subject: Initialize Publication Draft
            status: Completed
            owner:
              name: User1643051998781509078
              id: 0055500000A0x3BAAR
            isOpen: false
            id: 00T5500000PxVIaEAN
            dueDate: 2022-02-17
            documents: []
            directions: Please enable document access for all collaborators and upload the initial draft.
            completedDateTime: 2022-02-10T15:54:21.000Z
            comments: Task is done
          documentVersion:
            versionNumber: "2.0"
            title: Kalytex Abstract - 4
            statusLabel: "mvn__CM_Document_State_Published [translation error]"
            statusColor: green
            status: PP_Pub_Published
            products:
            - name: Kalytex
              id: a0G55000005j2kKEAQ
            fullyQualifiedName: Kalytex Abstract - 4 (v2.0)
            fileExtension: docx
            downloadUrl: /sfc/servlet.shepherd/document/download/069550000033MEIAA2
            documentType: Publication
            documentSubtype: Abstract
            description: Kalytex Abstract
            createdDate: 2022-02-10T13:53:49.000Z
            createdByName: User1643051998781509078
            createdById: 0055500000A0x3BAAR
    PP_PublicationDetailResponseV2:
      value:
        supportingDocuments:
        - title: Summary
          id: 069550000033RbRAAU
          fileExtension: pdf
        - title: Test
          id: 069550000033WR2AAM
          fileExtension: docx
        publication:
          latestAvailableDocumentVersion:
            versionNumber: "2.0"
            title: Kalytex Abstract - 4
            statusLabel: "mvn__CM_Document_State_Published [translation error]"
            statusColor: green
            status: PP_Pub_Published
            products:
            - name: Kalytex
              id: a0G55000005j2kKEAQ
            fullyQualifiedName: Kalytex Abstract - 4 (v2.0)
            fileExtension: docx
            downloadUrl: /sfc/servlet.shepherd/document/download/069550000033MEIAA2
            documentTypeLabel: Publication
            documentType: Publication
            documentSubtypeLabel: Abstract
            documentSubtype: Abstract
            description: Kalytex Abstract
            createdDate: 2022-02-10T13:53:49.000Z
            createdByName: User1643051998781509078
            createdById: 0055500000A0x3BAAR
          id: a0D55000005tQDYEA2
          active: false
          openTaskCount: 1
        packageFiles:
        - id: a0D55000005tQDYEA2
          documentVersionId: a0F55000005tQDYEA2
          contentDocumentId: 069550000033WR2AAM
          checkoutUrl: www.google.com
        myTasks:
        - typeLabel: Review
          type: CM_Review
          subject: Publication Document Review
          status: Canceled
          owner:
            name: Bruno Hearn
            id: 0055500000A6ckdAAB
          isOpen: true
          id: 00T5500000PxadiEAB
          dueDate: 2022-02-24
          directions: Please review this publication document.
        history:
        - revisions:
          - typeLabel: Review
            type: CM_Review
            subject: Publication Document Review
            status: Completed
            owner:
              name: User1643051998781509078
              id: 0055500000A0x3BAAR
            isOpen: false
            id: 00T5500000PxadjEAB
            dueDate: 2022-02-24
            documents: []
            directions: Please review this publication document.
            completedDateTime: 2022-02-10T17:55:20.000Z
            comments: Done
          - typeLabel: Review
            type: CM_Review
            subject: Initialize Publication Draft
            status: Completed
            owner:
              name: User1643051998781509078
              id: 0055500000A0x3BAAR
            isOpen: false
            id: 00T5500000PxVIaEAN
            dueDate: 2022-02-17
            documents: []
            directions: Please enable document access for all collaborators and upload the initial draft.
            completedDateTime: 2022-02-10T15:54:21.000Z
            comments: Task is done
          documentVersion:
            versionNumber: "2.0"
            title: Kalytex Abstract - 4
            statusLabel: "mvn__CM_Document_State_Published [translation error]"
            statusColor: green
            status: PP_Pub_Published
            products:
            - name: Kalytex
              id: a0G55000005j2kKEAQ
            fullyQualifiedName: Kalytex Abstract - 4 (v2.0)
            fileExtension: docx
            downloadUrl: /sfc/servlet.shepherd/document/download/069550000033MEIAA2
            documentType: Publication
            documentSubtype: Abstract
            description: Kalytex Abstract
            createdDate: 2022-02-10T13:53:49.000Z
            createdByName: User1643051998781509078
            createdById: 0055500000A0x3BAAR
    PP_PublicationListResponse:
      value:
        totalSize: 3
        records:
        - latestAvailableDocumentVersion:
            versionNumber: "2.0"
            title: Kalytex Abstract - 4
            statusLabel: "mvn__CM_Document_State_Published [translation error]"
            statusColor: green
            status: PP_Pub_Published
            products:
            - name: Kalytex
              id: a0G55000005j2kKEAQ
            fullyQualifiedName: Kalytex Abstract - 4 (v2.0)
            fileExtension: docx
            downloadUrl: /sfc/servlet.shepherd/document/download/069550000033MEIAA2
            documentTypeLabel: Publication
            documentType: Publication
            documentSubtypeLabel: Abstract
            documentSubtype: Abstract
            description: Kalytex Abstract
            createdDate: 2022-02-10T13:53:49.000Z
            createdByName: User1643051998781509078
            createdById: 0055500000A0x3BAAR
          id: a0D55000005tQDYEA2
          active: false
          openTaskCount: 1
        - latestAvailableDocumentVersion:
            versionNumber: "0.1"
            title: Cholecap FAQ - Can Cholecap be given to pregnant women
            statusLabel: "mvn__CM_Document_State_Draft [translation error]"
            statusColor: light-blue
            status: PP_Default_Draft
            products:
            - name: Test Product 01.24.21
              id: a0G55000005j2l7EAA
            fullyQualifiedName: Cholecap FAQ - Can Cholecap be given to pregnant women (v0.1)
            documentTypeLabel: Supporting Document
            documentType: Supporting_Document
            documentSubtypeLabel: Other
            documentSubtype: Other
            createdDate: 2022-01-27T21:14:47.000Z
            createdByName: User1643051998781509078
            createdById: 0055500000A0x3BAAR
          id: a0D55000005taAQEAY
          active: true
          openTaskCount: 0
        - latestAvailableDocumentVersion:
            versionNumber: "1.0"
            title: Test
            statusLabel: "mvn__CM_Document_State_Published [translation error]"
            statusColor: green
            status: PP_Default_Published
            products:
            - name: Kalytex
              id: a0G55000005j2kKEAQ
            fullyQualifiedName: Test (v1.0)
            documentTypeLabel: Supporting Document
            documentType: Supporting_Document
            documentSubtypeLabel: Other
            documentSubtype: Other
            createdDate: 2022-02-10T18:05:28.000Z
            createdByName: User1643051998781509078
            createdById: 0055500000A0x3BAAR
          id: a0D55000005ut0LEAQ
          active: true
          openTaskCount: 0
    PP_PublicationTaskCloseRequest:
      value:
        verdict: REJECTED
        comments: Please update with the following revisions
        revisionIds:
        - 06956000000veQiAAI
        - 06956000000veqqAAI
    PP_PublicationTaskCloseResponse:
      value:
        id: 00T000000056HF0983
        success: true
    PP_PublicationTaskListResponse:
      value:
        totalSize: 9
        records:
        - typeLabel: General Task
          type: PP_General
          subject: Conflicts of interest
          status: Not Started
          owner:
            name: Bruno Hearn
            id: 0055500000A6ckdAAB
          isOpen: true
          id: 00T5500000PwmFyEAJ
          dueDate: 2022-02-12
          directions: Please provide any conflicts of interest
        - typeLabel: General Task
          type: PP_General
          subject: Conflicts of interest
          status: Not Started
          owner:
            name: Bruno Hearn
            id: 0055500000A6ckdAAB
          isOpen: true
          id: 00T5500000PwmFzEAJ
          dueDate: 2022-02-12
          directions: Please provide any conflicts of interest
        - typeLabel: Consent Task
          type: PP_Consent
          subject: Author letter of agreement
          status: Not Started
          owner:
            name: Bruno Hearn
            id: 0055500000A6ckdAAB
          isOpen: true
          id: 00T5500000PwmG3EAJ
          dueDate: 2022-02-12
          directions: Please accept the terms for the author letter of agreement
        nextRecordsUrl: /services/apexrest/mvn/pubs/tasks?lastRecordId=00T5500000PwmG3EAJ&open=true&pageSize=3
    PP_RequestDownloadResponse:
      value:
        success: true
        downloadUrl: https://sandbox-force-momentum-245-dev-ed-17e8d227b27.cs41.force.com/sfc/servlet.shepherd/document/download/069550000033RbRAAU
