docspring 2.1.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 +59 -48
- package/dist/ApiClient.js +4 -4
- package/dist/api/{PDFApi.js → Client.js} +698 -384
- package/dist/index.js +56 -21
- package/dist/model/AddFieldsData.js +3 -3
- package/dist/model/BatchGeneratePdfs201Response.js +8 -8
- package/dist/model/CombinePdfsData.js +10 -8
- package/dist/model/CombinedSubmission.js +22 -22
- package/dist/model/CombinedSubmissionAction.js +29 -15
- package/dist/model/CopyTemplateOptions.js +19 -30
- package/dist/model/CreateCombinedSubmissionResponse.js +8 -8
- package/dist/model/CreateCustomFileData.js +8 -8
- package/dist/model/CreateCustomFileResponse.js +8 -8
- package/dist/model/CreateFolderData.js +3 -3
- package/dist/model/CreateHtmlTemplate.js +3 -3
- package/dist/model/CreatePdfSubmissionData.js +3 -3
- package/dist/model/CreatePdfTemplate.js +3 -3
- package/dist/model/CreateSubmissionDataRequestData.js +107 -3
- package/dist/model/CreateSubmissionDataRequestEventRequest.js +32 -8
- package/dist/model/CreateSubmissionDataRequestEventResponse.js +3 -3
- package/dist/model/CreateSubmissionDataRequestResponse.js +8 -8
- package/dist/model/CreateSubmissionDataRequestTokenResponse.js +3 -3
- package/dist/model/CreateSubmissionResponse.js +3 -3
- package/dist/model/{CombinedSubmissionData.js → CreateWebhookData.js} +28 -68
- package/dist/model/CustomFile.js +3 -3
- package/dist/model/ErrorOrMultipleErrorsResponse.js +151 -0
- package/dist/model/ErrorResponse.js +3 -3
- package/dist/model/Folder.js +8 -8
- package/dist/model/JsonSchema.js +35 -3
- package/dist/model/ListSubmissionsResponse.js +8 -8
- package/dist/model/MoveFolderData.js +3 -3
- package/dist/model/MoveTemplateData.js +20 -8
- package/dist/model/MultipleErrorsResponse.js +3 -3
- package/dist/model/PublishVersionData.js +8 -8
- package/dist/model/RenameFolderData.js +3 -3
- package/dist/model/RestoreVersionData.js +3 -3
- package/dist/model/Submission.js +57 -44
- package/dist/model/Submission422Response.js +165 -0
- package/dist/model/SubmissionAction.js +29 -15
- package/dist/model/SubmissionBatch.js +16 -16
- package/dist/model/SubmissionBatchData.js +27 -3
- package/dist/model/SubmissionBatchWithSubmissions.js +16 -16
- package/dist/model/SubmissionDataRequest.js +53 -34
- package/dist/model/SubmissionDataRequestEvent.js +18 -18
- package/dist/model/SubmissionDataRequestShow.js +55 -36
- package/dist/model/SubmissionDataRequestToken.js +10 -10
- package/dist/model/SubmissionPreview.js +57 -38
- package/dist/model/SuccessErrorResponse.js +3 -3
- package/dist/model/SuccessMultipleErrorsResponse.js +3 -3
- package/dist/model/Template.js +203 -90
- package/dist/model/TemplateAddFieldsResponse.js +3 -3
- package/dist/model/TemplateDeleteResponse.js +3 -3
- package/dist/model/TemplateModelCodeResponse.js +193 -0
- package/dist/model/TemplatePreview.js +167 -78
- package/dist/model/TemplatePublishVersionResponse.js +3 -3
- package/dist/model/UpdateHtmlTemplate.js +3 -3
- package/dist/model/UpdatePdfTemplate.js +108 -0
- package/dist/model/UpdateSubmissionDataRequestData.js +154 -3
- package/dist/model/UpdateWebhookData.js +108 -0
- package/dist/model/UploadPresignResponse.js +3 -3
- package/dist/model/Webhook.js +378 -0
- package/package.json +2 -2
- package/dist/model/CreateHtmlSubmissionData.js +0 -173
|
@@ -14,9 +14,9 @@ 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
|
-
* 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,23 @@ 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.1.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
|
+
* @param error_message {String}
|
|
44
45
|
*/
|
|
45
|
-
function SubmissionAction(id,
|
|
46
|
+
function SubmissionAction(id, integration_id, state, action_type, action_category, result_data, error_message) {
|
|
46
47
|
_classCallCheck(this, SubmissionAction);
|
|
47
|
-
SubmissionAction.initialize(this, id,
|
|
48
|
+
SubmissionAction.initialize(this, id, integration_id, state, action_type, action_category, result_data, error_message);
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
/**
|
|
@@ -54,13 +55,14 @@ var SubmissionAction = /*#__PURE__*/function () {
|
|
|
54
55
|
*/
|
|
55
56
|
return _createClass(SubmissionAction, null, [{
|
|
56
57
|
key: "initialize",
|
|
57
|
-
value: function initialize(obj, id,
|
|
58
|
+
value: function initialize(obj, id, integration_id, state, action_type, action_category, result_data, error_message) {
|
|
58
59
|
obj['id'] = id;
|
|
59
|
-
obj['integration_id'] =
|
|
60
|
+
obj['integration_id'] = integration_id;
|
|
60
61
|
obj['state'] = state;
|
|
61
|
-
obj['action_type'] =
|
|
62
|
-
obj['action_category'] =
|
|
63
|
-
obj['result_data'] =
|
|
62
|
+
obj['action_type'] = action_type;
|
|
63
|
+
obj['action_category'] = action_category;
|
|
64
|
+
obj['result_data'] = result_data;
|
|
65
|
+
obj['error_message'] = error_message;
|
|
64
66
|
}
|
|
65
67
|
|
|
66
68
|
/**
|
|
@@ -93,6 +95,9 @@ var SubmissionAction = /*#__PURE__*/function () {
|
|
|
93
95
|
if (data.hasOwnProperty('result_data')) {
|
|
94
96
|
obj['result_data'] = _ApiClient["default"].convertToType(data['result_data'], Object);
|
|
95
97
|
}
|
|
98
|
+
if (data.hasOwnProperty('error_message')) {
|
|
99
|
+
obj['error_message'] = _ApiClient["default"].convertToType(data['error_message'], 'String');
|
|
100
|
+
}
|
|
96
101
|
}
|
|
97
102
|
return obj;
|
|
98
103
|
}
|
|
@@ -140,11 +145,15 @@ var SubmissionAction = /*#__PURE__*/function () {
|
|
|
140
145
|
if (data['action_category'] && !(typeof data['action_category'] === 'string' || data['action_category'] instanceof String)) {
|
|
141
146
|
throw new Error("Expected the field `action_category` to be a primitive type in the JSON string but got " + data['action_category']);
|
|
142
147
|
}
|
|
148
|
+
// ensure the json data is a string
|
|
149
|
+
if (data['error_message'] && !(typeof data['error_message'] === 'string' || data['error_message'] instanceof String)) {
|
|
150
|
+
throw new Error("Expected the field `error_message` to be a primitive type in the JSON string but got " + data['error_message']);
|
|
151
|
+
}
|
|
143
152
|
return true;
|
|
144
153
|
}
|
|
145
154
|
}]);
|
|
146
155
|
}();
|
|
147
|
-
SubmissionAction.RequiredProperties = ["id", "integration_id", "state", "action_type", "action_category", "result_data"];
|
|
156
|
+
SubmissionAction.RequiredProperties = ["id", "integration_id", "state", "action_type", "action_category", "result_data", "error_message"];
|
|
148
157
|
|
|
149
158
|
/**
|
|
150
159
|
* @member {String} id
|
|
@@ -176,6 +185,11 @@ SubmissionAction.prototype['action_category'] = undefined;
|
|
|
176
185
|
*/
|
|
177
186
|
SubmissionAction.prototype['result_data'] = undefined;
|
|
178
187
|
|
|
188
|
+
/**
|
|
189
|
+
* @member {String} error_message
|
|
190
|
+
*/
|
|
191
|
+
SubmissionAction.prototype['error_message'] = undefined;
|
|
192
|
+
|
|
179
193
|
/**
|
|
180
194
|
* Allowed values for the <code>state</code> property.
|
|
181
195
|
* @enum {String}
|
|
@@ -14,9 +14,9 @@ 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
|
-
* 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.1.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
|
/**
|
|
@@ -14,9 +14,9 @@ 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
|
-
* 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 SubmissionBatchData model module.
|
|
31
31
|
* @module model/SubmissionBatchData
|
|
32
|
-
* @version
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionBatchData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -71,6 +71,12 @@ var SubmissionBatchData = /*#__PURE__*/function () {
|
|
|
71
71
|
if (data.hasOwnProperty('submissions')) {
|
|
72
72
|
obj['submissions'] = _ApiClient["default"].convertToType(data['submissions'], [Object]);
|
|
73
73
|
}
|
|
74
|
+
if (data.hasOwnProperty('template_id')) {
|
|
75
|
+
obj['template_id'] = _ApiClient["default"].convertToType(data['template_id'], 'String');
|
|
76
|
+
}
|
|
77
|
+
if (data.hasOwnProperty('template_version')) {
|
|
78
|
+
obj['template_version'] = _ApiClient["default"].convertToType(data['template_version'], 'String');
|
|
79
|
+
}
|
|
74
80
|
if (data.hasOwnProperty('test')) {
|
|
75
81
|
obj['test'] = _ApiClient["default"].convertToType(data['test'], 'Boolean');
|
|
76
82
|
}
|
|
@@ -105,6 +111,14 @@ var SubmissionBatchData = /*#__PURE__*/function () {
|
|
|
105
111
|
if (!Array.isArray(data['submissions'])) {
|
|
106
112
|
throw new Error("Expected the field `submissions` to be an array in the JSON data but got " + data['submissions']);
|
|
107
113
|
}
|
|
114
|
+
// ensure the json data is a string
|
|
115
|
+
if (data['template_id'] && !(typeof data['template_id'] === 'string' || data['template_id'] instanceof String)) {
|
|
116
|
+
throw new Error("Expected the field `template_id` to be a primitive type in the JSON string but got " + data['template_id']);
|
|
117
|
+
}
|
|
118
|
+
// ensure the json data is a string
|
|
119
|
+
if (data['template_version'] && !(typeof data['template_version'] === 'string' || data['template_version'] instanceof String)) {
|
|
120
|
+
throw new Error("Expected the field `template_version` to be a primitive type in the JSON string but got " + data['template_version']);
|
|
121
|
+
}
|
|
108
122
|
return true;
|
|
109
123
|
}
|
|
110
124
|
}]);
|
|
@@ -121,6 +135,16 @@ SubmissionBatchData.prototype['metadata'] = undefined;
|
|
|
121
135
|
*/
|
|
122
136
|
SubmissionBatchData.prototype['submissions'] = undefined;
|
|
123
137
|
|
|
138
|
+
/**
|
|
139
|
+
* @member {String} template_id
|
|
140
|
+
*/
|
|
141
|
+
SubmissionBatchData.prototype['template_id'] = undefined;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* @member {String} template_version
|
|
145
|
+
*/
|
|
146
|
+
SubmissionBatchData.prototype['template_version'] = undefined;
|
|
147
|
+
|
|
124
148
|
/**
|
|
125
149
|
* @member {Boolean} test
|
|
126
150
|
*/
|
|
@@ -15,9 +15,9 @@ function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Can
|
|
|
15
15
|
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
16
16
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
17
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
18
|
-
function _toPrimitive(t,
|
|
18
|
+
function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r; if ("undefined" != typeof Symbol && void 0 !== (r = t[Symbol.toPrimitive])) { var i = r.call(t, e || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === e ? String : Number)(t); } /**
|
|
19
19
|
* DocSpring API
|
|
20
|
-
* 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 SubmissionBatchWithSubmissions model module.
|
|
32
32
|
* @module model/SubmissionBatchWithSubmissions
|
|
33
|
-
* @version
|
|
33
|
+
* @version 3.1.0
|
|
34
34
|
*/
|
|
35
35
|
var SubmissionBatchWithSubmissions = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -39,15 +39,15 @@ var SubmissionBatchWithSubmissions = /*#__PURE__*/function () {
|
|
|
39
39
|
* @param id {String}
|
|
40
40
|
* @param state {module:model/SubmissionBatchWithSubmissions.StateEnum}
|
|
41
41
|
* @param metadata {Object}
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
45
|
-
* @param
|
|
46
|
-
* @param
|
|
42
|
+
* @param processed_at {String}
|
|
43
|
+
* @param total_count {Number}
|
|
44
|
+
* @param pending_count {Number}
|
|
45
|
+
* @param error_count {Number}
|
|
46
|
+
* @param completion_percentage {Number}
|
|
47
47
|
*/
|
|
48
|
-
function SubmissionBatchWithSubmissions(id, state, metadata,
|
|
48
|
+
function SubmissionBatchWithSubmissions(id, state, metadata, processed_at, total_count, pending_count, error_count, completion_percentage) {
|
|
49
49
|
_classCallCheck(this, SubmissionBatchWithSubmissions);
|
|
50
|
-
SubmissionBatchWithSubmissions.initialize(this, id, state, metadata,
|
|
50
|
+
SubmissionBatchWithSubmissions.initialize(this, id, state, metadata, processed_at, total_count, pending_count, error_count, completion_percentage);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
/**
|
|
@@ -57,15 +57,15 @@ var SubmissionBatchWithSubmissions = /*#__PURE__*/function () {
|
|
|
57
57
|
*/
|
|
58
58
|
return _createClass(SubmissionBatchWithSubmissions, null, [{
|
|
59
59
|
key: "initialize",
|
|
60
|
-
value: function initialize(obj, id, state, metadata,
|
|
60
|
+
value: function initialize(obj, id, state, metadata, processed_at, total_count, pending_count, error_count, completion_percentage) {
|
|
61
61
|
obj['id'] = id;
|
|
62
62
|
obj['state'] = state;
|
|
63
63
|
obj['metadata'] = metadata;
|
|
64
|
-
obj['processed_at'] =
|
|
65
|
-
obj['total_count'] =
|
|
66
|
-
obj['pending_count'] =
|
|
67
|
-
obj['error_count'] =
|
|
68
|
-
obj['completion_percentage'] =
|
|
64
|
+
obj['processed_at'] = processed_at;
|
|
65
|
+
obj['total_count'] = total_count;
|
|
66
|
+
obj['pending_count'] = pending_count;
|
|
67
|
+
obj['error_count'] = error_count;
|
|
68
|
+
obj['completion_percentage'] = completion_percentage;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
/**
|
|
@@ -14,9 +14,9 @@ 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
|
-
* 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 SubmissionDataRequest model module.
|
|
31
31
|
* @module model/SubmissionDataRequest
|
|
32
|
-
* @version
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -39,27 +39,28 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
39
39
|
* @param email {String}
|
|
40
40
|
* @param name {String}
|
|
41
41
|
* @param order {Number}
|
|
42
|
-
* @param
|
|
42
|
+
* @param sort_order {Number}
|
|
43
43
|
* @param fields {Array.<String>}
|
|
44
44
|
* @param metadata {Object}
|
|
45
45
|
* @param state {module:model/SubmissionDataRequest.StateEnum}
|
|
46
|
-
* @param
|
|
47
|
-
* @param
|
|
46
|
+
* @param viewed_at {String}
|
|
47
|
+
* @param completed_at {String}
|
|
48
|
+
* @param declined_at {String}
|
|
48
49
|
* @param data {Object}
|
|
49
|
-
* @param
|
|
50
|
-
* @param
|
|
51
|
-
* @param
|
|
52
|
-
* @param
|
|
53
|
-
* @param
|
|
54
|
-
* @param
|
|
55
|
-
* @param
|
|
56
|
-
* @param
|
|
57
|
-
* @param
|
|
58
|
-
* @param
|
|
50
|
+
* @param auth_type {module:model/SubmissionDataRequest.AuthTypeEnum}
|
|
51
|
+
* @param auth_second_factor_type {module:model/SubmissionDataRequest.AuthSecondFactorTypeEnum}
|
|
52
|
+
* @param auth_provider {String}
|
|
53
|
+
* @param auth_session_started_at {String}
|
|
54
|
+
* @param auth_session_id_hash {String}
|
|
55
|
+
* @param auth_user_id_hash {String}
|
|
56
|
+
* @param auth_username_hash {String}
|
|
57
|
+
* @param auth_phone_number_hash {String}
|
|
58
|
+
* @param ip_address {String}
|
|
59
|
+
* @param user_agent {String}
|
|
59
60
|
*/
|
|
60
|
-
function SubmissionDataRequest(id, email, name, order,
|
|
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,
|
|
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,28 +70,29 @@ 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,
|
|
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;
|
|
76
77
|
obj['order'] = order;
|
|
77
|
-
obj['sort_order'] =
|
|
78
|
+
obj['sort_order'] = sort_order;
|
|
78
79
|
obj['fields'] = fields;
|
|
79
80
|
obj['metadata'] = metadata;
|
|
80
81
|
obj['state'] = state;
|
|
81
|
-
obj['viewed_at'] =
|
|
82
|
-
obj['completed_at'] =
|
|
82
|
+
obj['viewed_at'] = viewed_at;
|
|
83
|
+
obj['completed_at'] = completed_at;
|
|
84
|
+
obj['declined_at'] = declined_at;
|
|
83
85
|
obj['data'] = data;
|
|
84
|
-
obj['auth_type'] =
|
|
85
|
-
obj['auth_second_factor_type'] =
|
|
86
|
-
obj['auth_provider'] =
|
|
87
|
-
obj['auth_session_started_at'] =
|
|
88
|
-
obj['auth_session_id_hash'] =
|
|
89
|
-
obj['auth_user_id_hash'] =
|
|
90
|
-
obj['auth_username_hash'] =
|
|
91
|
-
obj['auth_phone_number_hash'] =
|
|
92
|
-
obj['ip_address'] =
|
|
93
|
-
obj['user_agent'] =
|
|
86
|
+
obj['auth_type'] = auth_type;
|
|
87
|
+
obj['auth_second_factor_type'] = auth_second_factor_type;
|
|
88
|
+
obj['auth_provider'] = auth_provider;
|
|
89
|
+
obj['auth_session_started_at'] = auth_session_started_at;
|
|
90
|
+
obj['auth_session_id_hash'] = auth_session_id_hash;
|
|
91
|
+
obj['auth_user_id_hash'] = auth_user_id_hash;
|
|
92
|
+
obj['auth_username_hash'] = auth_username_hash;
|
|
93
|
+
obj['auth_phone_number_hash'] = auth_phone_number_hash;
|
|
94
|
+
obj['ip_address'] = ip_address;
|
|
95
|
+
obj['user_agent'] = user_agent;
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
/**
|
|
@@ -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,9 +14,9 @@ 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
|
-
* 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,23 +29,23 @@ 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
|
|
32
|
+
* @version 3.1.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequestEvent = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SubmissionDataRequestEvent</code>.
|
|
37
37
|
* @alias module:model/SubmissionDataRequestEvent
|
|
38
38
|
* @param id {String}
|
|
39
|
-
* @param
|
|
40
|
-
* @param
|
|
41
|
-
* @param
|
|
42
|
-
* @param
|
|
43
|
-
* @param
|
|
44
|
-
* @param
|
|
39
|
+
* @param submission_id {String}
|
|
40
|
+
* @param submission_data_request_id {String}
|
|
41
|
+
* @param event_type {module:model/SubmissionDataRequestEvent.EventTypeEnum}
|
|
42
|
+
* @param message_type {module:model/SubmissionDataRequestEvent.MessageTypeEnum}
|
|
43
|
+
* @param message_recipient {String}
|
|
44
|
+
* @param occurred_at {String}
|
|
45
45
|
*/
|
|
46
|
-
function SubmissionDataRequestEvent(id,
|
|
46
|
+
function SubmissionDataRequestEvent(id, submission_id, submission_data_request_id, event_type, message_type, message_recipient, occurred_at) {
|
|
47
47
|
_classCallCheck(this, SubmissionDataRequestEvent);
|
|
48
|
-
SubmissionDataRequestEvent.initialize(this, id,
|
|
48
|
+
SubmissionDataRequestEvent.initialize(this, id, submission_id, submission_data_request_id, event_type, message_type, message_recipient, occurred_at);
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
/**
|
|
@@ -55,14 +55,14 @@ var SubmissionDataRequestEvent = /*#__PURE__*/function () {
|
|
|
55
55
|
*/
|
|
56
56
|
return _createClass(SubmissionDataRequestEvent, null, [{
|
|
57
57
|
key: "initialize",
|
|
58
|
-
value: function initialize(obj, id,
|
|
58
|
+
value: function initialize(obj, id, submission_id, submission_data_request_id, event_type, message_type, message_recipient, occurred_at) {
|
|
59
59
|
obj['id'] = id;
|
|
60
|
-
obj['submission_id'] =
|
|
61
|
-
obj['submission_data_request_id'] =
|
|
62
|
-
obj['event_type'] =
|
|
63
|
-
obj['message_type'] =
|
|
64
|
-
obj['message_recipient'] =
|
|
65
|
-
obj['occurred_at'] =
|
|
60
|
+
obj['submission_id'] = submission_id;
|
|
61
|
+
obj['submission_data_request_id'] = submission_data_request_id;
|
|
62
|
+
obj['event_type'] = event_type;
|
|
63
|
+
obj['message_type'] = message_type;
|
|
64
|
+
obj['message_recipient'] = message_recipient;
|
|
65
|
+
obj['occurred_at'] = occurred_at;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
/**
|