docspring-ts 2.1.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/apis/{PDFApi.d.ts → Client.d.ts} +29 -14
- package/dist/apis/{PDFApi.js → Client.js} +1282 -716
- 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 +5 -4
- package/dist/models/CombinedSubmissionAction.js +10 -4
- package/dist/models/CombinedSubmissionAction.js.map +1 -1
- package/dist/models/CopyTemplateOptions.d.ts +2 -1
- package/dist/models/CopyTemplateOptions.js +7 -1
- package/dist/models/CopyTemplateOptions.js.map +1 -1
- package/dist/models/CreateCombinedSubmissionResponse.d.ts +1 -1
- package/dist/models/CreateCombinedSubmissionResponse.js +1 -1
- package/dist/models/CreateCombinedSubmissionResponse.js.map +1 -1
- package/dist/models/CreateCustomFileData.d.ts +1 -1
- package/dist/models/CreateCustomFileData.js +1 -1
- package/dist/models/CreateCustomFileData.js.map +1 -1
- package/dist/models/CreateCustomFileResponse.d.ts +1 -1
- package/dist/models/CreateCustomFileResponse.js +1 -1
- package/dist/models/CreateCustomFileResponse.js.map +1 -1
- package/dist/models/CreatePdfSubmissionData.d.ts +3 -3
- package/dist/models/CreatePdfSubmissionData.js +3 -3
- package/dist/models/CreatePdfSubmissionData.js.map +1 -1
- package/dist/models/CreateSubmissionDataRequestData.d.ts +12 -3
- package/dist/models/CreateSubmissionDataRequestData.js +57 -3
- package/dist/models/CreateSubmissionDataRequestData.js.map +1 -1
- package/dist/models/CreateSubmissionDataRequestEventRequest.d.ts +4 -2
- package/dist/models/CreateSubmissionDataRequestEventRequest.js +14 -2
- package/dist/models/CreateSubmissionDataRequestEventRequest.js.map +1 -1
- package/dist/models/CreateSubmissionDataRequestResponse.d.ts +1 -1
- package/dist/models/CreateSubmissionDataRequestResponse.js +1 -1
- package/dist/models/CreateSubmissionDataRequestResponse.js.map +1 -1
- package/dist/models/{CombinedSubmissionData.d.ts → CreateWebhookData.d.ts} +2 -6
- package/dist/models/CreateWebhookData.js +23 -0
- package/dist/models/CreateWebhookData.js.map +1 -0
- package/dist/models/{CreateHtmlSubmissionData.d.ts → ErrorOrMultipleErrorsResponse.d.ts} +7 -11
- package/dist/models/ErrorOrMultipleErrorsResponse.js +39 -0
- package/dist/models/ErrorOrMultipleErrorsResponse.js.map +1 -0
- package/dist/models/Folder.d.ts +1 -1
- package/dist/models/Folder.js +1 -1
- package/dist/models/Folder.js.map +1 -1
- package/dist/models/JsonSchema.d.ts +3 -0
- package/dist/models/JsonSchema.js +18 -0
- package/dist/models/JsonSchema.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 +2 -1
- package/dist/models/MoveTemplateData.js +7 -1
- package/dist/models/MoveTemplateData.js.map +1 -1
- package/dist/models/ObjectSerializer.d.ts +7 -2
- package/dist/models/ObjectSerializer.js +32 -9
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/PublishVersionData.d.ts +1 -1
- package/dist/models/PublishVersionData.js +1 -1
- package/dist/models/PublishVersionData.js.map +1 -1
- package/dist/models/Submission.d.ts +21 -19
- package/dist/models/Submission.js +22 -15
- package/dist/models/Submission.js.map +1 -1
- package/dist/models/Submission422Response.d.ts +27 -0
- package/dist/models/Submission422Response.js +45 -0
- package/dist/models/Submission422Response.js.map +1 -0
- package/dist/models/SubmissionAction.d.ts +5 -4
- package/dist/models/SubmissionAction.js +10 -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 +16 -14
- package/dist/models/SubmissionDataRequest.js +20 -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 +17 -15
- package/dist/models/SubmissionDataRequestShow.js +21 -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 +18 -16
- package/dist/models/SubmissionPreview.js +22 -15
- package/dist/models/SubmissionPreview.js.map +1 -1
- package/dist/models/Template.d.ts +53 -43
- package/dist/models/Template.js +96 -41
- package/dist/models/Template.js.map +1 -1
- package/dist/models/TemplateAddFieldsResponse.d.ts +1 -1
- package/dist/models/TemplateAddFieldsResponse.js +1 -1
- package/dist/models/TemplateAddFieldsResponse.js.map +1 -1
- package/dist/models/TemplateDeleteResponse.d.ts +1 -1
- package/dist/models/TemplateDeleteResponse.js +1 -1
- package/dist/models/TemplateDeleteResponse.js.map +1 -1
- package/dist/models/TemplateModelCodeResponse.d.ts +33 -0
- package/dist/models/TemplateModelCodeResponse.js +47 -0
- package/dist/models/TemplateModelCodeResponse.js.map +1 -0
- package/dist/models/TemplatePreview.d.ts +45 -37
- package/dist/models/TemplatePreview.js +78 -35
- package/dist/models/TemplatePreview.js.map +1 -1
- 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/UpdateWebhookData.d.ts +20 -0
- package/dist/models/UpdateWebhookData.js +23 -0
- package/dist/models/UpdateWebhookData.js.map +1 -0
- package/dist/models/Webhook.d.ts +45 -0
- package/dist/models/Webhook.js +142 -0
- package/dist/models/Webhook.js.map +1 -0
- 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 +174 -133
- package/dist/types/ObjectParamAPI.js +138 -100
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +101 -86
- package/dist/types/ObservableAPI.js +509 -300
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +107 -86
- package/dist/types/PromiseAPI.js +350 -166
- package/dist/types/PromiseAPI.js.map +1 -1
- package/package.json +3 -3
- package/dist/apis/PDFApi.js.map +0 -1
- package/dist/models/CombinedSubmissionData.js +0 -47
- package/dist/models/CombinedSubmissionData.js.map +0 -1
- package/dist/models/CreateHtmlSubmissionData.js +0 -77
- package/dist/models/CreateHtmlSubmissionData.js.map +0 -1
|
@@ -51,30 +51,30 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.
|
|
54
|
+
exports.ClientResponseProcessor = exports.ClientRequestFactory = void 0;
|
|
55
55
|
var baseapi_1 = require("./baseapi");
|
|
56
56
|
var http_1 = require("../http/http");
|
|
57
57
|
var ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
58
58
|
var exception_1 = require("./exception");
|
|
59
59
|
var util_1 = require("../util");
|
|
60
|
-
var
|
|
61
|
-
__extends(
|
|
62
|
-
function
|
|
60
|
+
var ClientRequestFactory = (function (_super) {
|
|
61
|
+
__extends(ClientRequestFactory, _super);
|
|
62
|
+
function ClientRequestFactory() {
|
|
63
63
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
var _a
|
|
65
|
+
ClientRequestFactory.prototype.addFieldsToTemplate = function (templateId, data, _options) {
|
|
66
|
+
var _a;
|
|
67
67
|
return __awaiter(this, void 0, void 0, function () {
|
|
68
68
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
69
|
-
return __generator(this, function (
|
|
70
|
-
switch (
|
|
69
|
+
return __generator(this, function (_b) {
|
|
70
|
+
switch (_b.label) {
|
|
71
71
|
case 0:
|
|
72
72
|
_config = _options || this.configuration;
|
|
73
73
|
if (templateId === null || templateId === undefined) {
|
|
74
|
-
throw new baseapi_1.RequiredError("
|
|
74
|
+
throw new baseapi_1.RequiredError("Client", "addFieldsToTemplate", "templateId");
|
|
75
75
|
}
|
|
76
76
|
if (data === null || data === undefined) {
|
|
77
|
-
throw new baseapi_1.RequiredError("
|
|
77
|
+
throw new baseapi_1.RequiredError("Client", "addFieldsToTemplate", "data");
|
|
78
78
|
}
|
|
79
79
|
localVarPath = '/templates/{template_id}/add_fields'
|
|
80
80
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -90,30 +90,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
90
90
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
91
91
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
92
92
|
case 1:
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
_b.sent();
|
|
94
|
+
_b.label = 2;
|
|
95
95
|
case 2:
|
|
96
|
-
defaultAuth = (
|
|
96
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
97
97
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
98
98
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
99
99
|
case 3:
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
_b.sent();
|
|
101
|
+
_b.label = 4;
|
|
102
102
|
case 4: return [2, requestContext];
|
|
103
103
|
}
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
106
|
};
|
|
107
|
-
|
|
108
|
-
var _a
|
|
107
|
+
ClientRequestFactory.prototype.batchGeneratePdfs = function (data, wait, _options) {
|
|
108
|
+
var _a;
|
|
109
109
|
return __awaiter(this, void 0, void 0, function () {
|
|
110
110
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
111
|
-
return __generator(this, function (
|
|
112
|
-
switch (
|
|
111
|
+
return __generator(this, function (_b) {
|
|
112
|
+
switch (_b.label) {
|
|
113
113
|
case 0:
|
|
114
114
|
_config = _options || this.configuration;
|
|
115
115
|
if (data === null || data === undefined) {
|
|
116
|
-
throw new baseapi_1.RequiredError("
|
|
116
|
+
throw new baseapi_1.RequiredError("Client", "batchGeneratePdfs", "data");
|
|
117
117
|
}
|
|
118
118
|
localVarPath = '/submissions/batches';
|
|
119
119
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
@@ -131,109 +131,68 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
131
131
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
132
132
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
133
133
|
case 1:
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
_b.sent();
|
|
135
|
+
_b.label = 2;
|
|
136
136
|
case 2:
|
|
137
|
-
defaultAuth = (
|
|
137
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
138
138
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
139
139
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
140
140
|
case 3:
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
_b.sent();
|
|
142
|
+
_b.label = 4;
|
|
143
143
|
case 4: return [2, requestContext];
|
|
144
144
|
}
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
};
|
|
148
|
-
|
|
149
|
-
var _a
|
|
148
|
+
ClientRequestFactory.prototype.combinePdfs = function (data, _options) {
|
|
149
|
+
var _a;
|
|
150
150
|
return __awaiter(this, void 0, void 0, function () {
|
|
151
151
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
152
|
-
return __generator(this, function (
|
|
153
|
-
switch (
|
|
152
|
+
return __generator(this, function (_b) {
|
|
153
|
+
switch (_b.label) {
|
|
154
154
|
case 0:
|
|
155
155
|
_config = _options || this.configuration;
|
|
156
156
|
if (data === null || data === undefined) {
|
|
157
|
-
throw new baseapi_1.RequiredError("
|
|
158
|
-
}
|
|
159
|
-
localVarPath = '/combined_submissions?v=2';
|
|
160
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
161
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
162
|
-
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
163
|
-
"application/json"
|
|
164
|
-
]);
|
|
165
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
166
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(data, "CombinePdfsData", ""), contentType);
|
|
167
|
-
requestContext.setBody(serializedBody);
|
|
168
|
-
authMethod = _config.authMethods["api_token_basic"];
|
|
169
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
170
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
171
|
-
case 1:
|
|
172
|
-
_d.sent();
|
|
173
|
-
_d.label = 2;
|
|
174
|
-
case 2:
|
|
175
|
-
defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
|
|
176
|
-
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
177
|
-
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
178
|
-
case 3:
|
|
179
|
-
_d.sent();
|
|
180
|
-
_d.label = 4;
|
|
181
|
-
case 4: return [2, requestContext];
|
|
182
|
-
}
|
|
183
|
-
});
|
|
184
|
-
});
|
|
185
|
-
};
|
|
186
|
-
PDFApiRequestFactory.prototype.combineSubmissions = function (data, wait, _options) {
|
|
187
|
-
var _a, _b, _c;
|
|
188
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
189
|
-
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
190
|
-
return __generator(this, function (_d) {
|
|
191
|
-
switch (_d.label) {
|
|
192
|
-
case 0:
|
|
193
|
-
_config = _options || this.configuration;
|
|
194
|
-
if (data === null || data === undefined) {
|
|
195
|
-
throw new baseapi_1.RequiredError("PDFApi", "combineSubmissions", "data");
|
|
157
|
+
throw new baseapi_1.RequiredError("Client", "combinePdfs", "data");
|
|
196
158
|
}
|
|
197
159
|
localVarPath = '/combined_submissions';
|
|
198
160
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
199
161
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
200
|
-
if (wait !== undefined) {
|
|
201
|
-
requestContext.setQueryParam("wait", ObjectSerializer_1.ObjectSerializer.serialize(wait, "boolean", ""));
|
|
202
|
-
}
|
|
203
162
|
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
204
163
|
"application/json"
|
|
205
164
|
]);
|
|
206
165
|
requestContext.setHeaderParam("Content-Type", contentType);
|
|
207
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(data, "
|
|
166
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(data, "CombinePdfsData", ""), contentType);
|
|
208
167
|
requestContext.setBody(serializedBody);
|
|
209
168
|
authMethod = _config.authMethods["api_token_basic"];
|
|
210
169
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
211
170
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
212
171
|
case 1:
|
|
213
|
-
|
|
214
|
-
|
|
172
|
+
_b.sent();
|
|
173
|
+
_b.label = 2;
|
|
215
174
|
case 2:
|
|
216
|
-
defaultAuth = (
|
|
175
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
217
176
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
218
177
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
219
178
|
case 3:
|
|
220
|
-
|
|
221
|
-
|
|
179
|
+
_b.sent();
|
|
180
|
+
_b.label = 4;
|
|
222
181
|
case 4: return [2, requestContext];
|
|
223
182
|
}
|
|
224
183
|
});
|
|
225
184
|
});
|
|
226
185
|
};
|
|
227
|
-
|
|
228
|
-
var _a
|
|
186
|
+
ClientRequestFactory.prototype.copyTemplate = function (templateId, options, _options) {
|
|
187
|
+
var _a;
|
|
229
188
|
return __awaiter(this, void 0, void 0, function () {
|
|
230
189
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
231
|
-
return __generator(this, function (
|
|
232
|
-
switch (
|
|
190
|
+
return __generator(this, function (_b) {
|
|
191
|
+
switch (_b.label) {
|
|
233
192
|
case 0:
|
|
234
193
|
_config = _options || this.configuration;
|
|
235
194
|
if (templateId === null || templateId === undefined) {
|
|
236
|
-
throw new baseapi_1.RequiredError("
|
|
195
|
+
throw new baseapi_1.RequiredError("Client", "copyTemplate", "templateId");
|
|
237
196
|
}
|
|
238
197
|
localVarPath = '/templates/{template_id}/copy'
|
|
239
198
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -249,30 +208,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
249
208
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
250
209
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
251
210
|
case 1:
|
|
252
|
-
|
|
253
|
-
|
|
211
|
+
_b.sent();
|
|
212
|
+
_b.label = 2;
|
|
254
213
|
case 2:
|
|
255
|
-
defaultAuth = (
|
|
214
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
256
215
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
257
216
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
258
217
|
case 3:
|
|
259
|
-
|
|
260
|
-
|
|
218
|
+
_b.sent();
|
|
219
|
+
_b.label = 4;
|
|
261
220
|
case 4: return [2, requestContext];
|
|
262
221
|
}
|
|
263
222
|
});
|
|
264
223
|
});
|
|
265
224
|
};
|
|
266
|
-
|
|
267
|
-
var _a
|
|
225
|
+
ClientRequestFactory.prototype.createCustomFileFromUpload = function (data, _options) {
|
|
226
|
+
var _a;
|
|
268
227
|
return __awaiter(this, void 0, void 0, function () {
|
|
269
228
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
270
|
-
return __generator(this, function (
|
|
271
|
-
switch (
|
|
229
|
+
return __generator(this, function (_b) {
|
|
230
|
+
switch (_b.label) {
|
|
272
231
|
case 0:
|
|
273
232
|
_config = _options || this.configuration;
|
|
274
233
|
if (data === null || data === undefined) {
|
|
275
|
-
throw new baseapi_1.RequiredError("
|
|
234
|
+
throw new baseapi_1.RequiredError("Client", "createCustomFileFromUpload", "data");
|
|
276
235
|
}
|
|
277
236
|
localVarPath = '/custom_files';
|
|
278
237
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
@@ -287,33 +246,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
287
246
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
288
247
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
289
248
|
case 1:
|
|
290
|
-
|
|
291
|
-
|
|
249
|
+
_b.sent();
|
|
250
|
+
_b.label = 2;
|
|
292
251
|
case 2:
|
|
293
|
-
defaultAuth = (
|
|
252
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
294
253
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
295
254
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
296
255
|
case 3:
|
|
297
|
-
|
|
298
|
-
|
|
256
|
+
_b.sent();
|
|
257
|
+
_b.label = 4;
|
|
299
258
|
case 4: return [2, requestContext];
|
|
300
259
|
}
|
|
301
260
|
});
|
|
302
261
|
});
|
|
303
262
|
};
|
|
304
|
-
|
|
305
|
-
var _a
|
|
263
|
+
ClientRequestFactory.prototype.createDataRequestEvent = function (dataRequestId, event, _options) {
|
|
264
|
+
var _a;
|
|
306
265
|
return __awaiter(this, void 0, void 0, function () {
|
|
307
266
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
308
|
-
return __generator(this, function (
|
|
309
|
-
switch (
|
|
267
|
+
return __generator(this, function (_b) {
|
|
268
|
+
switch (_b.label) {
|
|
310
269
|
case 0:
|
|
311
270
|
_config = _options || this.configuration;
|
|
312
271
|
if (dataRequestId === null || dataRequestId === undefined) {
|
|
313
|
-
throw new baseapi_1.RequiredError("
|
|
272
|
+
throw new baseapi_1.RequiredError("Client", "createDataRequestEvent", "dataRequestId");
|
|
314
273
|
}
|
|
315
274
|
if (event === null || event === undefined) {
|
|
316
|
-
throw new baseapi_1.RequiredError("
|
|
275
|
+
throw new baseapi_1.RequiredError("Client", "createDataRequestEvent", "event");
|
|
317
276
|
}
|
|
318
277
|
localVarPath = '/data_requests/{data_request_id}/events'
|
|
319
278
|
.replace('{' + 'data_request_id' + '}', encodeURIComponent(String(dataRequestId)));
|
|
@@ -329,30 +288,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
329
288
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
330
289
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
331
290
|
case 1:
|
|
332
|
-
|
|
333
|
-
|
|
291
|
+
_b.sent();
|
|
292
|
+
_b.label = 2;
|
|
334
293
|
case 2:
|
|
335
|
-
defaultAuth = (
|
|
294
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
336
295
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
337
296
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
338
297
|
case 3:
|
|
339
|
-
|
|
340
|
-
|
|
298
|
+
_b.sent();
|
|
299
|
+
_b.label = 4;
|
|
341
300
|
case 4: return [2, requestContext];
|
|
342
301
|
}
|
|
343
302
|
});
|
|
344
303
|
});
|
|
345
304
|
};
|
|
346
|
-
|
|
347
|
-
var _a
|
|
305
|
+
ClientRequestFactory.prototype.createDataRequestToken = function (dataRequestId, type, _options) {
|
|
306
|
+
var _a;
|
|
348
307
|
return __awaiter(this, void 0, void 0, function () {
|
|
349
308
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
350
|
-
return __generator(this, function (
|
|
351
|
-
switch (
|
|
309
|
+
return __generator(this, function (_b) {
|
|
310
|
+
switch (_b.label) {
|
|
352
311
|
case 0:
|
|
353
312
|
_config = _options || this.configuration;
|
|
354
313
|
if (dataRequestId === null || dataRequestId === undefined) {
|
|
355
|
-
throw new baseapi_1.RequiredError("
|
|
314
|
+
throw new baseapi_1.RequiredError("Client", "createDataRequestToken", "dataRequestId");
|
|
356
315
|
}
|
|
357
316
|
localVarPath = '/data_requests/{data_request_id}/tokens'
|
|
358
317
|
.replace('{' + 'data_request_id' + '}', encodeURIComponent(String(dataRequestId)));
|
|
@@ -365,30 +324,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
365
324
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
366
325
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
367
326
|
case 1:
|
|
368
|
-
|
|
369
|
-
|
|
327
|
+
_b.sent();
|
|
328
|
+
_b.label = 2;
|
|
370
329
|
case 2:
|
|
371
|
-
defaultAuth = (
|
|
330
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
372
331
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
373
332
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
374
333
|
case 3:
|
|
375
|
-
|
|
376
|
-
|
|
334
|
+
_b.sent();
|
|
335
|
+
_b.label = 4;
|
|
377
336
|
case 4: return [2, requestContext];
|
|
378
337
|
}
|
|
379
338
|
});
|
|
380
339
|
});
|
|
381
340
|
};
|
|
382
|
-
|
|
383
|
-
var _a
|
|
341
|
+
ClientRequestFactory.prototype.createFolder = function (data, _options) {
|
|
342
|
+
var _a;
|
|
384
343
|
return __awaiter(this, void 0, void 0, function () {
|
|
385
344
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
386
|
-
return __generator(this, function (
|
|
387
|
-
switch (
|
|
345
|
+
return __generator(this, function (_b) {
|
|
346
|
+
switch (_b.label) {
|
|
388
347
|
case 0:
|
|
389
348
|
_config = _options || this.configuration;
|
|
390
349
|
if (data === null || data === undefined) {
|
|
391
|
-
throw new baseapi_1.RequiredError("
|
|
350
|
+
throw new baseapi_1.RequiredError("Client", "createFolder", "data");
|
|
392
351
|
}
|
|
393
352
|
localVarPath = '/folders/';
|
|
394
353
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
@@ -403,32 +362,32 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
403
362
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
404
363
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
405
364
|
case 1:
|
|
406
|
-
|
|
407
|
-
|
|
365
|
+
_b.sent();
|
|
366
|
+
_b.label = 2;
|
|
408
367
|
case 2:
|
|
409
|
-
defaultAuth = (
|
|
368
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
410
369
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
411
370
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
412
371
|
case 3:
|
|
413
|
-
|
|
414
|
-
|
|
372
|
+
_b.sent();
|
|
373
|
+
_b.label = 4;
|
|
415
374
|
case 4: return [2, requestContext];
|
|
416
375
|
}
|
|
417
376
|
});
|
|
418
377
|
});
|
|
419
378
|
};
|
|
420
|
-
|
|
421
|
-
var _a
|
|
379
|
+
ClientRequestFactory.prototype.createHtmlTemplate = function (data, _options) {
|
|
380
|
+
var _a;
|
|
422
381
|
return __awaiter(this, void 0, void 0, function () {
|
|
423
382
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
424
|
-
return __generator(this, function (
|
|
425
|
-
switch (
|
|
383
|
+
return __generator(this, function (_b) {
|
|
384
|
+
switch (_b.label) {
|
|
426
385
|
case 0:
|
|
427
386
|
_config = _options || this.configuration;
|
|
428
387
|
if (data === null || data === undefined) {
|
|
429
|
-
throw new baseapi_1.RequiredError("
|
|
388
|
+
throw new baseapi_1.RequiredError("Client", "createHtmlTemplate", "data");
|
|
430
389
|
}
|
|
431
|
-
localVarPath = '/templates?
|
|
390
|
+
localVarPath = '/templates?endpoint_variant=create_html_template';
|
|
432
391
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
433
392
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
434
393
|
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
@@ -441,33 +400,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
441
400
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
442
401
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
443
402
|
case 1:
|
|
444
|
-
|
|
445
|
-
|
|
403
|
+
_b.sent();
|
|
404
|
+
_b.label = 2;
|
|
446
405
|
case 2:
|
|
447
|
-
defaultAuth = (
|
|
406
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
448
407
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
449
408
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
450
409
|
case 3:
|
|
451
|
-
|
|
452
|
-
|
|
410
|
+
_b.sent();
|
|
411
|
+
_b.label = 4;
|
|
453
412
|
case 4: return [2, requestContext];
|
|
454
413
|
}
|
|
455
414
|
});
|
|
456
415
|
});
|
|
457
416
|
};
|
|
458
|
-
|
|
459
|
-
var _a
|
|
417
|
+
ClientRequestFactory.prototype.createPdfTemplate = function (templateDocument, templateName, wait, templateDescription, templateParentFolderId, _options) {
|
|
418
|
+
var _a;
|
|
460
419
|
return __awaiter(this, void 0, void 0, function () {
|
|
461
420
|
var _config, localVarPath, requestContext, useForm, localVarFormParams, contentType, authMethod, defaultAuth;
|
|
462
|
-
return __generator(this, function (
|
|
463
|
-
switch (
|
|
421
|
+
return __generator(this, function (_b) {
|
|
422
|
+
switch (_b.label) {
|
|
464
423
|
case 0:
|
|
465
424
|
_config = _options || this.configuration;
|
|
466
425
|
if (templateDocument === null || templateDocument === undefined) {
|
|
467
|
-
throw new baseapi_1.RequiredError("
|
|
426
|
+
throw new baseapi_1.RequiredError("Client", "createPdfTemplate", "templateDocument");
|
|
468
427
|
}
|
|
469
428
|
if (templateName === null || templateName === undefined) {
|
|
470
|
-
throw new baseapi_1.RequiredError("
|
|
429
|
+
throw new baseapi_1.RequiredError("Client", "createPdfTemplate", "templateName");
|
|
471
430
|
}
|
|
472
431
|
localVarPath = '/templates';
|
|
473
432
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
@@ -509,32 +468,32 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
509
468
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
510
469
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
511
470
|
case 1:
|
|
512
|
-
|
|
513
|
-
|
|
471
|
+
_b.sent();
|
|
472
|
+
_b.label = 2;
|
|
514
473
|
case 2:
|
|
515
|
-
defaultAuth = (
|
|
474
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
516
475
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
517
476
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
518
477
|
case 3:
|
|
519
|
-
|
|
520
|
-
|
|
478
|
+
_b.sent();
|
|
479
|
+
_b.label = 4;
|
|
521
480
|
case 4: return [2, requestContext];
|
|
522
481
|
}
|
|
523
482
|
});
|
|
524
483
|
});
|
|
525
484
|
};
|
|
526
|
-
|
|
527
|
-
var _a
|
|
485
|
+
ClientRequestFactory.prototype.createPdfTemplateFromUpload = function (data, _options) {
|
|
486
|
+
var _a;
|
|
528
487
|
return __awaiter(this, void 0, void 0, function () {
|
|
529
488
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
530
|
-
return __generator(this, function (
|
|
531
|
-
switch (
|
|
489
|
+
return __generator(this, function (_b) {
|
|
490
|
+
switch (_b.label) {
|
|
532
491
|
case 0:
|
|
533
492
|
_config = _options || this.configuration;
|
|
534
493
|
if (data === null || data === undefined) {
|
|
535
|
-
throw new baseapi_1.RequiredError("
|
|
494
|
+
throw new baseapi_1.RequiredError("Client", "createPdfTemplateFromUpload", "data");
|
|
536
495
|
}
|
|
537
|
-
localVarPath = '/templates?
|
|
496
|
+
localVarPath = '/templates?endpoint_variant=create_template_from_cached_upload';
|
|
538
497
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
539
498
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
540
499
|
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
@@ -547,30 +506,68 @@ 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;
|
|
511
|
+
case 2:
|
|
512
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
513
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
514
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
515
|
+
case 3:
|
|
516
|
+
_b.sent();
|
|
517
|
+
_b.label = 4;
|
|
518
|
+
case 4: return [2, requestContext];
|
|
519
|
+
}
|
|
520
|
+
});
|
|
521
|
+
});
|
|
522
|
+
};
|
|
523
|
+
ClientRequestFactory.prototype.createWebhook = function (data, _options) {
|
|
524
|
+
var _a;
|
|
525
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
526
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
527
|
+
return __generator(this, function (_b) {
|
|
528
|
+
switch (_b.label) {
|
|
529
|
+
case 0:
|
|
530
|
+
_config = _options || this.configuration;
|
|
531
|
+
if (data === null || data === undefined) {
|
|
532
|
+
throw new baseapi_1.RequiredError("Client", "createWebhook", "data");
|
|
533
|
+
}
|
|
534
|
+
localVarPath = '/webhooks';
|
|
535
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
536
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
537
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
538
|
+
"application/json"
|
|
539
|
+
]);
|
|
540
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
541
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(data, "CreateWebhookData", ""), contentType);
|
|
542
|
+
requestContext.setBody(serializedBody);
|
|
543
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
544
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
545
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
546
|
+
case 1:
|
|
547
|
+
_b.sent();
|
|
548
|
+
_b.label = 2;
|
|
552
549
|
case 2:
|
|
553
|
-
defaultAuth = (
|
|
550
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
554
551
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
555
552
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
556
553
|
case 3:
|
|
557
|
-
|
|
558
|
-
|
|
554
|
+
_b.sent();
|
|
555
|
+
_b.label = 4;
|
|
559
556
|
case 4: return [2, requestContext];
|
|
560
557
|
}
|
|
561
558
|
});
|
|
562
559
|
});
|
|
563
560
|
};
|
|
564
|
-
|
|
565
|
-
var _a
|
|
561
|
+
ClientRequestFactory.prototype.deleteFolder = function (folderId, _options) {
|
|
562
|
+
var _a;
|
|
566
563
|
return __awaiter(this, void 0, void 0, function () {
|
|
567
564
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
568
|
-
return __generator(this, function (
|
|
569
|
-
switch (
|
|
565
|
+
return __generator(this, function (_b) {
|
|
566
|
+
switch (_b.label) {
|
|
570
567
|
case 0:
|
|
571
568
|
_config = _options || this.configuration;
|
|
572
569
|
if (folderId === null || folderId === undefined) {
|
|
573
|
-
throw new baseapi_1.RequiredError("
|
|
570
|
+
throw new baseapi_1.RequiredError("Client", "deleteFolder", "folderId");
|
|
574
571
|
}
|
|
575
572
|
localVarPath = '/folders/{folder_id}'
|
|
576
573
|
.replace('{' + 'folder_id' + '}', encodeURIComponent(String(folderId)));
|
|
@@ -580,30 +577,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
580
577
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
581
578
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
582
579
|
case 1:
|
|
583
|
-
|
|
584
|
-
|
|
580
|
+
_b.sent();
|
|
581
|
+
_b.label = 2;
|
|
585
582
|
case 2:
|
|
586
|
-
defaultAuth = (
|
|
583
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
587
584
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
588
585
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
589
586
|
case 3:
|
|
590
|
-
|
|
591
|
-
|
|
587
|
+
_b.sent();
|
|
588
|
+
_b.label = 4;
|
|
592
589
|
case 4: return [2, requestContext];
|
|
593
590
|
}
|
|
594
591
|
});
|
|
595
592
|
});
|
|
596
593
|
};
|
|
597
|
-
|
|
598
|
-
var _a
|
|
594
|
+
ClientRequestFactory.prototype.deleteTemplate = function (templateId, version, _options) {
|
|
595
|
+
var _a;
|
|
599
596
|
return __awaiter(this, void 0, void 0, function () {
|
|
600
597
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
601
|
-
return __generator(this, function (
|
|
602
|
-
switch (
|
|
598
|
+
return __generator(this, function (_b) {
|
|
599
|
+
switch (_b.label) {
|
|
603
600
|
case 0:
|
|
604
601
|
_config = _options || this.configuration;
|
|
605
602
|
if (templateId === null || templateId === undefined) {
|
|
606
|
-
throw new baseapi_1.RequiredError("
|
|
603
|
+
throw new baseapi_1.RequiredError("Client", "deleteTemplate", "templateId");
|
|
607
604
|
}
|
|
608
605
|
localVarPath = '/templates/{template_id}'
|
|
609
606
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -616,146 +613,134 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
616
613
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
617
614
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
618
615
|
case 1:
|
|
619
|
-
|
|
620
|
-
|
|
616
|
+
_b.sent();
|
|
617
|
+
_b.label = 2;
|
|
621
618
|
case 2:
|
|
622
|
-
defaultAuth = (
|
|
619
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
623
620
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
624
621
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
625
622
|
case 3:
|
|
626
|
-
|
|
627
|
-
|
|
623
|
+
_b.sent();
|
|
624
|
+
_b.label = 4;
|
|
628
625
|
case 4: return [2, requestContext];
|
|
629
626
|
}
|
|
630
627
|
});
|
|
631
628
|
});
|
|
632
629
|
};
|
|
633
|
-
|
|
634
|
-
var _a
|
|
630
|
+
ClientRequestFactory.prototype.deleteWebhook = function (webhookId, _options) {
|
|
631
|
+
var _a;
|
|
635
632
|
return __awaiter(this, void 0, void 0, function () {
|
|
636
633
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
637
|
-
return __generator(this, function (
|
|
638
|
-
switch (
|
|
634
|
+
return __generator(this, function (_b) {
|
|
635
|
+
switch (_b.label) {
|
|
639
636
|
case 0:
|
|
640
637
|
_config = _options || this.configuration;
|
|
641
|
-
if (
|
|
642
|
-
throw new baseapi_1.RequiredError("
|
|
638
|
+
if (webhookId === null || webhookId === undefined) {
|
|
639
|
+
throw new baseapi_1.RequiredError("Client", "deleteWebhook", "webhookId");
|
|
643
640
|
}
|
|
644
|
-
localVarPath = '/
|
|
645
|
-
.replace('{' + '
|
|
641
|
+
localVarPath = '/webhooks/{webhook_id}'
|
|
642
|
+
.replace('{' + 'webhook_id' + '}', encodeURIComponent(String(webhookId)));
|
|
646
643
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
647
644
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
648
645
|
authMethod = _config.authMethods["api_token_basic"];
|
|
649
646
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
650
647
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
651
648
|
case 1:
|
|
652
|
-
|
|
653
|
-
|
|
649
|
+
_b.sent();
|
|
650
|
+
_b.label = 2;
|
|
654
651
|
case 2:
|
|
655
|
-
defaultAuth = (
|
|
652
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
656
653
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
657
654
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
658
655
|
case 3:
|
|
659
|
-
|
|
660
|
-
|
|
656
|
+
_b.sent();
|
|
657
|
+
_b.label = 4;
|
|
661
658
|
case 4: return [2, requestContext];
|
|
662
659
|
}
|
|
663
660
|
});
|
|
664
661
|
});
|
|
665
662
|
};
|
|
666
|
-
|
|
667
|
-
var _a
|
|
663
|
+
ClientRequestFactory.prototype.expireCombinedSubmission = function (combinedSubmissionId, _options) {
|
|
664
|
+
var _a;
|
|
668
665
|
return __awaiter(this, void 0, void 0, function () {
|
|
669
666
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
670
|
-
return __generator(this, function (
|
|
671
|
-
switch (
|
|
667
|
+
return __generator(this, function (_b) {
|
|
668
|
+
switch (_b.label) {
|
|
672
669
|
case 0:
|
|
673
670
|
_config = _options || this.configuration;
|
|
674
|
-
if (
|
|
675
|
-
throw new baseapi_1.RequiredError("
|
|
671
|
+
if (combinedSubmissionId === null || combinedSubmissionId === undefined) {
|
|
672
|
+
throw new baseapi_1.RequiredError("Client", "expireCombinedSubmission", "combinedSubmissionId");
|
|
676
673
|
}
|
|
677
|
-
localVarPath = '/
|
|
678
|
-
.replace('{' + '
|
|
674
|
+
localVarPath = '/combined_submissions/{combined_submission_id}'
|
|
675
|
+
.replace('{' + 'combined_submission_id' + '}', encodeURIComponent(String(combinedSubmissionId)));
|
|
679
676
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
680
677
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
681
678
|
authMethod = _config.authMethods["api_token_basic"];
|
|
682
679
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
683
680
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
684
681
|
case 1:
|
|
685
|
-
|
|
686
|
-
|
|
682
|
+
_b.sent();
|
|
683
|
+
_b.label = 2;
|
|
687
684
|
case 2:
|
|
688
|
-
defaultAuth = (
|
|
685
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
689
686
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
690
687
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
691
688
|
case 3:
|
|
692
|
-
|
|
693
|
-
|
|
689
|
+
_b.sent();
|
|
690
|
+
_b.label = 4;
|
|
694
691
|
case 4: return [2, requestContext];
|
|
695
692
|
}
|
|
696
693
|
});
|
|
697
694
|
});
|
|
698
695
|
};
|
|
699
|
-
|
|
700
|
-
var _a
|
|
696
|
+
ClientRequestFactory.prototype.expireSubmission = function (submissionId, _options) {
|
|
697
|
+
var _a;
|
|
701
698
|
return __awaiter(this, void 0, void 0, function () {
|
|
702
|
-
var _config, localVarPath, requestContext,
|
|
703
|
-
return __generator(this, function (
|
|
704
|
-
switch (
|
|
699
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
700
|
+
return __generator(this, function (_b) {
|
|
701
|
+
switch (_b.label) {
|
|
705
702
|
case 0:
|
|
706
703
|
_config = _options || this.configuration;
|
|
707
|
-
if (
|
|
708
|
-
throw new baseapi_1.RequiredError("
|
|
709
|
-
}
|
|
710
|
-
if (submission === null || submission === undefined) {
|
|
711
|
-
throw new baseapi_1.RequiredError("PDFApi", "generatePdf", "submission");
|
|
704
|
+
if (submissionId === null || submissionId === undefined) {
|
|
705
|
+
throw new baseapi_1.RequiredError("Client", "expireSubmission", "submissionId");
|
|
712
706
|
}
|
|
713
|
-
localVarPath = '/
|
|
714
|
-
.replace('{' + '
|
|
715
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
707
|
+
localVarPath = '/submissions/{submission_id}'
|
|
708
|
+
.replace('{' + 'submission_id' + '}', encodeURIComponent(String(submissionId)));
|
|
709
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
716
710
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
717
|
-
if (wait !== undefined) {
|
|
718
|
-
requestContext.setQueryParam("wait", ObjectSerializer_1.ObjectSerializer.serialize(wait, "boolean", ""));
|
|
719
|
-
}
|
|
720
|
-
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
721
|
-
"application/json"
|
|
722
|
-
]);
|
|
723
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
724
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(submission, "CreatePdfSubmissionData", ""), contentType);
|
|
725
|
-
requestContext.setBody(serializedBody);
|
|
726
711
|
authMethod = _config.authMethods["api_token_basic"];
|
|
727
712
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
728
713
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
729
714
|
case 1:
|
|
730
|
-
|
|
731
|
-
|
|
715
|
+
_b.sent();
|
|
716
|
+
_b.label = 2;
|
|
732
717
|
case 2:
|
|
733
|
-
defaultAuth = (
|
|
718
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
734
719
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
735
720
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
736
721
|
case 3:
|
|
737
|
-
|
|
738
|
-
|
|
722
|
+
_b.sent();
|
|
723
|
+
_b.label = 4;
|
|
739
724
|
case 4: return [2, requestContext];
|
|
740
725
|
}
|
|
741
726
|
});
|
|
742
727
|
});
|
|
743
728
|
};
|
|
744
|
-
|
|
745
|
-
var _a
|
|
729
|
+
ClientRequestFactory.prototype.generatePdf = function (templateId, submission, wait, _options) {
|
|
730
|
+
var _a;
|
|
746
731
|
return __awaiter(this, void 0, void 0, function () {
|
|
747
732
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
748
|
-
return __generator(this, function (
|
|
749
|
-
switch (
|
|
733
|
+
return __generator(this, function (_b) {
|
|
734
|
+
switch (_b.label) {
|
|
750
735
|
case 0:
|
|
751
736
|
_config = _options || this.configuration;
|
|
752
737
|
if (templateId === null || templateId === undefined) {
|
|
753
|
-
throw new baseapi_1.RequiredError("
|
|
738
|
+
throw new baseapi_1.RequiredError("Client", "generatePdf", "templateId");
|
|
754
739
|
}
|
|
755
740
|
if (submission === null || submission === undefined) {
|
|
756
|
-
throw new baseapi_1.RequiredError("
|
|
741
|
+
throw new baseapi_1.RequiredError("Client", "generatePdf", "submission");
|
|
757
742
|
}
|
|
758
|
-
localVarPath = '/templates/{template_id}/submissions
|
|
743
|
+
localVarPath = '/templates/{template_id}/submissions'
|
|
759
744
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
760
745
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
761
746
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
@@ -766,36 +751,36 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
766
751
|
"application/json"
|
|
767
752
|
]);
|
|
768
753
|
requestContext.setHeaderParam("Content-Type", contentType);
|
|
769
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(submission, "
|
|
754
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(submission, "CreatePdfSubmissionData", ""), contentType);
|
|
770
755
|
requestContext.setBody(serializedBody);
|
|
771
756
|
authMethod = _config.authMethods["api_token_basic"];
|
|
772
757
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
773
758
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
774
759
|
case 1:
|
|
775
|
-
|
|
776
|
-
|
|
760
|
+
_b.sent();
|
|
761
|
+
_b.label = 2;
|
|
777
762
|
case 2:
|
|
778
|
-
defaultAuth = (
|
|
763
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
779
764
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
780
765
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
781
766
|
case 3:
|
|
782
|
-
|
|
783
|
-
|
|
767
|
+
_b.sent();
|
|
768
|
+
_b.label = 4;
|
|
784
769
|
case 4: return [2, requestContext];
|
|
785
770
|
}
|
|
786
771
|
});
|
|
787
772
|
});
|
|
788
773
|
};
|
|
789
|
-
|
|
790
|
-
var _a
|
|
774
|
+
ClientRequestFactory.prototype.generatePreview = function (submissionId, _options) {
|
|
775
|
+
var _a;
|
|
791
776
|
return __awaiter(this, void 0, void 0, function () {
|
|
792
777
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
793
|
-
return __generator(this, function (
|
|
794
|
-
switch (
|
|
778
|
+
return __generator(this, function (_b) {
|
|
779
|
+
switch (_b.label) {
|
|
795
780
|
case 0:
|
|
796
781
|
_config = _options || this.configuration;
|
|
797
782
|
if (submissionId === null || submissionId === undefined) {
|
|
798
|
-
throw new baseapi_1.RequiredError("
|
|
783
|
+
throw new baseapi_1.RequiredError("Client", "generatePreview", "submissionId");
|
|
799
784
|
}
|
|
800
785
|
localVarPath = '/submissions/{submission_id}/generate_preview'
|
|
801
786
|
.replace('{' + 'submission_id' + '}', encodeURIComponent(String(submissionId)));
|
|
@@ -805,30 +790,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
805
790
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
806
791
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
807
792
|
case 1:
|
|
808
|
-
|
|
809
|
-
|
|
793
|
+
_b.sent();
|
|
794
|
+
_b.label = 2;
|
|
810
795
|
case 2:
|
|
811
|
-
defaultAuth = (
|
|
796
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
812
797
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
813
798
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
814
799
|
case 3:
|
|
815
|
-
|
|
816
|
-
|
|
800
|
+
_b.sent();
|
|
801
|
+
_b.label = 4;
|
|
817
802
|
case 4: return [2, requestContext];
|
|
818
803
|
}
|
|
819
804
|
});
|
|
820
805
|
});
|
|
821
806
|
};
|
|
822
|
-
|
|
823
|
-
var _a
|
|
807
|
+
ClientRequestFactory.prototype.getCombinedSubmission = function (combinedSubmissionId, _options) {
|
|
808
|
+
var _a;
|
|
824
809
|
return __awaiter(this, void 0, void 0, function () {
|
|
825
810
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
826
|
-
return __generator(this, function (
|
|
827
|
-
switch (
|
|
811
|
+
return __generator(this, function (_b) {
|
|
812
|
+
switch (_b.label) {
|
|
828
813
|
case 0:
|
|
829
814
|
_config = _options || this.configuration;
|
|
830
815
|
if (combinedSubmissionId === null || combinedSubmissionId === undefined) {
|
|
831
|
-
throw new baseapi_1.RequiredError("
|
|
816
|
+
throw new baseapi_1.RequiredError("Client", "getCombinedSubmission", "combinedSubmissionId");
|
|
832
817
|
}
|
|
833
818
|
localVarPath = '/combined_submissions/{combined_submission_id}'
|
|
834
819
|
.replace('{' + 'combined_submission_id' + '}', encodeURIComponent(String(combinedSubmissionId)));
|
|
@@ -838,30 +823,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
838
823
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
839
824
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
840
825
|
case 1:
|
|
841
|
-
|
|
842
|
-
|
|
826
|
+
_b.sent();
|
|
827
|
+
_b.label = 2;
|
|
843
828
|
case 2:
|
|
844
|
-
defaultAuth = (
|
|
829
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
845
830
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
846
831
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
847
832
|
case 3:
|
|
848
|
-
|
|
849
|
-
|
|
833
|
+
_b.sent();
|
|
834
|
+
_b.label = 4;
|
|
850
835
|
case 4: return [2, requestContext];
|
|
851
836
|
}
|
|
852
837
|
});
|
|
853
838
|
});
|
|
854
839
|
};
|
|
855
|
-
|
|
856
|
-
var _a
|
|
840
|
+
ClientRequestFactory.prototype.getDataRequest = function (dataRequestId, _options) {
|
|
841
|
+
var _a;
|
|
857
842
|
return __awaiter(this, void 0, void 0, function () {
|
|
858
843
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
859
|
-
return __generator(this, function (
|
|
860
|
-
switch (
|
|
844
|
+
return __generator(this, function (_b) {
|
|
845
|
+
switch (_b.label) {
|
|
861
846
|
case 0:
|
|
862
847
|
_config = _options || this.configuration;
|
|
863
848
|
if (dataRequestId === null || dataRequestId === undefined) {
|
|
864
|
-
throw new baseapi_1.RequiredError("
|
|
849
|
+
throw new baseapi_1.RequiredError("Client", "getDataRequest", "dataRequestId");
|
|
865
850
|
}
|
|
866
851
|
localVarPath = '/data_requests/{data_request_id}'
|
|
867
852
|
.replace('{' + 'data_request_id' + '}', encodeURIComponent(String(dataRequestId)));
|
|
@@ -871,30 +856,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
871
856
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
872
857
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
873
858
|
case 1:
|
|
874
|
-
|
|
875
|
-
|
|
859
|
+
_b.sent();
|
|
860
|
+
_b.label = 2;
|
|
876
861
|
case 2:
|
|
877
|
-
defaultAuth = (
|
|
862
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
878
863
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
879
864
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
880
865
|
case 3:
|
|
881
|
-
|
|
882
|
-
|
|
866
|
+
_b.sent();
|
|
867
|
+
_b.label = 4;
|
|
883
868
|
case 4: return [2, requestContext];
|
|
884
869
|
}
|
|
885
870
|
});
|
|
886
871
|
});
|
|
887
872
|
};
|
|
888
|
-
|
|
889
|
-
var _a
|
|
873
|
+
ClientRequestFactory.prototype.getFullTemplate = function (templateId, _options) {
|
|
874
|
+
var _a;
|
|
890
875
|
return __awaiter(this, void 0, void 0, function () {
|
|
891
876
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
892
|
-
return __generator(this, function (
|
|
893
|
-
switch (
|
|
877
|
+
return __generator(this, function (_b) {
|
|
878
|
+
switch (_b.label) {
|
|
894
879
|
case 0:
|
|
895
880
|
_config = _options || this.configuration;
|
|
896
881
|
if (templateId === null || templateId === undefined) {
|
|
897
|
-
throw new baseapi_1.RequiredError("
|
|
882
|
+
throw new baseapi_1.RequiredError("Client", "getFullTemplate", "templateId");
|
|
898
883
|
}
|
|
899
884
|
localVarPath = '/templates/{template_id}?full=true'
|
|
900
885
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -904,26 +889,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
904
889
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
905
890
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
906
891
|
case 1:
|
|
907
|
-
|
|
908
|
-
|
|
892
|
+
_b.sent();
|
|
893
|
+
_b.label = 2;
|
|
909
894
|
case 2:
|
|
910
|
-
defaultAuth = (
|
|
895
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
911
896
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
912
897
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
913
898
|
case 3:
|
|
914
|
-
|
|
915
|
-
|
|
899
|
+
_b.sent();
|
|
900
|
+
_b.label = 4;
|
|
916
901
|
case 4: return [2, requestContext];
|
|
917
902
|
}
|
|
918
903
|
});
|
|
919
904
|
});
|
|
920
905
|
};
|
|
921
|
-
|
|
922
|
-
var _a
|
|
906
|
+
ClientRequestFactory.prototype.getPresignUrl = function (_options) {
|
|
907
|
+
var _a;
|
|
923
908
|
return __awaiter(this, void 0, void 0, function () {
|
|
924
909
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
925
|
-
return __generator(this, function (
|
|
926
|
-
switch (
|
|
910
|
+
return __generator(this, function (_b) {
|
|
911
|
+
switch (_b.label) {
|
|
927
912
|
case 0:
|
|
928
913
|
_config = _options || this.configuration;
|
|
929
914
|
localVarPath = '/uploads/presign';
|
|
@@ -933,30 +918,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
933
918
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
934
919
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
935
920
|
case 1:
|
|
936
|
-
|
|
937
|
-
|
|
921
|
+
_b.sent();
|
|
922
|
+
_b.label = 2;
|
|
938
923
|
case 2:
|
|
939
|
-
defaultAuth = (
|
|
924
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
940
925
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
941
926
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
942
927
|
case 3:
|
|
943
|
-
|
|
944
|
-
|
|
928
|
+
_b.sent();
|
|
929
|
+
_b.label = 4;
|
|
945
930
|
case 4: return [2, requestContext];
|
|
946
931
|
}
|
|
947
932
|
});
|
|
948
933
|
});
|
|
949
934
|
};
|
|
950
|
-
|
|
951
|
-
var _a
|
|
935
|
+
ClientRequestFactory.prototype.getSubmission = function (submissionId, includeData, _options) {
|
|
936
|
+
var _a;
|
|
952
937
|
return __awaiter(this, void 0, void 0, function () {
|
|
953
938
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
954
|
-
return __generator(this, function (
|
|
955
|
-
switch (
|
|
939
|
+
return __generator(this, function (_b) {
|
|
940
|
+
switch (_b.label) {
|
|
956
941
|
case 0:
|
|
957
942
|
_config = _options || this.configuration;
|
|
958
943
|
if (submissionId === null || submissionId === undefined) {
|
|
959
|
-
throw new baseapi_1.RequiredError("
|
|
944
|
+
throw new baseapi_1.RequiredError("Client", "getSubmission", "submissionId");
|
|
960
945
|
}
|
|
961
946
|
localVarPath = '/submissions/{submission_id}'
|
|
962
947
|
.replace('{' + 'submission_id' + '}', encodeURIComponent(String(submissionId)));
|
|
@@ -969,30 +954,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
969
954
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
970
955
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
971
956
|
case 1:
|
|
972
|
-
|
|
973
|
-
|
|
957
|
+
_b.sent();
|
|
958
|
+
_b.label = 2;
|
|
974
959
|
case 2:
|
|
975
|
-
defaultAuth = (
|
|
960
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
976
961
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
977
962
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
978
963
|
case 3:
|
|
979
|
-
|
|
980
|
-
|
|
964
|
+
_b.sent();
|
|
965
|
+
_b.label = 4;
|
|
981
966
|
case 4: return [2, requestContext];
|
|
982
967
|
}
|
|
983
968
|
});
|
|
984
969
|
});
|
|
985
970
|
};
|
|
986
|
-
|
|
987
|
-
var _a
|
|
971
|
+
ClientRequestFactory.prototype.getSubmissionBatch = function (submissionBatchId, includeSubmissions, _options) {
|
|
972
|
+
var _a;
|
|
988
973
|
return __awaiter(this, void 0, void 0, function () {
|
|
989
974
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
990
|
-
return __generator(this, function (
|
|
991
|
-
switch (
|
|
975
|
+
return __generator(this, function (_b) {
|
|
976
|
+
switch (_b.label) {
|
|
992
977
|
case 0:
|
|
993
978
|
_config = _options || this.configuration;
|
|
994
979
|
if (submissionBatchId === null || submissionBatchId === undefined) {
|
|
995
|
-
throw new baseapi_1.RequiredError("
|
|
980
|
+
throw new baseapi_1.RequiredError("Client", "getSubmissionBatch", "submissionBatchId");
|
|
996
981
|
}
|
|
997
982
|
localVarPath = '/submissions/batches/{submission_batch_id}'
|
|
998
983
|
.replace('{' + 'submission_batch_id' + '}', encodeURIComponent(String(submissionBatchId)));
|
|
@@ -1005,30 +990,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1005
990
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1006
991
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1007
992
|
case 1:
|
|
1008
|
-
|
|
1009
|
-
|
|
993
|
+
_b.sent();
|
|
994
|
+
_b.label = 2;
|
|
1010
995
|
case 2:
|
|
1011
|
-
defaultAuth = (
|
|
996
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1012
997
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1013
998
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1014
999
|
case 3:
|
|
1015
|
-
|
|
1016
|
-
|
|
1000
|
+
_b.sent();
|
|
1001
|
+
_b.label = 4;
|
|
1017
1002
|
case 4: return [2, requestContext];
|
|
1018
1003
|
}
|
|
1019
1004
|
});
|
|
1020
1005
|
});
|
|
1021
1006
|
};
|
|
1022
|
-
|
|
1023
|
-
var _a
|
|
1007
|
+
ClientRequestFactory.prototype.getTemplate = function (templateId, _options) {
|
|
1008
|
+
var _a;
|
|
1024
1009
|
return __awaiter(this, void 0, void 0, function () {
|
|
1025
1010
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1026
|
-
return __generator(this, function (
|
|
1027
|
-
switch (
|
|
1011
|
+
return __generator(this, function (_b) {
|
|
1012
|
+
switch (_b.label) {
|
|
1028
1013
|
case 0:
|
|
1029
1014
|
_config = _options || this.configuration;
|
|
1030
1015
|
if (templateId === null || templateId === undefined) {
|
|
1031
|
-
throw new baseapi_1.RequiredError("
|
|
1016
|
+
throw new baseapi_1.RequiredError("Client", "getTemplate", "templateId");
|
|
1032
1017
|
}
|
|
1033
1018
|
localVarPath = '/templates/{template_id}'
|
|
1034
1019
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1038,30 +1023,69 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1038
1023
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1039
1024
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1040
1025
|
case 1:
|
|
1041
|
-
|
|
1042
|
-
|
|
1026
|
+
_b.sent();
|
|
1027
|
+
_b.label = 2;
|
|
1028
|
+
case 2:
|
|
1029
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1030
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1031
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1032
|
+
case 3:
|
|
1033
|
+
_b.sent();
|
|
1034
|
+
_b.label = 4;
|
|
1035
|
+
case 4: return [2, requestContext];
|
|
1036
|
+
}
|
|
1037
|
+
});
|
|
1038
|
+
});
|
|
1039
|
+
};
|
|
1040
|
+
ClientRequestFactory.prototype.getTemplateModelCode = function (templateId, lang, _options) {
|
|
1041
|
+
var _a;
|
|
1042
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1043
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1044
|
+
return __generator(this, function (_b) {
|
|
1045
|
+
switch (_b.label) {
|
|
1046
|
+
case 0:
|
|
1047
|
+
_config = _options || this.configuration;
|
|
1048
|
+
if (templateId === null || templateId === undefined) {
|
|
1049
|
+
throw new baseapi_1.RequiredError("Client", "getTemplateModelCode", "templateId");
|
|
1050
|
+
}
|
|
1051
|
+
if (lang === null || lang === undefined) {
|
|
1052
|
+
throw new baseapi_1.RequiredError("Client", "getTemplateModelCode", "lang");
|
|
1053
|
+
}
|
|
1054
|
+
localVarPath = '/templates/{template_id}/model_code'
|
|
1055
|
+
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
1056
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
1057
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1058
|
+
if (lang !== undefined) {
|
|
1059
|
+
requestContext.setQueryParam("lang", ObjectSerializer_1.ObjectSerializer.serialize(lang, "'typescript' | 'javascript' | 'ruby' | 'python' | 'php' | 'java' | 'csharp' | 'elixir' | 'go'", ""));
|
|
1060
|
+
}
|
|
1061
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
1062
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1063
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1064
|
+
case 1:
|
|
1065
|
+
_b.sent();
|
|
1066
|
+
_b.label = 2;
|
|
1043
1067
|
case 2:
|
|
1044
|
-
defaultAuth = (
|
|
1068
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1045
1069
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1046
1070
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1047
1071
|
case 3:
|
|
1048
|
-
|
|
1049
|
-
|
|
1072
|
+
_b.sent();
|
|
1073
|
+
_b.label = 4;
|
|
1050
1074
|
case 4: return [2, requestContext];
|
|
1051
1075
|
}
|
|
1052
1076
|
});
|
|
1053
1077
|
});
|
|
1054
1078
|
};
|
|
1055
|
-
|
|
1056
|
-
var _a
|
|
1079
|
+
ClientRequestFactory.prototype.getTemplateSchema = function (templateId, _options) {
|
|
1080
|
+
var _a;
|
|
1057
1081
|
return __awaiter(this, void 0, void 0, function () {
|
|
1058
1082
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1059
|
-
return __generator(this, function (
|
|
1060
|
-
switch (
|
|
1083
|
+
return __generator(this, function (_b) {
|
|
1084
|
+
switch (_b.label) {
|
|
1061
1085
|
case 0:
|
|
1062
1086
|
_config = _options || this.configuration;
|
|
1063
1087
|
if (templateId === null || templateId === undefined) {
|
|
1064
|
-
throw new baseapi_1.RequiredError("
|
|
1088
|
+
throw new baseapi_1.RequiredError("Client", "getTemplateSchema", "templateId");
|
|
1065
1089
|
}
|
|
1066
1090
|
localVarPath = '/templates/{template_id}/schema'
|
|
1067
1091
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1071,26 +1095,59 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1071
1095
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1072
1096
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1073
1097
|
case 1:
|
|
1074
|
-
|
|
1075
|
-
|
|
1098
|
+
_b.sent();
|
|
1099
|
+
_b.label = 2;
|
|
1100
|
+
case 2:
|
|
1101
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1102
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1103
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1104
|
+
case 3:
|
|
1105
|
+
_b.sent();
|
|
1106
|
+
_b.label = 4;
|
|
1107
|
+
case 4: return [2, requestContext];
|
|
1108
|
+
}
|
|
1109
|
+
});
|
|
1110
|
+
});
|
|
1111
|
+
};
|
|
1112
|
+
ClientRequestFactory.prototype.getWebhook = function (webhookId, _options) {
|
|
1113
|
+
var _a;
|
|
1114
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1115
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1116
|
+
return __generator(this, function (_b) {
|
|
1117
|
+
switch (_b.label) {
|
|
1118
|
+
case 0:
|
|
1119
|
+
_config = _options || this.configuration;
|
|
1120
|
+
if (webhookId === null || webhookId === undefined) {
|
|
1121
|
+
throw new baseapi_1.RequiredError("Client", "getWebhook", "webhookId");
|
|
1122
|
+
}
|
|
1123
|
+
localVarPath = '/webhooks/{webhook_id}'
|
|
1124
|
+
.replace('{' + 'webhook_id' + '}', encodeURIComponent(String(webhookId)));
|
|
1125
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
1126
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1127
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
1128
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1129
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1130
|
+
case 1:
|
|
1131
|
+
_b.sent();
|
|
1132
|
+
_b.label = 2;
|
|
1076
1133
|
case 2:
|
|
1077
|
-
defaultAuth = (
|
|
1134
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1078
1135
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1079
1136
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1080
1137
|
case 3:
|
|
1081
|
-
|
|
1082
|
-
|
|
1138
|
+
_b.sent();
|
|
1139
|
+
_b.label = 4;
|
|
1083
1140
|
case 4: return [2, requestContext];
|
|
1084
1141
|
}
|
|
1085
1142
|
});
|
|
1086
1143
|
});
|
|
1087
1144
|
};
|
|
1088
|
-
|
|
1089
|
-
var _a
|
|
1145
|
+
ClientRequestFactory.prototype.listCombinedSubmissions = function (page, perPage, _options) {
|
|
1146
|
+
var _a;
|
|
1090
1147
|
return __awaiter(this, void 0, void 0, function () {
|
|
1091
1148
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1092
|
-
return __generator(this, function (
|
|
1093
|
-
switch (
|
|
1149
|
+
return __generator(this, function (_b) {
|
|
1150
|
+
switch (_b.label) {
|
|
1094
1151
|
case 0:
|
|
1095
1152
|
_config = _options || this.configuration;
|
|
1096
1153
|
localVarPath = '/combined_submissions';
|
|
@@ -1106,26 +1163,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1106
1163
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1107
1164
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1108
1165
|
case 1:
|
|
1109
|
-
|
|
1110
|
-
|
|
1166
|
+
_b.sent();
|
|
1167
|
+
_b.label = 2;
|
|
1111
1168
|
case 2:
|
|
1112
|
-
defaultAuth = (
|
|
1169
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1113
1170
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1114
1171
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1115
1172
|
case 3:
|
|
1116
|
-
|
|
1117
|
-
|
|
1173
|
+
_b.sent();
|
|
1174
|
+
_b.label = 4;
|
|
1118
1175
|
case 4: return [2, requestContext];
|
|
1119
1176
|
}
|
|
1120
1177
|
});
|
|
1121
1178
|
});
|
|
1122
1179
|
};
|
|
1123
|
-
|
|
1124
|
-
var _a
|
|
1180
|
+
ClientRequestFactory.prototype.listFolders = function (parentFolderId, _options) {
|
|
1181
|
+
var _a;
|
|
1125
1182
|
return __awaiter(this, void 0, void 0, function () {
|
|
1126
1183
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1127
|
-
return __generator(this, function (
|
|
1128
|
-
switch (
|
|
1184
|
+
return __generator(this, function (_b) {
|
|
1185
|
+
switch (_b.label) {
|
|
1129
1186
|
case 0:
|
|
1130
1187
|
_config = _options || this.configuration;
|
|
1131
1188
|
localVarPath = '/folders/';
|
|
@@ -1138,26 +1195,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1138
1195
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1139
1196
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1140
1197
|
case 1:
|
|
1141
|
-
|
|
1142
|
-
|
|
1198
|
+
_b.sent();
|
|
1199
|
+
_b.label = 2;
|
|
1143
1200
|
case 2:
|
|
1144
|
-
defaultAuth = (
|
|
1201
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1145
1202
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1146
1203
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1147
1204
|
case 3:
|
|
1148
|
-
|
|
1149
|
-
|
|
1205
|
+
_b.sent();
|
|
1206
|
+
_b.label = 4;
|
|
1150
1207
|
case 4: return [2, requestContext];
|
|
1151
1208
|
}
|
|
1152
1209
|
});
|
|
1153
1210
|
});
|
|
1154
1211
|
};
|
|
1155
|
-
|
|
1156
|
-
var _a
|
|
1212
|
+
ClientRequestFactory.prototype.listSubmissions = function (cursor, limit, createdAfter, createdBefore, type, includeData, _options) {
|
|
1213
|
+
var _a;
|
|
1157
1214
|
return __awaiter(this, void 0, void 0, function () {
|
|
1158
1215
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1159
|
-
return __generator(this, function (
|
|
1160
|
-
switch (
|
|
1216
|
+
return __generator(this, function (_b) {
|
|
1217
|
+
switch (_b.label) {
|
|
1161
1218
|
case 0:
|
|
1162
1219
|
_config = _options || this.configuration;
|
|
1163
1220
|
localVarPath = '/submissions';
|
|
@@ -1185,30 +1242,30 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1185
1242
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1186
1243
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1187
1244
|
case 1:
|
|
1188
|
-
|
|
1189
|
-
|
|
1245
|
+
_b.sent();
|
|
1246
|
+
_b.label = 2;
|
|
1190
1247
|
case 2:
|
|
1191
|
-
defaultAuth = (
|
|
1248
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1192
1249
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1193
1250
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1194
1251
|
case 3:
|
|
1195
|
-
|
|
1196
|
-
|
|
1252
|
+
_b.sent();
|
|
1253
|
+
_b.label = 4;
|
|
1197
1254
|
case 4: return [2, requestContext];
|
|
1198
1255
|
}
|
|
1199
1256
|
});
|
|
1200
1257
|
});
|
|
1201
1258
|
};
|
|
1202
|
-
|
|
1203
|
-
var _a
|
|
1259
|
+
ClientRequestFactory.prototype.listTemplateSubmissions = function (templateId, cursor, limit, createdAfter, createdBefore, type, includeData, _options) {
|
|
1260
|
+
var _a;
|
|
1204
1261
|
return __awaiter(this, void 0, void 0, function () {
|
|
1205
1262
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1206
|
-
return __generator(this, function (
|
|
1207
|
-
switch (
|
|
1263
|
+
return __generator(this, function (_b) {
|
|
1264
|
+
switch (_b.label) {
|
|
1208
1265
|
case 0:
|
|
1209
1266
|
_config = _options || this.configuration;
|
|
1210
1267
|
if (templateId === null || templateId === undefined) {
|
|
1211
|
-
throw new baseapi_1.RequiredError("
|
|
1268
|
+
throw new baseapi_1.RequiredError("Client", "listTemplateSubmissions", "templateId");
|
|
1212
1269
|
}
|
|
1213
1270
|
localVarPath = '/templates/{template_id}/submissions'
|
|
1214
1271
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1236,26 +1293,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1236
1293
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1237
1294
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1238
1295
|
case 1:
|
|
1239
|
-
|
|
1240
|
-
|
|
1296
|
+
_b.sent();
|
|
1297
|
+
_b.label = 2;
|
|
1241
1298
|
case 2:
|
|
1242
|
-
defaultAuth = (
|
|
1299
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1243
1300
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1244
1301
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1245
1302
|
case 3:
|
|
1246
|
-
|
|
1247
|
-
|
|
1303
|
+
_b.sent();
|
|
1304
|
+
_b.label = 4;
|
|
1248
1305
|
case 4: return [2, requestContext];
|
|
1249
1306
|
}
|
|
1250
1307
|
});
|
|
1251
1308
|
});
|
|
1252
1309
|
};
|
|
1253
|
-
|
|
1254
|
-
var _a
|
|
1310
|
+
ClientRequestFactory.prototype.listTemplates = function (query, parentFolderId, page, perPage, _options) {
|
|
1311
|
+
var _a;
|
|
1255
1312
|
return __awaiter(this, void 0, void 0, function () {
|
|
1256
1313
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1257
|
-
return __generator(this, function (
|
|
1258
|
-
switch (
|
|
1314
|
+
return __generator(this, function (_b) {
|
|
1315
|
+
switch (_b.label) {
|
|
1259
1316
|
case 0:
|
|
1260
1317
|
_config = _options || this.configuration;
|
|
1261
1318
|
localVarPath = '/templates';
|
|
@@ -1277,33 +1334,83 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1277
1334
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1278
1335
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1279
1336
|
case 1:
|
|
1280
|
-
|
|
1281
|
-
|
|
1337
|
+
_b.sent();
|
|
1338
|
+
_b.label = 2;
|
|
1339
|
+
case 2:
|
|
1340
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1341
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1342
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1343
|
+
case 3:
|
|
1344
|
+
_b.sent();
|
|
1345
|
+
_b.label = 4;
|
|
1346
|
+
case 4: return [2, requestContext];
|
|
1347
|
+
}
|
|
1348
|
+
});
|
|
1349
|
+
});
|
|
1350
|
+
};
|
|
1351
|
+
ClientRequestFactory.prototype.listWebhooks = function (page, perPage, eventType, mode, templateId, folderId, apiTokenId, _options) {
|
|
1352
|
+
var _a;
|
|
1353
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1354
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1355
|
+
return __generator(this, function (_b) {
|
|
1356
|
+
switch (_b.label) {
|
|
1357
|
+
case 0:
|
|
1358
|
+
_config = _options || this.configuration;
|
|
1359
|
+
localVarPath = '/webhooks';
|
|
1360
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
1361
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1362
|
+
if (page !== undefined) {
|
|
1363
|
+
requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
|
|
1364
|
+
}
|
|
1365
|
+
if (perPage !== undefined) {
|
|
1366
|
+
requestContext.setQueryParam("per_page", ObjectSerializer_1.ObjectSerializer.serialize(perPage, "number", ""));
|
|
1367
|
+
}
|
|
1368
|
+
if (eventType !== undefined) {
|
|
1369
|
+
requestContext.setQueryParam("event_type", ObjectSerializer_1.ObjectSerializer.serialize(eventType, "string", ""));
|
|
1370
|
+
}
|
|
1371
|
+
if (mode !== undefined) {
|
|
1372
|
+
requestContext.setQueryParam("mode", ObjectSerializer_1.ObjectSerializer.serialize(mode, "string", ""));
|
|
1373
|
+
}
|
|
1374
|
+
if (templateId !== undefined) {
|
|
1375
|
+
requestContext.setQueryParam("template_id", ObjectSerializer_1.ObjectSerializer.serialize(templateId, "string", ""));
|
|
1376
|
+
}
|
|
1377
|
+
if (folderId !== undefined) {
|
|
1378
|
+
requestContext.setQueryParam("folder_id", ObjectSerializer_1.ObjectSerializer.serialize(folderId, "string", ""));
|
|
1379
|
+
}
|
|
1380
|
+
if (apiTokenId !== undefined) {
|
|
1381
|
+
requestContext.setQueryParam("api_token_id", ObjectSerializer_1.ObjectSerializer.serialize(apiTokenId, "string", ""));
|
|
1382
|
+
}
|
|
1383
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
1384
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1385
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1386
|
+
case 1:
|
|
1387
|
+
_b.sent();
|
|
1388
|
+
_b.label = 2;
|
|
1282
1389
|
case 2:
|
|
1283
|
-
defaultAuth = (
|
|
1390
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1284
1391
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1285
1392
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1286
1393
|
case 3:
|
|
1287
|
-
|
|
1288
|
-
|
|
1394
|
+
_b.sent();
|
|
1395
|
+
_b.label = 4;
|
|
1289
1396
|
case 4: return [2, requestContext];
|
|
1290
1397
|
}
|
|
1291
1398
|
});
|
|
1292
1399
|
});
|
|
1293
1400
|
};
|
|
1294
|
-
|
|
1295
|
-
var _a
|
|
1401
|
+
ClientRequestFactory.prototype.moveFolderToFolder = function (folderId, data, _options) {
|
|
1402
|
+
var _a;
|
|
1296
1403
|
return __awaiter(this, void 0, void 0, function () {
|
|
1297
1404
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1298
|
-
return __generator(this, function (
|
|
1299
|
-
switch (
|
|
1405
|
+
return __generator(this, function (_b) {
|
|
1406
|
+
switch (_b.label) {
|
|
1300
1407
|
case 0:
|
|
1301
1408
|
_config = _options || this.configuration;
|
|
1302
1409
|
if (folderId === null || folderId === undefined) {
|
|
1303
|
-
throw new baseapi_1.RequiredError("
|
|
1410
|
+
throw new baseapi_1.RequiredError("Client", "moveFolderToFolder", "folderId");
|
|
1304
1411
|
}
|
|
1305
1412
|
if (data === null || data === undefined) {
|
|
1306
|
-
throw new baseapi_1.RequiredError("
|
|
1413
|
+
throw new baseapi_1.RequiredError("Client", "moveFolderToFolder", "data");
|
|
1307
1414
|
}
|
|
1308
1415
|
localVarPath = '/folders/{folder_id}/move'
|
|
1309
1416
|
.replace('{' + 'folder_id' + '}', encodeURIComponent(String(folderId)));
|
|
@@ -1319,33 +1426,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1319
1426
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1320
1427
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1321
1428
|
case 1:
|
|
1322
|
-
|
|
1323
|
-
|
|
1429
|
+
_b.sent();
|
|
1430
|
+
_b.label = 2;
|
|
1324
1431
|
case 2:
|
|
1325
|
-
defaultAuth = (
|
|
1432
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1326
1433
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1327
1434
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1328
1435
|
case 3:
|
|
1329
|
-
|
|
1330
|
-
|
|
1436
|
+
_b.sent();
|
|
1437
|
+
_b.label = 4;
|
|
1331
1438
|
case 4: return [2, requestContext];
|
|
1332
1439
|
}
|
|
1333
1440
|
});
|
|
1334
1441
|
});
|
|
1335
1442
|
};
|
|
1336
|
-
|
|
1337
|
-
var _a
|
|
1443
|
+
ClientRequestFactory.prototype.moveTemplateToFolder = function (templateId, data, _options) {
|
|
1444
|
+
var _a;
|
|
1338
1445
|
return __awaiter(this, void 0, void 0, function () {
|
|
1339
1446
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1340
|
-
return __generator(this, function (
|
|
1341
|
-
switch (
|
|
1447
|
+
return __generator(this, function (_b) {
|
|
1448
|
+
switch (_b.label) {
|
|
1342
1449
|
case 0:
|
|
1343
1450
|
_config = _options || this.configuration;
|
|
1344
1451
|
if (templateId === null || templateId === undefined) {
|
|
1345
|
-
throw new baseapi_1.RequiredError("
|
|
1452
|
+
throw new baseapi_1.RequiredError("Client", "moveTemplateToFolder", "templateId");
|
|
1346
1453
|
}
|
|
1347
1454
|
if (data === null || data === undefined) {
|
|
1348
|
-
throw new baseapi_1.RequiredError("
|
|
1455
|
+
throw new baseapi_1.RequiredError("Client", "moveTemplateToFolder", "data");
|
|
1349
1456
|
}
|
|
1350
1457
|
localVarPath = '/templates/{template_id}/move'
|
|
1351
1458
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1361,33 +1468,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1361
1468
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1362
1469
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1363
1470
|
case 1:
|
|
1364
|
-
|
|
1365
|
-
|
|
1471
|
+
_b.sent();
|
|
1472
|
+
_b.label = 2;
|
|
1366
1473
|
case 2:
|
|
1367
|
-
defaultAuth = (
|
|
1474
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1368
1475
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1369
1476
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1370
1477
|
case 3:
|
|
1371
|
-
|
|
1372
|
-
|
|
1478
|
+
_b.sent();
|
|
1479
|
+
_b.label = 4;
|
|
1373
1480
|
case 4: return [2, requestContext];
|
|
1374
1481
|
}
|
|
1375
1482
|
});
|
|
1376
1483
|
});
|
|
1377
1484
|
};
|
|
1378
|
-
|
|
1379
|
-
var _a
|
|
1485
|
+
ClientRequestFactory.prototype.publishTemplateVersion = function (templateId, data, _options) {
|
|
1486
|
+
var _a;
|
|
1380
1487
|
return __awaiter(this, void 0, void 0, function () {
|
|
1381
1488
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1382
|
-
return __generator(this, function (
|
|
1383
|
-
switch (
|
|
1489
|
+
return __generator(this, function (_b) {
|
|
1490
|
+
switch (_b.label) {
|
|
1384
1491
|
case 0:
|
|
1385
1492
|
_config = _options || this.configuration;
|
|
1386
1493
|
if (templateId === null || templateId === undefined) {
|
|
1387
|
-
throw new baseapi_1.RequiredError("
|
|
1494
|
+
throw new baseapi_1.RequiredError("Client", "publishTemplateVersion", "templateId");
|
|
1388
1495
|
}
|
|
1389
1496
|
if (data === null || data === undefined) {
|
|
1390
|
-
throw new baseapi_1.RequiredError("
|
|
1497
|
+
throw new baseapi_1.RequiredError("Client", "publishTemplateVersion", "data");
|
|
1391
1498
|
}
|
|
1392
1499
|
localVarPath = '/templates/{template_id}/publish_version'
|
|
1393
1500
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1403,33 +1510,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1403
1510
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1404
1511
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1405
1512
|
case 1:
|
|
1406
|
-
|
|
1407
|
-
|
|
1513
|
+
_b.sent();
|
|
1514
|
+
_b.label = 2;
|
|
1408
1515
|
case 2:
|
|
1409
|
-
defaultAuth = (
|
|
1516
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1410
1517
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1411
1518
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1412
1519
|
case 3:
|
|
1413
|
-
|
|
1414
|
-
|
|
1520
|
+
_b.sent();
|
|
1521
|
+
_b.label = 4;
|
|
1415
1522
|
case 4: return [2, requestContext];
|
|
1416
1523
|
}
|
|
1417
1524
|
});
|
|
1418
1525
|
});
|
|
1419
1526
|
};
|
|
1420
|
-
|
|
1421
|
-
var _a
|
|
1527
|
+
ClientRequestFactory.prototype.renameFolder = function (folderId, data, _options) {
|
|
1528
|
+
var _a;
|
|
1422
1529
|
return __awaiter(this, void 0, void 0, function () {
|
|
1423
1530
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1424
|
-
return __generator(this, function (
|
|
1425
|
-
switch (
|
|
1531
|
+
return __generator(this, function (_b) {
|
|
1532
|
+
switch (_b.label) {
|
|
1426
1533
|
case 0:
|
|
1427
1534
|
_config = _options || this.configuration;
|
|
1428
1535
|
if (folderId === null || folderId === undefined) {
|
|
1429
|
-
throw new baseapi_1.RequiredError("
|
|
1536
|
+
throw new baseapi_1.RequiredError("Client", "renameFolder", "folderId");
|
|
1430
1537
|
}
|
|
1431
1538
|
if (data === null || data === undefined) {
|
|
1432
|
-
throw new baseapi_1.RequiredError("
|
|
1539
|
+
throw new baseapi_1.RequiredError("Client", "renameFolder", "data");
|
|
1433
1540
|
}
|
|
1434
1541
|
localVarPath = '/folders/{folder_id}/rename'
|
|
1435
1542
|
.replace('{' + 'folder_id' + '}', encodeURIComponent(String(folderId)));
|
|
@@ -1445,33 +1552,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1445
1552
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1446
1553
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1447
1554
|
case 1:
|
|
1448
|
-
|
|
1449
|
-
|
|
1555
|
+
_b.sent();
|
|
1556
|
+
_b.label = 2;
|
|
1450
1557
|
case 2:
|
|
1451
|
-
defaultAuth = (
|
|
1558
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1452
1559
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1453
1560
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1454
1561
|
case 3:
|
|
1455
|
-
|
|
1456
|
-
|
|
1562
|
+
_b.sent();
|
|
1563
|
+
_b.label = 4;
|
|
1457
1564
|
case 4: return [2, requestContext];
|
|
1458
1565
|
}
|
|
1459
1566
|
});
|
|
1460
1567
|
});
|
|
1461
1568
|
};
|
|
1462
|
-
|
|
1463
|
-
var _a
|
|
1569
|
+
ClientRequestFactory.prototype.restoreTemplateVersion = function (templateId, data, _options) {
|
|
1570
|
+
var _a;
|
|
1464
1571
|
return __awaiter(this, void 0, void 0, function () {
|
|
1465
1572
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1466
|
-
return __generator(this, function (
|
|
1467
|
-
switch (
|
|
1573
|
+
return __generator(this, function (_b) {
|
|
1574
|
+
switch (_b.label) {
|
|
1468
1575
|
case 0:
|
|
1469
1576
|
_config = _options || this.configuration;
|
|
1470
1577
|
if (templateId === null || templateId === undefined) {
|
|
1471
|
-
throw new baseapi_1.RequiredError("
|
|
1578
|
+
throw new baseapi_1.RequiredError("Client", "restoreTemplateVersion", "templateId");
|
|
1472
1579
|
}
|
|
1473
1580
|
if (data === null || data === undefined) {
|
|
1474
|
-
throw new baseapi_1.RequiredError("
|
|
1581
|
+
throw new baseapi_1.RequiredError("Client", "restoreTemplateVersion", "data");
|
|
1475
1582
|
}
|
|
1476
1583
|
localVarPath = '/templates/{template_id}/restore_version'
|
|
1477
1584
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1487,26 +1594,26 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1487
1594
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1488
1595
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1489
1596
|
case 1:
|
|
1490
|
-
|
|
1491
|
-
|
|
1597
|
+
_b.sent();
|
|
1598
|
+
_b.label = 2;
|
|
1492
1599
|
case 2:
|
|
1493
|
-
defaultAuth = (
|
|
1600
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1494
1601
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1495
1602
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1496
1603
|
case 3:
|
|
1497
|
-
|
|
1498
|
-
|
|
1604
|
+
_b.sent();
|
|
1605
|
+
_b.label = 4;
|
|
1499
1606
|
case 4: return [2, requestContext];
|
|
1500
1607
|
}
|
|
1501
1608
|
});
|
|
1502
1609
|
});
|
|
1503
1610
|
};
|
|
1504
|
-
|
|
1505
|
-
var _a
|
|
1611
|
+
ClientRequestFactory.prototype.testAuthentication = function (_options) {
|
|
1612
|
+
var _a;
|
|
1506
1613
|
return __awaiter(this, void 0, void 0, function () {
|
|
1507
1614
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1508
|
-
return __generator(this, function (
|
|
1509
|
-
switch (
|
|
1615
|
+
return __generator(this, function (_b) {
|
|
1616
|
+
switch (_b.label) {
|
|
1510
1617
|
case 0:
|
|
1511
1618
|
_config = _options || this.configuration;
|
|
1512
1619
|
localVarPath = '/authentication';
|
|
@@ -1516,33 +1623,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1516
1623
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1517
1624
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1518
1625
|
case 1:
|
|
1519
|
-
|
|
1520
|
-
|
|
1626
|
+
_b.sent();
|
|
1627
|
+
_b.label = 2;
|
|
1521
1628
|
case 2:
|
|
1522
|
-
defaultAuth = (
|
|
1629
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1523
1630
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1524
1631
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1525
1632
|
case 3:
|
|
1526
|
-
|
|
1527
|
-
|
|
1633
|
+
_b.sent();
|
|
1634
|
+
_b.label = 4;
|
|
1528
1635
|
case 4: return [2, requestContext];
|
|
1529
1636
|
}
|
|
1530
1637
|
});
|
|
1531
1638
|
});
|
|
1532
1639
|
};
|
|
1533
|
-
|
|
1534
|
-
var _a
|
|
1640
|
+
ClientRequestFactory.prototype.updateDataRequest = function (dataRequestId, data, _options) {
|
|
1641
|
+
var _a;
|
|
1535
1642
|
return __awaiter(this, void 0, void 0, function () {
|
|
1536
1643
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1537
|
-
return __generator(this, function (
|
|
1538
|
-
switch (
|
|
1644
|
+
return __generator(this, function (_b) {
|
|
1645
|
+
switch (_b.label) {
|
|
1539
1646
|
case 0:
|
|
1540
1647
|
_config = _options || this.configuration;
|
|
1541
1648
|
if (dataRequestId === null || dataRequestId === undefined) {
|
|
1542
|
-
throw new baseapi_1.RequiredError("
|
|
1649
|
+
throw new baseapi_1.RequiredError("Client", "updateDataRequest", "dataRequestId");
|
|
1543
1650
|
}
|
|
1544
1651
|
if (data === null || data === undefined) {
|
|
1545
|
-
throw new baseapi_1.RequiredError("
|
|
1652
|
+
throw new baseapi_1.RequiredError("Client", "updateDataRequest", "data");
|
|
1546
1653
|
}
|
|
1547
1654
|
localVarPath = '/data_requests/{data_request_id}'
|
|
1548
1655
|
.replace('{' + 'data_request_id' + '}', encodeURIComponent(String(dataRequestId)));
|
|
@@ -1558,33 +1665,33 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1558
1665
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1559
1666
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1560
1667
|
case 1:
|
|
1561
|
-
|
|
1562
|
-
|
|
1668
|
+
_b.sent();
|
|
1669
|
+
_b.label = 2;
|
|
1563
1670
|
case 2:
|
|
1564
|
-
defaultAuth = (
|
|
1671
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1565
1672
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1566
1673
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1567
1674
|
case 3:
|
|
1568
|
-
|
|
1569
|
-
|
|
1675
|
+
_b.sent();
|
|
1676
|
+
_b.label = 4;
|
|
1570
1677
|
case 4: return [2, requestContext];
|
|
1571
1678
|
}
|
|
1572
1679
|
});
|
|
1573
1680
|
});
|
|
1574
1681
|
};
|
|
1575
|
-
|
|
1576
|
-
var _a
|
|
1682
|
+
ClientRequestFactory.prototype.updateTemplate = function (templateId, data, _options) {
|
|
1683
|
+
var _a;
|
|
1577
1684
|
return __awaiter(this, void 0, void 0, function () {
|
|
1578
1685
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1579
|
-
return __generator(this, function (
|
|
1580
|
-
switch (
|
|
1686
|
+
return __generator(this, function (_b) {
|
|
1687
|
+
switch (_b.label) {
|
|
1581
1688
|
case 0:
|
|
1582
1689
|
_config = _options || this.configuration;
|
|
1583
1690
|
if (templateId === null || templateId === undefined) {
|
|
1584
|
-
throw new baseapi_1.RequiredError("
|
|
1691
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplate", "templateId");
|
|
1585
1692
|
}
|
|
1586
1693
|
if (data === null || data === undefined) {
|
|
1587
|
-
throw new baseapi_1.RequiredError("
|
|
1694
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplate", "data");
|
|
1588
1695
|
}
|
|
1589
1696
|
localVarPath = '/templates/{template_id}'
|
|
1590
1697
|
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
@@ -1600,90 +1707,234 @@ var PDFApiRequestFactory = (function (_super) {
|
|
|
1600
1707
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1601
1708
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1602
1709
|
case 1:
|
|
1603
|
-
|
|
1604
|
-
|
|
1710
|
+
_b.sent();
|
|
1711
|
+
_b.label = 2;
|
|
1605
1712
|
case 2:
|
|
1606
|
-
defaultAuth = (
|
|
1713
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1607
1714
|
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1608
1715
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1609
1716
|
case 3:
|
|
1610
|
-
|
|
1611
|
-
|
|
1717
|
+
_b.sent();
|
|
1718
|
+
_b.label = 4;
|
|
1612
1719
|
case 4: return [2, requestContext];
|
|
1613
1720
|
}
|
|
1614
1721
|
});
|
|
1615
1722
|
});
|
|
1616
1723
|
};
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
exports.PDFApiRequestFactory = PDFApiRequestFactory;
|
|
1620
|
-
var PDFApiResponseProcessor = (function () {
|
|
1621
|
-
function PDFApiResponseProcessor() {
|
|
1622
|
-
}
|
|
1623
|
-
PDFApiResponseProcessor.prototype.addFieldsToTemplateWithHttpInfo = function (response) {
|
|
1724
|
+
ClientRequestFactory.prototype.updateTemplateDocument = function (templateId, templateDocument, templateName, _options) {
|
|
1725
|
+
var _a;
|
|
1624
1726
|
return __awaiter(this, void 0, void 0, function () {
|
|
1625
|
-
var
|
|
1626
|
-
return __generator(this, function (
|
|
1627
|
-
switch (
|
|
1727
|
+
var _config, localVarPath, requestContext, useForm, localVarFormParams, contentType, authMethod, defaultAuth;
|
|
1728
|
+
return __generator(this, function (_b) {
|
|
1729
|
+
switch (_b.label) {
|
|
1628
1730
|
case 0:
|
|
1629
|
-
|
|
1630
|
-
if (
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1731
|
+
_config = _options || this.configuration;
|
|
1732
|
+
if (templateId === null || templateId === undefined) {
|
|
1733
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplateDocument", "templateId");
|
|
1734
|
+
}
|
|
1735
|
+
if (templateDocument === null || templateDocument === undefined) {
|
|
1736
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplateDocument", "templateDocument");
|
|
1737
|
+
}
|
|
1738
|
+
localVarPath = '/templates/{template_id}?endpoint_variant=update_template_pdf_with_form_post'
|
|
1739
|
+
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
1740
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
1741
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1742
|
+
useForm = (0, util_1.canConsumeForm)([
|
|
1743
|
+
'multipart/form-data',
|
|
1744
|
+
]);
|
|
1745
|
+
if (useForm) {
|
|
1746
|
+
localVarFormParams = new FormData();
|
|
1747
|
+
}
|
|
1748
|
+
else {
|
|
1749
|
+
localVarFormParams = new URLSearchParams();
|
|
1750
|
+
}
|
|
1751
|
+
if (templateDocument !== undefined) {
|
|
1752
|
+
if (localVarFormParams instanceof FormData) {
|
|
1753
|
+
localVarFormParams.append('template[document]', templateDocument, templateDocument.name);
|
|
1754
|
+
}
|
|
1755
|
+
}
|
|
1756
|
+
if (templateName !== undefined) {
|
|
1757
|
+
localVarFormParams.append('template[name]', templateName);
|
|
1758
|
+
}
|
|
1759
|
+
requestContext.setBody(localVarFormParams);
|
|
1760
|
+
if (!useForm) {
|
|
1761
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1762
|
+
"multipart/form-data"
|
|
1763
|
+
]);
|
|
1764
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1765
|
+
}
|
|
1766
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
1767
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1768
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1634
1769
|
case 1:
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1770
|
+
_b.sent();
|
|
1771
|
+
_b.label = 2;
|
|
1638
1772
|
case 2:
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
return [4, response.body.text()];
|
|
1773
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1774
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1775
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1643
1776
|
case 3:
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
case 4:
|
|
1648
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1649
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1650
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1651
|
-
return [4, response.body.text()];
|
|
1652
|
-
case 5:
|
|
1653
|
-
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1654
|
-
"TemplateAddFieldsResponse", ""]);
|
|
1655
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1656
|
-
case 6:
|
|
1657
|
-
_o = exception_1.ApiException.bind;
|
|
1658
|
-
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1659
|
-
return [4, response.getBodyAsAny()];
|
|
1660
|
-
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1777
|
+
_b.sent();
|
|
1778
|
+
_b.label = 4;
|
|
1779
|
+
case 4: return [2, requestContext];
|
|
1661
1780
|
}
|
|
1662
1781
|
});
|
|
1663
1782
|
});
|
|
1664
1783
|
};
|
|
1665
|
-
|
|
1784
|
+
ClientRequestFactory.prototype.updateTemplateDocumentFromUpload = function (templateId, data, _options) {
|
|
1785
|
+
var _a;
|
|
1666
1786
|
return __awaiter(this, void 0, void 0, function () {
|
|
1667
|
-
var
|
|
1668
|
-
return __generator(this, function (
|
|
1669
|
-
switch (
|
|
1787
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1788
|
+
return __generator(this, function (_b) {
|
|
1789
|
+
switch (_b.label) {
|
|
1670
1790
|
case 0:
|
|
1671
|
-
|
|
1672
|
-
if (
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1791
|
+
_config = _options || this.configuration;
|
|
1792
|
+
if (templateId === null || templateId === undefined) {
|
|
1793
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplateDocumentFromUpload", "templateId");
|
|
1794
|
+
}
|
|
1795
|
+
if (data === null || data === undefined) {
|
|
1796
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplateDocumentFromUpload", "data");
|
|
1797
|
+
}
|
|
1798
|
+
localVarPath = '/templates/{template_id}?endpoint_variant=update_template_pdf_with_cached_upload'
|
|
1799
|
+
.replace('{' + 'template_id' + '}', encodeURIComponent(String(templateId)));
|
|
1800
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
1801
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1802
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1803
|
+
"application/json"
|
|
1804
|
+
]);
|
|
1805
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1806
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(data, "UpdatePdfTemplate", ""), contentType);
|
|
1807
|
+
requestContext.setBody(serializedBody);
|
|
1808
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
1809
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1810
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1811
|
+
case 1:
|
|
1812
|
+
_b.sent();
|
|
1813
|
+
_b.label = 2;
|
|
1814
|
+
case 2:
|
|
1815
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1816
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1817
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1818
|
+
case 3:
|
|
1819
|
+
_b.sent();
|
|
1820
|
+
_b.label = 4;
|
|
1821
|
+
case 4: return [2, requestContext];
|
|
1822
|
+
}
|
|
1823
|
+
});
|
|
1824
|
+
});
|
|
1825
|
+
};
|
|
1826
|
+
ClientRequestFactory.prototype.updateWebhook = function (webhookId, data, _options) {
|
|
1827
|
+
var _a;
|
|
1828
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1829
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1830
|
+
return __generator(this, function (_b) {
|
|
1831
|
+
switch (_b.label) {
|
|
1832
|
+
case 0:
|
|
1833
|
+
_config = _options || this.configuration;
|
|
1834
|
+
if (webhookId === null || webhookId === undefined) {
|
|
1835
|
+
throw new baseapi_1.RequiredError("Client", "updateWebhook", "webhookId");
|
|
1836
|
+
}
|
|
1837
|
+
if (data === null || data === undefined) {
|
|
1838
|
+
throw new baseapi_1.RequiredError("Client", "updateWebhook", "data");
|
|
1839
|
+
}
|
|
1840
|
+
localVarPath = '/webhooks/{webhook_id}'
|
|
1841
|
+
.replace('{' + 'webhook_id' + '}', encodeURIComponent(String(webhookId)));
|
|
1842
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
1843
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1844
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1845
|
+
"application/json"
|
|
1846
|
+
]);
|
|
1847
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1848
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(data, "UpdateWebhookData", ""), contentType);
|
|
1849
|
+
requestContext.setBody(serializedBody);
|
|
1850
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
1851
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1852
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1853
|
+
case 1:
|
|
1854
|
+
_b.sent();
|
|
1855
|
+
_b.label = 2;
|
|
1856
|
+
case 2:
|
|
1857
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1858
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1859
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1860
|
+
case 3:
|
|
1861
|
+
_b.sent();
|
|
1862
|
+
_b.label = 4;
|
|
1863
|
+
case 4: return [2, requestContext];
|
|
1864
|
+
}
|
|
1865
|
+
});
|
|
1866
|
+
});
|
|
1867
|
+
};
|
|
1868
|
+
return ClientRequestFactory;
|
|
1869
|
+
}(baseapi_1.BaseAPIRequestFactory));
|
|
1870
|
+
exports.ClientRequestFactory = ClientRequestFactory;
|
|
1871
|
+
var ClientResponseProcessor = (function () {
|
|
1872
|
+
function ClientResponseProcessor() {
|
|
1873
|
+
}
|
|
1874
|
+
ClientResponseProcessor.prototype.addFieldsToTemplateWithHttpInfo = function (response) {
|
|
1875
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1876
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1877
|
+
return __generator(this, function (_q) {
|
|
1878
|
+
switch (_q.label) {
|
|
1879
|
+
case 0:
|
|
1880
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1881
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1882
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1883
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1884
|
+
return [4, response.body.text()];
|
|
1885
|
+
case 1:
|
|
1886
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1887
|
+
"TemplateAddFieldsResponse", ""]);
|
|
1888
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1889
|
+
case 2:
|
|
1890
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
1891
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1892
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1893
|
+
return [4, response.body.text()];
|
|
1894
|
+
case 3:
|
|
1895
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1896
|
+
"TemplateAddFieldsResponse", ""]);
|
|
1897
|
+
throw new exception_1.ApiException(response.httpStatusCode, "add fields error", body, response.headers);
|
|
1898
|
+
case 4:
|
|
1899
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1900
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1901
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1902
|
+
return [4, response.body.text()];
|
|
1903
|
+
case 5:
|
|
1904
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1905
|
+
"TemplateAddFieldsResponse", ""]);
|
|
1906
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1907
|
+
case 6:
|
|
1908
|
+
_o = exception_1.ApiException.bind;
|
|
1909
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1910
|
+
return [4, response.getBodyAsAny()];
|
|
1911
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1912
|
+
}
|
|
1913
|
+
});
|
|
1914
|
+
});
|
|
1915
|
+
};
|
|
1916
|
+
ClientResponseProcessor.prototype.batchGeneratePdfsWithHttpInfo = function (response) {
|
|
1917
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1918
|
+
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;
|
|
1919
|
+
return __generator(this, function (_2) {
|
|
1920
|
+
switch (_2.label) {
|
|
1921
|
+
case 0:
|
|
1922
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1923
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
1924
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1925
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1926
|
+
return [4, response.body.text()];
|
|
1927
|
+
case 1:
|
|
1928
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
1929
|
+
"BatchGeneratePdfs201Response", ""]);
|
|
1930
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1931
|
+
case 2:
|
|
1932
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 4];
|
|
1933
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1934
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1935
|
+
return [4, response.body.text()];
|
|
1936
|
+
case 3:
|
|
1937
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
1687
1938
|
"BatchGeneratePdfs201Response", ""]);
|
|
1688
1939
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1689
1940
|
case 4:
|
|
@@ -1702,7 +1953,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1702
1953
|
return [4, response.body.text()];
|
|
1703
1954
|
case 7:
|
|
1704
1955
|
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1705
|
-
"
|
|
1956
|
+
"ErrorOrMultipleErrorsResponse", ""]);
|
|
1706
1957
|
throw new exception_1.ApiException(response.httpStatusCode, "array of arrays", body, response.headers);
|
|
1707
1958
|
case 8:
|
|
1708
1959
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 10];
|
|
@@ -1731,11 +1982,11 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1731
1982
|
});
|
|
1732
1983
|
});
|
|
1733
1984
|
};
|
|
1734
|
-
|
|
1985
|
+
ClientResponseProcessor.prototype.combinePdfsWithHttpInfo = function (response) {
|
|
1735
1986
|
return __awaiter(this, void 0, void 0, function () {
|
|
1736
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
1737
|
-
return __generator(this, function (
|
|
1738
|
-
switch (
|
|
1987
|
+
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;
|
|
1988
|
+
return __generator(this, function (_2) {
|
|
1989
|
+
switch (_2.label) {
|
|
1739
1990
|
case 0:
|
|
1740
1991
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1741
1992
|
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
@@ -1743,7 +1994,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1743
1994
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1744
1995
|
return [4, response.body.text()];
|
|
1745
1996
|
case 1:
|
|
1746
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1997
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
1747
1998
|
"CreateCombinedSubmissionResponse", ""]);
|
|
1748
1999
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1749
2000
|
case 2:
|
|
@@ -1752,106 +2003,55 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1752
2003
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1753
2004
|
return [4, response.body.text()];
|
|
1754
2005
|
case 3:
|
|
1755
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2006
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
1756
2007
|
"MultipleErrorsResponse", ""]);
|
|
1757
2008
|
throw new exception_1.ApiException(response.httpStatusCode, "invalid request", body, response.headers);
|
|
1758
2009
|
case 4:
|
|
1759
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2010
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
|
|
1760
2011
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1761
2012
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1762
2013
|
return [4, response.body.text()];
|
|
1763
2014
|
case 5:
|
|
1764
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2015
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
1765
2016
|
"ErrorResponse", ""]);
|
|
1766
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
2017
|
+
throw new exception_1.ApiException(response.httpStatusCode, "test API token used to delete custom files", body, response.headers);
|
|
1767
2018
|
case 6:
|
|
1768
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2019
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 8];
|
|
1769
2020
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1770
2021
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1771
2022
|
return [4, response.body.text()];
|
|
1772
2023
|
case 7:
|
|
1773
|
-
body = _p.apply(_o, [_r.apply(_q, [
|
|
2024
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1774
2025
|
"ErrorResponse", ""]);
|
|
1775
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
2026
|
+
throw new exception_1.ApiException(response.httpStatusCode, "invalid JSON", body, response.headers);
|
|
1776
2027
|
case 8:
|
|
1777
|
-
if (!(
|
|
2028
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 10];
|
|
1778
2029
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1779
2030
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1780
2031
|
return [4, response.body.text()];
|
|
1781
2032
|
case 9:
|
|
1782
|
-
body = _t.apply(_s, [_v.apply(_u, [
|
|
1783
|
-
"CreateCombinedSubmissionResponse", ""]);
|
|
1784
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1785
|
-
case 10:
|
|
1786
|
-
_w = exception_1.ApiException.bind;
|
|
1787
|
-
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1788
|
-
return [4, response.getBodyAsAny()];
|
|
1789
|
-
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
1790
|
-
}
|
|
1791
|
-
});
|
|
1792
|
-
});
|
|
1793
|
-
};
|
|
1794
|
-
PDFApiResponseProcessor.prototype.combineSubmissionsWithHttpInfo = function (response) {
|
|
1795
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1796
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
1797
|
-
return __generator(this, function (_y) {
|
|
1798
|
-
switch (_y.label) {
|
|
1799
|
-
case 0:
|
|
1800
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1801
|
-
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
1802
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1803
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1804
|
-
return [4, response.body.text()];
|
|
1805
|
-
case 1:
|
|
1806
|
-
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
1807
|
-
"CreateCombinedSubmissionResponse", ""]);
|
|
1808
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1809
|
-
case 2:
|
|
1810
|
-
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
1811
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1812
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1813
|
-
return [4, response.body.text()];
|
|
1814
|
-
case 3:
|
|
1815
|
-
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
1816
|
-
"MultipleErrorsResponse", ""]);
|
|
1817
|
-
throw new exception_1.ApiException(response.httpStatusCode, "invalid request", body, response.headers);
|
|
1818
|
-
case 4:
|
|
1819
|
-
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 6];
|
|
1820
|
-
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1821
|
-
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1822
|
-
return [4, response.body.text()];
|
|
1823
|
-
case 5:
|
|
1824
|
-
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
1825
|
-
"ErrorResponse", ""]);
|
|
1826
|
-
throw new exception_1.ApiException(response.httpStatusCode, "invalid JSON", body, response.headers);
|
|
1827
|
-
case 6:
|
|
1828
|
-
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 8];
|
|
1829
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1830
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1831
|
-
return [4, response.body.text()];
|
|
1832
|
-
case 7:
|
|
1833
|
-
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
2033
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
1834
2034
|
"ErrorResponse", ""]);
|
|
1835
2035
|
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
1836
|
-
case
|
|
1837
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3,
|
|
1838
|
-
|
|
1839
|
-
|
|
2036
|
+
case 10:
|
|
2037
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
2038
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2039
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1840
2040
|
return [4, response.body.text()];
|
|
1841
|
-
case
|
|
1842
|
-
body =
|
|
2041
|
+
case 11:
|
|
2042
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
1843
2043
|
"CreateCombinedSubmissionResponse", ""]);
|
|
1844
2044
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1845
|
-
case
|
|
1846
|
-
|
|
1847
|
-
|
|
2045
|
+
case 12:
|
|
2046
|
+
_0 = exception_1.ApiException.bind;
|
|
2047
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1848
2048
|
return [4, response.getBodyAsAny()];
|
|
1849
|
-
case
|
|
2049
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
1850
2050
|
}
|
|
1851
2051
|
});
|
|
1852
2052
|
});
|
|
1853
2053
|
};
|
|
1854
|
-
|
|
2054
|
+
ClientResponseProcessor.prototype.copyTemplateWithHttpInfo = function (response) {
|
|
1855
2055
|
return __awaiter(this, void 0, void 0, function () {
|
|
1856
2056
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1857
2057
|
return __generator(this, function (_q) {
|
|
@@ -1893,7 +2093,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1893
2093
|
});
|
|
1894
2094
|
});
|
|
1895
2095
|
};
|
|
1896
|
-
|
|
2096
|
+
ClientResponseProcessor.prototype.createCustomFileFromUploadWithHttpInfo = function (response) {
|
|
1897
2097
|
return __awaiter(this, void 0, void 0, function () {
|
|
1898
2098
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1899
2099
|
return __generator(this, function (_q) {
|
|
@@ -1935,7 +2135,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1935
2135
|
});
|
|
1936
2136
|
});
|
|
1937
2137
|
};
|
|
1938
|
-
|
|
2138
|
+
ClientResponseProcessor.prototype.createDataRequestEventWithHttpInfo = function (response) {
|
|
1939
2139
|
return __awaiter(this, void 0, void 0, function () {
|
|
1940
2140
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1941
2141
|
return __generator(this, function (_u) {
|
|
@@ -1986,7 +2186,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
1986
2186
|
});
|
|
1987
2187
|
});
|
|
1988
2188
|
};
|
|
1989
|
-
|
|
2189
|
+
ClientResponseProcessor.prototype.createDataRequestTokenWithHttpInfo = function (response) {
|
|
1990
2190
|
return __awaiter(this, void 0, void 0, function () {
|
|
1991
2191
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1992
2192
|
return __generator(this, function (_u) {
|
|
@@ -2037,7 +2237,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2037
2237
|
});
|
|
2038
2238
|
});
|
|
2039
2239
|
};
|
|
2040
|
-
|
|
2240
|
+
ClientResponseProcessor.prototype.createFolderWithHttpInfo = function (response) {
|
|
2041
2241
|
return __awaiter(this, void 0, void 0, function () {
|
|
2042
2242
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
2043
2243
|
return __generator(this, function (_y) {
|
|
@@ -2097,7 +2297,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2097
2297
|
});
|
|
2098
2298
|
});
|
|
2099
2299
|
};
|
|
2100
|
-
|
|
2300
|
+
ClientResponseProcessor.prototype.createHtmlTemplateWithHttpInfo = function (response) {
|
|
2101
2301
|
return __awaiter(this, void 0, void 0, function () {
|
|
2102
2302
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2103
2303
|
return __generator(this, function (_q) {
|
|
@@ -2139,7 +2339,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2139
2339
|
});
|
|
2140
2340
|
});
|
|
2141
2341
|
};
|
|
2142
|
-
|
|
2342
|
+
ClientResponseProcessor.prototype.createPdfTemplateWithHttpInfo = function (response) {
|
|
2143
2343
|
return __awaiter(this, void 0, void 0, function () {
|
|
2144
2344
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2145
2345
|
return __generator(this, function (_q) {
|
|
@@ -2181,7 +2381,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2181
2381
|
});
|
|
2182
2382
|
});
|
|
2183
2383
|
};
|
|
2184
|
-
|
|
2384
|
+
ClientResponseProcessor.prototype.createPdfTemplateFromUploadWithHttpInfo = function (response) {
|
|
2185
2385
|
return __awaiter(this, void 0, void 0, function () {
|
|
2186
2386
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2187
2387
|
return __generator(this, function (_q) {
|
|
@@ -2223,7 +2423,58 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2223
2423
|
});
|
|
2224
2424
|
});
|
|
2225
2425
|
};
|
|
2226
|
-
|
|
2426
|
+
ClientResponseProcessor.prototype.createWebhookWithHttpInfo = function (response) {
|
|
2427
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2428
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2429
|
+
return __generator(this, function (_u) {
|
|
2430
|
+
switch (_u.label) {
|
|
2431
|
+
case 0:
|
|
2432
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2433
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
2434
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2435
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2436
|
+
return [4, response.body.text()];
|
|
2437
|
+
case 1:
|
|
2438
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2439
|
+
"Webhook", ""]);
|
|
2440
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2441
|
+
case 2:
|
|
2442
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
2443
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2444
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2445
|
+
return [4, response.body.text()];
|
|
2446
|
+
case 3:
|
|
2447
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2448
|
+
"MultipleErrorsResponse", ""]);
|
|
2449
|
+
throw new exception_1.ApiException(response.httpStatusCode, "invalid parameters", body, response.headers);
|
|
2450
|
+
case 4:
|
|
2451
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 6];
|
|
2452
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2453
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2454
|
+
return [4, response.body.text()];
|
|
2455
|
+
case 5:
|
|
2456
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2457
|
+
"ErrorResponse", ""]);
|
|
2458
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
2459
|
+
case 6:
|
|
2460
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2461
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2462
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2463
|
+
return [4, response.body.text()];
|
|
2464
|
+
case 7:
|
|
2465
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2466
|
+
"Webhook", ""]);
|
|
2467
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2468
|
+
case 8:
|
|
2469
|
+
_s = exception_1.ApiException.bind;
|
|
2470
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2471
|
+
return [4, response.getBodyAsAny()];
|
|
2472
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2473
|
+
}
|
|
2474
|
+
});
|
|
2475
|
+
});
|
|
2476
|
+
};
|
|
2477
|
+
ClientResponseProcessor.prototype.deleteFolderWithHttpInfo = function (response) {
|
|
2227
2478
|
return __awaiter(this, void 0, void 0, function () {
|
|
2228
2479
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
2229
2480
|
return __generator(this, function (_y) {
|
|
@@ -2283,7 +2534,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2283
2534
|
});
|
|
2284
2535
|
});
|
|
2285
2536
|
};
|
|
2286
|
-
|
|
2537
|
+
ClientResponseProcessor.prototype.deleteTemplateWithHttpInfo = function (response) {
|
|
2287
2538
|
return __awaiter(this, void 0, void 0, function () {
|
|
2288
2539
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2289
2540
|
return __generator(this, function (_u) {
|
|
@@ -2334,7 +2585,58 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2334
2585
|
});
|
|
2335
2586
|
});
|
|
2336
2587
|
};
|
|
2337
|
-
|
|
2588
|
+
ClientResponseProcessor.prototype.deleteWebhookWithHttpInfo = function (response) {
|
|
2589
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2590
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2591
|
+
return __generator(this, function (_u) {
|
|
2592
|
+
switch (_u.label) {
|
|
2593
|
+
case 0:
|
|
2594
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2595
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
2596
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2597
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2598
|
+
return [4, response.body.text()];
|
|
2599
|
+
case 1:
|
|
2600
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2601
|
+
"Webhook", ""]);
|
|
2602
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2603
|
+
case 2:
|
|
2604
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
|
|
2605
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2606
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2607
|
+
return [4, response.body.text()];
|
|
2608
|
+
case 3:
|
|
2609
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2610
|
+
"ErrorResponse", ""]);
|
|
2611
|
+
throw new exception_1.ApiException(response.httpStatusCode, "webhook not found", body, response.headers);
|
|
2612
|
+
case 4:
|
|
2613
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 6];
|
|
2614
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2615
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2616
|
+
return [4, response.body.text()];
|
|
2617
|
+
case 5:
|
|
2618
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2619
|
+
"ErrorResponse", ""]);
|
|
2620
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
2621
|
+
case 6:
|
|
2622
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2623
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2624
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2625
|
+
return [4, response.body.text()];
|
|
2626
|
+
case 7:
|
|
2627
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2628
|
+
"Webhook", ""]);
|
|
2629
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2630
|
+
case 8:
|
|
2631
|
+
_s = exception_1.ApiException.bind;
|
|
2632
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2633
|
+
return [4, response.getBodyAsAny()];
|
|
2634
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2635
|
+
}
|
|
2636
|
+
});
|
|
2637
|
+
});
|
|
2638
|
+
};
|
|
2639
|
+
ClientResponseProcessor.prototype.expireCombinedSubmissionWithHttpInfo = function (response) {
|
|
2338
2640
|
return __awaiter(this, void 0, void 0, function () {
|
|
2339
2641
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
2340
2642
|
return __generator(this, function (_y) {
|
|
@@ -2394,7 +2696,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2394
2696
|
});
|
|
2395
2697
|
});
|
|
2396
2698
|
};
|
|
2397
|
-
|
|
2699
|
+
ClientResponseProcessor.prototype.expireSubmissionWithHttpInfo = function (response) {
|
|
2398
2700
|
return __awaiter(this, void 0, void 0, function () {
|
|
2399
2701
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
2400
2702
|
return __generator(this, function (_y) {
|
|
@@ -2454,7 +2756,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2454
2756
|
});
|
|
2455
2757
|
});
|
|
2456
2758
|
};
|
|
2457
|
-
|
|
2759
|
+
ClientResponseProcessor.prototype.generatePdfWithHttpInfo = function (response) {
|
|
2458
2760
|
return __awaiter(this, void 0, void 0, function () {
|
|
2459
2761
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2460
2762
|
return __generator(this, function (_u) {
|
|
@@ -2476,7 +2778,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2476
2778
|
return [4, response.body.text()];
|
|
2477
2779
|
case 3:
|
|
2478
2780
|
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2479
|
-
"
|
|
2781
|
+
"Submission422Response", ""]);
|
|
2480
2782
|
throw new exception_1.ApiException(response.httpStatusCode, "invalid request", body, response.headers);
|
|
2481
2783
|
case 4:
|
|
2482
2784
|
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 6];
|
|
@@ -2505,40 +2807,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2505
2807
|
});
|
|
2506
2808
|
});
|
|
2507
2809
|
};
|
|
2508
|
-
|
|
2509
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2510
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
2511
|
-
return __generator(this, function (_l) {
|
|
2512
|
-
switch (_l.label) {
|
|
2513
|
-
case 0:
|
|
2514
|
-
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2515
|
-
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
2516
|
-
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2517
|
-
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2518
|
-
return [4, response.body.text()];
|
|
2519
|
-
case 1:
|
|
2520
|
-
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2521
|
-
"CreateSubmissionResponse", ""]);
|
|
2522
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2523
|
-
case 2:
|
|
2524
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
2525
|
-
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2526
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2527
|
-
return [4, response.body.text()];
|
|
2528
|
-
case 3:
|
|
2529
|
-
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
2530
|
-
"CreateSubmissionResponse", ""]);
|
|
2531
|
-
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2532
|
-
case 4:
|
|
2533
|
-
_j = exception_1.ApiException.bind;
|
|
2534
|
-
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2535
|
-
return [4, response.getBodyAsAny()];
|
|
2536
|
-
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
2537
|
-
}
|
|
2538
|
-
});
|
|
2539
|
-
});
|
|
2540
|
-
};
|
|
2541
|
-
PDFApiResponseProcessor.prototype.generatePreviewWithHttpInfo = function (response) {
|
|
2810
|
+
ClientResponseProcessor.prototype.generatePreviewWithHttpInfo = function (response) {
|
|
2542
2811
|
return __awaiter(this, void 0, void 0, function () {
|
|
2543
2812
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2544
2813
|
return __generator(this, function (_u) {
|
|
@@ -2589,7 +2858,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2589
2858
|
});
|
|
2590
2859
|
});
|
|
2591
2860
|
};
|
|
2592
|
-
|
|
2861
|
+
ClientResponseProcessor.prototype.getCombinedSubmissionWithHttpInfo = function (response) {
|
|
2593
2862
|
return __awaiter(this, void 0, void 0, function () {
|
|
2594
2863
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2595
2864
|
return __generator(this, function (_u) {
|
|
@@ -2640,7 +2909,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2640
2909
|
});
|
|
2641
2910
|
});
|
|
2642
2911
|
};
|
|
2643
|
-
|
|
2912
|
+
ClientResponseProcessor.prototype.getDataRequestWithHttpInfo = function (response) {
|
|
2644
2913
|
return __awaiter(this, void 0, void 0, function () {
|
|
2645
2914
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2646
2915
|
return __generator(this, function (_u) {
|
|
@@ -2691,7 +2960,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2691
2960
|
});
|
|
2692
2961
|
});
|
|
2693
2962
|
};
|
|
2694
|
-
|
|
2963
|
+
ClientResponseProcessor.prototype.getFullTemplateWithHttpInfo = function (response) {
|
|
2695
2964
|
return __awaiter(this, void 0, void 0, function () {
|
|
2696
2965
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2697
2966
|
return __generator(this, function (_u) {
|
|
@@ -2742,7 +3011,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2742
3011
|
});
|
|
2743
3012
|
});
|
|
2744
3013
|
};
|
|
2745
|
-
|
|
3014
|
+
ClientResponseProcessor.prototype.getPresignUrlWithHttpInfo = function (response) {
|
|
2746
3015
|
return __awaiter(this, void 0, void 0, function () {
|
|
2747
3016
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2748
3017
|
return __generator(this, function (_q) {
|
|
@@ -2771,20 +3040,122 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2771
3040
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2772
3041
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2773
3042
|
return [4, response.body.text()];
|
|
2774
|
-
case 5:
|
|
2775
|
-
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
2776
|
-
"UploadPresignResponse", ""]);
|
|
3043
|
+
case 5:
|
|
3044
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
3045
|
+
"UploadPresignResponse", ""]);
|
|
3046
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3047
|
+
case 6:
|
|
3048
|
+
_o = exception_1.ApiException.bind;
|
|
3049
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
3050
|
+
return [4, response.getBodyAsAny()];
|
|
3051
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
3052
|
+
}
|
|
3053
|
+
});
|
|
3054
|
+
});
|
|
3055
|
+
};
|
|
3056
|
+
ClientResponseProcessor.prototype.getSubmissionWithHttpInfo = function (response) {
|
|
3057
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3058
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
3059
|
+
return __generator(this, function (_u) {
|
|
3060
|
+
switch (_u.label) {
|
|
3061
|
+
case 0:
|
|
3062
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3063
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
3064
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3065
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3066
|
+
return [4, response.body.text()];
|
|
3067
|
+
case 1:
|
|
3068
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
3069
|
+
"Submission", ""]);
|
|
3070
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3071
|
+
case 2:
|
|
3072
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
|
|
3073
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3074
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3075
|
+
return [4, response.body.text()];
|
|
3076
|
+
case 3:
|
|
3077
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
3078
|
+
"ErrorResponse", ""]);
|
|
3079
|
+
throw new exception_1.ApiException(response.httpStatusCode, "submission not found", body, response.headers);
|
|
3080
|
+
case 4:
|
|
3081
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 6];
|
|
3082
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3083
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3084
|
+
return [4, response.body.text()];
|
|
3085
|
+
case 5:
|
|
3086
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
3087
|
+
"ErrorResponse", ""]);
|
|
3088
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
3089
|
+
case 6:
|
|
3090
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
3091
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3092
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3093
|
+
return [4, response.body.text()];
|
|
3094
|
+
case 7:
|
|
3095
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
3096
|
+
"Submission", ""]);
|
|
3097
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3098
|
+
case 8:
|
|
3099
|
+
_s = exception_1.ApiException.bind;
|
|
3100
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
3101
|
+
return [4, response.getBodyAsAny()];
|
|
3102
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
3103
|
+
}
|
|
3104
|
+
});
|
|
3105
|
+
});
|
|
3106
|
+
};
|
|
3107
|
+
ClientResponseProcessor.prototype.getSubmissionBatchWithHttpInfo = function (response) {
|
|
3108
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3109
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
3110
|
+
return __generator(this, function (_u) {
|
|
3111
|
+
switch (_u.label) {
|
|
3112
|
+
case 0:
|
|
3113
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3114
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
3115
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3116
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3117
|
+
return [4, response.body.text()];
|
|
3118
|
+
case 1:
|
|
3119
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
3120
|
+
"SubmissionBatchWithSubmissions", ""]);
|
|
3121
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3122
|
+
case 2:
|
|
3123
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
|
|
3124
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3125
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3126
|
+
return [4, response.body.text()];
|
|
3127
|
+
case 3:
|
|
3128
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
3129
|
+
"ErrorResponse", ""]);
|
|
3130
|
+
throw new exception_1.ApiException(response.httpStatusCode, "submission batch not found", body, response.headers);
|
|
3131
|
+
case 4:
|
|
3132
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 6];
|
|
3133
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3134
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3135
|
+
return [4, response.body.text()];
|
|
3136
|
+
case 5:
|
|
3137
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
3138
|
+
"ErrorResponse", ""]);
|
|
3139
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
3140
|
+
case 6:
|
|
3141
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
3142
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3143
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3144
|
+
return [4, response.body.text()];
|
|
3145
|
+
case 7:
|
|
3146
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
3147
|
+
"SubmissionBatchWithSubmissions", ""]);
|
|
2777
3148
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2778
|
-
case
|
|
2779
|
-
|
|
2780
|
-
|
|
3149
|
+
case 8:
|
|
3150
|
+
_s = exception_1.ApiException.bind;
|
|
3151
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2781
3152
|
return [4, response.getBodyAsAny()];
|
|
2782
|
-
case
|
|
3153
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2783
3154
|
}
|
|
2784
3155
|
});
|
|
2785
3156
|
});
|
|
2786
3157
|
};
|
|
2787
|
-
|
|
3158
|
+
ClientResponseProcessor.prototype.getTemplateWithHttpInfo = function (response) {
|
|
2788
3159
|
return __awaiter(this, void 0, void 0, function () {
|
|
2789
3160
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2790
3161
|
return __generator(this, function (_u) {
|
|
@@ -2797,7 +3168,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2797
3168
|
return [4, response.body.text()];
|
|
2798
3169
|
case 1:
|
|
2799
3170
|
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2800
|
-
"
|
|
3171
|
+
"TemplatePreview", ""]);
|
|
2801
3172
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2802
3173
|
case 2:
|
|
2803
3174
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
|
|
@@ -2807,7 +3178,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2807
3178
|
case 3:
|
|
2808
3179
|
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2809
3180
|
"ErrorResponse", ""]);
|
|
2810
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
3181
|
+
throw new exception_1.ApiException(response.httpStatusCode, "template not found", body, response.headers);
|
|
2811
3182
|
case 4:
|
|
2812
3183
|
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 6];
|
|
2813
3184
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
@@ -2824,7 +3195,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2824
3195
|
return [4, response.body.text()];
|
|
2825
3196
|
case 7:
|
|
2826
3197
|
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2827
|
-
"
|
|
3198
|
+
"TemplatePreview", ""]);
|
|
2828
3199
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2829
3200
|
case 8:
|
|
2830
3201
|
_s = exception_1.ApiException.bind;
|
|
@@ -2835,11 +3206,11 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2835
3206
|
});
|
|
2836
3207
|
});
|
|
2837
3208
|
};
|
|
2838
|
-
|
|
3209
|
+
ClientResponseProcessor.prototype.getTemplateModelCodeWithHttpInfo = function (response) {
|
|
2839
3210
|
return __awaiter(this, void 0, void 0, function () {
|
|
2840
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2841
|
-
return __generator(this, function (
|
|
2842
|
-
switch (
|
|
3211
|
+
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;
|
|
3212
|
+
return __generator(this, function (_y) {
|
|
3213
|
+
switch (_y.label) {
|
|
2843
3214
|
case 0:
|
|
2844
3215
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2845
3216
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2847,8 +3218,8 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2847
3218
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2848
3219
|
return [4, response.body.text()];
|
|
2849
3220
|
case 1:
|
|
2850
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2851
|
-
"
|
|
3221
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
3222
|
+
"TemplateModelCodeResponse", ""]);
|
|
2852
3223
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2853
3224
|
case 2:
|
|
2854
3225
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
|
|
@@ -2856,37 +3227,46 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2856
3227
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2857
3228
|
return [4, response.body.text()];
|
|
2858
3229
|
case 3:
|
|
2859
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
3230
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
2860
3231
|
"ErrorResponse", ""]);
|
|
2861
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
3232
|
+
throw new exception_1.ApiException(response.httpStatusCode, "template not found", body, response.headers);
|
|
2862
3233
|
case 4:
|
|
2863
|
-
if (!(0, util_1.isCodeInRange)("
|
|
3234
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 6];
|
|
2864
3235
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2865
3236
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2866
3237
|
return [4, response.body.text()];
|
|
2867
3238
|
case 5:
|
|
2868
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
3239
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
2869
3240
|
"ErrorResponse", ""]);
|
|
2870
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
3241
|
+
throw new exception_1.ApiException(response.httpStatusCode, "unknown language", body, response.headers);
|
|
2871
3242
|
case 6:
|
|
2872
|
-
if (!(
|
|
3243
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 8];
|
|
2873
3244
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2874
3245
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2875
3246
|
return [4, response.body.text()];
|
|
2876
3247
|
case 7:
|
|
2877
|
-
body = _p.apply(_o, [_r.apply(_q, [
|
|
2878
|
-
"
|
|
2879
|
-
|
|
3248
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
3249
|
+
"ErrorResponse", ""]);
|
|
3250
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
2880
3251
|
case 8:
|
|
2881
|
-
|
|
2882
|
-
_t =
|
|
3252
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
3253
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3254
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3255
|
+
return [4, response.body.text()];
|
|
3256
|
+
case 9:
|
|
3257
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
3258
|
+
"TemplateModelCodeResponse", ""]);
|
|
3259
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3260
|
+
case 10:
|
|
3261
|
+
_w = exception_1.ApiException.bind;
|
|
3262
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2883
3263
|
return [4, response.getBodyAsAny()];
|
|
2884
|
-
case
|
|
3264
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
2885
3265
|
}
|
|
2886
3266
|
});
|
|
2887
3267
|
});
|
|
2888
3268
|
};
|
|
2889
|
-
|
|
3269
|
+
ClientResponseProcessor.prototype.getTemplateSchemaWithHttpInfo = function (response) {
|
|
2890
3270
|
return __awaiter(this, void 0, void 0, function () {
|
|
2891
3271
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2892
3272
|
return __generator(this, function (_u) {
|
|
@@ -2899,7 +3279,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2899
3279
|
return [4, response.body.text()];
|
|
2900
3280
|
case 1:
|
|
2901
3281
|
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2902
|
-
"
|
|
3282
|
+
"JsonSchema", ""]);
|
|
2903
3283
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2904
3284
|
case 2:
|
|
2905
3285
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
|
|
@@ -2926,7 +3306,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2926
3306
|
return [4, response.body.text()];
|
|
2927
3307
|
case 7:
|
|
2928
3308
|
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2929
|
-
"
|
|
3309
|
+
"JsonSchema", ""]);
|
|
2930
3310
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2931
3311
|
case 8:
|
|
2932
3312
|
_s = exception_1.ApiException.bind;
|
|
@@ -2937,7 +3317,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2937
3317
|
});
|
|
2938
3318
|
});
|
|
2939
3319
|
};
|
|
2940
|
-
|
|
3320
|
+
ClientResponseProcessor.prototype.getWebhookWithHttpInfo = function (response) {
|
|
2941
3321
|
return __awaiter(this, void 0, void 0, function () {
|
|
2942
3322
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2943
3323
|
return __generator(this, function (_u) {
|
|
@@ -2950,7 +3330,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2950
3330
|
return [4, response.body.text()];
|
|
2951
3331
|
case 1:
|
|
2952
3332
|
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2953
|
-
"
|
|
3333
|
+
"Webhook", ""]);
|
|
2954
3334
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2955
3335
|
case 2:
|
|
2956
3336
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
|
|
@@ -2960,7 +3340,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2960
3340
|
case 3:
|
|
2961
3341
|
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2962
3342
|
"ErrorResponse", ""]);
|
|
2963
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
3343
|
+
throw new exception_1.ApiException(response.httpStatusCode, "webhook not found", body, response.headers);
|
|
2964
3344
|
case 4:
|
|
2965
3345
|
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 6];
|
|
2966
3346
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
@@ -2977,7 +3357,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2977
3357
|
return [4, response.body.text()];
|
|
2978
3358
|
case 7:
|
|
2979
3359
|
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2980
|
-
"
|
|
3360
|
+
"Webhook", ""]);
|
|
2981
3361
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2982
3362
|
case 8:
|
|
2983
3363
|
_s = exception_1.ApiException.bind;
|
|
@@ -2988,7 +3368,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
2988
3368
|
});
|
|
2989
3369
|
});
|
|
2990
3370
|
};
|
|
2991
|
-
|
|
3371
|
+
ClientResponseProcessor.prototype.listCombinedSubmissionsWithHttpInfo = function (response) {
|
|
2992
3372
|
return __awaiter(this, void 0, void 0, function () {
|
|
2993
3373
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2994
3374
|
return __generator(this, function (_q) {
|
|
@@ -3030,7 +3410,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3030
3410
|
});
|
|
3031
3411
|
});
|
|
3032
3412
|
};
|
|
3033
|
-
|
|
3413
|
+
ClientResponseProcessor.prototype.listFoldersWithHttpInfo = function (response) {
|
|
3034
3414
|
return __awaiter(this, void 0, void 0, function () {
|
|
3035
3415
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
3036
3416
|
return __generator(this, function (_q) {
|
|
@@ -3072,7 +3452,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3072
3452
|
});
|
|
3073
3453
|
});
|
|
3074
3454
|
};
|
|
3075
|
-
|
|
3455
|
+
ClientResponseProcessor.prototype.listSubmissionsWithHttpInfo = function (response) {
|
|
3076
3456
|
return __awaiter(this, void 0, void 0, function () {
|
|
3077
3457
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
3078
3458
|
return __generator(this, function (_u) {
|
|
@@ -3123,7 +3503,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3123
3503
|
});
|
|
3124
3504
|
});
|
|
3125
3505
|
};
|
|
3126
|
-
|
|
3506
|
+
ClientResponseProcessor.prototype.listTemplateSubmissionsWithHttpInfo = function (response) {
|
|
3127
3507
|
return __awaiter(this, void 0, void 0, function () {
|
|
3128
3508
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
3129
3509
|
return __generator(this, function (_q) {
|
|
@@ -3165,7 +3545,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3165
3545
|
});
|
|
3166
3546
|
});
|
|
3167
3547
|
};
|
|
3168
|
-
|
|
3548
|
+
ClientResponseProcessor.prototype.listTemplatesWithHttpInfo = function (response) {
|
|
3169
3549
|
return __awaiter(this, void 0, void 0, function () {
|
|
3170
3550
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
3171
3551
|
return __generator(this, function (_u) {
|
|
@@ -3216,7 +3596,49 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3216
3596
|
});
|
|
3217
3597
|
});
|
|
3218
3598
|
};
|
|
3219
|
-
|
|
3599
|
+
ClientResponseProcessor.prototype.listWebhooksWithHttpInfo = function (response) {
|
|
3600
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3601
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
3602
|
+
return __generator(this, function (_q) {
|
|
3603
|
+
switch (_q.label) {
|
|
3604
|
+
case 0:
|
|
3605
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3606
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
3607
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3608
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3609
|
+
return [4, response.body.text()];
|
|
3610
|
+
case 1:
|
|
3611
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
3612
|
+
"Array<Webhook>", ""]);
|
|
3613
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3614
|
+
case 2:
|
|
3615
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 4];
|
|
3616
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3617
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3618
|
+
return [4, response.body.text()];
|
|
3619
|
+
case 3:
|
|
3620
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
3621
|
+
"ErrorResponse", ""]);
|
|
3622
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
3623
|
+
case 4:
|
|
3624
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
3625
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3626
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3627
|
+
return [4, response.body.text()];
|
|
3628
|
+
case 5:
|
|
3629
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
3630
|
+
"Array<Webhook>", ""]);
|
|
3631
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3632
|
+
case 6:
|
|
3633
|
+
_o = exception_1.ApiException.bind;
|
|
3634
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
3635
|
+
return [4, response.getBodyAsAny()];
|
|
3636
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
3637
|
+
}
|
|
3638
|
+
});
|
|
3639
|
+
});
|
|
3640
|
+
};
|
|
3641
|
+
ClientResponseProcessor.prototype.moveFolderToFolderWithHttpInfo = function (response) {
|
|
3220
3642
|
return __awaiter(this, void 0, void 0, function () {
|
|
3221
3643
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
3222
3644
|
return __generator(this, function (_u) {
|
|
@@ -3267,7 +3689,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3267
3689
|
});
|
|
3268
3690
|
});
|
|
3269
3691
|
};
|
|
3270
|
-
|
|
3692
|
+
ClientResponseProcessor.prototype.moveTemplateToFolderWithHttpInfo = function (response) {
|
|
3271
3693
|
return __awaiter(this, void 0, void 0, function () {
|
|
3272
3694
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
3273
3695
|
return __generator(this, function (_q) {
|
|
@@ -3309,7 +3731,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3309
3731
|
});
|
|
3310
3732
|
});
|
|
3311
3733
|
};
|
|
3312
|
-
|
|
3734
|
+
ClientResponseProcessor.prototype.publishTemplateVersionWithHttpInfo = function (response) {
|
|
3313
3735
|
return __awaiter(this, void 0, void 0, function () {
|
|
3314
3736
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
3315
3737
|
return __generator(this, function (_y) {
|
|
@@ -3369,7 +3791,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3369
3791
|
});
|
|
3370
3792
|
});
|
|
3371
3793
|
};
|
|
3372
|
-
|
|
3794
|
+
ClientResponseProcessor.prototype.renameFolderWithHttpInfo = function (response) {
|
|
3373
3795
|
return __awaiter(this, void 0, void 0, function () {
|
|
3374
3796
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
3375
3797
|
return __generator(this, function (_y) {
|
|
@@ -3429,7 +3851,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3429
3851
|
});
|
|
3430
3852
|
});
|
|
3431
3853
|
};
|
|
3432
|
-
|
|
3854
|
+
ClientResponseProcessor.prototype.restoreTemplateVersionWithHttpInfo = function (response) {
|
|
3433
3855
|
return __awaiter(this, void 0, void 0, function () {
|
|
3434
3856
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
3435
3857
|
return __generator(this, function (_y) {
|
|
@@ -3489,7 +3911,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3489
3911
|
});
|
|
3490
3912
|
});
|
|
3491
3913
|
};
|
|
3492
|
-
|
|
3914
|
+
ClientResponseProcessor.prototype.testAuthenticationWithHttpInfo = function (response) {
|
|
3493
3915
|
return __awaiter(this, void 0, void 0, function () {
|
|
3494
3916
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
3495
3917
|
return __generator(this, function (_q) {
|
|
@@ -3531,7 +3953,7 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3531
3953
|
});
|
|
3532
3954
|
});
|
|
3533
3955
|
};
|
|
3534
|
-
|
|
3956
|
+
ClientResponseProcessor.prototype.updateDataRequestWithHttpInfo = function (response) {
|
|
3535
3957
|
return __awaiter(this, void 0, void 0, function () {
|
|
3536
3958
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
3537
3959
|
return __generator(this, function (_y) {
|
|
@@ -3591,11 +4013,95 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3591
4013
|
});
|
|
3592
4014
|
});
|
|
3593
4015
|
};
|
|
3594
|
-
|
|
4016
|
+
ClientResponseProcessor.prototype.updateTemplateWithHttpInfo = function (response) {
|
|
4017
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4018
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
4019
|
+
return __generator(this, function (_q) {
|
|
4020
|
+
switch (_q.label) {
|
|
4021
|
+
case 0:
|
|
4022
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
4023
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
4024
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4025
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4026
|
+
return [4, response.body.text()];
|
|
4027
|
+
case 1:
|
|
4028
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
4029
|
+
"SuccessMultipleErrorsResponse", ""]);
|
|
4030
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
4031
|
+
case 2:
|
|
4032
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
|
|
4033
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4034
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4035
|
+
return [4, response.body.text()];
|
|
4036
|
+
case 3:
|
|
4037
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
4038
|
+
"ErrorResponse", ""]);
|
|
4039
|
+
throw new exception_1.ApiException(response.httpStatusCode, "folder not found", body, response.headers);
|
|
4040
|
+
case 4:
|
|
4041
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
4042
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4043
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4044
|
+
return [4, response.body.text()];
|
|
4045
|
+
case 5:
|
|
4046
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
4047
|
+
"SuccessMultipleErrorsResponse", ""]);
|
|
4048
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
4049
|
+
case 6:
|
|
4050
|
+
_o = exception_1.ApiException.bind;
|
|
4051
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
4052
|
+
return [4, response.getBodyAsAny()];
|
|
4053
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
4054
|
+
}
|
|
4055
|
+
});
|
|
4056
|
+
});
|
|
4057
|
+
};
|
|
4058
|
+
ClientResponseProcessor.prototype.updateTemplateDocumentWithHttpInfo = function (response) {
|
|
4059
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4060
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
4061
|
+
return __generator(this, function (_q) {
|
|
4062
|
+
switch (_q.label) {
|
|
4063
|
+
case 0:
|
|
4064
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
4065
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
4066
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4067
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4068
|
+
return [4, response.body.text()];
|
|
4069
|
+
case 1:
|
|
4070
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
4071
|
+
"SuccessMultipleErrorsResponse", ""]);
|
|
4072
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
4073
|
+
case 2:
|
|
4074
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 4];
|
|
4075
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4076
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4077
|
+
return [4, response.body.text()];
|
|
4078
|
+
case 3:
|
|
4079
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
4080
|
+
"ErrorResponse", ""]);
|
|
4081
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
4082
|
+
case 4:
|
|
4083
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
4084
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4085
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4086
|
+
return [4, response.body.text()];
|
|
4087
|
+
case 5:
|
|
4088
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
4089
|
+
"SuccessMultipleErrorsResponse", ""]);
|
|
4090
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
4091
|
+
case 6:
|
|
4092
|
+
_o = exception_1.ApiException.bind;
|
|
4093
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
4094
|
+
return [4, response.getBodyAsAny()];
|
|
4095
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
4096
|
+
}
|
|
4097
|
+
});
|
|
4098
|
+
});
|
|
4099
|
+
};
|
|
4100
|
+
ClientResponseProcessor.prototype.updateTemplateDocumentFromUploadWithHttpInfo = function (response) {
|
|
3595
4101
|
return __awaiter(this, void 0, void 0, function () {
|
|
3596
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
3597
|
-
return __generator(this, function (
|
|
3598
|
-
switch (
|
|
4102
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
4103
|
+
return __generator(this, function (_q) {
|
|
4104
|
+
switch (_q.label) {
|
|
3599
4105
|
case 0:
|
|
3600
4106
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3601
4107
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -3603,28 +4109,88 @@ var PDFApiResponseProcessor = (function () {
|
|
|
3603
4109
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3604
4110
|
return [4, response.body.text()];
|
|
3605
4111
|
case 1:
|
|
3606
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
4112
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
3607
4113
|
"SuccessMultipleErrorsResponse", ""]);
|
|
3608
4114
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3609
4115
|
case 2:
|
|
3610
|
-
if (!(
|
|
4116
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 4];
|
|
3611
4117
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3612
4118
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3613
4119
|
return [4, response.body.text()];
|
|
3614
4120
|
case 3:
|
|
3615
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
4121
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
4122
|
+
"ErrorResponse", ""]);
|
|
4123
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
4124
|
+
case 4:
|
|
4125
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
4126
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4127
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4128
|
+
return [4, response.body.text()];
|
|
4129
|
+
case 5:
|
|
4130
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
3616
4131
|
"SuccessMultipleErrorsResponse", ""]);
|
|
3617
4132
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
4133
|
+
case 6:
|
|
4134
|
+
_o = exception_1.ApiException.bind;
|
|
4135
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
4136
|
+
return [4, response.getBodyAsAny()];
|
|
4137
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
4138
|
+
}
|
|
4139
|
+
});
|
|
4140
|
+
});
|
|
4141
|
+
};
|
|
4142
|
+
ClientResponseProcessor.prototype.updateWebhookWithHttpInfo = function (response) {
|
|
4143
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4144
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
4145
|
+
return __generator(this, function (_u) {
|
|
4146
|
+
switch (_u.label) {
|
|
4147
|
+
case 0:
|
|
4148
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
4149
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
4150
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4151
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4152
|
+
return [4, response.body.text()];
|
|
4153
|
+
case 1:
|
|
4154
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
4155
|
+
"Webhook", ""]);
|
|
4156
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
4157
|
+
case 2:
|
|
4158
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
|
|
4159
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4160
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4161
|
+
return [4, response.body.text()];
|
|
4162
|
+
case 3:
|
|
4163
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
4164
|
+
"ErrorResponse", ""]);
|
|
4165
|
+
throw new exception_1.ApiException(response.httpStatusCode, "webhook not found", body, response.headers);
|
|
3618
4166
|
case 4:
|
|
3619
|
-
|
|
3620
|
-
_k =
|
|
4167
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 6];
|
|
4168
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4169
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4170
|
+
return [4, response.body.text()];
|
|
4171
|
+
case 5:
|
|
4172
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
4173
|
+
"ErrorResponse", ""]);
|
|
4174
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
4175
|
+
case 6:
|
|
4176
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
4177
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4178
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4179
|
+
return [4, response.body.text()];
|
|
4180
|
+
case 7:
|
|
4181
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
4182
|
+
"Webhook", ""]);
|
|
4183
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
4184
|
+
case 8:
|
|
4185
|
+
_s = exception_1.ApiException.bind;
|
|
4186
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
3621
4187
|
return [4, response.getBodyAsAny()];
|
|
3622
|
-
case
|
|
4188
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
3623
4189
|
}
|
|
3624
4190
|
});
|
|
3625
4191
|
});
|
|
3626
4192
|
};
|
|
3627
|
-
return
|
|
4193
|
+
return ClientResponseProcessor;
|
|
3628
4194
|
}());
|
|
3629
|
-
exports.
|
|
3630
|
-
//# sourceMappingURL=
|
|
4195
|
+
exports.ClientResponseProcessor = ClientResponseProcessor;
|
|
4196
|
+
//# sourceMappingURL=Client.js.map
|