@verdocs/js-sdk 4.2.54 → 4.2.65

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
@@ -402,7 +402,7 @@ interface IInPersonAccessKey {
402
402
  id: string;
403
403
  type: "in_person_link";
404
404
  authentication?: string | null;
405
- recipient_name: string;
405
+ role_name: string;
406
406
  envelope_id: string;
407
407
  key: string;
408
408
  expiration_date: string | null;
@@ -915,12 +915,12 @@ type TEventDetail = "in_app" | "mail" | "signer" | "sms" | "reminder" | "prepare
915
915
  // Modification events have a string description
916
916
  type TEnvelopeUpdateResult = Omit<IEnvelope, "histories" | "recipients" | "certificate" | "document" | "fields" | "profile">;
917
917
  type TFieldType = "signature" | "initial" | "checkbox" | "radio" | "textbox" | "timestamp" | "date" | "dropdown" | "textarea" | "attachment" | "payment";
918
- type TWebhookEvent = "envelope_created" | "envelope_completed" | "envelope_canceled" | "template_created" | "template_updated" | "template_deleted" | "template_used";
918
+ type TWebhookEvent = "envelope_created" | "envelope_completed" | "envelope_canceled" | "envelope_updated" | "template_created" | "template_updated" | "template_deleted" | "template_used";
919
919
  declare const FIELD_TYPES: TFieldType[];
920
920
  declare const DEFAULT_FIELD_WIDTHS: Record<TFieldType, number>;
921
921
  declare const DEFAULT_FIELD_HEIGHTS: Record<TFieldType, number>;
922
922
  declare const WEBHOOK_EVENTS: string[];
923
- type TEnvironment = "verdocs" | "verdocs-stage";
923
+ type TEnvironment = "" | "beta";
924
924
  type TSessionChangedListener = (endpoint: VerdocsEndpoint, session: TSession, profile: IProfile | null) => void;
925
925
  interface VerdocsEndpointOptions {
926
926
  baseURL?: string;
@@ -1199,12 +1199,7 @@ interface ICreateEnvelopeRecipient {
1199
1199
  }
1200
1200
  interface IInPersonLinkResponse {
1201
1201
  link: string;
1202
- envelope_id: string;
1203
- profile_id: string;
1204
- role_name: string;
1205
- access_key: string;
1206
- expiration_date: string;
1207
- type: TAccessKey;
1202
+ access_key: TAccessKey;
1208
1203
  }
1209
1204
  interface IUpdateRecipientSubmitParams {
1210
1205
  action: "submit";
package/dist/index.d.ts CHANGED
@@ -402,7 +402,7 @@ interface IInPersonAccessKey {
402
402
  id: string;
403
403
  type: "in_person_link";
404
404
  authentication?: string | null;
405
- recipient_name: string;
405
+ role_name: string;
406
406
  envelope_id: string;
407
407
  key: string;
408
408
  expiration_date: string | null;
@@ -915,12 +915,12 @@ type TEventDetail = "in_app" | "mail" | "signer" | "sms" | "reminder" | "prepare
915
915
  // Modification events have a string description
916
916
  type TEnvelopeUpdateResult = Omit<IEnvelope, "histories" | "recipients" | "certificate" | "document" | "fields" | "profile">;
917
917
  type TFieldType = "signature" | "initial" | "checkbox" | "radio" | "textbox" | "timestamp" | "date" | "dropdown" | "textarea" | "attachment" | "payment";
918
- type TWebhookEvent = "envelope_created" | "envelope_completed" | "envelope_canceled" | "template_created" | "template_updated" | "template_deleted" | "template_used";
918
+ type TWebhookEvent = "envelope_created" | "envelope_completed" | "envelope_canceled" | "envelope_updated" | "template_created" | "template_updated" | "template_deleted" | "template_used";
919
919
  declare const FIELD_TYPES: TFieldType[];
920
920
  declare const DEFAULT_FIELD_WIDTHS: Record<TFieldType, number>;
921
921
  declare const DEFAULT_FIELD_HEIGHTS: Record<TFieldType, number>;
922
922
  declare const WEBHOOK_EVENTS: string[];
923
- type TEnvironment = "verdocs" | "verdocs-stage";
923
+ type TEnvironment = "" | "beta";
924
924
  type TSessionChangedListener = (endpoint: VerdocsEndpoint, session: TSession, profile: IProfile | null) => void;
925
925
  interface VerdocsEndpointOptions {
926
926
  baseURL?: string;
@@ -1199,12 +1199,7 @@ interface ICreateEnvelopeRecipient {
1199
1199
  }
1200
1200
  interface IInPersonLinkResponse {
1201
1201
  link: string;
1202
- envelope_id: string;
1203
- profile_id: string;
1204
- role_name: string;
1205
- access_key: string;
1206
- expiration_date: string;
1207
- type: TAccessKey;
1202
+ access_key: TAccessKey;
1208
1203
  }
1209
1204
  interface IUpdateRecipientSubmitParams {
1210
1205
  action: "submit";
package/dist/index.js CHANGED
@@ -1620,19 +1620,19 @@ const getSignerToken = (endpoint, envelope_id, role_name) => endpoint.api //
1620
1620
  * Get an in-person signing link.
1621
1621
  */
1622
1622
  const getInPersonLink = (endpoint, envelopeId, roleName) => endpoint.api //
1623
- .get(`/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}?in_person_link=true`)
1623
+ .put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'get_links' })
1624
1624
  .then((r) => r.data);
1625
1625
  /**
1626
1626
  * Send a delegation request.
1627
1627
  */
1628
1628
  const sendDelegate = (endpoint, envelopeId, roleName) => endpoint.api //
1629
- .post(`/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}/delegate`)
1629
+ .post(`/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`)
1630
1630
  .then((r) => r.data);
1631
1631
  /**
1632
1632
  * Resend a recipient's invitation.
1633
1633
  */
1634
1634
  const resendInvitation = (endpoint, envelopeId, roleName) => endpoint.api //
1635
- .post(`/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}/resend_invitation`)
1635
+ .put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'resend' })
1636
1636
  .then((r) => r.data);
1637
1637
 
1638
1638
  /**