@pageproof/sdk-pr 466.0.1663640252088 → 466.0.1663810619918
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/Comments.d.ts +5 -3
- package/lib/models/Comment.d.ts +5 -5
- package/lib/pageproof.js +1 -1
- package/lib/types/Comment.d.ts +6 -0
- package/package.json +1 -1
package/lib/api/Comments.d.ts
CHANGED
|
@@ -176,7 +176,7 @@ declare class Comments extends API {
|
|
|
176
176
|
* @property {number} [mediaDuration] For audio/video proofs - the duration (in seconds) that the pin spans (deprecated: set the duration within the pin object)
|
|
177
177
|
* @property {string} [parentCommentId] For replies - the parent comment ID
|
|
178
178
|
* @property {object} [metadata] For web proofs - additional metadata relating to the comment snapshot. It is recommended that you do not provide metadata through the SDK currently, as the format for the metadata is not documented (and is subject to change).
|
|
179
|
-
* @property {
|
|
179
|
+
* @property {{custom: any}} [sourceMetadata] Additional metadata about the source of the comment
|
|
180
180
|
* @property {string} [state] For comments (not replies) - The state of the comment (currently only supports to-dos)
|
|
181
181
|
* @property {string} [creationToken] Only required if you're retrying (token can be extracted from the error object which is resolved (rejected, in this case) from the Promise)
|
|
182
182
|
*/
|
|
@@ -278,9 +278,11 @@ declare class Comments extends API {
|
|
|
278
278
|
*/
|
|
279
279
|
metadata?: any;
|
|
280
280
|
/**
|
|
281
|
-
*
|
|
281
|
+
* Additional metadata about the source of the comment
|
|
282
282
|
*/
|
|
283
|
-
sourceMetadata?:
|
|
283
|
+
sourceMetadata?: {
|
|
284
|
+
custom: any;
|
|
285
|
+
};
|
|
284
286
|
/**
|
|
285
287
|
* For comments (not replies) - The state of the comment (currently only supports to-dos)
|
|
286
288
|
*/
|
package/lib/models/Comment.d.ts
CHANGED
|
@@ -118,7 +118,7 @@ declare class Comment {
|
|
|
118
118
|
*/
|
|
119
119
|
parentCommentId: string | null;
|
|
120
120
|
/**
|
|
121
|
-
* The
|
|
121
|
+
* The web proof metadata.
|
|
122
122
|
*
|
|
123
123
|
* For HTML proofs - this object contains various information about the comment in relation to the HTML document.
|
|
124
124
|
* We don't recommend you make use of this object until we provide a simple way to access the data without having to
|
|
@@ -128,13 +128,13 @@ declare class Comment {
|
|
|
128
128
|
*/
|
|
129
129
|
metadata: object;
|
|
130
130
|
/**
|
|
131
|
-
*
|
|
131
|
+
* Metadata about the source of the comment.
|
|
132
132
|
*
|
|
133
|
-
*
|
|
133
|
+
* This data is immutable after comment creation.
|
|
134
134
|
*
|
|
135
|
-
* @type {
|
|
135
|
+
* @type {SourceMetadata}
|
|
136
136
|
*/
|
|
137
|
-
sourceMetadata:
|
|
137
|
+
sourceMetadata: SourceMetadata;
|
|
138
138
|
/**
|
|
139
139
|
* What kind of comment it is.
|
|
140
140
|
*
|