gs2 1.4.109 → 1.4.111
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/account/request/FindPlatformIdByUserIdRequest.d.ts +4 -0
- package/account/request/FindPlatformIdByUserIdRequest.js +14 -0
- package/account/request/FindPlatformIdByUserIdRequest.js.map +1 -1
- package/account/rest.js +132 -565
- package/account/rest.js.map +1 -1
- package/adReward/rest.js +44 -203
- package/adReward/rest.js.map +1 -1
- package/auth/rest.js +10 -52
- package/auth/rest.js.map +1 -1
- package/buff/rest.js +56 -249
- package/buff/rest.js.map +1 -1
- package/chat/rest.js +108 -463
- package/chat/rest.js.map +1 -1
- package/core/AbstractGs2RestClient.d.ts +9 -0
- package/core/AbstractGs2RestClient.js +48 -0
- package/core/AbstractGs2RestClient.js.map +1 -1
- package/core/model.d.ts +9 -1
- package/core/model.js +4 -1
- package/core/model.js.map +1 -1
- package/datastore/rest.js +78 -370
- package/datastore/rest.js.map +1 -1
- package/deploy/rest.js +48 -209
- package/deploy/rest.js.map +1 -1
- package/dictionary/rest.js +102 -450
- package/dictionary/rest.js.map +1 -1
- package/distributor/rest.js +96 -465
- package/distributor/rest.js.map +1 -1
- package/enchant/rest.js +112 -497
- package/enchant/rest.js.map +1 -1
- package/enhance/rest.js +100 -455
- package/enhance/rest.js.map +1 -1
- package/exchange/rest.js +108 -491
- package/exchange/rest.js.map +1 -1
- package/experience/rest.js +120 -561
- package/experience/rest.js.map +1 -1
- package/formation/rest.js +158 -686
- package/formation/rest.js.map +1 -1
- package/freeze/rest.js +12 -51
- package/freeze/rest.js.map +1 -1
- package/friend/rest.js +118 -490
- package/friend/rest.js.map +1 -1
- package/gateway/rest.js +56 -245
- package/gateway/rest.js.map +1 -1
- package/grade/rest.js +96 -449
- package/grade/rest.js.map +1 -1
- package/guard/rest.js +14 -58
- package/guard/rest.js.map +1 -1
- package/guild/rest.js +186 -840
- package/guild/rest.js.map +1 -1
- package/identifier/rest.js +60 -259
- package/identifier/rest.js.map +1 -1
- package/idle/rest.js +84 -387
- package/idle/rest.js.map +1 -1
- package/inbox/rest.js +96 -437
- package/inbox/rest.js.map +1 -1
- package/inventory/rest.js +270 -1206
- package/inventory/rest.js.map +1 -1
- package/jobQueue/rest.js +50 -220
- package/jobQueue/rest.js.map +1 -1
- package/key/rest.js +38 -166
- package/key/rest.js.map +1 -1
- package/limit/rest.js +80 -361
- package/limit/rest.js.map +1 -1
- package/lock/rest.js +28 -123
- package/lock/rest.js.map +1 -1
- package/log/rest.js +46 -186
- package/log/rest.js.map +1 -1
- package/loginReward/rest.js +82 -376
- package/loginReward/rest.js.map +1 -1
- package/lottery/rest.js +100 -427
- package/lottery/rest.js.map +1 -1
- package/matchmaking/rest.js +146 -644
- package/matchmaking/rest.js.map +1 -1
- package/megaField/rest.js +68 -307
- package/megaField/rest.js.map +1 -1
- package/mission/rest.js +158 -726
- package/mission/rest.js.map +1 -1
- package/money/rest.js +58 -264
- package/money/rest.js.map +1 -1
- package/money2/rest.js +126 -542
- package/money2/rest.js.map +1 -1
- package/news/rest.js +36 -147
- package/news/rest.js.map +1 -1
- package/package.json +1 -1
- package/project/request/WaitCleanUserDataRequest.d.ts +0 -4
- package/project/request/WaitCleanUserDataRequest.js +0 -14
- package/project/request/WaitCleanUserDataRequest.js.map +1 -1
- package/project/request/WaitDumpUserDataRequest.d.ts +0 -4
- package/project/request/WaitDumpUserDataRequest.js +0 -14
- package/project/request/WaitDumpUserDataRequest.js.map +1 -1
- package/project/request/WaitImportUserDataRequest.d.ts +0 -4
- package/project/request/WaitImportUserDataRequest.js +0 -14
- package/project/request/WaitImportUserDataRequest.js.map +1 -1
- package/project/rest.js +91 -411
- package/project/rest.js.map +1 -1
- package/quest/rest.js +100 -431
- package/quest/rest.js.map +1 -1
- package/ranking/rest.js +92 -387
- package/ranking/rest.js.map +1 -1
- package/ranking2/rest.js +220 -939
- package/ranking2/rest.js.map +1 -1
- package/realtime/rest.js +24 -97
- package/realtime/rest.js.map +1 -1
- package/schedule/rest.js +94 -418
- package/schedule/rest.js.map +1 -1
- package/script/rest.js +34 -156
- package/script/rest.js.map +1 -1
- package/seasonRating/rest.js +70 -314
- package/seasonRating/rest.js.map +1 -1
- package/serialKey/rest.js +84 -383
- package/serialKey/rest.js.map +1 -1
- package/showcase/rest.js +116 -515
- package/showcase/rest.js.map +1 -1
- package/skillTree/rest.js +82 -372
- package/skillTree/rest.js.map +1 -1
- package/stamina/rest.js +166 -798
- package/stamina/rest.js.map +1 -1
- package/stateMachine/rest.js +62 -270
- package/stateMachine/rest.js.map +1 -1
- package/version/rest.js +78 -346
- package/version/rest.js.map +1 -1
- package/watch/rest.js +156 -563
- package/watch/rest.js.map +1 -1
package/matchmaking/rest.js
CHANGED
|
@@ -19,7 +19,6 @@ var tslib_1 = require("tslib");
|
|
|
19
19
|
var AbstractGs2RestClient_1 = tslib_1.__importDefault(require("../core/AbstractGs2RestClient"));
|
|
20
20
|
var model_1 = require("../core/model");
|
|
21
21
|
var Result = tslib_1.__importStar(require("./result"));
|
|
22
|
-
var axios_1 = tslib_1.__importDefault(require("axios"));
|
|
23
22
|
var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
24
23
|
tslib_1.__extends(Gs2MatchmakingRestClient, _super);
|
|
25
24
|
function Gs2MatchmakingRestClient(session) {
|
|
@@ -40,13 +39,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
40
39
|
'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
|
|
41
40
|
'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
|
|
42
41
|
};
|
|
43
|
-
return
|
|
44
|
-
|
|
45
|
-
headers: headers,
|
|
46
|
-
}).then(function (response) {
|
|
47
|
-
return Result.DescribeNamespacesResult.fromDict(response.data);
|
|
48
|
-
}).catch(function (error) {
|
|
49
|
-
throw JSON.parse(error.response.data.message);
|
|
42
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
43
|
+
return Result.DescribeNamespacesResult.fromDict(data);
|
|
50
44
|
});
|
|
51
45
|
};
|
|
52
46
|
Gs2MatchmakingRestClient.prototype.createNamespace = function (request) {
|
|
@@ -82,17 +76,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
82
76
|
'changeRatingNotification': (_3 = (_2 = request.getChangeRatingNotification()) === null || _2 === void 0 ? void 0 : _2.toDict()) !== null && _3 !== void 0 ? _3 : null,
|
|
83
77
|
'logSetting': (_5 = (_4 = request.getLogSetting()) === null || _4 === void 0 ? void 0 : _4.toDict()) !== null && _5 !== void 0 ? _5 : null,
|
|
84
78
|
};
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
}).then(function (response) {
|
|
88
|
-
return Result.CreateNamespaceResult.fromDict(response.data);
|
|
89
|
-
}).catch(function (error) {
|
|
90
|
-
if (error.response) {
|
|
91
|
-
throw JSON.parse(error.response.data.message);
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
throw [];
|
|
95
|
-
}
|
|
79
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
80
|
+
return Result.CreateNamespaceResult.fromDict(data);
|
|
96
81
|
});
|
|
97
82
|
};
|
|
98
83
|
Gs2MatchmakingRestClient.prototype.getNamespaceStatus = function (request) {
|
|
@@ -108,13 +93,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
108
93
|
var params = {
|
|
109
94
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
110
95
|
};
|
|
111
|
-
return
|
|
112
|
-
|
|
113
|
-
headers: headers,
|
|
114
|
-
}).then(function (response) {
|
|
115
|
-
return Result.GetNamespaceStatusResult.fromDict(response.data);
|
|
116
|
-
}).catch(function (error) {
|
|
117
|
-
throw JSON.parse(error.response.data.message);
|
|
96
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
97
|
+
return Result.GetNamespaceStatusResult.fromDict(data);
|
|
118
98
|
});
|
|
119
99
|
};
|
|
120
100
|
Gs2MatchmakingRestClient.prototype.getNamespace = function (request) {
|
|
@@ -130,13 +110,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
130
110
|
var params = {
|
|
131
111
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
132
112
|
};
|
|
133
|
-
return
|
|
134
|
-
|
|
135
|
-
headers: headers,
|
|
136
|
-
}).then(function (response) {
|
|
137
|
-
return Result.GetNamespaceResult.fromDict(response.data);
|
|
138
|
-
}).catch(function (error) {
|
|
139
|
-
throw JSON.parse(error.response.data.message);
|
|
113
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
114
|
+
return Result.GetNamespaceResult.fromDict(data);
|
|
140
115
|
});
|
|
141
116
|
};
|
|
142
117
|
Gs2MatchmakingRestClient.prototype.updateNamespace = function (request) {
|
|
@@ -172,17 +147,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
172
147
|
'changeRatingNotification': (_4 = (_3 = request.getChangeRatingNotification()) === null || _3 === void 0 ? void 0 : _3.toDict()) !== null && _4 !== void 0 ? _4 : null,
|
|
173
148
|
'logSetting': (_6 = (_5 = request.getLogSetting()) === null || _5 === void 0 ? void 0 : _5.toDict()) !== null && _6 !== void 0 ? _6 : null,
|
|
174
149
|
};
|
|
175
|
-
return
|
|
176
|
-
|
|
177
|
-
}).then(function (response) {
|
|
178
|
-
return Result.UpdateNamespaceResult.fromDict(response.data);
|
|
179
|
-
}).catch(function (error) {
|
|
180
|
-
if (error.response) {
|
|
181
|
-
throw JSON.parse(error.response.data.message);
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
throw [];
|
|
185
|
-
}
|
|
150
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
151
|
+
return Result.UpdateNamespaceResult.fromDict(data);
|
|
186
152
|
});
|
|
187
153
|
};
|
|
188
154
|
Gs2MatchmakingRestClient.prototype.deleteNamespace = function (request) {
|
|
@@ -198,13 +164,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
198
164
|
var params = {
|
|
199
165
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
200
166
|
};
|
|
201
|
-
return
|
|
202
|
-
|
|
203
|
-
headers: headers,
|
|
204
|
-
}).then(function (response) {
|
|
205
|
-
return Result.DeleteNamespaceResult.fromDict(response.data);
|
|
206
|
-
}).catch(function (error) {
|
|
207
|
-
throw JSON.parse(error.response.data.message);
|
|
167
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
168
|
+
return Result.DeleteNamespaceResult.fromDict(data);
|
|
208
169
|
});
|
|
209
170
|
};
|
|
210
171
|
Gs2MatchmakingRestClient.prototype.getServiceVersion = function (request) {
|
|
@@ -219,13 +180,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
219
180
|
var params = {
|
|
220
181
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
221
182
|
};
|
|
222
|
-
return
|
|
223
|
-
|
|
224
|
-
headers: headers,
|
|
225
|
-
}).then(function (response) {
|
|
226
|
-
return Result.GetServiceVersionResult.fromDict(response.data);
|
|
227
|
-
}).catch(function (error) {
|
|
228
|
-
throw JSON.parse(error.response.data.message);
|
|
183
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
184
|
+
return Result.GetServiceVersionResult.fromDict(data);
|
|
229
185
|
});
|
|
230
186
|
};
|
|
231
187
|
Gs2MatchmakingRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
@@ -244,17 +200,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
244
200
|
var body = {
|
|
245
201
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
246
202
|
};
|
|
247
|
-
return
|
|
248
|
-
|
|
249
|
-
}).then(function (response) {
|
|
250
|
-
return Result.DumpUserDataByUserIdResult.fromDict(response.data);
|
|
251
|
-
}).catch(function (error) {
|
|
252
|
-
if (error.response) {
|
|
253
|
-
throw JSON.parse(error.response.data.message);
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
throw [];
|
|
257
|
-
}
|
|
203
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
204
|
+
return Result.DumpUserDataByUserIdResult.fromDict(data);
|
|
258
205
|
});
|
|
259
206
|
};
|
|
260
207
|
Gs2MatchmakingRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
@@ -273,13 +220,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
273
220
|
var params = {
|
|
274
221
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
275
222
|
};
|
|
276
|
-
return
|
|
277
|
-
|
|
278
|
-
headers: headers,
|
|
279
|
-
}).then(function (response) {
|
|
280
|
-
return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
|
|
281
|
-
}).catch(function (error) {
|
|
282
|
-
throw JSON.parse(error.response.data.message);
|
|
223
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
224
|
+
return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
|
|
283
225
|
});
|
|
284
226
|
};
|
|
285
227
|
Gs2MatchmakingRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
@@ -298,17 +240,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
298
240
|
var body = {
|
|
299
241
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
300
242
|
};
|
|
301
|
-
return
|
|
302
|
-
|
|
303
|
-
}).then(function (response) {
|
|
304
|
-
return Result.CleanUserDataByUserIdResult.fromDict(response.data);
|
|
305
|
-
}).catch(function (error) {
|
|
306
|
-
if (error.response) {
|
|
307
|
-
throw JSON.parse(error.response.data.message);
|
|
308
|
-
}
|
|
309
|
-
else {
|
|
310
|
-
throw [];
|
|
311
|
-
}
|
|
243
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
244
|
+
return Result.CleanUserDataByUserIdResult.fromDict(data);
|
|
312
245
|
});
|
|
313
246
|
};
|
|
314
247
|
Gs2MatchmakingRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
@@ -327,13 +260,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
327
260
|
var params = {
|
|
328
261
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
329
262
|
};
|
|
330
|
-
return
|
|
331
|
-
|
|
332
|
-
headers: headers,
|
|
333
|
-
}).then(function (response) {
|
|
334
|
-
return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
|
|
335
|
-
}).catch(function (error) {
|
|
336
|
-
throw JSON.parse(error.response.data.message);
|
|
263
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
264
|
+
return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
|
|
337
265
|
});
|
|
338
266
|
};
|
|
339
267
|
Gs2MatchmakingRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
@@ -352,17 +280,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
352
280
|
var body = {
|
|
353
281
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
354
282
|
};
|
|
355
|
-
return
|
|
356
|
-
|
|
357
|
-
}).then(function (response) {
|
|
358
|
-
return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
|
|
359
|
-
}).catch(function (error) {
|
|
360
|
-
if (error.response) {
|
|
361
|
-
throw JSON.parse(error.response.data.message);
|
|
362
|
-
}
|
|
363
|
-
else {
|
|
364
|
-
throw [];
|
|
365
|
-
}
|
|
283
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
284
|
+
return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
|
|
366
285
|
});
|
|
367
286
|
};
|
|
368
287
|
Gs2MatchmakingRestClient.prototype.importUserDataByUserId = function (request) {
|
|
@@ -382,17 +301,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
382
301
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
383
302
|
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
384
303
|
};
|
|
385
|
-
return
|
|
386
|
-
|
|
387
|
-
}).then(function (response) {
|
|
388
|
-
return Result.ImportUserDataByUserIdResult.fromDict(response.data);
|
|
389
|
-
}).catch(function (error) {
|
|
390
|
-
if (error.response) {
|
|
391
|
-
throw JSON.parse(error.response.data.message);
|
|
392
|
-
}
|
|
393
|
-
else {
|
|
394
|
-
throw [];
|
|
395
|
-
}
|
|
304
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
305
|
+
return Result.ImportUserDataByUserIdResult.fromDict(data);
|
|
396
306
|
});
|
|
397
307
|
};
|
|
398
308
|
Gs2MatchmakingRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
@@ -412,13 +322,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
412
322
|
var params = {
|
|
413
323
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
414
324
|
};
|
|
415
|
-
return
|
|
416
|
-
|
|
417
|
-
headers: headers,
|
|
418
|
-
}).then(function (response) {
|
|
419
|
-
return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
|
|
420
|
-
}).catch(function (error) {
|
|
421
|
-
throw JSON.parse(error.response.data.message);
|
|
325
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
326
|
+
return Result.CheckImportUserDataByUserIdResult.fromDict(data);
|
|
422
327
|
});
|
|
423
328
|
};
|
|
424
329
|
Gs2MatchmakingRestClient.prototype.describeGatherings = function (request) {
|
|
@@ -436,13 +341,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
436
341
|
'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
|
|
437
342
|
'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
|
|
438
343
|
};
|
|
439
|
-
return
|
|
440
|
-
|
|
441
|
-
headers: headers,
|
|
442
|
-
}).then(function (response) {
|
|
443
|
-
return Result.DescribeGatheringsResult.fromDict(response.data);
|
|
444
|
-
}).catch(function (error) {
|
|
445
|
-
throw JSON.parse(error.response.data.message);
|
|
344
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
345
|
+
return Result.DescribeGatheringsResult.fromDict(data);
|
|
446
346
|
});
|
|
447
347
|
};
|
|
448
348
|
Gs2MatchmakingRestClient.prototype.createGathering = function (request) {
|
|
@@ -470,17 +370,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
470
370
|
'expiresAt': (_p = request.getExpiresAt()) !== null && _p !== void 0 ? _p : null,
|
|
471
371
|
'expiresAtTimeSpan': (_r = (_q = request.getExpiresAtTimeSpan()) === null || _q === void 0 ? void 0 : _q.toDict()) !== null && _r !== void 0 ? _r : null,
|
|
472
372
|
};
|
|
473
|
-
return
|
|
474
|
-
|
|
475
|
-
}).then(function (response) {
|
|
476
|
-
return Result.CreateGatheringResult.fromDict(response.data);
|
|
477
|
-
}).catch(function (error) {
|
|
478
|
-
if (error.response) {
|
|
479
|
-
throw JSON.parse(error.response.data.message);
|
|
480
|
-
}
|
|
481
|
-
else {
|
|
482
|
-
throw [];
|
|
483
|
-
}
|
|
373
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
374
|
+
return Result.CreateGatheringResult.fromDict(data);
|
|
484
375
|
});
|
|
485
376
|
};
|
|
486
377
|
Gs2MatchmakingRestClient.prototype.createGatheringByUserId = function (request) {
|
|
@@ -509,17 +400,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
509
400
|
'expiresAt': (_r = request.getExpiresAt()) !== null && _r !== void 0 ? _r : null,
|
|
510
401
|
'expiresAtTimeSpan': (_t = (_s = request.getExpiresAtTimeSpan()) === null || _s === void 0 ? void 0 : _s.toDict()) !== null && _t !== void 0 ? _t : null,
|
|
511
402
|
};
|
|
512
|
-
return
|
|
513
|
-
|
|
514
|
-
}).then(function (response) {
|
|
515
|
-
return Result.CreateGatheringByUserIdResult.fromDict(response.data);
|
|
516
|
-
}).catch(function (error) {
|
|
517
|
-
if (error.response) {
|
|
518
|
-
throw JSON.parse(error.response.data.message);
|
|
519
|
-
}
|
|
520
|
-
else {
|
|
521
|
-
throw [];
|
|
522
|
-
}
|
|
403
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
404
|
+
return Result.CreateGatheringByUserIdResult.fromDict(data);
|
|
523
405
|
});
|
|
524
406
|
};
|
|
525
407
|
Gs2MatchmakingRestClient.prototype.updateGathering = function (request) {
|
|
@@ -543,17 +425,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
543
425
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
544
426
|
'attributeRanges': (_k = (_j = request.getAttributeRanges()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
545
427
|
};
|
|
546
|
-
return
|
|
547
|
-
|
|
548
|
-
}).then(function (response) {
|
|
549
|
-
return Result.UpdateGatheringResult.fromDict(response.data);
|
|
550
|
-
}).catch(function (error) {
|
|
551
|
-
if (error.response) {
|
|
552
|
-
throw JSON.parse(error.response.data.message);
|
|
553
|
-
}
|
|
554
|
-
else {
|
|
555
|
-
throw [];
|
|
556
|
-
}
|
|
428
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
429
|
+
return Result.UpdateGatheringResult.fromDict(data);
|
|
557
430
|
});
|
|
558
431
|
};
|
|
559
432
|
Gs2MatchmakingRestClient.prototype.updateGatheringByUserId = function (request) {
|
|
@@ -578,17 +451,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
578
451
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
579
452
|
'attributeRanges': (_m = (_l = request.getAttributeRanges()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
580
453
|
};
|
|
581
|
-
return
|
|
582
|
-
|
|
583
|
-
}).then(function (response) {
|
|
584
|
-
return Result.UpdateGatheringByUserIdResult.fromDict(response.data);
|
|
585
|
-
}).catch(function (error) {
|
|
586
|
-
if (error.response) {
|
|
587
|
-
throw JSON.parse(error.response.data.message);
|
|
588
|
-
}
|
|
589
|
-
else {
|
|
590
|
-
throw [];
|
|
591
|
-
}
|
|
454
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
455
|
+
return Result.UpdateGatheringByUserIdResult.fromDict(data);
|
|
592
456
|
});
|
|
593
457
|
};
|
|
594
458
|
Gs2MatchmakingRestClient.prototype.doMatchmakingByPlayer = function (request) {
|
|
@@ -606,17 +470,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
606
470
|
'player': (_f = (_e = request.getPlayer()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
607
471
|
'matchmakingContextToken': (_g = request.getMatchmakingContextToken()) !== null && _g !== void 0 ? _g : null,
|
|
608
472
|
};
|
|
609
|
-
return
|
|
610
|
-
|
|
611
|
-
}).then(function (response) {
|
|
612
|
-
return Result.DoMatchmakingByPlayerResult.fromDict(response.data);
|
|
613
|
-
}).catch(function (error) {
|
|
614
|
-
if (error.response) {
|
|
615
|
-
throw JSON.parse(error.response.data.message);
|
|
616
|
-
}
|
|
617
|
-
else {
|
|
618
|
-
throw [];
|
|
619
|
-
}
|
|
473
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
474
|
+
return Result.DoMatchmakingByPlayerResult.fromDict(data);
|
|
620
475
|
});
|
|
621
476
|
};
|
|
622
477
|
Gs2MatchmakingRestClient.prototype.doMatchmaking = function (request) {
|
|
@@ -640,17 +495,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
640
495
|
'player': (_h = (_g = request.getPlayer()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
641
496
|
'matchmakingContextToken': (_j = request.getMatchmakingContextToken()) !== null && _j !== void 0 ? _j : null,
|
|
642
497
|
};
|
|
643
|
-
return
|
|
644
|
-
|
|
645
|
-
}).then(function (response) {
|
|
646
|
-
return Result.DoMatchmakingResult.fromDict(response.data);
|
|
647
|
-
}).catch(function (error) {
|
|
648
|
-
if (error.response) {
|
|
649
|
-
throw JSON.parse(error.response.data.message);
|
|
650
|
-
}
|
|
651
|
-
else {
|
|
652
|
-
throw [];
|
|
653
|
-
}
|
|
498
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
499
|
+
return Result.DoMatchmakingResult.fromDict(data);
|
|
654
500
|
});
|
|
655
501
|
};
|
|
656
502
|
Gs2MatchmakingRestClient.prototype.doMatchmakingByUserId = function (request) {
|
|
@@ -675,17 +521,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
675
521
|
'player': (_k = (_j = request.getPlayer()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
676
522
|
'matchmakingContextToken': (_l = request.getMatchmakingContextToken()) !== null && _l !== void 0 ? _l : null,
|
|
677
523
|
};
|
|
678
|
-
return
|
|
679
|
-
|
|
680
|
-
}).then(function (response) {
|
|
681
|
-
return Result.DoMatchmakingByUserIdResult.fromDict(response.data);
|
|
682
|
-
}).catch(function (error) {
|
|
683
|
-
if (error.response) {
|
|
684
|
-
throw JSON.parse(error.response.data.message);
|
|
685
|
-
}
|
|
686
|
-
else {
|
|
687
|
-
throw [];
|
|
688
|
-
}
|
|
524
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
525
|
+
return Result.DoMatchmakingByUserIdResult.fromDict(data);
|
|
689
526
|
});
|
|
690
527
|
};
|
|
691
528
|
Gs2MatchmakingRestClient.prototype.ping = function (request) {
|
|
@@ -708,17 +545,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
708
545
|
var body = {
|
|
709
546
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
710
547
|
};
|
|
711
|
-
return
|
|
712
|
-
|
|
713
|
-
}).then(function (response) {
|
|
714
|
-
return Result.PingResult.fromDict(response.data);
|
|
715
|
-
}).catch(function (error) {
|
|
716
|
-
if (error.response) {
|
|
717
|
-
throw JSON.parse(error.response.data.message);
|
|
718
|
-
}
|
|
719
|
-
else {
|
|
720
|
-
throw [];
|
|
721
|
-
}
|
|
548
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
549
|
+
return Result.PingResult.fromDict(data);
|
|
722
550
|
});
|
|
723
551
|
};
|
|
724
552
|
Gs2MatchmakingRestClient.prototype.pingByUserId = function (request) {
|
|
@@ -742,17 +570,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
742
570
|
var body = {
|
|
743
571
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
744
572
|
};
|
|
745
|
-
return
|
|
746
|
-
|
|
747
|
-
}).then(function (response) {
|
|
748
|
-
return Result.PingByUserIdResult.fromDict(response.data);
|
|
749
|
-
}).catch(function (error) {
|
|
750
|
-
if (error.response) {
|
|
751
|
-
throw JSON.parse(error.response.data.message);
|
|
752
|
-
}
|
|
753
|
-
else {
|
|
754
|
-
throw [];
|
|
755
|
-
}
|
|
573
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
574
|
+
return Result.PingByUserIdResult.fromDict(data);
|
|
756
575
|
});
|
|
757
576
|
};
|
|
758
577
|
Gs2MatchmakingRestClient.prototype.getGathering = function (request) {
|
|
@@ -769,13 +588,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
769
588
|
var params = {
|
|
770
589
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
771
590
|
};
|
|
772
|
-
return
|
|
773
|
-
|
|
774
|
-
headers: headers,
|
|
775
|
-
}).then(function (response) {
|
|
776
|
-
return Result.GetGatheringResult.fromDict(response.data);
|
|
777
|
-
}).catch(function (error) {
|
|
778
|
-
throw JSON.parse(error.response.data.message);
|
|
591
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
592
|
+
return Result.GetGatheringResult.fromDict(data);
|
|
779
593
|
});
|
|
780
594
|
};
|
|
781
595
|
Gs2MatchmakingRestClient.prototype.cancelMatchmaking = function (request) {
|
|
@@ -798,13 +612,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
798
612
|
var params = {
|
|
799
613
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
800
614
|
};
|
|
801
|
-
return
|
|
802
|
-
|
|
803
|
-
headers: headers,
|
|
804
|
-
}).then(function (response) {
|
|
805
|
-
return Result.CancelMatchmakingResult.fromDict(response.data);
|
|
806
|
-
}).catch(function (error) {
|
|
807
|
-
throw JSON.parse(error.response.data.message);
|
|
615
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
616
|
+
return Result.CancelMatchmakingResult.fromDict(data);
|
|
808
617
|
});
|
|
809
618
|
};
|
|
810
619
|
Gs2MatchmakingRestClient.prototype.cancelMatchmakingByUserId = function (request) {
|
|
@@ -828,13 +637,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
828
637
|
var params = {
|
|
829
638
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
830
639
|
};
|
|
831
|
-
return
|
|
832
|
-
|
|
833
|
-
headers: headers,
|
|
834
|
-
}).then(function (response) {
|
|
835
|
-
return Result.CancelMatchmakingByUserIdResult.fromDict(response.data);
|
|
836
|
-
}).catch(function (error) {
|
|
837
|
-
throw JSON.parse(error.response.data.message);
|
|
640
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
641
|
+
return Result.CancelMatchmakingByUserIdResult.fromDict(data);
|
|
838
642
|
});
|
|
839
643
|
};
|
|
840
644
|
Gs2MatchmakingRestClient.prototype.earlyComplete = function (request) {
|
|
@@ -857,13 +661,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
857
661
|
var params = {
|
|
858
662
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
859
663
|
};
|
|
860
|
-
return
|
|
861
|
-
|
|
862
|
-
headers: headers,
|
|
863
|
-
}).then(function (response) {
|
|
864
|
-
return Result.EarlyCompleteResult.fromDict(response.data);
|
|
865
|
-
}).catch(function (error) {
|
|
866
|
-
throw JSON.parse(error.response.data.message);
|
|
664
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
665
|
+
return Result.EarlyCompleteResult.fromDict(data);
|
|
867
666
|
});
|
|
868
667
|
};
|
|
869
668
|
Gs2MatchmakingRestClient.prototype.earlyCompleteByUserId = function (request) {
|
|
@@ -887,13 +686,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
887
686
|
var params = {
|
|
888
687
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
889
688
|
};
|
|
890
|
-
return
|
|
891
|
-
|
|
892
|
-
headers: headers,
|
|
893
|
-
}).then(function (response) {
|
|
894
|
-
return Result.EarlyCompleteByUserIdResult.fromDict(response.data);
|
|
895
|
-
}).catch(function (error) {
|
|
896
|
-
throw JSON.parse(error.response.data.message);
|
|
689
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
690
|
+
return Result.EarlyCompleteByUserIdResult.fromDict(data);
|
|
897
691
|
});
|
|
898
692
|
};
|
|
899
693
|
Gs2MatchmakingRestClient.prototype.deleteGathering = function (request) {
|
|
@@ -910,13 +704,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
910
704
|
var params = {
|
|
911
705
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
912
706
|
};
|
|
913
|
-
return
|
|
914
|
-
|
|
915
|
-
headers: headers,
|
|
916
|
-
}).then(function (response) {
|
|
917
|
-
return Result.DeleteGatheringResult.fromDict(response.data);
|
|
918
|
-
}).catch(function (error) {
|
|
919
|
-
throw JSON.parse(error.response.data.message);
|
|
707
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
708
|
+
return Result.DeleteGatheringResult.fromDict(data);
|
|
920
709
|
});
|
|
921
710
|
};
|
|
922
711
|
Gs2MatchmakingRestClient.prototype.describeRatingModelMasters = function (request) {
|
|
@@ -935,13 +724,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
935
724
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
936
725
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
937
726
|
};
|
|
938
|
-
return
|
|
939
|
-
|
|
940
|
-
headers: headers,
|
|
941
|
-
}).then(function (response) {
|
|
942
|
-
return Result.DescribeRatingModelMastersResult.fromDict(response.data);
|
|
943
|
-
}).catch(function (error) {
|
|
944
|
-
throw JSON.parse(error.response.data.message);
|
|
727
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
728
|
+
return Result.DescribeRatingModelMastersResult.fromDict(data);
|
|
945
729
|
});
|
|
946
730
|
};
|
|
947
731
|
Gs2MatchmakingRestClient.prototype.createRatingModelMaster = function (request) {
|
|
@@ -962,17 +746,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
962
746
|
'initialValue': (_h = request.getInitialValue()) !== null && _h !== void 0 ? _h : null,
|
|
963
747
|
'volatility': (_j = request.getVolatility()) !== null && _j !== void 0 ? _j : null,
|
|
964
748
|
};
|
|
965
|
-
return
|
|
966
|
-
|
|
967
|
-
}).then(function (response) {
|
|
968
|
-
return Result.CreateRatingModelMasterResult.fromDict(response.data);
|
|
969
|
-
}).catch(function (error) {
|
|
970
|
-
if (error.response) {
|
|
971
|
-
throw JSON.parse(error.response.data.message);
|
|
972
|
-
}
|
|
973
|
-
else {
|
|
974
|
-
throw [];
|
|
975
|
-
}
|
|
749
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
750
|
+
return Result.CreateRatingModelMasterResult.fromDict(data);
|
|
976
751
|
});
|
|
977
752
|
};
|
|
978
753
|
Gs2MatchmakingRestClient.prototype.getRatingModelMaster = function (request) {
|
|
@@ -989,13 +764,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
989
764
|
var params = {
|
|
990
765
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
991
766
|
};
|
|
992
|
-
return
|
|
993
|
-
|
|
994
|
-
headers: headers,
|
|
995
|
-
}).then(function (response) {
|
|
996
|
-
return Result.GetRatingModelMasterResult.fromDict(response.data);
|
|
997
|
-
}).catch(function (error) {
|
|
998
|
-
throw JSON.parse(error.response.data.message);
|
|
767
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
768
|
+
return Result.GetRatingModelMasterResult.fromDict(data);
|
|
999
769
|
});
|
|
1000
770
|
};
|
|
1001
771
|
Gs2MatchmakingRestClient.prototype.updateRatingModelMaster = function (request) {
|
|
@@ -1016,17 +786,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1016
786
|
'initialValue': (_j = request.getInitialValue()) !== null && _j !== void 0 ? _j : null,
|
|
1017
787
|
'volatility': (_k = request.getVolatility()) !== null && _k !== void 0 ? _k : null,
|
|
1018
788
|
};
|
|
1019
|
-
return
|
|
1020
|
-
|
|
1021
|
-
}).then(function (response) {
|
|
1022
|
-
return Result.UpdateRatingModelMasterResult.fromDict(response.data);
|
|
1023
|
-
}).catch(function (error) {
|
|
1024
|
-
if (error.response) {
|
|
1025
|
-
throw JSON.parse(error.response.data.message);
|
|
1026
|
-
}
|
|
1027
|
-
else {
|
|
1028
|
-
throw [];
|
|
1029
|
-
}
|
|
789
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
790
|
+
return Result.UpdateRatingModelMasterResult.fromDict(data);
|
|
1030
791
|
});
|
|
1031
792
|
};
|
|
1032
793
|
Gs2MatchmakingRestClient.prototype.deleteRatingModelMaster = function (request) {
|
|
@@ -1043,13 +804,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1043
804
|
var params = {
|
|
1044
805
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1045
806
|
};
|
|
1046
|
-
return
|
|
1047
|
-
|
|
1048
|
-
headers: headers,
|
|
1049
|
-
}).then(function (response) {
|
|
1050
|
-
return Result.DeleteRatingModelMasterResult.fromDict(response.data);
|
|
1051
|
-
}).catch(function (error) {
|
|
1052
|
-
throw JSON.parse(error.response.data.message);
|
|
807
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
808
|
+
return Result.DeleteRatingModelMasterResult.fromDict(data);
|
|
1053
809
|
});
|
|
1054
810
|
};
|
|
1055
811
|
Gs2MatchmakingRestClient.prototype.describeRatingModels = function (request) {
|
|
@@ -1065,13 +821,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1065
821
|
var params = {
|
|
1066
822
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1067
823
|
};
|
|
1068
|
-
return
|
|
1069
|
-
|
|
1070
|
-
headers: headers,
|
|
1071
|
-
}).then(function (response) {
|
|
1072
|
-
return Result.DescribeRatingModelsResult.fromDict(response.data);
|
|
1073
|
-
}).catch(function (error) {
|
|
1074
|
-
throw JSON.parse(error.response.data.message);
|
|
824
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
825
|
+
return Result.DescribeRatingModelsResult.fromDict(data);
|
|
1075
826
|
});
|
|
1076
827
|
};
|
|
1077
828
|
Gs2MatchmakingRestClient.prototype.getRatingModel = function (request) {
|
|
@@ -1088,13 +839,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1088
839
|
var params = {
|
|
1089
840
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1090
841
|
};
|
|
1091
|
-
return
|
|
1092
|
-
|
|
1093
|
-
headers: headers,
|
|
1094
|
-
}).then(function (response) {
|
|
1095
|
-
return Result.GetRatingModelResult.fromDict(response.data);
|
|
1096
|
-
}).catch(function (error) {
|
|
1097
|
-
throw JSON.parse(error.response.data.message);
|
|
842
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
843
|
+
return Result.GetRatingModelResult.fromDict(data);
|
|
1098
844
|
});
|
|
1099
845
|
};
|
|
1100
846
|
Gs2MatchmakingRestClient.prototype.exportMaster = function (request) {
|
|
@@ -1110,13 +856,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1110
856
|
var params = {
|
|
1111
857
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1112
858
|
};
|
|
1113
|
-
return
|
|
1114
|
-
|
|
1115
|
-
headers: headers,
|
|
1116
|
-
}).then(function (response) {
|
|
1117
|
-
return Result.ExportMasterResult.fromDict(response.data);
|
|
1118
|
-
}).catch(function (error) {
|
|
1119
|
-
throw JSON.parse(error.response.data.message);
|
|
859
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
860
|
+
return Result.ExportMasterResult.fromDict(data);
|
|
1120
861
|
});
|
|
1121
862
|
};
|
|
1122
863
|
Gs2MatchmakingRestClient.prototype.getCurrentModelMaster = function (request) {
|
|
@@ -1132,13 +873,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1132
873
|
var params = {
|
|
1133
874
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1134
875
|
};
|
|
1135
|
-
return
|
|
1136
|
-
|
|
1137
|
-
headers: headers,
|
|
1138
|
-
}).then(function (response) {
|
|
1139
|
-
return Result.GetCurrentModelMasterResult.fromDict(response.data);
|
|
1140
|
-
}).catch(function (error) {
|
|
1141
|
-
throw JSON.parse(error.response.data.message);
|
|
876
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
877
|
+
return Result.GetCurrentModelMasterResult.fromDict(data);
|
|
1142
878
|
});
|
|
1143
879
|
};
|
|
1144
880
|
Gs2MatchmakingRestClient.prototype.preUpdateCurrentModelMaster = function (request) {
|
|
@@ -1154,17 +890,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1154
890
|
var body = {
|
|
1155
891
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1156
892
|
};
|
|
1157
|
-
return
|
|
1158
|
-
|
|
1159
|
-
}).then(function (response) {
|
|
1160
|
-
return Result.PreUpdateCurrentModelMasterResult.fromDict(response.data);
|
|
1161
|
-
}).catch(function (error) {
|
|
1162
|
-
if (error.response) {
|
|
1163
|
-
throw JSON.parse(error.response.data.message);
|
|
1164
|
-
}
|
|
1165
|
-
else {
|
|
1166
|
-
throw [];
|
|
1167
|
-
}
|
|
893
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
894
|
+
return Result.PreUpdateCurrentModelMasterResult.fromDict(data);
|
|
1168
895
|
});
|
|
1169
896
|
};
|
|
1170
897
|
Gs2MatchmakingRestClient.prototype.updateCurrentModelMaster = function (request) {
|
|
@@ -1183,17 +910,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1183
910
|
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1184
911
|
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1185
912
|
};
|
|
1186
|
-
return
|
|
1187
|
-
|
|
1188
|
-
}).then(function (response) {
|
|
1189
|
-
return Result.UpdateCurrentModelMasterResult.fromDict(response.data);
|
|
1190
|
-
}).catch(function (error) {
|
|
1191
|
-
if (error.response) {
|
|
1192
|
-
throw JSON.parse(error.response.data.message);
|
|
1193
|
-
}
|
|
1194
|
-
else {
|
|
1195
|
-
throw [];
|
|
1196
|
-
}
|
|
913
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
914
|
+
return Result.UpdateCurrentModelMasterResult.fromDict(data);
|
|
1197
915
|
});
|
|
1198
916
|
};
|
|
1199
917
|
Gs2MatchmakingRestClient.prototype.updateCurrentModelMasterFromGitHub = function (request) {
|
|
@@ -1210,17 +928,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1210
928
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1211
929
|
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1212
930
|
};
|
|
1213
|
-
return
|
|
1214
|
-
|
|
1215
|
-
}).then(function (response) {
|
|
1216
|
-
return Result.UpdateCurrentModelMasterFromGitHubResult.fromDict(response.data);
|
|
1217
|
-
}).catch(function (error) {
|
|
1218
|
-
if (error.response) {
|
|
1219
|
-
throw JSON.parse(error.response.data.message);
|
|
1220
|
-
}
|
|
1221
|
-
else {
|
|
1222
|
-
throw [];
|
|
1223
|
-
}
|
|
931
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
932
|
+
return Result.UpdateCurrentModelMasterFromGitHubResult.fromDict(data);
|
|
1224
933
|
});
|
|
1225
934
|
};
|
|
1226
935
|
Gs2MatchmakingRestClient.prototype.describeSeasonModels = function (request) {
|
|
@@ -1236,13 +945,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1236
945
|
var params = {
|
|
1237
946
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1238
947
|
};
|
|
1239
|
-
return
|
|
1240
|
-
|
|
1241
|
-
headers: headers,
|
|
1242
|
-
}).then(function (response) {
|
|
1243
|
-
return Result.DescribeSeasonModelsResult.fromDict(response.data);
|
|
1244
|
-
}).catch(function (error) {
|
|
1245
|
-
throw JSON.parse(error.response.data.message);
|
|
948
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
949
|
+
return Result.DescribeSeasonModelsResult.fromDict(data);
|
|
1246
950
|
});
|
|
1247
951
|
};
|
|
1248
952
|
Gs2MatchmakingRestClient.prototype.getSeasonModel = function (request) {
|
|
@@ -1259,13 +963,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1259
963
|
var params = {
|
|
1260
964
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1261
965
|
};
|
|
1262
|
-
return
|
|
1263
|
-
|
|
1264
|
-
headers: headers,
|
|
1265
|
-
}).then(function (response) {
|
|
1266
|
-
return Result.GetSeasonModelResult.fromDict(response.data);
|
|
1267
|
-
}).catch(function (error) {
|
|
1268
|
-
throw JSON.parse(error.response.data.message);
|
|
966
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
967
|
+
return Result.GetSeasonModelResult.fromDict(data);
|
|
1269
968
|
});
|
|
1270
969
|
};
|
|
1271
970
|
Gs2MatchmakingRestClient.prototype.describeSeasonModelMasters = function (request) {
|
|
@@ -1284,13 +983,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1284
983
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1285
984
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1286
985
|
};
|
|
1287
|
-
return
|
|
1288
|
-
|
|
1289
|
-
headers: headers,
|
|
1290
|
-
}).then(function (response) {
|
|
1291
|
-
return Result.DescribeSeasonModelMastersResult.fromDict(response.data);
|
|
1292
|
-
}).catch(function (error) {
|
|
1293
|
-
throw JSON.parse(error.response.data.message);
|
|
986
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
987
|
+
return Result.DescribeSeasonModelMastersResult.fromDict(data);
|
|
1294
988
|
});
|
|
1295
989
|
};
|
|
1296
990
|
Gs2MatchmakingRestClient.prototype.createSeasonModelMaster = function (request) {
|
|
@@ -1312,17 +1006,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1312
1006
|
'experienceModelId': (_j = request.getExperienceModelId()) !== null && _j !== void 0 ? _j : null,
|
|
1313
1007
|
'challengePeriodEventId': (_k = request.getChallengePeriodEventId()) !== null && _k !== void 0 ? _k : null,
|
|
1314
1008
|
};
|
|
1315
|
-
return
|
|
1316
|
-
|
|
1317
|
-
}).then(function (response) {
|
|
1318
|
-
return Result.CreateSeasonModelMasterResult.fromDict(response.data);
|
|
1319
|
-
}).catch(function (error) {
|
|
1320
|
-
if (error.response) {
|
|
1321
|
-
throw JSON.parse(error.response.data.message);
|
|
1322
|
-
}
|
|
1323
|
-
else {
|
|
1324
|
-
throw [];
|
|
1325
|
-
}
|
|
1009
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1010
|
+
return Result.CreateSeasonModelMasterResult.fromDict(data);
|
|
1326
1011
|
});
|
|
1327
1012
|
};
|
|
1328
1013
|
Gs2MatchmakingRestClient.prototype.getSeasonModelMaster = function (request) {
|
|
@@ -1339,13 +1024,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1339
1024
|
var params = {
|
|
1340
1025
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1341
1026
|
};
|
|
1342
|
-
return
|
|
1343
|
-
|
|
1344
|
-
headers: headers,
|
|
1345
|
-
}).then(function (response) {
|
|
1346
|
-
return Result.GetSeasonModelMasterResult.fromDict(response.data);
|
|
1347
|
-
}).catch(function (error) {
|
|
1348
|
-
throw JSON.parse(error.response.data.message);
|
|
1027
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1028
|
+
return Result.GetSeasonModelMasterResult.fromDict(data);
|
|
1349
1029
|
});
|
|
1350
1030
|
};
|
|
1351
1031
|
Gs2MatchmakingRestClient.prototype.updateSeasonModelMaster = function (request) {
|
|
@@ -1367,17 +1047,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1367
1047
|
'experienceModelId': (_k = request.getExperienceModelId()) !== null && _k !== void 0 ? _k : null,
|
|
1368
1048
|
'challengePeriodEventId': (_l = request.getChallengePeriodEventId()) !== null && _l !== void 0 ? _l : null,
|
|
1369
1049
|
};
|
|
1370
|
-
return
|
|
1371
|
-
|
|
1372
|
-
}).then(function (response) {
|
|
1373
|
-
return Result.UpdateSeasonModelMasterResult.fromDict(response.data);
|
|
1374
|
-
}).catch(function (error) {
|
|
1375
|
-
if (error.response) {
|
|
1376
|
-
throw JSON.parse(error.response.data.message);
|
|
1377
|
-
}
|
|
1378
|
-
else {
|
|
1379
|
-
throw [];
|
|
1380
|
-
}
|
|
1050
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1051
|
+
return Result.UpdateSeasonModelMasterResult.fromDict(data);
|
|
1381
1052
|
});
|
|
1382
1053
|
};
|
|
1383
1054
|
Gs2MatchmakingRestClient.prototype.deleteSeasonModelMaster = function (request) {
|
|
@@ -1394,13 +1065,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1394
1065
|
var params = {
|
|
1395
1066
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1396
1067
|
};
|
|
1397
|
-
return
|
|
1398
|
-
|
|
1399
|
-
headers: headers,
|
|
1400
|
-
}).then(function (response) {
|
|
1401
|
-
return Result.DeleteSeasonModelMasterResult.fromDict(response.data);
|
|
1402
|
-
}).catch(function (error) {
|
|
1403
|
-
throw JSON.parse(error.response.data.message);
|
|
1068
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1069
|
+
return Result.DeleteSeasonModelMasterResult.fromDict(data);
|
|
1404
1070
|
});
|
|
1405
1071
|
};
|
|
1406
1072
|
Gs2MatchmakingRestClient.prototype.describeSeasonGatherings = function (request) {
|
|
@@ -1421,13 +1087,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1421
1087
|
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
1422
1088
|
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
1423
1089
|
};
|
|
1424
|
-
return
|
|
1425
|
-
|
|
1426
|
-
headers: headers,
|
|
1427
|
-
}).then(function (response) {
|
|
1428
|
-
return Result.DescribeSeasonGatheringsResult.fromDict(response.data);
|
|
1429
|
-
}).catch(function (error) {
|
|
1430
|
-
throw JSON.parse(error.response.data.message);
|
|
1090
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1091
|
+
return Result.DescribeSeasonGatheringsResult.fromDict(data);
|
|
1431
1092
|
});
|
|
1432
1093
|
};
|
|
1433
1094
|
Gs2MatchmakingRestClient.prototype.describeMatchmakingSeasonGatherings = function (request) {
|
|
@@ -1448,13 +1109,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1448
1109
|
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
1449
1110
|
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
1450
1111
|
};
|
|
1451
|
-
return
|
|
1452
|
-
|
|
1453
|
-
headers: headers,
|
|
1454
|
-
}).then(function (response) {
|
|
1455
|
-
return Result.DescribeMatchmakingSeasonGatheringsResult.fromDict(response.data);
|
|
1456
|
-
}).catch(function (error) {
|
|
1457
|
-
throw JSON.parse(error.response.data.message);
|
|
1112
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1113
|
+
return Result.DescribeMatchmakingSeasonGatheringsResult.fromDict(data);
|
|
1458
1114
|
});
|
|
1459
1115
|
};
|
|
1460
1116
|
Gs2MatchmakingRestClient.prototype.doSeasonMatchmaking = function (request) {
|
|
@@ -1478,17 +1134,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1478
1134
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1479
1135
|
'matchmakingContextToken': (_j = request.getMatchmakingContextToken()) !== null && _j !== void 0 ? _j : null,
|
|
1480
1136
|
};
|
|
1481
|
-
return
|
|
1482
|
-
|
|
1483
|
-
}).then(function (response) {
|
|
1484
|
-
return Result.DoSeasonMatchmakingResult.fromDict(response.data);
|
|
1485
|
-
}).catch(function (error) {
|
|
1486
|
-
if (error.response) {
|
|
1487
|
-
throw JSON.parse(error.response.data.message);
|
|
1488
|
-
}
|
|
1489
|
-
else {
|
|
1490
|
-
throw [];
|
|
1491
|
-
}
|
|
1137
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1138
|
+
return Result.DoSeasonMatchmakingResult.fromDict(data);
|
|
1492
1139
|
});
|
|
1493
1140
|
};
|
|
1494
1141
|
Gs2MatchmakingRestClient.prototype.doSeasonMatchmakingByUserId = function (request) {
|
|
@@ -1513,17 +1160,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1513
1160
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1514
1161
|
'matchmakingContextToken': (_l = request.getMatchmakingContextToken()) !== null && _l !== void 0 ? _l : null,
|
|
1515
1162
|
};
|
|
1516
|
-
return
|
|
1517
|
-
|
|
1518
|
-
}).then(function (response) {
|
|
1519
|
-
return Result.DoSeasonMatchmakingByUserIdResult.fromDict(response.data);
|
|
1520
|
-
}).catch(function (error) {
|
|
1521
|
-
if (error.response) {
|
|
1522
|
-
throw JSON.parse(error.response.data.message);
|
|
1523
|
-
}
|
|
1524
|
-
else {
|
|
1525
|
-
throw [];
|
|
1526
|
-
}
|
|
1163
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1164
|
+
return Result.DoSeasonMatchmakingByUserIdResult.fromDict(data);
|
|
1527
1165
|
});
|
|
1528
1166
|
};
|
|
1529
1167
|
Gs2MatchmakingRestClient.prototype.getSeasonGathering = function (request) {
|
|
@@ -1543,13 +1181,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1543
1181
|
var params = {
|
|
1544
1182
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1545
1183
|
};
|
|
1546
|
-
return
|
|
1547
|
-
|
|
1548
|
-
headers: headers,
|
|
1549
|
-
}).then(function (response) {
|
|
1550
|
-
return Result.GetSeasonGatheringResult.fromDict(response.data);
|
|
1551
|
-
}).catch(function (error) {
|
|
1552
|
-
throw JSON.parse(error.response.data.message);
|
|
1184
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1185
|
+
return Result.GetSeasonGatheringResult.fromDict(data);
|
|
1553
1186
|
});
|
|
1554
1187
|
};
|
|
1555
1188
|
Gs2MatchmakingRestClient.prototype.verifyIncludeParticipant = function (request) {
|
|
@@ -1576,17 +1209,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1576
1209
|
'contextStack': (_p = request.getContextStack()) !== null && _p !== void 0 ? _p : null,
|
|
1577
1210
|
'verifyType': (_q = request.getVerifyType()) !== null && _q !== void 0 ? _q : null,
|
|
1578
1211
|
};
|
|
1579
|
-
return
|
|
1580
|
-
|
|
1581
|
-
}).then(function (response) {
|
|
1582
|
-
return Result.VerifyIncludeParticipantResult.fromDict(response.data);
|
|
1583
|
-
}).catch(function (error) {
|
|
1584
|
-
if (error.response) {
|
|
1585
|
-
throw JSON.parse(error.response.data.message);
|
|
1586
|
-
}
|
|
1587
|
-
else {
|
|
1588
|
-
throw [];
|
|
1589
|
-
}
|
|
1212
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1213
|
+
return Result.VerifyIncludeParticipantResult.fromDict(data);
|
|
1590
1214
|
});
|
|
1591
1215
|
};
|
|
1592
1216
|
Gs2MatchmakingRestClient.prototype.verifyIncludeParticipantByUserId = function (request) {
|
|
@@ -1614,17 +1238,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1614
1238
|
'contextStack': (_r = request.getContextStack()) !== null && _r !== void 0 ? _r : null,
|
|
1615
1239
|
'verifyType': (_s = request.getVerifyType()) !== null && _s !== void 0 ? _s : null,
|
|
1616
1240
|
};
|
|
1617
|
-
return
|
|
1618
|
-
|
|
1619
|
-
}).then(function (response) {
|
|
1620
|
-
return Result.VerifyIncludeParticipantByUserIdResult.fromDict(response.data);
|
|
1621
|
-
}).catch(function (error) {
|
|
1622
|
-
if (error.response) {
|
|
1623
|
-
throw JSON.parse(error.response.data.message);
|
|
1624
|
-
}
|
|
1625
|
-
else {
|
|
1626
|
-
throw [];
|
|
1627
|
-
}
|
|
1241
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1242
|
+
return Result.VerifyIncludeParticipantByUserIdResult.fromDict(data);
|
|
1628
1243
|
});
|
|
1629
1244
|
};
|
|
1630
1245
|
Gs2MatchmakingRestClient.prototype.deleteSeasonGathering = function (request) {
|
|
@@ -1644,13 +1259,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1644
1259
|
var params = {
|
|
1645
1260
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1646
1261
|
};
|
|
1647
|
-
return
|
|
1648
|
-
|
|
1649
|
-
headers: headers,
|
|
1650
|
-
}).then(function (response) {
|
|
1651
|
-
return Result.DeleteSeasonGatheringResult.fromDict(response.data);
|
|
1652
|
-
}).catch(function (error) {
|
|
1653
|
-
throw JSON.parse(error.response.data.message);
|
|
1262
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1263
|
+
return Result.DeleteSeasonGatheringResult.fromDict(data);
|
|
1654
1264
|
});
|
|
1655
1265
|
};
|
|
1656
1266
|
Gs2MatchmakingRestClient.prototype.verifyIncludeParticipantByStampTask = function (request) {
|
|
@@ -1667,17 +1277,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1667
1277
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1668
1278
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1669
1279
|
};
|
|
1670
|
-
return
|
|
1671
|
-
|
|
1672
|
-
}).then(function (response) {
|
|
1673
|
-
return Result.VerifyIncludeParticipantByStampTaskResult.fromDict(response.data);
|
|
1674
|
-
}).catch(function (error) {
|
|
1675
|
-
if (error.response) {
|
|
1676
|
-
throw JSON.parse(error.response.data.message);
|
|
1677
|
-
}
|
|
1678
|
-
else {
|
|
1679
|
-
throw [];
|
|
1680
|
-
}
|
|
1280
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1281
|
+
return Result.VerifyIncludeParticipantByStampTaskResult.fromDict(data);
|
|
1681
1282
|
});
|
|
1682
1283
|
};
|
|
1683
1284
|
Gs2MatchmakingRestClient.prototype.describeJoinedSeasonGatherings = function (request) {
|
|
@@ -1699,13 +1300,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1699
1300
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1700
1301
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1701
1302
|
};
|
|
1702
|
-
return
|
|
1703
|
-
|
|
1704
|
-
headers: headers,
|
|
1705
|
-
}).then(function (response) {
|
|
1706
|
-
return Result.DescribeJoinedSeasonGatheringsResult.fromDict(response.data);
|
|
1707
|
-
}).catch(function (error) {
|
|
1708
|
-
throw JSON.parse(error.response.data.message);
|
|
1303
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1304
|
+
return Result.DescribeJoinedSeasonGatheringsResult.fromDict(data);
|
|
1709
1305
|
});
|
|
1710
1306
|
};
|
|
1711
1307
|
Gs2MatchmakingRestClient.prototype.describeJoinedSeasonGatheringsByUserId = function (request) {
|
|
@@ -1728,13 +1324,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1728
1324
|
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
1729
1325
|
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
1730
1326
|
};
|
|
1731
|
-
return
|
|
1732
|
-
|
|
1733
|
-
headers: headers,
|
|
1734
|
-
}).then(function (response) {
|
|
1735
|
-
return Result.DescribeJoinedSeasonGatheringsByUserIdResult.fromDict(response.data);
|
|
1736
|
-
}).catch(function (error) {
|
|
1737
|
-
throw JSON.parse(error.response.data.message);
|
|
1327
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1328
|
+
return Result.DescribeJoinedSeasonGatheringsByUserIdResult.fromDict(data);
|
|
1738
1329
|
});
|
|
1739
1330
|
};
|
|
1740
1331
|
Gs2MatchmakingRestClient.prototype.getJoinedSeasonGathering = function (request) {
|
|
@@ -1755,13 +1346,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1755
1346
|
var params = {
|
|
1756
1347
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1757
1348
|
};
|
|
1758
|
-
return
|
|
1759
|
-
|
|
1760
|
-
headers: headers,
|
|
1761
|
-
}).then(function (response) {
|
|
1762
|
-
return Result.GetJoinedSeasonGatheringResult.fromDict(response.data);
|
|
1763
|
-
}).catch(function (error) {
|
|
1764
|
-
throw JSON.parse(error.response.data.message);
|
|
1349
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1350
|
+
return Result.GetJoinedSeasonGatheringResult.fromDict(data);
|
|
1765
1351
|
});
|
|
1766
1352
|
};
|
|
1767
1353
|
Gs2MatchmakingRestClient.prototype.getJoinedSeasonGatheringByUserId = function (request) {
|
|
@@ -1783,13 +1369,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1783
1369
|
var params = {
|
|
1784
1370
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1785
1371
|
};
|
|
1786
|
-
return
|
|
1787
|
-
|
|
1788
|
-
headers: headers,
|
|
1789
|
-
}).then(function (response) {
|
|
1790
|
-
return Result.GetJoinedSeasonGatheringByUserIdResult.fromDict(response.data);
|
|
1791
|
-
}).catch(function (error) {
|
|
1792
|
-
throw JSON.parse(error.response.data.message);
|
|
1372
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1373
|
+
return Result.GetJoinedSeasonGatheringByUserIdResult.fromDict(data);
|
|
1793
1374
|
});
|
|
1794
1375
|
};
|
|
1795
1376
|
Gs2MatchmakingRestClient.prototype.describeRatings = function (request) {
|
|
@@ -1810,13 +1391,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1810
1391
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1811
1392
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1812
1393
|
};
|
|
1813
|
-
return
|
|
1814
|
-
|
|
1815
|
-
headers: headers,
|
|
1816
|
-
}).then(function (response) {
|
|
1817
|
-
return Result.DescribeRatingsResult.fromDict(response.data);
|
|
1818
|
-
}).catch(function (error) {
|
|
1819
|
-
throw JSON.parse(error.response.data.message);
|
|
1394
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1395
|
+
return Result.DescribeRatingsResult.fromDict(data);
|
|
1820
1396
|
});
|
|
1821
1397
|
};
|
|
1822
1398
|
Gs2MatchmakingRestClient.prototype.describeRatingsByUserId = function (request) {
|
|
@@ -1838,13 +1414,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1838
1414
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1839
1415
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1840
1416
|
};
|
|
1841
|
-
return
|
|
1842
|
-
|
|
1843
|
-
headers: headers,
|
|
1844
|
-
}).then(function (response) {
|
|
1845
|
-
return Result.DescribeRatingsByUserIdResult.fromDict(response.data);
|
|
1846
|
-
}).catch(function (error) {
|
|
1847
|
-
throw JSON.parse(error.response.data.message);
|
|
1417
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1418
|
+
return Result.DescribeRatingsByUserIdResult.fromDict(data);
|
|
1848
1419
|
});
|
|
1849
1420
|
};
|
|
1850
1421
|
Gs2MatchmakingRestClient.prototype.getRating = function (request) {
|
|
@@ -1864,13 +1435,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1864
1435
|
var params = {
|
|
1865
1436
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1866
1437
|
};
|
|
1867
|
-
return
|
|
1868
|
-
|
|
1869
|
-
headers: headers,
|
|
1870
|
-
}).then(function (response) {
|
|
1871
|
-
return Result.GetRatingResult.fromDict(response.data);
|
|
1872
|
-
}).catch(function (error) {
|
|
1873
|
-
throw JSON.parse(error.response.data.message);
|
|
1438
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1439
|
+
return Result.GetRatingResult.fromDict(data);
|
|
1874
1440
|
});
|
|
1875
1441
|
};
|
|
1876
1442
|
Gs2MatchmakingRestClient.prototype.getRatingByUserId = function (request) {
|
|
@@ -1891,13 +1457,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1891
1457
|
var params = {
|
|
1892
1458
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1893
1459
|
};
|
|
1894
|
-
return
|
|
1895
|
-
|
|
1896
|
-
headers: headers,
|
|
1897
|
-
}).then(function (response) {
|
|
1898
|
-
return Result.GetRatingByUserIdResult.fromDict(response.data);
|
|
1899
|
-
}).catch(function (error) {
|
|
1900
|
-
throw JSON.parse(error.response.data.message);
|
|
1460
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1461
|
+
return Result.GetRatingByUserIdResult.fromDict(data);
|
|
1901
1462
|
});
|
|
1902
1463
|
};
|
|
1903
1464
|
Gs2MatchmakingRestClient.prototype.putResult = function (request) {
|
|
@@ -1915,17 +1476,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1915
1476
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1916
1477
|
'gameResults': (_h = (_g = request.getGameResults()) === null || _g === void 0 ? void 0 : _g.map(function (item) { return item.toDict(); })) !== null && _h !== void 0 ? _h : null,
|
|
1917
1478
|
};
|
|
1918
|
-
return
|
|
1919
|
-
|
|
1920
|
-
}).then(function (response) {
|
|
1921
|
-
return Result.PutResultResult.fromDict(response.data);
|
|
1922
|
-
}).catch(function (error) {
|
|
1923
|
-
if (error.response) {
|
|
1924
|
-
throw JSON.parse(error.response.data.message);
|
|
1925
|
-
}
|
|
1926
|
-
else {
|
|
1927
|
-
throw [];
|
|
1928
|
-
}
|
|
1479
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1480
|
+
return Result.PutResultResult.fromDict(data);
|
|
1929
1481
|
});
|
|
1930
1482
|
};
|
|
1931
1483
|
Gs2MatchmakingRestClient.prototype.deleteRating = function (request) {
|
|
@@ -1949,13 +1501,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1949
1501
|
var params = {
|
|
1950
1502
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1951
1503
|
};
|
|
1952
|
-
return
|
|
1953
|
-
|
|
1954
|
-
headers: headers,
|
|
1955
|
-
}).then(function (response) {
|
|
1956
|
-
return Result.DeleteRatingResult.fromDict(response.data);
|
|
1957
|
-
}).catch(function (error) {
|
|
1958
|
-
throw JSON.parse(error.response.data.message);
|
|
1504
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1505
|
+
return Result.DeleteRatingResult.fromDict(data);
|
|
1959
1506
|
});
|
|
1960
1507
|
};
|
|
1961
1508
|
Gs2MatchmakingRestClient.prototype.getBallot = function (request) {
|
|
@@ -1978,17 +1525,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
1978
1525
|
'numberOfPlayer': (_k = request.getNumberOfPlayer()) !== null && _k !== void 0 ? _k : null,
|
|
1979
1526
|
'keyId': (_l = request.getKeyId()) !== null && _l !== void 0 ? _l : null,
|
|
1980
1527
|
};
|
|
1981
|
-
return
|
|
1982
|
-
|
|
1983
|
-
}).then(function (response) {
|
|
1984
|
-
return Result.GetBallotResult.fromDict(response.data);
|
|
1985
|
-
}).catch(function (error) {
|
|
1986
|
-
if (error.response) {
|
|
1987
|
-
throw JSON.parse(error.response.data.message);
|
|
1988
|
-
}
|
|
1989
|
-
else {
|
|
1990
|
-
throw [];
|
|
1991
|
-
}
|
|
1528
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1529
|
+
return Result.GetBallotResult.fromDict(data);
|
|
1992
1530
|
});
|
|
1993
1531
|
};
|
|
1994
1532
|
Gs2MatchmakingRestClient.prototype.getBallotByUserId = function (request) {
|
|
@@ -2012,17 +1550,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
2012
1550
|
'numberOfPlayer': (_m = request.getNumberOfPlayer()) !== null && _m !== void 0 ? _m : null,
|
|
2013
1551
|
'keyId': (_o = request.getKeyId()) !== null && _o !== void 0 ? _o : null,
|
|
2014
1552
|
};
|
|
2015
|
-
return
|
|
2016
|
-
|
|
2017
|
-
}).then(function (response) {
|
|
2018
|
-
return Result.GetBallotByUserIdResult.fromDict(response.data);
|
|
2019
|
-
}).catch(function (error) {
|
|
2020
|
-
if (error.response) {
|
|
2021
|
-
throw JSON.parse(error.response.data.message);
|
|
2022
|
-
}
|
|
2023
|
-
else {
|
|
2024
|
-
throw [];
|
|
2025
|
-
}
|
|
1553
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1554
|
+
return Result.GetBallotByUserIdResult.fromDict(data);
|
|
2026
1555
|
});
|
|
2027
1556
|
};
|
|
2028
1557
|
Gs2MatchmakingRestClient.prototype.vote = function (request) {
|
|
@@ -2042,17 +1571,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
2042
1571
|
'gameResults': (_h = (_g = request.getGameResults()) === null || _g === void 0 ? void 0 : _g.map(function (item) { return item.toDict(); })) !== null && _h !== void 0 ? _h : null,
|
|
2043
1572
|
'keyId': (_j = request.getKeyId()) !== null && _j !== void 0 ? _j : null,
|
|
2044
1573
|
};
|
|
2045
|
-
return
|
|
2046
|
-
|
|
2047
|
-
}).then(function (response) {
|
|
2048
|
-
return Result.VoteResult.fromDict(response.data);
|
|
2049
|
-
}).catch(function (error) {
|
|
2050
|
-
if (error.response) {
|
|
2051
|
-
throw JSON.parse(error.response.data.message);
|
|
2052
|
-
}
|
|
2053
|
-
else {
|
|
2054
|
-
throw [];
|
|
2055
|
-
}
|
|
1574
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1575
|
+
return Result.VoteResult.fromDict(data);
|
|
2056
1576
|
});
|
|
2057
1577
|
};
|
|
2058
1578
|
Gs2MatchmakingRestClient.prototype.voteMultiple = function (request) {
|
|
@@ -2071,17 +1591,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
2071
1591
|
'gameResults': (_h = (_g = request.getGameResults()) === null || _g === void 0 ? void 0 : _g.map(function (item) { return item.toDict(); })) !== null && _h !== void 0 ? _h : null,
|
|
2072
1592
|
'keyId': (_j = request.getKeyId()) !== null && _j !== void 0 ? _j : null,
|
|
2073
1593
|
};
|
|
2074
|
-
return
|
|
2075
|
-
|
|
2076
|
-
}).then(function (response) {
|
|
2077
|
-
return Result.VoteMultipleResult.fromDict(response.data);
|
|
2078
|
-
}).catch(function (error) {
|
|
2079
|
-
if (error.response) {
|
|
2080
|
-
throw JSON.parse(error.response.data.message);
|
|
2081
|
-
}
|
|
2082
|
-
else {
|
|
2083
|
-
throw [];
|
|
2084
|
-
}
|
|
1594
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1595
|
+
return Result.VoteMultipleResult.fromDict(data);
|
|
2085
1596
|
});
|
|
2086
1597
|
};
|
|
2087
1598
|
Gs2MatchmakingRestClient.prototype.commitVote = function (request) {
|
|
@@ -2099,17 +1610,8 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
|
|
|
2099
1610
|
var body = {
|
|
2100
1611
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
2101
1612
|
};
|
|
2102
|
-
return
|
|
2103
|
-
|
|
2104
|
-
}).then(function (response) {
|
|
2105
|
-
return Result.CommitVoteResult.fromDict(response.data);
|
|
2106
|
-
}).catch(function (error) {
|
|
2107
|
-
if (error.response) {
|
|
2108
|
-
throw JSON.parse(error.response.data.message);
|
|
2109
|
-
}
|
|
2110
|
-
else {
|
|
2111
|
-
throw [];
|
|
2112
|
-
}
|
|
1613
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1614
|
+
return Result.CommitVoteResult.fromDict(data);
|
|
2113
1615
|
});
|
|
2114
1616
|
};
|
|
2115
1617
|
Gs2MatchmakingRestClient.ENDPOINT_HOST = null;
|