@onesignal/node-onesignal 2.0.0-beta1 → 2.0.1-beta2
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/DefaultApi.md +126 -4
- package/apis/DefaultApi.ts +623 -95
- package/dist/apis/DefaultApi.d.ts +3 -0
- package/dist/apis/DefaultApi.js +1063 -415
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/models/BasicNotification.d.ts +3 -0
- package/dist/models/BasicNotification.js +18 -0
- package/dist/models/BasicNotification.js.map +1 -1
- package/dist/models/BasicNotificationAllOf.d.ts +3 -0
- package/dist/models/BasicNotificationAllOf.js +18 -0
- package/dist/models/BasicNotificationAllOf.js.map +1 -1
- package/dist/models/{BadRequestError.d.ts → ExportEventsSuccessResponse.d.ts} +2 -2
- package/dist/models/ExportEventsSuccessResponse.js +22 -0
- package/dist/models/ExportEventsSuccessResponse.js.map +1 -0
- package/dist/models/{CreateSegmentBadRequestResponse.d.ts → GenericError.d.ts} +3 -3
- package/dist/models/GenericError.js +22 -0
- package/dist/models/GenericError.js.map +1 -0
- package/dist/models/{IdentifyUserConflictResponseErrorsInner.d.ts → GenericErrorErrorsInner.d.ts} +1 -1
- package/dist/models/GenericErrorErrorsInner.js +28 -0
- package/dist/models/GenericErrorErrorsInner.js.map +1 -0
- package/dist/models/Notification.d.ts +3 -0
- package/dist/models/Notification.js +18 -0
- package/dist/models/Notification.js.map +1 -1
- package/dist/models/NotificationWithMeta.d.ts +3 -0
- package/dist/models/NotificationWithMeta.js +18 -0
- package/dist/models/NotificationWithMeta.js.map +1 -1
- package/dist/models/ObjectSerializer.d.ts +4 -3
- package/dist/models/ObjectSerializer.js +12 -9
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/{DeletePlayerBadRequestResponse.d.ts → RateLimiterError.d.ts} +3 -2
- package/dist/models/RateLimiterError.js +22 -0
- package/dist/models/RateLimiterError.js.map +1 -0
- package/dist/models/all.d.ts +4 -3
- package/dist/models/all.js +4 -3
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +6 -0
- package/dist/types/ObjectParamAPI.js +3 -0
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +2 -0
- package/dist/types/ObservableAPI.js +89 -65
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +2 -0
- package/dist/types/PromiseAPI.js +4 -0
- package/dist/types/PromiseAPI.js.map +1 -1
- package/models/App.ts +1 -1
- package/models/BasicNotification.ts +31 -1
- package/models/BasicNotificationAllOf.ts +31 -1
- package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
- package/models/BeginLiveActivityRequest.ts +1 -1
- package/models/Button.ts +1 -1
- package/models/CancelNotificationSuccessResponse.ts +1 -1
- package/models/CreateNotificationSuccessResponse.ts +1 -1
- package/models/CreatePlayerSuccessResponse.ts +1 -1
- package/models/CreateSegmentConflictResponse.ts +1 -1
- package/models/CreateSegmentSuccessResponse.ts +1 -1
- package/models/CreateSubscriptionRequestBody.ts +1 -1
- package/models/CreateUserConflictResponse.ts +1 -1
- package/models/CreateUserConflictResponseErrorsInner.ts +1 -1
- package/models/CreateUserConflictResponseErrorsItemsMeta.ts +1 -1
- package/models/DeletePlayerNotFoundResponse.ts +1 -1
- package/models/DeletePlayerSuccessResponse.ts +1 -1
- package/models/DeleteSegmentNotFoundResponse.ts +1 -1
- package/models/DeleteSegmentSuccessResponse.ts +1 -1
- package/models/DeliveryData.ts +1 -1
- package/models/{DeletePlayerBadRequestResponse.ts → ExportEventsSuccessResponse.ts} +7 -7
- package/models/ExportPlayersRequestBody.ts +1 -1
- package/models/ExportPlayersSuccessResponse.ts +1 -1
- package/models/Filter.ts +1 -1
- package/models/FilterExpressions.ts +1 -1
- package/models/{CreateNotificationBadRequestResponse.ts → GenericError.ts} +6 -5
- package/models/{IdentifyUserConflictResponseErrorsInner.ts → GenericErrorErrorsInner.ts} +3 -3
- package/models/GetNotificationRequestBody.ts +1 -1
- package/models/InlineResponse200.ts +1 -1
- package/models/InlineResponse2003.ts +1 -1
- package/models/InlineResponse201.ts +1 -1
- package/models/InlineResponse202.ts +1 -1
- package/models/InvalidIdentifierError.ts +1 -1
- package/models/Notification.ts +31 -1
- package/models/Notification200Errors.ts +1 -1
- package/models/NotificationAllOf.ts +1 -1
- package/models/NotificationHistorySuccessResponse.ts +1 -1
- package/models/NotificationSlice.ts +1 -1
- package/models/NotificationTarget.ts +1 -1
- package/models/NotificationWithMeta.ts +31 -1
- package/models/NotificationWithMetaAllOf.ts +1 -1
- package/models/ObjectSerializer.ts +16 -13
- package/models/Operator.ts +1 -1
- package/models/OutcomeData.ts +1 -1
- package/models/OutcomesData.ts +1 -1
- package/models/PlatformDeliveryData.ts +1 -1
- package/models/PlatformDeliveryDataEmailAllOf.ts +1 -1
- package/models/PlatformDeliveryDataSmsAllOf.ts +1 -1
- package/models/Player.ts +1 -1
- package/models/PlayerNotificationTarget.ts +1 -1
- package/models/PlayerNotificationTargetIncludeAliases.ts +1 -1
- package/models/PlayerSlice.ts +1 -1
- package/models/PropertiesDeltas.ts +1 -1
- package/models/PropertiesObject.ts +1 -1
- package/models/Purchase.ts +1 -1
- package/models/{BadRequestError.ts → RateLimiterError.ts} +6 -5
- package/models/Segment.ts +1 -1
- package/models/SegmentNotificationTarget.ts +1 -1
- package/models/StringMap.ts +1 -1
- package/models/SubscriptionObject.ts +1 -1
- package/models/TransferSubscriptionRequestBody.ts +1 -1
- package/models/UpdateLiveActivityRequest.ts +1 -1
- package/models/UpdateLiveActivitySuccessResponse.ts +1 -1
- package/models/UpdatePlayerSuccessResponse.ts +1 -1
- package/models/UpdatePlayerTagsRequestBody.ts +1 -1
- package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
- package/models/UpdateSubscriptionRequestBody.ts +1 -1
- package/models/UpdateUserRequest.ts +1 -1
- package/models/User.ts +1 -1
- package/models/UserIdentityRequestBody.ts +1 -1
- package/models/UserIdentityResponse.ts +1 -1
- package/models/UserSubscriptionOptions.ts +1 -1
- package/models/all.ts +4 -3
- package/package.json +2 -2
- package/types/ObjectParamAPI.ts +29 -4
- package/types/ObservableAPI.ts +30 -4
- package/types/PromiseAPI.ts +16 -4
- package/dist/models/BadRequestError.js +0 -22
- package/dist/models/BadRequestError.js.map +0 -1
- package/dist/models/CreateNotificationBadRequestResponse.d.ts +0 -17
- package/dist/models/CreateNotificationBadRequestResponse.js +0 -22
- package/dist/models/CreateNotificationBadRequestResponse.js.map +0 -1
- package/dist/models/CreateSegmentBadRequestResponse.js +0 -28
- package/dist/models/CreateSegmentBadRequestResponse.js.map +0 -1
- package/dist/models/DeletePlayerBadRequestResponse.js +0 -22
- package/dist/models/DeletePlayerBadRequestResponse.js.map +0 -1
- package/dist/models/DeleteSegmentBadRequestResponse.d.ts +0 -17
- package/dist/models/DeleteSegmentBadRequestResponse.js +0 -22
- package/dist/models/DeleteSegmentBadRequestResponse.js.map +0 -1
- package/dist/models/FilterNotificationTarget.d.ts +0 -28
- package/dist/models/FilterNotificationTarget.js +0 -88
- package/dist/models/FilterNotificationTarget.js.map +0 -1
- package/dist/models/IdentifyUserConflictResponse.d.ts +0 -18
- package/dist/models/IdentifyUserConflictResponse.js +0 -22
- package/dist/models/IdentifyUserConflictResponse.js.map +0 -1
- package/dist/models/IdentifyUserConflictResponseErrorsInner.js +0 -28
- package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +0 -1
- package/dist/models/NotificationHistoryBadRequestResponse.d.ts +0 -18
- package/dist/models/NotificationHistoryBadRequestResponse.js +0 -28
- package/dist/models/NotificationHistoryBadRequestResponse.js.map +0 -1
- package/models/CreateSegmentBadRequestResponse.ts +0 -38
- package/models/DeleteSegmentBadRequestResponse.ts +0 -31
- package/models/FilterNotificationTarget.ts +0 -144
- package/models/IdentifyUserConflictResponse.ts +0 -32
- package/models/NotificationHistoryBadRequestResponse.ts +0 -38
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -625,6 +625,45 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
625
625
|
});
|
|
626
626
|
});
|
|
627
627
|
};
|
|
628
|
+
DefaultApiRequestFactory.prototype.exportEvents = function (notificationId, appId, _options) {
|
|
629
|
+
var _a, _b, _c;
|
|
630
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
631
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
632
|
+
return __generator(this, function (_d) {
|
|
633
|
+
switch (_d.label) {
|
|
634
|
+
case 0:
|
|
635
|
+
_config = _options || this.configuration;
|
|
636
|
+
if (notificationId === null || notificationId === undefined) {
|
|
637
|
+
throw new baseapi_1.RequiredError("DefaultApi", "exportEvents", "notificationId");
|
|
638
|
+
}
|
|
639
|
+
if (appId === null || appId === undefined) {
|
|
640
|
+
throw new baseapi_1.RequiredError("DefaultApi", "exportEvents", "appId");
|
|
641
|
+
}
|
|
642
|
+
localVarPath = '/notifications/{notification_id}/export_events?app_id={app_id}'
|
|
643
|
+
.replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
|
|
644
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
645
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
646
|
+
if (appId !== undefined) {
|
|
647
|
+
requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
|
|
648
|
+
}
|
|
649
|
+
authMethod = _config.authMethods["app_key"];
|
|
650
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
651
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
652
|
+
case 1:
|
|
653
|
+
_d.sent();
|
|
654
|
+
_d.label = 2;
|
|
655
|
+
case 2:
|
|
656
|
+
defaultAuth = ((_a = _options === null || _options === void 0 ? void 0 : _options.authMethods) === null || _a === void 0 ? void 0 : _a.default) || ((_c = (_b = this.configuration) === null || _b === void 0 ? void 0 : _b.authMethods) === null || _c === void 0 ? void 0 : _c.default);
|
|
657
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
658
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
659
|
+
case 3:
|
|
660
|
+
_d.sent();
|
|
661
|
+
_d.label = 4;
|
|
662
|
+
case 4: return [2, requestContext];
|
|
663
|
+
}
|
|
664
|
+
});
|
|
665
|
+
});
|
|
666
|
+
};
|
|
628
667
|
DefaultApiRequestFactory.prototype.exportPlayers = function (appId, exportPlayersRequestBody, _options) {
|
|
629
668
|
var _a, _b, _c;
|
|
630
669
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1560,9 +1599,9 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1560
1599
|
}
|
|
1561
1600
|
DefaultApiResponseProcessor.prototype.beginLiveActivity = function (response) {
|
|
1562
1601
|
return __awaiter(this, void 0, void 0, function () {
|
|
1563
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1564
|
-
return __generator(this, function (
|
|
1565
|
-
switch (
|
|
1602
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1603
|
+
return __generator(this, function (_q) {
|
|
1604
|
+
switch (_q.label) {
|
|
1566
1605
|
case 0:
|
|
1567
1606
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1568
1607
|
if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
|
|
@@ -1573,32 +1612,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1573
1612
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1574
1613
|
return [4, response.body.text()];
|
|
1575
1614
|
case 1:
|
|
1576
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1577
|
-
"
|
|
1615
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1616
|
+
"GenericError", ""]);
|
|
1578
1617
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1579
1618
|
case 2:
|
|
1580
|
-
if (!(
|
|
1619
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 4];
|
|
1581
1620
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1582
1621
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1583
1622
|
return [4, response.body.text()];
|
|
1584
1623
|
case 3:
|
|
1585
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1624
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1625
|
+
"RateLimiterError", ""]);
|
|
1626
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
1627
|
+
case 4:
|
|
1628
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1629
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1630
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1631
|
+
return [4, response.body.text()];
|
|
1632
|
+
case 5:
|
|
1633
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1586
1634
|
"void", ""]);
|
|
1587
1635
|
return [2, body];
|
|
1588
|
-
case
|
|
1589
|
-
|
|
1590
|
-
|
|
1636
|
+
case 6:
|
|
1637
|
+
_o = exception_1.ApiException.bind;
|
|
1638
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1591
1639
|
return [4, response.getBodyAsAny()];
|
|
1592
|
-
case
|
|
1640
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1593
1641
|
}
|
|
1594
1642
|
});
|
|
1595
1643
|
});
|
|
1596
1644
|
};
|
|
1597
1645
|
DefaultApiResponseProcessor.prototype.cancelNotification = function (response) {
|
|
1598
1646
|
return __awaiter(this, void 0, void 0, function () {
|
|
1599
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1600
|
-
return __generator(this, function (
|
|
1601
|
-
switch (
|
|
1647
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1648
|
+
return __generator(this, function (_u) {
|
|
1649
|
+
switch (_u.label) {
|
|
1602
1650
|
case 0:
|
|
1603
1651
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1604
1652
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1606,7 +1654,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1606
1654
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1607
1655
|
return [4, response.body.text()];
|
|
1608
1656
|
case 1:
|
|
1609
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1657
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
1610
1658
|
"CancelNotificationSuccessResponse", ""]);
|
|
1611
1659
|
return [2, body];
|
|
1612
1660
|
case 2:
|
|
@@ -1615,32 +1663,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1615
1663
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1616
1664
|
return [4, response.body.text()];
|
|
1617
1665
|
case 3:
|
|
1618
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1619
|
-
"
|
|
1666
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
1667
|
+
"GenericError", ""]);
|
|
1620
1668
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1621
1669
|
case 4:
|
|
1622
|
-
if (!(
|
|
1670
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
1623
1671
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1624
1672
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1625
1673
|
return [4, response.body.text()];
|
|
1626
1674
|
case 5:
|
|
1627
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
1675
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
1676
|
+
"RateLimiterError", ""]);
|
|
1677
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
1678
|
+
case 6:
|
|
1679
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
1680
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1681
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1682
|
+
return [4, response.body.text()];
|
|
1683
|
+
case 7:
|
|
1684
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
1628
1685
|
"CancelNotificationSuccessResponse", ""]);
|
|
1629
1686
|
return [2, body];
|
|
1630
|
-
case
|
|
1631
|
-
|
|
1632
|
-
|
|
1687
|
+
case 8:
|
|
1688
|
+
_s = exception_1.ApiException.bind;
|
|
1689
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1633
1690
|
return [4, response.getBodyAsAny()];
|
|
1634
|
-
case
|
|
1691
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
1635
1692
|
}
|
|
1636
1693
|
});
|
|
1637
1694
|
});
|
|
1638
1695
|
};
|
|
1639
1696
|
DefaultApiResponseProcessor.prototype.createApp = function (response) {
|
|
1640
1697
|
return __awaiter(this, void 0, void 0, function () {
|
|
1641
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1642
|
-
return __generator(this, function (
|
|
1643
|
-
switch (
|
|
1698
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1699
|
+
return __generator(this, function (_u) {
|
|
1700
|
+
switch (_u.label) {
|
|
1644
1701
|
case 0:
|
|
1645
1702
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1646
1703
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1648,7 +1705,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1648
1705
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1649
1706
|
return [4, response.body.text()];
|
|
1650
1707
|
case 1:
|
|
1651
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1708
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
1652
1709
|
"App", ""]);
|
|
1653
1710
|
return [2, body];
|
|
1654
1711
|
case 2:
|
|
@@ -1657,32 +1714,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1657
1714
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1658
1715
|
return [4, response.body.text()];
|
|
1659
1716
|
case 3:
|
|
1660
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1661
|
-
"
|
|
1717
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
1718
|
+
"GenericError", ""]);
|
|
1662
1719
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1663
1720
|
case 4:
|
|
1664
|
-
if (!(
|
|
1721
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
1665
1722
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1666
1723
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1667
1724
|
return [4, response.body.text()];
|
|
1668
1725
|
case 5:
|
|
1669
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
1726
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
1727
|
+
"RateLimiterError", ""]);
|
|
1728
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
1729
|
+
case 6:
|
|
1730
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
1731
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1732
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1733
|
+
return [4, response.body.text()];
|
|
1734
|
+
case 7:
|
|
1735
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
1670
1736
|
"App", ""]);
|
|
1671
1737
|
return [2, body];
|
|
1672
|
-
case
|
|
1673
|
-
|
|
1674
|
-
|
|
1738
|
+
case 8:
|
|
1739
|
+
_s = exception_1.ApiException.bind;
|
|
1740
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1675
1741
|
return [4, response.getBodyAsAny()];
|
|
1676
|
-
case
|
|
1742
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
1677
1743
|
}
|
|
1678
1744
|
});
|
|
1679
1745
|
});
|
|
1680
1746
|
};
|
|
1681
1747
|
DefaultApiResponseProcessor.prototype.createNotification = function (response) {
|
|
1682
1748
|
return __awaiter(this, void 0, void 0, function () {
|
|
1683
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1684
|
-
return __generator(this, function (
|
|
1685
|
-
switch (
|
|
1749
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1750
|
+
return __generator(this, function (_u) {
|
|
1751
|
+
switch (_u.label) {
|
|
1686
1752
|
case 0:
|
|
1687
1753
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1688
1754
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1690,7 +1756,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1690
1756
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1691
1757
|
return [4, response.body.text()];
|
|
1692
1758
|
case 1:
|
|
1693
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1759
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
1694
1760
|
"CreateNotificationSuccessResponse", ""]);
|
|
1695
1761
|
return [2, body];
|
|
1696
1762
|
case 2:
|
|
@@ -1699,32 +1765,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1699
1765
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1700
1766
|
return [4, response.body.text()];
|
|
1701
1767
|
case 3:
|
|
1702
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1703
|
-
"
|
|
1768
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
1769
|
+
"GenericError", ""]);
|
|
1704
1770
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1705
1771
|
case 4:
|
|
1706
|
-
if (!(
|
|
1772
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
1707
1773
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1708
1774
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1709
1775
|
return [4, response.body.text()];
|
|
1710
1776
|
case 5:
|
|
1711
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
1777
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
1778
|
+
"RateLimiterError", ""]);
|
|
1779
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
1780
|
+
case 6:
|
|
1781
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
1782
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1783
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1784
|
+
return [4, response.body.text()];
|
|
1785
|
+
case 7:
|
|
1786
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
1712
1787
|
"CreateNotificationSuccessResponse", ""]);
|
|
1713
1788
|
return [2, body];
|
|
1714
|
-
case
|
|
1715
|
-
|
|
1716
|
-
|
|
1789
|
+
case 8:
|
|
1790
|
+
_s = exception_1.ApiException.bind;
|
|
1791
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1717
1792
|
return [4, response.getBodyAsAny()];
|
|
1718
|
-
case
|
|
1793
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
1719
1794
|
}
|
|
1720
1795
|
});
|
|
1721
1796
|
});
|
|
1722
1797
|
};
|
|
1723
1798
|
DefaultApiResponseProcessor.prototype.createPlayer = function (response) {
|
|
1724
1799
|
return __awaiter(this, void 0, void 0, function () {
|
|
1725
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1726
|
-
return __generator(this, function (
|
|
1727
|
-
switch (
|
|
1800
|
+
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;
|
|
1801
|
+
return __generator(this, function (_y) {
|
|
1802
|
+
switch (_y.label) {
|
|
1728
1803
|
case 0:
|
|
1729
1804
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1730
1805
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1732,7 +1807,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1732
1807
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1733
1808
|
return [4, response.body.text()];
|
|
1734
1809
|
case 1:
|
|
1735
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1810
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
1736
1811
|
"CreatePlayerSuccessResponse", ""]);
|
|
1737
1812
|
return [2, body];
|
|
1738
1813
|
case 2:
|
|
@@ -1741,32 +1816,50 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1741
1816
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1742
1817
|
return [4, response.body.text()];
|
|
1743
1818
|
case 3:
|
|
1744
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1745
|
-
"
|
|
1819
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
1820
|
+
"GenericError", ""]);
|
|
1746
1821
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1747
1822
|
case 4:
|
|
1748
|
-
if (!(
|
|
1823
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
|
|
1749
1824
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1750
1825
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1751
1826
|
return [4, response.body.text()];
|
|
1752
1827
|
case 5:
|
|
1753
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
1828
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
1829
|
+
"GenericError", ""]);
|
|
1830
|
+
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
1831
|
+
case 6:
|
|
1832
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
|
|
1833
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1834
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1835
|
+
return [4, response.body.text()];
|
|
1836
|
+
case 7:
|
|
1837
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
1838
|
+
"RateLimiterError", ""]);
|
|
1839
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
1840
|
+
case 8:
|
|
1841
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
1842
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1843
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1844
|
+
return [4, response.body.text()];
|
|
1845
|
+
case 9:
|
|
1846
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
1754
1847
|
"CreatePlayerSuccessResponse", ""]);
|
|
1755
1848
|
return [2, body];
|
|
1756
|
-
case
|
|
1757
|
-
|
|
1758
|
-
|
|
1849
|
+
case 10:
|
|
1850
|
+
_w = exception_1.ApiException.bind;
|
|
1851
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1759
1852
|
return [4, response.getBodyAsAny()];
|
|
1760
|
-
case
|
|
1853
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
1761
1854
|
}
|
|
1762
1855
|
});
|
|
1763
1856
|
});
|
|
1764
1857
|
};
|
|
1765
1858
|
DefaultApiResponseProcessor.prototype.createSegments = function (response) {
|
|
1766
1859
|
return __awaiter(this, void 0, void 0, function () {
|
|
1767
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1768
|
-
return __generator(this, function (
|
|
1769
|
-
switch (
|
|
1860
|
+
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;
|
|
1861
|
+
return __generator(this, function (_y) {
|
|
1862
|
+
switch (_y.label) {
|
|
1770
1863
|
case 0:
|
|
1771
1864
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1772
1865
|
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
@@ -1774,7 +1867,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1774
1867
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1775
1868
|
return [4, response.body.text()];
|
|
1776
1869
|
case 1:
|
|
1777
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1870
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
1778
1871
|
"CreateSegmentSuccessResponse", ""]);
|
|
1779
1872
|
return [2, body];
|
|
1780
1873
|
case 2:
|
|
@@ -1783,8 +1876,8 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1783
1876
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1784
1877
|
return [4, response.body.text()];
|
|
1785
1878
|
case 3:
|
|
1786
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1787
|
-
"
|
|
1879
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
1880
|
+
"GenericError", ""]);
|
|
1788
1881
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1789
1882
|
case 4:
|
|
1790
1883
|
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
|
|
@@ -1792,32 +1885,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1792
1885
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1793
1886
|
return [4, response.body.text()];
|
|
1794
1887
|
case 5:
|
|
1795
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
1888
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
1796
1889
|
"CreateSegmentConflictResponse", ""]);
|
|
1797
1890
|
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
1798
1891
|
case 6:
|
|
1799
|
-
if (!(
|
|
1892
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
|
|
1800
1893
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1801
1894
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1802
1895
|
return [4, response.body.text()];
|
|
1803
1896
|
case 7:
|
|
1804
|
-
body = _p.apply(_o, [_r.apply(_q, [
|
|
1897
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
1898
|
+
"RateLimiterError", ""]);
|
|
1899
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
1900
|
+
case 8:
|
|
1901
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
1902
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1903
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1904
|
+
return [4, response.body.text()];
|
|
1905
|
+
case 9:
|
|
1906
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
1805
1907
|
"CreateSegmentSuccessResponse", ""]);
|
|
1806
1908
|
return [2, body];
|
|
1807
|
-
case
|
|
1808
|
-
|
|
1809
|
-
|
|
1909
|
+
case 10:
|
|
1910
|
+
_w = exception_1.ApiException.bind;
|
|
1911
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1810
1912
|
return [4, response.getBodyAsAny()];
|
|
1811
|
-
case
|
|
1913
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
1812
1914
|
}
|
|
1813
1915
|
});
|
|
1814
1916
|
});
|
|
1815
1917
|
};
|
|
1816
1918
|
DefaultApiResponseProcessor.prototype.createSubscription = function (response) {
|
|
1817
1919
|
return __awaiter(this, void 0, void 0, function () {
|
|
1818
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1819
|
-
return __generator(this, function (
|
|
1820
|
-
switch (
|
|
1920
|
+
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;
|
|
1921
|
+
return __generator(this, function (_2) {
|
|
1922
|
+
switch (_2.label) {
|
|
1821
1923
|
case 0:
|
|
1822
1924
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1823
1925
|
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
@@ -1825,7 +1927,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1825
1927
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1826
1928
|
return [4, response.body.text()];
|
|
1827
1929
|
case 1:
|
|
1828
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1930
|
+
body = _b.apply(_a, [_d.apply(_c, [_2.sent(), contentType]),
|
|
1829
1931
|
"InlineResponse201", ""]);
|
|
1830
1932
|
return [2, body];
|
|
1831
1933
|
case 2:
|
|
@@ -1834,83 +1936,137 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1834
1936
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1835
1937
|
return [4, response.body.text()];
|
|
1836
1938
|
case 3:
|
|
1837
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1939
|
+
body = _f.apply(_e, [_h.apply(_g, [_2.sent(), contentType]),
|
|
1838
1940
|
"InlineResponse201", ""]);
|
|
1839
1941
|
return [2, body];
|
|
1840
1942
|
case 4:
|
|
1841
|
-
if (!(
|
|
1943
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 6];
|
|
1842
1944
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1843
1945
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1844
1946
|
return [4, response.body.text()];
|
|
1845
1947
|
case 5:
|
|
1846
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
1948
|
+
body = _k.apply(_j, [_m.apply(_l, [_2.sent(), contentType]),
|
|
1949
|
+
"GenericError", ""]);
|
|
1950
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1951
|
+
case 6:
|
|
1952
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 8];
|
|
1953
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1954
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1955
|
+
return [4, response.body.text()];
|
|
1956
|
+
case 7:
|
|
1957
|
+
body = _p.apply(_o, [_r.apply(_q, [_2.sent(), contentType]),
|
|
1958
|
+
"GenericError", ""]);
|
|
1959
|
+
throw new exception_1.ApiException(409, "Operation is not permitted due to user having the maximum number of subscriptions assigned", body, response.headers);
|
|
1960
|
+
case 8:
|
|
1961
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 10];
|
|
1962
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1963
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1964
|
+
return [4, response.body.text()];
|
|
1965
|
+
case 9:
|
|
1966
|
+
body = _t.apply(_s, [_v.apply(_u, [_2.sent(), contentType]),
|
|
1967
|
+
"RateLimiterError", ""]);
|
|
1968
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
1969
|
+
case 10:
|
|
1970
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 12];
|
|
1971
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1972
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1973
|
+
return [4, response.body.text()];
|
|
1974
|
+
case 11:
|
|
1975
|
+
body = _x.apply(_w, [_z.apply(_y, [_2.sent(), contentType]),
|
|
1847
1976
|
"InlineResponse201", ""]);
|
|
1848
1977
|
return [2, body];
|
|
1849
|
-
case
|
|
1850
|
-
|
|
1851
|
-
|
|
1978
|
+
case 12:
|
|
1979
|
+
_0 = exception_1.ApiException.bind;
|
|
1980
|
+
_1 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1852
1981
|
return [4, response.getBodyAsAny()];
|
|
1853
|
-
case
|
|
1982
|
+
case 13: throw new (_0.apply(exception_1.ApiException, _1.concat([_2.sent(), response.headers])))();
|
|
1854
1983
|
}
|
|
1855
1984
|
});
|
|
1856
1985
|
});
|
|
1857
1986
|
};
|
|
1858
1987
|
DefaultApiResponseProcessor.prototype.createUser = function (response) {
|
|
1859
1988
|
return __awaiter(this, void 0, void 0, function () {
|
|
1860
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1861
|
-
return __generator(this, function (
|
|
1862
|
-
switch (
|
|
1989
|
+
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, body, _0, _1, _2, _3, _4, _5;
|
|
1990
|
+
return __generator(this, function (_6) {
|
|
1991
|
+
switch (_6.label) {
|
|
1863
1992
|
case 0:
|
|
1864
1993
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1865
|
-
if (!(0, util_1.isCodeInRange)("
|
|
1994
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1866
1995
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1867
1996
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1868
1997
|
return [4, response.body.text()];
|
|
1869
1998
|
case 1:
|
|
1870
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1999
|
+
body = _b.apply(_a, [_d.apply(_c, [_6.sent(), contentType]),
|
|
1871
2000
|
"User", ""]);
|
|
1872
2001
|
return [2, body];
|
|
1873
2002
|
case 2:
|
|
1874
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2003
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 4];
|
|
1875
2004
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1876
2005
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1877
2006
|
return [4, response.body.text()];
|
|
1878
2007
|
case 3:
|
|
1879
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2008
|
+
body = _f.apply(_e, [_h.apply(_g, [_6.sent(), contentType]),
|
|
1880
2009
|
"User", ""]);
|
|
1881
2010
|
return [2, body];
|
|
1882
2011
|
case 4:
|
|
1883
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2012
|
+
if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 6];
|
|
1884
2013
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1885
2014
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1886
2015
|
return [4, response.body.text()];
|
|
1887
2016
|
case 5:
|
|
1888
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
1889
|
-
"
|
|
1890
|
-
|
|
2017
|
+
body = _k.apply(_j, [_m.apply(_l, [_6.sent(), contentType]),
|
|
2018
|
+
"User", ""]);
|
|
2019
|
+
return [2, body];
|
|
1891
2020
|
case 6:
|
|
1892
|
-
if (!(
|
|
2021
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 8];
|
|
1893
2022
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1894
2023
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1895
2024
|
return [4, response.body.text()];
|
|
1896
2025
|
case 7:
|
|
1897
|
-
body = _p.apply(_o, [_r.apply(_q, [
|
|
2026
|
+
body = _p.apply(_o, [_r.apply(_q, [_6.sent(), contentType]),
|
|
2027
|
+
"GenericError", ""]);
|
|
2028
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2029
|
+
case 8:
|
|
2030
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 10];
|
|
2031
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2032
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2033
|
+
return [4, response.body.text()];
|
|
2034
|
+
case 9:
|
|
2035
|
+
body = _t.apply(_s, [_v.apply(_u, [_6.sent(), contentType]),
|
|
2036
|
+
"CreateUserConflictResponse", ""]);
|
|
2037
|
+
throw new exception_1.ApiException(409, "Multiple User Identity Conflict", body, response.headers);
|
|
2038
|
+
case 10:
|
|
2039
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 12];
|
|
2040
|
+
_x = (_w = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2041
|
+
_z = (_y = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2042
|
+
return [4, response.body.text()];
|
|
2043
|
+
case 11:
|
|
2044
|
+
body = _x.apply(_w, [_z.apply(_y, [_6.sent(), contentType]),
|
|
2045
|
+
"RateLimiterError", ""]);
|
|
2046
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2047
|
+
case 12:
|
|
2048
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 14];
|
|
2049
|
+
_1 = (_0 = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2050
|
+
_3 = (_2 = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2051
|
+
return [4, response.body.text()];
|
|
2052
|
+
case 13:
|
|
2053
|
+
body = _1.apply(_0, [_3.apply(_2, [_6.sent(), contentType]),
|
|
1898
2054
|
"User", ""]);
|
|
1899
2055
|
return [2, body];
|
|
1900
|
-
case
|
|
1901
|
-
|
|
1902
|
-
|
|
2056
|
+
case 14:
|
|
2057
|
+
_4 = exception_1.ApiException.bind;
|
|
2058
|
+
_5 = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1903
2059
|
return [4, response.getBodyAsAny()];
|
|
1904
|
-
case
|
|
2060
|
+
case 15: throw new (_4.apply(exception_1.ApiException, _5.concat([_6.sent(), response.headers])))();
|
|
1905
2061
|
}
|
|
1906
2062
|
});
|
|
1907
2063
|
});
|
|
1908
2064
|
};
|
|
1909
2065
|
DefaultApiResponseProcessor.prototype.deleteAlias = function (response) {
|
|
1910
2066
|
return __awaiter(this, void 0, void 0, function () {
|
|
1911
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1912
|
-
return __generator(this, function (
|
|
1913
|
-
switch (
|
|
2067
|
+
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;
|
|
2068
|
+
return __generator(this, function (_y) {
|
|
2069
|
+
switch (_y.label) {
|
|
1914
2070
|
case 0:
|
|
1915
2071
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1916
2072
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1918,32 +2074,59 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1918
2074
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1919
2075
|
return [4, response.body.text()];
|
|
1920
2076
|
case 1:
|
|
1921
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2077
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
1922
2078
|
"InlineResponse200", ""]);
|
|
1923
2079
|
return [2, body];
|
|
1924
2080
|
case 2:
|
|
1925
|
-
if (!(
|
|
2081
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1926
2082
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1927
2083
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1928
2084
|
return [4, response.body.text()];
|
|
1929
2085
|
case 3:
|
|
1930
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2086
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
2087
|
+
"GenericError", ""]);
|
|
2088
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2089
|
+
case 4:
|
|
2090
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
|
|
2091
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2092
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2093
|
+
return [4, response.body.text()];
|
|
2094
|
+
case 5:
|
|
2095
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
2096
|
+
"GenericError", ""]);
|
|
2097
|
+
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
2098
|
+
case 6:
|
|
2099
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
|
|
2100
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2101
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2102
|
+
return [4, response.body.text()];
|
|
2103
|
+
case 7:
|
|
2104
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
2105
|
+
"RateLimiterError", ""]);
|
|
2106
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2107
|
+
case 8:
|
|
2108
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
2109
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2110
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2111
|
+
return [4, response.body.text()];
|
|
2112
|
+
case 9:
|
|
2113
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
1931
2114
|
"InlineResponse200", ""]);
|
|
1932
2115
|
return [2, body];
|
|
1933
|
-
case
|
|
1934
|
-
|
|
1935
|
-
|
|
2116
|
+
case 10:
|
|
2117
|
+
_w = exception_1.ApiException.bind;
|
|
2118
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1936
2119
|
return [4, response.getBodyAsAny()];
|
|
1937
|
-
case
|
|
2120
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
1938
2121
|
}
|
|
1939
2122
|
});
|
|
1940
2123
|
});
|
|
1941
2124
|
};
|
|
1942
2125
|
DefaultApiResponseProcessor.prototype.deletePlayer = function (response) {
|
|
1943
2126
|
return __awaiter(this, void 0, void 0, function () {
|
|
1944
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1945
|
-
return __generator(this, function (
|
|
1946
|
-
switch (
|
|
2127
|
+
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;
|
|
2128
|
+
return __generator(this, function (_y) {
|
|
2129
|
+
switch (_y.label) {
|
|
1947
2130
|
case 0:
|
|
1948
2131
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1949
2132
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1951,7 +2134,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1951
2134
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1952
2135
|
return [4, response.body.text()];
|
|
1953
2136
|
case 1:
|
|
1954
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2137
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
1955
2138
|
"DeletePlayerSuccessResponse", ""]);
|
|
1956
2139
|
return [2, body];
|
|
1957
2140
|
case 2:
|
|
@@ -1960,8 +2143,8 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1960
2143
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1961
2144
|
return [4, response.body.text()];
|
|
1962
2145
|
case 3:
|
|
1963
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1964
|
-
"
|
|
2146
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
2147
|
+
"GenericError", ""]);
|
|
1965
2148
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1966
2149
|
case 4:
|
|
1967
2150
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
@@ -1969,32 +2152,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1969
2152
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1970
2153
|
return [4, response.body.text()];
|
|
1971
2154
|
case 5:
|
|
1972
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2155
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
1973
2156
|
"DeletePlayerNotFoundResponse", ""]);
|
|
1974
2157
|
throw new exception_1.ApiException(404, "Not Found", body, response.headers);
|
|
1975
2158
|
case 6:
|
|
1976
|
-
if (!(
|
|
2159
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
|
|
1977
2160
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1978
2161
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1979
2162
|
return [4, response.body.text()];
|
|
1980
2163
|
case 7:
|
|
1981
|
-
body = _p.apply(_o, [_r.apply(_q, [
|
|
2164
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
2165
|
+
"RateLimiterError", ""]);
|
|
2166
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2167
|
+
case 8:
|
|
2168
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
2169
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2170
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2171
|
+
return [4, response.body.text()];
|
|
2172
|
+
case 9:
|
|
2173
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
1982
2174
|
"DeletePlayerSuccessResponse", ""]);
|
|
1983
2175
|
return [2, body];
|
|
1984
|
-
case
|
|
1985
|
-
|
|
1986
|
-
|
|
2176
|
+
case 10:
|
|
2177
|
+
_w = exception_1.ApiException.bind;
|
|
2178
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1987
2179
|
return [4, response.getBodyAsAny()];
|
|
1988
|
-
case
|
|
2180
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
1989
2181
|
}
|
|
1990
2182
|
});
|
|
1991
2183
|
});
|
|
1992
2184
|
};
|
|
1993
2185
|
DefaultApiResponseProcessor.prototype.deleteSegments = function (response) {
|
|
1994
2186
|
return __awaiter(this, void 0, void 0, function () {
|
|
1995
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1996
|
-
return __generator(this, function (
|
|
1997
|
-
switch (
|
|
2187
|
+
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;
|
|
2188
|
+
return __generator(this, function (_y) {
|
|
2189
|
+
switch (_y.label) {
|
|
1998
2190
|
case 0:
|
|
1999
2191
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2000
2192
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2002,7 +2194,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2002
2194
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2003
2195
|
return [4, response.body.text()];
|
|
2004
2196
|
case 1:
|
|
2005
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2197
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
2006
2198
|
"DeleteSegmentSuccessResponse", ""]);
|
|
2007
2199
|
return [2, body];
|
|
2008
2200
|
case 2:
|
|
@@ -2011,8 +2203,8 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2011
2203
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2012
2204
|
return [4, response.body.text()];
|
|
2013
2205
|
case 3:
|
|
2014
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2015
|
-
"
|
|
2206
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
2207
|
+
"GenericError", ""]);
|
|
2016
2208
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2017
2209
|
case 4:
|
|
2018
2210
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
@@ -2020,86 +2212,149 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2020
2212
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2021
2213
|
return [4, response.body.text()];
|
|
2022
2214
|
case 5:
|
|
2023
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2215
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
2024
2216
|
"DeleteSegmentNotFoundResponse", ""]);
|
|
2025
2217
|
throw new exception_1.ApiException(404, "Not Found", body, response.headers);
|
|
2026
2218
|
case 6:
|
|
2027
|
-
if (!(
|
|
2219
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
|
|
2028
2220
|
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2029
2221
|
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2030
2222
|
return [4, response.body.text()];
|
|
2031
2223
|
case 7:
|
|
2032
|
-
body = _p.apply(_o, [_r.apply(_q, [
|
|
2224
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
2225
|
+
"RateLimiterError", ""]);
|
|
2226
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2227
|
+
case 8:
|
|
2228
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
2229
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2230
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2231
|
+
return [4, response.body.text()];
|
|
2232
|
+
case 9:
|
|
2233
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
2033
2234
|
"DeleteSegmentSuccessResponse", ""]);
|
|
2034
2235
|
return [2, body];
|
|
2035
|
-
case
|
|
2036
|
-
|
|
2037
|
-
|
|
2236
|
+
case 10:
|
|
2237
|
+
_w = exception_1.ApiException.bind;
|
|
2238
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2038
2239
|
return [4, response.getBodyAsAny()];
|
|
2039
|
-
case
|
|
2240
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
2040
2241
|
}
|
|
2041
2242
|
});
|
|
2042
2243
|
});
|
|
2043
2244
|
};
|
|
2044
2245
|
DefaultApiResponseProcessor.prototype.deleteSubscription = function (response) {
|
|
2045
2246
|
return __awaiter(this, void 0, void 0, function () {
|
|
2046
|
-
var contentType, body, _a, _b, _c, _d, _e, _f;
|
|
2047
|
-
return __generator(this, function (
|
|
2048
|
-
switch (
|
|
2247
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2248
|
+
return __generator(this, function (_u) {
|
|
2249
|
+
switch (_u.label) {
|
|
2049
2250
|
case 0:
|
|
2050
2251
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2051
2252
|
if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
|
|
2052
2253
|
return [2];
|
|
2053
2254
|
}
|
|
2054
|
-
if (!(
|
|
2255
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
|
|
2055
2256
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2056
2257
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2057
2258
|
return [4, response.body.text()];
|
|
2058
2259
|
case 1:
|
|
2059
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2260
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2261
|
+
"GenericError", ""]);
|
|
2262
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2263
|
+
case 2:
|
|
2264
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
|
|
2265
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2266
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2267
|
+
return [4, response.body.text()];
|
|
2268
|
+
case 3:
|
|
2269
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2270
|
+
"GenericError", ""]);
|
|
2271
|
+
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
2272
|
+
case 4:
|
|
2273
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2274
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2275
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2276
|
+
return [4, response.body.text()];
|
|
2277
|
+
case 5:
|
|
2278
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2279
|
+
"RateLimiterError", ""]);
|
|
2280
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2281
|
+
case 6:
|
|
2282
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2283
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2284
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2285
|
+
return [4, response.body.text()];
|
|
2286
|
+
case 7:
|
|
2287
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2060
2288
|
"void", ""]);
|
|
2061
2289
|
return [2, body];
|
|
2062
|
-
case
|
|
2063
|
-
|
|
2064
|
-
|
|
2290
|
+
case 8:
|
|
2291
|
+
_s = exception_1.ApiException.bind;
|
|
2292
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2065
2293
|
return [4, response.getBodyAsAny()];
|
|
2066
|
-
case
|
|
2294
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2067
2295
|
}
|
|
2068
2296
|
});
|
|
2069
2297
|
});
|
|
2070
2298
|
};
|
|
2071
2299
|
DefaultApiResponseProcessor.prototype.deleteUser = function (response) {
|
|
2072
2300
|
return __awaiter(this, void 0, void 0, function () {
|
|
2073
|
-
var contentType, body, _a, _b, _c, _d, _e, _f;
|
|
2074
|
-
return __generator(this, function (
|
|
2075
|
-
switch (
|
|
2301
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2302
|
+
return __generator(this, function (_u) {
|
|
2303
|
+
switch (_u.label) {
|
|
2076
2304
|
case 0:
|
|
2077
2305
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2078
2306
|
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
2079
2307
|
return [2];
|
|
2080
2308
|
}
|
|
2081
|
-
if (!(
|
|
2309
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
|
|
2082
2310
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2083
2311
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2084
2312
|
return [4, response.body.text()];
|
|
2085
2313
|
case 1:
|
|
2086
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2314
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2315
|
+
"GenericError", ""]);
|
|
2316
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2317
|
+
case 2:
|
|
2318
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
|
|
2319
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2320
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2321
|
+
return [4, response.body.text()];
|
|
2322
|
+
case 3:
|
|
2323
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2324
|
+
"GenericError", ""]);
|
|
2325
|
+
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
2326
|
+
case 4:
|
|
2327
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2328
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2329
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2330
|
+
return [4, response.body.text()];
|
|
2331
|
+
case 5:
|
|
2332
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2333
|
+
"RateLimiterError", ""]);
|
|
2334
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2335
|
+
case 6:
|
|
2336
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2337
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2338
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2339
|
+
return [4, response.body.text()];
|
|
2340
|
+
case 7:
|
|
2341
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2087
2342
|
"void", ""]);
|
|
2088
2343
|
return [2, body];
|
|
2089
|
-
case
|
|
2090
|
-
|
|
2091
|
-
|
|
2344
|
+
case 8:
|
|
2345
|
+
_s = exception_1.ApiException.bind;
|
|
2346
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2092
2347
|
return [4, response.getBodyAsAny()];
|
|
2093
|
-
case
|
|
2348
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2094
2349
|
}
|
|
2095
2350
|
});
|
|
2096
2351
|
});
|
|
2097
2352
|
};
|
|
2098
2353
|
DefaultApiResponseProcessor.prototype.endLiveActivity = function (response) {
|
|
2099
2354
|
return __awaiter(this, void 0, void 0, function () {
|
|
2100
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
2101
|
-
return __generator(this, function (
|
|
2102
|
-
switch (
|
|
2355
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2356
|
+
return __generator(this, function (_q) {
|
|
2357
|
+
switch (_q.label) {
|
|
2103
2358
|
case 0:
|
|
2104
2359
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2105
2360
|
if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
|
|
@@ -2110,32 +2365,101 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2110
2365
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2111
2366
|
return [4, response.body.text()];
|
|
2112
2367
|
case 1:
|
|
2113
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2114
|
-
"
|
|
2368
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
2369
|
+
"GenericError", ""]);
|
|
2115
2370
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2116
2371
|
case 2:
|
|
2117
|
-
if (!(
|
|
2372
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 4];
|
|
2118
2373
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2119
2374
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2120
2375
|
return [4, response.body.text()];
|
|
2121
2376
|
case 3:
|
|
2122
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2377
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
2378
|
+
"RateLimiterError", ""]);
|
|
2379
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2380
|
+
case 4:
|
|
2381
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
2382
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2383
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2384
|
+
return [4, response.body.text()];
|
|
2385
|
+
case 5:
|
|
2386
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
2123
2387
|
"void", ""]);
|
|
2124
2388
|
return [2, body];
|
|
2389
|
+
case 6:
|
|
2390
|
+
_o = exception_1.ApiException.bind;
|
|
2391
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2392
|
+
return [4, response.getBodyAsAny()];
|
|
2393
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
2394
|
+
}
|
|
2395
|
+
});
|
|
2396
|
+
});
|
|
2397
|
+
};
|
|
2398
|
+
DefaultApiResponseProcessor.prototype.exportEvents = function (response) {
|
|
2399
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2400
|
+
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;
|
|
2401
|
+
return __generator(this, function (_y) {
|
|
2402
|
+
switch (_y.label) {
|
|
2403
|
+
case 0:
|
|
2404
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2405
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
2406
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2407
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2408
|
+
return [4, response.body.text()];
|
|
2409
|
+
case 1:
|
|
2410
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
2411
|
+
"ExportEventsSuccessResponse", ""]);
|
|
2412
|
+
return [2, body];
|
|
2413
|
+
case 2:
|
|
2414
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
2415
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2416
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2417
|
+
return [4, response.body.text()];
|
|
2418
|
+
case 3:
|
|
2419
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
2420
|
+
"GenericError", ""]);
|
|
2421
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2125
2422
|
case 4:
|
|
2126
|
-
|
|
2127
|
-
_k =
|
|
2423
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
2424
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2425
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2426
|
+
return [4, response.body.text()];
|
|
2427
|
+
case 5:
|
|
2428
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
2429
|
+
"GenericError", ""]);
|
|
2430
|
+
throw new exception_1.ApiException(404, "Not Found", body, response.headers);
|
|
2431
|
+
case 6:
|
|
2432
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
|
|
2433
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2434
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2435
|
+
return [4, response.body.text()];
|
|
2436
|
+
case 7:
|
|
2437
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
2438
|
+
"RateLimiterError", ""]);
|
|
2439
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2440
|
+
case 8:
|
|
2441
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
2442
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2443
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2444
|
+
return [4, response.body.text()];
|
|
2445
|
+
case 9:
|
|
2446
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
2447
|
+
"ExportEventsSuccessResponse", ""]);
|
|
2448
|
+
return [2, body];
|
|
2449
|
+
case 10:
|
|
2450
|
+
_w = exception_1.ApiException.bind;
|
|
2451
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2128
2452
|
return [4, response.getBodyAsAny()];
|
|
2129
|
-
case
|
|
2453
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
2130
2454
|
}
|
|
2131
2455
|
});
|
|
2132
2456
|
});
|
|
2133
2457
|
};
|
|
2134
2458
|
DefaultApiResponseProcessor.prototype.exportPlayers = function (response) {
|
|
2135
2459
|
return __awaiter(this, void 0, void 0, function () {
|
|
2136
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2137
|
-
return __generator(this, function (
|
|
2138
|
-
switch (
|
|
2460
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2461
|
+
return __generator(this, function (_u) {
|
|
2462
|
+
switch (_u.label) {
|
|
2139
2463
|
case 0:
|
|
2140
2464
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2141
2465
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2143,7 +2467,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2143
2467
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2144
2468
|
return [4, response.body.text()];
|
|
2145
2469
|
case 1:
|
|
2146
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2470
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2147
2471
|
"ExportPlayersSuccessResponse", ""]);
|
|
2148
2472
|
return [2, body];
|
|
2149
2473
|
case 2:
|
|
@@ -2152,32 +2476,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2152
2476
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2153
2477
|
return [4, response.body.text()];
|
|
2154
2478
|
case 3:
|
|
2155
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2156
|
-
"
|
|
2479
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2480
|
+
"GenericError", ""]);
|
|
2157
2481
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2158
2482
|
case 4:
|
|
2159
|
-
if (!(
|
|
2483
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2160
2484
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2161
2485
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2162
2486
|
return [4, response.body.text()];
|
|
2163
2487
|
case 5:
|
|
2164
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2488
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2489
|
+
"RateLimiterError", ""]);
|
|
2490
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2491
|
+
case 6:
|
|
2492
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2493
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2494
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2495
|
+
return [4, response.body.text()];
|
|
2496
|
+
case 7:
|
|
2497
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2165
2498
|
"ExportPlayersSuccessResponse", ""]);
|
|
2166
2499
|
return [2, body];
|
|
2167
|
-
case
|
|
2168
|
-
|
|
2169
|
-
|
|
2500
|
+
case 8:
|
|
2501
|
+
_s = exception_1.ApiException.bind;
|
|
2502
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2170
2503
|
return [4, response.getBodyAsAny()];
|
|
2171
|
-
case
|
|
2504
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2172
2505
|
}
|
|
2173
2506
|
});
|
|
2174
2507
|
});
|
|
2175
2508
|
};
|
|
2176
2509
|
DefaultApiResponseProcessor.prototype.fetchAliases = function (response) {
|
|
2177
2510
|
return __awaiter(this, void 0, void 0, function () {
|
|
2178
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
2179
|
-
return __generator(this, function (
|
|
2180
|
-
switch (
|
|
2511
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2512
|
+
return __generator(this, function (_q) {
|
|
2513
|
+
switch (_q.label) {
|
|
2181
2514
|
case 0:
|
|
2182
2515
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2183
2516
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2185,32 +2518,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2185
2518
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2186
2519
|
return [4, response.body.text()];
|
|
2187
2520
|
case 1:
|
|
2188
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2521
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
2189
2522
|
"UserIdentityResponse", ""]);
|
|
2190
2523
|
return [2, body];
|
|
2191
2524
|
case 2:
|
|
2192
|
-
if (!(
|
|
2525
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
2193
2526
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2194
2527
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2195
2528
|
return [4, response.body.text()];
|
|
2196
2529
|
case 3:
|
|
2197
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2530
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
2531
|
+
"GenericError", ""]);
|
|
2532
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2533
|
+
case 4:
|
|
2534
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
2535
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2536
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2537
|
+
return [4, response.body.text()];
|
|
2538
|
+
case 5:
|
|
2539
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
2198
2540
|
"UserIdentityResponse", ""]);
|
|
2199
2541
|
return [2, body];
|
|
2200
|
-
case
|
|
2201
|
-
|
|
2202
|
-
|
|
2542
|
+
case 6:
|
|
2543
|
+
_o = exception_1.ApiException.bind;
|
|
2544
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2203
2545
|
return [4, response.getBodyAsAny()];
|
|
2204
|
-
case
|
|
2546
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
2205
2547
|
}
|
|
2206
2548
|
});
|
|
2207
2549
|
});
|
|
2208
2550
|
};
|
|
2209
2551
|
DefaultApiResponseProcessor.prototype.fetchUser = function (response) {
|
|
2210
2552
|
return __awaiter(this, void 0, void 0, function () {
|
|
2211
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
2212
|
-
return __generator(this, function (
|
|
2213
|
-
switch (
|
|
2553
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2554
|
+
return __generator(this, function (_u) {
|
|
2555
|
+
switch (_u.label) {
|
|
2214
2556
|
case 0:
|
|
2215
2557
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2216
2558
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2218,32 +2560,50 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2218
2560
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2219
2561
|
return [4, response.body.text()];
|
|
2220
2562
|
case 1:
|
|
2221
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2563
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2222
2564
|
"User", ""]);
|
|
2223
2565
|
return [2, body];
|
|
2224
2566
|
case 2:
|
|
2225
|
-
if (!(
|
|
2567
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
2226
2568
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2227
2569
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2228
2570
|
return [4, response.body.text()];
|
|
2229
2571
|
case 3:
|
|
2230
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2572
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2573
|
+
"GenericError", ""]);
|
|
2574
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2575
|
+
case 4:
|
|
2576
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2577
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2578
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2579
|
+
return [4, response.body.text()];
|
|
2580
|
+
case 5:
|
|
2581
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2582
|
+
"RateLimiterError", ""]);
|
|
2583
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2584
|
+
case 6:
|
|
2585
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2586
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2587
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2588
|
+
return [4, response.body.text()];
|
|
2589
|
+
case 7:
|
|
2590
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2231
2591
|
"User", ""]);
|
|
2232
2592
|
return [2, body];
|
|
2233
|
-
case
|
|
2234
|
-
|
|
2235
|
-
|
|
2593
|
+
case 8:
|
|
2594
|
+
_s = exception_1.ApiException.bind;
|
|
2595
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2236
2596
|
return [4, response.getBodyAsAny()];
|
|
2237
|
-
case
|
|
2597
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2238
2598
|
}
|
|
2239
2599
|
});
|
|
2240
2600
|
});
|
|
2241
2601
|
};
|
|
2242
2602
|
DefaultApiResponseProcessor.prototype.fetchUserIdentity = function (response) {
|
|
2243
2603
|
return __awaiter(this, void 0, void 0, function () {
|
|
2244
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
2245
|
-
return __generator(this, function (
|
|
2246
|
-
switch (
|
|
2604
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2605
|
+
return __generator(this, function (_u) {
|
|
2606
|
+
switch (_u.label) {
|
|
2247
2607
|
case 0:
|
|
2248
2608
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2249
2609
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2251,32 +2611,50 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2251
2611
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2252
2612
|
return [4, response.body.text()];
|
|
2253
2613
|
case 1:
|
|
2254
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2614
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2255
2615
|
"InlineResponse200", ""]);
|
|
2256
2616
|
return [2, body];
|
|
2257
2617
|
case 2:
|
|
2258
|
-
if (!(
|
|
2618
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
2259
2619
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2260
2620
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2261
2621
|
return [4, response.body.text()];
|
|
2262
2622
|
case 3:
|
|
2263
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2623
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2624
|
+
"GenericError", ""]);
|
|
2625
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2626
|
+
case 4:
|
|
2627
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2628
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2629
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2630
|
+
return [4, response.body.text()];
|
|
2631
|
+
case 5:
|
|
2632
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2633
|
+
"RateLimiterError", ""]);
|
|
2634
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2635
|
+
case 6:
|
|
2636
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2637
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2638
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2639
|
+
return [4, response.body.text()];
|
|
2640
|
+
case 7:
|
|
2641
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2264
2642
|
"InlineResponse200", ""]);
|
|
2265
2643
|
return [2, body];
|
|
2266
|
-
case
|
|
2267
|
-
|
|
2268
|
-
|
|
2644
|
+
case 8:
|
|
2645
|
+
_s = exception_1.ApiException.bind;
|
|
2646
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2269
2647
|
return [4, response.getBodyAsAny()];
|
|
2270
|
-
case
|
|
2648
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2271
2649
|
}
|
|
2272
2650
|
});
|
|
2273
2651
|
});
|
|
2274
2652
|
};
|
|
2275
2653
|
DefaultApiResponseProcessor.prototype.getApp = function (response) {
|
|
2276
2654
|
return __awaiter(this, void 0, void 0, function () {
|
|
2277
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2278
|
-
return __generator(this, function (
|
|
2279
|
-
switch (
|
|
2655
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2656
|
+
return __generator(this, function (_u) {
|
|
2657
|
+
switch (_u.label) {
|
|
2280
2658
|
case 0:
|
|
2281
2659
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2282
2660
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2284,7 +2662,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2284
2662
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2285
2663
|
return [4, response.body.text()];
|
|
2286
2664
|
case 1:
|
|
2287
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2665
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2288
2666
|
"App", ""]);
|
|
2289
2667
|
return [2, body];
|
|
2290
2668
|
case 2:
|
|
@@ -2293,32 +2671,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2293
2671
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2294
2672
|
return [4, response.body.text()];
|
|
2295
2673
|
case 3:
|
|
2296
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2297
|
-
"
|
|
2674
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2675
|
+
"GenericError", ""]);
|
|
2298
2676
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2299
2677
|
case 4:
|
|
2300
|
-
if (!(
|
|
2678
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2301
2679
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2302
2680
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2303
2681
|
return [4, response.body.text()];
|
|
2304
2682
|
case 5:
|
|
2305
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2683
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2684
|
+
"RateLimiterError", ""]);
|
|
2685
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2686
|
+
case 6:
|
|
2687
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2688
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2689
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2690
|
+
return [4, response.body.text()];
|
|
2691
|
+
case 7:
|
|
2692
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2306
2693
|
"App", ""]);
|
|
2307
2694
|
return [2, body];
|
|
2308
|
-
case
|
|
2309
|
-
|
|
2310
|
-
|
|
2695
|
+
case 8:
|
|
2696
|
+
_s = exception_1.ApiException.bind;
|
|
2697
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2311
2698
|
return [4, response.getBodyAsAny()];
|
|
2312
|
-
case
|
|
2699
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2313
2700
|
}
|
|
2314
2701
|
});
|
|
2315
2702
|
});
|
|
2316
2703
|
};
|
|
2317
2704
|
DefaultApiResponseProcessor.prototype.getApps = function (response) {
|
|
2318
2705
|
return __awaiter(this, void 0, void 0, function () {
|
|
2319
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2320
|
-
return __generator(this, function (
|
|
2321
|
-
switch (
|
|
2706
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2707
|
+
return __generator(this, function (_u) {
|
|
2708
|
+
switch (_u.label) {
|
|
2322
2709
|
case 0:
|
|
2323
2710
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2324
2711
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2326,7 +2713,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2326
2713
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2327
2714
|
return [4, response.body.text()];
|
|
2328
2715
|
case 1:
|
|
2329
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2716
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2330
2717
|
"Array<App>", ""]);
|
|
2331
2718
|
return [2, body];
|
|
2332
2719
|
case 2:
|
|
@@ -2335,32 +2722,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2335
2722
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2336
2723
|
return [4, response.body.text()];
|
|
2337
2724
|
case 3:
|
|
2338
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2339
|
-
"
|
|
2725
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2726
|
+
"GenericError", ""]);
|
|
2340
2727
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2341
2728
|
case 4:
|
|
2342
|
-
if (!(
|
|
2729
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2343
2730
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2344
2731
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2345
2732
|
return [4, response.body.text()];
|
|
2346
2733
|
case 5:
|
|
2347
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2734
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2735
|
+
"RateLimiterError", ""]);
|
|
2736
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2737
|
+
case 6:
|
|
2738
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2739
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2740
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2741
|
+
return [4, response.body.text()];
|
|
2742
|
+
case 7:
|
|
2743
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2348
2744
|
"Array<App>", ""]);
|
|
2349
2745
|
return [2, body];
|
|
2350
|
-
case
|
|
2351
|
-
|
|
2352
|
-
|
|
2746
|
+
case 8:
|
|
2747
|
+
_s = exception_1.ApiException.bind;
|
|
2748
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2353
2749
|
return [4, response.getBodyAsAny()];
|
|
2354
|
-
case
|
|
2750
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2355
2751
|
}
|
|
2356
2752
|
});
|
|
2357
2753
|
});
|
|
2358
2754
|
};
|
|
2359
2755
|
DefaultApiResponseProcessor.prototype.getEligibleIams = function (response) {
|
|
2360
2756
|
return __awaiter(this, void 0, void 0, function () {
|
|
2361
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
2362
|
-
return __generator(this, function (
|
|
2363
|
-
switch (
|
|
2757
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2758
|
+
return __generator(this, function (_u) {
|
|
2759
|
+
switch (_u.label) {
|
|
2364
2760
|
case 0:
|
|
2365
2761
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2366
2762
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2368,32 +2764,50 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2368
2764
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2369
2765
|
return [4, response.body.text()];
|
|
2370
2766
|
case 1:
|
|
2371
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2767
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2372
2768
|
"InlineResponse2003", ""]);
|
|
2373
2769
|
return [2, body];
|
|
2374
2770
|
case 2:
|
|
2375
|
-
if (!(
|
|
2771
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
2376
2772
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2377
2773
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2378
2774
|
return [4, response.body.text()];
|
|
2379
2775
|
case 3:
|
|
2380
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2776
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2777
|
+
"GenericError", ""]);
|
|
2778
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2779
|
+
case 4:
|
|
2780
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2781
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2782
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2783
|
+
return [4, response.body.text()];
|
|
2784
|
+
case 5:
|
|
2785
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2786
|
+
"RateLimiterError", ""]);
|
|
2787
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2788
|
+
case 6:
|
|
2789
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2790
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2791
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2792
|
+
return [4, response.body.text()];
|
|
2793
|
+
case 7:
|
|
2794
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2381
2795
|
"InlineResponse2003", ""]);
|
|
2382
2796
|
return [2, body];
|
|
2383
|
-
case
|
|
2384
|
-
|
|
2385
|
-
|
|
2797
|
+
case 8:
|
|
2798
|
+
_s = exception_1.ApiException.bind;
|
|
2799
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2386
2800
|
return [4, response.getBodyAsAny()];
|
|
2387
|
-
case
|
|
2801
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2388
2802
|
}
|
|
2389
2803
|
});
|
|
2390
2804
|
});
|
|
2391
2805
|
};
|
|
2392
2806
|
DefaultApiResponseProcessor.prototype.getNotification = function (response) {
|
|
2393
2807
|
return __awaiter(this, void 0, void 0, function () {
|
|
2394
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2395
|
-
return __generator(this, function (
|
|
2396
|
-
switch (
|
|
2808
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2809
|
+
return __generator(this, function (_u) {
|
|
2810
|
+
switch (_u.label) {
|
|
2397
2811
|
case 0:
|
|
2398
2812
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2399
2813
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2401,7 +2815,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2401
2815
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2402
2816
|
return [4, response.body.text()];
|
|
2403
2817
|
case 1:
|
|
2404
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2818
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2405
2819
|
"NotificationWithMeta", ""]);
|
|
2406
2820
|
return [2, body];
|
|
2407
2821
|
case 2:
|
|
@@ -2410,32 +2824,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2410
2824
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2411
2825
|
return [4, response.body.text()];
|
|
2412
2826
|
case 3:
|
|
2413
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2414
|
-
"
|
|
2827
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2828
|
+
"GenericError", ""]);
|
|
2415
2829
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2416
2830
|
case 4:
|
|
2417
|
-
if (!(
|
|
2831
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2418
2832
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2419
2833
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2420
2834
|
return [4, response.body.text()];
|
|
2421
2835
|
case 5:
|
|
2422
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2836
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2837
|
+
"RateLimiterError", ""]);
|
|
2838
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2839
|
+
case 6:
|
|
2840
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2841
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2842
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2843
|
+
return [4, response.body.text()];
|
|
2844
|
+
case 7:
|
|
2845
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2423
2846
|
"NotificationWithMeta", ""]);
|
|
2424
2847
|
return [2, body];
|
|
2425
|
-
case
|
|
2426
|
-
|
|
2427
|
-
|
|
2848
|
+
case 8:
|
|
2849
|
+
_s = exception_1.ApiException.bind;
|
|
2850
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2428
2851
|
return [4, response.getBodyAsAny()];
|
|
2429
|
-
case
|
|
2852
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2430
2853
|
}
|
|
2431
2854
|
});
|
|
2432
2855
|
});
|
|
2433
2856
|
};
|
|
2434
2857
|
DefaultApiResponseProcessor.prototype.getNotificationHistory = function (response) {
|
|
2435
2858
|
return __awaiter(this, void 0, void 0, function () {
|
|
2436
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2437
|
-
return __generator(this, function (
|
|
2438
|
-
switch (
|
|
2859
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2860
|
+
return __generator(this, function (_u) {
|
|
2861
|
+
switch (_u.label) {
|
|
2439
2862
|
case 0:
|
|
2440
2863
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2441
2864
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2443,7 +2866,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2443
2866
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2444
2867
|
return [4, response.body.text()];
|
|
2445
2868
|
case 1:
|
|
2446
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2869
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2447
2870
|
"NotificationHistorySuccessResponse", ""]);
|
|
2448
2871
|
return [2, body];
|
|
2449
2872
|
case 2:
|
|
@@ -2452,32 +2875,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2452
2875
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2453
2876
|
return [4, response.body.text()];
|
|
2454
2877
|
case 3:
|
|
2455
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2456
|
-
"
|
|
2878
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2879
|
+
"GenericError", ""]);
|
|
2457
2880
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2458
2881
|
case 4:
|
|
2459
|
-
if (!(
|
|
2882
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2460
2883
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2461
2884
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2462
2885
|
return [4, response.body.text()];
|
|
2463
2886
|
case 5:
|
|
2464
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2887
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2888
|
+
"RateLimiterError", ""]);
|
|
2889
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2890
|
+
case 6:
|
|
2891
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2892
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2893
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2894
|
+
return [4, response.body.text()];
|
|
2895
|
+
case 7:
|
|
2896
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2465
2897
|
"NotificationHistorySuccessResponse", ""]);
|
|
2466
2898
|
return [2, body];
|
|
2467
|
-
case
|
|
2468
|
-
|
|
2469
|
-
|
|
2899
|
+
case 8:
|
|
2900
|
+
_s = exception_1.ApiException.bind;
|
|
2901
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2470
2902
|
return [4, response.getBodyAsAny()];
|
|
2471
|
-
case
|
|
2903
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2472
2904
|
}
|
|
2473
2905
|
});
|
|
2474
2906
|
});
|
|
2475
2907
|
};
|
|
2476
2908
|
DefaultApiResponseProcessor.prototype.getNotifications = function (response) {
|
|
2477
2909
|
return __awaiter(this, void 0, void 0, function () {
|
|
2478
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2479
|
-
return __generator(this, function (
|
|
2480
|
-
switch (
|
|
2910
|
+
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
|
+
return __generator(this, function (_u) {
|
|
2912
|
+
switch (_u.label) {
|
|
2481
2913
|
case 0:
|
|
2482
2914
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2483
2915
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2485,7 +2917,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2485
2917
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2486
2918
|
return [4, response.body.text()];
|
|
2487
2919
|
case 1:
|
|
2488
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2920
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2489
2921
|
"NotificationSlice", ""]);
|
|
2490
2922
|
return [2, body];
|
|
2491
2923
|
case 2:
|
|
@@ -2494,32 +2926,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2494
2926
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2495
2927
|
return [4, response.body.text()];
|
|
2496
2928
|
case 3:
|
|
2497
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2498
|
-
"
|
|
2929
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2930
|
+
"GenericError", ""]);
|
|
2499
2931
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2500
2932
|
case 4:
|
|
2501
|
-
if (!(
|
|
2933
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2502
2934
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2503
2935
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2504
2936
|
return [4, response.body.text()];
|
|
2505
2937
|
case 5:
|
|
2506
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2938
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2939
|
+
"RateLimiterError", ""]);
|
|
2940
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2941
|
+
case 6:
|
|
2942
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2943
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2944
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2945
|
+
return [4, response.body.text()];
|
|
2946
|
+
case 7:
|
|
2947
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2507
2948
|
"NotificationSlice", ""]);
|
|
2508
2949
|
return [2, body];
|
|
2509
|
-
case
|
|
2510
|
-
|
|
2511
|
-
|
|
2950
|
+
case 8:
|
|
2951
|
+
_s = exception_1.ApiException.bind;
|
|
2952
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2512
2953
|
return [4, response.getBodyAsAny()];
|
|
2513
|
-
case
|
|
2954
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2514
2955
|
}
|
|
2515
2956
|
});
|
|
2516
2957
|
});
|
|
2517
2958
|
};
|
|
2518
2959
|
DefaultApiResponseProcessor.prototype.getOutcomes = function (response) {
|
|
2519
2960
|
return __awaiter(this, void 0, void 0, function () {
|
|
2520
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2521
|
-
return __generator(this, function (
|
|
2522
|
-
switch (
|
|
2961
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
2962
|
+
return __generator(this, function (_u) {
|
|
2963
|
+
switch (_u.label) {
|
|
2523
2964
|
case 0:
|
|
2524
2965
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2525
2966
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2527,7 +2968,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2527
2968
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2528
2969
|
return [4, response.body.text()];
|
|
2529
2970
|
case 1:
|
|
2530
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
2971
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2531
2972
|
"OutcomesData", ""]);
|
|
2532
2973
|
return [2, body];
|
|
2533
2974
|
case 2:
|
|
@@ -2536,32 +2977,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2536
2977
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2537
2978
|
return [4, response.body.text()];
|
|
2538
2979
|
case 3:
|
|
2539
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2540
|
-
"
|
|
2980
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2981
|
+
"GenericError", ""]);
|
|
2541
2982
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2542
2983
|
case 4:
|
|
2543
|
-
if (!(
|
|
2984
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2544
2985
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2545
2986
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2546
2987
|
return [4, response.body.text()];
|
|
2547
2988
|
case 5:
|
|
2548
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
2989
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2990
|
+
"RateLimiterError", ""]);
|
|
2991
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
2992
|
+
case 6:
|
|
2993
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2994
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2995
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2996
|
+
return [4, response.body.text()];
|
|
2997
|
+
case 7:
|
|
2998
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2549
2999
|
"OutcomesData", ""]);
|
|
2550
3000
|
return [2, body];
|
|
2551
|
-
case
|
|
2552
|
-
|
|
2553
|
-
|
|
3001
|
+
case 8:
|
|
3002
|
+
_s = exception_1.ApiException.bind;
|
|
3003
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2554
3004
|
return [4, response.getBodyAsAny()];
|
|
2555
|
-
case
|
|
3005
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2556
3006
|
}
|
|
2557
3007
|
});
|
|
2558
3008
|
});
|
|
2559
3009
|
};
|
|
2560
3010
|
DefaultApiResponseProcessor.prototype.getPlayer = function (response) {
|
|
2561
3011
|
return __awaiter(this, void 0, void 0, function () {
|
|
2562
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2563
|
-
return __generator(this, function (
|
|
2564
|
-
switch (
|
|
3012
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
3013
|
+
return __generator(this, function (_u) {
|
|
3014
|
+
switch (_u.label) {
|
|
2565
3015
|
case 0:
|
|
2566
3016
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2567
3017
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2569,7 +3019,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2569
3019
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2570
3020
|
return [4, response.body.text()];
|
|
2571
3021
|
case 1:
|
|
2572
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
3022
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2573
3023
|
"Player", ""]);
|
|
2574
3024
|
return [2, body];
|
|
2575
3025
|
case 2:
|
|
@@ -2578,32 +3028,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2578
3028
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2579
3029
|
return [4, response.body.text()];
|
|
2580
3030
|
case 3:
|
|
2581
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2582
|
-
"
|
|
3031
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
3032
|
+
"GenericError", ""]);
|
|
2583
3033
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2584
3034
|
case 4:
|
|
2585
|
-
if (!(
|
|
3035
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2586
3036
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2587
3037
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2588
3038
|
return [4, response.body.text()];
|
|
2589
3039
|
case 5:
|
|
2590
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
3040
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
3041
|
+
"RateLimiterError", ""]);
|
|
3042
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
3043
|
+
case 6:
|
|
3044
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
3045
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3046
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3047
|
+
return [4, response.body.text()];
|
|
3048
|
+
case 7:
|
|
3049
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2591
3050
|
"Player", ""]);
|
|
2592
3051
|
return [2, body];
|
|
2593
|
-
case
|
|
2594
|
-
|
|
2595
|
-
|
|
3052
|
+
case 8:
|
|
3053
|
+
_s = exception_1.ApiException.bind;
|
|
3054
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2596
3055
|
return [4, response.getBodyAsAny()];
|
|
2597
|
-
case
|
|
3056
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2598
3057
|
}
|
|
2599
3058
|
});
|
|
2600
3059
|
});
|
|
2601
3060
|
};
|
|
2602
3061
|
DefaultApiResponseProcessor.prototype.getPlayers = function (response) {
|
|
2603
3062
|
return __awaiter(this, void 0, void 0, function () {
|
|
2604
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2605
|
-
return __generator(this, function (
|
|
2606
|
-
switch (
|
|
3063
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
3064
|
+
return __generator(this, function (_u) {
|
|
3065
|
+
switch (_u.label) {
|
|
2607
3066
|
case 0:
|
|
2608
3067
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2609
3068
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2611,7 +3070,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2611
3070
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2612
3071
|
return [4, response.body.text()];
|
|
2613
3072
|
case 1:
|
|
2614
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
3073
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2615
3074
|
"PlayerSlice", ""]);
|
|
2616
3075
|
return [2, body];
|
|
2617
3076
|
case 2:
|
|
@@ -2620,32 +3079,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2620
3079
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2621
3080
|
return [4, response.body.text()];
|
|
2622
3081
|
case 3:
|
|
2623
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2624
|
-
"
|
|
3082
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
3083
|
+
"GenericError", ""]);
|
|
2625
3084
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2626
3085
|
case 4:
|
|
2627
|
-
if (!(
|
|
3086
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2628
3087
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2629
3088
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2630
3089
|
return [4, response.body.text()];
|
|
2631
3090
|
case 5:
|
|
2632
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
3091
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
3092
|
+
"RateLimiterError", ""]);
|
|
3093
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
3094
|
+
case 6:
|
|
3095
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
3096
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3097
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3098
|
+
return [4, response.body.text()];
|
|
3099
|
+
case 7:
|
|
3100
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2633
3101
|
"PlayerSlice", ""]);
|
|
2634
3102
|
return [2, body];
|
|
2635
|
-
case
|
|
2636
|
-
|
|
2637
|
-
|
|
3103
|
+
case 8:
|
|
3104
|
+
_s = exception_1.ApiException.bind;
|
|
3105
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2638
3106
|
return [4, response.getBodyAsAny()];
|
|
2639
|
-
case
|
|
3107
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2640
3108
|
}
|
|
2641
3109
|
});
|
|
2642
3110
|
});
|
|
2643
3111
|
};
|
|
2644
3112
|
DefaultApiResponseProcessor.prototype.identifyUserByAlias = function (response) {
|
|
2645
3113
|
return __awaiter(this, void 0, void 0, function () {
|
|
2646
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2647
|
-
return __generator(this, function (
|
|
2648
|
-
switch (
|
|
3114
|
+
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;
|
|
3115
|
+
return __generator(this, function (_y) {
|
|
3116
|
+
switch (_y.label) {
|
|
2649
3117
|
case 0:
|
|
2650
3118
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2651
3119
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2653,41 +3121,59 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2653
3121
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2654
3122
|
return [4, response.body.text()];
|
|
2655
3123
|
case 1:
|
|
2656
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
3124
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
2657
3125
|
"InlineResponse200", ""]);
|
|
2658
3126
|
return [2, body];
|
|
2659
3127
|
case 2:
|
|
2660
|
-
if (!(0, util_1.isCodeInRange)("
|
|
3128
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
2661
3129
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2662
3130
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2663
3131
|
return [4, response.body.text()];
|
|
2664
3132
|
case 3:
|
|
2665
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2666
|
-
"
|
|
2667
|
-
throw new exception_1.ApiException(
|
|
3133
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
3134
|
+
"GenericError", ""]);
|
|
3135
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2668
3136
|
case 4:
|
|
2669
|
-
if (!(
|
|
3137
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
|
|
2670
3138
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2671
3139
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2672
3140
|
return [4, response.body.text()];
|
|
2673
3141
|
case 5:
|
|
2674
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
3142
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
3143
|
+
"GenericError", ""]);
|
|
3144
|
+
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
3145
|
+
case 6:
|
|
3146
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
|
|
3147
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3148
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3149
|
+
return [4, response.body.text()];
|
|
3150
|
+
case 7:
|
|
3151
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
3152
|
+
"RateLimiterError", ""]);
|
|
3153
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
3154
|
+
case 8:
|
|
3155
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
3156
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3157
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3158
|
+
return [4, response.body.text()];
|
|
3159
|
+
case 9:
|
|
3160
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
2675
3161
|
"InlineResponse200", ""]);
|
|
2676
3162
|
return [2, body];
|
|
2677
|
-
case
|
|
2678
|
-
|
|
2679
|
-
|
|
3163
|
+
case 10:
|
|
3164
|
+
_w = exception_1.ApiException.bind;
|
|
3165
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2680
3166
|
return [4, response.getBodyAsAny()];
|
|
2681
|
-
case
|
|
3167
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
2682
3168
|
}
|
|
2683
3169
|
});
|
|
2684
3170
|
});
|
|
2685
3171
|
};
|
|
2686
3172
|
DefaultApiResponseProcessor.prototype.identifyUserBySubscriptionId = function (response) {
|
|
2687
3173
|
return __awaiter(this, void 0, void 0, function () {
|
|
2688
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2689
|
-
return __generator(this, function (
|
|
2690
|
-
switch (
|
|
3174
|
+
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;
|
|
3175
|
+
return __generator(this, function (_y) {
|
|
3176
|
+
switch (_y.label) {
|
|
2691
3177
|
case 0:
|
|
2692
3178
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2693
3179
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2695,41 +3181,59 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2695
3181
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2696
3182
|
return [4, response.body.text()];
|
|
2697
3183
|
case 1:
|
|
2698
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
3184
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
2699
3185
|
"UserIdentityResponse", ""]);
|
|
2700
3186
|
return [2, body];
|
|
2701
3187
|
case 2:
|
|
2702
|
-
if (!(0, util_1.isCodeInRange)("
|
|
3188
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
2703
3189
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2704
3190
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2705
3191
|
return [4, response.body.text()];
|
|
2706
3192
|
case 3:
|
|
2707
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2708
|
-
"
|
|
2709
|
-
throw new exception_1.ApiException(
|
|
3193
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
3194
|
+
"GenericError", ""]);
|
|
3195
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2710
3196
|
case 4:
|
|
2711
|
-
if (!(
|
|
3197
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
|
|
2712
3198
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2713
3199
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2714
3200
|
return [4, response.body.text()];
|
|
2715
3201
|
case 5:
|
|
2716
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
3202
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
3203
|
+
"GenericError", ""]);
|
|
3204
|
+
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
3205
|
+
case 6:
|
|
3206
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
|
|
3207
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3208
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3209
|
+
return [4, response.body.text()];
|
|
3210
|
+
case 7:
|
|
3211
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
3212
|
+
"RateLimiterError", ""]);
|
|
3213
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
3214
|
+
case 8:
|
|
3215
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
3216
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3217
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3218
|
+
return [4, response.body.text()];
|
|
3219
|
+
case 9:
|
|
3220
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
2717
3221
|
"UserIdentityResponse", ""]);
|
|
2718
3222
|
return [2, body];
|
|
2719
|
-
case
|
|
2720
|
-
|
|
2721
|
-
|
|
3223
|
+
case 10:
|
|
3224
|
+
_w = exception_1.ApiException.bind;
|
|
3225
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2722
3226
|
return [4, response.getBodyAsAny()];
|
|
2723
|
-
case
|
|
3227
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
2724
3228
|
}
|
|
2725
3229
|
});
|
|
2726
3230
|
});
|
|
2727
3231
|
};
|
|
2728
3232
|
DefaultApiResponseProcessor.prototype.transferSubscription = function (response) {
|
|
2729
3233
|
return __awaiter(this, void 0, void 0, function () {
|
|
2730
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
2731
|
-
return __generator(this, function (
|
|
2732
|
-
switch (
|
|
3234
|
+
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;
|
|
3235
|
+
return __generator(this, function (_y) {
|
|
3236
|
+
switch (_y.label) {
|
|
2733
3237
|
case 0:
|
|
2734
3238
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2735
3239
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2737,32 +3241,59 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2737
3241
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2738
3242
|
return [4, response.body.text()];
|
|
2739
3243
|
case 1:
|
|
2740
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
3244
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
2741
3245
|
"UserIdentityResponse", ""]);
|
|
2742
3246
|
return [2, body];
|
|
2743
3247
|
case 2:
|
|
2744
|
-
if (!(
|
|
3248
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
2745
3249
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2746
3250
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2747
3251
|
return [4, response.body.text()];
|
|
2748
3252
|
case 3:
|
|
2749
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
3253
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
3254
|
+
"GenericError", ""]);
|
|
3255
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
3256
|
+
case 4:
|
|
3257
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
|
|
3258
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3259
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3260
|
+
return [4, response.body.text()];
|
|
3261
|
+
case 5:
|
|
3262
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
3263
|
+
"GenericError", ""]);
|
|
3264
|
+
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
3265
|
+
case 6:
|
|
3266
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
|
|
3267
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3268
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3269
|
+
return [4, response.body.text()];
|
|
3270
|
+
case 7:
|
|
3271
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
3272
|
+
"RateLimiterError", ""]);
|
|
3273
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
3274
|
+
case 8:
|
|
3275
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
3276
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3277
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3278
|
+
return [4, response.body.text()];
|
|
3279
|
+
case 9:
|
|
3280
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
2750
3281
|
"UserIdentityResponse", ""]);
|
|
2751
3282
|
return [2, body];
|
|
2752
|
-
case
|
|
2753
|
-
|
|
2754
|
-
|
|
3283
|
+
case 10:
|
|
3284
|
+
_w = exception_1.ApiException.bind;
|
|
3285
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2755
3286
|
return [4, response.getBodyAsAny()];
|
|
2756
|
-
case
|
|
3287
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
2757
3288
|
}
|
|
2758
3289
|
});
|
|
2759
3290
|
});
|
|
2760
3291
|
};
|
|
2761
3292
|
DefaultApiResponseProcessor.prototype.updateApp = function (response) {
|
|
2762
3293
|
return __awaiter(this, void 0, void 0, function () {
|
|
2763
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2764
|
-
return __generator(this, function (
|
|
2765
|
-
switch (
|
|
3294
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
3295
|
+
return __generator(this, function (_u) {
|
|
3296
|
+
switch (_u.label) {
|
|
2766
3297
|
case 0:
|
|
2767
3298
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2768
3299
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2770,7 +3301,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2770
3301
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2771
3302
|
return [4, response.body.text()];
|
|
2772
3303
|
case 1:
|
|
2773
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
3304
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2774
3305
|
"App", ""]);
|
|
2775
3306
|
return [2, body];
|
|
2776
3307
|
case 2:
|
|
@@ -2779,32 +3310,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2779
3310
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2780
3311
|
return [4, response.body.text()];
|
|
2781
3312
|
case 3:
|
|
2782
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2783
|
-
"
|
|
3313
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
3314
|
+
"GenericError", ""]);
|
|
2784
3315
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2785
3316
|
case 4:
|
|
2786
|
-
if (!(
|
|
3317
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2787
3318
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2788
3319
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2789
3320
|
return [4, response.body.text()];
|
|
2790
3321
|
case 5:
|
|
2791
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
3322
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
3323
|
+
"RateLimiterError", ""]);
|
|
3324
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
3325
|
+
case 6:
|
|
3326
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
3327
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3328
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3329
|
+
return [4, response.body.text()];
|
|
3330
|
+
case 7:
|
|
3331
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2792
3332
|
"App", ""]);
|
|
2793
3333
|
return [2, body];
|
|
2794
|
-
case
|
|
2795
|
-
|
|
2796
|
-
|
|
3334
|
+
case 8:
|
|
3335
|
+
_s = exception_1.ApiException.bind;
|
|
3336
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2797
3337
|
return [4, response.getBodyAsAny()];
|
|
2798
|
-
case
|
|
3338
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2799
3339
|
}
|
|
2800
3340
|
});
|
|
2801
3341
|
});
|
|
2802
3342
|
};
|
|
2803
3343
|
DefaultApiResponseProcessor.prototype.updateLiveActivity = function (response) {
|
|
2804
3344
|
return __awaiter(this, void 0, void 0, function () {
|
|
2805
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2806
|
-
return __generator(this, function (
|
|
2807
|
-
switch (
|
|
3345
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
3346
|
+
return __generator(this, function (_u) {
|
|
3347
|
+
switch (_u.label) {
|
|
2808
3348
|
case 0:
|
|
2809
3349
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2810
3350
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2812,7 +3352,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2812
3352
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2813
3353
|
return [4, response.body.text()];
|
|
2814
3354
|
case 1:
|
|
2815
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
3355
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2816
3356
|
"UpdateLiveActivitySuccessResponse", ""]);
|
|
2817
3357
|
return [2, body];
|
|
2818
3358
|
case 2:
|
|
@@ -2821,32 +3361,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2821
3361
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2822
3362
|
return [4, response.body.text()];
|
|
2823
3363
|
case 3:
|
|
2824
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2825
|
-
"
|
|
3364
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
3365
|
+
"GenericError", ""]);
|
|
2826
3366
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2827
3367
|
case 4:
|
|
2828
|
-
if (!(
|
|
3368
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
2829
3369
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2830
3370
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2831
3371
|
return [4, response.body.text()];
|
|
2832
3372
|
case 5:
|
|
2833
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
3373
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
3374
|
+
"RateLimiterError", ""]);
|
|
3375
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
3376
|
+
case 6:
|
|
3377
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
3378
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3379
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3380
|
+
return [4, response.body.text()];
|
|
3381
|
+
case 7:
|
|
3382
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2834
3383
|
"UpdateLiveActivitySuccessResponse", ""]);
|
|
2835
3384
|
return [2, body];
|
|
2836
|
-
case
|
|
2837
|
-
|
|
2838
|
-
|
|
3385
|
+
case 8:
|
|
3386
|
+
_s = exception_1.ApiException.bind;
|
|
3387
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2839
3388
|
return [4, response.getBodyAsAny()];
|
|
2840
|
-
case
|
|
3389
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2841
3390
|
}
|
|
2842
3391
|
});
|
|
2843
3392
|
});
|
|
2844
3393
|
};
|
|
2845
3394
|
DefaultApiResponseProcessor.prototype.updatePlayer = function (response) {
|
|
2846
3395
|
return __awaiter(this, void 0, void 0, function () {
|
|
2847
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2848
|
-
return __generator(this, function (
|
|
2849
|
-
switch (
|
|
3396
|
+
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;
|
|
3397
|
+
return __generator(this, function (_y) {
|
|
3398
|
+
switch (_y.label) {
|
|
2850
3399
|
case 0:
|
|
2851
3400
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2852
3401
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2854,7 +3403,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2854
3403
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2855
3404
|
return [4, response.body.text()];
|
|
2856
3405
|
case 1:
|
|
2857
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
3406
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
2858
3407
|
"UpdatePlayerSuccessResponse", ""]);
|
|
2859
3408
|
return [2, body];
|
|
2860
3409
|
case 2:
|
|
@@ -2863,32 +3412,50 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2863
3412
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2864
3413
|
return [4, response.body.text()];
|
|
2865
3414
|
case 3:
|
|
2866
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
2867
|
-
"
|
|
3415
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
3416
|
+
"GenericError", ""]);
|
|
2868
3417
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2869
3418
|
case 4:
|
|
2870
|
-
if (!(
|
|
3419
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
|
|
2871
3420
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2872
3421
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2873
3422
|
return [4, response.body.text()];
|
|
2874
3423
|
case 5:
|
|
2875
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
3424
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
3425
|
+
"GenericError", ""]);
|
|
3426
|
+
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
3427
|
+
case 6:
|
|
3428
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
|
|
3429
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3430
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3431
|
+
return [4, response.body.text()];
|
|
3432
|
+
case 7:
|
|
3433
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
3434
|
+
"RateLimiterError", ""]);
|
|
3435
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
3436
|
+
case 8:
|
|
3437
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
3438
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3439
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3440
|
+
return [4, response.body.text()];
|
|
3441
|
+
case 9:
|
|
3442
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
2876
3443
|
"UpdatePlayerSuccessResponse", ""]);
|
|
2877
3444
|
return [2, body];
|
|
2878
|
-
case
|
|
2879
|
-
|
|
2880
|
-
|
|
3445
|
+
case 10:
|
|
3446
|
+
_w = exception_1.ApiException.bind;
|
|
3447
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2881
3448
|
return [4, response.getBodyAsAny()];
|
|
2882
|
-
case
|
|
3449
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
2883
3450
|
}
|
|
2884
3451
|
});
|
|
2885
3452
|
});
|
|
2886
3453
|
};
|
|
2887
3454
|
DefaultApiResponseProcessor.prototype.updatePlayerTags = function (response) {
|
|
2888
3455
|
return __awaiter(this, void 0, void 0, function () {
|
|
2889
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
2890
|
-
return __generator(this, function (
|
|
2891
|
-
switch (
|
|
3456
|
+
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;
|
|
3457
|
+
return __generator(this, function (_y) {
|
|
3458
|
+
switch (_y.label) {
|
|
2892
3459
|
case 0:
|
|
2893
3460
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2894
3461
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -2896,59 +3463,113 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2896
3463
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2897
3464
|
return [4, response.body.text()];
|
|
2898
3465
|
case 1:
|
|
2899
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
3466
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
2900
3467
|
"UpdatePlayerTagsSuccessResponse", ""]);
|
|
2901
3468
|
return [2, body];
|
|
2902
3469
|
case 2:
|
|
2903
|
-
if (!(
|
|
3470
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
2904
3471
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2905
3472
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2906
3473
|
return [4, response.body.text()];
|
|
2907
3474
|
case 3:
|
|
2908
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
3475
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
3476
|
+
"GenericError", ""]);
|
|
3477
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
3478
|
+
case 4:
|
|
3479
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
|
|
3480
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3481
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3482
|
+
return [4, response.body.text()];
|
|
3483
|
+
case 5:
|
|
3484
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
3485
|
+
"GenericError", ""]);
|
|
3486
|
+
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
3487
|
+
case 6:
|
|
3488
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
|
|
3489
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3490
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3491
|
+
return [4, response.body.text()];
|
|
3492
|
+
case 7:
|
|
3493
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
3494
|
+
"RateLimiterError", ""]);
|
|
3495
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
3496
|
+
case 8:
|
|
3497
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
3498
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3499
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3500
|
+
return [4, response.body.text()];
|
|
3501
|
+
case 9:
|
|
3502
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
2909
3503
|
"UpdatePlayerTagsSuccessResponse", ""]);
|
|
2910
3504
|
return [2, body];
|
|
2911
|
-
case
|
|
2912
|
-
|
|
2913
|
-
|
|
3505
|
+
case 10:
|
|
3506
|
+
_w = exception_1.ApiException.bind;
|
|
3507
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2914
3508
|
return [4, response.getBodyAsAny()];
|
|
2915
|
-
case
|
|
3509
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
2916
3510
|
}
|
|
2917
3511
|
});
|
|
2918
3512
|
});
|
|
2919
3513
|
};
|
|
2920
3514
|
DefaultApiResponseProcessor.prototype.updateSubscription = function (response) {
|
|
2921
3515
|
return __awaiter(this, void 0, void 0, function () {
|
|
2922
|
-
var contentType, body, _a, _b, _c, _d, _e, _f;
|
|
2923
|
-
return __generator(this, function (
|
|
2924
|
-
switch (
|
|
3516
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
3517
|
+
return __generator(this, function (_u) {
|
|
3518
|
+
switch (_u.label) {
|
|
2925
3519
|
case 0:
|
|
2926
3520
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2927
3521
|
if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
|
|
2928
3522
|
return [2];
|
|
2929
3523
|
}
|
|
2930
|
-
if (!(
|
|
3524
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
|
|
2931
3525
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2932
3526
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2933
3527
|
return [4, response.body.text()];
|
|
2934
3528
|
case 1:
|
|
2935
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
3529
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
3530
|
+
"GenericError", ""]);
|
|
3531
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
3532
|
+
case 2:
|
|
3533
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
|
|
3534
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3535
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3536
|
+
return [4, response.body.text()];
|
|
3537
|
+
case 3:
|
|
3538
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
3539
|
+
"GenericError", ""]);
|
|
3540
|
+
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
3541
|
+
case 4:
|
|
3542
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 6];
|
|
3543
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3544
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3545
|
+
return [4, response.body.text()];
|
|
3546
|
+
case 5:
|
|
3547
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
3548
|
+
"RateLimiterError", ""]);
|
|
3549
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
3550
|
+
case 6:
|
|
3551
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
3552
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3553
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3554
|
+
return [4, response.body.text()];
|
|
3555
|
+
case 7:
|
|
3556
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2936
3557
|
"void", ""]);
|
|
2937
3558
|
return [2, body];
|
|
2938
|
-
case
|
|
2939
|
-
|
|
2940
|
-
|
|
3559
|
+
case 8:
|
|
3560
|
+
_s = exception_1.ApiException.bind;
|
|
3561
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2941
3562
|
return [4, response.getBodyAsAny()];
|
|
2942
|
-
case
|
|
3563
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2943
3564
|
}
|
|
2944
3565
|
});
|
|
2945
3566
|
});
|
|
2946
3567
|
};
|
|
2947
3568
|
DefaultApiResponseProcessor.prototype.updateUser = function (response) {
|
|
2948
3569
|
return __awaiter(this, void 0, void 0, function () {
|
|
2949
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
2950
|
-
return __generator(this, function (
|
|
2951
|
-
switch (
|
|
3570
|
+
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;
|
|
3571
|
+
return __generator(this, function (_y) {
|
|
3572
|
+
switch (_y.label) {
|
|
2952
3573
|
case 0:
|
|
2953
3574
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2954
3575
|
if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 2];
|
|
@@ -2956,23 +3577,50 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
2956
3577
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2957
3578
|
return [4, response.body.text()];
|
|
2958
3579
|
case 1:
|
|
2959
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
3580
|
+
body = _b.apply(_a, [_d.apply(_c, [_y.sent(), contentType]),
|
|
2960
3581
|
"InlineResponse202", ""]);
|
|
2961
3582
|
return [2, body];
|
|
2962
3583
|
case 2:
|
|
2963
|
-
if (!(
|
|
3584
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
2964
3585
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2965
3586
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2966
3587
|
return [4, response.body.text()];
|
|
2967
3588
|
case 3:
|
|
2968
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
3589
|
+
body = _f.apply(_e, [_h.apply(_g, [_y.sent(), contentType]),
|
|
3590
|
+
"GenericError", ""]);
|
|
3591
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
3592
|
+
case 4:
|
|
3593
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
|
|
3594
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3595
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3596
|
+
return [4, response.body.text()];
|
|
3597
|
+
case 5:
|
|
3598
|
+
body = _k.apply(_j, [_m.apply(_l, [_y.sent(), contentType]),
|
|
3599
|
+
"GenericError", ""]);
|
|
3600
|
+
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
3601
|
+
case 6:
|
|
3602
|
+
if (!(0, util_1.isCodeInRange)("429", response.httpStatusCode)) return [3, 8];
|
|
3603
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3604
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3605
|
+
return [4, response.body.text()];
|
|
3606
|
+
case 7:
|
|
3607
|
+
body = _p.apply(_o, [_r.apply(_q, [_y.sent(), contentType]),
|
|
3608
|
+
"RateLimiterError", ""]);
|
|
3609
|
+
throw new exception_1.ApiException(429, "Rate Limit Exceeded", body, response.headers);
|
|
3610
|
+
case 8:
|
|
3611
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 10];
|
|
3612
|
+
_t = (_s = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
3613
|
+
_v = (_u = ObjectSerializer_1.ObjectSerializer).parse;
|
|
3614
|
+
return [4, response.body.text()];
|
|
3615
|
+
case 9:
|
|
3616
|
+
body = _t.apply(_s, [_v.apply(_u, [_y.sent(), contentType]),
|
|
2969
3617
|
"InlineResponse202", ""]);
|
|
2970
3618
|
return [2, body];
|
|
2971
|
-
case
|
|
2972
|
-
|
|
2973
|
-
|
|
3619
|
+
case 10:
|
|
3620
|
+
_w = exception_1.ApiException.bind;
|
|
3621
|
+
_x = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2974
3622
|
return [4, response.getBodyAsAny()];
|
|
2975
|
-
case
|
|
3623
|
+
case 11: throw new (_w.apply(exception_1.ApiException, _x.concat([_y.sent(), response.headers])))();
|
|
2976
3624
|
}
|
|
2977
3625
|
});
|
|
2978
3626
|
});
|