@verdocs/js-sdk 5.1.6 → 5.1.8

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.mjs CHANGED
@@ -1571,15 +1571,17 @@ class VerdocsEndpoint {
1571
1571
  * ```
1572
1572
  *
1573
1573
  * @group Envelopes
1574
- * @api POST /v2/envelopes Create Envelope From Template
1575
- * @apiBody string(format:uuid) template_id The ID of the template to copy
1574
+ * @api POST /v2/envelopes Create Envelope
1575
+ * @apiBody string(format:uuid) template_id If using a template, the ID of the template to copy
1576
1576
  * @apiBody array(items:ICreateEnvelopeRecipient) recipients A list of recipients to include in the workflow. Must specify one recipient to match each template Role.
1577
+ * @apiBody array(items:IEnvelopeDocument) documents? If not using a template, a list of documents to include in the envelope.
1578
+ * @apiBody array(items:IEnvelopeField) fields? If not using a template, a list of fields to include in the envelope.
1577
1579
  * @apiBody string name? Override the name of the envelope (defaults to the template name).
1578
1580
  * @apiBody string description? Override the description of the envelope (defaults to the template description).
1579
- * @apiBody array(items:IEnvelopeField) fields? Provide default values for fields in the envelope. Note that only "name", "role_name", and "default" should be set in this array.
1580
1581
  * @apiBody boolean no_contact? If set to true, no email or SMS messages will be sent to any recipients.
1581
1582
  * @apiBody integer(min: 0) initial_reminder? Override the template initial-reminder setting.
1582
1583
  * @apiBody integer(min: 0) followup_reminders? Override the template initial-reminder setting.
1584
+ * @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.
1583
1585
  * @apiSuccess IEnvelope . The newly-created envelope.
1584
1586
  */
1585
1587
  const createEnvelope = async (endpoint, request) => endpoint.api //