@pageproof/sdk-pr 481.0.1682926772487 → 481.0.1682926860860
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/CommentsImport.d.ts +11 -3
- package/lib/pageproof.js +1 -1
- package/package.json +1 -1
|
@@ -18,18 +18,26 @@ declare class CommentsImport extends API {
|
|
|
18
18
|
* @returns {Promise<CommentImport>}
|
|
19
19
|
*/
|
|
20
20
|
_startTask(id: string, options: any): Promise<CommentImport>;
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Creates a comment import from a file (currently PDF files are the only ones supported).
|
|
23
|
+
*
|
|
24
|
+
* @param {File|Blob|Buffer} file The file/file contents to import comments from.
|
|
25
|
+
* @param {object} options The options for the task.
|
|
26
|
+
* @param {function} [progressCallback] The upload progress callback. The first argument is a number between 0 and 100, correlating to the percentage of the upload.
|
|
27
|
+
* @returns {Promise<CommentImport>
|
|
28
|
+
*/
|
|
29
|
+
fromFile(file: Blob | File | Buffer, options: any, progressCallback?: Function): Promise<CommentImport>;
|
|
22
30
|
/**
|
|
23
31
|
* Gets information about a comment import.
|
|
24
32
|
*
|
|
25
|
-
* @param {string} id
|
|
33
|
+
* @param {string} id The import ID.
|
|
26
34
|
* @returns {Promise<CommentImport>}
|
|
27
35
|
*/
|
|
28
36
|
info(id: string): Promise<CommentImport>;
|
|
29
37
|
/**
|
|
30
38
|
* Cancels a comment import
|
|
31
39
|
*
|
|
32
|
-
* @param {string} id
|
|
40
|
+
* @param {string} id The import ID.
|
|
33
41
|
* @returns {Promise<CommentImport>}
|
|
34
42
|
*/
|
|
35
43
|
cancel(id: string): Promise<CommentImport>;
|