gs2 1.4.110 → 1.4.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/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 +1 -1
- package/project/request/WaitCleanUserDataRequest.d.ts +0 -4
- package/project/request/WaitCleanUserDataRequest.js +0 -14
- package/project/request/WaitCleanUserDataRequest.js.map +1 -1
- package/project/request/WaitDumpUserDataRequest.d.ts +0 -4
- package/project/request/WaitDumpUserDataRequest.js +0 -14
- package/project/request/WaitDumpUserDataRequest.js.map +1 -1
- package/project/request/WaitImportUserDataRequest.d.ts +0 -4
- package/project/request/WaitImportUserDataRequest.js +0 -14
- package/project/request/WaitImportUserDataRequest.js.map +1 -1
- package/project/rest.js +91 -411
- package/project/rest.js.map +1 -1
- package/quest/rest.js +100 -431
- package/quest/rest.js.map +1 -1
- package/ranking/rest.js +92 -387
- package/ranking/rest.js.map +1 -1
- package/ranking2/rest.js +220 -939
- package/ranking2/rest.js.map +1 -1
- package/realtime/rest.js +24 -97
- package/realtime/rest.js.map +1 -1
- package/schedule/rest.js +94 -418
- package/schedule/rest.js.map +1 -1
- package/script/rest.js +34 -156
- package/script/rest.js.map +1 -1
- package/seasonRating/rest.js +70 -314
- package/seasonRating/rest.js.map +1 -1
- package/serialKey/rest.js +84 -383
- package/serialKey/rest.js.map +1 -1
- package/showcase/rest.js +116 -515
- package/showcase/rest.js.map +1 -1
- package/skillTree/rest.js +82 -372
- package/skillTree/rest.js.map +1 -1
- package/stamina/rest.js +166 -798
- package/stamina/rest.js.map +1 -1
- package/stateMachine/rest.js +62 -270
- package/stateMachine/rest.js.map +1 -1
- package/version/rest.js +78 -346
- package/version/rest.js.map +1 -1
- package/watch/rest.js +156 -563
- package/watch/rest.js.map +1 -1
package/ranking/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 Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
24
23
|
tslib_1.__extends(Gs2RankingRestClient, _super);
|
|
25
24
|
function Gs2RankingRestClient(session) {
|
|
@@ -40,13 +39,8 @@ var Gs2RankingRestClient = /** @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
|
Gs2RankingRestClient.prototype.createNamespace = function (request) {
|
|
@@ -65,17 +59,8 @@ var Gs2RankingRestClient = /** @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
|
Gs2RankingRestClient.prototype.getNamespaceStatus = function (request) {
|
|
@@ -91,13 +76,8 @@ var Gs2RankingRestClient = /** @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
|
Gs2RankingRestClient.prototype.getNamespace = function (request) {
|
|
@@ -113,13 +93,8 @@ var Gs2RankingRestClient = /** @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
|
Gs2RankingRestClient.prototype.updateNamespace = function (request) {
|
|
@@ -138,17 +113,8 @@ var Gs2RankingRestClient = /** @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
|
Gs2RankingRestClient.prototype.deleteNamespace = function (request) {
|
|
@@ -164,13 +130,8 @@ var Gs2RankingRestClient = /** @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
|
Gs2RankingRestClient.prototype.getServiceVersion = function (request) {
|
|
@@ -185,13 +146,8 @@ var Gs2RankingRestClient = /** @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
|
Gs2RankingRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
@@ -210,17 +166,8 @@ var Gs2RankingRestClient = /** @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
|
Gs2RankingRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
@@ -239,13 +186,8 @@ var Gs2RankingRestClient = /** @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
|
Gs2RankingRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
@@ -264,17 +206,8 @@ var Gs2RankingRestClient = /** @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
|
Gs2RankingRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
@@ -293,13 +226,8 @@ var Gs2RankingRestClient = /** @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
|
Gs2RankingRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
@@ -318,17 +246,8 @@ var Gs2RankingRestClient = /** @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
|
Gs2RankingRestClient.prototype.importUserDataByUserId = function (request) {
|
|
@@ -348,17 +267,8 @@ var Gs2RankingRestClient = /** @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
|
Gs2RankingRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
@@ -378,13 +288,8 @@ var Gs2RankingRestClient = /** @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
|
Gs2RankingRestClient.prototype.describeCategoryModels = function (request) {
|
|
@@ -400,13 +305,8 @@ var Gs2RankingRestClient = /** @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.DescribeCategoryModelsResult.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.DescribeCategoryModelsResult.fromDict(data);
|
|
410
310
|
});
|
|
411
311
|
};
|
|
412
312
|
Gs2RankingRestClient.prototype.getCategoryModel = function (request) {
|
|
@@ -423,13 +323,8 @@ var Gs2RankingRestClient = /** @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.GetCategoryModelResult.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.GetCategoryModelResult.fromDict(data);
|
|
433
328
|
});
|
|
434
329
|
};
|
|
435
330
|
Gs2RankingRestClient.prototype.describeCategoryModelMasters = function (request) {
|
|
@@ -448,13 +343,8 @@ var Gs2RankingRestClient = /** @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.DescribeCategoryModelMastersResult.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.DescribeCategoryModelMastersResult.fromDict(data);
|
|
458
348
|
});
|
|
459
349
|
};
|
|
460
350
|
Gs2RankingRestClient.prototype.createCategoryModelMaster = function (request) {
|
|
@@ -488,17 +378,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
488
378
|
'ignoreUserIds': (_y = request.getIgnoreUserIds()) !== null && _y !== void 0 ? _y : null,
|
|
489
379
|
'generation': (_z = request.getGeneration()) !== null && _z !== void 0 ? _z : null,
|
|
490
380
|
};
|
|
491
|
-
return
|
|
492
|
-
|
|
493
|
-
}).then(function (response) {
|
|
494
|
-
return Result.CreateCategoryModelMasterResult.fromDict(response.data);
|
|
495
|
-
}).catch(function (error) {
|
|
496
|
-
if (error.response) {
|
|
497
|
-
throw JSON.parse(error.response.data.message);
|
|
498
|
-
}
|
|
499
|
-
else {
|
|
500
|
-
throw [];
|
|
501
|
-
}
|
|
381
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
382
|
+
return Result.CreateCategoryModelMasterResult.fromDict(data);
|
|
502
383
|
});
|
|
503
384
|
};
|
|
504
385
|
Gs2RankingRestClient.prototype.getCategoryModelMaster = function (request) {
|
|
@@ -515,13 +396,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
515
396
|
var params = {
|
|
516
397
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
517
398
|
};
|
|
518
|
-
return
|
|
519
|
-
|
|
520
|
-
headers: headers,
|
|
521
|
-
}).then(function (response) {
|
|
522
|
-
return Result.GetCategoryModelMasterResult.fromDict(response.data);
|
|
523
|
-
}).catch(function (error) {
|
|
524
|
-
throw JSON.parse(error.response.data.message);
|
|
399
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
400
|
+
return Result.GetCategoryModelMasterResult.fromDict(data);
|
|
525
401
|
});
|
|
526
402
|
};
|
|
527
403
|
Gs2RankingRestClient.prototype.updateCategoryModelMaster = function (request) {
|
|
@@ -555,17 +431,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
555
431
|
'ignoreUserIds': (_z = request.getIgnoreUserIds()) !== null && _z !== void 0 ? _z : null,
|
|
556
432
|
'generation': (_0 = request.getGeneration()) !== null && _0 !== void 0 ? _0 : null,
|
|
557
433
|
};
|
|
558
|
-
return
|
|
559
|
-
|
|
560
|
-
}).then(function (response) {
|
|
561
|
-
return Result.UpdateCategoryModelMasterResult.fromDict(response.data);
|
|
562
|
-
}).catch(function (error) {
|
|
563
|
-
if (error.response) {
|
|
564
|
-
throw JSON.parse(error.response.data.message);
|
|
565
|
-
}
|
|
566
|
-
else {
|
|
567
|
-
throw [];
|
|
568
|
-
}
|
|
434
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
435
|
+
return Result.UpdateCategoryModelMasterResult.fromDict(data);
|
|
569
436
|
});
|
|
570
437
|
};
|
|
571
438
|
Gs2RankingRestClient.prototype.deleteCategoryModelMaster = function (request) {
|
|
@@ -582,13 +449,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
582
449
|
var params = {
|
|
583
450
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
584
451
|
};
|
|
585
|
-
return
|
|
586
|
-
|
|
587
|
-
headers: headers,
|
|
588
|
-
}).then(function (response) {
|
|
589
|
-
return Result.DeleteCategoryModelMasterResult.fromDict(response.data);
|
|
590
|
-
}).catch(function (error) {
|
|
591
|
-
throw JSON.parse(error.response.data.message);
|
|
452
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
453
|
+
return Result.DeleteCategoryModelMasterResult.fromDict(data);
|
|
592
454
|
});
|
|
593
455
|
};
|
|
594
456
|
Gs2RankingRestClient.prototype.subscribe = function (request) {
|
|
@@ -612,17 +474,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
612
474
|
var body = {
|
|
613
475
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
614
476
|
};
|
|
615
|
-
return
|
|
616
|
-
|
|
617
|
-
}).then(function (response) {
|
|
618
|
-
return Result.SubscribeResult.fromDict(response.data);
|
|
619
|
-
}).catch(function (error) {
|
|
620
|
-
if (error.response) {
|
|
621
|
-
throw JSON.parse(error.response.data.message);
|
|
622
|
-
}
|
|
623
|
-
else {
|
|
624
|
-
throw [];
|
|
625
|
-
}
|
|
477
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
478
|
+
return Result.SubscribeResult.fromDict(data);
|
|
626
479
|
});
|
|
627
480
|
};
|
|
628
481
|
Gs2RankingRestClient.prototype.subscribeByUserId = function (request) {
|
|
@@ -647,17 +500,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
647
500
|
var body = {
|
|
648
501
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
649
502
|
};
|
|
650
|
-
return
|
|
651
|
-
|
|
652
|
-
}).then(function (response) {
|
|
653
|
-
return Result.SubscribeByUserIdResult.fromDict(response.data);
|
|
654
|
-
}).catch(function (error) {
|
|
655
|
-
if (error.response) {
|
|
656
|
-
throw JSON.parse(error.response.data.message);
|
|
657
|
-
}
|
|
658
|
-
else {
|
|
659
|
-
throw [];
|
|
660
|
-
}
|
|
503
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
504
|
+
return Result.SubscribeByUserIdResult.fromDict(data);
|
|
661
505
|
});
|
|
662
506
|
};
|
|
663
507
|
Gs2RankingRestClient.prototype.describeScores = function (request) {
|
|
@@ -680,13 +524,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
680
524
|
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
681
525
|
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
682
526
|
};
|
|
683
|
-
return
|
|
684
|
-
|
|
685
|
-
headers: headers,
|
|
686
|
-
}).then(function (response) {
|
|
687
|
-
return Result.DescribeScoresResult.fromDict(response.data);
|
|
688
|
-
}).catch(function (error) {
|
|
689
|
-
throw JSON.parse(error.response.data.message);
|
|
527
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
528
|
+
return Result.DescribeScoresResult.fromDict(data);
|
|
690
529
|
});
|
|
691
530
|
};
|
|
692
531
|
Gs2RankingRestClient.prototype.describeScoresByUserId = function (request) {
|
|
@@ -710,13 +549,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
710
549
|
'pageToken': String((_m = request.getPageToken()) !== null && _m !== void 0 ? _m : null),
|
|
711
550
|
'limit': String((_o = request.getLimit()) !== null && _o !== void 0 ? _o : null),
|
|
712
551
|
};
|
|
713
|
-
return
|
|
714
|
-
|
|
715
|
-
headers: headers,
|
|
716
|
-
}).then(function (response) {
|
|
717
|
-
return Result.DescribeScoresByUserIdResult.fromDict(response.data);
|
|
718
|
-
}).catch(function (error) {
|
|
719
|
-
throw JSON.parse(error.response.data.message);
|
|
552
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
553
|
+
return Result.DescribeScoresByUserIdResult.fromDict(data);
|
|
720
554
|
});
|
|
721
555
|
};
|
|
722
556
|
Gs2RankingRestClient.prototype.getScore = function (request) {
|
|
@@ -738,13 +572,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
738
572
|
var params = {
|
|
739
573
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
740
574
|
};
|
|
741
|
-
return
|
|
742
|
-
|
|
743
|
-
headers: headers,
|
|
744
|
-
}).then(function (response) {
|
|
745
|
-
return Result.GetScoreResult.fromDict(response.data);
|
|
746
|
-
}).catch(function (error) {
|
|
747
|
-
throw JSON.parse(error.response.data.message);
|
|
575
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
576
|
+
return Result.GetScoreResult.fromDict(data);
|
|
748
577
|
});
|
|
749
578
|
};
|
|
750
579
|
Gs2RankingRestClient.prototype.getScoreByUserId = function (request) {
|
|
@@ -767,13 +596,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
767
596
|
var params = {
|
|
768
597
|
'contextStack': (_o = request.getContextStack()) !== null && _o !== void 0 ? _o : null,
|
|
769
598
|
};
|
|
770
|
-
return
|
|
771
|
-
|
|
772
|
-
headers: headers,
|
|
773
|
-
}).then(function (response) {
|
|
774
|
-
return Result.GetScoreByUserIdResult.fromDict(response.data);
|
|
775
|
-
}).catch(function (error) {
|
|
776
|
-
throw JSON.parse(error.response.data.message);
|
|
599
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
600
|
+
return Result.GetScoreByUserIdResult.fromDict(data);
|
|
777
601
|
});
|
|
778
602
|
};
|
|
779
603
|
Gs2RankingRestClient.prototype.describeRankings = function (request) {
|
|
@@ -797,13 +621,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
797
621
|
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
798
622
|
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
799
623
|
};
|
|
800
|
-
return
|
|
801
|
-
|
|
802
|
-
headers: headers,
|
|
803
|
-
}).then(function (response) {
|
|
804
|
-
return Result.DescribeRankingsResult.fromDict(response.data);
|
|
805
|
-
}).catch(function (error) {
|
|
806
|
-
throw JSON.parse(error.response.data.message);
|
|
624
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
625
|
+
return Result.DescribeRankingsResult.fromDict(data);
|
|
807
626
|
});
|
|
808
627
|
};
|
|
809
628
|
Gs2RankingRestClient.prototype.describeRankingssByUserId = function (request) {
|
|
@@ -828,13 +647,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
828
647
|
'pageToken': String((_m = request.getPageToken()) !== null && _m !== void 0 ? _m : null),
|
|
829
648
|
'limit': String((_o = request.getLimit()) !== null && _o !== void 0 ? _o : null),
|
|
830
649
|
};
|
|
831
|
-
return
|
|
832
|
-
|
|
833
|
-
headers: headers,
|
|
834
|
-
}).then(function (response) {
|
|
835
|
-
return Result.DescribeRankingssByUserIdResult.fromDict(response.data);
|
|
836
|
-
}).catch(function (error) {
|
|
837
|
-
throw JSON.parse(error.response.data.message);
|
|
650
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
651
|
+
return Result.DescribeRankingssByUserIdResult.fromDict(data);
|
|
838
652
|
});
|
|
839
653
|
};
|
|
840
654
|
Gs2RankingRestClient.prototype.describeNearRankings = function (request) {
|
|
@@ -853,13 +667,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
853
667
|
'additionalScopeName': String((_g = request.getAdditionalScopeName()) !== null && _g !== void 0 ? _g : null),
|
|
854
668
|
'score': String((_h = request.getScore()) !== null && _h !== void 0 ? _h : null),
|
|
855
669
|
};
|
|
856
|
-
return
|
|
857
|
-
|
|
858
|
-
headers: headers,
|
|
859
|
-
}).then(function (response) {
|
|
860
|
-
return Result.DescribeNearRankingsResult.fromDict(response.data);
|
|
861
|
-
}).catch(function (error) {
|
|
862
|
-
throw JSON.parse(error.response.data.message);
|
|
670
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
671
|
+
return Result.DescribeNearRankingsResult.fromDict(data);
|
|
863
672
|
});
|
|
864
673
|
};
|
|
865
674
|
Gs2RankingRestClient.prototype.getRanking = function (request) {
|
|
@@ -882,13 +691,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
882
691
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
883
692
|
'additionalScopeName': String((_m = request.getAdditionalScopeName()) !== null && _m !== void 0 ? _m : null),
|
|
884
693
|
};
|
|
885
|
-
return
|
|
886
|
-
|
|
887
|
-
headers: headers,
|
|
888
|
-
}).then(function (response) {
|
|
889
|
-
return Result.GetRankingResult.fromDict(response.data);
|
|
890
|
-
}).catch(function (error) {
|
|
891
|
-
throw JSON.parse(error.response.data.message);
|
|
694
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
695
|
+
return Result.GetRankingResult.fromDict(data);
|
|
892
696
|
});
|
|
893
697
|
};
|
|
894
698
|
Gs2RankingRestClient.prototype.getRankingByUserId = function (request) {
|
|
@@ -912,13 +716,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
912
716
|
'contextStack': (_o = request.getContextStack()) !== null && _o !== void 0 ? _o : null,
|
|
913
717
|
'additionalScopeName': String((_p = request.getAdditionalScopeName()) !== null && _p !== void 0 ? _p : null),
|
|
914
718
|
};
|
|
915
|
-
return
|
|
916
|
-
|
|
917
|
-
headers: headers,
|
|
918
|
-
}).then(function (response) {
|
|
919
|
-
return Result.GetRankingByUserIdResult.fromDict(response.data);
|
|
920
|
-
}).catch(function (error) {
|
|
921
|
-
throw JSON.parse(error.response.data.message);
|
|
719
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
720
|
+
return Result.GetRankingByUserIdResult.fromDict(data);
|
|
922
721
|
});
|
|
923
722
|
};
|
|
924
723
|
Gs2RankingRestClient.prototype.putScore = function (request) {
|
|
@@ -943,17 +742,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
943
742
|
'score': (_j = request.getScore()) !== null && _j !== void 0 ? _j : null,
|
|
944
743
|
'metadata': (_k = request.getMetadata()) !== null && _k !== void 0 ? _k : null,
|
|
945
744
|
};
|
|
946
|
-
return
|
|
947
|
-
|
|
948
|
-
}).then(function (response) {
|
|
949
|
-
return Result.PutScoreResult.fromDict(response.data);
|
|
950
|
-
}).catch(function (error) {
|
|
951
|
-
if (error.response) {
|
|
952
|
-
throw JSON.parse(error.response.data.message);
|
|
953
|
-
}
|
|
954
|
-
else {
|
|
955
|
-
throw [];
|
|
956
|
-
}
|
|
745
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
746
|
+
return Result.PutScoreResult.fromDict(data);
|
|
957
747
|
});
|
|
958
748
|
};
|
|
959
749
|
Gs2RankingRestClient.prototype.putScoreByUserId = function (request) {
|
|
@@ -979,17 +769,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
979
769
|
'score': (_l = request.getScore()) !== null && _l !== void 0 ? _l : null,
|
|
980
770
|
'metadata': (_m = request.getMetadata()) !== null && _m !== void 0 ? _m : null,
|
|
981
771
|
};
|
|
982
|
-
return
|
|
983
|
-
|
|
984
|
-
}).then(function (response) {
|
|
985
|
-
return Result.PutScoreByUserIdResult.fromDict(response.data);
|
|
986
|
-
}).catch(function (error) {
|
|
987
|
-
if (error.response) {
|
|
988
|
-
throw JSON.parse(error.response.data.message);
|
|
989
|
-
}
|
|
990
|
-
else {
|
|
991
|
-
throw [];
|
|
992
|
-
}
|
|
772
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
773
|
+
return Result.PutScoreByUserIdResult.fromDict(data);
|
|
993
774
|
});
|
|
994
775
|
};
|
|
995
776
|
Gs2RankingRestClient.prototype.calcRanking = function (request) {
|
|
@@ -1007,17 +788,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1007
788
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1008
789
|
'additionalScopeName': (_g = request.getAdditionalScopeName()) !== null && _g !== void 0 ? _g : null,
|
|
1009
790
|
};
|
|
1010
|
-
return
|
|
1011
|
-
|
|
1012
|
-
}).then(function (response) {
|
|
1013
|
-
return Result.CalcRankingResult.fromDict(response.data);
|
|
1014
|
-
}).catch(function (error) {
|
|
1015
|
-
if (error.response) {
|
|
1016
|
-
throw JSON.parse(error.response.data.message);
|
|
1017
|
-
}
|
|
1018
|
-
else {
|
|
1019
|
-
throw [];
|
|
1020
|
-
}
|
|
791
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
792
|
+
return Result.CalcRankingResult.fromDict(data);
|
|
1021
793
|
});
|
|
1022
794
|
};
|
|
1023
795
|
Gs2RankingRestClient.prototype.exportMaster = function (request) {
|
|
@@ -1033,13 +805,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1033
805
|
var params = {
|
|
1034
806
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1035
807
|
};
|
|
1036
|
-
return
|
|
1037
|
-
|
|
1038
|
-
headers: headers,
|
|
1039
|
-
}).then(function (response) {
|
|
1040
|
-
return Result.ExportMasterResult.fromDict(response.data);
|
|
1041
|
-
}).catch(function (error) {
|
|
1042
|
-
throw JSON.parse(error.response.data.message);
|
|
808
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
809
|
+
return Result.ExportMasterResult.fromDict(data);
|
|
1043
810
|
});
|
|
1044
811
|
};
|
|
1045
812
|
Gs2RankingRestClient.prototype.getCurrentRankingMaster = function (request) {
|
|
@@ -1055,13 +822,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1055
822
|
var params = {
|
|
1056
823
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1057
824
|
};
|
|
1058
|
-
return
|
|
1059
|
-
|
|
1060
|
-
headers: headers,
|
|
1061
|
-
}).then(function (response) {
|
|
1062
|
-
return Result.GetCurrentRankingMasterResult.fromDict(response.data);
|
|
1063
|
-
}).catch(function (error) {
|
|
1064
|
-
throw JSON.parse(error.response.data.message);
|
|
825
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
826
|
+
return Result.GetCurrentRankingMasterResult.fromDict(data);
|
|
1065
827
|
});
|
|
1066
828
|
};
|
|
1067
829
|
Gs2RankingRestClient.prototype.preUpdateCurrentRankingMaster = function (request) {
|
|
@@ -1077,17 +839,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1077
839
|
var body = {
|
|
1078
840
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1079
841
|
};
|
|
1080
|
-
return
|
|
1081
|
-
|
|
1082
|
-
}).then(function (response) {
|
|
1083
|
-
return Result.PreUpdateCurrentRankingMasterResult.fromDict(response.data);
|
|
1084
|
-
}).catch(function (error) {
|
|
1085
|
-
if (error.response) {
|
|
1086
|
-
throw JSON.parse(error.response.data.message);
|
|
1087
|
-
}
|
|
1088
|
-
else {
|
|
1089
|
-
throw [];
|
|
1090
|
-
}
|
|
842
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
843
|
+
return Result.PreUpdateCurrentRankingMasterResult.fromDict(data);
|
|
1091
844
|
});
|
|
1092
845
|
};
|
|
1093
846
|
Gs2RankingRestClient.prototype.updateCurrentRankingMaster = function (request) {
|
|
@@ -1106,17 +859,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1106
859
|
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1107
860
|
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1108
861
|
};
|
|
1109
|
-
return
|
|
1110
|
-
|
|
1111
|
-
}).then(function (response) {
|
|
1112
|
-
return Result.UpdateCurrentRankingMasterResult.fromDict(response.data);
|
|
1113
|
-
}).catch(function (error) {
|
|
1114
|
-
if (error.response) {
|
|
1115
|
-
throw JSON.parse(error.response.data.message);
|
|
1116
|
-
}
|
|
1117
|
-
else {
|
|
1118
|
-
throw [];
|
|
1119
|
-
}
|
|
862
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
863
|
+
return Result.UpdateCurrentRankingMasterResult.fromDict(data);
|
|
1120
864
|
});
|
|
1121
865
|
};
|
|
1122
866
|
Gs2RankingRestClient.prototype.updateCurrentRankingMasterFromGitHub = function (request) {
|
|
@@ -1133,17 +877,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1133
877
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1134
878
|
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1135
879
|
};
|
|
1136
|
-
return
|
|
1137
|
-
|
|
1138
|
-
}).then(function (response) {
|
|
1139
|
-
return Result.UpdateCurrentRankingMasterFromGitHubResult.fromDict(response.data);
|
|
1140
|
-
}).catch(function (error) {
|
|
1141
|
-
if (error.response) {
|
|
1142
|
-
throw JSON.parse(error.response.data.message);
|
|
1143
|
-
}
|
|
1144
|
-
else {
|
|
1145
|
-
throw [];
|
|
1146
|
-
}
|
|
880
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
881
|
+
return Result.UpdateCurrentRankingMasterFromGitHubResult.fromDict(data);
|
|
1147
882
|
});
|
|
1148
883
|
};
|
|
1149
884
|
Gs2RankingRestClient.prototype.getSubscribe = function (request) {
|
|
@@ -1164,13 +899,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1164
899
|
var params = {
|
|
1165
900
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1166
901
|
};
|
|
1167
|
-
return
|
|
1168
|
-
|
|
1169
|
-
headers: headers,
|
|
1170
|
-
}).then(function (response) {
|
|
1171
|
-
return Result.GetSubscribeResult.fromDict(response.data);
|
|
1172
|
-
}).catch(function (error) {
|
|
1173
|
-
throw JSON.parse(error.response.data.message);
|
|
902
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
903
|
+
return Result.GetSubscribeResult.fromDict(data);
|
|
1174
904
|
});
|
|
1175
905
|
};
|
|
1176
906
|
Gs2RankingRestClient.prototype.getSubscribeByUserId = function (request) {
|
|
@@ -1192,13 +922,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1192
922
|
var params = {
|
|
1193
923
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1194
924
|
};
|
|
1195
|
-
return
|
|
1196
|
-
|
|
1197
|
-
headers: headers,
|
|
1198
|
-
}).then(function (response) {
|
|
1199
|
-
return Result.GetSubscribeByUserIdResult.fromDict(response.data);
|
|
1200
|
-
}).catch(function (error) {
|
|
1201
|
-
throw JSON.parse(error.response.data.message);
|
|
925
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
926
|
+
return Result.GetSubscribeByUserIdResult.fromDict(data);
|
|
1202
927
|
});
|
|
1203
928
|
};
|
|
1204
929
|
Gs2RankingRestClient.prototype.unsubscribe = function (request) {
|
|
@@ -1222,13 +947,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1222
947
|
var params = {
|
|
1223
948
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1224
949
|
};
|
|
1225
|
-
return
|
|
1226
|
-
|
|
1227
|
-
headers: headers,
|
|
1228
|
-
}).then(function (response) {
|
|
1229
|
-
return Result.UnsubscribeResult.fromDict(response.data);
|
|
1230
|
-
}).catch(function (error) {
|
|
1231
|
-
throw JSON.parse(error.response.data.message);
|
|
950
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
951
|
+
return Result.UnsubscribeResult.fromDict(data);
|
|
1232
952
|
});
|
|
1233
953
|
};
|
|
1234
954
|
Gs2RankingRestClient.prototype.unsubscribeByUserId = function (request) {
|
|
@@ -1253,13 +973,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1253
973
|
var params = {
|
|
1254
974
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1255
975
|
};
|
|
1256
|
-
return
|
|
1257
|
-
|
|
1258
|
-
headers: headers,
|
|
1259
|
-
}).then(function (response) {
|
|
1260
|
-
return Result.UnsubscribeByUserIdResult.fromDict(response.data);
|
|
1261
|
-
}).catch(function (error) {
|
|
1262
|
-
throw JSON.parse(error.response.data.message);
|
|
976
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
977
|
+
return Result.UnsubscribeByUserIdResult.fromDict(data);
|
|
1263
978
|
});
|
|
1264
979
|
};
|
|
1265
980
|
Gs2RankingRestClient.prototype.describeSubscribesByCategoryName = function (request) {
|
|
@@ -1279,13 +994,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1279
994
|
var params = {
|
|
1280
995
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1281
996
|
};
|
|
1282
|
-
return
|
|
1283
|
-
|
|
1284
|
-
headers: headers,
|
|
1285
|
-
}).then(function (response) {
|
|
1286
|
-
return Result.DescribeSubscribesByCategoryNameResult.fromDict(response.data);
|
|
1287
|
-
}).catch(function (error) {
|
|
1288
|
-
throw JSON.parse(error.response.data.message);
|
|
997
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
998
|
+
return Result.DescribeSubscribesByCategoryNameResult.fromDict(data);
|
|
1289
999
|
});
|
|
1290
1000
|
};
|
|
1291
1001
|
Gs2RankingRestClient.prototype.describeSubscribesByCategoryNameAndUserId = function (request) {
|
|
@@ -1306,13 +1016,8 @@ var Gs2RankingRestClient = /** @class */ (function (_super) {
|
|
|
1306
1016
|
var params = {
|
|
1307
1017
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1308
1018
|
};
|
|
1309
|
-
return
|
|
1310
|
-
|
|
1311
|
-
headers: headers,
|
|
1312
|
-
}).then(function (response) {
|
|
1313
|
-
return Result.DescribeSubscribesByCategoryNameAndUserIdResult.fromDict(response.data);
|
|
1314
|
-
}).catch(function (error) {
|
|
1315
|
-
throw JSON.parse(error.response.data.message);
|
|
1019
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1020
|
+
return Result.DescribeSubscribesByCategoryNameAndUserIdResult.fromDict(data);
|
|
1316
1021
|
});
|
|
1317
1022
|
};
|
|
1318
1023
|
Gs2RankingRestClient.ENDPOINT_HOST = null;
|