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/mission/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 Gs2MissionRestClient = /** @class */ (function (_super) {
24
23
  tslib_1.__extends(Gs2MissionRestClient, _super);
25
24
  function Gs2MissionRestClient(session) {
@@ -43,13 +42,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
43
42
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
44
43
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
45
44
  };
46
- return axios_1.default.get(url, {
47
- params: params,
48
- headers: headers,
49
- }).then(function (response) {
50
- return Result.DescribeCompletesResult.fromDict(response.data);
51
- }).catch(function (error) {
52
- throw JSON.parse(error.response.data.message);
45
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
46
+ return Result.DescribeCompletesResult.fromDict(data);
53
47
  });
54
48
  };
55
49
  Gs2MissionRestClient.prototype.describeCompletesByUserId = function (request) {
@@ -71,13 +65,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
71
65
  'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
72
66
  'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
73
67
  };
74
- return axios_1.default.get(url, {
75
- params: params,
76
- headers: headers,
77
- }).then(function (response) {
78
- return Result.DescribeCompletesByUserIdResult.fromDict(response.data);
79
- }).catch(function (error) {
80
- throw JSON.parse(error.response.data.message);
68
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
69
+ return Result.DescribeCompletesByUserIdResult.fromDict(data);
81
70
  });
82
71
  };
83
72
  Gs2MissionRestClient.prototype.complete = function (request) {
@@ -102,17 +91,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
102
91
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
103
92
  'config': (_m = (_l = request.getConfig()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
104
93
  };
105
- return axios_1.default.post(url, body, {
106
- headers: headers,
107
- }).then(function (response) {
108
- return Result.CompleteResult.fromDict(response.data);
109
- }).catch(function (error) {
110
- if (error.response) {
111
- throw JSON.parse(error.response.data.message);
112
- }
113
- else {
114
- throw [];
115
- }
94
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
95
+ return Result.CompleteResult.fromDict(data);
116
96
  });
117
97
  };
118
98
  Gs2MissionRestClient.prototype.completeByUserId = function (request) {
@@ -138,17 +118,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
138
118
  'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
139
119
  'config': (_p = (_o = request.getConfig()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
140
120
  };
141
- return axios_1.default.post(url, body, {
142
- headers: headers,
143
- }).then(function (response) {
144
- return Result.CompleteByUserIdResult.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
- }
121
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
122
+ return Result.CompleteByUserIdResult.fromDict(data);
152
123
  });
153
124
  };
154
125
  Gs2MissionRestClient.prototype.batchComplete = function (request) {
@@ -173,17 +144,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
173
144
  'missionTaskNames': (_j = request.getMissionTaskNames()) !== null && _j !== void 0 ? _j : null,
174
145
  'config': (_l = (_k = request.getConfig()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
175
146
  };
176
- return axios_1.default.post(url, body, {
177
- headers: headers,
178
- }).then(function (response) {
179
- return Result.BatchCompleteResult.fromDict(response.data);
180
- }).catch(function (error) {
181
- if (error.response) {
182
- throw JSON.parse(error.response.data.message);
183
- }
184
- else {
185
- throw [];
186
- }
147
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
148
+ return Result.BatchCompleteResult.fromDict(data);
187
149
  });
188
150
  };
189
151
  Gs2MissionRestClient.prototype.batchCompleteByUserId = function (request) {
@@ -209,17 +171,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
209
171
  'missionTaskNames': (_l = request.getMissionTaskNames()) !== null && _l !== void 0 ? _l : null,
210
172
  'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
211
173
  };
212
- return axios_1.default.post(url, body, {
213
- headers: headers,
214
- }).then(function (response) {
215
- return Result.BatchCompleteByUserIdResult.fromDict(response.data);
216
- }).catch(function (error) {
217
- if (error.response) {
218
- throw JSON.parse(error.response.data.message);
219
- }
220
- else {
221
- throw [];
222
- }
174
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
175
+ return Result.BatchCompleteByUserIdResult.fromDict(data);
223
176
  });
224
177
  };
225
178
  Gs2MissionRestClient.prototype.receiveByUserId = function (request) {
@@ -244,17 +197,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
244
197
  var body = {
245
198
  'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
246
199
  };
247
- return axios_1.default.post(url, body, {
248
- headers: headers,
249
- }).then(function (response) {
250
- return Result.ReceiveByUserIdResult.fromDict(response.data);
251
- }).catch(function (error) {
252
- if (error.response) {
253
- throw JSON.parse(error.response.data.message);
254
- }
255
- else {
256
- throw [];
257
- }
200
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
201
+ return Result.ReceiveByUserIdResult.fromDict(data);
258
202
  });
259
203
  };
260
204
  Gs2MissionRestClient.prototype.batchReceiveByUserId = function (request) {
@@ -279,17 +223,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
279
223
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
280
224
  'missionTaskNames': (_l = request.getMissionTaskNames()) !== null && _l !== void 0 ? _l : null,
281
225
  };
282
- return axios_1.default.post(url, body, {
283
- headers: headers,
284
- }).then(function (response) {
285
- return Result.BatchReceiveByUserIdResult.fromDict(response.data);
286
- }).catch(function (error) {
287
- if (error.response) {
288
- throw JSON.parse(error.response.data.message);
289
- }
290
- else {
291
- throw [];
292
- }
226
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
227
+ return Result.BatchReceiveByUserIdResult.fromDict(data);
293
228
  });
294
229
  };
295
230
  Gs2MissionRestClient.prototype.revertReceiveByUserId = function (request) {
@@ -314,17 +249,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
314
249
  var body = {
315
250
  'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
316
251
  };
317
- return axios_1.default.post(url, body, {
318
- headers: headers,
319
- }).then(function (response) {
320
- return Result.RevertReceiveByUserIdResult.fromDict(response.data);
321
- }).catch(function (error) {
322
- if (error.response) {
323
- throw JSON.parse(error.response.data.message);
324
- }
325
- else {
326
- throw [];
327
- }
252
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
253
+ return Result.RevertReceiveByUserIdResult.fromDict(data);
328
254
  });
329
255
  };
330
256
  Gs2MissionRestClient.prototype.getComplete = function (request) {
@@ -344,13 +270,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
344
270
  var params = {
345
271
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
346
272
  };
347
- return axios_1.default.get(url, {
348
- params: params,
349
- headers: headers,
350
- }).then(function (response) {
351
- return Result.GetCompleteResult.fromDict(response.data);
352
- }).catch(function (error) {
353
- throw JSON.parse(error.response.data.message);
273
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
274
+ return Result.GetCompleteResult.fromDict(data);
354
275
  });
355
276
  };
