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
@@ -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 Gs2LoginRewardRestClient = /** @class */ (function (_super) {
24
23
  tslib_1.__extends(Gs2LoginRewardRestClient, _super);
25
24
  function Gs2LoginRewardRestClient(session) {
@@ -40,13 +39,8 @@ var Gs2LoginRewardRestClient = /** @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
  Gs2LoginRewardRestClient.prototype.createNamespace = function (request) {
@@ -66,17 +60,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
66
60
  'receiveScript': (_h = (_g = request.getReceiveScript()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
67
61
  'logSetting': (_k = (_j = request.getLogSetting()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
68
62
  };
69
- return axios_1.default.post(url, body, {
70
- headers: headers,
71
- }).then(function (response) {
72
- return Result.CreateNamespaceResult.fromDict(response.data);
73
- }).catch(function (error) {
74
- if (error.response) {
75
- throw JSON.parse(error.response.data.message);
76
- }
77
- else {
78
- throw [];
79
- }
63
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
64
+ return Result.CreateNamespaceResult.fromDict(data);
80
65
  });
81
66
  };
82
67
  Gs2LoginRewardRestClient.prototype.getNamespaceStatus = function (request) {
@@ -92,13 +77,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
92
77
  var params = {
93
78
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
94
79
  };
95
- return axios_1.default.get(url, {
96
- params: params,
97
- headers: headers,
98
- }).then(function (response) {
99
- return Result.GetNamespaceStatusResult.fromDict(response.data);
100
- }).catch(function (error) {
101
- throw JSON.parse(error.response.data.message);
80
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
81
+ return Result.GetNamespaceStatusResult.fromDict(data);
102
82
  });
103
83
  };
104
84
  Gs2LoginRewardRestClient.prototype.getNamespace = function (request) {
@@ -114,13 +94,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
114
94
  var params = {
115
95
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
116
96
  };
117
- return axios_1.default.get(url, {
118
- params: params,
119
- headers: headers,
120
- }).then(function (response) {
121
- return Result.GetNamespaceResult.fromDict(response.data);
122
- }).catch(function (error) {
123
- throw JSON.parse(error.response.data.message);
97
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
98
+ return Result.GetNamespaceResult.fromDict(data);
124
99
  });
125
100
  };
126
101
  Gs2LoginRewardRestClient.prototype.updateNamespace = function (request) {
@@ -140,17 +115,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
140
115
  'receiveScript': (_j = (_h = request.getReceiveScript()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
141
116
  'logSetting': (_l = (_k = request.getLogSetting()) === null || _k === void 0 ? void 0 : _k.toDict()) !== null && _l !== void 0 ? _l : null,
142
117
  };
143
- return axios_1.default.put(url, body, {
144
- headers: headers,
145
- }).then(function (response) {
146
- return Result.UpdateNamespaceResult.fromDict(response.data);
147
- }).catch(function (error) {
148
- if (error.response) {
149
- throw JSON.parse(error.response.data.message);
150
- }
151
- else {
152
- throw [];
153
- }
118
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
119
+ return Result.UpdateNamespaceResult.fromDict(data);
154
120
  });
155
121
  };
156
122
  Gs2LoginRewardRestClient.prototype.deleteNamespace = function (request) {
@@ -166,13 +132,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
166
132
  var params = {
167
133
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
168
134
  };
169
- return axios_1.default.delete(url, {
170
- params: params,
171
- headers: headers,
172
- }).then(function (response) {
173
- return Result.DeleteNamespaceResult.fromDict(response.data);
174
- }).catch(function (error) {
175
- throw JSON.parse(error.response.data.message);
135
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
136
+ return Result.DeleteNamespaceResult.fromDict(data);
176
137
  });
177
138
  };
178
139
  Gs2LoginRewardRestClient.prototype.getServiceVersion = function (request) {
@@ -187,13 +148,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
187
148
  var params = {
188
149
  'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
189
150
  };
190
- return axios_1.default.get(url, {
191
- params: params,
192
- headers: headers,
193
- }).then(function (response) {
194
- return Result.GetServiceVersionResult.fromDict(response.data);
195
- }).catch(function (error) {
196
- throw JSON.parse(error.response.data.message);
151
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
152
+ return Result.GetServiceVersionResult.fromDict(data);
197
153
  });
198
154
  };
199
155
  Gs2LoginRewardRestClient.prototype.dumpUserDataByUserId = function (request) {
@@ -212,17 +168,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
212
168
  var body = {
213
169
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
214
170
  };
215
- return axios_1.default.post(url, body, {
216
- headers: headers,
217
- }).then(function (response) {
218
- return Result.DumpUserDataByUserIdResult.fromDict(response.data);
219
- }).catch(function (error) {
220
- if (error.response) {
221
- throw JSON.parse(error.response.data.message);
222
- }
223
- else {
224
- throw [];
225
- }
171
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
172
+ return Result.DumpUserDataByUserIdResult.fromDict(data);
226
173
  });
227
174
  };
228
175
  Gs2LoginRewardRestClient.prototype.checkDumpUserDataByUserId = function (request) {
@@ -241,13 +188,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
241
188
  var params = {
242
189
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
243
190
  };
244
- return axios_1.default.get(url, {
245
- params: params,
246
- headers: headers,
247
- }).then(function (response) {
248
- return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
249
- }).catch(function (error) {
250
- throw JSON.parse(error.response.data.message);
191
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
192
+ return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
251
193
  });
252
194
  };
253
195
  Gs2LoginRewardRestClient.prototype.cleanUserDataByUserId = function (request) {
@@ -266,17 +208,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
266
208
  var body = {
267
209
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
268
210
  };
269
- return axios_1.default.post(url, body, {
270
- headers: headers,
271
- }).then(function (response) {
272
- return Result.CleanUserDataByUserIdResult.fromDict(response.data);
273
- }).catch(function (error) {
274
- if (error.response) {
275
- throw JSON.parse(error.response.data.message);
276
- }
277
- else {
278
- throw [];
279
- }
211
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
212
+ return Result.CleanUserDataByUserIdResult.fromDict(data);
280
213
  });
281
214
  };
282
215
  Gs2LoginRewardRestClient.prototype.checkCleanUserDataByUserId = function (request) {
@@ -295,13 +228,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
295
228
  var params = {
296
229
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
297
230
  };
298
- return axios_1.default.get(url, {
299
- params: params,
300
- headers: headers,
301
- }).then(function (response) {
302
- return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
303
- }).catch(function (error) {
304
- throw JSON.parse(error.response.data.message);
231
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
232
+ return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
305
233
  });
306
234
  };
307
235
  Gs2LoginRewardRestClient.prototype.prepareImportUserDataByUserId = function (request) {
@@ -320,17 +248,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
320
248
  var body = {
321
249
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
322
250
  };
323
- return axios_1.default.post(url, body, {
324
- headers: headers,
325
- }).then(function (response) {
326
- return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
327
- }).catch(function (error) {
328
- if (error.response) {
329
- throw JSON.parse(error.response.data.message);
330
- }
331
- else {
332
- throw [];
333
- }
251
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
252
+ return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
334
253
  });
335
254
  };
336
255
  Gs2LoginRewardRestClient.prototype.importUserDataByUserId = function (request) {
@@ -350,17 +269,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
350
269
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
351
270
  'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
352
271
  };
353
- return axios_1.default.post(url, body, {
354
- headers: headers,
355
- }).then(function (response) {
356
- return Result.ImportUserDataByUserIdResult.fromDict(response.data);
357
- }).catch(function (error) {
358
- if (error.response) {
359
- throw JSON.parse(error.response.data.message);
360
- }
361
- else {
362
- throw [];
363
- }
272
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
273
+ return Result.ImportUserDataByUserIdResult.fromDict(data);
364
274
  });
365
275
  };
366
276
  Gs2LoginRewardRestClient.prototype.checkImportUserDataByUserId = function (request) {
@@ -380,13 +290,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
380
290
  var params = {
381
291
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
382
292
  };
383
- return axios_1.default.get(url, {
384
- params: params,
385
- headers: headers,
386
- }).then(function (response) {
387
- return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
388
- }).catch(function (error) {
389
- throw JSON.parse(error.response.data.message);
293
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
294
+ return Result.CheckImportUserDataByUserIdResult.fromDict(data);
390
295
  });
391
296
  };
392
297
  Gs2LoginRewardRestClient.prototype.describeBonusModelMasters = function (request) {
@@ -405,13 +310,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
405
310
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
406
311
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
407
312
  };
408
- return axios_1.default.get(url, {
409
- params: params,
410
- headers: headers,
411
- }).then(function (response) {
412
- return Result.DescribeBonusModelMastersResult.fromDict(response.data);
413
- }).catch(function (error) {
414
- throw JSON.parse(error.response.data.message);
313
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
314
+ return Result.DescribeBonusModelMastersResult.fromDict(data);
415
315
  });
416
316
  };
417
317
  Gs2LoginRewardRestClient.prototype.createBonusModelMaster = function (request) {
@@ -438,17 +338,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
438
338
  'missedReceiveReliefVerifyActions': (_r = (_q = request.getMissedReceiveReliefVerifyActions()) === null || _q === void 0 ? void 0 : _q.map(function (item) { return item.toDict(); })) !== null && _r !== void 0 ? _r : null,
439
339
  'missedReceiveReliefConsumeActions': (_t = (_s = request.getMissedReceiveReliefConsumeActions()) === null || _s === void 0 ? void 0 : _s.map(function (item) { return item.toDict(); })) !== null && _t !== void 0 ? _t : null,
440
340
  };
441
- return axios_1.default.post(url, body, {
442
- headers: headers,
443
- }).then(function (response) {
444
- return Result.CreateBonusModelMasterResult.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.CreateBonusModelMasterResult.fromDict(data);
452
343
  });
453
344
  };
454
345
  Gs2LoginRewardRestClient.prototype.getBonusModelMaster = function (request) {
@@ -465,13 +356,8 @@ var Gs2LoginRewardRestClient = /** @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.GetBonusModelMasterResult.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.GetBonusModelMasterResult.fromDict(data);
475
361
  });
476
362
  };
477
363
  Gs2LoginRewardRestClient.prototype.updateBonusModelMaster = function (request) {
@@ -498,17 +384,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
498
384
  'missedReceiveReliefVerifyActions': (_s = (_r = request.getMissedReceiveReliefVerifyActions()) === null || _r === void 0 ? void 0 : _r.map(function (item) { return item.toDict(); })) !== null && _s !== void 0 ? _s : null,
499
385
  'missedReceiveReliefConsumeActions': (_u = (_t = request.getMissedReceiveReliefConsumeActions()) === null || _t === void 0 ? void 0 : _t.map(function (item) { return item.toDict(); })) !== null && _u !== void 0 ? _u : null,
500
386
  };
501
- return axios_1.default.put(url, body, {
502
- headers: headers,
503
- }).then(function (response) {
504
- return Result.UpdateBonusModelMasterResult.fromDict(response.data);
505
- }).catch(function (error) {
506
- if (error.response) {
507
- throw JSON.parse(error.response.data.message);
508
- }
509
- else {
510
- throw [];
511
- }
387
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
388
+ return Result.UpdateBonusModelMasterResult.fromDict(data);
512
389
  });
513
390
  };
514
391
  Gs2LoginRewardRestClient.prototype.deleteBonusModelMaster = function (request) {
@@ -525,13 +402,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
525
402
  var params = {
526
403
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
527
404
  };
528
- return axios_1.default.delete(url, {
529
- params: params,
530
- headers: headers,
531
- }).then(function (response) {
532
- return Result.DeleteBonusModelMasterResult.fromDict(response.data);
533
- }).catch(function (error) {
534
- throw JSON.parse(error.response.data.message);
405
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
406
+ return Result.DeleteBonusModelMasterResult.fromDict(data);
535
407
  });
536
408
  };
537
409
  Gs2LoginRewardRestClient.prototype.exportMaster = function (request) {
@@ -547,13 +419,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
547
419
  var params = {
548
420
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
549
421
  };
550
- return axios_1.default.get(url, {
551
- params: params,
552
- headers: headers,
553
- }).then(function (response) {
554
- return Result.ExportMasterResult.fromDict(response.data);
555
- }).catch(function (error) {
556
- throw JSON.parse(error.response.data.message);
422
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
423
+ return Result.ExportMasterResult.fromDict(data);
557
424
  });
558
425
  };
559
426
  Gs2LoginRewardRestClient.prototype.getCurrentBonusMaster = function (request) {
@@ -569,13 +436,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
569
436
  var params = {
570
437
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
571
438
  };
572
- return axios_1.default.get(url, {
573
- params: params,
574
- headers: headers,
575
- }).then(function (response) {
576
- return Result.GetCurrentBonusMasterResult.fromDict(response.data);
577
- }).catch(function (error) {
578
- throw JSON.parse(error.response.data.message);
439
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
440
+ return Result.GetCurrentBonusMasterResult.fromDict(data);
579
441
  });
580
442
  };
581
443
  Gs2LoginRewardRestClient.prototype.preUpdateCurrentBonusMaster = function (request) {
@@ -591,17 +453,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
591
453
  var body = {
592
454
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
593
455
  };
594
- return axios_1.default.post(url, body, {
595
- headers: headers,
596
- }).then(function (response) {
597
- return Result.PreUpdateCurrentBonusMasterResult.fromDict(response.data);
598
- }).catch(function (error) {
599
- if (error.response) {
600
- throw JSON.parse(error.response.data.message);
601
- }
602
- else {
603
- throw [];
604
- }
456
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
457
+ return Result.PreUpdateCurrentBonusMasterResult.fromDict(data);
605
458
  });
606
459
  };
607
460
  Gs2LoginRewardRestClient.prototype.updateCurrentBonusMaster = function (request) {
@@ -620,17 +473,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
620
473
  'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
621
474
  'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
622
475
  };
623
- return axios_1.default.put(url, body, {
624
- headers: headers,
625
- }).then(function (response) {
626
- return Result.UpdateCurrentBonusMasterResult.fromDict(response.data);
627
- }).catch(function (error) {
628
- if (error.response) {
629
- throw JSON.parse(error.response.data.message);
630
- }
631
- else {
632
- throw [];
633
- }
476
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
477
+ return Result.UpdateCurrentBonusMasterResult.fromDict(data);
634
478
  });
635
479
  };
636
480
  Gs2LoginRewardRestClient.prototype.updateCurrentBonusMasterFromGitHub = function (request) {
@@ -647,17 +491,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
647
491
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
648
492
  'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
649
493
  };
650
- return axios_1.default.put(url, body, {
651
- headers: headers,
652
- }).then(function (response) {
653
- return Result.UpdateCurrentBonusMasterFromGitHubResult.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
- }
494
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
495
+ return Result.UpdateCurrentBonusMasterFromGitHubResult.fromDict(data);
661
496
  });
662
497
  };
663
498
  Gs2LoginRewardRestClient.prototype.describeBonusModels = function (request) {
@@ -673,13 +508,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
673
508
  var params = {
674
509
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
675
510
  };
676
- return axios_1.default.get(url, {
677
- params: params,
678
- headers: headers,
679
- }).then(function (response) {
680
- return Result.DescribeBonusModelsResult.fromDict(response.data);
681
- }).catch(function (error) {
682
- throw JSON.parse(error.response.data.message);
511
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
512
+ return Result.DescribeBonusModelsResult.fromDict(data);
683
513
  });
684
514
  };
685
515
  Gs2LoginRewardRestClient.prototype.getBonusModel = function (request) {
@@ -696,13 +526,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
696
526
  var params = {
697
527
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
698
528
  };
699
- return axios_1.default.get(url, {
700
- params: params,
701
- headers: headers,
702
- }).then(function (response) {
703
- return Result.GetBonusModelResult.fromDict(response.data);
704
- }).catch(function (error) {
705
- throw JSON.parse(error.response.data.message);
529
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
530
+ return Result.GetBonusModelResult.fromDict(data);
706
531
  });
707
532
  };
708
533
  Gs2LoginRewardRestClient.prototype.receive = function (request) {
@@ -726,17 +551,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
726
551
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
727
552
  'config': (_k = (_j = request.getConfig()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
728
553
  };
729
- return axios_1.default.post(url, body, {
730
- headers: headers,
731
- }).then(function (response) {
732
- return Result.ReceiveResult.fromDict(response.data);
733
- }).catch(function (error) {
734
- if (error.response) {
735
- throw JSON.parse(error.response.data.message);
736
- }
737
- else {
738
- throw [];
739
- }
554
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
555
+ return Result.ReceiveResult.fromDict(data);
740
556
  });
741
557
  };
742
558
  Gs2LoginRewardRestClient.prototype.receiveByUserId = function (request) {
@@ -761,17 +577,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
761
577
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
762
578
  'config': (_m = (_l = request.getConfig()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
763
579
  };
764
- return axios_1.default.post(url, body, {
765
- headers: headers,
766
- }).then(function (response) {
767
- return Result.ReceiveByUserIdResult.fromDict(response.data);
768
- }).catch(function (error) {
769
- if (error.response) {
770
- throw JSON.parse(error.response.data.message);
771
- }
772
- else {
773
- throw [];
774
- }
580
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
581
+ return Result.ReceiveByUserIdResult.fromDict(data);
775
582
  });
776
583
  };
777
584
  Gs2LoginRewardRestClient.prototype.missedReceive = function (request) {
@@ -796,17 +603,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
796
603
  'stepNumber': (_j = request.getStepNumber()) !== null && _j !== void 0 ? _j : null,
797
604
  'config': (_l = (_k = request.getConfig()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
798
605
  };
799
- return axios_1.default.post(url, body, {
800
- headers: headers,
801
- }).then(function (response) {
802
- return Result.MissedReceiveResult.fromDict(response.data);
803
- }).catch(function (error) {
804
- if (error.response) {
805
- throw JSON.parse(error.response.data.message);
806
- }
807
- else {
808
- throw [];
809
- }
606
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
607
+ return Result.MissedReceiveResult.fromDict(data);
810
608
  });
811
609
  };
812
610
  Gs2LoginRewardRestClient.prototype.missedReceiveByUserId = function (request) {
@@ -832,17 +630,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
832
630
  'stepNumber': (_l = request.getStepNumber()) !== null && _l !== void 0 ? _l : null,
833
631
  'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
834
632
  };
835
- return axios_1.default.post(url, body, {
836
- headers: headers,
837
- }).then(function (response) {
838
- return Result.MissedReceiveByUserIdResult.fromDict(response.data);
839
- }).catch(function (error) {
840
- if (error.response) {
841
- throw JSON.parse(error.response.data.message);
842
- }
843
- else {
844
- throw [];
845
- }
633
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
634
+ return Result.MissedReceiveByUserIdResult.fromDict(data);
846
635
  });
847
636
  };
848
637
  Gs2LoginRewardRestClient.prototype.describeReceiveStatuses = function (request) {
@@ -863,13 +652,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
863
652
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
864
653
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
865
654
  };
866
- return axios_1.default.get(url, {
867
- params: params,
868
- headers: headers,
869
- }).then(function (response) {
870
- return Result.DescribeReceiveStatusesResult.fromDict(response.data);
871
- }).catch(function (error) {
872
- throw JSON.parse(error.response.data.message);
655
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
656
+ return Result.DescribeReceiveStatusesResult.fromDict(data);
873
657
  });
874
658
  };
875
659
  Gs2LoginRewardRestClient.prototype.describeReceiveStatusesByUserId = function (request) {
@@ -891,13 +675,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
891
675
  'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
892
676
  'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
893
677
  };
894
- return axios_1.default.get(url, {
895
- params: params,
896
- headers: headers,
897
- }).then(function (response) {
898
- return Result.DescribeReceiveStatusesByUserIdResult.fromDict(response.data);
899
- }).catch(function (error) {
900
- throw JSON.parse(error.response.data.message);
678
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
679
+ return Result.DescribeReceiveStatusesByUserIdResult.fromDict(data);
901
680
  });
902
681
  };
903
682
  Gs2LoginRewardRestClient.prototype.getReceiveStatus = function (request) {
@@ -917,13 +696,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
917
696
  var params = {
918
697
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
919
698
  };
920
- return axios_1.default.get(url, {
921
- params: params,
922
- headers: headers,
923
- }).then(function (response) {
924
- return Result.GetReceiveStatusResult.fromDict(response.data);
925
- }).catch(function (error) {
926
- throw JSON.parse(error.response.data.message);
699
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
700
+ return Result.GetReceiveStatusResult.fromDict(data);
927
701
  });
928
702
  };
929
703
  Gs2LoginRewardRestClient.prototype.getReceiveStatusByUserId = function (request) {
@@ -944,13 +718,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
944
718
  var params = {
945
719
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
946
720
  };
947
- return axios_1.default.get(url, {
948
- params: params,
949
- headers: headers,
950
- }).then(function (response) {
951
- return Result.GetReceiveStatusByUserIdResult.fromDict(response.data);
952
- }).catch(function (error) {
953
- throw JSON.parse(error.response.data.message);
721
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
722
+ return Result.GetReceiveStatusByUserIdResult.fromDict(data);
954
723
  });
955
724
  };
956
725
  Gs2LoginRewardRestClient.prototype.deleteReceiveStatusByUserId = function (request) {
@@ -974,17 +743,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
974
743
  var body = {
975
744
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
976
745
  };
977
- return axios_1.default.post(url, body, {
978
- headers: headers,
979
- }).then(function (response) {
980
- return Result.DeleteReceiveStatusByUserIdResult.fromDict(response.data);
981
- }).catch(function (error) {
982
- if (error.response) {
983
- throw JSON.parse(error.response.data.message);
984
- }
985
- else {
986
- throw [];
987
- }
746
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
747
+ return Result.DeleteReceiveStatusByUserIdResult.fromDict(data);
988
748
  });
989
749
  };
990
750
  Gs2LoginRewardRestClient.prototype.deleteReceiveStatusByStampSheet = function (request) {
@@ -1001,17 +761,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
1001
761
  'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
1002
762
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1003
763
  };
1004
- return axios_1.default.post(url, body, {
1005
- headers: headers,
1006
- }).then(function (response) {
1007
- return Result.DeleteReceiveStatusByStampSheetResult.fromDict(response.data);
1008
- }).catch(function (error) {
1009
- if (error.response) {
1010
- throw JSON.parse(error.response.data.message);
1011
- }
1012
- else {
1013
- throw [];
1014
- }
764
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
765
+ return Result.DeleteReceiveStatusByStampSheetResult.fromDict(data);
1015
766
  });
1016
767
  };
1017
768
  Gs2LoginRewardRestClient.prototype.markReceived = function (request) {
@@ -1035,17 +786,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
1035
786
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1036
787
  'stepNumber': (_j = request.getStepNumber()) !== null && _j !== void 0 ? _j : null,
1037
788
  };
1038
- return axios_1.default.post(url, body, {
1039
- headers: headers,
1040
- }).then(function (response) {
1041
- return Result.MarkReceivedResult.fromDict(response.data);
1042
- }).catch(function (error) {
1043
- if (error.response) {
1044
- throw JSON.parse(error.response.data.message);
1045
- }
1046
- else {
1047
- throw [];
1048
- }
789
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
790
+ return Result.MarkReceivedResult.fromDict(data);
1049
791
  });
1050
792
  };
1051
793
  Gs2LoginRewardRestClient.prototype.markReceivedByUserId = function (request) {
@@ -1070,17 +812,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
1070
812
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1071
813
  'stepNumber': (_l = request.getStepNumber()) !== null && _l !== void 0 ? _l : null,
1072
814
  };
1073
- return axios_1.default.post(url, body, {
1074
- headers: headers,
1075
- }).then(function (response) {
1076
- return Result.MarkReceivedByUserIdResult.fromDict(response.data);
1077
- }).catch(function (error) {
1078
- if (error.response) {
1079
- throw JSON.parse(error.response.data.message);
1080
- }
1081
- else {
1082
- throw [];
1083
- }
815
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
816
+ return Result.MarkReceivedByUserIdResult.fromDict(data);
1084
817
  });
1085
818
  };
1086
819
  Gs2LoginRewardRestClient.prototype.unmarkReceivedByUserId = function (request) {
@@ -1105,17 +838,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
1105
838
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1106
839
  'stepNumber': (_l = request.getStepNumber()) !== null && _l !== void 0 ? _l : null,
1107
840
  };
1108
- return axios_1.default.post(url, body, {
1109
- headers: headers,
1110
- }).then(function (response) {
1111
- return Result.UnmarkReceivedByUserIdResult.fromDict(response.data);
1112
- }).catch(function (error) {
1113
- if (error.response) {
1114
- throw JSON.parse(error.response.data.message);
1115
- }
1116
- else {
1117
- throw [];
1118
- }
841
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
842
+ return Result.UnmarkReceivedByUserIdResult.fromDict(data);
1119
843
  });
1120
844
  };
1121
845
  Gs2LoginRewardRestClient.prototype.markReceivedByStampTask = function (request) {
@@ -1132,17 +856,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
1132
856
  'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
1133
857
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1134
858
  };
1135
- return axios_1.default.post(url, body, {
1136
- headers: headers,
1137
- }).then(function (response) {
1138
- return Result.MarkReceivedByStampTaskResult.fromDict(response.data);
1139
- }).catch(function (error) {
1140
- if (error.response) {
1141
- throw JSON.parse(error.response.data.message);
1142
- }
1143
- else {
1144
- throw [];
1145
- }
859
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
860
+ return Result.MarkReceivedByStampTaskResult.fromDict(data);
1146
861
  });
1147
862
  };
1148
863
  Gs2LoginRewardRestClient.prototype.unmarkReceivedByStampSheet = function (request) {
@@ -1159,17 +874,8 @@ var Gs2LoginRewardRestClient = /** @class */ (function (_super) {
1159
874
  'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
1160
875
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1161
876
  };
1162
- return axios_1.default.post(url, body, {
1163
- headers: headers,
1164
- }).then(function (response) {
1165
- return Result.UnmarkReceivedByStampSheetResult.fromDict(response.data);
1166
- }).catch(function (error) {
1167
- if (error.response) {
1168
- throw JSON.parse(error.response.data.message);
1169
- }
1170
- else {
1171
- throw [];
1172
- }
877
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
878
+ return Result.UnmarkReceivedByStampSheetResult.fromDict(data);
1173
879
  });
1174
880
  };
1175
881
  Gs2LoginRewardRestClient.ENDPOINT_HOST = null;