docspring 2.0.0 → 2.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 +8 -2
- package/dist/ApiClient.js +2 -2
- package/dist/api/PDFApi.js +96 -7
- package/dist/index.js +28 -0
- package/dist/model/AddFieldsData.js +1 -1
- package/dist/model/BatchGeneratePdfs201Response.js +1 -1
- package/dist/model/CombinePdfsData.js +1 -1
- package/dist/model/CombinedSubmission.js +1 -1
- package/dist/model/CombinedSubmissionAction.js +1 -1
- package/dist/model/CombinedSubmissionData.js +1 -1
- package/dist/model/CopyTemplateOptions.js +1 -1
- package/dist/model/CreateCombinedSubmissionResponse.js +1 -1
- package/dist/model/CreateCustomFileData.js +1 -1
- package/dist/model/CreateCustomFileResponse.js +1 -1
- package/dist/model/CreateFolderData.js +1 -1
- package/dist/model/CreateHtmlSubmissionData.js +13 -1
- package/dist/model/CreateHtmlTemplate.js +1 -1
- package/dist/model/CreatePdfSubmissionData.js +13 -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 +1 -1
- package/dist/model/CreateSubmissionDataRequestResponse.js +1 -1
- package/dist/model/CreateSubmissionDataRequestTokenResponse.js +1 -1
- package/dist/model/CreateSubmissionResponse.js +1 -1
- package/dist/model/CustomFile.js +1 -1
- package/dist/model/ErrorResponse.js +1 -1
- package/dist/model/Folder.js +1 -1
- package/dist/model/JsonSchema.js +1 -1
- package/dist/model/ListSubmissionsResponse.js +1 -1
- package/dist/model/MoveFolderData.js +1 -1
- package/dist/model/MoveTemplateData.js +1 -1
- package/dist/model/MultipleErrorsResponse.js +1 -1
- package/dist/model/PublishVersionData.js +124 -0
- package/dist/model/RenameFolderData.js +1 -1
- package/dist/model/RestoreVersionData.js +112 -0
- package/dist/model/Submission.js +51 -5
- package/dist/model/SubmissionAction.js +1 -1
- package/dist/model/SubmissionBatch.js +1 -1
- package/dist/model/SubmissionBatchData.js +1 -1
- package/dist/model/SubmissionBatchWithSubmissions.js +1 -1
- package/dist/model/SubmissionDataRequest.js +1 -1
- package/dist/model/SubmissionDataRequestEvent.js +1 -1
- package/dist/model/SubmissionDataRequestShow.js +1 -1
- package/dist/model/SubmissionDataRequestToken.js +1 -1
- package/dist/model/SubmissionPreview.js +51 -5
- package/dist/model/SuccessErrorResponse.js +1 -1
- package/dist/model/SuccessMultipleErrorsResponse.js +1 -1
- package/dist/model/Template.js +121 -5
- package/dist/model/TemplateAddFieldsResponse.js +1 -1
- package/dist/model/TemplateDeleteResponse.js +166 -0
- package/dist/model/TemplatePreview.js +107 -5
- package/dist/model/TemplatePublishVersionResponse.js +152 -0
- package/dist/model/UpdateHtmlTemplate.js +1 -1
- package/dist/model/UpdateSubmissionDataRequestData.js +1 -1
- package/dist/model/UploadPresignResponse.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ DocSpring provides an API that helps you fill out and sign PDF templates.
|
|
|
5
5
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
6
6
|
|
|
7
7
|
- API version: v1
|
|
8
|
-
- Package version: 2.
|
|
8
|
+
- Package version: 2.1.0
|
|
9
9
|
- Generator version: 7.11.0
|
|
10
10
|
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
|
|
11
11
|
|
|
@@ -148,7 +148,7 @@ Class | Method | HTTP request | Description
|
|
|
148
148
|
*DocSpring.PDFApi* | [**generatePreview**](docs/PDFApi.md#generatePreview) | **POST** /submissions/{submission_id}/generate_preview | Generated a preview PDF for partially completed data requests
|
|
149
149
|
*DocSpring.PDFApi* | [**getCombinedSubmission**](docs/PDFApi.md#getCombinedSubmission) | **GET** /combined_submissions/{combined_submission_id} | Check the status of a combined submission (merged PDFs)
|
|
150
150
|
*DocSpring.PDFApi* | [**getDataRequest**](docs/PDFApi.md#getDataRequest) | **GET** /data_requests/{data_request_id} | Look up a submission data request
|
|
151
|
-
*DocSpring.PDFApi* | [**getFullTemplate**](docs/PDFApi.md#getFullTemplate) | **GET** /templates/{template_id}?full=true | Fetch the full template
|
|
151
|
+
*DocSpring.PDFApi* | [**getFullTemplate**](docs/PDFApi.md#getFullTemplate) | **GET** /templates/{template_id}?full=true | Fetch the full attributes for a PDF template
|
|
152
152
|
*DocSpring.PDFApi* | [**getPresignUrl**](docs/PDFApi.md#getPresignUrl) | **GET** /uploads/presign | Get a presigned URL so that you can upload a file to our AWS S3 bucket
|
|
153
153
|
*DocSpring.PDFApi* | [**getSubmission**](docs/PDFApi.md#getSubmission) | **GET** /submissions/{submission_id} | Check the status of a PDF
|
|
154
154
|
*DocSpring.PDFApi* | [**getSubmissionBatch**](docs/PDFApi.md#getSubmissionBatch) | **GET** /submissions/batches/{submission_batch_id} | Check the status of a submission batch job
|
|
@@ -161,7 +161,9 @@ Class | Method | HTTP request | Description
|
|
|
161
161
|
*DocSpring.PDFApi* | [**listTemplates**](docs/PDFApi.md#listTemplates) | **GET** /templates | Get a list of all templates
|
|
162
162
|
*DocSpring.PDFApi* | [**moveFolderToFolder**](docs/PDFApi.md#moveFolderToFolder) | **POST** /folders/{folder_id}/move | Move a folder
|
|
163
163
|
*DocSpring.PDFApi* | [**moveTemplateToFolder**](docs/PDFApi.md#moveTemplateToFolder) | **POST** /templates/{template_id}/move | Move Template to folder
|
|
164
|
+
*DocSpring.PDFApi* | [**publishTemplateVersion**](docs/PDFApi.md#publishTemplateVersion) | **POST** /templates/{template_id}/publish_version | Publish a template version
|
|
164
165
|
*DocSpring.PDFApi* | [**renameFolder**](docs/PDFApi.md#renameFolder) | **POST** /folders/{folder_id}/rename | Rename a folder
|
|
166
|
+
*DocSpring.PDFApi* | [**restoreTemplateVersion**](docs/PDFApi.md#restoreTemplateVersion) | **POST** /templates/{template_id}/restore_version | Restore a template version
|
|
165
167
|
*DocSpring.PDFApi* | [**testAuthentication**](docs/PDFApi.md#testAuthentication) | **GET** /authentication | Test Authentication
|
|
166
168
|
*DocSpring.PDFApi* | [**updateDataRequest**](docs/PDFApi.md#updateDataRequest) | **PUT** /data_requests/{data_request_id} | Update a submission data request
|
|
167
169
|
*DocSpring.PDFApi* | [**updateTemplate**](docs/PDFApi.md#updateTemplate) | **PUT** /templates/{template_id} | Update a Template
|
|
@@ -198,7 +200,9 @@ Class | Method | HTTP request | Description
|
|
|
198
200
|
- [DocSpring.MoveFolderData](docs/MoveFolderData.md)
|
|
199
201
|
- [DocSpring.MoveTemplateData](docs/MoveTemplateData.md)
|
|
200
202
|
- [DocSpring.MultipleErrorsResponse](docs/MultipleErrorsResponse.md)
|
|
203
|
+
- [DocSpring.PublishVersionData](docs/PublishVersionData.md)
|
|
201
204
|
- [DocSpring.RenameFolderData](docs/RenameFolderData.md)
|
|
205
|
+
- [DocSpring.RestoreVersionData](docs/RestoreVersionData.md)
|
|
202
206
|
- [DocSpring.Submission](docs/Submission.md)
|
|
203
207
|
- [DocSpring.SubmissionAction](docs/SubmissionAction.md)
|
|
204
208
|
- [DocSpring.SubmissionBatch](docs/SubmissionBatch.md)
|
|
@@ -213,7 +217,9 @@ Class | Method | HTTP request | Description
|
|
|
213
217
|
- [DocSpring.SuccessMultipleErrorsResponse](docs/SuccessMultipleErrorsResponse.md)
|
|
214
218
|
- [DocSpring.Template](docs/Template.md)
|
|
215
219
|
- [DocSpring.TemplateAddFieldsResponse](docs/TemplateAddFieldsResponse.md)
|
|
220
|
+
- [DocSpring.TemplateDeleteResponse](docs/TemplateDeleteResponse.md)
|
|
216
221
|
- [DocSpring.TemplatePreview](docs/TemplatePreview.md)
|
|
222
|
+
- [DocSpring.TemplatePublishVersionResponse](docs/TemplatePublishVersionResponse.md)
|
|
217
223
|
- [DocSpring.UpdateHtmlTemplate](docs/UpdateHtmlTemplate.md)
|
|
218
224
|
- [DocSpring.UpdateSubmissionDataRequestData](docs/UpdateSubmissionDataRequestData.md)
|
|
219
225
|
- [DocSpring.UploadPresignResponse](docs/UploadPresignResponse.md)
|
package/dist/ApiClient.js
CHANGED
|
@@ -25,7 +25,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
25
25
|
*/
|
|
26
26
|
/**
|
|
27
27
|
* @module ApiClient
|
|
28
|
-
* @version 2.
|
|
28
|
+
* @version 2.1.0
|
|
29
29
|
*/
|
|
30
30
|
/**
|
|
31
31
|
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
|
|
@@ -66,7 +66,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
|
66
66
|
* @default {}
|
|
67
67
|
*/
|
|
68
68
|
this.defaultHeaders = {
|
|
69
|
-
'User-Agent': 'docspring-javascript-2.
|
|
69
|
+
'User-Agent': 'docspring-javascript-2.1.0'
|
|
70
70
|
};
|
|
71
71
|
|
|
72
72
|
/**
|
package/dist/api/PDFApi.js
CHANGED
|
@@ -31,7 +31,9 @@ var _ListSubmissionsResponse = _interopRequireDefault(require("../model/ListSubm
|
|
|
31
31
|
var _MoveFolderData = _interopRequireDefault(require("../model/MoveFolderData"));
|
|
32
32
|
var _MoveTemplateData = _interopRequireDefault(require("../model/MoveTemplateData"));
|
|
33
33
|
var _MultipleErrorsResponse = _interopRequireDefault(require("../model/MultipleErrorsResponse"));
|
|
34
|
+
var _PublishVersionData = _interopRequireDefault(require("../model/PublishVersionData"));
|
|
34
35
|
var _RenameFolderData = _interopRequireDefault(require("../model/RenameFolderData"));
|
|
36
|
+
var _RestoreVersionData = _interopRequireDefault(require("../model/RestoreVersionData"));
|
|
35
37
|
var _Submission = _interopRequireDefault(require("../model/Submission"));
|
|
36
38
|
var _SubmissionBatchData = _interopRequireDefault(require("../model/SubmissionBatchData"));
|
|
37
39
|
var _SubmissionBatchWithSubmissions = _interopRequireDefault(require("../model/SubmissionBatchWithSubmissions"));
|
|
@@ -41,7 +43,9 @@ var _SuccessErrorResponse = _interopRequireDefault(require("../model/SuccessErro
|
|
|
41
43
|
var _SuccessMultipleErrorsResponse = _interopRequireDefault(require("../model/SuccessMultipleErrorsResponse"));
|
|
42
44
|
var _Template = _interopRequireDefault(require("../model/Template"));
|
|
43
45
|
var _TemplateAddFieldsResponse = _interopRequireDefault(require("../model/TemplateAddFieldsResponse"));
|
|
46
|
+
var _TemplateDeleteResponse = _interopRequireDefault(require("../model/TemplateDeleteResponse"));
|
|
44
47
|
var _TemplatePreview = _interopRequireDefault(require("../model/TemplatePreview"));
|
|
48
|
+
var _TemplatePublishVersionResponse = _interopRequireDefault(require("../model/TemplatePublishVersionResponse"));
|
|
45
49
|
var _UpdateHtmlTemplate = _interopRequireDefault(require("../model/UpdateHtmlTemplate"));
|
|
46
50
|
var _UpdateSubmissionDataRequestData = _interopRequireDefault(require("../model/UpdateSubmissionDataRequestData"));
|
|
47
51
|
var _UploadPresignResponse = _interopRequireDefault(require("../model/UploadPresignResponse"));
|
|
@@ -66,7 +70,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
66
70
|
/**
|
|
67
71
|
* PDF service.
|
|
68
72
|
* @module api/PDFApi
|
|
69
|
-
* @version 2.
|
|
73
|
+
* @version 2.1.0
|
|
70
74
|
*/
|
|
71
75
|
var PDFApi = exports["default"] = /*#__PURE__*/function () {
|
|
72
76
|
/**
|
|
@@ -569,19 +573,22 @@ var PDFApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
569
573
|
* Callback function to receive the result of the deleteTemplate operation.
|
|
570
574
|
* @callback module:api/PDFApi~deleteTemplateCallback
|
|
571
575
|
* @param {String} error Error message, if any.
|
|
572
|
-
* @param {module:model/
|
|
576
|
+
* @param {module:model/TemplateDeleteResponse} data The data returned by the service call.
|
|
573
577
|
* @param {String} response The complete HTTP response.
|
|
574
578
|
*/
|
|
575
579
|
|
|
576
580
|
/**
|
|
577
581
|
* Delete a template
|
|
578
582
|
* @param {String} templateId
|
|
583
|
+
* @param {Object} opts Optional parameters
|
|
584
|
+
* @param {String} [version]
|
|
579
585
|
* @param {module:api/PDFApi~deleteTemplateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
580
|
-
* data is of type: {@link module:model/
|
|
586
|
+
* data is of type: {@link module:model/TemplateDeleteResponse}
|
|
581
587
|
*/
|
|
582
588
|
}, {
|
|
583
589
|
key: "deleteTemplate",
|
|
584
|
-
value: function deleteTemplate(templateId, callback) {
|
|
590
|
+
value: function deleteTemplate(templateId, opts, callback) {
|
|
591
|
+
opts = opts || {};
|
|
585
592
|
var postBody = null;
|
|
586
593
|
// verify the required parameter 'templateId' is set
|
|
587
594
|
if (templateId === undefined || templateId === null) {
|
|
@@ -590,13 +597,15 @@ var PDFApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
590
597
|
var pathParams = {
|
|
591
598
|
'template_id': templateId
|
|
592
599
|
};
|
|
593
|
-
var queryParams = {
|
|
600
|
+
var queryParams = {
|
|
601
|
+
'version': opts['version']
|
|
602
|
+
};
|
|
594
603
|
var headerParams = {};
|
|
595
604
|
var formParams = {};
|
|
596
605
|
var authNames = ['api_token_basic'];
|
|
597
606
|
var contentTypes = [];
|
|
598
607
|
var accepts = ['application/json'];
|
|
599
|
-
var returnType =
|
|
608
|
+
var returnType = _TemplateDeleteResponse["default"];
|
|
600
609
|
return this.apiClient.callApi('/templates/{template_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
601
610
|
}
|
|
602
611
|
|
|
@@ -874,7 +883,7 @@ var PDFApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
874
883
|
*/
|
|
875
884
|
|
|
876
885
|
/**
|
|
877
|
-
* Fetch the full template
|
|
886
|
+
* Fetch the full attributes for a PDF template
|
|
878
887
|
* @param {String} templateId
|
|
879
888
|
* @param {module:api/PDFApi~getFullTemplateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
880
889
|
* data is of type: {@link module:model/Template}
|
|
@@ -1358,6 +1367,46 @@ var PDFApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1358
1367
|
return this.apiClient.callApi('/templates/{template_id}/move', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1359
1368
|
}
|
|
1360
1369
|
|
|
1370
|
+
/**
|
|
1371
|
+
* Callback function to receive the result of the publishTemplateVersion operation.
|
|
1372
|
+
* @callback module:api/PDFApi~publishTemplateVersionCallback
|
|
1373
|
+
* @param {String} error Error message, if any.
|
|
1374
|
+
* @param {module:model/TemplatePublishVersionResponse} data The data returned by the service call.
|
|
1375
|
+
* @param {String} response The complete HTTP response.
|
|
1376
|
+
*/
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* Publish a template version
|
|
1380
|
+
* @param {String} templateId
|
|
1381
|
+
* @param {module:model/PublishVersionData} data
|
|
1382
|
+
* @param {module:api/PDFApi~publishTemplateVersionCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1383
|
+
* data is of type: {@link module:model/TemplatePublishVersionResponse}
|
|
1384
|
+
*/
|
|
1385
|
+
}, {
|
|
1386
|
+
key: "publishTemplateVersion",
|
|
1387
|
+
value: function publishTemplateVersion(templateId, data, callback) {
|
|
1388
|
+
var postBody = data;
|
|
1389
|
+
// verify the required parameter 'templateId' is set
|
|
1390
|
+
if (templateId === undefined || templateId === null) {
|
|
1391
|
+
throw new Error("Missing the required parameter 'templateId' when calling publishTemplateVersion");
|
|
1392
|
+
}
|
|
1393
|
+
// verify the required parameter 'data' is set
|
|
1394
|
+
if (data === undefined || data === null) {
|
|
1395
|
+
throw new Error("Missing the required parameter 'data' when calling publishTemplateVersion");
|
|
1396
|
+
}
|
|
1397
|
+
var pathParams = {
|
|
1398
|
+
'template_id': templateId
|
|
1399
|
+
};
|
|
1400
|
+
var queryParams = {};
|
|
1401
|
+
var headerParams = {};
|
|
1402
|
+
var formParams = {};
|
|
1403
|
+
var authNames = ['api_token_basic'];
|
|
1404
|
+
var contentTypes = ['application/json'];
|
|
1405
|
+
var accepts = ['application/json'];
|
|
1406
|
+
var returnType = _TemplatePublishVersionResponse["default"];
|
|
1407
|
+
return this.apiClient.callApi('/templates/{template_id}/publish_version', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1361
1410
|
/**
|
|
1362
1411
|
* Callback function to receive the result of the renameFolder operation.
|
|
1363
1412
|
* @callback module:api/PDFApi~renameFolderCallback
|
|
@@ -1398,6 +1447,46 @@ var PDFApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
1398
1447
|
return this.apiClient.callApi('/folders/{folder_id}/rename', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1399
1448
|
}
|
|
1400
1449
|
|
|
1450
|
+
/**
|
|
1451
|
+
* Callback function to receive the result of the restoreTemplateVersion operation.
|
|
1452
|
+
* @callback module:api/PDFApi~restoreTemplateVersionCallback
|
|
1453
|
+
* @param {String} error Error message, if any.
|
|
1454
|
+
* @param {module:model/SuccessErrorResponse} data The data returned by the service call.
|
|
1455
|
+
* @param {String} response The complete HTTP response.
|
|
1456
|
+
*/
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
* Restore a template version
|
|
1460
|
+
* @param {String} templateId
|
|
1461
|
+
* @param {module:model/RestoreVersionData} data
|
|
1462
|
+
* @param {module:api/PDFApi~restoreTemplateVersionCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1463
|
+
* data is of type: {@link module:model/SuccessErrorResponse}
|
|
1464
|
+
*/
|
|
1465
|
+
}, {
|
|
1466
|
+
key: "restoreTemplateVersion",
|
|
1467
|
+
value: function restoreTemplateVersion(templateId, data, callback) {
|
|
1468
|
+
var postBody = data;
|
|
1469
|
+
// verify the required parameter 'templateId' is set
|
|
1470
|
+
if (templateId === undefined || templateId === null) {
|
|
1471
|
+
throw new Error("Missing the required parameter 'templateId' when calling restoreTemplateVersion");
|
|
1472
|
+
}
|
|
1473
|
+
// verify the required parameter 'data' is set
|
|
1474
|
+
if (data === undefined || data === null) {
|
|
1475
|
+
throw new Error("Missing the required parameter 'data' when calling restoreTemplateVersion");
|
|
1476
|
+
}
|
|
1477
|
+
var pathParams = {
|
|
1478
|
+
'template_id': templateId
|
|
1479
|
+
};
|
|
1480
|
+
var queryParams = {};
|
|
1481
|
+
var headerParams = {};
|
|
1482
|
+
var formParams = {};
|
|
1483
|
+
var authNames = ['api_token_basic'];
|
|
1484
|
+
var contentTypes = ['application/json'];
|
|
1485
|
+
var accepts = ['application/json'];
|
|
1486
|
+
var returnType = _SuccessErrorResponse["default"];
|
|
1487
|
+
return this.apiClient.callApi('/templates/{template_id}/restore_version', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1401
1490
|
/**
|
|
1402
1491
|
* Callback function to receive the result of the testAuthentication operation.
|
|
1403
1492
|
* @callback module:api/PDFApi~testAuthenticationCallback
|
package/dist/index.js
CHANGED
|
@@ -189,12 +189,24 @@ Object.defineProperty(exports, "PDFApi", {
|
|
|
189
189
|
return _PDFApi["default"];
|
|
190
190
|
}
|
|
191
191
|
});
|
|
192
|
+
Object.defineProperty(exports, "PublishVersionData", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
get: function get() {
|
|
195
|
+
return _PublishVersionData["default"];
|
|
196
|
+
}
|
|
197
|
+
});
|
|
192
198
|
Object.defineProperty(exports, "RenameFolderData", {
|
|
193
199
|
enumerable: true,
|
|
194
200
|
get: function get() {
|
|
195
201
|
return _RenameFolderData["default"];
|
|
196
202
|
}
|
|
197
203
|
});
|
|
204
|
+
Object.defineProperty(exports, "RestoreVersionData", {
|
|
205
|
+
enumerable: true,
|
|
206
|
+
get: function get() {
|
|
207
|
+
return _RestoreVersionData["default"];
|
|
208
|
+
}
|
|
209
|
+
});
|
|
198
210
|
Object.defineProperty(exports, "Submission", {
|
|
199
211
|
enumerable: true,
|
|
200
212
|
get: function get() {
|
|
@@ -279,12 +291,24 @@ Object.defineProperty(exports, "TemplateAddFieldsResponse", {
|
|
|
279
291
|
return _TemplateAddFieldsResponse["default"];
|
|
280
292
|
}
|
|
281
293
|
});
|
|
294
|
+
Object.defineProperty(exports, "TemplateDeleteResponse", {
|
|
295
|
+
enumerable: true,
|
|
296
|
+
get: function get() {
|
|
297
|
+
return _TemplateDeleteResponse["default"];
|
|
298
|
+
}
|
|
299
|
+
});
|
|
282
300
|
Object.defineProperty(exports, "TemplatePreview", {
|
|
283
301
|
enumerable: true,
|
|
284
302
|
get: function get() {
|
|
285
303
|
return _TemplatePreview["default"];
|
|
286
304
|
}
|
|
287
305
|
});
|
|
306
|
+
Object.defineProperty(exports, "TemplatePublishVersionResponse", {
|
|
307
|
+
enumerable: true,
|
|
308
|
+
get: function get() {
|
|
309
|
+
return _TemplatePublishVersionResponse["default"];
|
|
310
|
+
}
|
|
311
|
+
});
|
|
288
312
|
Object.defineProperty(exports, "UpdateHtmlTemplate", {
|
|
289
313
|
enumerable: true,
|
|
290
314
|
get: function get() {
|
|
@@ -333,7 +357,9 @@ var _ListSubmissionsResponse = _interopRequireDefault(require("./model/ListSubmi
|
|
|
333
357
|
var _MoveFolderData = _interopRequireDefault(require("./model/MoveFolderData"));
|
|
334
358
|
var _MoveTemplateData = _interopRequireDefault(require("./model/MoveTemplateData"));
|
|
335
359
|
var _MultipleErrorsResponse = _interopRequireDefault(require("./model/MultipleErrorsResponse"));
|
|
360
|
+
var _PublishVersionData = _interopRequireDefault(require("./model/PublishVersionData"));
|
|
336
361
|
var _RenameFolderData = _interopRequireDefault(require("./model/RenameFolderData"));
|
|
362
|
+
var _RestoreVersionData = _interopRequireDefault(require("./model/RestoreVersionData"));
|
|
337
363
|
var _Submission = _interopRequireDefault(require("./model/Submission"));
|
|
338
364
|
var _SubmissionAction = _interopRequireDefault(require("./model/SubmissionAction"));
|
|
339
365
|
var _SubmissionBatch = _interopRequireDefault(require("./model/SubmissionBatch"));
|
|
@@ -348,7 +374,9 @@ var _SuccessErrorResponse = _interopRequireDefault(require("./model/SuccessError
|
|
|
348
374
|
var _SuccessMultipleErrorsResponse = _interopRequireDefault(require("./model/SuccessMultipleErrorsResponse"));
|
|
349
375
|
var _Template = _interopRequireDefault(require("./model/Template"));
|
|
350
376
|
var _TemplateAddFieldsResponse = _interopRequireDefault(require("./model/TemplateAddFieldsResponse"));
|
|
377
|
+
var _TemplateDeleteResponse = _interopRequireDefault(require("./model/TemplateDeleteResponse"));
|
|
351
378
|
var _TemplatePreview = _interopRequireDefault(require("./model/TemplatePreview"));
|
|
379
|
+
var _TemplatePublishVersionResponse = _interopRequireDefault(require("./model/TemplatePublishVersionResponse"));
|
|
352
380
|
var _UpdateHtmlTemplate = _interopRequireDefault(require("./model/UpdateHtmlTemplate"));
|
|
353
381
|
var _UpdateSubmissionDataRequestData = _interopRequireDefault(require("./model/UpdateSubmissionDataRequestData"));
|
|
354
382
|
var _UploadPresignResponse = _interopRequireDefault(require("./model/UploadPresignResponse"));
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The BatchGeneratePdfs201Response model module.
|
|
32
32
|
* @module model/BatchGeneratePdfs201Response
|
|
33
|
-
* @version 2.
|
|
33
|
+
* @version 2.1.0
|
|
34
34
|
*/
|
|
35
35
|
var BatchGeneratePdfs201Response = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CombinePdfsData model module.
|
|
31
31
|
* @module model/CombinePdfsData
|
|
32
|
-
* @version 2.
|
|
32
|
+
* @version 2.1.0
|
|
33
33
|
*/
|
|
34
34
|
var CombinePdfsData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The CombinedSubmission model module.
|
|
32
32
|
* @module model/CombinedSubmission
|
|
33
|
-
* @version 2.
|
|
33
|
+
* @version 2.1.0
|
|
34
34
|
*/
|
|
35
35
|
var CombinedSubmission = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CombinedSubmissionAction model module.
|
|
31
31
|
* @module model/CombinedSubmissionAction
|
|
32
|
-
* @version 2.
|
|
32
|
+
* @version 2.1.0
|
|
33
33
|
*/
|
|
34
34
|
var CombinedSubmissionAction = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CombinedSubmissionData model module.
|
|
31
31
|
* @module model/CombinedSubmissionData
|
|
32
|
-
* @version 2.
|
|
32
|
+
* @version 2.1.0
|
|
33
33
|
*/
|
|
34
34
|
var CombinedSubmissionData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CopyTemplateOptions model module.
|
|
31
31
|
* @module model/CopyTemplateOptions
|
|
32
|
-
* @version 2.
|
|
32
|
+
* @version 2.1.0
|
|
33
33
|
*/
|
|
34
34
|
var CopyTemplateOptions = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The CreateCombinedSubmissionResponse model module.
|
|
32
32
|
* @module model/CreateCombinedSubmissionResponse
|
|
33
|
-
* @version 2.
|
|
33
|
+
* @version 2.1.0
|
|
34
34
|
*/
|
|
35
35
|
var CreateCombinedSubmissionResponse = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateCustomFileData model module.
|
|
31
31
|
* @module model/CreateCustomFileData
|
|
32
|
-
* @version 2.
|
|
32
|
+
* @version 2.1.0
|
|
33
33
|
*/
|
|
34
34
|
var CreateCustomFileData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The CreateCustomFileResponse model module.
|
|
32
32
|
* @module model/CreateCustomFileResponse
|
|
33
|
-
* @version 2.
|
|
33
|
+
* @version 2.1.0
|
|
34
34
|
*/
|
|
35
35
|
var CreateCustomFileResponse = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateFolderData model module.
|
|
31
31
|
* @module model/CreateFolderData
|
|
32
|
-
* @version 2.
|
|
32
|
+
* @version 2.1.0
|
|
33
33
|
*/
|
|
34
34
|
var CreateFolderData = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The CreateHtmlSubmissionData model module.
|
|
28
28
|
* @module model/CreateHtmlSubmissionData
|
|
29
|
-
* @version 2.
|
|
29
|
+
* @version 2.1.0
|
|
30
30
|
*/
|
|
31
31
|
var CreateHtmlSubmissionData = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -86,6 +86,9 @@ var CreateHtmlSubmissionData = /*#__PURE__*/function () {
|
|
|
86
86
|
if (data.hasOwnProperty('test')) {
|
|
87
87
|
obj['test'] = _ApiClient["default"].convertToType(data['test'], 'Boolean');
|
|
88
88
|
}
|
|
89
|
+
if (data.hasOwnProperty('version')) {
|
|
90
|
+
obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
|
|
91
|
+
}
|
|
89
92
|
}
|
|
90
93
|
return obj;
|
|
91
94
|
}
|
|
@@ -110,6 +113,10 @@ var CreateHtmlSubmissionData = /*#__PURE__*/function () {
|
|
|
110
113
|
if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
|
|
111
114
|
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
|
|
112
115
|
}
|
|
116
|
+
// ensure the json data is a string
|
|
117
|
+
if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
|
|
118
|
+
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
|
|
119
|
+
}
|
|
113
120
|
return true;
|
|
114
121
|
}
|
|
115
122
|
}]);
|
|
@@ -158,4 +165,9 @@ CreateHtmlSubmissionData.prototype['password'] = undefined;
|
|
|
158
165
|
* @member {Boolean} test
|
|
159
166
|
*/
|
|
160
167
|
CreateHtmlSubmissionData.prototype['test'] = undefined;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* @member {String} version
|
|
171
|
+
*/
|
|
172
|
+
CreateHtmlSubmissionData.prototype['version'] = undefined;
|
|
161
173
|
var _default = exports["default"] = CreateHtmlSubmissionData;
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateHtmlTemplate model module.
|
|
31
31
|
* @module model/CreateHtmlTemplate
|
|
32
|
-
* @version 2.
|
|
32
|
+
* @version 2.1.0
|
|
33
33
|
*/
|
|
34
34
|
var CreateHtmlTemplate = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The CreatePdfSubmissionData model module.
|
|
32
32
|
* @module model/CreatePdfSubmissionData
|
|
33
|
-
* @version 2.
|
|
33
|
+
* @version 2.1.0
|
|
34
34
|
*/
|
|
35
35
|
var CreatePdfSubmissionData = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -90,6 +90,9 @@ var CreatePdfSubmissionData = /*#__PURE__*/function () {
|
|
|
90
90
|
if (data.hasOwnProperty('test')) {
|
|
91
91
|
obj['test'] = _ApiClient["default"].convertToType(data['test'], 'Boolean');
|
|
92
92
|
}
|
|
93
|
+
if (data.hasOwnProperty('version')) {
|
|
94
|
+
obj['version'] = _ApiClient["default"].convertToType(data['version'], 'String');
|
|
95
|
+
}
|
|
93
96
|
}
|
|
94
97
|
return obj;
|
|
95
98
|
}
|
|
@@ -142,6 +145,10 @@ var CreatePdfSubmissionData = /*#__PURE__*/function () {
|
|
|
142
145
|
if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) {
|
|
143
146
|
throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']);
|
|
144
147
|
}
|
|
148
|
+
// ensure the json data is a string
|
|
149
|
+
if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) {
|
|
150
|
+
throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']);
|
|
151
|
+
}
|
|
145
152
|
return true;
|
|
146
153
|
}
|
|
147
154
|
}]);
|
|
@@ -187,4 +194,9 @@ CreatePdfSubmissionData.prototype['password'] = undefined;
|
|
|
187
194
|
* @member {Boolean} test
|
|
188
195
|
*/
|
|
189
196
|
CreatePdfSubmissionData.prototype['test'] = undefined;
|
|
197
|
+
|
|
198
|
+
/**
|
|
199
|
+
* @member {String} version
|
|
200
|
+
*/
|
|
201
|
+
CreatePdfSubmissionData.prototype['version'] = undefined;
|
|
190
202
|
var _default = exports["default"] = CreatePdfSubmissionData;
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreatePdfTemplate model module.
|
|
31
31
|
* @module model/CreatePdfTemplate
|
|
32
|
-
* @version 2.
|
|
32
|
+
* @version 2.1.0
|
|
33
33
|
*/
|
|
34
34
|
var CreatePdfTemplate = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
/**
|
|
27
27
|
* The CreateSubmissionDataRequestData model module.
|
|
28
28
|
* @module model/CreateSubmissionDataRequestData
|
|
29
|
-
* @version 2.
|
|
29
|
+
* @version 2.1.0
|
|
30
30
|
*/
|
|
31
31
|
var CreateSubmissionDataRequestData = /*#__PURE__*/function () {
|
|
32
32
|
/**
|
|
@@ -29,7 +29,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
29
29
|
/**
|
|
30
30
|
* The CreateSubmissionDataRequestEventRequest model module.
|
|
31
31
|
* @module model/CreateSubmissionDataRequestEventRequest
|
|
32
|
-
* @version 2.
|
|
32
|
+
* @version 2.1.0
|
|
33
33
|
*/
|
|
34
34
|
var CreateSubmissionDataRequestEventRequest = /*#__PURE__*/function () {
|
|
35
35
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The CreateSubmissionDataRequestEventResponse model module.
|
|
32
32
|
* @module model/CreateSubmissionDataRequestEventResponse
|
|
33
|
-
* @version 2.
|
|
33
|
+
* @version 2.1.0
|
|
34
34
|
*/
|
|
35
35
|
var CreateSubmissionDataRequestEventResponse = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The CreateSubmissionDataRequestResponse model module.
|
|
32
32
|
* @module model/CreateSubmissionDataRequestResponse
|
|
33
|
-
* @version 2.
|
|
33
|
+
* @version 2.1.0
|
|
34
34
|
*/
|
|
35
35
|
var CreateSubmissionDataRequestResponse = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The CreateSubmissionDataRequestTokenResponse model module.
|
|
32
32
|
* @module model/CreateSubmissionDataRequestTokenResponse
|
|
33
|
-
* @version 2.
|
|
33
|
+
* @version 2.1.0
|
|
34
34
|
*/
|
|
35
35
|
var CreateSubmissionDataRequestTokenResponse = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -30,7 +30,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
30
30
|
/**
|
|
31
31
|
* The CreateSubmissionResponse model module.
|
|
32
32
|
* @module model/CreateSubmissionResponse
|
|
33
|
-
* @version 2.
|
|
33
|
+
* @version 2.1.0
|
|
34
34
|
*/
|
|
35
35
|
var CreateSubmissionResponse = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
package/dist/model/CustomFile.js
CHANGED
package/dist/model/Folder.js
CHANGED
package/dist/model/JsonSchema.js
CHANGED
|
@@ -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 2.
|
|
33
|
+
* @version 2.1.0
|
|
34
34
|
*/
|
|
35
35
|
var ListSubmissionsResponse = /*#__PURE__*/function () {
|
|
36
36
|
/**
|
|
@@ -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 2.
|
|
29
|
+
* @version 2.1.0
|
|
30
30
|
*/
|
|
31
31
|
var MoveFolderData = /*#__PURE__*/function () {
|
|
32
32
|
/**
|