356
277
  Gs2MissionRestClient.prototype.getCompleteByUserId = function (request) {
@@ -371,13 +292,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
371
292
  var params = {
372
293
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
373
294
  };
374
- return axios_1.default.get(url, {
375
- params: params,
376
- headers: headers,
377
- }).then(function (response) {
378
- return Result.GetCompleteByUserIdResult.fromDict(response.data);
379
- }).catch(function (error) {
380
- throw JSON.parse(error.response.data.message);
295
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
296
+ return Result.GetCompleteByUserIdResult.fromDict(data);
381
297
  });
382
298
  };
383
299
  Gs2MissionRestClient.prototype.evaluateComplete = function (request) {
@@ -400,17 +316,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
400
316
  var body = {
401
317
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
402
318
  };
403
- return axios_1.default.post(url, body, {
404
- headers: headers,
405
- }).then(function (response) {
406
- return Result.EvaluateCompleteResult.fromDict(response.data);
407
- }).catch(function (error) {
408
- if (error.response) {
409
- throw JSON.parse(error.response.data.message);
410
- }
411
- else {
412
- throw [];
413
- }
319
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
320
+ return Result.EvaluateCompleteResult.fromDict(data);
414
321
  });
415
322
  };
416
323
  Gs2MissionRestClient.prototype.evaluateCompleteByUserId = function (request) {
@@ -434,17 +341,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
434
341
  var body = {
435
342
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
436
343
  };
437
- return axios_1.default.post(url, body, {
438
- headers: headers,
439
- }).then(function (response) {
440
- return Result.EvaluateCompleteByUserIdResult.fromDict(response.data);
441
- }).catch(function (error) {
442
- if (error.response) {
443
- throw JSON.parse(error.response.data.message);
444
- }
445
- else {
446
- throw [];
447
- }
344
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
345
+ return Result.EvaluateCompleteByUserIdResult.fromDict(data);
448
346
  });
449
347
  };
450
348
  Gs2MissionRestClient.prototype.deleteCompleteByUserId = function (request) {
@@ -468,13 +366,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
468
366
  var params = {
469
367
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
470
368
  };
471
- return axios_1.default.delete(url, {
472
- params: params,
473
- headers: headers,
474
- }).then(function (response) {
475
- return Result.DeleteCompleteByUserIdResult.fromDict(response.data);
476
- }).catch(function (error) {
477
- throw JSON.parse(error.response.data.message);
369
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
370
+ return Result.DeleteCompleteByUserIdResult.fromDict(data);
478
371
  });
479
372
  };
480
373
  Gs2MissionRestClient.prototype.verifyComplete = function (request) {
@@ -500,17 +393,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
500
393
  var body = {
501
394
  'contextStack': (_p = request.getContextStack()) !== null && _p !== void 0 ? _p : null,
502
395
  };
503
- return axios_1.default.post(url, body, {
504
- headers: headers,
505
- }).then(function (response) {
506
- return Result.VerifyCompleteResult.fromDict(response.data);
507
- }).catch(function (error) {
508
- if (error.response) {
509
- throw JSON.parse(error.response.data.message);
510
- }
511
- else {
512
- throw [];
513
- }
396
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
397
+ return Result.VerifyCompleteResult.fromDict(data);
514
398
  });
515
399
  };
516
400
  Gs2MissionRestClient.prototype.verifyCompleteByUserId = function (request) {
@@ -537,17 +421,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
537
421
  var body = {
538
422
  'contextStack': (_r = request.getContextStack()) !== null && _r !== void 0 ? _r : null,
539
423
  };
540
- return axios_1.default.post(url, body, {
541
- headers: headers,
542
- }).then(function (response) {
543
- return Result.VerifyCompleteByUserIdResult.fromDict(response.data);
544
- }).catch(function (error) {
545
- if (error.response) {
546
- throw JSON.parse(error.response.data.message);
547
- }
548
- else {
549
- throw [];
550
- }
424
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
425
+ return Result.VerifyCompleteByUserIdResult.fromDict(data);
551
426
  });
552
427
  };
553
428
  Gs2MissionRestClient.prototype.receiveByStampTask = function (request) {
@@ -564,17 +439,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
564
439
  'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
565
440
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
566
441
  };
567
- return axios_1.default.post(url, body, {
568
- headers: headers,
569
- }).then(function (response) {
570
- return Result.ReceiveByStampTaskResult.fromDict(response.data);
571
- }).catch(function (error) {
572
- if (error.response) {
573
- throw JSON.parse(error.response.data.message);
574
- }
575
- else {
576
- throw [];
577
- }
442
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
443
+ return Result.ReceiveByStampTaskResult.fromDict(data);
578
444
  });
579
445
  };
580
446
  Gs2MissionRestClient.prototype.batchReceiveByStampTask = function (request) {
@@ -591,17 +457,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
591
457
  'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
592
458
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
593
459
  };
594
- return axios_1.default.post(url, body, {
595
- headers: headers,
596
- }).then(function (response) {
597
- return Result.BatchReceiveByStampTaskResult.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
- }
460
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
461
+ return Result.BatchReceiveByStampTaskResult.fromDict(data);
605
462
  });
606
463
  };
607
464
  Gs2MissionRestClient.prototype.revertReceiveByStampSheet = function (request) {
@@ -618,17 +475,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
618
475
  'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
619
476
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
620
477
  };
621
- return axios_1.default.post(url, body, {
622
- headers: headers,
623
- }).then(function (response) {
624
- return Result.RevertReceiveByStampSheetResult.fromDict(response.data);
625
- }).catch(function (error) {
626
- if (error.response) {
627
- throw JSON.parse(error.response.data.message);
628
- }
629
- else {
630
- throw [];
631
- }
478
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
479
+ return Result.RevertReceiveByStampSheetResult.fromDict(data);
632
480
  });
633
481
  };
634
482
  Gs2MissionRestClient.prototype.verifyCompleteByStampTask = function (request) {
@@ -645,17 +493,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
645
493
  'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
646
494
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
647
495
  };
648
- return axios_1.default.post(url, body, {
649
- headers: headers,
650
- }).then(function (response) {
651
- return Result.VerifyCompleteByStampTaskResult.fromDict(response.data);
652
- }).catch(function (error) {
653
- if (error.response) {
654
- throw JSON.parse(error.response.data.message);
655
- }
656
- else {
657
- throw [];
658
- }
496
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
497
+ return Result.VerifyCompleteByStampTaskResult.fromDict(data);
659
498
  });
660
499
  };
661
500
  Gs2MissionRestClient.prototype.describeCounterModelMasters = function (request) {
@@ -674,13 +513,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
674
513
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
675
514
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
676
515
  };
677
- return axios_1.default.get(url, {
678
- params: params,
679
- headers: headers,
680
- }).then(function (response) {
681
- return Result.DescribeCounterModelMastersResult.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.DescribeCounterModelMastersResult.fromDict(data);
684
518
  });
685
519
  };
