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
|
@@ -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 SubmissionDataRequestShow model module.
|
|
31
31
|
* @module model/SubmissionDataRequestShow
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SubmissionDataRequestShow</code>.
|
|
37
37
|
* @alias module:model/SubmissionDataRequestShow
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param id {String}
|
|
39
40
|
* @param email {String}
|
|
40
41
|
* @param name {String}
|
|
@@ -45,6 +46,7 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
45
46
|
* @param state {module:model/SubmissionDataRequestShow.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/SubmissionDataRequestShow.AuthTypeEnum}
|
|
50
52
|
* @param auth_second_factor_type {module:model/SubmissionDataRequestShow.AuthSecondFactorTypeEnum}
|
|
@@ -58,9 +60,9 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
58
60
|
* @param user_agent {String}
|
|
59
61
|
* @param submission_id {String}
|
|
60
62
|
*/
|
|
61
|
-
function SubmissionDataRequestShow(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, submission_id) {
|
|
63
|
+
function SubmissionDataRequestShow(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, submission_id) {
|
|
62
64
|
_classCallCheck(this, SubmissionDataRequestShow);
|
|
63
|
-
SubmissionDataRequestShow.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, submission_id);
|
|
65
|
+
SubmissionDataRequestShow.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, submission_id);
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
/**
|
|
@@ -70,7 +72,7 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
70
72
|
*/
|
|
71
73
|
return _createClass(SubmissionDataRequestShow, null, [{
|
|
72
74
|
key: "initialize",
|
|
73
|
-
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, submission_id) {
|
|
75
|
+
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, submission_id) {
|
|
74
76
|
obj['id'] = id;
|
|
75
77
|
obj['email'] = email;
|
|
76
78
|
obj['name'] = name;
|
|
@@ -81,6 +83,7 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
81
83
|
obj['state'] = state;
|
|
82
84
|
obj['viewed_at'] = viewed_at;
|
|
83
85
|
obj['completed_at'] = completed_at;
|
|
86
|
+
obj['declined_at'] = declined_at;
|
|
84
87
|
obj['data'] = data;
|
|
85
88
|
obj['auth_type'] = auth_type;
|
|
86
89
|
obj['auth_second_factor_type'] = auth_second_factor_type;
|
|
@@ -107,6 +110,7 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
107
110
|
value: function constructFromObject(data, obj) {
|
|
108
111
|
if (data) {
|
|
109
112
|
obj = obj || new SubmissionDataRequestShow();
|
|
113
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
110
114
|
if (data.hasOwnProperty('id')) {
|
|
111
115
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
112
116
|
}
|
|
@@ -137,6 +141,9 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
137
141
|
if (data.hasOwnProperty('completed_at')) {
|
|
138
142
|
obj['completed_at'] = _ApiClient["default"].convertToType(data['completed_at'], 'String');
|
|
139
143
|
}
|
|
144
|
+
if (data.hasOwnProperty('declined_at')) {
|
|
145
|
+
obj['declined_at'] = _ApiClient["default"].convertToType(data['declined_at'], 'String');
|
|
146
|
+
}
|
|
140
147
|
if (data.hasOwnProperty('data')) {
|
|
141
148
|
obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
|
|
142
149
|
}
|
|
@@ -229,6 +236,10 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
229
236
|
throw new Error("Expected the field `completed_at` to be a primitive type in the JSON string but got " + data['completed_at']);
|
|
230
237
|
}
|
|
231
238
|
// ensure the json data is a string
|
|
239
|
+
if (data['declined_at'] && !(typeof data['declined_at'] === 'string' || data['declined_at'] instanceof String)) {
|
|
240
|
+
throw new Error("Expected the field `declined_at` to be a primitive type in the JSON string but got " + data['declined_at']);
|
|
241
|
+
}
|
|
242
|
+
// ensure the json data is a string
|
|
232
243
|
if (data['auth_type'] && !(typeof data['auth_type'] === 'string' || data['auth_type'] instanceof String)) {
|
|
233
244
|
throw new Error("Expected the field `auth_type` to be a primitive type in the JSON string but got " + data['auth_type']);
|
|
234
245
|
}
|
|
@@ -276,7 +287,7 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
276
287
|
}
|
|
277
288
|
}]);
|
|
278
289
|
}();
|
|
279
|
-
SubmissionDataRequestShow.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", "submission_id"];
|
|
290
|
+
SubmissionDataRequestShow.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", "submission_id"];
|
|
280
291
|
|
|
281
292
|
/**
|
|
282
293
|
* @member {String} id
|
|
@@ -328,6 +339,11 @@ SubmissionDataRequestShow.prototype['viewed_at'] = undefined;
|
|
|
328
339
|
*/
|
|
329
340
|
SubmissionDataRequestShow.prototype['completed_at'] = undefined;
|
|
330
341
|
|
|
342
|
+
/**
|
|
343
|
+
* @member {String} declined_at
|
|
344
|
+
*/
|
|
345
|
+
SubmissionDataRequestShow.prototype['declined_at'] = undefined;
|
|
346
|
+
|
|
331
347
|
/**
|
|
332
348
|
* @member {Object} data
|
|
333
349
|
*/
|
|
@@ -403,7 +419,12 @@ SubmissionDataRequestShow['StateEnum'] = {
|
|
|
403
419
|
* value: "completed"
|
|
404
420
|
* @const
|
|
405
421
|
*/
|
|
406
|
-
"completed": "completed"
|
|
422
|
+
"completed": "completed",
|
|
423
|
+
/**
|
|
424
|
+
* value: "declined"
|
|
425
|
+
* @const
|
|
426
|
+
*/
|
|
427
|
+
"declined": "declined"
|
|
407
428
|
};
|
|
408
429
|
|
|
409
430
|
/**
|
|
@@ -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 SubmissionDataRequestToken model module.
|
|
31
31
|
* @module model/SubmissionDataRequestToken
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequestToken = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SubmissionDataRequestToken</code>.
|
|
37
37
|
* @alias module:model/SubmissionDataRequestToken
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param id {String}
|
|
39
40
|
* @param secret {String}
|
|
40
41
|
* @param expires_at {String}
|
|
@@ -71,6 +72,7 @@ var SubmissionDataRequestToken = /*#__PURE__*/function () {
|
|
|
71
72
|
value: function constructFromObject(data, obj) {
|
|
72
73
|
if (data) {
|
|
73
74
|
obj = obj || new SubmissionDataRequestToken();
|
|
75
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
74
76
|
if (data.hasOwnProperty('id')) {
|
|
75
77
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
76
78
|
}
|
|
@@ -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 SubmissionPreview model module.
|
|
33
33
|
* @module model/SubmissionPreview
|
|
34
|
-
* @version 3.
|
|
34
|
+
* @version 3.2.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}
|
|
44
|
+
* @param error_message {String}
|
|
43
45
|
* @param expired {Boolean}
|
|
44
46
|
* @param expires_at {String}
|
|
45
47
|
* @param id {String}
|
|
@@ -61,9 +63,9 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
61
63
|
* @param audit_trail_download_url {String}
|
|
62
64
|
* @param actions {Array.<module:model/SubmissionAction>}
|
|
63
65
|
*/
|
|
64
|
-
function SubmissionPreview(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 SubmissionPreview(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) {
|
|
65
67
|
_classCallCheck(this, SubmissionPreview);
|
|
66
|
-
SubmissionPreview.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
|
+
SubmissionPreview.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);
|
|
67
69
|
}
|
|
68
70
|
|
|
69
71
|
/**
|
|
@@ -73,10 +75,11 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
73
75
|
*/
|
|
74
76
|
return _createClass(SubmissionPreview, null, [{
|
|
75
77
|
key: "initialize",
|
|
76
|
-
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) {
|
|
77
79
|
obj['batch_id'] = batch_id;
|
|
78
80
|
obj['data_requests'] = data_requests;
|
|
79
81
|
obj['editable'] = editable;
|
|
82
|
+
obj['error_message'] = error_message;
|
|
80
83
|
obj['expired'] = expired;
|
|
81
84
|
obj['expires_at'] = expires_at;
|
|
82
85
|
obj['id'] = id;
|
|
@@ -111,6 +114,7 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
111
114
|
value: function constructFromObject(data, obj) {
|
|
112
115
|
if (data) {
|
|
113
116
|
obj = obj || new SubmissionPreview();
|
|
117
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
114
118
|
if (data.hasOwnProperty('batch_id')) {
|
|
115
119
|
obj['batch_id'] = _ApiClient["default"].convertToType(data['batch_id'], 'String');
|
|
116
120
|
}
|
|
@@ -120,6 +124,9 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
120
124
|
if (data.hasOwnProperty('editable')) {
|
|
121
125
|
obj['editable'] = _ApiClient["default"].convertToType(data['editable'], 'Boolean');
|
|
122
126
|
}
|
|
127
|
+
if (data.hasOwnProperty('error_message')) {
|
|
128
|
+
obj['error_message'] = _ApiClient["default"].convertToType(data['error_message'], 'String');
|
|
129
|
+
}
|
|
123
130
|
if (data.hasOwnProperty('expired')) {
|
|
124
131
|
obj['expired'] = _ApiClient["default"].convertToType(data['expired'], 'Boolean');
|
|
125
132
|
}
|
|
@@ -211,26 +218,13 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
211
218
|
if (data['batch_id'] && !(typeof data['batch_id'] === 'string' || data['batch_id'] instanceof String)) {
|
|
212
219
|
throw new Error("Expected the field `batch_id` to be a primitive type in the JSON string but got " + data['batch_id']);
|
|
213
220
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
var _iterator2 = _createForOfIteratorHelper(data['data_requests']),
|
|
222
|
-
_step2;
|
|
223
|
-
try {
|
|
224
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
225
|
-
var item = _step2.value;
|
|
226
|
-
_SubmissionDataRequest["default"].validateJSON(item);
|
|
227
|
-
}
|
|
228
|
-
} catch (err) {
|
|
229
|
-
_iterator2.e(err);
|
|
230
|
-
} finally {
|
|
231
|
-
_iterator2.f();
|
|
232
|
-
}
|
|
233
|
-
;
|
|
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']);
|
|
224
|
+
}
|
|
225
|
+
// ensure the json data is a string
|
|
226
|
+
if (data['error_message'] && !(typeof data['error_message'] === 'string' || data['error_message'] instanceof String)) {
|
|
227
|
+
throw new Error("Expected the field `error_message` to be a primitive type in the JSON string but got " + data['error_message']);
|
|
234
228
|
}
|
|
235
229
|
// ensure the json data is a string
|
|
236
230
|
if (data['expires_at'] && !(typeof data['expires_at'] === 'string' || data['expires_at'] instanceof String)) {
|
|
@@ -292,32 +286,15 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
292
286
|
if (data['audit_trail_download_url'] && !(typeof data['audit_trail_download_url'] === 'string' || data['audit_trail_download_url'] instanceof String)) {
|
|
293
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']);
|
|
294
288
|
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
if (!Array.isArray(data['actions'])) {
|
|
299
|
-
throw new Error("Expected the field `actions` to be an array in the JSON data but got " + data['actions']);
|
|
300
|
-
}
|
|
301
|
-
// validate the optional field `actions` (array)
|
|
302
|
-
var _iterator3 = _createForOfIteratorHelper(data['actions']),
|
|
303
|
-
_step3;
|
|
304
|
-
try {
|
|
305
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
306
|
-
var _item = _step3.value;
|
|
307
|
-
_SubmissionAction["default"].validateJSON(_item);
|
|
308
|
-
}
|
|
309
|
-
} catch (err) {
|
|
310
|
-
_iterator3.e(err);
|
|
311
|
-
} finally {
|
|
312
|
-
_iterator3.f();
|
|
313
|
-
}
|
|
314
|
-
;
|
|
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']);
|
|
315
292
|
}
|
|
316
293
|
return true;
|
|
317
294
|
}
|
|
318
295
|
}]);
|
|
319
296
|
}();
|
|
320
|
-
SubmissionPreview.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"];
|
|
297
|
+
SubmissionPreview.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"];
|
|
321
298
|
|
|
322
299
|
/**
|
|
323
300
|
* @member {String} batch_id
|
|
@@ -334,6 +311,11 @@ SubmissionPreview.prototype['data_requests'] = undefined;
|
|
|
334
311
|
*/
|
|
335
312
|
SubmissionPreview.prototype['editable'] = undefined;
|
|
336
313
|
|
|
314
|
+
/**
|
|
315
|
+
* @member {String} error_message
|
|
316
|
+
*/
|
|
317
|
+
SubmissionPreview.prototype['error_message'] = undefined;
|
|
318
|
+
|
|
337
319
|
/**
|
|
338
320
|
* @member {Boolean} expired
|
|
339
321
|
*/
|
|
@@ -494,7 +476,12 @@ SubmissionPreview['StateEnum'] = {
|
|
|
494
476
|
* value: "accidental"
|
|
495
477
|
* @const
|
|
496
478
|
*/
|
|
497
|
-
"accidental": "accidental"
|
|
479
|
+
"accidental": "accidental",
|
|
480
|
+
/**
|
|
481
|
+
* value: "declined"
|
|
482
|
+
* @const
|
|
483
|
+
*/
|
|
484
|
+
"declined": "declined"
|
|
498
485
|
};
|
|
499
486
|
|
|
500
487
|
/**
|
|
@@ -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 SuccessErrorResponse model module.
|
|
31
31
|
* @module model/SuccessErrorResponse
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.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
|
}
|
|
@@ -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 SuccessMultipleErrorsResponse model module.
|
|
31
31
|
* @module model/SuccessMultipleErrorsResponse
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.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
|
}
|