@verdocs/js-sdk 6.2.0-beta.5 → 6.2.0-beta.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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -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
|
@@ -161,8 +161,6 @@ interface ISigningSession {
|
|
|
161
161
|
// @deprecated
|
|
162
162
|
["https://verdocs.com/session_type"]: "signing";
|
|
163
163
|
// @deprecated
|
|
164
|
-
["https://verdocs.com/key_type"]: TAccessKeyType;
|
|
165
|
-
// @deprecated
|
|
166
164
|
["https://verdocs.com/envelope_id"]: string;
|
|
167
165
|
// @deprecated
|
|
168
166
|
["https://verdocs.com/role_name"]: string;
|
|
@@ -1814,6 +1812,7 @@ declare const getEnvelopes: (endpoint: VerdocsEndpoint, params?: IListEnvelopesP
|
|
|
1814
1812
|
*/
|
|
1815
1813
|
declare const getEnvelopesZip: (endpoint: VerdocsEndpoint, envelope_ids: string[]) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
1816
1814
|
declare const isFieldFilled: (field: IEnvelopeField, allRecipientFields: IEnvelopeField[]) => boolean | "" | null;
|
|
1815
|
+
// TODO: Only allow !required to bypass validation if the field is empty.
|
|
1817
1816
|
declare const isFieldValid: (field: IEnvelopeField, allRecipientFields: IEnvelopeField[]) => boolean | "" | null;
|
|
1818
1817
|
/**
|
|
1819
1818
|
* Create an initials block. In a typical signing workflow, the user is asked at the beginning of the process to
|
|
@@ -3533,6 +3532,7 @@ declare const toggleTemplateStar: (endpoint: VerdocsEndpoint, templateId: string
|
|
|
3533
3532
|
* @group Template Documents
|
|
3534
3533
|
* @api POST /v2/templates/:template_id/documents Attach a document to a template
|
|
3535
3534
|
* @apiBody string(format:binary) file Document file to attach. The file name will automatically be used as the document name.
|
|
3535
|
+
* @apiBody string(format:uuid) template_id Template ID to attach the document to
|
|
3536
3536
|
* @apiSuccess ITemplateDocument . Template document
|
|
3537
3537
|
*/
|
|
3538
3538
|
declare const createTemplateDocument: (endpoint: VerdocsEndpoint, template_id: string, file: File, onUploadProgress?: (percent: number, loadedBytes: number, totalBytes: number) => void) => Promise<ITemplateDocument>;
|
package/dist/index.d.ts
CHANGED
|
@@ -161,8 +161,6 @@ interface ISigningSession {
|
|
|
161
161
|
// @deprecated
|
|
162
162
|
["https://verdocs.com/session_type"]: "signing";
|
|
163
163
|
// @deprecated
|
|
164
|
-
["https://verdocs.com/key_type"]: TAccessKeyType;
|
|
165
|
-
// @deprecated
|
|
166
164
|
["https://verdocs.com/envelope_id"]: string;
|
|
167
165
|
// @deprecated
|
|
168
166
|
["https://verdocs.com/role_name"]: string;
|
|
@@ -1814,6 +1812,7 @@ declare const getEnvelopes: (endpoint: VerdocsEndpoint, params?: IListEnvelopesP
|
|
|
1814
1812
|
*/
|
|
1815
1813
|
declare const getEnvelopesZip: (endpoint: VerdocsEndpoint, envelope_ids: string[]) => Promise<import("axios").AxiosResponse<any, any, {}>>;
|
|
1816
1814
|
declare const isFieldFilled: (field: IEnvelopeField, allRecipientFields: IEnvelopeField[]) => boolean | "" | null;
|
|
1815
|
+
// TODO: Only allow !required to bypass validation if the field is empty.
|
|
1817
1816
|
declare const isFieldValid: (field: IEnvelopeField, allRecipientFields: IEnvelopeField[]) => boolean | "" | null;
|
|
1818
1817
|
/**
|
|
1819
1818
|
* Create an initials block. In a typical signing workflow, the user is asked at the beginning of the process to
|
|
@@ -3533,6 +3532,7 @@ declare const toggleTemplateStar: (endpoint: VerdocsEndpoint, templateId: string
|
|
|
3533
3532
|
* @group Template Documents
|
|
3534
3533
|
* @api POST /v2/templates/:template_id/documents Attach a document to a template
|
|
3535
3534
|
* @apiBody string(format:binary) file Document file to attach. The file name will automatically be used as the document name.
|
|
3535
|
+
* @apiBody string(format:uuid) template_id Template ID to attach the document to
|
|
3536
3536
|
* @apiSuccess ITemplateDocument . Template document
|
|
3537
3537
|
*/
|
|
3538
3538
|
declare const createTemplateDocument: (endpoint: VerdocsEndpoint, template_id: string, file: File, onUploadProgress?: (percent: number, loadedBytes: number, totalBytes: number) => void) => Promise<ITemplateDocument>;
|
package/dist/index.js
CHANGED
|
@@ -2446,11 +2446,12 @@ const toggleTemplateStar = (endpoint, templateId) => endpoint.api //
|
|
|
2446
2446
|
* @group Template Documents
|
|
2447
2447
|
* @api POST /v2/templates/:template_id/documents Attach a document to a template
|
|
2448
2448
|
* @apiBody string(format:binary) file Document file to attach. The file name will automatically be used as the document name.
|
|
2449
|
+
* @apiBody string(format:uuid) template_id Template ID to attach the document to
|
|
2449
2450
|
* @apiSuccess ITemplateDocument . Template document
|
|
2450
2451
|
*/
|
|
2451
2452
|
const createTemplateDocument = (endpoint, template_id, file, onUploadProgress) => {
|
|
2452
2453
|
const formData = new FormData();
|
|
2453
|
-
formData.append('
|
|
2454
|
+
formData.append('file', file, file.name);
|
|
2454
2455
|
formData.append('template_id', template_id);
|
|
2455
2456
|
return endpoint.api //
|
|
2456
2457
|
.post(`/v2/template-documents`, formData, {
|
|
@@ -2610,6 +2611,7 @@ const isFieldFilled = (field, allRecipientFields) => {
|
|
|
2610
2611
|
return false;
|
|
2611
2612
|
}
|
|
2612
2613
|
};
|
|
2614
|
+
// TODO: Only allow !required to bypass validation if the field is empty.
|
|
2613
2615
|
const isFieldValid = (field, allRecipientFields) => {
|
|
2614
2616
|
return !field.required || isFieldFilled(field, allRecipientFields);
|
|
2615
2617
|
};
|