docspring 3.0.0 → 3.1.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/README.md +11 -1
- 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 +2 -2
- package/dist/model/CombinePdfsData.js +4 -2
- package/dist/model/CombinedSubmission.js +2 -2
- package/dist/model/CombinedSubmissionAction.js +20 -6
- package/dist/model/CopyTemplateOptions.js +18 -29
- package/dist/model/CreateCombinedSubmissionResponse.js +2 -2
- package/dist/model/CreateCustomFileData.js +2 -2
- package/dist/model/CreateCustomFileResponse.js +2 -2
- 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 +2 -2
- package/dist/model/CreateSubmissionDataRequestResponse.js +2 -2
- package/dist/model/CreateSubmissionDataRequestTokenResponse.js +2 -2
- package/dist/model/CreateSubmissionResponse.js +2 -2
- package/dist/model/CreateWebhookData.js +108 -0
- package/dist/model/CustomFile.js +2 -2
- package/dist/model/ErrorOrMultipleErrorsResponse.js +2 -2
- package/dist/model/ErrorResponse.js +2 -2
- package/dist/model/Folder.js +2 -2
- package/dist/model/JsonSchema.js +34 -2
- package/dist/model/ListSubmissionsResponse.js +2 -2
- package/dist/model/MoveFolderData.js +2 -2
- package/dist/model/MoveTemplateData.js +14 -2
- package/dist/model/MultipleErrorsResponse.js +2 -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 +26 -13
- package/dist/model/Submission422Response.js +2 -2
- package/dist/model/SubmissionAction.js +20 -6
- package/dist/model/SubmissionBatch.js +2 -2
- package/dist/model/SubmissionBatchData.js +2 -2
- package/dist/model/SubmissionBatchWithSubmissions.js +2 -2
- package/dist/model/SubmissionDataRequest.js +26 -7
- package/dist/model/SubmissionDataRequestEvent.js +2 -2
- package/dist/model/SubmissionDataRequestShow.js +26 -7
- package/dist/model/SubmissionDataRequestToken.js +2 -2
- package/dist/model/SubmissionPreview.js +26 -7
- package/dist/model/SuccessErrorResponse.js +2 -2
- package/dist/model/SuccessMultipleErrorsResponse.js +2 -2
- package/dist/model/Template.js +120 -7
- package/dist/model/TemplateAddFieldsResponse.js +2 -2
- package/dist/model/TemplateDeleteResponse.js +2 -2
- package/dist/model/TemplateModelCodeResponse.js +193 -0
- package/dist/model/TemplatePreview.js +96 -7
- package/dist/model/TemplatePublishVersionResponse.js +2 -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 +2 -2
- package/dist/model/Webhook.js +378 -0
- package/package.json +2 -2
|
@@ -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 SubmissionDataRequest model module.
|
|
31
31
|
* @module model/SubmissionDataRequest
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -45,6 +45,7 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
45
45
|
* @param state {module:model/SubmissionDataRequest.StateEnum}
|
|
46
46
|
* @param viewed_at {String}
|
|
47
47
|
* @param completed_at {String}
|
|
48
|
+
* @param declined_at {String}
|
|
48
49
|
* @param data {Object}
|
|
49
50
|
* @param auth_type {module:model/SubmissionDataRequest.AuthTypeEnum}
|
|
50
51
|
* @param auth_second_factor_type {module:model/SubmissionDataRequest.AuthSecondFactorTypeEnum}
|
|
@@ -57,9 +58,9 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
57
58
|
* @param ip_address {String}
|
|
58
59
|
* @param user_agent {String}
|
|
59
60
|
*/
|
|
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) {
|
|
61
|
+
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
62
|
_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);
|
|
63
|
+
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
64
|
}
|
|
64
65
|
|
|
65
66
|
/**
|
|
@@ -69,7 +70,7 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
69
70
|
*/
|
|
70
71
|
return _createClass(SubmissionDataRequest, null, [{
|
|
71
72
|
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) {
|
|
73
|
+
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
74
|
obj['id'] = id;
|
|
74
75
|
obj['email'] = email;
|
|
75
76
|
obj['name'] = name;
|
|
@@ -80,6 +81,7 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
80
81
|
obj['state'] = state;
|
|
81
82
|
obj['viewed_at'] = viewed_at;
|
|
82
83
|
obj['completed_at'] = completed_at;
|
|
84
|
+
obj['declined_at'] = declined_at;
|
|
83
85
|
obj['data'] = data;
|
|
84
86
|
obj['auth_type'] = auth_type;
|
|
85
87
|
obj['auth_second_factor_type'] = auth_second_factor_type;
|
|
@@ -135,6 +137,9 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
135
137
|
if (data.hasOwnProperty('completed_at')) {
|
|
136
138
|
obj['completed_at'] = _ApiClient["default"].convertToType(data['completed_at'], 'String');
|
|
137
139
|
}
|
|
140
|
+
if (data.hasOwnProperty('declined_at')) {
|
|
141
|
+
obj['declined_at'] = _ApiClient["default"].convertToType(data['declined_at'], 'String');
|
|
142
|
+
}
|
|
138
143
|
if (data.hasOwnProperty('data')) {
|
|
139
144
|
obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
|
|
140
145
|
}
|
|
@@ -224,6 +229,10 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
224
229
|
throw new Error("Expected the field `completed_at` to be a primitive type in the JSON string but got " + data['completed_at']);
|
|
225
230
|
}
|
|
226
231
|
// ensure the json data is a string
|
|
232
|
+
if (data['declined_at'] && !(typeof data['declined_at'] === 'string' || data['declined_at'] instanceof String)) {
|
|
233
|
+
throw new Error("Expected the field `declined_at` to be a primitive type in the JSON string but got " + data['declined_at']);
|
|
234
|
+
}
|
|
235
|
+
// ensure the json data is a string
|
|
227
236
|
if (data['auth_type'] && !(typeof data['auth_type'] === 'string' || data['auth_type'] instanceof String)) {
|
|
228
237
|
throw new Error("Expected the field `auth_type` to be a primitive type in the JSON string but got " + data['auth_type']);
|
|
229
238
|
}
|
|
@@ -267,7 +276,7 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
267
276
|
}
|
|
268
277
|
}]);
|
|
269
278
|
}();
|
|
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"];
|
|
279
|
+
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
280
|
|
|
272
281
|
/**
|
|
273
282
|
* @member {String} id
|
|
@@ -319,6 +328,11 @@ SubmissionDataRequest.prototype['viewed_at'] = undefined;
|
|
|
319
328
|
*/
|
|
320
329
|
SubmissionDataRequest.prototype['completed_at'] = undefined;
|
|
321
330
|
|
|
331
|
+
/**
|
|
332
|
+
* @member {String} declined_at
|
|
333
|
+
*/
|
|
334
|
+
SubmissionDataRequest.prototype['declined_at'] = undefined;
|
|
335
|
+
|
|
322
336
|
/**
|
|
323
337
|
* @member {Object} data
|
|
324
338
|
*/
|
|
@@ -389,7 +403,12 @@ SubmissionDataRequest['StateEnum'] = {
|
|
|
389
403
|
* value: "completed"
|
|
390
404
|
* @const
|
|
391
405
|
*/
|
|
392
|
-
"completed": "completed"
|
|
406
|
+
"completed": "completed",
|
|
407
|
+
/**
|
|
408
|
+
* value: "declined"
|
|
409
|
+
* @const
|
|
410
|
+
*/
|
|
411
|
+
"declined": "declined"
|
|
393
412
|
};
|
|
394
413
|
|
|
395
414
|
/**
|
|
@@ -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 SubmissionDataRequestEvent model module.
|
|
31
31
|
* @module model/SubmissionDataRequestEvent
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequestEvent = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -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 SubmissionDataRequestShow model module.
|
|
31
31
|
* @module model/SubmissionDataRequestShow
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -45,6 +45,7 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
45
45
|
* @param state {module:model/SubmissionDataRequestShow.StateEnum}
|
|
46
46
|
* @param viewed_at {String}
|
|
47
47
|
* @param completed_at {String}
|
|
48
|
+
* @param declined_at {String}
|
|
48
49
|
* @param data {Object}
|
|
49
50
|
* @param auth_type {module:model/SubmissionDataRequestShow.AuthTypeEnum}
|
|
50
51
|
* @param auth_second_factor_type {module:model/SubmissionDataRequestShow.AuthSecondFactorTypeEnum}
|
|
@@ -58,9 +59,9 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
58
59
|
* @param user_agent {String}
|
|
59
60
|
* @param submission_id {String}
|
|
60
61
|
*/
|
|
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) {
|
|
62
|
+
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
63
|
_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);
|
|
64
|
+
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
65
|
}
|
|
65
66
|
|
|
66
67
|
/**
|
|
@@ -70,7 +71,7 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
70
71
|
*/
|
|
71
72
|
return _createClass(SubmissionDataRequestShow, null, [{
|
|
72
73
|
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) {
|
|
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, submission_id) {
|
|
74
75
|
obj['id'] = id;
|
|
75
76
|
obj['email'] = email;
|
|
76
77
|
obj['name'] = name;
|
|
@@ -81,6 +82,7 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
81
82
|
obj['state'] = state;
|
|
82
83
|
obj['viewed_at'] = viewed_at;
|
|
83
84
|
obj['completed_at'] = completed_at;
|
|
85
|
+
obj['declined_at'] = declined_at;
|
|
84
86
|
obj['data'] = data;
|
|
85
87
|
obj['auth_type'] = auth_type;
|
|
86
88
|
obj['auth_second_factor_type'] = auth_second_factor_type;
|
|
@@ -137,6 +139,9 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
137
139
|
if (data.hasOwnProperty('completed_at')) {
|
|
138
140
|
obj['completed_at'] = _ApiClient["default"].convertToType(data['completed_at'], 'String');
|
|
139
141
|
}
|
|
142
|
+
if (data.hasOwnProperty('declined_at')) {
|
|
143
|
+
obj['declined_at'] = _ApiClient["default"].convertToType(data['declined_at'], 'String');
|
|
144
|
+
}
|
|
140
145
|
if (data.hasOwnProperty('data')) {
|
|
141
146
|
obj['data'] = _ApiClient["default"].convertToType(data['data'], Object);
|
|
142
147
|
}
|
|
@@ -229,6 +234,10 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
229
234
|
throw new Error("Expected the field `completed_at` to be a primitive type in the JSON string but got " + data['completed_at']);
|
|
230
235
|
}
|
|
231
236
|
// ensure the json data is a string
|
|
237
|
+
if (data['declined_at'] && !(typeof data['declined_at'] === 'string' || data['declined_at'] instanceof String)) {
|
|
238
|
+
throw new Error("Expected the field `declined_at` to be a primitive type in the JSON string but got " + data['declined_at']);
|
|
239
|
+
}
|
|
240
|
+
// ensure the json data is a string
|
|
232
241
|
if (data['auth_type'] && !(typeof data['auth_type'] === 'string' || data['auth_type'] instanceof String)) {
|
|
233
242
|
throw new Error("Expected the field `auth_type` to be a primitive type in the JSON string but got " + data['auth_type']);
|
|
234
243
|
}
|
|
@@ -276,7 +285,7 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
276
285
|
}
|
|
277
286
|
}]);
|
|
278
287
|
}();
|
|
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"];
|
|
288
|
+
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
289
|
|
|
281
290
|
/**
|
|
282
291
|
* @member {String} id
|
|
@@ -328,6 +337,11 @@ SubmissionDataRequestShow.prototype['viewed_at'] = undefined;
|
|
|
328
337
|
*/
|
|
329
338
|
SubmissionDataRequestShow.prototype['completed_at'] = undefined;
|
|
330
339
|
|
|
340
|
+
/**
|
|
341
|
+
* @member {String} declined_at
|
|
342
|
+
*/
|
|
343
|
+
SubmissionDataRequestShow.prototype['declined_at'] = undefined;
|
|
344
|
+
|
|
331
345
|
/**
|
|
332
346
|
* @member {Object} data
|
|
333
347
|
*/
|
|
@@ -403,7 +417,12 @@ SubmissionDataRequestShow['StateEnum'] = {
|
|
|
403
417
|
* value: "completed"
|
|
404
418
|
* @const
|
|
405
419
|
*/
|
|
406
|
-
"completed": "completed"
|
|
420
|
+
"completed": "completed",
|
|
421
|
+
/**
|
|
422
|
+
* value: "declined"
|
|
423
|
+
* @const
|
|
424
|
+
*/
|
|
425
|
+
"declined": "declined"
|
|
407
426
|
};
|
|
408
427
|
|
|
409
428
|
/**
|
|
@@ -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 SubmissionDataRequestToken model module.
|
|
31
31
|
* @module model/SubmissionDataRequestToken
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequestToken = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -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,7 +31,7 @@ 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.1.0
|
|
35
35
|
*/
|
|
36
36
|
var SubmissionPreview = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
@@ -40,6 +40,7 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
40
40
|
* @param batch_id {String}
|
|
41
41
|
* @param data_requests {Array.<module:model/SubmissionDataRequest>}
|
|
42
42
|
* @param editable {Boolean}
|
|
43
|
+
* @param error_message {String}
|
|
43
44
|
* @param expired {Boolean}
|
|
44
45
|
* @param expires_at {String}
|
|
45
46
|
* @param id {String}
|
|
@@ -61,9 +62,9 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
61
62
|
* @param audit_trail_download_url {String}
|
|
62
63
|
* @param actions {Array.<module:model/SubmissionAction>}
|
|
63
64
|
*/
|
|
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) {
|
|
65
|
+
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
66
|
_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);
|
|
67
|
+
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
68
|
}
|
|
68
69
|
|
|
69
70
|
/**
|
|
@@ -73,10 +74,11 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
73
74
|
*/
|
|
74
75
|
return _createClass(SubmissionPreview, null, [{
|
|
75
76
|
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) {
|
|
77
|
+
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
78
|
obj['batch_id'] = batch_id;
|
|
78
79
|
obj['data_requests'] = data_requests;
|
|
79
80
|
obj['editable'] = editable;
|
|
81
|
+
obj['error_message'] = error_message;
|
|
80
82
|
obj['expired'] = expired;
|
|
81
83
|
obj['expires_at'] = expires_at;
|
|
82
84
|
obj['id'] = id;
|
|
@@ -120,6 +122,9 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
120
122
|
if (data.hasOwnProperty('editable')) {
|
|
121
123
|
obj['editable'] = _ApiClient["default"].convertToType(data['editable'], 'Boolean');
|
|
122
124
|
}
|
|
125
|
+
if (data.hasOwnProperty('error_message')) {
|
|
126
|
+
obj['error_message'] = _ApiClient["default"].convertToType(data['error_message'], 'String');
|
|
127
|
+
}
|
|
123
128
|
if (data.hasOwnProperty('expired')) {
|
|
124
129
|
obj['expired'] = _ApiClient["default"].convertToType(data['expired'], 'Boolean');
|
|
125
130
|
}
|
|
@@ -233,6 +238,10 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
233
238
|
;
|
|
234
239
|
}
|
|
235
240
|
// ensure the json data is a string
|
|
241
|
+
if (data['error_message'] && !(typeof data['error_message'] === 'string' || data['error_message'] instanceof String)) {
|
|
242
|
+
throw new Error("Expected the field `error_message` to be a primitive type in the JSON string but got " + data['error_message']);
|
|
243
|
+
}
|
|
244
|
+
// ensure the json data is a string
|
|
236
245
|
if (data['expires_at'] && !(typeof data['expires_at'] === 'string' || data['expires_at'] instanceof String)) {
|
|
237
246
|
throw new Error("Expected the field `expires_at` to be a primitive type in the JSON string but got " + data['expires_at']);
|
|
238
247
|
}
|
|
@@ -317,7 +326,7 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
317
326
|
}
|
|
318
327
|
}]);
|
|
319
328
|
}();
|
|
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"];
|
|
329
|
+
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
330
|
|
|
322
331
|
/**
|
|
323
332
|
* @member {String} batch_id
|
|
@@ -334,6 +343,11 @@ SubmissionPreview.prototype['data_requests'] = undefined;
|
|
|
334
343
|
*/
|
|
335
344
|
SubmissionPreview.prototype['editable'] = undefined;
|
|
336
345
|
|
|
346
|
+
/**
|
|
347
|
+
* @member {String} error_message
|
|
348
|
+
*/
|
|
349
|
+
SubmissionPreview.prototype['error_message'] = undefined;
|
|
350
|
+
|
|
337
351
|
/**
|
|
338
352
|
* @member {Boolean} expired
|
|
339
353
|
*/
|
|
@@ -494,7 +508,12 @@ SubmissionPreview['StateEnum'] = {
|
|
|
494
508
|
* value: "accidental"
|
|
495
509
|
* @const
|
|
496
510
|
*/
|
|
497
|
-
"accidental": "accidental"
|
|
511
|
+
"accidental": "accidental",
|
|
512
|
+
/**
|
|
513
|
+
* value: "declined"
|
|
514
|
+
* @const
|
|
515
|
+
*/
|
|
516
|
+
"declined": "declined"
|
|
498
517
|
};
|
|
499
518
|
|
|
500
519
|
/**
|
|
@@ -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 SuccessErrorResponse model module.
|
|
31
31
|
* @module model/SuccessErrorResponse
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var SuccessErrorResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -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 SuccessMultipleErrorsResponse model module.
|
|
31
31
|
* @module model/SuccessMultipleErrorsResponse
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var SuccessMultipleErrorsResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|