686
520
  Gs2MissionRestClient.prototype.createCounterModelMaster = function (request) {
@@ -701,17 +535,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
701
535
  'scopes': (_j = (_h = request.getScopes()) === null || _h === void 0 ? void 0 : _h.map(function (item) { return item.toDict(); })) !== null && _j !== void 0 ? _j : null,
702
536
  'challengePeriodEventId': (_k = request.getChallengePeriodEventId()) !== null && _k !== void 0 ? _k : null,
703
537
  };
704
- return axios_1.default.post(url, body, {
705
- headers: headers,
706
- }).then(function (response) {
707
- return Result.CreateCounterModelMasterResult.fromDict(response.data);
708
- }).catch(function (error) {
709
- if (error.response) {
710
- throw JSON.parse(error.response.data.message);
711
- }
712
- else {
713
- throw [];
714
- }
538
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
539
+ return Result.CreateCounterModelMasterResult.fromDict(data);
715
540
  });
716
541
  };
717
542
  Gs2MissionRestClient.prototype.getCounterModelMaster = function (request) {
@@ -728,13 +553,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
728
553
  var params = {
729
554
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
730
555
  };
731
- return axios_1.default.get(url, {
732
- params: params,
733
- headers: headers,
734
- }).then(function (response) {
735
- return Result.GetCounterModelMasterResult.fromDict(response.data);
736
- }).catch(function (error) {
737
- throw JSON.parse(error.response.data.message);
556
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
557
+ return Result.GetCounterModelMasterResult.fromDict(data);
738
558
  });
739
559
  };
740
560
  Gs2MissionRestClient.prototype.updateCounterModelMaster = function (request) {
@@ -755,17 +575,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
755
575
  'scopes': (_k = (_j = request.getScopes()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
756
576
  'challengePeriodEventId': (_l = request.getChallengePeriodEventId()) !== null && _l !== void 0 ? _l : null,
757
577
  };
758
- return axios_1.default.put(url, body, {
759
- headers: headers,
760
- }).then(function (response) {
761
- return Result.UpdateCounterModelMasterResult.fromDict(response.data);
762
- }).catch(function (error) {
763
- if (error.response) {
764
- throw JSON.parse(error.response.data.message);
765
- }
766
- else {
767
- throw [];
768
- }
578
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
579
+ return Result.UpdateCounterModelMasterResult.fromDict(data);
769
580
  });
770
581
  };
771
582
  Gs2MissionRestClient.prototype.deleteCounterModelMaster = function (request) {
@@ -782,13 +593,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
782
593
  var params = {
783
594
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
784
595
  };
785
- return axios_1.default.delete(url, {
786
- params: params,
787
- headers: headers,
788
- }).then(function (response) {
789
- return Result.DeleteCounterModelMasterResult.fromDict(response.data);
790
- }).catch(function (error) {
791
- throw JSON.parse(error.response.data.message);
596
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
597
+ return Result.DeleteCounterModelMasterResult.fromDict(data);
792
598
  });
793
599
  };
794
600
  Gs2MissionRestClient.prototype.describeMissionGroupModelMasters = function (request) {
@@ -807,13 +613,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
807
613
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
808
614
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
809
615
  };
810
- return axios_1.default.get(url, {
811
- params: params,
812
- headers: headers,
813
- }).then(function (response) {
814
- return Result.DescribeMissionGroupModelMastersResult.fromDict(response.data);
815
- }).catch(function (error) {
816
- throw JSON.parse(error.response.data.message);
616
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
617
+ return Result.DescribeMissionGroupModelMastersResult.fromDict(data);
817
618
  });
818
619
  };
819
620
  Gs2MissionRestClient.prototype.createMissionGroupModelMaster = function (request) {
@@ -839,17 +640,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
839
640
  'days': (_o = request.getDays()) !== null && _o !== void 0 ? _o : null,
840
641
  'completeNotificationNamespaceId': (_p = request.getCompleteNotificationNamespaceId()) !== null && _p !== void 0 ? _p : null,
841
642
  };
842
- return axios_1.default.post(url, body, {
843
- headers: headers,
844
- }).then(function (response) {
845
- return Result.CreateMissionGroupModelMasterResult.fromDict(response.data);
846
- }).catch(function (error) {
847
- if (error.response) {
848
- throw JSON.parse(error.response.data.message);
849
- }
850
- else {
851
- throw [];
852
- }
643
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
644
+ return Result.CreateMissionGroupModelMasterResult.fromDict(data);
853
645
  });
854
646
  };
855
647
  Gs2MissionRestClient.prototype.getMissionGroupModelMaster = function (request) {
@@ -866,13 +658,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
866
658
  var params = {
867
659
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
868
660
  };
869
- return axios_1.default.get(url, {
870
- params: params,
871
- headers: headers,
872
- }).then(function (response) {
873
- return Result.GetMissionGroupModelMasterResult.fromDict(response.data);
874
- }).catch(function (error) {
875
- throw JSON.parse(error.response.data.message);
661
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
662
+ return Result.GetMissionGroupModelMasterResult.fromDict(data);
876
663
  });
877
664
  };
878
665
  Gs2MissionRestClient.prototype.updateMissionGroupModelMaster = function (request) {
@@ -898,17 +685,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
898
685
  'days': (_p = request.getDays()) !== null && _p !== void 0 ? _p : null,
899
686
  'completeNotificationNamespaceId': (_q = request.getCompleteNotificationNamespaceId()) !== null && _q !== void 0 ? _q : null,
900
687
  };
901
- return axios_1.default.put(url, body, {
902
- headers: headers,
903
- }).then(function (response) {
904
- return Result.UpdateMissionGroupModelMasterResult.fromDict(response.data);
905
- }).catch(function (error) {
906
- if (error.response) {
907
- throw JSON.parse(error.response.data.message);
908
- }
909
- else {
910
- throw [];
911
- }
688
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
689
+ return Result.UpdateMissionGroupModelMasterResult.fromDict(data);
912
690
  });
913
691
  };
914
692
  Gs2MissionRestClient.prototype.deleteMissionGroupModelMaster = function (request) {
@@ -925,13 +703,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
925
703
  var params = {
926
704
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
927
705
  };
928
- return axios_1.default.delete(url, {
929
- params: params,
930
- headers: headers,
931
- }).then(function (response) {
932
- return Result.DeleteMissionGroupModelMasterResult.fromDict(response.data);
933
- }).catch(function (error) {
934
- throw JSON.parse(error.response.data.message);
706
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
707
+ return Result.DeleteMissionGroupModelMasterResult.fromDict(data);
935
708
  });
936
709
  };
937
710
  Gs2MissionRestClient.prototype.describeNamespaces = function (request) {
@@ -949,13 +722,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
949
722
  'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
950
723
  'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
951
724
  };
