docspring 3.1.0 → 3.3.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/AGENTS.md +33 -0
- package/README.md +148 -215
- package/dist/ApiClient.js +3 -3
- package/dist/api/Client.js +9 -8
- package/dist/index.js +7 -0
- package/dist/model/AddFieldsData.js +2 -2
- package/dist/model/BatchGeneratePdfs201Response.js +17 -7
- package/dist/model/CombinePdfsData.js +3 -3
- package/dist/model/CombinedSubmission.js +13 -23
- package/dist/model/CombinedSubmissionAction.js +4 -2
- package/dist/model/CopyTemplateOptions.js +2 -2
- package/dist/model/CreateCombinedSubmissionResponse.js +28 -6
- package/dist/model/CreateCustomFileData.js +2 -2
- package/dist/model/CreateCustomFileResponse.js +15 -6
- package/dist/model/CreateFolderData.js +2 -2
- package/dist/model/CreateHtmlTemplate.js +2 -2
- package/dist/model/CreatePdfSubmissionData.js +3 -2
- package/dist/model/CreatePdfTemplate.js +2 -2
- package/dist/model/CreateSubmissionDataRequestData.js +2 -2
- package/dist/model/CreateSubmissionDataRequestEventRequest.js +2 -2
- package/dist/model/CreateSubmissionDataRequestEventResponse.js +15 -6
- package/dist/model/CreateSubmissionDataRequestResponse.js +15 -6
- package/dist/model/CreateSubmissionDataRequestTokenResponse.js +15 -6
- package/dist/model/CreateSubmissionResponse.js +28 -6
- package/dist/model/CreateWebhookData.js +2 -2
- package/dist/model/CustomFile.js +4 -2
- package/dist/model/ErrorOrMultipleErrorsResponse.js +4 -2
- package/dist/model/ErrorResponse.js +4 -2
- package/dist/model/Folder.js +4 -2
- package/dist/model/ForbiddenErrorResponse.js +173 -0
- package/dist/model/JsonSchema.js +2 -2
- package/dist/model/ListSubmissionsResponse.js +7 -22
- package/dist/model/MoveFolderData.js +2 -2
- package/dist/model/MoveTemplateData.js +2 -2
- package/dist/model/MultipleErrorsResponse.js +4 -2
- package/dist/model/PublishVersionData.js +2 -2
- package/dist/model/RenameFolderData.js +2 -2
- package/dist/model/RestoreVersionData.js +2 -2
- package/dist/model/Submission.js +15 -42
- package/dist/model/Submission422Response.js +4 -7
- package/dist/model/SubmissionAction.js +4 -2
- package/dist/model/SubmissionBatch.js +4 -2
- package/dist/model/SubmissionBatchData.js +3 -2
- package/dist/model/SubmissionBatchWithSubmissions.js +7 -22
- package/dist/model/SubmissionDataRequest.js +4 -2
- package/dist/model/SubmissionDataRequestEvent.js +4 -2
- package/dist/model/SubmissionDataRequestShow.js +4 -2
- package/dist/model/SubmissionDataRequestToken.js +4 -2
- package/dist/model/SubmissionPreview.js +15 -42
- package/dist/model/SuccessErrorResponse.js +4 -2
- package/dist/model/SuccessMultipleErrorsResponse.js +4 -2
- package/dist/model/Template.js +18 -6
- package/dist/model/TemplateAddFieldsResponse.js +4 -2
- package/dist/model/TemplateDeleteResponse.js +4 -2
- package/dist/model/TemplateModelCodeResponse.js +4 -2
- package/dist/model/TemplatePreview.js +18 -6
- package/dist/model/TemplatePublishVersionResponse.js +4 -2
- package/dist/model/UpdateHtmlTemplate.js +2 -2
- package/dist/model/UpdatePdfTemplate.js +2 -2
- package/dist/model/UpdateSubmissionDataRequestData.js +2 -2
- package/dist/model/UpdateWebhookData.js +2 -2
- package/dist/model/UploadPresignResponse.js +4 -2
- package/dist/model/Webhook.js +4 -2
- package/package.json +13 -3
|
@@ -18,7 +18,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
18
18
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
19
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
20
20
|
* DocSpring API
|
|
21
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
21
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
22
22
|
*
|
|
23
23
|
* The version of the OpenAPI document: v1
|
|
24
24
|
*
|
|
@@ -31,12 +31,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
31
31
|
/**
|
|
32
32
|
* The SubmissionPreview model module.
|
|
33
33
|
* @module model/SubmissionPreview
|
|
34
|
-
* @version 3.
|
|
34
|
+
* @version 3.3.0
|
|
35
35
|
*/
|
|
36
36
|
var SubmissionPreview = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
38
38
|
* Constructs a new <code>SubmissionPreview</code>.
|
|
39
39
|
* @alias module:model/SubmissionPreview
|
|
40
|
+
* @extends Object
|
|
40
41
|
* @param batch_id {String}
|
|
41
42
|
* @param data_requests {Array.<module:model/SubmissionDataRequest>}
|
|
42
43
|
* @param editable {Boolean}
|
|
@@ -113,6 +114,7 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
113
114
|
value: function constructFromObject(data, obj) {
|
|
114
115
|
if (data) {
|
|
115
116
|
obj = obj || new SubmissionPreview();
|
|
117
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
116
118
|
if (data.hasOwnProperty('batch_id')) {
|
|
117
119
|
obj['batch_id'] = _ApiClient["default"].convertToType(data['batch_id'], 'String');
|
|
118
120
|
}
|
|
@@ -216,26 +218,9 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
216
218
|
if (data['batch_id'] && !(typeof data['batch_id'] === 'string' || data['batch_id'] instanceof String)) {
|
|
217
219
|
throw new Error("Expected the field `batch_id` to be a primitive type in the JSON string but got " + data['batch_id']);
|
|
218
220
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
if (!Array.isArray(data['data_requests'])) {
|
|
223
|
-
throw new Error("Expected the field `data_requests` to be an array in the JSON data but got " + data['data_requests']);
|
|
224
|
-
}
|
|
225
|
-
// validate the optional field `data_requests` (array)
|
|
226
|
-
var _iterator2 = _createForOfIteratorHelper(data['data_requests']),
|
|
227
|
-
_step2;
|
|
228
|
-
try {
|
|
229
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
230
|
-
var item = _step2.value;
|
|
231
|
-
_SubmissionDataRequest["default"].validateJSON(item);
|
|
232
|
-
}
|
|
233
|
-
} catch (err) {
|
|
234
|
-
_iterator2.e(err);
|
|
235
|
-
} finally {
|
|
236
|
-
_iterator2.f();
|
|
237
|
-
}
|
|
238
|
-
;
|
|
221
|
+
// ensure the json data is an array
|
|
222
|
+
if (!Array.isArray(data['data_requests'])) {
|
|
223
|
+
throw new Error("Expected the field `data_requests` to be an array in the JSON data but got " + data['data_requests']);
|
|
239
224
|
}
|
|
240
225
|
// ensure the json data is a string
|
|
241
226
|
if (data['error_message'] && !(typeof data['error_message'] === 'string' || data['error_message'] instanceof String)) {
|
|
@@ -301,26 +286,9 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
301
286
|
if (data['audit_trail_download_url'] && !(typeof data['audit_trail_download_url'] === 'string' || data['audit_trail_download_url'] instanceof String)) {
|
|
302
287
|
throw new Error("Expected the field `audit_trail_download_url` to be a primitive type in the JSON string but got " + data['audit_trail_download_url']);
|
|
303
288
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
if (!Array.isArray(data['actions'])) {
|
|
308
|
-
throw new Error("Expected the field `actions` to be an array in the JSON data but got " + data['actions']);
|
|
309
|
-
}
|
|
310
|
-
// validate the optional field `actions` (array)
|
|
311
|
-
var _iterator3 = _createForOfIteratorHelper(data['actions']),
|
|
312
|
-
_step3;
|
|
313
|
-
try {
|
|
314
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
315
|
-
var _item = _step3.value;
|
|
316
|
-
_SubmissionAction["default"].validateJSON(_item);
|
|
317
|
-
}
|
|
318
|
-
} catch (err) {
|
|
319
|
-
_iterator3.e(err);
|
|
320
|
-
} finally {
|
|
321
|
-
_iterator3.f();
|
|
322
|
-
}
|
|
323
|
-
;
|
|
289
|
+
// ensure the json data is an array
|
|
290
|
+
if (!Array.isArray(data['actions'])) {
|
|
291
|
+
throw new Error("Expected the field `actions` to be an array in the JSON data but got " + data['actions']);
|
|
324
292
|
}
|
|
325
293
|
return true;
|
|
326
294
|
}
|
|
@@ -494,6 +462,11 @@ SubmissionPreview['StateEnum'] = {
|
|
|
494
462
|
* @const
|
|
495
463
|
*/
|
|
496
464
|
"syntax_error": "syntax_error",
|
|
465
|
+
/**
|
|
466
|
+
* value: "insufficient_credits"
|
|
467
|
+
* @const
|
|
468
|
+
*/
|
|
469
|
+
"insufficient_credits": "insufficient_credits",
|
|
497
470
|
/**
|
|
498
471
|
* value: "account_suspended"
|
|
499
472
|
* @const
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The SuccessErrorResponse model module.
|
|
31
31
|
* @module model/SuccessErrorResponse
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var SuccessErrorResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SuccessErrorResponse</code>.
|
|
37
37
|
* @alias module:model/SuccessErrorResponse
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param status {module:model/SuccessErrorResponse.StatusEnum}
|
|
39
40
|
*/
|
|
40
41
|
function SuccessErrorResponse(status) {
|
|
@@ -65,6 +66,7 @@ var SuccessErrorResponse = /*#__PURE__*/function () {
|
|
|
65
66
|
value: function constructFromObject(data, obj) {
|
|
66
67
|
if (data) {
|
|
67
68
|
obj = obj || new SuccessErrorResponse();
|
|
69
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
68
70
|
if (data.hasOwnProperty('status')) {
|
|
69
71
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
70
72
|
}
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The SuccessMultipleErrorsResponse model module.
|
|
31
31
|
* @module model/SuccessMultipleErrorsResponse
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var SuccessMultipleErrorsResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SuccessMultipleErrorsResponse</code>.
|
|
37
37
|
* @alias module:model/SuccessMultipleErrorsResponse
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param status {module:model/SuccessMultipleErrorsResponse.StatusEnum}
|
|
39
40
|
*/
|
|
40
41
|
function SuccessMultipleErrorsResponse(status) {
|
|
@@ -65,6 +66,7 @@ var SuccessMultipleErrorsResponse = /*#__PURE__*/function () {
|
|
|
65
66
|
value: function constructFromObject(data, obj) {
|
|
66
67
|
if (data) {
|
|
67
68
|
obj = obj || new SuccessMultipleErrorsResponse();
|
|
69
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
68
70
|
if (data.hasOwnProperty('status')) {
|
|
69
71
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
70
72
|
}
|
package/dist/model/Template.js
CHANGED
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The Template model module.
|
|
31
31
|
* @module model/Template
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var Template = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>Template</code>.
|
|
37
37
|
* @alias module:model/Template
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param add_data_request_submission_id_footers {Boolean}
|
|
39
40
|
* @param allow_additional_properties {Boolean}
|
|
40
41
|
* @param description {String}
|
|
@@ -64,6 +65,7 @@ var Template = /*#__PURE__*/function () {
|
|
|
64
65
|
* @param page_count {Number}
|
|
65
66
|
* @param page_dimensions {Array.<Array.<Number>>}
|
|
66
67
|
* @param parent_folder_id {String}
|
|
68
|
+
* @param parse_dates_using_template_date_format {Boolean}
|
|
67
69
|
* @param path {String}
|
|
68
70
|
* @param permanent_document_url {String}
|
|
69
71
|
* @param public_submissions {Boolean}
|
|
@@ -97,9 +99,9 @@ var Template = /*#__PURE__*/function () {
|
|
|
97
99
|
* @param template_schema_version {Number}
|
|
98
100
|
* @param versions {Array.<Object>}
|
|
99
101
|
*/
|
|
100
|
-
function Template(add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id, defaults, field_dependencies, field_order, fields, footer_html, header_html, html_engine_options, html, predefined_fields, scss, shared_field_data, template_schema_version, versions) {
|
|
102
|
+
function Template(add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, parse_dates_using_template_date_format, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id, defaults, field_dependencies, field_order, fields, footer_html, header_html, html_engine_options, html, predefined_fields, scss, shared_field_data, template_schema_version, versions) {
|
|
101
103
|
_classCallCheck(this, Template);
|
|
102
|
-
Template.initialize(this, add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id, defaults, field_dependencies, field_order, fields, footer_html, header_html, html_engine_options, html, predefined_fields, scss, shared_field_data, template_schema_version, versions);
|
|
104
|
+
Template.initialize(this, add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, parse_dates_using_template_date_format, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id, defaults, field_dependencies, field_order, fields, footer_html, header_html, html_engine_options, html, predefined_fields, scss, shared_field_data, template_schema_version, versions);
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
/**
|
|
@@ -109,7 +111,7 @@ var Template = /*#__PURE__*/function () {
|
|
|
109
111
|
*/
|
|
110
112
|
return _createClass(Template, null, [{
|
|
111
113
|
key: "initialize",
|
|
112
|
-
value: function initialize(obj, add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id, defaults, field_dependencies, field_order, fields, footer_html, header_html, html_engine_options, html, predefined_fields, scss, shared_field_data, template_schema_version, versions) {
|
|
114
|
+
value: function initialize(obj, add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, parse_dates_using_template_date_format, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id, defaults, field_dependencies, field_order, fields, footer_html, header_html, html_engine_options, html, predefined_fields, scss, shared_field_data, template_schema_version, versions) {
|
|
113
115
|
obj['add_data_request_submission_id_footers'] = add_data_request_submission_id_footers;
|
|
114
116
|
obj['allow_additional_properties'] = allow_additional_properties;
|
|
115
117
|
obj['description'] = description;
|
|
@@ -139,6 +141,7 @@ var Template = /*#__PURE__*/function () {
|
|
|
139
141
|
obj['page_count'] = page_count;
|
|
140
142
|
obj['page_dimensions'] = page_dimensions;
|
|
141
143
|
obj['parent_folder_id'] = parent_folder_id;
|
|
144
|
+
obj['parse_dates_using_template_date_format'] = parse_dates_using_template_date_format;
|
|
142
145
|
obj['path'] = path;
|
|
143
146
|
obj['permanent_document_url'] = permanent_document_url;
|
|
144
147
|
obj['public_submissions'] = public_submissions;
|
|
@@ -185,6 +188,7 @@ var Template = /*#__PURE__*/function () {
|
|
|
185
188
|
value: function constructFromObject(data, obj) {
|
|
186
189
|
if (data) {
|
|
187
190
|
obj = obj || new Template();
|
|
191
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
188
192
|
if (data.hasOwnProperty('add_data_request_submission_id_footers')) {
|
|
189
193
|
obj['add_data_request_submission_id_footers'] = _ApiClient["default"].convertToType(data['add_data_request_submission_id_footers'], 'Boolean');
|
|
190
194
|
}
|
|
@@ -272,6 +276,9 @@ var Template = /*#__PURE__*/function () {
|
|
|
272
276
|
if (data.hasOwnProperty('parent_folder_id')) {
|
|
273
277
|
obj['parent_folder_id'] = _ApiClient["default"].convertToType(data['parent_folder_id'], 'String');
|
|
274
278
|
}
|
|
279
|
+
if (data.hasOwnProperty('parse_dates_using_template_date_format')) {
|
|
280
|
+
obj['parse_dates_using_template_date_format'] = _ApiClient["default"].convertToType(data['parse_dates_using_template_date_format'], 'Boolean');
|
|
281
|
+
}
|
|
275
282
|
if (data.hasOwnProperty('path')) {
|
|
276
283
|
obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String');
|
|
277
284
|
}
|
|
@@ -558,7 +565,7 @@ var Template = /*#__PURE__*/function () {
|
|
|
558
565
|
}
|
|
559
566
|
}]);
|
|
560
567
|
}();
|
|
561
|
-
Template.RequiredProperties = ["add_data_request_submission_id_footers", "allow_additional_properties", "description", "document_filename", "document_md5", "document_parse_error", "document_processed", "document_state", "document_url", "editable_submissions", "embed_domains", "embed_edit_allow_settings", "embed_edit_allow_versioning", "embed_edit_allow_document_replacement", "encrypt_pdfs_password", "encrypt_pdfs", "expiration_interval", "expire_after", "expire_submissions", "external_predefined_fields_template_id", "external_predefined_fields_template_name", "first_template", "id", "locked", "merge_audit_trail_pdf", "name", "page_count", "page_dimensions", "parent_folder_id", "path", "permanent_document_url", "public_submissions", "public_web_form", "redirect_url", "slack_webhook_url", "template_type", "updated_at", "version_published_at", "version", "webhook_url", "demo", "latest_version", "last_changed_at", "last_changed_by_type", "last_changed_by_id", "last_changed_by_external_name", "last_changed_by_external_email", "last_changed_by_external_id", "defaults", "field_dependencies", "field_order", "fields", "footer_html", "header_html", "html_engine_options", "html", "predefined_fields", "scss", "shared_field_data", "template_schema_version", "versions"];
|
|
568
|
+
Template.RequiredProperties = ["add_data_request_submission_id_footers", "allow_additional_properties", "description", "document_filename", "document_md5", "document_parse_error", "document_processed", "document_state", "document_url", "editable_submissions", "embed_domains", "embed_edit_allow_settings", "embed_edit_allow_versioning", "embed_edit_allow_document_replacement", "encrypt_pdfs_password", "encrypt_pdfs", "expiration_interval", "expire_after", "expire_submissions", "external_predefined_fields_template_id", "external_predefined_fields_template_name", "first_template", "id", "locked", "merge_audit_trail_pdf", "name", "page_count", "page_dimensions", "parent_folder_id", "parse_dates_using_template_date_format", "path", "permanent_document_url", "public_submissions", "public_web_form", "redirect_url", "slack_webhook_url", "template_type", "updated_at", "version_published_at", "version", "webhook_url", "demo", "latest_version", "last_changed_at", "last_changed_by_type", "last_changed_by_id", "last_changed_by_external_name", "last_changed_by_external_email", "last_changed_by_external_id", "defaults", "field_dependencies", "field_order", "fields", "footer_html", "header_html", "html_engine_options", "html", "predefined_fields", "scss", "shared_field_data", "template_schema_version", "versions"];
|
|
562
569
|
|
|
563
570
|
/**
|
|
564
571
|
* @member {Boolean} add_data_request_submission_id_footers
|
|
@@ -705,6 +712,11 @@ Template.prototype['page_dimensions'] = undefined;
|
|
|
705
712
|
*/
|
|
706
713
|
Template.prototype['parent_folder_id'] = undefined;
|
|
707
714
|
|
|
715
|
+
/**
|
|
716
|
+
* @member {Boolean} parse_dates_using_template_date_format
|
|
717
|
+
*/
|
|
718
|
+
Template.prototype['parse_dates_using_template_date_format'] = undefined;
|
|
719
|
+
|
|
708
720
|
/**
|
|
709
721
|
* @member {String} path
|
|
710
722
|
*/
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The TemplateAddFieldsResponse model module.
|
|
31
31
|
* @module model/TemplateAddFieldsResponse
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var TemplateAddFieldsResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>TemplateAddFieldsResponse</code>.
|
|
37
37
|
* @alias module:model/TemplateAddFieldsResponse
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param status {module:model/TemplateAddFieldsResponse.StatusEnum}
|
|
39
40
|
*/
|
|
40
41
|
function TemplateAddFieldsResponse(status) {
|
|
@@ -65,6 +66,7 @@ var TemplateAddFieldsResponse = /*#__PURE__*/function () {
|
|
|
65
66
|
value: function constructFromObject(data, obj) {
|
|
66
67
|
if (data) {
|
|
67
68
|
obj = obj || new TemplateAddFieldsResponse();
|
|
69
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
68
70
|
if (data.hasOwnProperty('status')) {
|
|
69
71
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
70
72
|
}
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The TemplateDeleteResponse model module.
|
|
31
31
|
* @module model/TemplateDeleteResponse
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var TemplateDeleteResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>TemplateDeleteResponse</code>.
|
|
37
37
|
* @alias module:model/TemplateDeleteResponse
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param status {module:model/TemplateDeleteResponse.StatusEnum}
|
|
39
40
|
*/
|
|
40
41
|
function TemplateDeleteResponse(status) {
|
|
@@ -65,6 +66,7 @@ var TemplateDeleteResponse = /*#__PURE__*/function () {
|
|
|
65
66
|
value: function constructFromObject(data, obj) {
|
|
66
67
|
if (data) {
|
|
67
68
|
obj = obj || new TemplateDeleteResponse();
|
|
69
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
68
70
|
if (data.hasOwnProperty('status')) {
|
|
69
71
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
70
72
|
}
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The TemplateModelCodeResponse model module.
|
|
31
31
|
* @module model/TemplateModelCodeResponse
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var TemplateModelCodeResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>TemplateModelCodeResponse</code>.
|
|
37
37
|
* @alias module:model/TemplateModelCodeResponse
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param lang {module:model/TemplateModelCodeResponse.LangEnum}
|
|
39
40
|
* @param root_type_name {String}
|
|
40
41
|
* @param code {String}
|
|
@@ -69,6 +70,7 @@ var TemplateModelCodeResponse = /*#__PURE__*/function () {
|
|
|
69
70
|
value: function constructFromObject(data, obj) {
|
|
70
71
|
if (data) {
|
|
71
72
|
obj = obj || new TemplateModelCodeResponse();
|
|
73
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
72
74
|
if (data.hasOwnProperty('lang')) {
|
|
73
75
|
obj['lang'] = _ApiClient["default"].convertToType(data['lang'], 'String');
|
|
74
76
|
}
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The TemplatePreview model module.
|
|
31
31
|
* @module model/TemplatePreview
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var TemplatePreview = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>TemplatePreview</code>.
|
|
37
37
|
* @alias module:model/TemplatePreview
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param add_data_request_submission_id_footers {Boolean}
|
|
39
40
|
* @param allow_additional_properties {Boolean}
|
|
40
41
|
* @param description {String}
|
|
@@ -64,6 +65,7 @@ var TemplatePreview = /*#__PURE__*/function () {
|
|
|
64
65
|
* @param page_count {Number}
|
|
65
66
|
* @param page_dimensions {Array.<Array.<Number>>}
|
|
66
67
|
* @param parent_folder_id {String}
|
|
68
|
+
* @param parse_dates_using_template_date_format {Boolean}
|
|
67
69
|
* @param path {String}
|
|
68
70
|
* @param permanent_document_url {String}
|
|
69
71
|
* @param public_submissions {Boolean}
|
|
@@ -84,9 +86,9 @@ var TemplatePreview = /*#__PURE__*/function () {
|
|
|
84
86
|
* @param last_changed_by_external_email {String}
|
|
85
87
|
* @param last_changed_by_external_id {String}
|
|
86
88
|
*/
|
|
87
|
-
function TemplatePreview(add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id) {
|
|
89
|
+
function TemplatePreview(add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, parse_dates_using_template_date_format, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id) {
|
|
88
90
|
_classCallCheck(this, TemplatePreview);
|
|
89
|
-
TemplatePreview.initialize(this, add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id);
|
|
91
|
+
TemplatePreview.initialize(this, add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, parse_dates_using_template_date_format, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id);
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
/**
|
|
@@ -96,7 +98,7 @@ var TemplatePreview = /*#__PURE__*/function () {
|
|
|
96
98
|
*/
|
|
97
99
|
return _createClass(TemplatePreview, null, [{
|
|
98
100
|
key: "initialize",
|
|
99
|
-
value: function initialize(obj, add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id) {
|
|
101
|
+
value: function initialize(obj, add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, parse_dates_using_template_date_format, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id) {
|
|
100
102
|
obj['add_data_request_submission_id_footers'] = add_data_request_submission_id_footers;
|
|
101
103
|
obj['allow_additional_properties'] = allow_additional_properties;
|
|
102
104
|
obj['description'] = description;
|
|
@@ -126,6 +128,7 @@ var TemplatePreview = /*#__PURE__*/function () {
|
|
|
126
128
|
obj['page_count'] = page_count;
|
|
127
129
|
obj['page_dimensions'] = page_dimensions;
|
|
128
130
|
obj['parent_folder_id'] = parent_folder_id;
|
|
131
|
+
obj['parse_dates_using_template_date_format'] = parse_dates_using_template_date_format;
|
|
129
132
|
obj['path'] = path;
|
|
130
133
|
obj['permanent_document_url'] = permanent_document_url;
|
|
131
134
|
obj['public_submissions'] = public_submissions;
|
|
@@ -159,6 +162,7 @@ var TemplatePreview = /*#__PURE__*/function () {
|
|
|
159
162
|
value: function constructFromObject(data, obj) {
|
|
160
163
|
if (data) {
|
|
161
164
|
obj = obj || new TemplatePreview();
|
|
165
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
162
166
|
if (data.hasOwnProperty('add_data_request_submission_id_footers')) {
|
|
163
167
|
obj['add_data_request_submission_id_footers'] = _ApiClient["default"].convertToType(data['add_data_request_submission_id_footers'], 'Boolean');
|
|
164
168
|
}
|
|
@@ -246,6 +250,9 @@ var TemplatePreview = /*#__PURE__*/function () {
|
|
|
246
250
|
if (data.hasOwnProperty('parent_folder_id')) {
|
|
247
251
|
obj['parent_folder_id'] = _ApiClient["default"].convertToType(data['parent_folder_id'], 'String');
|
|
248
252
|
}
|
|
253
|
+
if (data.hasOwnProperty('parse_dates_using_template_date_format')) {
|
|
254
|
+
obj['parse_dates_using_template_date_format'] = _ApiClient["default"].convertToType(data['parse_dates_using_template_date_format'], 'Boolean');
|
|
255
|
+
}
|
|
249
256
|
if (data.hasOwnProperty('path')) {
|
|
250
257
|
obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String');
|
|
251
258
|
}
|
|
@@ -461,7 +468,7 @@ var TemplatePreview = /*#__PURE__*/function () {
|
|
|
461
468
|
}
|
|
462
469
|
}]);
|
|
463
470
|
}();
|
|
464
|
-
TemplatePreview.RequiredProperties = ["add_data_request_submission_id_footers", "allow_additional_properties", "description", "document_filename", "document_md5", "document_parse_error", "document_processed", "document_state", "document_url", "editable_submissions", "embed_domains", "embed_edit_allow_settings", "embed_edit_allow_versioning", "embed_edit_allow_document_replacement", "encrypt_pdfs_password", "encrypt_pdfs", "expiration_interval", "expire_after", "expire_submissions", "external_predefined_fields_template_id", "external_predefined_fields_template_name", "first_template", "id", "locked", "merge_audit_trail_pdf", "name", "page_count", "page_dimensions", "parent_folder_id", "path", "permanent_document_url", "public_submissions", "public_web_form", "redirect_url", "slack_webhook_url", "template_type", "updated_at", "version_published_at", "version", "webhook_url", "demo", "latest_version", "last_changed_at", "last_changed_by_type", "last_changed_by_id", "last_changed_by_external_name", "last_changed_by_external_email", "last_changed_by_external_id"];
|
|
471
|
+
TemplatePreview.RequiredProperties = ["add_data_request_submission_id_footers", "allow_additional_properties", "description", "document_filename", "document_md5", "document_parse_error", "document_processed", "document_state", "document_url", "editable_submissions", "embed_domains", "embed_edit_allow_settings", "embed_edit_allow_versioning", "embed_edit_allow_document_replacement", "encrypt_pdfs_password", "encrypt_pdfs", "expiration_interval", "expire_after", "expire_submissions", "external_predefined_fields_template_id", "external_predefined_fields_template_name", "first_template", "id", "locked", "merge_audit_trail_pdf", "name", "page_count", "page_dimensions", "parent_folder_id", "parse_dates_using_template_date_format", "path", "permanent_document_url", "public_submissions", "public_web_form", "redirect_url", "slack_webhook_url", "template_type", "updated_at", "version_published_at", "version", "webhook_url", "demo", "latest_version", "last_changed_at", "last_changed_by_type", "last_changed_by_id", "last_changed_by_external_name", "last_changed_by_external_email", "last_changed_by_external_id"];
|
|
465
472
|
|
|
466
473
|
/**
|
|
467
474
|
* @member {Boolean} add_data_request_submission_id_footers
|
|
@@ -608,6 +615,11 @@ TemplatePreview.prototype['page_dimensions'] = undefined;
|
|
|
608
615
|
*/
|
|
609
616
|
TemplatePreview.prototype['parent_folder_id'] = undefined;
|
|
610
617
|
|
|
618
|
+
/**
|
|
619
|
+
* @member {Boolean} parse_dates_using_template_date_format
|
|
620
|
+
*/
|
|
621
|
+
TemplatePreview.prototype['parse_dates_using_template_date_format'] = undefined;
|
|
622
|
+
|
|
611
623
|
/**
|
|
612
624
|
* @member {String} path
|
|
613
625
|
*/
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The TemplatePublishVersionResponse model module.
|
|
31
31
|
* @module model/TemplatePublishVersionResponse
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var TemplatePublishVersionResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>TemplatePublishVersionResponse</code>.
|
|
37
37
|
* @alias module:model/TemplatePublishVersionResponse
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param status {module:model/TemplatePublishVersionResponse.StatusEnum}
|
|
39
40
|
* @param result {Object}
|
|
40
41
|
*/
|
|
@@ -67,6 +68,7 @@ var TemplatePublishVersionResponse = /*#__PURE__*/function () {
|
|
|
67
68
|
value: function constructFromObject(data, obj) {
|
|
68
69
|
if (data) {
|
|
69
70
|
obj = obj || new TemplatePublishVersionResponse();
|
|
71
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
70
72
|
if (data.hasOwnProperty('status')) {
|
|
71
73
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
72
74
|
}
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The UpdateHtmlTemplate model module.
|
|
31
31
|
* @module model/UpdateHtmlTemplate
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var UpdateHtmlTemplate = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The UpdatePdfTemplate model module.
|
|
31
31
|
* @module model/UpdatePdfTemplate
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var UpdatePdfTemplate = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
15
15
|
* DocSpring API
|
|
16
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
16
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: v1
|
|
19
19
|
*
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
26
26
|
/**
|
|
27
27
|
* The UpdateSubmissionDataRequestData model module.
|
|
28
28
|
* @module model/UpdateSubmissionDataRequestData
|
|
29
|
-
* @version 3.
|
|
29
|
+
* @version 3.3.0
|
|
30
30
|
*/
|
|
31
31
|
var UpdateSubmissionDataRequestData = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
19
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures. Requests are rate limited per account, and live PDFs use credits: a request over the limit returns 429 with a Retry-After header, and one your credits can't cover returns 402. See [Credits & Rate Limits](https://docspring.com/docs/api-guide/credits-and-rate-limits/).
|
|
20
20
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The UpdateWebhookData model module.
|
|
31
31
|
* @module model/UpdateWebhookData
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.3.0
|
|
33
33
|
*/
|
|
34
34
|
var UpdateWebhookData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|