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.
Files changed (120) hide show
  1. package/account/rest.js +130 -564
  2. package/account/rest.js.map +1 -1
  3. package/adReward/rest.js +44 -203
  4. package/adReward/rest.js.map +1 -1
  5. package/auth/rest.js +10 -52
  6. package/auth/rest.js.map +1 -1
  7. package/buff/rest.js +56 -249
  8. package/buff/rest.js.map +1 -1
  9. package/chat/rest.js +108 -463
  10. package/chat/rest.js.map +1 -1
  11. package/core/AbstractGs2RestClient.d.ts +9 -0
  12. package/core/AbstractGs2RestClient.js +48 -0
  13. package/core/AbstractGs2RestClient.js.map +1 -1
  14. package/core/model.d.ts +9 -1
  15. package/core/model.js +4 -1
  16. package/core/model.js.map +1 -1
  17. package/datastore/rest.js +78 -370
  18. package/datastore/rest.js.map +1 -1
  19. package/deploy/rest.js +48 -209
  20. package/deploy/rest.js.map +1 -1
  21. package/dictionary/rest.js +102 -450
  22. package/dictionary/rest.js.map +1 -1
  23. package/distributor/rest.js +96 -465
  24. package/distributor/rest.js.map +1 -1
  25. package/enchant/rest.js +112 -497
  26. package/enchant/rest.js.map +1 -1
  27. package/enhance/rest.js +100 -455
  28. package/enhance/rest.js.map +1 -1
  29. package/exchange/rest.js +108 -491
  30. package/exchange/rest.js.map +1 -1
  31. package/experience/rest.js +120 -561
  32. package/experience/rest.js.map +1 -1
  33. package/formation/rest.js +158 -686
  34. package/formation/rest.js.map +1 -1
  35. package/freeze/rest.js +12 -51
  36. package/freeze/rest.js.map +1 -1
  37. package/friend/rest.js +118 -490
  38. package/friend/rest.js.map +1 -1
  39. package/gateway/rest.js +56 -245
  40. package/gateway/rest.js.map +1 -1
  41. package/grade/rest.js +96 -449
  42. package/grade/rest.js.map +1 -1
  43. package/guard/rest.js +14 -58
  44. package/guard/rest.js.map +1 -1
  45. package/guild/rest.js +186 -840
  46. package/guild/rest.js.map +1 -1
  47. package/identifier/rest.js +60 -259
  48. package/identifier/rest.js.map +1 -1
  49. package/idle/rest.js +84 -387
  50. package/idle/rest.js.map +1 -1
  51. package/inbox/rest.js +96 -437
  52. package/inbox/rest.js.map +1 -1
  53. package/inventory/rest.js +270 -1206
  54. package/inventory/rest.js.map +1 -1
  55. package/jobQueue/rest.js +50 -220
  56. package/jobQueue/rest.js.map +1 -1
  57. package/key/rest.js +38 -166
  58. package/key/rest.js.map +1 -1
  59. package/limit/rest.js +80 -361
  60. package/limit/rest.js.map +1 -1
  61. package/lock/rest.js +28 -123
  62. package/lock/rest.js.map +1 -1
  63. package/log/rest.js +46 -186
  64. package/log/rest.js.map +1 -1
  65. package/loginReward/rest.js +82 -376
  66. package/loginReward/rest.js.map +1 -1
  67. package/lottery/rest.js +100 -427
  68. package/lottery/rest.js.map +1 -1
  69. package/matchmaking/rest.js +146 -644
  70. package/matchmaking/rest.js.map +1 -1
  71. package/megaField/rest.js +68 -307
  72. package/megaField/rest.js.map +1 -1
  73. package/mission/rest.js +158 -726
  74. package/mission/rest.js.map +1 -1
  75. package/money/rest.js +58 -264
  76. package/money/rest.js.map +1 -1
  77. package/money2/rest.js +126 -542
  78. package/money2/rest.js.map +1 -1
  79. package/news/rest.js +36 -147
  80. package/news/rest.js.map +1 -1
  81. package/package.json +5 -5
  82. package/project/request/WaitCleanUserDataRequest.d.ts +0 -4
  83. package/project/request/WaitCleanUserDataRequest.js +0 -14
  84. package/project/request/WaitCleanUserDataRequest.js.map +1 -1
  85. package/project/request/WaitDumpUserDataRequest.d.ts +0 -4
  86. package/project/request/WaitDumpUserDataRequest.js +0 -14
  87. package/project/request/WaitDumpUserDataRequest.js.map +1 -1
  88. package/project/request/WaitImportUserDataRequest.d.ts +0 -4
  89. package/project/request/WaitImportUserDataRequest.js +0 -14
  90. package/project/request/WaitImportUserDataRequest.js.map +1 -1
  91. package/project/rest.js +91 -411
  92. package/project/rest.js.map +1 -1
  93. package/quest/rest.js +100 -431
  94. package/quest/rest.js.map +1 -1
  95. package/ranking/rest.js +92 -387
  96. package/ranking/rest.js.map +1 -1
  97. package/ranking2/rest.js +220 -939
  98. package/ranking2/rest.js.map +1 -1
  99. package/realtime/rest.js +24 -97
  100. package/realtime/rest.js.map +1 -1
  101. package/schedule/rest.js +94 -418
  102. package/schedule/rest.js.map +1 -1
  103. package/script/rest.js +34 -156
  104. package/script/rest.js.map +1 -1
  105. package/seasonRating/rest.js +70 -314
  106. package/seasonRating/rest.js.map +1 -1
  107. package/serialKey/rest.js +84 -383
  108. package/serialKey/rest.js.map +1 -1
  109. package/showcase/rest.js +116 -515
  110. package/showcase/rest.js.map +1 -1
  111. package/skillTree/rest.js +82 -372
  112. package/skillTree/rest.js.map +1 -1
  113. package/stamina/rest.js +166 -798
  114. package/stamina/rest.js.map +1 -1
  115. package/stateMachine/rest.js +62 -270
  116. package/stateMachine/rest.js.map +1 -1
  117. package/version/rest.js +78 -346
  118. package/version/rest.js.map +1 -1
  119. package/watch/rest.js +156 -563
  120. package/watch/rest.js.map +1 -1