952
- return axios_1.default.get(url, {
953
- params: params,
954
- headers: headers,
955
- }).then(function (response) {
956
- return Result.DescribeNamespacesResult.fromDict(response.data);
957
- }).catch(function (error) {
958
- throw JSON.parse(error.response.data.message);
725
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
726
+ return Result.DescribeNamespacesResult.fromDict(data);
959
727
  });
960
728
  };
961
729
  Gs2MissionRestClient.prototype.createNamespace = function (request) {
@@ -980,17 +748,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
980
748
  'queueNamespaceId': (_s = request.getQueueNamespaceId()) !== null && _s !== void 0 ? _s : null,
981
749
  'keyId': (_t = request.getKeyId()) !== null && _t !== void 0 ? _t : null,
982
750
  };
983
- return axios_1.default.post(url, body, {
984
- headers: headers,
985
- }).then(function (response) {
986
- return Result.CreateNamespaceResult.fromDict(response.data);
987
- }).catch(function (error) {
988
- if (error.response) {
989
- throw JSON.parse(error.response.data.message);
990
- }
991
- else {
992
- throw [];
993
- }
751
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
752
+ return Result.CreateNamespaceResult.fromDict(data);
994
753
  });
995
754
  };
996
755
  Gs2MissionRestClient.prototype.getNamespaceStatus = function (request) {
@@ -1006,13 +765,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1006
765
  var params = {
1007
766
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1008
767
  };
1009
- return axios_1.default.get(url, {
1010
- params: params,
1011
- headers: headers,
1012
- }).then(function (response) {
1013
- return Result.GetNamespaceStatusResult.fromDict(response.data);
1014
- }).catch(function (error) {
1015
- throw JSON.parse(error.response.data.message);
768
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
769
+ return Result.GetNamespaceStatusResult.fromDict(data);
1016
770
  });
1017
771
  };
1018
772
  Gs2MissionRestClient.prototype.getNamespace = function (request) {
@@ -1028,13 +782,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1028
782
  var params = {
1029
783
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1030
784
  };
1031
- return axios_1.default.get(url, {
1032
- params: params,
1033
- headers: headers,
1034
- }).then(function (response) {
1035
- return Result.GetNamespaceResult.fromDict(response.data);
1036
- }).catch(function (error) {
1037
- throw JSON.parse(error.response.data.message);
785
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
786
+ return Result.GetNamespaceResult.fromDict(data);
1038
787
  });
1039
788
  };
1040
789
  Gs2MissionRestClient.prototype.updateNamespace = function (request) {
@@ -1059,17 +808,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1059
808
  'queueNamespaceId': (_t = request.getQueueNamespaceId()) !== null && _t !== void 0 ? _t : null,
1060
809
  'keyId': (_u = request.getKeyId()) !== null && _u !== void 0 ? _u : null,
1061
810
  };
1062
- return axios_1.default.put(url, body, {
1063
- headers: headers,
1064
- }).then(function (response) {
1065
- return Result.UpdateNamespaceResult.fromDict(response.data);
1066
- }).catch(function (error) {
1067
- if (error.response) {
1068
- throw JSON.parse(error.response.data.message);
1069
- }
1070
- else {
1071
- throw [];
1072
- }
811
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
812
+ return Result.UpdateNamespaceResult.fromDict(data);
1073
813
  });
1074
814
  };
1075
815
  Gs2MissionRestClient.prototype.deleteNamespace = function (request) {
@@ -1085,13 +825,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1085
825
  var params = {
1086
826
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1087
827
  };
1088
- return axios_1.default.delete(url, {
1089
- params: params,
1090
- headers: headers,
1091
- }).then(function (response) {
1092
- return Result.DeleteNamespaceResult.fromDict(response.data);
1093
- }).catch(function (error) {
1094
- throw JSON.parse(error.response.data.message);
828
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
829
+ return Result.DeleteNamespaceResult.fromDict(data);
1095
830
  });
1096
831
  };
1097
832
  Gs2MissionRestClient.prototype.getServiceVersion = function (request) {
@@ -1106,13 +841,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1106
841
  var params = {
1107
842
  'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
1108
843
  };
1109
- return axios_1.default.get(url, {
1110
- params: params,
1111
- headers: headers,
1112
- }).then(function (response) {
1113
- return Result.GetServiceVersionResult.fromDict(response.data);
1114
- }).catch(function (error) {
1115
- throw JSON.parse(error.response.data.message);
844
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
845
+ return Result.GetServiceVersionResult.fromDict(data);
1116
846
  });
1117
847
  };
1118
848
  Gs2MissionRestClient.prototype.dumpUserDataByUserId = function (request) {
@@ -1131,17 +861,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1131
861
  var body = {
1132
862
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
1133
863
  };
1134
- return axios_1.default.post(url, body, {
1135
- headers: headers,
1136
- }).then(function (response) {
1137
- return Result.DumpUserDataByUserIdResult.fromDict(response.data);
1138
- }).catch(function (error) {
1139
- if (error.response) {
1140
- throw JSON.parse(error.response.data.message);
1141
- }
1142
- else {
1143
- throw [];
1144
- }
864
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
865
+ return Result.DumpUserDataByUserIdResult.fromDict(data);
1145
866
  });
1146
867
  };
1147
868
  Gs2MissionRestClient.prototype.checkDumpUserDataByUserId = function (request) {
@@ -1160,13 +881,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1160
881
  var params = {
1161
882
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
1162
883
  };
1163
- return axios_1.default.get(url, {
1164
- params: params,
1165
- headers: headers,
1166
- }).then(function (response) {
1167
- return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
1168
- }).catch(function (error) {
1169
- throw JSON.parse(error.response.data.message);
884
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
885
+ return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
1170
886
  });
1171
887
  };
1172
888
  Gs2MissionRestClient.prototype.cleanUserDataByUserId = function (request) {
@@ -1185,17 +901,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1185
901
  var body = {
1186
902
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
1187
903
  };
1188
- return axios_1.default.post(url, body, {
1189
- headers: headers,
1190
- }).then(function (response) {
1191
- return Result.CleanUserDataByUserIdResult.fromDict(response.data);
1192
- }).catch(function (error) {
1193
- if (error.response) {
1194
- throw JSON.parse(error.response.data.message);
1195
- }
1196
- else {
1197
- throw [];
1198
- }
904
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
905
+ return Result.CleanUserDataByUserIdResult.fromDict(data);
1199
906
  });
1200
907
  };
1201
908
  Gs2MissionRestClient.prototype.checkCleanUserDataByUserId = function (request) {
@@ -1214,13 +921,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1214
921
  var params = {
1215
922
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
1216
923
  };
1217
- return axios_1.default.get(url, {
1218
- params: params,
1219
- headers: headers,
1220
- }).then(function (response) {
1221
- return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
1222
- }).catch(function (error) {
1223
- throw JSON.parse(error.response.data.message);
924
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
925
+ return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
1224
926
  });
1225
927
  };
