@verdocs/js-sdk 6.2.4 → 6.2.6

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/dist/index.d.mts CHANGED
@@ -508,6 +508,10 @@ interface IEnvelope {
508
508
  organization_id: string;
509
509
  /** Name of the envelope. By defaut, inherited from the envelope's template, but may be overridden when the envelope is created. */
510
510
  name: string;
511
+ /** Override the sender "name" in places like the Certificate. */
512
+ sender_name: string;
513
+ /** Override the sender "email address" in places like the Certificate. */
514
+ sender_email: string;
511
515
  /** If set to true, no email or SMS messages will be sent to any of the envelope's recipients. */
512
516
  no_contact?: boolean;
513
517
  /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
@@ -526,7 +530,6 @@ interface IEnvelope {
526
530
  expires_at?: string;
527
531
  /** Defaults to 'private'. If set to 'shared', this envelope will be visible to other users in the same organization. Ignored for personal profiles. */
528
532
  visibility: "private" | "shared";
529
- search_key?: string | null;
530
533
  /**
531
534
  * Storage for arbitrary data that may be used e.g. to track source database/record IDs to relate Envelopes back to
532
535
  * internal systems/applications.
@@ -1737,10 +1740,18 @@ declare const getEnvelopeFile: (endpoint: VerdocsEndpoint, documentId: string) =
1737
1740
  * @group Envelopes
1738
1741
  * @api PATCH /v2/envelopes/:id Update Envelope
1739
1742
  * @apiParam string(format: 'uuid') id The ID of the envelope to update.
1740
- * @apiBody IEnvelope . Set of fields to update. Omit (leave undefined) any fields that should not be changed.
1743
+ * @apiBody string name? New name for the envelope
1744
+ * @apiBody string sender_name? New Sender Name for the envelope
1745
+ * @apiBody string sender_email? New Sender Email for the envelope
1746
+ * @apiBody integer(min: 0) initial_reminder? Change the initial-reminder setting (in ms).
1747
+ * @apiBody integer(min: 0) followup_reminders? Change the followup-reminder setting (in ms).
1748
+ * @apiBody string expires_at? If set, the envelope will automatically expire (be canceled) at this date and time. Expirations must be at least 1 day in the future.
1749
+ * @apiBody string(enum:'private'|'shared') visibility? Change the envelope's visibility setting
1750
+ * @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
1751
+ * @apiBody object data? Update the developer-supplied metadata attached to the envelope.
1741
1752
  * @apiSuccess IEnvelope . A copy of the newly-updated envelope.
1742
1753
  */
1743
- declare const updateEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string, params: Pick<IEnvelope, "initial_reminder" | "followup_reminders">) => Promise<IEnvelope>;
1754
+ declare const updateEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string, params: Pick<IEnvelope, "name" | "sender_name" | "sender_email" | "initial_reminder" | "followup_reminders" | "expires_at" | "visibility" | "no_contact" | "data">) => Promise<IEnvelope>;
1744
1755
  /**
1745
1756
  * Update an Envelope field. Typically called during the signing process as a Recipient fills in fields.
1746
1757
  *
package/dist/index.d.ts CHANGED
@@ -508,6 +508,10 @@ interface IEnvelope {
508
508
  organization_id: string;
509
509
  /** Name of the envelope. By defaut, inherited from the envelope's template, but may be overridden when the envelope is created. */
510
510
  name: string;
511
+ /** Override the sender "name" in places like the Certificate. */
512
+ sender_name: string;
513
+ /** Override the sender "email address" in places like the Certificate. */
514
+ sender_email: string;
511
515
  /** If set to true, no email or SMS messages will be sent to any of the envelope's recipients. */
512
516
  no_contact?: boolean;
513
517
  /** Delay (in seconds) before the first reminder is sent (min: 4hrs). Set to 0 or null to disable. */
@@ -526,7 +530,6 @@ interface IEnvelope {
526
530
  expires_at?: string;
527
531
  /** Defaults to 'private'. If set to 'shared', this envelope will be visible to other users in the same organization. Ignored for personal profiles. */
528
532
  visibility: "private" | "shared";
529
- search_key?: string | null;
530
533
  /**
531
534
  * Storage for arbitrary data that may be used e.g. to track source database/record IDs to relate Envelopes back to
532
535
  * internal systems/applications.
@@ -1737,10 +1740,18 @@ declare const getEnvelopeFile: (endpoint: VerdocsEndpoint, documentId: string) =
1737
1740
  * @group Envelopes
1738
1741
  * @api PATCH /v2/envelopes/:id Update Envelope
1739
1742
  * @apiParam string(format: 'uuid') id The ID of the envelope to update.
1740
- * @apiBody IEnvelope . Set of fields to update. Omit (leave undefined) any fields that should not be changed.
1743
+ * @apiBody string name? New name for the envelope
1744
+ * @apiBody string sender_name? New Sender Name for the envelope
1745
+ * @apiBody string sender_email? New Sender Email for the envelope
1746
+ * @apiBody integer(min: 0) initial_reminder? Change the initial-reminder setting (in ms).
1747
+ * @apiBody integer(min: 0) followup_reminders? Change the followup-reminder setting (in ms).
1748
+ * @apiBody string expires_at? If set, the envelope will automatically expire (be canceled) at this date and time. Expirations must be at least 1 day in the future.
1749
+ * @apiBody string(enum:'private'|'shared') visibility? Change the envelope's visibility setting
1750
+ * @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
1751
+ * @apiBody object data? Update the developer-supplied metadata attached to the envelope.
1741
1752
  * @apiSuccess IEnvelope . A copy of the newly-updated envelope.
1742
1753
  */
1743
- declare const updateEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string, params: Pick<IEnvelope, "initial_reminder" | "followup_reminders">) => Promise<IEnvelope>;
1754
+ declare const updateEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string, params: Pick<IEnvelope, "name" | "sender_name" | "sender_email" | "initial_reminder" | "followup_reminders" | "expires_at" | "visibility" | "no_contact" | "data">) => Promise<IEnvelope>;
1744
1755
  /**
1745
1756
  * Update an Envelope field. Typically called during the signing process as a Recipient fills in fields.
1746
1757
  *
package/dist/index.js CHANGED
@@ -1678,7 +1678,15 @@ const getEnvelopeFile = async (endpoint, documentId) => endpoint.api //
1678
1678
  * @group Envelopes
1679
1679
  * @api PATCH /v2/envelopes/:id Update Envelope
1680
1680
  * @apiParam string(format: 'uuid') id The ID of the envelope to update.
1681
- * @apiBody IEnvelope . Set of fields to update. Omit (leave undefined) any fields that should not be changed.
1681
+ * @apiBody string name? New name for the envelope
1682
+ * @apiBody string sender_name? New Sender Name for the envelope
1683
+ * @apiBody string sender_email? New Sender Email for the envelope
1684
+ * @apiBody integer(min: 0) initial_reminder? Change the initial-reminder setting (in ms).
1685
+ * @apiBody integer(min: 0) followup_reminders? Change the followup-reminder setting (in ms).
1686
+ * @apiBody string expires_at? If set, the envelope will automatically expire (be canceled) at this date and time. Expirations must be at least 1 day in the future.
1687
+ * @apiBody string(enum:'private'|'shared') visibility? Change the envelope's visibility setting
1688
+ * @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
1689
+ * @apiBody object data? Update the developer-supplied metadata attached to the envelope.
1682
1690
  * @apiSuccess IEnvelope . A copy of the newly-updated envelope.
1683
1691
  */
1684
1692
  const updateEnvelope = async (endpoint, envelopeId, params) => endpoint.api //