@pageproof/sdk-pr 438.0.1652074275110 → 438.0.1652216598652
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/Proofs.d.ts +28 -1
- package/lib/pageproof.js +1 -1
- package/package.json +1 -1
package/lib/api/Proofs.d.ts
CHANGED
|
@@ -478,6 +478,7 @@ declare class Proofs extends API {
|
|
|
478
478
|
*
|
|
479
479
|
* Currently supported fields which can be updated are:
|
|
480
480
|
* * Due date
|
|
481
|
+
* * Email sender
|
|
481
482
|
*
|
|
482
483
|
* @example <caption>Update due date of a proof</caption>
|
|
483
484
|
* await client.proofs.update(
|
|
@@ -498,8 +499,34 @@ declare class Proofs extends API {
|
|
|
498
499
|
* },
|
|
499
500
|
* ]);
|
|
500
501
|
*
|
|
502
|
+
* @example <caption>Update email sender of a proof (by email)</caption>
|
|
503
|
+
* await client.proofs.update(
|
|
504
|
+
* {
|
|
505
|
+
* id: 'PXJHGJHJVHGHHGHJH',
|
|
506
|
+
* emailSenderUser: { email: 'newSender@example.com' },
|
|
507
|
+
* });
|
|
508
|
+
*
|
|
509
|
+
* @example <caption>Update email sender of a proof (by id)</caption>
|
|
510
|
+
* await client.proofs.update(
|
|
511
|
+
* {
|
|
512
|
+
* id: 'PXJHGJHJVHGHHGHJH',
|
|
513
|
+
* emailSenderUser: { id: 'ULVRHSLLP69ACHCT' },
|
|
514
|
+
* });
|
|
515
|
+
*
|
|
516
|
+
* @example <caption>Update email sender of proofs</caption>
|
|
517
|
+
* await client.proofs.update([
|
|
518
|
+
* {
|
|
519
|
+
* id: 'PXJHGJHJVHGHHGHJH',
|
|
520
|
+
* emailSenderUser: { email: 'newSenderEmail@example.com' },
|
|
521
|
+
* },
|
|
522
|
+
* {
|
|
523
|
+
* id: 'PXJHGJHJVHGHHGHJP',
|
|
524
|
+
* emailSenderUser: { id: 'ULVRHSLLP69ACHCT' },
|
|
525
|
+
* },
|
|
526
|
+
* ]);
|
|
527
|
+
*
|
|
501
528
|
* @since v2.0.0-beta.127
|
|
502
|
-
* @param {ProofForUpdateDefinition|Array<ProofForUpdateDefinition>} proofOrProofs The proof or list of proofs to update due date
|
|
529
|
+
* @param {ProofForUpdateDefinition|Array<ProofForUpdateDefinition>} proofOrProofs The proof or list of proofs to update due date and email sender
|
|
503
530
|
* @returns {Promise}
|
|
504
531
|
*/
|
|
505
532
|
update(proofOrProofs: ProofForUpdateDefinition | ProofForUpdateDefinition[]): Promise<any>;
|