gs2 1.4.110 → 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 (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 +1 -1
  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/account/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 Gs2AccountRestClient = /** @class */ (function (_super) {
24
23
  tslib_1.__extends(Gs2AccountRestClient, _super);
25
24
  function Gs2AccountRestClient(session) {
@@ -40,13 +39,8 @@ var Gs2AccountRestClient = /** @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
  Gs2AccountRestClient.prototype.createNamespace = function (request) {
@@ -73,17 +67,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
73
67
  'unBanScript': (_v = (_u = request.getUnBanScript()) === null || _u === void 0 ? void 0 : _u.toDict()) !== null && _v !== void 0 ? _v : null,
74
68
  'logSetting': (_x = (_w = request.getLogSetting()) === null || _w === void 0 ? void 0 : _w.toDict()) !== null && _x !== void 0 ? _x : null,
75
69
  };
76
- return axios_1.default.post(url, body, {
77
- headers: headers,
78
- }).then(function (response) {
79
- return Result.CreateNamespaceResult.fromDict(response.data);
80
- }).catch(function (error) {
81
- if (error.response) {
82
- throw JSON.parse(error.response.data.message);
83
- }
84
- else {
85
- throw [];
86
- }
70
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
71
+ return Result.CreateNamespaceResult.fromDict(data);
87
72
  });
88
73
  };
89
74
  Gs2AccountRestClient.prototype.getNamespaceStatus = function (request) {
@@ -99,13 +84,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
99
84
  var params = {
100
85
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
101
86
  };
102
- return axios_1.default.get(url, {
103
- params: params,
104
- headers: headers,
105
- }).then(function (response) {
106
- return Result.GetNamespaceStatusResult.fromDict(response.data);
107
- }).catch(function (error) {
108
- throw JSON.parse(error.response.data.message);
87
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
88
+ return Result.GetNamespaceStatusResult.fromDict(data);
109
89
  });
110
90
  };
111
91
  Gs2AccountRestClient.prototype.getNamespace = function (request) {
@@ -121,13 +101,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
121
101
  var params = {
122
102
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
123
103
  };
124
- return axios_1.default.get(url, {
125
- params: params,
126
- headers: headers,
127
- }).then(function (response) {
128
- return Result.GetNamespaceResult.fromDict(response.data);
129
- }).catch(function (error) {
130
- throw JSON.parse(error.response.data.message);
104
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
105
+ return Result.GetNamespaceResult.fromDict(data);
131
106
  });
132
107
  };
133
108
  Gs2AccountRestClient.prototype.updateNamespace = function (request) {
@@ -153,17 +128,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
153
128
  'unBanScript': (_v = (_u = request.getUnBanScript()) === null || _u === void 0 ? void 0 : _u.toDict()) !== null && _v !== void 0 ? _v : null,
154
129
  'logSetting': (_x = (_w = request.getLogSetting()) === null || _w === void 0 ? void 0 : _w.toDict()) !== null && _x !== void 0 ? _x : null,
155
130
  };
156
- return axios_1.default.put(url, body, {
157
- headers: headers,
158
- }).then(function (response) {
159
- return Result.UpdateNamespaceResult.fromDict(response.data);
160
- }).catch(function (error) {
161
- if (error.response) {
162
- throw JSON.parse(error.response.data.message);
163
- }
164
- else {
165
- throw [];
166
- }
131
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
132
+ return Result.UpdateNamespaceResult.fromDict(data);
167
133
  });
168
134
  };
169
135
  Gs2AccountRestClient.prototype.deleteNamespace = function (request) {
@@ -179,13 +145,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
179
145
  var params = {
180
146
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
181
147
  };
182
- return axios_1.default.delete(url, {
183
- params: params,
184
- headers: headers,
185
- }).then(function (response) {
186
- return Result.DeleteNamespaceResult.fromDict(response.data);
187
- }).catch(function (error) {
188
- throw JSON.parse(error.response.data.message);
148
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
149
+ return Result.DeleteNamespaceResult.fromDict(data);
189
150
  });
190
151
  };
191
152
  Gs2AccountRestClient.prototype.getServiceVersion = function (request) {
@@ -200,13 +161,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
200
161
  var params = {
201
162
  'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
202
163
  };
203
- return axios_1.default.get(url, {
204
- params: params,
205
- headers: headers,
206
- }).then(function (response) {
207
- return Result.GetServiceVersionResult.fromDict(response.data);
208
- }).catch(function (error) {
209
- throw JSON.parse(error.response.data.message);
164
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
165
+ return Result.GetServiceVersionResult.fromDict(data);
210
166
  });
211
167
  };
212
168
  Gs2AccountRestClient.prototype.dumpUserDataByUserId = function (request) {
@@ -225,17 +181,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
225
181
  var body = {
226
182
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
227
183
  };
228
- return axios_1.default.post(url, body, {
229
- headers: headers,
230
- }).then(function (response) {
231
- return Result.DumpUserDataByUserIdResult.fromDict(response.data);
232
- }).catch(function (error) {
233
- if (error.response) {
234
- throw JSON.parse(error.response.data.message);
235
- }
236
- else {
237
- throw [];
238
- }
184
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
185
+ return Result.DumpUserDataByUserIdResult.fromDict(data);
239
186
  });
240
187
  };
241
188
  Gs2AccountRestClient.prototype.checkDumpUserDataByUserId = function (request) {
@@ -254,13 +201,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
254
201
  var params = {
255
202
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
256
203
  };
257
- return axios_1.default.get(url, {
258
- params: params,
259
- headers: headers,
260
- }).then(function (response) {
261
- return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
262
- }).catch(function (error) {
263
- throw JSON.parse(error.response.data.message);
204
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
205
+ return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
264
206
  });
265
207
  };
266
208
  Gs2AccountRestClient.prototype.cleanUserDataByUserId = function (request) {
@@ -279,17 +221,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
279
221
  var body = {
280
222
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
281
223
  };
282
- return axios_1.default.post(url, body, {
283
- headers: headers,
284
- }).then(function (response) {
285
- return Result.CleanUserDataByUserIdResult.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
- }
224
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
225
+ return Result.CleanUserDataByUserIdResult.fromDict(data);
293
226
  });
294
227
  };
295
228
  Gs2AccountRestClient.prototype.checkCleanUserDataByUserId = function (request) {
@@ -308,13 +241,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
308
241
  var params = {
309
242
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
310
243
  };
311
- return axios_1.default.get(url, {
312
- params: params,
313
- headers: headers,
314
- }).then(function (response) {
315
- return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
316
- }).catch(function (error) {
317
- throw JSON.parse(error.response.data.message);
244
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
245
+ return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
318
246
  });
319
247
  };
320
248
  Gs2AccountRestClient.prototype.prepareImportUserDataByUserId = function (request) {
@@ -333,17 +261,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
333
261
  var body = {
334
262
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
335
263
  };
336
- return axios_1.default.post(url, body, {
337
- headers: headers,
338
- }).then(function (response) {
339
- return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
340
- }).catch(function (error) {
341
- if (error.response) {
342
- throw JSON.parse(error.response.data.message);
343
- }
344
- else {
345
- throw [];
346
- }
264
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
265
+ return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
347
266
  });
348
267
  };
349
268
  Gs2AccountRestClient.prototype.importUserDataByUserId = function (request) {
@@ -363,17 +282,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
363
282
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
364
283
  'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
365
284
  };
366
- return axios_1.default.post(url, body, {
367
- headers: headers,
368
- }).then(function (response) {
369
- return Result.ImportUserDataByUserIdResult.fromDict(response.data);
370
- }).catch(function (error) {
371
- if (error.response) {
372
- throw JSON.parse(error.response.data.message);
373
- }
374
- else {
375
- throw [];
376
- }
285
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
286
+ return Result.ImportUserDataByUserIdResult.fromDict(data);
377
287
  });
378
288
  };
379
289
  Gs2AccountRestClient.prototype.checkImportUserDataByUserId = function (request) {
@@ -393,13 +303,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
393
303
  var params = {
394
304
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
395
305
  };
396
- return axios_1.default.get(url, {
397
- params: params,
398
- headers: headers,
399
- }).then(function (response) {
400
- return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
401
- }).catch(function (error) {
402
- throw JSON.parse(error.response.data.message);
306
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
307
+ return Result.CheckImportUserDataByUserIdResult.fromDict(data);
403
308
  });
404
309
  };
405
310
  Gs2AccountRestClient.prototype.describeAccounts = function (request) {
@@ -417,13 +322,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
417
322
  'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
418
323
  'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
419
324
  };
420
- return axios_1.default.get(url, {
421
- params: params,
422
- headers: headers,
423
- }).then(function (response) {
424
- return Result.DescribeAccountsResult.fromDict(response.data);
425
- }).catch(function (error) {
426
- throw JSON.parse(error.response.data.message);
325
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
326
+ return Result.DescribeAccountsResult.fromDict(data);
427
327
  });
428
328
  };
429
329
  Gs2AccountRestClient.prototype.createAccount = function (request) {
@@ -439,17 +339,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
439
339
  var body = {
440
340
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
441
341
  };
442
- return axios_1.default.post(url, body, {
443
- headers: headers,
444
- }).then(function (response) {
445
- return Result.CreateAccountResult.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.CreateAccountResult.fromDict(data);
453
344
  });
454
345
  };
455
346
  Gs2AccountRestClient.prototype.updateTimeOffset = function (request) {
@@ -473,17 +364,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
473
364
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
474
365
  'timeOffset': (_j = request.getTimeOffset()) !== null && _j !== void 0 ? _j : null,
475
366
  };
476
- return axios_1.default.put(url, body, {
477
- headers: headers,
478
- }).then(function (response) {
479
- return Result.UpdateTimeOffsetResult.fromDict(response.data);
480
- }).catch(function (error) {
481
- if (error.response) {
482
- throw JSON.parse(error.response.data.message);
483
- }
484
- else {
485
- throw [];
486
- }
367
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
368
+ return Result.UpdateTimeOffsetResult.fromDict(data);
487
369
  });
488
370
  };
489
371
  Gs2AccountRestClient.prototype.updateBanned = function (request) {
@@ -507,17 +389,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
507
389
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
508
390
  'banned': (_j = request.getBanned()) !== null && _j !== void 0 ? _j : null,
509
391
  };
510
- return axios_1.default.put(url, body, {
511
- headers: headers,
512
- }).then(function (response) {
513
- return Result.UpdateBannedResult.fromDict(response.data);
514
- }).catch(function (error) {
515
- if (error.response) {
516
- throw JSON.parse(error.response.data.message);
517
- }
518
- else {
519
- throw [];
520
- }
392
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
393
+ return Result.UpdateBannedResult.fromDict(data);
521
394
  });
522
395
  };
523
396
  Gs2AccountRestClient.prototype.addBan = function (request) {
@@ -541,17 +414,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
541
414
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
542
415
  'banStatus': (_k = (_j = request.getBanStatus()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
543
416
  };
544
- return axios_1.default.post(url, body, {
545
- headers: headers,
546
- }).then(function (response) {
547
- return Result.AddBanResult.fromDict(response.data);
548
- }).catch(function (error) {
549
- if (error.response) {
550
- throw JSON.parse(error.response.data.message);
551
- }
552
- else {
553
- throw [];
554
- }
417
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
418
+ return Result.AddBanResult.fromDict(data);
555
419
  });
556
420
  };
557
421
  Gs2AccountRestClient.prototype.removeBan = function (request) {
@@ -575,13 +439,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
575
439
  var params = {
576
440
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
577
441
  };
578
- return axios_1.default.delete(url, {
579
- params: params,
580
- headers: headers,
581
- }).then(function (response) {
582
- return Result.RemoveBanResult.fromDict(response.data);
583
- }).catch(function (error) {
584
- throw JSON.parse(error.response.data.message);
442
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
443
+ return Result.RemoveBanResult.fromDict(data);
585
444
  });
586
445
  };
587
446
  Gs2AccountRestClient.prototype.getAccount = function (request) {
@@ -602,13 +461,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
602
461
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
603
462
  'includeLastAuthenticatedAt': String((_h = request.getIncludeLastAuthenticatedAt()) !== null && _h !== void 0 ? _h : null),
604
463
  };
605
- return axios_1.default.get(url, {
606
- params: params,
607
- headers: headers,
608
- }).then(function (response) {
609
- return Result.GetAccountResult.fromDict(response.data);
610
- }).catch(function (error) {
611
- throw JSON.parse(error.response.data.message);
464
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
465
+ return Result.GetAccountResult.fromDict(data);
612
466
  });
613
467
  };
614
468
  Gs2AccountRestClient.prototype.deleteAccount = function (request) {
@@ -631,13 +485,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
631
485
  var params = {
632
486
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
633
487
  };
634
- return axios_1.default.delete(url, {
635
- params: params,
636
- headers: headers,
637
- }).then(function (response) {
638
- return Result.DeleteAccountResult.fromDict(response.data);
639
- }).catch(function (error) {
640
- throw JSON.parse(error.response.data.message);
488
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
489
+ return Result.DeleteAccountResult.fromDict(data);
641
490
  });
642
491
  };
643
492
  Gs2AccountRestClient.prototype.authentication = function (request) {
@@ -662,17 +511,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
662
511
  'keyId': (_j = request.getKeyId()) !== null && _j !== void 0 ? _j : null,
663
512
  'password': (_k = request.getPassword()) !== null && _k !== void 0 ? _k : null,
664
513
  };
665
- return axios_1.default.put(url, body, {
666
- headers: headers,
667
- }).then(function (response) {
668
- return Result.AuthenticationResult.fromDict(response.data);
669
- }).catch(function (error) {
670
- if (error.response) {
671
- throw JSON.parse(error.response.data.message);
672
- }
673
- else {
674
- throw [];
675
- }
514
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
515
+ return Result.AuthenticationResult.fromDict(data);
676
516
  });
677
517
  };
678
518
  Gs2AccountRestClient.prototype.describeTakeOvers = function (request) {
@@ -693,13 +533,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
693
533
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
694
534
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
695
535
  };
696
- return axios_1.default.get(url, {
697
- params: params,
698
- headers: headers,
699
- }).then(function (response) {
700
- return Result.DescribeTakeOversResult.fromDict(response.data);
701
- }).catch(function (error) {
702
- throw JSON.parse(error.response.data.message);
536
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
537
+ return Result.DescribeTakeOversResult.fromDict(data);
703
538
  });
704
539
  };
705
540
  Gs2AccountRestClient.prototype.describeTakeOversByUserId = function (request) {
@@ -721,13 +556,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
721
556
  'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
722
557
  'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
723
558
  };
724
- return axios_1.default.get(url, {
725
- params: params,
726
- headers: headers,
727
- }).then(function (response) {
728
- return Result.DescribeTakeOversByUserIdResult.fromDict(response.data);
729
- }).catch(function (error) {
730
- throw JSON.parse(error.response.data.message);
559
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
560
+ return Result.DescribeTakeOversByUserIdResult.fromDict(data);
731
561
  });
732
562
  };
733
563
  Gs2AccountRestClient.prototype.createTakeOver = function (request) {
@@ -752,17 +582,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
752
582
  'userIdentifier': (_h = request.getUserIdentifier()) !== null && _h !== void 0 ? _h : null,
753
583
  'password': (_j = request.getPassword()) !== null && _j !== void 0 ? _j : null,
754
584
  };
755
- return axios_1.default.post(url, body, {
756
- headers: headers,
757
- }).then(function (response) {
758
- return Result.CreateTakeOverResult.fromDict(response.data);
759
- }).catch(function (error) {
760
- if (error.response) {
761
- throw JSON.parse(error.response.data.message);
762
- }
763
- else {
764
- throw [];
765
- }
585
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
586
+ return Result.CreateTakeOverResult.fromDict(data);
766
587
  });
767
588
  };
768
589
  Gs2AccountRestClient.prototype.createTakeOverByUserId = function (request) {
@@ -788,17 +609,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
788
609
  'userIdentifier': (_k = request.getUserIdentifier()) !== null && _k !== void 0 ? _k : null,
789
610
  'password': (_l = request.getPassword()) !== null && _l !== void 0 ? _l : null,
790
611
  };
791
- return axios_1.default.post(url, body, {
792
- headers: headers,
793
- }).then(function (response) {
794
- return Result.CreateTakeOverByUserIdResult.fromDict(response.data);
795
- }).catch(function (error) {
796
- if (error.response) {
797
- throw JSON.parse(error.response.data.message);
798
- }
799
- else {
800
- throw [];
801
- }
612
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
613
+ return Result.CreateTakeOverByUserIdResult.fromDict(data);
802
614
  });
803
615
  };
804
616
  Gs2AccountRestClient.prototype.createTakeOverOpenIdConnect = function (request) {
@@ -822,17 +634,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
822
634
  'type': (_g = request.getType()) !== null && _g !== void 0 ? _g : null,
823
635
  'idToken': (_h = request.getIdToken()) !== null && _h !== void 0 ? _h : null,
824
636
  };
825
- return axios_1.default.post(url, body, {
826
- headers: headers,
827
- }).then(function (response) {
828
- return Result.CreateTakeOverOpenIdConnectResult.fromDict(response.data);
829
- }).catch(function (error) {
830
- if (error.response) {
831
- throw JSON.parse(error.response.data.message);
832
- }
833
- else {
834
- throw [];
835
- }
637
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
638
+ return Result.CreateTakeOverOpenIdConnectResult.fromDict(data);
836
639
  });
837
640
  };
838
641
  Gs2AccountRestClient.prototype.createTakeOverOpenIdConnectAndByUserId = function (request) {
@@ -857,17 +660,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
857
660
  'type': (_j = request.getType()) !== null && _j !== void 0 ? _j : null,
858
661
  'idToken': (_k = request.getIdToken()) !== null && _k !== void 0 ? _k : null,
859
662
  };
860
- return axios_1.default.post(url, body, {
861
- headers: headers,
862
- }).then(function (response) {
863
- return Result.CreateTakeOverOpenIdConnectAndByUserIdResult.fromDict(response.data);
864
- }).catch(function (error) {
865
- if (error.response) {
866
- throw JSON.parse(error.response.data.message);
867
- }
868
- else {
869
- throw [];
870
- }
663
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
664
+ return Result.CreateTakeOverOpenIdConnectAndByUserIdResult.fromDict(data);
871
665
  });
872
666
  };
873
667
  Gs2AccountRestClient.prototype.getTakeOver = function (request) {
@@ -887,13 +681,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
887
681
  var params = {
888
682
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
889
683
  };
890
- return axios_1.default.get(url, {
891
- params: params,
892
- headers: headers,
893
- }).then(function (response) {
894
- return Result.GetTakeOverResult.fromDict(response.data);
895
- }).catch(function (error) {
896
- throw JSON.parse(error.response.data.message);
684
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
685
+ return Result.GetTakeOverResult.fromDict(data);
897
686
  });
898
687
  };
899
688
  Gs2AccountRestClient.prototype.getTakeOverByUserId = function (request) {
@@ -914,13 +703,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
914
703
  var params = {
915
704
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
916
705
  };
917
- return axios_1.default.get(url, {
918
- params: params,
919
- headers: headers,
920
- }).then(function (response) {
921
- return Result.GetTakeOverByUserIdResult.fromDict(response.data);
922
- }).catch(function (error) {
923
- throw JSON.parse(error.response.data.message);
706
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
707
+ return Result.GetTakeOverByUserIdResult.fromDict(data);
924
708
  });
925
709
  };
926
710
  Gs2AccountRestClient.prototype.updateTakeOver = function (request) {
@@ -945,17 +729,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
945
729
  'oldPassword': (_j = request.getOldPassword()) !== null && _j !== void 0 ? _j : null,
946
730
  'password': (_k = request.getPassword()) !== null && _k !== void 0 ? _k : null,
947
731
  };
948
- return axios_1.default.put(url, body, {
949
- headers: headers,
950
- }).then(function (response) {
951
- return Result.UpdateTakeOverResult.fromDict(response.data);
952
- }).catch(function (error) {
953
- if (error.response) {
954
- throw JSON.parse(error.response.data.message);
955
- }
956
- else {
957
- throw [];
958
- }
732
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
733
+ return Result.UpdateTakeOverResult.fromDict(data);
959
734
  });
960
735
  };
961
736
  Gs2AccountRestClient.prototype.updateTakeOverByUserId = function (request) {
@@ -981,17 +756,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
981
756
  'oldPassword': (_l = request.getOldPassword()) !== null && _l !== void 0 ? _l : null,
982
757
  'password': (_m = request.getPassword()) !== null && _m !== void 0 ? _m : null,
983
758
  };
984
- return axios_1.default.put(url, body, {
985
- headers: headers,
986
- }).then(function (response) {
987
- return Result.UpdateTakeOverByUserIdResult.fromDict(response.data);
988
- }).catch(function (error) {
989
- if (error.response) {
990
- throw JSON.parse(error.response.data.message);
991
- }
992
- else {
993
- throw [];
994
- }
759
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
760
+ return Result.UpdateTakeOverByUserIdResult.fromDict(data);
995
761
  });
996
762
  };
997
763
  Gs2AccountRestClient.prototype.deleteTakeOver = function (request) {
@@ -1014,13 +780,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1014
780
  var params = {
1015
781
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1016
782
  };
1017
- return axios_1.default.delete(url, {
1018
- params: params,
1019
- headers: headers,
1020
- }).then(function (response) {
1021
- return Result.DeleteTakeOverResult.fromDict(response.data);
1022
- }).catch(function (error) {
1023
- throw JSON.parse(error.response.data.message);
783
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
784
+ return Result.DeleteTakeOverResult.fromDict(data);
1024
785
  });
1025
786
  };
1026
787
  Gs2AccountRestClient.prototype.deleteTakeOverByUserIdentifier = function (request) {
@@ -1041,13 +802,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1041
802
  var params = {
1042
803
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
1043
804
  };
1044
- return axios_1.default.delete(url, {
1045
- params: params,
1046
- headers: headers,
1047
- }).then(function (response) {
1048
- return Result.DeleteTakeOverByUserIdentifierResult.fromDict(response.data);
1049
- }).catch(function (error) {
1050
- throw JSON.parse(error.response.data.message);
805
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
806
+ return Result.DeleteTakeOverByUserIdentifierResult.fromDict(data);
1051
807
  });
1052
808
  };
1053
809
  Gs2AccountRestClient.prototype.deleteTakeOverByUserId = function (request) {
@@ -1071,13 +827,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1071
827
  var params = {
1072
828
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1073
829
  };
1074
- return axios_1.default.delete(url, {
1075
- params: params,
1076
- headers: headers,
1077
- }).then(function (response) {
1078
- return Result.DeleteTakeOverByUserIdResult.fromDict(response.data);
1079
- }).catch(function (error) {
1080
- throw JSON.parse(error.response.data.message);
830
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
831
+ return Result.DeleteTakeOverByUserIdResult.fromDict(data);
1081
832
  });
1082
833
  };
1083
834
  Gs2AccountRestClient.prototype.doTakeOver = function (request) {
@@ -1096,17 +847,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1096
847
  'userIdentifier': (_g = request.getUserIdentifier()) !== null && _g !== void 0 ? _g : null,
1097
848
  'password': (_h = request.getPassword()) !== null && _h !== void 0 ? _h : null,
1098
849
  };
1099
- return axios_1.default.post(url, body, {
1100
- headers: headers,
1101
- }).then(function (response) {
1102
- return Result.DoTakeOverResult.fromDict(response.data);
1103
- }).catch(function (error) {
1104
- if (error.response) {
1105
- throw JSON.parse(error.response.data.message);
1106
- }
1107
- else {
1108
- throw [];
1109
- }
850
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
851
+ return Result.DoTakeOverResult.fromDict(data);
1110
852
  });
1111
853
  };
1112
854
  Gs2AccountRestClient.prototype.doTakeOverOpenIdConnect = function (request) {
@@ -1124,17 +866,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1124
866
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
1125
867
  'idToken': (_g = request.getIdToken()) !== null && _g !== void 0 ? _g : null,
1126
868
  };
1127
- return axios_1.default.post(url, body, {
1128
- headers: headers,
1129
- }).then(function (response) {
1130
- return Result.DoTakeOverOpenIdConnectResult.fromDict(response.data);
1131
- }).catch(function (error) {
1132
- if (error.response) {
1133
- throw JSON.parse(error.response.data.message);
1134
- }
1135
- else {
1136
- throw [];
1137
- }
869
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
870
+ return Result.DoTakeOverOpenIdConnectResult.fromDict(data);
1138
871
  });
1139
872
  };
1140
873
  Gs2AccountRestClient.prototype.getAuthorizationUrl = function (request) {
@@ -1151,13 +884,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1151
884
  var params = {
1152
885
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
1153
886
  };
1154
- return axios_1.default.get(url, {
1155
- params: params,
1156
- headers: headers,
1157
- }).then(function (response) {
1158
- return Result.GetAuthorizationUrlResult.fromDict(response.data);
1159
- }).catch(function (error) {
1160
- throw JSON.parse(error.response.data.message);
887
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
888
+ return Result.GetAuthorizationUrlResult.fromDict(data);
1161
889
  });
1162
890
  };
1163
891
  Gs2AccountRestClient.prototype.describePlatformIds = function (request) {
@@ -1178,13 +906,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1178
906
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
1179
907
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
1180
908
  };
1181
- return axios_1.default.get(url, {
1182
- params: params,
1183
- headers: headers,
1184
- }).then(function (response) {
1185
- return Result.DescribePlatformIdsResult.fromDict(response.data);
1186
- }).catch(function (error) {
1187
- throw JSON.parse(error.response.data.message);
909
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
910
+ return Result.DescribePlatformIdsResult.fromDict(data);
1188
911
  });
1189
912
  };
1190
913
  Gs2AccountRestClient.prototype.describePlatformIdsByUserId = function (request) {
@@ -1206,13 +929,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1206
929
  'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
1207
930
  'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
1208
931
  };
1209
- return axios_1.default.get(url, {
1210
- params: params,
1211
- headers: headers,
1212
- }).then(function (response) {
1213
- return Result.DescribePlatformIdsByUserIdResult.fromDict(response.data);
1214
- }).catch(function (error) {
1215
- throw JSON.parse(error.response.data.message);
932
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
933
+ return Result.DescribePlatformIdsByUserIdResult.fromDict(data);
1216
934
  });
1217
935
  };
1218
936
  Gs2AccountRestClient.prototype.createPlatformId = function (request) {
@@ -1236,17 +954,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1236
954
  'type': (_g = request.getType()) !== null && _g !== void 0 ? _g : null,
1237
955
  'userIdentifier': (_h = request.getUserIdentifier()) !== null && _h !== void 0 ? _h : null,
1238
956
  };
1239
- return axios_1.default.post(url, body, {
1240
- headers: headers,
1241
- }).then(function (response) {
1242
- return Result.CreatePlatformIdResult.fromDict(response.data);
1243
- }).catch(function (error) {
1244
- if (error.response) {
1245
- throw JSON.parse(error.response.data.message);
1246
- }
1247
- else {
1248
- throw [];
1249
- }
957
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
958
+ return Result.CreatePlatformIdResult.fromDict(data);
1250
959
  });
1251
960
  };
1252
961
  Gs2AccountRestClient.prototype.createPlatformIdByUserId = function (request) {
@@ -1271,17 +980,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1271
980
  'type': (_j = request.getType()) !== null && _j !== void 0 ? _j : null,
1272
981
  'userIdentifier': (_k = request.getUserIdentifier()) !== null && _k !== void 0 ? _k : null,
1273
982
  };
1274
- return axios_1.default.post(url, body, {
1275
- headers: headers,
1276
- }).then(function (response) {
1277
- return Result.CreatePlatformIdByUserIdResult.fromDict(response.data);
1278
- }).catch(function (error) {
1279
- if (error.response) {
1280
- throw JSON.parse(error.response.data.message);
1281
- }
1282
- else {
1283
- throw [];
1284
- }
983
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
984
+ return Result.CreatePlatformIdByUserIdResult.fromDict(data);
1285
985
  });
1286
986
  };
1287
987
  Gs2AccountRestClient.prototype.getPlatformId = function (request) {
@@ -1301,13 +1001,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1301
1001
  var params = {
1302
1002
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
1303
1003
  };
1304
- return axios_1.default.get(url, {
1305
- params: params,
1306
- headers: headers,
1307
- }).then(function (response) {
1308
- return Result.GetPlatformIdResult.fromDict(response.data);
1309
- }).catch(function (error) {
1310
- throw JSON.parse(error.response.data.message);
1004
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1005
+ return Result.GetPlatformIdResult.fromDict(data);
1311
1006
  });
1312
1007
  };
1313
1008
  Gs2AccountRestClient.prototype.getPlatformIdByUserId = function (request) {
@@ -1328,13 +1023,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1328
1023
  var params = {
1329
1024
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
1330
1025
  };
1331
- return axios_1.default.get(url, {
1332
- params: params,
1333
- headers: headers,
1334
- }).then(function (response) {
1335
- return Result.GetPlatformIdByUserIdResult.fromDict(response.data);
1336
- }).catch(function (error) {
1337
- throw JSON.parse(error.response.data.message);
1026
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1027
+ return Result.GetPlatformIdByUserIdResult.fromDict(data);
1338
1028
  });
1339
1029
  };
1340
1030
  Gs2AccountRestClient.prototype.findPlatformId = function (request) {
@@ -1355,13 +1045,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1355
1045
  var params = {
1356
1046
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
1357
1047
  };
1358
- return axios_1.default.get(url, {
1359
- params: params,
1360
- headers: headers,
1361
- }).then(function (response) {
1362
- return Result.FindPlatformIdResult.fromDict(response.data);
1363
- }).catch(function (error) {
1364
- throw JSON.parse(error.response.data.message);
1048
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1049
+ return Result.FindPlatformIdResult.fromDict(data);
1365
1050
  });
1366
1051
  };
1367
1052
  Gs2AccountRestClient.prototype.findPlatformIdByUserId = function (request) {
@@ -1384,13 +1069,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1384
1069
  'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
1385
1070
  'dontResolveDataOwner': String((_m = request.getDontResolveDataOwner()) !== null && _m !== void 0 ? _m : null),
1386
1071
  };
1387
- return axios_1.default.get(url, {
1388
- params: params,
1389
- headers: headers,
1390
- }).then(function (response) {
1391
- return Result.FindPlatformIdByUserIdResult.fromDict(response.data);
1392
- }).catch(function (error) {
1393
- throw JSON.parse(error.response.data.message);
1072
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1073
+ return Result.FindPlatformIdByUserIdResult.fromDict(data);
1394
1074
  });
1395
1075
  };
1396
1076
  Gs2AccountRestClient.prototype.deletePlatformId = function (request) {
@@ -1414,13 +1094,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1414
1094
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1415
1095
  'userIdentifier': String((_j = request.getUserIdentifier()) !== null && _j !== void 0 ? _j : null),
1416
1096
  };
1417
- return axios_1.default.delete(url, {
1418
- params: params,
1419
- headers: headers,
1420
- }).then(function (response) {
1421
- return Result.DeletePlatformIdResult.fromDict(response.data);
1422
- }).catch(function (error) {
1423
- throw JSON.parse(error.response.data.message);
1097
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
1098
+ return Result.DeletePlatformIdResult.fromDict(data);
1424
1099
  });
1425
1100
  };
1426
1101
  Gs2AccountRestClient.prototype.deletePlatformIdByUserIdentifier = function (request) {
@@ -1441,13 +1116,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1441
1116
  var params = {
1442
1117
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
1443
1118
  };
1444
- return axios_1.default.delete(url, {
1445
- params: params,
1446
- headers: headers,
1447
- }).then(function (response) {
1448
- return Result.DeletePlatformIdByUserIdentifierResult.fromDict(response.data);
1449
- }).catch(function (error) {
1450
- throw JSON.parse(error.response.data.message);
1119
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
1120
+ return Result.DeletePlatformIdByUserIdentifierResult.fromDict(data);
1451
1121
  });
1452
1122
  };
1453
1123
  Gs2AccountRestClient.prototype.deletePlatformIdByUserId = function (request) {
@@ -1471,13 +1141,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1471
1141
  var params = {
1472
1142
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1473
1143
  };
1474
- return axios_1.default.delete(url, {
1475
- params: params,
1476
- headers: headers,
1477
- }).then(function (response) {
1478
- return Result.DeletePlatformIdByUserIdResult.fromDict(response.data);
1479
- }).catch(function (error) {
1480
- throw JSON.parse(error.response.data.message);
1144
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
1145
+ return Result.DeletePlatformIdByUserIdResult.fromDict(data);
1481
1146
  });
1482
1147
  };
1483
1148
  Gs2AccountRestClient.prototype.getDataOwnerByUserId = function (request) {
@@ -1497,13 +1162,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1497
1162
  var params = {
1498
1163
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
1499
1164
  };
1500
- return axios_1.default.get(url, {
1501
- params: params,
1502
- headers: headers,
1503
- }).then(function (response) {
1504
- return Result.GetDataOwnerByUserIdResult.fromDict(response.data);
1505
- }).catch(function (error) {
1506
- throw JSON.parse(error.response.data.message);
1165
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1166
+ return Result.GetDataOwnerByUserIdResult.fromDict(data);
1507
1167
  });
1508
1168
  };
1509
1169
  Gs2AccountRestClient.prototype.updateDataOwnerByUserId = function (request) {
@@ -1527,17 +1187,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1527
1187
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1528
1188
  'dataOwnerName': (_j = request.getDataOwnerName()) !== null && _j !== void 0 ? _j : null,
1529
1189
  };
1530
- return axios_1.default.put(url, body, {
1531
- headers: headers,
1532
- }).then(function (response) {
1533
- return Result.UpdateDataOwnerByUserIdResult.fromDict(response.data);
1534
- }).catch(function (error) {
1535
- if (error.response) {
1536
- throw JSON.parse(error.response.data.message);
1537
- }
1538
- else {
1539
- throw [];
1540
- }
1190
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1191
+ return Result.UpdateDataOwnerByUserIdResult.fromDict(data);
1541
1192
  });
1542
1193
  };
1543
1194
  Gs2AccountRestClient.prototype.deleteDataOwnerByUserId = function (request) {
@@ -1560,13 +1211,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1560
1211
  var params = {
1561
1212
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1562
1213
  };
1563
- return axios_1.default.delete(url, {
1564
- params: params,
1565
- headers: headers,
1566
- }).then(function (response) {
1567
- return Result.DeleteDataOwnerByUserIdResult.fromDict(response.data);
1568
- }).catch(function (error) {
1569
- throw JSON.parse(error.response.data.message);
1214
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
1215
+ return Result.DeleteDataOwnerByUserIdResult.fromDict(data);
1570
1216
  });
1571
1217
  };
1572
1218
  Gs2AccountRestClient.prototype.describeTakeOverTypeModels = function (request) {
@@ -1582,13 +1228,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1582
1228
  var params = {
1583
1229
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1584
1230
  };
1585
- return axios_1.default.get(url, {
1586
- params: params,
1587
- headers: headers,
1588
- }).then(function (response) {
1589
- return Result.DescribeTakeOverTypeModelsResult.fromDict(response.data);
1590
- }).catch(function (error) {
1591
- throw JSON.parse(error.response.data.message);
1231
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1232
+ return Result.DescribeTakeOverTypeModelsResult.fromDict(data);
1592
1233
  });
1593
1234
  };
1594
1235
  Gs2AccountRestClient.prototype.getTakeOverTypeModel = function (request) {
@@ -1605,13 +1246,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1605
1246
  var params = {
1606
1247
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
1607
1248
  };
1608
- return axios_1.default.get(url, {
1609
- params: params,
1610
- headers: headers,
1611
- }).then(function (response) {
1612
- return Result.GetTakeOverTypeModelResult.fromDict(response.data);
1613
- }).catch(function (error) {
1614
- throw JSON.parse(error.response.data.message);
1249
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1250
+ return Result.GetTakeOverTypeModelResult.fromDict(data);
1615
1251
  });
1616
1252
  };
1617
1253
  Gs2AccountRestClient.prototype.describeTakeOverTypeModelMasters = function (request) {
@@ -1629,13 +1265,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1629
1265
  'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
1630
1266
  'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
1631
1267
  };
1632
- return axios_1.default.get(url, {
1633
- params: params,
1634
- headers: headers,
1635
- }).then(function (response) {
1636
- return Result.DescribeTakeOverTypeModelMastersResult.fromDict(response.data);
1637
- }).catch(function (error) {
1638
- throw JSON.parse(error.response.data.message);
1268
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1269
+ return Result.DescribeTakeOverTypeModelMastersResult.fromDict(data);
1639
1270
  });
1640
1271
  };
1641
1272
  Gs2AccountRestClient.prototype.createTakeOverTypeModelMaster = function (request) {
@@ -1655,17 +1286,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1655
1286
  'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
1656
1287
  'openIdConnectSetting': (_j = (_h = request.getOpenIdConnectSetting()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
1657
1288
  };
1658
- return axios_1.default.post(url, body, {
1659
- headers: headers,
1660
- }).then(function (response) {
1661
- return Result.CreateTakeOverTypeModelMasterResult.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
- }
1289
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1290
+ return Result.CreateTakeOverTypeModelMasterResult.fromDict(data);
1669
1291
  });
1670
1292
  };
1671
1293
  Gs2AccountRestClient.prototype.getTakeOverTypeModelMaster = function (request) {
@@ -1682,13 +1304,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1682
1304
  var params = {
1683
1305
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
1684
1306
  };
1685
- return axios_1.default.get(url, {
1686
- params: params,
1687
- headers: headers,
1688
- }).then(function (response) {
1689
- return Result.GetTakeOverTypeModelMasterResult.fromDict(response.data);
1690
- }).catch(function (error) {
1691
- throw JSON.parse(error.response.data.message);
1307
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1308
+ return Result.GetTakeOverTypeModelMasterResult.fromDict(data);
1692
1309
  });
1693
1310
  };
1694
1311
  Gs2AccountRestClient.prototype.updateTakeOverTypeModelMaster = function (request) {
@@ -1708,17 +1325,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1708
1325
  'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
1709
1326
  'openIdConnectSetting': (_k = (_j = request.getOpenIdConnectSetting()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
1710
1327
  };
1711
- return axios_1.default.put(url, body, {
1712
- headers: headers,
1713
- }).then(function (response) {
1714
- return Result.UpdateTakeOverTypeModelMasterResult.fromDict(response.data);
1715
- }).catch(function (error) {
1716
- if (error.response) {
1717
- throw JSON.parse(error.response.data.message);
1718
- }
1719
- else {
1720
- throw [];
1721
- }
1328
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1329
+ return Result.UpdateTakeOverTypeModelMasterResult.fromDict(data);
1722
1330
  });
1723
1331
  };
1724
1332
  Gs2AccountRestClient.prototype.deleteTakeOverTypeModelMaster = function (request) {
@@ -1735,13 +1343,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1735
1343
  var params = {
1736
1344
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
1737
1345
  };
1738
- return axios_1.default.delete(url, {
1739
- params: params,
1740
- headers: headers,
1741
- }).then(function (response) {
1742
- return Result.DeleteTakeOverTypeModelMasterResult.fromDict(response.data);
1743
- }).catch(function (error) {
1744
- throw JSON.parse(error.response.data.message);
1346
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
1347
+ return Result.DeleteTakeOverTypeModelMasterResult.fromDict(data);
1745
1348
  });
1746
1349
  };
1747
1350
  Gs2AccountRestClient.prototype.exportMaster = function (request) {
@@ -1757,13 +1360,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1757
1360
  var params = {
1758
1361
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1759
1362
  };
1760
- return axios_1.default.get(url, {
1761
- params: params,
1762
- headers: headers,
1763
- }).then(function (response) {
1764
- return Result.ExportMasterResult.fromDict(response.data);
1765
- }).catch(function (error) {
1766
- throw JSON.parse(error.response.data.message);
1363
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1364
+ return Result.ExportMasterResult.fromDict(data);
1767
1365
  });
1768
1366
  };
1769
1367
  Gs2AccountRestClient.prototype.getCurrentModelMaster = function (request) {
@@ -1779,13 +1377,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1779
1377
  var params = {
1780
1378
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1781
1379
  };
1782
- return axios_1.default.get(url, {
1783
- params: params,
1784
- headers: headers,
1785
- }).then(function (response) {
1786
- return Result.GetCurrentModelMasterResult.fromDict(response.data);
1787
- }).catch(function (error) {
1788
- throw JSON.parse(error.response.data.message);
1380
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1381
+ return Result.GetCurrentModelMasterResult.fromDict(data);
1789
1382
  });
1790
1383
  };
1791
1384
  Gs2AccountRestClient.prototype.preUpdateCurrentModelMaster = function (request) {
@@ -1801,17 +1394,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1801
1394
  var body = {
1802
1395
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1803
1396
  };
1804
- return axios_1.default.post(url, body, {
1805
- headers: headers,
1806
- }).then(function (response) {
1807
- return Result.PreUpdateCurrentModelMasterResult.fromDict(response.data);
1808
- }).catch(function (error) {
1809
- if (error.response) {
1810
- throw JSON.parse(error.response.data.message);
1811
- }
1812
- else {
1813
- throw [];
1814
- }
1397
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1398
+ return Result.PreUpdateCurrentModelMasterResult.fromDict(data);
1815
1399
  });
1816
1400
  };
1817
1401
  Gs2AccountRestClient.prototype.updateCurrentModelMaster = function (request) {
@@ -1830,17 +1414,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1830
1414
  'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
1831
1415
  'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
1832
1416
  };
1833
- return axios_1.default.put(url, body, {
1834
- headers: headers,
1835
- }).then(function (response) {
1836
- return Result.UpdateCurrentModelMasterResult.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
- }
1417
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1418
+ return Result.UpdateCurrentModelMasterResult.fromDict(data);
1844
1419
  });
1845
1420
  };
1846
1421
  Gs2AccountRestClient.prototype.updateCurrentModelMasterFromGitHub = function (request) {
@@ -1857,17 +1432,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1857
1432
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1858
1433
  'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
1859
1434
  };
1860
- return axios_1.default.put(url, body, {
1861
- headers: headers,
1862
- }).then(function (response) {
1863
- return Result.UpdateCurrentModelMasterFromGitHubResult.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
- }
1435
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1436
+ return Result.UpdateCurrentModelMasterFromGitHubResult.fromDict(data);
1871
1437
  });
1872
1438
  };
1873
1439
  Gs2AccountRestClient.ENDPOINT_HOST = null;