@verdocs/js-sdk 5.3.5 → 5.4.0

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
@@ -1974,9 +1974,9 @@ declare const envelopeRecipientDecline: (endpoint: VerdocsEndpoint, envelopeId:
1974
1974
  */
1975
1975
  declare const envelopeRecipientChangeOwner: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string, email: string, first_name: string, last_name: string) => Promise<IRecipient>;
1976
1976
  /**
1977
- * Agree to electronic signing.
1977
+ * Agree to electronic signing disclosures.
1978
1978
  */
1979
- declare const envelopeRecipientAgree: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, agreed: boolean, disclosures?: string) => Promise<IRecipient>;
1979
+ declare const envelopeRecipientAgree: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, disclosures?: string) => Promise<IRecipient>;
1980
1980
  /**
1981
1981
  * Change a recipient's name.
1982
1982
  */
package/dist/index.d.ts CHANGED
@@ -1974,9 +1974,9 @@ declare const envelopeRecipientDecline: (endpoint: VerdocsEndpoint, envelopeId:
1974
1974
  */
1975
1975
  declare const envelopeRecipientChangeOwner: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string, email: string, first_name: string, last_name: string) => Promise<IRecipient>;
1976
1976
  /**
1977
- * Agree to electronic signing.
1977
+ * Agree to electronic signing disclosures.
1978
1978
  */
1979
- declare const envelopeRecipientAgree: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, agreed: boolean, disclosures?: string) => Promise<IRecipient>;
1979
+ declare const envelopeRecipientAgree: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, disclosures?: string) => Promise<IRecipient>;
1980
1980
  /**
1981
1981
  * Change a recipient's name.
1982
1982
  */
package/dist/index.js CHANGED
@@ -1883,9 +1883,11 @@ const envelopeRecipientDecline = (endpoint, envelopeId, roleName) => updateRecip
1883
1883
  */
1884
1884
  const envelopeRecipientChangeOwner = (endpoint, envelope_id, role_name, email, first_name, last_name) => updateRecipientStatus(endpoint, envelope_id, role_name, { action: 'owner_update', email, first_name, last_name });
1885
1885
  /**
1886
- * Agree to electronic signing.
1886
+ * Agree to electronic signing disclosures.
1887
1887
  */
1888
- const envelopeRecipientAgree = (endpoint, envelopeId, roleName, agreed, disclosures) => updateRecipientStatus(endpoint, envelopeId, roleName, { action: 'update', agreed, disclosures });
1888
+ const envelopeRecipientAgree = (endpoint, envelopeId, roleName, disclosures) => endpoint.api //
1889
+ .put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'accept', disclosures })
1890
+ .then((r) => r.data);
1889
1891
  /**
1890
1892
  * Change a recipient's name.
1891
1893
  */