docspring 3.0.0 → 3.2.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 -205
- package/dist/ApiClient.js +3 -3
- package/dist/api/Client.js +249 -8
- package/dist/index.js +28 -0
- package/dist/model/AddFieldsData.js +2 -2
- package/dist/model/BatchGeneratePdfs201Response.js +4 -7
- package/dist/model/CombinePdfsData.js +4 -2
- package/dist/model/CombinedSubmission.js +7 -22
- package/dist/model/CombinedSubmissionAction.js +22 -6
- package/dist/model/CopyTemplateOptions.js +18 -29
- package/dist/model/CreateCombinedSubmissionResponse.js +4 -7
- package/dist/model/CreateCustomFileData.js +2 -2
- package/dist/model/CreateCustomFileResponse.js +4 -7
- package/dist/model/CreateFolderData.js +2 -2
- package/dist/model/CreateHtmlTemplate.js +2 -2
- package/dist/model/CreatePdfSubmissionData.js +2 -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 +4 -7
- package/dist/model/CreateSubmissionDataRequestResponse.js +4 -7
- package/dist/model/CreateSubmissionDataRequestTokenResponse.js +4 -7
- package/dist/model/CreateSubmissionResponse.js +4 -7
- package/dist/model/CreateWebhookData.js +108 -0
- 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/JsonSchema.js +34 -2
- package/dist/model/ListSubmissionsResponse.js +7 -22
- package/dist/model/MoveFolderData.js +2 -2
- package/dist/model/MoveTemplateData.js +14 -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 +34 -53
- package/dist/model/Submission422Response.js +4 -7
- package/dist/model/SubmissionAction.js +22 -6
- package/dist/model/SubmissionBatch.js +4 -2
- package/dist/model/SubmissionBatchData.js +2 -2
- package/dist/model/SubmissionBatchWithSubmissions.js +7 -22
- package/dist/model/SubmissionDataRequest.js +28 -7
- package/dist/model/SubmissionDataRequestEvent.js +4 -2
- package/dist/model/SubmissionDataRequestShow.js +28 -7
- package/dist/model/SubmissionDataRequestToken.js +4 -2
- package/dist/model/SubmissionPreview.js +34 -47
- package/dist/model/SuccessErrorResponse.js +4 -2
- package/dist/model/SuccessMultipleErrorsResponse.js +4 -2
- package/dist/model/Template.js +132 -7
- package/dist/model/TemplateAddFieldsResponse.js +4 -2
- package/dist/model/TemplateDeleteResponse.js +4 -2
- package/dist/model/TemplateModelCodeResponse.js +195 -0
- package/dist/model/TemplatePreview.js +108 -7
- 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 +108 -0
- package/dist/model/UploadPresignResponse.js +4 -2
- package/dist/model/Webhook.js +380 -0
- package/package.json +14 -4
package/dist/model/Submission.js
CHANGED
|
@@ -16,7 +16,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
16
16
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
17
17
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
18
18
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
-
function _toPrimitive(t,
|
|
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
21
|
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
22
22
|
*
|
|
@@ -31,15 +31,17 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
/**
|
|
32
32
|
* The Submission model module.
|
|
33
33
|
* @module model/Submission
|
|
34
|
-
* @version 3.
|
|
34
|
+
* @version 3.2.0
|
|
35
35
|
*/
|
|
36
36
|
var Submission = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
38
38
|
* Constructs a new <code>Submission</code>.
|
|
39
39
|
* @alias module:model/Submission
|
|
40
|
+
* @extends Object
|
|
40
41
|
* @param batch_id {String}
|
|
41
42
|
* @param data_requests {Array.<module:model/SubmissionDataRequest>}
|
|
42
43
|
* @param editable {Boolean}
|
|
44
|
+
* @param error_message {String}
|
|
43
45
|
* @param expired {Boolean}
|
|
44
46
|
* @param expires_at {String}
|
|
45
47
|
* @param id {String}
|
|
@@ -60,13 +62,10 @@ var Submission = /*#__PURE__*/function () {
|
|
|
60
62
|
* @param preview_generated_at {String}
|
|
61
63
|
* @param audit_trail_download_url {String}
|
|
62
64
|
* @param actions {Array.<module:model/SubmissionAction>}
|
|
63
|
-
* @param source {module:model/Submission.SourceEnum}
|
|
64
|
-
* @param referrer {String}
|
|
65
|
-
* @param data {Object}
|
|
66
65
|
*/
|
|
67
|
-
function Submission(batch_id, data_requests, editable, expired, expires_at, id, json_schema_errors, metadata, password, processed_at, state, template_id, template_type, template_version, test, truncated_text, pdf_hash, download_url, permanent_download_url, preview_download_url, preview_generated_at, audit_trail_download_url, actions
|
|
66
|
+
function Submission(batch_id, data_requests, editable, error_message, expired, expires_at, id, json_schema_errors, metadata, password, processed_at, state, template_id, template_type, template_version, test, truncated_text, pdf_hash, download_url, permanent_download_url, preview_download_url, preview_generated_at, audit_trail_download_url, actions) {
|
|
68
67
|
_classCallCheck(this, Submission);
|
|
69
|
-
Submission.initialize(this, batch_id, data_requests, editable, expired, expires_at, id, json_schema_errors, metadata, password, processed_at, state, template_id, template_type, template_version, test, truncated_text, pdf_hash, download_url, permanent_download_url, preview_download_url, preview_generated_at, audit_trail_download_url, actions
|
|
68
|
+
Submission.initialize(this, batch_id, data_requests, editable, error_message, expired, expires_at, id, json_schema_errors, metadata, password, processed_at, state, template_id, template_type, template_version, test, truncated_text, pdf_hash, download_url, permanent_download_url, preview_download_url, preview_generated_at, audit_trail_download_url, actions);
|
|
70
69
|
}
|
|
71
70
|
|
|
72
71
|
/**
|
|
@@ -76,10 +75,11 @@ var Submission = /*#__PURE__*/function () {
|
|
|
76
75
|
*/
|
|
77
76
|
return _createClass(Submission, null, [{
|
|
78
77
|
key: "initialize",
|
|
79
|
-
value: function initialize(obj, batch_id, data_requests, editable, expired, expires_at, id, json_schema_errors, metadata, password, processed_at, state, template_id, template_type, template_version, test, truncated_text, pdf_hash, download_url, permanent_download_url, preview_download_url, preview_generated_at, audit_trail_download_url, actions
|
|
78
|
+
value: function initialize(obj, batch_id, data_requests, editable, error_message, expired, expires_at, id, json_schema_errors, metadata, password, processed_at, state, template_id, template_type, template_version, test, truncated_text, pdf_hash, download_url, permanent_download_url, preview_download_url, preview_generated_at, audit_trail_download_url, actions) {
|
|
80
79
|
obj['batch_id'] = batch_id;
|
|
81
80
|
obj['data_requests'] = data_requests;
|
|
82
81
|
obj['editable'] = editable;
|
|
82
|
+
obj['error_message'] = error_message;
|
|
83
83
|
obj['expired'] = expired;
|
|
84
84
|
obj['expires_at'] = expires_at;
|
|
85
85
|
obj['id'] = id;
|
|
@@ -100,9 +100,6 @@ var Submission = /*#__PURE__*/function () {
|
|
|
100
100
|
obj['preview_generated_at'] = preview_generated_at;
|
|
101
101
|
obj['audit_trail_download_url'] = audit_trail_download_url;
|
|
102
102
|
obj['actions'] = actions;
|
|
103
|
-
obj['source'] = source;
|
|
104
|
-
obj['referrer'] = referrer;
|
|
105
|
-
obj['data'] = data;
|
|
106
103
|
}
|
|
107
104
|
|
|
108
105
|
/**
|
|
@@ -117,6 +114,7 @@ var Submission = /*#__PURE__*/function () {
|
|
|
117
114
|
value: function constructFromObject(data, obj) {
|
|
118
115
|
if (data) {
|
|
119
116
|
obj = obj || new Submission();
|
|
117
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
120
118
|
if (data.hasOwnProperty('batch_id')) {
|
|
121
119
|
obj['batch_id'] = _ApiClient["default"].convertToType(data['batch_id'], 'String');
|
|
122
120
|
}
|
|
@@ -126,6 +124,9 @@ var Submission = /*#__PURE__*/function () {
|
|
|
126
124
|
if (data.hasOwnProperty('editable')) {
|
|
127
125
|
obj['editable'] = _ApiClient["default"].convertToType(data['editable'], 'Boolean');
|
|
128
126
|
}
|
|
127
|
+
if (data.hasOwnProperty('error_message')) {
|
|
128
|
+
obj['error_message'] = _ApiClient["default"].convertToType(data['error_message'], 'String');
|
|
129
|
+
}
|
|
129
130
|
if (data.hasOwnProperty('expired')) {
|
|
130
131
|
obj['expired'] = _ApiClient["default"].convertToType(data['expired'], 'Boolean');
|
|
131
132
|
}
|
|
@@ -226,26 +227,13 @@ var Submission = /*#__PURE__*/function () {
|
|
|
226
227
|
if (data['batch_id'] && !(typeof data['batch_id'] === 'string' || data['batch_id'] instanceof String)) {
|
|
227
228
|
throw new Error("Expected the field `batch_id` to be a primitive type in the JSON string but got " + data['batch_id']);
|
|
228
229
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
var _iterator2 = _createForOfIteratorHelper(data['data_requests']),
|
|
237
|
-
_step2;
|
|
238
|
-
try {
|
|
239
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
240
|
-
var item = _step2.value;
|
|
241
|
-
_SubmissionDataRequest["default"].validateJSON(item);
|
|
242
|
-
}
|
|
243
|
-
} catch (err) {
|
|
244
|
-
_iterator2.e(err);
|
|
245
|
-
} finally {
|
|
246
|
-
_iterator2.f();
|
|
247
|
-
}
|
|
248
|
-
;
|
|
230
|
+
// ensure the json data is an array
|
|
231
|
+
if (!Array.isArray(data['data_requests'])) {
|
|
232
|
+
throw new Error("Expected the field `data_requests` to be an array in the JSON data but got " + data['data_requests']);
|
|
233
|
+
}
|
|
234
|
+
// ensure the json data is a string
|
|
235
|
+
if (data['error_message'] && !(typeof data['error_message'] === 'string' || data['error_message'] instanceof String)) {
|
|
236
|
+
throw new Error("Expected the field `error_message` to be a primitive type in the JSON string but got " + data['error_message']);
|
|
249
237
|
}
|
|
250
238
|
// ensure the json data is a string
|
|
251
239
|
if (data['expires_at'] && !(typeof data['expires_at'] === 'string' || data['expires_at'] instanceof String)) {
|
|
@@ -307,26 +295,9 @@ var Submission = /*#__PURE__*/function () {
|
|
|
307
295
|
if (data['audit_trail_download_url'] && !(typeof data['audit_trail_download_url'] === 'string' || data['audit_trail_download_url'] instanceof String)) {
|
|
308
296
|
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']);
|
|
309
297
|
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
if (!Array.isArray(data['actions'])) {
|
|
314
|
-
throw new Error("Expected the field `actions` to be an array in the JSON data but got " + data['actions']);
|
|
315
|
-
}
|
|
316
|
-
// validate the optional field `actions` (array)
|
|
317
|
-
var _iterator3 = _createForOfIteratorHelper(data['actions']),
|
|
318
|
-
_step3;
|
|
319
|
-
try {
|
|
320
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
321
|
-
var _item = _step3.value;
|
|
322
|
-
_SubmissionAction["default"].validateJSON(_item);
|
|
323
|
-
}
|
|
324
|
-
} catch (err) {
|
|
325
|
-
_iterator3.e(err);
|
|
326
|
-
} finally {
|
|
327
|
-
_iterator3.f();
|
|
328
|
-
}
|
|
329
|
-
;
|
|
298
|
+
// ensure the json data is an array
|
|
299
|
+
if (!Array.isArray(data['actions'])) {
|
|
300
|
+
throw new Error("Expected the field `actions` to be an array in the JSON data but got " + data['actions']);
|
|
330
301
|
}
|
|
331
302
|
// ensure the json data is a string
|
|
332
303
|
if (data['source'] && !(typeof data['source'] === 'string' || data['source'] instanceof String)) {
|
|
@@ -340,7 +311,7 @@ var Submission = /*#__PURE__*/function () {
|
|
|
340
311
|
}
|
|
341
312
|
}]);
|
|
342
313
|
}();
|
|
343
|
-
Submission.RequiredProperties = ["batch_id", "data_requests", "editable", "expired", "expires_at", "id", "json_schema_errors", "metadata", "password", "processed_at", "state", "template_id", "template_type", "template_version", "test", "truncated_text", "pdf_hash", "download_url", "permanent_download_url", "preview_download_url", "preview_generated_at", "audit_trail_download_url", "actions"
|
|
314
|
+
Submission.RequiredProperties = ["batch_id", "data_requests", "editable", "error_message", "expired", "expires_at", "id", "json_schema_errors", "metadata", "password", "processed_at", "state", "template_id", "template_type", "template_version", "test", "truncated_text", "pdf_hash", "download_url", "permanent_download_url", "preview_download_url", "preview_generated_at", "audit_trail_download_url", "actions"];
|
|
344
315
|
|
|
345
316
|
/**
|
|
346
317
|
* @member {String} batch_id
|
|
@@ -357,6 +328,11 @@ Submission.prototype['data_requests'] = undefined;
|
|
|
357
328
|
*/
|
|
358
329
|
Submission.prototype['editable'] = undefined;
|
|
359
330
|
|
|
331
|
+
/**
|
|
332
|
+
* @member {String} error_message
|
|
333
|
+
*/
|
|
334
|
+
Submission.prototype['error_message'] = undefined;
|
|
335
|
+
|
|
360
336
|
/**
|
|
361
337
|
* @member {Boolean} expired
|
|
362
338
|
*/
|
|
@@ -532,7 +508,12 @@ Submission['StateEnum'] = {
|
|
|
532
508
|
* value: "accidental"
|
|
533
509
|
* @const
|
|
534
510
|
*/
|
|
535
|
-
"accidental": "accidental"
|
|
511
|
+
"accidental": "accidental",
|
|
512
|
+
/**
|
|
513
|
+
* value: "declined"
|
|
514
|
+
* @const
|
|
515
|
+
*/
|
|
516
|
+
"declined": "declined"
|
|
536
517
|
};
|
|
537
518
|
|
|
538
519
|
/**
|
|
@@ -15,7 +15,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
15
15
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
16
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
-
function _toPrimitive(t,
|
|
18
|
+
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); } /**
|
|
19
19
|
* DocSpring API
|
|
20
20
|
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
21
21
|
*
|
|
@@ -30,12 +30,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The Submission422Response model module.
|
|
32
32
|
* @module model/Submission422Response
|
|
33
|
-
* @version 3.
|
|
33
|
+
* @version 3.2.0
|
|
34
34
|
*/
|
|
35
35
|
var Submission422Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
37
|
* Constructs a new <code>Submission422Response</code>.
|
|
38
38
|
* @alias module:model/Submission422Response
|
|
39
|
+
* @extends Object
|
|
39
40
|
* @param status {module:model/Submission422Response.StatusEnum}
|
|
40
41
|
*/
|
|
41
42
|
function Submission422Response(status) {
|
|
@@ -66,6 +67,7 @@ var Submission422Response = /*#__PURE__*/function () {
|
|
|
66
67
|
value: function constructFromObject(data, obj) {
|
|
67
68
|
if (data) {
|
|
68
69
|
obj = obj || new Submission422Response();
|
|
70
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
69
71
|
if (data.hasOwnProperty('status')) {
|
|
70
72
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
71
73
|
}
|
|
@@ -113,11 +115,6 @@ var Submission422Response = /*#__PURE__*/function () {
|
|
|
113
115
|
if (data['error'] && !(typeof data['error'] === 'string' || data['error'] instanceof String)) {
|
|
114
116
|
throw new Error("Expected the field `error` to be a primitive type in the JSON string but got " + data['error']);
|
|
115
117
|
}
|
|
116
|
-
// validate the optional field `submission`
|
|
117
|
-
if (data['submission']) {
|
|
118
|
-
// data not null
|
|
119
|
-
_SubmissionPreview["default"].validateJSON(data['submission']);
|
|
120
|
-
}
|
|
121
118
|
// ensure the json data is an array
|
|
122
119
|
if (!Array.isArray(data['errors'])) {
|
|
123
120
|
throw new Error("Expected the field `errors` to be an array in the JSON data but got " + data['errors']);
|
|
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
14
14
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
15
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
-
function _toPrimitive(t,
|
|
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
19
|
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
20
20
|
*
|
|
@@ -29,22 +29,24 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The SubmissionAction model module.
|
|
31
31
|
* @module model/SubmissionAction
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionAction = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SubmissionAction</code>.
|
|
37
37
|
* @alias module:model/SubmissionAction
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param id {String}
|
|
39
40
|
* @param integration_id {String}
|
|
40
41
|
* @param state {module:model/SubmissionAction.StateEnum}
|
|
41
42
|
* @param action_type {module:model/SubmissionAction.ActionTypeEnum}
|
|
42
43
|
* @param action_category {module:model/SubmissionAction.ActionCategoryEnum}
|
|
43
44
|
* @param result_data {Object}
|
|
45
|
+
* @param error_message {String}
|
|
44
46
|
*/
|
|
45
|
-
function SubmissionAction(id, integration_id, state, action_type, action_category, result_data) {
|
|
47
|
+
function SubmissionAction(id, integration_id, state, action_type, action_category, result_data, error_message) {
|
|
46
48
|
_classCallCheck(this, SubmissionAction);
|
|
47
|
-
SubmissionAction.initialize(this, id, integration_id, state, action_type, action_category, result_data);
|
|
49
|
+
SubmissionAction.initialize(this, id, integration_id, state, action_type, action_category, result_data, error_message);
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
/**
|
|
@@ -54,13 +56,14 @@ var SubmissionAction = /*#__PURE__*/function () {
|
|
|
54
56
|
*/
|
|
55
57
|
return _createClass(SubmissionAction, null, [{
|
|
56
58
|
key: "initialize",
|
|
57
|
-
value: function initialize(obj, id, integration_id, state, action_type, action_category, result_data) {
|
|
59
|
+
value: function initialize(obj, id, integration_id, state, action_type, action_category, result_data, error_message) {
|
|
58
60
|
obj['id'] = id;
|
|
59
61
|
obj['integration_id'] = integration_id;
|
|
60
62
|
obj['state'] = state;
|
|
61
63
|
obj['action_type'] = action_type;
|
|
62
64
|
obj['action_category'] = action_category;
|
|
63
65
|
obj['result_data'] = result_data;
|
|
66
|
+
obj['error_message'] = error_message;
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
/**
|
|
@@ -75,6 +78,7 @@ var SubmissionAction = /*#__PURE__*/function () {
|
|
|
75
78
|
value: function constructFromObject(data, obj) {
|
|
76
79
|
if (data) {
|
|
77
80
|
obj = obj || new SubmissionAction();
|
|
81
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
78
82
|
if (data.hasOwnProperty('id')) {
|
|
79
83
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
80
84
|
}
|
|
@@ -93,6 +97,9 @@ var SubmissionAction = /*#__PURE__*/function () {
|
|
|
93
97
|
if (data.hasOwnProperty('result_data')) {
|
|
94
98
|
obj['result_data'] = _ApiClient["default"].convertToType(data['result_data'], Object);
|
|
95
99
|
}
|
|
100
|
+
if (data.hasOwnProperty('error_message')) {
|
|
101
|
+
obj['error_message'] = _ApiClient["default"].convertToType(data['error_message'], 'String');
|
|
102
|
+
}
|
|
96
103
|
}
|
|
97
104
|
return obj;
|
|
98
105
|
}
|
|
@@ -140,11 +147,15 @@ var SubmissionAction = /*#__PURE__*/function () {
|
|
|
140
147
|
if (data['action_category'] && !(typeof data['action_category'] === 'string' || data['action_category'] instanceof String)) {
|
|
141
148
|
throw new Error("Expected the field `action_category` to be a primitive type in the JSON string but got " + data['action_category']);
|
|
142
149
|
}
|
|
150
|
+
// ensure the json data is a string
|
|
151
|
+
if (data['error_message'] && !(typeof data['error_message'] === 'string' || data['error_message'] instanceof String)) {
|
|
152
|
+
throw new Error("Expected the field `error_message` to be a primitive type in the JSON string but got " + data['error_message']);
|
|
153
|
+
}
|
|
143
154
|
return true;
|
|
144
155
|
}
|
|
145
156
|
}]);
|
|
146
157
|
}();
|
|
147
|
-
SubmissionAction.RequiredProperties = ["id", "integration_id", "state", "action_type", "action_category", "result_data"];
|
|
158
|
+
SubmissionAction.RequiredProperties = ["id", "integration_id", "state", "action_type", "action_category", "result_data", "error_message"];
|
|
148
159
|
|
|
149
160
|
/**
|
|
150
161
|
* @member {String} id
|
|
@@ -176,6 +187,11 @@ SubmissionAction.prototype['action_category'] = undefined;
|
|
|
176
187
|
*/
|
|
177
188
|
SubmissionAction.prototype['result_data'] = undefined;
|
|
178
189
|
|
|
190
|
+
/**
|
|
191
|
+
* @member {String} error_message
|
|
192
|
+
*/
|
|
193
|
+
SubmissionAction.prototype['error_message'] = undefined;
|
|
194
|
+
|
|
179
195
|
/**
|
|
180
196
|
* Allowed values for the <code>state</code> property.
|
|
181
197
|
* @enum {String}
|
|
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
14
14
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
15
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
-
function _toPrimitive(t,
|
|
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
19
|
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
20
20
|
*
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The SubmissionBatch model module.
|
|
31
31
|
* @module model/SubmissionBatch
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionBatch = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SubmissionBatch</code>.
|
|
37
37
|
* @alias module:model/SubmissionBatch
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param id {String}
|
|
39
40
|
* @param state {module:model/SubmissionBatch.StateEnum}
|
|
40
41
|
* @param metadata {Object}
|
|
@@ -79,6 +80,7 @@ var SubmissionBatch = /*#__PURE__*/function () {
|
|
|
79
80
|
value: function constructFromObject(data, obj) {
|
|
80
81
|
if (data) {
|
|
81
82
|
obj = obj || new SubmissionBatch();
|
|
83
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
82
84
|
if (data.hasOwnProperty('id')) {
|
|
83
85
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
84
86
|
}
|
|
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
14
14
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
15
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
-
function _toPrimitive(t,
|
|
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
19
|
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
20
20
|
*
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The SubmissionBatchData model module.
|
|
31
31
|
* @module model/SubmissionBatchData
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionBatchData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -15,7 +15,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
15
15
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
16
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
-
function _toPrimitive(t,
|
|
18
|
+
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); } /**
|
|
19
19
|
* DocSpring API
|
|
20
20
|
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
21
21
|
*
|
|
@@ -30,12 +30,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The SubmissionBatchWithSubmissions model module.
|
|
32
32
|
* @module model/SubmissionBatchWithSubmissions
|
|
33
|
-
* @version 3.
|
|
33
|
+
* @version 3.2.0
|
|
34
34
|
*/
|
|
35
35
|
var SubmissionBatchWithSubmissions = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
37
|
* Constructs a new <code>SubmissionBatchWithSubmissions</code>.
|
|
38
38
|
* @alias module:model/SubmissionBatchWithSubmissions
|
|
39
|
+
* @extends Object
|
|
39
40
|
* @param id {String}
|
|
40
41
|
* @param state {module:model/SubmissionBatchWithSubmissions.StateEnum}
|
|
41
42
|
* @param metadata {Object}
|
|
@@ -80,6 +81,7 @@ var SubmissionBatchWithSubmissions = /*#__PURE__*/function () {
|
|
|
80
81
|
value: function constructFromObject(data, obj) {
|
|
81
82
|
if (data) {
|
|
82
83
|
obj = obj || new SubmissionBatchWithSubmissions();
|
|
84
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
83
85
|
if (data.hasOwnProperty('id')) {
|
|
84
86
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
85
87
|
}
|
|
@@ -146,26 +148,9 @@ var SubmissionBatchWithSubmissions = /*#__PURE__*/function () {
|
|
|
146
148
|
if (data['processed_at'] && !(typeof data['processed_at'] === 'string' || data['processed_at'] instanceof String)) {
|
|
147
149
|
throw new Error("Expected the field `processed_at` to be a primitive type in the JSON string but got " + data['processed_at']);
|
|
148
150
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
if (!Array.isArray(data['submissions'])) {
|
|
153
|
-
throw new Error("Expected the field `submissions` to be an array in the JSON data but got " + data['submissions']);
|
|
154
|
-
}
|
|
155
|
-
// validate the optional field `submissions` (array)
|
|
156
|
-
var _iterator2 = _createForOfIteratorHelper(data['submissions']),
|
|
157
|
-
_step2;
|
|
158
|
-
try {
|
|
159
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
160
|
-
var item = _step2.value;
|
|
161
|
-
_SubmissionPreview["default"].validateJSON(item);
|
|
162
|
-
}
|
|
163
|
-
} catch (err) {
|
|
164
|
-
_iterator2.e(err);
|
|
165
|
-
} finally {
|
|
166
|
-
_iterator2.f();
|
|
167
|
-
}
|
|
168
|
-
;
|
|
151
|
+
// ensure the json data is an array
|
|
152
|
+
if (!Array.isArray(data['submissions'])) {
|
|
153
|
+
throw new Error("Expected the field `submissions` to be an array in the JSON data but got " + data['submissions']);
|
|
169
154
|
}
|
|
170
155
|
return true;
|
|
171
156
|
}
|
|
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
14
14
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
15
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
-
function _toPrimitive(t,
|
|
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
19
|
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
20
20
|
*
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The SubmissionDataRequest model module.
|
|
31
31
|
* @module model/SubmissionDataRequest
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SubmissionDataRequest</code>.
|
|
37
37
|
* @alias module:model/SubmissionDataRequest
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param id {String}
|
|
39
40
|
* @param email {String}
|
|
40
41
|
* @param name {String}
|
|
@@ -45,6 +46,7 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
45
46
|
* @param state {module:model/SubmissionDataRequest.StateEnum}
|
|
46
47
|
* @param viewed_at {String}
|
|
47
48
|
* @param completed_at {String}
|
|
49
|
+
* @param declined_at {String}
|
|
48
50
|
* @param data {Object}
|
|
49
51
|
* @param auth_type {module:model/SubmissionDataRequest.AuthTypeEnum}
|
|
50
52
|
* @param auth_second_factor_type {module:model/SubmissionDataRequest.AuthSecondFactorTypeEnum}
|
|
@@ -57,9 +59,9 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
57
59
|
* @param ip_address {String}
|
|
58
60
|
* @param user_agent {String}
|
|
59
61
|
*/
|
|
60
|
-
function SubmissionDataRequest(id, email, name, order, sort_order, fields, metadata, state, viewed_at, completed_at, data, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent) {
|
|
62
|
+
function SubmissionDataRequest(id, email, name, order, sort_order, fields, metadata, state, viewed_at, completed_at, declined_at, data, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent) {
|
|
61
63
|
_classCallCheck(this, SubmissionDataRequest);
|
|
62
|
-
SubmissionDataRequest.initialize(this, id, email, name, order, sort_order, fields, metadata, state, viewed_at, completed_at, data, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent);
|
|
64
|
+
SubmissionDataRequest.initialize(this, id, email, name, order, sort_order, fields, metadata, state, viewed_at, completed_at, declined_at, data, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent);
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
/**
|
|
@@ -69,7 +71,7 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
69
71
|
*/
|
|
70
72
|
return _createClass(SubmissionDataRequest, null, [{
|
|
71
73
|
key: "initialize",
|
|
72
|
-
value: function initialize(obj, id, email, name, order, sort_order, fields, metadata, state, viewed_at, completed_at, data, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent) {
|
|
74
|
+
value: function initialize(obj, id, email, name, order, sort_order, fields, metadata, state, viewed_at, completed_at, declined_at, data, auth_type, auth_second_factor_type, auth_provider, auth_session_started_at, auth_session_id_hash, auth_user_id_hash, auth_username_hash, auth_phone_number_hash, ip_address, user_agent) {
|
|
73
75
|
obj['id'] = id;
|
|
74
76
|
obj['email'] = email;
|
|
75
77
|
obj['name'] = name;
|
|
@@ -80,6 +82,7 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
80
82
|
obj['state'] = state;
|
|
81
83
|
obj['viewed_at'] = viewed_at;
|
|
82
84
|
obj['completed_at'] = completed_at;
|
|
85
|
+
obj['declined_at'] = declined_at;
|
|
83
86
|
obj['data'] = data;
|
|
84
87
|
obj['auth_type'] = auth_type;
|
|
85
88
|
obj['auth_second_factor_type'] = auth_second_factor_type;
|
|
@@ -105,6 +108,7 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
105
108
|
value: function constructFromObject(data, obj) {
|
|
106
109
|
if (data) {
|
|
107
110
|
obj = obj || new SubmissionDataRequest();
|
|
111
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
108
112
|
if (data.hasOwnProperty('id')) {
|
|
109
113
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
110
114
|
}
|
|
@@ -135,6 +139,9 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
135
139
|
if (data.hasOwnProperty('completed_at')) {
|
|
136
140
|
obj['completed_at'] = _ApiClient["default"].convertToType(data['completed_at'], 'String');
|
|
137
141
|
}
|
|
142
|
+
if (data.hasOwnProperty('declined_at')) {
|
|
143
|
+
obj['declined_at'] = _ApiClient["default"].convertToType(data['declined_at'], 'String');
|
|
144
|
+
}
|
|
138
145
|
if (data.hasOwnProperty('data')) {
|
|
139
146
|
obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
|
|
140
147
|
}
|
|
@@ -224,6 +231,10 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
224
231
|
throw new Error("Expected the field `completed_at` to be a primitive type in the JSON string but got " + data['completed_at']);
|
|
225
232
|
}
|
|
226
233
|
// ensure the json data is a string
|
|
234
|
+
if (data['declined_at'] && !(typeof data['declined_at'] === 'string' || data['declined_at'] instanceof String)) {
|
|
235
|
+
throw new Error("Expected the field `declined_at` to be a primitive type in the JSON string but got " + data['declined_at']);
|
|
236
|
+
}
|
|
237
|
+
// ensure the json data is a string
|
|
227
238
|
if (data['auth_type'] && !(typeof data['auth_type'] === 'string' || data['auth_type'] instanceof String)) {
|
|
228
239
|
throw new Error("Expected the field `auth_type` to be a primitive type in the JSON string but got " + data['auth_type']);
|
|
229
240
|
}
|
|
@@ -267,7 +278,7 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
267
278
|
}
|
|
268
279
|
}]);
|
|
269
280
|
}();
|
|
270
|
-
SubmissionDataRequest.RequiredProperties = ["id", "email", "name", "order", "sort_order", "fields", "metadata", "state", "viewed_at", "completed_at", "data", "auth_type", "auth_second_factor_type", "auth_provider", "auth_session_started_at", "auth_session_id_hash", "auth_user_id_hash", "auth_username_hash", "auth_phone_number_hash", "ip_address", "user_agent"];
|
|
281
|
+
SubmissionDataRequest.RequiredProperties = ["id", "email", "name", "order", "sort_order", "fields", "metadata", "state", "viewed_at", "completed_at", "declined_at", "data", "auth_type", "auth_second_factor_type", "auth_provider", "auth_session_started_at", "auth_session_id_hash", "auth_user_id_hash", "auth_username_hash", "auth_phone_number_hash", "ip_address", "user_agent"];
|
|
271
282
|
|
|
272
283
|
/**
|
|
273
284
|
* @member {String} id
|
|
@@ -319,6 +330,11 @@ SubmissionDataRequest.prototype['viewed_at'] = undefined;
|
|
|
319
330
|
*/
|
|
320
331
|
SubmissionDataRequest.prototype['completed_at'] = undefined;
|
|
321
332
|
|
|
333
|
+
/**
|
|
334
|
+
* @member {String} declined_at
|
|
335
|
+
*/
|
|
336
|
+
SubmissionDataRequest.prototype['declined_at'] = undefined;
|
|
337
|
+
|
|
322
338
|
/**
|
|
323
339
|
* @member {Object} data
|
|
324
340
|
*/
|
|
@@ -389,7 +405,12 @@ SubmissionDataRequest['StateEnum'] = {
|
|
|
389
405
|
* value: "completed"
|
|
390
406
|
* @const
|
|
391
407
|
*/
|
|
392
|
-
"completed": "completed"
|
|
408
|
+
"completed": "completed",
|
|
409
|
+
/**
|
|
410
|
+
* value: "declined"
|
|
411
|
+
* @const
|
|
412
|
+
*/
|
|
413
|
+
"declined": "declined"
|
|
393
414
|
};
|
|
394
415
|
|
|
395
416
|
/**
|
|
@@ -14,7 +14,7 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
14
14
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
15
15
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
|
-
function _toPrimitive(t,
|
|
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
19
|
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
20
20
|
*
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The SubmissionDataRequestEvent model module.
|
|
31
31
|
* @module model/SubmissionDataRequestEvent
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequestEvent = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SubmissionDataRequestEvent</code>.
|
|
37
37
|
* @alias module:model/SubmissionDataRequestEvent
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param id {String}
|
|
39
40
|
* @param submission_id {String}
|
|
40
41
|
* @param submission_data_request_id {String}
|
|
@@ -77,6 +78,7 @@ var SubmissionDataRequestEvent = /*#__PURE__*/function () {
|
|
|
77
78
|
value: function constructFromObject(data, obj) {
|
|
78
79
|
if (data) {
|
|
79
80
|
obj = obj || new SubmissionDataRequestEvent();
|
|
81
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
80
82
|
if (data.hasOwnProperty('id')) {
|
|
81
83
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
82
84
|
}
|