@pageproof/sdk-pr 481.0.1682926860860 → 481.0.1683171051464
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.
|
@@ -6,9 +6,12 @@ declare class CommentsImport extends API {
|
|
|
6
6
|
*
|
|
7
7
|
* @private
|
|
8
8
|
* @param {object} options The options for the task
|
|
9
|
-
* @returns {Promise<CommentImport>}
|
|
9
|
+
* @returns {Promise<{ task: CommentImport; uploadRequest: object }>}
|
|
10
10
|
*/
|
|
11
|
-
_createTask(options: any): Promise<
|
|
11
|
+
_createTask(options: any): Promise<{
|
|
12
|
+
task: CommentImport;
|
|
13
|
+
uploadRequest: any;
|
|
14
|
+
}>;
|
|
12
15
|
/**
|
|
13
16
|
* Starts a comment import task.
|
|
14
17
|
*
|
|
@@ -23,10 +26,21 @@ declare class CommentsImport extends API {
|
|
|
23
26
|
*
|
|
24
27
|
* @param {File|Blob|Buffer} file The file/file contents to import comments from.
|
|
25
28
|
* @param {object} options The options for the task.
|
|
29
|
+
* @param {string} options.proofId The proof id.
|
|
30
|
+
* @param {string} options.fileName The name of the file.
|
|
31
|
+
* @param {boolean} [options.skipPreviouslyImported] Whether comments that have been previously imported from the same file should be skipped.
|
|
32
|
+
* @param {boolean} [options.includeStatuses] Whether comments statuses should be set based on the comment statuses in the file.
|
|
33
|
+
* @param {boolean} [options.isPrivate] Whether comments should be created as private.
|
|
26
34
|
* @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>
|
|
35
|
+
* @returns {Promise<CommentImport>}
|
|
28
36
|
*/
|
|
29
|
-
fromFile(file: Blob | File | Buffer, options:
|
|
37
|
+
fromFile(file: Blob | File | Buffer, options: {
|
|
38
|
+
proofId: string;
|
|
39
|
+
fileName: string;
|
|
40
|
+
skipPreviouslyImported?: boolean;
|
|
41
|
+
includeStatuses?: boolean;
|
|
42
|
+
isPrivate?: boolean;
|
|
43
|
+
}, progressCallback?: Function): Promise<CommentImport>;
|
|
30
44
|
/**
|
|
31
45
|
* Gets information about a comment import.
|
|
32
46
|
*
|