1226
928
  Gs2MissionRestClient.prototype.prepareImportUserDataByUserId = function (request) {
@@ -1239,17 +941,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1239
941
  var body = {
1240
942
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
1241
943
  };
1242
- return axios_1.default.post(url, body, {
1243
- headers: headers,
1244
- }).then(function (response) {
1245
- return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
1246
- }).catch(function (error) {
1247
- if (error.response) {
1248
- throw JSON.parse(error.response.data.message);
1249
- }
1250
- else {
1251
- throw [];
1252
- }
944
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
945
+ return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
1253
946
  });
1254
947
  };
1255
948
  Gs2MissionRestClient.prototype.importUserDataByUserId = function (request) {
@@ -1269,17 +962,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1269
962
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
1270
963
  'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
1271
964
  };
1272
- return axios_1.default.post(url, body, {
1273
- headers: headers,
1274
- }).then(function (response) {
1275
- return Result.ImportUserDataByUserIdResult.fromDict(response.data);
1276
- }).catch(function (error) {
1277
- if (error.response) {
1278
- throw JSON.parse(error.response.data.message);
1279
- }
1280
- else {
1281
- throw [];
1282
- }
965
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
966
+ return Result.ImportUserDataByUserIdResult.fromDict(data);
1283
967
  });
1284
968
  };
1285
969
  Gs2MissionRestClient.prototype.checkImportUserDataByUserId = function (request) {
@@ -1299,13 +983,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1299
983
  var params = {
1300
984
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
1301
985
  };
1302
- return axios_1.default.get(url, {
1303
- params: params,
1304
- headers: headers,
1305
- }).then(function (response) {
1306
- return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
1307
- }).catch(function (error) {
1308
- throw JSON.parse(error.response.data.message);
986
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
987
+ return Result.CheckImportUserDataByUserIdResult.fromDict(data);
1309
988
  });
1310
989
  };
1311
990
  Gs2MissionRestClient.prototype.describeCounters = function (request) {
@@ -1326,13 +1005,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1326
1005
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
1327
1006
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
1328
1007
  };
1329
- return axios_1.default.get(url, {
1330
- params: params,
1331
- headers: headers,
1332
- }).then(function (response) {
1333
- return Result.DescribeCountersResult.fromDict(response.data);
1334
- }).catch(function (error) {
1335
- throw JSON.parse(error.response.data.message);
1008
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1009
+ return Result.DescribeCountersResult.fromDict(data);
1336
1010
  });
1337
1011
  };
1338
1012
  Gs2MissionRestClient.prototype.describeCountersByUserId = function (request) {
@@ -1354,13 +1028,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1354
1028
  'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
1355
1029
  'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
1356
1030
  };
1357
- return axios_1.default.get(url, {
1358
- params: params,
1359
- headers: headers,
1360
- }).then(function (response) {
1361
- return Result.DescribeCountersByUserIdResult.fromDict(response.data);
1362
- }).catch(function (error) {
1363
- throw JSON.parse(error.response.data.message);
1031
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1032
+ return Result.DescribeCountersByUserIdResult.fromDict(data);
1364
1033
  });
1365
1034
  };
1366
1035
  Gs2MissionRestClient.prototype.increaseCounterByUserId = function (request) {
@@ -1385,17 +1054,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1385
1054
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1386
1055
  'value': (_l = request.getValue()) !== null && _l !== void 0 ? _l : null,
1387
1056
  };
1388
- return axios_1.default.post(url, body, {
1389
- headers: headers,
1390
- }).then(function (response) {
1391
- return Result.IncreaseCounterByUserIdResult.fromDict(response.data);
1392
- }).catch(function (error) {
1393
- if (error.response) {
1394
- throw JSON.parse(error.response.data.message);
1395
- }
1396
- else {
1397
- throw [];
1398
- }
1057
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1058
+ return Result.IncreaseCounterByUserIdResult.fromDict(data);
1399
1059
  });
1400
1060
  };
1401
1061
  Gs2MissionRestClient.prototype.setCounterByUserId = function (request) {
@@ -1420,17 +1080,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1420
1080
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1421
1081
  'values': (_m = (_l = request.getValues()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
1422
1082
  };
1423
- return axios_1.default.put(url, body, {
1424
- headers: headers,
1425
- }).then(function (response) {
1426
- return Result.SetCounterByUserIdResult.fromDict(response.data);
1427
- }).catch(function (error) {
1428
- if (error.response) {
1429
- throw JSON.parse(error.response.data.message);
1430
- }
1431
- else {
1432
- throw [];
1433
- }
1083
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1084
+ return Result.SetCounterByUserIdResult.fromDict(data);
1434
1085
  });
1435
1086
  };
1436
1087
  Gs2MissionRestClient.prototype.decreaseCounter = function (request) {
@@ -1454,17 +1105,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1454
1105
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1455
1106
  'value': (_j = request.getValue()) !== null && _j !== void 0 ? _j : null,
1456
1107
  };
1457
- return axios_1.default.post(url, body, {
1458
- headers: headers,
1459
- }).then(function (response) {
1460
- return Result.DecreaseCounterResult.fromDict(response.data);
1461
- }).catch(function (error) {
1462
- if (error.response) {
1463
- throw JSON.parse(error.response.data.message);
1464
- }
1465
- else {
1466
- throw [];
1467
- }
1108
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1109
+ return Result.DecreaseCounterResult.fromDict(data);
1468
1110
  });
1469
1111
  };
1470
1112
  Gs2MissionRestClient.prototype.decreaseCounterByUserId = function (request) {
@@ -1489,17 +1131,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1489
1131
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1490
1132
  'value': (_l = request.getValue()) !== null && _l !== void 0 ? _l : null,
1491
1133
  };
1492
- return axios_1.default.post(url, body, {
1493
- headers: headers,
1494
- }).then(function (response) {
1495
- return Result.DecreaseCounterByUserIdResult.fromDict(response.data);
1496
- }).catch(function (error) {
1497
- if (error.response) {
1498
- throw JSON.parse(error.response.data.message);
1499
- }
1500
- else {
1501
- throw [];
1502
- }
1134
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1135
+ return Result.DecreaseCounterByUserIdResult.fromDict(data);
1503
1136
  });
1504
1137
  };
1505
1138
  Gs2MissionRestClient.prototype.getCounter = function (request) {
@@ -1519,13 +1152,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1519
1152
  var params = {
1520
1153
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
1521
1154
  };
1522
- return axios_1.default.get(url, {
1523
- params: params,
1524
- headers: headers,
1525
- }).then(function (response) {
1526
- return Result.GetCounterResult.fromDict(response.data);
1527
- }).catch(function (error) {
1528
- throw JSON.parse(error.response.data.message);
1155
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1156
+ return Result.GetCounterResult.fromDict(data);
1529
1157
  });
1530
1158
  };
