@revengai/sdk 3.91.1 → 3.93.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.
Files changed (70) hide show
  1. package/README.md +19 -4
  2. package/dist/apis/AnalysesCoreApi.d.ts +0 -3
  3. package/dist/apis/AnalysesCoreApi.js +0 -102
  4. package/dist/apis/AnalysesCoreApi.js.map +1 -1
  5. package/dist/apis/CollectionsApi.d.ts +22 -2
  6. package/dist/apis/CollectionsApi.js +817 -173
  7. package/dist/apis/CollectionsApi.js.map +1 -1
  8. package/dist/apis/SearchApi.d.ts +1 -1
  9. package/dist/apis/SearchApi.js +4 -1
  10. package/dist/apis/SearchApi.js.map +1 -1
  11. package/dist/models/AIDecompFunctionMapping.d.ts +66 -0
  12. package/dist/models/AIDecompFunctionMapping.js +101 -0
  13. package/dist/models/AIDecompFunctionMapping.js.map +1 -0
  14. package/dist/models/AIDecompInverseFunctionMapItem.d.ts +22 -0
  15. package/dist/models/AIDecompInverseFunctionMapItem.js +35 -0
  16. package/dist/models/AIDecompInverseFunctionMapItem.js.map +1 -0
  17. package/dist/models/AIDecompInverseStringMapItem.d.ts +21 -0
  18. package/dist/models/AIDecompInverseStringMapItem.js +29 -0
  19. package/dist/models/AIDecompInverseStringMapItem.js.map +1 -0
  20. package/dist/models/CollectionListItemBody.d.ts +30 -0
  21. package/dist/models/CollectionListItemBody.js +83 -0
  22. package/dist/models/CollectionListItemBody.js.map +1 -0
  23. package/dist/models/GetCollectionOutputBody.d.ts +34 -0
  24. package/dist/models/GetCollectionOutputBody.js +101 -0
  25. package/dist/models/GetCollectionOutputBody.js.map +1 -0
  26. package/dist/models/ListCollectionsOutputBody.d.ts +24 -0
  27. package/dist/models/ListCollectionsOutputBody.js +41 -0
  28. package/dist/models/ListCollectionsOutputBody.js.map +1 -0
  29. package/dist/models/ObjectSerializer.d.ts +12 -2
  30. package/dist/models/ObjectSerializer.js +36 -6
  31. package/dist/models/ObjectSerializer.js.map +1 -1
  32. package/dist/models/PatchCollectionBinariesInputBody.d.ts +20 -0
  33. package/dist/models/PatchCollectionBinariesInputBody.js +23 -0
  34. package/dist/models/PatchCollectionBinariesInputBody.js.map +1 -0
  35. package/dist/models/PatchCollectionBinariesOutputBody.d.ts +21 -0
  36. package/dist/models/PatchCollectionBinariesOutputBody.js +23 -0
  37. package/dist/models/PatchCollectionBinariesOutputBody.js.map +1 -0
  38. package/dist/models/PatchCollectionInputBody.d.ts +22 -0
  39. package/dist/models/PatchCollectionInputBody.js +35 -0
  40. package/dist/models/PatchCollectionInputBody.js.map +1 -0
  41. package/dist/models/PatchCollectionOutputBody.d.ts +29 -0
  42. package/dist/models/PatchCollectionOutputBody.js +77 -0
  43. package/dist/models/PatchCollectionOutputBody.js.map +1 -0
  44. package/dist/models/{NumericAddr.d.ts → PatchCollectionTagsInputBody.d.ts} +2 -2
  45. package/dist/models/PatchCollectionTagsInputBody.js +23 -0
  46. package/dist/models/PatchCollectionTagsInputBody.js.map +1 -0
  47. package/dist/models/{QueuePositionResponse.d.ts → PatchCollectionTagsOutputBody.d.ts} +2 -2
  48. package/dist/models/PatchCollectionTagsOutputBody.js +23 -0
  49. package/dist/models/PatchCollectionTagsOutputBody.js.map +1 -0
  50. package/dist/models/ReplacementValue.d.ts +1 -1
  51. package/dist/models/TokenisedData.d.ts +2 -2
  52. package/dist/models/TokenisedData.js +1 -1
  53. package/dist/models/TokenisedData.js.map +1 -1
  54. package/dist/models/all.d.ts +12 -2
  55. package/dist/models/all.js +12 -2
  56. package/dist/models/all.js.map +1 -1
  57. package/dist/types/ObjectParamAPI.d.ts +57 -11
  58. package/dist/types/ObjectParamAPI.js +46 -14
  59. package/dist/types/ObjectParamAPI.js.map +1 -1
  60. package/dist/types/ObservableAPI.d.ts +24 -7
  61. package/dist/types/ObservableAPI.js +632 -492
  62. package/dist/types/ObservableAPI.js.map +1 -1
  63. package/dist/types/PromiseAPI.d.ts +24 -7
  64. package/dist/types/PromiseAPI.js +74 -24
  65. package/dist/types/PromiseAPI.js.map +1 -1
  66. package/package.json +1 -1
  67. package/dist/models/NumericAddr.js +0 -23
  68. package/dist/models/NumericAddr.js.map +0 -1
  69. package/dist/models/QueuePositionResponse.js +0 -23
  70. package/dist/models/QueuePositionResponse.js.map +0 -1
