docspring 1.4.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -52
- package/dist/ApiClient.js +701 -0
- package/dist/api/PDFApi.js +1509 -0
- package/dist/index.js +356 -0
- package/dist/model/AddFieldsData.js +112 -0
- package/dist/model/BatchGeneratePdfs201Response.js +184 -0
- package/dist/model/CombinePdfsData.js +156 -0
- package/dist/model/CombinedSubmission.js +323 -0
- package/dist/model/CombinedSubmissionAction.js +252 -0
- package/dist/model/CombinedSubmissionData.js +148 -0
- package/dist/model/CopyTemplateOptions.js +124 -0
- package/dist/model/CreateCombinedSubmissionResponse.js +158 -0
- package/dist/model/CreateCustomFileData.js +112 -0
- package/dist/model/CreateCustomFileResponse.js +158 -0
- package/dist/model/CreateFolderData.js +108 -0
- package/dist/model/CreateHtmlSubmissionData.js +161 -0
- package/dist/model/CreateHtmlTemplate.js +108 -0
- package/dist/model/CreatePdfSubmissionData.js +190 -0
- package/dist/model/CreatePdfTemplate.js +108 -0
- package/dist/model/CreateSubmissionDataRequestData.js +210 -0
- package/dist/model/CreateSubmissionDataRequestEventRequest.js +215 -0
- package/dist/model/CreateSubmissionDataRequestEventResponse.js +158 -0
- package/dist/model/CreateSubmissionDataRequestResponse.js +158 -0
- package/dist/model/CreateSubmissionDataRequestTokenResponse.js +158 -0
- package/dist/model/CreateSubmissionResponse.js +158 -0
- package/dist/model/CustomFile.js +126 -0
- package/dist/model/ErrorResponse.js +139 -0
- package/dist/model/Folder.js +154 -0
- package/dist/model/JsonSchema.js +173 -0
- package/dist/model/ListSubmissionsResponse.js +154 -0
- package/dist/model/MoveFolderData.js +89 -0
- package/dist/model/MoveTemplateData.js +112 -0
- package/dist/model/MultipleErrorsResponse.js +139 -0
- package/dist/model/RenameFolderData.js +112 -0
- package/dist/model/Submission.js +537 -0
- package/dist/model/SubmissionAction.js +252 -0
- package/dist/model/SubmissionBatch.js +213 -0
- package/dist/model/SubmissionBatchData.js +128 -0
- package/dist/model/SubmissionBatchWithSubmissions.js +243 -0
- package/dist/model/SubmissionDataRequest.js +475 -0
- package/dist/model/SubmissionDataRequestEvent.js +287 -0
- package/dist/model/SubmissionDataRequestShow.js +489 -0
- package/dist/model/SubmissionDataRequestToken.js +154 -0
- package/dist/model/SubmissionPreview.js +471 -0
- package/dist/model/SuccessErrorResponse.js +142 -0
- package/dist/model/SuccessMultipleErrorsResponse.js +142 -0
- package/dist/model/Template.js +717 -0
- package/dist/model/TemplateAddFieldsResponse.js +154 -0
- package/dist/model/TemplatePreview.js +593 -0
- package/dist/model/UpdateHtmlTemplate.js +108 -0
- package/dist/model/UpdateSubmissionDataRequestData.js +160 -0
- package/dist/model/UploadPresignResponse.js +157 -0
- package/package.json +33 -8
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator-ignore +0 -23
- package/.travis.yml +0 -7
- package/CHANGELOG.md +0 -33
- package/docs/AddFieldsData.md +0 -8
- package/docs/AddFieldsTemplateResponse.md +0 -21
- package/docs/AuthenticationError.md +0 -18
- package/docs/AuthenticationSuccessResponse.md +0 -17
- package/docs/CombinePdfsData.md +0 -13
- package/docs/CombinedSubmission.md +0 -31
- package/docs/CombinedSubmissionAction.md +0 -54
- package/docs/CombinedSubmissionData.md +0 -12
- package/docs/CopyTemplateData.md +0 -9
- package/docs/CreateCombinedSubmissionResponse.md +0 -21
- package/docs/CreateCustomFileData.md +0 -8
- package/docs/CreateCustomFileResponse.md +0 -21
- package/docs/CreateFolderData.md +0 -8
- package/docs/CreateHtmlTemplateData.md +0 -8
- package/docs/CreateSubmissionBatchResponse.md +0 -23
- package/docs/CreateSubmissionBatchSubmissionsResponse.md +0 -23
- package/docs/CreateSubmissionDataRequestData.md +0 -60
- package/docs/CreateSubmissionDataRequestTokenResponse.md +0 -21
- package/docs/CreateSubmissionDataRequestTokenResponseToken.md +0 -11
- package/docs/CreateSubmissionResponse.md +0 -21
- package/docs/CreateTemplateFromUploadData.md +0 -8
- package/docs/CustomFile.md +0 -9
- package/docs/Error.md +0 -18
- package/docs/Folder.md +0 -11
- package/docs/FoldersFolder.md +0 -9
- package/docs/FullTemplate.md +0 -59
- package/docs/FullTemplateDefaults.md +0 -10
- package/docs/HtmlTemplateData.md +0 -48
- package/docs/InvalidRequest.md +0 -18
- package/docs/ListSubmissionsResponse.md +0 -10
- package/docs/MoveFolderData.md +0 -8
- package/docs/MoveTemplateData.md +0 -8
- package/docs/PDFApi.md +0 -1700
- package/docs/PendingTemplate.md +0 -37
- package/docs/RenameFolderData.md +0 -8
- package/docs/Submission.md +0 -55
- package/docs/SubmissionAction.md +0 -54
- package/docs/SubmissionBatch.md +0 -29
- package/docs/SubmissionBatchData.md +0 -11
- package/docs/SubmissionData.md +0 -15
- package/docs/SubmissionDataBatchRequest.md +0 -13
- package/docs/SubmissionDataRequest.md +0 -78
- package/docs/Template.md +0 -40
- package/docs/TemplateData.md +0 -36
- package/docs/TemplatestemplateIdaddFieldsFields.md +0 -286
- package/docs/UpdateDataRequestResponse.md +0 -21
- package/docs/UpdateSubmissionDataRequestData.md +0 -60
- package/docs/UpdateTemplateData.md +0 -8
- package/docs/UpdateTemplateResponse.md +0 -20
- package/docs/UploadTemplateData.md +0 -49
- package/docs/UploadTemplateDataDocument.md +0 -19
- package/docs/UploadTemplateDataDocumentMetadata.md +0 -19
- package/git_push.sh +0 -52
- package/mocha.opts +0 -1
- package/src/ApiClient.js +0 -605
- package/src/api/Client.js +0 -395
- package/src/api/PDFApi.js +0 -1722
- package/src/index.js +0 -334
- package/src/model/AddFieldsData.js +0 -82
- package/src/model/AddFieldsTemplateResponse.js +0 -114
- package/src/model/AuthenticationError.js +0 -102
- package/src/model/AuthenticationSuccessResponse.js +0 -93
- package/src/model/CombinePdfsData.js +0 -122
- package/src/model/CombinedSubmission.js +0 -183
- package/src/model/CombinedSubmissionAction.js +0 -198
- package/src/model/CombinedSubmissionData.js +0 -114
- package/src/model/CopyTemplateData.js +0 -90
- package/src/model/CreateCombinedSubmissionResponse.js +0 -114
- package/src/model/CreateCustomFileData.js +0 -82
- package/src/model/CreateCustomFileResponse.js +0 -114
- package/src/model/CreateFolderData.js +0 -82
- package/src/model/CreateHtmlTemplateData.js +0 -82
- package/src/model/CreateSubmissionBatchResponse.js +0 -130
- package/src/model/CreateSubmissionBatchSubmissionsResponse.js +0 -119
- package/src/model/CreateSubmissionDataRequestData.js +0 -256
- package/src/model/CreateSubmissionDataRequestTokenResponse.js +0 -114
- package/src/model/CreateSubmissionDataRequestTokenResponseToken.js +0 -105
- package/src/model/CreateSubmissionResponse.js +0 -114
- package/src/model/CreateTemplateFromUploadData.js +0 -82
- package/src/model/CustomFile.js +0 -89
- package/src/model/Error.js +0 -103
- package/src/model/Folder.js +0 -105
- package/src/model/FoldersFolder.js +0 -89
- package/src/model/FullTemplate.js +0 -407
- package/src/model/FullTemplateDefaults.js +0 -97
- package/src/model/HtmlTemplateData.js +0 -248
- package/src/model/InvalidRequest.js +0 -103
- package/src/model/ListSubmissionsResponse.js +0 -97
- package/src/model/MoveFolderData.js +0 -81
- package/src/model/MoveTemplateData.js +0 -82
- package/src/model/PendingTemplate.js +0 -231
- package/src/model/RenameFolderData.js +0 -82
- package/src/model/Submission.js +0 -291
- package/src/model/SubmissionAction.js +0 -198
- package/src/model/SubmissionBatch.js +0 -167
- package/src/model/SubmissionBatchData.js +0 -106
- package/src/model/SubmissionData.js +0 -138
- package/src/model/SubmissionDataBatchRequest.js +0 -121
- package/src/model/SubmissionDataRequest.js +0 -337
- package/src/model/Template.js +0 -255
- package/src/model/TemplateData.js +0 -223
- package/src/model/TemplatestemplateIdaddFieldsFields.js +0 -1128
- package/src/model/UpdateDataRequestResponse.js +0 -114
- package/src/model/UpdateSubmissionDataRequestData.js +0 -256
- package/src/model/UpdateTemplateData.js +0 -82
- package/src/model/UpdateTemplateResponse.js +0 -106
- package/src/model/UploadTemplateData.js +0 -256
- package/src/model/UploadTemplateDataDocument.js +0 -109
- package/src/model/UploadTemplateDataDocumentMetadata.js +0 -109
- package/test/api/ClientIntegration.spec.js +0 -275
- package/test/api/PDFApi.spec.js.original +0 -395
- package/test/api/PDFApiIntegration.spec.js +0 -301
- package/test/model/AddFieldsData.spec.js +0 -67
- package/test/model/AddFieldsTemplateResponse.spec.js +0 -79
- package/test/model/AuthenticationError.spec.js +0 -73
- package/test/model/AuthenticationSuccessResponse.spec.js +0 -67
- package/test/model/CombinePdfsData.spec.js +0 -97
- package/test/model/CombinedSubmission.spec.js +0 -127
- package/test/model/CombinedSubmissionAction.spec.js +0 -97
- package/test/model/CombinedSubmissionData.spec.js +0 -91
- package/test/model/CopyTemplateData.spec.js +0 -73
- package/test/model/CreateCombinedSubmissionResponse.spec.js +0 -79
- package/test/model/CreateCustomFileData.spec.js +0 -67
- package/test/model/CreateCustomFileResponse.spec.js +0 -79
- package/test/model/CreateFolderData.spec.js +0 -67
- package/test/model/CreateHtmlTemplateData.spec.js +0 -67
- package/test/model/CreateSubmissionBatchResponse.spec.js +0 -91
- package/test/model/CreateSubmissionBatchSubmissionsResponse.spec.js +0 -79
- package/test/model/CreateSubmissionDataRequestData.spec.js +0 -139
- package/test/model/CreateSubmissionDataRequestTokenResponse.spec.js +0 -79
- package/test/model/CreateSubmissionDataRequestTokenResponseToken.spec.js +0 -85
- package/test/model/CreateSubmissionResponse.spec.js +0 -79
- package/test/model/CreateTemplateFromUploadData.spec.js +0 -67
- package/test/model/CustomFile.spec.js +0 -73
- package/test/model/Error.spec.js +0 -73
- package/test/model/Folder.spec.js +0 -85
- package/test/model/FoldersFolder.spec.js +0 -73
- package/test/model/FullTemplate.spec.js +0 -295
- package/test/model/FullTemplateDefaults.spec.js +0 -79
- package/test/model/HtmlTemplateData.spec.js +0 -163
- package/test/model/InvalidRequest.spec.js +0 -73
- package/test/model/ListSubmissionsResponse.spec.js +0 -79
- package/test/model/MoveFolderData.spec.js +0 -67
- package/test/model/MoveTemplateData.spec.js +0 -67
- package/test/model/PendingTemplate.spec.js +0 -163
- package/test/model/RenameFolderData.spec.js +0 -67
- package/test/model/Submission.spec.js +0 -175
- package/test/model/SubmissionAction.spec.js +0 -97
- package/test/model/SubmissionBatch.spec.js +0 -115
- package/test/model/SubmissionBatchData.spec.js +0 -85
- package/test/model/SubmissionData.spec.js +0 -109
- package/test/model/SubmissionDataBatchRequest.spec.js +0 -97
- package/test/model/SubmissionDataRequest.spec.js +0 -181
- package/test/model/Template.spec.js +0 -181
- package/test/model/TemplateData.spec.js +0 -157
- package/test/model/TemplatestemplateIdaddFieldsFields.spec.js +0 -577
- package/test/model/UpdateDataRequestResponse.spec.js +0 -79
- package/test/model/UpdateSubmissionDataRequestData.spec.js +0 -139
- package/test/model/UpdateTemplateData.spec.js +0 -67
- package/test/model/UpdateTemplateResponse.spec.js +0 -73
- package/test/model/UploadTemplateData.spec.js +0 -169
- package/test/model/UploadTemplateDataDocument.spec.js +0 -79
- package/test/model/UploadTemplateDataDocumentMetadata.spec.js +0 -79
- package/yarn.lock +0 -263
|
@@ -0,0 +1,1509 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
|
+
var _AddFieldsData = _interopRequireDefault(require("../model/AddFieldsData"));
|
|
9
|
+
var _BatchGeneratePdfs201Response = _interopRequireDefault(require("../model/BatchGeneratePdfs201Response"));
|
|
10
|
+
var _CombinePdfsData = _interopRequireDefault(require("../model/CombinePdfsData"));
|
|
11
|
+
var _CombinedSubmission = _interopRequireDefault(require("../model/CombinedSubmission"));
|
|
12
|
+
var _CombinedSubmissionData = _interopRequireDefault(require("../model/CombinedSubmissionData"));
|
|
13
|
+
var _CopyTemplateOptions = _interopRequireDefault(require("../model/CopyTemplateOptions"));
|
|
14
|
+
var _CreateCombinedSubmissionResponse = _interopRequireDefault(require("../model/CreateCombinedSubmissionResponse"));
|
|
15
|
+
var _CreateCustomFileData = _interopRequireDefault(require("../model/CreateCustomFileData"));
|
|
16
|
+
var _CreateCustomFileResponse = _interopRequireDefault(require("../model/CreateCustomFileResponse"));
|
|
17
|
+
var _CreateFolderData = _interopRequireDefault(require("../model/CreateFolderData"));
|
|
18
|
+
var _CreateHtmlSubmissionData = _interopRequireDefault(require("../model/CreateHtmlSubmissionData"));
|
|
19
|
+
var _CreateHtmlTemplate = _interopRequireDefault(require("../model/CreateHtmlTemplate"));
|
|
20
|
+
var _CreatePdfSubmissionData = _interopRequireDefault(require("../model/CreatePdfSubmissionData"));
|
|
21
|
+
var _CreatePdfTemplate = _interopRequireDefault(require("../model/CreatePdfTemplate"));
|
|
22
|
+
var _CreateSubmissionDataRequestEventRequest = _interopRequireDefault(require("../model/CreateSubmissionDataRequestEventRequest"));
|
|
23
|
+
var _CreateSubmissionDataRequestEventResponse = _interopRequireDefault(require("../model/CreateSubmissionDataRequestEventResponse"));
|
|
24
|
+
var _CreateSubmissionDataRequestResponse = _interopRequireDefault(require("../model/CreateSubmissionDataRequestResponse"));
|
|
25
|
+
var _CreateSubmissionDataRequestTokenResponse = _interopRequireDefault(require("../model/CreateSubmissionDataRequestTokenResponse"));
|
|
26
|
+
var _CreateSubmissionResponse = _interopRequireDefault(require("../model/CreateSubmissionResponse"));
|
|
27
|
+
var _ErrorResponse = _interopRequireDefault(require("../model/ErrorResponse"));
|
|
28
|
+
var _Folder = _interopRequireDefault(require("../model/Folder"));
|
|
29
|
+
var _JsonSchema = _interopRequireDefault(require("../model/JsonSchema"));
|
|
30
|
+
var _ListSubmissionsResponse = _interopRequireDefault(require("../model/ListSubmissionsResponse"));
|
|
31
|
+
var _MoveFolderData = _interopRequireDefault(require("../model/MoveFolderData"));
|
|
32
|
+
var _MoveTemplateData = _interopRequireDefault(require("../model/MoveTemplateData"));
|
|
33
|
+
var _MultipleErrorsResponse = _interopRequireDefault(require("../model/MultipleErrorsResponse"));
|
|
34
|
+
var _RenameFolderData = _interopRequireDefault(require("../model/RenameFolderData"));
|
|
35
|
+
var _Submission = _interopRequireDefault(require("../model/Submission"));
|
|
36
|
+
var _SubmissionBatchData = _interopRequireDefault(require("../model/SubmissionBatchData"));
|
|
37
|
+
var _SubmissionBatchWithSubmissions = _interopRequireDefault(require("../model/SubmissionBatchWithSubmissions"));
|
|
38
|
+
var _SubmissionDataRequestShow = _interopRequireDefault(require("../model/SubmissionDataRequestShow"));
|
|
39
|
+
var _SubmissionPreview = _interopRequireDefault(require("../model/SubmissionPreview"));
|
|
40
|
+
var _SuccessErrorResponse = _interopRequireDefault(require("../model/SuccessErrorResponse"));
|
|
41
|
+
var _SuccessMultipleErrorsResponse = _interopRequireDefault(require("../model/SuccessMultipleErrorsResponse"));
|
|
42
|
+
var _Template = _interopRequireDefault(require("../model/Template"));
|
|
43
|
+
var _TemplateAddFieldsResponse = _interopRequireDefault(require("../model/TemplateAddFieldsResponse"));
|
|
44
|
+
var _TemplatePreview = _interopRequireDefault(require("../model/TemplatePreview"));
|
|
45
|
+
var _UpdateHtmlTemplate = _interopRequireDefault(require("../model/UpdateHtmlTemplate"));
|
|
46
|
+
var _UpdateSubmissionDataRequestData = _interopRequireDefault(require("../model/UpdateSubmissionDataRequestData"));
|
|
47
|
+
var _UploadPresignResponse = _interopRequireDefault(require("../model/UploadPresignResponse"));
|
|
48
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
49
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
50
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
51
|
+
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); } }
|
|
52
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
53
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
54
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
55
|
+
* DocSpring API
|
|
56
|
+
* DocSpring provides an API that helps you fill out and sign PDF templates.
|
|
57
|
+
*
|
|
58
|
+
* The version of the OpenAPI document: v1
|
|
59
|
+
*
|
|
60
|
+
*
|
|
61
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
62
|
+
* https://openapi-generator.tech
|
|
63
|
+
* Do not edit the class manually.
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
/**
|
|
67
|
+
* PDF service.
|
|
68
|
+
* @module api/PDFApi
|
|
69
|
+
* @version 2.0.0
|
|
70
|
+
*/
|
|
71
|
+
var PDFApi = exports["default"] = /*#__PURE__*/function () {
|
|
72
|
+
/**
|
|
73
|
+
* Constructs a new PDFApi.
|
|
74
|
+
* @alias module:api/PDFApi
|
|
75
|
+
* @class
|
|
76
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
77
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
78
|
+
*/
|
|
79
|
+
function PDFApi(apiClient) {
|
|
80
|
+
_classCallCheck(this, PDFApi);
|
|
81
|
+
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Callback function to receive the result of the addFieldsToTemplate operation.
|
|
86
|
+
* @callback module:api/PDFApi~addFieldsToTemplateCallback
|
|
87
|
+
* @param {String} error Error message, if any.
|
|
88
|
+
* @param {module:model/TemplateAddFieldsResponse} data The data returned by the service call.
|
|
89
|
+
* @param {String} response The complete HTTP response.
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Add new fields to a Template
|
|
94
|
+
* @param {String} templateId
|
|
95
|
+
* @param {module:model/AddFieldsData} data
|
|
96
|
+
* @param {module:api/PDFApi~addFieldsToTemplateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
97
|
+
* data is of type: {@link module:model/TemplateAddFieldsResponse}
|
|
98
|
+
*/
|
|
99
|
+
return _createClass(PDFApi, [{
|
|
100
|
+
key: "addFieldsToTemplate",
|
|
101
|
+
value: function addFieldsToTemplate(templateId, data, callback) {
|
|
102
|
+
var postBody = data;
|
|
103
|
+
// verify the required parameter 'templateId' is set
|
|
104
|
+
if (templateId === undefined || templateId === null) {
|
|
105
|
+
throw new Error("Missing the required parameter 'templateId' when calling addFieldsToTemplate");
|
|
106
|
+
}
|
|
107
|
+
// verify the required parameter 'data' is set
|
|
108
|
+
if (data === undefined || data === null) {
|
|
109
|
+
throw new Error("Missing the required parameter 'data' when calling addFieldsToTemplate");
|
|
110
|
+
}
|
|
111
|
+
var pathParams = {
|
|
112
|
+
'template_id': templateId
|
|
113
|
+
};
|
|
114
|
+
var queryParams = {};
|
|
115
|
+
var headerParams = {};
|
|
116
|
+
var formParams = {};
|
|
117
|
+
var authNames = ['api_token_basic'];
|
|
118
|
+
var contentTypes = ['application/json'];
|
|
119
|
+
var accepts = ['application/json'];
|
|
120
|
+
var returnType = _TemplateAddFieldsResponse["default"];
|
|
121
|
+
return this.apiClient.callApi('/templates/{template_id}/add_fields', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Callback function to receive the result of the batchGeneratePdfs operation.
|
|
126
|
+
* @callback module:api/PDFApi~batchGeneratePdfsCallback
|
|
127
|
+
* @param {String} error Error message, if any.
|
|
128
|
+
* @param {module:model/BatchGeneratePdfs201Response} data The data returned by the service call.
|
|
129
|
+
* @param {String} response The complete HTTP response.
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Generates multiple PDFs
|
|
134
|
+
* @param {module:model/SubmissionBatchData} data
|
|
135
|
+
* @param {Object} opts Optional parameters
|
|
136
|
+
* @param {Boolean} [wait = true)] Wait for submission batch to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain)
|
|
137
|
+
* @param {module:api/PDFApi~batchGeneratePdfsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
138
|
+
* data is of type: {@link module:model/BatchGeneratePdfs201Response}
|
|
139
|
+
*/
|
|
140
|
+
}, {
|
|
141
|
+
key: "batchGeneratePdfs",
|
|
142
|
+
value: function batchGeneratePdfs(data, opts, callback) {
|
|
143
|
+
opts = opts || {};
|
|
144
|
+
var postBody = data;
|
|
145
|
+
// verify the required parameter 'data' is set
|
|
146
|
+
if (data === undefined || data === null) {
|
|
147
|
+
throw new Error("Missing the required parameter 'data' when calling batchGeneratePdfs");
|
|
148
|
+
}
|
|
149
|
+
var pathParams = {};
|
|
150
|
+
var queryParams = {
|
|
151
|
+
'wait': opts['wait']
|
|
152
|
+
};
|
|
153
|
+
var headerParams = {};
|
|
154
|
+
var formParams = {};
|
|
155
|
+
var authNames = ['api_token_basic'];
|
|
156
|
+
var contentTypes = ['application/json'];
|
|
157
|
+
var accepts = ['application/json'];
|
|
158
|
+
var returnType = _BatchGeneratePdfs201Response["default"];
|
|
159
|
+
return this.apiClient.callApi('/submissions/batches', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Callback function to receive the result of the combinePdfs operation.
|
|
164
|
+
* @callback module:api/PDFApi~combinePdfsCallback
|
|
165
|
+
* @param {String} error Error message, if any.
|
|
166
|
+
* @param {module:model/CreateCombinedSubmissionResponse} data The data returned by the service call.
|
|
167
|
+
* @param {String} response The complete HTTP response.
|
|
168
|
+
*/
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* Merge submission PDFs, template PDFs, or custom files
|
|
172
|
+
* @param {module:model/CombinePdfsData} data
|
|
173
|
+
* @param {module:api/PDFApi~combinePdfsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
174
|
+
* data is of type: {@link module:model/CreateCombinedSubmissionResponse}
|
|
175
|
+
*/
|
|
176
|
+
}, {
|
|
177
|
+
key: "combinePdfs",
|
|
178
|
+
value: function combinePdfs(data, callback) {
|
|
179
|
+
var postBody = data;
|
|
180
|
+
// verify the required parameter 'data' is set
|
|
181
|
+
if (data === undefined || data === null) {
|
|
182
|
+
throw new Error("Missing the required parameter 'data' when calling combinePdfs");
|
|
183
|
+
}
|
|
184
|
+
var pathParams = {};
|
|
185
|
+
var queryParams = {};
|
|
186
|
+
var headerParams = {};
|
|
187
|
+
var formParams = {};
|
|
188
|
+
var authNames = ['api_token_basic'];
|
|
189
|
+
var contentTypes = ['application/json'];
|
|
190
|
+
var accepts = ['application/json'];
|
|
191
|
+
var returnType = _CreateCombinedSubmissionResponse["default"];
|
|
192
|
+
return this.apiClient.callApi('/combined_submissions?v=2', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Callback function to receive the result of the combineSubmissions operation.
|
|
197
|
+
* @callback module:api/PDFApi~combineSubmissionsCallback
|
|
198
|
+
* @param {String} error Error message, if any.
|
|
199
|
+
* @param {module:model/CreateCombinedSubmissionResponse} data The data returned by the service call.
|
|
200
|
+
* @param {String} response The complete HTTP response.
|
|
201
|
+
*/
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Merge generated PDFs together
|
|
205
|
+
* @param {module:model/CombinedSubmissionData} data
|
|
206
|
+
* @param {Object} opts Optional parameters
|
|
207
|
+
* @param {Boolean} [wait = true)] Wait for combined submission to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain)
|
|
208
|
+
* @param {module:api/PDFApi~combineSubmissionsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
209
|
+
* data is of type: {@link module:model/CreateCombinedSubmissionResponse}
|
|
210
|
+
*/
|
|
211
|
+
}, {
|
|
212
|
+
key: "combineSubmissions",
|
|
213
|
+
value: function combineSubmissions(data, opts, callback) {
|
|
214
|
+
opts = opts || {};
|
|
215
|
+
var postBody = data;
|
|
216
|
+
// verify the required parameter 'data' is set
|
|
217
|
+
if (data === undefined || data === null) {
|
|
218
|
+
throw new Error("Missing the required parameter 'data' when calling combineSubmissions");
|
|
219
|
+
}
|
|
220
|
+
var pathParams = {};
|
|
221
|
+
var queryParams = {
|
|
222
|
+
'wait': opts['wait']
|
|
223
|
+
};
|
|
224
|
+
var headerParams = {};
|
|
225
|
+
var formParams = {};
|
|
226
|
+
var authNames = ['api_token_basic'];
|
|
227
|
+
var contentTypes = ['application/json'];
|
|
228
|
+
var accepts = ['application/json'];
|
|
229
|
+
var returnType = _CreateCombinedSubmissionResponse["default"];
|
|
230
|
+
return this.apiClient.callApi('/combined_submissions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Callback function to receive the result of the copyTemplate operation.
|
|
235
|
+
* @callback module:api/PDFApi~copyTemplateCallback
|
|
236
|
+
* @param {String} error Error message, if any.
|
|
237
|
+
* @param {module:model/TemplatePreview} data The data returned by the service call.
|
|
238
|
+
* @param {String} response The complete HTTP response.
|
|
239
|
+
*/
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Copy a Template
|
|
243
|
+
* @param {String} templateId
|
|
244
|
+
* @param {Object} opts Optional parameters
|
|
245
|
+
* @param {module:model/CopyTemplateOptions} [options]
|
|
246
|
+
* @param {module:api/PDFApi~copyTemplateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
247
|
+
* data is of type: {@link module:model/TemplatePreview}
|
|
248
|
+
*/
|
|
249
|
+
}, {
|
|
250
|
+
key: "copyTemplate",
|
|
251
|
+
value: function copyTemplate(templateId, opts, callback) {
|
|
252
|
+
opts = opts || {};
|
|
253
|
+
var postBody = opts['options'];
|
|
254
|
+
// verify the required parameter 'templateId' is set
|
|
255
|
+
if (templateId === undefined || templateId === null) {
|
|
256
|
+
throw new Error("Missing the required parameter 'templateId' when calling copyTemplate");
|
|
257
|
+
}
|
|
258
|
+
var pathParams = {
|
|
259
|
+
'template_id': templateId
|
|
260
|
+
};
|
|
261
|
+
var queryParams = {};
|
|
262
|
+
var headerParams = {};
|
|
263
|
+
var formParams = {};
|
|
264
|
+
var authNames = ['api_token_basic'];
|
|
265
|
+
var contentTypes = ['application/json'];
|
|
266
|
+
var accepts = ['application/json'];
|
|
267
|
+
var returnType = _TemplatePreview["default"];
|
|
268
|
+
return this.apiClient.callApi('/templates/{template_id}/copy', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* Callback function to receive the result of the createCustomFileFromUpload operation.
|
|
273
|
+
* @callback module:api/PDFApi~createCustomFileFromUploadCallback
|
|
274
|
+
* @param {String} error Error message, if any.
|
|
275
|
+
* @param {module:model/CreateCustomFileResponse} data The data returned by the service call.
|
|
276
|
+
* @param {String} response The complete HTTP response.
|
|
277
|
+
*/
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Create a new custom file from a cached presign upload
|
|
281
|
+
* @param {module:model/CreateCustomFileData} data
|
|
282
|
+
* @param {module:api/PDFApi~createCustomFileFromUploadCallback} callback The callback function, accepting three arguments: error, data, response
|
|
283
|
+
* data is of type: {@link module:model/CreateCustomFileResponse}
|
|
284
|
+
*/
|
|
285
|
+
}, {
|
|
286
|
+
key: "createCustomFileFromUpload",
|
|
287
|
+
value: function createCustomFileFromUpload(data, callback) {
|
|
288
|
+
var postBody = data;
|
|
289
|
+
// verify the required parameter 'data' is set
|
|
290
|
+
if (data === undefined || data === null) {
|
|
291
|
+
throw new Error("Missing the required parameter 'data' when calling createCustomFileFromUpload");
|
|
292
|
+
}
|
|
293
|
+
var pathParams = {};
|
|
294
|
+
var queryParams = {};
|
|
295
|
+
var headerParams = {};
|
|
296
|
+
var formParams = {};
|
|
297
|
+
var authNames = ['api_token_basic'];
|
|
298
|
+
var contentTypes = ['application/json'];
|
|
299
|
+
var accepts = ['application/json'];
|
|
300
|
+
var returnType = _CreateCustomFileResponse["default"];
|
|
301
|
+
return this.apiClient.callApi('/custom_files', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Callback function to receive the result of the createDataRequestEvent operation.
|
|
306
|
+
* @callback module:api/PDFApi~createDataRequestEventCallback
|
|
307
|
+
* @param {String} error Error message, if any.
|
|
308
|
+
* @param {module:model/CreateSubmissionDataRequestEventResponse} data The data returned by the service call.
|
|
309
|
+
* @param {String} response The complete HTTP response.
|
|
310
|
+
*/
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Creates a new event for emailing a signee a request for signature
|
|
314
|
+
* @param {String} dataRequestId
|
|
315
|
+
* @param {module:model/CreateSubmissionDataRequestEventRequest} event
|
|
316
|
+
* @param {module:api/PDFApi~createDataRequestEventCallback} callback The callback function, accepting three arguments: error, data, response
|
|
317
|
+
* data is of type: {@link module:model/CreateSubmissionDataRequestEventResponse}
|
|
318
|
+
*/
|
|
319
|
+
}, {
|
|
320
|
+
key: "createDataRequestEvent",
|
|
321
|
+
value: function createDataRequestEvent(dataRequestId, event, callback) {
|
|
322
|
+
var postBody = event;
|
|
323
|
+
// verify the required parameter 'dataRequestId' is set
|
|
324
|
+
if (dataRequestId === undefined || dataRequestId === null) {
|
|
325
|
+
throw new Error("Missing the required parameter 'dataRequestId' when calling createDataRequestEvent");
|
|
326
|
+
}
|
|
327
|
+
// verify the required parameter 'event' is set
|
|
328
|
+
if (event === undefined || event === null) {
|
|
329
|
+
throw new Error("Missing the required parameter 'event' when calling createDataRequestEvent");
|
|
330
|
+
}
|
|
331
|
+
var pathParams = {
|
|
332
|
+
'data_request_id': dataRequestId
|
|
333
|
+
};
|
|
334
|
+
var queryParams = {};
|
|
335
|
+
var headerParams = {};
|
|
336
|
+
var formParams = {};
|
|
337
|
+
var authNames = ['api_token_basic'];
|
|
338
|
+
var contentTypes = ['application/json'];
|
|
339
|
+
var accepts = ['application/json'];
|
|
340
|
+
var returnType = _CreateSubmissionDataRequestEventResponse["default"];
|
|
341
|
+
return this.apiClient.callApi('/data_requests/{data_request_id}/events', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Callback function to receive the result of the createDataRequestToken operation.
|
|
346
|
+
* @callback module:api/PDFApi~createDataRequestTokenCallback
|
|
347
|
+
* @param {String} error Error message, if any.
|
|
348
|
+
* @param {module:model/CreateSubmissionDataRequestTokenResponse} data The data returned by the service call.
|
|
349
|
+
* @param {String} response The complete HTTP response.
|
|
350
|
+
*/
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* Creates a new data request token for form authentication
|
|
354
|
+
* @param {String} dataRequestId
|
|
355
|
+
* @param {Object} opts Optional parameters
|
|
356
|
+
* @param {module:model/String} [type]
|
|
357
|
+
* @param {module:api/PDFApi~createDataRequestTokenCallback} callback The callback function, accepting three arguments: error, data, response
|
|
358
|
+
* data is of type: {@link module:model/CreateSubmissionDataRequestTokenResponse}
|
|
359
|
+
*/
|
|
360
|
+
}, {
|
|
361
|
+
key: "createDataRequestToken",
|
|
362
|
+
value: function createDataRequestToken(dataRequestId, opts, callback) {
|
|
363
|
+
opts = opts || {};
|
|
364
|
+
var postBody = null;
|
|
365
|
+
// verify the required parameter 'dataRequestId' is set
|
|
366
|
+
if (dataRequestId === undefined || dataRequestId === null) {
|
|
367
|
+
throw new Error("Missing the required parameter 'dataRequestId' when calling createDataRequestToken");
|
|
368
|
+
}
|
|
369
|
+
var pathParams = {
|
|
370
|
+
'data_request_id': dataRequestId
|
|
371
|
+
};
|
|
372
|
+
var queryParams = {
|
|
373
|
+
'type': opts['type']
|
|
374
|
+
};
|
|
375
|
+
var headerParams = {};
|
|
376
|
+
var formParams = {};
|
|
377
|
+
var authNames = ['api_token_basic'];
|
|
378
|
+
var contentTypes = [];
|
|
379
|
+
var accepts = ['application/json'];
|
|
380
|
+
var returnType = _CreateSubmissionDataRequestTokenResponse["default"];
|
|
381
|
+
return this.apiClient.callApi('/data_requests/{data_request_id}/tokens', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* Callback function to receive the result of the createFolder operation.
|
|
386
|
+
* @callback module:api/PDFApi~createFolderCallback
|
|
387
|
+
* @param {String} error Error message, if any.
|
|
388
|
+
* @param {module:model/Folder} data The data returned by the service call.
|
|
389
|
+
* @param {String} response The complete HTTP response.
|
|
390
|
+
*/
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* Create a folder
|
|
394
|
+
* @param {module:model/CreateFolderData} data
|
|
395
|
+
* @param {module:api/PDFApi~createFolderCallback} callback The callback function, accepting three arguments: error, data, response
|
|
396
|
+
* data is of type: {@link module:model/Folder}
|
|
397
|
+
*/
|
|
398
|
+
}, {
|
|
399
|
+
key: "createFolder",
|
|
400
|
+
value: function createFolder(data, callback) {
|
|
401
|
+
var postBody = data;
|
|
402
|
+
// verify the required parameter 'data' is set
|
|
403
|
+
if (data === undefined || data === null) {
|
|
404
|
+
throw new Error("Missing the required parameter 'data' when calling createFolder");
|
|
405
|
+
}
|
|
406
|
+
var pathParams = {};
|
|
407
|
+
var queryParams = {};
|
|
408
|
+
var headerParams = {};
|
|
409
|
+
var formParams = {};
|
|
410
|
+
var authNames = ['api_token_basic'];
|
|
411
|
+
var contentTypes = ['application/json'];
|
|
412
|
+
var accepts = ['application/json'];
|
|
413
|
+
var returnType = _Folder["default"];
|
|
414
|
+
return this.apiClient.callApi('/folders/', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Callback function to receive the result of the createHTMLTemplate operation.
|
|
419
|
+
* @callback module:api/PDFApi~createHTMLTemplateCallback
|
|
420
|
+
* @param {String} error Error message, if any.
|
|
421
|
+
* @param {module:model/TemplatePreview} data The data returned by the service call.
|
|
422
|
+
* @param {String} response The complete HTTP response.
|
|
423
|
+
*/
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Create a new HTML template
|
|
427
|
+
* @param {module:model/CreateHtmlTemplate} data
|
|
428
|
+
* @param {module:api/PDFApi~createHTMLTemplateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
429
|
+
* data is of type: {@link module:model/TemplatePreview}
|
|
430
|
+
*/
|
|
431
|
+
}, {
|
|
432
|
+
key: "createHTMLTemplate",
|
|
433
|
+
value: function createHTMLTemplate(data, callback) {
|
|
434
|
+
var postBody = data;
|
|
435
|
+
// verify the required parameter 'data' is set
|
|
436
|
+
if (data === undefined || data === null) {
|
|
437
|
+
throw new Error("Missing the required parameter 'data' when calling createHTMLTemplate");
|
|
438
|
+
}
|
|
439
|
+
var pathParams = {};
|
|
440
|
+
var queryParams = {};
|
|
441
|
+
var headerParams = {};
|
|
442
|
+
var formParams = {};
|
|
443
|
+
var authNames = ['api_token_basic'];
|
|
444
|
+
var contentTypes = ['application/json'];
|
|
445
|
+
var accepts = ['application/json'];
|
|
446
|
+
var returnType = _TemplatePreview["default"];
|
|
447
|
+
return this.apiClient.callApi('/templates?endpoint_description=html', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Callback function to receive the result of the createPDFTemplate operation.
|
|
452
|
+
* @callback module:api/PDFApi~createPDFTemplateCallback
|
|
453
|
+
* @param {String} error Error message, if any.
|
|
454
|
+
* @param {module:model/TemplatePreview} data The data returned by the service call.
|
|
455
|
+
* @param {String} response The complete HTTP response.
|
|
456
|
+
*/
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* Create a new PDF template with a form POST file upload
|
|
460
|
+
* @param {File} templateDocument
|
|
461
|
+
* @param {String} templateName
|
|
462
|
+
* @param {Object} opts Optional parameters
|
|
463
|
+
* @param {Boolean} [wait = true)] Wait for template document to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain)
|
|
464
|
+
* @param {String} [templateDescription]
|
|
465
|
+
* @param {String} [templateParentFolderId]
|
|
466
|
+
* @param {module:api/PDFApi~createPDFTemplateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
467
|
+
* data is of type: {@link module:model/TemplatePreview}
|
|
468
|
+
*/
|
|
469
|
+
}, {
|
|
470
|
+
key: "createPDFTemplate",
|
|
471
|
+
value: function createPDFTemplate(templateDocument, templateName, opts, callback) {
|
|
472
|
+
opts = opts || {};
|
|
473
|
+
var postBody = null;
|
|
474
|
+
// verify the required parameter 'templateDocument' is set
|
|
475
|
+
if (templateDocument === undefined || templateDocument === null) {
|
|
476
|
+
throw new Error("Missing the required parameter 'templateDocument' when calling createPDFTemplate");
|
|
477
|
+
}
|
|
478
|
+
// verify the required parameter 'templateName' is set
|
|
479
|
+
if (templateName === undefined || templateName === null) {
|
|
480
|
+
throw new Error("Missing the required parameter 'templateName' when calling createPDFTemplate");
|
|
481
|
+
}
|
|
482
|
+
var pathParams = {};
|
|
483
|
+
var queryParams = {
|
|
484
|
+
'wait': opts['wait']
|
|
485
|
+
};
|
|
486
|
+
var headerParams = {};
|
|
487
|
+
var formParams = {
|
|
488
|
+
'template[document]': templateDocument,
|
|
489
|
+
'template[name]': templateName,
|
|
490
|
+
'template[description]': opts['templateDescription'],
|
|
491
|
+
'template[parent_folder_id]': opts['templateParentFolderId']
|
|
492
|
+
};
|
|
493
|
+
var authNames = ['api_token_basic'];
|
|
494
|
+
var contentTypes = ['multipart/form-data'];
|
|
495
|
+
var accepts = ['application/json'];
|
|
496
|
+
var returnType = _TemplatePreview["default"];
|
|
497
|
+
return this.apiClient.callApi('/templates', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Callback function to receive the result of the createPDFTemplateFromUpload operation.
|
|
502
|
+
* @callback module:api/PDFApi~createPDFTemplateFromUploadCallback
|
|
503
|
+
* @param {String} error Error message, if any.
|
|
504
|
+
* @param {module:model/TemplatePreview} data The data returned by the service call.
|
|
505
|
+
* @param {String} response The complete HTTP response.
|
|
506
|
+
*/
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Create a new PDF template from a cached presign upload
|
|
510
|
+
* @param {module:model/CreatePdfTemplate} data
|
|
511
|
+
* @param {module:api/PDFApi~createPDFTemplateFromUploadCallback} callback The callback function, accepting three arguments: error, data, response
|
|
512
|
+
* data is of type: {@link module:model/TemplatePreview}
|
|
513
|
+
*/
|
|
514
|
+
}, {
|
|
515
|
+
key: "createPDFTemplateFromUpload",
|
|
516
|
+
value: function createPDFTemplateFromUpload(data, callback) {
|
|
517
|
+
var postBody = data;
|
|
518
|
+
// verify the required parameter 'data' is set
|
|
519
|
+
if (data === undefined || data === null) {
|
|
520
|
+
throw new Error("Missing the required parameter 'data' when calling createPDFTemplateFromUpload");
|
|
521
|
+
}
|
|
522
|
+
var pathParams = {};
|
|
523
|
+
var queryParams = {};
|
|
524
|
+
var headerParams = {};
|
|
525
|
+
var formParams = {};
|
|
526
|
+
var authNames = ['api_token_basic'];
|
|
527
|
+
var contentTypes = ['application/json'];
|
|
528
|
+
var accepts = ['application/json'];
|
|
529
|
+
var returnType = _TemplatePreview["default"];
|
|
530
|
+
return this.apiClient.callApi('/templates?endpoint_description=cached_upload', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Callback function to receive the result of the deleteFolder operation.
|
|
535
|
+
* @callback module:api/PDFApi~deleteFolderCallback
|
|
536
|
+
* @param {String} error Error message, if any.
|
|
537
|
+
* @param {module:model/Folder} data The data returned by the service call.
|
|
538
|
+
* @param {String} response The complete HTTP response.
|
|
539
|
+
*/
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* Delete a folder
|
|
543
|
+
* @param {String} folderId
|
|
544
|
+
* @param {module:api/PDFApi~deleteFolderCallback} callback The callback function, accepting three arguments: error, data, response
|
|
545
|
+
* data is of type: {@link module:model/Folder}
|
|
546
|
+
*/
|
|
547
|
+
}, {
|
|
548
|
+
key: "deleteFolder",
|
|
549
|
+
value: function deleteFolder(folderId, callback) {
|
|
550
|
+
var postBody = null;
|
|
551
|
+
// verify the required parameter 'folderId' is set
|
|
552
|
+
if (folderId === undefined || folderId === null) {
|
|
553
|
+
throw new Error("Missing the required parameter 'folderId' when calling deleteFolder");
|
|
554
|
+
}
|
|
555
|
+
var pathParams = {
|
|
556
|
+
'folder_id': folderId
|
|
557
|
+
};
|
|
558
|
+
var queryParams = {};
|
|
559
|
+
var headerParams = {};
|
|
560
|
+
var formParams = {};
|
|
561
|
+
var authNames = ['api_token_basic'];
|
|
562
|
+
var contentTypes = [];
|
|
563
|
+
var accepts = ['application/json'];
|
|
564
|
+
var returnType = _Folder["default"];
|
|
565
|
+
return this.apiClient.callApi('/folders/{folder_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* Callback function to receive the result of the deleteTemplate operation.
|
|
570
|
+
* @callback module:api/PDFApi~deleteTemplateCallback
|
|
571
|
+
* @param {String} error Error message, if any.
|
|
572
|
+
* @param {module:model/SuccessMultipleErrorsResponse} data The data returned by the service call.
|
|
573
|
+
* @param {String} response The complete HTTP response.
|
|
574
|
+
*/
|
|
575
|
+
|
|
576
|
+
/**
|
|
577
|
+
* Delete a template
|
|
578
|
+
* @param {String} templateId
|
|
579
|
+
* @param {module:api/PDFApi~deleteTemplateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
580
|
+
* data is of type: {@link module:model/SuccessMultipleErrorsResponse}
|
|
581
|
+
*/
|
|
582
|
+
}, {
|
|
583
|
+
key: "deleteTemplate",
|
|
584
|
+
value: function deleteTemplate(templateId, callback) {
|
|
585
|
+
var postBody = null;
|
|
586
|
+
// verify the required parameter 'templateId' is set
|
|
587
|
+
if (templateId === undefined || templateId === null) {
|
|
588
|
+
throw new Error("Missing the required parameter 'templateId' when calling deleteTemplate");
|
|
589
|
+
}
|
|
590
|
+
var pathParams = {
|
|
591
|
+
'template_id': templateId
|
|
592
|
+
};
|
|
593
|
+
var queryParams = {};
|
|
594
|
+
var headerParams = {};
|
|
595
|
+
var formParams = {};
|
|
596
|
+
var authNames = ['api_token_basic'];
|
|
597
|
+
var contentTypes = [];
|
|
598
|
+
var accepts = ['application/json'];
|
|
599
|
+
var returnType = _SuccessMultipleErrorsResponse["default"];
|
|
600
|
+
return this.apiClient.callApi('/templates/{template_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Callback function to receive the result of the expireCombinedSubmission operation.
|
|
605
|
+
* @callback module:api/PDFApi~expireCombinedSubmissionCallback
|
|
606
|
+
* @param {String} error Error message, if any.
|
|
607
|
+
* @param {module:model/CombinedSubmission} data The data returned by the service call.
|
|
608
|
+
* @param {String} response The complete HTTP response.
|
|
609
|
+
*/
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Expire a combined submission
|
|
613
|
+
* @param {String} combinedSubmissionId
|
|
614
|
+
* @param {module:api/PDFApi~expireCombinedSubmissionCallback} callback The callback function, accepting three arguments: error, data, response
|
|
615
|
+
* data is of type: {@link module:model/CombinedSubmission}
|
|
616
|
+
*/
|
|
617
|
+
}, {
|
|
618
|
+
key: "expireCombinedSubmission",
|
|
619
|
+
value: function expireCombinedSubmission(combinedSubmissionId, callback) {
|
|
620
|
+
var postBody = null;
|
|
621
|
+
// verify the required parameter 'combinedSubmissionId' is set
|
|
622
|
+
if (combinedSubmissionId === undefined || combinedSubmissionId === null) {
|
|
623
|
+
throw new Error("Missing the required parameter 'combinedSubmissionId' when calling expireCombinedSubmission");
|
|
624
|
+
}
|
|
625
|
+
var pathParams = {
|
|
626
|
+
'combined_submission_id': combinedSubmissionId
|
|
627
|
+
};
|
|
628
|
+
var queryParams = {};
|
|
629
|
+
var headerParams = {};
|
|
630
|
+
var formParams = {};
|
|
631
|
+
var authNames = ['api_token_basic'];
|
|
632
|
+
var contentTypes = [];
|
|
633
|
+
var accepts = ['application/json'];
|
|
634
|
+
var returnType = _CombinedSubmission["default"];
|
|
635
|
+
return this.apiClient.callApi('/combined_submissions/{combined_submission_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Callback function to receive the result of the expireSubmission operation.
|
|
640
|
+
* @callback module:api/PDFApi~expireSubmissionCallback
|
|
641
|
+
* @param {String} error Error message, if any.
|
|
642
|
+
* @param {module:model/SubmissionPreview} data The data returned by the service call.
|
|
643
|
+
* @param {String} response The complete HTTP response.
|
|
644
|
+
*/
|
|
645
|
+
|
|
646
|
+
/**
|
|
647
|
+
* Expire a PDF submission
|
|
648
|
+
* @param {String} submissionId
|
|
649
|
+
* @param {module:api/PDFApi~expireSubmissionCallback} callback The callback function, accepting three arguments: error, data, response
|
|
650
|
+
* data is of type: {@link module:model/SubmissionPreview}
|
|
651
|
+
*/
|
|
652
|
+
}, {
|
|
653
|
+
key: "expireSubmission",
|
|
654
|
+
value: function expireSubmission(submissionId, callback) {
|
|
655
|
+
var postBody = null;
|
|
656
|
+
// verify the required parameter 'submissionId' is set
|
|
657
|
+
if (submissionId === undefined || submissionId === null) {
|
|
658
|
+
throw new Error("Missing the required parameter 'submissionId' when calling expireSubmission");
|
|
659
|
+
}
|
|
660
|
+
var pathParams = {
|
|
661
|
+
'submission_id': submissionId
|
|
662
|
+
};
|
|
663
|
+
var queryParams = {};
|
|
664
|
+
var headerParams = {};
|
|
665
|
+
var formParams = {};
|
|
666
|
+
var authNames = ['api_token_basic'];
|
|
667
|
+
var contentTypes = [];
|
|
668
|
+
var accepts = ['application/json'];
|
|
669
|
+
var returnType = _SubmissionPreview["default"];
|
|
670
|
+
return this.apiClient.callApi('/submissions/{submission_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* Callback function to receive the result of the generatePdf operation.
|
|
675
|
+
* @callback module:api/PDFApi~generatePdfCallback
|
|
676
|
+
* @param {String} error Error message, if any.
|
|
677
|
+
* @param {module:model/CreateSubmissionResponse} data The data returned by the service call.
|
|
678
|
+
* @param {String} response The complete HTTP response.
|
|
679
|
+
*/
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* Generates a new PDF
|
|
683
|
+
* @param {String} templateId
|
|
684
|
+
* @param {module:model/CreatePdfSubmissionData} submission
|
|
685
|
+
* @param {Object} opts Optional parameters
|
|
686
|
+
* @param {Boolean} [wait = true)] Wait for submission to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain)
|
|
687
|
+
* @param {module:api/PDFApi~generatePdfCallback} callback The callback function, accepting three arguments: error, data, response
|
|
688
|
+
* data is of type: {@link module:model/CreateSubmissionResponse}
|
|
689
|
+
*/
|
|
690
|
+
}, {
|
|
691
|
+
key: "generatePdf",
|
|
692
|
+
value: function generatePdf(templateId, submission, opts, callback) {
|
|
693
|
+
opts = opts || {};
|
|
694
|
+
var postBody = submission;
|
|
695
|
+
// verify the required parameter 'templateId' is set
|
|
696
|
+
if (templateId === undefined || templateId === null) {
|
|
697
|
+
throw new Error("Missing the required parameter 'templateId' when calling generatePdf");
|
|
698
|
+
}
|
|
699
|
+
// verify the required parameter 'submission' is set
|
|
700
|
+
if (submission === undefined || submission === null) {
|
|
701
|
+
throw new Error("Missing the required parameter 'submission' when calling generatePdf");
|
|
702
|
+
}
|
|
703
|
+
var pathParams = {
|
|
704
|
+
'template_id': templateId
|
|
705
|
+
};
|
|
706
|
+
var queryParams = {
|
|
707
|
+
'wait': opts['wait']
|
|
708
|
+
};
|
|
709
|
+
var headerParams = {};
|
|
710
|
+
var formParams = {};
|
|
711
|
+
var authNames = ['api_token_basic'];
|
|
712
|
+
var contentTypes = ['application/json'];
|
|
713
|
+
var accepts = ['application/json'];
|
|
714
|
+
var returnType = _CreateSubmissionResponse["default"];
|
|
715
|
+
return this.apiClient.callApi('/templates/{template_id}/submissions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Callback function to receive the result of the generatePdfForHtmlTemplate operation.
|
|
720
|
+
* @callback module:api/PDFApi~generatePdfForHtmlTemplateCallback
|
|
721
|
+
* @param {String} error Error message, if any.
|
|
722
|
+
* @param {module:model/CreateSubmissionResponse} data The data returned by the service call.
|
|
723
|
+
* @param {String} response The complete HTTP response.
|
|
724
|
+
*/
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Generates a new PDF for an HTML template
|
|
728
|
+
* @param {String} templateId
|
|
729
|
+
* @param {module:model/CreateHtmlSubmissionData} submission
|
|
730
|
+
* @param {Object} opts Optional parameters
|
|
731
|
+
* @param {Boolean} [wait = true)] Wait for submission to be processed before returning. Set to false to return immediately. Default: true (on sync.* subdomain)
|
|
732
|
+
* @param {module:api/PDFApi~generatePdfForHtmlTemplateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
733
|
+
* data is of type: {@link module:model/CreateSubmissionResponse}
|
|
734
|
+
*/
|
|
735
|
+
}, {
|
|
736
|
+
key: "generatePdfForHtmlTemplate",
|
|
737
|
+
value: function generatePdfForHtmlTemplate(templateId, submission, opts, callback) {
|
|
738
|
+
opts = opts || {};
|
|
739
|
+
var postBody = submission;
|
|
740
|
+
// verify the required parameter 'templateId' is set
|
|
741
|
+
if (templateId === undefined || templateId === null) {
|
|
742
|
+
throw new Error("Missing the required parameter 'templateId' when calling generatePdfForHtmlTemplate");
|
|
743
|
+
}
|
|
744
|
+
// verify the required parameter 'submission' is set
|
|
745
|
+
if (submission === undefined || submission === null) {
|
|
746
|
+
throw new Error("Missing the required parameter 'submission' when calling generatePdfForHtmlTemplate");
|
|
747
|
+
}
|
|
748
|
+
var pathParams = {
|
|
749
|
+
'template_id': templateId
|
|
750
|
+
};
|
|
751
|
+
var queryParams = {
|
|
752
|
+
'wait': opts['wait']
|
|
753
|
+
};
|
|
754
|
+
var headerParams = {};
|
|
755
|
+
var formParams = {};
|
|
756
|
+
var authNames = ['api_token_basic'];
|
|
757
|
+
var contentTypes = ['application/json'];
|
|
758
|
+
var accepts = ['application/json'];
|
|
759
|
+
var returnType = _CreateSubmissionResponse["default"];
|
|
760
|
+
return this.apiClient.callApi('/templates/{template_id}/submissions?endpoint_description=html_templates', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Callback function to receive the result of the generatePreview operation.
|
|
765
|
+
* @callback module:api/PDFApi~generatePreviewCallback
|
|
766
|
+
* @param {String} error Error message, if any.
|
|
767
|
+
* @param {module:model/SuccessErrorResponse} data The data returned by the service call.
|
|
768
|
+
* @param {String} response The complete HTTP response.
|
|
769
|
+
*/
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Generated a preview PDF for partially completed data requests
|
|
773
|
+
* @param {String} submissionId
|
|
774
|
+
* @param {module:api/PDFApi~generatePreviewCallback} callback The callback function, accepting three arguments: error, data, response
|
|
775
|
+
* data is of type: {@link module:model/SuccessErrorResponse}
|
|
776
|
+
*/
|
|
777
|
+
}, {
|
|
778
|
+
key: "generatePreview",
|
|
779
|
+
value: function generatePreview(submissionId, callback) {
|
|
780
|
+
var postBody = null;
|
|
781
|
+
// verify the required parameter 'submissionId' is set
|
|
782
|
+
if (submissionId === undefined || submissionId === null) {
|
|
783
|
+
throw new Error("Missing the required parameter 'submissionId' when calling generatePreview");
|
|
784
|
+
}
|
|
785
|
+
var pathParams = {
|
|
786
|
+
'submission_id': submissionId
|
|
787
|
+
};
|
|
788
|
+
var queryParams = {};
|
|
789
|
+
var headerParams = {};
|
|
790
|
+
var formParams = {};
|
|
791
|
+
var authNames = ['api_token_basic'];
|
|
792
|
+
var contentTypes = [];
|
|
793
|
+
var accepts = ['application/json'];
|
|
794
|
+
var returnType = _SuccessErrorResponse["default"];
|
|
795
|
+
return this.apiClient.callApi('/submissions/{submission_id}/generate_preview', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Callback function to receive the result of the getCombinedSubmission operation.
|
|
800
|
+
* @callback module:api/PDFApi~getCombinedSubmissionCallback
|
|
801
|
+
* @param {String} error Error message, if any.
|
|
802
|
+
* @param {module:model/CombinedSubmission} data The data returned by the service call.
|
|
803
|
+
* @param {String} response The complete HTTP response.
|
|
804
|
+
*/
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* Check the status of a combined submission (merged PDFs)
|
|
808
|
+
* @param {String} combinedSubmissionId
|
|
809
|
+
* @param {module:api/PDFApi~getCombinedSubmissionCallback} callback The callback function, accepting three arguments: error, data, response
|
|
810
|
+
* data is of type: {@link module:model/CombinedSubmission}
|
|
811
|
+
*/
|
|
812
|
+
}, {
|
|
813
|
+
key: "getCombinedSubmission",
|
|
814
|
+
value: function getCombinedSubmission(combinedSubmissionId, callback) {
|
|
815
|
+
var postBody = null;
|
|
816
|
+
// verify the required parameter 'combinedSubmissionId' is set
|
|
817
|
+
if (combinedSubmissionId === undefined || combinedSubmissionId === null) {
|
|
818
|
+
throw new Error("Missing the required parameter 'combinedSubmissionId' when calling getCombinedSubmission");
|
|
819
|
+
}
|
|
820
|
+
var pathParams = {
|
|
821
|
+
'combined_submission_id': combinedSubmissionId
|
|
822
|
+
};
|
|
823
|
+
var queryParams = {};
|
|
824
|
+
var headerParams = {};
|
|
825
|
+
var formParams = {};
|
|
826
|
+
var authNames = ['api_token_basic'];
|
|
827
|
+
var contentTypes = [];
|
|
828
|
+
var accepts = ['application/json'];
|
|
829
|
+
var returnType = _CombinedSubmission["default"];
|
|
830
|
+
return this.apiClient.callApi('/combined_submissions/{combined_submission_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* Callback function to receive the result of the getDataRequest operation.
|
|
835
|
+
* @callback module:api/PDFApi~getDataRequestCallback
|
|
836
|
+
* @param {String} error Error message, if any.
|
|
837
|
+
* @param {module:model/SubmissionDataRequestShow} data The data returned by the service call.
|
|
838
|
+
* @param {String} response The complete HTTP response.
|
|
839
|
+
*/
|
|
840
|
+
|
|
841
|
+
/**
|
|
842
|
+
* Look up a submission data request
|
|
843
|
+
* @param {String} dataRequestId
|
|
844
|
+
* @param {module:api/PDFApi~getDataRequestCallback} callback The callback function, accepting three arguments: error, data, response
|
|
845
|
+
* data is of type: {@link module:model/SubmissionDataRequestShow}
|
|
846
|
+
*/
|
|
847
|
+
}, {
|
|
848
|
+
key: "getDataRequest",
|
|
849
|
+
value: function getDataRequest(dataRequestId, callback) {
|
|
850
|
+
var postBody = null;
|
|
851
|
+
// verify the required parameter 'dataRequestId' is set
|
|
852
|
+
if (dataRequestId === undefined || dataRequestId === null) {
|
|
853
|
+
throw new Error("Missing the required parameter 'dataRequestId' when calling getDataRequest");
|
|
854
|
+
}
|
|
855
|
+
var pathParams = {
|
|
856
|
+
'data_request_id': dataRequestId
|
|
857
|
+
};
|
|
858
|
+
var queryParams = {};
|
|
859
|
+
var headerParams = {};
|
|
860
|
+
var formParams = {};
|
|
861
|
+
var authNames = ['api_token_basic'];
|
|
862
|
+
var contentTypes = [];
|
|
863
|
+
var accepts = ['application/json'];
|
|
864
|
+
var returnType = _SubmissionDataRequestShow["default"];
|
|
865
|
+
return this.apiClient.callApi('/data_requests/{data_request_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* Callback function to receive the result of the getFullTemplate operation.
|
|
870
|
+
* @callback module:api/PDFApi~getFullTemplateCallback
|
|
871
|
+
* @param {String} error Error message, if any.
|
|
872
|
+
* @param {module:model/Template} data The data returned by the service call.
|
|
873
|
+
* @param {String} response The complete HTTP response.
|
|
874
|
+
*/
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Fetch the full template attributes
|
|
878
|
+
* @param {String} templateId
|
|
879
|
+
* @param {module:api/PDFApi~getFullTemplateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
880
|
+
* data is of type: {@link module:model/Template}
|
|
881
|
+
*/
|
|
882
|
+
}, {
|
|
883
|
+
key: "getFullTemplate",
|
|
884
|
+
value: function getFullTemplate(templateId, callback) {
|
|
885
|
+
var postBody = null;
|
|
886
|
+
// verify the required parameter 'templateId' is set
|
|
887
|
+
if (templateId === undefined || templateId === null) {
|
|
888
|
+
throw new Error("Missing the required parameter 'templateId' when calling getFullTemplate");
|
|
889
|
+
}
|
|
890
|
+
var pathParams = {
|
|
891
|
+
'template_id': templateId
|
|
892
|
+
};
|
|
893
|
+
var queryParams = {};
|
|
894
|
+
var headerParams = {};
|
|
895
|
+
var formParams = {};
|
|
896
|
+
var authNames = ['api_token_basic'];
|
|
897
|
+
var contentTypes = [];
|
|
898
|
+
var accepts = ['application/json'];
|
|
899
|
+
var returnType = _Template["default"];
|
|
900
|
+
return this.apiClient.callApi('/templates/{template_id}?full=true', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Callback function to receive the result of the getPresignUrl operation.
|
|
905
|
+
* @callback module:api/PDFApi~getPresignUrlCallback
|
|
906
|
+
* @param {String} error Error message, if any.
|
|
907
|
+
* @param {module:model/UploadPresignResponse} data The data returned by the service call.
|
|
908
|
+
* @param {String} response The complete HTTP response.
|
|
909
|
+
*/
|
|
910
|
+
|
|
911
|
+
/**
|
|
912
|
+
* Get a presigned URL so that you can upload a file to our AWS S3 bucket
|
|
913
|
+
* @param {module:api/PDFApi~getPresignUrlCallback} callback The callback function, accepting three arguments: error, data, response
|
|
914
|
+
* data is of type: {@link module:model/UploadPresignResponse}
|
|
915
|
+
*/
|
|
916
|
+
}, {
|
|
917
|
+
key: "getPresignUrl",
|
|
918
|
+
value: function getPresignUrl(callback) {
|
|
919
|
+
var postBody = null;
|
|
920
|
+
var pathParams = {};
|
|
921
|
+
var queryParams = {};
|
|
922
|
+
var headerParams = {};
|
|
923
|
+
var formParams = {};
|
|
924
|
+
var authNames = ['api_token_basic'];
|
|
925
|
+
var contentTypes = [];
|
|
926
|
+
var accepts = ['application/json'];
|
|
927
|
+
var returnType = _UploadPresignResponse["default"];
|
|
928
|
+
return this.apiClient.callApi('/uploads/presign', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
/**
|
|
932
|
+
* Callback function to receive the result of the getSubmission operation.
|
|
933
|
+
* @callback module:api/PDFApi~getSubmissionCallback
|
|
934
|
+
* @param {String} error Error message, if any.
|
|
935
|
+
* @param {module:model/Submission} data The data returned by the service call.
|
|
936
|
+
* @param {String} response The complete HTTP response.
|
|
937
|
+
*/
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* Check the status of a PDF
|
|
941
|
+
* @param {String} submissionId
|
|
942
|
+
* @param {Object} opts Optional parameters
|
|
943
|
+
* @param {Boolean} [includeData]
|
|
944
|
+
* @param {module:api/PDFApi~getSubmissionCallback} callback The callback function, accepting three arguments: error, data, response
|
|
945
|
+
* data is of type: {@link module:model/Submission}
|
|
946
|
+
*/
|
|
947
|
+
}, {
|
|
948
|
+
key: "getSubmission",
|
|
949
|
+
value: function getSubmission(submissionId, opts, callback) {
|
|
950
|
+
opts = opts || {};
|
|
951
|
+
var postBody = null;
|
|
952
|
+
// verify the required parameter 'submissionId' is set
|
|
953
|
+
if (submissionId === undefined || submissionId === null) {
|
|
954
|
+
throw new Error("Missing the required parameter 'submissionId' when calling getSubmission");
|
|
955
|
+
}
|
|
956
|
+
var pathParams = {
|
|
957
|
+
'submission_id': submissionId
|
|
958
|
+
};
|
|
959
|
+
var queryParams = {
|
|
960
|
+
'include_data': opts['includeData']
|
|
961
|
+
};
|
|
962
|
+
var headerParams = {};
|
|
963
|
+
var formParams = {};
|
|
964
|
+
var authNames = ['api_token_basic'];
|
|
965
|
+
var contentTypes = [];
|
|
966
|
+
var accepts = ['application/json'];
|
|
967
|
+
var returnType = _Submission["default"];
|
|
968
|
+
return this.apiClient.callApi('/submissions/{submission_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* Callback function to receive the result of the getSubmissionBatch operation.
|
|
973
|
+
* @callback module:api/PDFApi~getSubmissionBatchCallback
|
|
974
|
+
* @param {String} error Error message, if any.
|
|
975
|
+
* @param {module:model/SubmissionBatchWithSubmissions} data The data returned by the service call.
|
|
976
|
+
* @param {String} response The complete HTTP response.
|
|
977
|
+
*/
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Check the status of a submission batch job
|
|
981
|
+
* @param {String} submissionBatchId
|
|
982
|
+
* @param {Object} opts Optional parameters
|
|
983
|
+
* @param {Boolean} [includeSubmissions]
|
|
984
|
+
* @param {module:api/PDFApi~getSubmissionBatchCallback} callback The callback function, accepting three arguments: error, data, response
|
|
985
|
+
* data is of type: {@link module:model/SubmissionBatchWithSubmissions}
|
|
986
|
+
*/
|
|
987
|
+
}, {
|
|
988
|
+
key: "getSubmissionBatch",
|
|
989
|
+
value: function getSubmissionBatch(submissionBatchId, opts, callback) {
|
|
990
|
+
opts = opts || {};
|
|
991
|
+
var postBody = null;
|
|
992
|
+
// verify the required parameter 'submissionBatchId' is set
|
|
993
|
+
if (submissionBatchId === undefined || submissionBatchId === null) {
|
|
994
|
+
throw new Error("Missing the required parameter 'submissionBatchId' when calling getSubmissionBatch");
|
|
995
|
+
}
|
|
996
|
+
var pathParams = {
|
|
997
|
+
'submission_batch_id': submissionBatchId
|
|
998
|
+
};
|
|
999
|
+
var queryParams = {
|
|
1000
|
+
'include_submissions': opts['includeSubmissions']
|
|
1001
|
+
};
|
|
1002
|
+
var headerParams = {};
|
|
1003
|
+
var formParams = {};
|
|
1004
|
+
var authNames = ['api_token_basic'];
|
|
1005
|
+
var contentTypes = [];
|
|
1006
|
+
var accepts = ['application/json'];
|
|
1007
|
+
var returnType = _SubmissionBatchWithSubmissions["default"];
|
|
1008
|
+
return this.apiClient.callApi('/submissions/batches/{submission_batch_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
/**
|
|
1012
|
+
* Callback function to receive the result of the getTemplate operation.
|
|
1013
|
+
* @callback module:api/PDFApi~getTemplateCallback
|
|
1014
|
+
* @param {String} error Error message, if any.
|
|
1015
|
+
* @param {module:model/TemplatePreview} data The data returned by the service call.
|
|
1016
|
+
* @param {String} response The complete HTTP response.
|
|
1017
|
+
*/
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* Check the status of an uploaded template
|
|
1021
|
+
* @param {String} templateId
|
|
1022
|
+
* @param {module:api/PDFApi~getTemplateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1023
|
+
* data is of type: {@link module:model/TemplatePreview}
|
|
1024
|
+
*/
|
|
1025
|
+
}, {
|
|
1026
|
+
key: "getTemplate",
|
|
1027
|
+
value: function getTemplate(templateId, callback) {
|
|
1028
|
+
var postBody = null;
|
|
1029
|
+
// verify the required parameter 'templateId' is set
|
|
1030
|
+
if (templateId === undefined || templateId === null) {
|
|
1031
|
+
throw new Error("Missing the required parameter 'templateId' when calling getTemplate");
|
|
1032
|
+
}
|
|
1033
|
+
var pathParams = {
|
|
1034
|
+
'template_id': templateId
|
|
1035
|
+
};
|
|
1036
|
+
var queryParams = {};
|
|
1037
|
+
var headerParams = {};
|
|
1038
|
+
var formParams = {};
|
|
1039
|
+
var authNames = ['api_token_basic'];
|
|
1040
|
+
var contentTypes = [];
|
|
1041
|
+
var accepts = ['application/json'];
|
|
1042
|
+
var returnType = _TemplatePreview["default"];
|
|
1043
|
+
return this.apiClient.callApi('/templates/{template_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* Callback function to receive the result of the getTemplateSchema operation.
|
|
1048
|
+
* @callback module:api/PDFApi~getTemplateSchemaCallback
|
|
1049
|
+
* @param {String} error Error message, if any.
|
|
1050
|
+
* @param {module:model/JsonSchema} data The data returned by the service call.
|
|
1051
|
+
* @param {String} response The complete HTTP response.
|
|
1052
|
+
*/
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* Fetch the JSON schema for a template
|
|
1056
|
+
* @param {String} templateId
|
|
1057
|
+
* @param {module:api/PDFApi~getTemplateSchemaCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1058
|
+
* data is of type: {@link module:model/JsonSchema}
|
|
1059
|
+
*/
|
|
1060
|
+
}, {
|
|
1061
|
+
key: "getTemplateSchema",
|
|
1062
|
+
value: function getTemplateSchema(templateId, callback) {
|
|
1063
|
+
var postBody = null;
|
|
1064
|
+
// verify the required parameter 'templateId' is set
|
|
1065
|
+
if (templateId === undefined || templateId === null) {
|
|
1066
|
+
throw new Error("Missing the required parameter 'templateId' when calling getTemplateSchema");
|
|
1067
|
+
}
|
|
1068
|
+
var pathParams = {
|
|
1069
|
+
'template_id': templateId
|
|
1070
|
+
};
|
|
1071
|
+
var queryParams = {};
|
|
1072
|
+
var headerParams = {};
|
|
1073
|
+
var formParams = {};
|
|
1074
|
+
var authNames = ['api_token_basic'];
|
|
1075
|
+
var contentTypes = [];
|
|
1076
|
+
var accepts = ['application/json'];
|
|
1077
|
+
var returnType = _JsonSchema["default"];
|
|
1078
|
+
return this.apiClient.callApi('/templates/{template_id}/schema', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
/**
|
|
1082
|
+
* Callback function to receive the result of the listCombinedSubmissions operation.
|
|
1083
|
+
* @callback module:api/PDFApi~listCombinedSubmissionsCallback
|
|
1084
|
+
* @param {String} error Error message, if any.
|
|
1085
|
+
* @param {Array.<module:model/CombinedSubmission>} data The data returned by the service call.
|
|
1086
|
+
* @param {String} response The complete HTTP response.
|
|
1087
|
+
*/
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* Get a list of all combined submissions
|
|
1091
|
+
* @param {Object} opts Optional parameters
|
|
1092
|
+
* @param {Number} [page] Default: 1
|
|
1093
|
+
* @param {Number} [perPage] Default: 50
|
|
1094
|
+
* @param {module:api/PDFApi~listCombinedSubmissionsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1095
|
+
* data is of type: {@link Array.<module:model/CombinedSubmission>}
|
|
1096
|
+
*/
|
|
1097
|
+
}, {
|
|
1098
|
+
key: "listCombinedSubmissions",
|
|
1099
|
+
value: function listCombinedSubmissions(opts, callback) {
|
|
1100
|
+
opts = opts || {};
|
|
1101
|
+
var postBody = null;
|
|
1102
|
+
var pathParams = {};
|
|
1103
|
+
var queryParams = {
|
|
1104
|
+
'page': opts['page'],
|
|
1105
|
+
'per_page': opts['perPage']
|
|
1106
|
+
};
|
|
1107
|
+
var headerParams = {};
|
|
1108
|
+
var formParams = {};
|
|
1109
|
+
var authNames = ['api_token_basic'];
|
|
1110
|
+
var contentTypes = [];
|
|
1111
|
+
var accepts = ['application/json'];
|
|
1112
|
+
var returnType = [_CombinedSubmission["default"]];
|
|
1113
|
+
return this.apiClient.callApi('/combined_submissions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* Callback function to receive the result of the listFolders operation.
|
|
1118
|
+
* @callback module:api/PDFApi~listFoldersCallback
|
|
1119
|
+
* @param {String} error Error message, if any.
|
|
1120
|
+
* @param {Array.<module:model/Folder>} data The data returned by the service call.
|
|
1121
|
+
* @param {String} response The complete HTTP response.
|
|
1122
|
+
*/
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* Get a list of all folders
|
|
1126
|
+
* @param {Object} opts Optional parameters
|
|
1127
|
+
* @param {String} [parentFolderId] Filter By Folder Id
|
|
1128
|
+
* @param {module:api/PDFApi~listFoldersCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1129
|
+
* data is of type: {@link Array.<module:model/Folder>}
|
|
1130
|
+
*/
|
|
1131
|
+
}, {
|
|
1132
|
+
key: "listFolders",
|
|
1133
|
+
value: function listFolders(opts, callback) {
|
|
1134
|
+
opts = opts || {};
|
|
1135
|
+
var postBody = null;
|
|
1136
|
+
var pathParams = {};
|
|
1137
|
+
var queryParams = {
|
|
1138
|
+
'parent_folder_id': opts['parentFolderId']
|
|
1139
|
+
};
|
|
1140
|
+
var headerParams = {};
|
|
1141
|
+
var formParams = {};
|
|
1142
|
+
var authNames = ['api_token_basic'];
|
|
1143
|
+
var contentTypes = [];
|
|
1144
|
+
var accepts = ['application/json'];
|
|
1145
|
+
var returnType = [_Folder["default"]];
|
|
1146
|
+
return this.apiClient.callApi('/folders/', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
/**
|
|
1150
|
+
* Callback function to receive the result of the listSubmissions operation.
|
|
1151
|
+
* @callback module:api/PDFApi~listSubmissionsCallback
|
|
1152
|
+
* @param {String} error Error message, if any.
|
|
1153
|
+
* @param {module:model/ListSubmissionsResponse} data The data returned by the service call.
|
|
1154
|
+
* @param {String} response The complete HTTP response.
|
|
1155
|
+
*/
|
|
1156
|
+
|
|
1157
|
+
/**
|
|
1158
|
+
* List all submissions
|
|
1159
|
+
* @param {Object} opts Optional parameters
|
|
1160
|
+
* @param {String} [cursor]
|
|
1161
|
+
* @param {Number} [limit]
|
|
1162
|
+
* @param {String} [createdAfter]
|
|
1163
|
+
* @param {String} [createdBefore]
|
|
1164
|
+
* @param {String} [type]
|
|
1165
|
+
* @param {Boolean} [includeData]
|
|
1166
|
+
* @param {module:api/PDFApi~listSubmissionsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1167
|
+
* data is of type: {@link module:model/ListSubmissionsResponse}
|
|
1168
|
+
*/
|
|
1169
|
+
}, {
|
|
1170
|
+
key: "listSubmissions",
|
|
1171
|
+
value: function listSubmissions(opts, callback) {
|
|
1172
|
+
opts = opts || {};
|
|
1173
|
+
var postBody = null;
|
|
1174
|
+
var pathParams = {};
|
|
1175
|
+
var queryParams = {
|
|
1176
|
+
'cursor': opts['cursor'],
|
|
1177
|
+
'limit': opts['limit'],
|
|
1178
|
+
'created_after': opts['createdAfter'],
|
|
1179
|
+
'created_before': opts['createdBefore'],
|
|
1180
|
+
'type': opts['type'],
|
|
1181
|
+
'include_data': opts['includeData']
|
|
1182
|
+
};
|
|
1183
|
+
var headerParams = {};
|
|
1184
|
+
var formParams = {};
|
|
1185
|
+
var authNames = ['api_token_basic'];
|
|
1186
|
+
var contentTypes = [];
|
|
1187
|
+
var accepts = ['application/json'];
|
|
1188
|
+
var returnType = _ListSubmissionsResponse["default"];
|
|
1189
|
+
return this.apiClient.callApi('/submissions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
/**
|
|
1193
|
+
* Callback function to receive the result of the listTemplateSubmissions operation.
|
|
1194
|
+
* @callback module:api/PDFApi~listTemplateSubmissionsCallback
|
|
1195
|
+
* @param {String} error Error message, if any.
|
|
1196
|
+
* @param {module:model/ListSubmissionsResponse} data The data returned by the service call.
|
|
1197
|
+
* @param {String} response The complete HTTP response.
|
|
1198
|
+
*/
|
|
1199
|
+
|
|
1200
|
+
/**
|
|
1201
|
+
* List all submissions for a given template
|
|
1202
|
+
* @param {String} templateId
|
|
1203
|
+
* @param {Object} opts Optional parameters
|
|
1204
|
+
* @param {String} [cursor]
|
|
1205
|
+
* @param {Number} [limit]
|
|
1206
|
+
* @param {String} [createdAfter]
|
|
1207
|
+
* @param {String} [createdBefore]
|
|
1208
|
+
* @param {String} [type]
|
|
1209
|
+
* @param {Boolean} [includeData]
|
|
1210
|
+
* @param {module:api/PDFApi~listTemplateSubmissionsCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1211
|
+
* data is of type: {@link module:model/ListSubmissionsResponse}
|
|
1212
|
+
*/
|
|
1213
|
+
}, {
|
|
1214
|
+
key: "listTemplateSubmissions",
|
|
1215
|
+
value: function listTemplateSubmissions(templateId, opts, callback) {
|
|
1216
|
+
opts = opts || {};
|
|
1217
|
+
var postBody = null;
|
|
1218
|
+
// verify the required parameter 'templateId' is set
|
|
1219
|
+
if (templateId === undefined || templateId === null) {
|
|
1220
|
+
throw new Error("Missing the required parameter 'templateId' when calling listTemplateSubmissions");
|
|
1221
|
+
}
|
|
1222
|
+
var pathParams = {
|
|
1223
|
+
'template_id': templateId
|
|
1224
|
+
};
|
|
1225
|
+
var queryParams = {
|
|
1226
|
+
'cursor': opts['cursor'],
|
|
1227
|
+
'limit': opts['limit'],
|
|
1228
|
+
'created_after': opts['createdAfter'],
|
|
1229
|
+
'created_before': opts['createdBefore'],
|
|
1230
|
+
'type': opts['type'],
|
|
1231
|
+
'include_data': opts['includeData']
|
|
1232
|
+
};
|
|
1233
|
+
var headerParams = {};
|
|
1234
|
+
var formParams = {};
|
|
1235
|
+
var authNames = ['api_token_basic'];
|
|
1236
|
+
var contentTypes = [];
|
|
1237
|
+
var accepts = ['application/json'];
|
|
1238
|
+
var returnType = _ListSubmissionsResponse["default"];
|
|
1239
|
+
return this.apiClient.callApi('/templates/{template_id}/submissions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* Callback function to receive the result of the listTemplates operation.
|
|
1244
|
+
* @callback module:api/PDFApi~listTemplatesCallback
|
|
1245
|
+
* @param {String} error Error message, if any.
|
|
1246
|
+
* @param {Array.<module:model/TemplatePreview>} data The data returned by the service call.
|
|
1247
|
+
* @param {String} response The complete HTTP response.
|
|
1248
|
+
*/
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* Get a list of all templates
|
|
1252
|
+
* @param {Object} opts Optional parameters
|
|
1253
|
+
* @param {String} [query] Search By Name
|
|
1254
|
+
* @param {String} [parentFolderId] Filter By Folder Id
|
|
1255
|
+
* @param {Number} [page] Default: 1
|
|
1256
|
+
* @param {Number} [perPage] Default: 50
|
|
1257
|
+
* @param {module:api/PDFApi~listTemplatesCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1258
|
+
* data is of type: {@link Array.<module:model/TemplatePreview>}
|
|
1259
|
+
*/
|
|
1260
|
+
}, {
|
|
1261
|
+
key: "listTemplates",
|
|
1262
|
+
value: function listTemplates(opts, callback) {
|
|
1263
|
+
opts = opts || {};
|
|
1264
|
+
var postBody = null;
|
|
1265
|
+
var pathParams = {};
|
|
1266
|
+
var queryParams = {
|
|
1267
|
+
'query': opts['query'],
|
|
1268
|
+
'parent_folder_id': opts['parentFolderId'],
|
|
1269
|
+
'page': opts['page'],
|
|
1270
|
+
'per_page': opts['perPage']
|
|
1271
|
+
};
|
|
1272
|
+
var headerParams = {};
|
|
1273
|
+
var formParams = {};
|
|
1274
|
+
var authNames = ['api_token_basic'];
|
|
1275
|
+
var contentTypes = [];
|
|
1276
|
+
var accepts = ['application/json'];
|
|
1277
|
+
var returnType = [_TemplatePreview["default"]];
|
|
1278
|
+
return this.apiClient.callApi('/templates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1279
|
+
}
|
|
1280
|
+
|
|
1281
|
+
/**
|
|
1282
|
+
* Callback function to receive the result of the moveFolderToFolder operation.
|
|
1283
|
+
* @callback module:api/PDFApi~moveFolderToFolderCallback
|
|
1284
|
+
* @param {String} error Error message, if any.
|
|
1285
|
+
* @param {module:model/Folder} data The data returned by the service call.
|
|
1286
|
+
* @param {String} response The complete HTTP response.
|
|
1287
|
+
*/
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* Move a folder
|
|
1291
|
+
* @param {String} folderId
|
|
1292
|
+
* @param {module:model/MoveFolderData} data
|
|
1293
|
+
* @param {module:api/PDFApi~moveFolderToFolderCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1294
|
+
* data is of type: {@link module:model/Folder}
|
|
1295
|
+
*/
|
|
1296
|
+
}, {
|
|
1297
|
+
key: "moveFolderToFolder",
|
|
1298
|
+
value: function moveFolderToFolder(folderId, data, callback) {
|
|
1299
|
+
var postBody = data;
|
|
1300
|
+
// verify the required parameter 'folderId' is set
|
|
1301
|
+
if (folderId === undefined || folderId === null) {
|
|
1302
|
+
throw new Error("Missing the required parameter 'folderId' when calling moveFolderToFolder");
|
|
1303
|
+
}
|
|
1304
|
+
// verify the required parameter 'data' is set
|
|
1305
|
+
if (data === undefined || data === null) {
|
|
1306
|
+
throw new Error("Missing the required parameter 'data' when calling moveFolderToFolder");
|
|
1307
|
+
}
|
|
1308
|
+
var pathParams = {
|
|
1309
|
+
'folder_id': folderId
|
|
1310
|
+
};
|
|
1311
|
+
var queryParams = {};
|
|
1312
|
+
var headerParams = {};
|
|
1313
|
+
var formParams = {};
|
|
1314
|
+
var authNames = ['api_token_basic'];
|
|
1315
|
+
var contentTypes = ['application/json'];
|
|
1316
|
+
var accepts = ['application/json'];
|
|
1317
|
+
var returnType = _Folder["default"];
|
|
1318
|
+
return this.apiClient.callApi('/folders/{folder_id}/move', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1319
|
+
}
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* Callback function to receive the result of the moveTemplateToFolder operation.
|
|
1323
|
+
* @callback module:api/PDFApi~moveTemplateToFolderCallback
|
|
1324
|
+
* @param {String} error Error message, if any.
|
|
1325
|
+
* @param {module:model/TemplatePreview} data The data returned by the service call.
|
|
1326
|
+
* @param {String} response The complete HTTP response.
|
|
1327
|
+
*/
|
|
1328
|
+
|
|
1329
|
+
/**
|
|
1330
|
+
* Move Template to folder
|
|
1331
|
+
* @param {String} templateId
|
|
1332
|
+
* @param {module:model/MoveTemplateData} data
|
|
1333
|
+
* @param {module:api/PDFApi~moveTemplateToFolderCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1334
|
+
* data is of type: {@link module:model/TemplatePreview}
|
|
1335
|
+
*/
|
|
1336
|
+
}, {
|
|
1337
|
+
key: "moveTemplateToFolder",
|
|
1338
|
+
value: function moveTemplateToFolder(templateId, data, callback) {
|
|
1339
|
+
var postBody = data;
|
|
1340
|
+
// verify the required parameter 'templateId' is set
|
|
1341
|
+
if (templateId === undefined || templateId === null) {
|
|
1342
|
+
throw new Error("Missing the required parameter 'templateId' when calling moveTemplateToFolder");
|
|
1343
|
+
}
|
|
1344
|
+
// verify the required parameter 'data' is set
|
|
1345
|
+
if (data === undefined || data === null) {
|
|
1346
|
+
throw new Error("Missing the required parameter 'data' when calling moveTemplateToFolder");
|
|
1347
|
+
}
|
|
1348
|
+
var pathParams = {
|
|
1349
|
+
'template_id': templateId
|
|
1350
|
+
};
|
|
1351
|
+
var queryParams = {};
|
|
1352
|
+
var headerParams = {};
|
|
1353
|
+
var formParams = {};
|
|
1354
|
+
var authNames = ['api_token_basic'];
|
|
1355
|
+
var contentTypes = ['application/json'];
|
|
1356
|
+
var accepts = ['application/json'];
|
|
1357
|
+
var returnType = _TemplatePreview["default"];
|
|
1358
|
+
return this.apiClient.callApi('/templates/{template_id}/move', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
/**
|
|
1362
|
+
* Callback function to receive the result of the renameFolder operation.
|
|
1363
|
+
* @callback module:api/PDFApi~renameFolderCallback
|
|
1364
|
+
* @param {String} error Error message, if any.
|
|
1365
|
+
* @param {module:model/Folder} data The data returned by the service call.
|
|
1366
|
+
* @param {String} response The complete HTTP response.
|
|
1367
|
+
*/
|
|
1368
|
+
|
|
1369
|
+
/**
|
|
1370
|
+
* Rename a folder
|
|
1371
|
+
* @param {String} folderId
|
|
1372
|
+
* @param {module:model/RenameFolderData} data
|
|
1373
|
+
* @param {module:api/PDFApi~renameFolderCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1374
|
+
* data is of type: {@link module:model/Folder}
|
|
1375
|
+
*/
|
|
1376
|
+
}, {
|
|
1377
|
+
key: "renameFolder",
|
|
1378
|
+
value: function renameFolder(folderId, data, callback) {
|
|
1379
|
+
var postBody = data;
|
|
1380
|
+
// verify the required parameter 'folderId' is set
|
|
1381
|
+
if (folderId === undefined || folderId === null) {
|
|
1382
|
+
throw new Error("Missing the required parameter 'folderId' when calling renameFolder");
|
|
1383
|
+
}
|
|
1384
|
+
// verify the required parameter 'data' is set
|
|
1385
|
+
if (data === undefined || data === null) {
|
|
1386
|
+
throw new Error("Missing the required parameter 'data' when calling renameFolder");
|
|
1387
|
+
}
|
|
1388
|
+
var pathParams = {
|
|
1389
|
+
'folder_id': folderId
|
|
1390
|
+
};
|
|
1391
|
+
var queryParams = {};
|
|
1392
|
+
var headerParams = {};
|
|
1393
|
+
var formParams = {};
|
|
1394
|
+
var authNames = ['api_token_basic'];
|
|
1395
|
+
var contentTypes = ['application/json'];
|
|
1396
|
+
var accepts = ['application/json'];
|
|
1397
|
+
var returnType = _Folder["default"];
|
|
1398
|
+
return this.apiClient.callApi('/folders/{folder_id}/rename', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Callback function to receive the result of the testAuthentication operation.
|
|
1403
|
+
* @callback module:api/PDFApi~testAuthenticationCallback
|
|
1404
|
+
* @param {String} error Error message, if any.
|
|
1405
|
+
* @param {module:model/SuccessErrorResponse} data The data returned by the service call.
|
|
1406
|
+
* @param {String} response The complete HTTP response.
|
|
1407
|
+
*/
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
* Test Authentication
|
|
1411
|
+
* @param {module:api/PDFApi~testAuthenticationCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1412
|
+
* data is of type: {@link module:model/SuccessErrorResponse}
|
|
1413
|
+
*/
|
|
1414
|
+
}, {
|
|
1415
|
+
key: "testAuthentication",
|
|
1416
|
+
value: function testAuthentication(callback) {
|
|
1417
|
+
var postBody = null;
|
|
1418
|
+
var pathParams = {};
|
|
1419
|
+
var queryParams = {};
|
|
1420
|
+
var headerParams = {};
|
|
1421
|
+
var formParams = {};
|
|
1422
|
+
var authNames = ['api_token_basic'];
|
|
1423
|
+
var contentTypes = [];
|
|
1424
|
+
var accepts = ['application/json'];
|
|
1425
|
+
var returnType = _SuccessErrorResponse["default"];
|
|
1426
|
+
return this.apiClient.callApi('/authentication', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1427
|
+
}
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* Callback function to receive the result of the updateDataRequest operation.
|
|
1431
|
+
* @callback module:api/PDFApi~updateDataRequestCallback
|
|
1432
|
+
* @param {String} error Error message, if any.
|
|
1433
|
+
* @param {module:model/CreateSubmissionDataRequestResponse} data The data returned by the service call.
|
|
1434
|
+
* @param {String} response The complete HTTP response.
|
|
1435
|
+
*/
|
|
1436
|
+
|
|
1437
|
+
/**
|
|
1438
|
+
* Update a submission data request
|
|
1439
|
+
* @param {String} dataRequestId
|
|
1440
|
+
* @param {module:model/UpdateSubmissionDataRequestData} data
|
|
1441
|
+
* @param {module:api/PDFApi~updateDataRequestCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1442
|
+
* data is of type: {@link module:model/CreateSubmissionDataRequestResponse}
|
|
1443
|
+
*/
|
|
1444
|
+
}, {
|
|
1445
|
+
key: "updateDataRequest",
|
|
1446
|
+
value: function updateDataRequest(dataRequestId, data, callback) {
|
|
1447
|
+
var postBody = data;
|
|
1448
|
+
// verify the required parameter 'dataRequestId' is set
|
|
1449
|
+
if (dataRequestId === undefined || dataRequestId === null) {
|
|
1450
|
+
throw new Error("Missing the required parameter 'dataRequestId' when calling updateDataRequest");
|
|
1451
|
+
}
|
|
1452
|
+
// verify the required parameter 'data' is set
|
|
1453
|
+
if (data === undefined || data === null) {
|
|
1454
|
+
throw new Error("Missing the required parameter 'data' when calling updateDataRequest");
|
|
1455
|
+
}
|
|
1456
|
+
var pathParams = {
|
|
1457
|
+
'data_request_id': dataRequestId
|
|
1458
|
+
};
|
|
1459
|
+
var queryParams = {};
|
|
1460
|
+
var headerParams = {};
|
|
1461
|
+
var formParams = {};
|
|
1462
|
+
var authNames = ['api_token_basic'];
|
|
1463
|
+
var contentTypes = ['application/json'];
|
|
1464
|
+
var accepts = ['application/json'];
|
|
1465
|
+
var returnType = _CreateSubmissionDataRequestResponse["default"];
|
|
1466
|
+
return this.apiClient.callApi('/data_requests/{data_request_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1467
|
+
}
|
|
1468
|
+
|
|
1469
|
+
/**
|
|
1470
|
+
* Callback function to receive the result of the updateTemplate operation.
|
|
1471
|
+
* @callback module:api/PDFApi~updateTemplateCallback
|
|
1472
|
+
* @param {String} error Error message, if any.
|
|
1473
|
+
* @param {module:model/SuccessMultipleErrorsResponse} data The data returned by the service call.
|
|
1474
|
+
* @param {String} response The complete HTTP response.
|
|
1475
|
+
*/
|
|
1476
|
+
|
|
1477
|
+
/**
|
|
1478
|
+
* Update a Template
|
|
1479
|
+
* @param {String} templateId
|
|
1480
|
+
* @param {module:model/UpdateHtmlTemplate} data
|
|
1481
|
+
* @param {module:api/PDFApi~updateTemplateCallback} callback The callback function, accepting three arguments: error, data, response
|
|
1482
|
+
* data is of type: {@link module:model/SuccessMultipleErrorsResponse}
|
|
1483
|
+
*/
|
|
1484
|
+
}, {
|
|
1485
|
+
key: "updateTemplate",
|
|
1486
|
+
value: function updateTemplate(templateId, data, callback) {
|
|
1487
|
+
var postBody = data;
|
|
1488
|
+
// verify the required parameter 'templateId' is set
|
|
1489
|
+
if (templateId === undefined || templateId === null) {
|
|
1490
|
+
throw new Error("Missing the required parameter 'templateId' when calling updateTemplate");
|
|
1491
|
+
}
|
|
1492
|
+
// verify the required parameter 'data' is set
|
|
1493
|
+
if (data === undefined || data === null) {
|
|
1494
|
+
throw new Error("Missing the required parameter 'data' when calling updateTemplate");
|
|
1495
|
+
}
|
|
1496
|
+
var pathParams = {
|
|
1497
|
+
'template_id': templateId
|
|
1498
|
+
};
|
|
1499
|
+
var queryParams = {};
|
|
1500
|
+
var headerParams = {};
|
|
1501
|
+
var formParams = {};
|
|
1502
|
+
var authNames = ['api_token_basic'];
|
|
1503
|
+
var contentTypes = ['application/json'];
|
|
1504
|
+
var accepts = ['application/json'];
|
|
1505
|
+
var returnType = _SuccessMultipleErrorsResponse["default"];
|
|
1506
|
+
return this.apiClient.callApi('/templates/{template_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback);
|
|
1507
|
+
}
|
|
1508
|
+
}]);
|
|
1509
|
+
}();
|