gs2 1.4.110 → 1.4.115
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/rest.js +130 -564
- 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 +5 -5
- 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/ranking2/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 Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
24
23
|
tslib_1.__extends(Gs2Ranking2RestClient, _super);
|
|
25
24
|
function Gs2Ranking2RestClient(session) {
|
|
@@ -40,13 +39,8 @@ var Gs2Ranking2RestClient = /** @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
|
Gs2Ranking2RestClient.prototype.createNamespace = function (request) {
|
|
@@ -65,17 +59,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
65
59
|
'transactionSetting': (_f = (_e = request.getTransactionSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
66
60
|
'logSetting': (_h = (_g = request.getLogSetting()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
67
61
|
};
|
|
68
|
-
return
|
|
69
|
-
|
|
70
|
-
}).then(function (response) {
|
|
71
|
-
return Result.CreateNamespaceResult.fromDict(response.data);
|
|
72
|
-
}).catch(function (error) {
|
|
73
|
-
if (error.response) {
|
|
74
|
-
throw JSON.parse(error.response.data.message);
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
throw [];
|
|
78
|
-
}
|
|
62
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
63
|
+
return Result.CreateNamespaceResult.fromDict(data);
|
|
79
64
|
});
|
|
80
65
|
};
|
|
81
66
|
Gs2Ranking2RestClient.prototype.getNamespaceStatus = function (request) {
|
|
@@ -91,13 +76,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
91
76
|
var params = {
|
|
92
77
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
93
78
|
};
|
|
94
|
-
return
|
|
95
|
-
|
|
96
|
-
headers: headers,
|
|
97
|
-
}).then(function (response) {
|
|
98
|
-
return Result.GetNamespaceStatusResult.fromDict(response.data);
|
|
99
|
-
}).catch(function (error) {
|
|
100
|
-
throw JSON.parse(error.response.data.message);
|
|
79
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
80
|
+
return Result.GetNamespaceStatusResult.fromDict(data);
|
|
101
81
|
});
|
|
102
82
|
};
|
|
103
83
|
Gs2Ranking2RestClient.prototype.getNamespace = function (request) {
|
|
@@ -113,13 +93,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
113
93
|
var params = {
|
|
114
94
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
115
95
|
};
|
|
116
|
-
return
|
|
117
|
-
|
|
118
|
-
headers: headers,
|
|
119
|
-
}).then(function (response) {
|
|
120
|
-
return Result.GetNamespaceResult.fromDict(response.data);
|
|
121
|
-
}).catch(function (error) {
|
|
122
|
-
throw JSON.parse(error.response.data.message);
|
|
96
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
97
|
+
return Result.GetNamespaceResult.fromDict(data);
|
|
123
98
|
});
|
|
124
99
|
};
|
|
125
100
|
Gs2Ranking2RestClient.prototype.updateNamespace = function (request) {
|
|
@@ -138,17 +113,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
138
113
|
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
139
114
|
'logSetting': (_j = (_h = request.getLogSetting()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
140
115
|
};
|
|
141
|
-
return
|
|
142
|
-
|
|
143
|
-
}).then(function (response) {
|
|
144
|
-
return Result.UpdateNamespaceResult.fromDict(response.data);
|
|
145
|
-
}).catch(function (error) {
|
|
146
|
-
if (error.response) {
|
|
147
|
-
throw JSON.parse(error.response.data.message);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
throw [];
|
|
151
|
-
}
|
|
116
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
117
|
+
return Result.UpdateNamespaceResult.fromDict(data);
|
|
152
118
|
});
|
|
153
119
|
};
|
|
154
120
|
Gs2Ranking2RestClient.prototype.deleteNamespace = function (request) {
|
|
@@ -164,13 +130,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
164
130
|
var params = {
|
|
165
131
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
166
132
|
};
|
|
167
|
-
return
|
|
168
|
-
|
|
169
|
-
headers: headers,
|
|
170
|
-
}).then(function (response) {
|
|
171
|
-
return Result.DeleteNamespaceResult.fromDict(response.data);
|
|
172
|
-
}).catch(function (error) {
|
|
173
|
-
throw JSON.parse(error.response.data.message);
|
|
133
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
134
|
+
return Result.DeleteNamespaceResult.fromDict(data);
|
|
174
135
|
});
|
|
175
136
|
};
|
|
176
137
|
Gs2Ranking2RestClient.prototype.getServiceVersion = function (request) {
|
|
@@ -185,13 +146,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
185
146
|
var params = {
|
|
186
147
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
187
148
|
};
|
|
188
|
-
return
|
|
189
|
-
|
|
190
|
-
headers: headers,
|
|
191
|
-
}).then(function (response) {
|
|
192
|
-
return Result.GetServiceVersionResult.fromDict(response.data);
|
|
193
|
-
}).catch(function (error) {
|
|
194
|
-
throw JSON.parse(error.response.data.message);
|
|
149
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
150
|
+
return Result.GetServiceVersionResult.fromDict(data);
|
|
195
151
|
});
|
|
196
152
|
};
|
|
197
153
|
Gs2Ranking2RestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
@@ -210,17 +166,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
210
166
|
var body = {
|
|
211
167
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
212
168
|
};
|
|
213
|
-
return
|
|
214
|
-
|
|
215
|
-
}).then(function (response) {
|
|
216
|
-
return Result.DumpUserDataByUserIdResult.fromDict(response.data);
|
|
217
|
-
}).catch(function (error) {
|
|
218
|
-
if (error.response) {
|
|
219
|
-
throw JSON.parse(error.response.data.message);
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
throw [];
|
|
223
|
-
}
|
|
169
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
170
|
+
return Result.DumpUserDataByUserIdResult.fromDict(data);
|
|
224
171
|
});
|
|
225
172
|
};
|
|
226
173
|
Gs2Ranking2RestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
@@ -239,13 +186,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
239
186
|
var params = {
|
|
240
187
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
241
188
|
};
|
|
242
|
-
return
|
|
243
|
-
|
|
244
|
-
headers: headers,
|
|
245
|
-
}).then(function (response) {
|
|
246
|
-
return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
|
|
247
|
-
}).catch(function (error) {
|
|
248
|
-
throw JSON.parse(error.response.data.message);
|
|
189
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
190
|
+
return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
|
|
249
191
|
});
|
|
250
192
|
};
|
|
251
193
|
Gs2Ranking2RestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
@@ -264,17 +206,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
264
206
|
var body = {
|
|
265
207
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
266
208
|
};
|
|
267
|
-
return
|
|
268
|
-
|
|
269
|
-
}).then(function (response) {
|
|
270
|
-
return Result.CleanUserDataByUserIdResult.fromDict(response.data);
|
|
271
|
-
}).catch(function (error) {
|
|
272
|
-
if (error.response) {
|
|
273
|
-
throw JSON.parse(error.response.data.message);
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
throw [];
|
|
277
|
-
}
|
|
209
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
210
|
+
return Result.CleanUserDataByUserIdResult.fromDict(data);
|
|
278
211
|
});
|
|
279
212
|
};
|
|
280
213
|
Gs2Ranking2RestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
@@ -293,13 +226,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
293
226
|
var params = {
|
|
294
227
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
295
228
|
};
|
|
296
|
-
return
|
|
297
|
-
|
|
298
|
-
headers: headers,
|
|
299
|
-
}).then(function (response) {
|
|
300
|
-
return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
|
|
301
|
-
}).catch(function (error) {
|
|
302
|
-
throw JSON.parse(error.response.data.message);
|
|
229
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
230
|
+
return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
|
|
303
231
|
});
|
|
304
232
|
};
|
|
305
233
|
Gs2Ranking2RestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
@@ -318,17 +246,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
318
246
|
var body = {
|
|
319
247
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
320
248
|
};
|
|
321
|
-
return
|
|
322
|
-
|
|
323
|
-
}).then(function (response) {
|
|
324
|
-
return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
|
|
325
|
-
}).catch(function (error) {
|
|
326
|
-
if (error.response) {
|
|
327
|
-
throw JSON.parse(error.response.data.message);
|
|
328
|
-
}
|
|
329
|
-
else {
|
|
330
|
-
throw [];
|
|
331
|
-
}
|
|
249
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
250
|
+
return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
|
|
332
251
|
});
|
|
333
252
|
};
|
|
334
253
|
Gs2Ranking2RestClient.prototype.importUserDataByUserId = function (request) {
|
|
@@ -348,17 +267,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
348
267
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
349
268
|
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
350
269
|
};
|
|
351
|
-
return
|
|
352
|
-
|
|
353
|
-
}).then(function (response) {
|
|
354
|
-
return Result.ImportUserDataByUserIdResult.fromDict(response.data);
|
|
355
|
-
}).catch(function (error) {
|
|
356
|
-
if (error.response) {
|
|
357
|
-
throw JSON.parse(error.response.data.message);
|
|
358
|
-
}
|
|
359
|
-
else {
|
|
360
|
-
throw [];
|
|
361
|
-
}
|
|
270
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
271
|
+
return Result.ImportUserDataByUserIdResult.fromDict(data);
|
|
362
272
|
});
|
|
363
273
|
};
|
|
364
274
|
Gs2Ranking2RestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
@@ -378,13 +288,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
378
288
|
var params = {
|
|
379
289
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
380
290
|
};
|
|
381
|
-
return
|
|
382
|
-
|
|
383
|
-
headers: headers,
|
|
384
|
-
}).then(function (response) {
|
|
385
|
-
return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
|
|
386
|
-
}).catch(function (error) {
|
|
387
|
-
throw JSON.parse(error.response.data.message);
|
|
291
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
292
|
+
return Result.CheckImportUserDataByUserIdResult.fromDict(data);
|
|
388
293
|
});
|
|
389
294
|
};
|
|
390
295
|
Gs2Ranking2RestClient.prototype.describeGlobalRankingModels = function (request) {
|
|
@@ -400,13 +305,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
400
305
|
var params = {
|
|
401
306
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
402
307
|
};
|
|
403
|
-
return
|
|
404
|
-
|
|
405
|
-
headers: headers,
|
|
406
|
-
}).then(function (response) {
|
|
407
|
-
return Result.DescribeGlobalRankingModelsResult.fromDict(response.data);
|
|
408
|
-
}).catch(function (error) {
|
|
409
|
-
throw JSON.parse(error.response.data.message);
|
|
308
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
309
|
+
return Result.DescribeGlobalRankingModelsResult.fromDict(data);
|
|
410
310
|
});
|
|
411
311
|
};
|
|
412
312
|
Gs2Ranking2RestClient.prototype.getGlobalRankingModel = function (request) {
|
|
@@ -423,13 +323,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
423
323
|
var params = {
|
|
424
324
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
425
325
|
};
|
|
426
|
-
return
|
|
427
|
-
|
|
428
|
-
headers: headers,
|
|
429
|
-
}).then(function (response) {
|
|
430
|
-
return Result.GetGlobalRankingModelResult.fromDict(response.data);
|
|
431
|
-
}).catch(function (error) {
|
|
432
|
-
throw JSON.parse(error.response.data.message);
|
|
326
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
327
|
+
return Result.GetGlobalRankingModelResult.fromDict(data);
|
|
433
328
|
});
|
|
434
329
|
};
|
|
435
330
|
Gs2Ranking2RestClient.prototype.describeGlobalRankingModelMasters = function (request) {
|
|
@@ -448,13 +343,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
448
343
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
449
344
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
450
345
|
};
|
|
451
|
-
return
|
|
452
|
-
|
|
453
|
-
headers: headers,
|
|
454
|
-
}).then(function (response) {
|
|
455
|
-
return Result.DescribeGlobalRankingModelMastersResult.fromDict(response.data);
|
|
456
|
-
}).catch(function (error) {
|
|
457
|
-
throw JSON.parse(error.response.data.message);
|
|
346
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
347
|
+
return Result.DescribeGlobalRankingModelMastersResult.fromDict(data);
|
|
458
348
|
});
|
|
459
349
|
};
|
|
460
350
|
Gs2Ranking2RestClient.prototype.createGlobalRankingModelMaster = function (request) {
|
|
@@ -481,17 +371,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
481
371
|
'entryPeriodEventId': (_q = request.getEntryPeriodEventId()) !== null && _q !== void 0 ? _q : null,
|
|
482
372
|
'accessPeriodEventId': (_r = request.getAccessPeriodEventId()) !== null && _r !== void 0 ? _r : null,
|
|
483
373
|
};
|
|
484
|
-
return
|
|
485
|
-
|
|
486
|
-
}).then(function (response) {
|
|
487
|
-
return Result.CreateGlobalRankingModelMasterResult.fromDict(response.data);
|
|
488
|
-
}).catch(function (error) {
|
|
489
|
-
if (error.response) {
|
|
490
|
-
throw JSON.parse(error.response.data.message);
|
|
491
|
-
}
|
|
492
|
-
else {
|
|
493
|
-
throw [];
|
|
494
|
-
}
|
|
374
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
375
|
+
return Result.CreateGlobalRankingModelMasterResult.fromDict(data);
|
|
495
376
|
});
|
|
496
377
|
};
|
|
497
378
|
Gs2Ranking2RestClient.prototype.getGlobalRankingModelMaster = function (request) {
|
|
@@ -508,13 +389,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
508
389
|
var params = {
|
|
509
390
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
510
391
|
};
|
|
511
|
-
return
|
|
512
|
-
|
|
513
|
-
headers: headers,
|
|
514
|
-
}).then(function (response) {
|
|
515
|
-
return Result.GetGlobalRankingModelMasterResult.fromDict(response.data);
|
|
516
|
-
}).catch(function (error) {
|
|
517
|
-
throw JSON.parse(error.response.data.message);
|
|
392
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
393
|
+
return Result.GetGlobalRankingModelMasterResult.fromDict(data);
|
|
518
394
|
});
|
|
519
395
|
};
|
|
520
396
|
Gs2Ranking2RestClient.prototype.updateGlobalRankingModelMaster = function (request) {
|
|
@@ -541,17 +417,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
541
417
|
'entryPeriodEventId': (_r = request.getEntryPeriodEventId()) !== null && _r !== void 0 ? _r : null,
|
|
542
418
|
'accessPeriodEventId': (_s = request.getAccessPeriodEventId()) !== null && _s !== void 0 ? _s : null,
|
|
543
419
|
};
|
|
544
|
-
return
|
|
545
|
-
|
|
546
|
-
}).then(function (response) {
|
|
547
|
-
return Result.UpdateGlobalRankingModelMasterResult.fromDict(response.data);
|
|
548
|
-
}).catch(function (error) {
|
|
549
|
-
if (error.response) {
|
|
550
|
-
throw JSON.parse(error.response.data.message);
|
|
551
|
-
}
|
|
552
|
-
else {
|
|
553
|
-
throw [];
|
|
554
|
-
}
|
|
420
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
421
|
+
return Result.UpdateGlobalRankingModelMasterResult.fromDict(data);
|
|
555
422
|
});
|
|
556
423
|
};
|
|
557
424
|
Gs2Ranking2RestClient.prototype.deleteGlobalRankingModelMaster = function (request) {
|
|
@@ -568,13 +435,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
568
435
|
var params = {
|
|
569
436
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
570
437
|
};
|
|
571
|
-
return
|
|
572
|
-
|
|
573
|
-
headers: headers,
|
|
574
|
-
}).then(function (response) {
|
|
575
|
-
return Result.DeleteGlobalRankingModelMasterResult.fromDict(response.data);
|
|
576
|
-
}).catch(function (error) {
|
|
577
|
-
throw JSON.parse(error.response.data.message);
|
|
438
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
439
|
+
return Result.DeleteGlobalRankingModelMasterResult.fromDict(data);
|
|
578
440
|
});
|
|
579
441
|
};
|
|
580
442
|
Gs2Ranking2RestClient.prototype.describeGlobalRankingScores = function (request) {
|
|
@@ -596,13 +458,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
596
458
|
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
597
459
|
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
598
460
|
};
|
|
599
|
-
return
|
|
600
|
-
|
|
601
|
-
headers: headers,
|
|
602
|
-
}).then(function (response) {
|
|
603
|
-
return Result.DescribeGlobalRankingScoresResult.fromDict(response.data);
|
|
604
|
-
}).catch(function (error) {
|
|
605
|
-
throw JSON.parse(error.response.data.message);
|
|
461
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
462
|
+
return Result.DescribeGlobalRankingScoresResult.fromDict(data);
|
|
606
463
|
});
|
|
607
464
|
};
|
|
608
465
|
Gs2Ranking2RestClient.prototype.describeGlobalRankingScoresByUserId = function (request) {
|
|
@@ -625,13 +482,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
625
482
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
626
483
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
627
484
|
};
|
|
628
|
-
return
|
|
629
|
-
|
|
630
|
-
headers: headers,
|
|
631
|
-
}).then(function (response) {
|
|
632
|
-
return Result.DescribeGlobalRankingScoresByUserIdResult.fromDict(response.data);
|
|
633
|
-
}).catch(function (error) {
|
|
634
|
-
throw JSON.parse(error.response.data.message);
|
|
485
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
486
|
+
return Result.DescribeGlobalRankingScoresByUserIdResult.fromDict(data);
|
|
635
487
|
});
|
|
636
488
|
};
|
|
637
489
|
Gs2Ranking2RestClient.prototype.putGlobalRankingScore = function (request) {
|
|
@@ -656,17 +508,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
656
508
|
'score': (_j = request.getScore()) !== null && _j !== void 0 ? _j : null,
|
|
657
509
|
'metadata': (_k = request.getMetadata()) !== null && _k !== void 0 ? _k : null,
|
|
658
510
|
};
|
|
659
|
-
return
|
|
660
|
-
|
|
661
|
-
}).then(function (response) {
|
|
662
|
-
return Result.PutGlobalRankingScoreResult.fromDict(response.data);
|
|
663
|
-
}).catch(function (error) {
|
|
664
|
-
if (error.response) {
|
|
665
|
-
throw JSON.parse(error.response.data.message);
|
|
666
|
-
}
|
|
667
|
-
else {
|
|
668
|
-
throw [];
|
|
669
|
-
}
|
|
511
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
512
|
+
return Result.PutGlobalRankingScoreResult.fromDict(data);
|
|
670
513
|
});
|
|
671
514
|
};
|
|
672
515
|
Gs2Ranking2RestClient.prototype.putGlobalRankingScoreByUserId = function (request) {
|
|
@@ -692,17 +535,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
692
535
|
'score': (_l = request.getScore()) !== null && _l !== void 0 ? _l : null,
|
|
693
536
|
'metadata': (_m = request.getMetadata()) !== null && _m !== void 0 ? _m : null,
|
|
694
537
|
};
|
|
695
|
-
return
|
|
696
|
-
|
|
697
|
-
}).then(function (response) {
|
|
698
|
-
return Result.PutGlobalRankingScoreByUserIdResult.fromDict(response.data);
|
|
699
|
-
}).catch(function (error) {
|
|
700
|
-
if (error.response) {
|
|
701
|
-
throw JSON.parse(error.response.data.message);
|
|
702
|
-
}
|
|
703
|
-
else {
|
|
704
|
-
throw [];
|
|
705
|
-
}
|
|
538
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
539
|
+
return Result.PutGlobalRankingScoreByUserIdResult.fromDict(data);
|
|
706
540
|
});
|
|
707
541
|
};
|
|
708
542
|
Gs2Ranking2RestClient.prototype.getGlobalRankingScore = function (request) {
|
|
@@ -723,13 +557,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
723
557
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
724
558
|
'season': String((_h = request.getSeason()) !== null && _h !== void 0 ? _h : null),
|
|
725
559
|
};
|
|
726
|
-
return
|
|
727
|
-
|
|
728
|
-
headers: headers,
|
|
729
|
-
}).then(function (response) {
|
|
730
|
-
return Result.GetGlobalRankingScoreResult.fromDict(response.data);
|
|
731
|
-
}).catch(function (error) {
|
|
732
|
-
throw JSON.parse(error.response.data.message);
|
|
560
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
561
|
+
return Result.GetGlobalRankingScoreResult.fromDict(data);
|
|
733
562
|
});
|
|
734
563
|
};
|
|
735
564
|
Gs2Ranking2RestClient.prototype.getGlobalRankingScoreByUserId = function (request) {
|
|
@@ -751,13 +580,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
751
580
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
752
581
|
'season': String((_k = request.getSeason()) !== null && _k !== void 0 ? _k : null),
|
|
753
582
|
};
|
|
754
|
-
return
|
|
755
|
-
|
|
756
|
-
headers: headers,
|
|
757
|
-
}).then(function (response) {
|
|
758
|
-
return Result.GetGlobalRankingScoreByUserIdResult.fromDict(response.data);
|
|
759
|
-
}).catch(function (error) {
|
|
760
|
-
throw JSON.parse(error.response.data.message);
|
|
583
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
584
|
+
return Result.GetGlobalRankingScoreByUserIdResult.fromDict(data);
|
|
761
585
|
});
|
|
762
586
|
};
|
|
763
587
|
Gs2Ranking2RestClient.prototype.deleteGlobalRankingScoreByUserId = function (request) {
|
|
@@ -782,13 +606,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
782
606
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
783
607
|
'season': String((_l = request.getSeason()) !== null && _l !== void 0 ? _l : null),
|
|
784
608
|
};
|
|
785
|
-
return
|
|
786
|
-
|
|
787
|
-
headers: headers,
|
|
788
|
-
}).then(function (response) {
|
|
789
|
-
return Result.DeleteGlobalRankingScoreByUserIdResult.fromDict(response.data);
|
|
790
|
-
}).catch(function (error) {
|
|
791
|
-
throw JSON.parse(error.response.data.message);
|
|
609
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
610
|
+
return Result.DeleteGlobalRankingScoreByUserIdResult.fromDict(data);
|
|
792
611
|
});
|
|
793
612
|
};
|
|
794
613
|
Gs2Ranking2RestClient.prototype.verifyGlobalRankingScore = function (request) {
|
|
@@ -815,17 +634,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
815
634
|
'score': (_m = request.getScore()) !== null && _m !== void 0 ? _m : null,
|
|
816
635
|
'multiplyValueSpecifyingQuantity': (_o = request.getMultiplyValueSpecifyingQuantity()) !== null && _o !== void 0 ? _o : null,
|
|
817
636
|
};
|
|
818
|
-
return
|
|
819
|
-
|
|
820
|
-
}).then(function (response) {
|
|
821
|
-
return Result.VerifyGlobalRankingScoreResult.fromDict(response.data);
|
|
822
|
-
}).catch(function (error) {
|
|
823
|
-
if (error.response) {
|
|
824
|
-
throw JSON.parse(error.response.data.message);
|
|
825
|
-
}
|
|
826
|
-
else {
|
|
827
|
-
throw [];
|
|
828
|
-
}
|
|
637
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
638
|
+
return Result.VerifyGlobalRankingScoreResult.fromDict(data);
|
|
829
639
|
});
|
|
830
640
|
};
|
|
831
641
|
Gs2Ranking2RestClient.prototype.verifyGlobalRankingScoreByUserId = function (request) {
|
|
@@ -853,17 +663,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
853
663
|
'score': (_p = request.getScore()) !== null && _p !== void 0 ? _p : null,
|
|
854
664
|
'multiplyValueSpecifyingQuantity': (_q = request.getMultiplyValueSpecifyingQuantity()) !== null && _q !== void 0 ? _q : null,
|
|
855
665
|
};
|
|
856
|
-
return
|
|
857
|
-
|
|
858
|
-
}).then(function (response) {
|
|
859
|
-
return Result.VerifyGlobalRankingScoreByUserIdResult.fromDict(response.data);
|
|
860
|
-
}).catch(function (error) {
|
|
861
|
-
if (error.response) {
|
|
862
|
-
throw JSON.parse(error.response.data.message);
|
|
863
|
-
}
|
|
864
|
-
else {
|
|
865
|
-
throw [];
|
|
866
|
-
}
|
|
666
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
667
|
+
return Result.VerifyGlobalRankingScoreByUserIdResult.fromDict(data);
|
|
867
668
|
});
|
|
868
669
|
};
|
|
869
670
|
Gs2Ranking2RestClient.prototype.verifyGlobalRankingScoreByStampTask = function (request) {
|
|
@@ -880,17 +681,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
880
681
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
881
682
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
882
683
|
};
|
|
883
|
-
return
|
|
884
|
-
|
|
885
|
-
}).then(function (response) {
|
|
886
|
-
return Result.VerifyGlobalRankingScoreByStampTaskResult.fromDict(response.data);
|
|
887
|
-
}).catch(function (error) {
|
|
888
|
-
if (error.response) {
|
|
889
|
-
throw JSON.parse(error.response.data.message);
|
|
890
|
-
}
|
|
891
|
-
else {
|
|
892
|
-
throw [];
|
|
893
|
-
}
|
|
684
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
685
|
+
return Result.VerifyGlobalRankingScoreByStampTaskResult.fromDict(data);
|
|
894
686
|
});
|
|
895
687
|
};
|
|
896
688
|
Gs2Ranking2RestClient.prototype.describeGlobalRankingReceivedRewards = function (request) {
|
|
@@ -913,13 +705,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
913
705
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
914
706
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
915
707
|
};
|
|
916
|
-
return
|
|
917
|
-
|
|
918
|
-
headers: headers,
|
|
919
|
-
}).then(function (response) {
|
|
920
|
-
return Result.DescribeGlobalRankingReceivedRewardsResult.fromDict(response.data);
|
|
921
|
-
}).catch(function (error) {
|
|
922
|
-
throw JSON.parse(error.response.data.message);
|
|
708
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
709
|
+
return Result.DescribeGlobalRankingReceivedRewardsResult.fromDict(data);
|
|
923
710
|
});
|
|
924
711
|
};
|
|
925
712
|
Gs2Ranking2RestClient.prototype.describeGlobalRankingReceivedRewardsByUserId = function (request) {
|
|
@@ -943,13 +730,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
943
730
|
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
944
731
|
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
945
732
|
};
|
|
946
|
-
return
|
|
947
|
-
|
|
948
|
-
headers: headers,
|
|
949
|
-
}).then(function (response) {
|
|
950
|
-
return Result.DescribeGlobalRankingReceivedRewardsByUserIdResult.fromDict(response.data);
|
|
951
|
-
}).catch(function (error) {
|
|
952
|
-
throw JSON.parse(error.response.data.message);
|
|
733
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
734
|
+
return Result.DescribeGlobalRankingReceivedRewardsByUserIdResult.fromDict(data);
|
|
953
735
|
});
|
|
954
736
|
};
|
|
955
737
|
Gs2Ranking2RestClient.prototype.createGlobalRankingReceivedReward = function (request) {
|
|
@@ -973,17 +755,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
973
755
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
974
756
|
'season': (_j = request.getSeason()) !== null && _j !== void 0 ? _j : null,
|
|
975
757
|
};
|
|
976
|
-
return
|
|
977
|
-
|
|
978
|
-
}).then(function (response) {
|
|
979
|
-
return Result.CreateGlobalRankingReceivedRewardResult.fromDict(response.data);
|
|
980
|
-
}).catch(function (error) {
|
|
981
|
-
if (error.response) {
|
|
982
|
-
throw JSON.parse(error.response.data.message);
|
|
983
|
-
}
|
|
984
|
-
else {
|
|
985
|
-
throw [];
|
|
986
|
-
}
|
|
758
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
759
|
+
return Result.CreateGlobalRankingReceivedRewardResult.fromDict(data);
|
|
987
760
|
});
|
|
988
761
|
};
|
|
989
762
|
Gs2Ranking2RestClient.prototype.createGlobalRankingReceivedRewardByUserId = function (request) {
|
|
@@ -1008,17 +781,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1008
781
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1009
782
|
'season': (_l = request.getSeason()) !== null && _l !== void 0 ? _l : null,
|
|
1010
783
|
};
|
|
1011
|
-
return
|
|
1012
|
-
|
|
1013
|
-
}).then(function (response) {
|
|
1014
|
-
return Result.CreateGlobalRankingReceivedRewardByUserIdResult.fromDict(response.data);
|
|
1015
|
-
}).catch(function (error) {
|
|
1016
|
-
if (error.response) {
|
|
1017
|
-
throw JSON.parse(error.response.data.message);
|
|
1018
|
-
}
|
|
1019
|
-
else {
|
|
1020
|
-
throw [];
|
|
1021
|
-
}
|
|
784
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
785
|
+
return Result.CreateGlobalRankingReceivedRewardByUserIdResult.fromDict(data);
|
|
1022
786
|
});
|
|
1023
787
|
};
|
|
1024
788
|
Gs2Ranking2RestClient.prototype.receiveGlobalRankingReceivedReward = function (request) {
|
|
@@ -1043,17 +807,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1043
807
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1044
808
|
'config': (_m = (_l = request.getConfig()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
1045
809
|
};
|
|
1046
|
-
return
|
|
1047
|
-
|
|
1048
|
-
}).then(function (response) {
|
|
1049
|
-
return Result.ReceiveGlobalRankingReceivedRewardResult.fromDict(response.data);
|
|
1050
|
-
}).catch(function (error) {
|
|
1051
|
-
if (error.response) {
|
|
1052
|
-
throw JSON.parse(error.response.data.message);
|
|
1053
|
-
}
|
|
1054
|
-
else {
|
|
1055
|
-
throw [];
|
|
1056
|
-
}
|
|
810
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
811
|
+
return Result.ReceiveGlobalRankingReceivedRewardResult.fromDict(data);
|
|
1057
812
|
});
|
|
1058
813
|
};
|
|
1059
814
|
Gs2Ranking2RestClient.prototype.receiveGlobalRankingReceivedRewardByUserId = function (request) {
|
|
@@ -1079,17 +834,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1079
834
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1080
835
|
'config': (_p = (_o = request.getConfig()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
|
|
1081
836
|
};
|
|
1082
|
-
return
|
|
1083
|
-
|
|
1084
|
-
}).then(function (response) {
|
|
1085
|
-
return Result.ReceiveGlobalRankingReceivedRewardByUserIdResult.fromDict(response.data);
|
|
1086
|
-
}).catch(function (error) {
|
|
1087
|
-
if (error.response) {
|
|
1088
|
-
throw JSON.parse(error.response.data.message);
|
|
1089
|
-
}
|
|
1090
|
-
else {
|
|
1091
|
-
throw [];
|
|
1092
|
-
}
|
|
837
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
838
|
+
return Result.ReceiveGlobalRankingReceivedRewardByUserIdResult.fromDict(data);
|
|
1093
839
|
});
|
|
1094
840
|
};
|
|
1095
841
|
Gs2Ranking2RestClient.prototype.getGlobalRankingReceivedReward = function (request) {
|
|
@@ -1110,13 +856,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1110
856
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1111
857
|
'season': String((_h = request.getSeason()) !== null && _h !== void 0 ? _h : null),
|
|
1112
858
|
};
|
|
1113
|
-
return
|
|
1114
|
-
|
|
1115
|
-
headers: headers,
|
|
1116
|
-
}).then(function (response) {
|
|
1117
|
-
return Result.GetGlobalRankingReceivedRewardResult.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.GetGlobalRankingReceivedRewardResult.fromDict(data);
|
|
1120
861
|
});
|
|
1121
862
|
};
|
|
1122
863
|
Gs2Ranking2RestClient.prototype.getGlobalRankingReceivedRewardByUserId = function (request) {
|
|
@@ -1138,13 +879,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1138
879
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1139
880
|
'season': String((_k = request.getSeason()) !== null && _k !== void 0 ? _k : null),
|
|
1140
881
|
};
|
|
1141
|
-
return
|
|
1142
|
-
|
|
1143
|
-
headers: headers,
|
|
1144
|
-
}).then(function (response) {
|
|
1145
|
-
return Result.GetGlobalRankingReceivedRewardByUserIdResult.fromDict(response.data);
|
|
1146
|
-
}).catch(function (error) {
|
|
1147
|
-
throw JSON.parse(error.response.data.message);
|
|
882
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
883
|
+
return Result.GetGlobalRankingReceivedRewardByUserIdResult.fromDict(data);
|
|
1148
884
|
});
|
|
1149
885
|
};
|
|
1150
886
|
Gs2Ranking2RestClient.prototype.deleteGlobalRankingReceivedRewardByUserId = function (request) {
|
|
@@ -1169,13 +905,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1169
905
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1170
906
|
'season': String((_l = request.getSeason()) !== null && _l !== void 0 ? _l : null),
|
|
1171
907
|
};
|
|
1172
|
-
return
|
|
1173
|
-
|
|
1174
|
-
headers: headers,
|
|
1175
|
-
}).then(function (response) {
|
|
1176
|
-
return Result.DeleteGlobalRankingReceivedRewardByUserIdResult.fromDict(response.data);
|
|
1177
|
-
}).catch(function (error) {
|
|
1178
|
-
throw JSON.parse(error.response.data.message);
|
|
908
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
909
|
+
return Result.DeleteGlobalRankingReceivedRewardByUserIdResult.fromDict(data);
|
|
1179
910
|
});
|
|
1180
911
|
};
|
|
1181
912
|
Gs2Ranking2RestClient.prototype.createGlobalRankingReceivedRewardByStampTask = function (request) {
|
|
@@ -1192,17 +923,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1192
923
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1193
924
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1194
925
|
};
|
|
1195
|
-
return
|
|
1196
|
-
|
|
1197
|
-
}).then(function (response) {
|
|
1198
|
-
return Result.CreateGlobalRankingReceivedRewardByStampTaskResult.fromDict(response.data);
|
|
1199
|
-
}).catch(function (error) {
|
|
1200
|
-
if (error.response) {
|
|
1201
|
-
throw JSON.parse(error.response.data.message);
|
|
1202
|
-
}
|
|
1203
|
-
else {
|
|
1204
|
-
throw [];
|
|
1205
|
-
}
|
|
926
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
927
|
+
return Result.CreateGlobalRankingReceivedRewardByStampTaskResult.fromDict(data);
|
|
1206
928
|
});
|
|
1207
929
|
};
|
|
1208
930
|
Gs2Ranking2RestClient.prototype.describeGlobalRankings = function (request) {
|
|
@@ -1225,13 +947,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1225
947
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
1226
948
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
1227
949
|
};
|
|
1228
|
-
return
|
|
1229
|
-
|
|
1230
|
-
headers: headers,
|
|
1231
|
-
}).then(function (response) {
|
|
1232
|
-
return Result.DescribeGlobalRankingsResult.fromDict(response.data);
|
|
1233
|
-
}).catch(function (error) {
|
|
1234
|
-
throw JSON.parse(error.response.data.message);
|
|
950
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
951
|
+
return Result.DescribeGlobalRankingsResult.fromDict(data);
|
|
1235
952
|
});
|
|
1236
953
|
};
|
|
1237
954
|
Gs2Ranking2RestClient.prototype.describeGlobalRankingsByUserId = function (request) {
|
|
@@ -1255,13 +972,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1255
972
|
'pageToken': String((_l = request.getPageToken()) !== null && _l !== void 0 ? _l : null),
|
|
1256
973
|
'limit': String((_m = request.getLimit()) !== null && _m !== void 0 ? _m : null),
|
|
1257
974
|
};
|
|
1258
|
-
return
|
|
1259
|
-
|
|
1260
|
-
headers: headers,
|
|
1261
|
-
}).then(function (response) {
|
|
1262
|
-
return Result.DescribeGlobalRankingsByUserIdResult.fromDict(response.data);
|
|
1263
|
-
}).catch(function (error) {
|
|
1264
|
-
throw JSON.parse(error.response.data.message);
|
|
975
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
976
|
+
return Result.DescribeGlobalRankingsByUserIdResult.fromDict(data);
|
|
1265
977
|
});
|
|
1266
978
|
};
|
|
1267
979
|
Gs2Ranking2RestClient.prototype.getGlobalRanking = function (request) {
|
|
@@ -1282,13 +994,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1282
994
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1283
995
|
'season': String((_h = request.getSeason()) !== null && _h !== void 0 ? _h : null),
|
|
1284
996
|
};
|
|
1285
|
-
return
|
|
1286
|
-
|
|
1287
|
-
headers: headers,
|
|
1288
|
-
}).then(function (response) {
|
|
1289
|
-
return Result.GetGlobalRankingResult.fromDict(response.data);
|
|
1290
|
-
}).catch(function (error) {
|
|
1291
|
-
throw JSON.parse(error.response.data.message);
|
|
997
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
998
|
+
return Result.GetGlobalRankingResult.fromDict(data);
|
|
1292
999
|
});
|
|
1293
1000
|
};
|
|
1294
1001
|
Gs2Ranking2RestClient.prototype.getGlobalRankingByUserId = function (request) {
|
|
@@ -1310,13 +1017,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1310
1017
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1311
1018
|
'season': String((_k = request.getSeason()) !== null && _k !== void 0 ? _k : null),
|
|
1312
1019
|
};
|
|
1313
|
-
return
|
|
1314
|
-
|
|
1315
|
-
headers: headers,
|
|
1316
|
-
}).then(function (response) {
|
|
1317
|
-
return Result.GetGlobalRankingByUserIdResult.fromDict(response.data);
|
|
1318
|
-
}).catch(function (error) {
|
|
1319
|
-
throw JSON.parse(error.response.data.message);
|
|
1020
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1021
|
+
return Result.GetGlobalRankingByUserIdResult.fromDict(data);
|
|
1320
1022
|
});
|
|
1321
1023
|
};
|
|
1322
1024
|
Gs2Ranking2RestClient.prototype.describeClusterRankingModels = function (request) {
|
|
@@ -1332,13 +1034,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1332
1034
|
var params = {
|
|
1333
1035
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1334
1036
|
};
|
|
1335
|
-
return
|
|
1336
|
-
|
|
1337
|
-
headers: headers,
|
|
1338
|
-
}).then(function (response) {
|
|
1339
|
-
return Result.DescribeClusterRankingModelsResult.fromDict(response.data);
|
|
1340
|
-
}).catch(function (error) {
|
|
1341
|
-
throw JSON.parse(error.response.data.message);
|
|
1037
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1038
|
+
return Result.DescribeClusterRankingModelsResult.fromDict(data);
|
|
1342
1039
|
});
|
|
1343
1040
|
};
|
|
1344
1041
|
Gs2Ranking2RestClient.prototype.getClusterRankingModel = function (request) {
|
|
@@ -1355,13 +1052,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1355
1052
|
var params = {
|
|
1356
1053
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1357
1054
|
};
|
|
1358
|
-
return
|
|
1359
|
-
|
|
1360
|
-
headers: headers,
|
|
1361
|
-
}).then(function (response) {
|
|
1362
|
-
return Result.GetClusterRankingModelResult.fromDict(response.data);
|
|
1363
|
-
}).catch(function (error) {
|
|
1364
|
-
throw JSON.parse(error.response.data.message);
|
|
1055
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1056
|
+
return Result.GetClusterRankingModelResult.fromDict(data);
|
|
1365
1057
|
});
|
|
1366
1058
|
};
|
|
1367
1059
|
Gs2Ranking2RestClient.prototype.describeClusterRankingModelMasters = function (request) {
|
|
@@ -1380,13 +1072,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1380
1072
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1381
1073
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1382
1074
|
};
|
|
1383
|
-
return
|
|
1384
|
-
|
|
1385
|
-
headers: headers,
|
|
1386
|
-
}).then(function (response) {
|
|
1387
|
-
return Result.DescribeClusterRankingModelMastersResult.fromDict(response.data);
|
|
1388
|
-
}).catch(function (error) {
|
|
1389
|
-
throw JSON.parse(error.response.data.message);
|
|
1075
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1076
|
+
return Result.DescribeClusterRankingModelMastersResult.fromDict(data);
|
|
1390
1077
|
});
|
|
1391
1078
|
};
|
|
1392
1079
|
Gs2Ranking2RestClient.prototype.createClusterRankingModelMaster = function (request) {
|
|
@@ -1414,17 +1101,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1414
1101
|
'entryPeriodEventId': (_r = request.getEntryPeriodEventId()) !== null && _r !== void 0 ? _r : null,
|
|
1415
1102
|
'accessPeriodEventId': (_s = request.getAccessPeriodEventId()) !== null && _s !== void 0 ? _s : null,
|
|
1416
1103
|
};
|
|
1417
|
-
return
|
|
1418
|
-
|
|
1419
|
-
}).then(function (response) {
|
|
1420
|
-
return Result.CreateClusterRankingModelMasterResult.fromDict(response.data);
|
|
1421
|
-
}).catch(function (error) {
|
|
1422
|
-
if (error.response) {
|
|
1423
|
-
throw JSON.parse(error.response.data.message);
|
|
1424
|
-
}
|
|
1425
|
-
else {
|
|
1426
|
-
throw [];
|
|
1427
|
-
}
|
|
1104
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1105
|
+
return Result.CreateClusterRankingModelMasterResult.fromDict(data);
|
|
1428
1106
|
});
|
|
1429
1107
|
};
|
|
1430
1108
|
Gs2Ranking2RestClient.prototype.getClusterRankingModelMaster = function (request) {
|
|
@@ -1441,13 +1119,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1441
1119
|
var params = {
|
|
1442
1120
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1443
1121
|
};
|
|
1444
|
-
return
|
|
1445
|
-
|
|
1446
|
-
headers: headers,
|
|
1447
|
-
}).then(function (response) {
|
|
1448
|
-
return Result.GetClusterRankingModelMasterResult.fromDict(response.data);
|
|
1449
|
-
}).catch(function (error) {
|
|
1450
|
-
throw JSON.parse(error.response.data.message);
|
|
1122
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1123
|
+
return Result.GetClusterRankingModelMasterResult.fromDict(data);
|
|
1451
1124
|
});
|
|
1452
1125
|
};
|
|
1453
1126
|
Gs2Ranking2RestClient.prototype.updateClusterRankingModelMaster = function (request) {
|
|
@@ -1475,17 +1148,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1475
1148
|
'entryPeriodEventId': (_s = request.getEntryPeriodEventId()) !== null && _s !== void 0 ? _s : null,
|
|
1476
1149
|
'accessPeriodEventId': (_t = request.getAccessPeriodEventId()) !== null && _t !== void 0 ? _t : null,
|
|
1477
1150
|
};
|
|
1478
|
-
return
|
|
1479
|
-
|
|
1480
|
-
}).then(function (response) {
|
|
1481
|
-
return Result.UpdateClusterRankingModelMasterResult.fromDict(response.data);
|
|
1482
|
-
}).catch(function (error) {
|
|
1483
|
-
if (error.response) {
|
|
1484
|
-
throw JSON.parse(error.response.data.message);
|
|
1485
|
-
}
|
|
1486
|
-
else {
|
|
1487
|
-
throw [];
|
|
1488
|
-
}
|
|
1151
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1152
|
+
return Result.UpdateClusterRankingModelMasterResult.fromDict(data);
|
|
1489
1153
|
});
|
|
1490
1154
|
};
|
|
1491
1155
|
Gs2Ranking2RestClient.prototype.deleteClusterRankingModelMaster = function (request) {
|
|
@@ -1502,13 +1166,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1502
1166
|
var params = {
|
|
1503
1167
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1504
1168
|
};
|
|
1505
|
-
return
|
|
1506
|
-
|
|
1507
|
-
headers: headers,
|
|
1508
|
-
}).then(function (response) {
|
|
1509
|
-
return Result.DeleteClusterRankingModelMasterResult.fromDict(response.data);
|
|
1510
|
-
}).catch(function (error) {
|
|
1511
|
-
throw JSON.parse(error.response.data.message);
|
|
1169
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1170
|
+
return Result.DeleteClusterRankingModelMasterResult.fromDict(data);
|
|
1512
1171
|
});
|
|
1513
1172
|
};
|
|
1514
1173
|
Gs2Ranking2RestClient.prototype.describeClusterRankingScores = function (request) {
|
|
@@ -1532,13 +1191,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1532
1191
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
1533
1192
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
1534
1193
|
};
|
|
1535
|
-
return
|
|
1536
|
-
|
|
1537
|
-
headers: headers,
|
|
1538
|
-
}).then(function (response) {
|
|
1539
|
-
return Result.DescribeClusterRankingScoresResult.fromDict(response.data);
|
|
1540
|
-
}).catch(function (error) {
|
|
1541
|
-
throw JSON.parse(error.response.data.message);
|
|
1194
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1195
|
+
return Result.DescribeClusterRankingScoresResult.fromDict(data);
|
|
1542
1196
|
});
|
|
1543
1197
|
};
|
|
1544
1198
|
Gs2Ranking2RestClient.prototype.describeClusterRankingScoresByUserId = function (request) {
|
|
@@ -1563,13 +1217,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1563
1217
|
'pageToken': String((_l = request.getPageToken()) !== null && _l !== void 0 ? _l : null),
|
|
1564
1218
|
'limit': String((_m = request.getLimit()) !== null && _m !== void 0 ? _m : null),
|
|
1565
1219
|
};
|
|
1566
|
-
return
|
|
1567
|
-
|
|
1568
|
-
headers: headers,
|
|
1569
|
-
}).then(function (response) {
|
|
1570
|
-
return Result.DescribeClusterRankingScoresByUserIdResult.fromDict(response.data);
|
|
1571
|
-
}).catch(function (error) {
|
|
1572
|
-
throw JSON.parse(error.response.data.message);
|
|
1220
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1221
|
+
return Result.DescribeClusterRankingScoresByUserIdResult.fromDict(data);
|
|
1573
1222
|
});
|
|
1574
1223
|
};
|
|
1575
1224
|
Gs2Ranking2RestClient.prototype.putClusterRankingScore = function (request) {
|
|
@@ -1595,17 +1244,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1595
1244
|
'score': (_l = request.getScore()) !== null && _l !== void 0 ? _l : null,
|
|
1596
1245
|
'metadata': (_m = request.getMetadata()) !== null && _m !== void 0 ? _m : null,
|
|
1597
1246
|
};
|
|
1598
|
-
return
|
|
1599
|
-
|
|
1600
|
-
}).then(function (response) {
|
|
1601
|
-
return Result.PutClusterRankingScoreResult.fromDict(response.data);
|
|
1602
|
-
}).catch(function (error) {
|
|
1603
|
-
if (error.response) {
|
|
1604
|
-
throw JSON.parse(error.response.data.message);
|
|
1605
|
-
}
|
|
1606
|
-
else {
|
|
1607
|
-
throw [];
|
|
1608
|
-
}
|
|
1247
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1248
|
+
return Result.PutClusterRankingScoreResult.fromDict(data);
|
|
1609
1249
|
});
|
|
1610
1250
|
};
|
|
1611
1251
|
Gs2Ranking2RestClient.prototype.putClusterRankingScoreByUserId = function (request) {
|
|
@@ -1632,17 +1272,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1632
1272
|
'score': (_o = request.getScore()) !== null && _o !== void 0 ? _o : null,
|
|
1633
1273
|
'metadata': (_p = request.getMetadata()) !== null && _p !== void 0 ? _p : null,
|
|
1634
1274
|
};
|
|
1635
|
-
return
|
|
1636
|
-
|
|
1637
|
-
}).then(function (response) {
|
|
1638
|
-
return Result.PutClusterRankingScoreByUserIdResult.fromDict(response.data);
|
|
1639
|
-
}).catch(function (error) {
|
|
1640
|
-
if (error.response) {
|
|
1641
|
-
throw JSON.parse(error.response.data.message);
|
|
1642
|
-
}
|
|
1643
|
-
else {
|
|
1644
|
-
throw [];
|
|
1645
|
-
}
|
|
1275
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1276
|
+
return Result.PutClusterRankingScoreByUserIdResult.fromDict(data);
|
|
1646
1277
|
});
|
|
1647
1278
|
};
|
|
1648
1279
|
Gs2Ranking2RestClient.prototype.getClusterRankingScore = function (request) {
|
|
@@ -1664,13 +1295,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1664
1295
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1665
1296
|
'season': String((_k = request.getSeason()) !== null && _k !== void 0 ? _k : null),
|
|
1666
1297
|
};
|
|
1667
|
-
return
|
|
1668
|
-
|
|
1669
|
-
headers: headers,
|
|
1670
|
-
}).then(function (response) {
|
|
1671
|
-
return Result.GetClusterRankingScoreResult.fromDict(response.data);
|
|
1672
|
-
}).catch(function (error) {
|
|
1673
|
-
throw JSON.parse(error.response.data.message);
|
|
1298
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1299
|
+
return Result.GetClusterRankingScoreResult.fromDict(data);
|
|
1674
1300
|
});
|
|
1675
1301
|
};
|
|
1676
1302
|
Gs2Ranking2RestClient.prototype.getClusterRankingScoreByUserId = function (request) {
|
|
@@ -1693,13 +1319,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1693
1319
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1694
1320
|
'season': String((_m = request.getSeason()) !== null && _m !== void 0 ? _m : null),
|
|
1695
1321
|
};
|
|
1696
|
-
return
|
|
1697
|
-
|
|
1698
|
-
headers: headers,
|
|
1699
|
-
}).then(function (response) {
|
|
1700
|
-
return Result.GetClusterRankingScoreByUserIdResult.fromDict(response.data);
|
|
1701
|
-
}).catch(function (error) {
|
|
1702
|
-
throw JSON.parse(error.response.data.message);
|
|
1322
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1323
|
+
return Result.GetClusterRankingScoreByUserIdResult.fromDict(data);
|
|
1703
1324
|
});
|
|
1704
1325
|
};
|
|
1705
1326
|
Gs2Ranking2RestClient.prototype.deleteClusterRankingScoreByUserId = function (request) {
|
|
@@ -1725,13 +1346,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1725
1346
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1726
1347
|
'season': String((_o = request.getSeason()) !== null && _o !== void 0 ? _o : null),
|
|
1727
1348
|
};
|
|
1728
|
-
return
|
|
1729
|
-
|
|
1730
|
-
headers: headers,
|
|
1731
|
-
}).then(function (response) {
|
|
1732
|
-
return Result.DeleteClusterRankingScoreByUserIdResult.fromDict(response.data);
|
|
1733
|
-
}).catch(function (error) {
|
|
1734
|
-
throw JSON.parse(error.response.data.message);
|
|
1349
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1350
|
+
return Result.DeleteClusterRankingScoreByUserIdResult.fromDict(data);
|
|
1735
1351
|
});
|
|
1736
1352
|
};
|
|
1737
1353
|
Gs2Ranking2RestClient.prototype.verifyClusterRankingScore = function (request) {
|
|
@@ -1759,17 +1375,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1759
1375
|
'score': (_p = request.getScore()) !== null && _p !== void 0 ? _p : null,
|
|
1760
1376
|
'multiplyValueSpecifyingQuantity': (_q = request.getMultiplyValueSpecifyingQuantity()) !== null && _q !== void 0 ? _q : null,
|
|
1761
1377
|
};
|
|
1762
|
-
return
|
|
1763
|
-
|
|
1764
|
-
}).then(function (response) {
|
|
1765
|
-
return Result.VerifyClusterRankingScoreResult.fromDict(response.data);
|
|
1766
|
-
}).catch(function (error) {
|
|
1767
|
-
if (error.response) {
|
|
1768
|
-
throw JSON.parse(error.response.data.message);
|
|
1769
|
-
}
|
|
1770
|
-
else {
|
|
1771
|
-
throw [];
|
|
1772
|
-
}
|
|
1378
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1379
|
+
return Result.VerifyClusterRankingScoreResult.fromDict(data);
|
|
1773
1380
|
});
|
|
1774
1381
|
};
|
|
1775
1382
|
Gs2Ranking2RestClient.prototype.verifyClusterRankingScoreByUserId = function (request) {
|
|
@@ -1798,17 +1405,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1798
1405
|
'score': (_r = request.getScore()) !== null && _r !== void 0 ? _r : null,
|
|
1799
1406
|
'multiplyValueSpecifyingQuantity': (_s = request.getMultiplyValueSpecifyingQuantity()) !== null && _s !== void 0 ? _s : null,
|
|
1800
1407
|
};
|
|
1801
|
-
return
|
|
1802
|
-
|
|
1803
|
-
}).then(function (response) {
|
|
1804
|
-
return Result.VerifyClusterRankingScoreByUserIdResult.fromDict(response.data);
|
|
1805
|
-
}).catch(function (error) {
|
|
1806
|
-
if (error.response) {
|
|
1807
|
-
throw JSON.parse(error.response.data.message);
|
|
1808
|
-
}
|
|
1809
|
-
else {
|
|
1810
|
-
throw [];
|
|
1811
|
-
}
|
|
1408
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1409
|
+
return Result.VerifyClusterRankingScoreByUserIdResult.fromDict(data);
|
|
1812
1410
|
});
|
|
1813
1411
|
};
|
|
1814
1412
|
Gs2Ranking2RestClient.prototype.verifyClusterRankingScoreByStampTask = function (request) {
|
|
@@ -1825,17 +1423,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1825
1423
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1826
1424
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1827
1425
|
};
|
|
1828
|
-
return
|
|
1829
|
-
|
|
1830
|
-
}).then(function (response) {
|
|
1831
|
-
return Result.VerifyClusterRankingScoreByStampTaskResult.fromDict(response.data);
|
|
1832
|
-
}).catch(function (error) {
|
|
1833
|
-
if (error.response) {
|
|
1834
|
-
throw JSON.parse(error.response.data.message);
|
|
1835
|
-
}
|
|
1836
|
-
else {
|
|
1837
|
-
throw [];
|
|
1838
|
-
}
|
|
1426
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1427
|
+
return Result.VerifyClusterRankingScoreByStampTaskResult.fromDict(data);
|
|
1839
1428
|
});
|
|
1840
1429
|
};
|
|
1841
1430
|
Gs2Ranking2RestClient.prototype.describeClusterRankingReceivedRewards = function (request) {
|
|
@@ -1859,13 +1448,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1859
1448
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
1860
1449
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
1861
1450
|
};
|
|
1862
|
-
return
|
|
1863
|
-
|
|
1864
|
-
headers: headers,
|
|
1865
|
-
}).then(function (response) {
|
|
1866
|
-
return Result.DescribeClusterRankingReceivedRewardsResult.fromDict(response.data);
|
|
1867
|
-
}).catch(function (error) {
|
|
1868
|
-
throw JSON.parse(error.response.data.message);
|
|
1451
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1452
|
+
return Result.DescribeClusterRankingReceivedRewardsResult.fromDict(data);
|
|
1869
1453
|
});
|
|
1870
1454
|
};
|
|
1871
1455
|
Gs2Ranking2RestClient.prototype.describeClusterRankingReceivedRewardsByUserId = function (request) {
|
|
@@ -1890,13 +1474,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1890
1474
|
'pageToken': String((_l = request.getPageToken()) !== null && _l !== void 0 ? _l : null),
|
|
1891
1475
|
'limit': String((_m = request.getLimit()) !== null && _m !== void 0 ? _m : null),
|
|
1892
1476
|
};
|
|
1893
|
-
return
|
|
1894
|
-
|
|
1895
|
-
headers: headers,
|
|
1896
|
-
}).then(function (response) {
|
|
1897
|
-
return Result.DescribeClusterRankingReceivedRewardsByUserIdResult.fromDict(response.data);
|
|
1898
|
-
}).catch(function (error) {
|
|
1899
|
-
throw JSON.parse(error.response.data.message);
|
|
1477
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1478
|
+
return Result.DescribeClusterRankingReceivedRewardsByUserIdResult.fromDict(data);
|
|
1900
1479
|
});
|
|
1901
1480
|
};
|
|
1902
1481
|
Gs2Ranking2RestClient.prototype.createClusterRankingReceivedReward = function (request) {
|
|
@@ -1921,17 +1500,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1921
1500
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1922
1501
|
'season': (_l = request.getSeason()) !== null && _l !== void 0 ? _l : null,
|
|
1923
1502
|
};
|
|
1924
|
-
return
|
|
1925
|
-
|
|
1926
|
-
}).then(function (response) {
|
|
1927
|
-
return Result.CreateClusterRankingReceivedRewardResult.fromDict(response.data);
|
|
1928
|
-
}).catch(function (error) {
|
|
1929
|
-
if (error.response) {
|
|
1930
|
-
throw JSON.parse(error.response.data.message);
|
|
1931
|
-
}
|
|
1932
|
-
else {
|
|
1933
|
-
throw [];
|
|
1934
|
-
}
|
|
1503
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1504
|
+
return Result.CreateClusterRankingReceivedRewardResult.fromDict(data);
|
|
1935
1505
|
});
|
|
1936
1506
|
};
|
|
1937
1507
|
Gs2Ranking2RestClient.prototype.createClusterRankingReceivedRewardByUserId = function (request) {
|
|
@@ -1957,17 +1527,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1957
1527
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1958
1528
|
'season': (_o = request.getSeason()) !== null && _o !== void 0 ? _o : null,
|
|
1959
1529
|
};
|
|
1960
|
-
return
|
|
1961
|
-
|
|
1962
|
-
}).then(function (response) {
|
|
1963
|
-
return Result.CreateClusterRankingReceivedRewardByUserIdResult.fromDict(response.data);
|
|
1964
|
-
}).catch(function (error) {
|
|
1965
|
-
if (error.response) {
|
|
1966
|
-
throw JSON.parse(error.response.data.message);
|
|
1967
|
-
}
|
|
1968
|
-
else {
|
|
1969
|
-
throw [];
|
|
1970
|
-
}
|
|
1530
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1531
|
+
return Result.CreateClusterRankingReceivedRewardByUserIdResult.fromDict(data);
|
|
1971
1532
|
});
|
|
1972
1533
|
};
|
|
1973
1534
|
Gs2Ranking2RestClient.prototype.receiveClusterRankingReceivedReward = function (request) {
|
|
@@ -1993,17 +1554,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
1993
1554
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1994
1555
|
'config': (_p = (_o = request.getConfig()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
|
|
1995
1556
|
};
|
|
1996
|
-
return
|
|
1997
|
-
|
|
1998
|
-
}).then(function (response) {
|
|
1999
|
-
return Result.ReceiveClusterRankingReceivedRewardResult.fromDict(response.data);
|
|
2000
|
-
}).catch(function (error) {
|
|
2001
|
-
if (error.response) {
|
|
2002
|
-
throw JSON.parse(error.response.data.message);
|
|
2003
|
-
}
|
|
2004
|
-
else {
|
|
2005
|
-
throw [];
|
|
2006
|
-
}
|
|
1557
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1558
|
+
return Result.ReceiveClusterRankingReceivedRewardResult.fromDict(data);
|
|
2007
1559
|
});
|
|
2008
1560
|
};
|
|
2009
1561
|
Gs2Ranking2RestClient.prototype.receiveClusterRankingReceivedRewardByUserId = function (request) {
|
|
@@ -2030,17 +1582,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2030
1582
|
'contextStack': (_p = request.getContextStack()) !== null && _p !== void 0 ? _p : null,
|
|
2031
1583
|
'config': (_r = (_q = request.getConfig()) === null || _q === void 0 ? void 0 : _q.map(function (item) { return item.toDict(); })) !== null && _r !== void 0 ? _r : null,
|
|
2032
1584
|
};
|
|
2033
|
-
return
|
|
2034
|
-
|
|
2035
|
-
}).then(function (response) {
|
|
2036
|
-
return Result.ReceiveClusterRankingReceivedRewardByUserIdResult.fromDict(response.data);
|
|
2037
|
-
}).catch(function (error) {
|
|
2038
|
-
if (error.response) {
|
|
2039
|
-
throw JSON.parse(error.response.data.message);
|
|
2040
|
-
}
|
|
2041
|
-
else {
|
|
2042
|
-
throw [];
|
|
2043
|
-
}
|
|
1585
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1586
|
+
return Result.ReceiveClusterRankingReceivedRewardByUserIdResult.fromDict(data);
|
|
2044
1587
|
});
|
|
2045
1588
|
};
|
|
2046
1589
|
Gs2Ranking2RestClient.prototype.getClusterRankingReceivedReward = function (request) {
|
|
@@ -2062,13 +1605,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2062
1605
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
2063
1606
|
'season': String((_k = request.getSeason()) !== null && _k !== void 0 ? _k : null),
|
|
2064
1607
|
};
|
|
2065
|
-
return
|
|
2066
|
-
|
|
2067
|
-
headers: headers,
|
|
2068
|
-
}).then(function (response) {
|
|
2069
|
-
return Result.GetClusterRankingReceivedRewardResult.fromDict(response.data);
|
|
2070
|
-
}).catch(function (error) {
|
|
2071
|
-
throw JSON.parse(error.response.data.message);
|
|
1608
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1609
|
+
return Result.GetClusterRankingReceivedRewardResult.fromDict(data);
|
|
2072
1610
|
});
|
|
2073
1611
|
};
|
|
2074
1612
|
Gs2Ranking2RestClient.prototype.getClusterRankingReceivedRewardByUserId = function (request) {
|
|
@@ -2091,13 +1629,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2091
1629
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
2092
1630
|
'season': String((_m = request.getSeason()) !== null && _m !== void 0 ? _m : null),
|
|
2093
1631
|
};
|
|
2094
|
-
return
|
|
2095
|
-
|
|
2096
|
-
headers: headers,
|
|
2097
|
-
}).then(function (response) {
|
|
2098
|
-
return Result.GetClusterRankingReceivedRewardByUserIdResult.fromDict(response.data);
|
|
2099
|
-
}).catch(function (error) {
|
|
2100
|
-
throw JSON.parse(error.response.data.message);
|
|
1632
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1633
|
+
return Result.GetClusterRankingReceivedRewardByUserIdResult.fromDict(data);
|
|
2101
1634
|
});
|
|
2102
1635
|
};
|
|
2103
1636
|
Gs2Ranking2RestClient.prototype.deleteClusterRankingReceivedRewardByUserId = function (request) {
|
|
@@ -2123,13 +1656,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2123
1656
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2124
1657
|
'season': String((_o = request.getSeason()) !== null && _o !== void 0 ? _o : null),
|
|
2125
1658
|
};
|
|
2126
|
-
return
|
|
2127
|
-
|
|
2128
|
-
headers: headers,
|
|
2129
|
-
}).then(function (response) {
|
|
2130
|
-
return Result.DeleteClusterRankingReceivedRewardByUserIdResult.fromDict(response.data);
|
|
2131
|
-
}).catch(function (error) {
|
|
2132
|
-
throw JSON.parse(error.response.data.message);
|
|
1659
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1660
|
+
return Result.DeleteClusterRankingReceivedRewardByUserIdResult.fromDict(data);
|
|
2133
1661
|
});
|
|
2134
1662
|
};
|
|
2135
1663
|
Gs2Ranking2RestClient.prototype.createClusterRankingReceivedRewardByStampTask = function (request) {
|
|
@@ -2146,17 +1674,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2146
1674
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
2147
1675
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2148
1676
|
};
|
|
2149
|
-
return
|
|
2150
|
-
|
|
2151
|
-
}).then(function (response) {
|
|
2152
|
-
return Result.CreateClusterRankingReceivedRewardByStampTaskResult.fromDict(response.data);
|
|
2153
|
-
}).catch(function (error) {
|
|
2154
|
-
if (error.response) {
|
|
2155
|
-
throw JSON.parse(error.response.data.message);
|
|
2156
|
-
}
|
|
2157
|
-
else {
|
|
2158
|
-
throw [];
|
|
2159
|
-
}
|
|
1677
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1678
|
+
return Result.CreateClusterRankingReceivedRewardByStampTaskResult.fromDict(data);
|
|
2160
1679
|
});
|
|
2161
1680
|
};
|
|
2162
1681
|
Gs2Ranking2RestClient.prototype.describeClusterRankings = function (request) {
|
|
@@ -2180,13 +1699,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2180
1699
|
'pageToken': String((_l = request.getPageToken()) !== null && _l !== void 0 ? _l : null),
|
|
2181
1700
|
'limit': String((_m = request.getLimit()) !== null && _m !== void 0 ? _m : null),
|
|
2182
1701
|
};
|
|
2183
|
-
return
|
|
2184
|
-
|
|
2185
|
-
headers: headers,
|
|
2186
|
-
}).then(function (response) {
|
|
2187
|
-
return Result.DescribeClusterRankingsResult.fromDict(response.data);
|
|
2188
|
-
}).catch(function (error) {
|
|
2189
|
-
throw JSON.parse(error.response.data.message);
|
|
1702
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1703
|
+
return Result.DescribeClusterRankingsResult.fromDict(data);
|
|
2190
1704
|
});
|
|
2191
1705
|
};
|
|
2192
1706
|
Gs2Ranking2RestClient.prototype.describeClusterRankingsByUserId = function (request) {
|
|
@@ -2211,13 +1725,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2211
1725
|
'pageToken': String((_o = request.getPageToken()) !== null && _o !== void 0 ? _o : null),
|
|
2212
1726
|
'limit': String((_p = request.getLimit()) !== null && _p !== void 0 ? _p : null),
|
|
2213
1727
|
};
|
|
2214
|
-
return
|
|
2215
|
-
|
|
2216
|
-
headers: headers,
|
|
2217
|
-
}).then(function (response) {
|
|
2218
|
-
return Result.DescribeClusterRankingsByUserIdResult.fromDict(response.data);
|
|
2219
|
-
}).catch(function (error) {
|
|
2220
|
-
throw JSON.parse(error.response.data.message);
|
|
1728
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1729
|
+
return Result.DescribeClusterRankingsByUserIdResult.fromDict(data);
|
|
2221
1730
|
});
|
|
2222
1731
|
};
|
|
2223
1732
|
Gs2Ranking2RestClient.prototype.getClusterRanking = function (request) {
|
|
@@ -2239,13 +1748,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2239
1748
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
2240
1749
|
'season': String((_k = request.getSeason()) !== null && _k !== void 0 ? _k : null),
|
|
2241
1750
|
};
|
|
2242
|
-
return
|
|
2243
|
-
|
|
2244
|
-
headers: headers,
|
|
2245
|
-
}).then(function (response) {
|
|
2246
|
-
return Result.GetClusterRankingResult.fromDict(response.data);
|
|
2247
|
-
}).catch(function (error) {
|
|
2248
|
-
throw JSON.parse(error.response.data.message);
|
|
1751
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1752
|
+
return Result.GetClusterRankingResult.fromDict(data);
|
|
2249
1753
|
});
|
|
2250
1754
|
};
|
|
2251
1755
|
Gs2Ranking2RestClient.prototype.getClusterRankingByUserId = function (request) {
|
|
@@ -2268,13 +1772,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2268
1772
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
2269
1773
|
'season': String((_m = request.getSeason()) !== null && _m !== void 0 ? _m : null),
|
|
2270
1774
|
};
|
|
2271
|
-
return
|
|
2272
|
-
|
|
2273
|
-
headers: headers,
|
|
2274
|
-
}).then(function (response) {
|
|
2275
|
-
return Result.GetClusterRankingByUserIdResult.fromDict(response.data);
|
|
2276
|
-
}).catch(function (error) {
|
|
2277
|
-
throw JSON.parse(error.response.data.message);
|
|
1775
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1776
|
+
return Result.GetClusterRankingByUserIdResult.fromDict(data);
|
|
2278
1777
|
});
|
|
2279
1778
|
};
|
|
2280
1779
|
Gs2Ranking2RestClient.prototype.describeSubscribeRankingModels = function (request) {
|
|
@@ -2290,13 +1789,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2290
1789
|
var params = {
|
|
2291
1790
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
2292
1791
|
};
|
|
2293
|
-
return
|
|
2294
|
-
|
|
2295
|
-
headers: headers,
|
|
2296
|
-
}).then(function (response) {
|
|
2297
|
-
return Result.DescribeSubscribeRankingModelsResult.fromDict(response.data);
|
|
2298
|
-
}).catch(function (error) {
|
|
2299
|
-
throw JSON.parse(error.response.data.message);
|
|
1792
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1793
|
+
return Result.DescribeSubscribeRankingModelsResult.fromDict(data);
|
|
2300
1794
|
});
|
|
2301
1795
|
};
|
|
2302
1796
|
Gs2Ranking2RestClient.prototype.getSubscribeRankingModel = function (request) {
|
|
@@ -2313,13 +1807,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2313
1807
|
var params = {
|
|
2314
1808
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
2315
1809
|
};
|
|
2316
|
-
return
|
|
2317
|
-
|
|
2318
|
-
headers: headers,
|
|
2319
|
-
}).then(function (response) {
|
|
2320
|
-
return Result.GetSubscribeRankingModelResult.fromDict(response.data);
|
|
2321
|
-
}).catch(function (error) {
|
|
2322
|
-
throw JSON.parse(error.response.data.message);
|
|
1810
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1811
|
+
return Result.GetSubscribeRankingModelResult.fromDict(data);
|
|
2323
1812
|
});
|
|
2324
1813
|
};
|
|
2325
1814
|
Gs2Ranking2RestClient.prototype.describeSubscribeRankingModelMasters = function (request) {
|
|
@@ -2338,13 +1827,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2338
1827
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
2339
1828
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
2340
1829
|
};
|
|
2341
|
-
return
|
|
2342
|
-
|
|
2343
|
-
headers: headers,
|
|
2344
|
-
}).then(function (response) {
|
|
2345
|
-
return Result.DescribeSubscribeRankingModelMastersResult.fromDict(response.data);
|
|
2346
|
-
}).catch(function (error) {
|
|
2347
|
-
throw JSON.parse(error.response.data.message);
|
|
1830
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1831
|
+
return Result.DescribeSubscribeRankingModelMastersResult.fromDict(data);
|
|
2348
1832
|
});
|
|
2349
1833
|
};
|
|
2350
1834
|
Gs2Ranking2RestClient.prototype.createSubscribeRankingModelMaster = function (request) {
|
|
@@ -2369,17 +1853,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2369
1853
|
'entryPeriodEventId': (_m = request.getEntryPeriodEventId()) !== null && _m !== void 0 ? _m : null,
|
|
2370
1854
|
'accessPeriodEventId': (_o = request.getAccessPeriodEventId()) !== null && _o !== void 0 ? _o : null,
|
|
2371
1855
|
};
|
|
2372
|
-
return
|
|
2373
|
-
|
|
2374
|
-
}).then(function (response) {
|
|
2375
|
-
return Result.CreateSubscribeRankingModelMasterResult.fromDict(response.data);
|
|
2376
|
-
}).catch(function (error) {
|
|
2377
|
-
if (error.response) {
|
|
2378
|
-
throw JSON.parse(error.response.data.message);
|
|
2379
|
-
}
|
|
2380
|
-
else {
|
|
2381
|
-
throw [];
|
|
2382
|
-
}
|
|
1856
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1857
|
+
return Result.CreateSubscribeRankingModelMasterResult.fromDict(data);
|
|
2383
1858
|
});
|
|
2384
1859
|
};
|
|
2385
1860
|
Gs2Ranking2RestClient.prototype.getSubscribeRankingModelMaster = function (request) {
|
|
@@ -2396,13 +1871,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2396
1871
|
var params = {
|
|
2397
1872
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
2398
1873
|
};
|
|
2399
|
-
return
|
|
2400
|
-
|
|
2401
|
-
headers: headers,
|
|
2402
|
-
}).then(function (response) {
|
|
2403
|
-
return Result.GetSubscribeRankingModelMasterResult.fromDict(response.data);
|
|
2404
|
-
}).catch(function (error) {
|
|
2405
|
-
throw JSON.parse(error.response.data.message);
|
|
1874
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1875
|
+
return Result.GetSubscribeRankingModelMasterResult.fromDict(data);
|
|
2406
1876
|
});
|
|
2407
1877
|
};
|
|
2408
1878
|
Gs2Ranking2RestClient.prototype.updateSubscribeRankingModelMaster = function (request) {
|
|
@@ -2427,17 +1897,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2427
1897
|
'entryPeriodEventId': (_o = request.getEntryPeriodEventId()) !== null && _o !== void 0 ? _o : null,
|
|
2428
1898
|
'accessPeriodEventId': (_p = request.getAccessPeriodEventId()) !== null && _p !== void 0 ? _p : null,
|
|
2429
1899
|
};
|
|
2430
|
-
return
|
|
2431
|
-
|
|
2432
|
-
}).then(function (response) {
|
|
2433
|
-
return Result.UpdateSubscribeRankingModelMasterResult.fromDict(response.data);
|
|
2434
|
-
}).catch(function (error) {
|
|
2435
|
-
if (error.response) {
|
|
2436
|
-
throw JSON.parse(error.response.data.message);
|
|
2437
|
-
}
|
|
2438
|
-
else {
|
|
2439
|
-
throw [];
|
|
2440
|
-
}
|
|
1900
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1901
|
+
return Result.UpdateSubscribeRankingModelMasterResult.fromDict(data);
|
|
2441
1902
|
});
|
|
2442
1903
|
};
|
|
2443
1904
|
Gs2Ranking2RestClient.prototype.deleteSubscribeRankingModelMaster = function (request) {
|
|
@@ -2454,13 +1915,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2454
1915
|
var params = {
|
|
2455
1916
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
2456
1917
|
};
|
|
2457
|
-
return
|
|
2458
|
-
|
|
2459
|
-
headers: headers,
|
|
2460
|
-
}).then(function (response) {
|
|
2461
|
-
return Result.DeleteSubscribeRankingModelMasterResult.fromDict(response.data);
|
|
2462
|
-
}).catch(function (error) {
|
|
2463
|
-
throw JSON.parse(error.response.data.message);
|
|
1918
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1919
|
+
return Result.DeleteSubscribeRankingModelMasterResult.fromDict(data);
|
|
2464
1920
|
});
|
|
2465
1921
|
};
|
|
2466
1922
|
Gs2Ranking2RestClient.prototype.describeSubscribes = function (request) {
|
|
@@ -2482,13 +1938,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2482
1938
|
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
2483
1939
|
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
2484
1940
|
};
|
|
2485
|
-
return
|
|
2486
|
-
|
|
2487
|
-
headers: headers,
|
|
2488
|
-
}).then(function (response) {
|
|
2489
|
-
return Result.DescribeSubscribesResult.fromDict(response.data);
|
|
2490
|
-
}).catch(function (error) {
|
|
2491
|
-
throw JSON.parse(error.response.data.message);
|
|
1941
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1942
|
+
return Result.DescribeSubscribesResult.fromDict(data);
|
|
2492
1943
|
});
|
|
2493
1944
|
};
|
|
2494
1945
|
Gs2Ranking2RestClient.prototype.describeSubscribesByUserId = function (request) {
|
|
@@ -2511,13 +1962,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2511
1962
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
2512
1963
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
2513
1964
|
};
|
|
2514
|
-
return
|
|
2515
|
-
|
|
2516
|
-
headers: headers,
|
|
2517
|
-
}).then(function (response) {
|
|
2518
|
-
return Result.DescribeSubscribesByUserIdResult.fromDict(response.data);
|
|
2519
|
-
}).catch(function (error) {
|
|
2520
|
-
throw JSON.parse(error.response.data.message);
|
|
1965
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1966
|
+
return Result.DescribeSubscribesByUserIdResult.fromDict(data);
|
|
2521
1967
|
});
|
|
2522
1968
|
};
|
|
2523
1969
|
Gs2Ranking2RestClient.prototype.addSubscribe = function (request) {
|
|
@@ -2541,17 +1987,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2541
1987
|
var body = {
|
|
2542
1988
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
2543
1989
|
};
|
|
2544
|
-
return
|
|
2545
|
-
|
|
2546
|
-
}).then(function (response) {
|
|
2547
|
-
return Result.AddSubscribeResult.fromDict(response.data);
|
|
2548
|
-
}).catch(function (error) {
|
|
2549
|
-
if (error.response) {
|
|
2550
|
-
throw JSON.parse(error.response.data.message);
|
|
2551
|
-
}
|
|
2552
|
-
else {
|
|
2553
|
-
throw [];
|
|
2554
|
-
}
|
|
1990
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1991
|
+
return Result.AddSubscribeResult.fromDict(data);
|
|
2555
1992
|
});
|
|
2556
1993
|
};
|
|
2557
1994
|
Gs2Ranking2RestClient.prototype.addSubscribeByUserId = function (request) {
|
|
@@ -2576,17 +2013,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2576
2013
|
var body = {
|
|
2577
2014
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2578
2015
|
};
|
|
2579
|
-
return
|
|
2580
|
-
|
|
2581
|
-
}).then(function (response) {
|
|
2582
|
-
return Result.AddSubscribeByUserIdResult.fromDict(response.data);
|
|
2583
|
-
}).catch(function (error) {
|
|
2584
|
-
if (error.response) {
|
|
2585
|
-
throw JSON.parse(error.response.data.message);
|
|
2586
|
-
}
|
|
2587
|
-
else {
|
|
2588
|
-
throw [];
|
|
2589
|
-
}
|
|
2016
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
2017
|
+
return Result.AddSubscribeByUserIdResult.fromDict(data);
|
|
2590
2018
|
});
|
|
2591
2019
|
};
|
|
2592
2020
|
Gs2Ranking2RestClient.prototype.describeSubscribeRankingScores = function (request) {
|
|
@@ -2608,13 +2036,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2608
2036
|
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
2609
2037
|
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
2610
2038
|
};
|
|
2611
|
-
return
|
|
2612
|
-
|
|
2613
|
-
headers: headers,
|
|
2614
|
-
}).then(function (response) {
|
|
2615
|
-
return Result.DescribeSubscribeRankingScoresResult.fromDict(response.data);
|
|
2616
|
-
}).catch(function (error) {
|
|
2617
|
-
throw JSON.parse(error.response.data.message);
|
|
2039
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2040
|
+
return Result.DescribeSubscribeRankingScoresResult.fromDict(data);
|
|
2618
2041
|
});
|
|
2619
2042
|
};
|
|
2620
2043
|
Gs2Ranking2RestClient.prototype.describeSubscribeRankingScoresByUserId = function (request) {
|
|
@@ -2637,13 +2060,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2637
2060
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
2638
2061
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
2639
2062
|
};
|
|
2640
|
-
return
|
|
2641
|
-
|
|
2642
|
-
headers: headers,
|
|
2643
|
-
}).then(function (response) {
|
|
2644
|
-
return Result.DescribeSubscribeRankingScoresByUserIdResult.fromDict(response.data);
|
|
2645
|
-
}).catch(function (error) {
|
|
2646
|
-
throw JSON.parse(error.response.data.message);
|
|
2063
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2064
|
+
return Result.DescribeSubscribeRankingScoresByUserIdResult.fromDict(data);
|
|
2647
2065
|
});
|
|
2648
2066
|
};
|
|
2649
2067
|
Gs2Ranking2RestClient.prototype.putSubscribeRankingScore = function (request) {
|
|
@@ -2668,17 +2086,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2668
2086
|
'score': (_j = request.getScore()) !== null && _j !== void 0 ? _j : null,
|
|
2669
2087
|
'metadata': (_k = request.getMetadata()) !== null && _k !== void 0 ? _k : null,
|
|
2670
2088
|
};
|
|
2671
|
-
return
|
|
2672
|
-
|
|
2673
|
-
}).then(function (response) {
|
|
2674
|
-
return Result.PutSubscribeRankingScoreResult.fromDict(response.data);
|
|
2675
|
-
}).catch(function (error) {
|
|
2676
|
-
if (error.response) {
|
|
2677
|
-
throw JSON.parse(error.response.data.message);
|
|
2678
|
-
}
|
|
2679
|
-
else {
|
|
2680
|
-
throw [];
|
|
2681
|
-
}
|
|
2089
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
2090
|
+
return Result.PutSubscribeRankingScoreResult.fromDict(data);
|
|
2682
2091
|
});
|
|
2683
2092
|
};
|
|
2684
2093
|
Gs2Ranking2RestClient.prototype.putSubscribeRankingScoreByUserId = function (request) {
|
|
@@ -2704,17 +2113,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2704
2113
|
'score': (_l = request.getScore()) !== null && _l !== void 0 ? _l : null,
|
|
2705
2114
|
'metadata': (_m = request.getMetadata()) !== null && _m !== void 0 ? _m : null,
|
|
2706
2115
|
};
|
|
2707
|
-
return
|
|
2708
|
-
|
|
2709
|
-
}).then(function (response) {
|
|
2710
|
-
return Result.PutSubscribeRankingScoreByUserIdResult.fromDict(response.data);
|
|
2711
|
-
}).catch(function (error) {
|
|
2712
|
-
if (error.response) {
|
|
2713
|
-
throw JSON.parse(error.response.data.message);
|
|
2714
|
-
}
|
|
2715
|
-
else {
|
|
2716
|
-
throw [];
|
|
2717
|
-
}
|
|
2116
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
2117
|
+
return Result.PutSubscribeRankingScoreByUserIdResult.fromDict(data);
|
|
2718
2118
|
});
|
|
2719
2119
|
};
|
|
2720
2120
|
Gs2Ranking2RestClient.prototype.getSubscribeRankingScore = function (request) {
|
|
@@ -2735,13 +2135,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2735
2135
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
2736
2136
|
'season': String((_h = request.getSeason()) !== null && _h !== void 0 ? _h : null),
|
|
2737
2137
|
};
|
|
2738
|
-
return
|
|
2739
|
-
|
|
2740
|
-
headers: headers,
|
|
2741
|
-
}).then(function (response) {
|
|
2742
|
-
return Result.GetSubscribeRankingScoreResult.fromDict(response.data);
|
|
2743
|
-
}).catch(function (error) {
|
|
2744
|
-
throw JSON.parse(error.response.data.message);
|
|
2138
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2139
|
+
return Result.GetSubscribeRankingScoreResult.fromDict(data);
|
|
2745
2140
|
});
|
|
2746
2141
|
};
|
|
2747
2142
|
Gs2Ranking2RestClient.prototype.getSubscribeRankingScoreByUserId = function (request) {
|
|
@@ -2763,13 +2158,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2763
2158
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
2764
2159
|
'season': String((_k = request.getSeason()) !== null && _k !== void 0 ? _k : null),
|
|
2765
2160
|
};
|
|
2766
|
-
return
|
|
2767
|
-
|
|
2768
|
-
headers: headers,
|
|
2769
|
-
}).then(function (response) {
|
|
2770
|
-
return Result.GetSubscribeRankingScoreByUserIdResult.fromDict(response.data);
|
|
2771
|
-
}).catch(function (error) {
|
|
2772
|
-
throw JSON.parse(error.response.data.message);
|
|
2161
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2162
|
+
return Result.GetSubscribeRankingScoreByUserIdResult.fromDict(data);
|
|
2773
2163
|
});
|
|
2774
2164
|
};
|
|
2775
2165
|
Gs2Ranking2RestClient.prototype.deleteSubscribeRankingScoreByUserId = function (request) {
|
|
@@ -2794,13 +2184,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2794
2184
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
2795
2185
|
'season': String((_l = request.getSeason()) !== null && _l !== void 0 ? _l : null),
|
|
2796
2186
|
};
|
|
2797
|
-
return
|
|
2798
|
-
|
|
2799
|
-
headers: headers,
|
|
2800
|
-
}).then(function (response) {
|
|
2801
|
-
return Result.DeleteSubscribeRankingScoreByUserIdResult.fromDict(response.data);
|
|
2802
|
-
}).catch(function (error) {
|
|
2803
|
-
throw JSON.parse(error.response.data.message);
|
|
2187
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
2188
|
+
return Result.DeleteSubscribeRankingScoreByUserIdResult.fromDict(data);
|
|
2804
2189
|
});
|
|
2805
2190
|
};
|
|
2806
2191
|
Gs2Ranking2RestClient.prototype.verifySubscribeRankingScore = function (request) {
|
|
@@ -2827,17 +2212,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2827
2212
|
'score': (_m = request.getScore()) !== null && _m !== void 0 ? _m : null,
|
|
2828
2213
|
'multiplyValueSpecifyingQuantity': (_o = request.getMultiplyValueSpecifyingQuantity()) !== null && _o !== void 0 ? _o : null,
|
|
2829
2214
|
};
|
|
2830
|
-
return
|
|
2831
|
-
|
|
2832
|
-
}).then(function (response) {
|
|
2833
|
-
return Result.VerifySubscribeRankingScoreResult.fromDict(response.data);
|
|
2834
|
-
}).catch(function (error) {
|
|
2835
|
-
if (error.response) {
|
|
2836
|
-
throw JSON.parse(error.response.data.message);
|
|
2837
|
-
}
|
|
2838
|
-
else {
|
|
2839
|
-
throw [];
|
|
2840
|
-
}
|
|
2215
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2216
|
+
return Result.VerifySubscribeRankingScoreResult.fromDict(data);
|
|
2841
2217
|
});
|
|
2842
2218
|
};
|
|
2843
2219
|
Gs2Ranking2RestClient.prototype.verifySubscribeRankingScoreByUserId = function (request) {
|
|
@@ -2865,17 +2241,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2865
2241
|
'score': (_p = request.getScore()) !== null && _p !== void 0 ? _p : null,
|
|
2866
2242
|
'multiplyValueSpecifyingQuantity': (_q = request.getMultiplyValueSpecifyingQuantity()) !== null && _q !== void 0 ? _q : null,
|
|
2867
2243
|
};
|
|
2868
|
-
return
|
|
2869
|
-
|
|
2870
|
-
}).then(function (response) {
|
|
2871
|
-
return Result.VerifySubscribeRankingScoreByUserIdResult.fromDict(response.data);
|
|
2872
|
-
}).catch(function (error) {
|
|
2873
|
-
if (error.response) {
|
|
2874
|
-
throw JSON.parse(error.response.data.message);
|
|
2875
|
-
}
|
|
2876
|
-
else {
|
|
2877
|
-
throw [];
|
|
2878
|
-
}
|
|
2244
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2245
|
+
return Result.VerifySubscribeRankingScoreByUserIdResult.fromDict(data);
|
|
2879
2246
|
});
|
|
2880
2247
|
};
|
|
2881
2248
|
Gs2Ranking2RestClient.prototype.verifySubscribeRankingScoreByStampTask = function (request) {
|
|
@@ -2892,17 +2259,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2892
2259
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
2893
2260
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2894
2261
|
};
|
|
2895
|
-
return
|
|
2896
|
-
|
|
2897
|
-
}).then(function (response) {
|
|
2898
|
-
return Result.VerifySubscribeRankingScoreByStampTaskResult.fromDict(response.data);
|
|
2899
|
-
}).catch(function (error) {
|
|
2900
|
-
if (error.response) {
|
|
2901
|
-
throw JSON.parse(error.response.data.message);
|
|
2902
|
-
}
|
|
2903
|
-
else {
|
|
2904
|
-
throw [];
|
|
2905
|
-
}
|
|
2262
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2263
|
+
return Result.VerifySubscribeRankingScoreByStampTaskResult.fromDict(data);
|
|
2906
2264
|
});
|
|
2907
2265
|
};
|
|
2908
2266
|
Gs2Ranking2RestClient.prototype.describeSubscribeRankings = function (request) {
|
|
@@ -2925,13 +2283,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2925
2283
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
2926
2284
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
2927
2285
|
};
|
|
2928
|
-
return
|
|
2929
|
-
|
|
2930
|
-
headers: headers,
|
|
2931
|
-
}).then(function (response) {
|
|
2932
|
-
return Result.DescribeSubscribeRankingsResult.fromDict(response.data);
|
|
2933
|
-
}).catch(function (error) {
|
|
2934
|
-
throw JSON.parse(error.response.data.message);
|
|
2286
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2287
|
+
return Result.DescribeSubscribeRankingsResult.fromDict(data);
|
|
2935
2288
|
});
|
|
2936
2289
|
};
|
|
2937
2290
|
Gs2Ranking2RestClient.prototype.describeSubscribeRankingsByUserId = function (request) {
|
|
@@ -2955,13 +2308,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2955
2308
|
'pageToken': String((_l = request.getPageToken()) !== null && _l !== void 0 ? _l : null),
|
|
2956
2309
|
'limit': String((_m = request.getLimit()) !== null && _m !== void 0 ? _m : null),
|
|
2957
2310
|
};
|
|
2958
|
-
return
|
|
2959
|
-
|
|
2960
|
-
headers: headers,
|
|
2961
|
-
}).then(function (response) {
|
|
2962
|
-
return Result.DescribeSubscribeRankingsByUserIdResult.fromDict(response.data);
|
|
2963
|
-
}).catch(function (error) {
|
|
2964
|
-
throw JSON.parse(error.response.data.message);
|
|
2311
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2312
|
+
return Result.DescribeSubscribeRankingsByUserIdResult.fromDict(data);
|
|
2965
2313
|
});
|
|
2966
2314
|
};
|
|
2967
2315
|
Gs2Ranking2RestClient.prototype.getSubscribeRanking = function (request) {
|
|
@@ -2983,13 +2331,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
2983
2331
|
'season': String((_h = request.getSeason()) !== null && _h !== void 0 ? _h : null),
|
|
2984
2332
|
'scorerUserId': String((_j = request.getScorerUserId()) !== null && _j !== void 0 ? _j : null),
|
|
2985
2333
|
};
|
|
2986
|
-
return
|
|
2987
|
-
|
|
2988
|
-
headers: headers,
|
|
2989
|
-
}).then(function (response) {
|
|
2990
|
-
return Result.GetSubscribeRankingResult.fromDict(response.data);
|
|
2991
|
-
}).catch(function (error) {
|
|
2992
|
-
throw JSON.parse(error.response.data.message);
|
|
2334
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2335
|
+
return Result.GetSubscribeRankingResult.fromDict(data);
|
|
2993
2336
|
});
|
|
2994
2337
|
};
|
|
2995
2338
|
Gs2Ranking2RestClient.prototype.getSubscribeRankingByUserId = function (request) {
|
|
@@ -3012,13 +2355,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
3012
2355
|
'season': String((_k = request.getSeason()) !== null && _k !== void 0 ? _k : null),
|
|
3013
2356
|
'scorerUserId': String((_l = request.getScorerUserId()) !== null && _l !== void 0 ? _l : null),
|
|
3014
2357
|
};
|
|
3015
|
-
return
|
|
3016
|
-
|
|
3017
|
-
headers: headers,
|
|
3018
|
-
}).then(function (response) {
|
|
3019
|
-
return Result.GetSubscribeRankingByUserIdResult.fromDict(response.data);
|
|
3020
|
-
}).catch(function (error) {
|
|
3021
|
-
throw JSON.parse(error.response.data.message);
|
|
2358
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2359
|
+
return Result.GetSubscribeRankingByUserIdResult.fromDict(data);
|
|
3022
2360
|
});
|
|
3023
2361
|
};
|
|
3024
2362
|
Gs2Ranking2RestClient.prototype.exportMaster = function (request) {
|
|
@@ -3034,13 +2372,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
3034
2372
|
var params = {
|
|
3035
2373
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
3036
2374
|
};
|
|
3037
|
-
return
|
|
3038
|
-
|
|
3039
|
-
headers: headers,
|
|
3040
|
-
}).then(function (response) {
|
|
3041
|
-
return Result.ExportMasterResult.fromDict(response.data);
|
|
3042
|
-
}).catch(function (error) {
|
|
3043
|
-
throw JSON.parse(error.response.data.message);
|
|
2375
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2376
|
+
return Result.ExportMasterResult.fromDict(data);
|
|
3044
2377
|
});
|
|
3045
2378
|
};
|
|
3046
2379
|
Gs2Ranking2RestClient.prototype.getCurrentRankingMaster = function (request) {
|
|
@@ -3056,13 +2389,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
3056
2389
|
var params = {
|
|
3057
2390
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
3058
2391
|
};
|
|
3059
|
-
return
|
|
3060
|
-
|
|
3061
|
-
headers: headers,
|
|
3062
|
-
}).then(function (response) {
|
|
3063
|
-
return Result.GetCurrentRankingMasterResult.fromDict(response.data);
|
|
3064
|
-
}).catch(function (error) {
|
|
3065
|
-
throw JSON.parse(error.response.data.message);
|
|
2392
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2393
|
+
return Result.GetCurrentRankingMasterResult.fromDict(data);
|
|
3066
2394
|
});
|
|
3067
2395
|
};
|
|
3068
2396
|
Gs2Ranking2RestClient.prototype.preUpdateCurrentRankingMaster = function (request) {
|
|
@@ -3078,17 +2406,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
3078
2406
|
var body = {
|
|
3079
2407
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
3080
2408
|
};
|
|
3081
|
-
return
|
|
3082
|
-
|
|
3083
|
-
}).then(function (response) {
|
|
3084
|
-
return Result.PreUpdateCurrentRankingMasterResult.fromDict(response.data);
|
|
3085
|
-
}).catch(function (error) {
|
|
3086
|
-
if (error.response) {
|
|
3087
|
-
throw JSON.parse(error.response.data.message);
|
|
3088
|
-
}
|
|
3089
|
-
else {
|
|
3090
|
-
throw [];
|
|
3091
|
-
}
|
|
2409
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
2410
|
+
return Result.PreUpdateCurrentRankingMasterResult.fromDict(data);
|
|
3092
2411
|
});
|
|
3093
2412
|
};
|
|
3094
2413
|
Gs2Ranking2RestClient.prototype.updateCurrentRankingMaster = function (request) {
|
|
@@ -3107,17 +2426,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
3107
2426
|
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
3108
2427
|
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
3109
2428
|
};
|
|
3110
|
-
return
|
|
3111
|
-
|
|
3112
|
-
}).then(function (response) {
|
|
3113
|
-
return Result.UpdateCurrentRankingMasterResult.fromDict(response.data);
|
|
3114
|
-
}).catch(function (error) {
|
|
3115
|
-
if (error.response) {
|
|
3116
|
-
throw JSON.parse(error.response.data.message);
|
|
3117
|
-
}
|
|
3118
|
-
else {
|
|
3119
|
-
throw [];
|
|
3120
|
-
}
|
|
2429
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
2430
|
+
return Result.UpdateCurrentRankingMasterResult.fromDict(data);
|
|
3121
2431
|
});
|
|
3122
2432
|
};
|
|
3123
2433
|
Gs2Ranking2RestClient.prototype.updateCurrentRankingMasterFromGitHub = function (request) {
|
|
@@ -3134,17 +2444,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
3134
2444
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
3135
2445
|
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
3136
2446
|
};
|
|
3137
|
-
return
|
|
3138
|
-
|
|
3139
|
-
}).then(function (response) {
|
|
3140
|
-
return Result.UpdateCurrentRankingMasterFromGitHubResult.fromDict(response.data);
|
|
3141
|
-
}).catch(function (error) {
|
|
3142
|
-
if (error.response) {
|
|
3143
|
-
throw JSON.parse(error.response.data.message);
|
|
3144
|
-
}
|
|
3145
|
-
else {
|
|
3146
|
-
throw [];
|
|
3147
|
-
}
|
|
2447
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
2448
|
+
return Result.UpdateCurrentRankingMasterFromGitHubResult.fromDict(data);
|
|
3148
2449
|
});
|
|
3149
2450
|
};
|
|
3150
2451
|
Gs2Ranking2RestClient.prototype.getSubscribe = function (request) {
|
|
@@ -3165,13 +2466,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
3165
2466
|
var params = {
|
|
3166
2467
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
3167
2468
|
};
|
|
3168
|
-
return
|
|
3169
|
-
|
|
3170
|
-
headers: headers,
|
|
3171
|
-
}).then(function (response) {
|
|
3172
|
-
return Result.GetSubscribeResult.fromDict(response.data);
|
|
3173
|
-
}).catch(function (error) {
|
|
3174
|
-
throw JSON.parse(error.response.data.message);
|
|
2469
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2470
|
+
return Result.GetSubscribeResult.fromDict(data);
|
|
3175
2471
|
});
|
|
3176
2472
|
};
|
|
3177
2473
|
Gs2Ranking2RestClient.prototype.getSubscribeByUserId = function (request) {
|
|
@@ -3193,13 +2489,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
3193
2489
|
var params = {
|
|
3194
2490
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
3195
2491
|
};
|
|
3196
|
-
return
|
|
3197
|
-
|
|
3198
|
-
headers: headers,
|
|
3199
|
-
}).then(function (response) {
|
|
3200
|
-
return Result.GetSubscribeByUserIdResult.fromDict(response.data);
|
|
3201
|
-
}).catch(function (error) {
|
|
3202
|
-
throw JSON.parse(error.response.data.message);
|
|
2492
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2493
|
+
return Result.GetSubscribeByUserIdResult.fromDict(data);
|
|
3203
2494
|
});
|
|
3204
2495
|
};
|
|
3205
2496
|
Gs2Ranking2RestClient.prototype.deleteSubscribe = function (request) {
|
|
@@ -3223,13 +2514,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
3223
2514
|
var params = {
|
|
3224
2515
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
3225
2516
|
};
|
|
3226
|
-
return
|
|
3227
|
-
|
|
3228
|
-
headers: headers,
|
|
3229
|
-
}).then(function (response) {
|
|
3230
|
-
return Result.DeleteSubscribeResult.fromDict(response.data);
|
|
3231
|
-
}).catch(function (error) {
|
|
3232
|
-
throw JSON.parse(error.response.data.message);
|
|
2517
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
2518
|
+
return Result.DeleteSubscribeResult.fromDict(data);
|
|
3233
2519
|
});
|
|
3234
2520
|
};
|
|
3235
2521
|
Gs2Ranking2RestClient.prototype.deleteSubscribeByUserId = function (request) {
|
|
@@ -3254,13 +2540,8 @@ var Gs2Ranking2RestClient = /** @class */ (function (_super) {
|
|
|
3254
2540
|
var params = {
|
|
3255
2541
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
3256
2542
|
};
|
|
3257
|
-
return
|
|
3258
|
-
|
|
3259
|
-
headers: headers,
|
|
3260
|
-
}).then(function (response) {
|
|
3261
|
-
return Result.DeleteSubscribeByUserIdResult.fromDict(response.data);
|
|
3262
|
-
}).catch(function (error) {
|
|
3263
|
-
throw JSON.parse(error.response.data.message);
|
|
2543
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
2544
|
+
return Result.DeleteSubscribeByUserIdResult.fromDict(data);
|
|
3264
2545
|
});
|
|
3265
2546
|
};
|
|
3266
2547
|
Gs2Ranking2RestClient.ENDPOINT_HOST = null;
|