docspring-ts 2.0.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} +23 -16
- package/dist/apis/{PDFApi.js → Client.js} +810 -596
- 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 +4 -3
- package/dist/models/CreatePdfSubmissionData.js +9 -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 -10
- 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 +7 -2
- package/dist/models/ObjectSerializer.js +36 -9
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/{CombinedSubmissionData.d.ts → PublishVersionData.d.ts} +3 -6
- package/dist/models/PublishVersionData.js +29 -0
- package/dist/models/PublishVersionData.js.map +1 -0
- package/dist/models/RestoreVersionData.d.ts +20 -0
- package/dist/models/RestoreVersionData.js +23 -0
- package/dist/models/RestoreVersionData.js.map +1 -0
- package/dist/models/Submission.d.ts +19 -13
- package/dist/models/Submission.js +31 -14
- 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 +19 -13
- package/dist/models/SubmissionPreview.js +31 -14
- package/dist/models/SubmissionPreview.js.map +1 -1
- package/dist/models/Template.d.ts +47 -36
- package/dist/models/Template.js +84 -37
- 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 +27 -0
- package/dist/models/TemplateDeleteResponse.js +46 -0
- package/dist/models/TemplateDeleteResponse.js.map +1 -0
- package/dist/models/TemplatePreview.d.ts +40 -30
- package/dist/models/TemplatePreview.js +72 -31
- package/dist/models/TemplatePreview.js.map +1 -1
- package/dist/models/TemplatePublishVersionResponse.d.ts +26 -0
- package/dist/models/TemplatePublishVersionResponse.js +40 -0
- package/dist/models/TemplatePublishVersionResponse.js.map +1 -0
- package/dist/models/UpdatePdfTemplate.d.ts +20 -0
- 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 +7 -2
- package/dist/models/all.js +7 -2
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +143 -127
- package/dist/types/ObjectParamAPI.js +110 -98
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +89 -82
- package/dist/types/ObservableAPI.js +395 -300
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +93 -82
- package/dist/types/PromiseAPI.js +276 -158
- 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 -71
- 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,63 +539,66 @@ 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)));
|
|
610
569
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
611
570
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
571
|
+
if (version !== undefined) {
|
|
572
|
+
requestContext.setQueryParam("version", ObjectSerializer_1.ObjectSerializer.serialize(version, "string", ""));
|
|
573
|
+
}
|
|
612
574
|
authMethod = _config.authMethods["api_token_basic"];
|
|
613
575
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
614
576
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
615
577
|
case 1:
|
|
616
|
-
|
|
617
|
-
|
|
578
|
+
_b.sent();
|
|
579
|
+
_b.label = 2;
|
|
618
580
|
case 2:
|
|
619
|
-
defaultAuth = (
|
|
581
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
620
582
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
621
583
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
622
584
|
case 3:
|
|
623
|
-
|
|
624
|
-
|
|
585
|
+
_b.sent();
|
|
586
|
+
_b.label = 4;
|
|
625
587
|
case 4: return [2, requestContext];
|
|
626
588
|
}
|
|
627
589
|
});
|
|
628
590
|
});
|
|
629
591
|
};
|
|
630
|
-
|
|
631
|
-
var _a
|
|
592
|
+
ClientRequestFactory.prototype.expireCombinedSubmission = function (combinedSubmissionId, _options) {
|
|
593
|
+
var _a;
|
|
632
594
|
return __awaiter(this, void 0, void 0, function () {
|
|
633
595
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
634
|
-
return __generator(this, function (
|
|
635
|
-
switch (
|
|
596
|
+
return __generator(this, function (_b) {
|
|
597
|
+
switch (_b.label) {
|
|
636
598
|
case 0:
|
|
637
599
|
_config = _options || this.configuration;
|
|
638
600
|
if (combinedSubmissionId === null || combinedSubmissionId === undefined) {
|
|
639
|
-
throw new baseapi_1.RequiredError("
|
|
601
|
+
throw new baseapi_1.RequiredError("Client", "expireCombinedSubmission", "combinedSubmissionId");
|
|
640
602
|
}
|
|
641
603
|
localVarPath = '/combined_submissions/{combined_submission_id}'
|
|
642
604
|
.replace('{' + 'combined_submission_id' + '}', encodeURIComponent(String(combinedSubmissionId)));
|
|
@@ -646,30 +608,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
646
608
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
647
609
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
648
610
|
case 1:
|
|
649
|
-
|
|
650
|
-
|
|
611
|
+
_b.sent();
|
|
612
|
+
_b.label = 2;
|
|
651
613
|
case 2:
|
|
652
|
-
defaultAuth = (
|
|
614
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
653
615
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
654
616
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
655
617
|
case 3:
|
|
656
|
-
|
|
657
|
-
|
|
618
|
+
_b.sent();
|
|
619
|
+
_b.label = 4;
|
|
658
620
|
case 4: return [2, requestContext];
|
|
659
621
|
}
|
|
660
622
|
});
|
|
661
623
|
});
|
|
662
624
|
};
|
|
663
|
-
|
|
664
|
-
var _a
|
|
625
|
+
ClientRequestFactory.prototype.expireSubmission = function (submissionId, _options) {
|
|
626
|
+
var _a;
|
|
665
627
|
return __awaiter(this, void 0, void 0, function () {
|
|
666
628
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
667
|
-
return __generator(this, function (
|
|
668
|
-
switch (
|
|
629
|
+
return __generator(this, function (_b) {
|
|
630
|
+
switch (_b.label) {
|
|
669
631
|
case 0:
|
|
670
632
|
_config = _options || this.configuration;
|
|
671
633
|
if (submissionId === null || submissionId === undefined) {
|
|
672
|
-
throw new baseapi_1.RequiredError("
|
|
634
|
+
throw new baseapi_1.RequiredError("Client", "expireSubmission", "submissionId");
|
|
673
635
|
}
|
|
674
636
|
localVarPath = '/submissions/{submission_id}'
|
|
675
637
|
.replace('{' + 'submission_id' + '}', encodeURIComponent(String(submissionId)));
|
|
@@ -679,33 +641,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
679
641
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
680
642
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
681
643
|
case 1:
|
|
682
|
-
|
|
683
|
-
|
|
644
|
+
_b.sent();
|
|
645
|
+
_b.label = 2;
|
|
684
646
|
case 2:
|
|
685
|
-
defaultAuth = (
|
|
647
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
686
648
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
687
649
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
688
650
|
case 3:
|
|
689
|
-
|
|
690
|
-
|
|
651
|
+
_b.sent();
|
|
652
|
+
_b.label = 4;
|
|
691
653
|
case 4: return [2, requestContext];
|
|
692
654
|
}
|
|
693
655
|
});
|
|
694
656
|
});
|
|
695
657
|
};
|
|
696
|
-
|
|
697
|
-
var _a
|
|
658
|
+
ClientRequestFactory.prototype.generatePdf = function (templateId, submission, wait, _options) {
|
|
659
|
+
var _a;
|
|
698
660
|
return __awaiter(this, void 0, void 0, function () {
|
|
699
661
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
700
|
-
return __generator(this, function (
|
|
701
|
-
switch (
|
|
662
|
+
return __generator(this, function (_b) {
|
|
663
|
+
switch (_b.label) {
|
|
702
664
|
case 0:
|
|
703
665
|
_config = _options || this.configuration;
|
|
704
666
|
if (templateId === null || templateId === undefined) {
|
|
705
|
-
throw new baseapi_1.RequiredError("
|
|
667
|
+
throw new baseapi_1.RequiredError("Client", "generatePdf", "templateId");
|
|
706
668
|
}
|
|
707
669
|
if (submission === null || submission === undefined) {
|
|
708
|
-
throw new baseapi_1.RequiredError("
|
|
670
|
+
throw new baseapi_1.RequiredError("Client", "generatePdf", "submission");
|
|
709
671
|
}
|
|
710
672
|
localVarPath = '/templates/{template_id}/submissions'
|
|
711
673
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -724,75 +686,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
724
686
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
725
687
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
726
688
|
case 1:
|
|
727
|
-
|
|
728
|
-
|
|
689
|
+
_b.sent();
|
|
690
|
+
_b.label = 2;
|
|
729
691
|
case 2:
|
|
730
|
-
defaultAuth = (
|
|
692
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
731
693
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
732
694
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
733
695
|
case 3:
|
|
734
|
-
|
|
735
|
-
|
|
696
|
+
_b.sent();
|
|
697
|
+
_b.label = 4;
|
|
736
698
|
case 4: return [2, requestContext];
|
|
737
699
|
}
|
|
738
700
|
});
|
|
739
701
|
});
|
|
740
702
|
};
|
|
741
|
-
|
|
742
|
-
var _a
|
|
743
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
744
|
-
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
745
|
-
return __generator(this, function (_d) {
|
|
746
|
-
switch (_d.label) {
|
|
747
|
-
case 0:
|
|
748
|
-
_config = _options || this.configuration;
|
|
749
|
-
if (templateId === null || templateId === undefined) {
|
|
750
|
-
throw new baseapi_1.RequiredError("PDFApi", "generatePdfForHtmlTemplate", "templateId");
|
|
751
|
-
}
|
|
752
|
-
if (submission === null || submission === undefined) {
|
|
753
|
-
throw new baseapi_1.RequiredError("PDFApi", "generatePdfForHtmlTemplate", "submission");
|
|
754
|
-
}
|
|
755
|
-
localVarPath = '/templates/{template_id}/submissions?endpoint_description=html_templates'
|
|
756
|
-
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
757
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
758
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
759
|
-
if (wait !== undefined) {
|
|
760
|
-
requestContext.setQueryParam("wait", ObjectSerializer_1.ObjectSerializer.serialize(wait, "boolean", ""));
|
|
761
|
-
}
|
|
762
|
-
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
763
|
-
"application/json"
|
|
764
|
-
]);
|
|
765
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
766
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(submission, "CreateHtmlSubmissionData", ""), contentType);
|
|
767
|
-
requestContext.setBody(serializedBody);
|
|
768
|
-
authMethod = _config.authMethods["api_token_basic"];
|
|
769
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
770
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
771
|
-
case 1:
|
|
772
|
-
_d.sent();
|
|
773
|
-
_d.label = 2;
|
|
774
|
-
case 2:
|
|
775
|
-
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);
|
|
776
|
-
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
777
|
-
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
778
|
-
case 3:
|
|
779
|
-
_d.sent();
|
|
780
|
-
_d.label = 4;
|
|
781
|
-
case 4: return [2, requestContext];
|
|
782
|
-
}
|
|
783
|
-
});
|
|
784
|
-
});
|
|
785
|
-
};
|
|
786
|
-
PDFApiRequestFactory.prototype.generatePreview = function (submissionId, _options) {
|
|
787
|
-
var _a, _b, _c;
|
|
703
|
+
ClientRequestFactory.prototype.generatePreview = function (submissionId, _options) {
|
|
704
|
+
var _a;
|
|
788
705
|
return __awaiter(this, void 0, void 0, function () {
|
|
789
706
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
790
|
-
return __generator(this, function (
|
|
791
|
-
switch (
|
|
707
|
+
return __generator(this, function (_b) {
|
|
708
|
+
switch (_b.label) {
|
|
792
709
|
case 0:
|
|
793
710
|
_config = _options || this.configuration;
|
|
794
711
|
if (submissionId === null || submissionId === undefined) {
|
|
795
|
-
throw new baseapi_1.RequiredError("
|
|
712
|
+
throw new baseapi_1.RequiredError("Client", "generatePreview", "submissionId");
|
|
796
713
|
}
|
|
797
714
|
localVarPath = '/submissions/{submission_id}/generate_preview'
|
|
798
715
|
.replace('{' + 'submission_id' + '}', encodeURIComponent(String(submissionId)));
|
|
@@ -802,30 +719,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
802
719
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
803
720
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
804
721
|
case 1:
|
|
805
|
-
|
|
806
|
-
|
|
722
|
+
_b.sent();
|
|
723
|
+
_b.label = 2;
|
|
807
724
|
case 2:
|
|
808
|
-
defaultAuth = (
|
|
725
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
809
726
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
810
727
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
811
728
|
case 3:
|
|
812
|
-
|
|
813
|
-
|
|
729
|
+
_b.sent();
|
|
730
|
+
_b.label = 4;
|
|
814
731
|
case 4: return [2, requestContext];
|
|
815
732
|
}
|
|
816
733
|
});
|
|
817
734
|
});
|
|
818
735
|
};
|
|
819
|
-
|
|
820
|
-
var _a
|
|
736
|
+
ClientRequestFactory.prototype.getCombinedSubmission = function (combinedSubmissionId, _options) {
|
|
737
|
+
var _a;
|
|
821
738
|
return __awaiter(this, void 0, void 0, function () {
|
|
822
739
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
823
|
-
return __generator(this, function (
|
|
824
|
-
switch (
|
|
740
|
+
return __generator(this, function (_b) {
|
|
741
|
+
switch (_b.label) {
|
|
825
742
|
case 0:
|
|
826
743
|
_config = _options || this.configuration;
|
|
827
744
|
if (combinedSubmissionId === null || combinedSubmissionId === undefined) {
|
|
828
|
-
throw new baseapi_1.RequiredError("
|
|
745
|
+
throw new baseapi_1.RequiredError("Client", "getCombinedSubmission", "combinedSubmissionId");
|
|
829
746
|
}
|
|
830
747
|
localVarPath = '/combined_submissions/{combined_submission_id}'
|
|
831
748
|
.replace('{' + 'combined_submission_id' + '}', encodeURIComponent(String(combinedSubmissionId)));
|
|
@@ -835,30 +752,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
835
752
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
836
753
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
837
754
|
case 1:
|
|
838
|
-
|
|
839
|
-
|
|
755
|
+
_b.sent();
|
|
756
|
+
_b.label = 2;
|
|
840
757
|
case 2:
|
|
841
|
-
defaultAuth = (
|
|
758
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
842
759
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
843
760
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
844
761
|
case 3:
|
|
845
|
-
|
|
846
|
-
|
|
762
|
+
_b.sent();
|
|
763
|
+
_b.label = 4;
|
|
847
764
|
case 4: return [2, requestContext];
|
|
848
765
|
}
|
|
849
766
|
});
|
|
850
767
|
});
|
|
851
768
|
};
|
|
852
|
-
|
|
853
|
-
var _a
|
|
769
|
+
ClientRequestFactory.prototype.getDataRequest = function (dataRequestId, _options) {
|
|
770
|
+
var _a;
|
|
854
771
|
return __awaiter(this, void 0, void 0, function () {
|
|
855
772
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
856
|
-
return __generator(this, function (
|
|
857
|
-
switch (
|
|
773
|
+
return __generator(this, function (_b) {
|
|
774
|
+
switch (_b.label) {
|
|
858
775
|
case 0:
|
|
859
776
|
_config = _options || this.configuration;
|
|
860
777
|
if (dataRequestId === null || dataRequestId === undefined) {
|
|
861
|
-
throw new baseapi_1.RequiredError("
|
|
778
|
+
throw new baseapi_1.RequiredError("Client", "getDataRequest", "dataRequestId");
|
|
862
779
|
}
|
|
863
780
|
localVarPath = '/data_requests/{data_request_id}'
|
|
864
781
|
.replace('{' + 'data_request_id' + '}', encodeURIComponent(String(dataRequestId)));
|
|
@@ -868,30 +785,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
868
785
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
869
786
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
870
787
|
case 1:
|
|
871
|
-
|
|
872
|
-
|
|
788
|
+
_b.sent();
|
|
789
|
+
_b.label = 2;
|
|
873
790
|
case 2:
|
|
874
|
-
defaultAuth = (
|
|
791
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
875
792
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
876
793
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
877
794
|
case 3:
|
|
878
|
-
|
|
879
|
-
|
|
795
|
+
_b.sent();
|
|
796
|
+
_b.label = 4;
|
|
880
797
|
case 4: return [2, requestContext];
|
|
881
798
|
}
|
|
882
799
|
});
|
|
883
800
|
});
|
|
884
801
|
};
|
|
885
|
-
|
|
886
|
-
var _a
|
|
802
|
+
ClientRequestFactory.prototype.getFullTemplate = function (templateId, _options) {
|
|
803
|
+
var _a;
|
|
887
804
|
return __awaiter(this, void 0, void 0, function () {
|
|
888
805
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
889
|
-
return __generator(this, function (
|
|
890
|
-
switch (
|
|
806
|
+
return __generator(this, function (_b) {
|
|
807
|
+
switch (_b.label) {
|
|
891
808
|
case 0:
|
|
892
809
|
_config = _options || this.configuration;
|
|
893
810
|
if (templateId === null || templateId === undefined) {
|
|
894
|
-
throw new baseapi_1.RequiredError("
|
|
811
|
+
throw new baseapi_1.RequiredError("Client", "getFullTemplate", "templateId");
|
|
895
812
|
}
|
|
896
813
|
localVarPath = '/templates/{template_id}?full=true'
|
|
897
814
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -901,26 +818,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
901
818
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
902
819
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
903
820
|
case 1:
|
|
904
|
-
|
|
905
|
-
|
|
821
|
+
_b.sent();
|
|
822
|
+
_b.label = 2;
|
|
906
823
|
case 2:
|
|
907
|
-
defaultAuth = (
|
|
824
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
908
825
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
909
826
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
910
827
|
case 3:
|
|
911
|
-
|
|
912
|
-
|
|
828
|
+
_b.sent();
|
|
829
|
+
_b.label = 4;
|
|
913
830
|
case 4: return [2, requestContext];
|
|
914
831
|
}
|
|
915
832
|
});
|
|
916
833
|
});
|
|
917
834
|
};
|
|
918
|
-
|
|
919
|
-
var _a
|
|
835
|
+
ClientRequestFactory.prototype.getPresignUrl = function (_options) {
|
|
836
|
+
var _a;
|
|
920
837
|
return __awaiter(this, void 0, void 0, function () {
|
|
921
838
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
922
|
-
return __generator(this, function (
|
|
923
|
-
switch (
|
|
839
|
+
return __generator(this, function (_b) {
|
|
840
|
+
switch (_b.label) {
|
|
924
841
|
case 0:
|
|
925
842
|
_config = _options || this.configuration;
|
|
926
843
|
localVarPath = '/uploads/presign';
|
|
@@ -930,30 +847,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
930
847
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
931
848
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
932
849
|
case 1:
|
|
933
|
-
|
|
934
|
-
|
|
850
|
+
_b.sent();
|
|
851
|
+
_b.label = 2;
|
|
935
852
|
case 2:
|
|
936
|
-
defaultAuth = (
|
|
853
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
937
854
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
938
855
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
939
856
|
case 3:
|
|
940
|
-
|
|
941
|
-
|
|
857
|
+
_b.sent();
|
|
858
|
+
_b.label = 4;
|
|
942
859
|
case 4: return [2, requestContext];
|
|
943
860
|
}
|
|
944
861
|
});
|
|
945
862
|
});
|
|
946
863
|
};
|
|
947
|
-
|
|
948
|
-
var _a
|
|
864
|
+
ClientRequestFactory.prototype.getSubmission = function (submissionId, includeData, _options) {
|
|
865
|
+
var _a;
|
|
949
866
|
return __awaiter(this, void 0, void 0, function () {
|
|
950
867
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
951
|
-
return __generator(this, function (
|
|
952
|
-
switch (
|
|
868
|
+
return __generator(this, function (_b) {
|
|
869
|
+
switch (_b.label) {
|
|
953
870
|
case 0:
|
|
954
871
|
_config = _options || this.configuration;
|
|
955
872
|
if (submissionId === null || submissionId === undefined) {
|
|
956
|
-
throw new baseapi_1.RequiredError("
|
|
873
|
+
throw new baseapi_1.RequiredError("Client", "getSubmission", "submissionId");
|
|
957
874
|
}
|
|
958
875
|
localVarPath = '/submissions/{submission_id}'
|
|
959
876
|
.replace('{' + 'submission_id' + '}', encodeURIComponent(String(submissionId)));
|
|
@@ -966,30 +883,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
966
883
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
967
884
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
968
885
|
case 1:
|
|
969
|
-
|
|
970
|
-
|
|
886
|
+
_b.sent();
|
|
887
|
+
_b.label = 2;
|
|
971
888
|
case 2:
|
|
972
|
-
defaultAuth = (
|
|
889
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
973
890
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
974
891
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
975
892
|
case 3:
|
|
976
|
-
|
|
977
|
-
|
|
893
|
+
_b.sent();
|
|
894
|
+
_b.label = 4;
|
|
978
895
|
case 4: return [2, requestContext];
|
|
979
896
|
}
|
|
980
897
|
});
|
|
981
898
|
});
|
|
982
899
|
};
|
|
983
|
-
|
|
984
|
-
var _a
|
|
900
|
+
ClientRequestFactory.prototype.getSubmissionBatch = function (submissionBatchId, includeSubmissions, _options) {
|
|
901
|
+
var _a;
|
|
985
902
|
return __awaiter(this, void 0, void 0, function () {
|
|
986
903
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
987
|
-
return __generator(this, function (
|
|
988
|
-
switch (
|
|
904
|
+
return __generator(this, function (_b) {
|
|
905
|
+
switch (_b.label) {
|
|
989
906
|
case 0:
|
|
990
907
|
_config = _options || this.configuration;
|
|
991
908
|
if (submissionBatchId === null || submissionBatchId === undefined) {
|
|
992
|
-
throw new baseapi_1.RequiredError("
|
|
909
|
+
throw new baseapi_1.RequiredError("Client", "getSubmissionBatch", "submissionBatchId");
|
|
993
910
|
}
|
|
994
911
|
localVarPath = '/submissions/batches/{submission_batch_id}'
|
|
995
912
|
.replace('{' + 'submission_batch_id' + '}', encodeURIComponent(String(submissionBatchId)));
|
|
@@ -1002,30 +919,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1002
919
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1003
920
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1004
921
|
case 1:
|
|
1005
|
-
|
|
1006
|
-
|
|
922
|
+
_b.sent();
|
|
923
|
+
_b.label = 2;
|
|
1007
924
|
case 2:
|
|
1008
|
-
defaultAuth = (
|
|
925
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1009
926
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1010
927
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1011
928
|
case 3:
|
|
1012
|
-
|
|
1013
|
-
|
|
929
|
+
_b.sent();
|
|
930
|
+
_b.label = 4;
|
|
1014
931
|
case 4: return [2, requestContext];
|
|
1015
932
|
}
|
|
1016
933
|
});
|
|
1017
934
|
});
|
|
1018
935
|
};
|
|
1019
|
-
|
|
1020
|
-
var _a
|
|
936
|
+
ClientRequestFactory.prototype.getTemplate = function (templateId, _options) {
|
|
937
|
+
var _a;
|
|
1021
938
|
return __awaiter(this, void 0, void 0, function () {
|
|
1022
939
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1023
|
-
return __generator(this, function (
|
|
1024
|
-
switch (
|
|
940
|
+
return __generator(this, function (_b) {
|
|
941
|
+
switch (_b.label) {
|
|
1025
942
|
case 0:
|
|
1026
943
|
_config = _options || this.configuration;
|
|
1027
944
|
if (templateId === null || templateId === undefined) {
|
|
1028
|
-
throw new baseapi_1.RequiredError("
|
|
945
|
+
throw new baseapi_1.RequiredError("Client", "getTemplate", "templateId");
|
|
1029
946
|
}
|
|
1030
947
|
localVarPath = '/templates/{template_id}'
|
|
1031
948
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1035,30 +952,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1035
952
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1036
953
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1037
954
|
case 1:
|
|
1038
|
-
|
|
1039
|
-
|
|
955
|
+
_b.sent();
|
|
956
|
+
_b.label = 2;
|
|
1040
957
|
case 2:
|
|
1041
|
-
defaultAuth = (
|
|
958
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1042
959
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1043
960
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1044
961
|
case 3:
|
|
1045
|
-
|
|
1046
|
-
|
|
962
|
+
_b.sent();
|
|
963
|
+
_b.label = 4;
|
|
1047
964
|
case 4: return [2, requestContext];
|
|
1048
965
|
}
|
|
1049
966
|
});
|
|
1050
967
|
});
|
|
1051
968
|
};
|
|
1052
|
-
|
|
1053
|
-
var _a
|
|
969
|
+
ClientRequestFactory.prototype.getTemplateSchema = function (templateId, _options) {
|
|
970
|
+
var _a;
|
|
1054
971
|
return __awaiter(this, void 0, void 0, function () {
|
|
1055
972
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1056
|
-
return __generator(this, function (
|
|
1057
|
-
switch (
|
|
973
|
+
return __generator(this, function (_b) {
|
|
974
|
+
switch (_b.label) {
|
|
1058
975
|
case 0:
|
|
1059
976
|
_config = _options || this.configuration;
|
|
1060
977
|
if (templateId === null || templateId === undefined) {
|
|
1061
|
-
throw new baseapi_1.RequiredError("
|
|
978
|
+
throw new baseapi_1.RequiredError("Client", "getTemplateSchema", "templateId");
|
|
1062
979
|
}
|
|
1063
980
|
localVarPath = '/templates/{template_id}/schema'
|
|
1064
981
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1068,26 +985,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1068
985
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1069
986
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1070
987
|
case 1:
|
|
1071
|
-
|
|
1072
|
-
|
|
988
|
+
_b.sent();
|
|
989
|
+
_b.label = 2;
|
|
1073
990
|
case 2:
|
|
1074
|
-
defaultAuth = (
|
|
991
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1075
992
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1076
993
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1077
994
|
case 3:
|
|
1078
|
-
|
|
1079
|
-
|
|
995
|
+
_b.sent();
|
|
996
|
+
_b.label = 4;
|
|
1080
997
|
case 4: return [2, requestContext];
|
|
1081
998
|
}
|
|
1082
999
|
});
|
|
1083
1000
|
});
|
|
1084
1001
|
};
|
|
1085
|
-
|
|
1086
|
-
var _a
|
|
1002
|
+
ClientRequestFactory.prototype.listCombinedSubmissions = function (page, perPage, _options) {
|
|
1003
|
+
var _a;
|
|
1087
1004
|
return __awaiter(this, void 0, void 0, function () {
|
|
1088
1005
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1089
|
-
return __generator(this, function (
|
|
1090
|
-
switch (
|
|
1006
|
+
return __generator(this, function (_b) {
|
|
1007
|
+
switch (_b.label) {
|
|
1091
1008
|
case 0:
|
|
1092
1009
|
_config = _options || this.configuration;
|
|
1093
1010
|
localVarPath = '/combined_submissions';
|
|
@@ -1103,26 +1020,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1103
1020
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1104
1021
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1105
1022
|
case 1:
|
|
1106
|
-
|
|
1107
|
-
|
|
1023
|
+
_b.sent();
|
|
1024
|
+
_b.label = 2;
|
|
1108
1025
|
case 2:
|
|
1109
|
-
defaultAuth = (
|
|
1026
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1110
1027
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1111
1028
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1112
1029
|
case 3:
|
|
1113
|
-
|
|
1114
|
-
|
|
1030
|
+
_b.sent();
|
|
1031
|
+
_b.label = 4;
|
|
1115
1032
|
case 4: return [2, requestContext];
|
|
1116
1033
|
}
|
|
1117
1034
|
});
|
|
1118
1035
|
});
|
|
1119
1036
|
};
|
|
1120
|
-
|
|
1121
|
-
var _a
|
|
1037
|
+
ClientRequestFactory.prototype.listFolders = function (parentFolderId, _options) {
|
|
1038
|
+
var _a;
|
|
1122
1039
|
return __awaiter(this, void 0, void 0, function () {
|
|
1123
1040
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1124
|
-
return __generator(this, function (
|
|
1125
|
-
switch (
|
|
1041
|
+
return __generator(this, function (_b) {
|
|
1042
|
+
switch (_b.label) {
|
|
1126
1043
|
case 0:
|
|
1127
1044
|
_config = _options || this.configuration;
|
|
1128
1045
|
localVarPath = '/folders/';
|
|
@@ -1135,26 +1052,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1135
1052
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1136
1053
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1137
1054
|
case 1:
|
|
1138
|
-
|
|
1139
|
-
|
|
1055
|
+
_b.sent();
|
|
1056
|
+
_b.label = 2;
|
|
1140
1057
|
case 2:
|
|
1141
|
-
defaultAuth = (
|
|
1058
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1142
1059
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1143
1060
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1144
1061
|
case 3:
|
|
1145
|
-
|
|
1146
|
-
|
|
1062
|
+
_b.sent();
|
|
1063
|
+
_b.label = 4;
|
|
1147
1064
|
case 4: return [2, requestContext];
|
|
1148
1065
|
}
|
|
1149
1066
|
});
|
|
1150
1067
|
});
|
|
1151
1068
|
};
|
|
1152
|
-
|
|
1153
|
-
var _a
|
|
1069
|
+
ClientRequestFactory.prototype.listSubmissions = function (cursor, limit, createdAfter, createdBefore, type, includeData, _options) {
|
|
1070
|
+
var _a;
|
|
1154
1071
|
return __awaiter(this, void 0, void 0, function () {
|
|
1155
1072
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1156
|
-
return __generator(this, function (
|
|
1157
|
-
switch (
|
|
1073
|
+
return __generator(this, function (_b) {
|
|
1074
|
+
switch (_b.label) {
|
|
1158
1075
|
case 0:
|
|
1159
1076
|
_config = _options || this.configuration;
|
|
1160
1077
|
localVarPath = '/submissions';
|
|
@@ -1182,30 +1099,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1182
1099
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1183
1100
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1184
1101
|
case 1:
|
|
1185
|
-
|
|
1186
|
-
|
|
1102
|
+
_b.sent();
|
|
1103
|
+
_b.label = 2;
|
|
1187
1104
|
case 2:
|
|
1188
|
-
defaultAuth = (
|
|
1105
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1189
1106
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1190
1107
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1191
1108
|
case 3:
|
|
1192
|
-
|
|
1193
|
-
|
|
1109
|
+
_b.sent();
|
|
1110
|
+
_b.label = 4;
|
|
1194
1111
|
case 4: return [2, requestContext];
|
|
1195
1112
|
}
|
|
1196
1113
|
});
|
|
1197
1114
|
});
|
|
1198
1115
|
};
|
|
1199
|
-
|
|
1200
|
-
var _a
|
|
1116
|
+
ClientRequestFactory.prototype.listTemplateSubmissions = function (templateId, cursor, limit, createdAfter, createdBefore, type, includeData, _options) {
|
|
1117
|
+
var _a;
|
|
1201
1118
|
return __awaiter(this, void 0, void 0, function () {
|
|
1202
1119
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1203
|
-
return __generator(this, function (
|
|
1204
|
-
switch (
|
|
1120
|
+
return __generator(this, function (_b) {
|
|
1121
|
+
switch (_b.label) {
|
|
1205
1122
|
case 0:
|
|
1206
1123
|
_config = _options || this.configuration;
|
|
1207
1124
|
if (templateId === null || templateId === undefined) {
|
|
1208
|
-
throw new baseapi_1.RequiredError("
|
|
1125
|
+
throw new baseapi_1.RequiredError("Client", "listTemplateSubmissions", "templateId");
|
|
1209
1126
|
}
|
|
1210
1127
|
localVarPath = '/templates/{template_id}/submissions'
|
|
1211
1128
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1233,26 +1150,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1233
1150
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1234
1151
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1235
1152
|
case 1:
|
|
1236
|
-
|
|
1237
|
-
|
|
1153
|
+
_b.sent();
|
|
1154
|
+
_b.label = 2;
|
|
1238
1155
|
case 2:
|
|
1239
|
-
defaultAuth = (
|
|
1156
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1240
1157
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1241
1158
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1242
1159
|
case 3:
|
|
1243
|
-
|
|
1244
|
-
|
|
1160
|
+
_b.sent();
|
|
1161
|
+
_b.label = 4;
|
|
1245
1162
|
case 4: return [2, requestContext];
|
|
1246
1163
|
}
|
|
1247
1164
|
});
|
|
1248
1165
|
});
|
|
1249
1166
|
};
|
|
1250
|
-
|
|
1251
|
-
var _a
|
|
1167
|
+
ClientRequestFactory.prototype.listTemplates = function (query, parentFolderId, page, perPage, _options) {
|
|
1168
|
+
var _a;
|
|
1252
1169
|
return __awaiter(this, void 0, void 0, function () {
|
|
1253
1170
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1254
|
-
return __generator(this, function (
|
|
1255
|
-
switch (
|
|
1171
|
+
return __generator(this, function (_b) {
|
|
1172
|
+
switch (_b.label) {
|
|
1256
1173
|
case 0:
|
|
1257
1174
|
_config = _options || this.configuration;
|
|
1258
1175
|
localVarPath = '/templates';
|
|
@@ -1274,33 +1191,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1274
1191
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1275
1192
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1276
1193
|
case 1:
|
|
1277
|
-
|
|
1278
|
-
|
|
1194
|
+
_b.sent();
|
|
1195
|
+
_b.label = 2;
|
|
1279
1196
|
case 2:
|
|
1280
|
-
defaultAuth = (
|
|
1197
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1281
1198
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1282
1199
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1283
1200
|
case 3:
|
|
1284
|
-
|
|
1285
|
-
|
|
1201
|
+
_b.sent();
|
|
1202
|
+
_b.label = 4;
|
|
1286
1203
|
case 4: return [2, requestContext];
|
|
1287
1204
|
}
|
|
1288
1205
|
});
|
|
1289
1206
|
});
|
|
1290
1207
|
};
|
|
1291
|
-
|
|
1292
|
-
var _a
|
|
1208
|
+
ClientRequestFactory.prototype.moveFolderToFolder = function (folderId, data, _options) {
|
|
1209
|
+
var _a;
|
|
1293
1210
|
return __awaiter(this, void 0, void 0, function () {
|
|
1294
1211
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1295
|
-
return __generator(this, function (
|
|
1296
|
-
switch (
|
|
1212
|
+
return __generator(this, function (_b) {
|
|
1213
|
+
switch (_b.label) {
|
|
1297
1214
|
case 0:
|
|
1298
1215
|
_config = _options || this.configuration;
|
|
1299
1216
|
if (folderId === null || folderId === undefined) {
|
|
1300
|
-
throw new baseapi_1.RequiredError("
|
|
1217
|
+
throw new baseapi_1.RequiredError("Client", "moveFolderToFolder", "folderId");
|
|
1301
1218
|
}
|
|
1302
1219
|
if (data === null || data === undefined) {
|
|
1303
|
-
throw new baseapi_1.RequiredError("
|
|
1220
|
+
throw new baseapi_1.RequiredError("Client", "moveFolderToFolder", "data");
|
|
1304
1221
|
}
|
|
1305
1222
|
localVarPath = '/folders/{folder_id}/move'
|
|
1306
1223
|
.replace('{' + 'folder_id' + '}', encodeURIComponent(String(folderId)));
|
|
@@ -1316,33 +1233,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1316
1233
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1317
1234
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1318
1235
|
case 1:
|
|
1319
|
-
|
|
1320
|
-
|
|
1236
|
+
_b.sent();
|
|
1237
|
+
_b.label = 2;
|
|
1321
1238
|
case 2:
|
|
1322
|
-
defaultAuth = (
|
|
1239
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1323
1240
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1324
1241
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1325
1242
|
case 3:
|
|
1326
|
-
|
|
1327
|
-
|
|
1243
|
+
_b.sent();
|
|
1244
|
+
_b.label = 4;
|
|
1328
1245
|
case 4: return [2, requestContext];
|
|
1329
1246
|
}
|
|
1330
1247
|
});
|
|
1331
1248
|
});
|
|
1332
1249
|
};
|
|
1333
|
-
|
|
1334
|
-
var _a
|
|
1250
|
+
ClientRequestFactory.prototype.moveTemplateToFolder = function (templateId, data, _options) {
|
|
1251
|
+
var _a;
|
|
1335
1252
|
return __awaiter(this, void 0, void 0, function () {
|
|
1336
1253
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1337
|
-
return __generator(this, function (
|
|
1338
|
-
switch (
|
|
1254
|
+
return __generator(this, function (_b) {
|
|
1255
|
+
switch (_b.label) {
|
|
1339
1256
|
case 0:
|
|
1340
1257
|
_config = _options || this.configuration;
|
|
1341
1258
|
if (templateId === null || templateId === undefined) {
|
|
1342
|
-
throw new baseapi_1.RequiredError("
|
|
1259
|
+
throw new baseapi_1.RequiredError("Client", "moveTemplateToFolder", "templateId");
|
|
1343
1260
|
}
|
|
1344
1261
|
if (data === null || data === undefined) {
|
|
1345
|
-
throw new baseapi_1.RequiredError("
|
|
1262
|
+
throw new baseapi_1.RequiredError("Client", "moveTemplateToFolder", "data");
|
|
1346
1263
|
}
|
|
1347
1264
|
localVarPath = '/templates/{template_id}/move'
|
|
1348
1265
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1358,33 +1275,75 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1358
1275
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1359
1276
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1360
1277
|
case 1:
|
|
1361
|
-
|
|
1362
|
-
|
|
1278
|
+
_b.sent();
|
|
1279
|
+
_b.label = 2;
|
|
1280
|
+
case 2:
|
|
1281
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1282
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1283
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1284
|
+
case 3:
|
|
1285
|
+
_b.sent();
|
|
1286
|
+
_b.label = 4;
|
|
1287
|
+
case 4: return [2, requestContext];
|
|
1288
|
+
}
|
|
1289
|
+
});
|
|
1290
|
+
});
|
|
1291
|
+
};
|
|
1292
|
+
ClientRequestFactory.prototype.publishTemplateVersion = function (templateId, data, _options) {
|
|
1293
|
+
var _a;
|
|
1294
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1295
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1296
|
+
return __generator(this, function (_b) {
|
|
1297
|
+
switch (_b.label) {
|
|
1298
|
+
case 0:
|
|
1299
|
+
_config = _options || this.configuration;
|
|
1300
|
+
if (templateId === null || templateId === undefined) {
|
|
1301
|
+
throw new baseapi_1.RequiredError("Client", "publishTemplateVersion", "templateId");
|
|
1302
|
+
}
|
|
1303
|
+
if (data === null || data === undefined) {
|
|
1304
|
+
throw new baseapi_1.RequiredError("Client", "publishTemplateVersion", "data");
|
|
1305
|
+
}
|
|
1306
|
+
localVarPath = '/templates/{template_id}/publish_version'
|
|
1307
|
+
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
1308
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
1309
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1310
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1311
|
+
"application/json"
|
|
1312
|
+
]);
|
|
1313
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1314
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(data, "PublishVersionData", ""), contentType);
|
|
1315
|
+
requestContext.setBody(serializedBody);
|
|
1316
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
1317
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1318
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1319
|
+
case 1:
|
|
1320
|
+
_b.sent();
|
|
1321
|
+
_b.label = 2;
|
|
1363
1322
|
case 2:
|
|
1364
|
-
defaultAuth = (
|
|
1323
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1365
1324
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1366
1325
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1367
1326
|
case 3:
|
|
1368
|
-
|
|
1369
|
-
|
|
1327
|
+
_b.sent();
|
|
1328
|
+
_b.label = 4;
|
|
1370
1329
|
case 4: return [2, requestContext];
|
|
1371
1330
|
}
|
|
1372
1331
|
});
|
|
1373
1332
|
});
|
|
1374
1333
|
};
|
|
1375
|
-
|
|
1376
|
-
var _a
|
|
1334
|
+
ClientRequestFactory.prototype.renameFolder = function (folderId, data, _options) {
|
|
1335
|
+
var _a;
|
|
1377
1336
|
return __awaiter(this, void 0, void 0, function () {
|
|
1378
1337
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1379
|
-
return __generator(this, function (
|
|
1380
|
-
switch (
|
|
1338
|
+
return __generator(this, function (_b) {
|
|
1339
|
+
switch (_b.label) {
|
|
1381
1340
|
case 0:
|
|
1382
1341
|
_config = _options || this.configuration;
|
|
1383
1342
|
if (folderId === null || folderId === undefined) {
|
|
1384
|
-
throw new baseapi_1.RequiredError("
|
|
1343
|
+
throw new baseapi_1.RequiredError("Client", "renameFolder", "folderId");
|
|
1385
1344
|
}
|
|
1386
1345
|
if (data === null || data === undefined) {
|
|
1387
|
-
throw new baseapi_1.RequiredError("
|
|
1346
|
+
throw new baseapi_1.RequiredError("Client", "renameFolder", "data");
|
|
1388
1347
|
}
|
|
1389
1348
|
localVarPath = '/folders/{folder_id}/rename'
|
|
1390
1349
|
.replace('{' + 'folder_id' + '}', encodeURIComponent(String(folderId)));
|
|
@@ -1400,26 +1359,68 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1400
1359
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1401
1360
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1402
1361
|
case 1:
|
|
1403
|
-
|
|
1404
|
-
|
|
1362
|
+
_b.sent();
|
|
1363
|
+
_b.label = 2;
|
|
1405
1364
|
case 2:
|
|
1406
|
-
defaultAuth = (
|
|
1365
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1407
1366
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1408
1367
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1409
1368
|
case 3:
|
|
1410
|
-
|
|
1411
|
-
|
|
1369
|
+
_b.sent();
|
|
1370
|
+
_b.label = 4;
|
|
1412
1371
|
case 4: return [2, requestContext];
|
|
1413
1372
|
}
|
|
1414
1373
|
});
|
|
1415
1374
|
});
|
|
1416
1375
|
};
|
|
1417
|
-
|
|
1418
|
-
var _a
|
|
1376
|
+
ClientRequestFactory.prototype.restoreTemplateVersion = function (templateId, data, _options) {
|
|
1377
|
+
var _a;
|
|
1378
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1379
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1380
|
+
return __generator(this, function (_b) {
|
|
1381
|
+
switch (_b.label) {
|
|
1382
|
+
case 0:
|
|
1383
|
+
_config = _options || this.configuration;
|
|
1384
|
+
if (templateId === null || templateId === undefined) {
|
|
1385
|
+
throw new baseapi_1.RequiredError("Client", "restoreTemplateVersion", "templateId");
|
|
1386
|
+
}
|
|
1387
|
+
if (data === null || data === undefined) {
|
|
1388
|
+
throw new baseapi_1.RequiredError("Client", "restoreTemplateVersion", "data");
|
|
1389
|
+
}
|
|
1390
|
+
localVarPath = '/templates/{template_id}/restore_version'
|
|
1391
|
+
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
1392
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
1393
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1394
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1395
|
+
"application/json"
|
|
1396
|
+
]);
|
|
1397
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1398
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(data, "RestoreVersionData", ""), contentType);
|
|
1399
|
+
requestContext.setBody(serializedBody);
|
|
1400
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
1401
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1402
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1403
|
+
case 1:
|
|
1404
|
+
_b.sent();
|
|
1405
|
+
_b.label = 2;
|
|
1406
|
+
case 2:
|
|
1407
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1408
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1409
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1410
|
+
case 3:
|
|
1411
|
+
_b.sent();
|
|
1412
|
+
_b.label = 4;
|
|
1413
|
+
case 4: return [2, requestContext];
|
|
1414
|
+
}
|
|
1415
|
+
});
|
|
1416
|
+
});
|
|
1417
|
+
};
|
|
1418
|
+
ClientRequestFactory.prototype.testAuthentication = function (_options) {
|
|
1419
|
+
var _a;
|
|
1419
1420
|
return __awaiter(this, void 0, void 0, function () {
|
|
1420
1421
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1421
|
-
return __generator(this, function (
|
|
1422
|
-
switch (
|
|
1422
|
+
return __generator(this, function (_b) {
|
|
1423
|
+
switch (_b.label) {
|
|
1423
1424
|
case 0:
|
|
1424
1425
|
_config = _options || this.configuration;
|
|
1425
1426
|
localVarPath = '/authentication';
|
|
@@ -1429,33 +1430,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1429
1430
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1430
1431
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1431
1432
|
case 1:
|
|
1432
|
-
|
|
1433
|
-
|
|
1433
|
+
_b.sent();
|
|
1434
|
+
_b.label = 2;
|
|
1434
1435
|
case 2:
|
|
1435
|
-
defaultAuth = (
|
|
1436
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1436
1437
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1437
1438
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1438
1439
|
case 3:
|
|
1439
|
-
|
|
1440
|
-
|
|
1440
|
+
_b.sent();
|
|
1441
|
+
_b.label = 4;
|
|
1441
1442
|
case 4: return [2, requestContext];
|
|
1442
1443
|
}
|
|
1443
1444
|
});
|
|
1444
1445
|
});
|
|
1445
1446
|
};
|
|
1446
|
-
|
|
1447
|
-
var _a
|
|
1447
|
+
ClientRequestFactory.prototype.updateDataRequest = function (dataRequestId, data, _options) {
|
|
1448
|
+
var _a;
|
|
1448
1449
|
return __awaiter(this, void 0, void 0, function () {
|
|
1449
1450
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1450
|
-
return __generator(this, function (
|
|
1451
|
-
switch (
|
|
1451
|
+
return __generator(this, function (_b) {
|
|
1452
|
+
switch (_b.label) {
|
|
1452
1453
|
case 0:
|
|
1453
1454
|
_config = _options || this.configuration;
|
|
1454
1455
|
if (dataRequestId === null || dataRequestId === undefined) {
|
|
1455
|
-
throw new baseapi_1.RequiredError("
|
|
1456
|
+
throw new baseapi_1.RequiredError("Client", "updateDataRequest", "dataRequestId");
|
|
1456
1457
|
}
|
|
1457
1458
|
if (data === null || data === undefined) {
|
|
1458
|
-
throw new baseapi_1.RequiredError("
|
|
1459
|
+
throw new baseapi_1.RequiredError("Client", "updateDataRequest", "data");
|
|
1459
1460
|
}
|
|
1460
1461
|
localVarPath = '/data_requests/{data_request_id}'
|
|
1461
1462
|
.replace('{' + 'data_request_id' + '}', encodeURIComponent(String(dataRequestId)));
|
|
@@ -1471,33 +1472,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1471
1472
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1472
1473
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1473
1474
|
case 1:
|
|
1474
|
-
|
|
1475
|
-
|
|
1475
|
+
_b.sent();
|
|
1476
|
+
_b.label = 2;
|
|
1476
1477
|
case 2:
|
|
1477
|
-
defaultAuth = (
|
|
1478
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1478
1479
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1479
1480
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1480
1481
|
case 3:
|
|
1481
|
-
|
|
1482
|
-
|
|
1482
|
+
_b.sent();
|
|
1483
|
+
_b.label = 4;
|
|
1483
1484
|
case 4: return [2, requestContext];
|
|
1484
1485
|
}
|
|
1485
1486
|
});
|
|
1486
1487
|
});
|
|
1487
1488
|
};
|
|
1488
|
-
|
|
1489
|
-
var _a
|
|
1489
|
+
ClientRequestFactory.prototype.updateTemplate = function (templateId, data, _options) {
|
|
1490
|
+
var _a;
|
|
1490
1491
|
return __awaiter(this, void 0, void 0, function () {
|
|
1491
1492
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1492
|
-
return __generator(this, function (
|
|
1493
|
-
switch (
|
|
1493
|
+
return __generator(this, function (_b) {
|
|
1494
|
+
switch (_b.label) {
|
|
1494
1495
|
case 0:
|
|
1495
1496
|
_config = _options || this.configuration;
|
|
1496
1497
|
if (templateId === null || templateId === undefined) {
|
|
1497
|
-
throw new baseapi_1.RequiredError("
|
|
1498
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplate", "templateId");
|
|
1498
1499
|
}
|
|
1499
1500
|
if (data === null || data === undefined) {
|
|
1500
|
-
throw new baseapi_1.RequiredError("
|
|
1501
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplate", "data");
|
|
1501
1502
|
}
|
|
1502
1503
|
localVarPath = '/templates/{template_id}'
|
|
1503
1504
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1513,27 +1514,129 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1513
1514
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1514
1515
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1515
1516
|
case 1:
|
|
1516
|
-
|
|
1517
|
-
|
|
1517
|
+
_b.sent();
|
|
1518
|
+
_b.label = 2;
|
|
1518
1519
|
case 2:
|
|
1519
|
-
defaultAuth = (
|
|
1520
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1520
1521
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1521
1522
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1522
1523
|
case 3:
|
|
1523
|
-
|
|
1524
|
-
|
|
1524
|
+
_b.sent();
|
|
1525
|
+
_b.label = 4;
|
|
1525
1526
|
case 4: return [2, requestContext];
|
|
1526
1527
|
}
|
|
1527
1528
|
});
|
|
1528
1529
|
});
|
|
1529
1530
|
};
|
|
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;
|
|
1621
|
+
case 2:
|
|
1622
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1623
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1624
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1625
|
+
case 3:
|
|
1626
|
+
_b.sent();
|
|
1627
|
+
_b.label = 4;
|
|
1628
|
+
case 4: return [2, requestContext];
|
|
1629
|
+
}
|
|
1630
|
+
});
|
|
1631
|
+
});
|
|
1632
|
+
};
|
|
1633
|
+
return ClientRequestFactory;
|
|
1531
1634
|
}(baseapi_1.BaseAPIRequestFactory));
|
|
1532
|
-
exports.
|
|
1533
|
-
var
|
|
1534
|
-
function
|
|
1635
|
+
exports.ClientRequestFactory = ClientRequestFactory;
|
|
1636
|
+
var ClientResponseProcessor = (function () {
|
|
1637
|
+
function ClientResponseProcessor() {
|
|
1535
1638
|
}
|
|
1536
|
-
|
|
1639
|
+
ClientResponseProcessor.prototype.addFieldsToTemplateWithHttpInfo = function (response) {
|
|
1537
1640
|
return __awaiter(this, void 0, void 0, function () {
|
|
1538
1641
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1539
1642
|
return __generator(this, function (_q) {
|
|
@@ -1575,7 +1678,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1575
1678
|
});
|
|
1576
1679
|
});
|
|
1577
1680
|
};
|
|
1578
|
-
|
|
1681
|
+
ClientResponseProcessor.prototype.batchGeneratePdfsWithHttpInfo = function (response) {
|
|
1579
1682
|
return __awaiter(this, void 0, void 0, function () {
|
|
1580
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;
|
|
1581
1684
|
return __generator(this, function (_2) {
|
|
@@ -1615,7 +1718,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1615
1718
|
return [4, response.body.text()];
|
|
1616
1719
|
case 7:
|
|
1617
1720
|
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1618
|
-
"
|
|
1721
|
+
"ErrorOrMultipleErrorsResponse", ""]);
|
|
1619
1722
|
throw new exception_1.ApiException(response.httpStatusCode, "array of arrays", body, response.headers);
|
|
1620
1723
|
case 8:
|
|
1621
1724
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 10];
|
|
@@ -1644,7 +1747,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1644
1747
|
});
|
|
1645
1748
|
});
|
|
1646
1749
|
};
|
|
1647
|
-
|
|
1750
|
+
ClientResponseProcessor.prototype.combinePdfsWithHttpInfo = function (response) {
|
|
1648
1751
|
return __awaiter(this, void 0, void 0, function () {
|
|
1649
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;
|
|
1650
1753
|
return __generator(this, function (_y) {
|
|
@@ -1704,67 +1807,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1704
1807
|
});
|
|
1705
1808
|
});
|
|
1706
1809
|
};
|
|
1707
|
-
|
|
1708
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1709
|
-
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;
|
|
1710
|
-
return __generator(this, function (_y) {
|
|
1711
|
-
switch (_y.label) {
|
|
1712
|
-
case 0:
|
|
1713
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1714
|
-
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
1715
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1716
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1717
|
-
return [4, response.body.text()];
|
|
1718
|
-
case 1:
|
|
1719
|
-
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
1720
|
-
"CreateCombinedSubmissionResponse", ""]);
|
|
1721
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1722
|
-
case 2:
|
|
1723
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
1724
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1725
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1726
|
-
return [4, response.body.text()];
|
|
1727
|
-
case 3:
|
|
1728
|
-
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
1729
|
-
"MultipleErrorsResponse", ""]);
|
|
1730
|
-
throw new exception_1.ApiException(response.httpStatusCode, "invalid request", body, response.headers);
|
|
1731
|
-
case 4:
|
|
1732
|
-
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 6];
|
|
1733
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1734
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1735
|
-
return [4, response.body.text()];
|
|
1736
|
-
case 5:
|
|
1737
|
-
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
1738
|
-
"ErrorResponse", ""]);
|
|
1739
|
-
throw new exception_1.ApiException(response.httpStatusCode, "invalid JSON", body, response.headers);
|
|
1740
|
-
case 6:
|
|
1741
|
-
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 8];
|
|
1742
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1743
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1744
|
-
return [4, response.body.text()];
|
|
1745
|
-
case 7:
|
|
1746
|
-
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
1747
|
-
"ErrorResponse", ""]);
|
|
1748
|
-
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
1749
|
-
case 8:
|
|
1750
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
1751
|
-
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1752
|
-
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1753
|
-
return [4, response.body.text()];
|
|
1754
|
-
case 9:
|
|
1755
|
-
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
1756
|
-
"CreateCombinedSubmissionResponse", ""]);
|
|
1757
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1758
|
-
case 10:
|
|
1759
|
-
_w = exception_1.ApiException.bind;
|
|
1760
|
-
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1761
|
-
return [4, response.getBodyAsAny()];
|
|
1762
|
-
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
1763
|
-
}
|
|
1764
|
-
});
|
|
1765
|
-
});
|
|
1766
|
-
};
|
|
1767
|
-
PDFApiResponseProcessor.prototype.copyTemplateWithHttpInfo = function (response) {
|
|
1810
|
+
ClientResponseProcessor.prototype.copyTemplateWithHttpInfo = function (response) {
|
|
1768
1811
|
return __awaiter(this, void 0, void 0, function () {
|
|
1769
1812
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1770
1813
|
return __generator(this, function (_q) {
|
|
@@ -1806,7 +1849,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1806
1849
|
});
|
|
1807
1850
|
});
|
|
1808
1851
|
};
|
|
1809
|
-
|
|
1852
|
+
ClientResponseProcessor.prototype.createCustomFileFromUploadWithHttpInfo = function (response) {
|
|
1810
1853
|
return __awaiter(this, void 0, void 0, function () {
|
|
1811
1854
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1812
1855
|
return __generator(this, function (_q) {
|
|
@@ -1848,7 +1891,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1848
1891
|
});
|
|
1849
1892
|
});
|
|
1850
1893
|
};
|
|
1851
|
-
|
|
1894
|
+
ClientResponseProcessor.prototype.createDataRequestEventWithHttpInfo = function (response) {
|
|
1852
1895
|
return __awaiter(this, void 0, void 0, function () {
|
|
1853
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;
|
|
1854
1897
|
return __generator(this, function (_u) {
|
|
@@ -1899,7 +1942,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1899
1942
|
});
|
|
1900
1943
|
});
|
|
1901
1944
|
};
|
|
1902
|
-
|
|
1945
|
+
ClientResponseProcessor.prototype.createDataRequestTokenWithHttpInfo = function (response) {
|
|
1903
1946
|
return __awaiter(this, void 0, void 0, function () {
|
|
1904
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;
|
|
1905
1948
|
return __generator(this, function (_u) {
|
|
@@ -1950,7 +1993,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1950
1993
|
});
|
|
1951
1994
|
});
|
|
1952
1995
|
};
|
|
1953
|
-
|
|
1996
|
+
ClientResponseProcessor.prototype.createFolderWithHttpInfo = function (response) {
|
|
1954
1997
|
return __awaiter(this, void 0, void 0, function () {
|
|
1955
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;
|
|
1956
1999
|
return __generator(this, function (_y) {
|
|
@@ -2010,7 +2053,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2010
2053
|
});
|
|
2011
2054
|
});
|
|
2012
2055
|
};
|
|
2013
|
-
|
|
2056
|
+
ClientResponseProcessor.prototype.createHtmlTemplateWithHttpInfo = function (response) {
|
|
2014
2057
|
return __awaiter(this, void 0, void 0, function () {
|
|
2015
2058
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2016
2059
|
return __generator(this, function (_q) {
|
|
@@ -2052,7 +2095,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2052
2095
|
});
|
|
2053
2096
|
});
|
|
2054
2097
|
};
|
|
2055
|
-
|
|
2098
|
+
ClientResponseProcessor.prototype.createPdfTemplateWithHttpInfo = function (response) {
|
|
2056
2099
|
return __awaiter(this, void 0, void 0, function () {
|
|
2057
2100
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2058
2101
|
return __generator(this, function (_q) {
|
|
@@ -2094,7 +2137,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2094
2137
|
});
|
|
2095
2138
|
});
|
|
2096
2139
|
};
|
|
2097
|
-
|
|
2140
|
+
ClientResponseProcessor.prototype.createPdfTemplateFromUploadWithHttpInfo = function (response) {
|
|
2098
2141
|
return __awaiter(this, void 0, void 0, function () {
|
|
2099
2142
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2100
2143
|
return __generator(this, function (_q) {
|
|
@@ -2136,7 +2179,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2136
2179
|
});
|
|
2137
2180
|
});
|
|
2138
2181
|
};
|
|
2139
|
-
|
|
2182
|
+
ClientResponseProcessor.prototype.deleteFolderWithHttpInfo = function (response) {
|
|
2140
2183
|
return __awaiter(this, void 0, void 0, function () {
|
|
2141
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;
|
|
2142
2185
|
return __generator(this, function (_y) {
|
|
@@ -2196,7 +2239,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2196
2239
|
});
|
|
2197
2240
|
});
|
|
2198
2241
|
};
|
|
2199
|
-
|
|
2242
|
+
ClientResponseProcessor.prototype.deleteTemplateWithHttpInfo = function (response) {
|
|
2200
2243
|
return __awaiter(this, void 0, void 0, function () {
|
|
2201
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;
|
|
2202
2245
|
return __generator(this, function (_u) {
|
|
@@ -2209,7 +2252,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2209
2252
|
return [4, response.body.text()];
|
|
2210
2253
|
case 1:
|
|
2211
2254
|
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2212
|
-
"
|
|
2255
|
+
"TemplateDeleteResponse", ""]);
|
|
2213
2256
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2214
2257
|
case 2:
|
|
2215
2258
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
|
|
@@ -2236,7 +2279,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2236
2279
|
return [4, response.body.text()];
|
|
2237
2280
|
case 7:
|
|
2238
2281
|
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2239
|
-
"
|
|
2282
|
+
"TemplateDeleteResponse", ""]);
|
|
2240
2283
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2241
2284
|
case 8:
|
|
2242
2285
|
_s = exception_1.ApiException.bind;
|
|
@@ -2247,7 +2290,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2247
2290
|
});
|
|
2248
2291
|
});
|
|
2249
2292
|
};
|
|
2250
|
-
|
|
2293
|
+
ClientResponseProcessor.prototype.expireCombinedSubmissionWithHttpInfo = function (response) {
|
|
2251
2294
|
return __awaiter(this, void 0, void 0, function () {
|
|
2252
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;
|
|
2253
2296
|
return __generator(this, function (_y) {
|
|
@@ -2307,7 +2350,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2307
2350
|
});
|
|
2308
2351
|
});
|
|
2309
2352
|
};
|
|
2310
|
-
|
|
2353
|
+
ClientResponseProcessor.prototype.expireSubmissionWithHttpInfo = function (response) {
|
|
2311
2354
|
return __awaiter(this, void 0, void 0, function () {
|
|
2312
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;
|
|
2313
2356
|
return __generator(this, function (_y) {
|
|
@@ -2367,7 +2410,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2367
2410
|
});
|
|
2368
2411
|
});
|
|
2369
2412
|
};
|
|
2370
|
-
|
|
2413
|
+
ClientResponseProcessor.prototype.generatePdfWithHttpInfo = function (response) {
|
|
2371
2414
|
return __awaiter(this, void 0, void 0, function () {
|
|
2372
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;
|
|
2373
2416
|
return __generator(this, function (_u) {
|
|
@@ -2389,7 +2432,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2389
2432
|
return [4, response.body.text()];
|
|
2390
2433
|
case 3:
|
|
2391
2434
|
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2392
|
-
"
|
|
2435
|
+
"Submission422Response", ""]);
|
|
2393
2436
|
throw new exception_1.ApiException(response.httpStatusCode, "invalid request", body, response.headers);
|
|
2394
2437
|
case 4:
|
|
2395
2438
|
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 6];
|
|
@@ -2418,40 +2461,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2418
2461
|
});
|
|
2419
2462
|
});
|
|
2420
2463
|
};
|
|
2421
|
-
|
|
2422
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2423
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
2424
|
-
return __generator(this, function (_l) {
|
|
2425
|
-
switch (_l.label) {
|
|
2426
|
-
case 0:
|
|
2427
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2428
|
-
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
2429
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2430
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2431
|
-
return [4, response.body.text()];
|
|
2432
|
-
case 1:
|
|
2433
|
-
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2434
|
-
"CreateSubmissionResponse", ""]);
|
|
2435
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2436
|
-
case 2:
|
|
2437
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
2438
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2439
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2440
|
-
return [4, response.body.text()];
|
|
2441
|
-
case 3:
|
|
2442
|
-
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
2443
|
-
"CreateSubmissionResponse", ""]);
|
|
2444
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2445
|
-
case 4:
|
|
2446
|
-
_j = exception_1.ApiException.bind;
|
|
2447
|
-
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2448
|
-
return [4, response.getBodyAsAny()];
|
|
2449
|
-
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
2450
|
-
}
|
|
2451
|
-
});
|
|
2452
|
-
});
|
|
2453
|
-
};
|
|
2454
|
-
PDFApiResponseProcessor.prototype.generatePreviewWithHttpInfo = function (response) {
|
|
2464
|
+
ClientResponseProcessor.prototype.generatePreviewWithHttpInfo = function (response) {
|
|
2455
2465
|
return __awaiter(this, void 0, void 0, function () {
|
|
2456
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;
|
|
2457
2467
|
return __generator(this, function (_u) {
|
|
@@ -2502,7 +2512,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2502
2512
|
});
|
|
2503
2513
|
});
|
|
2504
2514
|
};
|
|
2505
|
-
|
|
2515
|
+
ClientResponseProcessor.prototype.getCombinedSubmissionWithHttpInfo = function (response) {
|
|
2506
2516
|
return __awaiter(this, void 0, void 0, function () {
|
|
2507
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;
|
|
2508
2518
|
return __generator(this, function (_u) {
|
|
@@ -2553,7 +2563,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2553
2563
|
});
|
|
2554
2564
|
});
|
|
2555
2565
|
};
|
|
2556
|
-
|
|
2566
|
+
ClientResponseProcessor.prototype.getDataRequestWithHttpInfo = function (response) {
|
|
2557
2567
|
return __awaiter(this, void 0, void 0, function () {
|
|
2558
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;
|
|
2559
2569
|
return __generator(this, function (_u) {
|
|
@@ -2604,7 +2614,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2604
2614
|
});
|
|
2605
2615
|
});
|
|
2606
2616
|
};
|
|
2607
|
-
|
|
2617
|
+
ClientResponseProcessor.prototype.getFullTemplateWithHttpInfo = function (response) {
|
|
2608
2618
|
return __awaiter(this, void 0, void 0, function () {
|
|
2609
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;
|
|
2610
2620
|
return __generator(this, function (_u) {
|
|
@@ -2655,7 +2665,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2655
2665
|
});
|
|
2656
2666
|
});
|
|
2657
2667
|
};
|
|
2658
|
-
|
|
2668
|
+
ClientResponseProcessor.prototype.getPresignUrlWithHttpInfo = function (response) {
|
|
2659
2669
|
return __awaiter(this, void 0, void 0, function () {
|
|
2660
2670
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2661
2671
|
return __generator(this, function (_q) {
|
|
@@ -2697,7 +2707,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2697
2707
|
});
|
|
2698
2708
|
});
|
|
2699
2709
|
};
|
|
2700
|
-
|
|
2710
|
+
ClientResponseProcessor.prototype.getSubmissionWithHttpInfo = function (response) {
|
|
2701
2711
|
return __awaiter(this, void 0, void 0, function () {
|
|
2702
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;
|
|
2703
2713
|
return __generator(this, function (_u) {
|
|
@@ -2748,7 +2758,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2748
2758
|
});
|
|
2749
2759
|
});
|
|
2750
2760
|
};
|
|
2751
|
-
|
|
2761
|
+
ClientResponseProcessor.prototype.getSubmissionBatchWithHttpInfo = function (response) {
|
|
2752
2762
|
return __awaiter(this, void 0, void 0, function () {
|
|
2753
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;
|
|
2754
2764
|
return __generator(this, function (_u) {
|
|
@@ -2799,7 +2809,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2799
2809
|
});
|
|
2800
2810
|
});
|
|
2801
2811
|
};
|
|
2802
|
-
|
|
2812
|
+
ClientResponseProcessor.prototype.getTemplateWithHttpInfo = function (response) {
|
|
2803
2813
|
return __awaiter(this, void 0, void 0, function () {
|
|
2804
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;
|
|
2805
2815
|
return __generator(this, function (_u) {
|
|
@@ -2850,7 +2860,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2850
2860
|
});
|
|
2851
2861
|
});
|
|
2852
2862
|
};
|
|
2853
|
-
|
|
2863
|
+
ClientResponseProcessor.prototype.getTemplateSchemaWithHttpInfo = function (response) {
|
|
2854
2864
|
return __awaiter(this, void 0, void 0, function () {
|
|
2855
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;
|
|
2856
2866
|
return __generator(this, function (_u) {
|
|
@@ -2901,7 +2911,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2901
2911
|
});
|
|
2902
2912
|
});
|
|
2903
2913
|
};
|
|
2904
|
-
|
|
2914
|
+
ClientResponseProcessor.prototype.listCombinedSubmissionsWithHttpInfo = function (response) {
|
|
2905
2915
|
return __awaiter(this, void 0, void 0, function () {
|
|
2906
2916
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2907
2917
|
return __generator(this, function (_q) {
|
|
@@ -2943,7 +2953,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2943
2953
|
});
|
|
2944
2954
|
});
|
|
2945
2955
|
};
|
|
2946
|
-
|
|
2956
|
+
ClientResponseProcessor.prototype.listFoldersWithHttpInfo = function (response) {
|
|
2947
2957
|
return __awaiter(this, void 0, void 0, function () {
|
|
2948
2958
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2949
2959
|
return __generator(this, function (_q) {
|
|
@@ -2985,7 +2995,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2985
2995
|
});
|
|
2986
2996
|
});
|
|
2987
2997
|
};
|
|
2988
|
-
|
|
2998
|
+
ClientResponseProcessor.prototype.listSubmissionsWithHttpInfo = function (response) {
|
|
2989
2999
|
return __awaiter(this, void 0, void 0, function () {
|
|
2990
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;
|
|
2991
3001
|
return __generator(this, function (_u) {
|
|
@@ -3036,7 +3046,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3036
3046
|
});
|
|
3037
3047
|
});
|
|
3038
3048
|
};
|
|
3039
|
-
|
|
3049
|
+
ClientResponseProcessor.prototype.listTemplateSubmissionsWithHttpInfo = function (response) {
|
|
3040
3050
|
return __awaiter(this, void 0, void 0, function () {
|
|
3041
3051
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
3042
3052
|
return __generator(this, function (_q) {
|
|
@@ -3078,7 +3088,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3078
3088
|
});
|
|
3079
3089
|
});
|
|
3080
3090
|
};
|
|
3081
|
-
|
|
3091
|
+
ClientResponseProcessor.prototype.listTemplatesWithHttpInfo = function (response) {
|
|
3082
3092
|
return __awaiter(this, void 0, void 0, function () {
|
|
3083
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;
|
|
3084
3094
|
return __generator(this, function (_u) {
|
|
@@ -3129,7 +3139,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3129
3139
|
});
|
|
3130
3140
|
});
|
|
3131
3141
|
};
|
|
3132
|
-
|
|
3142
|
+
ClientResponseProcessor.prototype.moveFolderToFolderWithHttpInfo = function (response) {
|
|
3133
3143
|
return __awaiter(this, void 0, void 0, function () {
|
|
3134
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;
|
|
3135
3145
|
return __generator(this, function (_u) {
|
|
@@ -3180,7 +3190,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3180
3190
|
});
|
|
3181
3191
|
});
|
|
3182
3192
|
};
|
|
3183
|
-
|
|
3193
|
+
ClientResponseProcessor.prototype.moveTemplateToFolderWithHttpInfo = function (response) {
|
|
3184
3194
|
return __awaiter(this, void 0, void 0, function () {
|
|
3185
3195
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
3186
3196
|
return __generator(this, function (_q) {
|
|
@@ -3222,7 +3232,67 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3222
3232
|
});
|
|
3223
3233
|
});
|
|
3224
3234
|
};
|
|
3225
|
-
|
|
3235
|
+
ClientResponseProcessor.prototype.publishTemplateVersionWithHttpInfo = function (response) {
|
|
3236
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
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;
|
|
3238
|
+
return __generator(this, function (_y) {
|
|
3239
|
+
switch (_y.label) {
|
|
3240
|
+
case 0:
|
|
3241
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3242
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
3243
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3244
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3245
|
+
return [4, response.body.text()];
|
|
3246
|
+
case 1:
|
|
3247
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
3248
|
+
"TemplatePublishVersionResponse", ""]);
|
|
3249
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3250
|
+
case 2:
|
|
3251
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
3252
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3253
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3254
|
+
return [4, response.body.text()];
|
|
3255
|
+
case 3:
|
|
3256
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
3257
|
+
"SuccessMultipleErrorsResponse", ""]);
|
|
3258
|
+
throw new exception_1.ApiException(response.httpStatusCode, "invalid version type", body, response.headers);
|
|
3259
|
+
case 4:
|
|
3260
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
3261
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3262
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3263
|
+
return [4, response.body.text()];
|
|
3264
|
+
case 5:
|
|
3265
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
3266
|
+
"ErrorResponse", ""]);
|
|
3267
|
+
throw new exception_1.ApiException(response.httpStatusCode, "template not found", body, response.headers);
|
|
3268
|
+
case 6:
|
|
3269
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 8];
|
|
3270
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3271
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3272
|
+
return [4, response.body.text()];
|
|
3273
|
+
case 7:
|
|
3274
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
3275
|
+
"ErrorResponse", ""]);
|
|
3276
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
3277
|
+
case 8:
|
|
3278
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
3279
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3280
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3281
|
+
return [4, response.body.text()];
|
|
3282
|
+
case 9:
|
|
3283
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
3284
|
+
"TemplatePublishVersionResponse", ""]);
|
|
3285
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3286
|
+
case 10:
|
|
3287
|
+
_w = exception_1.ApiException.bind;
|
|
3288
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
3289
|
+
return [4, response.getBodyAsAny()];
|
|
3290
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
3291
|
+
}
|
|
3292
|
+
});
|
|
3293
|
+
});
|
|
3294
|
+
};
|
|
3295
|
+
ClientResponseProcessor.prototype.renameFolderWithHttpInfo = function (response) {
|
|
3226
3296
|
return __awaiter(this, void 0, void 0, function () {
|
|
3227
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;
|
|
3228
3298
|
return __generator(this, function (_y) {
|
|
@@ -3282,7 +3352,67 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3282
3352
|
});
|
|
3283
3353
|
});
|
|
3284
3354
|
};
|
|
3285
|
-
|
|
3355
|
+
ClientResponseProcessor.prototype.restoreTemplateVersionWithHttpInfo = function (response) {
|
|
3356
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
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;
|
|
3358
|
+
return __generator(this, function (_y) {
|
|
3359
|
+
switch (_y.label) {
|
|
3360
|
+
case 0:
|
|
3361
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3362
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
3363
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3364
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3365
|
+
return [4, response.body.text()];
|
|
3366
|
+
case 1:
|
|
3367
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
3368
|
+
"SuccessErrorResponse", ""]);
|
|
3369
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3370
|
+
case 2:
|
|
3371
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
3372
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3373
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3374
|
+
return [4, response.body.text()];
|
|
3375
|
+
case 3:
|
|
3376
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
3377
|
+
"SuccessMultipleErrorsResponse", ""]);
|
|
3378
|
+
throw new exception_1.ApiException(response.httpStatusCode, "draft version not allowed", body, response.headers);
|
|
3379
|
+
case 4:
|
|
3380
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
3381
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3382
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3383
|
+
return [4, response.body.text()];
|
|
3384
|
+
case 5:
|
|
3385
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
3386
|
+
"SuccessMultipleErrorsResponse", ""]);
|
|
3387
|
+
throw new exception_1.ApiException(response.httpStatusCode, "template version not found", body, response.headers);
|
|
3388
|
+
case 6:
|
|
3389
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 8];
|
|
3390
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3391
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3392
|
+
return [4, response.body.text()];
|
|
3393
|
+
case 7:
|
|
3394
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
3395
|
+
"ErrorResponse", ""]);
|
|
3396
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
3397
|
+
case 8:
|
|
3398
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
3399
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3400
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3401
|
+
return [4, response.body.text()];
|
|
3402
|
+
case 9:
|
|
3403
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
3404
|
+
"SuccessErrorResponse", ""]);
|
|
3405
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3406
|
+
case 10:
|
|
3407
|
+
_w = exception_1.ApiException.bind;
|
|
3408
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
3409
|
+
return [4, response.getBodyAsAny()];
|
|
3410
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
3411
|
+
}
|
|
3412
|
+
});
|
|
3413
|
+
});
|
|
3414
|
+
};
|
|
3415
|
+
ClientResponseProcessor.prototype.testAuthenticationWithHttpInfo = function (response) {
|
|
3286
3416
|
return __awaiter(this, void 0, void 0, function () {
|
|
3287
3417
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
3288
3418
|
return __generator(this, function (_q) {
|
|
@@ -3324,7 +3454,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3324
3454
|
});
|
|
3325
3455
|
});
|
|
3326
3456
|
};
|
|
3327
|
-
|
|
3457
|
+
ClientResponseProcessor.prototype.updateDataRequestWithHttpInfo = function (response) {
|
|
3328
3458
|
return __awaiter(this, void 0, void 0, function () {
|
|
3329
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;
|
|
3330
3460
|
return __generator(this, function (_y) {
|
|
@@ -3384,7 +3514,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3384
3514
|
});
|
|
3385
3515
|
});
|
|
3386
3516
|
};
|
|
3387
|
-
|
|
3517
|
+
ClientResponseProcessor.prototype.updateTemplateWithHttpInfo = function (response) {
|
|
3388
3518
|
return __awaiter(this, void 0, void 0, function () {
|
|
3389
3519
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
3390
3520
|
return __generator(this, function (_l) {
|
|
@@ -3417,7 +3547,91 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3417
3547
|
});
|
|
3418
3548
|
});
|
|
3419
3549
|
};
|
|
3420
|
-
|
|
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;
|
|
3421
3635
|
}());
|
|
3422
|
-
exports.
|
|
3423
|
-
//# sourceMappingURL=
|
|
3636
|
+
exports.ClientResponseProcessor = ClientResponseProcessor;
|
|
3637
|
+
//# sourceMappingURL=Client.js.map
|