docspring-ts 2.1.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/apis/{PDFApi.d.ts → Client.d.ts} +13 -14
- package/dist/apis/{PDFApi.js → Client.js} +625 -618
- package/dist/apis/Client.js.map +1 -0
- package/dist/auth/auth.js.map +1 -1
- package/dist/configuration.d.ts +10 -2
- package/dist/configuration.js +43 -1
- package/dist/configuration.js.map +1 -1
- package/dist/http/http.d.ts +3 -0
- package/dist/http/http.js +7 -0
- package/dist/http/http.js.map +1 -1
- package/dist/http/isomorphic-fetch.js +2 -1
- package/dist/http/isomorphic-fetch.js.map +1 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/middleware.js.map +1 -1
- package/dist/models/BatchGeneratePdfs201Response.d.ts +1 -1
- package/dist/models/BatchGeneratePdfs201Response.js +1 -1
- package/dist/models/BatchGeneratePdfs201Response.js.map +1 -1
- package/dist/models/CombinePdfsData.d.ts +3 -3
- package/dist/models/CombinePdfsData.js +3 -3
- package/dist/models/CombinePdfsData.js.map +1 -1
- package/dist/models/CombinedSubmission.d.ts +8 -8
- package/dist/models/CombinedSubmission.js +8 -8
- package/dist/models/CombinedSubmission.js.map +1 -1
- package/dist/models/CombinedSubmissionAction.d.ts +4 -4
- package/dist/models/CombinedSubmissionAction.js +4 -4
- package/dist/models/CombinedSubmissionAction.js.map +1 -1
- package/dist/models/CopyTemplateOptions.d.ts +1 -1
- package/dist/models/CopyTemplateOptions.js +1 -1
- package/dist/models/CopyTemplateOptions.js.map +1 -1
- package/dist/models/CreateCombinedSubmissionResponse.d.ts +1 -1
- package/dist/models/CreateCombinedSubmissionResponse.js +1 -1
- package/dist/models/CreateCombinedSubmissionResponse.js.map +1 -1
- package/dist/models/CreateCustomFileData.d.ts +1 -1
- package/dist/models/CreateCustomFileData.js +1 -1
- package/dist/models/CreateCustomFileData.js.map +1 -1
- package/dist/models/CreateCustomFileResponse.d.ts +1 -1
- package/dist/models/CreateCustomFileResponse.js +1 -1
- package/dist/models/CreateCustomFileResponse.js.map +1 -1
- package/dist/models/CreatePdfSubmissionData.d.ts +3 -3
- package/dist/models/CreatePdfSubmissionData.js +3 -3
- package/dist/models/CreatePdfSubmissionData.js.map +1 -1
- package/dist/models/CreateSubmissionDataRequestData.d.ts +12 -3
- package/dist/models/CreateSubmissionDataRequestData.js +57 -3
- package/dist/models/CreateSubmissionDataRequestData.js.map +1 -1
- package/dist/models/CreateSubmissionDataRequestEventRequest.d.ts +4 -2
- package/dist/models/CreateSubmissionDataRequestEventRequest.js +14 -2
- package/dist/models/CreateSubmissionDataRequestEventRequest.js.map +1 -1
- package/dist/models/CreateSubmissionDataRequestResponse.d.ts +1 -1
- package/dist/models/CreateSubmissionDataRequestResponse.js +1 -1
- package/dist/models/CreateSubmissionDataRequestResponse.js.map +1 -1
- package/dist/models/{CreateHtmlSubmissionData.d.ts → ErrorOrMultipleErrorsResponse.d.ts} +7 -11
- package/dist/models/ErrorOrMultipleErrorsResponse.js +39 -0
- package/dist/models/ErrorOrMultipleErrorsResponse.js.map +1 -0
- package/dist/models/Folder.d.ts +1 -1
- package/dist/models/Folder.js +1 -1
- package/dist/models/Folder.js.map +1 -1
- package/dist/models/ListSubmissionsResponse.d.ts +1 -1
- package/dist/models/ListSubmissionsResponse.js +1 -1
- package/dist/models/ListSubmissionsResponse.js.map +1 -1
- package/dist/models/MoveFolderData.d.ts +1 -1
- package/dist/models/MoveFolderData.js +1 -1
- package/dist/models/MoveFolderData.js.map +1 -1
- package/dist/models/MoveTemplateData.d.ts +1 -1
- package/dist/models/MoveTemplateData.js +1 -1
- package/dist/models/MoveTemplateData.js.map +1 -1
- package/dist/models/ObjectSerializer.d.ts +3 -2
- package/dist/models/ObjectSerializer.js +18 -9
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/PublishVersionData.d.ts +1 -1
- package/dist/models/PublishVersionData.js +1 -1
- package/dist/models/PublishVersionData.js.map +1 -1
- package/dist/models/Submission.d.ts +15 -15
- package/dist/models/Submission.js +15 -15
- package/dist/models/Submission.js.map +1 -1
- package/dist/models/Submission422Response.d.ts +27 -0
- package/dist/models/Submission422Response.js +45 -0
- package/dist/models/Submission422Response.js.map +1 -0
- package/dist/models/SubmissionAction.d.ts +4 -4
- package/dist/models/SubmissionAction.js +4 -4
- package/dist/models/SubmissionAction.js.map +1 -1
- package/dist/models/SubmissionBatch.d.ts +5 -5
- package/dist/models/SubmissionBatch.js +5 -5
- package/dist/models/SubmissionBatch.js.map +1 -1
- package/dist/models/SubmissionBatchData.d.ts +2 -0
- package/dist/models/SubmissionBatchData.js +12 -0
- package/dist/models/SubmissionBatchData.js.map +1 -1
- package/dist/models/SubmissionBatchWithSubmissions.d.ts +5 -5
- package/dist/models/SubmissionBatchWithSubmissions.js +5 -5
- package/dist/models/SubmissionBatchWithSubmissions.js.map +1 -1
- package/dist/models/SubmissionDataRequest.d.ts +13 -13
- package/dist/models/SubmissionDataRequest.js +13 -13
- package/dist/models/SubmissionDataRequest.js.map +1 -1
- package/dist/models/SubmissionDataRequestEvent.d.ts +6 -6
- package/dist/models/SubmissionDataRequestEvent.js +6 -6
- package/dist/models/SubmissionDataRequestEvent.js.map +1 -1
- package/dist/models/SubmissionDataRequestShow.d.ts +14 -14
- package/dist/models/SubmissionDataRequestShow.js +14 -14
- package/dist/models/SubmissionDataRequestShow.js.map +1 -1
- package/dist/models/SubmissionDataRequestToken.d.ts +2 -2
- package/dist/models/SubmissionDataRequestToken.js +2 -2
- package/dist/models/SubmissionDataRequestToken.js.map +1 -1
- package/dist/models/SubmissionPreview.d.ts +15 -15
- package/dist/models/SubmissionPreview.js +15 -15
- package/dist/models/SubmissionPreview.js.map +1 -1
- package/dist/models/Template.d.ts +41 -41
- package/dist/models/Template.js +41 -41
- package/dist/models/Template.js.map +1 -1
- package/dist/models/TemplateAddFieldsResponse.d.ts +1 -1
- package/dist/models/TemplateAddFieldsResponse.js +1 -1
- package/dist/models/TemplateAddFieldsResponse.js.map +1 -1
- package/dist/models/TemplateDeleteResponse.d.ts +1 -1
- package/dist/models/TemplateDeleteResponse.js +1 -1
- package/dist/models/TemplateDeleteResponse.js.map +1 -1
- package/dist/models/TemplatePreview.d.ts +35 -35
- package/dist/models/TemplatePreview.js +35 -35
- package/dist/models/TemplatePreview.js.map +1 -1
- package/dist/models/{CombinedSubmissionData.d.ts → UpdatePdfTemplate.d.ts} +2 -6
- package/dist/models/UpdatePdfTemplate.js +23 -0
- package/dist/models/UpdatePdfTemplate.js.map +1 -0
- package/dist/models/UpdateSubmissionDataRequestData.d.ts +19 -1
- package/dist/models/UpdateSubmissionDataRequestData.js +66 -2
- package/dist/models/UpdateSubmissionDataRequestData.js.map +1 -1
- package/dist/models/all.d.ts +3 -2
- package/dist/models/all.js +3 -2
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +132 -133
- package/dist/types/ObjectParamAPI.js +100 -100
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +85 -86
- package/dist/types/ObservableAPI.js +363 -322
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +89 -86
- package/dist/types/PromiseAPI.js +268 -166
- package/dist/types/PromiseAPI.js.map +1 -1
- package/package.json +2 -2
- package/dist/apis/PDFApi.js.map +0 -1
- package/dist/models/CombinedSubmissionData.js +0 -47
- package/dist/models/CombinedSubmissionData.js.map +0 -1
- package/dist/models/CreateHtmlSubmissionData.js +0 -77
- package/dist/models/CreateHtmlSubmissionData.js.map +0 -1
|
@@ -51,30 +51,30 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.
|
|
54
|
+
exports.ClientResponseProcessor = exports.ClientRequestFactory = void 0;
|
|
55
55
|
var baseapi_1 = require("./baseapi");
|
|
56
56
|
var http_1 = require("../http/http");
|
|
57
57
|
var ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
58
58
|
var exception_1 = require("./exception");
|
|
59
59
|
var util_1 = require("../util");
|
|
60
|
-
var
|
|
61
|
-
__extends(
|
|
62
|
-
function
|
|
60
|
+
var ClientRequestFactory = (function (_super) {
|
|
61
|
+
__extends(ClientRequestFactory, _super);
|
|
62
|
+
function ClientRequestFactory() {
|
|
63
63
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
var _a
|
|
65
|
+
ClientRequestFactory.prototype.addFieldsToTemplate = function (templateId, data, _options) {
|
|
66
|
+
var _a;
|
|
67
67
|
return __awaiter(this, void 0, void 0, function () {
|
|
68
68
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
69
|
-
return __generator(this, function (
|
|
70
|
-
switch (
|
|
69
|
+
return __generator(this, function (_b) {
|
|
70
|
+
switch (_b.label) {
|
|
71
71
|
case 0:
|
|
72
72
|
_config = _options || this.configuration;
|
|
73
73
|
if (templateId === null || templateId === undefined) {
|
|
74
|
-
throw new baseapi_1.RequiredError("
|
|
74
|
+
throw new baseapi_1.RequiredError("Client", "addFieldsToTemplate", "templateId");
|
|
75
75
|
}
|
|
76
76
|
if (data === null || data === undefined) {
|
|
77
|
-
throw new baseapi_1.RequiredError("
|
|
77
|
+
throw new baseapi_1.RequiredError("Client", "addFieldsToTemplate", "data");
|
|
78
78
|
}
|
|
79
79
|
localVarPath = '/templates/{template_id}/add_fields'
|
|
80
80
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -90,30 +90,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
90
90
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
91
91
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
92
92
|
case 1:
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
_b.sent();
|
|
94
|
+
_b.label = 2;
|
|
95
95
|
case 2:
|
|
96
|
-
defaultAuth = (
|
|
96
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
97
97
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
98
98
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
99
99
|
case 3:
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
_b.sent();
|
|
101
|
+
_b.label = 4;
|
|
102
102
|
case 4: return [2, requestContext];
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
|
-
|
|
108
|
-
var _a
|
|
107
|
+
ClientRequestFactory.prototype.batchGeneratePdfs = function (data, wait, _options) {
|
|
108
|
+
var _a;
|
|
109
109
|
return __awaiter(this, void 0, void 0, function () {
|
|
110
110
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
111
|
-
return __generator(this, function (
|
|
112
|
-
switch (
|
|
111
|
+
return __generator(this, function (_b) {
|
|
112
|
+
switch (_b.label) {
|
|
113
113
|
case 0:
|
|
114
114
|
_config = _options || this.configuration;
|
|
115
115
|
if (data === null || data === undefined) {
|
|
116
|
-
throw new baseapi_1.RequiredError("
|
|
116
|
+
throw new baseapi_1.RequiredError("Client", "batchGeneratePdfs", "data");
|
|
117
117
|
}
|
|
118
118
|
localVarPath = '/submissions/batches';
|
|
119
119
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
@@ -131,109 +131,68 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
131
131
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
132
132
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
133
133
|
case 1:
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
_b.sent();
|
|
135
|
+
_b.label = 2;
|
|
136
136
|
case 2:
|
|
137
|
-
defaultAuth = (
|
|
137
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
138
138
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
139
139
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
140
140
|
case 3:
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
_b.sent();
|
|
142
|
+
_b.label = 4;
|
|
143
143
|
case 4: return [2, requestContext];
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
|
-
|
|
149
|
-
var _a
|
|
148
|
+
ClientRequestFactory.prototype.combinePdfs = function (data, _options) {
|
|
149
|
+
var _a;
|
|
150
150
|
return __awaiter(this, void 0, void 0, function () {
|
|
151
151
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
152
|
-
return __generator(this, function (
|
|
153
|
-
switch (
|
|
152
|
+
return __generator(this, function (_b) {
|
|
153
|
+
switch (_b.label) {
|
|
154
154
|
case 0:
|
|
155
155
|
_config = _options || this.configuration;
|
|
156
156
|
if (data === null || data === undefined) {
|
|
157
|
-
throw new baseapi_1.RequiredError("
|
|
158
|
-
}
|
|
159
|
-
localVarPath = '/combined_submissions?v=2';
|
|
160
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
161
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
162
|
-
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
163
|
-
"application/json"
|
|
164
|
-
]);
|
|
165
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
166
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(data, "CombinePdfsData", ""), contentType);
|
|
167
|
-
requestContext.setBody(serializedBody);
|
|
168
|
-
authMethod = _config.authMethods["api_token_basic"];
|
|
169
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
170
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
171
|
-
case 1:
|
|
172
|
-
_d.sent();
|
|
173
|
-
_d.label = 2;
|
|
174
|
-
case 2:
|
|
175
|
-
defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
|
|
176
|
-
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
177
|
-
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
178
|
-
case 3:
|
|
179
|
-
_d.sent();
|
|
180
|
-
_d.label = 4;
|
|
181
|
-
case 4: return [2, requestContext];
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
});
|
|
185
|
-
};
|
|
186
|
-
PDFApiRequestFactory.prototype.combineSubmissions = function (data, wait, _options) {
|
|
187
|
-
var _a, _b, _c;
|
|
188
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
189
|
-
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
190
|
-
return __generator(this, function (_d) {
|
|
191
|
-
switch (_d.label) {
|
|
192
|
-
case 0:
|
|
193
|
-
_config = _options || this.configuration;
|
|
194
|
-
if (data === null || data === undefined) {
|
|
195
|
-
throw new baseapi_1.RequiredError("PDFApi", "combineSubmissions", "data");
|
|
157
|
+
throw new baseapi_1.RequiredError("Client", "combinePdfs", "data");
|
|
196
158
|
}
|
|
197
159
|
localVarPath = '/combined_submissions';
|
|
198
160
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
199
161
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
200
|
-
if (wait !== undefined) {
|
|
201
|
-
requestContext.setQueryParam("wait", ObjectSerializer_1.ObjectSerializer.serialize(wait, "boolean", ""));
|
|
202
|
-
}
|
|
203
162
|
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
204
163
|
"application/json"
|
|
205
164
|
]);
|
|
206
165
|
requestContext.setHeaderParam("Content-Type", contentType);
|
|
207
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(data, "
|
|
166
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(data, "CombinePdfsData", ""), contentType);
|
|
208
167
|
requestContext.setBody(serializedBody);
|
|
209
168
|
authMethod = _config.authMethods["api_token_basic"];
|
|
210
169
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
211
170
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
212
171
|
case 1:
|
|
213
|
-
|
|
214
|
-
|
|
172
|
+
_b.sent();
|
|
173
|
+
_b.label = 2;
|
|
215
174
|
case 2:
|
|
216
|
-
defaultAuth = (
|
|
175
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
217
176
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
218
177
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
219
178
|
case 3:
|
|
220
|
-
|
|
221
|
-
|
|
179
|
+
_b.sent();
|
|
180
|
+
_b.label = 4;
|
|
222
181
|
case 4: return [2, requestContext];
|
|
223
182
|
}
|
|
224
183
|
});
|
|
225
184
|
});
|
|
226
185
|
};
|
|
227
|
-
|
|
228
|
-
var _a
|
|
186
|
+
ClientRequestFactory.prototype.copyTemplate = function (templateId, options, _options) {
|
|
187
|
+
var _a;
|
|
229
188
|
return __awaiter(this, void 0, void 0, function () {
|
|
230
189
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
231
|
-
return __generator(this, function (
|
|
232
|
-
switch (
|
|
190
|
+
return __generator(this, function (_b) {
|
|
191
|
+
switch (_b.label) {
|
|
233
192
|
case 0:
|
|
234
193
|
_config = _options || this.configuration;
|
|
235
194
|
if (templateId === null || templateId === undefined) {
|
|
236
|
-
throw new baseapi_1.RequiredError("
|
|
195
|
+
throw new baseapi_1.RequiredError("Client", "copyTemplate", "templateId");
|
|
237
196
|
}
|
|
238
197
|
localVarPath = '/templates/{template_id}/copy'
|
|
239
198
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -249,30 +208,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
249
208
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
250
209
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
251
210
|
case 1:
|
|
252
|
-
|
|
253
|
-
|
|
211
|
+
_b.sent();
|
|
212
|
+
_b.label = 2;
|
|
254
213
|
case 2:
|
|
255
|
-
defaultAuth = (
|
|
214
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
256
215
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
257
216
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
258
217
|
case 3:
|
|
259
|
-
|
|
260
|
-
|
|
218
|
+
_b.sent();
|
|
219
|
+
_b.label = 4;
|
|
261
220
|
case 4: return [2, requestContext];
|
|
262
221
|
}
|
|
263
222
|
});
|
|
264
223
|
});
|
|
265
224
|
};
|
|
266
|
-
|
|
267
|
-
var _a
|
|
225
|
+
ClientRequestFactory.prototype.createCustomFileFromUpload = function (data, _options) {
|
|
226
|
+
var _a;
|
|
268
227
|
return __awaiter(this, void 0, void 0, function () {
|
|
269
228
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
270
|
-
return __generator(this, function (
|
|
271
|
-
switch (
|
|
229
|
+
return __generator(this, function (_b) {
|
|
230
|
+
switch (_b.label) {
|
|
272
231
|
case 0:
|
|
273
232
|
_config = _options || this.configuration;
|
|
274
233
|
if (data === null || data === undefined) {
|
|
275
|
-
throw new baseapi_1.RequiredError("
|
|
234
|
+
throw new baseapi_1.RequiredError("Client", "createCustomFileFromUpload", "data");
|
|
276
235
|
}
|
|
277
236
|
localVarPath = '/custom_files';
|
|
278
237
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
@@ -287,33 +246,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
287
246
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
288
247
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
289
248
|
case 1:
|
|
290
|
-
|
|
291
|
-
|
|
249
|
+
_b.sent();
|
|
250
|
+
_b.label = 2;
|
|
292
251
|
case 2:
|
|
293
|
-
defaultAuth = (
|
|
252
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
294
253
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
295
254
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
296
255
|
case 3:
|
|
297
|
-
|
|
298
|
-
|
|
256
|
+
_b.sent();
|
|
257
|
+
_b.label = 4;
|
|
299
258
|
case 4: return [2, requestContext];
|
|
300
259
|
}
|
|
301
260
|
});
|
|
302
261
|
});
|
|
303
262
|
};
|
|
304
|
-
|
|
305
|
-
var _a
|
|
263
|
+
ClientRequestFactory.prototype.createDataRequestEvent = function (dataRequestId, event, _options) {
|
|
264
|
+
var _a;
|
|
306
265
|
return __awaiter(this, void 0, void 0, function () {
|
|
307
266
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
308
|
-
return __generator(this, function (
|
|
309
|
-
switch (
|
|
267
|
+
return __generator(this, function (_b) {
|
|
268
|
+
switch (_b.label) {
|
|
310
269
|
case 0:
|
|
311
270
|
_config = _options || this.configuration;
|
|
312
271
|
if (dataRequestId === null || dataRequestId === undefined) {
|
|
313
|
-
throw new baseapi_1.RequiredError("
|
|
272
|
+
throw new baseapi_1.RequiredError("Client", "createDataRequestEvent", "dataRequestId");
|
|
314
273
|
}
|
|
315
274
|
if (event === null || event === undefined) {
|
|
316
|
-
throw new baseapi_1.RequiredError("
|
|
275
|
+
throw new baseapi_1.RequiredError("Client", "createDataRequestEvent", "event");
|
|
317
276
|
}
|
|
318
277
|
localVarPath = '/data_requests/{data_request_id}/events'
|
|
319
278
|
.replace('{' + 'data_request_id' + '}', encodeURIComponent(String(dataRequestId)));
|
|
@@ -329,30 +288,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
329
288
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
330
289
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
331
290
|
case 1:
|
|
332
|
-
|
|
333
|
-
|
|
291
|
+
_b.sent();
|
|
292
|
+
_b.label = 2;
|
|
334
293
|
case 2:
|
|
335
|
-
defaultAuth = (
|
|
294
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
336
295
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
337
296
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
338
297
|
case 3:
|
|
339
|
-
|
|
340
|
-
|
|
298
|
+
_b.sent();
|
|
299
|
+
_b.label = 4;
|
|
341
300
|
case 4: return [2, requestContext];
|
|
342
301
|
}
|
|
343
302
|
});
|
|
344
303
|
});
|
|
345
304
|
};
|
|
346
|
-
|
|
347
|
-
var _a
|
|
305
|
+
ClientRequestFactory.prototype.createDataRequestToken = function (dataRequestId, type, _options) {
|
|
306
|
+
var _a;
|
|
348
307
|
return __awaiter(this, void 0, void 0, function () {
|
|
349
308
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
350
|
-
return __generator(this, function (
|
|
351
|
-
switch (
|
|
309
|
+
return __generator(this, function (_b) {
|
|
310
|
+
switch (_b.label) {
|
|
352
311
|
case 0:
|
|
353
312
|
_config = _options || this.configuration;
|
|
354
313
|
if (dataRequestId === null || dataRequestId === undefined) {
|
|
355
|
-
throw new baseapi_1.RequiredError("
|
|
314
|
+
throw new baseapi_1.RequiredError("Client", "createDataRequestToken", "dataRequestId");
|
|
356
315
|
}
|
|
357
316
|
localVarPath = '/data_requests/{data_request_id}/tokens'
|
|
358
317
|
.replace('{' + 'data_request_id' + '}', encodeURIComponent(String(dataRequestId)));
|
|
@@ -365,30 +324,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
365
324
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
366
325
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
367
326
|
case 1:
|
|
368
|
-
|
|
369
|
-
|
|
327
|
+
_b.sent();
|
|
328
|
+
_b.label = 2;
|
|
370
329
|
case 2:
|
|
371
|
-
defaultAuth = (
|
|
330
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
372
331
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
373
332
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
374
333
|
case 3:
|
|
375
|
-
|
|
376
|
-
|
|
334
|
+
_b.sent();
|
|
335
|
+
_b.label = 4;
|
|
377
336
|
case 4: return [2, requestContext];
|
|
378
337
|
}
|
|
379
338
|
});
|
|
380
339
|
});
|
|
381
340
|
};
|
|
382
|
-
|
|
383
|
-
var _a
|
|
341
|
+
ClientRequestFactory.prototype.createFolder = function (data, _options) {
|
|
342
|
+
var _a;
|
|
384
343
|
return __awaiter(this, void 0, void 0, function () {
|
|
385
344
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
386
|
-
return __generator(this, function (
|
|
387
|
-
switch (
|
|
345
|
+
return __generator(this, function (_b) {
|
|
346
|
+
switch (_b.label) {
|
|
388
347
|
case 0:
|
|
389
348
|
_config = _options || this.configuration;
|
|
390
349
|
if (data === null || data === undefined) {
|
|
391
|
-
throw new baseapi_1.RequiredError("
|
|
350
|
+
throw new baseapi_1.RequiredError("Client", "createFolder", "data");
|
|
392
351
|
}
|
|
393
352
|
localVarPath = '/folders/';
|
|
394
353
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
@@ -403,32 +362,32 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
403
362
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
404
363
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
405
364
|
case 1:
|
|
406
|
-
|
|
407
|
-
|
|
365
|
+
_b.sent();
|
|
366
|
+
_b.label = 2;
|
|
408
367
|
case 2:
|
|
409
|
-
defaultAuth = (
|
|
368
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
410
369
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
411
370
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
412
371
|
case 3:
|
|
413
|
-
|
|
414
|
-
|
|
372
|
+
_b.sent();
|
|
373
|
+
_b.label = 4;
|
|
415
374
|
case 4: return [2, requestContext];
|
|
416
375
|
}
|
|
417
376
|
});
|
|
418
377
|
});
|
|
419
378
|
};
|
|
420
|
-
|
|
421
|
-
var _a
|
|
379
|
+
ClientRequestFactory.prototype.createHtmlTemplate = function (data, _options) {
|
|
380
|
+
var _a;
|
|
422
381
|
return __awaiter(this, void 0, void 0, function () {
|
|
423
382
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
424
|
-
return __generator(this, function (
|
|
425
|
-
switch (
|
|
383
|
+
return __generator(this, function (_b) {
|
|
384
|
+
switch (_b.label) {
|
|
426
385
|
case 0:
|
|
427
386
|
_config = _options || this.configuration;
|
|
428
387
|
if (data === null || data === undefined) {
|
|
429
|
-
throw new baseapi_1.RequiredError("
|
|
388
|
+
throw new baseapi_1.RequiredError("Client", "createHtmlTemplate", "data");
|
|
430
389
|
}
|
|
431
|
-
localVarPath = '/templates?
|
|
390
|
+
localVarPath = '/templates?endpoint_variant=create_html_template';
|
|
432
391
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
433
392
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
434
393
|
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
@@ -441,33 +400,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
441
400
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
442
401
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
443
402
|
case 1:
|
|
444
|
-
|
|
445
|
-
|
|
403
|
+
_b.sent();
|
|
404
|
+
_b.label = 2;
|
|
446
405
|
case 2:
|
|
447
|
-
defaultAuth = (
|
|
406
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
448
407
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
449
408
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
450
409
|
case 3:
|
|
451
|
-
|
|
452
|
-
|
|
410
|
+
_b.sent();
|
|
411
|
+
_b.label = 4;
|
|
453
412
|
case 4: return [2, requestContext];
|
|
454
413
|
}
|
|
455
414
|
});
|
|
456
415
|
});
|
|
457
416
|
};
|
|
458
|
-
|
|
459
|
-
var _a
|
|
417
|
+
ClientRequestFactory.prototype.createPdfTemplate = function (templateDocument, templateName, wait, templateDescription, templateParentFolderId, _options) {
|
|
418
|
+
var _a;
|
|
460
419
|
return __awaiter(this, void 0, void 0, function () {
|
|
461
420
|
var _config, localVarPath, requestContext, useForm, localVarFormParams, contentType, authMethod, defaultAuth;
|
|
462
|
-
return __generator(this, function (
|
|
463
|
-
switch (
|
|
421
|
+
return __generator(this, function (_b) {
|
|
422
|
+
switch (_b.label) {
|
|
464
423
|
case 0:
|
|
465
424
|
_config = _options || this.configuration;
|
|
466
425
|
if (templateDocument === null || templateDocument === undefined) {
|
|
467
|
-
throw new baseapi_1.RequiredError("
|
|
426
|
+
throw new baseapi_1.RequiredError("Client", "createPdfTemplate", "templateDocument");
|
|
468
427
|
}
|
|
469
428
|
if (templateName === null || templateName === undefined) {
|
|
470
|
-
throw new baseapi_1.RequiredError("
|
|
429
|
+
throw new baseapi_1.RequiredError("Client", "createPdfTemplate", "templateName");
|
|
471
430
|
}
|
|
472
431
|
localVarPath = '/templates';
|
|
473
432
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
@@ -509,32 +468,32 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
509
468
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
510
469
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
511
470
|
case 1:
|
|
512
|
-
|
|
513
|
-
|
|
471
|
+
_b.sent();
|
|
472
|
+
_b.label = 2;
|
|
514
473
|
case 2:
|
|
515
|
-
defaultAuth = (
|
|
474
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
516
475
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
517
476
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
518
477
|
case 3:
|
|
519
|
-
|
|
520
|
-
|
|
478
|
+
_b.sent();
|
|
479
|
+
_b.label = 4;
|
|
521
480
|
case 4: return [2, requestContext];
|
|
522
481
|
}
|
|
523
482
|
});
|
|
524
483
|
});
|
|
525
484
|
};
|
|
526
|
-
|
|
527
|
-
var _a
|
|
485
|
+
ClientRequestFactory.prototype.createPdfTemplateFromUpload = function (data, _options) {
|
|
486
|
+
var _a;
|
|
528
487
|
return __awaiter(this, void 0, void 0, function () {
|
|
529
488
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
530
|
-
return __generator(this, function (
|
|
531
|
-
switch (
|
|
489
|
+
return __generator(this, function (_b) {
|
|
490
|
+
switch (_b.label) {
|
|
532
491
|
case 0:
|
|
533
492
|
_config = _options || this.configuration;
|
|
534
493
|
if (data === null || data === undefined) {
|
|
535
|
-
throw new baseapi_1.RequiredError("
|
|
494
|
+
throw new baseapi_1.RequiredError("Client", "createPdfTemplateFromUpload", "data");
|
|
536
495
|
}
|
|
537
|
-
localVarPath = '/templates?
|
|
496
|
+
localVarPath = '/templates?endpoint_variant=create_template_from_cached_upload';
|
|
538
497
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
539
498
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
540
499
|
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
@@ -547,30 +506,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
547
506
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
548
507
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
549
508
|
case 1:
|
|
550
|
-
|
|
551
|
-
|
|
509
|
+
_b.sent();
|
|
510
|
+
_b.label = 2;
|
|
552
511
|
case 2:
|
|
553
|
-
defaultAuth = (
|
|
512
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
554
513
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
555
514
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
556
515
|
case 3:
|
|
557
|
-
|
|
558
|
-
|
|
516
|
+
_b.sent();
|
|
517
|
+
_b.label = 4;
|
|
559
518
|
case 4: return [2, requestContext];
|
|
560
519
|
}
|
|
561
520
|
});
|
|
562
521
|
});
|
|
563
522
|
};
|
|
564
|
-
|
|
565
|
-
var _a
|
|
523
|
+
ClientRequestFactory.prototype.deleteFolder = function (folderId, _options) {
|
|
524
|
+
var _a;
|
|
566
525
|
return __awaiter(this, void 0, void 0, function () {
|
|
567
526
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
568
|
-
return __generator(this, function (
|
|
569
|
-
switch (
|
|
527
|
+
return __generator(this, function (_b) {
|
|
528
|
+
switch (_b.label) {
|
|
570
529
|
case 0:
|
|
571
530
|
_config = _options || this.configuration;
|
|
572
531
|
if (folderId === null || folderId === undefined) {
|
|
573
|
-
throw new baseapi_1.RequiredError("
|
|
532
|
+
throw new baseapi_1.RequiredError("Client", "deleteFolder", "folderId");
|
|
574
533
|
}
|
|
575
534
|
localVarPath = '/folders/{folder_id}'
|
|
576
535
|
.replace('{' + 'folder_id' + '}', encodeURIComponent(String(folderId)));
|
|
@@ -580,30 +539,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
580
539
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
581
540
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
582
541
|
case 1:
|
|
583
|
-
|
|
584
|
-
|
|
542
|
+
_b.sent();
|
|
543
|
+
_b.label = 2;
|
|
585
544
|
case 2:
|
|
586
|
-
defaultAuth = (
|
|
545
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
587
546
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
588
547
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
589
548
|
case 3:
|
|
590
|
-
|
|
591
|
-
|
|
549
|
+
_b.sent();
|
|
550
|
+
_b.label = 4;
|
|
592
551
|
case 4: return [2, requestContext];
|
|
593
552
|
}
|
|
594
553
|
});
|
|
595
554
|
});
|
|
596
555
|
};
|
|
597
|
-
|
|
598
|
-
var _a
|
|
556
|
+
ClientRequestFactory.prototype.deleteTemplate = function (templateId, version, _options) {
|
|
557
|
+
var _a;
|
|
599
558
|
return __awaiter(this, void 0, void 0, function () {
|
|
600
559
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
601
|
-
return __generator(this, function (
|
|
602
|
-
switch (
|
|
560
|
+
return __generator(this, function (_b) {
|
|
561
|
+
switch (_b.label) {
|
|
603
562
|
case 0:
|
|
604
563
|
_config = _options || this.configuration;
|
|
605
564
|
if (templateId === null || templateId === undefined) {
|
|
606
|
-
throw new baseapi_1.RequiredError("
|
|
565
|
+
throw new baseapi_1.RequiredError("Client", "deleteTemplate", "templateId");
|
|
607
566
|
}
|
|
608
567
|
localVarPath = '/templates/{template_id}'
|
|
609
568
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -616,30 +575,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
616
575
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
617
576
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
618
577
|
case 1:
|
|
619
|
-
|
|
620
|
-
|
|
578
|
+
_b.sent();
|
|
579
|
+
_b.label = 2;
|
|
621
580
|
case 2:
|
|
622
|
-
defaultAuth = (
|
|
581
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
623
582
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
624
583
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
625
584
|
case 3:
|
|
626
|
-
|
|
627
|
-
|
|
585
|
+
_b.sent();
|
|
586
|
+
_b.label = 4;
|
|
628
587
|
case 4: return [2, requestContext];
|
|
629
588
|
}
|
|
630
589
|
});
|
|
631
590
|
});
|
|
632
591
|
};
|
|
633
|
-
|
|
634
|
-
var _a
|
|
592
|
+
ClientRequestFactory.prototype.expireCombinedSubmission = function (combinedSubmissionId, _options) {
|
|
593
|
+
var _a;
|
|
635
594
|
return __awaiter(this, void 0, void 0, function () {
|
|
636
595
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
637
|
-
return __generator(this, function (
|
|
638
|
-
switch (
|
|
596
|
+
return __generator(this, function (_b) {
|
|
597
|
+
switch (_b.label) {
|
|
639
598
|
case 0:
|
|
640
599
|
_config = _options || this.configuration;
|
|
641
600
|
if (combinedSubmissionId === null || combinedSubmissionId === undefined) {
|
|
642
|
-
throw new baseapi_1.RequiredError("
|
|
601
|
+
throw new baseapi_1.RequiredError("Client", "expireCombinedSubmission", "combinedSubmissionId");
|
|
643
602
|
}
|
|
644
603
|
localVarPath = '/combined_submissions/{combined_submission_id}'
|
|
645
604
|
.replace('{' + 'combined_submission_id' + '}', encodeURIComponent(String(combinedSubmissionId)));
|
|
@@ -649,30 +608,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
649
608
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
650
609
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
651
610
|
case 1:
|
|
652
|
-
|
|
653
|
-
|
|
611
|
+
_b.sent();
|
|
612
|
+
_b.label = 2;
|
|
654
613
|
case 2:
|
|
655
|
-
defaultAuth = (
|
|
614
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
656
615
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
657
616
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
658
617
|
case 3:
|
|
659
|
-
|
|
660
|
-
|
|
618
|
+
_b.sent();
|
|
619
|
+
_b.label = 4;
|
|
661
620
|
case 4: return [2, requestContext];
|
|
662
621
|
}
|
|
663
622
|
});
|
|
664
623
|
});
|
|
665
624
|
};
|
|
666
|
-
|
|
667
|
-
var _a
|
|
625
|
+
ClientRequestFactory.prototype.expireSubmission = function (submissionId, _options) {
|
|
626
|
+
var _a;
|
|
668
627
|
return __awaiter(this, void 0, void 0, function () {
|
|
669
628
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
670
|
-
return __generator(this, function (
|
|
671
|
-
switch (
|
|
629
|
+
return __generator(this, function (_b) {
|
|
630
|
+
switch (_b.label) {
|
|
672
631
|
case 0:
|
|
673
632
|
_config = _options || this.configuration;
|
|
674
633
|
if (submissionId === null || submissionId === undefined) {
|
|
675
|
-
throw new baseapi_1.RequiredError("
|
|
634
|
+
throw new baseapi_1.RequiredError("Client", "expireSubmission", "submissionId");
|
|
676
635
|
}
|
|
677
636
|
localVarPath = '/submissions/{submission_id}'
|
|
678
637
|
.replace('{' + 'submission_id' + '}', encodeURIComponent(String(submissionId)));
|
|
@@ -682,33 +641,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
682
641
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
683
642
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
684
643
|
case 1:
|
|
685
|
-
|
|
686
|
-
|
|
644
|
+
_b.sent();
|
|
645
|
+
_b.label = 2;
|
|
687
646
|
case 2:
|
|
688
|
-
defaultAuth = (
|
|
647
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
689
648
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
690
649
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
691
650
|
case 3:
|
|
692
|
-
|
|
693
|
-
|
|
651
|
+
_b.sent();
|
|
652
|
+
_b.label = 4;
|
|
694
653
|
case 4: return [2, requestContext];
|
|
695
654
|
}
|
|
696
655
|
});
|
|
697
656
|
});
|
|
698
657
|
};
|
|
699
|
-
|
|
700
|
-
var _a
|
|
658
|
+
ClientRequestFactory.prototype.generatePdf = function (templateId, submission, wait, _options) {
|
|
659
|
+
var _a;
|
|
701
660
|
return __awaiter(this, void 0, void 0, function () {
|
|
702
661
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
703
|
-
return __generator(this, function (
|
|
704
|
-
switch (
|
|
662
|
+
return __generator(this, function (_b) {
|
|
663
|
+
switch (_b.label) {
|
|
705
664
|
case 0:
|
|
706
665
|
_config = _options || this.configuration;
|
|
707
666
|
if (templateId === null || templateId === undefined) {
|
|
708
|
-
throw new baseapi_1.RequiredError("
|
|
667
|
+
throw new baseapi_1.RequiredError("Client", "generatePdf", "templateId");
|
|
709
668
|
}
|
|
710
669
|
if (submission === null || submission === undefined) {
|
|
711
|
-
throw new baseapi_1.RequiredError("
|
|
670
|
+
throw new baseapi_1.RequiredError("Client", "generatePdf", "submission");
|
|
712
671
|
}
|
|
713
672
|
localVarPath = '/templates/{template_id}/submissions'
|
|
714
673
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -727,75 +686,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
727
686
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
728
687
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
729
688
|
case 1:
|
|
730
|
-
|
|
731
|
-
|
|
689
|
+
_b.sent();
|
|
690
|
+
_b.label = 2;
|
|
732
691
|
case 2:
|
|
733
|
-
defaultAuth = (
|
|
692
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
734
693
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
735
694
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
736
695
|
case 3:
|
|
737
|
-
|
|
738
|
-
|
|
696
|
+
_b.sent();
|
|
697
|
+
_b.label = 4;
|
|
739
698
|
case 4: return [2, requestContext];
|
|
740
699
|
}
|
|
741
700
|
});
|
|
742
701
|
});
|
|
743
702
|
};
|
|
744
|
-
|
|
745
|
-
var _a
|
|
746
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
747
|
-
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
748
|
-
return __generator(this, function (_d) {
|
|
749
|
-
switch (_d.label) {
|
|
750
|
-
case 0:
|
|
751
|
-
_config = _options || this.configuration;
|
|
752
|
-
if (templateId === null || templateId === undefined) {
|
|
753
|
-
throw new baseapi_1.RequiredError("PDFApi", "generatePdfForHtmlTemplate", "templateId");
|
|
754
|
-
}
|
|
755
|
-
if (submission === null || submission === undefined) {
|
|
756
|
-
throw new baseapi_1.RequiredError("PDFApi", "generatePdfForHtmlTemplate", "submission");
|
|
757
|
-
}
|
|
758
|
-
localVarPath = '/templates/{template_id}/submissions?endpoint_description=html_templates'
|
|
759
|
-
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
760
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
761
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
762
|
-
if (wait !== undefined) {
|
|
763
|
-
requestContext.setQueryParam("wait", ObjectSerializer_1.ObjectSerializer.serialize(wait, "boolean", ""));
|
|
764
|
-
}
|
|
765
|
-
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
766
|
-
"application/json"
|
|
767
|
-
]);
|
|
768
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
769
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(submission, "CreateHtmlSubmissionData", ""), contentType);
|
|
770
|
-
requestContext.setBody(serializedBody);
|
|
771
|
-
authMethod = _config.authMethods["api_token_basic"];
|
|
772
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
773
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
774
|
-
case 1:
|
|
775
|
-
_d.sent();
|
|
776
|
-
_d.label = 2;
|
|
777
|
-
case 2:
|
|
778
|
-
defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
|
|
779
|
-
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
780
|
-
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
781
|
-
case 3:
|
|
782
|
-
_d.sent();
|
|
783
|
-
_d.label = 4;
|
|
784
|
-
case 4: return [2, requestContext];
|
|
785
|
-
}
|
|
786
|
-
});
|
|
787
|
-
});
|
|
788
|
-
};
|
|
789
|
-
PDFApiRequestFactory.prototype.generatePreview = function (submissionId, _options) {
|
|
790
|
-
var _a, _b, _c;
|
|
703
|
+
ClientRequestFactory.prototype.generatePreview = function (submissionId, _options) {
|
|
704
|
+
var _a;
|
|
791
705
|
return __awaiter(this, void 0, void 0, function () {
|
|
792
706
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
793
|
-
return __generator(this, function (
|
|
794
|
-
switch (
|
|
707
|
+
return __generator(this, function (_b) {
|
|
708
|
+
switch (_b.label) {
|
|
795
709
|
case 0:
|
|
796
710
|
_config = _options || this.configuration;
|
|
797
711
|
if (submissionId === null || submissionId === undefined) {
|
|
798
|
-
throw new baseapi_1.RequiredError("
|
|
712
|
+
throw new baseapi_1.RequiredError("Client", "generatePreview", "submissionId");
|
|
799
713
|
}
|
|
800
714
|
localVarPath = '/submissions/{submission_id}/generate_preview'
|
|
801
715
|
.replace('{' + 'submission_id' + '}', encodeURIComponent(String(submissionId)));
|
|
@@ -805,30 +719,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
805
719
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
806
720
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
807
721
|
case 1:
|
|
808
|
-
|
|
809
|
-
|
|
722
|
+
_b.sent();
|
|
723
|
+
_b.label = 2;
|
|
810
724
|
case 2:
|
|
811
|
-
defaultAuth = (
|
|
725
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
812
726
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
813
727
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
814
728
|
case 3:
|
|
815
|
-
|
|
816
|
-
|
|
729
|
+
_b.sent();
|
|
730
|
+
_b.label = 4;
|
|
817
731
|
case 4: return [2, requestContext];
|
|
818
732
|
}
|
|
819
733
|
});
|
|
820
734
|
});
|
|
821
735
|
};
|
|
822
|
-
|
|
823
|
-
var _a
|
|
736
|
+
ClientRequestFactory.prototype.getCombinedSubmission = function (combinedSubmissionId, _options) {
|
|
737
|
+
var _a;
|
|
824
738
|
return __awaiter(this, void 0, void 0, function () {
|
|
825
739
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
826
|
-
return __generator(this, function (
|
|
827
|
-
switch (
|
|
740
|
+
return __generator(this, function (_b) {
|
|
741
|
+
switch (_b.label) {
|
|
828
742
|
case 0:
|
|
829
743
|
_config = _options || this.configuration;
|
|
830
744
|
if (combinedSubmissionId === null || combinedSubmissionId === undefined) {
|
|
831
|
-
throw new baseapi_1.RequiredError("
|
|
745
|
+
throw new baseapi_1.RequiredError("Client", "getCombinedSubmission", "combinedSubmissionId");
|
|
832
746
|
}
|
|
833
747
|
localVarPath = '/combined_submissions/{combined_submission_id}'
|
|
834
748
|
.replace('{' + 'combined_submission_id' + '}', encodeURIComponent(String(combinedSubmissionId)));
|
|
@@ -838,30 +752,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
838
752
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
839
753
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
840
754
|
case 1:
|
|
841
|
-
|
|
842
|
-
|
|
755
|
+
_b.sent();
|
|
756
|
+
_b.label = 2;
|
|
843
757
|
case 2:
|
|
844
|
-
defaultAuth = (
|
|
758
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
845
759
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
846
760
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
847
761
|
case 3:
|
|
848
|
-
|
|
849
|
-
|
|
762
|
+
_b.sent();
|
|
763
|
+
_b.label = 4;
|
|
850
764
|
case 4: return [2, requestContext];
|
|
851
765
|
}
|
|
852
766
|
});
|
|
853
767
|
});
|
|
854
768
|
};
|
|
855
|
-
|
|
856
|
-
var _a
|
|
769
|
+
ClientRequestFactory.prototype.getDataRequest = function (dataRequestId, _options) {
|
|
770
|
+
var _a;
|
|
857
771
|
return __awaiter(this, void 0, void 0, function () {
|
|
858
772
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
859
|
-
return __generator(this, function (
|
|
860
|
-
switch (
|
|
773
|
+
return __generator(this, function (_b) {
|
|
774
|
+
switch (_b.label) {
|
|
861
775
|
case 0:
|
|
862
776
|
_config = _options || this.configuration;
|
|
863
777
|
if (dataRequestId === null || dataRequestId === undefined) {
|
|
864
|
-
throw new baseapi_1.RequiredError("
|
|
778
|
+
throw new baseapi_1.RequiredError("Client", "getDataRequest", "dataRequestId");
|
|
865
779
|
}
|
|
866
780
|
localVarPath = '/data_requests/{data_request_id}'
|
|
867
781
|
.replace('{' + 'data_request_id' + '}', encodeURIComponent(String(dataRequestId)));
|
|
@@ -871,30 +785,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
871
785
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
872
786
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
873
787
|
case 1:
|
|
874
|
-
|
|
875
|
-
|
|
788
|
+
_b.sent();
|
|
789
|
+
_b.label = 2;
|
|
876
790
|
case 2:
|
|
877
|
-
defaultAuth = (
|
|
791
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
878
792
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
879
793
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
880
794
|
case 3:
|
|
881
|
-
|
|
882
|
-
|
|
795
|
+
_b.sent();
|
|
796
|
+
_b.label = 4;
|
|
883
797
|
case 4: return [2, requestContext];
|
|
884
798
|
}
|
|
885
799
|
});
|
|
886
800
|
});
|
|
887
801
|
};
|
|
888
|
-
|
|
889
|
-
var _a
|
|
802
|
+
ClientRequestFactory.prototype.getFullTemplate = function (templateId, _options) {
|
|
803
|
+
var _a;
|
|
890
804
|
return __awaiter(this, void 0, void 0, function () {
|
|
891
805
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
892
|
-
return __generator(this, function (
|
|
893
|
-
switch (
|
|
806
|
+
return __generator(this, function (_b) {
|
|
807
|
+
switch (_b.label) {
|
|
894
808
|
case 0:
|
|
895
809
|
_config = _options || this.configuration;
|
|
896
810
|
if (templateId === null || templateId === undefined) {
|
|
897
|
-
throw new baseapi_1.RequiredError("
|
|
811
|
+
throw new baseapi_1.RequiredError("Client", "getFullTemplate", "templateId");
|
|
898
812
|
}
|
|
899
813
|
localVarPath = '/templates/{template_id}?full=true'
|
|
900
814
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -904,26 +818,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
904
818
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
905
819
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
906
820
|
case 1:
|
|
907
|
-
|
|
908
|
-
|
|
821
|
+
_b.sent();
|
|
822
|
+
_b.label = 2;
|
|
909
823
|
case 2:
|
|
910
|
-
defaultAuth = (
|
|
824
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
911
825
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
912
826
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
913
827
|
case 3:
|
|
914
|
-
|
|
915
|
-
|
|
828
|
+
_b.sent();
|
|
829
|
+
_b.label = 4;
|
|
916
830
|
case 4: return [2, requestContext];
|
|
917
831
|
}
|
|
918
832
|
});
|
|
919
833
|
});
|
|
920
834
|
};
|
|
921
|
-
|
|
922
|
-
var _a
|
|
835
|
+
ClientRequestFactory.prototype.getPresignUrl = function (_options) {
|
|
836
|
+
var _a;
|
|
923
837
|
return __awaiter(this, void 0, void 0, function () {
|
|
924
838
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
925
|
-
return __generator(this, function (
|
|
926
|
-
switch (
|
|
839
|
+
return __generator(this, function (_b) {
|
|
840
|
+
switch (_b.label) {
|
|
927
841
|
case 0:
|
|
928
842
|
_config = _options || this.configuration;
|
|
929
843
|
localVarPath = '/uploads/presign';
|
|
@@ -933,30 +847,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
933
847
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
934
848
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
935
849
|
case 1:
|
|
936
|
-
|
|
937
|
-
|
|
850
|
+
_b.sent();
|
|
851
|
+
_b.label = 2;
|
|
938
852
|
case 2:
|
|
939
|
-
defaultAuth = (
|
|
853
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
940
854
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
941
855
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
942
856
|
case 3:
|
|
943
|
-
|
|
944
|
-
|
|
857
|
+
_b.sent();
|
|
858
|
+
_b.label = 4;
|
|
945
859
|
case 4: return [2, requestContext];
|
|
946
860
|
}
|
|
947
861
|
});
|
|
948
862
|
});
|
|
949
863
|
};
|
|
950
|
-
|
|
951
|
-
var _a
|
|
864
|
+
ClientRequestFactory.prototype.getSubmission = function (submissionId, includeData, _options) {
|
|
865
|
+
var _a;
|
|
952
866
|
return __awaiter(this, void 0, void 0, function () {
|
|
953
867
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
954
|
-
return __generator(this, function (
|
|
955
|
-
switch (
|
|
868
|
+
return __generator(this, function (_b) {
|
|
869
|
+
switch (_b.label) {
|
|
956
870
|
case 0:
|
|
957
871
|
_config = _options || this.configuration;
|
|
958
872
|
if (submissionId === null || submissionId === undefined) {
|
|
959
|
-
throw new baseapi_1.RequiredError("
|
|
873
|
+
throw new baseapi_1.RequiredError("Client", "getSubmission", "submissionId");
|
|
960
874
|
}
|
|
961
875
|
localVarPath = '/submissions/{submission_id}'
|
|
962
876
|
.replace('{' + 'submission_id' + '}', encodeURIComponent(String(submissionId)));
|
|
@@ -969,30 +883,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
969
883
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
970
884
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
971
885
|
case 1:
|
|
972
|
-
|
|
973
|
-
|
|
886
|
+
_b.sent();
|
|
887
|
+
_b.label = 2;
|
|
974
888
|
case 2:
|
|
975
|
-
defaultAuth = (
|
|
889
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
976
890
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
977
891
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
978
892
|
case 3:
|
|
979
|
-
|
|
980
|
-
|
|
893
|
+
_b.sent();
|
|
894
|
+
_b.label = 4;
|
|
981
895
|
case 4: return [2, requestContext];
|
|
982
896
|
}
|
|
983
897
|
});
|
|
984
898
|
});
|
|
985
899
|
};
|
|
986
|
-
|
|
987
|
-
var _a
|
|
900
|
+
ClientRequestFactory.prototype.getSubmissionBatch = function (submissionBatchId, includeSubmissions, _options) {
|
|
901
|
+
var _a;
|
|
988
902
|
return __awaiter(this, void 0, void 0, function () {
|
|
989
903
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
990
|
-
return __generator(this, function (
|
|
991
|
-
switch (
|
|
904
|
+
return __generator(this, function (_b) {
|
|
905
|
+
switch (_b.label) {
|
|
992
906
|
case 0:
|
|
993
907
|
_config = _options || this.configuration;
|
|
994
908
|
if (submissionBatchId === null || submissionBatchId === undefined) {
|
|
995
|
-
throw new baseapi_1.RequiredError("
|
|
909
|
+
throw new baseapi_1.RequiredError("Client", "getSubmissionBatch", "submissionBatchId");
|
|
996
910
|
}
|
|
997
911
|
localVarPath = '/submissions/batches/{submission_batch_id}'
|
|
998
912
|
.replace('{' + 'submission_batch_id' + '}', encodeURIComponent(String(submissionBatchId)));
|
|
@@ -1005,30 +919,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1005
919
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1006
920
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1007
921
|
case 1:
|
|
1008
|
-
|
|
1009
|
-
|
|
922
|
+
_b.sent();
|
|
923
|
+
_b.label = 2;
|
|
1010
924
|
case 2:
|
|
1011
|
-
defaultAuth = (
|
|
925
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1012
926
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1013
927
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1014
928
|
case 3:
|
|
1015
|
-
|
|
1016
|
-
|
|
929
|
+
_b.sent();
|
|
930
|
+
_b.label = 4;
|
|
1017
931
|
case 4: return [2, requestContext];
|
|
1018
932
|
}
|
|
1019
933
|
});
|
|
1020
934
|
});
|
|
1021
935
|
};
|
|
1022
|
-
|
|
1023
|
-
var _a
|
|
936
|
+
ClientRequestFactory.prototype.getTemplate = function (templateId, _options) {
|
|
937
|
+
var _a;
|
|
1024
938
|
return __awaiter(this, void 0, void 0, function () {
|
|
1025
939
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1026
|
-
return __generator(this, function (
|
|
1027
|
-
switch (
|
|
940
|
+
return __generator(this, function (_b) {
|
|
941
|
+
switch (_b.label) {
|
|
1028
942
|
case 0:
|
|
1029
943
|
_config = _options || this.configuration;
|
|
1030
944
|
if (templateId === null || templateId === undefined) {
|
|
1031
|
-
throw new baseapi_1.RequiredError("
|
|
945
|
+
throw new baseapi_1.RequiredError("Client", "getTemplate", "templateId");
|
|
1032
946
|
}
|
|
1033
947
|
localVarPath = '/templates/{template_id}'
|
|
1034
948
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1038,30 +952,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1038
952
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1039
953
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1040
954
|
case 1:
|
|
1041
|
-
|
|
1042
|
-
|
|
955
|
+
_b.sent();
|
|
956
|
+
_b.label = 2;
|
|
1043
957
|
case 2:
|
|
1044
|
-
defaultAuth = (
|
|
958
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1045
959
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1046
960
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1047
961
|
case 3:
|
|
1048
|
-
|
|
1049
|
-
|
|
962
|
+
_b.sent();
|
|
963
|
+
_b.label = 4;
|
|
1050
964
|
case 4: return [2, requestContext];
|
|
1051
965
|
}
|
|
1052
966
|
});
|
|
1053
967
|
});
|
|
1054
968
|
};
|
|
1055
|
-
|
|
1056
|
-
var _a
|
|
969
|
+
ClientRequestFactory.prototype.getTemplateSchema = function (templateId, _options) {
|
|
970
|
+
var _a;
|
|
1057
971
|
return __awaiter(this, void 0, void 0, function () {
|
|
1058
972
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1059
|
-
return __generator(this, function (
|
|
1060
|
-
switch (
|
|
973
|
+
return __generator(this, function (_b) {
|
|
974
|
+
switch (_b.label) {
|
|
1061
975
|
case 0:
|
|
1062
976
|
_config = _options || this.configuration;
|
|
1063
977
|
if (templateId === null || templateId === undefined) {
|
|
1064
|
-
throw new baseapi_1.RequiredError("
|
|
978
|
+
throw new baseapi_1.RequiredError("Client", "getTemplateSchema", "templateId");
|
|
1065
979
|
}
|
|
1066
980
|
localVarPath = '/templates/{template_id}/schema'
|
|
1067
981
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1071,26 +985,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1071
985
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1072
986
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1073
987
|
case 1:
|
|
1074
|
-
|
|
1075
|
-
|
|
988
|
+
_b.sent();
|
|
989
|
+
_b.label = 2;
|
|
1076
990
|
case 2:
|
|
1077
|
-
defaultAuth = (
|
|
991
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1078
992
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1079
993
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1080
994
|
case 3:
|
|
1081
|
-
|
|
1082
|
-
|
|
995
|
+
_b.sent();
|
|
996
|
+
_b.label = 4;
|
|
1083
997
|
case 4: return [2, requestContext];
|
|
1084
998
|
}
|
|
1085
999
|
});
|
|
1086
1000
|
});
|
|
1087
1001
|
};
|
|
1088
|
-
|
|
1089
|
-
var _a
|
|
1002
|
+
ClientRequestFactory.prototype.listCombinedSubmissions = function (page, perPage, _options) {
|
|
1003
|
+
var _a;
|
|
1090
1004
|
return __awaiter(this, void 0, void 0, function () {
|
|
1091
1005
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1092
|
-
return __generator(this, function (
|
|
1093
|
-
switch (
|
|
1006
|
+
return __generator(this, function (_b) {
|
|
1007
|
+
switch (_b.label) {
|
|
1094
1008
|
case 0:
|
|
1095
1009
|
_config = _options || this.configuration;
|
|
1096
1010
|
localVarPath = '/combined_submissions';
|
|
@@ -1106,26 +1020,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1106
1020
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1107
1021
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1108
1022
|
case 1:
|
|
1109
|
-
|
|
1110
|
-
|
|
1023
|
+
_b.sent();
|
|
1024
|
+
_b.label = 2;
|
|
1111
1025
|
case 2:
|
|
1112
|
-
defaultAuth = (
|
|
1026
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1113
1027
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1114
1028
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1115
1029
|
case 3:
|
|
1116
|
-
|
|
1117
|
-
|
|
1030
|
+
_b.sent();
|
|
1031
|
+
_b.label = 4;
|
|
1118
1032
|
case 4: return [2, requestContext];
|
|
1119
1033
|
}
|
|
1120
1034
|
});
|
|
1121
1035
|
});
|
|
1122
1036
|
};
|
|
1123
|
-
|
|
1124
|
-
var _a
|
|
1037
|
+
ClientRequestFactory.prototype.listFolders = function (parentFolderId, _options) {
|
|
1038
|
+
var _a;
|
|
1125
1039
|
return __awaiter(this, void 0, void 0, function () {
|
|
1126
1040
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1127
|
-
return __generator(this, function (
|
|
1128
|
-
switch (
|
|
1041
|
+
return __generator(this, function (_b) {
|
|
1042
|
+
switch (_b.label) {
|
|
1129
1043
|
case 0:
|
|
1130
1044
|
_config = _options || this.configuration;
|
|
1131
1045
|
localVarPath = '/folders/';
|
|
@@ -1138,26 +1052,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1138
1052
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1139
1053
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1140
1054
|
case 1:
|
|
1141
|
-
|
|
1142
|
-
|
|
1055
|
+
_b.sent();
|
|
1056
|
+
_b.label = 2;
|
|
1143
1057
|
case 2:
|
|
1144
|
-
defaultAuth = (
|
|
1058
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1145
1059
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1146
1060
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1147
1061
|
case 3:
|
|
1148
|
-
|
|
1149
|
-
|
|
1062
|
+
_b.sent();
|
|
1063
|
+
_b.label = 4;
|
|
1150
1064
|
case 4: return [2, requestContext];
|
|
1151
1065
|
}
|
|
1152
1066
|
});
|
|
1153
1067
|
});
|
|
1154
1068
|
};
|
|
1155
|
-
|
|
1156
|
-
var _a
|
|
1069
|
+
ClientRequestFactory.prototype.listSubmissions = function (cursor, limit, createdAfter, createdBefore, type, includeData, _options) {
|
|
1070
|
+
var _a;
|
|
1157
1071
|
return __awaiter(this, void 0, void 0, function () {
|
|
1158
1072
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1159
|
-
return __generator(this, function (
|
|
1160
|
-
switch (
|
|
1073
|
+
return __generator(this, function (_b) {
|
|
1074
|
+
switch (_b.label) {
|
|
1161
1075
|
case 0:
|
|
1162
1076
|
_config = _options || this.configuration;
|
|
1163
1077
|
localVarPath = '/submissions';
|
|
@@ -1185,30 +1099,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1185
1099
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1186
1100
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1187
1101
|
case 1:
|
|
1188
|
-
|
|
1189
|
-
|
|
1102
|
+
_b.sent();
|
|
1103
|
+
_b.label = 2;
|
|
1190
1104
|
case 2:
|
|
1191
|
-
defaultAuth = (
|
|
1105
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1192
1106
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1193
1107
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1194
1108
|
case 3:
|
|
1195
|
-
|
|
1196
|
-
|
|
1109
|
+
_b.sent();
|
|
1110
|
+
_b.label = 4;
|
|
1197
1111
|
case 4: return [2, requestContext];
|
|
1198
1112
|
}
|
|
1199
1113
|
});
|
|
1200
1114
|
});
|
|
1201
1115
|
};
|
|
1202
|
-
|
|
1203
|
-
var _a
|
|
1116
|
+
ClientRequestFactory.prototype.listTemplateSubmissions = function (templateId, cursor, limit, createdAfter, createdBefore, type, includeData, _options) {
|
|
1117
|
+
var _a;
|
|
1204
1118
|
return __awaiter(this, void 0, void 0, function () {
|
|
1205
1119
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1206
|
-
return __generator(this, function (
|
|
1207
|
-
switch (
|
|
1120
|
+
return __generator(this, function (_b) {
|
|
1121
|
+
switch (_b.label) {
|
|
1208
1122
|
case 0:
|
|
1209
1123
|
_config = _options || this.configuration;
|
|
1210
1124
|
if (templateId === null || templateId === undefined) {
|
|
1211
|
-
throw new baseapi_1.RequiredError("
|
|
1125
|
+
throw new baseapi_1.RequiredError("Client", "listTemplateSubmissions", "templateId");
|
|
1212
1126
|
}
|
|
1213
1127
|
localVarPath = '/templates/{template_id}/submissions'
|
|
1214
1128
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1236,26 +1150,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1236
1150
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1237
1151
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1238
1152
|
case 1:
|
|
1239
|
-
|
|
1240
|
-
|
|
1153
|
+
_b.sent();
|
|
1154
|
+
_b.label = 2;
|
|
1241
1155
|
case 2:
|
|
1242
|
-
defaultAuth = (
|
|
1156
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1243
1157
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1244
1158
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1245
1159
|
case 3:
|
|
1246
|
-
|
|
1247
|
-
|
|
1160
|
+
_b.sent();
|
|
1161
|
+
_b.label = 4;
|
|
1248
1162
|
case 4: return [2, requestContext];
|
|
1249
1163
|
}
|
|
1250
1164
|
});
|
|
1251
1165
|
});
|
|
1252
1166
|
};
|
|
1253
|
-
|
|
1254
|
-
var _a
|
|
1167
|
+
ClientRequestFactory.prototype.listTemplates = function (query, parentFolderId, page, perPage, _options) {
|
|
1168
|
+
var _a;
|
|
1255
1169
|
return __awaiter(this, void 0, void 0, function () {
|
|
1256
1170
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1257
|
-
return __generator(this, function (
|
|
1258
|
-
switch (
|
|
1171
|
+
return __generator(this, function (_b) {
|
|
1172
|
+
switch (_b.label) {
|
|
1259
1173
|
case 0:
|
|
1260
1174
|
_config = _options || this.configuration;
|
|
1261
1175
|
localVarPath = '/templates';
|
|
@@ -1277,33 +1191,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1277
1191
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1278
1192
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1279
1193
|
case 1:
|
|
1280
|
-
|
|
1281
|
-
|
|
1194
|
+
_b.sent();
|
|
1195
|
+
_b.label = 2;
|
|
1282
1196
|
case 2:
|
|
1283
|
-
defaultAuth = (
|
|
1197
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1284
1198
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1285
1199
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1286
1200
|
case 3:
|
|
1287
|
-
|
|
1288
|
-
|
|
1201
|
+
_b.sent();
|
|
1202
|
+
_b.label = 4;
|
|
1289
1203
|
case 4: return [2, requestContext];
|
|
1290
1204
|
}
|
|
1291
1205
|
});
|
|
1292
1206
|
});
|
|
1293
1207
|
};
|
|
1294
|
-
|
|
1295
|
-
var _a
|
|
1208
|
+
ClientRequestFactory.prototype.moveFolderToFolder = function (folderId, data, _options) {
|
|
1209
|
+
var _a;
|
|
1296
1210
|
return __awaiter(this, void 0, void 0, function () {
|
|
1297
1211
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1298
|
-
return __generator(this, function (
|
|
1299
|
-
switch (
|
|
1212
|
+
return __generator(this, function (_b) {
|
|
1213
|
+
switch (_b.label) {
|
|
1300
1214
|
case 0:
|
|
1301
1215
|
_config = _options || this.configuration;
|
|
1302
1216
|
if (folderId === null || folderId === undefined) {
|
|
1303
|
-
throw new baseapi_1.RequiredError("
|
|
1217
|
+
throw new baseapi_1.RequiredError("Client", "moveFolderToFolder", "folderId");
|
|
1304
1218
|
}
|
|
1305
1219
|
if (data === null || data === undefined) {
|
|
1306
|
-
throw new baseapi_1.RequiredError("
|
|
1220
|
+
throw new baseapi_1.RequiredError("Client", "moveFolderToFolder", "data");
|
|
1307
1221
|
}
|
|
1308
1222
|
localVarPath = '/folders/{folder_id}/move'
|
|
1309
1223
|
.replace('{' + 'folder_id' + '}', encodeURIComponent(String(folderId)));
|
|
@@ -1319,33 +1233,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1319
1233
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1320
1234
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1321
1235
|
case 1:
|
|
1322
|
-
|
|
1323
|
-
|
|
1236
|
+
_b.sent();
|
|
1237
|
+
_b.label = 2;
|
|
1324
1238
|
case 2:
|
|
1325
|
-
defaultAuth = (
|
|
1239
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1326
1240
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1327
1241
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1328
1242
|
case 3:
|
|
1329
|
-
|
|
1330
|
-
|
|
1243
|
+
_b.sent();
|
|
1244
|
+
_b.label = 4;
|
|
1331
1245
|
case 4: return [2, requestContext];
|
|
1332
1246
|
}
|
|
1333
1247
|
});
|
|
1334
1248
|
});
|
|
1335
1249
|
};
|
|
1336
|
-
|
|
1337
|
-
var _a
|
|
1250
|
+
ClientRequestFactory.prototype.moveTemplateToFolder = function (templateId, data, _options) {
|
|
1251
|
+
var _a;
|
|
1338
1252
|
return __awaiter(this, void 0, void 0, function () {
|
|
1339
1253
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1340
|
-
return __generator(this, function (
|
|
1341
|
-
switch (
|
|
1254
|
+
return __generator(this, function (_b) {
|
|
1255
|
+
switch (_b.label) {
|
|
1342
1256
|
case 0:
|
|
1343
1257
|
_config = _options || this.configuration;
|
|
1344
1258
|
if (templateId === null || templateId === undefined) {
|
|
1345
|
-
throw new baseapi_1.RequiredError("
|
|
1259
|
+
throw new baseapi_1.RequiredError("Client", "moveTemplateToFolder", "templateId");
|
|
1346
1260
|
}
|
|
1347
1261
|
if (data === null || data === undefined) {
|
|
1348
|
-
throw new baseapi_1.RequiredError("
|
|
1262
|
+
throw new baseapi_1.RequiredError("Client", "moveTemplateToFolder", "data");
|
|
1349
1263
|
}
|
|
1350
1264
|
localVarPath = '/templates/{template_id}/move'
|
|
1351
1265
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1361,33 +1275,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1361
1275
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1362
1276
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1363
1277
|
case 1:
|
|
1364
|
-
|
|
1365
|
-
|
|
1278
|
+
_b.sent();
|
|
1279
|
+
_b.label = 2;
|
|
1366
1280
|
case 2:
|
|
1367
|
-
defaultAuth = (
|
|
1281
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1368
1282
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1369
1283
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1370
1284
|
case 3:
|
|
1371
|
-
|
|
1372
|
-
|
|
1285
|
+
_b.sent();
|
|
1286
|
+
_b.label = 4;
|
|
1373
1287
|
case 4: return [2, requestContext];
|
|
1374
1288
|
}
|
|
1375
1289
|
});
|
|
1376
1290
|
});
|
|
1377
1291
|
};
|
|
1378
|
-
|
|
1379
|
-
var _a
|
|
1292
|
+
ClientRequestFactory.prototype.publishTemplateVersion = function (templateId, data, _options) {
|
|
1293
|
+
var _a;
|
|
1380
1294
|
return __awaiter(this, void 0, void 0, function () {
|
|
1381
1295
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1382
|
-
return __generator(this, function (
|
|
1383
|
-
switch (
|
|
1296
|
+
return __generator(this, function (_b) {
|
|
1297
|
+
switch (_b.label) {
|
|
1384
1298
|
case 0:
|
|
1385
1299
|
_config = _options || this.configuration;
|
|
1386
1300
|
if (templateId === null || templateId === undefined) {
|
|
1387
|
-
throw new baseapi_1.RequiredError("
|
|
1301
|
+
throw new baseapi_1.RequiredError("Client", "publishTemplateVersion", "templateId");
|
|
1388
1302
|
}
|
|
1389
1303
|
if (data === null || data === undefined) {
|
|
1390
|
-
throw new baseapi_1.RequiredError("
|
|
1304
|
+
throw new baseapi_1.RequiredError("Client", "publishTemplateVersion", "data");
|
|
1391
1305
|
}
|
|
1392
1306
|
localVarPath = '/templates/{template_id}/publish_version'
|
|
1393
1307
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1403,33 +1317,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1403
1317
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1404
1318
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1405
1319
|
case 1:
|
|
1406
|
-
|
|
1407
|
-
|
|
1320
|
+
_b.sent();
|
|
1321
|
+
_b.label = 2;
|
|
1408
1322
|
case 2:
|
|
1409
|
-
defaultAuth = (
|
|
1323
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1410
1324
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1411
1325
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1412
1326
|
case 3:
|
|
1413
|
-
|
|
1414
|
-
|
|
1327
|
+
_b.sent();
|
|
1328
|
+
_b.label = 4;
|
|
1415
1329
|
case 4: return [2, requestContext];
|
|
1416
1330
|
}
|
|
1417
1331
|
});
|
|
1418
1332
|
});
|
|
1419
1333
|
};
|
|
1420
|
-
|
|
1421
|
-
var _a
|
|
1334
|
+
ClientRequestFactory.prototype.renameFolder = function (folderId, data, _options) {
|
|
1335
|
+
var _a;
|
|
1422
1336
|
return __awaiter(this, void 0, void 0, function () {
|
|
1423
1337
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1424
|
-
return __generator(this, function (
|
|
1425
|
-
switch (
|
|
1338
|
+
return __generator(this, function (_b) {
|
|
1339
|
+
switch (_b.label) {
|
|
1426
1340
|
case 0:
|
|
1427
1341
|
_config = _options || this.configuration;
|
|
1428
1342
|
if (folderId === null || folderId === undefined) {
|
|
1429
|
-
throw new baseapi_1.RequiredError("
|
|
1343
|
+
throw new baseapi_1.RequiredError("Client", "renameFolder", "folderId");
|
|
1430
1344
|
}
|
|
1431
1345
|
if (data === null || data === undefined) {
|
|
1432
|
-
throw new baseapi_1.RequiredError("
|
|
1346
|
+
throw new baseapi_1.RequiredError("Client", "renameFolder", "data");
|
|
1433
1347
|
}
|
|
1434
1348
|
localVarPath = '/folders/{folder_id}/rename'
|
|
1435
1349
|
.replace('{' + 'folder_id' + '}', encodeURIComponent(String(folderId)));
|
|
@@ -1445,33 +1359,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1445
1359
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1446
1360
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1447
1361
|
case 1:
|
|
1448
|
-
|
|
1449
|
-
|
|
1362
|
+
_b.sent();
|
|
1363
|
+
_b.label = 2;
|
|
1450
1364
|
case 2:
|
|
1451
|
-
defaultAuth = (
|
|
1365
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1452
1366
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1453
1367
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1454
1368
|
case 3:
|
|
1455
|
-
|
|
1456
|
-
|
|
1369
|
+
_b.sent();
|
|
1370
|
+
_b.label = 4;
|
|
1457
1371
|
case 4: return [2, requestContext];
|
|
1458
1372
|
}
|
|
1459
1373
|
});
|
|
1460
1374
|
});
|
|
1461
1375
|
};
|
|
1462
|
-
|
|
1463
|
-
var _a
|
|
1376
|
+
ClientRequestFactory.prototype.restoreTemplateVersion = function (templateId, data, _options) {
|
|
1377
|
+
var _a;
|
|
1464
1378
|
return __awaiter(this, void 0, void 0, function () {
|
|
1465
1379
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1466
|
-
return __generator(this, function (
|
|
1467
|
-
switch (
|
|
1380
|
+
return __generator(this, function (_b) {
|
|
1381
|
+
switch (_b.label) {
|
|
1468
1382
|
case 0:
|
|
1469
1383
|
_config = _options || this.configuration;
|
|
1470
1384
|
if (templateId === null || templateId === undefined) {
|
|
1471
|
-
throw new baseapi_1.RequiredError("
|
|
1385
|
+
throw new baseapi_1.RequiredError("Client", "restoreTemplateVersion", "templateId");
|
|
1472
1386
|
}
|
|
1473
1387
|
if (data === null || data === undefined) {
|
|
1474
|
-
throw new baseapi_1.RequiredError("
|
|
1388
|
+
throw new baseapi_1.RequiredError("Client", "restoreTemplateVersion", "data");
|
|
1475
1389
|
}
|
|
1476
1390
|
localVarPath = '/templates/{template_id}/restore_version'
|
|
1477
1391
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1487,26 +1401,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1487
1401
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1488
1402
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1489
1403
|
case 1:
|
|
1490
|
-
|
|
1491
|
-
|
|
1404
|
+
_b.sent();
|
|
1405
|
+
_b.label = 2;
|
|
1492
1406
|
case 2:
|
|
1493
|
-
defaultAuth = (
|
|
1407
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1494
1408
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1495
1409
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1496
1410
|
case 3:
|
|
1497
|
-
|
|
1498
|
-
|
|
1411
|
+
_b.sent();
|
|
1412
|
+
_b.label = 4;
|
|
1499
1413
|
case 4: return [2, requestContext];
|
|
1500
1414
|
}
|
|
1501
1415
|
});
|
|
1502
1416
|
});
|
|
1503
1417
|
};
|
|
1504
|
-
|
|
1505
|
-
var _a
|
|
1418
|
+
ClientRequestFactory.prototype.testAuthentication = function (_options) {
|
|
1419
|
+
var _a;
|
|
1506
1420
|
return __awaiter(this, void 0, void 0, function () {
|
|
1507
1421
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1508
|
-
return __generator(this, function (
|
|
1509
|
-
switch (
|
|
1422
|
+
return __generator(this, function (_b) {
|
|
1423
|
+
switch (_b.label) {
|
|
1510
1424
|
case 0:
|
|
1511
1425
|
_config = _options || this.configuration;
|
|
1512
1426
|
localVarPath = '/authentication';
|
|
@@ -1516,33 +1430,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1516
1430
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1517
1431
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1518
1432
|
case 1:
|
|
1519
|
-
|
|
1520
|
-
|
|
1433
|
+
_b.sent();
|
|
1434
|
+
_b.label = 2;
|
|
1521
1435
|
case 2:
|
|
1522
|
-
defaultAuth = (
|
|
1436
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1523
1437
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1524
1438
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1525
1439
|
case 3:
|
|
1526
|
-
|
|
1527
|
-
|
|
1440
|
+
_b.sent();
|
|
1441
|
+
_b.label = 4;
|
|
1528
1442
|
case 4: return [2, requestContext];
|
|
1529
1443
|
}
|
|
1530
1444
|
});
|
|
1531
1445
|
});
|
|
1532
1446
|
};
|
|
1533
|
-
|
|
1534
|
-
var _a
|
|
1447
|
+
ClientRequestFactory.prototype.updateDataRequest = function (dataRequestId, data, _options) {
|
|
1448
|
+
var _a;
|
|
1535
1449
|
return __awaiter(this, void 0, void 0, function () {
|
|
1536
1450
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1537
|
-
return __generator(this, function (
|
|
1538
|
-
switch (
|
|
1451
|
+
return __generator(this, function (_b) {
|
|
1452
|
+
switch (_b.label) {
|
|
1539
1453
|
case 0:
|
|
1540
1454
|
_config = _options || this.configuration;
|
|
1541
1455
|
if (dataRequestId === null || dataRequestId === undefined) {
|
|
1542
|
-
throw new baseapi_1.RequiredError("
|
|
1456
|
+
throw new baseapi_1.RequiredError("Client", "updateDataRequest", "dataRequestId");
|
|
1543
1457
|
}
|
|
1544
1458
|
if (data === null || data === undefined) {
|
|
1545
|
-
throw new baseapi_1.RequiredError("
|
|
1459
|
+
throw new baseapi_1.RequiredError("Client", "updateDataRequest", "data");
|
|
1546
1460
|
}
|
|
1547
1461
|
localVarPath = '/data_requests/{data_request_id}'
|
|
1548
1462
|
.replace('{' + 'data_request_id' + '}', encodeURIComponent(String(dataRequestId)));
|
|
@@ -1558,33 +1472,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1558
1472
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1559
1473
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1560
1474
|
case 1:
|
|
1561
|
-
|
|
1562
|
-
|
|
1475
|
+
_b.sent();
|
|
1476
|
+
_b.label = 2;
|
|
1563
1477
|
case 2:
|
|
1564
|
-
defaultAuth = (
|
|
1478
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1565
1479
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1566
1480
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1567
1481
|
case 3:
|
|
1568
|
-
|
|
1569
|
-
|
|
1482
|
+
_b.sent();
|
|
1483
|
+
_b.label = 4;
|
|
1570
1484
|
case 4: return [2, requestContext];
|
|
1571
1485
|
}
|
|
1572
1486
|
});
|
|
1573
1487
|
});
|
|
1574
1488
|
};
|
|
1575
|
-
|
|
1576
|
-
var _a
|
|
1489
|
+
ClientRequestFactory.prototype.updateTemplate = function (templateId, data, _options) {
|
|
1490
|
+
var _a;
|
|
1577
1491
|
return __awaiter(this, void 0, void 0, function () {
|
|
1578
1492
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1579
|
-
return __generator(this, function (
|
|
1580
|
-
switch (
|
|
1493
|
+
return __generator(this, function (_b) {
|
|
1494
|
+
switch (_b.label) {
|
|
1581
1495
|
case 0:
|
|
1582
1496
|
_config = _options || this.configuration;
|
|
1583
1497
|
if (templateId === null || templateId === undefined) {
|
|
1584
|
-
throw new baseapi_1.RequiredError("
|
|
1498
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplate", "templateId");
|
|
1585
1499
|
}
|
|
1586
1500
|
if (data === null || data === undefined) {
|
|
1587
|
-
throw new baseapi_1.RequiredError("
|
|
1501
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplate", "data");
|
|
1588
1502
|
}
|
|
1589
1503
|
localVarPath = '/templates/{template_id}'
|
|
1590
1504
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1600,27 +1514,129 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1600
1514
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1601
1515
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1602
1516
|
case 1:
|
|
1603
|
-
|
|
1604
|
-
|
|
1517
|
+
_b.sent();
|
|
1518
|
+
_b.label = 2;
|
|
1519
|
+
case 2:
|
|
1520
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1521
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1522
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1523
|
+
case 3:
|
|
1524
|
+
_b.sent();
|
|
1525
|
+
_b.label = 4;
|
|
1526
|
+
case 4: return [2, requestContext];
|
|
1527
|
+
}
|
|
1528
|
+
});
|
|
1529
|
+
});
|
|
1530
|
+
};
|
|
1531
|
+
ClientRequestFactory.prototype.updateTemplateDocument = function (templateId, templateDocument, templateName, _options) {
|
|
1532
|
+
var _a;
|
|
1533
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1534
|
+
var _config, localVarPath, requestContext, useForm, localVarFormParams, contentType, authMethod, defaultAuth;
|
|
1535
|
+
return __generator(this, function (_b) {
|
|
1536
|
+
switch (_b.label) {
|
|
1537
|
+
case 0:
|
|
1538
|
+
_config = _options || this.configuration;
|
|
1539
|
+
if (templateId === null || templateId === undefined) {
|
|
1540
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplateDocument", "templateId");
|
|
1541
|
+
}
|
|
1542
|
+
if (templateDocument === null || templateDocument === undefined) {
|
|
1543
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplateDocument", "templateDocument");
|
|
1544
|
+
}
|
|
1545
|
+
localVarPath = '/templates/{template_id}?endpoint_variant=update_template_pdf_with_form_post'
|
|
1546
|
+
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
1547
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
1548
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1549
|
+
useForm = (0, util_1.canConsumeForm)([
|
|
1550
|
+
'multipart/form-data',
|
|
1551
|
+
]);
|
|
1552
|
+
if (useForm) {
|
|
1553
|
+
localVarFormParams = new FormData();
|
|
1554
|
+
}
|
|
1555
|
+
else {
|
|
1556
|
+
localVarFormParams = new URLSearchParams();
|
|
1557
|
+
}
|
|
1558
|
+
if (templateDocument !== undefined) {
|
|
1559
|
+
if (localVarFormParams instanceof FormData) {
|
|
1560
|
+
localVarFormParams.append('template[document]', templateDocument, templateDocument.name);
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
if (templateName !== undefined) {
|
|
1564
|
+
localVarFormParams.append('template[name]', templateName);
|
|
1565
|
+
}
|
|
1566
|
+
requestContext.setBody(localVarFormParams);
|
|
1567
|
+
if (!useForm) {
|
|
1568
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1569
|
+
"multipart/form-data"
|
|
1570
|
+
]);
|
|
1571
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1572
|
+
}
|
|
1573
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
1574
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1575
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1576
|
+
case 1:
|
|
1577
|
+
_b.sent();
|
|
1578
|
+
_b.label = 2;
|
|
1579
|
+
case 2:
|
|
1580
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1581
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1582
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1583
|
+
case 3:
|
|
1584
|
+
_b.sent();
|
|
1585
|
+
_b.label = 4;
|
|
1586
|
+
case 4: return [2, requestContext];
|
|
1587
|
+
}
|
|
1588
|
+
});
|
|
1589
|
+
});
|
|
1590
|
+
};
|
|
1591
|
+
ClientRequestFactory.prototype.updateTemplateDocumentFromUpload = function (templateId, data, _options) {
|
|
1592
|
+
var _a;
|
|
1593
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1594
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1595
|
+
return __generator(this, function (_b) {
|
|
1596
|
+
switch (_b.label) {
|
|
1597
|
+
case 0:
|
|
1598
|
+
_config = _options || this.configuration;
|
|
1599
|
+
if (templateId === null || templateId === undefined) {
|
|
1600
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplateDocumentFromUpload", "templateId");
|
|
1601
|
+
}
|
|
1602
|
+
if (data === null || data === undefined) {
|
|
1603
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplateDocumentFromUpload", "data");
|
|
1604
|
+
}
|
|
1605
|
+
localVarPath = '/templates/{template_id}?endpoint_variant=update_template_pdf_with_cached_upload'
|
|
1606
|
+
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
1607
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
1608
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1609
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1610
|
+
"application/json"
|
|
1611
|
+
]);
|
|
1612
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1613
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(data, "UpdatePdfTemplate", ""), contentType);
|
|
1614
|
+
requestContext.setBody(serializedBody);
|
|
1615
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
1616
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1617
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1618
|
+
case 1:
|
|
1619
|
+
_b.sent();
|
|
1620
|
+
_b.label = 2;
|
|
1605
1621
|
case 2:
|
|
1606
|
-
defaultAuth = (
|
|
1622
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1607
1623
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1608
1624
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1609
1625
|
case 3:
|
|
1610
|
-
|
|
1611
|
-
|
|
1626
|
+
_b.sent();
|
|
1627
|
+
_b.label = 4;
|
|
1612
1628
|
case 4: return [2, requestContext];
|
|
1613
1629
|
}
|
|
1614
1630
|
});
|
|
1615
1631
|
});
|
|
1616
1632
|
};
|
|
1617
|
-
return
|
|
1633
|
+
return ClientRequestFactory;
|
|
1618
1634
|
}(baseapi_1.BaseAPIRequestFactory));
|
|
1619
|
-
exports.
|
|
1620
|
-
var
|
|
1621
|
-
function
|
|
1635
|
+
exports.ClientRequestFactory = ClientRequestFactory;
|
|
1636
|
+
var ClientResponseProcessor = (function () {
|
|
1637
|
+
function ClientResponseProcessor() {
|
|
1622
1638
|
}
|
|
1623
|
-
|
|
1639
|
+
ClientResponseProcessor.prototype.addFieldsToTemplateWithHttpInfo = function (response) {
|
|
1624
1640
|
return __awaiter(this, void 0, void 0, function () {
|
|
1625
1641
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1626
1642
|
return __generator(this, function (_q) {
|
|
@@ -1662,7 +1678,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1662
1678
|
});
|
|
1663
1679
|
});
|
|
1664
1680
|
};
|
|
1665
|
-
|
|
1681
|
+
ClientResponseProcessor.prototype.batchGeneratePdfsWithHttpInfo = function (response) {
|
|
1666
1682
|
return __awaiter(this, void 0, void 0, function () {
|
|
1667
1683
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, body, _w, _x, _y, _z, _0, _1;
|
|
1668
1684
|
return __generator(this, function (_2) {
|
|
@@ -1702,7 +1718,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1702
1718
|
return [4, response.body.text()];
|
|
1703
1719
|
case 7:
|
|
1704
1720
|
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1705
|
-
"
|
|
1721
|
+
"ErrorOrMultipleErrorsResponse", ""]);
|
|
1706
1722
|
throw new exception_1.ApiException(response.httpStatusCode, "array of arrays", body, response.headers);
|
|
1707
1723
|
case 8:
|
|
1708
1724
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 10];
|
|
@@ -1731,7 +1747,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1731
1747
|
});
|
|
1732
1748
|
});
|
|
1733
1749
|
};
|
|
1734
|
-
|
|
1750
|
+
ClientResponseProcessor.prototype.combinePdfsWithHttpInfo = function (response) {
|
|
1735
1751
|
return __awaiter(this, void 0, void 0, function () {
|
|
1736
1752
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
1737
1753
|
return __generator(this, function (_y) {
|
|
@@ -1791,67 +1807,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1791
1807
|
});
|
|
1792
1808
|
});
|
|
1793
1809
|
};
|
|
1794
|
-
|
|
1795
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1796
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
1797
|
-
return __generator(this, function (_y) {
|
|
1798
|
-
switch (_y.label) {
|
|
1799
|
-
case 0:
|
|
1800
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1801
|
-
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
1802
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1803
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1804
|
-
return [4, response.body.text()];
|
|
1805
|
-
case 1:
|
|
1806
|
-
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
1807
|
-
"CreateCombinedSubmissionResponse", ""]);
|
|
1808
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1809
|
-
case 2:
|
|
1810
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
1811
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1812
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1813
|
-
return [4, response.body.text()];
|
|
1814
|
-
case 3:
|
|
1815
|
-
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
1816
|
-
"MultipleErrorsResponse", ""]);
|
|
1817
|
-
throw new exception_1.ApiException(response.httpStatusCode, "invalid request", body, response.headers);
|
|
1818
|
-
case 4:
|
|
1819
|
-
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 6];
|
|
1820
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1821
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1822
|
-
return [4, response.body.text()];
|
|
1823
|
-
case 5:
|
|
1824
|
-
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
1825
|
-
"ErrorResponse", ""]);
|
|
1826
|
-
throw new exception_1.ApiException(response.httpStatusCode, "invalid JSON", body, response.headers);
|
|
1827
|
-
case 6:
|
|
1828
|
-
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 8];
|
|
1829
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1830
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1831
|
-
return [4, response.body.text()];
|
|
1832
|
-
case 7:
|
|
1833
|
-
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
1834
|
-
"ErrorResponse", ""]);
|
|
1835
|
-
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
1836
|
-
case 8:
|
|
1837
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
1838
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1839
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1840
|
-
return [4, response.body.text()];
|
|
1841
|
-
case 9:
|
|
1842
|
-
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
1843
|
-
"CreateCombinedSubmissionResponse", ""]);
|
|
1844
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1845
|
-
case 10:
|
|
1846
|
-
_w = exception_1.ApiException.bind;
|
|
1847
|
-
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1848
|
-
return [4, response.getBodyAsAny()];
|
|
1849
|
-
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
1850
|
-
}
|
|
1851
|
-
});
|
|
1852
|
-
});
|
|
1853
|
-
};
|
|
1854
|
-
PDFApiResponseProcessor.prototype.copyTemplateWithHttpInfo = function (response) {
|
|
1810
|
+
ClientResponseProcessor.prototype.copyTemplateWithHttpInfo = function (response) {
|
|
1855
1811
|
return __awaiter(this, void 0, void 0, function () {
|
|
1856
1812
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1857
1813
|
return __generator(this, function (_q) {
|
|
@@ -1893,7 +1849,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1893
1849
|
});
|
|
1894
1850
|
});
|
|
1895
1851
|
};
|
|
1896
|
-
|
|
1852
|
+
ClientResponseProcessor.prototype.createCustomFileFromUploadWithHttpInfo = function (response) {
|
|
1897
1853
|
return __awaiter(this, void 0, void 0, function () {
|
|
1898
1854
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1899
1855
|
return __generator(this, function (_q) {
|
|
@@ -1935,7 +1891,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1935
1891
|
});
|
|
1936
1892
|
});
|
|
1937
1893
|
};
|
|
1938
|
-
|
|
1894
|
+
ClientResponseProcessor.prototype.createDataRequestEventWithHttpInfo = function (response) {
|
|
1939
1895
|
return __awaiter(this, void 0, void 0, function () {
|
|
1940
1896
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1941
1897
|
return __generator(this, function (_u) {
|
|
@@ -1986,7 +1942,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1986
1942
|
});
|
|
1987
1943
|
});
|
|
1988
1944
|
};
|
|
1989
|
-
|
|
1945
|
+
ClientResponseProcessor.prototype.createDataRequestTokenWithHttpInfo = function (response) {
|
|
1990
1946
|
return __awaiter(this, void 0, void 0, function () {
|
|
1991
1947
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1992
1948
|
return __generator(this, function (_u) {
|
|
@@ -2037,7 +1993,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2037
1993
|
});
|
|
2038
1994
|
});
|
|
2039
1995
|
};
|
|
2040
|
-
|
|
1996
|
+
ClientResponseProcessor.prototype.createFolderWithHttpInfo = function (response) {
|
|
2041
1997
|
return __awaiter(this, void 0, void 0, function () {
|
|
2042
1998
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
2043
1999
|
return __generator(this, function (_y) {
|
|
@@ -2097,7 +2053,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2097
2053
|
});
|
|
2098
2054
|
});
|
|
2099
2055
|
};
|
|
2100
|
-
|
|
2056
|
+
ClientResponseProcessor.prototype.createHtmlTemplateWithHttpInfo = function (response) {
|
|
2101
2057
|
return __awaiter(this, void 0, void 0, function () {
|
|
2102
2058
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2103
2059
|
return __generator(this, function (_q) {
|
|
@@ -2139,7 +2095,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2139
2095
|
});
|
|
2140
2096
|
});
|
|
2141
2097
|
};
|
|
2142
|
-
|
|
2098
|
+
ClientResponseProcessor.prototype.createPdfTemplateWithHttpInfo = function (response) {
|
|
2143
2099
|
return __awaiter(this, void 0, void 0, function () {
|
|
2144
2100
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2145
2101
|
return __generator(this, function (_q) {
|
|
@@ -2181,7 +2137,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2181
2137
|
});
|
|
2182
2138
|
});
|
|
2183
2139
|
};
|
|
2184
|
-
|
|
2140
|
+
ClientResponseProcessor.prototype.createPdfTemplateFromUploadWithHttpInfo = function (response) {
|
|
2185
2141
|
return __awaiter(this, void 0, void 0, function () {
|
|
2186
2142
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2187
2143
|
return __generator(this, function (_q) {
|
|
@@ -2223,7 +2179,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2223
2179
|
});
|
|
2224
2180
|
});
|
|
2225
2181
|
};
|
|
2226
|
-
|
|
2182
|
+
ClientResponseProcessor.prototype.deleteFolderWithHttpInfo = function (response) {
|
|
2227
2183
|
return __awaiter(this, void 0, void 0, function () {
|
|
2228
2184
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
2229
2185
|
return __generator(this, function (_y) {
|
|
@@ -2283,7 +2239,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2283
2239
|
});
|
|
2284
2240
|
});
|
|
2285
2241
|
};
|
|
2286
|
-
|
|
2242
|
+
ClientResponseProcessor.prototype.deleteTemplateWithHttpInfo = function (response) {
|
|
2287
2243
|
return __awaiter(this, void 0, void 0, function () {
|
|
2288
2244
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2289
2245
|
return __generator(this, function (_u) {
|
|
@@ -2334,7 +2290,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2334
2290
|
});
|
|
2335
2291
|
});
|
|
2336
2292
|
};
|
|
2337
|
-
|
|
2293
|
+
ClientResponseProcessor.prototype.expireCombinedSubmissionWithHttpInfo = function (response) {
|
|
2338
2294
|
return __awaiter(this, void 0, void 0, function () {
|
|
2339
2295
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
2340
2296
|
return __generator(this, function (_y) {
|
|
@@ -2394,7 +2350,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2394
2350
|
});
|
|
2395
2351
|
});
|
|
2396
2352
|
};
|
|
2397
|
-
|
|
2353
|
+
ClientResponseProcessor.prototype.expireSubmissionWithHttpInfo = function (response) {
|
|
2398
2354
|
return __awaiter(this, void 0, void 0, function () {
|
|
2399
2355
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
2400
2356
|
return __generator(this, function (_y) {
|
|
@@ -2454,7 +2410,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2454
2410
|
});
|
|
2455
2411
|
});
|
|
2456
2412
|
};
|
|
2457
|
-
|
|
2413
|
+
ClientResponseProcessor.prototype.generatePdfWithHttpInfo = function (response) {
|
|
2458
2414
|
return __awaiter(this, void 0, void 0, function () {
|
|
2459
2415
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2460
2416
|
return __generator(this, function (_u) {
|
|
@@ -2476,7 +2432,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2476
2432
|
return [4, response.body.text()];
|
|
2477
2433
|
case 3:
|
|
2478
2434
|
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2479
|
-
"
|
|
2435
|
+
"Submission422Response", ""]);
|
|
2480
2436
|
throw new exception_1.ApiException(response.httpStatusCode, "invalid request", body, response.headers);
|
|
2481
2437
|
case 4:
|
|
2482
2438
|
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 6];
|
|
@@ -2505,40 +2461,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2505
2461
|
});
|
|
2506
2462
|
});
|
|
2507
2463
|
};
|
|
2508
|
-
|
|
2509
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2510
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
2511
|
-
return __generator(this, function (_l) {
|
|
2512
|
-
switch (_l.label) {
|
|
2513
|
-
case 0:
|
|
2514
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2515
|
-
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
2516
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2517
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2518
|
-
return [4, response.body.text()];
|
|
2519
|
-
case 1:
|
|
2520
|
-
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2521
|
-
"CreateSubmissionResponse", ""]);
|
|
2522
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2523
|
-
case 2:
|
|
2524
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
2525
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2526
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2527
|
-
return [4, response.body.text()];
|
|
2528
|
-
case 3:
|
|
2529
|
-
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
2530
|
-
"CreateSubmissionResponse", ""]);
|
|
2531
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2532
|
-
case 4:
|
|
2533
|
-
_j = exception_1.ApiException.bind;
|
|
2534
|
-
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2535
|
-
return [4, response.getBodyAsAny()];
|
|
2536
|
-
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
2537
|
-
}
|
|
2538
|
-
});
|
|
2539
|
-
});
|
|
2540
|
-
};
|
|
2541
|
-
PDFApiResponseProcessor.prototype.generatePreviewWithHttpInfo = function (response) {
|
|
2464
|
+
ClientResponseProcessor.prototype.generatePreviewWithHttpInfo = function (response) {
|
|
2542
2465
|
return __awaiter(this, void 0, void 0, function () {
|
|
2543
2466
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2544
2467
|
return __generator(this, function (_u) {
|
|
@@ -2589,7 +2512,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2589
2512
|
});
|
|
2590
2513
|
});
|
|
2591
2514
|
};
|
|
2592
|
-
|
|
2515
|
+
ClientResponseProcessor.prototype.getCombinedSubmissionWithHttpInfo = function (response) {
|
|
2593
2516
|
return __awaiter(this, void 0, void 0, function () {
|
|
2594
2517
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2595
2518
|
return __generator(this, function (_u) {
|
|
@@ -2640,7 +2563,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2640
2563
|
});
|
|
2641
2564
|
});
|
|
2642
2565
|
};
|
|
2643
|
-
|
|
2566
|
+
ClientResponseProcessor.prototype.getDataRequestWithHttpInfo = function (response) {
|
|
2644
2567
|
return __awaiter(this, void 0, void 0, function () {
|
|
2645
2568
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2646
2569
|
return __generator(this, function (_u) {
|
|
@@ -2691,7 +2614,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2691
2614
|
});
|
|
2692
2615
|
});
|
|
2693
2616
|
};
|
|
2694
|
-
|
|
2617
|
+
ClientResponseProcessor.prototype.getFullTemplateWithHttpInfo = function (response) {
|
|
2695
2618
|
return __awaiter(this, void 0, void 0, function () {
|
|
2696
2619
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2697
2620
|
return __generator(this, function (_u) {
|
|
@@ -2742,7 +2665,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2742
2665
|
});
|
|
2743
2666
|
});
|
|
2744
2667
|
};
|
|
2745
|
-
|
|
2668
|
+
ClientResponseProcessor.prototype.getPresignUrlWithHttpInfo = function (response) {
|
|
2746
2669
|
return __awaiter(this, void 0, void 0, function () {
|
|
2747
2670
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2748
2671
|
return __generator(this, function (_q) {
|
|
@@ -2784,7 +2707,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2784
2707
|
});
|
|
2785
2708
|
});
|
|
2786
2709
|
};
|
|
2787
|
-
|
|
2710
|
+
ClientResponseProcessor.prototype.getSubmissionWithHttpInfo = function (response) {
|
|
2788
2711
|
return __awaiter(this, void 0, void 0, function () {
|
|
2789
2712
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2790
2713
|
return __generator(this, function (_u) {
|
|
@@ -2835,7 +2758,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2835
2758
|
});
|
|
2836
2759
|
});
|
|
2837
2760
|
};
|
|
2838
|
-
|
|
2761
|
+
ClientResponseProcessor.prototype.getSubmissionBatchWithHttpInfo = function (response) {
|
|
2839
2762
|
return __awaiter(this, void 0, void 0, function () {
|
|
2840
2763
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2841
2764
|
return __generator(this, function (_u) {
|
|
@@ -2886,7 +2809,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2886
2809
|
});
|
|
2887
2810
|
});
|
|
2888
2811
|
};
|
|
2889
|
-
|
|
2812
|
+
ClientResponseProcessor.prototype.getTemplateWithHttpInfo = function (response) {
|
|
2890
2813
|
return __awaiter(this, void 0, void 0, function () {
|
|
2891
2814
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2892
2815
|
return __generator(this, function (_u) {
|
|
@@ -2937,7 +2860,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2937
2860
|
});
|
|
2938
2861
|
});
|
|
2939
2862
|
};
|
|
2940
|
-
|
|
2863
|
+
ClientResponseProcessor.prototype.getTemplateSchemaWithHttpInfo = function (response) {
|
|
2941
2864
|
return __awaiter(this, void 0, void 0, function () {
|
|
2942
2865
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2943
2866
|
return __generator(this, function (_u) {
|
|
@@ -2988,7 +2911,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2988
2911
|
});
|
|
2989
2912
|
});
|
|
2990
2913
|
};
|
|
2991
|
-
|
|
2914
|
+
ClientResponseProcessor.prototype.listCombinedSubmissionsWithHttpInfo = function (response) {
|
|
2992
2915
|
return __awaiter(this, void 0, void 0, function () {
|
|
2993
2916
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2994
2917
|
return __generator(this, function (_q) {
|
|
@@ -3030,7 +2953,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3030
2953
|
});
|
|
3031
2954
|
});
|
|
3032
2955
|
};
|
|
3033
|
-
|
|
2956
|
+
ClientResponseProcessor.prototype.listFoldersWithHttpInfo = function (response) {
|
|
3034
2957
|
return __awaiter(this, void 0, void 0, function () {
|
|
3035
2958
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
3036
2959
|
return __generator(this, function (_q) {
|
|
@@ -3072,7 +2995,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3072
2995
|
});
|
|
3073
2996
|
});
|
|
3074
2997
|
};
|
|
3075
|
-
|
|
2998
|
+
ClientResponseProcessor.prototype.listSubmissionsWithHttpInfo = function (response) {
|
|
3076
2999
|
return __awaiter(this, void 0, void 0, function () {
|
|
3077
3000
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
3078
3001
|
return __generator(this, function (_u) {
|
|
@@ -3123,7 +3046,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3123
3046
|
});
|
|
3124
3047
|
});
|
|
3125
3048
|
};
|
|
3126
|
-
|
|
3049
|
+
ClientResponseProcessor.prototype.listTemplateSubmissionsWithHttpInfo = function (response) {
|
|
3127
3050
|
return __awaiter(this, void 0, void 0, function () {
|
|
3128
3051
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
3129
3052
|
return __generator(this, function (_q) {
|
|
@@ -3165,7 +3088,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3165
3088
|
});
|
|
3166
3089
|
});
|
|
3167
3090
|
};
|
|
3168
|
-
|
|
3091
|
+
ClientResponseProcessor.prototype.listTemplatesWithHttpInfo = function (response) {
|
|
3169
3092
|
return __awaiter(this, void 0, void 0, function () {
|
|
3170
3093
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
3171
3094
|
return __generator(this, function (_u) {
|
|
@@ -3216,7 +3139,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3216
3139
|
});
|
|
3217
3140
|
});
|
|
3218
3141
|
};
|
|
3219
|
-
|
|
3142
|
+
ClientResponseProcessor.prototype.moveFolderToFolderWithHttpInfo = function (response) {
|
|
3220
3143
|
return __awaiter(this, void 0, void 0, function () {
|
|
3221
3144
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
3222
3145
|
return __generator(this, function (_u) {
|
|
@@ -3267,7 +3190,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3267
3190
|
});
|
|
3268
3191
|
});
|
|
3269
3192
|
};
|
|
3270
|
-
|
|
3193
|
+
ClientResponseProcessor.prototype.moveTemplateToFolderWithHttpInfo = function (response) {
|
|
3271
3194
|
return __awaiter(this, void 0, void 0, function () {
|
|
3272
3195
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
3273
3196
|
return __generator(this, function (_q) {
|
|
@@ -3309,7 +3232,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3309
3232
|
});
|
|
3310
3233
|
});
|
|
3311
3234
|
};
|
|
3312
|
-
|
|
3235
|
+
ClientResponseProcessor.prototype.publishTemplateVersionWithHttpInfo = function (response) {
|
|
3313
3236
|
return __awaiter(this, void 0, void 0, function () {
|
|
3314
3237
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
3315
3238
|
return __generator(this, function (_y) {
|
|
@@ -3369,7 +3292,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3369
3292
|
});
|
|
3370
3293
|
});
|
|
3371
3294
|
};
|
|
3372
|
-
|
|
3295
|
+
ClientResponseProcessor.prototype.renameFolderWithHttpInfo = function (response) {
|
|
3373
3296
|
return __awaiter(this, void 0, void 0, function () {
|
|
3374
3297
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
3375
3298
|
return __generator(this, function (_y) {
|
|
@@ -3429,7 +3352,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3429
3352
|
});
|
|
3430
3353
|
});
|
|
3431
3354
|
};
|
|
3432
|
-
|
|
3355
|
+
ClientResponseProcessor.prototype.restoreTemplateVersionWithHttpInfo = function (response) {
|
|
3433
3356
|
return __awaiter(this, void 0, void 0, function () {
|
|
3434
3357
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
3435
3358
|
return __generator(this, function (_y) {
|
|
@@ -3489,7 +3412,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3489
3412
|
});
|
|
3490
3413
|
});
|
|
3491
3414
|
};
|
|
3492
|
-
|
|
3415
|
+
ClientResponseProcessor.prototype.testAuthenticationWithHttpInfo = function (response) {
|
|
3493
3416
|
return __awaiter(this, void 0, void 0, function () {
|
|
3494
3417
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
3495
3418
|
return __generator(this, function (_q) {
|
|
@@ -3531,7 +3454,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3531
3454
|
});
|
|
3532
3455
|
});
|
|
3533
3456
|
};
|
|
3534
|
-
|
|
3457
|
+
ClientResponseProcessor.prototype.updateDataRequestWithHttpInfo = function (response) {
|
|
3535
3458
|
return __awaiter(this, void 0, void 0, function () {
|
|
3536
3459
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
3537
3460
|
return __generator(this, function (_y) {
|
|
@@ -3591,7 +3514,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3591
3514
|
});
|
|
3592
3515
|
});
|
|
3593
3516
|
};
|
|
3594
|
-
|
|
3517
|
+
ClientResponseProcessor.prototype.updateTemplateWithHttpInfo = function (response) {
|
|
3595
3518
|
return __awaiter(this, void 0, void 0, function () {
|
|
3596
3519
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
3597
3520
|
return __generator(this, function (_l) {
|
|
@@ -3624,7 +3547,91 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3624
3547
|
});
|
|
3625
3548
|
});
|
|
3626
3549
|
};
|
|
3627
|
-
|
|
3550
|
+
ClientResponseProcessor.prototype.updateTemplateDocumentWithHttpInfo = function (response) {
|
|
3551
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3552
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
3553
|
+
return __generator(this, function (_q) {
|
|
3554
|
+
switch (_q.label) {
|
|
3555
|
+
case 0:
|
|
3556
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3557
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
3558
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3559
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3560
|
+
return [4, response.body.text()];
|
|
3561
|
+
case 1:
|
|
3562
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
3563
|
+
"SuccessMultipleErrorsResponse", ""]);
|
|
3564
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3565
|
+
case 2:
|
|
3566
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 4];
|
|
3567
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3568
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3569
|
+
return [4, response.body.text()];
|
|
3570
|
+
case 3:
|
|
3571
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
3572
|
+
"ErrorResponse", ""]);
|
|
3573
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
3574
|
+
case 4:
|
|
3575
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
3576
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3577
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3578
|
+
return [4, response.body.text()];
|
|
3579
|
+
case 5:
|
|
3580
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
3581
|
+
"SuccessMultipleErrorsResponse", ""]);
|
|
3582
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3583
|
+
case 6:
|
|
3584
|
+
_o = exception_1.ApiException.bind;
|
|
3585
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
3586
|
+
return [4, response.getBodyAsAny()];
|
|
3587
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
3588
|
+
}
|
|
3589
|
+
});
|
|
3590
|
+
});
|
|
3591
|
+
};
|
|
3592
|
+
ClientResponseProcessor.prototype.updateTemplateDocumentFromUploadWithHttpInfo = function (response) {
|
|
3593
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3594
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
3595
|
+
return __generator(this, function (_q) {
|
|
3596
|
+
switch (_q.label) {
|
|
3597
|
+
case 0:
|
|
3598
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3599
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
3600
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3601
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3602
|
+
return [4, response.body.text()];
|
|
3603
|
+
case 1:
|
|
3604
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
3605
|
+
"SuccessMultipleErrorsResponse", ""]);
|
|
3606
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3607
|
+
case 2:
|
|
3608
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 4];
|
|
3609
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3610
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3611
|
+
return [4, response.body.text()];
|
|
3612
|
+
case 3:
|
|
3613
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
3614
|
+
"ErrorResponse", ""]);
|
|
3615
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
3616
|
+
case 4:
|
|
3617
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
3618
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3619
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3620
|
+
return [4, response.body.text()];
|
|
3621
|
+
case 5:
|
|
3622
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
3623
|
+
"SuccessMultipleErrorsResponse", ""]);
|
|
3624
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3625
|
+
case 6:
|
|
3626
|
+
_o = exception_1.ApiException.bind;
|
|
3627
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
3628
|
+
return [4, response.getBodyAsAny()];
|
|
3629
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
3630
|
+
}
|
|
3631
|
+
});
|
|
3632
|
+
});
|
|
3633
|
+
};
|
|
3634
|
+
return ClientResponseProcessor;
|
|
3628
3635
|
}());
|
|
3629
|
-
exports.
|
|
3630
|
-
//# sourceMappingURL=
|
|
3636
|
+
exports.ClientResponseProcessor = ClientResponseProcessor;
|
|
3637
|
+
//# sourceMappingURL=Client.js.map
|