gs2 1.4.110 → 1.4.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/account/rest.js +130 -564
  2. package/account/rest.js.map +1 -1
  3. package/adReward/rest.js +44 -203
  4. package/adReward/rest.js.map +1 -1
  5. package/auth/rest.js +10 -52
  6. package/auth/rest.js.map +1 -1
  7. package/buff/rest.js +56 -249
  8. package/buff/rest.js.map +1 -1
  9. package/chat/rest.js +108 -463
  10. package/chat/rest.js.map +1 -1
  11. package/core/AbstractGs2RestClient.d.ts +9 -0
  12. package/core/AbstractGs2RestClient.js +48 -0
  13. package/core/AbstractGs2RestClient.js.map +1 -1
  14. package/core/model.d.ts +9 -1
  15. package/core/model.js +4 -1
  16. package/core/model.js.map +1 -1
  17. package/datastore/rest.js +78 -370
  18. package/datastore/rest.js.map +1 -1
  19. package/deploy/rest.js +48 -209
  20. package/deploy/rest.js.map +1 -1
  21. package/dictionary/rest.js +102 -450
  22. package/dictionary/rest.js.map +1 -1
  23. package/distributor/rest.js +96 -465
  24. package/distributor/rest.js.map +1 -1
  25. package/enchant/rest.js +112 -497
  26. package/enchant/rest.js.map +1 -1
  27. package/enhance/rest.js +100 -455
  28. package/enhance/rest.js.map +1 -1
  29. package/exchange/rest.js +108 -491
  30. package/exchange/rest.js.map +1 -1
  31. package/experience/rest.js +120 -561
  32. package/experience/rest.js.map +1 -1
  33. package/formation/rest.js +158 -686
  34. package/formation/rest.js.map +1 -1
  35. package/freeze/rest.js +12 -51
  36. package/freeze/rest.js.map +1 -1
  37. package/friend/rest.js +118 -490
  38. package/friend/rest.js.map +1 -1
  39. package/gateway/rest.js +56 -245
  40. package/gateway/rest.js.map +1 -1
  41. package/grade/rest.js +96 -449
  42. package/grade/rest.js.map +1 -1
  43. package/guard/rest.js +14 -58
  44. package/guard/rest.js.map +1 -1
  45. package/guild/rest.js +186 -840
  46. package/guild/rest.js.map +1 -1
  47. package/identifier/rest.js +60 -259
  48. package/identifier/rest.js.map +1 -1
  49. package/idle/rest.js +84 -387
  50. package/idle/rest.js.map +1 -1
  51. package/inbox/rest.js +96 -437
  52. package/inbox/rest.js.map +1 -1
  53. package/inventory/rest.js +270 -1206
  54. package/inventory/rest.js.map +1 -1
  55. package/jobQueue/rest.js +50 -220
  56. package/jobQueue/rest.js.map +1 -1
  57. package/key/rest.js +38 -166
  58. package/key/rest.js.map +1 -1
  59. package/limit/rest.js +80 -361
  60. package/limit/rest.js.map +1 -1
  61. package/lock/rest.js +28 -123
  62. package/lock/rest.js.map +1 -1
  63. package/log/rest.js +46 -186
  64. package/log/rest.js.map +1 -1
  65. package/loginReward/rest.js +82 -376
  66. package/loginReward/rest.js.map +1 -1
  67. package/lottery/rest.js +100 -427
  68. package/lottery/rest.js.map +1 -1
  69. package/matchmaking/rest.js +146 -644
  70. package/matchmaking/rest.js.map +1 -1
  71. package/megaField/rest.js +68 -307
  72. package/megaField/rest.js.map +1 -1
  73. package/mission/rest.js +158 -726
  74. package/mission/rest.js.map +1 -1
  75. package/money/rest.js +58 -264
  76. package/money/rest.js.map +1 -1
  77. package/money2/rest.js +126 -542
  78. package/money2/rest.js.map +1 -1
  79. package/news/rest.js +36 -147
  80. package/news/rest.js.map +1 -1
  81. package/package.json +5 -5
  82. package/project/request/WaitCleanUserDataRequest.d.ts +0 -4
  83. package/project/request/WaitCleanUserDataRequest.js +0 -14
  84. package/project/request/WaitCleanUserDataRequest.js.map +1 -1
  85. package/project/request/WaitDumpUserDataRequest.d.ts +0 -4
  86. package/project/request/WaitDumpUserDataRequest.js +0 -14
  87. package/project/request/WaitDumpUserDataRequest.js.map +1 -1
  88. package/project/request/WaitImportUserDataRequest.d.ts +0 -4
  89. package/project/request/WaitImportUserDataRequest.js +0 -14
  90. package/project/request/WaitImportUserDataRequest.js.map +1 -1
  91. package/project/rest.js +91 -411
  92. package/project/rest.js.map +1 -1
  93. package/quest/rest.js +100 -431
  94. package/quest/rest.js.map +1 -1
  95. package/ranking/rest.js +92 -387
  96. package/ranking/rest.js.map +1 -1
  97. package/ranking2/rest.js +220 -939
  98. package/ranking2/rest.js.map +1 -1
  99. package/realtime/rest.js +24 -97
  100. package/realtime/rest.js.map +1 -1
  101. package/schedule/rest.js +94 -418
  102. package/schedule/rest.js.map +1 -1
  103. package/script/rest.js +34 -156
  104. package/script/rest.js.map +1 -1
  105. package/seasonRating/rest.js +70 -314
  106. package/seasonRating/rest.js.map +1 -1
  107. package/serialKey/rest.js +84 -383
  108. package/serialKey/rest.js.map +1 -1
  109. package/showcase/rest.js +116 -515
  110. package/showcase/rest.js.map +1 -1
  111. package/skillTree/rest.js +82 -372
  112. package/skillTree/rest.js.map +1 -1
  113. package/stamina/rest.js +166 -798
  114. package/stamina/rest.js.map +1 -1
  115. package/stateMachine/rest.js +62 -270
  116. package/stateMachine/rest.js.map +1 -1
  117. package/version/rest.js +78 -346
  118. package/version/rest.js.map +1 -1
  119. package/watch/rest.js +156 -563
  120. package/watch/rest.js.map +1 -1