1531
1159
  Gs2MissionRestClient.prototype.getCounterByUserId = function (request) {
@@ -1546,13 +1174,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1546
1174
  var params = {
1547
1175
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
1548
1176
  };
1549
- return axios_1.default.get(url, {
1550
- params: params,
1551
- headers: headers,
1552
- }).then(function (response) {
1553
- return Result.GetCounterByUserIdResult.fromDict(response.data);
1554
- }).catch(function (error) {
1555
- throw JSON.parse(error.response.data.message);
1177
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1178
+ return Result.GetCounterByUserIdResult.fromDict(data);
1556
1179
  });
1557
1180
  };
1558
1181
  Gs2MissionRestClient.prototype.verifyCounterValue = function (request) {
@@ -1581,17 +1204,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1581
1204
  'value': (_p = request.getValue()) !== null && _p !== void 0 ? _p : null,
1582
1205
  'multiplyValueSpecifyingQuantity': (_q = request.getMultiplyValueSpecifyingQuantity()) !== null && _q !== void 0 ? _q : null,
1583
1206
  };
1584
- return axios_1.default.post(url, body, {
1585
- headers: headers,
1586
- }).then(function (response) {
1587
- return Result.VerifyCounterValueResult.fromDict(response.data);
1588
- }).catch(function (error) {
1589
- if (error.response) {
1590
- throw JSON.parse(error.response.data.message);
1591
- }
1592
- else {
1593
- throw [];
1594
- }
1207
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1208
+ return Result.VerifyCounterValueResult.fromDict(data);
1595
1209
  });
1596
1210
  };
1597
1211
  Gs2MissionRestClient.prototype.verifyCounterValueByUserId = function (request) {
@@ -1621,17 +1235,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1621
1235
  'value': (_r = request.getValue()) !== null && _r !== void 0 ? _r : null,
1622
1236
  'multiplyValueSpecifyingQuantity': (_s = request.getMultiplyValueSpecifyingQuantity()) !== null && _s !== void 0 ? _s : null,
1623
1237
  };
1624
- return axios_1.default.post(url, body, {
1625
- headers: headers,
1626
- }).then(function (response) {
1627
- return Result.VerifyCounterValueByUserIdResult.fromDict(response.data);
1628
- }).catch(function (error) {
1629
- if (error.response) {
1630
- throw JSON.parse(error.response.data.message);
1631
- }
1632
- else {
1633
- throw [];
1634
- }
1238
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1239
+ return Result.VerifyCounterValueByUserIdResult.fromDict(data);
1635
1240
  });
1636
1241
  };
1637
1242
  Gs2MissionRestClient.prototype.resetCounter = function (request) {
@@ -1655,17 +1260,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1655
1260
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1656
1261
  'scopes': (_k = (_j = request.getScopes()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
1657
1262
  };
1658
- return axios_1.default.post(url, body, {
1659
- headers: headers,
1660
- }).then(function (response) {
1661
- return Result.ResetCounterResult.fromDict(response.data);
1662
- }).catch(function (error) {
1663
- if (error.response) {
1664
- throw JSON.parse(error.response.data.message);
1665
- }
1666
- else {
1667
- throw [];
1668
- }
1263
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1264
+ return Result.ResetCounterResult.fromDict(data);
1669
1265
  });
1670
1266
  };
1671
1267
  Gs2MissionRestClient.prototype.resetCounterByUserId = function (request) {
@@ -1690,17 +1286,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1690
1286
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1691
1287
  'scopes': (_m = (_l = request.getScopes()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
1692
1288
  };
1693
- return axios_1.default.post(url, body, {
1694
- headers: headers,
1695
- }).then(function (response) {
1696
- return Result.ResetCounterByUserIdResult.fromDict(response.data);
1697
- }).catch(function (error) {
1698
- if (error.response) {
1699
- throw JSON.parse(error.response.data.message);
1700
- }
1701
- else {
1702
- throw [];
1703
- }
1289
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1290
+ return Result.ResetCounterByUserIdResult.fromDict(data);
1704
1291
  });
1705
1292
  };
1706
1293
  Gs2MissionRestClient.prototype.deleteCounter = function (request) {
@@ -1723,13 +1310,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1723
1310
  var params = {
1724
1311
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1725
1312
  };
1726
- return axios_1.default.delete(url, {
1727
- params: params,
1728
- headers: headers,
1729
- }).then(function (response) {
1730
- return Result.DeleteCounterResult.fromDict(response.data);
1731
- }).catch(function (error) {
1732
- throw JSON.parse(error.response.data.message);
1313
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
1314
+ return Result.DeleteCounterResult.fromDict(data);
1733
1315
  });
1734
1316
  };
1735
1317
  Gs2MissionRestClient.prototype.deleteCounterByUserId = function (request) {
@@ -1753,13 +1335,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1753
1335
  var params = {
1754
1336
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1755
1337
  };
1756
- return axios_1.default.delete(url, {
1757
- params: params,
1758
- headers: headers,
1759
- }).then(function (response) {
1760
- return Result.DeleteCounterByUserIdResult.fromDict(response.data);
1761
- }).catch(function (error) {
1762
- throw JSON.parse(error.response.data.message);
1338
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
1339
+ return Result.DeleteCounterByUserIdResult.fromDict(data);
1763
1340
  });
1764
1341
  };
1765
1342
  Gs2MissionRestClient.prototype.increaseByStampSheet = function (request) {
@@ -1776,17 +1353,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1776
1353
  'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
1777
1354
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1778
1355
  };
1779
- return axios_1.default.post(url, body, {
1780
- headers: headers,
1781
- }).then(function (response) {
1782
- return Result.IncreaseByStampSheetResult.fromDict(response.data);
1783
- }).catch(function (error) {
1784
- if (error.response) {
1785
- throw JSON.parse(error.response.data.message);
1786
- }
1787
- else {
1788
- throw [];
1789
- }
1356
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1357
+ return Result.IncreaseByStampSheetResult.fromDict(data);
1790
1358
  });
1791
1359
  };
1792
1360
  Gs2MissionRestClient.prototype.setByStampSheet = function (request) {
@@ -1803,17 +1371,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1803
1371
  'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
1804
1372
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1805
1373
  };
1806
- return axios_1.default.post(url, body, {
1807
- headers: headers,
1808
- }).then(function (response) {
1809
- return Result.SetByStampSheetResult.fromDict(response.data);
1810
- }).catch(function (error) {
1811
- if (error.response) {
1812
- throw JSON.parse(error.response.data.message);
1813
- }
1814
- else {
1815
- throw [];
1816
- }
1374
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1375
+ return Result.SetByStampSheetResult.fromDict(data);
1817
1376
  });
1818
1377
  };
