@verdocs/js-sdk 4.2.45 → 4.2.47
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 +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -510,7 +510,7 @@ interface IEnvelopeField {
|
|
|
510
510
|
/** The machine name of the field, e.g. `Buyer-textbox-1` */
|
|
511
511
|
name: string;
|
|
512
512
|
/** The ID of the role in the recipients list, e.g. `Recipient 2` */
|
|
513
|
-
|
|
513
|
+
role_name: string;
|
|
514
514
|
/** The type of the field */
|
|
515
515
|
type: TFieldType;
|
|
516
516
|
/** If true, the field will be required */
|
|
@@ -544,8 +544,6 @@ interface IEnvelopeField {
|
|
|
544
544
|
options: IDropdownOption[] | null;
|
|
545
545
|
value: string | null;
|
|
546
546
|
is_valid: boolean;
|
|
547
|
-
envelope?: IEnvelope;
|
|
548
|
-
document?: IEnvelopeDocument;
|
|
549
547
|
}
|
|
550
548
|
interface IEnvelopeFieldOptions {
|
|
551
549
|
/** The unique ID of the field */
|
|
@@ -869,6 +867,8 @@ interface ITemplateField {
|
|
|
869
867
|
group: string | null;
|
|
870
868
|
/** For dropdowns, the options that are selectable. */
|
|
871
869
|
options: IDropdownOption[] | null;
|
|
870
|
+
value?: string | null;
|
|
871
|
+
is_valid?: boolean;
|
|
872
872
|
}
|
|
873
873
|
interface ITextFieldSetting {
|
|
874
874
|
x: number;
|
|
@@ -1239,7 +1239,7 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1239
1239
|
recipients: ICreateEnvelopeRecipient[];
|
|
1240
1240
|
name: string;
|
|
1241
1241
|
description?: string;
|
|
1242
|
-
fields?: Pick<IEnvelopeField, "name" | "
|
|
1242
|
+
fields?: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
|
|
1243
1243
|
environment?: string;
|
|
1244
1244
|
no_contact?: boolean;
|
|
1245
1245
|
}
|
|
@@ -1249,7 +1249,7 @@ interface ICreateEnvelopeDirectlyRequest {
|
|
|
1249
1249
|
visiblity?: "private" | "shared";
|
|
1250
1250
|
recipients: ICreateEnvelopeRecipient[];
|
|
1251
1251
|
documents: IEnvelopeDocument[];
|
|
1252
|
-
fields: Pick<IEnvelopeField, "name" | "
|
|
1252
|
+
fields: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
|
|
1253
1253
|
environment?: string;
|
|
1254
1254
|
no_contact?: boolean;
|
|
1255
1255
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -510,7 +510,7 @@ interface IEnvelopeField {
|
|
|
510
510
|
/** The machine name of the field, e.g. `Buyer-textbox-1` */
|
|
511
511
|
name: string;
|
|
512
512
|
/** The ID of the role in the recipients list, e.g. `Recipient 2` */
|
|
513
|
-
|
|
513
|
+
role_name: string;
|
|
514
514
|
/** The type of the field */
|
|
515
515
|
type: TFieldType;
|
|
516
516
|
/** If true, the field will be required */
|
|
@@ -544,8 +544,6 @@ interface IEnvelopeField {
|
|
|
544
544
|
options: IDropdownOption[] | null;
|
|
545
545
|
value: string | null;
|
|
546
546
|
is_valid: boolean;
|
|
547
|
-
envelope?: IEnvelope;
|
|
548
|
-
document?: IEnvelopeDocument;
|
|
549
547
|
}
|
|
550
548
|
interface IEnvelopeFieldOptions {
|
|
551
549
|
/** The unique ID of the field */
|
|
@@ -869,6 +867,8 @@ interface ITemplateField {
|
|
|
869
867
|
group: string | null;
|
|
870
868
|
/** For dropdowns, the options that are selectable. */
|
|
871
869
|
options: IDropdownOption[] | null;
|
|
870
|
+
value?: string | null;
|
|
871
|
+
is_valid?: boolean;
|
|
872
872
|
}
|
|
873
873
|
interface ITextFieldSetting {
|
|
874
874
|
x: number;
|
|
@@ -1239,7 +1239,7 @@ interface ICreateEnvelopeFromTemplateRequest {
|
|
|
1239
1239
|
recipients: ICreateEnvelopeRecipient[];
|
|
1240
1240
|
name: string;
|
|
1241
1241
|
description?: string;
|
|
1242
|
-
fields?: Pick<IEnvelopeField, "name" | "
|
|
1242
|
+
fields?: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
|
|
1243
1243
|
environment?: string;
|
|
1244
1244
|
no_contact?: boolean;
|
|
1245
1245
|
}
|
|
@@ -1249,7 +1249,7 @@ interface ICreateEnvelopeDirectlyRequest {
|
|
|
1249
1249
|
visiblity?: "private" | "shared";
|
|
1250
1250
|
recipients: ICreateEnvelopeRecipient[];
|
|
1251
1251
|
documents: IEnvelopeDocument[];
|
|
1252
|
-
fields: Pick<IEnvelopeField, "name" | "
|
|
1252
|
+
fields: Pick<IEnvelopeField, "name" | "role_name" | "default">[];
|
|
1253
1253
|
environment?: string;
|
|
1254
1254
|
no_contact?: boolean;
|
|
1255
1255
|
}
|
package/dist/index.js
CHANGED
|
@@ -2475,7 +2475,7 @@ const createTemplateRole = (endpoint, template_id, params) => endpoint.api //
|
|
|
2475
2475
|
* ```
|
|
2476
2476
|
*/
|
|
2477
2477
|
const updateTemplateRole = (endpoint, template_id, name, params) => endpoint.api //
|
|
2478
|
-
.
|
|
2478
|
+
.patch(`/v2/roles/${template_id}/${encodeURIComponent(name)}`, params)
|
|
2479
2479
|
.then((r) => r.data);
|
|
2480
2480
|
/**
|
|
2481
2481
|
* Delete a role.
|