gs2 1.4.109 → 1.4.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/account/request/FindPlatformIdByUserIdRequest.d.ts +4 -0
  2. package/account/request/FindPlatformIdByUserIdRequest.js +14 -0
  3. package/account/request/FindPlatformIdByUserIdRequest.js.map +1 -1
  4. package/account/rest.js +132 -565
  5. package/account/rest.js.map +1 -1
  6. package/adReward/rest.js +44 -203
  7. package/adReward/rest.js.map +1 -1
  8. package/auth/rest.js +10 -52
  9. package/auth/rest.js.map +1 -1
  10. package/buff/rest.js +56 -249
  11. package/buff/rest.js.map +1 -1
  12. package/chat/rest.js +108 -463
  13. package/chat/rest.js.map +1 -1
  14. package/core/AbstractGs2RestClient.d.ts +9 -0
  15. package/core/AbstractGs2RestClient.js +48 -0
  16. package/core/AbstractGs2RestClient.js.map +1 -1
  17. package/core/model.d.ts +9 -1
  18. package/core/model.js +4 -1
  19. package/core/model.js.map +1 -1
  20. package/datastore/rest.js +78 -370
  21. package/datastore/rest.js.map +1 -1
  22. package/deploy/rest.js +48 -209
  23. package/deploy/rest.js.map +1 -1
  24. package/dictionary/rest.js +102 -450
  25. package/dictionary/rest.js.map +1 -1
  26. package/distributor/rest.js +96 -465
  27. package/distributor/rest.js.map +1 -1
  28. package/enchant/rest.js +112 -497
  29. package/enchant/rest.js.map +1 -1
  30. package/enhance/rest.js +100 -455
  31. package/enhance/rest.js.map +1 -1
  32. package/exchange/rest.js +108 -491
  33. package/exchange/rest.js.map +1 -1
  34. package/experience/rest.js +120 -561
  35. package/experience/rest.js.map +1 -1
  36. package/formation/rest.js +158 -686
  37. package/formation/rest.js.map +1 -1
  38. package/freeze/rest.js +12 -51
  39. package/freeze/rest.js.map +1 -1
  40. package/friend/rest.js +118 -490
  41. package/friend/rest.js.map +1 -1
  42. package/gateway/rest.js +56 -245
  43. package/gateway/rest.js.map +1 -1
  44. package/grade/rest.js +96 -449
  45. package/grade/rest.js.map +1 -1
  46. package/guard/rest.js +14 -58
  47. package/guard/rest.js.map +1 -1
  48. package/guild/rest.js +186 -840
  49. package/guild/rest.js.map +1 -1
  50. package/identifier/rest.js +60 -259
  51. package/identifier/rest.js.map +1 -1
  52. package/idle/rest.js +84 -387
  53. package/idle/rest.js.map +1 -1
  54. package/inbox/rest.js +96 -437
  55. package/inbox/rest.js.map +1 -1
  56. package/inventory/rest.js +270 -1206
  57. package/inventory/rest.js.map +1 -1
  58. package/jobQueue/rest.js +50 -220
  59. package/jobQueue/rest.js.map +1 -1
  60. package/key/rest.js +38 -166
  61. package/key/rest.js.map +1 -1
  62. package/limit/rest.js +80 -361
  63. package/limit/rest.js.map +1 -1
  64. package/lock/rest.js +28 -123
  65. package/lock/rest.js.map +1 -1
  66. package/log/rest.js +46 -186
  67. package/log/rest.js.map +1 -1
  68. package/loginReward/rest.js +82 -376
  69. package/loginReward/rest.js.map +1 -1
  70. package/lottery/rest.js +100 -427
  71. package/lottery/rest.js.map +1 -1
  72. package/matchmaking/rest.js +146 -644
  73. package/matchmaking/rest.js.map +1 -1
  74. package/megaField/rest.js +68 -307
  75. package/megaField/rest.js.map +1 -1
  76. package/mission/rest.js +158 -726
  77. package/mission/rest.js.map +1 -1
  78. package/money/rest.js +58 -264
  79. package/money/rest.js.map +1 -1
  80. package/money2/rest.js +126 -542
  81. package/money2/rest.js.map +1 -1
  82. package/news/rest.js +36 -147
  83. package/news/rest.js.map +1 -1
  84. package/package.json +1 -1
  85. package/project/request/WaitCleanUserDataRequest.d.ts +0 -4
  86. package/project/request/WaitCleanUserDataRequest.js +0 -14
  87. package/project/request/WaitCleanUserDataRequest.js.map +1 -1
  88. package/project/request/WaitDumpUserDataRequest.d.ts +0 -4
  89. package/project/request/WaitDumpUserDataRequest.js +0 -14
  90. package/project/request/WaitDumpUserDataRequest.js.map +1 -1
  91. package/project/request/WaitImportUserDataRequest.d.ts +0 -4
  92. package/project/request/WaitImportUserDataRequest.js +0 -14
  93. package/project/request/WaitImportUserDataRequest.js.map +1 -1
  94. package/project/rest.js +91 -411
  95. package/project/rest.js.map +1 -1
  96. package/quest/rest.js +100 -431
  97. package/quest/rest.js.map +1 -1
  98. package/ranking/rest.js +92 -387
  99. package/ranking/rest.js.map +1 -1
  100. package/ranking2/rest.js +220 -939
  101. package/ranking2/rest.js.map +1 -1
  102. package/realtime/rest.js +24 -97
  103. package/realtime/rest.js.map +1 -1
  104. package/schedule/rest.js +94 -418
  105. package/schedule/rest.js.map +1 -1
  106. package/script/rest.js +34 -156
  107. package/script/rest.js.map +1 -1
  108. package/seasonRating/rest.js +70 -314
  109. package/seasonRating/rest.js.map +1 -1
  110. package/serialKey/rest.js +84 -383
  111. package/serialKey/rest.js.map +1 -1
  112. package/showcase/rest.js +116 -515
  113. package/showcase/rest.js.map +1 -1
  114. package/skillTree/rest.js +82 -372
  115. package/skillTree/rest.js.map +1 -1
  116. package/stamina/rest.js +166 -798
  117. package/stamina/rest.js.map +1 -1
  118. package/stateMachine/rest.js +62 -270
  119. package/stateMachine/rest.js.map +1 -1
  120. package/version/rest.js +78 -346
  121. package/version/rest.js.map +1 -1
  122. package/watch/rest.js +156 -563
  123. package/watch/rest.js.map +1 -1