1819
1378
  Gs2MissionRestClient.prototype.decreaseByStampTask = function (request) {
@@ -1830,17 +1389,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1830
1389
  'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
1831
1390
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1832
1391
  };
1833
- return axios_1.default.post(url, body, {
1834
- headers: headers,
1835
- }).then(function (response) {
1836
- return Result.DecreaseByStampTaskResult.fromDict(response.data);
1837
- }).catch(function (error) {
1838
- if (error.response) {
1839
- throw JSON.parse(error.response.data.message);
1840
- }
1841
- else {
1842
- throw [];
1843
- }
1392
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1393
+ return Result.DecreaseByStampTaskResult.fromDict(data);
1844
1394
  });
1845
1395
  };
1846
1396
  Gs2MissionRestClient.prototype.resetByStampTask = function (request) {
@@ -1857,17 +1407,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1857
1407
  'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
1858
1408
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1859
1409
  };
1860
- return axios_1.default.post(url, body, {
1861
- headers: headers,
1862
- }).then(function (response) {
1863
- return Result.ResetByStampTaskResult.fromDict(response.data);
1864
- }).catch(function (error) {
1865
- if (error.response) {
1866
- throw JSON.parse(error.response.data.message);
1867
- }
1868
- else {
1869
- throw [];
1870
- }
1410
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1411
+ return Result.ResetByStampTaskResult.fromDict(data);
1871
1412
  });
1872
1413
  };
1873
1414
  Gs2MissionRestClient.prototype.verifyCounterValueByStampTask = function (request) {
@@ -1884,17 +1425,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1884
1425
  'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
1885
1426
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1886
1427
  };
1887
- return axios_1.default.post(url, body, {
1888
- headers: headers,
1889
- }).then(function (response) {
1890
- return Result.VerifyCounterValueByStampTaskResult.fromDict(response.data);
1891
- }).catch(function (error) {
1892
- if (error.response) {
1893
- throw JSON.parse(error.response.data.message);
1894
- }
1895
- else {
1896
- throw [];
1897
- }
1428
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1429
+ return Result.VerifyCounterValueByStampTaskResult.fromDict(data);
1898
1430
  });
1899
1431
  };
1900
1432
  Gs2MissionRestClient.prototype.exportMaster = function (request) {
@@ -1910,13 +1442,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1910
1442
  var params = {
1911
1443
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1912
1444
  };
1913
- return axios_1.default.get(url, {
1914
- params: params,
1915
- headers: headers,
1916
- }).then(function (response) {
1917
- return Result.ExportMasterResult.fromDict(response.data);
1918
- }).catch(function (error) {
1919
- throw JSON.parse(error.response.data.message);
1445
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1446
+ return Result.ExportMasterResult.fromDict(data);
1920
1447
  });
1921
1448
  };
1922
1449
  Gs2MissionRestClient.prototype.getCurrentMissionMaster = function (request) {
@@ -1932,13 +1459,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1932
1459
  var params = {
1933
1460
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1934
1461
  };
1935
- return axios_1.default.get(url, {
1936
- params: params,
1937
- headers: headers,
1938
- }).then(function (response) {
1939
- return Result.GetCurrentMissionMasterResult.fromDict(response.data);
1940
- }).catch(function (error) {
1941
- throw JSON.parse(error.response.data.message);
1462
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1463
+ return Result.GetCurrentMissionMasterResult.fromDict(data);
1942
1464
  });
1943
1465
  };
1944
1466
  Gs2MissionRestClient.prototype.preUpdateCurrentMissionMaster = function (request) {
@@ -1954,17 +1476,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1954
1476
  var body = {
1955
1477
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1956
1478
  };
1957
- return axios_1.default.post(url, body, {
1958
- headers: headers,
1959
- }).then(function (response) {
1960
- return Result.PreUpdateCurrentMissionMasterResult.fromDict(response.data);
1961
- }).catch(function (error) {
1962
- if (error.response) {
1963
- throw JSON.parse(error.response.data.message);
1964
- }
1965
- else {
1966
- throw [];
1967
- }
1479
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1480
+ return Result.PreUpdateCurrentMissionMasterResult.fromDict(data);
1968
1481
  });
1969
1482
  };
1970
1483
  Gs2MissionRestClient.prototype.updateCurrentMissionMaster = function (request) {
@@ -1983,17 +1496,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
1983
1496
  'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
1984
1497
  'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
1985
1498
  };
1986
- return axios_1.default.put(url, body, {
1987
- headers: headers,
1988
- }).then(function (response) {
1989
- return Result.UpdateCurrentMissionMasterResult.fromDict(response.data);
1990
- }).catch(function (error) {
1991
- if (error.response) {
1992
- throw JSON.parse(error.response.data.message);
1993
- }
1994
- else {
1995
- throw [];
1996
- }
1499
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1500
+ return Result.UpdateCurrentMissionMasterResult.fromDict(data);
1997
1501
  });
1998
1502
  };
1999
1503
  Gs2MissionRestClient.prototype.updateCurrentMissionMasterFromGitHub = function (request) {
@@ -2010,17 +1514,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
2010
1514
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
2011
1515
  'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
2012
1516
  };
2013
- return axios_1.default.put(url, body, {
2014
- headers: headers,
2015
- }).then(function (response) {
2016
- return Result.UpdateCurrentMissionMasterFromGitHubResult.fromDict(response.data);
2017
- }).catch(function (error) {
2018
- if (error.response) {
2019
- throw JSON.parse(error.response.data.message);
2020
- }
2021
- else {
2022
- throw [];
2023
- }
1517
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1518
+ return Result.UpdateCurrentMissionMasterFromGitHubResult.fromDict(data);
2024
1519
  });
2025
1520
  };
2026
1521
  Gs2MissionRestClient.prototype.describeCounterModels = function (request) {
@@ -2036,13 +1531,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
2036
1531
  var params = {
2037
1532
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
2038
1533
  };
2039
- return axios_1.default.get(url, {
2040
- params: params,
2041
- headers: headers,
2042
- }).then(function (response) {
2043
- return Result.DescribeCounterModelsResult.fromDict(response.data);
2044
- }).catch(function (error) {
2045
- throw JSON.parse(error.response.data.message);
1534
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1535
+ return Result.DescribeCounterModelsResult.fromDict(data);
2046
1536
  });
2047
1537
  };
2048
1538
  Gs2MissionRestClient.prototype.getCounterModel = function (request) {
@@ -2059,13 +1549,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
2059
1549
  var params = {
2060
1550
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
2061
1551
  };
2062
- return axios_1.default.get(url, {
2063
- params: params,
2064
- headers: headers,
2065
- }).then(function (response) {
2066
- return Result.GetCounterModelResult.fromDict(response.data);
2067
- }).catch(function (error) {
2068
- throw JSON.parse(error.response.data.message);
1552
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1553
+ return Result.GetCounterModelResult.fromDict(data);
2069
1554
  });
2070
1555
  };
