@onesignal/node-onesignal 1.0.0-beta7 → 1.0.0-beta8
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/.github/workflows/npm_deploy.yml +6 -7
- package/CHANGELOG.md +4 -0
- package/DefaultApi.md +215 -0
- package/README.md +41 -0
- package/apis/DefaultApi.ts +401 -29
- package/dist/apis/DefaultApi.d.ts +9 -0
- package/dist/apis/DefaultApi.js +496 -132
- package/dist/apis/DefaultApi.js.map +1 -1
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/auth.js +1 -1
- package/dist/http/http.d.ts +2 -2
- package/dist/http/http.js +1 -1
- package/dist/models/App.d.ts +5 -1
- package/dist/models/App.js +24 -0
- package/dist/models/App.js.map +1 -1
- package/dist/models/BadRequestError.d.ts +17 -0
- package/dist/models/BadRequestError.js +22 -0
- package/dist/models/BadRequestError.js.map +1 -0
- package/dist/models/BasicNotification.d.ts +1 -1
- package/dist/models/BasicNotificationAllOf.d.ts +1 -1
- package/dist/models/BeginLiveActivityRequest.d.ts +18 -0
- package/dist/models/BeginLiveActivityRequest.js +28 -0
- package/dist/models/BeginLiveActivityRequest.js.map +1 -0
- package/dist/models/Filter.d.ts +1 -1
- package/dist/models/FilterExpressions.d.ts +2 -2
- package/dist/models/GetNotificationRequestBody.d.ts +1 -1
- package/dist/models/Notification.d.ts +1 -1
- package/dist/models/NotificationWithMeta.d.ts +1 -1
- package/dist/models/ObjectSerializer.d.ts +4 -5
- package/dist/models/ObjectSerializer.js +14 -15
- package/dist/models/ObjectSerializer.js.map +1 -1
- package/dist/models/Operator.d.ts +1 -1
- package/dist/models/OutcomeData.d.ts +1 -1
- package/dist/models/UpdateLiveActivityRequest.d.ts +22 -0
- package/dist/models/UpdateLiveActivityRequest.js +40 -0
- package/dist/models/UpdateLiveActivityRequest.js.map +1 -0
- package/dist/models/UpdateLiveActivitySuccessResponse.d.ts +19 -0
- package/dist/models/UpdateLiveActivitySuccessResponse.js +28 -0
- package/dist/models/UpdateLiveActivitySuccessResponse.js.map +1 -0
- package/dist/models/all.d.ts +4 -5
- package/dist/models/all.js +4 -5
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +21 -0
- package/dist/types/ObjectParamAPI.js +9 -0
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +6 -0
- package/dist/types/ObservableAPI.js +128 -56
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +6 -0
- package/dist/types/PromiseAPI.js +12 -0
- package/dist/types/PromiseAPI.js.map +1 -1
- package/models/App.ts +41 -1
- package/models/BadRequestError.ts +31 -0
- package/models/BasicNotification.ts +1 -1
- package/models/BasicNotificationAllOf.ts +1 -1
- package/models/BasicNotificationAllOfAndroidBackgroundLayout.ts +1 -1
- package/models/BeginLiveActivityRequest.ts +38 -0
- 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/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/ExportPlayersRequestBody.ts +1 -1
- package/models/ExportPlayersSuccessResponse.ts +1 -1
- package/models/Filter.ts +1 -1
- package/models/FilterExpressions.ts +1 -1
- package/models/GetNotificationRequestBody.ts +1 -1
- package/models/InvalidIdentifierError.ts +1 -1
- package/models/Notification.ts +1 -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 +1 -1
- package/models/NotificationWithMetaAllOf.ts +1 -1
- package/models/ObjectSerializer.ts +15 -16
- 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/PlayerSlice.ts +1 -1
- package/models/Purchase.ts +1 -1
- package/models/Segment.ts +1 -1
- package/models/SegmentNotificationTarget.ts +1 -1
- package/models/StringMap.ts +1 -1
- package/models/UpdateLiveActivityRequest.ts +62 -0
- package/models/UpdateLiveActivitySuccessResponse.ts +39 -0
- package/models/UpdatePlayerSuccessResponse.ts +1 -1
- package/models/UpdatePlayerTagsRequestBody.ts +1 -1
- package/models/UpdatePlayerTagsSuccessResponse.ts +1 -1
- package/models/all.ts +4 -5
- package/package.json +3 -3
- package/types/ObjectParamAPI.ts +94 -5
- package/types/ObservableAPI.ts +82 -5
- package/types/PromiseAPI.ts +40 -5
package/dist/apis/DefaultApi.js
CHANGED
|
@@ -29,7 +29,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
29
29
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
30
|
function step(op) {
|
|
31
31
|
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (_) try {
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
33
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
34
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
35
|
switch (op[0]) {
|
|
@@ -62,6 +62,52 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
62
62
|
function DefaultApiRequestFactory() {
|
|
63
63
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
64
|
}
|
|
65
|
+
DefaultApiRequestFactory.prototype.beginLiveActivity = function (appId, activityId, beginLiveActivityRequest, _options) {
|
|
66
|
+
var _a, _b, _c;
|
|
67
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
68
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
69
|
+
return __generator(this, function (_d) {
|
|
70
|
+
switch (_d.label) {
|
|
71
|
+
case 0:
|
|
72
|
+
_config = _options || this.configuration;
|
|
73
|
+
if (appId === null || appId === undefined) {
|
|
74
|
+
throw new baseapi_1.RequiredError("DefaultApi", "beginLiveActivity", "appId");
|
|
75
|
+
}
|
|
76
|
+
if (activityId === null || activityId === undefined) {
|
|
77
|
+
throw new baseapi_1.RequiredError("DefaultApi", "beginLiveActivity", "activityId");
|
|
78
|
+
}
|
|
79
|
+
if (beginLiveActivityRequest === null || beginLiveActivityRequest === undefined) {
|
|
80
|
+
throw new baseapi_1.RequiredError("DefaultApi", "beginLiveActivity", "beginLiveActivityRequest");
|
|
81
|
+
}
|
|
82
|
+
localVarPath = '/apps/{app_id}/live_activities/{activity_id}/token'
|
|
83
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
84
|
+
.replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)));
|
|
85
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
86
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
87
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
88
|
+
"application/json"
|
|
89
|
+
]);
|
|
90
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
91
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(beginLiveActivityRequest, "BeginLiveActivityRequest", ""), contentType);
|
|
92
|
+
requestContext.setBody(serializedBody);
|
|
93
|
+
authMethod = _config.authMethods["app_key"];
|
|
94
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
95
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
96
|
+
case 1:
|
|
97
|
+
_d.sent();
|
|
98
|
+
_d.label = 2;
|
|
99
|
+
case 2:
|
|
100
|
+
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);
|
|
101
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
102
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
103
|
+
case 3:
|
|
104
|
+
_d.sent();
|
|
105
|
+
_d.label = 4;
|
|
106
|
+
case 4: return [2, requestContext];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
};
|
|
65
111
|
DefaultApiRequestFactory.prototype.cancelNotification = function (appId, notificationId, _options) {
|
|
66
112
|
var _a, _b, _c;
|
|
67
113
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -330,6 +376,47 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
330
376
|
});
|
|
331
377
|
});
|
|
332
378
|
};
|
|
379
|
+
DefaultApiRequestFactory.prototype.endLiveActivity = function (appId, activityId, subscriptionId, _options) {
|
|
380
|
+
var _a, _b, _c;
|
|
381
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
382
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
383
|
+
return __generator(this, function (_d) {
|
|
384
|
+
switch (_d.label) {
|
|
385
|
+
case 0:
|
|
386
|
+
_config = _options || this.configuration;
|
|
387
|
+
if (appId === null || appId === undefined) {
|
|
388
|
+
throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "appId");
|
|
389
|
+
}
|
|
390
|
+
if (activityId === null || activityId === undefined) {
|
|
391
|
+
throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "activityId");
|
|
392
|
+
}
|
|
393
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
394
|
+
throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "subscriptionId");
|
|
395
|
+
}
|
|
396
|
+
localVarPath = '/apps/{app_id}/live_activities/{activity_id}/token/{subscription_id}'
|
|
397
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
398
|
+
.replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)))
|
|
399
|
+
.replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
|
|
400
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
401
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
402
|
+
authMethod = _config.authMethods["app_key"];
|
|
403
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
404
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
405
|
+
case 1:
|
|
406
|
+
_d.sent();
|
|
407
|
+
_d.label = 2;
|
|
408
|
+
case 2:
|
|
409
|
+
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);
|
|
410
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
411
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
412
|
+
case 3:
|
|
413
|
+
_d.sent();
|
|
414
|
+
_d.label = 4;
|
|
415
|
+
case 4: return [2, requestContext];
|
|
416
|
+
}
|
|
417
|
+
});
|
|
418
|
+
});
|
|
419
|
+
};
|
|
333
420
|
DefaultApiRequestFactory.prototype.exportPlayers = function (appId, exportPlayersRequestBody, _options) {
|
|
334
421
|
var _a, _b, _c;
|
|
335
422
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -732,6 +819,52 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
732
819
|
});
|
|
733
820
|
});
|
|
734
821
|
};
|
|
822
|
+
DefaultApiRequestFactory.prototype.updateLiveActivity = function (appId, activityId, updateLiveActivityRequest, _options) {
|
|
823
|
+
var _a, _b, _c;
|
|
824
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
825
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
826
|
+
return __generator(this, function (_d) {
|
|
827
|
+
switch (_d.label) {
|
|
828
|
+
case 0:
|
|
829
|
+
_config = _options || this.configuration;
|
|
830
|
+
if (appId === null || appId === undefined) {
|
|
831
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updateLiveActivity", "appId");
|
|
832
|
+
}
|
|
833
|
+
if (activityId === null || activityId === undefined) {
|
|
834
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updateLiveActivity", "activityId");
|
|
835
|
+
}
|
|
836
|
+
if (updateLiveActivityRequest === null || updateLiveActivityRequest === undefined) {
|
|
837
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updateLiveActivity", "updateLiveActivityRequest");
|
|
838
|
+
}
|
|
839
|
+
localVarPath = '/apps/{app_id}/live_activities/{activity_id}/notifications'
|
|
840
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
841
|
+
.replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)));
|
|
842
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
843
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
844
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
845
|
+
"application/json"
|
|
846
|
+
]);
|
|
847
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
848
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateLiveActivityRequest, "UpdateLiveActivityRequest", ""), contentType);
|
|
849
|
+
requestContext.setBody(serializedBody);
|
|
850
|
+
authMethod = _config.authMethods["app_key"];
|
|
851
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
852
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
853
|
+
case 1:
|
|
854
|
+
_d.sent();
|
|
855
|
+
_d.label = 2;
|
|
856
|
+
case 2:
|
|
857
|
+
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);
|
|
858
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
859
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
860
|
+
case 3:
|
|
861
|
+
_d.sent();
|
|
862
|
+
_d.label = 4;
|
|
863
|
+
case 4: return [2, requestContext];
|
|
864
|
+
}
|
|
865
|
+
});
|
|
866
|
+
});
|
|
867
|
+
};
|
|
735
868
|
DefaultApiRequestFactory.prototype.updatePlayer = function (playerId, player, _options) {
|
|
736
869
|
var _a, _b, _c;
|
|
737
870
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -823,21 +956,24 @@ exports.DefaultApiRequestFactory = DefaultApiRequestFactory;
|
|
|
823
956
|
var DefaultApiResponseProcessor = (function () {
|
|
824
957
|
function DefaultApiResponseProcessor() {
|
|
825
958
|
}
|
|
826
|
-
DefaultApiResponseProcessor.prototype.
|
|
959
|
+
DefaultApiResponseProcessor.prototype.beginLiveActivity = function (response) {
|
|
827
960
|
return __awaiter(this, void 0, void 0, function () {
|
|
828
961
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
829
962
|
return __generator(this, function (_l) {
|
|
830
963
|
switch (_l.label) {
|
|
831
964
|
case 0:
|
|
832
965
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
833
|
-
if (
|
|
966
|
+
if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
|
|
967
|
+
return [2];
|
|
968
|
+
}
|
|
969
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
|
|
834
970
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
835
971
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
836
972
|
return [4, response.body.text()];
|
|
837
973
|
case 1:
|
|
838
974
|
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
839
|
-
"
|
|
840
|
-
|
|
975
|
+
"BadRequestError", ""]);
|
|
976
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
841
977
|
case 2:
|
|
842
978
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
843
979
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
@@ -845,7 +981,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
845
981
|
return [4, response.body.text()];
|
|
846
982
|
case 3:
|
|
847
983
|
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
848
|
-
"
|
|
984
|
+
"void", ""]);
|
|
849
985
|
return [2, body];
|
|
850
986
|
case 4:
|
|
851
987
|
_j = exception_1.ApiException.bind;
|
|
@@ -856,11 +992,53 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
856
992
|
});
|
|
857
993
|
});
|
|
858
994
|
};
|
|
995
|
+
DefaultApiResponseProcessor.prototype.cancelNotification = function (response) {
|
|
996
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
997
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
998
|
+
return __generator(this, function (_q) {
|
|
999
|
+
switch (_q.label) {
|
|
1000
|
+
case 0:
|
|
1001
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1002
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1003
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1004
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1005
|
+
return [4, response.body.text()];
|
|
1006
|
+
case 1:
|
|
1007
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1008
|
+
"CancelNotificationSuccessResponse", ""]);
|
|
1009
|
+
return [2, body];
|
|
1010
|
+
case 2:
|
|
1011
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1012
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1013
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1014
|
+
return [4, response.body.text()];
|
|
1015
|
+
case 3:
|
|
1016
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1017
|
+
"BadRequestError", ""]);
|
|
1018
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1019
|
+
case 4:
|
|
1020
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1021
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1022
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1023
|
+
return [4, response.body.text()];
|
|
1024
|
+
case 5:
|
|
1025
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1026
|
+
"CancelNotificationSuccessResponse", ""]);
|
|
1027
|
+
return [2, body];
|
|
1028
|
+
case 6:
|
|
1029
|
+
_o = exception_1.ApiException.bind;
|
|
1030
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1031
|
+
return [4, response.getBodyAsAny()];
|
|
1032
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1033
|
+
}
|
|
1034
|
+
});
|
|
1035
|
+
});
|
|
1036
|
+
};
|
|
859
1037
|
DefaultApiResponseProcessor.prototype.createApp = function (response) {
|
|
860
1038
|
return __awaiter(this, void 0, void 0, function () {
|
|
861
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
862
|
-
return __generator(this, function (
|
|
863
|
-
switch (
|
|
1039
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1040
|
+
return __generator(this, function (_q) {
|
|
1041
|
+
switch (_q.label) {
|
|
864
1042
|
case 0:
|
|
865
1043
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
866
1044
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -868,23 +1046,32 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
868
1046
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
869
1047
|
return [4, response.body.text()];
|
|
870
1048
|
case 1:
|
|
871
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1049
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
872
1050
|
"App", ""]);
|
|
873
1051
|
return [2, body];
|
|
874
1052
|
case 2:
|
|
875
|
-
if (!(
|
|
1053
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
876
1054
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
877
1055
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
878
1056
|
return [4, response.body.text()];
|
|
879
1057
|
case 3:
|
|
880
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1058
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1059
|
+
"BadRequestError", ""]);
|
|
1060
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1061
|
+
case 4:
|
|
1062
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1063
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1064
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1065
|
+
return [4, response.body.text()];
|
|
1066
|
+
case 5:
|
|
1067
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
881
1068
|
"App", ""]);
|
|
882
1069
|
return [2, body];
|
|
883
|
-
case
|
|
884
|
-
|
|
885
|
-
|
|
1070
|
+
case 6:
|
|
1071
|
+
_o = exception_1.ApiException.bind;
|
|
1072
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
886
1073
|
return [4, response.getBodyAsAny()];
|
|
887
|
-
case
|
|
1074
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
888
1075
|
}
|
|
889
1076
|
});
|
|
890
1077
|
});
|
|
@@ -911,7 +1098,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
911
1098
|
return [4, response.body.text()];
|
|
912
1099
|
case 3:
|
|
913
1100
|
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
914
|
-
"
|
|
1101
|
+
"BadRequestError", ""]);
|
|
915
1102
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
916
1103
|
case 4:
|
|
917
1104
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
@@ -933,9 +1120,9 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
933
1120
|
};
|
|
934
1121
|
DefaultApiResponseProcessor.prototype.createPlayer = function (response) {
|
|
935
1122
|
return __awaiter(this, void 0, void 0, function () {
|
|
936
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
937
|
-
return __generator(this, function (
|
|
938
|
-
switch (
|
|
1123
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1124
|
+
return __generator(this, function (_q) {
|
|
1125
|
+
switch (_q.label) {
|
|
939
1126
|
case 0:
|
|
940
1127
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
941
1128
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -943,23 +1130,32 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
943
1130
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
944
1131
|
return [4, response.body.text()];
|
|
945
1132
|
case 1:
|
|
946
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1133
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
947
1134
|
"CreatePlayerSuccessResponse", ""]);
|
|
948
1135
|
return [2, body];
|
|
949
1136
|
case 2:
|
|
950
|
-
if (!(
|
|
1137
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
951
1138
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
952
1139
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
953
1140
|
return [4, response.body.text()];
|
|
954
1141
|
case 3:
|
|
955
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1142
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1143
|
+
"BadRequestError", ""]);
|
|
1144
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1145
|
+
case 4:
|
|
1146
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1147
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1148
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1149
|
+
return [4, response.body.text()];
|
|
1150
|
+
case 5:
|
|
1151
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
956
1152
|
"CreatePlayerSuccessResponse", ""]);
|
|
957
1153
|
return [2, body];
|
|
958
|
-
case
|
|
959
|
-
|
|
960
|
-
|
|
1154
|
+
case 6:
|
|
1155
|
+
_o = exception_1.ApiException.bind;
|
|
1156
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
961
1157
|
return [4, response.getBodyAsAny()];
|
|
962
|
-
case
|
|
1158
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
963
1159
|
}
|
|
964
1160
|
});
|
|
965
1161
|
});
|
|
@@ -986,7 +1182,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
986
1182
|
return [4, response.body.text()];
|
|
987
1183
|
case 3:
|
|
988
1184
|
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
989
|
-
"
|
|
1185
|
+
"BadRequestError", ""]);
|
|
990
1186
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
991
1187
|
case 4:
|
|
992
1188
|
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
|
|
@@ -1037,7 +1233,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1037
1233
|
return [4, response.body.text()];
|
|
1038
1234
|
case 3:
|
|
1039
1235
|
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
1040
|
-
"
|
|
1236
|
+
"BadRequestError", ""]);
|
|
1041
1237
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1042
1238
|
case 4:
|
|
1043
1239
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
@@ -1088,7 +1284,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1088
1284
|
return [4, response.body.text()];
|
|
1089
1285
|
case 3:
|
|
1090
1286
|
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
1091
|
-
"
|
|
1287
|
+
"BadRequestError", ""]);
|
|
1092
1288
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1093
1289
|
case 4:
|
|
1094
1290
|
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
@@ -1117,6 +1313,42 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1117
1313
|
});
|
|
1118
1314
|
});
|
|
1119
1315
|
};
|
|
1316
|
+
DefaultApiResponseProcessor.prototype.endLiveActivity = function (response) {
|
|
1317
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1318
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1319
|
+
return __generator(this, function (_l) {
|
|
1320
|
+
switch (_l.label) {
|
|
1321
|
+
case 0:
|
|
1322
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1323
|
+
if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
|
|
1324
|
+
return [2];
|
|
1325
|
+
}
|
|
1326
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
|
|
1327
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1328
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1329
|
+
return [4, response.body.text()];
|
|
1330
|
+
case 1:
|
|
1331
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1332
|
+
"BadRequestError", ""]);
|
|
1333
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1334
|
+
case 2:
|
|
1335
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
1336
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1337
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1338
|
+
return [4, response.body.text()];
|
|
1339
|
+
case 3:
|
|
1340
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
1341
|
+
"void", ""]);
|
|
1342
|
+
return [2, body];
|
|
1343
|
+
case 4:
|
|
1344
|
+
_j = exception_1.ApiException.bind;
|
|
1345
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1346
|
+
return [4, response.getBodyAsAny()];
|
|
1347
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
1348
|
+
}
|
|
1349
|
+
});
|
|
1350
|
+
});
|
|
1351
|
+
};
|
|
1120
1352
|
DefaultApiResponseProcessor.prototype.exportPlayers = function (response) {
|
|
1121
1353
|
return __awaiter(this, void 0, void 0, function () {
|
|
1122
1354
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
@@ -1139,7 +1371,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1139
1371
|
return [4, response.body.text()];
|
|
1140
1372
|
case 3:
|
|
1141
1373
|
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1142
|
-
"
|
|
1374
|
+
"BadRequestError", ""]);
|
|
1143
1375
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1144
1376
|
case 4:
|
|
1145
1377
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
@@ -1161,9 +1393,9 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1161
1393
|
};
|
|
1162
1394
|
DefaultApiResponseProcessor.prototype.getApp = function (response) {
|
|
1163
1395
|
return __awaiter(this, void 0, void 0, function () {
|
|
1164
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1165
|
-
return __generator(this, function (
|
|
1166
|
-
switch (
|
|
1396
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1397
|
+
return __generator(this, function (_q) {
|
|
1398
|
+
switch (_q.label) {
|
|
1167
1399
|
case 0:
|
|
1168
1400
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1169
1401
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1171,32 +1403,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1171
1403
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1172
1404
|
return [4, response.body.text()];
|
|
1173
1405
|
case 1:
|
|
1174
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1406
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1175
1407
|
"App", ""]);
|
|
1176
1408
|
return [2, body];
|
|
1177
1409
|
case 2:
|
|
1178
|
-
if (!(
|
|
1410
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1179
1411
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1180
1412
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1181
1413
|
return [4, response.body.text()];
|
|
1182
1414
|
case 3:
|
|
1183
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1184
|
-
"
|
|
1185
|
-
|
|
1415
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1416
|
+
"BadRequestError", ""]);
|
|
1417
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1186
1418
|
case 4:
|
|
1187
|
-
|
|
1188
|
-
_k =
|
|
1419
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1420
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1421
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1422
|
+
return [4, response.body.text()];
|
|
1423
|
+
case 5:
|
|
1424
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1425
|
+
"App", ""]);
|
|
1426
|
+
return [2, body];
|
|
1427
|
+
case 6:
|
|
1428
|
+
_o = exception_1.ApiException.bind;
|
|
1429
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1189
1430
|
return [4, response.getBodyAsAny()];
|
|
1190
|
-
case
|
|
1431
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1191
1432
|
}
|
|
1192
1433
|
});
|
|
1193
1434
|
});
|
|
1194
1435
|
};
|
|
1195
1436
|
DefaultApiResponseProcessor.prototype.getApps = function (response) {
|
|
1196
1437
|
return __awaiter(this, void 0, void 0, function () {
|
|
1197
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1198
|
-
return __generator(this, function (
|
|
1199
|
-
switch (
|
|
1438
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1439
|
+
return __generator(this, function (_q) {
|
|
1440
|
+
switch (_q.label) {
|
|
1200
1441
|
case 0:
|
|
1201
1442
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1202
1443
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1204,32 +1445,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1204
1445
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1205
1446
|
return [4, response.body.text()];
|
|
1206
1447
|
case 1:
|
|
1207
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1448
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1208
1449
|
"Array<App>", ""]);
|
|
1209
1450
|
return [2, body];
|
|
1210
1451
|
case 2:
|
|
1211
|
-
if (!(
|
|
1452
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1212
1453
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1213
1454
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1214
1455
|
return [4, response.body.text()];
|
|
1215
1456
|
case 3:
|
|
1216
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1457
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1458
|
+
"BadRequestError", ""]);
|
|
1459
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1460
|
+
case 4:
|
|
1461
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1462
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1463
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1464
|
+
return [4, response.body.text()];
|
|
1465
|
+
case 5:
|
|
1466
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1217
1467
|
"Array<App>", ""]);
|
|
1218
1468
|
return [2, body];
|
|
1219
|
-
case
|
|
1220
|
-
|
|
1221
|
-
|
|
1469
|
+
case 6:
|
|
1470
|
+
_o = exception_1.ApiException.bind;
|
|
1471
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1222
1472
|
return [4, response.getBodyAsAny()];
|
|
1223
|
-
case
|
|
1473
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1224
1474
|
}
|
|
1225
1475
|
});
|
|
1226
1476
|
});
|
|
1227
1477
|
};
|
|
1228
1478
|
DefaultApiResponseProcessor.prototype.getNotification = function (response) {
|
|
1229
1479
|
return __awaiter(this, void 0, void 0, function () {
|
|
1230
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1231
|
-
return __generator(this, function (
|
|
1232
|
-
switch (
|
|
1480
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1481
|
+
return __generator(this, function (_q) {
|
|
1482
|
+
switch (_q.label) {
|
|
1233
1483
|
case 0:
|
|
1234
1484
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1235
1485
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1237,23 +1487,32 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1237
1487
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1238
1488
|
return [4, response.body.text()];
|
|
1239
1489
|
case 1:
|
|
1240
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1490
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1241
1491
|
"NotificationWithMeta", ""]);
|
|
1242
1492
|
return [2, body];
|
|
1243
1493
|
case 2:
|
|
1244
|
-
if (!(
|
|
1494
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1245
1495
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1246
1496
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1247
1497
|
return [4, response.body.text()];
|
|
1248
1498
|
case 3:
|
|
1249
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1499
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1500
|
+
"BadRequestError", ""]);
|
|
1501
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1502
|
+
case 4:
|
|
1503
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1504
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1505
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1506
|
+
return [4, response.body.text()];
|
|
1507
|
+
case 5:
|
|
1508
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1250
1509
|
"NotificationWithMeta", ""]);
|
|
1251
1510
|
return [2, body];
|
|
1252
|
-
case
|
|
1253
|
-
|
|
1254
|
-
|
|
1511
|
+
case 6:
|
|
1512
|
+
_o = exception_1.ApiException.bind;
|
|
1513
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1255
1514
|
return [4, response.getBodyAsAny()];
|
|
1256
|
-
case
|
|
1515
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1257
1516
|
}
|
|
1258
1517
|
});
|
|
1259
1518
|
});
|
|
@@ -1280,7 +1539,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1280
1539
|
return [4, response.body.text()];
|
|
1281
1540
|
case 3:
|
|
1282
1541
|
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1283
|
-
"
|
|
1542
|
+
"BadRequestError", ""]);
|
|
1284
1543
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1285
1544
|
case 4:
|
|
1286
1545
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
@@ -1302,9 +1561,9 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1302
1561
|
};
|
|
1303
1562
|
DefaultApiResponseProcessor.prototype.getNotifications = function (response) {
|
|
1304
1563
|
return __awaiter(this, void 0, void 0, function () {
|
|
1305
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1306
|
-
return __generator(this, function (
|
|
1307
|
-
switch (
|
|
1564
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1565
|
+
return __generator(this, function (_q) {
|
|
1566
|
+
switch (_q.label) {
|
|
1308
1567
|
case 0:
|
|
1309
1568
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1310
1569
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1312,32 +1571,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1312
1571
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1313
1572
|
return [4, response.body.text()];
|
|
1314
1573
|
case 1:
|
|
1315
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1574
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1316
1575
|
"NotificationSlice", ""]);
|
|
1317
1576
|
return [2, body];
|
|
1318
1577
|
case 2:
|
|
1319
|
-
if (!(
|
|
1578
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1320
1579
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1321
1580
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1322
1581
|
return [4, response.body.text()];
|
|
1323
1582
|
case 3:
|
|
1324
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1583
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1584
|
+
"BadRequestError", ""]);
|
|
1585
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1586
|
+
case 4:
|
|
1587
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1588
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1589
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1590
|
+
return [4, response.body.text()];
|
|
1591
|
+
case 5:
|
|
1592
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1325
1593
|
"NotificationSlice", ""]);
|
|
1326
1594
|
return [2, body];
|
|
1327
|
-
case
|
|
1328
|
-
|
|
1329
|
-
|
|
1595
|
+
case 6:
|
|
1596
|
+
_o = exception_1.ApiException.bind;
|
|
1597
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1330
1598
|
return [4, response.getBodyAsAny()];
|
|
1331
|
-
case
|
|
1599
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1332
1600
|
}
|
|
1333
1601
|
});
|
|
1334
1602
|
});
|
|
1335
1603
|
};
|
|
1336
1604
|
DefaultApiResponseProcessor.prototype.getOutcomes = function (response) {
|
|
1337
1605
|
return __awaiter(this, void 0, void 0, function () {
|
|
1338
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1339
|
-
return __generator(this, function (
|
|
1340
|
-
switch (
|
|
1606
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1607
|
+
return __generator(this, function (_q) {
|
|
1608
|
+
switch (_q.label) {
|
|
1341
1609
|
case 0:
|
|
1342
1610
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1343
1611
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1345,32 +1613,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1345
1613
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1346
1614
|
return [4, response.body.text()];
|
|
1347
1615
|
case 1:
|
|
1348
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1616
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1349
1617
|
"OutcomesData", ""]);
|
|
1350
1618
|
return [2, body];
|
|
1351
1619
|
case 2:
|
|
1352
|
-
if (!(
|
|
1620
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1353
1621
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1354
1622
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1355
1623
|
return [4, response.body.text()];
|
|
1356
1624
|
case 3:
|
|
1357
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1625
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1626
|
+
"BadRequestError", ""]);
|
|
1627
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1628
|
+
case 4:
|
|
1629
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1630
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1631
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1632
|
+
return [4, response.body.text()];
|
|
1633
|
+
case 5:
|
|
1634
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1358
1635
|
"OutcomesData", ""]);
|
|
1359
1636
|
return [2, body];
|
|
1360
|
-
case
|
|
1361
|
-
|
|
1362
|
-
|
|
1637
|
+
case 6:
|
|
1638
|
+
_o = exception_1.ApiException.bind;
|
|
1639
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1363
1640
|
return [4, response.getBodyAsAny()];
|
|
1364
|
-
case
|
|
1641
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1365
1642
|
}
|
|
1366
1643
|
});
|
|
1367
1644
|
});
|
|
1368
1645
|
};
|
|
1369
1646
|
DefaultApiResponseProcessor.prototype.getPlayer = function (response) {
|
|
1370
1647
|
return __awaiter(this, void 0, void 0, function () {
|
|
1371
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1372
|
-
return __generator(this, function (
|
|
1373
|
-
switch (
|
|
1648
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1649
|
+
return __generator(this, function (_q) {
|
|
1650
|
+
switch (_q.label) {
|
|
1374
1651
|
case 0:
|
|
1375
1652
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1376
1653
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1378,32 +1655,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1378
1655
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1379
1656
|
return [4, response.body.text()];
|
|
1380
1657
|
case 1:
|
|
1381
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1658
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1382
1659
|
"Player", ""]);
|
|
1383
1660
|
return [2, body];
|
|
1384
1661
|
case 2:
|
|
1385
|
-
if (!(
|
|
1662
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1386
1663
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1387
1664
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1388
1665
|
return [4, response.body.text()];
|
|
1389
1666
|
case 3:
|
|
1390
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1667
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1668
|
+
"BadRequestError", ""]);
|
|
1669
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1670
|
+
case 4:
|
|
1671
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1672
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1673
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1674
|
+
return [4, response.body.text()];
|
|
1675
|
+
case 5:
|
|
1676
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1391
1677
|
"Player", ""]);
|
|
1392
1678
|
return [2, body];
|
|
1393
|
-
case
|
|
1394
|
-
|
|
1395
|
-
|
|
1679
|
+
case 6:
|
|
1680
|
+
_o = exception_1.ApiException.bind;
|
|
1681
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1396
1682
|
return [4, response.getBodyAsAny()];
|
|
1397
|
-
case
|
|
1683
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1398
1684
|
}
|
|
1399
1685
|
});
|
|
1400
1686
|
});
|
|
1401
1687
|
};
|
|
1402
1688
|
DefaultApiResponseProcessor.prototype.getPlayers = function (response) {
|
|
1403
1689
|
return __awaiter(this, void 0, void 0, function () {
|
|
1404
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1405
|
-
return __generator(this, function (
|
|
1406
|
-
switch (
|
|
1690
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1691
|
+
return __generator(this, function (_q) {
|
|
1692
|
+
switch (_q.label) {
|
|
1407
1693
|
case 0:
|
|
1408
1694
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1409
1695
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1411,32 +1697,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1411
1697
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1412
1698
|
return [4, response.body.text()];
|
|
1413
1699
|
case 1:
|
|
1414
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1700
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1415
1701
|
"PlayerSlice", ""]);
|
|
1416
1702
|
return [2, body];
|
|
1417
1703
|
case 2:
|
|
1418
|
-
if (!(
|
|
1704
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1419
1705
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1420
1706
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1421
1707
|
return [4, response.body.text()];
|
|
1422
1708
|
case 3:
|
|
1423
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1709
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1710
|
+
"BadRequestError", ""]);
|
|
1711
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1712
|
+
case 4:
|
|
1713
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1714
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1715
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1716
|
+
return [4, response.body.text()];
|
|
1717
|
+
case 5:
|
|
1718
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1424
1719
|
"PlayerSlice", ""]);
|
|
1425
1720
|
return [2, body];
|
|
1426
|
-
case
|
|
1427
|
-
|
|
1428
|
-
|
|
1721
|
+
case 6:
|
|
1722
|
+
_o = exception_1.ApiException.bind;
|
|
1723
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1429
1724
|
return [4, response.getBodyAsAny()];
|
|
1430
|
-
case
|
|
1725
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1431
1726
|
}
|
|
1432
1727
|
});
|
|
1433
1728
|
});
|
|
1434
1729
|
};
|
|
1435
1730
|
DefaultApiResponseProcessor.prototype.updateApp = function (response) {
|
|
1436
1731
|
return __awaiter(this, void 0, void 0, function () {
|
|
1437
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1438
|
-
return __generator(this, function (
|
|
1439
|
-
switch (
|
|
1732
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1733
|
+
return __generator(this, function (_q) {
|
|
1734
|
+
switch (_q.label) {
|
|
1440
1735
|
case 0:
|
|
1441
1736
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1442
1737
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1444,32 +1739,83 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1444
1739
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1445
1740
|
return [4, response.body.text()];
|
|
1446
1741
|
case 1:
|
|
1447
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1742
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1448
1743
|
"App", ""]);
|
|
1449
1744
|
return [2, body];
|
|
1450
1745
|
case 2:
|
|
1451
|
-
if (!(
|
|
1746
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1452
1747
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1453
1748
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1454
1749
|
return [4, response.body.text()];
|
|
1455
1750
|
case 3:
|
|
1456
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1751
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1752
|
+
"BadRequestError", ""]);
|
|
1753
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1754
|
+
case 4:
|
|
1755
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1756
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1757
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1758
|
+
return [4, response.body.text()];
|
|
1759
|
+
case 5:
|
|
1760
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1457
1761
|
"App", ""]);
|
|
1458
1762
|
return [2, body];
|
|
1763
|
+
case 6:
|
|
1764
|
+
_o = exception_1.ApiException.bind;
|
|
1765
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1766
|
+
return [4, response.getBodyAsAny()];
|
|
1767
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1768
|
+
}
|
|
1769
|
+
});
|
|
1770
|
+
});
|
|
1771
|
+
};
|
|
1772
|
+
DefaultApiResponseProcessor.prototype.updateLiveActivity = function (response) {
|
|
1773
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1774
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1775
|
+
return __generator(this, function (_q) {
|
|
1776
|
+
switch (_q.label) {
|
|
1777
|
+
case 0:
|
|
1778
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1779
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1780
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1781
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1782
|
+
return [4, response.body.text()];
|
|
1783
|
+
case 1:
|
|
1784
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1785
|
+
"UpdateLiveActivitySuccessResponse", ""]);
|
|
1786
|
+
return [2, body];
|
|
1787
|
+
case 2:
|
|
1788
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1789
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1790
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1791
|
+
return [4, response.body.text()];
|
|
1792
|
+
case 3:
|
|
1793
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1794
|
+
"BadRequestError", ""]);
|
|
1795
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1459
1796
|
case 4:
|
|
1460
|
-
|
|
1461
|
-
_k =
|
|
1797
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1798
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1799
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1800
|
+
return [4, response.body.text()];
|
|
1801
|
+
case 5:
|
|
1802
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1803
|
+
"UpdateLiveActivitySuccessResponse", ""]);
|
|
1804
|
+
return [2, body];
|
|
1805
|
+
case 6:
|
|
1806
|
+
_o = exception_1.ApiException.bind;
|
|
1807
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1462
1808
|
return [4, response.getBodyAsAny()];
|
|
1463
|
-
case
|
|
1809
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1464
1810
|
}
|
|
1465
1811
|
});
|
|
1466
1812
|
});
|
|
1467
1813
|
};
|
|
1468
1814
|
DefaultApiResponseProcessor.prototype.updatePlayer = function (response) {
|
|
1469
1815
|
return __awaiter(this, void 0, void 0, function () {
|
|
1470
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1471
|
-
return __generator(this, function (
|
|
1472
|
-
switch (
|
|
1816
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1817
|
+
return __generator(this, function (_q) {
|
|
1818
|
+
switch (_q.label) {
|
|
1473
1819
|
case 0:
|
|
1474
1820
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1475
1821
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1477,32 +1823,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1477
1823
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1478
1824
|
return [4, response.body.text()];
|
|
1479
1825
|
case 1:
|
|
1480
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1826
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1481
1827
|
"UpdatePlayerSuccessResponse", ""]);
|
|
1482
1828
|
return [2, body];
|
|
1483
1829
|
case 2:
|
|
1484
|
-
if (!(
|
|
1830
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1485
1831
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1486
1832
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1487
1833
|
return [4, response.body.text()];
|
|
1488
1834
|
case 3:
|
|
1489
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1835
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1836
|
+
"BadRequestError", ""]);
|
|
1837
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1838
|
+
case 4:
|
|
1839
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1840
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1841
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1842
|
+
return [4, response.body.text()];
|
|
1843
|
+
case 5:
|
|
1844
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1490
1845
|
"UpdatePlayerSuccessResponse", ""]);
|
|
1491
1846
|
return [2, body];
|
|
1492
|
-
case
|
|
1493
|
-
|
|
1494
|
-
|
|
1847
|
+
case 6:
|
|
1848
|
+
_o = exception_1.ApiException.bind;
|
|
1849
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1495
1850
|
return [4, response.getBodyAsAny()];
|
|
1496
|
-
case
|
|
1851
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1497
1852
|
}
|
|
1498
1853
|
});
|
|
1499
1854
|
});
|
|
1500
1855
|
};
|
|
1501
1856
|
DefaultApiResponseProcessor.prototype.updatePlayerTags = function (response) {
|
|
1502
1857
|
return __awaiter(this, void 0, void 0, function () {
|
|
1503
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1504
|
-
return __generator(this, function (
|
|
1505
|
-
switch (
|
|
1858
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1859
|
+
return __generator(this, function (_q) {
|
|
1860
|
+
switch (_q.label) {
|
|
1506
1861
|
case 0:
|
|
1507
1862
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1508
1863
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1510,23 +1865,32 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1510
1865
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1511
1866
|
return [4, response.body.text()];
|
|
1512
1867
|
case 1:
|
|
1513
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1868
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1514
1869
|
"UpdatePlayerTagsSuccessResponse", ""]);
|
|
1515
1870
|
return [2, body];
|
|
1516
1871
|
case 2:
|
|
1517
|
-
if (!(
|
|
1872
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1518
1873
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1519
1874
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1520
1875
|
return [4, response.body.text()];
|
|
1521
1876
|
case 3:
|
|
1522
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1877
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1878
|
+
"BadRequestError", ""]);
|
|
1879
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1880
|
+
case 4:
|
|
1881
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1882
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1883
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1884
|
+
return [4, response.body.text()];
|
|
1885
|
+
case 5:
|
|
1886
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1523
1887
|
"UpdatePlayerTagsSuccessResponse", ""]);
|
|
1524
1888
|
return [2, body];
|
|
1525
|
-
case
|
|
1526
|
-
|
|
1527
|
-
|
|
1889
|
+
case 6:
|
|
1890
|
+
_o = exception_1.ApiException.bind;
|
|
1891
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1528
1892
|
return [4, response.getBodyAsAny()];
|
|
1529
|
-
case
|
|
1893
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1530
1894
|
}
|
|
1531
1895
|
});
|
|
1532
1896
|
});
|