@@ -100,44 +100,6 @@ var CollectionsApiRequestFactory = (function (_super) {
100
100
  });
101
101
  });
102
102
  };
103
- CollectionsApiRequestFactory.prototype.createCollection_1 = function (createCollectionInputBody, _options) {
104
- var _a;
105
- return __awaiter(this, void 0, void 0, function () {
106
- var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
107
- return __generator(this, function (_b) {
108
- switch (_b.label) {
109
- case 0:
110
- _config = _options || this.configuration;
111
- if (createCollectionInputBody === null || createCollectionInputBody === undefined) {
112
- throw new baseapi_1.RequiredError("CollectionsApi", "createCollection_1", "createCollectionInputBody");
113
- }
114
- localVarPath = '/v3/collections';
115
- requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
116
- requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
117
- contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
118
- "application/json"
119
- ]);
120
- requestContext.setHeaderParam("Content-Type", contentType);
121
- serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createCollectionInputBody, "CreateCollectionInputBody", ""), contentType);
122
- requestContext.setBody(serializedBody);
123
- authMethod = _config.authMethods["APIKey"];
124
- if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
125
- return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
126
- case 1:
127
- _b.sent();
128
- _b.label = 2;
129
- case 2:
130
- defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
131
- if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
132
- return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
133
- case 3:
134
- _b.sent();
135
- _b.label = 4;
136
- case 4: return [2, requestContext];
137
- }
138
- });
139
- });
140
- };
141
103
  CollectionsApiRequestFactory.prototype.deleteCollection = function (collectionId, _options) {
142
104
  var _a;
143
105
  return __awaiter(this, void 0, void 0, function () {
@@ -396,170 +358,402 @@ var CollectionsApiRequestFactory = (function (_super) {
396
358
  });
397
359
  });
398
360
  };
399
- return CollectionsApiRequestFactory;
400
- }(baseapi_1.BaseAPIRequestFactory));
401
- exports.CollectionsApiRequestFactory = CollectionsApiRequestFactory;
402
- var CollectionsApiResponseProcessor = (function () {
403
- function CollectionsApiResponseProcessor() {
404
- }
405
- CollectionsApiResponseProcessor.prototype.createCollectionWithHttpInfo = function (response) {
361
+ CollectionsApiRequestFactory.prototype.v3CreateCollection = function (createCollectionInputBody, _options) {
362
+ var _a;
406
363
  return __awaiter(this, void 0, void 0, function () {
407
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
408
- return __generator(this, function (_q) {
409
- switch (_q.label) {
364
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
365
+ return __generator(this, function (_b) {
366
+ switch (_b.label) {
410
367
  case 0:
411
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
412
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
413
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
414
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
415
- return [4, response.body.text()];
368
+ _config = _options || this.configuration;
369
+ if (createCollectionInputBody === null || createCollectionInputBody === undefined) {
370
+ throw new baseapi_1.RequiredError("CollectionsApi", "v3CreateCollection", "createCollectionInputBody");
371
+ }
372
+ localVarPath = '/v3/collections';
373
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
374
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
375
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
376
+ "application/json"
377
+ ]);
378
+ requestContext.setHeaderParam("Content-Type", contentType);
379
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createCollectionInputBody, "CreateCollectionInputBody", ""), contentType);
380
+ requestContext.setBody(serializedBody);
381
+ authMethod = _config.authMethods["APIKey"];
382
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
383
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
416
384
  case 1:
417
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
418
- "BaseResponseCollectionResponse", ""]);
419
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
385
+ _b.sent();
386
+ _b.label = 2;
420
387
  case 2:
421
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
422
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
423
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
424
- return [4, response.body.text()];
388
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
389
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
390
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
425
391
  case 3:
426
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
427
- "BaseResponse", ""]);
428
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
429
- case 4:
430
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
431
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
432
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
433
- return [4, response.body.text()];
434
- case 5:
435
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
436
- "BaseResponseCollectionResponse", ""]);
437
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
438
- case 6:
439
- _o = exception_1.ApiException.bind;
440
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
441
- return [4, response.getBodyAsAny()];
442
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
392
+ _b.sent();
393
+ _b.label = 4;
394
+ case 4: return [2, requestContext];
443
395
  }
444
396
  });