package/quest/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 Gs2QuestRestClient = /** @class */ (function (_super) {
24
23
  tslib_1.__extends(Gs2QuestRestClient, _super);
25
24
  function Gs2QuestRestClient(session) {
@@ -40,13 +39,8 @@ var Gs2QuestRestClient = /** @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
  Gs2QuestRestClient.prototype.createNamespace = function (request) {
@@ -70,17 +64,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
70
64
  'queueNamespaceId': (_q = request.getQueueNamespaceId()) !== null && _q !== void 0 ? _q : null,
71
65
  'keyId': (_r = request.getKeyId()) !== null && _r !== void 0 ? _r : null,
72
66
  };
73
- return axios_1.default.post(url, body, {
74
- headers: headers,
75
- }).then(function (response) {
76
- return Result.CreateNamespaceResult.fromDict(response.data);
77
- }).catch(function (error) {
78
- if (error.response) {
79
- throw JSON.parse(error.response.data.message);
80
- }
81
- else {
82
- throw [];
83
- }
67
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
68
+ return Result.CreateNamespaceResult.fromDict(data);
84
69
  });
85
70
  };
86
71
  Gs2QuestRestClient.prototype.getNamespaceStatus = function (request) {
@@ -96,13 +81,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
96
81
  var params = {
97
82
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
98
83
  };
99
- return axios_1.default.get(url, {
100
- params: params,
101
- headers: headers,
102
- }).then(function (response) {
103
- return Result.GetNamespaceStatusResult.fromDict(response.data);
104
- }).catch(function (error) {
105
- throw JSON.parse(error.response.data.message);
84
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
85
+ return Result.GetNamespaceStatusResult.fromDict(data);
106
86
  });
107
87
  };
108
88
  Gs2QuestRestClient.prototype.getNamespace = function (request) {
@@ -118,13 +98,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
118
98
  var params = {
119
99
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
120
100
  };
121
- return axios_1.default.get(url, {
122
- params: params,
123
- headers: headers,
124
- }).then(function (response) {
125
- return Result.GetNamespaceResult.fromDict(response.data);
126
- }).catch(function (error) {
127
- throw JSON.parse(error.response.data.message);
101
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
102
+ return Result.GetNamespaceResult.fromDict(data);
128
103
  });
129
104
  };
130
105
  Gs2QuestRestClient.prototype.updateNamespace = function (request) {
@@ -148,17 +123,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
148
123
  'queueNamespaceId': (_r = request.getQueueNamespaceId()) !== null && _r !== void 0 ? _r : null,
149
124
  'keyId': (_s = request.getKeyId()) !== null && _s !== void 0 ? _s : null,
150
125
  };
151
- return axios_1.default.put(url, body, {
152
- headers: headers,
153
- }).then(function (response) {
154
- return Result.UpdateNamespaceResult.fromDict(response.data);
155
- }).catch(function (error) {
156
- if (error.response) {
157
- throw JSON.parse(error.response.data.message);
158
- }
159
- else {
160
- throw [];
161
- }
126
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
127
+ return Result.UpdateNamespaceResult.fromDict(data);
162
128
  });
163
129
  };
164
130
  Gs2QuestRestClient.prototype.deleteNamespace = function (request) {
@@ -174,13 +140,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
174
140
  var params = {
175
141
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
176
142
  };
177
- return axios_1.default.delete(url, {
178
- params: params,
179
- headers: headers,
180
- }).then(function (response) {
181
- return Result.DeleteNamespaceResult.fromDict(response.data);
182
- }).catch(function (error) {
183
- throw JSON.parse(error.response.data.message);
143
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
144
+ return Result.DeleteNamespaceResult.fromDict(data);
184
145
  });
185
146
  };
186
147
  Gs2QuestRestClient.prototype.getServiceVersion = function (request) {
@@ -195,13 +156,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
195
156
  var params = {
196
157
  'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
197
158
  };
198
- return axios_1.default.get(url, {
199
- params: params,
200
- headers: headers,
201
- }).then(function (response) {
202
- return Result.GetServiceVersionResult.fromDict(response.data);
203
- }).catch(function (error) {
204
- throw JSON.parse(error.response.data.message);
159
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
160
+ return Result.GetServiceVersionResult.fromDict(data);
205
161
  });
206
162
  };
207
163
  Gs2QuestRestClient.prototype.dumpUserDataByUserId = function (request) {
@@ -220,17 +176,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
220
176
  var body = {
221
177
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
222
178
  };
223
- return axios_1.default.post(url, body, {
224
- headers: headers,
225
- }).then(function (response) {
226
- return Result.DumpUserDataByUserIdResult.fromDict(response.data);
227
- }).catch(function (error) {
228
- if (error.response) {
229
- throw JSON.parse(error.response.data.message);
230
- }
231
- else {
232
- throw [];
233
- }
179
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
180
+ return Result.DumpUserDataByUserIdResult.fromDict(data);
234
181
  });
235
182
  };
236
183
  Gs2QuestRestClient.prototype.checkDumpUserDataByUserId = function (request) {
@@ -249,13 +196,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
249
196
  var params = {
250
197
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
251
198
  };
252
- return axios_1.default.get(url, {
253
- params: params,
254
- headers: headers,
255
- }).then(function (response) {
256
- return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
257
- }).catch(function (error) {
258
- throw JSON.parse(error.response.data.message);
199
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
200
+ return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
259
201
  });
260
202
  };
261
203
  Gs2QuestRestClient.prototype.cleanUserDataByUserId = function (request) {
@@ -274,17 +216,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
274
216
  var body = {
275
217
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
276
218
  };
277
- return axios_1.default.post(url, body, {
278
- headers: headers,
279
- }).then(function (response) {
280
- return Result.CleanUserDataByUserIdResult.fromDict(response.data);
281
- }).catch(function (error) {
282
- if (error.response) {
283
- throw JSON.parse(error.response.data.message);
284
- }
285
- else {
286
- throw [];
287
- }
219
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
220
+ return Result.CleanUserDataByUserIdResult.fromDict(data);
288
221
  });
289
222
  };
290
223
  Gs2QuestRestClient.prototype.checkCleanUserDataByUserId = function (request) {
@@ -303,13 +236,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
303
236
  var params = {
304
237
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
305
238
  };
306
- return axios_1.default.get(url, {
307
- params: params,
308
- headers: headers,
309
- }).then(function (response) {
310
- return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
311
- }).catch(function (error) {
312
- throw JSON.parse(error.response.data.message);
239
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
240
+ return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
313
241
  });
314
242
  };
315
243
  Gs2QuestRestClient.prototype.prepareImportUserDataByUserId = function (request) {
@@ -328,17 +256,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
328
256
  var body = {
329
257
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
330
258
  };
331
- return axios_1.default.post(url, body, {
332
- headers: headers,
333
- }).then(function (response) {
334
- return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
335
- }).catch(function (error) {
336
- if (error.response) {
337
- throw JSON.parse(error.response.data.message);
338
- }
339
- else {
340
- throw [];
341
- }
259
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
260
+ return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
342
261
  });
343
262
  };
344
263
  Gs2QuestRestClient.prototype.importUserDataByUserId = function (request) {
@@ -358,17 +277,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
358
277
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
359
278
  'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
360
279
  };
361
- return axios_1.default.post(url, body, {
362
- headers: headers,
363
- }).then(function (response) {
364
- return Result.ImportUserDataByUserIdResult.fromDict(response.data);
365
- }).catch(function (error) {
366
- if (error.response) {
367
- throw JSON.parse(error.response.data.message);
368
- }
369
- else {
370
- throw [];
371
- }
280
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
281
+ return Result.ImportUserDataByUserIdResult.fromDict(data);
372
282
  });
373
283
  };
374
284
  Gs2QuestRestClient.prototype.checkImportUserDataByUserId = function (request) {
@@ -388,13 +298,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
388
298
  var params = {
389
299
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
390
300
  };
391
- return axios_1.default.get(url, {
392
- params: params,
393
- headers: headers,
394
- }).then(function (response) {
395
- return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
396
- }).catch(function (error) {
397
- throw JSON.parse(error.response.data.message);
301
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
302
+ return Result.CheckImportUserDataByUserIdResult.fromDict(data);
398
303
  });
399
304
  };
400
305
  Gs2QuestRestClient.prototype.describeQuestGroupModelMasters = function (request) {
@@ -413,13 +318,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
413
318
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
414
319
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
415
320
  };
416
- return axios_1.default.get(url, {
417
- params: params,
418
- headers: headers,
419
- }).then(function (response) {
420
- return Result.DescribeQuestGroupModelMastersResult.fromDict(response.data);
421
- }).catch(function (error) {
422
- throw JSON.parse(error.response.data.message);
321
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
322
+ return Result.DescribeQuestGroupModelMastersResult.fromDict(data);
423
323
  });
424
324
  };
425
325
  Gs2QuestRestClient.prototype.createQuestGroupModelMaster = function (request) {
@@ -439,17 +339,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
439
339
  'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
440
340
  'challengePeriodEventId': (_h = request.getChallengePeriodEventId()) !== null && _h !== void 0 ? _h : null,
441
341
  };
442
- return axios_1.default.post(url, body, {
443
- headers: headers,
444
- }).then(function (response) {
445
- return Result.CreateQuestGroupModelMasterResult.fromDict(response.data);
446
- }).catch(function (error) {
447
- if (error.response) {
448
- throw JSON.parse(error.response.data.message);
449
- }
450
- else {
451
- throw [];
452
- }
342
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
343
+ return Result.CreateQuestGroupModelMasterResult.fromDict(data);
453
344
  });
454
345
  };
455
346
  Gs2QuestRestClient.prototype.getQuestGroupModelMaster = function (request) {
@@ -466,13 +357,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
466
357
  var params = {
467
358
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
468
359
  };
469
- return axios_1.default.get(url, {
470
- params: params,
471
- headers: headers,
472
- }).then(function (response) {
473
- return Result.GetQuestGroupModelMasterResult.fromDict(response.data);
474
- }).catch(function (error) {
475
- throw JSON.parse(error.response.data.message);
360
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
361
+ return Result.GetQuestGroupModelMasterResult.fromDict(data);
476
362
  });
477
363
  };
478
364
  Gs2QuestRestClient.prototype.updateQuestGroupModelMaster = function (request) {
@@ -492,17 +378,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
492
378
  'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
493
379
  'challengePeriodEventId': (_j = request.getChallengePeriodEventId()) !== null && _j !== void 0 ? _j : null,
494
380
  };
495
- return axios_1.default.put(url, body, {
496
- headers: headers,
497
- }).then(function (response) {
498
- return Result.UpdateQuestGroupModelMasterResult.fromDict(response.data);
499
- }).catch(function (error) {
500
- if (error.response) {
501
- throw JSON.parse(error.response.data.message);
502
- }
503
- else {
504
- throw [];
505
- }
381
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
382
+ return Result.UpdateQuestGroupModelMasterResult.fromDict(data);
506
383
  });
507
384
  };
508
385
  Gs2QuestRestClient.prototype.deleteQuestGroupModelMaster = function (request) {
@@ -519,13 +396,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
519
396
  var params = {
520
397
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
521
398
  };
522
- return axios_1.default.delete(url, {
523
- params: params,
524
- headers: headers,
525
- }).then(function (response) {
526
- return Result.DeleteQuestGroupModelMasterResult.fromDict(response.data);
527
- }).catch(function (error) {
528
- throw JSON.parse(error.response.data.message);
399
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
400
+ return Result.DeleteQuestGroupModelMasterResult.fromDict(data);
529
401
  });
530
402
  };
531
403
  Gs2QuestRestClient.prototype.describeQuestModelMasters = function (request) {
@@ -545,13 +417,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
545
417
  'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
546
418
  'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
547
419
  };
548
- return axios_1.default.get(url, {
549
- params: params,
550
- headers: headers,
551
- }).then(function (response) {
552
- return Result.DescribeQuestModelMastersResult.fromDict(response.data);
553
- }).catch(function (error) {
554
- throw JSON.parse(error.response.data.message);
420
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
421
+ return Result.DescribeQuestModelMastersResult.fromDict(data);
555
422
  });
556
423
  };
557
424
  Gs2QuestRestClient.prototype.createQuestModelMaster = function (request) {
@@ -578,17 +445,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
578
445
  'failedAcquireActions': (_v = (_u = request.getFailedAcquireActions()) === null || _u === void 0 ? void 0 : _u.map(function (item) { return item.toDict(); })) !== null && _v !== void 0 ? _v : null,
579
446
  'premiseQuestNames': (_w = request.getPremiseQuestNames()) !== null && _w !== void 0 ? _w : null,
580
447
  };
581
- return axios_1.default.post(url, body, {
582
- headers: headers,
583
- }).then(function (response) {
584
- return Result.CreateQuestModelMasterResult.fromDict(response.data);
585
- }).catch(function (error) {
586
- if (error.response) {
587
- throw JSON.parse(error.response.data.message);
588
- }
589
- else {
590
- throw [];
591
- }
448
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
449
+ return Result.CreateQuestModelMasterResult.fromDict(data);
592
450
  });
593
451
  };
594
452
  Gs2QuestRestClient.prototype.getQuestModelMaster = function (request) {
@@ -606,13 +464,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
606
464
  var params = {
607
465
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
608
466
  };
609
- return axios_1.default.get(url, {
610
- params: params,
611
- headers: headers,
612
- }).then(function (response) {
613
- return Result.GetQuestModelMasterResult.fromDict(response.data);
614
- }).catch(function (error) {
615
- throw JSON.parse(error.response.data.message);
467
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
468
+ return Result.GetQuestModelMasterResult.fromDict(data);
616
469
  });
617
470
  };
618
471
  Gs2QuestRestClient.prototype.updateQuestModelMaster = function (request) {
@@ -639,17 +492,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
639
492
  'failedAcquireActions': (_w = (_v = request.getFailedAcquireActions()) === null || _v === void 0 ? void 0 : _v.map(function (item) { return item.toDict(); })) !== null && _w !== void 0 ? _w : null,
640
493
  'premiseQuestNames': (_x = request.getPremiseQuestNames()) !== null && _x !== void 0 ? _x : null,
641
494
  };
642
- return axios_1.default.put(url, body, {
643
- headers: headers,
644
- }).then(function (response) {
645
- return Result.UpdateQuestModelMasterResult.fromDict(response.data);
646
- }).catch(function (error) {
647
- if (error.response) {
648
- throw JSON.parse(error.response.data.message);
649
- }
650
- else {
651
- throw [];
652
- }
495
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
496
+ return Result.UpdateQuestModelMasterResult.fromDict(data);
653
497
  });
654
498
  };
655
499
  Gs2QuestRestClient.prototype.deleteQuestModelMaster = function (request) {
@@ -667,13 +511,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
667
511
  var params = {
668
512
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
669
513
  };
670
- return axios_1.default.delete(url, {
671
- params: params,
672
- headers: headers,
673
- }).then(function (response) {
674
- return Result.DeleteQuestModelMasterResult.fromDict(response.data);
675
- }).catch(function (error) {
676
- throw JSON.parse(error.response.data.message);
514
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
515
+ return Result.DeleteQuestModelMasterResult.fromDict(data);
677
516
  });
678
517
  };
679
518
  Gs2QuestRestClient.prototype.exportMaster = function (request) {
@@ -689,13 +528,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
689
528
  var params = {
690
529
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
691
530
  };
692
- return axios_1.default.get(url, {
693
- params: params,
694
- headers: headers,
695
- }).then(function (response) {
696
- return Result.ExportMasterResult.fromDict(response.data);
697
- }).catch(function (error) {
698
- throw JSON.parse(error.response.data.message);
531
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
532
+ return Result.ExportMasterResult.fromDict(data);
699
533
  });
700
534
  };
701
535
  Gs2QuestRestClient.prototype.getCurrentQuestMaster = function (request) {
@@ -711,13 +545,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
711
545
  var params = {
712
546
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
713
547
  };
714
- return axios_1.default.get(url, {
715
- params: params,
716
- headers: headers,
717
- }).then(function (response) {
718
- return Result.GetCurrentQuestMasterResult.fromDict(response.data);
719
- }).catch(function (error) {
720
- throw JSON.parse(error.response.data.message);
548
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
549
+ return Result.GetCurrentQuestMasterResult.fromDict(data);
721
550
  });
722
551
  };
723
552
  Gs2QuestRestClient.prototype.preUpdateCurrentQuestMaster = function (request) {
@@ -733,17 +562,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
733
562
  var body = {
734
563
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
735
564
  };
736
- return axios_1.default.post(url, body, {
737
- headers: headers,
738
- }).then(function (response) {
739
- return Result.PreUpdateCurrentQuestMasterResult.fromDict(response.data);
740
- }).catch(function (error) {
741
- if (error.response) {
742
- throw JSON.parse(error.response.data.message);
743
- }
744
- else {
745
- throw [];
746
- }
565
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
566
+ return Result.PreUpdateCurrentQuestMasterResult.fromDict(data);
747
567
  });
748
568
  };
749
569
  Gs2QuestRestClient.prototype.updateCurrentQuestMaster = function (request) {
@@ -762,17 +582,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
762
582
  'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
763
583
  'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
764
584
  };
765
- return axios_1.default.put(url, body, {
766
- headers: headers,
767
- }).then(function (response) {
768
- return Result.UpdateCurrentQuestMasterResult.fromDict(response.data);
769
- }).catch(function (error) {
770
- if (error.response) {
771
- throw JSON.parse(error.response.data.message);
772
- }
773
- else {
774
- throw [];
775
- }
585
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
586
+ return Result.UpdateCurrentQuestMasterResult.fromDict(data);
776
587
  });
777
588
  };
778
589
  Gs2QuestRestClient.prototype.updateCurrentQuestMasterFromGitHub = function (request) {
@@ -789,17 +600,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
789
600
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
790
601
  'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
791
602
  };
792
- return axios_1.default.put(url, body, {
793
- headers: headers,
794
- }).then(function (response) {
795
- return Result.UpdateCurrentQuestMasterFromGitHubResult.fromDict(response.data);
796
- }).catch(function (error) {
797
- if (error.response) {
798
- throw JSON.parse(error.response.data.message);
799
- }
800
- else {
801
- throw [];
802
- }
603
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
604
+ return Result.UpdateCurrentQuestMasterFromGitHubResult.fromDict(data);
803
605
  });
804
606
  };
805
607
  Gs2QuestRestClient.prototype.describeProgressesByUserId = function (request) {
@@ -821,13 +623,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
821
623
  'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
822
624
  'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
823
625
  };
824
- return axios_1.default.get(url, {
825
- params: params,
826
- headers: headers,
827
- }).then(function (response) {
828
- return Result.DescribeProgressesByUserIdResult.fromDict(response.data);
829
- }).catch(function (error) {
830
- throw JSON.parse(error.response.data.message);
626
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
627
+ return Result.DescribeProgressesByUserIdResult.fromDict(data);
831
628
  });
832
629
  };
833
630
  Gs2QuestRestClient.prototype.createProgressByUserId = function (request) {
@@ -853,17 +650,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
853
650
  'force': (_k = request.getForce()) !== null && _k !== void 0 ? _k : null,
854
651
  'config': (_m = (_l = request.getConfig()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
855
652
  };
856
- return axios_1.default.post(url, body, {
857
- headers: headers,
858
- }).then(function (response) {
859
- return Result.CreateProgressByUserIdResult.fromDict(response.data);
860
- }).catch(function (error) {
861
- if (error.response) {
862
- throw JSON.parse(error.response.data.message);
863
- }
864
- else {
865
- throw [];
866
- }
653
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
654
+ return Result.CreateProgressByUserIdResult.fromDict(data);
867
655
  });
868
656
  };
869
657
  Gs2QuestRestClient.prototype.getProgress = function (request) {
@@ -882,13 +670,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
882
670
  var params = {
883
671
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
884
672
  };
885
- return axios_1.default.get(url, {
886
- params: params,
887
- headers: headers,
888
- }).then(function (response) {
889
- return Result.GetProgressResult.fromDict(response.data);
890
- }).catch(function (error) {
891
- throw JSON.parse(error.response.data.message);
673
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
674
+ return Result.GetProgressResult.fromDict(data);
892
675
  });
893
676
  };
894
677
  Gs2QuestRestClient.prototype.getProgressByUserId = function (request) {
@@ -908,13 +691,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
908
691
  var params = {
909
692
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
910
693
  };
911
- return axios_1.default.get(url, {
912
- params: params,
913
- headers: headers,
914
- }).then(function (response) {
915
- return Result.GetProgressByUserIdResult.fromDict(response.data);
916
- }).catch(function (error) {
917
- throw JSON.parse(error.response.data.message);
694
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
695
+ return Result.GetProgressByUserIdResult.fromDict(data);
918
696
  });
919
697
  };
920
698
  Gs2QuestRestClient.prototype.start = function (request) {
@@ -940,17 +718,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
940
718
  'force': (_l = request.getForce()) !== null && _l !== void 0 ? _l : null,
941
719
  'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
942
720
  };
943
- return axios_1.default.post(url, body, {
944
- headers: headers,
945
- }).then(function (response) {
946
- return Result.StartResult.fromDict(response.data);
947
- }).catch(function (error) {
948
- if (error.response) {
949
- throw JSON.parse(error.response.data.message);
950
- }
951
- else {
952
- throw [];
953
- }
721
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
722
+ return Result.StartResult.fromDict(data);
954
723
  });
955
724
  };
956
725
  Gs2QuestRestClient.prototype.startByUserId = function (request) {
@@ -977,17 +746,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
977
746
  'force': (_o = request.getForce()) !== null && _o !== void 0 ? _o : null,
978
747
  'config': (_q = (_p = request.getConfig()) === null || _p === void 0 ? void 0 : _p.map(function (item) { return item.toDict(); })) !== null && _q !== void 0 ? _q : null,
979
748
  };
980
- return axios_1.default.post(url, body, {
981
- headers: headers,
982
- }).then(function (response) {
983
- return Result.StartByUserIdResult.fromDict(response.data);
984
- }).catch(function (error) {
985
- if (error.response) {
986
- throw JSON.parse(error.response.data.message);
987
- }
988
- else {
989
- throw [];
990
- }
749
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
750
+ return Result.StartByUserIdResult.fromDict(data);
991
751
  });
992
752
  };
993
753
  Gs2QuestRestClient.prototype.end = function (request) {
@@ -1012,17 +772,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
1012
772
  'isComplete': (_j = request.getIsComplete()) !== null && _j !== void 0 ? _j : null,
1013
773
  'config': (_l = (_k = request.getConfig()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
1014
774
  };
1015
- return axios_1.default.post(url, body, {
1016
- headers: headers,
1017
- }).then(function (response) {
1018
- return Result.EndResult.fromDict(response.data);
1019
- }).catch(function (error) {
1020
- if (error.response) {
1021
- throw JSON.parse(error.response.data.message);
1022
- }
1023
- else {
1024
- throw [];
1025
- }
775
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
776
+ return Result.EndResult.fromDict(data);
1026
777
  });
1027
778
  };
1028
779
  Gs2QuestRestClient.prototype.endByUserId = function (request) {
@@ -1048,17 +799,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
1048
799
  'isComplete': (_l = request.getIsComplete()) !== null && _l !== void 0 ? _l : null,
1049
800
  'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
1050
801
  };
1051
- return axios_1.default.post(url, body, {
1052
- headers: headers,
1053
- }).then(function (response) {
1054
- return Result.EndByUserIdResult.fromDict(response.data);
1055
- }).catch(function (error) {
1056
- if (error.response) {
1057
- throw JSON.parse(error.response.data.message);
1058
- }
1059
- else {
1060
- throw [];
1061
- }
802
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
803
+ return Result.EndByUserIdResult.fromDict(data);
1062
804
  });
1063
805
  };
1064
806
  Gs2QuestRestClient.prototype.deleteProgress = function (request) {
@@ -1080,13 +822,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
1080
822
  var params = {
1081
823
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
1082
824
  };
1083
- return axios_1.default.delete(url, {
1084
- params: params,
1085
- headers: headers,
1086
- }).then(function (response) {
1087
- return Result.DeleteProgressResult.fromDict(response.data);
1088
- }).catch(function (error) {
1089
- throw JSON.parse(error.response.data.message);
825
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
826
+ return Result.DeleteProgressResult.fromDict(data);
1090
827
  });
1091
828
  };
1092
829
  Gs2QuestRestClient.prototype.deleteProgressByUserId = function (request) {
@@ -1109,13 +846,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
1109
846
  var params = {
1110
847
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1111
848
  };
1112
- return axios_1.default.delete(url, {
1113
- params: params,
1114
- headers: headers,
1115
- }).then(function (response) {
1116
- return Result.DeleteProgressByUserIdResult.fromDict(response.data);
1117
- }).catch(function (error) {
1118
- throw JSON.parse(error.response.data.message);
849
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
850
+ return Result.DeleteProgressByUserIdResult.fromDict(data);
1119
851
  });
1120
852
  };
1121
853
  Gs2QuestRestClient.prototype.createProgressByStampSheet = function (request) {
@@ -1132,17 +864,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
1132
864
  'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
1133
865
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1134
866
  };
1135
- return axios_1.default.post(url, body, {
1136
- headers: headers,
1137
- }).then(function (response) {
1138
- return Result.CreateProgressByStampSheetResult.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
- }
867
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
868
+ return Result.CreateProgressByStampSheetResult.fromDict(data);
1146
869
  });
1147
870
  };
1148
871
  Gs2QuestRestClient.prototype.deleteProgressByStampTask = function (request) {
@@ -1159,17 +882,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
1159
882
  'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
1160
883
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1161
884
  };
1162
- return axios_1.default.post(url, body, {
1163
- headers: headers,
1164
- }).then(function (response) {
1165
- return Result.DeleteProgressByStampTaskResult.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
- }
885
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
886
+ return Result.DeleteProgressByStampTaskResult.fromDict(data);
1173
887
  });
1174
888
  };
1175
889
  Gs2QuestRestClient.prototype.describeCompletedQuestLists = function (request) {
@@ -1190,13 +904,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
1190
904
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
1191
905
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
1192
906
  };
1193
- return axios_1.default.get(url, {
1194
- params: params,
1195
- headers: headers,
1196
- }).then(function (response) {
1197
- return Result.DescribeCompletedQuestListsResult.fromDict(response.data);
1198
- }).catch(function (error) {
1199
- throw JSON.parse(error.response.data.message);
907
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
908
+ return Result.DescribeCompletedQuestListsResult.fromDict(data);
1200
909
  });
1201
910
  };
1202
911
  Gs2QuestRestClient.prototype.describeCompletedQuestListsByUserId = function (request) {
@@ -1218,13 +927,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
1218
927
  'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
1219
928
  'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
1220
929
  };
1221
- return axios_1.default.get(url, {
1222
- params: params,
1223
- headers: headers,
1224
- }).then(function (response) {
1225
- return Result.DescribeCompletedQuestListsByUserIdResult.fromDict(response.data);
1226
- }).catch(function (error) {
1227
- throw JSON.parse(error.response.data.message);
930
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
931
+ return Result.DescribeCompletedQuestListsByUserIdResult.fromDict(data);
1228
932
  });
1229
933
  };
1230
934
  Gs2QuestRestClient.prototype.getCompletedQuestList = function (request) {
@@ -1244,13 +948,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
1244
948
  var params = {
1245
949
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
1246
950
  };
1247
- return axios_1.default.get(url, {
1248
- params: params,
1249
- headers: headers,
1250
- }).then(function (response) {
1251
- return Result.GetCompletedQuestListResult.fromDict(response.data);
1252
- }).catch(function (error) {
1253
- throw JSON.parse(error.response.data.message);
951
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
952
+ return Result.GetCompletedQuestListResult.fromDict(data);
1254
953
  });
1255
954
  };
1256
955
  Gs2QuestRestClient.prototype.getCompletedQuestListByUserId = function (request) {
@@ -1271,13 +970,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
1271
970
  var params = {
1272
971
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
1273
972
  };
1274
- return axios_1.default.get(url, {
1275
- params: params,
1276
- headers: headers,
1277
- }).then(function (response) {
1278
- return Result.GetCompletedQuestListByUserIdResult.fromDict(response.data);
1279
- }).catch(function (error) {
1280
- throw JSON.parse(error.response.data.message);
973
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
974
+ return Result.GetCompletedQuestListByUserIdResult.fromDict(data);
1281
975
  });
1282
976
  };
1283
977
  Gs2QuestRestClient.prototype.deleteCompletedQuestListByUserId = function (request) {
@@ -1301,13 +995,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
1301
995
  var params = {
1302
996
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1303
997
  };
1304
- return axios_1.default.delete(url, {
1305
- params: params,
1306
- headers: headers,
1307
- }).then(function (response) {
1308
- return Result.DeleteCompletedQuestListByUserIdResult.fromDict(response.data);
1309
- }).catch(function (error) {
1310
- throw JSON.parse(error.response.data.message);
998
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
999
+ return Result.DeleteCompletedQuestListByUserIdResult.fromDict(data);
1311
1000
  });
1312
1001
  };
1313
1002
  Gs2QuestRestClient.prototype.describeQuestGroupModels = function (request) {
@@ -1323,13 +1012,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
1323
1012
  var params = {
1324
1013
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1325
1014
  };
1326
- return axios_1.default.get(url, {
1327
- params: params,
1328
- headers: headers,
1329
- }).then(function (response) {
1330
- return Result.DescribeQuestGroupModelsResult.fromDict(response.data);
1331
- }).catch(function (error) {
1332
- throw JSON.parse(error.response.data.message);
1015
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1016
+ return Result.DescribeQuestGroupModelsResult.fromDict(data);
1333
1017
  });
1334
1018
  };
1335
1019
  Gs2QuestRestClient.prototype.getQuestGroupModel = function (request) {
@@ -1346,13 +1030,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
1346
1030
  var params = {
1347
1031
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
1348
1032
  };
1349
- return axios_1.default.get(url, {
1350
- params: params,
1351
- headers: headers,
1352
- }).then(function (response) {
1353
- return Result.GetQuestGroupModelResult.fromDict(response.data);
1354
- }).catch(function (error) {
1355
- throw JSON.parse(error.response.data.message);
1033
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1034
+ return Result.GetQuestGroupModelResult.fromDict(data);
1356
1035
  });
1357
1036
  };
1358
1037
  Gs2QuestRestClient.prototype.describeQuestModels = function (request) {
@@ -1369,13 +1048,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
1369
1048
  var params = {
1370
1049
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
1371
1050
  };
1372
- return axios_1.default.get(url, {
1373
- params: params,
1374
- headers: headers,
1375
- }).then(function (response) {
1376
- return Result.DescribeQuestModelsResult.fromDict(response.data);
1377
- }).catch(function (error) {
1378
- throw JSON.parse(error.response.data.message);
1051
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1052
+ return Result.DescribeQuestModelsResult.fromDict(data);
1379
1053
  });
1380
1054
  };
1381
1055
  Gs2QuestRestClient.prototype.getQuestModel = function (request) {
@@ -1393,13 +1067,8 @@ var Gs2QuestRestClient = /** @class */ (function (_super) {
1393
1067
  var params = {
1394
1068
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1395
1069
  };
1396
- return axios_1.default.get(url, {
1397
- params: params,
1398
- headers: headers,
1399
- }).then(function (response) {
1400
- return Result.GetQuestModelResult.fromDict(response.data);
1401
- }).catch(function (error) {
1402
- throw JSON.parse(error.response.data.message);
1070
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1071
+ return Result.GetQuestModelResult.fromDict(data);
1403
1072
  });
1404
1073
  };
1405
1074
  Gs2QuestRestClient.ENDPOINT_HOST = null;