docspring 3.1.0 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +33 -0
- package/README.md +148 -215
- package/dist/ApiClient.js +2 -2
- package/dist/api/Client.js +1 -1
- package/dist/model/AddFieldsData.js +1 -1
- package/dist/model/BatchGeneratePdfs201Response.js +3 -6
- package/dist/model/CombinePdfsData.js +1 -1
- package/dist/model/CombinedSubmission.js +6 -21
- package/dist/model/CombinedSubmissionAction.js +3 -1
- package/dist/model/CopyTemplateOptions.js +1 -1
- package/dist/model/CreateCombinedSubmissionResponse.js +3 -6
- package/dist/model/CreateCustomFileData.js +1 -1
- package/dist/model/CreateCustomFileResponse.js +3 -6
- package/dist/model/CreateFolderData.js +1 -1
- package/dist/model/CreateHtmlTemplate.js +1 -1
- package/dist/model/CreatePdfSubmissionData.js +1 -1
- package/dist/model/CreatePdfTemplate.js +1 -1
- package/dist/model/CreateSubmissionDataRequestData.js +1 -1
- package/dist/model/CreateSubmissionDataRequestEventRequest.js +1 -1
- package/dist/model/CreateSubmissionDataRequestEventResponse.js +3 -6
- package/dist/model/CreateSubmissionDataRequestResponse.js +3 -6
- package/dist/model/CreateSubmissionDataRequestTokenResponse.js +3 -6
- package/dist/model/CreateSubmissionResponse.js +3 -6
- package/dist/model/CreateWebhookData.js +1 -1
- package/dist/model/CustomFile.js +3 -1
- package/dist/model/ErrorOrMultipleErrorsResponse.js +3 -1
- package/dist/model/ErrorResponse.js +3 -1
- package/dist/model/Folder.js +3 -1
- package/dist/model/JsonSchema.js +1 -1
- package/dist/model/ListSubmissionsResponse.js +6 -21
- package/dist/model/MoveFolderData.js +1 -1
- package/dist/model/MoveTemplateData.js +1 -1
- package/dist/model/MultipleErrorsResponse.js +3 -1
- package/dist/model/PublishVersionData.js +1 -1
- package/dist/model/RenameFolderData.js +1 -1
- package/dist/model/RestoreVersionData.js +1 -1
- package/dist/model/Submission.js +9 -41
- package/dist/model/Submission422Response.js +3 -6
- package/dist/model/SubmissionAction.js +3 -1
- package/dist/model/SubmissionBatch.js +3 -1
- package/dist/model/SubmissionBatchData.js +1 -1
- package/dist/model/SubmissionBatchWithSubmissions.js +6 -21
- package/dist/model/SubmissionDataRequest.js +3 -1
- package/dist/model/SubmissionDataRequestEvent.js +3 -1
- package/dist/model/SubmissionDataRequestShow.js +3 -1
- package/dist/model/SubmissionDataRequestToken.js +3 -1
- package/dist/model/SubmissionPreview.js +9 -41
- package/dist/model/SuccessErrorResponse.js +3 -1
- package/dist/model/SuccessMultipleErrorsResponse.js +3 -1
- package/dist/model/Template.js +17 -5
- package/dist/model/TemplateAddFieldsResponse.js +3 -1
- package/dist/model/TemplateDeleteResponse.js +3 -1
- package/dist/model/TemplateModelCodeResponse.js +3 -1
- package/dist/model/TemplatePreview.js +17 -5
- package/dist/model/TemplatePublishVersionResponse.js +3 -1
- package/dist/model/UpdateHtmlTemplate.js +1 -1
- package/dist/model/UpdatePdfTemplate.js +1 -1
- package/dist/model/UpdateSubmissionDataRequestData.js +1 -1
- package/dist/model/UpdateWebhookData.js +1 -1
- package/dist/model/UploadPresignResponse.js +3 -1
- package/dist/model/Webhook.js +3 -1
- package/package.json +13 -3
|
@@ -30,12 +30,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The Submission422Response model module.
|
|
32
32
|
* @module model/Submission422Response
|
|
33
|
-
* @version 3.
|
|
33
|
+
* @version 3.2.0
|
|
34
34
|
*/
|
|
35
35
|
var Submission422Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
37
|
* Constructs a new <code>Submission422Response</code>.
|
|
38
38
|
* @alias module:model/Submission422Response
|
|
39
|
+
* @extends Object
|
|
39
40
|
* @param status {module:model/Submission422Response.StatusEnum}
|
|
40
41
|
*/
|
|
41
42
|
function Submission422Response(status) {
|
|
@@ -66,6 +67,7 @@ var Submission422Response = /*#__PURE__*/function () {
|
|
|
66
67
|
value: function constructFromObject(data, obj) {
|
|
67
68
|
if (data) {
|
|
68
69
|
obj = obj || new Submission422Response();
|
|
70
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
69
71
|
if (data.hasOwnProperty('status')) {
|
|
70
72
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
71
73
|
}
|
|
@@ -113,11 +115,6 @@ var Submission422Response = /*#__PURE__*/function () {
|
|
|
113
115
|
if (data['error'] && !(typeof data['error'] === 'string' || data['error'] instanceof String)) {
|
|
114
116
|
throw new Error("Expected the field `error` to be a primitive type in the JSON string but got " + data['error']);
|
|
115
117
|
}
|
|
116
|
-
// validate the optional field `submission`
|
|
117
|
-
if (data['submission']) {
|
|
118
|
-
// data not null
|
|
119
|
-
_SubmissionPreview["default"].validateJSON(data['submission']);
|
|
120
|
-
}
|
|
121
118
|
// ensure the json data is an array
|
|
122
119
|
if (!Array.isArray(data['errors'])) {
|
|
123
120
|
throw new Error("Expected the field `errors` to be an array in the JSON data but got " + data['errors']);
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The SubmissionAction model module.
|
|
31
31
|
* @module model/SubmissionAction
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionAction = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SubmissionAction</code>.
|
|
37
37
|
* @alias module:model/SubmissionAction
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param id {String}
|
|
39
40
|
* @param integration_id {String}
|
|
40
41
|
* @param state {module:model/SubmissionAction.StateEnum}
|
|
@@ -77,6 +78,7 @@ var SubmissionAction = /*#__PURE__*/function () {
|
|
|
77
78
|
value: function constructFromObject(data, obj) {
|
|
78
79
|
if (data) {
|
|
79
80
|
obj = obj || new SubmissionAction();
|
|
81
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
80
82
|
if (data.hasOwnProperty('id')) {
|
|
81
83
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
82
84
|
}
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The SubmissionBatch model module.
|
|
31
31
|
* @module model/SubmissionBatch
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionBatch = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SubmissionBatch</code>.
|
|
37
37
|
* @alias module:model/SubmissionBatch
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param id {String}
|
|
39
40
|
* @param state {module:model/SubmissionBatch.StateEnum}
|
|
40
41
|
* @param metadata {Object}
|
|
@@ -79,6 +80,7 @@ var SubmissionBatch = /*#__PURE__*/function () {
|
|
|
79
80
|
value: function constructFromObject(data, obj) {
|
|
80
81
|
if (data) {
|
|
81
82
|
obj = obj || new SubmissionBatch();
|
|
83
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
82
84
|
if (data.hasOwnProperty('id')) {
|
|
83
85
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
84
86
|
}
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The SubmissionBatchData model module.
|
|
31
31
|
* @module model/SubmissionBatchData
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionBatchData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,12 +30,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
30
30
|
/**
|
|
31
31
|
* The SubmissionBatchWithSubmissions model module.
|
|
32
32
|
* @module model/SubmissionBatchWithSubmissions
|
|
33
|
-
* @version 3.
|
|
33
|
+
* @version 3.2.0
|
|
34
34
|
*/
|
|
35
35
|
var SubmissionBatchWithSubmissions = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
37
37
|
* Constructs a new <code>SubmissionBatchWithSubmissions</code>.
|
|
38
38
|
* @alias module:model/SubmissionBatchWithSubmissions
|
|
39
|
+
* @extends Object
|
|
39
40
|
* @param id {String}
|
|
40
41
|
* @param state {module:model/SubmissionBatchWithSubmissions.StateEnum}
|
|
41
42
|
* @param metadata {Object}
|
|
@@ -80,6 +81,7 @@ var SubmissionBatchWithSubmissions = /*#__PURE__*/function () {
|
|
|
80
81
|
value: function constructFromObject(data, obj) {
|
|
81
82
|
if (data) {
|
|
82
83
|
obj = obj || new SubmissionBatchWithSubmissions();
|
|
84
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
83
85
|
if (data.hasOwnProperty('id')) {
|
|
84
86
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
85
87
|
}
|
|
@@ -146,26 +148,9 @@ var SubmissionBatchWithSubmissions = /*#__PURE__*/function () {
|
|
|
146
148
|
if (data['processed_at'] && !(typeof data['processed_at'] === 'string' || data['processed_at'] instanceof String)) {
|
|
147
149
|
throw new Error("Expected the field `processed_at` to be a primitive type in the JSON string but got " + data['processed_at']);
|
|
148
150
|
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
if (!Array.isArray(data['submissions'])) {
|
|
153
|
-
throw new Error("Expected the field `submissions` to be an array in the JSON data but got " + data['submissions']);
|
|
154
|
-
}
|
|
155
|
-
// validate the optional field `submissions` (array)
|
|
156
|
-
var _iterator2 = _createForOfIteratorHelper(data['submissions']),
|
|
157
|
-
_step2;
|
|
158
|
-
try {
|
|
159
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
160
|
-
var item = _step2.value;
|
|
161
|
-
_SubmissionPreview["default"].validateJSON(item);
|
|
162
|
-
}
|
|
163
|
-
} catch (err) {
|
|
164
|
-
_iterator2.e(err);
|
|
165
|
-
} finally {
|
|
166
|
-
_iterator2.f();
|
|
167
|
-
}
|
|
168
|
-
;
|
|
151
|
+
// ensure the json data is an array
|
|
152
|
+
if (!Array.isArray(data['submissions'])) {
|
|
153
|
+
throw new Error("Expected the field `submissions` to be an array in the JSON data but got " + data['submissions']);
|
|
169
154
|
}
|
|
170
155
|
return true;
|
|
171
156
|
}
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The SubmissionDataRequest model module.
|
|
31
31
|
* @module model/SubmissionDataRequest
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SubmissionDataRequest</code>.
|
|
37
37
|
* @alias module:model/SubmissionDataRequest
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param id {String}
|
|
39
40
|
* @param email {String}
|
|
40
41
|
* @param name {String}
|
|
@@ -107,6 +108,7 @@ var SubmissionDataRequest = /*#__PURE__*/function () {
|
|
|
107
108
|
value: function constructFromObject(data, obj) {
|
|
108
109
|
if (data) {
|
|
109
110
|
obj = obj || new SubmissionDataRequest();
|
|
111
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
110
112
|
if (data.hasOwnProperty('id')) {
|
|
111
113
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
112
114
|
}
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The SubmissionDataRequestEvent model module.
|
|
31
31
|
* @module model/SubmissionDataRequestEvent
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequestEvent = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SubmissionDataRequestEvent</code>.
|
|
37
37
|
* @alias module:model/SubmissionDataRequestEvent
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param id {String}
|
|
39
40
|
* @param submission_id {String}
|
|
40
41
|
* @param submission_data_request_id {String}
|
|
@@ -77,6 +78,7 @@ var SubmissionDataRequestEvent = /*#__PURE__*/function () {
|
|
|
77
78
|
value: function constructFromObject(data, obj) {
|
|
78
79
|
if (data) {
|
|
79
80
|
obj = obj || new SubmissionDataRequestEvent();
|
|
81
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
80
82
|
if (data.hasOwnProperty('id')) {
|
|
81
83
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
82
84
|
}
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The SubmissionDataRequestShow model module.
|
|
31
31
|
* @module model/SubmissionDataRequestShow
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SubmissionDataRequestShow</code>.
|
|
37
37
|
* @alias module:model/SubmissionDataRequestShow
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param id {String}
|
|
39
40
|
* @param email {String}
|
|
40
41
|
* @param name {String}
|
|
@@ -109,6 +110,7 @@ var SubmissionDataRequestShow = /*#__PURE__*/function () {
|
|
|
109
110
|
value: function constructFromObject(data, obj) {
|
|
110
111
|
if (data) {
|
|
111
112
|
obj = obj || new SubmissionDataRequestShow();
|
|
113
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
112
114
|
if (data.hasOwnProperty('id')) {
|
|
113
115
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
114
116
|
}
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The SubmissionDataRequestToken model module.
|
|
31
31
|
* @module model/SubmissionDataRequestToken
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SubmissionDataRequestToken = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SubmissionDataRequestToken</code>.
|
|
37
37
|
* @alias module:model/SubmissionDataRequestToken
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param id {String}
|
|
39
40
|
* @param secret {String}
|
|
40
41
|
* @param expires_at {String}
|
|
@@ -71,6 +72,7 @@ var SubmissionDataRequestToken = /*#__PURE__*/function () {
|
|
|
71
72
|
value: function constructFromObject(data, obj) {
|
|
72
73
|
if (data) {
|
|
73
74
|
obj = obj || new SubmissionDataRequestToken();
|
|
75
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
74
76
|
if (data.hasOwnProperty('id')) {
|
|
75
77
|
obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String');
|
|
76
78
|
}
|
|
@@ -31,12 +31,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
31
31
|
/**
|
|
32
32
|
* The SubmissionPreview model module.
|
|
33
33
|
* @module model/SubmissionPreview
|
|
34
|
-
* @version 3.
|
|
34
|
+
* @version 3.2.0
|
|
35
35
|
*/
|
|
36
36
|
var SubmissionPreview = /*#__PURE__*/function () {
|
|
37
37
|
/**
|
|
38
38
|
* Constructs a new <code>SubmissionPreview</code>.
|
|
39
39
|
* @alias module:model/SubmissionPreview
|
|
40
|
+
* @extends Object
|
|
40
41
|
* @param batch_id {String}
|
|
41
42
|
* @param data_requests {Array.<module:model/SubmissionDataRequest>}
|
|
42
43
|
* @param editable {Boolean}
|
|
@@ -113,6 +114,7 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
113
114
|
value: function constructFromObject(data, obj) {
|
|
114
115
|
if (data) {
|
|
115
116
|
obj = obj || new SubmissionPreview();
|
|
117
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
116
118
|
if (data.hasOwnProperty('batch_id')) {
|
|
117
119
|
obj['batch_id'] = _ApiClient["default"].convertToType(data['batch_id'], 'String');
|
|
118
120
|
}
|
|
@@ -216,26 +218,9 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
216
218
|
if (data['batch_id'] && !(typeof data['batch_id'] === 'string' || data['batch_id'] instanceof String)) {
|
|
217
219
|
throw new Error("Expected the field `batch_id` to be a primitive type in the JSON string but got " + data['batch_id']);
|
|
218
220
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
if (!Array.isArray(data['data_requests'])) {
|
|
223
|
-
throw new Error("Expected the field `data_requests` to be an array in the JSON data but got " + data['data_requests']);
|
|
224
|
-
}
|
|
225
|
-
// validate the optional field `data_requests` (array)
|
|
226
|
-
var _iterator2 = _createForOfIteratorHelper(data['data_requests']),
|
|
227
|
-
_step2;
|
|
228
|
-
try {
|
|
229
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
230
|
-
var item = _step2.value;
|
|
231
|
-
_SubmissionDataRequest["default"].validateJSON(item);
|
|
232
|
-
}
|
|
233
|
-
} catch (err) {
|
|
234
|
-
_iterator2.e(err);
|
|
235
|
-
} finally {
|
|
236
|
-
_iterator2.f();
|
|
237
|
-
}
|
|
238
|
-
;
|
|
221
|
+
// ensure the json data is an array
|
|
222
|
+
if (!Array.isArray(data['data_requests'])) {
|
|
223
|
+
throw new Error("Expected the field `data_requests` to be an array in the JSON data but got " + data['data_requests']);
|
|
239
224
|
}
|
|
240
225
|
// ensure the json data is a string
|
|
241
226
|
if (data['error_message'] && !(typeof data['error_message'] === 'string' || data['error_message'] instanceof String)) {
|
|
@@ -301,26 +286,9 @@ var SubmissionPreview = /*#__PURE__*/function () {
|
|
|
301
286
|
if (data['audit_trail_download_url'] && !(typeof data['audit_trail_download_url'] === 'string' || data['audit_trail_download_url'] instanceof String)) {
|
|
302
287
|
throw new Error("Expected the field `audit_trail_download_url` to be a primitive type in the JSON string but got " + data['audit_trail_download_url']);
|
|
303
288
|
}
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
if (!Array.isArray(data['actions'])) {
|
|
308
|
-
throw new Error("Expected the field `actions` to be an array in the JSON data but got " + data['actions']);
|
|
309
|
-
}
|
|
310
|
-
// validate the optional field `actions` (array)
|
|
311
|
-
var _iterator3 = _createForOfIteratorHelper(data['actions']),
|
|
312
|
-
_step3;
|
|
313
|
-
try {
|
|
314
|
-
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
315
|
-
var _item = _step3.value;
|
|
316
|
-
_SubmissionAction["default"].validateJSON(_item);
|
|
317
|
-
}
|
|
318
|
-
} catch (err) {
|
|
319
|
-
_iterator3.e(err);
|
|
320
|
-
} finally {
|
|
321
|
-
_iterator3.f();
|
|
322
|
-
}
|
|
323
|
-
;
|
|
289
|
+
// ensure the json data is an array
|
|
290
|
+
if (!Array.isArray(data['actions'])) {
|
|
291
|
+
throw new Error("Expected the field `actions` to be an array in the JSON data but got " + data['actions']);
|
|
324
292
|
}
|
|
325
293
|
return true;
|
|
326
294
|
}
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The SuccessErrorResponse model module.
|
|
31
31
|
* @module model/SuccessErrorResponse
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SuccessErrorResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SuccessErrorResponse</code>.
|
|
37
37
|
* @alias module:model/SuccessErrorResponse
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param status {module:model/SuccessErrorResponse.StatusEnum}
|
|
39
40
|
*/
|
|
40
41
|
function SuccessErrorResponse(status) {
|
|
@@ -65,6 +66,7 @@ var SuccessErrorResponse = /*#__PURE__*/function () {
|
|
|
65
66
|
value: function constructFromObject(data, obj) {
|
|
66
67
|
if (data) {
|
|
67
68
|
obj = obj || new SuccessErrorResponse();
|
|
69
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
68
70
|
if (data.hasOwnProperty('status')) {
|
|
69
71
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
70
72
|
}
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The SuccessMultipleErrorsResponse model module.
|
|
31
31
|
* @module model/SuccessMultipleErrorsResponse
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var SuccessMultipleErrorsResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>SuccessMultipleErrorsResponse</code>.
|
|
37
37
|
* @alias module:model/SuccessMultipleErrorsResponse
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param status {module:model/SuccessMultipleErrorsResponse.StatusEnum}
|
|
39
40
|
*/
|
|
40
41
|
function SuccessMultipleErrorsResponse(status) {
|
|
@@ -65,6 +66,7 @@ var SuccessMultipleErrorsResponse = /*#__PURE__*/function () {
|
|
|
65
66
|
value: function constructFromObject(data, obj) {
|
|
66
67
|
if (data) {
|
|
67
68
|
obj = obj || new SuccessMultipleErrorsResponse();
|
|
69
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
68
70
|
if (data.hasOwnProperty('status')) {
|
|
69
71
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
70
72
|
}
|
package/dist/model/Template.js
CHANGED
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The Template model module.
|
|
31
31
|
* @module model/Template
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var Template = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>Template</code>.
|
|
37
37
|
* @alias module:model/Template
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param add_data_request_submission_id_footers {Boolean}
|
|
39
40
|
* @param allow_additional_properties {Boolean}
|
|
40
41
|
* @param description {String}
|
|
@@ -64,6 +65,7 @@ var Template = /*#__PURE__*/function () {
|
|
|
64
65
|
* @param page_count {Number}
|
|
65
66
|
* @param page_dimensions {Array.<Array.<Number>>}
|
|
66
67
|
* @param parent_folder_id {String}
|
|
68
|
+
* @param parse_dates_using_template_date_format {Boolean}
|
|
67
69
|
* @param path {String}
|
|
68
70
|
* @param permanent_document_url {String}
|
|
69
71
|
* @param public_submissions {Boolean}
|
|
@@ -97,9 +99,9 @@ var Template = /*#__PURE__*/function () {
|
|
|
97
99
|
* @param template_schema_version {Number}
|
|
98
100
|
* @param versions {Array.<Object>}
|
|
99
101
|
*/
|
|
100
|
-
function Template(add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id, defaults, field_dependencies, field_order, fields, footer_html, header_html, html_engine_options, html, predefined_fields, scss, shared_field_data, template_schema_version, versions) {
|
|
102
|
+
function Template(add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, parse_dates_using_template_date_format, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id, defaults, field_dependencies, field_order, fields, footer_html, header_html, html_engine_options, html, predefined_fields, scss, shared_field_data, template_schema_version, versions) {
|
|
101
103
|
_classCallCheck(this, Template);
|
|
102
|
-
Template.initialize(this, add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id, defaults, field_dependencies, field_order, fields, footer_html, header_html, html_engine_options, html, predefined_fields, scss, shared_field_data, template_schema_version, versions);
|
|
104
|
+
Template.initialize(this, add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, parse_dates_using_template_date_format, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id, defaults, field_dependencies, field_order, fields, footer_html, header_html, html_engine_options, html, predefined_fields, scss, shared_field_data, template_schema_version, versions);
|
|
103
105
|
}
|
|
104
106
|
|
|
105
107
|
/**
|
|
@@ -109,7 +111,7 @@ var Template = /*#__PURE__*/function () {
|
|
|
109
111
|
*/
|
|
110
112
|
return _createClass(Template, null, [{
|
|
111
113
|
key: "initialize",
|
|
112
|
-
value: function initialize(obj, add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id, defaults, field_dependencies, field_order, fields, footer_html, header_html, html_engine_options, html, predefined_fields, scss, shared_field_data, template_schema_version, versions) {
|
|
114
|
+
value: function initialize(obj, add_data_request_submission_id_footers, allow_additional_properties, description, document_filename, document_md5, document_parse_error, document_processed, document_state, document_url, editable_submissions, embed_domains, embed_edit_allow_settings, embed_edit_allow_versioning, embed_edit_allow_document_replacement, encrypt_pdfs_password, encrypt_pdfs, expiration_interval, expire_after, expire_submissions, external_predefined_fields_template_id, external_predefined_fields_template_name, first_template, id, locked, merge_audit_trail_pdf, name, page_count, page_dimensions, parent_folder_id, parse_dates_using_template_date_format, path, permanent_document_url, public_submissions, public_web_form, redirect_url, slack_webhook_url, template_type, updated_at, version_published_at, version, webhook_url, demo, latest_version, last_changed_at, last_changed_by_type, last_changed_by_id, last_changed_by_external_name, last_changed_by_external_email, last_changed_by_external_id, defaults, field_dependencies, field_order, fields, footer_html, header_html, html_engine_options, html, predefined_fields, scss, shared_field_data, template_schema_version, versions) {
|
|
113
115
|
obj['add_data_request_submission_id_footers'] = add_data_request_submission_id_footers;
|
|
114
116
|
obj['allow_additional_properties'] = allow_additional_properties;
|
|
115
117
|
obj['description'] = description;
|
|
@@ -139,6 +141,7 @@ var Template = /*#__PURE__*/function () {
|
|
|
139
141
|
obj['page_count'] = page_count;
|
|
140
142
|
obj['page_dimensions'] = page_dimensions;
|
|
141
143
|
obj['parent_folder_id'] = parent_folder_id;
|
|
144
|
+
obj['parse_dates_using_template_date_format'] = parse_dates_using_template_date_format;
|
|
142
145
|
obj['path'] = path;
|
|
143
146
|
obj['permanent_document_url'] = permanent_document_url;
|
|
144
147
|
obj['public_submissions'] = public_submissions;
|
|
@@ -185,6 +188,7 @@ var Template = /*#__PURE__*/function () {
|
|
|
185
188
|
value: function constructFromObject(data, obj) {
|
|
186
189
|
if (data) {
|
|
187
190
|
obj = obj || new Template();
|
|
191
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
188
192
|
if (data.hasOwnProperty('add_data_request_submission_id_footers')) {
|
|
189
193
|
obj['add_data_request_submission_id_footers'] = _ApiClient["default"].convertToType(data['add_data_request_submission_id_footers'], 'Boolean');
|
|
190
194
|
}
|
|
@@ -272,6 +276,9 @@ var Template = /*#__PURE__*/function () {
|
|
|
272
276
|
if (data.hasOwnProperty('parent_folder_id')) {
|
|
273
277
|
obj['parent_folder_id'] = _ApiClient["default"].convertToType(data['parent_folder_id'], 'String');
|
|
274
278
|
}
|
|
279
|
+
if (data.hasOwnProperty('parse_dates_using_template_date_format')) {
|
|
280
|
+
obj['parse_dates_using_template_date_format'] = _ApiClient["default"].convertToType(data['parse_dates_using_template_date_format'], 'Boolean');
|
|
281
|
+
}
|
|
275
282
|
if (data.hasOwnProperty('path')) {
|
|
276
283
|
obj['path'] = _ApiClient["default"].convertToType(data['path'], 'String');
|
|
277
284
|
}
|
|
@@ -558,7 +565,7 @@ var Template = /*#__PURE__*/function () {
|
|
|
558
565
|
}
|
|
559
566
|
}]);
|
|
560
567
|
}();
|
|
561
|
-
Template.RequiredProperties = ["add_data_request_submission_id_footers", "allow_additional_properties", "description", "document_filename", "document_md5", "document_parse_error", "document_processed", "document_state", "document_url", "editable_submissions", "embed_domains", "embed_edit_allow_settings", "embed_edit_allow_versioning", "embed_edit_allow_document_replacement", "encrypt_pdfs_password", "encrypt_pdfs", "expiration_interval", "expire_after", "expire_submissions", "external_predefined_fields_template_id", "external_predefined_fields_template_name", "first_template", "id", "locked", "merge_audit_trail_pdf", "name", "page_count", "page_dimensions", "parent_folder_id", "path", "permanent_document_url", "public_submissions", "public_web_form", "redirect_url", "slack_webhook_url", "template_type", "updated_at", "version_published_at", "version", "webhook_url", "demo", "latest_version", "last_changed_at", "last_changed_by_type", "last_changed_by_id", "last_changed_by_external_name", "last_changed_by_external_email", "last_changed_by_external_id", "defaults", "field_dependencies", "field_order", "fields", "footer_html", "header_html", "html_engine_options", "html", "predefined_fields", "scss", "shared_field_data", "template_schema_version", "versions"];
|
|
568
|
+
Template.RequiredProperties = ["add_data_request_submission_id_footers", "allow_additional_properties", "description", "document_filename", "document_md5", "document_parse_error", "document_processed", "document_state", "document_url", "editable_submissions", "embed_domains", "embed_edit_allow_settings", "embed_edit_allow_versioning", "embed_edit_allow_document_replacement", "encrypt_pdfs_password", "encrypt_pdfs", "expiration_interval", "expire_after", "expire_submissions", "external_predefined_fields_template_id", "external_predefined_fields_template_name", "first_template", "id", "locked", "merge_audit_trail_pdf", "name", "page_count", "page_dimensions", "parent_folder_id", "parse_dates_using_template_date_format", "path", "permanent_document_url", "public_submissions", "public_web_form", "redirect_url", "slack_webhook_url", "template_type", "updated_at", "version_published_at", "version", "webhook_url", "demo", "latest_version", "last_changed_at", "last_changed_by_type", "last_changed_by_id", "last_changed_by_external_name", "last_changed_by_external_email", "last_changed_by_external_id", "defaults", "field_dependencies", "field_order", "fields", "footer_html", "header_html", "html_engine_options", "html", "predefined_fields", "scss", "shared_field_data", "template_schema_version", "versions"];
|
|
562
569
|
|
|
563
570
|
/**
|
|
564
571
|
* @member {Boolean} add_data_request_submission_id_footers
|
|
@@ -705,6 +712,11 @@ Template.prototype['page_dimensions'] = undefined;
|
|
|
705
712
|
*/
|
|
706
713
|
Template.prototype['parent_folder_id'] = undefined;
|
|
707
714
|
|
|
715
|
+
/**
|
|
716
|
+
* @member {Boolean} parse_dates_using_template_date_format
|
|
717
|
+
*/
|
|
718
|
+
Template.prototype['parse_dates_using_template_date_format'] = undefined;
|
|
719
|
+
|
|
708
720
|
/**
|
|
709
721
|
* @member {String} path
|
|
710
722
|
*/
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The TemplateAddFieldsResponse model module.
|
|
31
31
|
* @module model/TemplateAddFieldsResponse
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var TemplateAddFieldsResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>TemplateAddFieldsResponse</code>.
|
|
37
37
|
* @alias module:model/TemplateAddFieldsResponse
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param status {module:model/TemplateAddFieldsResponse.StatusEnum}
|
|
39
40
|
*/
|
|
40
41
|
function TemplateAddFieldsResponse(status) {
|
|
@@ -65,6 +66,7 @@ var TemplateAddFieldsResponse = /*#__PURE__*/function () {
|
|
|
65
66
|
value: function constructFromObject(data, obj) {
|
|
66
67
|
if (data) {
|
|
67
68
|
obj = obj || new TemplateAddFieldsResponse();
|
|
69
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
68
70
|
if (data.hasOwnProperty('status')) {
|
|
69
71
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
70
72
|
}
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The TemplateDeleteResponse model module.
|
|
31
31
|
* @module model/TemplateDeleteResponse
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var TemplateDeleteResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>TemplateDeleteResponse</code>.
|
|
37
37
|
* @alias module:model/TemplateDeleteResponse
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param status {module:model/TemplateDeleteResponse.StatusEnum}
|
|
39
40
|
*/
|
|
40
41
|
function TemplateDeleteResponse(status) {
|
|
@@ -65,6 +66,7 @@ var TemplateDeleteResponse = /*#__PURE__*/function () {
|
|
|
65
66
|
value: function constructFromObject(data, obj) {
|
|
66
67
|
if (data) {
|
|
67
68
|
obj = obj || new TemplateDeleteResponse();
|
|
69
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
68
70
|
if (data.hasOwnProperty('status')) {
|
|
69
71
|
obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String');
|
|
70
72
|
}
|
|
@@ -29,12 +29,13 @@ function _toPrimitive(t, e) { if ("object" != _typeof(t) || !t) return t; var r;
|
|
|
29
29
|
/**
|
|
30
30
|
* The TemplateModelCodeResponse model module.
|
|
31
31
|
* @module model/TemplateModelCodeResponse
|
|
32
|
-
* @version 3.
|
|
32
|
+
* @version 3.2.0
|
|
33
33
|
*/
|
|
34
34
|
var TemplateModelCodeResponse = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
36
36
|
* Constructs a new <code>TemplateModelCodeResponse</code>.
|
|
37
37
|
* @alias module:model/TemplateModelCodeResponse
|
|
38
|
+
* @extends Object
|
|
38
39
|
* @param lang {module:model/TemplateModelCodeResponse.LangEnum}
|
|
39
40
|
* @param root_type_name {String}
|
|
40
41
|
* @param code {String}
|
|
@@ -69,6 +70,7 @@ var TemplateModelCodeResponse = /*#__PURE__*/function () {
|
|
|
69
70
|
value: function constructFromObject(data, obj) {
|
|
70
71
|
if (data) {
|
|
71
72
|
obj = obj || new TemplateModelCodeResponse();
|
|
73
|
+
_ApiClient["default"].constructFromObject(data, obj, 'Object');
|
|
72
74
|
if (data.hasOwnProperty('lang')) {
|
|
73
75
|
obj['lang'] = _ApiClient["default"].convertToType(data['lang'], 'String');
|
|
74
76
|
}
|