445
397
  });
446
398
  };
447
- CollectionsApiResponseProcessor.prototype.createCollection_1WithHttpInfo = function (response) {
399
+ CollectionsApiRequestFactory.prototype.v3DeleteCollection = function (collectionId, _options) {
400
+ var _a;
448
401
  return __awaiter(this, void 0, void 0, function () {
449
- 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;
450
- return __generator(this, function (_y) {
451
- switch (_y.label) {
402
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
403
+ return __generator(this, function (_b) {
404
+ switch (_b.label) {
452
405
  case 0:
453
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
454
- if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
455
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
456
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
457
- return [4, response.body.text()];
406
+ _config = _options || this.configuration;
407
+ if (collectionId === null || collectionId === undefined) {
408
+ throw new baseapi_1.RequiredError("CollectionsApi", "v3DeleteCollection", "collectionId");
409
+ }
410
+ localVarPath = '/v3/collections/{collection_id}'
411
+ .replace('{' + 'collection_id' + '}', encodeURIComponent(String(collectionId)));
412
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
413
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
414
+ authMethod = _config.authMethods["APIKey"];
415
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
416
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
458
417
  case 1:
459
- body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
460
- "CreateCollectionOutputBody", ""]);
461
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
418
+ _b.sent();
419
+ _b.label = 2;
462
420
  case 2:
463
- if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
464
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
465
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
466
- return [4, response.body.text()];
421
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
422
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
423
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
467
424
  case 3:
468
- body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
469
- "APIError", ""]);
470
- throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
471
- case 4:
472
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 6];
473
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
474
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
475
- return [4, response.body.text()];
476
- case 5:
477
- body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
478
- "APIError", ""]);
479
- throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
480
- case 6:
481
- if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 8];
482
- _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
483
- _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
484
- return [4, response.body.text()];
485
- case 7:
486
- body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
487
- "APIError", ""]);
488
- throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
489
- case 8:
490
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
491
- _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
492
- _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
493
- return [4, response.body.text()];
494
- case 9:
495
- body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
496
- "CreateCollectionOutputBody", ""]);
497
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
498
- case 10:
499
- _w = exception_1.ApiException.bind;
500
- _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
501
- return [4, response.getBodyAsAny()];
502
- case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
425
+ _b.sent();
426
+ _b.label = 4;
427
+ case 4: return [2, requestContext];
503
428
  }
504
429
  });
505
430
  });
506
431
  };
507
- CollectionsApiResponseProcessor.prototype.deleteCollectionWithHttpInfo = function (response) {
432
+ CollectionsApiRequestFactory.prototype.v3GetCollection = function (collectionId, includeTags, includeBinaries, pageSize, pageNumber, binarySearchStr, _options) {
433
+ var _a;
508
434
  return __awaiter(this, void 0, void 0, function () {
509
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
510
- return __generator(this, function (_q) {
511
- switch (_q.label) {
435
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
436
+ return __generator(this, function (_b) {
437
+ switch (_b.label) {
512
438
  case 0:
513
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
514
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
515
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
516
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
517
- return [4, response.body.text()];
439
+ _config = _options || this.configuration;
440
+ if (collectionId === null || collectionId === undefined) {
441
+ throw new baseapi_1.RequiredError("CollectionsApi", "v3GetCollection", "collectionId");
442
+ }
443
+ localVarPath = '/v3/collections/{collection_id}'
444
+ .replace('{' + 'collection_id' + '}', encodeURIComponent(String(collectionId)));
445
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
446
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
447
+ if (includeTags !== undefined) {
448
+ requestContext.setQueryParam("include_tags", ObjectSerializer_1.ObjectSerializer.serialize(includeTags, "boolean", ""));
449
+ }
450
+ if (includeBinaries !== undefined) {
451
+ requestContext.setQueryParam("include_binaries", ObjectSerializer_1.ObjectSerializer.serialize(includeBinaries, "boolean", ""));
452
+ }
453
+ if (pageSize !== undefined) {
454
+ requestContext.setQueryParam("page_size", ObjectSerializer_1.ObjectSerializer.serialize(pageSize, "number", "int64"));
455
+ }
456
+ if (pageNumber !== undefined) {
457
+ requestContext.setQueryParam("page_number", ObjectSerializer_1.ObjectSerializer.serialize(pageNumber, "number", "int64"));
458
+ }
459
+ if (binarySearchStr !== undefined) {
460
+ requestContext.setQueryParam("binary_search_str", ObjectSerializer_1.ObjectSerializer.serialize(binarySearchStr, "string", ""));
461
+ }
462
+ authMethod = _config.authMethods["APIKey"];
463
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
464
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
518
465
  case 1:
519
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
520
- "BaseResponseBool", ""]);
521
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
466
+ _b.sent();
467
+ _b.label = 2;
522
468
  case 2:
523
- if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
524
- _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
525
- _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
526
- return [4, response.body.text()];
469
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
470
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
471
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
527
472
  case 3:
528
- body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
529
- "BaseResponse", ""]);
530
- throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
531
- case 4:
532
- if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
533
- _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
534
- _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
535
- return [4, response.body.text()];
536
- case 5:
537
- body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
538
- "BaseResponseBool", ""]);
539
- return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
540
- case 6:
541
- _o = exception_1.ApiException.bind;
542
- _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
543
- return [4, response.getBodyAsAny()];
544
- case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
473
+ _b.sent();
474
+ _b.label = 4;
475
+ case 4: return [2, requestContext];
545
476
  }
546
477
  });
547
478
  });