@@ -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 Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
24
23
  tslib_1.__extends(Gs2SeasonRatingRestClient, _super);
25
24
  function Gs2SeasonRatingRestClient(session) {
@@ -40,13 +39,8 @@ var Gs2SeasonRatingRestClient = /** @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 axios_1.default.get(url, {
44
- params: params,
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
  Gs2SeasonRatingRestClient.prototype.createNamespace = function (request) {
@@ -65,17 +59,8 @@ var Gs2SeasonRatingRestClient = /** @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 axios_1.default.post(url, body, {
69
- headers: headers,
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
  Gs2SeasonRatingRestClient.prototype.getNamespaceStatus = function (request) {
@@ -91,13 +76,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
91
76
  var params = {
92
77
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
93
78
  };
94
- return axios_1.default.get(url, {
95
- params: params,
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
  Gs2SeasonRatingRestClient.prototype.getNamespace = function (request) {
@@ -113,13 +93,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
113
93
  var params = {
114
94
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
115
95
  };
116
- return axios_1.default.get(url, {
117
- params: params,
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
  Gs2SeasonRatingRestClient.prototype.updateNamespace = function (request) {
@@ -138,17 +113,8 @@ var Gs2SeasonRatingRestClient = /** @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 axios_1.default.put(url, body, {
142
- headers: headers,
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
  Gs2SeasonRatingRestClient.prototype.deleteNamespace = function (request) {
@@ -164,13 +130,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
164
130
  var params = {
165
131
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
166
132
  };
167
- return axios_1.default.delete(url, {
168
- params: params,
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
  Gs2SeasonRatingRestClient.prototype.getServiceVersion = function (request) {
@@ -185,13 +146,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
185
146
  var params = {
186
147
  'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
187
148
  };
188
- return axios_1.default.get(url, {
189
- params: params,
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
  Gs2SeasonRatingRestClient.prototype.dumpUserDataByUserId = function (request) {
@@ -210,17 +166,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
210
166
  var body = {
211
167
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
212
168
  };
213
- return axios_1.default.post(url, body, {
214
- headers: headers,
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
  Gs2SeasonRatingRestClient.prototype.checkDumpUserDataByUserId = function (request) {
@@ -239,13 +186,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
239
186
  var params = {
240
187
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
241
188
  };
242
- return axios_1.default.get(url, {
243
- params: params,
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
  Gs2SeasonRatingRestClient.prototype.cleanUserDataByUserId = function (request) {
@@ -264,17 +206,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
264
206
  var body = {
265
207
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
266
208
  };
267
- return axios_1.default.post(url, body, {
268
- headers: headers,
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
  Gs2SeasonRatingRestClient.prototype.checkCleanUserDataByUserId = function (request) {
@@ -293,13 +226,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
293
226
  var params = {
294
227
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
295
228
  };
296
- return axios_1.default.get(url, {
297
- params: params,
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
  Gs2SeasonRatingRestClient.prototype.prepareImportUserDataByUserId = function (request) {
@@ -318,17 +246,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
318
246
  var body = {
319
247
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
320
248
  };
321
- return axios_1.default.post(url, body, {
322
- headers: headers,
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
  Gs2SeasonRatingRestClient.prototype.importUserDataByUserId = function (request) {
@@ -348,17 +267,8 @@ var Gs2SeasonRatingRestClient = /** @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 axios_1.default.post(url, body, {
352
- headers: headers,
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
  Gs2SeasonRatingRestClient.prototype.checkImportUserDataByUserId = function (request) {
@@ -378,13 +288,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
378
288
  var params = {
379
289
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
380
290
  };
381
- return axios_1.default.get(url, {
382
- params: params,
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
  Gs2SeasonRatingRestClient.prototype.describeMatchSessions = function (request) {
@@ -402,13 +307,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
402
307
  'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
403
308
  'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
404
309
  };
405
- return axios_1.default.get(url, {
406
- params: params,
407
- headers: headers,
408
- }).then(function (response) {
409
- return Result.DescribeMatchSessionsResult.fromDict(response.data);
410
- }).catch(function (error) {
411
- throw JSON.parse(error.response.data.message);
310
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
311
+ return Result.DescribeMatchSessionsResult.fromDict(data);
412
312
  });
413
313
  };
414
314
  Gs2SeasonRatingRestClient.prototype.createMatchSession = function (request) {
@@ -426,17 +326,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
426
326
  'sessionName': (_e = request.getSessionName()) !== null && _e !== void 0 ? _e : null,
427
327
  'ttlSeconds': (_f = request.getTtlSeconds()) !== null && _f !== void 0 ? _f : null,
428
328
  };
429
- return axios_1.default.post(url, body, {
430
- headers: headers,
431
- }).then(function (response) {
432
- return Result.CreateMatchSessionResult.fromDict(response.data);
433
- }).catch(function (error) {
434
- if (error.response) {
435
- throw JSON.parse(error.response.data.message);
436
- }
437
- else {
438
- throw [];
439
- }
329
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
330
+ return Result.CreateMatchSessionResult.fromDict(data);
440
331
  });
441
332
  };
442
333
  Gs2SeasonRatingRestClient.prototype.getMatchSession = function (request) {
@@ -453,13 +344,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
453
344
  var params = {
454
345
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
455
346
  };
456
- return axios_1.default.get(url, {
457
- params: params,
458
- headers: headers,
459
- }).then(function (response) {
460
- return Result.GetMatchSessionResult.fromDict(response.data);
461
- }).catch(function (error) {
462
- throw JSON.parse(error.response.data.message);
347
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
348
+ return Result.GetMatchSessionResult.fromDict(data);
463
349
  });
464
350
  };
465
351
  Gs2SeasonRatingRestClient.prototype.deleteMatchSession = function (request) {
@@ -476,13 +362,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
476
362
  var params = {
477
363
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
478
364
  };
479
- return axios_1.default.delete(url, {
480
- params: params,
481
- headers: headers,
482
- }).then(function (response) {
483
- return Result.DeleteMatchSessionResult.fromDict(response.data);
484
- }).catch(function (error) {
485
- throw JSON.parse(error.response.data.message);
365
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
366
+ return Result.DeleteMatchSessionResult.fromDict(data);
486
367
  });
487
368
  };
488
369
  Gs2SeasonRatingRestClient.prototype.describeSeasonModelMasters = function (request) {
@@ -501,13 +382,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
501
382
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
502
383
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
503
384
  };
504
- return axios_1.default.get(url, {
505
- params: params,
506
- headers: headers,
507
- }).then(function (response) {
508
- return Result.DescribeSeasonModelMastersResult.fromDict(response.data);
509
- }).catch(function (error) {
510
- throw JSON.parse(error.response.data.message);
385
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
386
+ return Result.DescribeSeasonModelMastersResult.fromDict(data);
511
387
  });
512
388
  };
513
389
  Gs2SeasonRatingRestClient.prototype.createSeasonModelMaster = function (request) {
@@ -529,17 +405,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
529
405
  'experienceModelId': (_k = request.getExperienceModelId()) !== null && _k !== void 0 ? _k : null,
530
406
  'challengePeriodEventId': (_l = request.getChallengePeriodEventId()) !== null && _l !== void 0 ? _l : null,
531
407
  };
532
- return axios_1.default.post(url, body, {
533
- headers: headers,
534
- }).then(function (response) {
535
- return Result.CreateSeasonModelMasterResult.fromDict(response.data);
536
- }).catch(function (error) {
537
- if (error.response) {
538
- throw JSON.parse(error.response.data.message);
539
- }
540
- else {
541
- throw [];
542
- }
408
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
409
+ return Result.CreateSeasonModelMasterResult.fromDict(data);
543
410
  });
544
411
  };
545
412
  Gs2SeasonRatingRestClient.prototype.getSeasonModelMaster = function (request) {
@@ -556,13 +423,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
556
423
  var params = {
557
424
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
558
425
  };
559
- return axios_1.default.get(url, {
560
- params: params,
561
- headers: headers,
562
- }).then(function (response) {
563
- return Result.GetSeasonModelMasterResult.fromDict(response.data);
564
- }).catch(function (error) {
565
- throw JSON.parse(error.response.data.message);
426
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
427
+ return Result.GetSeasonModelMasterResult.fromDict(data);
566
428
  });
567
429
  };
568
430
  Gs2SeasonRatingRestClient.prototype.updateSeasonModelMaster = function (request) {
@@ -584,17 +446,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
584
446
  'experienceModelId': (_l = request.getExperienceModelId()) !== null && _l !== void 0 ? _l : null,
585
447
  'challengePeriodEventId': (_m = request.getChallengePeriodEventId()) !== null && _m !== void 0 ? _m : null,
586
448
  };
587
- return axios_1.default.put(url, body, {
588
- headers: headers,
589
- }).then(function (response) {
590
- return Result.UpdateSeasonModelMasterResult.fromDict(response.data);
591
- }).catch(function (error) {
592
- if (error.response) {
593
- throw JSON.parse(error.response.data.message);
594
- }
595
- else {
596
- throw [];
597
- }
449
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
450
+ return Result.UpdateSeasonModelMasterResult.fromDict(data);
598
451
  });
599
452
  };
600
453
  Gs2SeasonRatingRestClient.prototype.deleteSeasonModelMaster = function (request) {
@@ -611,13 +464,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
611
464
  var params = {
612
465
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
613
466
  };
614
- return axios_1.default.delete(url, {
615
- params: params,
616
- headers: headers,
617
- }).then(function (response) {
618
- return Result.DeleteSeasonModelMasterResult.fromDict(response.data);
619
- }).catch(function (error) {
620
- throw JSON.parse(error.response.data.message);
467
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
468
+ return Result.DeleteSeasonModelMasterResult.fromDict(data);
621
469
  });
622
470
  };
623
471
  Gs2SeasonRatingRestClient.prototype.describeSeasonModels = function (request) {
@@ -633,13 +481,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
633
481
  var params = {
634
482
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
635
483
  };
636
- return axios_1.default.get(url, {
637
- params: params,
638
- headers: headers,
639
- }).then(function (response) {
640
- return Result.DescribeSeasonModelsResult.fromDict(response.data);
641
- }).catch(function (error) {
642
- throw JSON.parse(error.response.data.message);
484
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
485
+ return Result.DescribeSeasonModelsResult.fromDict(data);
643
486
  });
644
487
  };
645
488
  Gs2SeasonRatingRestClient.prototype.getSeasonModel = function (request) {
@@ -656,13 +499,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
656
499
  var params = {
657
500
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
658
501
  };
659
- return axios_1.default.get(url, {
660
- params: params,
661
- headers: headers,
662
- }).then(function (response) {
663
- return Result.GetSeasonModelResult.fromDict(response.data);
664
- }).catch(function (error) {
665
- throw JSON.parse(error.response.data.message);
502
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
503
+ return Result.GetSeasonModelResult.fromDict(data);
666
504
  });
667
505
  };
668
506
  Gs2SeasonRatingRestClient.prototype.exportMaster = function (request) {
@@ -678,13 +516,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
678
516
  var params = {
679
517
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
680
518
  };
681
- return axios_1.default.get(url, {
682
- params: params,
683
- headers: headers,
684
- }).then(function (response) {
685
- return Result.ExportMasterResult.fromDict(response.data);
686
- }).catch(function (error) {
687
- throw JSON.parse(error.response.data.message);
519
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
520
+ return Result.ExportMasterResult.fromDict(data);
688
521
  });
689
522
  };
690
523
  Gs2SeasonRatingRestClient.prototype.getCurrentSeasonModelMaster = function (request) {
@@ -700,13 +533,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
700
533
  var params = {
701
534
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
702
535
  };
703
- return axios_1.default.get(url, {
704
- params: params,
705
- headers: headers,
706
- }).then(function (response) {
707
- return Result.GetCurrentSeasonModelMasterResult.fromDict(response.data);
708
- }).catch(function (error) {
709
- throw JSON.parse(error.response.data.message);
536
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
537
+ return Result.GetCurrentSeasonModelMasterResult.fromDict(data);
710
538
  });
711
539
  };
712
540
  Gs2SeasonRatingRestClient.prototype.preUpdateCurrentSeasonModelMaster = function (request) {
@@ -722,17 +550,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
722
550
  var body = {
723
551
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
724
552
  };
725
- return axios_1.default.post(url, body, {
726
- headers: headers,
727
- }).then(function (response) {
728
- return Result.PreUpdateCurrentSeasonModelMasterResult.fromDict(response.data);
729
- }).catch(function (error) {
730
- if (error.response) {
731
- throw JSON.parse(error.response.data.message);
732
- }
733
- else {
734
- throw [];
735
- }
553
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
554
+ return Result.PreUpdateCurrentSeasonModelMasterResult.fromDict(data);
736
555
  });
737
556
  };
738
557
  Gs2SeasonRatingRestClient.prototype.updateCurrentSeasonModelMaster = function (request) {
@@ -751,17 +570,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
751
570
  'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
752
571
  'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
753
572
  };
754
- return axios_1.default.put(url, body, {
755
- headers: headers,
756
- }).then(function (response) {
757
- return Result.UpdateCurrentSeasonModelMasterResult.fromDict(response.data);
758
- }).catch(function (error) {
759
- if (error.response) {
760
- throw JSON.parse(error.response.data.message);
761
- }
762
- else {
763
- throw [];
764
- }
573
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
574
+ return Result.UpdateCurrentSeasonModelMasterResult.fromDict(data);
765
575
  });
766
576
  };
767
577
  Gs2SeasonRatingRestClient.prototype.updateCurrentSeasonModelMasterFromGitHub = function (request) {
@@ -778,17 +588,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
778
588
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
779
589
  'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
780
590
  };
781
- return axios_1.default.put(url, body, {
782
- headers: headers,
783
- }).then(function (response) {
784
- return Result.UpdateCurrentSeasonModelMasterFromGitHubResult.fromDict(response.data);
785
- }).catch(function (error) {
786
- if (error.response) {
787
- throw JSON.parse(error.response.data.message);
788
- }
789
- else {
790
- throw [];
791
- }
591
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
592
+ return Result.UpdateCurrentSeasonModelMasterFromGitHubResult.fromDict(data);
792
593
  });
793
594
  };
794
595
  Gs2SeasonRatingRestClient.prototype.getBallot = function (request) {
@@ -811,17 +612,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
811
612
  'numberOfPlayer': (_k = request.getNumberOfPlayer()) !== null && _k !== void 0 ? _k : null,
812
613
  'keyId': (_l = request.getKeyId()) !== null && _l !== void 0 ? _l : null,
813
614
  };
814
- return axios_1.default.post(url, body, {
815
- headers: headers,
816
- }).then(function (response) {
817
- return Result.GetBallotResult.fromDict(response.data);
818
- }).catch(function (error) {
819
- if (error.response) {
820
- throw JSON.parse(error.response.data.message);
821
- }
822
- else {
823
- throw [];
824
- }
615
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
616
+ return Result.GetBallotResult.fromDict(data);
825
617
  });
826
618
  };
827
619
  Gs2SeasonRatingRestClient.prototype.getBallotByUserId = function (request) {
@@ -845,17 +637,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
845
637
  'numberOfPlayer': (_m = request.getNumberOfPlayer()) !== null && _m !== void 0 ? _m : null,
846
638
  'keyId': (_o = request.getKeyId()) !== null && _o !== void 0 ? _o : null,
847
639
  };
848
- return axios_1.default.post(url, body, {
849
- headers: headers,
850
- }).then(function (response) {
851
- return Result.GetBallotByUserIdResult.fromDict(response.data);
852
- }).catch(function (error) {
853
- if (error.response) {
854
- throw JSON.parse(error.response.data.message);
855
- }
856
- else {
857
- throw [];
858
- }
640
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
641
+ return Result.GetBallotByUserIdResult.fromDict(data);
859
642
  });
860
643
  };
861
644
  Gs2SeasonRatingRestClient.prototype.vote = function (request) {
@@ -875,17 +658,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
875
658
  'gameResults': (_h = (_g = request.getGameResults()) === null || _g === void 0 ? void 0 : _g.map(function (item) { return item.toDict(); })) !== null && _h !== void 0 ? _h : null,
876
659
  'keyId': (_j = request.getKeyId()) !== null && _j !== void 0 ? _j : null,
877
660
  };
878
- return axios_1.default.post(url, body, {
879
- headers: headers,
880
- }).then(function (response) {
881
- return Result.VoteResult.fromDict(response.data);
882
- }).catch(function (error) {
883
- if (error.response) {
884
- throw JSON.parse(error.response.data.message);
885
- }
886
- else {
887
- throw [];
888
- }
661
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
662
+ return Result.VoteResult.fromDict(data);
889
663
  });
890
664
  };
891
665
  Gs2SeasonRatingRestClient.prototype.voteMultiple = function (request) {
@@ -904,17 +678,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
904
678
  'gameResults': (_h = (_g = request.getGameResults()) === null || _g === void 0 ? void 0 : _g.map(function (item) { return item.toDict(); })) !== null && _h !== void 0 ? _h : null,
905
679
  'keyId': (_j = request.getKeyId()) !== null && _j !== void 0 ? _j : null,
906
680
  };
907
- return axios_1.default.post(url, body, {
908
- headers: headers,
909
- }).then(function (response) {
910
- return Result.VoteMultipleResult.fromDict(response.data);
911
- }).catch(function (error) {
912
- if (error.response) {
913
- throw JSON.parse(error.response.data.message);
914
- }
915
- else {
916
- throw [];
917
- }
681
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
682
+ return Result.VoteMultipleResult.fromDict(data);
918
683
  });
919
684
  };
920
685
  Gs2SeasonRatingRestClient.prototype.commitVote = function (request) {
@@ -932,17 +697,8 @@ var Gs2SeasonRatingRestClient = /** @class */ (function (_super) {
932
697
  var body = {
933
698
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
934
699
  };
935
- return axios_1.default.post(url, body, {
936
- headers: headers,
937
- }).then(function (response) {
938
- return Result.CommitVoteResult.fromDict(response.data);
939
- }).catch(function (error) {
940
- if (error.response) {
941
- throw JSON.parse(error.response.data.message);
942
- }
943
- else {
944
- throw [];
945
- }
700
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
701
+ return Result.CommitVoteResult.fromDict(data);
946
702
  });
947
703
  };
948
704
  Gs2SeasonRatingRestClient.ENDPOINT_HOST = null;