docspring-ts 3.0.0 → 3.2.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/AGENTS.md +33 -0
- package/README.md +148 -55
- package/dist/apis/Client.d.ts +16 -0
- package/dist/apis/Client.js +599 -40
- package/dist/apis/Client.js.map +1 -1
- package/dist/http/isomorphic-fetch.js +1 -1
- package/dist/models/CombinePdfsData.js.map +1 -1
- package/dist/models/CombinedSubmissionAction.d.ts +1 -0
- package/dist/models/CombinedSubmissionAction.js +6 -0
- package/dist/models/CombinedSubmissionAction.js.map +1 -1
- package/dist/models/CopyTemplateOptions.d.ts +2 -1
- package/dist/models/CopyTemplateOptions.js +6 -0
- package/dist/models/CopyTemplateOptions.js.map +1 -1
- package/dist/models/CreateWebhookData.d.ts +20 -0
- package/dist/models/CreateWebhookData.js +23 -0
- package/dist/models/CreateWebhookData.js.map +1 -0
- 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/MoveFolderData.d.ts +1 -1
- package/dist/models/MoveTemplateData.d.ts +2 -1
- package/dist/models/MoveTemplateData.js +6 -0
- package/dist/models/MoveTemplateData.js.map +1 -1
- package/dist/models/ObjectSerializer.d.ts +4 -0
- package/dist/models/ObjectSerializer.js +14 -0
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/Submission.d.ts +6 -4
- package/dist/models/Submission.js +7 -0
- package/dist/models/Submission.js.map +1 -1
- package/dist/models/SubmissionAction.d.ts +1 -0
- package/dist/models/SubmissionAction.js +6 -0
- package/dist/models/SubmissionAction.js.map +1 -1
- package/dist/models/SubmissionDataRequest.d.ts +3 -1
- package/dist/models/SubmissionDataRequest.js +7 -0
- package/dist/models/SubmissionDataRequest.js.map +1 -1
- package/dist/models/SubmissionDataRequestShow.d.ts +3 -1
- package/dist/models/SubmissionDataRequestShow.js +7 -0
- package/dist/models/SubmissionDataRequestShow.js.map +1 -1
- package/dist/models/SubmissionPreview.d.ts +3 -1
- package/dist/models/SubmissionPreview.js +7 -0
- package/dist/models/SubmissionPreview.js.map +1 -1
- package/dist/models/Template.d.ts +13 -2
- package/dist/models/Template.js +61 -0
- package/dist/models/Template.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 +11 -2
- package/dist/models/TemplatePreview.js +49 -0
- package/dist/models/TemplatePreview.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 +4 -0
- package/dist/models/all.js +4 -0
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +42 -0
- package/dist/types/ObjectParamAPI.js +38 -0
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +16 -0
- package/dist/types/ObservableAPI.js +282 -114
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +18 -0
- package/dist/types/PromiseAPI.js +86 -4
- package/dist/types/PromiseAPI.js.map +1 -1
- package/package.json +11 -6
package/dist/apis/Client.js
CHANGED
|
@@ -520,6 +520,44 @@ var ClientRequestFactory = (function (_super) {
|
|
|
520
520
|
});
|
|
521
521
|
});
|
|
522
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;
|
|
549
|
+
case 2:
|
|
550
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
551
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
552
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
553
|
+
case 3:
|
|
554
|
+
_b.sent();
|
|
555
|
+
_b.label = 4;
|
|
556
|
+
case 4: return [2, requestContext];
|
|
557
|
+
}
|
|
558
|
+
});
|
|
559
|
+
});
|
|
560
|
+
};
|
|
523
561
|
ClientRequestFactory.prototype.deleteFolder = function (folderId, _options) {
|
|
524
562
|
var _a;
|
|
525
563
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -589,6 +627,39 @@ var ClientRequestFactory = (function (_super) {
|
|
|
589
627
|
});
|
|
590
628
|
});
|
|
591
629
|
};
|
|
630
|
+
ClientRequestFactory.prototype.deleteWebhook = function (webhookId, _options) {
|
|
631
|
+
var _a;
|
|
632
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
633
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
634
|
+
return __generator(this, function (_b) {
|
|
635
|
+
switch (_b.label) {
|
|
636
|
+
case 0:
|
|
637
|
+
_config = _options || this.configuration;
|
|
638
|
+
if (webhookId === null || webhookId === undefined) {
|
|
639
|
+
throw new baseapi_1.RequiredError("Client", "deleteWebhook", "webhookId");
|
|
640
|
+
}
|
|
641
|
+
localVarPath = '/webhooks/{webhook_id}'
|
|
642
|
+
.replace('{' + 'webhook_id' + '}', encodeURIComponent(String(webhookId)));
|
|
643
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
644
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
645
|
+
authMethod = _config.authMethods["api_token_basic"];
|
|
646
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
647
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
648
|
+
case 1:
|
|
649
|
+
_b.sent();
|
|
650
|
+
_b.label = 2;
|
|
651
|
+
case 2:
|
|
652
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
653
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
654
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
655
|
+
case 3:
|
|
656
|
+
_b.sent();
|
|
657
|
+
_b.label = 4;
|
|
658
|
+
case 4: return [2, requestContext];
|
|
659
|
+
}
|
|
660
|
+
});
|
|
661
|
+
});
|
|
662
|
+
};
|
|
592
663
|
ClientRequestFactory.prototype.expireCombinedSubmission = function (combinedSubmissionId, _options) {
|
|
593
664
|
var _a;
|
|
594
665
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -966,6 +1037,45 @@ var ClientRequestFactory = (function (_super) {
|
|
|
966
1037
|
});
|
|
967
1038
|
});
|
|
968
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;
|
|
1067
|
+
case 2:
|
|
1068
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1069
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1070
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1071
|
+
case 3:
|
|
1072
|
+
_b.sent();
|
|
1073
|
+
_b.label = 4;
|
|
1074
|
+
case 4: return [2, requestContext];
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
});
|
|
1078
|
+
};
|
|
969
1079
|
ClientRequestFactory.prototype.getTemplateSchema = function (templateId, _options) {
|
|
970
1080
|
var _a;
|
|
971
1081
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -999,6 +1109,39 @@ var ClientRequestFactory = (function (_super) {
|
|
|
999
1109
|
});
|
|
1000
1110
|
});
|
|
1001
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;
|
|
1133
|
+
case 2:
|
|
1134
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1135
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1136
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1137
|
+
case 3:
|
|
1138
|
+
_b.sent();
|
|
1139
|
+
_b.label = 4;
|
|
1140
|
+
case 4: return [2, requestContext];
|
|
1141
|
+
}
|
|
1142
|
+
});
|
|
1143
|
+
});
|
|
1144
|
+
};
|
|
1002
1145
|
ClientRequestFactory.prototype.listCombinedSubmissions = function (page, perPage, _options) {
|
|
1003
1146
|
var _a;
|
|
1004
1147
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1205,6 +1348,56 @@ var ClientRequestFactory = (function (_super) {
|
|
|
1205
1348
|
});
|
|
1206
1349
|
});
|
|
1207
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;
|
|
1389
|
+
case 2:
|
|
1390
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
1391
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1392
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1393
|
+
case 3:
|
|
1394
|
+
_b.sent();
|
|
1395
|
+
_b.label = 4;
|
|
1396
|
+
case 4: return [2, requestContext];
|
|
1397
|
+
}
|
|
1398
|
+
});
|
|
1399
|
+
});
|
|
1400
|
+
};
|
|
1208
1401
|
ClientRequestFactory.prototype.moveFolderToFolder = function (folderId, data, _options) {
|
|
1209
1402
|
var _a;
|
|
1210
1403
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1630,6 +1823,48 @@ var ClientRequestFactory = (function (_super) {
|
|
|
1630
1823
|
});
|
|
1631
1824
|
});
|
|
1632
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
|
+
};
|
|
1633
1868
|
return ClientRequestFactory;
|
|
1634
1869
|
}(baseapi_1.BaseAPIRequestFactory));
|
|
1635
1870
|
exports.ClientRequestFactory = ClientRequestFactory;
|
|
@@ -1749,9 +1984,9 @@ var ClientResponseProcessor = (function () {
|
|
|
1749
1984
|
};
|
|
1750
1985
|
ClientResponseProcessor.prototype.combinePdfsWithHttpInfo = function (response) {
|
|
1751
1986
|
return __awaiter(this, void 0, void 0, function () {
|
|
1752
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, body, _s, _t, _u, _v, _w, _x;
|
|
1753
|
-
return __generator(this, function (
|
|
1754
|
-
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) {
|
|
1755
1990
|
case 0:
|
|
1756
1991
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1757
1992
|
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
@@ -1759,7 +1994,7 @@ var ClientResponseProcessor = (function () {
|
|
|
1759
1994
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1760
1995
|
return [4, response.body.text()];
|
|
1761
1996
|
case 1:
|
|
1762
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1997
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
1763
1998
|
"CreateCombinedSubmissionResponse", ""]);
|
|
1764
1999
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1765
2000
|
case 2:
|
|
@@ -1768,41 +2003,50 @@ var ClientResponseProcessor = (function () {
|
|
|
1768
2003
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1769
2004
|
return [4, response.body.text()];
|
|
1770
2005
|
case 3:
|
|
1771
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2006
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
1772
2007
|
"MultipleErrorsResponse", ""]);
|
|
1773
2008
|
throw new exception_1.ApiException(response.httpStatusCode, "invalid request", body, response.headers);
|
|
1774
2009
|
case 4:
|
|
1775
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2010
|
+
if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 6];
|
|
1776
2011
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1777
2012
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1778
2013
|
return [4, response.body.text()];
|
|
1779
2014
|
case 5:
|
|
1780
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2015
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
1781
2016
|
"ErrorResponse", ""]);
|
|
1782
|
-
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);
|
|
1783
2018
|
case 6:
|
|
1784
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2019
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 8];
|
|
1785
2020
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1786
2021
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1787
2022
|
return [4, response.body.text()];
|
|
1788
2023
|
case 7:
|
|
1789
|
-
body = _p.apply(_o, [_r.apply(_q, [
|
|
2024
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1790
2025
|
"ErrorResponse", ""]);
|
|
1791
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
2026
|
+
throw new exception_1.ApiException(response.httpStatusCode, "invalid JSON", body, response.headers);
|
|
1792
2027
|
case 8:
|
|
1793
|
-
if (!(
|
|
2028
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 10];
|
|
1794
2029
|
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1795
2030
|
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1796
2031
|
return [4, response.body.text()];
|
|
1797
2032
|
case 9:
|
|
1798
|
-
body = _t.apply(_s, [_v.apply(_u, [
|
|
2033
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
2034
|
+
"ErrorResponse", ""]);
|
|
2035
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
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;
|
|
2040
|
+
return [4, response.body.text()];
|
|
2041
|
+
case 11:
|
|
2042
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
1799
2043
|
"CreateCombinedSubmissionResponse", ""]);
|
|
1800
2044
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1801
|
-
case
|
|
1802
|
-
|
|
1803
|
-
|
|
2045
|
+
case 12:
|
|
2046
|
+
_0 = exception_1.ApiException.bind;
|
|
2047
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1804
2048
|
return [4, response.getBodyAsAny()];
|
|
1805
|
-
case
|
|
2049
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
1806
2050
|
}
|
|
1807
2051
|
});
|
|
1808
2052
|
});
|
|
@@ -2179,37 +2423,88 @@ var ClientResponseProcessor = (function () {
|
|
|
2179
2423
|
});
|
|
2180
2424
|
});
|
|
2181
2425
|
};
|
|
2182
|
-
ClientResponseProcessor.prototype.
|
|
2426
|
+
ClientResponseProcessor.prototype.createWebhookWithHttpInfo = function (response) {
|
|
2183
2427
|
return __awaiter(this, void 0, void 0, function () {
|
|
2184
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r,
|
|
2185
|
-
return __generator(this, function (
|
|
2186
|
-
switch (
|
|
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) {
|
|
2187
2431
|
case 0:
|
|
2188
2432
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2189
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2433
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
2190
2434
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2191
2435
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2192
2436
|
return [4, response.body.text()];
|
|
2193
2437
|
case 1:
|
|
2194
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2195
|
-
"
|
|
2196
|
-
|
|
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)];
|
|
2197
2441
|
case 2:
|
|
2198
2442
|
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
2199
2443
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2200
2444
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2201
2445
|
return [4, response.body.text()];
|
|
2202
2446
|
case 3:
|
|
2203
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2204
|
-
"
|
|
2205
|
-
throw new exception_1.ApiException(response.httpStatusCode, "
|
|
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);
|
|
2206
2450
|
case 4:
|
|
2207
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2451
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 6];
|
|
2208
2452
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2209
2453
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2210
2454
|
return [4, response.body.text()];
|
|
2211
2455
|
case 5:
|
|
2212
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
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) {
|
|
2478
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
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;
|
|
2480
|
+
return __generator(this, function (_y) {
|
|
2481
|
+
switch (_y.label) {
|
|
2482
|
+
case 0:
|
|
2483
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2484
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 2];
|
|
2485
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2486
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2487
|
+
return [4, response.body.text()];
|
|
2488
|
+
case 1:
|
|
2489
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
2490
|
+
"ErrorResponse", ""]);
|
|
2491
|
+
throw new exception_1.ApiException(response.httpStatusCode, "folder doesn\'t exist", body, response.headers);
|
|
2492
|
+
case 2:
|
|
2493
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
|
|
2494
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2495
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2496
|
+
return [4, response.body.text()];
|
|
2497
|
+
case 3:
|
|
2498
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
2499
|
+
"ErrorResponse", ""]);
|
|
2500
|
+
throw new exception_1.ApiException(response.httpStatusCode, "folder has contents", body, response.headers);
|
|
2501
|
+
case 4:
|
|
2502
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 6];
|
|
2503
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2504
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2505
|
+
return [4, response.body.text()];
|
|
2506
|
+
case 5:
|
|
2507
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
2213
2508
|
"Folder", ""]);
|
|
2214
2509
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
2215
2510
|
case 6:
|
|
@@ -2290,6 +2585,57 @@ var ClientResponseProcessor = (function () {
|
|
|
2290
2585
|
});
|
|
2291
2586
|
});
|
|
2292
2587
|
};
|
|
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
|
+
};
|
|
2293
2639
|
ClientResponseProcessor.prototype.expireCombinedSubmissionWithHttpInfo = function (response) {
|
|
2294
2640
|
return __awaiter(this, void 0, void 0, function () {
|
|
2295
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;
|
|
@@ -2860,6 +3206,66 @@ var ClientResponseProcessor = (function () {
|
|
|
2860
3206
|
});
|
|
2861
3207
|
});
|
|
2862
3208
|
};
|
|
3209
|
+
ClientResponseProcessor.prototype.getTemplateModelCodeWithHttpInfo = function (response) {
|
|
3210
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
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) {
|
|
3214
|
+
case 0:
|
|
3215
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3216
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
3217
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3218
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3219
|
+
return [4, response.body.text()];
|
|
3220
|
+
case 1:
|
|
3221
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
3222
|
+
"TemplateModelCodeResponse", ""]);
|
|
3223
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3224
|
+
case 2:
|
|
3225
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
|
|
3226
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3227
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3228
|
+
return [4, response.body.text()];
|
|
3229
|
+
case 3:
|
|
3230
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
3231
|
+
"ErrorResponse", ""]);
|
|
3232
|
+
throw new exception_1.ApiException(response.httpStatusCode, "template not found", body, response.headers);
|
|
3233
|
+
case 4:
|
|
3234
|
+
if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 6];
|
|
3235
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3236
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3237
|
+
return [4, response.body.text()];
|
|
3238
|
+
case 5:
|
|
3239
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
3240
|
+
"ErrorResponse", ""]);
|
|
3241
|
+
throw new exception_1.ApiException(response.httpStatusCode, "unknown language", body, response.headers);
|
|
3242
|
+
case 6:
|
|
3243
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 8];
|
|
3244
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3245
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3246
|
+
return [4, response.body.text()];
|
|
3247
|
+
case 7:
|
|
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);
|
|
3251
|
+
case 8:
|
|
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!"];
|
|
3263
|
+
return [4, response.getBodyAsAny()];
|
|
3264
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
3265
|
+
}
|
|
3266
|
+
});
|
|
3267
|
+
});
|
|
3268
|
+
};
|
|
2863
3269
|
ClientResponseProcessor.prototype.getTemplateSchemaWithHttpInfo = function (response) {
|
|
2864
3270
|
return __awaiter(this, void 0, void 0, function () {
|
|
2865
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;
|
|
@@ -2911,6 +3317,57 @@ var ClientResponseProcessor = (function () {
|
|
|
2911
3317
|
});
|
|
2912
3318
|
});
|
|
2913
3319
|
};
|
|
3320
|
+
ClientResponseProcessor.prototype.getWebhookWithHttpInfo = function (response) {
|
|
3321
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
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;
|
|
3323
|
+
return __generator(this, function (_u) {
|
|
3324
|
+
switch (_u.label) {
|
|
3325
|
+
case 0:
|
|
3326
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3327
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
3328
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3329
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3330
|
+
return [4, response.body.text()];
|
|
3331
|
+
case 1:
|
|
3332
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
3333
|
+
"Webhook", ""]);
|
|
3334
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3335
|
+
case 2:
|
|
3336
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
|
|
3337
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3338
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3339
|
+
return [4, response.body.text()];
|
|
3340
|
+
case 3:
|
|
3341
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
3342
|
+
"ErrorResponse", ""]);
|
|
3343
|
+
throw new exception_1.ApiException(response.httpStatusCode, "webhook not found", body, response.headers);
|
|
3344
|
+
case 4:
|
|
3345
|
+
if (!(0, util_1.isCodeInRange)("401", response.httpStatusCode)) return [3, 6];
|
|
3346
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3347
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3348
|
+
return [4, response.body.text()];
|
|
3349
|
+
case 5:
|
|
3350
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
3351
|
+
"ErrorResponse", ""]);
|
|
3352
|
+
throw new exception_1.ApiException(response.httpStatusCode, "authentication failed", body, response.headers);
|
|
3353
|
+
case 6:
|
|
3354
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
3355
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3356
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3357
|
+
return [4, response.body.text()];
|
|
3358
|
+
case 7:
|
|
3359
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
3360
|
+
"Webhook", ""]);
|
|
3361
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3362
|
+
case 8:
|
|
3363
|
+
_s = exception_1.ApiException.bind;
|
|
3364
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
3365
|
+
return [4, response.getBodyAsAny()];
|
|
3366
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
3367
|
+
}
|
|
3368
|
+
});
|
|
3369
|
+
});
|
|
3370
|
+
};
|
|
2914
3371
|
ClientResponseProcessor.prototype.listCombinedSubmissionsWithHttpInfo = function (response) {
|
|
2915
3372
|
return __awaiter(this, void 0, void 0, function () {
|
|
2916
3373
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
@@ -3139,6 +3596,48 @@ var ClientResponseProcessor = (function () {
|
|
|
3139
3596
|
});
|
|
3140
3597
|
});
|
|
3141
3598
|
};
|
|
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
|
+
};
|
|
3142
3641
|
ClientResponseProcessor.prototype.moveFolderToFolderWithHttpInfo = function (response) {
|
|
3143
3642
|
return __awaiter(this, void 0, void 0, function () {
|
|
3144
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;
|
|
@@ -3516,9 +4015,9 @@ var ClientResponseProcessor = (function () {
|
|
|
3516
4015
|
};
|
|
3517
4016
|
ClientResponseProcessor.prototype.updateTemplateWithHttpInfo = function (response) {
|
|
3518
4017
|
return __awaiter(this, void 0, void 0, function () {
|
|
3519
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
3520
|
-
return __generator(this, function (
|
|
3521
|
-
switch (
|
|
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) {
|
|
3522
4021
|
case 0:
|
|
3523
4022
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
3524
4023
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -3526,23 +4025,32 @@ var ClientResponseProcessor = (function () {
|
|
|
3526
4025
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3527
4026
|
return [4, response.body.text()];
|
|
3528
4027
|
case 1:
|
|
3529
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
4028
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
3530
4029
|
"SuccessMultipleErrorsResponse", ""]);
|
|
3531
4030
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3532
4031
|
case 2:
|
|
3533
|
-
if (!(
|
|
4032
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
|
|
3534
4033
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3535
4034
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3536
4035
|
return [4, response.body.text()];
|
|
3537
4036
|
case 3:
|
|
3538
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
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]),
|
|
3539
4047
|
"SuccessMultipleErrorsResponse", ""]);
|
|
3540
4048
|
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
3541
|
-
case
|
|
3542
|
-
|
|
3543
|
-
|
|
4049
|
+
case 6:
|
|
4050
|
+
_o = exception_1.ApiException.bind;
|
|
4051
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
3544
4052
|
return [4, response.getBodyAsAny()];
|
|
3545
|
-
case
|
|
4053
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
3546
4054
|
}
|
|
3547
4055
|
});
|
|
3548
4056
|
});
|
|
@@ -3631,6 +4139,57 @@ var ClientResponseProcessor = (function () {
|
|
|
3631
4139
|
});
|
|
3632
4140
|
});
|
|
3633
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);
|
|
4166
|
+
case 4:
|
|
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!"];
|
|
4187
|
+
return [4, response.getBodyAsAny()];
|
|
4188
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
4189
|
+
}
|
|
4190
|
+
});
|
|
4191
|
+
});
|
|
4192
|
+
};
|
|
3634
4193
|
return ClientResponseProcessor;
|
|
3635
4194
|
}());
|
|
3636
4195
|
exports.ClientResponseProcessor = ClientResponseProcessor;
|