2071
1556
  Gs2MissionRestClient.prototype.describeMissionGroupModels = function (request) {
@@ -2081,13 +1566,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
2081
1566
  var params = {
2082
1567
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
2083
1568
  };
2084
- return axios_1.default.get(url, {
2085
- params: params,
2086
- headers: headers,
2087
- }).then(function (response) {
2088
- return Result.DescribeMissionGroupModelsResult.fromDict(response.data);
2089
- }).catch(function (error) {
2090
- throw JSON.parse(error.response.data.message);
1569
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1570
+ return Result.DescribeMissionGroupModelsResult.fromDict(data);
2091
1571
  });
2092
1572
  };
2093
1573
  Gs2MissionRestClient.prototype.getMissionGroupModel = function (request) {
@@ -2104,13 +1584,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
2104
1584
  var params = {
2105
1585
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
2106
1586
  };
2107
- return axios_1.default.get(url, {
2108
- params: params,
2109
- headers: headers,
2110
- }).then(function (response) {
2111
- return Result.GetMissionGroupModelResult.fromDict(response.data);
2112
- }).catch(function (error) {
2113
- throw JSON.parse(error.response.data.message);
1587
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1588
+ return Result.GetMissionGroupModelResult.fromDict(data);
2114
1589
  });
2115
1590
  };
2116
1591
  Gs2MissionRestClient.prototype.describeMissionTaskModels = function (request) {
@@ -2127,13 +1602,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
2127
1602
  var params = {
2128
1603
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
2129
1604
  };
2130
- return axios_1.default.get(url, {
2131
- params: params,
2132
- headers: headers,
2133
- }).then(function (response) {
2134
- return Result.DescribeMissionTaskModelsResult.fromDict(response.data);
2135
- }).catch(function (error) {
2136
- throw JSON.parse(error.response.data.message);
1605
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1606
+ return Result.DescribeMissionTaskModelsResult.fromDict(data);
2137
1607
  });
2138
1608
  };
2139
1609
  Gs2MissionRestClient.prototype.getMissionTaskModel = function (request) {
@@ -2151,13 +1621,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
2151
1621
  var params = {
2152
1622
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
2153
1623
  };
2154
- return axios_1.default.get(url, {
2155
- params: params,
2156
- headers: headers,
2157
- }).then(function (response) {
2158
- return Result.GetMissionTaskModelResult.fromDict(response.data);
2159
- }).catch(function (error) {
2160
- throw JSON.parse(error.response.data.message);
1624
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1625
+ return Result.GetMissionTaskModelResult.fromDict(data);
2161
1626
  });
2162
1627
  };
2163
1628
  Gs2MissionRestClient.prototype.describeMissionTaskModelMasters = function (request) {
@@ -2177,13 +1642,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
2177
1642
  'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
2178
1643
  'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
2179
1644
  };
2180
- return axios_1.default.get(url, {
2181
- params: params,
2182
- headers: headers,
2183
- }).then(function (response) {
2184
- return Result.DescribeMissionTaskModelMastersResult.fromDict(response.data);
2185
- }).catch(function (error) {
2186
- throw JSON.parse(error.response.data.message);
1645
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1646
+ return Result.DescribeMissionTaskModelMastersResult.fromDict(data);
2187
1647
  });
2188
1648
  };
2189
1649
  Gs2MissionRestClient.prototype.createMissionTaskModelMaster = function (request) {
@@ -2212,17 +1672,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
2212
1672
  'targetResetType': (_v = request.getTargetResetType()) !== null && _v !== void 0 ? _v : null,
2213
1673
  'targetValue': (_w = request.getTargetValue()) !== null && _w !== void 0 ? _w : null,
2214
1674
  };
2215
- return axios_1.default.post(url, body, {
2216
- headers: headers,
2217
- }).then(function (response) {
2218
- return Result.CreateMissionTaskModelMasterResult.fromDict(response.data);
2219
- }).catch(function (error) {
2220
- if (error.response) {
2221
- throw JSON.parse(error.response.data.message);
2222
- }
2223
- else {
2224
- throw [];
2225
- }
1675
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1676
+ return Result.CreateMissionTaskModelMasterResult.fromDict(data);
2226
1677
  });
2227
1678
  };
2228
1679
  Gs2MissionRestClient.prototype.getMissionTaskModelMaster = function (request) {
@@ -2240,13 +1691,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
2240
1691
  var params = {
2241
1692
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
2242
1693
  };
2243
- return axios_1.default.get(url, {
2244
- params: params,
2245
- headers: headers,
2246
- }).then(function (response) {
2247
- return Result.GetMissionTaskModelMasterResult.fromDict(response.data);
2248
- }).catch(function (error) {
2249
- throw JSON.parse(error.response.data.message);
1694
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1695
+ return Result.GetMissionTaskModelMasterResult.fromDict(data);
2250
1696
  });
2251
1697
  };
2252
1698
  Gs2MissionRestClient.prototype.updateMissionTaskModelMaster = function (request) {
@@ -2275,17 +1721,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
2275
1721
  'targetResetType': (_w = request.getTargetResetType()) !== null && _w !== void 0 ? _w : null,
2276
1722
  'targetValue': (_x = request.getTargetValue()) !== null && _x !== void 0 ? _x : null,
2277
1723
  };
2278
- return axios_1.default.put(url, body, {
2279
- headers: headers,
2280
- }).then(function (response) {
2281
- return Result.UpdateMissionTaskModelMasterResult.fromDict(response.data);
2282
- }).catch(function (error) {
2283
- if (error.response) {
2284
- throw JSON.parse(error.response.data.message);
2285
- }
2286
- else {
2287
- throw [];
2288
- }
1724
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1725
+ return Result.UpdateMissionTaskModelMasterResult.fromDict(data);
2289
1726
  });
2290
1727
  };
2291
1728
  Gs2MissionRestClient.prototype.deleteMissionTaskModelMaster = function (request) {
@@ -2303,13 +1740,8 @@ var Gs2MissionRestClient = /** @class */ (function (_super) {
2303
1740
  var params = {
2304
1741
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
2305
1742
  };
2306
- return axios_1.default.delete(url, {
2307
- params: params,
2308
- headers: headers,
2309
- }).then(function (response) {
2310
- return Result.DeleteMissionTaskModelMasterResult.fromDict(response.data);
2311
- }).catch(function (error) {
2312
- throw JSON.parse(error.response.data.message);
1743
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
1744
+ return Result.DeleteMissionTaskModelMasterResult.fromDict(data);
2313
1745
  });
2314
1746
  };
2315
1747
  Gs2MissionRestClient.ENDPOINT_HOST = null;