docspring-ts 4.0.0 → 4.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 +10 -1
- package/dist/RequestSchemas.js +3364 -1584
- package/dist/RequestSchemas.js.map +1 -1
- package/dist/apis/Client.d.ts +28 -0
- package/dist/apis/Client.js +1015 -55
- package/dist/apis/Client.js.map +1 -1
- package/dist/http/isomorphic-fetch.js +1 -1
- package/dist/models/AddTemplateFieldsRequest.d.ts +21 -0
- package/dist/models/AddTemplateFieldsRequest.js +23 -0
- package/dist/models/AddTemplateFieldsRequest.js.map +1 -0
- package/dist/models/CreateSubmissionBatchRequest.d.ts +2 -0
- package/dist/models/CreateSubmissionBatchRequest.js +6 -0
- package/dist/models/CreateSubmissionBatchRequest.js.map +1 -1
- package/dist/models/CreateSubmissionRequest.d.ts +2 -0
- package/dist/models/CreateSubmissionRequest.js +6 -0
- package/dist/models/CreateSubmissionRequest.js.map +1 -1
- package/dist/models/CreateTemplateRequest.d.ts +7 -0
- package/dist/models/CreateTemplateRequest.js +24 -0
- package/dist/models/CreateTemplateRequest.js.map +1 -1
- package/dist/models/Field.d.ts +125 -0
- package/dist/models/Field.js +563 -0
- package/dist/models/Field.js.map +1 -0
- package/dist/models/FieldDependency.d.ts +25 -0
- package/dist/models/FieldDependency.js +35 -0
- package/dist/models/FieldDependency.js.map +1 -0
- package/dist/models/FieldDependencyInput.d.ts +25 -0
- package/dist/models/FieldDependencyInput.js +35 -0
- package/dist/models/FieldDependencyInput.js.map +1 -0
- package/dist/models/FieldGroup.d.ts +28 -0
- package/dist/models/FieldGroup.js +65 -0
- package/dist/models/FieldGroup.js.map +1 -0
- package/dist/models/FieldGroupInput.d.ts +26 -0
- package/dist/models/FieldGroupInput.js +59 -0
- package/dist/models/FieldGroupInput.js.map +1 -0
- package/dist/models/FieldGroupType.d.ts +5 -0
- package/dist/models/FieldGroupType.js +8 -0
- package/dist/models/FieldGroupType.js.map +1 -0
- package/dist/models/FieldInput.d.ts +124 -0
- package/dist/models/FieldInput.js +557 -0
- package/dist/models/FieldInput.js.map +1 -0
- package/dist/models/FieldType.d.ts +18 -0
- package/dist/models/FieldType.js +21 -0
- package/dist/models/FieldType.js.map +1 -0
- package/dist/models/GenerateFilesFormat.d.ts +4 -0
- package/dist/models/GenerateFilesFormat.js +7 -0
- package/dist/models/GenerateFilesFormat.js.map +1 -0
- package/dist/models/GenerateSubmissionFilesRequest.d.ts +21 -0
- package/dist/models/GenerateSubmissionFilesRequest.js +23 -0
- package/dist/models/GenerateSubmissionFilesRequest.js.map +1 -0
- package/dist/models/ObjectSerializer.d.ts +28 -0
- package/dist/models/ObjectSerializer.js +80 -0
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/OutputFormat.d.ts +5 -0
- package/dist/models/OutputFormat.js +8 -0
- package/dist/models/OutputFormat.js.map +1 -0
- package/dist/models/PageImage.d.ts +28 -0
- package/dist/models/PageImage.js +71 -0
- package/dist/models/PageImage.js.map +1 -0
- package/dist/models/PageImages.d.ts +25 -0
- package/dist/models/PageImages.js +41 -0
- package/dist/models/PageImages.js.map +1 -0
- package/dist/models/PredefinedField.d.ts +27 -0
- package/dist/models/PredefinedField.js +59 -0
- package/dist/models/PredefinedField.js.map +1 -0
- package/dist/models/PredefinedFieldInput.d.ts +27 -0
- package/dist/models/PredefinedFieldInput.js +59 -0
- package/dist/models/PredefinedFieldInput.js.map +1 -0
- package/dist/models/RemoveTemplateFieldsRequest.d.ts +20 -0
- package/dist/models/RemoveTemplateFieldsRequest.js +23 -0
- package/dist/models/RemoveTemplateFieldsRequest.js.map +1 -0
- package/dist/models/ReorderTemplateFieldsRequest.d.ts +20 -0
- package/dist/models/ReorderTemplateFieldsRequest.js +23 -0
- package/dist/models/ReorderTemplateFieldsRequest.js.map +1 -0
- package/dist/models/Submission.d.ts +2 -0
- package/dist/models/Submission.js +6 -0
- package/dist/models/Submission.js.map +1 -1
- package/dist/models/SubmissionFiles.d.ts +2 -0
- package/dist/models/SubmissionFiles.js +6 -0
- package/dist/models/SubmissionFiles.js.map +1 -1
- package/dist/models/SubmissionInput.d.ts +2 -0
- package/dist/models/SubmissionInput.js +6 -0
- package/dist/models/SubmissionInput.js.map +1 -1
- package/dist/models/SubmissionValidation.d.ts +24 -0
- package/dist/models/SubmissionValidation.js +41 -0
- package/dist/models/SubmissionValidation.js.map +1 -0
- package/dist/models/Template.d.ts +7 -0
- package/dist/models/Template.js +18 -0
- package/dist/models/Template.js.map +1 -1
- package/dist/models/TemplateDiff.d.ts +28 -0
- package/dist/models/TemplateDiff.js +59 -0
- package/dist/models/TemplateDiff.js.map +1 -0
- package/dist/models/TemplateDiffSummary.d.ts +25 -0
- package/dist/models/TemplateDiffSummary.js +53 -0
- package/dist/models/TemplateDiffSummary.js.map +1 -0
- package/dist/models/TemplateDocumentState.d.ts +2 -0
- package/dist/models/TemplateDocumentState.js +3 -1
- package/dist/models/TemplateDocumentState.js.map +1 -1
- package/dist/models/TemplateFieldChange.d.ts +24 -0
- package/dist/models/TemplateFieldChange.js +41 -0
- package/dist/models/TemplateFieldChange.js.map +1 -0
- package/dist/models/TemplateFieldChanges.d.ts +26 -0
- package/dist/models/TemplateFieldChanges.js +41 -0
- package/dist/models/TemplateFieldChanges.js.map +1 -0
- package/dist/models/TemplateFieldMove.d.ts +22 -0
- package/dist/models/TemplateFieldMove.js +35 -0
- package/dist/models/TemplateFieldMove.js.map +1 -0
- package/dist/models/TemplateFields.d.ts +23 -0
- package/dist/models/TemplateFields.js +35 -0
- package/dist/models/TemplateFields.js.map +1 -0
- package/dist/models/TemplatePageImages.d.ts +24 -0
- package/dist/models/TemplatePageImages.js +41 -0
- package/dist/models/TemplatePageImages.js.map +1 -0
- package/dist/models/UpdateTemplateDocumentRequest.d.ts +3 -1
- package/dist/models/UpdateTemplateDocumentRequest.js +12 -0
- package/dist/models/UpdateTemplateDocumentRequest.js.map +1 -1
- package/dist/models/UpdateTemplateFieldsRequest.d.ts +21 -0
- package/dist/models/UpdateTemplateFieldsRequest.js +23 -0
- package/dist/models/UpdateTemplateFieldsRequest.js.map +1 -0
- package/dist/models/UpdateTemplateRequest.d.ts +7 -0
- package/dist/models/UpdateTemplateRequest.js +18 -0
- package/dist/models/UpdateTemplateRequest.js.map +1 -1
- package/dist/models/ValidateSubmissionRequest.d.ts +39 -0
- package/dist/models/ValidateSubmissionRequest.js +83 -0
- package/dist/models/ValidateSubmissionRequest.js.map +1 -0
- package/dist/models/all.d.ts +28 -0
- package/dist/models/all.js +28 -0
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +66 -0
- package/dist/types/ObjectParamAPI.js +54 -0
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +28 -0
- package/dist/types/ObservableAPI.js +444 -192
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +28 -0
- package/dist/types/PromiseAPI.js +90 -0
- package/dist/types/PromiseAPI.js.map +1 -1
- package/package.json +1 -1
package/dist/apis/Client.js
CHANGED
|
@@ -63,6 +63,52 @@ var ClientRequestFactory = (function (_super) {
|
|
|
63
63
|
function ClientRequestFactory() {
|
|
64
64
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
65
65
|
}
|
|
66
|
+
ClientRequestFactory.prototype.addTemplateFields = function (templateId, body, _options) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
68
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
69
|
+
var _a;
|
|
70
|
+
return __generator(this, function (_b) {
|
|
71
|
+
switch (_b.label) {
|
|
72
|
+
case 0:
|
|
73
|
+
_config = _options || this.configuration;
|
|
74
|
+
if (templateId === null || templateId === undefined) {
|
|
75
|
+
throw new baseapi_1.RequiredError("Client", "addTemplateFields", "templateId");
|
|
76
|
+
}
|
|
77
|
+
if (body === null || body === undefined) {
|
|
78
|
+
throw new baseapi_1.RequiredError("Client", "addTemplateFields", "body");
|
|
79
|
+
}
|
|
80
|
+
localVarPath = '/templates/{template_id}/fields'
|
|
81
|
+
.replace('{template_id}', encodeURIComponent(String(templateId)));
|
|
82
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
83
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
84
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
85
|
+
"application/json"
|
|
86
|
+
]);
|
|
87
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
88
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "AddTemplateFieldsRequest", ""), contentType);
|
|
89
|
+
requestContext.setBody(serializedBody);
|
|
90
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
91
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
92
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
93
|
+
case 1:
|
|
94
|
+
_b.sent();
|
|
95
|
+
_b.label = 2;
|
|
96
|
+
case 2:
|
|
97
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
98
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
99
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
100
|
+
case 3:
|
|
101
|
+
_b.sent();
|
|
102
|
+
_b.label = 4;
|
|
103
|
+
case 4:
|
|
104
|
+
if (_config.validateRequests !== false) {
|
|
105
|
+
(0, RequestValidator_1.validateRequest)("addTemplateFields", requestContext);
|
|
106
|
+
}
|
|
107
|
+
return [2, requestContext];
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
};
|
|
66
112
|
ClientRequestFactory.prototype.copyTemplate = function (templateId, body, _options) {
|
|
67
113
|
return __awaiter(this, void 0, void 0, function () {
|
|
68
114
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
@@ -733,6 +779,55 @@ var ClientRequestFactory = (function (_super) {
|
|
|
733
779
|
});
|
|
734
780
|
});
|
|
735
781
|
};
|
|
782
|
+
ClientRequestFactory.prototype.generateSubmissionFiles = function (submissionId, body, wait, _options) {
|
|
783
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
784
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
785
|
+
var _a;
|
|
786
|
+
return __generator(this, function (_b) {
|
|
787
|
+
switch (_b.label) {
|
|
788
|
+
case 0:
|
|
789
|
+
_config = _options || this.configuration;
|
|
790
|
+
if (submissionId === null || submissionId === undefined) {
|
|
791
|
+
throw new baseapi_1.RequiredError("Client", "generateSubmissionFiles", "submissionId");
|
|
792
|
+
}
|
|
793
|
+
if (body === null || body === undefined) {
|
|
794
|
+
throw new baseapi_1.RequiredError("Client", "generateSubmissionFiles", "body");
|
|
795
|
+
}
|
|
796
|
+
localVarPath = '/submissions/{submission_id}/generate_files'
|
|
797
|
+
.replace('{submission_id}', encodeURIComponent(String(submissionId)));
|
|
798
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
799
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
800
|
+
if (wait !== undefined) {
|
|
801
|
+
requestContext.setQueryParam("wait", ObjectSerializer_1.ObjectSerializer.serialize(wait, "boolean", ""));
|
|
802
|
+
}
|
|
803
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
804
|
+
"application/json"
|
|
805
|
+
]);
|
|
806
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
807
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "GenerateSubmissionFilesRequest", ""), contentType);
|
|
808
|
+
requestContext.setBody(serializedBody);
|
|
809
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
810
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
811
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
812
|
+
case 1:
|
|
813
|
+
_b.sent();
|
|
814
|
+
_b.label = 2;
|
|
815
|
+
case 2:
|
|
816
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
817
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
818
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
819
|
+
case 3:
|
|
820
|
+
_b.sent();
|
|
821
|
+
_b.label = 4;
|
|
822
|
+
case 4:
|
|
823
|
+
if (_config.validateRequests !== false) {
|
|
824
|
+
(0, RequestValidator_1.validateRequest)("generateSubmissionFiles", requestContext);
|
|
825
|
+
}
|
|
826
|
+
return [2, requestContext];
|
|
827
|
+
}
|
|
828
|
+
});
|
|
829
|
+
});
|
|
830
|
+
};
|
|
736
831
|
ClientRequestFactory.prototype.generateSubmissionPreview = function (submissionId, _options) {
|
|
737
832
|
return __awaiter(this, void 0, void 0, function () {
|
|
738
833
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -1068,6 +1163,46 @@ var ClientRequestFactory = (function (_super) {
|
|
|
1068
1163
|
});
|
|
1069
1164
|
});
|
|
1070
1165
|
};
|
|
1166
|
+
ClientRequestFactory.prototype.getTemplateDiff = function (templateId, version, _options) {
|
|
1167
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1168
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1169
|
+
var _a;
|
|
1170
|
+
return __generator(this, function (_b) {
|
|
1171
|
+
switch (_b.label) {
|
|
1172
|
+
case 0:
|
|
1173
|
+
_config = _options || this.configuration;
|
|
1174
|
+
if (templateId === null || templateId === undefined) {
|
|
1175
|
+
throw new baseapi_1.RequiredError("Client", "getTemplateDiff", "templateId");
|
|
1176
|
+
}
|
|
1177
|
+
localVarPath = '/templates/{template_id}/diff'
|
|
1178
|
+
.replace('{template_id}', encodeURIComponent(String(templateId)));
|
|
1179
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
1180
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1181
|
+
if (version !== undefined) {
|
|
1182
|
+
requestContext.setQueryParam("version", ObjectSerializer_1.ObjectSerializer.serialize(version, "string", ""));
|
|
1183
|
+
}
|
|
1184
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
1185
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1186
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1187
|
+
case 1:
|
|
1188
|
+
_b.sent();
|
|
1189
|
+
_b.label = 2;
|
|
1190
|
+
case 2:
|
|
1191
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1192
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1193
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1194
|
+
case 3:
|
|
1195
|
+
_b.sent();
|
|
1196
|
+
_b.label = 4;
|
|
1197
|
+
case 4:
|
|
1198
|
+
if (_config.validateRequests !== false) {
|
|
1199
|
+
(0, RequestValidator_1.validateRequest)("getTemplateDiff", requestContext);
|
|
1200
|
+
}
|
|
1201
|
+
return [2, requestContext];
|
|
1202
|
+
}
|
|
1203
|
+
});
|
|
1204
|
+
});
|
|
1205
|
+
};
|
|
1071
1206
|
ClientRequestFactory.prototype.getTemplateModelCode = function (templateId, lang, version, _options) {
|
|
1072
1207
|
return __awaiter(this, void 0, void 0, function () {
|
|
1073
1208
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -1114,6 +1249,46 @@ var ClientRequestFactory = (function (_super) {
|
|
|
1114
1249
|
});
|
|
1115
1250
|
});
|
|
1116
1251
|
};
|
|
1252
|
+
ClientRequestFactory.prototype.getTemplatePageImages = function (templateId, version, _options) {
|
|
1253
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1254
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1255
|
+
var _a;
|
|
1256
|
+
return __generator(this, function (_b) {
|
|
1257
|
+
switch (_b.label) {
|
|
1258
|
+
case 0:
|
|
1259
|
+
_config = _options || this.configuration;
|
|
1260
|
+
if (templateId === null || templateId === undefined) {
|
|
1261
|
+
throw new baseapi_1.RequiredError("Client", "getTemplatePageImages", "templateId");
|
|
1262
|
+
}
|
|
1263
|
+
localVarPath = '/templates/{template_id}/page_images'
|
|
1264
|
+
.replace('{template_id}', encodeURIComponent(String(templateId)));
|
|
1265
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
1266
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1267
|
+
if (version !== undefined) {
|
|
1268
|
+
requestContext.setQueryParam("version", ObjectSerializer_1.ObjectSerializer.serialize(version, "string", ""));
|
|
1269
|
+
}
|
|
1270
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
1271
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1272
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1273
|
+
case 1:
|
|
1274
|
+
_b.sent();
|
|
1275
|
+
_b.label = 2;
|
|
1276
|
+
case 2:
|
|
1277
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1278
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1279
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1280
|
+
case 3:
|
|
1281
|
+
_b.sent();
|
|
1282
|
+
_b.label = 4;
|
|
1283
|
+
case 4:
|
|
1284
|
+
if (_config.validateRequests !== false) {
|
|
1285
|
+
(0, RequestValidator_1.validateRequest)("getTemplatePageImages", requestContext);
|
|
1286
|
+
}
|
|
1287
|
+
return [2, requestContext];
|
|
1288
|
+
}
|
|
1289
|
+
});
|
|
1290
|
+
});
|
|
1291
|
+
};
|
|
1117
1292
|
ClientRequestFactory.prototype.getTemplateSchema = function (templateId, version, _options) {
|
|
1118
1293
|
return __awaiter(this, void 0, void 0, function () {
|
|
1119
1294
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -1365,6 +1540,46 @@ var ClientRequestFactory = (function (_super) {
|
|
|
1365
1540
|
});
|
|
1366
1541
|
});
|
|
1367
1542
|
};
|
|
1543
|
+
ClientRequestFactory.prototype.listTemplateFields = function (templateId, version, _options) {
|
|
1544
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1545
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1546
|
+
var _a;
|
|
1547
|
+
return __generator(this, function (_b) {
|
|
1548
|
+
switch (_b.label) {
|
|
1549
|
+
case 0:
|
|
1550
|
+
_config = _options || this.configuration;
|
|
1551
|
+
if (templateId === null || templateId === undefined) {
|
|
1552
|
+
throw new baseapi_1.RequiredError("Client", "listTemplateFields", "templateId");
|
|
1553
|
+
}
|
|
1554
|
+
localVarPath = '/templates/{template_id}/fields'
|
|
1555
|
+
.replace('{template_id}', encodeURIComponent(String(templateId)));
|
|
1556
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
1557
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1558
|
+
if (version !== undefined) {
|
|
1559
|
+
requestContext.setQueryParam("version", ObjectSerializer_1.ObjectSerializer.serialize(version, "string", ""));
|
|
1560
|
+
}
|
|
1561
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
1562
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1563
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1564
|
+
case 1:
|
|
1565
|
+
_b.sent();
|
|
1566
|
+
_b.label = 2;
|
|
1567
|
+
case 2:
|
|
1568
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1569
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1570
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1571
|
+
case 3:
|
|
1572
|
+
_b.sent();
|
|
1573
|
+
_b.label = 4;
|
|
1574
|
+
case 4:
|
|
1575
|
+
if (_config.validateRequests !== false) {
|
|
1576
|
+
(0, RequestValidator_1.validateRequest)("listTemplateFields", requestContext);
|
|
1577
|
+
}
|
|
1578
|
+
return [2, requestContext];
|
|
1579
|
+
}
|
|
1580
|
+
});
|
|
1581
|
+
});
|
|
1582
|
+
};
|
|
1368
1583
|
ClientRequestFactory.prototype.listTemplateSubmissions = function (templateId, test, createdAfter, createdBefore, includeData, limit, cursor, _options) {
|
|
1369
1584
|
return __awaiter(this, void 0, void 0, function () {
|
|
1370
1585
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -1657,7 +1872,7 @@ var ClientRequestFactory = (function (_super) {
|
|
|
1657
1872
|
});
|
|
1658
1873
|
});
|
|
1659
1874
|
};
|
|
1660
|
-
ClientRequestFactory.prototype.
|
|
1875
|
+
ClientRequestFactory.prototype.removeTemplateFields = function (templateId, body, _options) {
|
|
1661
1876
|
return __awaiter(this, void 0, void 0, function () {
|
|
1662
1877
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1663
1878
|
var _a;
|
|
@@ -1665,21 +1880,21 @@ var ClientRequestFactory = (function (_super) {
|
|
|
1665
1880
|
switch (_b.label) {
|
|
1666
1881
|
case 0:
|
|
1667
1882
|
_config = _options || this.configuration;
|
|
1668
|
-
if (
|
|
1669
|
-
throw new baseapi_1.RequiredError("Client", "
|
|
1883
|
+
if (templateId === null || templateId === undefined) {
|
|
1884
|
+
throw new baseapi_1.RequiredError("Client", "removeTemplateFields", "templateId");
|
|
1670
1885
|
}
|
|
1671
1886
|
if (body === null || body === undefined) {
|
|
1672
|
-
throw new baseapi_1.RequiredError("Client", "
|
|
1887
|
+
throw new baseapi_1.RequiredError("Client", "removeTemplateFields", "body");
|
|
1673
1888
|
}
|
|
1674
|
-
localVarPath = '/
|
|
1675
|
-
.replace('{
|
|
1889
|
+
localVarPath = '/templates/{template_id}/fields/remove'
|
|
1890
|
+
.replace('{template_id}', encodeURIComponent(String(templateId)));
|
|
1676
1891
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
1677
1892
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1678
1893
|
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1679
1894
|
"application/json"
|
|
1680
1895
|
]);
|
|
1681
1896
|
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1682
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "
|
|
1897
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RemoveTemplateFieldsRequest", ""), contentType);
|
|
1683
1898
|
requestContext.setBody(serializedBody);
|
|
1684
1899
|
authMethod = _config.authMethods["api_token_basic"];
|
|
1685
1900
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
@@ -1696,14 +1911,14 @@ var ClientRequestFactory = (function (_super) {
|
|
|
1696
1911
|
_b.label = 4;
|
|
1697
1912
|
case 4:
|
|
1698
1913
|
if (_config.validateRequests !== false) {
|
|
1699
|
-
(0, RequestValidator_1.validateRequest)("
|
|
1914
|
+
(0, RequestValidator_1.validateRequest)("removeTemplateFields", requestContext);
|
|
1700
1915
|
}
|
|
1701
1916
|
return [2, requestContext];
|
|
1702
1917
|
}
|
|
1703
1918
|
});
|
|
1704
1919
|
});
|
|
1705
1920
|
};
|
|
1706
|
-
ClientRequestFactory.prototype.
|
|
1921
|
+
ClientRequestFactory.prototype.renameFolder = function (folderId, body, _options) {
|
|
1707
1922
|
return __awaiter(this, void 0, void 0, function () {
|
|
1708
1923
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1709
1924
|
var _a;
|
|
@@ -1711,21 +1926,21 @@ var ClientRequestFactory = (function (_super) {
|
|
|
1711
1926
|
switch (_b.label) {
|
|
1712
1927
|
case 0:
|
|
1713
1928
|
_config = _options || this.configuration;
|
|
1714
|
-
if (
|
|
1715
|
-
throw new baseapi_1.RequiredError("Client", "
|
|
1929
|
+
if (folderId === null || folderId === undefined) {
|
|
1930
|
+
throw new baseapi_1.RequiredError("Client", "renameFolder", "folderId");
|
|
1716
1931
|
}
|
|
1717
1932
|
if (body === null || body === undefined) {
|
|
1718
|
-
throw new baseapi_1.RequiredError("Client", "
|
|
1933
|
+
throw new baseapi_1.RequiredError("Client", "renameFolder", "body");
|
|
1719
1934
|
}
|
|
1720
|
-
localVarPath = '/
|
|
1721
|
-
.replace('{
|
|
1935
|
+
localVarPath = '/folders/{folder_id}/rename'
|
|
1936
|
+
.replace('{folder_id}', encodeURIComponent(String(folderId)));
|
|
1722
1937
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
1723
1938
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1724
1939
|
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1725
1940
|
"application/json"
|
|
1726
1941
|
]);
|
|
1727
1942
|
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1728
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "
|
|
1943
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RenameFolderRequest", ""), contentType);
|
|
1729
1944
|
requestContext.setBody(serializedBody);
|
|
1730
1945
|
authMethod = _config.authMethods["api_token_basic"];
|
|
1731
1946
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
@@ -1742,24 +1957,37 @@ var ClientRequestFactory = (function (_super) {
|
|
|
1742
1957
|
_b.label = 4;
|
|
1743
1958
|
case 4:
|
|
1744
1959
|
if (_config.validateRequests !== false) {
|
|
1745
|
-
(0, RequestValidator_1.validateRequest)("
|
|
1960
|
+
(0, RequestValidator_1.validateRequest)("renameFolder", requestContext);
|
|
1746
1961
|
}
|
|
1747
1962
|
return [2, requestContext];
|
|
1748
1963
|
}
|
|
1749
1964
|
});
|
|
1750
1965
|
});
|
|
1751
1966
|
};
|
|
1752
|
-
ClientRequestFactory.prototype.
|
|
1967
|
+
ClientRequestFactory.prototype.reorderTemplateFields = function (templateId, body, _options) {
|
|
1753
1968
|
return __awaiter(this, void 0, void 0, function () {
|
|
1754
|
-
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1969
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1755
1970
|
var _a;
|
|
1756
1971
|
return __generator(this, function (_b) {
|
|
1757
1972
|
switch (_b.label) {
|
|
1758
1973
|
case 0:
|
|
1759
1974
|
_config = _options || this.configuration;
|
|
1760
|
-
|
|
1761
|
-
|
|
1975
|
+
if (templateId === null || templateId === undefined) {
|
|
1976
|
+
throw new baseapi_1.RequiredError("Client", "reorderTemplateFields", "templateId");
|
|
1977
|
+
}
|
|
1978
|
+
if (body === null || body === undefined) {
|
|
1979
|
+
throw new baseapi_1.RequiredError("Client", "reorderTemplateFields", "body");
|
|
1980
|
+
}
|
|
1981
|
+
localVarPath = '/templates/{template_id}/fields/reorder'
|
|
1982
|
+
.replace('{template_id}', encodeURIComponent(String(templateId)));
|
|
1983
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
1762
1984
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1985
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1986
|
+
"application/json"
|
|
1987
|
+
]);
|
|
1988
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1989
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ReorderTemplateFieldsRequest", ""), contentType);
|
|
1990
|
+
requestContext.setBody(serializedBody);
|
|
1763
1991
|
authMethod = _config.authMethods["api_token_basic"];
|
|
1764
1992
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1765
1993
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
@@ -1775,14 +2003,14 @@ var ClientRequestFactory = (function (_super) {
|
|
|
1775
2003
|
_b.label = 4;
|
|
1776
2004
|
case 4:
|
|
1777
2005
|
if (_config.validateRequests !== false) {
|
|
1778
|
-
(0, RequestValidator_1.validateRequest)("
|
|
2006
|
+
(0, RequestValidator_1.validateRequest)("reorderTemplateFields", requestContext);
|
|
1779
2007
|
}
|
|
1780
2008
|
return [2, requestContext];
|
|
1781
2009
|
}
|
|
1782
2010
|
});
|
|
1783
2011
|
});
|
|
1784
2012
|
};
|
|
1785
|
-
ClientRequestFactory.prototype.
|
|
2013
|
+
ClientRequestFactory.prototype.restoreTemplateVersion = function (templateId, body, _options) {
|
|
1786
2014
|
return __awaiter(this, void 0, void 0, function () {
|
|
1787
2015
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1788
2016
|
var _a;
|
|
@@ -1790,21 +2018,21 @@ var ClientRequestFactory = (function (_super) {
|
|
|
1790
2018
|
switch (_b.label) {
|
|
1791
2019
|
case 0:
|
|
1792
2020
|
_config = _options || this.configuration;
|
|
1793
|
-
if (
|
|
1794
|
-
throw new baseapi_1.RequiredError("Client", "
|
|
2021
|
+
if (templateId === null || templateId === undefined) {
|
|
2022
|
+
throw new baseapi_1.RequiredError("Client", "restoreTemplateVersion", "templateId");
|
|
1795
2023
|
}
|
|
1796
2024
|
if (body === null || body === undefined) {
|
|
1797
|
-
throw new baseapi_1.RequiredError("Client", "
|
|
2025
|
+
throw new baseapi_1.RequiredError("Client", "restoreTemplateVersion", "body");
|
|
1798
2026
|
}
|
|
1799
|
-
localVarPath = '/
|
|
1800
|
-
.replace('{
|
|
1801
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
2027
|
+
localVarPath = '/templates/{template_id}/restore_version'
|
|
2028
|
+
.replace('{template_id}', encodeURIComponent(String(templateId)));
|
|
2029
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
1802
2030
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1803
2031
|
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1804
2032
|
"application/json"
|
|
1805
2033
|
]);
|
|
1806
2034
|
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1807
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "
|
|
2035
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "RestoreTemplateVersionRequest", ""), contentType);
|
|
1808
2036
|
requestContext.setBody(serializedBody);
|
|
1809
2037
|
authMethod = _config.authMethods["api_token_basic"];
|
|
1810
2038
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
@@ -1821,16 +2049,95 @@ var ClientRequestFactory = (function (_super) {
|
|
|
1821
2049
|
_b.label = 4;
|
|
1822
2050
|
case 4:
|
|
1823
2051
|
if (_config.validateRequests !== false) {
|
|
1824
|
-
(0, RequestValidator_1.validateRequest)("
|
|
2052
|
+
(0, RequestValidator_1.validateRequest)("restoreTemplateVersion", requestContext);
|
|
1825
2053
|
}
|
|
1826
2054
|
return [2, requestContext];
|
|
1827
2055
|
}
|
|
1828
2056
|
});
|
|
1829
2057
|
});
|
|
1830
2058
|
};
|
|
1831
|
-
ClientRequestFactory.prototype.
|
|
2059
|
+
ClientRequestFactory.prototype.testAuthentication = function (_options) {
|
|
1832
2060
|
return __awaiter(this, void 0, void 0, function () {
|
|
1833
|
-
var _config, localVarPath, requestContext,
|
|
2061
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
2062
|
+
var _a;
|
|
2063
|
+
return __generator(this, function (_b) {
|
|
2064
|
+
switch (_b.label) {
|
|
2065
|
+
case 0:
|
|
2066
|
+
_config = _options || this.configuration;
|
|
2067
|
+
localVarPath = '/authentication';
|
|
2068
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
2069
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
2070
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
2071
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
2072
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
2073
|
+
case 1:
|
|
2074
|
+
_b.sent();
|
|
2075
|
+
_b.label = 2;
|
|
2076
|
+
case 2:
|
|
2077
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
2078
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
2079
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
2080
|
+
case 3:
|
|
2081
|
+
_b.sent();
|
|
2082
|
+
_b.label = 4;
|
|
2083
|
+
case 4:
|
|
2084
|
+
if (_config.validateRequests !== false) {
|
|
2085
|
+
(0, RequestValidator_1.validateRequest)("testAuthentication", requestContext);
|
|
2086
|
+
}
|
|
2087
|
+
return [2, requestContext];
|
|
2088
|
+
}
|
|
2089
|
+
});
|
|
2090
|
+
});
|
|
2091
|
+
};
|
|
2092
|
+
ClientRequestFactory.prototype.updateSignatureRequest = function (signatureRequestId, body, _options) {
|
|
2093
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2094
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
2095
|
+
var _a;
|
|
2096
|
+
return __generator(this, function (_b) {
|
|
2097
|
+
switch (_b.label) {
|
|
2098
|
+
case 0:
|
|
2099
|
+
_config = _options || this.configuration;
|
|
2100
|
+
if (signatureRequestId === null || signatureRequestId === undefined) {
|
|
2101
|
+
throw new baseapi_1.RequiredError("Client", "updateSignatureRequest", "signatureRequestId");
|
|
2102
|
+
}
|
|
2103
|
+
if (body === null || body === undefined) {
|
|
2104
|
+
throw new baseapi_1.RequiredError("Client", "updateSignatureRequest", "body");
|
|
2105
|
+
}
|
|
2106
|
+
localVarPath = '/signature_requests/{signature_request_id}'
|
|
2107
|
+
.replace('{signature_request_id}', encodeURIComponent(String(signatureRequestId)));
|
|
2108
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
2109
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
2110
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
2111
|
+
"application/json"
|
|
2112
|
+
]);
|
|
2113
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
2114
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "UpdateSignatureRequestRequest", ""), contentType);
|
|
2115
|
+
requestContext.setBody(serializedBody);
|
|
2116
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
2117
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
2118
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
2119
|
+
case 1:
|
|
2120
|
+
_b.sent();
|
|
2121
|
+
_b.label = 2;
|
|
2122
|
+
case 2:
|
|
2123
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
2124
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
2125
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
2126
|
+
case 3:
|
|
2127
|
+
_b.sent();
|
|
2128
|
+
_b.label = 4;
|
|
2129
|
+
case 4:
|
|
2130
|
+
if (_config.validateRequests !== false) {
|
|
2131
|
+
(0, RequestValidator_1.validateRequest)("updateSignatureRequest", requestContext);
|
|
2132
|
+
}
|
|
2133
|
+
return [2, requestContext];
|
|
2134
|
+
}
|
|
2135
|
+
});
|
|
2136
|
+
});
|
|
2137
|
+
};
|
|
2138
|
+
ClientRequestFactory.prototype.updateTemplate = function (templateId, body, _options) {
|
|
2139
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2140
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1834
2141
|
var _a;
|
|
1835
2142
|
return __generator(this, function (_b) {
|
|
1836
2143
|
switch (_b.label) {
|
|
@@ -1923,6 +2230,52 @@ var ClientRequestFactory = (function (_super) {
|
|
|
1923
2230
|
});
|
|
1924
2231
|
});
|
|
1925
2232
|
};
|
|
2233
|
+
ClientRequestFactory.prototype.updateTemplateFields = function (templateId, body, _options) {
|
|
2234
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2235
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
2236
|
+
var _a;
|
|
2237
|
+
return __generator(this, function (_b) {
|
|
2238
|
+
switch (_b.label) {
|
|
2239
|
+
case 0:
|
|
2240
|
+
_config = _options || this.configuration;
|
|
2241
|
+
if (templateId === null || templateId === undefined) {
|
|
2242
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplateFields", "templateId");
|
|
2243
|
+
}
|
|
2244
|
+
if (body === null || body === undefined) {
|
|
2245
|
+
throw new baseapi_1.RequiredError("Client", "updateTemplateFields", "body");
|
|
2246
|
+
}
|
|
2247
|
+
localVarPath = '/templates/{template_id}/fields'
|
|
2248
|
+
.replace('{template_id}', encodeURIComponent(String(templateId)));
|
|
2249
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
2250
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
2251
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
2252
|
+
"application/json"
|
|
2253
|
+
]);
|
|
2254
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
2255
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "UpdateTemplateFieldsRequest", ""), contentType);
|
|
2256
|
+
requestContext.setBody(serializedBody);
|
|
2257
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
2258
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
2259
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
2260
|
+
case 1:
|
|
2261
|
+
_b.sent();
|
|
2262
|
+
_b.label = 2;
|
|
2263
|
+
case 2:
|
|
2264
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
2265
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
2266
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
2267
|
+
case 3:
|
|
2268
|
+
_b.sent();
|
|
2269
|
+
_b.label = 4;
|
|
2270
|
+
case 4:
|
|
2271
|
+
if (_config.validateRequests !== false) {
|
|
2272
|
+
(0, RequestValidator_1.validateRequest)("updateTemplateFields", requestContext);
|
|
2273
|
+
}
|
|
2274
|
+
return [2, requestContext];
|
|
2275
|
+
}
|
|
2276
|
+
});
|
|
2277
|
+
});
|
|
2278
|
+
};
|
|
1926
2279
|
ClientRequestFactory.prototype.updateWebhook = function (webhookId, body, _options) {
|
|
1927
2280
|
return __awaiter(this, void 0, void 0, function () {
|
|
1928
2281
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
@@ -2120,12 +2473,130 @@ var ClientRequestFactory = (function (_super) {
|
|
|
2120
2473
|
});
|
|
2121
2474
|
});
|
|
2122
2475
|
};
|
|
2476
|
+
ClientRequestFactory.prototype.validateSubmission = function (templateId, body, version, _options) {
|
|
2477
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2478
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
2479
|
+
var _a;
|
|
2480
|
+
return __generator(this, function (_b) {
|
|
2481
|
+
switch (_b.label) {
|
|
2482
|
+
case 0:
|
|
2483
|
+
_config = _options || this.configuration;
|
|
2484
|
+
if (templateId === null || templateId === undefined) {
|
|
2485
|
+
throw new baseapi_1.RequiredError("Client", "validateSubmission", "templateId");
|
|
2486
|
+
}
|
|
2487
|
+
if (body === null || body === undefined) {
|
|
2488
|
+
throw new baseapi_1.RequiredError("Client", "validateSubmission", "body");
|
|
2489
|
+
}
|
|
2490
|
+
localVarPath = '/templates/{template_id}/submissions/validate'
|
|
2491
|
+
.replace('{template_id}', encodeURIComponent(String(templateId)));
|
|
2492
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
2493
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
2494
|
+
if (version !== undefined) {
|
|
2495
|
+
requestContext.setQueryParam("version", ObjectSerializer_1.ObjectSerializer.serialize(version, "string", ""));
|
|
2496
|
+
}
|
|
2497
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
2498
|
+
"application/json"
|
|
2499
|
+
]);
|
|
2500
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
2501
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(body, "ValidateSubmissionRequest", ""), contentType);
|
|
2502
|
+
requestContext.setBody(serializedBody);
|
|
2503
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
2504
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
2505
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
2506
|
+
case 1:
|
|
2507
|
+
_b.sent();
|
|
2508
|
+
_b.label = 2;
|
|
2509
|
+
case 2:
|
|
2510
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
2511
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
2512
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
2513
|
+
case 3:
|
|
2514
|
+
_b.sent();
|
|
2515
|
+
_b.label = 4;
|
|
2516
|
+
case 4:
|
|
2517
|
+
if (_config.validateRequests !== false) {
|
|
2518
|
+
(0, RequestValidator_1.validateRequest)("validateSubmission", requestContext);
|
|
2519
|
+
}
|
|
2520
|
+
return [2, requestContext];
|
|
2521
|
+
}
|
|
2522
|
+
});
|
|
2523
|
+
});
|
|
2524
|
+
};
|
|
2123
2525
|
return ClientRequestFactory;
|
|
2124
2526
|
}(baseapi_1.BaseAPIRequestFactory));
|
|
2125
2527
|
exports.ClientRequestFactory = ClientRequestFactory;
|
|
2126
2528
|
var ClientResponseProcessor = (function () {
|
|
2127
2529
|
function ClientResponseProcessor() {
|
|
2128
2530
|
}
|
|
2531
|
+
ClientResponseProcessor.prototype.addTemplateFieldsWithHttpInfo = function (response) {
|
|
2532
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2533
|
+
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;
|
|
2534
|
+
return __generator(this, function (_2) {
|
|
2535
|
+
switch (_2.label) {
|
|
2536
|
+
case 0:
|
|
2537
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2538
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
2539
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2540
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2541
|
+
return [4, response.body.text()];
|
|
2542
|
+
case 1:
|
|
2543
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
2544
|
+
"TemplateFields", ""]);
|
|
2545
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2546
|
+
case 2:
|
|
2547
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
|
|
2548
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2549
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2550
|
+
return [4, response.body.text()];
|
|
2551
|
+
case 3:
|
|
2552
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
2553
|
+
"ErrorResponse", ""]);
|
|
2554
|
+
throw new exception_1.ApiException(response.httpStatusCode, "the template\'s PDF hasn\'t been processed", body, response.headers);
|
|
2555
|
+
case 4:
|
|
2556
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 6];
|
|
2557
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2558
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2559
|
+
return [4, response.body.text()];
|
|
2560
|
+
case 5:
|
|
2561
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
2562
|
+
"ErrorResponse", ""]);
|
|
2563
|
+
throw new exception_1.ApiException(response.httpStatusCode, "invalid fields", body, response.headers);
|
|
2564
|
+
case 6:
|
|
2565
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 8];
|
|
2566
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2567
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2568
|
+
return [4, response.body.text()];
|
|
2569
|
+
case 7:
|
|
2570
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
2571
|
+
"ErrorResponse", ""]);
|
|
2572
|
+
throw new exception_1.ApiException(response.httpStatusCode, "template not found", body, response.headers);
|
|
2573
|
+
case 8:
|
|
2574
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 10];
|
|
2575
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2576
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2577
|
+
return [4, response.body.text()];
|
|
2578
|
+
case 9:
|
|
2579
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
2580
|
+
"ErrorResponse", ""]);
|
|
2581
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
2582
|
+
case 10:
|
|
2583
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
2584
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2585
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2586
|
+
return [4, response.body.text()];
|
|
2587
|
+
case 11:
|
|
2588
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
2589
|
+
"TemplateFields", ""]);
|
|
2590
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2591
|
+
case 12:
|
|
2592
|
+
_0 = exception_1.ApiException.bind;
|
|
2593
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2594
|
+
return [4, response.getBodyAsAny()];
|
|
2595
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
2596
|
+
}
|
|
2597
|
+
});
|
|
2598
|
+
});
|
|
2599
|
+
};
|
|
2129
2600
|
ClientResponseProcessor.prototype.copyTemplateWithHttpInfo = function (response) {
|
|
2130
2601
|
return __awaiter(this, void 0, void 0, function () {
|
|
2131
2602
|
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;
|
|
@@ -3122,11 +3593,11 @@ var ClientResponseProcessor = (function () {
|
|
|
3122
3593
|
});
|
|
3123
3594
|
});
|
|
3124
3595
|
};
|
|
3125
|
-
ClientResponseProcessor.prototype.
|
|
3596
|
+
ClientResponseProcessor.prototype.generateSubmissionFilesWithHttpInfo = function (response) {
|
|
3126
3597
|
return __awaiter(this, void 0, void 0, function () {
|
|
3127
|
-
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;
|
|
3128
|
-
return __generator(this, function (
|
|
3129
|
-
switch (
|
|
3598
|
+
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;
|
|
3599
|
+
return __generator(this, function (_2) {
|
|
3600
|
+
switch (_2.label) {
|
|
3130
3601
|
case 0:
|
|
3131
3602
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3132
3603
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -3134,7 +3605,7 @@ var ClientResponseProcessor = (function () {
|
|
|
3134
3605
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3135
3606
|
return [4, response.body.text()];
|
|
3136
3607
|
case 1:
|
|
3137
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
3608
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
3138
3609
|
"Submission", ""]);
|
|
3139
3610
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3140
3611
|
case 2:
|
|
@@ -3143,37 +3614,106 @@ var ClientResponseProcessor = (function () {
|
|
|
3143
3614
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3144
3615
|
return [4, response.body.text()];
|
|
3145
3616
|
case 3:
|
|
3146
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
3617
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
3147
3618
|
"ErrorResponse", ""]);
|
|
3148
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
3619
|
+
throw new exception_1.ApiException(response.httpStatusCode, "files not possible", body, response.headers);
|
|
3149
3620
|
case 4:
|
|
3150
|
-
if (!(0, util_1.isCodeInRange)("
|
|
3621
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 6];
|
|
3151
3622
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3152
3623
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3153
3624
|
return [4, response.body.text()];
|
|
3154
3625
|
case 5:
|
|
3155
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
3626
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
3156
3627
|
"ErrorResponse", ""]);
|
|
3157
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
3628
|
+
throw new exception_1.ApiException(response.httpStatusCode, "invalid request", body, response.headers);
|
|
3158
3629
|
case 6:
|
|
3159
|
-
if (!(0, util_1.isCodeInRange)("
|
|
3630
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 8];
|
|
3160
3631
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3161
3632
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3162
3633
|
return [4, response.body.text()];
|
|
3163
3634
|
case 7:
|
|
3164
|
-
body = _p.apply(_o, [_r.apply(_q, [
|
|
3635
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
3165
3636
|
"ErrorResponse", ""]);
|
|
3166
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
3637
|
+
throw new exception_1.ApiException(response.httpStatusCode, "submission not found", body, response.headers);
|
|
3167
3638
|
case 8:
|
|
3168
|
-
if (!(
|
|
3639
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 10];
|
|
3169
3640
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3170
3641
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3171
3642
|
return [4, response.body.text()];
|
|
3172
3643
|
case 9:
|
|
3173
|
-
body = _t.apply(_s, [_v.apply(_u, [
|
|
3174
|
-
"
|
|
3175
|
-
|
|
3176
|
-
case 10:
|
|
3644
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
3645
|
+
"ErrorResponse", ""]);
|
|
3646
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
3647
|
+
case 10:
|
|
3648
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
3649
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3650
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3651
|
+
return [4, response.body.text()];
|
|
3652
|
+
case 11:
|
|
3653
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
3654
|
+
"Submission", ""]);
|
|
3655
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3656
|
+
case 12:
|
|
3657
|
+
_0 = exception_1.ApiException.bind;
|
|
3658
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
3659
|
+
return [4, response.getBodyAsAny()];
|
|
3660
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
3661
|
+
}
|
|
3662
|
+
});
|
|
3663
|
+
});
|
|
3664
|
+
};
|
|
3665
|
+
ClientResponseProcessor.prototype.generateSubmissionPreviewWithHttpInfo = function (response) {
|
|
3666
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3667
|
+
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;
|
|
3668
|
+
return __generator(this, function (_y) {
|
|
3669
|
+
switch (_y.label) {
|
|
3670
|
+
case 0:
|
|
3671
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3672
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
3673
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3674
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3675
|
+
return [4, response.body.text()];
|
|
3676
|
+
case 1:
|
|
3677
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
3678
|
+
"Submission", ""]);
|
|
3679
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3680
|
+
case 2:
|
|
3681
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
|
|
3682
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3683
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3684
|
+
return [4, response.body.text()];
|
|
3685
|
+
case 3:
|
|
3686
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
3687
|
+
"ErrorResponse", ""]);
|
|
3688
|
+
throw new exception_1.ApiException(response.httpStatusCode, "preview not possible", body, response.headers);
|
|
3689
|
+
case 4:
|
|
3690
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
3691
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3692
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3693
|
+
return [4, response.body.text()];
|
|
3694
|
+
case 5:
|
|
3695
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
3696
|
+
"ErrorResponse", ""]);
|
|
3697
|
+
throw new exception_1.ApiException(response.httpStatusCode, "submission not found", body, response.headers);
|
|
3698
|
+
case 6:
|
|
3699
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 8];
|
|
3700
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3701
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3702
|
+
return [4, response.body.text()];
|
|
3703
|
+
case 7:
|
|
3704
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
3705
|
+
"ErrorResponse", ""]);
|
|
3706
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
3707
|
+
case 8:
|
|
3708
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
3709
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3710
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3711
|
+
return [4, response.body.text()];
|
|
3712
|
+
case 9:
|
|
3713
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
3714
|
+
"Submission", ""]);
|
|
3715
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3716
|
+
case 10:
|
|
3177
3717
|
_w = exception_1.ApiException.bind;
|
|
3178
3718
|
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
3179
3719
|
return [4, response.getBodyAsAny()];
|
|
@@ -3590,6 +4130,66 @@ var ClientResponseProcessor = (function () {
|
|
|
3590
4130
|
});
|
|
3591
4131
|
});
|
|
3592
4132
|
};
|
|
4133
|
+
ClientResponseProcessor.prototype.getTemplateDiffWithHttpInfo = function (response) {
|
|
4134
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4135
|
+
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;
|
|
4136
|
+
return __generator(this, function (_y) {
|
|
4137
|
+
switch (_y.label) {
|
|
4138
|
+
case 0:
|
|
4139
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
4140
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
4141
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4142
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4143
|
+
return [4, response.body.text()];
|
|
4144
|
+
case 1:
|
|
4145
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
4146
|
+
"TemplateDiff", ""]);
|
|
4147
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
4148
|
+
case 2:
|
|
4149
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
|
|
4150
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4151
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4152
|
+
return [4, response.body.text()];
|
|
4153
|
+
case 3:
|
|
4154
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
4155
|
+
"ErrorResponse", ""]);
|
|
4156
|
+
throw new exception_1.ApiException(response.httpStatusCode, "the template\'s PDF hasn\'t been processed", body, response.headers);
|
|
4157
|
+
case 4:
|
|
4158
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
4159
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4160
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4161
|
+
return [4, response.body.text()];
|
|
4162
|
+
case 5:
|
|
4163
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
4164
|
+
"ErrorResponse", ""]);
|
|
4165
|
+
throw new exception_1.ApiException(response.httpStatusCode, "template not found", body, response.headers);
|
|
4166
|
+
case 6:
|
|
4167
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 8];
|
|
4168
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4169
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4170
|
+
return [4, response.body.text()];
|
|
4171
|
+
case 7:
|
|
4172
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
4173
|
+
"ErrorResponse", ""]);
|
|
4174
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
4175
|
+
case 8:
|
|
4176
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
4177
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4178
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4179
|
+
return [4, response.body.text()];
|
|
4180
|
+
case 9:
|
|
4181
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
4182
|
+
"TemplateDiff", ""]);
|
|
4183
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
4184
|
+
case 10:
|
|
4185
|
+
_w = exception_1.ApiException.bind;
|
|
4186
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
4187
|
+
return [4, response.getBodyAsAny()];
|
|
4188
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
4189
|
+
}
|
|
4190
|
+
});
|
|
4191
|
+
});
|
|
4192
|
+
};
|
|
3593
4193
|
ClientResponseProcessor.prototype.getTemplateModelCodeWithHttpInfo = function (response) {
|
|
3594
4194
|
return __awaiter(this, void 0, void 0, function () {
|
|
3595
4195
|
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;
|
|
@@ -3650,6 +4250,66 @@ var ClientResponseProcessor = (function () {
|
|
|
3650
4250
|
});
|
|
3651
4251
|
});
|
|
3652
4252
|
};
|
|
4253
|
+
ClientResponseProcessor.prototype.getTemplatePageImagesWithHttpInfo = function (response) {
|
|
4254
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4255
|
+
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;
|
|
4256
|
+
return __generator(this, function (_y) {
|
|
4257
|
+
switch (_y.label) {
|
|
4258
|
+
case 0:
|
|
4259
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
4260
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
4261
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4262
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4263
|
+
return [4, response.body.text()];
|
|
4264
|
+
case 1:
|
|
4265
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
4266
|
+
"TemplatePageImages", ""]);
|
|
4267
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
4268
|
+
case 2:
|
|
4269
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
|
|
4270
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4271
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4272
|
+
return [4, response.body.text()];
|
|
4273
|
+
case 3:
|
|
4274
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
4275
|
+
"ErrorResponse", ""]);
|
|
4276
|
+
throw new exception_1.ApiException(response.httpStatusCode, "no page images", body, response.headers);
|
|
4277
|
+
case 4:
|
|
4278
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
4279
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4280
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4281
|
+
return [4, response.body.text()];
|
|
4282
|
+
case 5:
|
|
4283
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
4284
|
+
"ErrorResponse", ""]);
|
|
4285
|
+
throw new exception_1.ApiException(response.httpStatusCode, "template not found", body, response.headers);
|
|
4286
|
+
case 6:
|
|
4287
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 8];
|
|
4288
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4289
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4290
|
+
return [4, response.body.text()];
|
|
4291
|
+
case 7:
|
|
4292
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
4293
|
+
"ErrorResponse", ""]);
|
|
4294
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
4295
|
+
case 8:
|
|
4296
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
4297
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4298
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4299
|
+
return [4, response.body.text()];
|
|
4300
|
+
case 9:
|
|
4301
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
4302
|
+
"TemplatePageImages", ""]);
|
|
4303
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
4304
|
+
case 10:
|
|
4305
|
+
_w = exception_1.ApiException.bind;
|
|
4306
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
4307
|
+
return [4, response.getBodyAsAny()];
|
|
4308
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
4309
|
+
}
|
|
4310
|
+
});
|
|
4311
|
+
});
|
|
4312
|
+
};
|
|
3653
4313
|
ClientResponseProcessor.prototype.getTemplateSchemaWithHttpInfo = function (response) {
|
|
3654
4314
|
return __awaiter(this, void 0, void 0, function () {
|
|
3655
4315
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
@@ -3956,6 +4616,66 @@ var ClientResponseProcessor = (function () {
|
|
|
3956
4616
|
});
|
|
3957
4617
|
});
|
|
3958
4618
|
};
|
|
4619
|
+
ClientResponseProcessor.prototype.listTemplateFieldsWithHttpInfo = function (response) {
|
|
4620
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4621
|
+
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;
|
|
4622
|
+
return __generator(this, function (_y) {
|
|
4623
|
+
switch (_y.label) {
|
|
4624
|
+
case 0:
|
|
4625
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
4626
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
4627
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4628
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4629
|
+
return [4, response.body.text()];
|
|
4630
|
+
case 1:
|
|
4631
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
4632
|
+
"TemplateFields", ""]);
|
|
4633
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
4634
|
+
case 2:
|
|
4635
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
|
|
4636
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4637
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4638
|
+
return [4, response.body.text()];
|
|
4639
|
+
case 3:
|
|
4640
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
4641
|
+
"ErrorResponse", ""]);
|
|
4642
|
+
throw new exception_1.ApiException(response.httpStatusCode, "the template\'s PDF hasn\'t been processed", body, response.headers);
|
|
4643
|
+
case 4:
|
|
4644
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
4645
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4646
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4647
|
+
return [4, response.body.text()];
|
|
4648
|
+
case 5:
|
|
4649
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
4650
|
+
"ErrorResponse", ""]);
|
|
4651
|
+
throw new exception_1.ApiException(response.httpStatusCode, "template not found", body, response.headers);
|
|
4652
|
+
case 6:
|
|
4653
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 8];
|
|
4654
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4655
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4656
|
+
return [4, response.body.text()];
|
|
4657
|
+
case 7:
|
|
4658
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
4659
|
+
"ErrorResponse", ""]);
|
|
4660
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
4661
|
+
case 8:
|
|
4662
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
4663
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4664
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4665
|
+
return [4, response.body.text()];
|
|
4666
|
+
case 9:
|
|
4667
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
4668
|
+
"TemplateFields", ""]);
|
|
4669
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
4670
|
+
case 10:
|
|
4671
|
+
_w = exception_1.ApiException.bind;
|
|
4672
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
4673
|
+
return [4, response.getBodyAsAny()];
|
|
4674
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
4675
|
+
}
|
|
4676
|
+
});
|
|
4677
|
+
});
|
|
4678
|
+
};
|
|
3959
4679
|
ClientResponseProcessor.prototype.listTemplateSubmissionsWithHttpInfo = function (response) {
|
|
3960
4680
|
return __awaiter(this, void 0, void 0, function () {
|
|
3961
4681
|
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;
|
|
@@ -4307,6 +5027,66 @@ var ClientResponseProcessor = (function () {
|
|
|
4307
5027
|
});
|
|
4308
5028
|
});
|
|
4309
5029
|
};
|
|
5030
|
+
ClientResponseProcessor.prototype.removeTemplateFieldsWithHttpInfo = function (response) {
|
|
5031
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5032
|
+
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;
|
|
5033
|
+
return __generator(this, function (_y) {
|
|
5034
|
+
switch (_y.label) {
|
|
5035
|
+
case 0:
|
|
5036
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
5037
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
5038
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5039
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5040
|
+
return [4, response.body.text()];
|
|
5041
|
+
case 1:
|
|
5042
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
5043
|
+
"TemplateFields", ""]);
|
|
5044
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
5045
|
+
case 2:
|
|
5046
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
5047
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5048
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5049
|
+
return [4, response.body.text()];
|
|
5050
|
+
case 3:
|
|
5051
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
5052
|
+
"ErrorResponse", ""]);
|
|
5053
|
+
throw new exception_1.ApiException(response.httpStatusCode, "a field the template does not have", body, response.headers);
|
|
5054
|
+
case 4:
|
|
5055
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
5056
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5057
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5058
|
+
return [4, response.body.text()];
|
|
5059
|
+
case 5:
|
|
5060
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
5061
|
+
"ErrorResponse", ""]);
|
|
5062
|
+
throw new exception_1.ApiException(response.httpStatusCode, "template not found", body, response.headers);
|
|
5063
|
+
case 6:
|
|
5064
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 8];
|
|
5065
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5066
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5067
|
+
return [4, response.body.text()];
|
|
5068
|
+
case 7:
|
|
5069
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
5070
|
+
"ErrorResponse", ""]);
|
|
5071
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
5072
|
+
case 8:
|
|
5073
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
5074
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5075
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5076
|
+
return [4, response.body.text()];
|
|
5077
|
+
case 9:
|
|
5078
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
5079
|
+
"TemplateFields", ""]);
|
|
5080
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
5081
|
+
case 10:
|
|
5082
|
+
_w = exception_1.ApiException.bind;
|
|
5083
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
5084
|
+
return [4, response.getBodyAsAny()];
|
|
5085
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
5086
|
+
}
|
|
5087
|
+
});
|
|
5088
|
+
});
|
|
5089
|
+
};
|
|
4310
5090
|
ClientResponseProcessor.prototype.renameFolderWithHttpInfo = function (response) {
|
|
4311
5091
|
return __awaiter(this, void 0, void 0, function () {
|
|
4312
5092
|
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;
|
|
@@ -4367,6 +5147,66 @@ var ClientResponseProcessor = (function () {
|
|
|
4367
5147
|
});
|
|
4368
5148
|
});
|
|
4369
5149
|
};
|
|
5150
|
+
ClientResponseProcessor.prototype.reorderTemplateFieldsWithHttpInfo = function (response) {
|
|
5151
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5152
|
+
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;
|
|
5153
|
+
return __generator(this, function (_y) {
|
|
5154
|
+
switch (_y.label) {
|
|
5155
|
+
case 0:
|
|
5156
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
5157
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
5158
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5159
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5160
|
+
return [4, response.body.text()];
|
|
5161
|
+
case 1:
|
|
5162
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
5163
|
+
"TemplateFields", ""]);
|
|
5164
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
5165
|
+
case 2:
|
|
5166
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
5167
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5168
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5169
|
+
return [4, response.body.text()];
|
|
5170
|
+
case 3:
|
|
5171
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
5172
|
+
"ErrorResponse", ""]);
|
|
5173
|
+
throw new exception_1.ApiException(response.httpStatusCode, "a field missing from the order", body, response.headers);
|
|
5174
|
+
case 4:
|
|
5175
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
5176
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5177
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5178
|
+
return [4, response.body.text()];
|
|
5179
|
+
case 5:
|
|
5180
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
5181
|
+
"ErrorResponse", ""]);
|
|
5182
|
+
throw new exception_1.ApiException(response.httpStatusCode, "template not found", body, response.headers);
|
|
5183
|
+
case 6:
|
|
5184
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 8];
|
|
5185
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5186
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5187
|
+
return [4, response.body.text()];
|
|
5188
|
+
case 7:
|
|
5189
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
5190
|
+
"ErrorResponse", ""]);
|
|
5191
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
5192
|
+
case 8:
|
|
5193
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
5194
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5195
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5196
|
+
return [4, response.body.text()];
|
|
5197
|
+
case 9:
|
|
5198
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
5199
|
+
"TemplateFields", ""]);
|
|
5200
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
5201
|
+
case 10:
|
|
5202
|
+
_w = exception_1.ApiException.bind;
|
|
5203
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
5204
|
+
return [4, response.getBodyAsAny()];
|
|
5205
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
5206
|
+
}
|
|
5207
|
+
});
|
|
5208
|
+
});
|
|
5209
|
+
};
|
|
4370
5210
|
ClientResponseProcessor.prototype.restoreTemplateVersionWithHttpInfo = function (response) {
|
|
4371
5211
|
return __awaiter(this, void 0, void 0, function () {
|
|
4372
5212
|
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;
|
|
@@ -4572,23 +5412,23 @@ var ClientResponseProcessor = (function () {
|
|
|
4572
5412
|
"ErrorResponse", ""]);
|
|
4573
5413
|
throw new exception_1.ApiException(response.httpStatusCode, "template is locked", body, response.headers);
|
|
4574
5414
|
case 4:
|
|
4575
|
-
if (!(0, util_1.isCodeInRange)("
|
|
5415
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 6];
|
|
4576
5416
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4577
5417
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4578
5418
|
return [4, response.body.text()];
|
|
4579
5419
|
case 5:
|
|
4580
5420
|
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
4581
5421
|
"ErrorResponse", ""]);
|
|
4582
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
5422
|
+
throw new exception_1.ApiException(response.httpStatusCode, "invalid field group changes", body, response.headers);
|
|
4583
5423
|
case 6:
|
|
4584
|
-
if (!(0, util_1.isCodeInRange)("
|
|
5424
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 8];
|
|
4585
5425
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
4586
5426
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
4587
5427
|
return [4, response.body.text()];
|
|
4588
5428
|
case 7:
|
|
4589
5429
|
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
4590
5430
|
"ErrorResponse", ""]);
|
|
4591
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
5431
|
+
throw new exception_1.ApiException(response.httpStatusCode, "template not found", body, response.headers);
|
|
4592
5432
|
case 8:
|
|
4593
5433
|
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 10];
|
|
4594
5434
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
@@ -4648,7 +5488,7 @@ var ClientResponseProcessor = (function () {
|
|
|
4648
5488
|
case 5:
|
|
4649
5489
|
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
4650
5490
|
"ErrorResponse", ""]);
|
|
4651
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
5491
|
+
throw new exception_1.ApiException(response.httpStatusCode, "no document, or more than one", body, response.headers);
|
|
4652
5492
|
case 6:
|
|
4653
5493
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 8];
|
|
4654
5494
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
@@ -4685,6 +5525,66 @@ var ClientResponseProcessor = (function () {
|
|
|
4685
5525
|
});
|
|
4686
5526
|
});
|
|
4687
5527
|
};
|
|
5528
|
+
ClientResponseProcessor.prototype.updateTemplateFieldsWithHttpInfo = function (response) {
|
|
5529
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5530
|
+
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;
|
|
5531
|
+
return __generator(this, function (_y) {
|
|
5532
|
+
switch (_y.label) {
|
|
5533
|
+
case 0:
|
|
5534
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
5535
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
5536
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5537
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5538
|
+
return [4, response.body.text()];
|
|
5539
|
+
case 1:
|
|
5540
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
5541
|
+
"TemplateFields", ""]);
|
|
5542
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
5543
|
+
case 2:
|
|
5544
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
5545
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5546
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5547
|
+
return [4, response.body.text()];
|
|
5548
|
+
case 3:
|
|
5549
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
5550
|
+
"ErrorResponse", ""]);
|
|
5551
|
+
throw new exception_1.ApiException(response.httpStatusCode, "invalid changes", body, response.headers);
|
|
5552
|
+
case 4:
|
|
5553
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
5554
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5555
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5556
|
+
return [4, response.body.text()];
|
|
5557
|
+
case 5:
|
|
5558
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
5559
|
+
"ErrorResponse", ""]);
|
|
5560
|
+
throw new exception_1.ApiException(response.httpStatusCode, "template not found", body, response.headers);
|
|
5561
|
+
case 6:
|
|
5562
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 8];
|
|
5563
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5564
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5565
|
+
return [4, response.body.text()];
|
|
5566
|
+
case 7:
|
|
5567
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
5568
|
+
"ErrorResponse", ""]);
|
|
5569
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
5570
|
+
case 8:
|
|
5571
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
5572
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5573
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5574
|
+
return [4, response.body.text()];
|
|
5575
|
+
case 9:
|
|
5576
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
5577
|
+
"TemplateFields", ""]);
|
|
5578
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
5579
|
+
case 10:
|
|
5580
|
+
_w = exception_1.ApiException.bind;
|
|
5581
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
5582
|
+
return [4, response.getBodyAsAny()];
|
|
5583
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
5584
|
+
}
|
|
5585
|
+
});
|
|
5586
|
+
});
|
|
5587
|
+
};
|
|
4688
5588
|
ClientResponseProcessor.prototype.updateWebhookWithHttpInfo = function (response) {
|
|
4689
5589
|
return __awaiter(this, void 0, void 0, function () {
|
|
4690
5590
|
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;
|
|
@@ -4865,6 +5765,66 @@ var ClientResponseProcessor = (function () {
|
|
|
4865
5765
|
});
|
|
4866
5766
|
});
|
|
4867
5767
|
};
|
|
5768
|
+
ClientResponseProcessor.prototype.validateSubmissionWithHttpInfo = function (response) {
|
|
5769
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
5770
|
+
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;
|
|
5771
|
+
return __generator(this, function (_y) {
|
|
5772
|
+
switch (_y.label) {
|
|
5773
|
+
case 0:
|
|
5774
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
5775
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
5776
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5777
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5778
|
+
return [4, response.body.text()];
|
|
5779
|
+
case 1:
|
|
5780
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
5781
|
+
"SubmissionValidation", ""]);
|
|
5782
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
5783
|
+
case 2:
|
|
5784
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
|
|
5785
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5786
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5787
|
+
return [4, response.body.text()];
|
|
5788
|
+
case 3:
|
|
5789
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
5790
|
+
"ErrorResponse", ""]);
|
|
5791
|
+
throw new exception_1.ApiException(response.httpStatusCode, "template not found", body, response.headers);
|
|
5792
|
+
case 4:
|
|
5793
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 6];
|
|
5794
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5795
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5796
|
+
return [4, response.body.text()];
|
|
5797
|
+
case 5:
|
|
5798
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
5799
|
+
"ErrorResponse", ""]);
|
|
5800
|
+
throw new exception_1.ApiException(response.httpStatusCode, "invalid request", body, response.headers);
|
|
5801
|
+
case 6:
|
|
5802
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 8];
|
|
5803
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5804
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5805
|
+
return [4, response.body.text()];
|
|
5806
|
+
case 7:
|
|
5807
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
5808
|
+
"ErrorResponse", ""]);
|
|
5809
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
5810
|
+
case 8:
|
|
5811
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
5812
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
5813
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
5814
|
+
return [4, response.body.text()];
|
|
5815
|
+
case 9:
|
|
5816
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
5817
|
+
"SubmissionValidation", ""]);
|
|
5818
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
5819
|
+
case 10:
|
|
5820
|
+
_w = exception_1.ApiException.bind;
|
|
5821
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
5822
|
+
return [4, response.getBodyAsAny()];
|
|
5823
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
5824
|
+
}
|
|
5825
|
+
});
|
|
5826
|
+
});
|
|
5827
|
+
};
|
|
4868
5828
|
return ClientResponseProcessor;
|
|
4869
5829
|
}());
|
|
4870
5830
|
exports.ClientResponseProcessor = ClientResponseProcessor;
|