@onesignal/node-onesignal 1.0.0-beta7 → 1.0.0-beta9
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/Zapier.yml +29 -0
- package/.github/workflows/npm_deploy.yml +6 -7
- package/CHANGELOG.md +19 -0
- package/DefaultApi.md +1365 -164
- package/README.md +189 -0
- package/apis/DefaultApi.ts +2041 -423
- package/dist/apis/DefaultApi.d.ts +48 -0
- package/dist/apis/DefaultApi.js +1861 -414
- 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 +5 -1
- package/dist/models/BasicNotification.js +12 -0
- package/dist/models/BasicNotification.js.map +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/CreateSubscriptionRequestBody.d.ts +19 -0
- package/dist/models/CreateSubscriptionRequestBody.js +28 -0
- package/dist/models/CreateSubscriptionRequestBody.js.map +1 -0
- package/dist/models/CreateUserConflictResponse.d.ts +18 -0
- package/dist/models/CreateUserConflictResponse.js +22 -0
- package/dist/models/CreateUserConflictResponse.js.map +1 -0
- package/dist/models/CreateUserConflictResponseErrorsInner.d.ts +20 -0
- package/dist/models/CreateUserConflictResponseErrorsInner.js +34 -0
- package/dist/models/CreateUserConflictResponseErrorsInner.js.map +1 -0
- package/dist/models/CreateUserConflictResponseErrorsItemsMeta.d.ts +17 -0
- package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js +22 -0
- package/dist/models/CreateUserConflictResponseErrorsItemsMeta.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/IdentifyUserConflictResponse.d.ts +18 -0
- package/dist/models/IdentifyUserConflictResponse.js +22 -0
- package/dist/models/IdentifyUserConflictResponse.js.map +1 -0
- package/dist/models/IdentifyUserConflictResponseErrorsInner.d.ts +18 -0
- package/dist/models/IdentifyUserConflictResponseErrorsInner.js +28 -0
- package/dist/models/IdentifyUserConflictResponseErrorsInner.js.map +1 -0
- package/dist/models/InlineResponse200.d.ts +19 -0
- package/dist/models/InlineResponse200.js +22 -0
- package/dist/models/InlineResponse200.js.map +1 -0
- package/dist/models/InlineResponse2003.d.ts +17 -0
- package/dist/models/InlineResponse2003.js +22 -0
- package/dist/models/InlineResponse2003.js.map +1 -0
- package/dist/models/InlineResponse201.d.ts +18 -0
- package/dist/models/InlineResponse201.js +22 -0
- package/dist/models/InlineResponse201.js.map +1 -0
- package/dist/models/InlineResponse202.d.ts +18 -0
- package/dist/models/InlineResponse202.js +22 -0
- package/dist/models/InlineResponse202.js.map +1 -0
- package/dist/models/Notification.d.ts +5 -1
- package/dist/models/Notification.js +12 -0
- package/dist/models/Notification.js.map +1 -1
- package/dist/models/NotificationTarget.d.ts +4 -0
- package/dist/models/NotificationTarget.js +12 -0
- package/dist/models/NotificationTarget.js.map +1 -1
- package/dist/models/NotificationWithMeta.d.ts +5 -1
- package/dist/models/NotificationWithMeta.js +12 -0
- package/dist/models/NotificationWithMeta.js.map +1 -1
- package/dist/models/ObjectSerializer.d.ts +25 -5
- package/dist/models/ObjectSerializer.js +83 -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/Player.d.ts +1 -1
- package/dist/models/Player.js +1 -1
- package/dist/models/Player.js.map +1 -1
- package/dist/models/PlayerNotificationTarget.d.ts +4 -0
- package/dist/models/PlayerNotificationTarget.js +12 -0
- package/dist/models/PlayerNotificationTarget.js.map +1 -1
- package/dist/models/PlayerNotificationTargetIncludeAliases.d.ts +17 -0
- package/dist/models/PlayerNotificationTargetIncludeAliases.js +22 -0
- package/dist/models/PlayerNotificationTargetIncludeAliases.js.map +1 -0
- package/dist/models/PropertiesDeltas.d.ts +21 -0
- package/dist/models/PropertiesDeltas.js +40 -0
- package/dist/models/PropertiesDeltas.js.map +1 -0
- package/dist/models/PropertiesObject.d.ts +30 -0
- package/dist/models/PropertiesObject.js +82 -0
- package/dist/models/PropertiesObject.js.map +1 -0
- package/dist/models/Purchase.d.ts +1 -1
- package/dist/models/Purchase.js +1 -1
- package/dist/models/SubscriptionObject.d.ts +34 -0
- package/dist/models/SubscriptionObject.js +118 -0
- package/dist/models/SubscriptionObject.js.map +1 -0
- package/dist/models/TransferSubscriptionRequestBody.d.ts +19 -0
- package/dist/models/TransferSubscriptionRequestBody.js +22 -0
- package/dist/models/TransferSubscriptionRequestBody.js.map +1 -0
- 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/UpdateSubscriptionRequestBody.d.ts +18 -0
- package/dist/models/UpdateSubscriptionRequestBody.js +22 -0
- package/dist/models/UpdateSubscriptionRequestBody.js.map +1 -0
- package/dist/models/UpdateUserRequest.d.ts +21 -0
- package/dist/models/UpdateUserRequest.js +34 -0
- package/dist/models/UpdateUserRequest.js.map +1 -0
- package/dist/models/User.d.ts +25 -0
- package/dist/models/User.js +40 -0
- package/dist/models/User.js.map +1 -0
- package/dist/models/UserIdentityRequestBody.d.ts +19 -0
- package/dist/models/UserIdentityRequestBody.js +22 -0
- package/dist/models/UserIdentityRequestBody.js.map +1 -0
- package/dist/models/UserIdentityResponse.d.ts +19 -0
- package/dist/models/UserIdentityResponse.js +22 -0
- package/dist/models/UserIdentityResponse.js.map +1 -0
- package/dist/models/UserSubscriptionOptions.d.ts +17 -0
- package/dist/models/UserSubscriptionOptions.js +22 -0
- package/dist/models/UserSubscriptionOptions.js.map +1 -0
- package/dist/models/all.d.ts +25 -5
- package/dist/models/all.js +25 -5
- package/dist/models/all.js.map +1 -1
- package/dist/types/ObjectParamAPI.d.ts +117 -0
- package/dist/types/ObjectParamAPI.js +51 -0
- package/dist/types/ObjectParamAPI.js.map +1 -1
- package/dist/types/ObservableAPI.d.ts +31 -0
- package/dist/types/ObservableAPI.js +464 -56
- package/dist/types/ObservableAPI.js.map +1 -1
- package/dist/types/PromiseAPI.d.ts +31 -0
- package/dist/types/PromiseAPI.js +68 -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 +17 -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/CreateSubscriptionRequestBody.ts +39 -0
- package/models/CreateUserConflictResponse.ts +32 -0
- package/models/CreateUserConflictResponseErrorsInner.ts +46 -0
- package/models/CreateUserConflictResponseErrorsItemsMeta.ts +31 -0
- 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/IdentifyUserConflictResponse.ts +32 -0
- package/models/IdentifyUserConflictResponseErrorsInner.ts +38 -0
- package/models/InlineResponse200.ts +31 -0
- package/models/InlineResponse2003.ts +31 -0
- package/models/InlineResponse201.ts +32 -0
- package/models/InlineResponse202.ts +32 -0
- package/models/InvalidIdentifierError.ts +1 -1
- package/models/Notification.ts +17 -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 +19 -1
- package/models/NotificationWithMeta.ts +17 -1
- package/models/NotificationWithMetaAllOf.ts +1 -1
- package/models/ObjectSerializer.ts +89 -21
- 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 +3 -3
- package/models/PlayerNotificationTarget.ts +19 -1
- package/models/PlayerNotificationTargetIncludeAliases.ts +31 -0
- package/models/PlayerSlice.ts +1 -1
- package/models/PropertiesDeltas.ts +53 -0
- package/models/PropertiesObject.ts +102 -0
- package/models/Purchase.ts +3 -3
- package/models/Segment.ts +1 -1
- package/models/SegmentNotificationTarget.ts +1 -1
- package/models/StringMap.ts +1 -1
- package/models/SubscriptionObject.ts +146 -0
- package/models/TransferSubscriptionRequestBody.ts +31 -0
- 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/UpdateSubscriptionRequestBody.ts +32 -0
- package/models/UpdateUserRequest.ts +47 -0
- package/models/User.ts +55 -0
- package/models/UserIdentityRequestBody.ts +31 -0
- package/models/UserIdentityResponse.ts +31 -0
- package/models/UserSubscriptionOptions.ts +31 -0
- package/models/all.ts +25 -5
- package/package.json +3 -3
- package/types/ObjectParamAPI.ts +527 -5
- package/types/ObservableAPI.ts +454 -5
- package/types/PromiseAPI.ts +216 -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 () {
|
|
@@ -254,27 +300,38 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
254
300
|
});
|
|
255
301
|
});
|
|
256
302
|
};
|
|
257
|
-
DefaultApiRequestFactory.prototype.
|
|
303
|
+
DefaultApiRequestFactory.prototype.createSubscription = function (appId, aliasLabel, aliasId, createSubscriptionRequestBody, _options) {
|
|
258
304
|
var _a, _b, _c;
|
|
259
305
|
return __awaiter(this, void 0, void 0, function () {
|
|
260
|
-
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
306
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
261
307
|
return __generator(this, function (_d) {
|
|
262
308
|
switch (_d.label) {
|
|
263
309
|
case 0:
|
|
264
310
|
_config = _options || this.configuration;
|
|
265
311
|
if (appId === null || appId === undefined) {
|
|
266
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
312
|
+
throw new baseapi_1.RequiredError("DefaultApi", "createSubscription", "appId");
|
|
267
313
|
}
|
|
268
|
-
if (
|
|
269
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
314
|
+
if (aliasLabel === null || aliasLabel === undefined) {
|
|
315
|
+
throw new baseapi_1.RequiredError("DefaultApi", "createSubscription", "aliasLabel");
|
|
270
316
|
}
|
|
271
|
-
|
|
272
|
-
.
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
|
|
317
|
+
if (aliasId === null || aliasId === undefined) {
|
|
318
|
+
throw new baseapi_1.RequiredError("DefaultApi", "createSubscription", "aliasId");
|
|
319
|
+
}
|
|
320
|
+
if (createSubscriptionRequestBody === null || createSubscriptionRequestBody === undefined) {
|
|
321
|
+
throw new baseapi_1.RequiredError("DefaultApi", "createSubscription", "createSubscriptionRequestBody");
|
|
277
322
|
}
|
|
323
|
+
localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/subscriptions'
|
|
324
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
325
|
+
.replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
|
|
326
|
+
.replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
|
|
327
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
328
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
329
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
330
|
+
"application/json"
|
|
331
|
+
]);
|
|
332
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
333
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createSubscriptionRequestBody, "CreateSubscriptionRequestBody", ""), contentType);
|
|
334
|
+
requestContext.setBody(serializedBody);
|
|
278
335
|
authMethod = _config.authMethods["app_key"];
|
|
279
336
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
280
337
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
@@ -293,25 +350,30 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
293
350
|
});
|
|
294
351
|
});
|
|
295
352
|
};
|
|
296
|
-
DefaultApiRequestFactory.prototype.
|
|
353
|
+
DefaultApiRequestFactory.prototype.createUser = function (appId, user, _options) {
|
|
297
354
|
var _a, _b, _c;
|
|
298
355
|
return __awaiter(this, void 0, void 0, function () {
|
|
299
|
-
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
356
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
300
357
|
return __generator(this, function (_d) {
|
|
301
358
|
switch (_d.label) {
|
|
302
359
|
case 0:
|
|
303
360
|
_config = _options || this.configuration;
|
|
304
361
|
if (appId === null || appId === undefined) {
|
|
305
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
362
|
+
throw new baseapi_1.RequiredError("DefaultApi", "createUser", "appId");
|
|
306
363
|
}
|
|
307
|
-
if (
|
|
308
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
364
|
+
if (user === null || user === undefined) {
|
|
365
|
+
throw new baseapi_1.RequiredError("DefaultApi", "createUser", "user");
|
|
309
366
|
}
|
|
310
|
-
localVarPath = '/apps/{app_id}/
|
|
311
|
-
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
312
|
-
|
|
313
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
367
|
+
localVarPath = '/apps/{app_id}/users'
|
|
368
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
|
|
369
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
314
370
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
371
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
372
|
+
"application/json"
|
|
373
|
+
]);
|
|
374
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
375
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(user, "User", ""), contentType);
|
|
376
|
+
requestContext.setBody(serializedBody);
|
|
315
377
|
authMethod = _config.authMethods["app_key"];
|
|
316
378
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
317
379
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
@@ -330,27 +392,33 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
330
392
|
});
|
|
331
393
|
});
|
|
332
394
|
};
|
|
333
|
-
DefaultApiRequestFactory.prototype.
|
|
395
|
+
DefaultApiRequestFactory.prototype.deleteAlias = function (appId, aliasLabel, aliasId, aliasLabelToDelete, _options) {
|
|
334
396
|
var _a, _b, _c;
|
|
335
397
|
return __awaiter(this, void 0, void 0, function () {
|
|
336
|
-
var _config, localVarPath, requestContext,
|
|
398
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
337
399
|
return __generator(this, function (_d) {
|
|
338
400
|
switch (_d.label) {
|
|
339
401
|
case 0:
|
|
340
402
|
_config = _options || this.configuration;
|
|
341
403
|
if (appId === null || appId === undefined) {
|
|
342
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
404
|
+
throw new baseapi_1.RequiredError("DefaultApi", "deleteAlias", "appId");
|
|
343
405
|
}
|
|
344
|
-
|
|
345
|
-
.
|
|
346
|
-
|
|
406
|
+
if (aliasLabel === null || aliasLabel === undefined) {
|
|
407
|
+
throw new baseapi_1.RequiredError("DefaultApi", "deleteAlias", "aliasLabel");
|
|
408
|
+
}
|
|
409
|
+
if (aliasId === null || aliasId === undefined) {
|
|
410
|
+
throw new baseapi_1.RequiredError("DefaultApi", "deleteAlias", "aliasId");
|
|
411
|
+
}
|
|
412
|
+
if (aliasLabelToDelete === null || aliasLabelToDelete === undefined) {
|
|
413
|
+
throw new baseapi_1.RequiredError("DefaultApi", "deleteAlias", "aliasLabelToDelete");
|
|
414
|
+
}
|
|
415
|
+
localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity/{alias_label_to_delete}'
|
|
416
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
417
|
+
.replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
|
|
418
|
+
.replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)))
|
|
419
|
+
.replace('{' + 'alias_label_to_delete' + '}', encodeURIComponent(String(aliasLabelToDelete)));
|
|
420
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
347
421
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
348
|
-
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
349
|
-
"application/json"
|
|
350
|
-
]);
|
|
351
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
352
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(exportPlayersRequestBody, "ExportPlayersRequestBody", ""), contentType);
|
|
353
|
-
requestContext.setBody(serializedBody);
|
|
354
422
|
authMethod = _config.authMethods["app_key"];
|
|
355
423
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
356
424
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
@@ -369,7 +437,7 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
369
437
|
});
|
|
370
438
|
});
|
|
371
439
|
};
|
|
372
|
-
DefaultApiRequestFactory.prototype.
|
|
440
|
+
DefaultApiRequestFactory.prototype.deletePlayer = function (appId, playerId, _options) {
|
|
373
441
|
var _a, _b, _c;
|
|
374
442
|
return __awaiter(this, void 0, void 0, function () {
|
|
375
443
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -378,13 +446,19 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
378
446
|
case 0:
|
|
379
447
|
_config = _options || this.configuration;
|
|
380
448
|
if (appId === null || appId === undefined) {
|
|
381
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
449
|
+
throw new baseapi_1.RequiredError("DefaultApi", "deletePlayer", "appId");
|
|
382
450
|
}
|
|
383
|
-
|
|
384
|
-
.
|
|
385
|
-
|
|
451
|
+
if (playerId === null || playerId === undefined) {
|
|
452
|
+
throw new baseapi_1.RequiredError("DefaultApi", "deletePlayer", "playerId");
|
|
453
|
+
}
|
|
454
|
+
localVarPath = '/players/{player_id}'
|
|
455
|
+
.replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
|
|
456
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
386
457
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
387
|
-
|
|
458
|
+
if (appId !== undefined) {
|
|
459
|
+
requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
|
|
460
|
+
}
|
|
461
|
+
authMethod = _config.authMethods["app_key"];
|
|
388
462
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
389
463
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
390
464
|
case 1:
|
|
@@ -402,7 +476,7 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
402
476
|
});
|
|
403
477
|
});
|
|
404
478
|
};
|
|
405
|
-
DefaultApiRequestFactory.prototype.
|
|
479
|
+
DefaultApiRequestFactory.prototype.deleteSegments = function (appId, segmentId, _options) {
|
|
406
480
|
var _a, _b, _c;
|
|
407
481
|
return __awaiter(this, void 0, void 0, function () {
|
|
408
482
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -410,10 +484,18 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
410
484
|
switch (_d.label) {
|
|
411
485
|
case 0:
|
|
412
486
|
_config = _options || this.configuration;
|
|
413
|
-
|
|
414
|
-
|
|
487
|
+
if (appId === null || appId === undefined) {
|
|
488
|
+
throw new baseapi_1.RequiredError("DefaultApi", "deleteSegments", "appId");
|
|
489
|
+
}
|
|
490
|
+
if (segmentId === null || segmentId === undefined) {
|
|
491
|
+
throw new baseapi_1.RequiredError("DefaultApi", "deleteSegments", "segmentId");
|
|
492
|
+
}
|
|
493
|
+
localVarPath = '/apps/{app_id}/segments/{segment_id}'
|
|
494
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
495
|
+
.replace('{' + 'segment_id' + '}', encodeURIComponent(String(segmentId)));
|
|
496
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
415
497
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
416
|
-
authMethod = _config.authMethods["
|
|
498
|
+
authMethod = _config.authMethods["app_key"];
|
|
417
499
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
418
500
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
419
501
|
case 1:
|
|
@@ -431,7 +513,7 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
431
513
|
});
|
|
432
514
|
});
|
|
433
515
|
};
|
|
434
|
-
DefaultApiRequestFactory.prototype.
|
|
516
|
+
DefaultApiRequestFactory.prototype.deleteSubscription = function (appId, subscriptionId, _options) {
|
|
435
517
|
var _a, _b, _c;
|
|
436
518
|
return __awaiter(this, void 0, void 0, function () {
|
|
437
519
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -440,18 +522,16 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
440
522
|
case 0:
|
|
441
523
|
_config = _options || this.configuration;
|
|
442
524
|
if (appId === null || appId === undefined) {
|
|
443
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
525
|
+
throw new baseapi_1.RequiredError("DefaultApi", "deleteSubscription", "appId");
|
|
444
526
|
}
|
|
445
|
-
if (
|
|
446
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
527
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
528
|
+
throw new baseapi_1.RequiredError("DefaultApi", "deleteSubscription", "subscriptionId");
|
|
447
529
|
}
|
|
448
|
-
localVarPath = '/
|
|
449
|
-
.replace('{' + '
|
|
450
|
-
|
|
530
|
+
localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}'
|
|
531
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
532
|
+
.replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
|
|
533
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
451
534
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
452
|
-
if (appId !== undefined) {
|
|
453
|
-
requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
|
|
454
|
-
}
|
|
455
535
|
authMethod = _config.authMethods["app_key"];
|
|
456
536
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
457
537
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
@@ -470,49 +550,41 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
470
550
|
});
|
|
471
551
|
});
|
|
472
552
|
};
|
|
473
|
-
DefaultApiRequestFactory.prototype.
|
|
553
|
+
DefaultApiRequestFactory.prototype.deleteUser = function (appId, aliasLabel, aliasId, _options) {
|
|
474
554
|
var _a, _b, _c;
|
|
475
555
|
return __awaiter(this, void 0, void 0, function () {
|
|
476
|
-
var _config, localVarPath, requestContext,
|
|
556
|
+
var _config, localVarPath, requestContext, defaultAuth;
|
|
477
557
|
return __generator(this, function (_d) {
|
|
478
558
|
switch (_d.label) {
|
|
479
559
|
case 0:
|
|
480
560
|
_config = _options || this.configuration;
|
|
481
|
-
if (
|
|
482
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
561
|
+
if (appId === null || appId === undefined) {
|
|
562
|
+
throw new baseapi_1.RequiredError("DefaultApi", "deleteUser", "appId");
|
|
483
563
|
}
|
|
484
|
-
if (
|
|
485
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
564
|
+
if (aliasLabel === null || aliasLabel === undefined) {
|
|
565
|
+
throw new baseapi_1.RequiredError("DefaultApi", "deleteUser", "aliasLabel");
|
|
486
566
|
}
|
|
487
|
-
|
|
488
|
-
.
|
|
489
|
-
|
|
567
|
+
if (aliasId === null || aliasId === undefined) {
|
|
568
|
+
throw new baseapi_1.RequiredError("DefaultApi", "deleteUser", "aliasId");
|
|
569
|
+
}
|
|
570
|
+
localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}'
|
|
571
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
572
|
+
.replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
|
|
573
|
+
.replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
|
|
574
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
490
575
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
491
|
-
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
492
|
-
"application/json"
|
|
493
|
-
]);
|
|
494
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
495
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(getNotificationRequestBody, "GetNotificationRequestBody", ""), contentType);
|
|
496
|
-
requestContext.setBody(serializedBody);
|
|
497
|
-
authMethod = _config.authMethods["app_key"];
|
|
498
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
499
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
500
|
-
case 1:
|
|
501
|
-
_d.sent();
|
|
502
|
-
_d.label = 2;
|
|
503
|
-
case 2:
|
|
504
576
|
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);
|
|
505
|
-
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3,
|
|
577
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 2];
|
|
506
578
|
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
507
|
-
case
|
|
579
|
+
case 1:
|
|
508
580
|
_d.sent();
|
|
509
|
-
_d.label =
|
|
510
|
-
case
|
|
581
|
+
_d.label = 2;
|
|
582
|
+
case 2: return [2, requestContext];
|
|
511
583
|
}
|
|
512
584
|
});
|
|
513
585
|
});
|
|
514
586
|
};
|
|
515
|
-
DefaultApiRequestFactory.prototype.
|
|
587
|
+
DefaultApiRequestFactory.prototype.endLiveActivity = function (appId, activityId, subscriptionId, _options) {
|
|
516
588
|
var _a, _b, _c;
|
|
517
589
|
return __awaiter(this, void 0, void 0, function () {
|
|
518
590
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -521,23 +593,20 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
521
593
|
case 0:
|
|
522
594
|
_config = _options || this.configuration;
|
|
523
595
|
if (appId === null || appId === undefined) {
|
|
524
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
525
|
-
}
|
|
526
|
-
localVarPath = '/notifications';
|
|
527
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
528
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
529
|
-
if (appId !== undefined) {
|
|
530
|
-
requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
|
|
531
|
-
}
|
|
532
|
-
if (limit !== undefined) {
|
|
533
|
-
requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
|
|
596
|
+
throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "appId");
|
|
534
597
|
}
|
|
535
|
-
if (
|
|
536
|
-
|
|
598
|
+
if (activityId === null || activityId === undefined) {
|
|
599
|
+
throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "activityId");
|
|
537
600
|
}
|
|
538
|
-
if (
|
|
539
|
-
|
|
601
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
602
|
+
throw new baseapi_1.RequiredError("DefaultApi", "endLiveActivity", "subscriptionId");
|
|
540
603
|
}
|
|
604
|
+
localVarPath = '/apps/{app_id}/live_activities/{activity_id}/token/{subscription_id}'
|
|
605
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
606
|
+
.replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)))
|
|
607
|
+
.replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
|
|
608
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
609
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
541
610
|
authMethod = _config.authMethods["app_key"];
|
|
542
611
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
543
612
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
@@ -556,39 +625,27 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
556
625
|
});
|
|
557
626
|
});
|
|
558
627
|
};
|
|
559
|
-
DefaultApiRequestFactory.prototype.
|
|
628
|
+
DefaultApiRequestFactory.prototype.exportPlayers = function (appId, exportPlayersRequestBody, _options) {
|
|
560
629
|
var _a, _b, _c;
|
|
561
630
|
return __awaiter(this, void 0, void 0, function () {
|
|
562
|
-
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
631
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
563
632
|
return __generator(this, function (_d) {
|
|
564
633
|
switch (_d.label) {
|
|
565
634
|
case 0:
|
|
566
635
|
_config = _options || this.configuration;
|
|
567
636
|
if (appId === null || appId === undefined) {
|
|
568
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
569
|
-
}
|
|
570
|
-
if (outcomeNames === null || outcomeNames === undefined) {
|
|
571
|
-
throw new baseapi_1.RequiredError("DefaultApi", "getOutcomes", "outcomeNames");
|
|
637
|
+
throw new baseapi_1.RequiredError("DefaultApi", "exportPlayers", "appId");
|
|
572
638
|
}
|
|
573
|
-
localVarPath = '/
|
|
639
|
+
localVarPath = '/players/csv_export?app_id={app_id}'
|
|
574
640
|
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
|
|
575
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
641
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
576
642
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
if (outcomeTimeRange !== undefined) {
|
|
584
|
-
requestContext.setQueryParam("outcome_time_range", ObjectSerializer_1.ObjectSerializer.serialize(outcomeTimeRange, "string", ""));
|
|
585
|
-
}
|
|
586
|
-
if (outcomePlatforms !== undefined) {
|
|
587
|
-
requestContext.setQueryParam("outcome_platforms", ObjectSerializer_1.ObjectSerializer.serialize(outcomePlatforms, "string", ""));
|
|
588
|
-
}
|
|
589
|
-
if (outcomeAttribution !== undefined) {
|
|
590
|
-
requestContext.setQueryParam("outcome_attribution", ObjectSerializer_1.ObjectSerializer.serialize(outcomeAttribution, "string", ""));
|
|
591
|
-
}
|
|
643
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
644
|
+
"application/json"
|
|
645
|
+
]);
|
|
646
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
647
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(exportPlayersRequestBody, "ExportPlayersRequestBody", ""), contentType);
|
|
648
|
+
requestContext.setBody(serializedBody);
|
|
592
649
|
authMethod = _config.authMethods["app_key"];
|
|
593
650
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
594
651
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
@@ -607,7 +664,7 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
607
664
|
});
|
|
608
665
|
});
|
|
609
666
|
};
|
|
610
|
-
DefaultApiRequestFactory.prototype.
|
|
667
|
+
DefaultApiRequestFactory.prototype.fetchAliases = function (appId, subscriptionId, _options) {
|
|
611
668
|
var _a, _b, _c;
|
|
612
669
|
return __awaiter(this, void 0, void 0, function () {
|
|
613
670
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -616,21 +673,16 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
616
673
|
case 0:
|
|
617
674
|
_config = _options || this.configuration;
|
|
618
675
|
if (appId === null || appId === undefined) {
|
|
619
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
676
|
+
throw new baseapi_1.RequiredError("DefaultApi", "fetchAliases", "appId");
|
|
620
677
|
}
|
|
621
|
-
if (
|
|
622
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
678
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
679
|
+
throw new baseapi_1.RequiredError("DefaultApi", "fetchAliases", "subscriptionId");
|
|
623
680
|
}
|
|
624
|
-
localVarPath = '/
|
|
625
|
-
.replace('{' + '
|
|
681
|
+
localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/user/identity'
|
|
682
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
683
|
+
.replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
|
|
626
684
|
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
627
685
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
628
|
-
if (appId !== undefined) {
|
|
629
|
-
requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
|
|
630
|
-
}
|
|
631
|
-
if (emailAuthHash !== undefined) {
|
|
632
|
-
requestContext.setQueryParam("email_auth_hash", ObjectSerializer_1.ObjectSerializer.serialize(emailAuthHash, "string", ""));
|
|
633
|
-
}
|
|
634
686
|
authMethod = _config.authMethods["app_key"];
|
|
635
687
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
636
688
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
@@ -649,7 +701,7 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
649
701
|
});
|
|
650
702
|
});
|
|
651
703
|
};
|
|
652
|
-
DefaultApiRequestFactory.prototype.
|
|
704
|
+
DefaultApiRequestFactory.prototype.fetchUser = function (appId, aliasLabel, aliasId, _options) {
|
|
653
705
|
var _a, _b, _c;
|
|
654
706
|
return __awaiter(this, void 0, void 0, function () {
|
|
655
707
|
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
@@ -658,20 +710,20 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
658
710
|
case 0:
|
|
659
711
|
_config = _options || this.configuration;
|
|
660
712
|
if (appId === null || appId === undefined) {
|
|
661
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
662
|
-
}
|
|
663
|
-
localVarPath = '/players';
|
|
664
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
665
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
666
|
-
if (appId !== undefined) {
|
|
667
|
-
requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
|
|
713
|
+
throw new baseapi_1.RequiredError("DefaultApi", "fetchUser", "appId");
|
|
668
714
|
}
|
|
669
|
-
if (
|
|
670
|
-
|
|
715
|
+
if (aliasLabel === null || aliasLabel === undefined) {
|
|
716
|
+
throw new baseapi_1.RequiredError("DefaultApi", "fetchUser", "aliasLabel");
|
|
671
717
|
}
|
|
672
|
-
if (
|
|
673
|
-
|
|
718
|
+
if (aliasId === null || aliasId === undefined) {
|
|
719
|
+
throw new baseapi_1.RequiredError("DefaultApi", "fetchUser", "aliasId");
|
|
674
720
|
}
|
|
721
|
+
localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}'
|
|
722
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
723
|
+
.replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
|
|
724
|
+
.replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
|
|
725
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
726
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
675
727
|
authMethod = _config.authMethods["app_key"];
|
|
676
728
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
677
729
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
@@ -690,30 +742,62 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
690
742
|
});
|
|
691
743
|
});
|
|
692
744
|
};
|
|
693
|
-
DefaultApiRequestFactory.prototype.
|
|
745
|
+
DefaultApiRequestFactory.prototype.fetchUserIdentity = function (appId, aliasLabel, aliasId, _options) {
|
|
694
746
|
var _a, _b, _c;
|
|
695
747
|
return __awaiter(this, void 0, void 0, function () {
|
|
696
|
-
var _config, localVarPath, requestContext,
|
|
748
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
697
749
|
return __generator(this, function (_d) {
|
|
698
750
|
switch (_d.label) {
|
|
699
751
|
case 0:
|
|
700
752
|
_config = _options || this.configuration;
|
|
701
753
|
if (appId === null || appId === undefined) {
|
|
702
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
754
|
+
throw new baseapi_1.RequiredError("DefaultApi", "fetchUserIdentity", "appId");
|
|
703
755
|
}
|
|
704
|
-
if (
|
|
705
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
756
|
+
if (aliasLabel === null || aliasLabel === undefined) {
|
|
757
|
+
throw new baseapi_1.RequiredError("DefaultApi", "fetchUserIdentity", "aliasLabel");
|
|
758
|
+
}
|
|
759
|
+
if (aliasId === null || aliasId === undefined) {
|
|
760
|
+
throw new baseapi_1.RequiredError("DefaultApi", "fetchUserIdentity", "aliasId");
|
|
761
|
+
}
|
|
762
|
+
localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity'
|
|
763
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
764
|
+
.replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
|
|
765
|
+
.replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
|
|
766
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
767
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
768
|
+
authMethod = _config.authMethods["app_key"];
|
|
769
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
770
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
771
|
+
case 1:
|
|
772
|
+
_d.sent();
|
|
773
|
+
_d.label = 2;
|
|
774
|
+
case 2:
|
|
775
|
+
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);
|
|
776
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
777
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
778
|
+
case 3:
|
|
779
|
+
_d.sent();
|
|
780
|
+
_d.label = 4;
|
|
781
|
+
case 4: return [2, requestContext];
|
|
782
|
+
}
|
|
783
|
+
});
|
|
784
|
+
});
|
|
785
|
+
};
|
|
786
|
+
DefaultApiRequestFactory.prototype.getApp = function (appId, _options) {
|
|
787
|
+
var _a, _b, _c;
|
|
788
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
789
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
790
|
+
return __generator(this, function (_d) {
|
|
791
|
+
switch (_d.label) {
|
|
792
|
+
case 0:
|
|
793
|
+
_config = _options || this.configuration;
|
|
794
|
+
if (appId === null || appId === undefined) {
|
|
795
|
+
throw new baseapi_1.RequiredError("DefaultApi", "getApp", "appId");
|
|
706
796
|
}
|
|
707
797
|
localVarPath = '/apps/{app_id}'
|
|
708
798
|
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
|
|
709
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
799
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
710
800
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
711
|
-
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
712
|
-
"application/json"
|
|
713
|
-
]);
|
|
714
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
715
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(app, "App", ""), contentType);
|
|
716
|
-
requestContext.setBody(serializedBody);
|
|
717
801
|
authMethod = _config.authMethods["user_key"];
|
|
718
802
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
719
803
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
@@ -732,7 +816,112 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
732
816
|
});
|
|
733
817
|
});
|
|
734
818
|
};
|
|
735
|
-
DefaultApiRequestFactory.prototype.
|
|
819
|
+
DefaultApiRequestFactory.prototype.getApps = function (_options) {
|
|
820
|
+
var _a, _b, _c;
|
|
821
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
822
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
823
|
+
return __generator(this, function (_d) {
|
|
824
|
+
switch (_d.label) {
|
|
825
|
+
case 0:
|
|
826
|
+
_config = _options || this.configuration;
|
|
827
|
+
localVarPath = '/apps';
|
|
828
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
829
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
830
|
+
authMethod = _config.authMethods["user_key"];
|
|
831
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
832
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
833
|
+
case 1:
|
|
834
|
+
_d.sent();
|
|
835
|
+
_d.label = 2;
|
|
836
|
+
case 2:
|
|
837
|
+
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);
|
|
838
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
839
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
840
|
+
case 3:
|
|
841
|
+
_d.sent();
|
|
842
|
+
_d.label = 4;
|
|
843
|
+
case 4: return [2, requestContext];
|
|
844
|
+
}
|
|
845
|
+
});
|
|
846
|
+
});
|
|
847
|
+
};
|
|
848
|
+
DefaultApiRequestFactory.prototype.getEligibleIams = function (appId, subscriptionId, _options) {
|
|
849
|
+
var _a, _b, _c;
|
|
850
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
851
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
852
|
+
return __generator(this, function (_d) {
|
|
853
|
+
switch (_d.label) {
|
|
854
|
+
case 0:
|
|
855
|
+
_config = _options || this.configuration;
|
|
856
|
+
if (appId === null || appId === undefined) {
|
|
857
|
+
throw new baseapi_1.RequiredError("DefaultApi", "getEligibleIams", "appId");
|
|
858
|
+
}
|
|
859
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
860
|
+
throw new baseapi_1.RequiredError("DefaultApi", "getEligibleIams", "subscriptionId");
|
|
861
|
+
}
|
|
862
|
+
localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/iams'
|
|
863
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
864
|
+
.replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
|
|
865
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
866
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
867
|
+
authMethod = _config.authMethods["app_key"];
|
|
868
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
869
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
870
|
+
case 1:
|
|
871
|
+
_d.sent();
|
|
872
|
+
_d.label = 2;
|
|
873
|
+
case 2:
|
|
874
|
+
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);
|
|
875
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
876
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
877
|
+
case 3:
|
|
878
|
+
_d.sent();
|
|
879
|
+
_d.label = 4;
|
|
880
|
+
case 4: return [2, requestContext];
|
|
881
|
+
}
|
|
882
|
+
});
|
|
883
|
+
});
|
|
884
|
+
};
|
|
885
|
+
DefaultApiRequestFactory.prototype.getNotification = function (appId, notificationId, _options) {
|
|
886
|
+
var _a, _b, _c;
|
|
887
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
888
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
889
|
+
return __generator(this, function (_d) {
|
|
890
|
+
switch (_d.label) {
|
|
891
|
+
case 0:
|
|
892
|
+
_config = _options || this.configuration;
|
|
893
|
+
if (appId === null || appId === undefined) {
|
|
894
|
+
throw new baseapi_1.RequiredError("DefaultApi", "getNotification", "appId");
|
|
895
|
+
}
|
|
896
|
+
if (notificationId === null || notificationId === undefined) {
|
|
897
|
+
throw new baseapi_1.RequiredError("DefaultApi", "getNotification", "notificationId");
|
|
898
|
+
}
|
|
899
|
+
localVarPath = '/notifications/{notification_id}'
|
|
900
|
+
.replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
|
|
901
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
902
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
903
|
+
if (appId !== undefined) {
|
|
904
|
+
requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
|
|
905
|
+
}
|
|
906
|
+
authMethod = _config.authMethods["app_key"];
|
|
907
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
908
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
909
|
+
case 1:
|
|
910
|
+
_d.sent();
|
|
911
|
+
_d.label = 2;
|
|
912
|
+
case 2:
|
|
913
|
+
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);
|
|
914
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
915
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
916
|
+
case 3:
|
|
917
|
+
_d.sent();
|
|
918
|
+
_d.label = 4;
|
|
919
|
+
case 4: return [2, requestContext];
|
|
920
|
+
}
|
|
921
|
+
});
|
|
922
|
+
});
|
|
923
|
+
};
|
|
924
|
+
DefaultApiRequestFactory.prototype.getNotificationHistory = function (notificationId, getNotificationRequestBody, _options) {
|
|
736
925
|
var _a, _b, _c;
|
|
737
926
|
return __awaiter(this, void 0, void 0, function () {
|
|
738
927
|
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
@@ -740,90 +929,1285 @@ var DefaultApiRequestFactory = (function (_super) {
|
|
|
740
929
|
switch (_d.label) {
|
|
741
930
|
case 0:
|
|
742
931
|
_config = _options || this.configuration;
|
|
743
|
-
if (
|
|
744
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
932
|
+
if (notificationId === null || notificationId === undefined) {
|
|
933
|
+
throw new baseapi_1.RequiredError("DefaultApi", "getNotificationHistory", "notificationId");
|
|
745
934
|
}
|
|
746
|
-
if (
|
|
747
|
-
throw new baseapi_1.RequiredError("DefaultApi", "
|
|
935
|
+
if (getNotificationRequestBody === null || getNotificationRequestBody === undefined) {
|
|
936
|
+
throw new baseapi_1.RequiredError("DefaultApi", "getNotificationHistory", "getNotificationRequestBody");
|
|
748
937
|
}
|
|
749
|
-
localVarPath = '/
|
|
750
|
-
.replace('{' + '
|
|
751
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.
|
|
938
|
+
localVarPath = '/notifications/{notification_id}/history'
|
|
939
|
+
.replace('{' + 'notification_id' + '}', encodeURIComponent(String(notificationId)));
|
|
940
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
752
941
|
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
753
942
|
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
754
943
|
"application/json"
|
|
755
944
|
]);
|
|
756
945
|
requestContext.setHeaderParam("Content-Type", contentType);
|
|
757
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(
|
|
946
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(getNotificationRequestBody, "GetNotificationRequestBody", ""), contentType);
|
|
758
947
|
requestContext.setBody(serializedBody);
|
|
759
948
|
authMethod = _config.authMethods["app_key"];
|
|
760
949
|
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
761
950
|
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
762
951
|
case 1:
|
|
763
|
-
_d.sent();
|
|
764
|
-
_d.label = 2;
|
|
952
|
+
_d.sent();
|
|
953
|
+
_d.label = 2;
|
|
954
|
+
case 2:
|
|
955
|
+
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);
|
|
956
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
957
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
958
|
+
case 3:
|
|
959
|
+
_d.sent();
|
|
960
|
+
_d.label = 4;
|
|
961
|
+
case 4: return [2, requestContext];
|
|
962
|
+
}
|
|
963
|
+
});
|
|
964
|
+
});
|
|
965
|
+
};
|
|
966
|
+
DefaultApiRequestFactory.prototype.getNotifications = function (appId, limit, offset, kind, _options) {
|
|
967
|
+
var _a, _b, _c;
|
|
968
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
969
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
970
|
+
return __generator(this, function (_d) {
|
|
971
|
+
switch (_d.label) {
|
|
972
|
+
case 0:
|
|
973
|
+
_config = _options || this.configuration;
|
|
974
|
+
if (appId === null || appId === undefined) {
|
|
975
|
+
throw new baseapi_1.RequiredError("DefaultApi", "getNotifications", "appId");
|
|
976
|
+
}
|
|
977
|
+
localVarPath = '/notifications';
|
|
978
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
979
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
980
|
+
if (appId !== undefined) {
|
|
981
|
+
requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
|
|
982
|
+
}
|
|
983
|
+
if (limit !== undefined) {
|
|
984
|
+
requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
|
|
985
|
+
}
|
|
986
|
+
if (offset !== undefined) {
|
|
987
|
+
requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", ""));
|
|
988
|
+
}
|
|
989
|
+
if (kind !== undefined) {
|
|
990
|
+
requestContext.setQueryParam("kind", ObjectSerializer_1.ObjectSerializer.serialize(kind, "0 | 1 | 3", ""));
|
|
991
|
+
}
|
|
992
|
+
authMethod = _config.authMethods["app_key"];
|
|
993
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
994
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
995
|
+
case 1:
|
|
996
|
+
_d.sent();
|
|
997
|
+
_d.label = 2;
|
|
998
|
+
case 2:
|
|
999
|
+
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);
|
|
1000
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1001
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1002
|
+
case 3:
|
|
1003
|
+
_d.sent();
|
|
1004
|
+
_d.label = 4;
|
|
1005
|
+
case 4: return [2, requestContext];
|
|
1006
|
+
}
|
|
1007
|
+
});
|
|
1008
|
+
});
|
|
1009
|
+
};
|
|
1010
|
+
DefaultApiRequestFactory.prototype.getOutcomes = function (appId, outcomeNames, outcomeNames2, outcomeTimeRange, outcomePlatforms, outcomeAttribution, _options) {
|
|
1011
|
+
var _a, _b, _c;
|
|
1012
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1013
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1014
|
+
return __generator(this, function (_d) {
|
|
1015
|
+
switch (_d.label) {
|
|
1016
|
+
case 0:
|
|
1017
|
+
_config = _options || this.configuration;
|
|
1018
|
+
if (appId === null || appId === undefined) {
|
|
1019
|
+
throw new baseapi_1.RequiredError("DefaultApi", "getOutcomes", "appId");
|
|
1020
|
+
}
|
|
1021
|
+
if (outcomeNames === null || outcomeNames === undefined) {
|
|
1022
|
+
throw new baseapi_1.RequiredError("DefaultApi", "getOutcomes", "outcomeNames");
|
|
1023
|
+
}
|
|
1024
|
+
localVarPath = '/apps/{app_id}/outcomes'
|
|
1025
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
|
|
1026
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
1027
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1028
|
+
if (outcomeNames !== undefined) {
|
|
1029
|
+
requestContext.setQueryParam("outcome_names", ObjectSerializer_1.ObjectSerializer.serialize(outcomeNames, "string", ""));
|
|
1030
|
+
}
|
|
1031
|
+
if (outcomeNames2 !== undefined) {
|
|
1032
|
+
requestContext.setQueryParam("outcome_names[]", ObjectSerializer_1.ObjectSerializer.serialize(outcomeNames2, "string", ""));
|
|
1033
|
+
}
|
|
1034
|
+
if (outcomeTimeRange !== undefined) {
|
|
1035
|
+
requestContext.setQueryParam("outcome_time_range", ObjectSerializer_1.ObjectSerializer.serialize(outcomeTimeRange, "string", ""));
|
|
1036
|
+
}
|
|
1037
|
+
if (outcomePlatforms !== undefined) {
|
|
1038
|
+
requestContext.setQueryParam("outcome_platforms", ObjectSerializer_1.ObjectSerializer.serialize(outcomePlatforms, "string", ""));
|
|
1039
|
+
}
|
|
1040
|
+
if (outcomeAttribution !== undefined) {
|
|
1041
|
+
requestContext.setQueryParam("outcome_attribution", ObjectSerializer_1.ObjectSerializer.serialize(outcomeAttribution, "string", ""));
|
|
1042
|
+
}
|
|
1043
|
+
authMethod = _config.authMethods["app_key"];
|
|
1044
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1045
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1046
|
+
case 1:
|
|
1047
|
+
_d.sent();
|
|
1048
|
+
_d.label = 2;
|
|
1049
|
+
case 2:
|
|
1050
|
+
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);
|
|
1051
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1052
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1053
|
+
case 3:
|
|
1054
|
+
_d.sent();
|
|
1055
|
+
_d.label = 4;
|
|
1056
|
+
case 4: return [2, requestContext];
|
|
1057
|
+
}
|
|
1058
|
+
});
|
|
1059
|
+
});
|
|
1060
|
+
};
|
|
1061
|
+
DefaultApiRequestFactory.prototype.getPlayer = function (appId, playerId, emailAuthHash, _options) {
|
|
1062
|
+
var _a, _b, _c;
|
|
1063
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1064
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1065
|
+
return __generator(this, function (_d) {
|
|
1066
|
+
switch (_d.label) {
|
|
1067
|
+
case 0:
|
|
1068
|
+
_config = _options || this.configuration;
|
|
1069
|
+
if (appId === null || appId === undefined) {
|
|
1070
|
+
throw new baseapi_1.RequiredError("DefaultApi", "getPlayer", "appId");
|
|
1071
|
+
}
|
|
1072
|
+
if (playerId === null || playerId === undefined) {
|
|
1073
|
+
throw new baseapi_1.RequiredError("DefaultApi", "getPlayer", "playerId");
|
|
1074
|
+
}
|
|
1075
|
+
localVarPath = '/players/{player_id}'
|
|
1076
|
+
.replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
|
|
1077
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
1078
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1079
|
+
if (appId !== undefined) {
|
|
1080
|
+
requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
|
|
1081
|
+
}
|
|
1082
|
+
if (emailAuthHash !== undefined) {
|
|
1083
|
+
requestContext.setQueryParam("email_auth_hash", ObjectSerializer_1.ObjectSerializer.serialize(emailAuthHash, "string", ""));
|
|
1084
|
+
}
|
|
1085
|
+
authMethod = _config.authMethods["app_key"];
|
|
1086
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1087
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1088
|
+
case 1:
|
|
1089
|
+
_d.sent();
|
|
1090
|
+
_d.label = 2;
|
|
1091
|
+
case 2:
|
|
1092
|
+
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);
|
|
1093
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1094
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1095
|
+
case 3:
|
|
1096
|
+
_d.sent();
|
|
1097
|
+
_d.label = 4;
|
|
1098
|
+
case 4: return [2, requestContext];
|
|
1099
|
+
}
|
|
1100
|
+
});
|
|
1101
|
+
});
|
|
1102
|
+
};
|
|
1103
|
+
DefaultApiRequestFactory.prototype.getPlayers = function (appId, limit, offset, _options) {
|
|
1104
|
+
var _a, _b, _c;
|
|
1105
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1106
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
1107
|
+
return __generator(this, function (_d) {
|
|
1108
|
+
switch (_d.label) {
|
|
1109
|
+
case 0:
|
|
1110
|
+
_config = _options || this.configuration;
|
|
1111
|
+
if (appId === null || appId === undefined) {
|
|
1112
|
+
throw new baseapi_1.RequiredError("DefaultApi", "getPlayers", "appId");
|
|
1113
|
+
}
|
|
1114
|
+
localVarPath = '/players';
|
|
1115
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
1116
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1117
|
+
if (appId !== undefined) {
|
|
1118
|
+
requestContext.setQueryParam("app_id", ObjectSerializer_1.ObjectSerializer.serialize(appId, "string", ""));
|
|
1119
|
+
}
|
|
1120
|
+
if (limit !== undefined) {
|
|
1121
|
+
requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
|
|
1122
|
+
}
|
|
1123
|
+
if (offset !== undefined) {
|
|
1124
|
+
requestContext.setQueryParam("offset", ObjectSerializer_1.ObjectSerializer.serialize(offset, "number", ""));
|
|
1125
|
+
}
|
|
1126
|
+
authMethod = _config.authMethods["app_key"];
|
|
1127
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1128
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1129
|
+
case 1:
|
|
1130
|
+
_d.sent();
|
|
1131
|
+
_d.label = 2;
|
|
1132
|
+
case 2:
|
|
1133
|
+
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);
|
|
1134
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1135
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1136
|
+
case 3:
|
|
1137
|
+
_d.sent();
|
|
1138
|
+
_d.label = 4;
|
|
1139
|
+
case 4: return [2, requestContext];
|
|
1140
|
+
}
|
|
1141
|
+
});
|
|
1142
|
+
});
|
|
1143
|
+
};
|
|
1144
|
+
DefaultApiRequestFactory.prototype.identifyUserByAlias = function (appId, aliasLabel, aliasId, userIdentityRequestBody, _options) {
|
|
1145
|
+
var _a, _b, _c;
|
|
1146
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1147
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1148
|
+
return __generator(this, function (_d) {
|
|
1149
|
+
switch (_d.label) {
|
|
1150
|
+
case 0:
|
|
1151
|
+
_config = _options || this.configuration;
|
|
1152
|
+
if (appId === null || appId === undefined) {
|
|
1153
|
+
throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "appId");
|
|
1154
|
+
}
|
|
1155
|
+
if (aliasLabel === null || aliasLabel === undefined) {
|
|
1156
|
+
throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "aliasLabel");
|
|
1157
|
+
}
|
|
1158
|
+
if (aliasId === null || aliasId === undefined) {
|
|
1159
|
+
throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "aliasId");
|
|
1160
|
+
}
|
|
1161
|
+
if (userIdentityRequestBody === null || userIdentityRequestBody === undefined) {
|
|
1162
|
+
throw new baseapi_1.RequiredError("DefaultApi", "identifyUserByAlias", "userIdentityRequestBody");
|
|
1163
|
+
}
|
|
1164
|
+
localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}/identity'
|
|
1165
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
1166
|
+
.replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
|
|
1167
|
+
.replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
|
|
1168
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
1169
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1170
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1171
|
+
"application/json"
|
|
1172
|
+
]);
|
|
1173
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1174
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userIdentityRequestBody, "UserIdentityRequestBody", ""), contentType);
|
|
1175
|
+
requestContext.setBody(serializedBody);
|
|
1176
|
+
authMethod = _config.authMethods["app_key"];
|
|
1177
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1178
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1179
|
+
case 1:
|
|
1180
|
+
_d.sent();
|
|
1181
|
+
_d.label = 2;
|
|
1182
|
+
case 2:
|
|
1183
|
+
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);
|
|
1184
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1185
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1186
|
+
case 3:
|
|
1187
|
+
_d.sent();
|
|
1188
|
+
_d.label = 4;
|
|
1189
|
+
case 4: return [2, requestContext];
|
|
1190
|
+
}
|
|
1191
|
+
});
|
|
1192
|
+
});
|
|
1193
|
+
};
|
|
1194
|
+
DefaultApiRequestFactory.prototype.identifyUserBySubscriptionId = function (appId, subscriptionId, userIdentityRequestBody, _options) {
|
|
1195
|
+
var _a, _b, _c;
|
|
1196
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1197
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1198
|
+
return __generator(this, function (_d) {
|
|
1199
|
+
switch (_d.label) {
|
|
1200
|
+
case 0:
|
|
1201
|
+
_config = _options || this.configuration;
|
|
1202
|
+
if (appId === null || appId === undefined) {
|
|
1203
|
+
throw new baseapi_1.RequiredError("DefaultApi", "identifyUserBySubscriptionId", "appId");
|
|
1204
|
+
}
|
|
1205
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
1206
|
+
throw new baseapi_1.RequiredError("DefaultApi", "identifyUserBySubscriptionId", "subscriptionId");
|
|
1207
|
+
}
|
|
1208
|
+
if (userIdentityRequestBody === null || userIdentityRequestBody === undefined) {
|
|
1209
|
+
throw new baseapi_1.RequiredError("DefaultApi", "identifyUserBySubscriptionId", "userIdentityRequestBody");
|
|
1210
|
+
}
|
|
1211
|
+
localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/user/identity'
|
|
1212
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
1213
|
+
.replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
|
|
1214
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
1215
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1216
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1217
|
+
"application/json"
|
|
1218
|
+
]);
|
|
1219
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1220
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userIdentityRequestBody, "UserIdentityRequestBody", ""), contentType);
|
|
1221
|
+
requestContext.setBody(serializedBody);
|
|
1222
|
+
authMethod = _config.authMethods["app_key"];
|
|
1223
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1224
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1225
|
+
case 1:
|
|
1226
|
+
_d.sent();
|
|
1227
|
+
_d.label = 2;
|
|
1228
|
+
case 2:
|
|
1229
|
+
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);
|
|
1230
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1231
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1232
|
+
case 3:
|
|
1233
|
+
_d.sent();
|
|
1234
|
+
_d.label = 4;
|
|
1235
|
+
case 4: return [2, requestContext];
|
|
1236
|
+
}
|
|
1237
|
+
});
|
|
1238
|
+
});
|
|
1239
|
+
};
|
|
1240
|
+
DefaultApiRequestFactory.prototype.transferSubscription = function (appId, subscriptionId, transferSubscriptionRequestBody, _options) {
|
|
1241
|
+
var _a, _b, _c;
|
|
1242
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1243
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1244
|
+
return __generator(this, function (_d) {
|
|
1245
|
+
switch (_d.label) {
|
|
1246
|
+
case 0:
|
|
1247
|
+
_config = _options || this.configuration;
|
|
1248
|
+
if (appId === null || appId === undefined) {
|
|
1249
|
+
throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "appId");
|
|
1250
|
+
}
|
|
1251
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
1252
|
+
throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "subscriptionId");
|
|
1253
|
+
}
|
|
1254
|
+
if (transferSubscriptionRequestBody === null || transferSubscriptionRequestBody === undefined) {
|
|
1255
|
+
throw new baseapi_1.RequiredError("DefaultApi", "transferSubscription", "transferSubscriptionRequestBody");
|
|
1256
|
+
}
|
|
1257
|
+
localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}/owner'
|
|
1258
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
1259
|
+
.replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
|
|
1260
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
1261
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1262
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1263
|
+
"application/json"
|
|
1264
|
+
]);
|
|
1265
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1266
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(transferSubscriptionRequestBody, "TransferSubscriptionRequestBody", ""), contentType);
|
|
1267
|
+
requestContext.setBody(serializedBody);
|
|
1268
|
+
authMethod = _config.authMethods["app_key"];
|
|
1269
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1270
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1271
|
+
case 1:
|
|
1272
|
+
_d.sent();
|
|
1273
|
+
_d.label = 2;
|
|
1274
|
+
case 2:
|
|
1275
|
+
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);
|
|
1276
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1277
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1278
|
+
case 3:
|
|
1279
|
+
_d.sent();
|
|
1280
|
+
_d.label = 4;
|
|
1281
|
+
case 4: return [2, requestContext];
|
|
1282
|
+
}
|
|
1283
|
+
});
|
|
1284
|
+
});
|
|
1285
|
+
};
|
|
1286
|
+
DefaultApiRequestFactory.prototype.updateApp = function (appId, app, _options) {
|
|
1287
|
+
var _a, _b, _c;
|
|
1288
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1289
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1290
|
+
return __generator(this, function (_d) {
|
|
1291
|
+
switch (_d.label) {
|
|
1292
|
+
case 0:
|
|
1293
|
+
_config = _options || this.configuration;
|
|
1294
|
+
if (appId === null || appId === undefined) {
|
|
1295
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updateApp", "appId");
|
|
1296
|
+
}
|
|
1297
|
+
if (app === null || app === undefined) {
|
|
1298
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updateApp", "app");
|
|
1299
|
+
}
|
|
1300
|
+
localVarPath = '/apps/{app_id}'
|
|
1301
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)));
|
|
1302
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
1303
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1304
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1305
|
+
"application/json"
|
|
1306
|
+
]);
|
|
1307
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1308
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(app, "App", ""), contentType);
|
|
1309
|
+
requestContext.setBody(serializedBody);
|
|
1310
|
+
authMethod = _config.authMethods["user_key"];
|
|
1311
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1312
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1313
|
+
case 1:
|
|
1314
|
+
_d.sent();
|
|
1315
|
+
_d.label = 2;
|
|
1316
|
+
case 2:
|
|
1317
|
+
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);
|
|
1318
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1319
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1320
|
+
case 3:
|
|
1321
|
+
_d.sent();
|
|
1322
|
+
_d.label = 4;
|
|
1323
|
+
case 4: return [2, requestContext];
|
|
1324
|
+
}
|
|
1325
|
+
});
|
|
1326
|
+
});
|
|
1327
|
+
};
|
|
1328
|
+
DefaultApiRequestFactory.prototype.updateLiveActivity = function (appId, activityId, updateLiveActivityRequest, _options) {
|
|
1329
|
+
var _a, _b, _c;
|
|
1330
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1331
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1332
|
+
return __generator(this, function (_d) {
|
|
1333
|
+
switch (_d.label) {
|
|
1334
|
+
case 0:
|
|
1335
|
+
_config = _options || this.configuration;
|
|
1336
|
+
if (appId === null || appId === undefined) {
|
|
1337
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updateLiveActivity", "appId");
|
|
1338
|
+
}
|
|
1339
|
+
if (activityId === null || activityId === undefined) {
|
|
1340
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updateLiveActivity", "activityId");
|
|
1341
|
+
}
|
|
1342
|
+
if (updateLiveActivityRequest === null || updateLiveActivityRequest === undefined) {
|
|
1343
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updateLiveActivity", "updateLiveActivityRequest");
|
|
1344
|
+
}
|
|
1345
|
+
localVarPath = '/apps/{app_id}/live_activities/{activity_id}/notifications'
|
|
1346
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
1347
|
+
.replace('{' + 'activity_id' + '}', encodeURIComponent(String(activityId)));
|
|
1348
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
1349
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1350
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1351
|
+
"application/json"
|
|
1352
|
+
]);
|
|
1353
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1354
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateLiveActivityRequest, "UpdateLiveActivityRequest", ""), contentType);
|
|
1355
|
+
requestContext.setBody(serializedBody);
|
|
1356
|
+
authMethod = _config.authMethods["app_key"];
|
|
1357
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1358
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1359
|
+
case 1:
|
|
1360
|
+
_d.sent();
|
|
1361
|
+
_d.label = 2;
|
|
1362
|
+
case 2:
|
|
1363
|
+
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);
|
|
1364
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1365
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1366
|
+
case 3:
|
|
1367
|
+
_d.sent();
|
|
1368
|
+
_d.label = 4;
|
|
1369
|
+
case 4: return [2, requestContext];
|
|
1370
|
+
}
|
|
1371
|
+
});
|
|
1372
|
+
});
|
|
1373
|
+
};
|
|
1374
|
+
DefaultApiRequestFactory.prototype.updatePlayer = function (playerId, player, _options) {
|
|
1375
|
+
var _a, _b, _c;
|
|
1376
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1377
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1378
|
+
return __generator(this, function (_d) {
|
|
1379
|
+
switch (_d.label) {
|
|
1380
|
+
case 0:
|
|
1381
|
+
_config = _options || this.configuration;
|
|
1382
|
+
if (playerId === null || playerId === undefined) {
|
|
1383
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updatePlayer", "playerId");
|
|
1384
|
+
}
|
|
1385
|
+
if (player === null || player === undefined) {
|
|
1386
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updatePlayer", "player");
|
|
1387
|
+
}
|
|
1388
|
+
localVarPath = '/players/{player_id}'
|
|
1389
|
+
.replace('{' + 'player_id' + '}', encodeURIComponent(String(playerId)));
|
|
1390
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
1391
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1392
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1393
|
+
"application/json"
|
|
1394
|
+
]);
|
|
1395
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1396
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(player, "Player", ""), contentType);
|
|
1397
|
+
requestContext.setBody(serializedBody);
|
|
1398
|
+
authMethod = _config.authMethods["app_key"];
|
|
1399
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1400
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1401
|
+
case 1:
|
|
1402
|
+
_d.sent();
|
|
1403
|
+
_d.label = 2;
|
|
1404
|
+
case 2:
|
|
1405
|
+
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);
|
|
1406
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1407
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1408
|
+
case 3:
|
|
1409
|
+
_d.sent();
|
|
1410
|
+
_d.label = 4;
|
|
1411
|
+
case 4: return [2, requestContext];
|
|
1412
|
+
}
|
|
1413
|
+
});
|
|
1414
|
+
});
|
|
1415
|
+
};
|
|
1416
|
+
DefaultApiRequestFactory.prototype.updatePlayerTags = function (appId, externalUserId, updatePlayerTagsRequestBody, _options) {
|
|
1417
|
+
var _a, _b, _c;
|
|
1418
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1419
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1420
|
+
return __generator(this, function (_d) {
|
|
1421
|
+
switch (_d.label) {
|
|
1422
|
+
case 0:
|
|
1423
|
+
_config = _options || this.configuration;
|
|
1424
|
+
if (appId === null || appId === undefined) {
|
|
1425
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updatePlayerTags", "appId");
|
|
1426
|
+
}
|
|
1427
|
+
if (externalUserId === null || externalUserId === undefined) {
|
|
1428
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updatePlayerTags", "externalUserId");
|
|
1429
|
+
}
|
|
1430
|
+
localVarPath = '/apps/{app_id}/users/{external_user_id}'
|
|
1431
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
1432
|
+
.replace('{' + 'external_user_id' + '}', encodeURIComponent(String(externalUserId)));
|
|
1433
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
1434
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1435
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1436
|
+
"application/json"
|
|
1437
|
+
]);
|
|
1438
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1439
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updatePlayerTagsRequestBody, "UpdatePlayerTagsRequestBody", ""), contentType);
|
|
1440
|
+
requestContext.setBody(serializedBody);
|
|
1441
|
+
authMethod = _config.authMethods["app_key"];
|
|
1442
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1443
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1444
|
+
case 1:
|
|
1445
|
+
_d.sent();
|
|
1446
|
+
_d.label = 2;
|
|
1447
|
+
case 2:
|
|
1448
|
+
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);
|
|
1449
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1450
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1451
|
+
case 3:
|
|
1452
|
+
_d.sent();
|
|
1453
|
+
_d.label = 4;
|
|
1454
|
+
case 4: return [2, requestContext];
|
|
1455
|
+
}
|
|
1456
|
+
});
|
|
1457
|
+
});
|
|
1458
|
+
};
|
|
1459
|
+
DefaultApiRequestFactory.prototype.updateSubscription = function (appId, subscriptionId, updateSubscriptionRequestBody, _options) {
|
|
1460
|
+
var _a, _b, _c;
|
|
1461
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1462
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1463
|
+
return __generator(this, function (_d) {
|
|
1464
|
+
switch (_d.label) {
|
|
1465
|
+
case 0:
|
|
1466
|
+
_config = _options || this.configuration;
|
|
1467
|
+
if (appId === null || appId === undefined) {
|
|
1468
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updateSubscription", "appId");
|
|
1469
|
+
}
|
|
1470
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
1471
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updateSubscription", "subscriptionId");
|
|
1472
|
+
}
|
|
1473
|
+
if (updateSubscriptionRequestBody === null || updateSubscriptionRequestBody === undefined) {
|
|
1474
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updateSubscription", "updateSubscriptionRequestBody");
|
|
1475
|
+
}
|
|
1476
|
+
localVarPath = '/apps/{app_id}/subscriptions/{subscription_id}'
|
|
1477
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
1478
|
+
.replace('{' + 'subscription_id' + '}', encodeURIComponent(String(subscriptionId)));
|
|
1479
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
1480
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1481
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1482
|
+
"application/json"
|
|
1483
|
+
]);
|
|
1484
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1485
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateSubscriptionRequestBody, "UpdateSubscriptionRequestBody", ""), contentType);
|
|
1486
|
+
requestContext.setBody(serializedBody);
|
|
1487
|
+
authMethod = _config.authMethods["app_key"];
|
|
1488
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1489
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1490
|
+
case 1:
|
|
1491
|
+
_d.sent();
|
|
1492
|
+
_d.label = 2;
|
|
1493
|
+
case 2:
|
|
1494
|
+
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);
|
|
1495
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1496
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1497
|
+
case 3:
|
|
1498
|
+
_d.sent();
|
|
1499
|
+
_d.label = 4;
|
|
1500
|
+
case 4: return [2, requestContext];
|
|
1501
|
+
}
|
|
1502
|
+
});
|
|
1503
|
+
});
|
|
1504
|
+
};
|
|
1505
|
+
DefaultApiRequestFactory.prototype.updateUser = function (appId, aliasLabel, aliasId, updateUserRequest, subscriptionId, _options) {
|
|
1506
|
+
var _a, _b, _c;
|
|
1507
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1508
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
1509
|
+
return __generator(this, function (_d) {
|
|
1510
|
+
switch (_d.label) {
|
|
1511
|
+
case 0:
|
|
1512
|
+
_config = _options || this.configuration;
|
|
1513
|
+
if (appId === null || appId === undefined) {
|
|
1514
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updateUser", "appId");
|
|
1515
|
+
}
|
|
1516
|
+
if (aliasLabel === null || aliasLabel === undefined) {
|
|
1517
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updateUser", "aliasLabel");
|
|
1518
|
+
}
|
|
1519
|
+
if (aliasId === null || aliasId === undefined) {
|
|
1520
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updateUser", "aliasId");
|
|
1521
|
+
}
|
|
1522
|
+
if (updateUserRequest === null || updateUserRequest === undefined) {
|
|
1523
|
+
throw new baseapi_1.RequiredError("DefaultApi", "updateUser", "updateUserRequest");
|
|
1524
|
+
}
|
|
1525
|
+
localVarPath = '/apps/{app_id}/users/by/{alias_label}/{alias_id}'
|
|
1526
|
+
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
1527
|
+
.replace('{' + 'alias_label' + '}', encodeURIComponent(String(aliasLabel)))
|
|
1528
|
+
.replace('{' + 'alias_id' + '}', encodeURIComponent(String(aliasId)));
|
|
1529
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PATCH);
|
|
1530
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
1531
|
+
requestContext.setHeaderParam("subscription_id", ObjectSerializer_1.ObjectSerializer.serialize(subscriptionId, "string", ""));
|
|
1532
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
1533
|
+
"application/json"
|
|
1534
|
+
]);
|
|
1535
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
1536
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateUserRequest, "UpdateUserRequest", ""), contentType);
|
|
1537
|
+
requestContext.setBody(serializedBody);
|
|
1538
|
+
authMethod = _config.authMethods["app_key"];
|
|
1539
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
1540
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
1541
|
+
case 1:
|
|
1542
|
+
_d.sent();
|
|
1543
|
+
_d.label = 2;
|
|
1544
|
+
case 2:
|
|
1545
|
+
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);
|
|
1546
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
1547
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
1548
|
+
case 3:
|
|
1549
|
+
_d.sent();
|
|
1550
|
+
_d.label = 4;
|
|
1551
|
+
case 4: return [2, requestContext];
|
|
1552
|
+
}
|
|
1553
|
+
});
|
|
1554
|
+
});
|
|
1555
|
+
};
|
|
1556
|
+
return DefaultApiRequestFactory;
|
|
1557
|
+
}(baseapi_1.BaseAPIRequestFactory));
|
|
1558
|
+
exports.DefaultApiRequestFactory = DefaultApiRequestFactory;
|
|
1559
|
+
var DefaultApiResponseProcessor = (function () {
|
|
1560
|
+
function DefaultApiResponseProcessor() {
|
|
1561
|
+
}
|
|
1562
|
+
DefaultApiResponseProcessor.prototype.beginLiveActivity = function (response) {
|
|
1563
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1564
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1565
|
+
return __generator(this, function (_l) {
|
|
1566
|
+
switch (_l.label) {
|
|
1567
|
+
case 0:
|
|
1568
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1569
|
+
if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
|
|
1570
|
+
return [2];
|
|
1571
|
+
}
|
|
1572
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
|
|
1573
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1574
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1575
|
+
return [4, response.body.text()];
|
|
1576
|
+
case 1:
|
|
1577
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1578
|
+
"BadRequestError", ""]);
|
|
1579
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1580
|
+
case 2:
|
|
1581
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
1582
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1583
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1584
|
+
return [4, response.body.text()];
|
|
1585
|
+
case 3:
|
|
1586
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
1587
|
+
"void", ""]);
|
|
1588
|
+
return [2, body];
|
|
1589
|
+
case 4:
|
|
1590
|
+
_j = exception_1.ApiException.bind;
|
|
1591
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1592
|
+
return [4, response.getBodyAsAny()];
|
|
1593
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
1594
|
+
}
|
|
1595
|
+
});
|
|
1596
|
+
});
|
|
1597
|
+
};
|
|
1598
|
+
DefaultApiResponseProcessor.prototype.cancelNotification = function (response) {
|
|
1599
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1600
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1601
|
+
return __generator(this, function (_q) {
|
|
1602
|
+
switch (_q.label) {
|
|
1603
|
+
case 0:
|
|
1604
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1605
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1606
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1607
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1608
|
+
return [4, response.body.text()];
|
|
1609
|
+
case 1:
|
|
1610
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1611
|
+
"CancelNotificationSuccessResponse", ""]);
|
|
1612
|
+
return [2, body];
|
|
1613
|
+
case 2:
|
|
1614
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1615
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1616
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1617
|
+
return [4, response.body.text()];
|
|
1618
|
+
case 3:
|
|
1619
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1620
|
+
"BadRequestError", ""]);
|
|
1621
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1622
|
+
case 4:
|
|
1623
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1624
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1625
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1626
|
+
return [4, response.body.text()];
|
|
1627
|
+
case 5:
|
|
1628
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1629
|
+
"CancelNotificationSuccessResponse", ""]);
|
|
1630
|
+
return [2, body];
|
|
1631
|
+
case 6:
|
|
1632
|
+
_o = exception_1.ApiException.bind;
|
|
1633
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1634
|
+
return [4, response.getBodyAsAny()];
|
|
1635
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1636
|
+
}
|
|
1637
|
+
});
|
|
1638
|
+
});
|
|
1639
|
+
};
|
|
1640
|
+
DefaultApiResponseProcessor.prototype.createApp = function (response) {
|
|
1641
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1642
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1643
|
+
return __generator(this, function (_q) {
|
|
1644
|
+
switch (_q.label) {
|
|
1645
|
+
case 0:
|
|
1646
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1647
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1648
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1649
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1650
|
+
return [4, response.body.text()];
|
|
1651
|
+
case 1:
|
|
1652
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1653
|
+
"App", ""]);
|
|
1654
|
+
return [2, body];
|
|
1655
|
+
case 2:
|
|
1656
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1657
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1658
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1659
|
+
return [4, response.body.text()];
|
|
1660
|
+
case 3:
|
|
1661
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1662
|
+
"BadRequestError", ""]);
|
|
1663
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1664
|
+
case 4:
|
|
1665
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1666
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1667
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1668
|
+
return [4, response.body.text()];
|
|
1669
|
+
case 5:
|
|
1670
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1671
|
+
"App", ""]);
|
|
1672
|
+
return [2, body];
|
|
1673
|
+
case 6:
|
|
1674
|
+
_o = exception_1.ApiException.bind;
|
|
1675
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1676
|
+
return [4, response.getBodyAsAny()];
|
|
1677
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1678
|
+
}
|
|
1679
|
+
});
|
|
1680
|
+
});
|
|
1681
|
+
};
|
|
1682
|
+
DefaultApiResponseProcessor.prototype.createNotification = function (response) {
|
|
1683
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1684
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1685
|
+
return __generator(this, function (_q) {
|
|
1686
|
+
switch (_q.label) {
|
|
1687
|
+
case 0:
|
|
1688
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1689
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1690
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1691
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1692
|
+
return [4, response.body.text()];
|
|
1693
|
+
case 1:
|
|
1694
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1695
|
+
"CreateNotificationSuccessResponse", ""]);
|
|
1696
|
+
return [2, body];
|
|
1697
|
+
case 2:
|
|
1698
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1699
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1700
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1701
|
+
return [4, response.body.text()];
|
|
1702
|
+
case 3:
|
|
1703
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1704
|
+
"BadRequestError", ""]);
|
|
1705
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1706
|
+
case 4:
|
|
1707
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1708
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1709
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1710
|
+
return [4, response.body.text()];
|
|
1711
|
+
case 5:
|
|
1712
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1713
|
+
"CreateNotificationSuccessResponse", ""]);
|
|
1714
|
+
return [2, body];
|
|
1715
|
+
case 6:
|
|
1716
|
+
_o = exception_1.ApiException.bind;
|
|
1717
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1718
|
+
return [4, response.getBodyAsAny()];
|
|
1719
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1720
|
+
}
|
|
1721
|
+
});
|
|
1722
|
+
});
|
|
1723
|
+
};
|
|
1724
|
+
DefaultApiResponseProcessor.prototype.createPlayer = function (response) {
|
|
1725
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1726
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1727
|
+
return __generator(this, function (_q) {
|
|
1728
|
+
switch (_q.label) {
|
|
1729
|
+
case 0:
|
|
1730
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1731
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1732
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1733
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1734
|
+
return [4, response.body.text()];
|
|
1735
|
+
case 1:
|
|
1736
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1737
|
+
"CreatePlayerSuccessResponse", ""]);
|
|
1738
|
+
return [2, body];
|
|
1739
|
+
case 2:
|
|
1740
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1741
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1742
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1743
|
+
return [4, response.body.text()];
|
|
1744
|
+
case 3:
|
|
1745
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1746
|
+
"BadRequestError", ""]);
|
|
1747
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1748
|
+
case 4:
|
|
1749
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1750
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1751
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1752
|
+
return [4, response.body.text()];
|
|
1753
|
+
case 5:
|
|
1754
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1755
|
+
"CreatePlayerSuccessResponse", ""]);
|
|
1756
|
+
return [2, body];
|
|
1757
|
+
case 6:
|
|
1758
|
+
_o = exception_1.ApiException.bind;
|
|
1759
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1760
|
+
return [4, response.getBodyAsAny()];
|
|
1761
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1762
|
+
}
|
|
1763
|
+
});
|
|
1764
|
+
});
|
|
1765
|
+
};
|
|
1766
|
+
DefaultApiResponseProcessor.prototype.createSegments = function (response) {
|
|
1767
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1768
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1769
|
+
return __generator(this, function (_u) {
|
|
1770
|
+
switch (_u.label) {
|
|
1771
|
+
case 0:
|
|
1772
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1773
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
1774
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1775
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1776
|
+
return [4, response.body.text()];
|
|
1777
|
+
case 1:
|
|
1778
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
1779
|
+
"CreateSegmentSuccessResponse", ""]);
|
|
1780
|
+
return [2, body];
|
|
1781
|
+
case 2:
|
|
1782
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1783
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1784
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1785
|
+
return [4, response.body.text()];
|
|
1786
|
+
case 3:
|
|
1787
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
1788
|
+
"BadRequestError", ""]);
|
|
1789
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1790
|
+
case 4:
|
|
1791
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
|
|
1792
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1793
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1794
|
+
return [4, response.body.text()];
|
|
1795
|
+
case 5:
|
|
1796
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
1797
|
+
"CreateSegmentConflictResponse", ""]);
|
|
1798
|
+
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
1799
|
+
case 6:
|
|
1800
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
1801
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1802
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1803
|
+
return [4, response.body.text()];
|
|
1804
|
+
case 7:
|
|
1805
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
1806
|
+
"CreateSegmentSuccessResponse", ""]);
|
|
1807
|
+
return [2, body];
|
|
1808
|
+
case 8:
|
|
1809
|
+
_s = exception_1.ApiException.bind;
|
|
1810
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1811
|
+
return [4, response.getBodyAsAny()];
|
|
1812
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
1813
|
+
}
|
|
1814
|
+
});
|
|
1815
|
+
});
|
|
1816
|
+
};
|
|
1817
|
+
DefaultApiResponseProcessor.prototype.createSubscription = function (response) {
|
|
1818
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1819
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1820
|
+
return __generator(this, function (_q) {
|
|
1821
|
+
switch (_q.label) {
|
|
1822
|
+
case 0:
|
|
1823
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1824
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
1825
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1826
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1827
|
+
return [4, response.body.text()];
|
|
1828
|
+
case 1:
|
|
1829
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1830
|
+
"InlineResponse201", ""]);
|
|
1831
|
+
return [2, body];
|
|
1832
|
+
case 2:
|
|
1833
|
+
if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 4];
|
|
1834
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1835
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1836
|
+
return [4, response.body.text()];
|
|
1837
|
+
case 3:
|
|
1838
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1839
|
+
"InlineResponse201", ""]);
|
|
1840
|
+
return [2, body];
|
|
1841
|
+
case 4:
|
|
1842
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1843
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1844
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1845
|
+
return [4, response.body.text()];
|
|
1846
|
+
case 5:
|
|
1847
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1848
|
+
"InlineResponse201", ""]);
|
|
1849
|
+
return [2, body];
|
|
1850
|
+
case 6:
|
|
1851
|
+
_o = exception_1.ApiException.bind;
|
|
1852
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1853
|
+
return [4, response.getBodyAsAny()];
|
|
1854
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1855
|
+
}
|
|
1856
|
+
});
|
|
1857
|
+
});
|
|
1858
|
+
};
|
|
1859
|
+
DefaultApiResponseProcessor.prototype.createUser = function (response) {
|
|
1860
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1861
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1862
|
+
return __generator(this, function (_u) {
|
|
1863
|
+
switch (_u.label) {
|
|
1864
|
+
case 0:
|
|
1865
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1866
|
+
if (!(0, util_1.isCodeInRange)("201", response.httpStatusCode)) return [3, 2];
|
|
1867
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1868
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1869
|
+
return [4, response.body.text()];
|
|
1870
|
+
case 1:
|
|
1871
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
1872
|
+
"User", ""]);
|
|
1873
|
+
return [2, body];
|
|
1874
|
+
case 2:
|
|
1875
|
+
if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 4];
|
|
1876
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1877
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1878
|
+
return [4, response.body.text()];
|
|
1879
|
+
case 3:
|
|
1880
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
1881
|
+
"User", ""]);
|
|
1882
|
+
return [2, body];
|
|
1883
|
+
case 4:
|
|
1884
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 6];
|
|
1885
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1886
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1887
|
+
return [4, response.body.text()];
|
|
1888
|
+
case 5:
|
|
1889
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
1890
|
+
"CreateUserConflictResponse", ""]);
|
|
1891
|
+
throw new exception_1.ApiException(409, "Multiple User Identity Conflict", body, response.headers);
|
|
1892
|
+
case 6:
|
|
1893
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
1894
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1895
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1896
|
+
return [4, response.body.text()];
|
|
1897
|
+
case 7:
|
|
1898
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
1899
|
+
"User", ""]);
|
|
1900
|
+
return [2, body];
|
|
1901
|
+
case 8:
|
|
1902
|
+
_s = exception_1.ApiException.bind;
|
|
1903
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1904
|
+
return [4, response.getBodyAsAny()];
|
|
1905
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
1906
|
+
}
|
|
1907
|
+
});
|
|
1908
|
+
});
|
|
1909
|
+
};
|
|
1910
|
+
DefaultApiResponseProcessor.prototype.deleteAlias = function (response) {
|
|
1911
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1912
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1913
|
+
return __generator(this, function (_l) {
|
|
1914
|
+
switch (_l.label) {
|
|
1915
|
+
case 0:
|
|
1916
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1917
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1918
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1919
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1920
|
+
return [4, response.body.text()];
|
|
1921
|
+
case 1:
|
|
1922
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1923
|
+
"InlineResponse200", ""]);
|
|
1924
|
+
return [2, body];
|
|
1925
|
+
case 2:
|
|
1926
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
1927
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1928
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1929
|
+
return [4, response.body.text()];
|
|
1930
|
+
case 3:
|
|
1931
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
1932
|
+
"InlineResponse200", ""]);
|
|
1933
|
+
return [2, body];
|
|
1934
|
+
case 4:
|
|
1935
|
+
_j = exception_1.ApiException.bind;
|
|
1936
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1937
|
+
return [4, response.getBodyAsAny()];
|
|
1938
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
1939
|
+
}
|
|
1940
|
+
});
|
|
1941
|
+
});
|
|
1942
|
+
};
|
|
1943
|
+
DefaultApiResponseProcessor.prototype.deletePlayer = function (response) {
|
|
1944
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1945
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1946
|
+
return __generator(this, function (_u) {
|
|
1947
|
+
switch (_u.label) {
|
|
1948
|
+
case 0:
|
|
1949
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1950
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1951
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1952
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1953
|
+
return [4, response.body.text()];
|
|
1954
|
+
case 1:
|
|
1955
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
1956
|
+
"DeletePlayerSuccessResponse", ""]);
|
|
1957
|
+
return [2, body];
|
|
1958
|
+
case 2:
|
|
1959
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1960
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1961
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1962
|
+
return [4, response.body.text()];
|
|
1963
|
+
case 3:
|
|
1964
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
1965
|
+
"BadRequestError", ""]);
|
|
1966
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1967
|
+
case 4:
|
|
1968
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
1969
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1970
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1971
|
+
return [4, response.body.text()];
|
|
1972
|
+
case 5:
|
|
1973
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
1974
|
+
"DeletePlayerNotFoundResponse", ""]);
|
|
1975
|
+
throw new exception_1.ApiException(404, "Not Found", body, response.headers);
|
|
1976
|
+
case 6:
|
|
1977
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
1978
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1979
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1980
|
+
return [4, response.body.text()];
|
|
1981
|
+
case 7:
|
|
1982
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
1983
|
+
"DeletePlayerSuccessResponse", ""]);
|
|
1984
|
+
return [2, body];
|
|
1985
|
+
case 8:
|
|
1986
|
+
_s = exception_1.ApiException.bind;
|
|
1987
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1988
|
+
return [4, response.getBodyAsAny()];
|
|
1989
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
1990
|
+
}
|
|
1991
|
+
});
|
|
1992
|
+
});
|
|
1993
|
+
};
|
|
1994
|
+
DefaultApiResponseProcessor.prototype.deleteSegments = function (response) {
|
|
1995
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1996
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, body, _o, _p, _q, _r, _s, _t;
|
|
1997
|
+
return __generator(this, function (_u) {
|
|
1998
|
+
switch (_u.label) {
|
|
1999
|
+
case 0:
|
|
2000
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2001
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
2002
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2003
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2004
|
+
return [4, response.body.text()];
|
|
2005
|
+
case 1:
|
|
2006
|
+
body = _b.apply(_a, [_d.apply(_c, [_u.sent(), contentType]),
|
|
2007
|
+
"DeleteSegmentSuccessResponse", ""]);
|
|
2008
|
+
return [2, body];
|
|
2009
|
+
case 2:
|
|
2010
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
2011
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2012
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2013
|
+
return [4, response.body.text()];
|
|
2014
|
+
case 3:
|
|
2015
|
+
body = _f.apply(_e, [_h.apply(_g, [_u.sent(), contentType]),
|
|
2016
|
+
"BadRequestError", ""]);
|
|
2017
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2018
|
+
case 4:
|
|
2019
|
+
if (!(0, util_1.isCodeInRange)("404", response.httpStatusCode)) return [3, 6];
|
|
2020
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2021
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2022
|
+
return [4, response.body.text()];
|
|
2023
|
+
case 5:
|
|
2024
|
+
body = _k.apply(_j, [_m.apply(_l, [_u.sent(), contentType]),
|
|
2025
|
+
"DeleteSegmentNotFoundResponse", ""]);
|
|
2026
|
+
throw new exception_1.ApiException(404, "Not Found", body, response.headers);
|
|
2027
|
+
case 6:
|
|
2028
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
2029
|
+
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2030
|
+
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2031
|
+
return [4, response.body.text()];
|
|
2032
|
+
case 7:
|
|
2033
|
+
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
2034
|
+
"DeleteSegmentSuccessResponse", ""]);
|
|
2035
|
+
return [2, body];
|
|
2036
|
+
case 8:
|
|
2037
|
+
_s = exception_1.ApiException.bind;
|
|
2038
|
+
_t = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2039
|
+
return [4, response.getBodyAsAny()];
|
|
2040
|
+
case 9: throw new (_s.apply(exception_1.ApiException, _t.concat([_u.sent(), response.headers])))();
|
|
2041
|
+
}
|
|
2042
|
+
});
|
|
2043
|
+
});
|
|
2044
|
+
};
|
|
2045
|
+
DefaultApiResponseProcessor.prototype.deleteSubscription = function (response) {
|
|
2046
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2047
|
+
var contentType, body, _a, _b, _c, _d, _e, _f;
|
|
2048
|
+
return __generator(this, function (_g) {
|
|
2049
|
+
switch (_g.label) {
|
|
2050
|
+
case 0:
|
|
2051
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2052
|
+
if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
|
|
2053
|
+
return [2];
|
|
2054
|
+
}
|
|
2055
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
|
|
2056
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2057
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2058
|
+
return [4, response.body.text()];
|
|
2059
|
+
case 1:
|
|
2060
|
+
body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
|
|
2061
|
+
"void", ""]);
|
|
2062
|
+
return [2, body];
|
|
2063
|
+
case 2:
|
|
2064
|
+
_e = exception_1.ApiException.bind;
|
|
2065
|
+
_f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2066
|
+
return [4, response.getBodyAsAny()];
|
|
2067
|
+
case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
|
|
2068
|
+
}
|
|
2069
|
+
});
|
|
2070
|
+
});
|
|
2071
|
+
};
|
|
2072
|
+
DefaultApiResponseProcessor.prototype.deleteUser = function (response) {
|
|
2073
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2074
|
+
var contentType, body, _a, _b, _c, _d, _e, _f;
|
|
2075
|
+
return __generator(this, function (_g) {
|
|
2076
|
+
switch (_g.label) {
|
|
2077
|
+
case 0:
|
|
2078
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2079
|
+
if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
|
|
2080
|
+
return [2];
|
|
2081
|
+
}
|
|
2082
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
|
|
2083
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2084
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2085
|
+
return [4, response.body.text()];
|
|
2086
|
+
case 1:
|
|
2087
|
+
body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
|
|
2088
|
+
"void", ""]);
|
|
2089
|
+
return [2, body];
|
|
2090
|
+
case 2:
|
|
2091
|
+
_e = exception_1.ApiException.bind;
|
|
2092
|
+
_f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2093
|
+
return [4, response.getBodyAsAny()];
|
|
2094
|
+
case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
|
|
2095
|
+
}
|
|
2096
|
+
});
|
|
2097
|
+
});
|
|
2098
|
+
};
|
|
2099
|
+
DefaultApiResponseProcessor.prototype.endLiveActivity = function (response) {
|
|
2100
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2101
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
2102
|
+
return __generator(this, function (_l) {
|
|
2103
|
+
switch (_l.label) {
|
|
2104
|
+
case 0:
|
|
2105
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2106
|
+
if ((0, util_1.isCodeInRange)("204", response.httpStatusCode)) {
|
|
2107
|
+
return [2];
|
|
2108
|
+
}
|
|
2109
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 2];
|
|
2110
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2111
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2112
|
+
return [4, response.body.text()];
|
|
2113
|
+
case 1:
|
|
2114
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2115
|
+
"BadRequestError", ""]);
|
|
2116
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2117
|
+
case 2:
|
|
2118
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
2119
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2120
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2121
|
+
return [4, response.body.text()];
|
|
2122
|
+
case 3:
|
|
2123
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
2124
|
+
"void", ""]);
|
|
2125
|
+
return [2, body];
|
|
2126
|
+
case 4:
|
|
2127
|
+
_j = exception_1.ApiException.bind;
|
|
2128
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2129
|
+
return [4, response.getBodyAsAny()];
|
|
2130
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
2131
|
+
}
|
|
2132
|
+
});
|
|
2133
|
+
});
|
|
2134
|
+
};
|
|
2135
|
+
DefaultApiResponseProcessor.prototype.exportPlayers = function (response) {
|
|
2136
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2137
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2138
|
+
return __generator(this, function (_q) {
|
|
2139
|
+
switch (_q.label) {
|
|
2140
|
+
case 0:
|
|
2141
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2142
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
2143
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2144
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2145
|
+
return [4, response.body.text()];
|
|
2146
|
+
case 1:
|
|
2147
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
2148
|
+
"ExportPlayersSuccessResponse", ""]);
|
|
2149
|
+
return [2, body];
|
|
765
2150
|
case 2:
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
2151
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
2152
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2153
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2154
|
+
return [4, response.body.text()];
|
|
769
2155
|
case 3:
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
2156
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
2157
|
+
"BadRequestError", ""]);
|
|
2158
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2159
|
+
case 4:
|
|
2160
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
2161
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2162
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2163
|
+
return [4, response.body.text()];
|
|
2164
|
+
case 5:
|
|
2165
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
2166
|
+
"ExportPlayersSuccessResponse", ""]);
|
|
2167
|
+
return [2, body];
|
|
2168
|
+
case 6:
|
|
2169
|
+
_o = exception_1.ApiException.bind;
|
|
2170
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2171
|
+
return [4, response.getBodyAsAny()];
|
|
2172
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
773
2173
|
}
|
|
774
2174
|
});
|
|
775
2175
|
});
|
|
776
2176
|
};
|
|
777
|
-
|
|
778
|
-
var _a, _b, _c;
|
|
2177
|
+
DefaultApiResponseProcessor.prototype.fetchAliases = function (response) {
|
|
779
2178
|
return __awaiter(this, void 0, void 0, function () {
|
|
780
|
-
var
|
|
781
|
-
return __generator(this, function (
|
|
782
|
-
switch (
|
|
2179
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
2180
|
+
return __generator(this, function (_l) {
|
|
2181
|
+
switch (_l.label) {
|
|
783
2182
|
case 0:
|
|
784
|
-
|
|
785
|
-
if (
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
throw new baseapi_1.RequiredError("DefaultApi", "updatePlayerTags", "externalUserId");
|
|
790
|
-
}
|
|
791
|
-
localVarPath = '/apps/{app_id}/users/{external_user_id}'
|
|
792
|
-
.replace('{' + 'app_id' + '}', encodeURIComponent(String(appId)))
|
|
793
|
-
.replace('{' + 'external_user_id' + '}', encodeURIComponent(String(externalUserId)));
|
|
794
|
-
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
795
|
-
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
796
|
-
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
797
|
-
"application/json"
|
|
798
|
-
]);
|
|
799
|
-
requestContext.setHeaderParam("Content-Type", contentType);
|
|
800
|
-
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updatePlayerTagsRequestBody, "UpdatePlayerTagsRequestBody", ""), contentType);
|
|
801
|
-
requestContext.setBody(serializedBody);
|
|
802
|
-
authMethod = _config.authMethods["app_key"];
|
|
803
|
-
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
804
|
-
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
2183
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2184
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
2185
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2186
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2187
|
+
return [4, response.body.text()];
|
|
805
2188
|
case 1:
|
|
806
|
-
_d.sent()
|
|
807
|
-
|
|
2189
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
2190
|
+
"UserIdentityResponse", ""]);
|
|
2191
|
+
return [2, body];
|
|
808
2192
|
case 2:
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
2193
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
2194
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2195
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2196
|
+
return [4, response.body.text()];
|
|
812
2197
|
case 3:
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
2198
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
2199
|
+
"UserIdentityResponse", ""]);
|
|
2200
|
+
return [2, body];
|
|
2201
|
+
case 4:
|
|
2202
|
+
_j = exception_1.ApiException.bind;
|
|
2203
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2204
|
+
return [4, response.getBodyAsAny()];
|
|
2205
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
816
2206
|
}
|
|
817
2207
|
});
|
|
818
2208
|
});
|
|
819
2209
|
};
|
|
820
|
-
|
|
821
|
-
}(baseapi_1.BaseAPIRequestFactory));
|
|
822
|
-
exports.DefaultApiRequestFactory = DefaultApiRequestFactory;
|
|
823
|
-
var DefaultApiResponseProcessor = (function () {
|
|
824
|
-
function DefaultApiResponseProcessor() {
|
|
825
|
-
}
|
|
826
|
-
DefaultApiResponseProcessor.prototype.cancelNotification = function (response) {
|
|
2210
|
+
DefaultApiResponseProcessor.prototype.fetchUser = function (response) {
|
|
827
2211
|
return __awaiter(this, void 0, void 0, function () {
|
|
828
2212
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
829
2213
|
return __generator(this, function (_l) {
|
|
@@ -836,7 +2220,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
836
2220
|
return [4, response.body.text()];
|
|
837
2221
|
case 1:
|
|
838
2222
|
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
839
|
-
"
|
|
2223
|
+
"User", ""]);
|
|
840
2224
|
return [2, body];
|
|
841
2225
|
case 2:
|
|
842
2226
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
@@ -845,7 +2229,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
845
2229
|
return [4, response.body.text()];
|
|
846
2230
|
case 3:
|
|
847
2231
|
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
848
|
-
"
|
|
2232
|
+
"User", ""]);
|
|
849
2233
|
return [2, body];
|
|
850
2234
|
case 4:
|
|
851
2235
|
_j = exception_1.ApiException.bind;
|
|
@@ -856,7 +2240,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
856
2240
|
});
|
|
857
2241
|
});
|
|
858
2242
|
};
|
|
859
|
-
DefaultApiResponseProcessor.prototype.
|
|
2243
|
+
DefaultApiResponseProcessor.prototype.fetchUserIdentity = function (response) {
|
|
860
2244
|
return __awaiter(this, void 0, void 0, function () {
|
|
861
2245
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
862
2246
|
return __generator(this, function (_l) {
|
|
@@ -869,7 +2253,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
869
2253
|
return [4, response.body.text()];
|
|
870
2254
|
case 1:
|
|
871
2255
|
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
872
|
-
"
|
|
2256
|
+
"InlineResponse200", ""]);
|
|
873
2257
|
return [2, body];
|
|
874
2258
|
case 2:
|
|
875
2259
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
@@ -878,7 +2262,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
878
2262
|
return [4, response.body.text()];
|
|
879
2263
|
case 3:
|
|
880
2264
|
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
881
|
-
"
|
|
2265
|
+
"InlineResponse200", ""]);
|
|
882
2266
|
return [2, body];
|
|
883
2267
|
case 4:
|
|
884
2268
|
_j = exception_1.ApiException.bind;
|
|
@@ -889,7 +2273,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
889
2273
|
});
|
|
890
2274
|
});
|
|
891
2275
|
};
|
|
892
|
-
DefaultApiResponseProcessor.prototype.
|
|
2276
|
+
DefaultApiResponseProcessor.prototype.getApp = function (response) {
|
|
893
2277
|
return __awaiter(this, void 0, void 0, function () {
|
|
894
2278
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
895
2279
|
return __generator(this, function (_q) {
|
|
@@ -902,7 +2286,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
902
2286
|
return [4, response.body.text()];
|
|
903
2287
|
case 1:
|
|
904
2288
|
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
905
|
-
"
|
|
2289
|
+
"App", ""]);
|
|
906
2290
|
return [2, body];
|
|
907
2291
|
case 2:
|
|
908
2292
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
@@ -911,7 +2295,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
911
2295
|
return [4, response.body.text()];
|
|
912
2296
|
case 3:
|
|
913
2297
|
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
914
|
-
"
|
|
2298
|
+
"BadRequestError", ""]);
|
|
915
2299
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
916
2300
|
case 4:
|
|
917
2301
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
@@ -920,7 +2304,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
920
2304
|
return [4, response.body.text()];
|
|
921
2305
|
case 5:
|
|
922
2306
|
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
923
|
-
"
|
|
2307
|
+
"App", ""]);
|
|
924
2308
|
return [2, body];
|
|
925
2309
|
case 6:
|
|
926
2310
|
_o = exception_1.ApiException.bind;
|
|
@@ -931,7 +2315,49 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
931
2315
|
});
|
|
932
2316
|
});
|
|
933
2317
|
};
|
|
934
|
-
DefaultApiResponseProcessor.prototype.
|
|
2318
|
+
DefaultApiResponseProcessor.prototype.getApps = function (response) {
|
|
2319
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2320
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2321
|
+
return __generator(this, function (_q) {
|
|
2322
|
+
switch (_q.label) {
|
|
2323
|
+
case 0:
|
|
2324
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
2325
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
2326
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2327
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2328
|
+
return [4, response.body.text()];
|
|
2329
|
+
case 1:
|
|
2330
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
2331
|
+
"Array<App>", ""]);
|
|
2332
|
+
return [2, body];
|
|
2333
|
+
case 2:
|
|
2334
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
2335
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2336
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2337
|
+
return [4, response.body.text()];
|
|
2338
|
+
case 3:
|
|
2339
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
2340
|
+
"BadRequestError", ""]);
|
|
2341
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
2342
|
+
case 4:
|
|
2343
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
2344
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2345
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2346
|
+
return [4, response.body.text()];
|
|
2347
|
+
case 5:
|
|
2348
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
2349
|
+
"Array<App>", ""]);
|
|
2350
|
+
return [2, body];
|
|
2351
|
+
case 6:
|
|
2352
|
+
_o = exception_1.ApiException.bind;
|
|
2353
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2354
|
+
return [4, response.getBodyAsAny()];
|
|
2355
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
2356
|
+
}
|
|
2357
|
+
});
|
|
2358
|
+
});
|
|
2359
|
+
};
|
|
2360
|
+
DefaultApiResponseProcessor.prototype.getEligibleIams = function (response) {
|
|
935
2361
|
return __awaiter(this, void 0, void 0, function () {
|
|
936
2362
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
937
2363
|
return __generator(this, function (_l) {
|
|
@@ -944,7 +2370,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
944
2370
|
return [4, response.body.text()];
|
|
945
2371
|
case 1:
|
|
946
2372
|
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
947
|
-
"
|
|
2373
|
+
"InlineResponse2003", ""]);
|
|
948
2374
|
return [2, body];
|
|
949
2375
|
case 2:
|
|
950
2376
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
@@ -953,7 +2379,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
953
2379
|
return [4, response.body.text()];
|
|
954
2380
|
case 3:
|
|
955
2381
|
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
956
|
-
"
|
|
2382
|
+
"InlineResponse2003", ""]);
|
|
957
2383
|
return [2, body];
|
|
958
2384
|
case 4:
|
|
959
2385
|
_j = exception_1.ApiException.bind;
|
|
@@ -964,20 +2390,20 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
964
2390
|
});
|
|
965
2391
|
});
|
|
966
2392
|
};
|
|
967
|
-
DefaultApiResponseProcessor.prototype.
|
|
2393
|
+
DefaultApiResponseProcessor.prototype.getNotification = function (response) {
|
|
968
2394
|
return __awaiter(this, void 0, void 0, function () {
|
|
969
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m,
|
|
970
|
-
return __generator(this, function (
|
|
971
|
-
switch (
|
|
2395
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2396
|
+
return __generator(this, function (_q) {
|
|
2397
|
+
switch (_q.label) {
|
|
972
2398
|
case 0:
|
|
973
2399
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
974
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2400
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
975
2401
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
976
2402
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
977
2403
|
return [4, response.body.text()];
|
|
978
2404
|
case 1:
|
|
979
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
980
|
-
"
|
|
2405
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
2406
|
+
"NotificationWithMeta", ""]);
|
|
981
2407
|
return [2, body];
|
|
982
2408
|
case 2:
|
|
983
2409
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
@@ -985,41 +2411,32 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
985
2411
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
986
2412
|
return [4, response.body.text()];
|
|
987
2413
|
case 3:
|
|
988
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
989
|
-
"
|
|
2414
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
2415
|
+
"BadRequestError", ""]);
|
|
990
2416
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
991
2417
|
case 4:
|
|
992
|
-
if (!(
|
|
2418
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
993
2419
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
994
2420
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
995
2421
|
return [4, response.body.text()];
|
|
996
2422
|
case 5:
|
|
997
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
998
|
-
"
|
|
999
|
-
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
1000
|
-
case 6:
|
|
1001
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
1002
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1003
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1004
|
-
return [4, response.body.text()];
|
|
1005
|
-
case 7:
|
|
1006
|
-
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
1007
|
-
"CreateSegmentSuccessResponse", ""]);
|
|
2423
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
2424
|
+
"NotificationWithMeta", ""]);
|
|
1008
2425
|
return [2, body];
|
|
1009
|
-
case
|
|
1010
|
-
|
|
1011
|
-
|
|
2426
|
+
case 6:
|
|
2427
|
+
_o = exception_1.ApiException.bind;
|
|
2428
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1012
2429
|
return [4, response.getBodyAsAny()];
|
|
1013
|
-
case
|
|
2430
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1014
2431
|
}
|
|
1015
2432
|
});
|
|
1016
2433
|
});
|
|
1017
2434
|
};
|
|
1018
|
-
DefaultApiResponseProcessor.prototype.
|
|
2435
|
+
DefaultApiResponseProcessor.prototype.getNotificationHistory = function (response) {
|
|
1019
2436
|
return __awaiter(this, void 0, void 0, function () {
|
|
1020
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m,
|
|
1021
|
-
return __generator(this, function (
|
|
1022
|
-
switch (
|
|
2437
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2438
|
+
return __generator(this, function (_q) {
|
|
2439
|
+
switch (_q.label) {
|
|
1023
2440
|
case 0:
|
|
1024
2441
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1025
2442
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1027,8 +2444,8 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1027
2444
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1028
2445
|
return [4, response.body.text()];
|
|
1029
2446
|
case 1:
|
|
1030
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1031
|
-
"
|
|
2447
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
2448
|
+
"NotificationHistorySuccessResponse", ""]);
|
|
1032
2449
|
return [2, body];
|
|
1033
2450
|
case 2:
|
|
1034
2451
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
@@ -1036,41 +2453,32 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1036
2453
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1037
2454
|
return [4, response.body.text()];
|
|
1038
2455
|
case 3:
|
|
1039
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1040
|
-
"
|
|
2456
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
2457
|
+
"BadRequestError", ""]);
|
|
1041
2458
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1042
2459
|
case 4:
|
|
1043
|
-
if (!(
|
|
2460
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1044
2461
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1045
2462
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1046
2463
|
return [4, response.body.text()];
|
|
1047
2464
|
case 5:
|
|
1048
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
1049
|
-
"
|
|
1050
|
-
throw new exception_1.ApiException(404, "Not Found", body, response.headers);
|
|
1051
|
-
case 6:
|
|
1052
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
1053
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1054
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1055
|
-
return [4, response.body.text()];
|
|
1056
|
-
case 7:
|
|
1057
|
-
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
1058
|
-
"DeletePlayerSuccessResponse", ""]);
|
|
2465
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
2466
|
+
"NotificationHistorySuccessResponse", ""]);
|
|
1059
2467
|
return [2, body];
|
|
1060
|
-
case
|
|
1061
|
-
|
|
1062
|
-
|
|
2468
|
+
case 6:
|
|
2469
|
+
_o = exception_1.ApiException.bind;
|
|
2470
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1063
2471
|
return [4, response.getBodyAsAny()];
|
|
1064
|
-
case
|
|
2472
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1065
2473
|
}
|
|
1066
2474
|
});
|
|
1067
2475
|
});
|
|
1068
2476
|
};
|
|
1069
|
-
DefaultApiResponseProcessor.prototype.
|
|
2477
|
+
DefaultApiResponseProcessor.prototype.getNotifications = function (response) {
|
|
1070
2478
|
return __awaiter(this, void 0, void 0, function () {
|
|
1071
|
-
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m,
|
|
1072
|
-
return __generator(this, function (
|
|
1073
|
-
switch (
|
|
2479
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2480
|
+
return __generator(this, function (_q) {
|
|
2481
|
+
switch (_q.label) {
|
|
1074
2482
|
case 0:
|
|
1075
2483
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1076
2484
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1078,8 +2486,8 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1078
2486
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1079
2487
|
return [4, response.body.text()];
|
|
1080
2488
|
case 1:
|
|
1081
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1082
|
-
"
|
|
2489
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
2490
|
+
"NotificationSlice", ""]);
|
|
1083
2491
|
return [2, body];
|
|
1084
2492
|
case 2:
|
|
1085
2493
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
@@ -1087,37 +2495,28 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1087
2495
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1088
2496
|
return [4, response.body.text()];
|
|
1089
2497
|
case 3:
|
|
1090
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1091
|
-
"
|
|
2498
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
2499
|
+
"BadRequestError", ""]);
|
|
1092
2500
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1093
2501
|
case 4:
|
|
1094
|
-
if (!(
|
|
2502
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1095
2503
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1096
2504
|
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1097
2505
|
return [4, response.body.text()];
|
|
1098
|
-
case 5:
|
|
1099
|
-
body = _k.apply(_j, [_m.apply(_l, [
|
|
1100
|
-
"
|
|
1101
|
-
throw new exception_1.ApiException(404, "Not Found", body, response.headers);
|
|
1102
|
-
case 6:
|
|
1103
|
-
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 8];
|
|
1104
|
-
_p = (_o = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1105
|
-
_r = (_q = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1106
|
-
return [4, response.body.text()];
|
|
1107
|
-
case 7:
|
|
1108
|
-
body = _p.apply(_o, [_r.apply(_q, [_u.sent(), contentType]),
|
|
1109
|
-
"DeleteSegmentSuccessResponse", ""]);
|
|
2506
|
+
case 5:
|
|
2507
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
2508
|
+
"NotificationSlice", ""]);
|
|
1110
2509
|
return [2, body];
|
|
1111
|
-
case
|
|
1112
|
-
|
|
1113
|
-
|
|
2510
|
+
case 6:
|
|
2511
|
+
_o = exception_1.ApiException.bind;
|
|
2512
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1114
2513
|
return [4, response.getBodyAsAny()];
|
|
1115
|
-
case
|
|
2514
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1116
2515
|
}
|
|
1117
2516
|
});
|
|
1118
2517
|
});
|
|
1119
2518
|
};
|
|
1120
|
-
DefaultApiResponseProcessor.prototype.
|
|
2519
|
+
DefaultApiResponseProcessor.prototype.getOutcomes = function (response) {
|
|
1121
2520
|
return __awaiter(this, void 0, void 0, function () {
|
|
1122
2521
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1123
2522
|
return __generator(this, function (_q) {
|
|
@@ -1130,7 +2529,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1130
2529
|
return [4, response.body.text()];
|
|
1131
2530
|
case 1:
|
|
1132
2531
|
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1133
|
-
"
|
|
2532
|
+
"OutcomesData", ""]);
|
|
1134
2533
|
return [2, body];
|
|
1135
2534
|
case 2:
|
|
1136
2535
|
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
@@ -1139,7 +2538,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1139
2538
|
return [4, response.body.text()];
|
|
1140
2539
|
case 3:
|
|
1141
2540
|
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1142
|
-
"
|
|
2541
|
+
"BadRequestError", ""]);
|
|
1143
2542
|
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1144
2543
|
case 4:
|
|
1145
2544
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
@@ -1148,7 +2547,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1148
2547
|
return [4, response.body.text()];
|
|
1149
2548
|
case 5:
|
|
1150
2549
|
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1151
|
-
"
|
|
2550
|
+
"OutcomesData", ""]);
|
|
1152
2551
|
return [2, body];
|
|
1153
2552
|
case 6:
|
|
1154
2553
|
_o = exception_1.ApiException.bind;
|
|
@@ -1159,11 +2558,11 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1159
2558
|
});
|
|
1160
2559
|
});
|
|
1161
2560
|
};
|
|
1162
|
-
DefaultApiResponseProcessor.prototype.
|
|
2561
|
+
DefaultApiResponseProcessor.prototype.getPlayer = function (response) {
|
|
1163
2562
|
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 (
|
|
2563
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2564
|
+
return __generator(this, function (_q) {
|
|
2565
|
+
switch (_q.label) {
|
|
1167
2566
|
case 0:
|
|
1168
2567
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1169
2568
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1171,32 +2570,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1171
2570
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1172
2571
|
return [4, response.body.text()];
|
|
1173
2572
|
case 1:
|
|
1174
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1175
|
-
"
|
|
2573
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
2574
|
+
"Player", ""]);
|
|
1176
2575
|
return [2, body];
|
|
1177
2576
|
case 2:
|
|
1178
|
-
if (!(
|
|
2577
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1179
2578
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1180
2579
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1181
2580
|
return [4, response.body.text()];
|
|
1182
2581
|
case 3:
|
|
1183
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1184
|
-
"
|
|
1185
|
-
|
|
2582
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
2583
|
+
"BadRequestError", ""]);
|
|
2584
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1186
2585
|
case 4:
|
|
1187
|
-
|
|
1188
|
-
_k =
|
|
2586
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
2587
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2588
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2589
|
+
return [4, response.body.text()];
|
|
2590
|
+
case 5:
|
|
2591
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
2592
|
+
"Player", ""]);
|
|
2593
|
+
return [2, body];
|
|
2594
|
+
case 6:
|
|
2595
|
+
_o = exception_1.ApiException.bind;
|
|
2596
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1189
2597
|
return [4, response.getBodyAsAny()];
|
|
1190
|
-
case
|
|
2598
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1191
2599
|
}
|
|
1192
2600
|
});
|
|
1193
2601
|
});
|
|
1194
2602
|
};
|
|
1195
|
-
DefaultApiResponseProcessor.prototype.
|
|
2603
|
+
DefaultApiResponseProcessor.prototype.getPlayers = function (response) {
|
|
1196
2604
|
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 (
|
|
2605
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2606
|
+
return __generator(this, function (_q) {
|
|
2607
|
+
switch (_q.label) {
|
|
1200
2608
|
case 0:
|
|
1201
2609
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1202
2610
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1204,32 +2612,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1204
2612
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1205
2613
|
return [4, response.body.text()];
|
|
1206
2614
|
case 1:
|
|
1207
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1208
|
-
"
|
|
2615
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
2616
|
+
"PlayerSlice", ""]);
|
|
1209
2617
|
return [2, body];
|
|
1210
2618
|
case 2:
|
|
1211
|
-
if (!(
|
|
2619
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1212
2620
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1213
2621
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1214
2622
|
return [4, response.body.text()];
|
|
1215
2623
|
case 3:
|
|
1216
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1217
|
-
"
|
|
1218
|
-
|
|
2624
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
2625
|
+
"BadRequestError", ""]);
|
|
2626
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1219
2627
|
case 4:
|
|
1220
|
-
|
|
1221
|
-
_k =
|
|
2628
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
2629
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2630
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2631
|
+
return [4, response.body.text()];
|
|
2632
|
+
case 5:
|
|
2633
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
2634
|
+
"PlayerSlice", ""]);
|
|
2635
|
+
return [2, body];
|
|
2636
|
+
case 6:
|
|
2637
|
+
_o = exception_1.ApiException.bind;
|
|
2638
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1222
2639
|
return [4, response.getBodyAsAny()];
|
|
1223
|
-
case
|
|
2640
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1224
2641
|
}
|
|
1225
2642
|
});
|
|
1226
2643
|
});
|
|
1227
2644
|
};
|
|
1228
|
-
DefaultApiResponseProcessor.prototype.
|
|
2645
|
+
DefaultApiResponseProcessor.prototype.identifyUserByAlias = function (response) {
|
|
1229
2646
|
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 (
|
|
2647
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2648
|
+
return __generator(this, function (_q) {
|
|
2649
|
+
switch (_q.label) {
|
|
1233
2650
|
case 0:
|
|
1234
2651
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1235
2652
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1237,28 +2654,37 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1237
2654
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1238
2655
|
return [4, response.body.text()];
|
|
1239
2656
|
case 1:
|
|
1240
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1241
|
-
"
|
|
2657
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
2658
|
+
"InlineResponse200", ""]);
|
|
1242
2659
|
return [2, body];
|
|
1243
2660
|
case 2:
|
|
1244
|
-
if (!(
|
|
2661
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
|
|
1245
2662
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1246
2663
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1247
2664
|
return [4, response.body.text()];
|
|
1248
2665
|
case 3:
|
|
1249
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1250
|
-
"
|
|
1251
|
-
|
|
2666
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
2667
|
+
"IdentifyUserConflictResponse", ""]);
|
|
2668
|
+
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
1252
2669
|
case 4:
|
|
1253
|
-
|
|
1254
|
-
_k =
|
|
2670
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
2671
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2672
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2673
|
+
return [4, response.body.text()];
|
|
2674
|
+
case 5:
|
|
2675
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
2676
|
+
"InlineResponse200", ""]);
|
|
2677
|
+
return [2, body];
|
|
2678
|
+
case 6:
|
|
2679
|
+
_o = exception_1.ApiException.bind;
|
|
2680
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1255
2681
|
return [4, response.getBodyAsAny()];
|
|
1256
|
-
case
|
|
2682
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1257
2683
|
}
|
|
1258
2684
|
});
|
|
1259
2685
|
});
|
|
1260
2686
|
};
|
|
1261
|
-
DefaultApiResponseProcessor.prototype.
|
|
2687
|
+
DefaultApiResponseProcessor.prototype.identifyUserBySubscriptionId = function (response) {
|
|
1262
2688
|
return __awaiter(this, void 0, void 0, function () {
|
|
1263
2689
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
1264
2690
|
return __generator(this, function (_q) {
|
|
@@ -1271,17 +2697,17 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1271
2697
|
return [4, response.body.text()];
|
|
1272
2698
|
case 1:
|
|
1273
2699
|
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
1274
|
-
"
|
|
2700
|
+
"UserIdentityResponse", ""]);
|
|
1275
2701
|
return [2, body];
|
|
1276
2702
|
case 2:
|
|
1277
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2703
|
+
if (!(0, util_1.isCodeInRange)("409", response.httpStatusCode)) return [3, 4];
|
|
1278
2704
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1279
2705
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1280
2706
|
return [4, response.body.text()];
|
|
1281
2707
|
case 3:
|
|
1282
2708
|
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
1283
|
-
"
|
|
1284
|
-
throw new exception_1.ApiException(
|
|
2709
|
+
"IdentifyUserConflictResponse", ""]);
|
|
2710
|
+
throw new exception_1.ApiException(409, "Conflict", body, response.headers);
|
|
1285
2711
|
case 4:
|
|
1286
2712
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
1287
2713
|
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
@@ -1289,7 +2715,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1289
2715
|
return [4, response.body.text()];
|
|
1290
2716
|
case 5:
|
|
1291
2717
|
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
1292
|
-
"
|
|
2718
|
+
"UserIdentityResponse", ""]);
|
|
1293
2719
|
return [2, body];
|
|
1294
2720
|
case 6:
|
|
1295
2721
|
_o = exception_1.ApiException.bind;
|
|
@@ -1300,7 +2726,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1300
2726
|
});
|
|
1301
2727
|
});
|
|
1302
2728
|
};
|
|
1303
|
-
DefaultApiResponseProcessor.prototype.
|
|
2729
|
+
DefaultApiResponseProcessor.prototype.transferSubscription = function (response) {
|
|
1304
2730
|
return __awaiter(this, void 0, void 0, function () {
|
|
1305
2731
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1306
2732
|
return __generator(this, function (_l) {
|
|
@@ -1313,7 +2739,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1313
2739
|
return [4, response.body.text()];
|
|
1314
2740
|
case 1:
|
|
1315
2741
|
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1316
|
-
"
|
|
2742
|
+
"UserIdentityResponse", ""]);
|
|
1317
2743
|
return [2, body];
|
|
1318
2744
|
case 2:
|
|
1319
2745
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
@@ -1322,7 +2748,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1322
2748
|
return [4, response.body.text()];
|
|
1323
2749
|
case 3:
|
|
1324
2750
|
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
1325
|
-
"
|
|
2751
|
+
"UserIdentityResponse", ""]);
|
|
1326
2752
|
return [2, body];
|
|
1327
2753
|
case 4:
|
|
1328
2754
|
_j = exception_1.ApiException.bind;
|
|
@@ -1333,11 +2759,11 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1333
2759
|
});
|
|
1334
2760
|
});
|
|
1335
2761
|
};
|
|
1336
|
-
DefaultApiResponseProcessor.prototype.
|
|
2762
|
+
DefaultApiResponseProcessor.prototype.updateApp = function (response) {
|
|
1337
2763
|
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 (
|
|
2764
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2765
|
+
return __generator(this, function (_q) {
|
|
2766
|
+
switch (_q.label) {
|
|
1341
2767
|
case 0:
|
|
1342
2768
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1343
2769
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1345,32 +2771,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1345
2771
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1346
2772
|
return [4, response.body.text()];
|
|
1347
2773
|
case 1:
|
|
1348
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1349
|
-
"
|
|
2774
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
2775
|
+
"App", ""]);
|
|
1350
2776
|
return [2, body];
|
|
1351
2777
|
case 2:
|
|
1352
|
-
if (!(
|
|
2778
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1353
2779
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1354
2780
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1355
2781
|
return [4, response.body.text()];
|
|
1356
2782
|
case 3:
|
|
1357
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1358
|
-
"
|
|
1359
|
-
|
|
2783
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
2784
|
+
"BadRequestError", ""]);
|
|
2785
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1360
2786
|
case 4:
|
|
1361
|
-
|
|
1362
|
-
_k =
|
|
2787
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
2788
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2789
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2790
|
+
return [4, response.body.text()];
|
|
2791
|
+
case 5:
|
|
2792
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
2793
|
+
"App", ""]);
|
|
2794
|
+
return [2, body];
|
|
2795
|
+
case 6:
|
|
2796
|
+
_o = exception_1.ApiException.bind;
|
|
2797
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1363
2798
|
return [4, response.getBodyAsAny()];
|
|
1364
|
-
case
|
|
2799
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1365
2800
|
}
|
|
1366
2801
|
});
|
|
1367
2802
|
});
|
|
1368
2803
|
};
|
|
1369
|
-
DefaultApiResponseProcessor.prototype.
|
|
2804
|
+
DefaultApiResponseProcessor.prototype.updateLiveActivity = function (response) {
|
|
1370
2805
|
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 (
|
|
2806
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2807
|
+
return __generator(this, function (_q) {
|
|
2808
|
+
switch (_q.label) {
|
|
1374
2809
|
case 0:
|
|
1375
2810
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1376
2811
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1378,32 +2813,41 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1378
2813
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1379
2814
|
return [4, response.body.text()];
|
|
1380
2815
|
case 1:
|
|
1381
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1382
|
-
"
|
|
2816
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
2817
|
+
"UpdateLiveActivitySuccessResponse", ""]);
|
|
1383
2818
|
return [2, body];
|
|
1384
2819
|
case 2:
|
|
1385
|
-
if (!(
|
|
2820
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1386
2821
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1387
2822
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1388
2823
|
return [4, response.body.text()];
|
|
1389
2824
|
case 3:
|
|
1390
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1391
|
-
"
|
|
1392
|
-
|
|
2825
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
2826
|
+
"BadRequestError", ""]);
|
|
2827
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1393
2828
|
case 4:
|
|
1394
|
-
|
|
1395
|
-
_k =
|
|
2829
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
2830
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2831
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2832
|
+
return [4, response.body.text()];
|
|
2833
|
+
case 5:
|
|
2834
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
2835
|
+
"UpdateLiveActivitySuccessResponse", ""]);
|
|
2836
|
+
return [2, body];
|
|
2837
|
+
case 6:
|
|
2838
|
+
_o = exception_1.ApiException.bind;
|
|
2839
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1396
2840
|
return [4, response.getBodyAsAny()];
|
|
1397
|
-
case
|
|
2841
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1398
2842
|
}
|
|
1399
2843
|
});
|
|
1400
2844
|
});
|
|
1401
2845
|
};
|
|
1402
|
-
DefaultApiResponseProcessor.prototype.
|
|
2846
|
+
DefaultApiResponseProcessor.prototype.updatePlayer = function (response) {
|
|
1403
2847
|
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 (
|
|
2848
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, body, _j, _k, _l, _m, _o, _p;
|
|
2849
|
+
return __generator(this, function (_q) {
|
|
2850
|
+
switch (_q.label) {
|
|
1407
2851
|
case 0:
|
|
1408
2852
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1409
2853
|
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
@@ -1411,28 +2855,37 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1411
2855
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1412
2856
|
return [4, response.body.text()];
|
|
1413
2857
|
case 1:
|
|
1414
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1415
|
-
"
|
|
2858
|
+
body = _b.apply(_a, [_d.apply(_c, [_q.sent(), contentType]),
|
|
2859
|
+
"UpdatePlayerSuccessResponse", ""]);
|
|
1416
2860
|
return [2, body];
|
|
1417
2861
|
case 2:
|
|
1418
|
-
if (!(
|
|
2862
|
+
if (!(0, util_1.isCodeInRange)("400", response.httpStatusCode)) return [3, 4];
|
|
1419
2863
|
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1420
2864
|
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1421
2865
|
return [4, response.body.text()];
|
|
1422
2866
|
case 3:
|
|
1423
|
-
body = _f.apply(_e, [_h.apply(_g, [
|
|
1424
|
-
"
|
|
1425
|
-
|
|
2867
|
+
body = _f.apply(_e, [_h.apply(_g, [_q.sent(), contentType]),
|
|
2868
|
+
"BadRequestError", ""]);
|
|
2869
|
+
throw new exception_1.ApiException(400, "Bad Request", body, response.headers);
|
|
1426
2870
|
case 4:
|
|
1427
|
-
|
|
1428
|
-
_k =
|
|
2871
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 6];
|
|
2872
|
+
_k = (_j = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
2873
|
+
_m = (_l = ObjectSerializer_1.ObjectSerializer).parse;
|
|
2874
|
+
return [4, response.body.text()];
|
|
2875
|
+
case 5:
|
|
2876
|
+
body = _k.apply(_j, [_m.apply(_l, [_q.sent(), contentType]),
|
|
2877
|
+
"UpdatePlayerSuccessResponse", ""]);
|
|
2878
|
+
return [2, body];
|
|
2879
|
+
case 6:
|
|
2880
|
+
_o = exception_1.ApiException.bind;
|
|
2881
|
+
_p = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1429
2882
|
return [4, response.getBodyAsAny()];
|
|
1430
|
-
case
|
|
2883
|
+
case 7: throw new (_o.apply(exception_1.ApiException, _p.concat([_q.sent(), response.headers])))();
|
|
1431
2884
|
}
|
|
1432
2885
|
});
|
|
1433
2886
|
});
|
|
1434
2887
|
};
|
|
1435
|
-
DefaultApiResponseProcessor.prototype.
|
|
2888
|
+
DefaultApiResponseProcessor.prototype.updatePlayerTags = function (response) {
|
|
1436
2889
|
return __awaiter(this, void 0, void 0, function () {
|
|
1437
2890
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1438
2891
|
return __generator(this, function (_l) {
|
|
@@ -1445,7 +2898,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1445
2898
|
return [4, response.body.text()];
|
|
1446
2899
|
case 1:
|
|
1447
2900
|
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1448
|
-
"
|
|
2901
|
+
"UpdatePlayerTagsSuccessResponse", ""]);
|
|
1449
2902
|
return [2, body];
|
|
1450
2903
|
case 2:
|
|
1451
2904
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
@@ -1454,7 +2907,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1454
2907
|
return [4, response.body.text()];
|
|
1455
2908
|
case 3:
|
|
1456
2909
|
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
1457
|
-
"
|
|
2910
|
+
"UpdatePlayerTagsSuccessResponse", ""]);
|
|
1458
2911
|
return [2, body];
|
|
1459
2912
|
case 4:
|
|
1460
2913
|
_j = exception_1.ApiException.bind;
|
|
@@ -1465,53 +2918,47 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1465
2918
|
});
|
|
1466
2919
|
});
|
|
1467
2920
|
};
|
|
1468
|
-
DefaultApiResponseProcessor.prototype.
|
|
2921
|
+
DefaultApiResponseProcessor.prototype.updateSubscription = function (response) {
|
|
1469
2922
|
return __awaiter(this, void 0, void 0, function () {
|
|
1470
|
-
var contentType, body, _a, _b, _c, _d,
|
|
1471
|
-
return __generator(this, function (
|
|
1472
|
-
switch (
|
|
2923
|
+
var contentType, body, _a, _b, _c, _d, _e, _f;
|
|
2924
|
+
return __generator(this, function (_g) {
|
|
2925
|
+
switch (_g.label) {
|
|
1473
2926
|
case 0:
|
|
1474
2927
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1475
|
-
if (
|
|
2928
|
+
if ((0, util_1.isCodeInRange)("202", response.httpStatusCode)) {
|
|
2929
|
+
return [2];
|
|
2930
|
+
}
|
|
2931
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
|
|
1476
2932
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1477
2933
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1478
2934
|
return [4, response.body.text()];
|
|
1479
2935
|
case 1:
|
|
1480
|
-
body = _b.apply(_a, [_d.apply(_c, [
|
|
1481
|
-
"
|
|
2936
|
+
body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
|
|
2937
|
+
"void", ""]);
|
|
1482
2938
|
return [2, body];
|
|
1483
2939
|
case 2:
|
|
1484
|
-
|
|
1485
|
-
_f =
|
|
1486
|
-
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1487
|
-
return [4, response.body.text()];
|
|
1488
|
-
case 3:
|
|
1489
|
-
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
1490
|
-
"UpdatePlayerSuccessResponse", ""]);
|
|
1491
|
-
return [2, body];
|
|
1492
|
-
case 4:
|
|
1493
|
-
_j = exception_1.ApiException.bind;
|
|
1494
|
-
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
2940
|
+
_e = exception_1.ApiException.bind;
|
|
2941
|
+
_f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1495
2942
|
return [4, response.getBodyAsAny()];
|
|
1496
|
-
case
|
|
2943
|
+
case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
|
|
1497
2944
|
}
|
|
1498
2945
|
});
|
|
1499
2946
|
});
|
|
1500
2947
|
};
|
|
1501
|
-
DefaultApiResponseProcessor.prototype.
|
|
2948
|
+
DefaultApiResponseProcessor.prototype.updateUser = function (response) {
|
|
1502
2949
|
return __awaiter(this, void 0, void 0, function () {
|
|
1503
2950
|
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1504
2951
|
return __generator(this, function (_l) {
|
|
1505
2952
|
switch (_l.label) {
|
|
1506
2953
|
case 0:
|
|
1507
2954
|
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1508
|
-
if (!(0, util_1.isCodeInRange)("
|
|
2955
|
+
if (!(0, util_1.isCodeInRange)("202", response.httpStatusCode)) return [3, 2];
|
|
1509
2956
|
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1510
2957
|
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1511
2958
|
return [4, response.body.text()];
|
|
1512
2959
|
case 1:
|
|
1513
2960
|
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1514
|
-
"
|
|
2961
|
+
"InlineResponse202", ""]);
|
|
1515
2962
|
return [2, body];
|
|
1516
2963
|
case 2:
|
|
1517
2964
|
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
@@ -1520,7 +2967,7 @@ var DefaultApiResponseProcessor = (function () {
|
|
|
1520
2967
|
return [4, response.body.text()];
|
|
1521
2968
|
case 3:
|
|
1522
2969
|
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
1523
|
-
"
|
|
2970
|
+
"InlineResponse202", ""]);
|
|
1524
2971
|
return [2, body];
|
|
1525
2972
|
case 4:
|
|
1526
2973
|
_j = exception_1.ApiException.bind;
|