docspring 2.1.0 → 3.0.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 +49 -48
- package/dist/ApiClient.js +3 -3
- package/dist/api/{PDFApi.js → Client.js} +456 -383
- package/dist/index.js +28 -21
- package/dist/model/AddFieldsData.js +2 -2
- package/dist/model/BatchGeneratePdfs201Response.js +7 -7
- package/dist/model/CombinePdfsData.js +7 -7
- package/dist/model/CombinedSubmission.js +21 -21
- package/dist/model/CombinedSubmissionAction.js +13 -13
- package/dist/model/CopyTemplateOptions.js +7 -7
- package/dist/model/CreateCombinedSubmissionResponse.js +7 -7
- package/dist/model/CreateCustomFileData.js +7 -7
- package/dist/model/CreateCustomFileResponse.js +7 -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 +106 -2
- package/dist/model/CreateSubmissionDataRequestEventRequest.js +31 -7
- package/dist/model/CreateSubmissionDataRequestEventResponse.js +2 -2
- package/dist/model/CreateSubmissionDataRequestResponse.js +7 -7
- package/dist/model/CreateSubmissionDataRequestTokenResponse.js +2 -2
- package/dist/model/CreateSubmissionResponse.js +2 -2
- package/dist/model/CustomFile.js +2 -2
- package/dist/model/ErrorOrMultipleErrorsResponse.js +151 -0
- package/dist/model/ErrorResponse.js +2 -2
- package/dist/model/Folder.js +7 -7
- package/dist/model/JsonSchema.js +2 -2
- package/dist/model/ListSubmissionsResponse.js +7 -7
- package/dist/model/MoveFolderData.js +2 -2
- package/dist/model/MoveTemplateData.js +7 -7
- package/dist/model/MultipleErrorsResponse.js +2 -2
- package/dist/model/PublishVersionData.js +7 -7
- package/dist/model/RenameFolderData.js +2 -2
- package/dist/model/RestoreVersionData.js +2 -2
- package/dist/model/Submission.js +35 -35
- package/dist/model/Submission422Response.js +165 -0
- package/dist/model/SubmissionAction.js +13 -13
- package/dist/model/SubmissionBatch.js +15 -15
- package/dist/model/SubmissionBatchData.js +26 -2
- package/dist/model/SubmissionBatchWithSubmissions.js +15 -15
- package/dist/model/SubmissionDataRequest.js +31 -31
- package/dist/model/SubmissionDataRequestEvent.js +17 -17
- package/dist/model/SubmissionDataRequestShow.js +33 -33
- package/dist/model/SubmissionDataRequestToken.js +9 -9
- package/dist/model/SubmissionPreview.js +35 -35
- package/dist/model/SuccessErrorResponse.js +2 -2
- package/dist/model/SuccessMultipleErrorsResponse.js +2 -2
- package/dist/model/Template.js +87 -87
- package/dist/model/TemplateAddFieldsResponse.js +2 -2
- package/dist/model/TemplateDeleteResponse.js +2 -2
- package/dist/model/TemplatePreview.js +75 -75
- package/dist/model/TemplatePublishVersionResponse.js +2 -2
- package/dist/model/UpdateHtmlTemplate.js +2 -2
- package/dist/model/{CombinedSubmissionData.js → UpdatePdfTemplate.js} +27 -67
- package/dist/model/UpdateSubmissionDataRequestData.js +153 -2
- package/dist/model/UploadPresignResponse.js +2 -2
- package/package.json +1 -1
- package/dist/model/CreateHtmlSubmissionData.js +0 -173
|
@@ -17,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
19
|
* DocSpring API
|
|
20
|
-
* DocSpring
|
|
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
|
*
|
|
22
22
|
* The version of the OpenAPI document: v1
|
|
23
23
|
*
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The ListSubmissionsResponse model module.
|
|
32
32
|
* @module model/ListSubmissionsResponse
|
|
33
|
-
* @version
|
|
33
|
+
* @version 3.0.0
|
|
34
34
|
*/
|
|
35
35
|
var ListSubmissionsResponse = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -38,11 +38,11 @@ var ListSubmissionsResponse = /*#__PURE__*/function () {
|
|
|
38
38
|
* @alias module:model/ListSubmissionsResponse
|
|
39
39
|
* @param submissions {Array.<module:model/Submission>}
|
|
40
40
|
* @param limit {Number}
|
|
41
|
-
* @param
|
|
41
|
+
* @param next_cursor {String}
|
|
42
42
|
*/
|
|
43
|
-
function ListSubmissionsResponse(submissions, limit,
|
|
43
|
+
function ListSubmissionsResponse(submissions, limit, next_cursor) {
|
|
44
44
|
_classCallCheck(this, ListSubmissionsResponse);
|
|
45
|
-
ListSubmissionsResponse.initialize(this, submissions, limit,
|
|
45
|
+
ListSubmissionsResponse.initialize(this, submissions, limit, next_cursor);
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
@@ -52,10 +52,10 @@ var ListSubmissionsResponse = /*#__PURE__*/function () {
|
|
|
52
52
|
*/
|
|
53
53
|
return _createClass(ListSubmissionsResponse, null, [{
|
|
54
54
|
key: "initialize",
|
|
55
|
-
value: function initialize(obj, submissions, limit,
|
|
55
|
+
value: function initialize(obj, submissions, limit, next_cursor) {
|
|
56
56
|
obj['submissions'] = submissions;
|
|
57
57
|
obj['limit'] = limit;
|
|
58
|
-
obj['next_cursor'] =
|
|
58
|
+
obj['next_cursor'] = next_cursor;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -13,7 +13,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
13
13
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
14
14
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
15
15
|
* DocSpring API
|
|
16
|
-
* DocSpring
|
|
16
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
17
17
|
*
|
|
18
18
|
* The version of the OpenAPI document: v1
|
|
19
19
|
*
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The MoveFolderData model module.
|
|
28
28
|
* @module model/MoveFolderData
|
|
29
|
-
* @version
|
|
29
|
+
* @version 3.0.0
|
|
30
30
|
*/
|
|
31
31
|
var MoveFolderData = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* DocSpring
|
|
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
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,17 +29,17 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The MoveTemplateData model module.
|
|
31
31
|
* @module model/MoveTemplateData
|
|
32
|
-
* @version
|
|
32
|
+
* @version 3.0.0
|
|
33
33
|
*/
|
|
34
34
|
var MoveTemplateData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>MoveTemplateData</code>.
|
|
37
37
|
* @alias module:model/MoveTemplateData
|
|
38
|
-
* @param
|
|
38
|
+
* @param parent_folder_id {String}
|
|
39
39
|
*/
|
|
40
|
-
function MoveTemplateData(
|
|
40
|
+
function MoveTemplateData(parent_folder_id) {
|
|
41
41
|
_classCallCheck(this, MoveTemplateData);
|
|
42
|
-
MoveTemplateData.initialize(this,
|
|
42
|
+
MoveTemplateData.initialize(this, parent_folder_id);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -49,8 +49,8 @@ var MoveTemplateData = /*#__PURE__*/function () {
|
|
|
49
49
|
*/
|
|
50
50
|
return _createClass(MoveTemplateData, null, [{
|
|
51
51
|
key: "initialize",
|
|
52
|
-
value: function initialize(obj,
|
|
53
|
-
obj['parent_folder_id'] =
|
|
52
|
+
value: function initialize(obj, parent_folder_id) {
|
|
53
|
+
obj['parent_folder_id'] = parent_folder_id;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* DocSpring
|
|
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
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The MultipleErrorsResponse model module.
|
|
31
31
|
* @module model/MultipleErrorsResponse
|
|
32
|
-
* @version
|
|
32
|
+
* @version 3.0.0
|
|
33
33
|
*/
|
|
34
34
|
var MultipleErrorsResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* DocSpring
|
|
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
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,17 +29,17 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The PublishVersionData model module.
|
|
31
31
|
* @module model/PublishVersionData
|
|
32
|
-
* @version
|
|
32
|
+
* @version 3.0.0
|
|
33
33
|
*/
|
|
34
34
|
var PublishVersionData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>PublishVersionData</code>.
|
|
37
37
|
* @alias module:model/PublishVersionData
|
|
38
|
-
* @param
|
|
38
|
+
* @param version_type {String}
|
|
39
39
|
*/
|
|
40
|
-
function PublishVersionData(
|
|
40
|
+
function PublishVersionData(version_type) {
|
|
41
41
|
_classCallCheck(this, PublishVersionData);
|
|
42
|
-
PublishVersionData.initialize(this,
|
|
42
|
+
PublishVersionData.initialize(this, version_type);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -49,8 +49,8 @@ var PublishVersionData = /*#__PURE__*/function () {
|
|
|
49
49
|
*/
|
|
50
50
|
return _createClass(PublishVersionData, null, [{
|
|
51
51
|
key: "initialize",
|
|
52
|
-
value: function initialize(obj,
|
|
53
|
-
obj['version_type'] =
|
|
52
|
+
value: function initialize(obj, version_type) {
|
|
53
|
+
obj['version_type'] = version_type;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* DocSpring
|
|
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
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The RenameFolderData model module.
|
|
31
31
|
* @module model/RenameFolderData
|
|
32
|
-
* @version
|
|
32
|
+
* @version 3.0.0
|
|
33
33
|
*/
|
|
34
34
|
var RenameFolderData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* DocSpring
|
|
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
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The RestoreVersionData model module.
|
|
31
31
|
* @module model/RestoreVersionData
|
|
32
|
-
* @version
|
|
32
|
+
* @version 3.0.0
|
|
33
33
|
*/
|
|
34
34
|
var RestoreVersionData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
package/dist/model/Submission.js
CHANGED
|
@@ -18,7 +18,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
18
18
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
19
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
20
20
|
* DocSpring API
|
|
21
|
-
* DocSpring
|
|
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
|
*
|
|
23
23
|
* The version of the OpenAPI document: v1
|
|
24
24
|
*
|
|
@@ -31,42 +31,42 @@ 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
|
|
34
|
+
* @version 3.0.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
|
-
* @param
|
|
41
|
-
* @param
|
|
40
|
+
* @param batch_id {String}
|
|
41
|
+
* @param data_requests {Array.<module:model/SubmissionDataRequest>}
|
|
42
42
|
* @param editable {Boolean}
|
|
43
43
|
* @param expired {Boolean}
|
|
44
|
-
* @param
|
|
44
|
+
* @param expires_at {String}
|
|
45
45
|
* @param id {String}
|
|
46
|
-
* @param
|
|
46
|
+
* @param json_schema_errors {Array.<String>}
|
|
47
47
|
* @param metadata {Object}
|
|
48
48
|
* @param password {String}
|
|
49
|
-
* @param
|
|
49
|
+
* @param processed_at {String}
|
|
50
50
|
* @param state {module:model/Submission.StateEnum}
|
|
51
|
-
* @param
|
|
52
|
-
* @param
|
|
53
|
-
* @param
|
|
51
|
+
* @param template_id {String}
|
|
52
|
+
* @param template_type {module:model/Submission.TemplateTypeEnum}
|
|
53
|
+
* @param template_version {String}
|
|
54
54
|
* @param test {Boolean}
|
|
55
|
-
* @param
|
|
56
|
-
* @param
|
|
57
|
-
* @param
|
|
58
|
-
* @param
|
|
59
|
-
* @param
|
|
60
|
-
* @param
|
|
61
|
-
* @param
|
|
55
|
+
* @param truncated_text {Object}
|
|
56
|
+
* @param pdf_hash {String}
|
|
57
|
+
* @param download_url {String}
|
|
58
|
+
* @param permanent_download_url {String}
|
|
59
|
+
* @param preview_download_url {String}
|
|
60
|
+
* @param preview_generated_at {String}
|
|
61
|
+
* @param audit_trail_download_url {String}
|
|
62
62
|
* @param actions {Array.<module:model/SubmissionAction>}
|
|
63
63
|
* @param source {module:model/Submission.SourceEnum}
|
|
64
64
|
* @param referrer {String}
|
|
65
65
|
* @param data {Object}
|
|
66
66
|
*/
|
|
67
|
-
function Submission(
|
|
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, source, referrer, data) {
|
|
68
68
|
_classCallCheck(this, Submission);
|
|
69
|
-
Submission.initialize(this,
|
|
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, source, referrer, data);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
/**
|
|
@@ -76,29 +76,29 @@ var Submission = /*#__PURE__*/function () {
|
|
|
76
76
|
*/
|
|
77
77
|
return _createClass(Submission, null, [{
|
|
78
78
|
key: "initialize",
|
|
79
|
-
value: function initialize(obj,
|
|
80
|
-
obj['batch_id'] =
|
|
81
|
-
obj['data_requests'] =
|
|
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, source, referrer, data) {
|
|
80
|
+
obj['batch_id'] = batch_id;
|
|
81
|
+
obj['data_requests'] = data_requests;
|
|
82
82
|
obj['editable'] = editable;
|
|
83
83
|
obj['expired'] = expired;
|
|
84
|
-
obj['expires_at'] =
|
|
84
|
+
obj['expires_at'] = expires_at;
|
|
85
85
|
obj['id'] = id;
|
|
86
|
-
obj['json_schema_errors'] =
|
|
86
|
+
obj['json_schema_errors'] = json_schema_errors;
|
|
87
87
|
obj['metadata'] = metadata;
|
|
88
88
|
obj['password'] = password;
|
|
89
|
-
obj['processed_at'] =
|
|
89
|
+
obj['processed_at'] = processed_at;
|
|
90
90
|
obj['state'] = state;
|
|
91
|
-
obj['template_id'] =
|
|
92
|
-
obj['template_type'] =
|
|
93
|
-
obj['template_version'] =
|
|
91
|
+
obj['template_id'] = template_id;
|
|
92
|
+
obj['template_type'] = template_type;
|
|
93
|
+
obj['template_version'] = template_version;
|
|
94
94
|
obj['test'] = test;
|
|
95
|
-
obj['truncated_text'] =
|
|
96
|
-
obj['pdf_hash'] =
|
|
97
|
-
obj['download_url'] =
|
|
98
|
-
obj['permanent_download_url'] =
|
|
99
|
-
obj['preview_download_url'] =
|
|
100
|
-
obj['preview_generated_at'] =
|
|
101
|
-
obj['audit_trail_download_url'] =
|
|
95
|
+
obj['truncated_text'] = truncated_text;
|
|
96
|
+
obj['pdf_hash'] = pdf_hash;
|
|
97
|
+
obj['download_url'] = download_url;
|
|
98
|
+
obj['permanent_download_url'] = permanent_download_url;
|
|
99
|
+
obj['preview_download_url'] = preview_download_url;
|
|
100
|
+
obj['preview_generated_at'] = preview_generated_at;
|
|
101
|
+
obj['audit_trail_download_url'] = audit_trail_download_url;
|
|
102
102
|
obj['actions'] = actions;
|
|
103
103
|
obj['source'] = source;
|
|
104
104
|
obj['referrer'] = referrer;
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _SubmissionPreview = _interopRequireDefault(require("./SubmissionPreview"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
11
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
13
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
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
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
19
|
+
* DocSpring API
|
|
20
|
+
* Use DocSpring's API to programmatically fill out PDF forms, convert HTML to PDFs, merge PDFs, or request legally binding e-signatures.
|
|
21
|
+
*
|
|
22
|
+
* The version of the OpenAPI document: v1
|
|
23
|
+
*
|
|
24
|
+
*
|
|
25
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
26
|
+
* https://openapi-generator.tech
|
|
27
|
+
* Do not edit the class manually.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
/**
|
|
31
|
+
* The Submission422Response model module.
|
|
32
|
+
* @module model/Submission422Response
|
|
33
|
+
* @version 3.0.0
|
|
34
|
+
*/
|
|
35
|
+
var Submission422Response = /*#__PURE__*/function () {
|
|
36
|
+
/**
|
|
37
|
+
* Constructs a new <code>Submission422Response</code>.
|
|
38
|
+
* @alias module:model/Submission422Response
|
|
39
|
+
* @param status {module:model/Submission422Response.StatusEnum}
|
|
40
|
+
*/
|
|
41
|
+
function Submission422Response(status) {
|
|
42
|
+
_classCallCheck(this, Submission422Response);
|
|
43
|
+
Submission422Response.initialize(this, status);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Initializes the fields of this object.
|
|
48
|
+
* This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins).
|
|
49
|
+
* Only for internal use.
|
|
50
|
+
*/
|
|
51
|
+
return _createClass(Submission422Response, null, [{
|
|
52
|
+
key: "initialize",
|
|
53
|
+
value: function initialize(obj, status) {
|
|
54
|
+
obj['status'] = status;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Constructs a <code>Submission422Response</code> from a plain JavaScript object, optionally creating a new instance.
|
|
59
|
+
* Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not.
|
|
60
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
61
|
+
* @param {module:model/Submission422Response} obj Optional instance to populate.
|
|
62
|
+
* @return {module:model/Submission422Response} The populated <code>Submission422Response</code> instance.
|
|
63
|
+
*/
|
|
64
|
+
}, {
|
|
65
|
+
key: "constructFromObject",
|
|
66
|
+
value: function constructFromObject(data, obj) {
|
|
67
|
+
if (data) {
|
|
68
|
+
obj = obj || new Submission422Response();
|
|
69
|
+
if (data.hasOwnProperty('status')) {
|
|
70
|
+
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
71
|
+
}
|
|
72
|
+
if (data.hasOwnProperty('error')) {
|
|
73
|
+
obj['error'] = _ApiClient["default"].convertToType(data['error'], 'String');
|
|
74
|
+
}
|
|
75
|
+
if (data.hasOwnProperty('submission')) {
|
|
76
|
+
obj['submission'] = _SubmissionPreview["default"].constructFromObject(data['submission']);
|
|
77
|
+
}
|
|
78
|
+
if (data.hasOwnProperty('errors')) {
|
|
79
|
+
obj['errors'] = _ApiClient["default"].convertToType(data['errors'], ['String']);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return obj;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Validates the JSON data with respect to <code>Submission422Response</code>.
|
|
87
|
+
* @param {Object} data The plain JavaScript object bearing properties of interest.
|
|
88
|
+
* @return {boolean} to indicate whether the JSON data is valid with respect to <code>Submission422Response</code>.
|
|
89
|
+
*/
|
|
90
|
+
}, {
|
|
91
|
+
key: "validateJSON",
|
|
92
|
+
value: function validateJSON(data) {
|
|
93
|
+
// check to make sure all required properties are present in the JSON string
|
|
94
|
+
var _iterator = _createForOfIteratorHelper(Submission422Response.RequiredProperties),
|
|
95
|
+
_step;
|
|
96
|
+
try {
|
|
97
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
98
|
+
var property = _step.value;
|
|
99
|
+
if (!data.hasOwnProperty(property)) {
|
|
100
|
+
throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// ensure the json data is a string
|
|
104
|
+
} catch (err) {
|
|
105
|
+
_iterator.e(err);
|
|
106
|
+
} finally {
|
|
107
|
+
_iterator.f();
|
|
108
|
+
}
|
|
109
|
+
if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) {
|
|
110
|
+
throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']);
|
|
111
|
+
}
|
|
112
|
+
// ensure the json data is a string
|
|
113
|
+
if (data['error'] && !(typeof data['error'] === 'string' || data['error'] instanceof String)) {
|
|
114
|
+
throw new Error("Expected the field `error` to be a primitive type in the JSON string but got " + data['error']);
|
|
115
|
+
}
|
|
116
|
+
// validate the optional field `submission`
|
|
117
|
+
if (data['submission']) {
|
|
118
|
+
// data not null
|
|
119
|
+
_SubmissionPreview["default"].validateJSON(data['submission']);
|
|
120
|
+
}
|
|
121
|
+
// ensure the json data is an array
|
|
122
|
+
if (!Array.isArray(data['errors'])) {
|
|
123
|
+
throw new Error("Expected the field `errors` to be an array in the JSON data but got " + data['errors']);
|
|
124
|
+
}
|
|
125
|
+
return true;
|
|
126
|
+
}
|
|
127
|
+
}]);
|
|
128
|
+
}();
|
|
129
|
+
Submission422Response.RequiredProperties = ["status"];
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* @member {module:model/Submission422Response.StatusEnum} status
|
|
133
|
+
*/
|
|
134
|
+
Submission422Response.prototype['status'] = undefined;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Single error message (for non-validation errors)
|
|
138
|
+
* @member {String} error
|
|
139
|
+
*/
|
|
140
|
+
Submission422Response.prototype['error'] = undefined;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* @member {module:model/SubmissionPreview} submission
|
|
144
|
+
*/
|
|
145
|
+
Submission422Response.prototype['submission'] = undefined;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Array of validation error messages (when submission data is invalid)
|
|
149
|
+
* @member {Array.<String>} errors
|
|
150
|
+
*/
|
|
151
|
+
Submission422Response.prototype['errors'] = undefined;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Allowed values for the <code>status</code> property.
|
|
155
|
+
* @enum {String}
|
|
156
|
+
* @readonly
|
|
157
|
+
*/
|
|
158
|
+
Submission422Response['StatusEnum'] = {
|
|
159
|
+
/**
|
|
160
|
+
* value: "error"
|
|
161
|
+
* @const
|
|
162
|
+
*/
|
|
163
|
+
"error": "error"
|
|
164
|
+
};
|
|
165
|
+
var _default = exports["default"] = Submission422Response;
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* DocSpring
|
|
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
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,22 +29,22 @@ 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
|
|
32
|
+
* @version 3.0.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
38
|
* @param id {String}
|
|
39
|
-
* @param
|
|
39
|
+
* @param integration_id {String}
|
|
40
40
|
* @param state {module:model/SubmissionAction.StateEnum}
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
41
|
+
* @param action_type {module:model/SubmissionAction.ActionTypeEnum}
|
|
42
|
+
* @param action_category {module:model/SubmissionAction.ActionCategoryEnum}
|
|
43
|
+
* @param result_data {Object}
|
|
44
44
|
*/
|
|
45
|
-
function SubmissionAction(id,
|
|
45
|
+
function SubmissionAction(id, integration_id, state, action_type, action_category, result_data) {
|
|
46
46
|
_classCallCheck(this, SubmissionAction);
|
|
47
|
-
SubmissionAction.initialize(this, id,
|
|
47
|
+
SubmissionAction.initialize(this, id, integration_id, state, action_type, action_category, result_data);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
/**
|
|
@@ -54,13 +54,13 @@ var SubmissionAction = /*#__PURE__*/function () {
|
|
|
54
54
|
*/
|
|
55
55
|
return _createClass(SubmissionAction, null, [{
|
|
56
56
|
key: "initialize",
|
|
57
|
-
value: function initialize(obj, id,
|
|
57
|
+
value: function initialize(obj, id, integration_id, state, action_type, action_category, result_data) {
|
|
58
58
|
obj['id'] = id;
|
|
59
|
-
obj['integration_id'] =
|
|
59
|
+
obj['integration_id'] = integration_id;
|
|
60
60
|
obj['state'] = state;
|
|
61
|
-
obj['action_type'] =
|
|
62
|
-
obj['action_category'] =
|
|
63
|
-
obj['result_data'] =
|
|
61
|
+
obj['action_type'] = action_type;
|
|
62
|
+
obj['action_category'] = action_category;
|
|
63
|
+
obj['result_data'] = result_data;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/**
|
|
@@ -16,7 +16,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
18
18
|
* DocSpring API
|
|
19
|
-
* DocSpring
|
|
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
|
*
|
|
21
21
|
* The version of the OpenAPI document: v1
|
|
22
22
|
*
|
|
@@ -29,7 +29,7 @@ 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
|
|
32
|
+
* @version 3.0.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionBatch = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -38,15 +38,15 @@ var SubmissionBatch = /*#__PURE__*/function () {
|
|
|
38
38
|
* @param id {String}
|
|
39
39
|
* @param state {module:model/SubmissionBatch.StateEnum}
|
|
40
40
|
* @param metadata {Object}
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
45
|
-
* @param
|
|
41
|
+
* @param processed_at {String}
|
|
42
|
+
* @param total_count {Number}
|
|
43
|
+
* @param pending_count {Number}
|
|
44
|
+
* @param error_count {Number}
|
|
45
|
+
* @param completion_percentage {Number}
|
|
46
46
|
*/
|
|
47
|
-
function SubmissionBatch(id, state, metadata,
|
|
47
|
+
function SubmissionBatch(id, state, metadata, processed_at, total_count, pending_count, error_count, completion_percentage) {
|
|
48
48
|
_classCallCheck(this, SubmissionBatch);
|
|
49
|
-
SubmissionBatch.initialize(this, id, state, metadata,
|
|
49
|
+
SubmissionBatch.initialize(this, id, state, metadata, processed_at, total_count, pending_count, error_count, completion_percentage);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
@@ -56,15 +56,15 @@ var SubmissionBatch = /*#__PURE__*/function () {
|
|
|
56
56
|
*/
|
|
57
57
|
return _createClass(SubmissionBatch, null, [{
|
|
58
58
|
key: "initialize",
|
|
59
|
-
value: function initialize(obj, id, state, metadata,
|
|
59
|
+
value: function initialize(obj, id, state, metadata, processed_at, total_count, pending_count, error_count, completion_percentage) {
|
|
60
60
|
obj['id'] = id;
|
|
61
61
|
obj['state'] = state;
|
|
62
62
|
obj['metadata'] = metadata;
|
|
63
|
-
obj['processed_at'] =
|
|
64
|
-
obj['total_count'] =
|
|
65
|
-
obj['pending_count'] =
|
|
66
|
-
obj['error_count'] =
|
|
67
|
-
obj['completion_percentage'] =
|
|
63
|
+
obj['processed_at'] = processed_at;
|
|
64
|
+
obj['total_count'] = total_count;
|
|
65
|
+
obj['pending_count'] = pending_count;
|
|
66
|
+
obj['error_count'] = error_count;
|
|
67
|
+
obj['completion_percentage'] = completion_percentage;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
/**
|