548
479
  };
549
- CollectionsApiResponseProcessor.prototype.getCollectionWithHttpInfo = function (response) {
480
+ CollectionsApiRequestFactory.prototype.v3ListCollections = function (searchTerm, filters, limit, offset, orderBy, order, _options) {
481
+ var _a;
550
482
  return __awaiter(this, void 0, void 0, function () {
551
- var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
552
- return __generator(this, function (_q) {
553
- switch (_q.label) {
483
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
484
+ return __generator(this, function (_b) {
485
+ switch (_b.label) {
554
486
  case 0:
555
- contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
556
- if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
557
- _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
558
- _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
559
- return [4, response.body.text()];
560
- case 1:
561
- body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
562
- "BaseResponseCollectionResponse", ""]);
487
+ _config = _options || this.configuration;
488
+ localVarPath = '/v3/collections';
489
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
490
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
491
+ if (searchTerm !== undefined) {
492
+ requestContext.setQueryParam("search_term", ObjectSerializer_1.ObjectSerializer.serialize(searchTerm, "string", ""));
493
+ }
494
+ if (filters !== undefined) {
495
+ requestContext.setQueryParam("filters", ObjectSerializer_1.ObjectSerializer.serialize(filters, "Array<'official_only' | 'user_only' | 'team_only' | 'public_only' | 'hide_empty'>", ""));
496
+ }
497
+ if (limit !== undefined) {
498
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", "int64"));
499
+ }
500
+ if (offset !== undefined) {
501
+ requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", "int64"));
502
+ }
503
+ if (orderBy !== undefined) {
504
+ requestContext.setQueryParam("order_by", ObjectSerializer_1.ObjectSerializer.serialize(orderBy, "'created' | 'collection' | 'model' | 'collection_size' | 'updated'", ""));
505
+ }
506
+ if (order !== undefined) {
507
+ requestContext.setQueryParam("order", ObjectSerializer_1.ObjectSerializer.serialize(order, "'ASC' | 'DESC'", ""));
508
+ }
509
+ authMethod = _config.authMethods["APIKey"];
510
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
511
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
512
+ case 1:
513
+ _b.sent();
514
+ _b.label = 2;
515
+ case 2:
516
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
517
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
518
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
519
+ case 3:
520
+ _b.sent();
521
+ _b.label = 4;
522
+ case 4: return [2, requestContext];
523
+ }
524
+ });
525
+ });
526
+ };
527
+ CollectionsApiRequestFactory.prototype.v3PatchCollection = function (collectionId, patchCollectionInputBody, _options) {
528
+ var _a;
529
+ return __awaiter(this, void 0, void 0, function () {
530
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
531
+ return __generator(this, function (_b) {
532
+ switch (_b.label) {
533
+ case 0:
534
+ _config = _options || this.configuration;
535
+ if (collectionId === null || collectionId === undefined) {
536
+ throw new baseapi_1.RequiredError("CollectionsApi", "v3PatchCollection", "collectionId");
537
+ }
538
+ if (patchCollectionInputBody === null || patchCollectionInputBody === undefined) {
539
+ throw new baseapi_1.RequiredError("CollectionsApi", "v3PatchCollection", "patchCollectionInputBody");
540
+ }
541
+ localVarPath = '/v3/collections/{collection_id}'
542
+ .replace('{' + 'collection_id' + '}', encodeURIComponent(String(collectionId)));
543
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
544
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
545
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
546
+ "application/json"
547
+ ]);
548
+ requestContext.setHeaderParam("Content-Type", contentType);
549
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(patchCollectionInputBody, "PatchCollectionInputBody", ""), contentType);
550
+ requestContext.setBody(serializedBody);
551
+ authMethod = _config.authMethods["APIKey"];
552
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
553
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
554
+ case 1:
555
+ _b.sent();
556
+ _b.label = 2;
557
+ case 2:
558
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
559
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
560
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
561
+ case 3:
562
+ _b.sent();
563
+ _b.label = 4;
564
+ case 4: return [2, requestContext];
565
+ }
566
+ });
567
+ });
568
+ };
569
+ CollectionsApiRequestFactory.prototype.v3PatchCollectionBinaries = function (collectionId, patchCollectionBinariesInputBody, _options) {
570
+ var _a;
571
+ return __awaiter(this, void 0, void 0, function () {
572
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
573
+ return __generator(this, function (_b) {
574
+ switch (_b.label) {
575
+ case 0:
576
+ _config = _options || this.configuration;
577
+ if (collectionId === null || collectionId === undefined) {
578
+ throw new baseapi_1.RequiredError("CollectionsApi", "v3PatchCollectionBinaries", "collectionId");
579
+ }
580
+ if (patchCollectionBinariesInputBody === null || patchCollectionBinariesInputBody === undefined) {
581
+ throw new baseapi_1.RequiredError("CollectionsApi", "v3PatchCollectionBinaries", "patchCollectionBinariesInputBody");
582
+ }
583
+ localVarPath = '/v3/collections/{collection_id}/binaries'
584
+ .replace('{' + 'collection_id' + '}', encodeURIComponent(String(collectionId)));
585
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
586
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
587
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
588
+ "application/json"
589
+ ]);
590
+ requestContext.setHeaderParam("Content-Type", contentType);
591
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(patchCollectionBinariesInputBody, "PatchCollectionBinariesInputBody", ""), contentType);
592
+ requestContext.setBody(serializedBody);
593
+ authMethod = _config.authMethods["APIKey"];
594
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
595
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
596
+ case 1:
597
+ _b.sent();
598
+ _b.label = 2;
599
+ case 2:
600
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
601
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
602
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
603
+ case 3:
604
+ _b.sent();
605
+ _b.label = 4;
606
+ case 4: return [2, requestContext];
607
+ }
608
+ });
609
+ });
610
+ };
611
+ CollectionsApiRequestFactory.prototype.v3PatchCollectionTags = function (collectionId, patchCollectionTagsInputBody, _options) {
612
+ var _a;
613
+ return __awaiter(this, void 0, void 0, function () {
614
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
615
+ return __generator(this, function (_b) {
616
+ switch (_b.label) {
617
+ case 0:
618
+ _config = _options || this.configuration;
619
+ if (collectionId === null || collectionId === undefined) {
620
+ throw new baseapi_1.RequiredError("CollectionsApi", "v3PatchCollectionTags", "collectionId");
621
+ }
622
+ if (patchCollectionTagsInputBody === null || patchCollectionTagsInputBody === undefined) {
623
+ throw new baseapi_1.RequiredError("CollectionsApi", "v3PatchCollectionTags", "patchCollectionTagsInputBody");
624
+ }
625
+ localVarPath = '/v3/collections/{collection_id}/tags'
626
+ .replace('{' + 'collection_id' + '}', encodeURIComponent(String(collectionId)));
627
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
628
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
629
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
630
+ "application/json"
631
+ ]);
632
+ requestContext.setHeaderParam("Content-Type", contentType);
633
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(patchCollectionTagsInputBody, "PatchCollectionTagsInputBody", ""), contentType);
634
+ requestContext.setBody(serializedBody);
635
+ authMethod = _config.authMethods["APIKey"];
636
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
637
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
638
+ case 1:
639
+ _b.sent();
640
+ _b.label = 2;
641
+ case 2:
642
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
643
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
644
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
645
+ case 3:
646
+ _b.sent();
647
+ _b.label = 4;
648
+ case 4: return [2, requestContext];
649
+ }
650
+ });
651
+ });
652
+ };
653
+ return CollectionsApiRequestFactory;
654
+ }(baseapi_1.BaseAPIRequestFactory));
655
+ exports.CollectionsApiRequestFactory = CollectionsApiRequestFactory;
656
+ var CollectionsApiResponseProcessor = (function () {
657
+ function CollectionsApiResponseProcessor() {
658
+ }
659
+ CollectionsApiResponseProcessor.prototype.createCollectionWithHttpInfo = function (response) {
660
+ return __awaiter(this, void 0, void 0, function () {
661
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
662
+ return __generator(this, function (_q) {
663
+ switch (_q.label) {
664
+ case 0:
665
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
666
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
667
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
668
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
669
+ return [4, response.body.text()];
670
+ case 1:
671
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
672
+ "BaseResponseCollectionResponse", ""]);
673
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
674
+ case 2:
675
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
676
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
677
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
678
+ return [4, response.body.text()];
679
+ case 3:
680
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
681
+ "BaseResponse", ""]);
682
+ throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
683
+ case 4:
684
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
685
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
686
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
687
+ return [4, response.body.text()];
688
+ case 5:
689
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
690
+ "BaseResponseCollectionResponse", ""]);
691
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
692
+ case 6:
693
+ _o = exception_1.ApiException.bind;
694
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
695
+ return [4, response.getBodyAsAny()];
696
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
697
+ }
698
+ });
699
+ });
700
+ };
701
+ CollectionsApiResponseProcessor.prototype.deleteCollectionWithHttpInfo = function (response) {
702
+ return __awaiter(this, void 0, void 0, function () {
703
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
704
+ return __generator(this, function (_q) {
705
+ switch (_q.label) {
706
+ case 0:
707
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
708
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
709
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
710
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
711
+ return [4, response.body.text()];
712
+ case 1:
713
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
714
+ "BaseResponseBool", ""]);
715
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
716
+ case 2:
717
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
718
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
719
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
720
+ return [4, response.body.text()];
721
+ case 3:
722
+ body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
723
+ "BaseResponse", ""]);
724
+ throw new exception_1.ApiException(response.httpStatusCode, "Invalid request parameters", body, response.headers);
725
+ case 4:
726
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
727
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
728
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
729
+ return [4, response.body.text()];
730
+ case 5:
731
+ body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
732
+ "BaseResponseBool", ""]);
733
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
734
+ case 6:
735
+ _o = exception_1.ApiException.bind;
736
+ _p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
737
+ return [4, response.getBodyAsAny()];
738
+ case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
739
+ }
740
+ });
741
+ });
742
+ };
743
+ CollectionsApiResponseProcessor.prototype.getCollectionWithHttpInfo = function (response) {
744
+ return __awaiter(this, void 0, void 0, function () {
745
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
746
+ return __generator(this, function (_q) {
747
+ switch (_q.label) {
748
+ case 0:
749
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
750
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
751
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
752
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
753
+ return [4, response.body.text()];
754
+ case 1:
755
+ body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
756
+ "BaseResponseCollectionResponse", ""]);
563
757
  return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
564
758
  case 2:
565
759
  if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
@@ -756,6 +950,456 @@ var CollectionsApiResponseProcessor = (function () {
756
950
  });
757
951
  });
758
952
  };
953
+ CollectionsApiResponseProcessor.prototype.v3CreateCollectionWithHttpInfo = function (response) {
954
+ return __awaiter(this, void 0, void 0, function () {
955
+ 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;
956
+ return __generator(this, function (_y) {
957
+ switch (_y.label) {
958
+ case 0:
959
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
960
+ if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
961
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
962
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
963
+ return [4, response.body.text()];
964
+ case 1:
965
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
966
+ "CreateCollectionOutputBody", ""]);
967
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
968
+ case 2:
969
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
970
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
971
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
972
+ return [4, response.body.text()];
973
+ case 3:
974
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
975
+ "APIError", ""]);
976
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
977
+ case 4:
978
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 6];
979
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
980
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
981
+ return [4, response.body.text()];
982
+ case 5:
983
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
984
+ "APIError", ""]);
985
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
986
+ case 6:
987
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 8];
988
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
989
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
990
+ return [4, response.body.text()];
991
+ case 7:
992
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
993
+ "APIError", ""]);
994
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
995
+ case 8:
996
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
997
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
998
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
999
+ return [4, response.body.text()];
1000
+ case 9:
1001
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
1002
+ "CreateCollectionOutputBody", ""]);
1003
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1004
+ case 10:
1005
+ _w = exception_1.ApiException.bind;
1006
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1007
+ return [4, response.getBodyAsAny()];
1008
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
1009
+ }
1010
+ });
1011
+ });
1012
+ };
1013
+ CollectionsApiResponseProcessor.prototype.v3DeleteCollectionWithHttpInfo = function (response) {
1014
+ return __awaiter(this, void 0, void 0, function () {
1015
+ 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;
1016
+ return __generator(this, function (_2) {
1017
+ switch (_2.label) {
1018
+ case 0:
1019
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1020
+ if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
1021
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
1022
+ }
1023
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 2];
1024
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1025
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1026
+ return [4, response.body.text()];
1027
+ case 1:
1028
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1029
+ "APIError", ""]);
1030
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1031
+ case 2:
1032
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
1033
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1034
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1035
+ return [4, response.body.text()];
1036
+ case 3:
1037
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1038
+ "APIError", ""]);
1039
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1040
+ case 4:
1041
+ if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
1042
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1043
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1044
+ return [4, response.body.text()];
1045
+ case 5:
1046
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1047
+ "APIError", ""]);
1048
+ throw new exception_1.ApiException(response.httpStatusCode, "Conflict", body, response.headers);
1049
+ case 6:
1050
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
1051
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1052
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1053
+ return [4, response.body.text()];
1054
+ case 7:
1055
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1056
+ "APIError", ""]);
1057
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1058
+ case 8:
1059
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
1060
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1061
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1062
+ return [4, response.body.text()];
1063
+ case 9:
1064
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1065
+ "APIError", ""]);
1066
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1067
+ case 10:
1068
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1069
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1070
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1071
+ return [4, response.body.text()];
1072
+ case 11:
1073
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1074
+ "void", ""]);
1075
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1076
+ case 12:
1077
+ _0 = exception_1.ApiException.bind;
1078
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1079
+ return [4, response.getBodyAsAny()];
1080
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1081
+ }
1082
+ });
1083
+ });
1084
+ };
1085
+ CollectionsApiResponseProcessor.prototype.v3GetCollectionWithHttpInfo = function (response) {
1086
+ return __awaiter(this, void 0, void 0, function () {
1087
+ 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;
1088
+ return __generator(this, function (_y) {
1089
+ switch (_y.label) {
1090
+ case 0:
1091
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1092
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1093
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1094
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1095
+ return [4, response.body.text()];
1096
+ case 1:
1097
+ body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
1098
+ "GetCollectionOutputBody", ""]);
1099
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1100
+ case 2:
1101
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 4];
1102
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1103
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1104
+ return [4, response.body.text()];
1105
+ case 3:
1106
+ body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
1107
+ "APIError", ""]);
1108
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1109
+ case 4:
1110
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 6];
1111
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1112
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1113
+ return [4, response.body.text()];
1114
+ case 5:
1115
+ body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
1116
+ "APIError", ""]);
1117
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1118
+ case 6:
1119
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 8];
1120
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1121
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1122
+ return [4, response.body.text()];
1123
+ case 7:
1124
+ body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
1125
+ "APIError", ""]);
1126
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1127
+ case 8:
1128
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
1129
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1130
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1131
+ return [4, response.body.text()];
1132
+ case 9:
1133
+ body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
1134
+ "GetCollectionOutputBody", ""]);
1135
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1136
+ case 10:
1137
+ _w = exception_1.ApiException.bind;
1138
+ _x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1139
+ return [4, response.getBodyAsAny()];
1140
+ case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
1141
+ }
1142
+ });
1143
+ });
1144
+ };
1145
+ CollectionsApiResponseProcessor.prototype.v3ListCollectionsWithHttpInfo = function (response) {
1146
+ return __awaiter(this, void 0, void 0, function () {
1147
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
1148
+ return __generator(this, function (_u) {
1149
+ switch (_u.label) {
1150
+ case 0:
1151
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1152
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1153
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1154
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1155
+ return [4, response.body.text()];
1156
+ case 1:
1157
+ body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
1158
+ "ListCollectionsOutputBody", ""]);
1159
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1160
+ case 2:
1161
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 4];
1162
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1163
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1164
+ return [4, response.body.text()];
1165
+ case 3:
1166
+ body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
1167
+ "APIError", ""]);
1168
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1169
+ case 4:
1170
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 6];
1171
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1172
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1173
+ return [4, response.body.text()];
1174
+ case 5:
1175
+ body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
1176
+ "APIError", ""]);
1177
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1178
+ case 6:
1179
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
1180
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1181
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1182
+ return [4, response.body.text()];
1183
+ case 7:
1184
+ body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
1185
+ "ListCollectionsOutputBody", ""]);
1186
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1187
+ case 8:
1188
+ _s = exception_1.ApiException.bind;
1189
+ _t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1190
+ return [4, response.getBodyAsAny()];
1191
+ case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
1192
+ }
1193
+ });
1194
+ });
1195
+ };
1196
+ CollectionsApiResponseProcessor.prototype.v3PatchCollectionWithHttpInfo = function (response) {
1197
+ return __awaiter(this, void 0, void 0, function () {
1198
+ 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;
1199
+ return __generator(this, function (_2) {
1200
+ switch (_2.label) {
1201
+ case 0:
1202
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1203
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1204
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1205
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1206
+ return [4, response.body.text()];
1207
+ case 1:
1208
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1209
+ "PatchCollectionOutputBody", ""]);
1210
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1211
+ case 2:
1212
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
1213
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1214
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1215
+ return [4, response.body.text()];
1216
+ case 3:
1217
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1218
+ "APIError", ""]);
1219
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1220
+ case 4:
1221
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1222
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1223
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1224
+ return [4, response.body.text()];
1225
+ case 5:
1226
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1227
+ "APIError", ""]);
1228
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1229
+ case 6:
1230
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
1231
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1232
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1233
+ return [4, response.body.text()];
1234
+ case 7:
1235
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1236
+ "APIError", ""]);
1237
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1238
+ case 8:
1239
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
1240
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1241
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1242
+ return [4, response.body.text()];
1243
+ case 9:
1244
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1245
+ "APIError", ""]);
1246
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1247
+ case 10:
1248
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1249
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1250
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1251
+ return [4, response.body.text()];
1252
+ case 11:
1253
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1254
+ "PatchCollectionOutputBody", ""]);
1255
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1256
+ case 12:
1257
+ _0 = exception_1.ApiException.bind;
1258
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1259
+ return [4, response.getBodyAsAny()];
1260
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1261
+ }
1262
+ });
1263
+ });
1264
+ };
1265
+ CollectionsApiResponseProcessor.prototype.v3PatchCollectionBinariesWithHttpInfo = function (response) {
1266
+ return __awaiter(this, void 0, void 0, function () {
1267
+ 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;
1268
+ return __generator(this, function (_2) {
1269
+ switch (_2.label) {
1270
+ case 0:
1271
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1272
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1273
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1274
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1275
+ return [4, response.body.text()];
1276
+ case 1:
1277
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1278
+ "PatchCollectionBinariesOutputBody", ""]);
1279
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1280
+ case 2:
1281
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
1282
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1283
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1284
+ return [4, response.body.text()];
1285
+ case 3:
1286
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1287
+ "APIError", ""]);
1288
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1289
+ case 4:
1290
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1291
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1292
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1293
+ return [4, response.body.text()];
1294
+ case 5:
1295
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1296
+ "APIError", ""]);
1297
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1298
+ case 6:
1299
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
1300
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1301
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1302
+ return [4, response.body.text()];
1303
+ case 7:
1304
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1305
+ "APIError", ""]);
1306
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1307
+ case 8:
1308
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
1309
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1310
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1311
+ return [4, response.body.text()];
1312
+ case 9:
1313
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1314
+ "APIError", ""]);
1315
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1316
+ case 10:
1317
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1318
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1319
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1320
+ return [4, response.body.text()];
1321
+ case 11:
1322
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1323
+ "PatchCollectionBinariesOutputBody", ""]);
1324
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1325
+ case 12:
1326
+ _0 = exception_1.ApiException.bind;
1327
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1328
+ return [4, response.getBodyAsAny()];
1329
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1330
+ }
1331
+ });
1332
+ });
1333
+ };
1334
+ CollectionsApiResponseProcessor.prototype.v3PatchCollectionTagsWithHttpInfo = function (response) {
1335
+ return __awaiter(this, void 0, void 0, function () {
1336
+ 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;
1337
+ return __generator(this, function (_2) {
1338
+ switch (_2.label) {
1339
+ case 0:
1340
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1341
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1342
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1343
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1344
+ return [4, response.body.text()];
1345
+ case 1:
1346
+ body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
1347
+ "PatchCollectionTagsOutputBody", ""]);
1348
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1349
+ case 2:
1350
+ if (!(0, util_1.isCodeInRange)("403", response.httpStatusCode)) return [3, 4];
1351
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1352
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1353
+ return [4, response.body.text()];
1354
+ case 3:
1355
+ body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
1356
+ "APIError", ""]);
1357
+ throw new exception_1.ApiException(response.httpStatusCode, "Forbidden", body, response.headers);
1358
+ case 4:
1359
+ if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
1360
+ _k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
1361
+ _m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
1362
+ return [4, response.body.text()];
1363
+ case 5:
1364
+ body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
1365
+ "APIError", ""]);
1366
+ throw new exception_1.ApiException(response.httpStatusCode, "Not Found", body, response.headers);
1367
+ case 6:
1368
+ if (!(0, util_1.isCodeInRange)("422", response.httpStatusCode)) return [3, 8];
1369
+ _p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
1370
+ _r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
1371
+ return [4, response.body.text()];
1372
+ case 7:
1373
+ body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
1374
+ "APIError", ""]);
1375
+ throw new exception_1.ApiException(response.httpStatusCode, "Unprocessable Entity", body, response.headers);
1376
+ case 8:
1377
+ if (!(0, util_1.isCodeInRange)("500", response.httpStatusCode)) return [3, 10];
1378
+ _t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
1379
+ _v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
1380
+ return [4, response.body.text()];
1381
+ case 9:
1382
+ body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
1383
+ "APIError", ""]);
1384
+ throw new exception_1.ApiException(response.httpStatusCode, "Internal Server Error", body, response.headers);
1385
+ case 10:
1386
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
1387
+ _x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
1388
+ _z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
1389
+ return [4, response.body.text()];
1390
+ case 11:
1391
+ body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
1392
+ "PatchCollectionTagsOutputBody", ""]);
1393
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1394
+ case 12:
1395
+ _0 = exception_1.ApiException.bind;
1396
+ _1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1397
+ return [4, response.getBodyAsAny()];
1398
+ case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
1399
+ }
1400
+ });
1401
+ });
1402
+ };
759
1403
  return CollectionsApiResponseProcessor;
760
1404
  }());
761
1405
  exports.CollectionsApiResponseProcessor = CollectionsApiResponseProcessor;