package/lottery/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 Gs2LotteryRestClient = /** @class */ (function (_super) {
24
23
  tslib_1.__extends(Gs2LotteryRestClient, _super);
25
24
  function Gs2LotteryRestClient(session) {
@@ -40,13 +39,8 @@ var Gs2LotteryRestClient = /** @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
  Gs2LotteryRestClient.prototype.createNamespace = function (request) {
@@ -68,17 +62,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
68
62
  'queueNamespaceId': (_k = request.getQueueNamespaceId()) !== null && _k !== void 0 ? _k : null,
69
63
  'keyId': (_l = request.getKeyId()) !== null && _l !== void 0 ? _l : null,
70
64
  };
71
- return axios_1.default.post(url, body, {
72
- headers: headers,
73
- }).then(function (response) {
74
- return Result.CreateNamespaceResult.fromDict(response.data);
75
- }).catch(function (error) {
76
- if (error.response) {
77
- throw JSON.parse(error.response.data.message);
78
- }
79
- else {
80
- throw [];
81
- }
65
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
66
+ return Result.CreateNamespaceResult.fromDict(data);
82
67
  });
83
68
  };
84
69
  Gs2LotteryRestClient.prototype.getNamespaceStatus = function (request) {
@@ -94,13 +79,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
94
79
  var params = {
95
80
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
96
81
  };
97
- return axios_1.default.get(url, {
98
- params: params,
99
- headers: headers,
100
- }).then(function (response) {
101
- return Result.GetNamespaceStatusResult.fromDict(response.data);
102
- }).catch(function (error) {
103
- throw JSON.parse(error.response.data.message);
82
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
83
+ return Result.GetNamespaceStatusResult.fromDict(data);
104
84
  });
105
85
  };
106
86
  Gs2LotteryRestClient.prototype.getNamespace = function (request) {
@@ -116,13 +96,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
116
96
  var params = {
117
97
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
118
98
  };
119
- return axios_1.default.get(url, {
120
- params: params,
121
- headers: headers,
122
- }).then(function (response) {
123
- return Result.GetNamespaceResult.fromDict(response.data);
124
- }).catch(function (error) {
125
- throw JSON.parse(error.response.data.message);
99
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
100
+ return Result.GetNamespaceResult.fromDict(data);
126
101
  });
127
102
  };
128
103
  Gs2LotteryRestClient.prototype.updateNamespace = function (request) {
@@ -144,17 +119,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
144
119
  'queueNamespaceId': (_l = request.getQueueNamespaceId()) !== null && _l !== void 0 ? _l : null,
145
120
  'keyId': (_m = request.getKeyId()) !== null && _m !== void 0 ? _m : null,
146
121
  };
147
- return axios_1.default.put(url, body, {
148
- headers: headers,
149
- }).then(function (response) {
150
- return Result.UpdateNamespaceResult.fromDict(response.data);
151
- }).catch(function (error) {
152
- if (error.response) {
153
- throw JSON.parse(error.response.data.message);
154
- }
155
- else {
156
- throw [];
157
- }
122
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
123
+ return Result.UpdateNamespaceResult.fromDict(data);
158
124
  });
159
125
  };
160
126
  Gs2LotteryRestClient.prototype.deleteNamespace = function (request) {
@@ -170,13 +136,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
170
136
  var params = {
171
137
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
172
138
  };
173
- return axios_1.default.delete(url, {
174
- params: params,
175
- headers: headers,
176
- }).then(function (response) {
177
- return Result.DeleteNamespaceResult.fromDict(response.data);
178
- }).catch(function (error) {
179
- throw JSON.parse(error.response.data.message);
139
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
140
+ return Result.DeleteNamespaceResult.fromDict(data);
180
141
  });
181
142
  };
182
143
  Gs2LotteryRestClient.prototype.getServiceVersion = function (request) {
@@ -191,13 +152,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
191
152
  var params = {
192
153
  'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
193
154
  };
194
- return axios_1.default.get(url, {
195
- params: params,
196
- headers: headers,
197
- }).then(function (response) {
198
- return Result.GetServiceVersionResult.fromDict(response.data);
199
- }).catch(function (error) {
200
- throw JSON.parse(error.response.data.message);
155
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
156
+ return Result.GetServiceVersionResult.fromDict(data);
201
157
  });
202
158
  };
203
159
  Gs2LotteryRestClient.prototype.dumpUserDataByUserId = function (request) {
@@ -216,17 +172,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
216
172
  var body = {
217
173
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
218
174
  };
219
- return axios_1.default.post(url, body, {
220
- headers: headers,
221
- }).then(function (response) {
222
- return Result.DumpUserDataByUserIdResult.fromDict(response.data);
223
- }).catch(function (error) {
224
- if (error.response) {
225
- throw JSON.parse(error.response.data.message);
226
- }
227
- else {
228
- throw [];
229
- }
175
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
176
+ return Result.DumpUserDataByUserIdResult.fromDict(data);
230
177
  });
231
178
  };
232
179
  Gs2LotteryRestClient.prototype.checkDumpUserDataByUserId = function (request) {
@@ -245,13 +192,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
245
192
  var params = {
246
193
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
247
194
  };
248
- return axios_1.default.get(url, {
249
- params: params,
250
- headers: headers,
251
- }).then(function (response) {
252
- return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
253
- }).catch(function (error) {
254
- throw JSON.parse(error.response.data.message);
195
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
196
+ return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
255
197
  });
256
198
  };
257
199
  Gs2LotteryRestClient.prototype.cleanUserDataByUserId = function (request) {
@@ -270,17 +212,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
270
212
  var body = {
271
213
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
272
214
  };
273
- return axios_1.default.post(url, body, {
274
- headers: headers,
275
- }).then(function (response) {
276
- return Result.CleanUserDataByUserIdResult.fromDict(response.data);
277
- }).catch(function (error) {
278
- if (error.response) {
279
- throw JSON.parse(error.response.data.message);
280
- }
281
- else {
282
- throw [];
283
- }
215
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
216
+ return Result.CleanUserDataByUserIdResult.fromDict(data);
284
217
  });
285
218
  };
286
219
  Gs2LotteryRestClient.prototype.checkCleanUserDataByUserId = function (request) {
@@ -299,13 +232,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
299
232
  var params = {
300
233
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
301
234
  };
302
- return axios_1.default.get(url, {
303
- params: params,
304
- headers: headers,
305
- }).then(function (response) {
306
- return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
307
- }).catch(function (error) {
308
- throw JSON.parse(error.response.data.message);
235
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
236
+ return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
309
237
  });
310
238
  };
311
239
  Gs2LotteryRestClient.prototype.prepareImportUserDataByUserId = function (request) {
@@ -324,17 +252,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
324
252
  var body = {
325
253
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
326
254
  };
327
- return axios_1.default.post(url, body, {
328
- headers: headers,
329
- }).then(function (response) {
330
- return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
331
- }).catch(function (error) {
332
- if (error.response) {
333
- throw JSON.parse(error.response.data.message);
334
- }
335
- else {
336
- throw [];
337
- }
255
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
256
+ return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
338
257
  });
339
258
  };
340
259
  Gs2LotteryRestClient.prototype.importUserDataByUserId = function (request) {
@@ -354,17 +273,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
354
273
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
355
274
  'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
356
275
  };
357
- return axios_1.default.post(url, body, {
358
- headers: headers,
359
- }).then(function (response) {
360
- return Result.ImportUserDataByUserIdResult.fromDict(response.data);
361
- }).catch(function (error) {
362
- if (error.response) {
363
- throw JSON.parse(error.response.data.message);
364
- }
365
- else {
366
- throw [];
367
- }
276
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
277
+ return Result.ImportUserDataByUserIdResult.fromDict(data);
368
278
  });
369
279
  };
370
280
  Gs2LotteryRestClient.prototype.checkImportUserDataByUserId = function (request) {
@@ -384,13 +294,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
384
294
  var params = {
385
295
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
386
296
  };
387
- return axios_1.default.get(url, {
388
- params: params,
389
- headers: headers,
390
- }).then(function (response) {
391
- return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
392
- }).catch(function (error) {
393
- throw JSON.parse(error.response.data.message);
297
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
298
+ return Result.CheckImportUserDataByUserIdResult.fromDict(data);
394
299
  });
395
300
  };
396
301
  Gs2LotteryRestClient.prototype.describeLotteryModelMasters = function (request) {
@@ -409,13 +314,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
409
314
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
410
315
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
411
316
  };
412
- return axios_1.default.get(url, {
413
- params: params,
414
- headers: headers,
415
- }).then(function (response) {
416
- return Result.DescribeLotteryModelMastersResult.fromDict(response.data);
417
- }).catch(function (error) {
418
- throw JSON.parse(error.response.data.message);
317
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
318
+ return Result.DescribeLotteryModelMastersResult.fromDict(data);
419
319
  });
420
320
  };
421
321
  Gs2LotteryRestClient.prototype.createLotteryModelMaster = function (request) {
@@ -438,17 +338,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
438
338
  'prizeTableName': (_k = request.getPrizeTableName()) !== null && _k !== void 0 ? _k : null,
439
339
  'choicePrizeTableScriptId': (_l = request.getChoicePrizeTableScriptId()) !== null && _l !== void 0 ? _l : null,
440
340
  };
441
- return axios_1.default.post(url, body, {
442
- headers: headers,
443
- }).then(function (response) {
444
- return Result.CreateLotteryModelMasterResult.fromDict(response.data);
445
- }).catch(function (error) {
446
- if (error.response) {
447
- throw JSON.parse(error.response.data.message);
448
- }
449
- else {
450
- throw [];
451
- }
341
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
342
+ return Result.CreateLotteryModelMasterResult.fromDict(data);
452
343
  });
453
344
  };
454
345
  Gs2LotteryRestClient.prototype.getLotteryModelMaster = function (request) {
@@ -465,13 +356,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
465
356
  var params = {
466
357
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
467
358
  };
468
- return axios_1.default.get(url, {
469
- params: params,
470
- headers: headers,
471
- }).then(function (response) {
472
- return Result.GetLotteryModelMasterResult.fromDict(response.data);
473
- }).catch(function (error) {
474
- throw JSON.parse(error.response.data.message);
359
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
360
+ return Result.GetLotteryModelMasterResult.fromDict(data);
475
361
  });
476
362
  };
477
363
  Gs2LotteryRestClient.prototype.updateLotteryModelMaster = function (request) {
@@ -494,17 +380,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
494
380
  'prizeTableName': (_l = request.getPrizeTableName()) !== null && _l !== void 0 ? _l : null,
495
381
  'choicePrizeTableScriptId': (_m = request.getChoicePrizeTableScriptId()) !== null && _m !== void 0 ? _m : null,
496
382
  };
497
- return axios_1.default.put(url, body, {
498
- headers: headers,
499
- }).then(function (response) {
500
- return Result.UpdateLotteryModelMasterResult.fromDict(response.data);
501
- }).catch(function (error) {
502
- if (error.response) {
503
- throw JSON.parse(error.response.data.message);
504
- }
505
- else {
506
- throw [];
507
- }
383
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
384
+ return Result.UpdateLotteryModelMasterResult.fromDict(data);
508
385
  });
509
386
  };
510
387
  Gs2LotteryRestClient.prototype.deleteLotteryModelMaster = function (request) {
@@ -521,13 +398,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
521
398
  var params = {
522
399
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
523
400
  };
524
- return axios_1.default.delete(url, {
525
- params: params,
526
- headers: headers,
527
- }).then(function (response) {
528
- return Result.DeleteLotteryModelMasterResult.fromDict(response.data);
529
- }).catch(function (error) {
530
- throw JSON.parse(error.response.data.message);
401
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
402
+ return Result.DeleteLotteryModelMasterResult.fromDict(data);
531
403
  });
532
404
  };
533
405
  Gs2LotteryRestClient.prototype.describePrizeTableMasters = function (request) {
@@ -546,13 +418,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
546
418
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
547
419
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
548
420
  };
549
- return axios_1.default.get(url, {
550
- params: params,
551
- headers: headers,
552
- }).then(function (response) {
553
- return Result.DescribePrizeTableMastersResult.fromDict(response.data);
554
- }).catch(function (error) {
555
- throw JSON.parse(error.response.data.message);
421
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
422
+ return Result.DescribePrizeTableMastersResult.fromDict(data);
556
423
  });
557
424
  };
558
425
  Gs2LotteryRestClient.prototype.createPrizeTableMaster = function (request) {
@@ -572,17 +439,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
572
439
  'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
573
440
  'prizes': (_j = (_h = request.getPrizes()) === null || _h === void 0 ? void 0 : _h.map(function (item) { return item.toDict(); })) !== null && _j !== void 0 ? _j : null,
574
441
  };
575
- return axios_1.default.post(url, body, {
576
- headers: headers,
577
- }).then(function (response) {
578
- return Result.CreatePrizeTableMasterResult.fromDict(response.data);
579
- }).catch(function (error) {
580
- if (error.response) {
581
- throw JSON.parse(error.response.data.message);
582
- }
583
- else {
584
- throw [];
585
- }
442
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
443
+ return Result.CreatePrizeTableMasterResult.fromDict(data);
586
444
  });
587
445
  };
588
446
  Gs2LotteryRestClient.prototype.getPrizeTableMaster = function (request) {
@@ -599,13 +457,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
599
457
  var params = {
600
458
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
601
459
  };
602
- return axios_1.default.get(url, {
603
- params: params,
604
- headers: headers,
605
- }).then(function (response) {
606
- return Result.GetPrizeTableMasterResult.fromDict(response.data);
607
- }).catch(function (error) {
608
- throw JSON.parse(error.response.data.message);
460
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
461
+ return Result.GetPrizeTableMasterResult.fromDict(data);
609
462
  });
610
463
  };
611
464
  Gs2LotteryRestClient.prototype.updatePrizeTableMaster = function (request) {
@@ -625,17 +478,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
625
478
  'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
626
479
  'prizes': (_k = (_j = request.getPrizes()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
627
480
  };
628
- return axios_1.default.put(url, body, {
629
- headers: headers,
630
- }).then(function (response) {
631
- return Result.UpdatePrizeTableMasterResult.fromDict(response.data);
632
- }).catch(function (error) {
633
- if (error.response) {
634
- throw JSON.parse(error.response.data.message);
635
- }
636
- else {
637
- throw [];
638
- }
481
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
482
+ return Result.UpdatePrizeTableMasterResult.fromDict(data);
639
483
  });
640
484
  };
641
485
  Gs2LotteryRestClient.prototype.deletePrizeTableMaster = function (request) {
@@ -652,13 +496,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
652
496
  var params = {
653
497
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
654
498
  };
655
- return axios_1.default.delete(url, {
656
- params: params,
657
- headers: headers,
658
- }).then(function (response) {
659
- return Result.DeletePrizeTableMasterResult.fromDict(response.data);
660
- }).catch(function (error) {
661
- throw JSON.parse(error.response.data.message);
499
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
500
+ return Result.DeletePrizeTableMasterResult.fromDict(data);
662
501
  });
663
502
  };
664
503
  Gs2LotteryRestClient.prototype.describeLotteryModels = function (request) {
@@ -674,13 +513,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
674
513
  var params = {
675
514
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
676
515
  };
677
- return axios_1.default.get(url, {
678
- params: params,
679
- headers: headers,
680
- }).then(function (response) {
681
- return Result.DescribeLotteryModelsResult.fromDict(response.data);
682
- }).catch(function (error) {
683
- throw JSON.parse(error.response.data.message);
516
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
517
+ return Result.DescribeLotteryModelsResult.fromDict(data);
684
518
  });
685
519
  };
686
520
  Gs2LotteryRestClient.prototype.getLotteryModel = function (request) {
@@ -697,13 +531,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
697
531
  var params = {
698
532
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
699
533
  };
700
- return axios_1.default.get(url, {
701
- params: params,
702
- headers: headers,
703
- }).then(function (response) {
704
- return Result.GetLotteryModelResult.fromDict(response.data);
705
- }).catch(function (error) {
706
- throw JSON.parse(error.response.data.message);
534
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
535
+ return Result.GetLotteryModelResult.fromDict(data);
707
536
  });
708
537
  };
709
538
  Gs2LotteryRestClient.prototype.describePrizeTables = function (request) {
@@ -719,13 +548,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
719
548
  var params = {
720
549
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
721
550
  };
722
- return axios_1.default.get(url, {
723
- params: params,
724
- headers: headers,
725
- }).then(function (response) {
726
- return Result.DescribePrizeTablesResult.fromDict(response.data);
727
- }).catch(function (error) {
728
- throw JSON.parse(error.response.data.message);
551
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
552
+ return Result.DescribePrizeTablesResult.fromDict(data);
729
553
  });
730
554
  };
731
555
  Gs2LotteryRestClient.prototype.getPrizeTable = function (request) {
@@ -742,13 +566,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
742
566
  var params = {
743
567
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
744
568
  };
745
- return axios_1.default.get(url, {
746
- params: params,
747
- headers: headers,
748
- }).then(function (response) {
749
- return Result.GetPrizeTableResult.fromDict(response.data);
750
- }).catch(function (error) {
751
- throw JSON.parse(error.response.data.message);
569
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
570
+ return Result.GetPrizeTableResult.fromDict(data);
752
571
  });
753
572
  };
754
573
  Gs2LotteryRestClient.prototype.drawByUserId = function (request) {
@@ -774,17 +593,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
774
593
  'count': (_l = request.getCount()) !== null && _l !== void 0 ? _l : null,
775
594
  'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
776
595
  };
777
- return axios_1.default.post(url, body, {
778
- headers: headers,
779
- }).then(function (response) {
780
- return Result.DrawByUserIdResult.fromDict(response.data);
781
- }).catch(function (error) {
782
- if (error.response) {
783
- throw JSON.parse(error.response.data.message);
784
- }
785
- else {
786
- throw [];
787
- }
596
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
597
+ return Result.DrawByUserIdResult.fromDict(data);
788
598
  });
789
599
  };
790
600
  Gs2LotteryRestClient.prototype.prediction = function (request) {
@@ -809,17 +619,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
809
619
  'randomSeed': (_j = request.getRandomSeed()) !== null && _j !== void 0 ? _j : null,
810
620
  'count': (_k = request.getCount()) !== null && _k !== void 0 ? _k : null,
811
621
  };
812
- return axios_1.default.post(url, body, {
813
- headers: headers,
814
- }).then(function (response) {
815
- return Result.PredictionResult.fromDict(response.data);
816
- }).catch(function (error) {
817
- if (error.response) {
818
- throw JSON.parse(error.response.data.message);
819
- }
820
- else {
821
- throw [];
822
- }
622
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
623
+ return Result.PredictionResult.fromDict(data);
823
624
  });
824
625
  };
825
626
  Gs2LotteryRestClient.prototype.predictionByUserId = function (request) {
@@ -845,17 +646,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
845
646
  'randomSeed': (_l = request.getRandomSeed()) !== null && _l !== void 0 ? _l : null,
846
647
  'count': (_m = request.getCount()) !== null && _m !== void 0 ? _m : null,
847
648
  };
848
- return axios_1.default.post(url, body, {
849
- headers: headers,
850
- }).then(function (response) {
851
- return Result.PredictionByUserIdResult.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
- }
649
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
650
+ return Result.PredictionByUserIdResult.fromDict(data);
859
651
  });
860
652
  };
861
653
  Gs2LotteryRestClient.prototype.drawWithRandomSeedByUserId = function (request) {
@@ -882,17 +674,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
882
674
  'count': (_m = request.getCount()) !== null && _m !== void 0 ? _m : null,
883
675
  'config': (_p = (_o = request.getConfig()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
884
676
  };
885
- return axios_1.default.post(url, body, {
886
- headers: headers,
887
- }).then(function (response) {
888
- return Result.DrawWithRandomSeedByUserIdResult.fromDict(response.data);
889
- }).catch(function (error) {
890
- if (error.response) {
891
- throw JSON.parse(error.response.data.message);
892
- }
893
- else {
894
- throw [];
895
- }
677
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
678
+ return Result.DrawWithRandomSeedByUserIdResult.fromDict(data);
896
679
  });
897
680
  };
898
681
  Gs2LotteryRestClient.prototype.drawByStampSheet = function (request) {
@@ -909,17 +692,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
909
692
  'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
910
693
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
911
694
  };
912
- return axios_1.default.post(url, body, {
913
- headers: headers,
914
- }).then(function (response) {
915
- return Result.DrawByStampSheetResult.fromDict(response.data);
916
- }).catch(function (error) {
917
- if (error.response) {
918
- throw JSON.parse(error.response.data.message);
919
- }
920
- else {
921
- throw [];
922
- }
695
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
696
+ return Result.DrawByStampSheetResult.fromDict(data);
923
697
  });
924
698
  };
925
699
  Gs2LotteryRestClient.prototype.describeProbabilities = function (request) {
@@ -939,13 +713,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
939
713
  var params = {
940
714
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
941
715
  };
942
- return axios_1.default.get(url, {
943
- params: params,
944
- headers: headers,
945
- }).then(function (response) {
946
- return Result.DescribeProbabilitiesResult.fromDict(response.data);
947
- }).catch(function (error) {
948
- throw JSON.parse(error.response.data.message);
716
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
717
+ return Result.DescribeProbabilitiesResult.fromDict(data);
949
718
  });
950
719
  };
951
720
  Gs2LotteryRestClient.prototype.describeProbabilitiesByUserId = function (request) {
@@ -966,13 +735,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
966
735
  var params = {
967
736
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
968
737
  };
969
- return axios_1.default.get(url, {
970
- params: params,
971
- headers: headers,
972
- }).then(function (response) {
973
- return Result.DescribeProbabilitiesByUserIdResult.fromDict(response.data);
974
- }).catch(function (error) {
975
- throw JSON.parse(error.response.data.message);
738
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
739
+ return Result.DescribeProbabilitiesByUserIdResult.fromDict(data);
976
740
  });
977
741
  };
978
742
  Gs2LotteryRestClient.prototype.exportMaster = function (request) {
@@ -988,13 +752,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
988
752
  var params = {
989
753
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
990
754
  };
991
- return axios_1.default.get(url, {
992
- params: params,
993
- headers: headers,
994
- }).then(function (response) {
995
- return Result.ExportMasterResult.fromDict(response.data);
996
- }).catch(function (error) {
997
- throw JSON.parse(error.response.data.message);
755
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
756
+ return Result.ExportMasterResult.fromDict(data);
998
757
  });
999
758
  };
1000
759
  Gs2LotteryRestClient.prototype.getCurrentLotteryMaster = function (request) {
@@ -1010,13 +769,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
1010
769
  var params = {
1011
770
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1012
771
  };
1013
- return axios_1.default.get(url, {
1014
- params: params,
1015
- headers: headers,
1016
- }).then(function (response) {
1017
- return Result.GetCurrentLotteryMasterResult.fromDict(response.data);
1018
- }).catch(function (error) {
1019
- throw JSON.parse(error.response.data.message);
772
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
773
+ return Result.GetCurrentLotteryMasterResult.fromDict(data);
1020
774
  });
1021
775
  };
1022
776
  Gs2LotteryRestClient.prototype.preUpdateCurrentLotteryMaster = function (request) {
@@ -1032,17 +786,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
1032
786
  var body = {
1033
787
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1034
788
  };
1035
- return axios_1.default.post(url, body, {
1036
- headers: headers,
1037
- }).then(function (response) {
1038
- return Result.PreUpdateCurrentLotteryMasterResult.fromDict(response.data);
1039
- }).catch(function (error) {
1040
- if (error.response) {
1041
- throw JSON.parse(error.response.data.message);
1042
- }
1043
- else {
1044
- throw [];
1045
- }
789
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
790
+ return Result.PreUpdateCurrentLotteryMasterResult.fromDict(data);
1046
791
  });
1047
792
  };
1048
793
  Gs2LotteryRestClient.prototype.updateCurrentLotteryMaster = function (request) {
@@ -1061,17 +806,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
1061
806
  'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
1062
807
  'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
1063
808
  };
1064
- return axios_1.default.put(url, body, {
1065
- headers: headers,
1066
- }).then(function (response) {
1067
- return Result.UpdateCurrentLotteryMasterResult.fromDict(response.data);
1068
- }).catch(function (error) {
1069
- if (error.response) {
1070
- throw JSON.parse(error.response.data.message);
1071
- }
1072
- else {
1073
- throw [];
1074
- }
809
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
810
+ return Result.UpdateCurrentLotteryMasterResult.fromDict(data);
1075
811
  });
1076
812
  };
1077
813
  Gs2LotteryRestClient.prototype.updateCurrentLotteryMasterFromGitHub = function (request) {
@@ -1088,17 +824,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
1088
824
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1089
825
  'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
1090
826
  };
1091
- return axios_1.default.put(url, body, {
1092
- headers: headers,
1093
- }).then(function (response) {
1094
- return Result.UpdateCurrentLotteryMasterFromGitHubResult.fromDict(response.data);
1095
- }).catch(function (error) {
1096
- if (error.response) {
1097
- throw JSON.parse(error.response.data.message);
1098
- }
1099
- else {
1100
- throw [];
1101
- }
827
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
828
+ return Result.UpdateCurrentLotteryMasterFromGitHubResult.fromDict(data);
1102
829
  });
1103
830
  };
1104
831
  Gs2LotteryRestClient.prototype.describePrizeLimits = function (request) {
@@ -1117,13 +844,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
1117
844
  'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
1118
845
  'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
1119
846
  };
1120
- return axios_1.default.get(url, {
1121
- params: params,
1122
- headers: headers,
1123
- }).then(function (response) {
1124
- return Result.DescribePrizeLimitsResult.fromDict(response.data);
1125
- }).catch(function (error) {
1126
- throw JSON.parse(error.response.data.message);
847
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
848
+ return Result.DescribePrizeLimitsResult.fromDict(data);
1127
849
  });
1128
850
  };
1129
851
  Gs2LotteryRestClient.prototype.getPrizeLimit = function (request) {
@@ -1141,13 +863,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
1141
863
  var params = {
1142
864
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1143
865
  };
1144
- return axios_1.default.get(url, {
1145
- params: params,
1146
- headers: headers,
1147
- }).then(function (response) {
1148
- return Result.GetPrizeLimitResult.fromDict(response.data);
1149
- }).catch(function (error) {
1150
- throw JSON.parse(error.response.data.message);
866
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
867
+ return Result.GetPrizeLimitResult.fromDict(data);
1151
868
  });
1152
869
  };
1153
870
  Gs2LotteryRestClient.prototype.resetPrizeLimit = function (request) {
@@ -1165,13 +882,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
1165
882
  var params = {
1166
883
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1167
884
  };
1168
- return axios_1.default.delete(url, {
1169
- params: params,
1170
- headers: headers,
1171
- }).then(function (response) {
1172
- return Result.ResetPrizeLimitResult.fromDict(response.data);
1173
- }).catch(function (error) {
1174
- throw JSON.parse(error.response.data.message);
885
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
886
+ return Result.ResetPrizeLimitResult.fromDict(data);
1175
887
  });
1176
888
  };
1177
889
  Gs2LotteryRestClient.prototype.describeBoxes = function (request) {
@@ -1192,13 +904,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
1192
904
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
1193
905
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
1194
906
  };
1195
- return axios_1.default.get(url, {
1196
- params: params,
1197
- headers: headers,
1198
- }).then(function (response) {
1199
- return Result.DescribeBoxesResult.fromDict(response.data);
1200
- }).catch(function (error) {
1201
- throw JSON.parse(error.response.data.message);
907
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
908
+ return Result.DescribeBoxesResult.fromDict(data);
1202
909
  });
1203
910
  };
1204
911
  Gs2LotteryRestClient.prototype.describeBoxesByUserId = function (request) {
@@ -1220,13 +927,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
1220
927
  'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
1221
928
  'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
1222
929
  };
1223
- return axios_1.default.get(url, {
1224
- params: params,
1225
- headers: headers,
1226
- }).then(function (response) {
1227
- return Result.DescribeBoxesByUserIdResult.fromDict(response.data);
1228
- }).catch(function (error) {
1229
- throw JSON.parse(error.response.data.message);
930
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
931
+ return Result.DescribeBoxesByUserIdResult.fromDict(data);
1230
932
  });
1231
933
  };
1232
934
  Gs2LotteryRestClient.prototype.getBox = function (request) {
@@ -1246,13 +948,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
1246
948
  var params = {
1247
949
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
1248
950
  };
1249
- return axios_1.default.get(url, {
1250
- params: params,
1251
- headers: headers,
1252
- }).then(function (response) {
1253
- return Result.GetBoxResult.fromDict(response.data);
1254
- }).catch(function (error) {
1255
- throw JSON.parse(error.response.data.message);
951
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
952
+ return Result.GetBoxResult.fromDict(data);
1256
953
  });
1257
954
  };
1258
955
  Gs2LotteryRestClient.prototype.getBoxByUserId = function (request) {
@@ -1273,13 +970,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
1273
970
  var params = {
1274
971
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
1275
972
  };
1276
- return axios_1.default.get(url, {
1277
- params: params,
1278
- headers: headers,
1279
- }).then(function (response) {
1280
- return Result.GetBoxByUserIdResult.fromDict(response.data);
1281
- }).catch(function (error) {
1282
- throw JSON.parse(error.response.data.message);
973
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
974
+ return Result.GetBoxByUserIdResult.fromDict(data);
1283
975
  });
1284
976
  };
1285
977
  Gs2LotteryRestClient.prototype.resetBox = function (request) {
@@ -1302,13 +994,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
1302
994
  var params = {
1303
995
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1304
996
  };
1305
- return axios_1.default.delete(url, {
1306
- params: params,
1307
- headers: headers,
1308
- }).then(function (response) {
1309
- return Result.ResetBoxResult.fromDict(response.data);
1310
- }).catch(function (error) {
1311
- throw JSON.parse(error.response.data.message);
997
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
998
+ return Result.ResetBoxResult.fromDict(data);
1312
999
  });
1313
1000
  };
1314
1001
  Gs2LotteryRestClient.prototype.resetBoxByUserId = function (request) {
@@ -1332,13 +1019,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
1332
1019
  var params = {
1333
1020
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1334
1021
  };
1335
- return axios_1.default.delete(url, {
1336
- params: params,
1337
- headers: headers,
1338
- }).then(function (response) {
1339
- return Result.ResetBoxByUserIdResult.fromDict(response.data);
1340
- }).catch(function (error) {
1341
- throw JSON.parse(error.response.data.message);
1022
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
1023
+ return Result.ResetBoxByUserIdResult.fromDict(data);
1342
1024
  });
1343
1025
  };
1344
1026
  Gs2LotteryRestClient.prototype.resetByStampSheet = function (request) {
@@ -1355,17 +1037,8 @@ var Gs2LotteryRestClient = /** @class */ (function (_super) {
1355
1037
  'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
1356
1038
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1357
1039
  };
1358
- return axios_1.default.post(url, body, {
1359
- headers: headers,
1360
- }).then(function (response) {
1361
- return Result.ResetByStampSheetResult.fromDict(response.data);
1362
- }).catch(function (error) {
1363
- if (error.response) {
1364
- throw JSON.parse(error.response.data.message);
1365
- }
1366
- else {
1367
- throw [];
1368
- }
1040
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1041
+ return Result.ResetByStampSheetResult.fromDict(data);
1369
1042
  });
1370
1043
  };
1371
1044
  Gs2LotteryRestClient.ENDPOINT_HOST = null;