async UploadPart({libraryId, objectId, writeToken, data, encryption="none"}) {
    const partWriteToken = await this.CreatePart({libraryId, objectId, writeToken, encryption});

    await this.UploadPartChunk({libraryId, objectId, writeToken, partWriteToken, chunk: data, encryption});

    return await this.FinalizePart({libraryId, objectId, writeToken, partWriteToken, encryption});
  }
/**
   * Upload part to an object draft
   *
   * Note: If uploading a large file (especially with an HTML file and/or when using the FrameClient) it is
   * recommended to use the CreatePart + UploadPartChunk + FinalizePart flow to upload the file in
   * smaller chunks.
   *
   * @methodGroup Parts and Files
   * @namedParams
   * @param {string} libraryId - ID of the library
   * @param {string} objectId - ID of the object
   * @param {string} writeToken - Write token of the content object draft
   * @param {(File | ArrayBuffer | Buffer)} data - Data to upload
   * @param {number=} chunkSize=1000000 (1MB) - Chunk size, in bytes
   * @param {string=} encryption=none - Desired encryption scheme. Options: 'none (default)', 'cgck'
   *
   * @returns {Promise<Object>} - Response containing information about the uploaded part
   */
Upload part to an object draft
Note: If uploading a large file (especially with an HTML file and/or when using the FrameClient) it is
recommended to use the CreatePart + UploadPartChunk + FinalizePart flow to upload the file in
smaller chunks.



@returns {Promise} - Response containing information about the uploaded part
Upload part to an object draft Note : If uploading a large file ( especially with an HTML file and / or when using the FrameClient ) it is recommended to use the CreatePart + UploadPartChunk + FinalizePart flow to upload the file in smaller chunks . @returns { Promise } - Response containing information about the uploaded part
async UploadPart({libraryId, objectId, writeToken, data, encryption="none"}) {
    const partWriteToken = await this.CreatePart({libraryId, objectId, writeToken, encryption});
    await this.UploadPartChunk({libraryId, objectId, writeToken, partWriteToken, chunk: data, encryption});
    return await this.FinalizePart({libraryId, objectId, writeToken, partWriteToken, encryption});
  }
async UploadPart ( { libraryId , objectId , writeToken , data , encryption = "none" } ) { const partWriteToken = await this . CreatePart ( { libraryId , objectId , writeToken , encryption } ) ; await this . UploadPartChunk ( { libraryId , objectId , writeToken , partWriteToken , chunk : data , encryption } ) ; return await this . FinalizePart ( { libraryId , objectId , writeToken , partWriteToken , encryption } ) ; }
Upload part to an object draft
 Note: If uploading a large file (especially with an HTML file and/or when using the FrameClient) it is
 recommended to use the CreatePart + UploadPartChunk + FinalizePart flow to upload the file in
 smaller chunks.
Upload part to an object draft Note : If uploading a large file ( especially with an HTML file and / or when using the FrameClient ) it is recommended to use the CreatePart + UploadPartChunk + FinalizePart flow to upload the file in smaller chunks .