gs2 1.4.109 → 1.4.111

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/account/request/FindPlatformIdByUserIdRequest.d.ts +4 -0
  2. package/account/request/FindPlatformIdByUserIdRequest.js +14 -0
  3. package/account/request/FindPlatformIdByUserIdRequest.js.map +1 -1
  4. package/account/rest.js +132 -565
  5. package/account/rest.js.map +1 -1
  6. package/adReward/rest.js +44 -203
  7. package/adReward/rest.js.map +1 -1
  8. package/auth/rest.js +10 -52
  9. package/auth/rest.js.map +1 -1
  10. package/buff/rest.js +56 -249
  11. package/buff/rest.js.map +1 -1
  12. package/chat/rest.js +108 -463
  13. package/chat/rest.js.map +1 -1
  14. package/core/AbstractGs2RestClient.d.ts +9 -0
  15. package/core/AbstractGs2RestClient.js +48 -0
  16. package/core/AbstractGs2RestClient.js.map +1 -1
  17. package/core/model.d.ts +9 -1
  18. package/core/model.js +4 -1
  19. package/core/model.js.map +1 -1
  20. package/datastore/rest.js +78 -370
  21. package/datastore/rest.js.map +1 -1
  22. package/deploy/rest.js +48 -209
  23. package/deploy/rest.js.map +1 -1
  24. package/dictionary/rest.js +102 -450
  25. package/dictionary/rest.js.map +1 -1
  26. package/distributor/rest.js +96 -465
  27. package/distributor/rest.js.map +1 -1
  28. package/enchant/rest.js +112 -497
  29. package/enchant/rest.js.map +1 -1
  30. package/enhance/rest.js +100 -455
  31. package/enhance/rest.js.map +1 -1
  32. package/exchange/rest.js +108 -491
  33. package/exchange/rest.js.map +1 -1
  34. package/experience/rest.js +120 -561
  35. package/experience/rest.js.map +1 -1
  36. package/formation/rest.js +158 -686
  37. package/formation/rest.js.map +1 -1
  38. package/freeze/rest.js +12 -51
  39. package/freeze/rest.js.map +1 -1
  40. package/friend/rest.js +118 -490
  41. package/friend/rest.js.map +1 -1
  42. package/gateway/rest.js +56 -245
  43. package/gateway/rest.js.map +1 -1
  44. package/grade/rest.js +96 -449
  45. package/grade/rest.js.map +1 -1
  46. package/guard/rest.js +14 -58
  47. package/guard/rest.js.map +1 -1
  48. package/guild/rest.js +186 -840
  49. package/guild/rest.js.map +1 -1
  50. package/identifier/rest.js +60 -259
  51. package/identifier/rest.js.map +1 -1
  52. package/idle/rest.js +84 -387
  53. package/idle/rest.js.map +1 -1
  54. package/inbox/rest.js +96 -437
  55. package/inbox/rest.js.map +1 -1
  56. package/inventory/rest.js +270 -1206
  57. package/inventory/rest.js.map +1 -1
  58. package/jobQueue/rest.js +50 -220
  59. package/jobQueue/rest.js.map +1 -1
  60. package/key/rest.js +38 -166
  61. package/key/rest.js.map +1 -1
  62. package/limit/rest.js +80 -361
  63. package/limit/rest.js.map +1 -1
  64. package/lock/rest.js +28 -123
  65. package/lock/rest.js.map +1 -1
  66. package/log/rest.js +46 -186
  67. package/log/rest.js.map +1 -1
  68. package/loginReward/rest.js +82 -376
  69. package/loginReward/rest.js.map +1 -1
  70. package/lottery/rest.js +100 -427
  71. package/lottery/rest.js.map +1 -1
  72. package/matchmaking/rest.js +146 -644
  73. package/matchmaking/rest.js.map +1 -1
  74. package/megaField/rest.js +68 -307
  75. package/megaField/rest.js.map +1 -1
  76. package/mission/rest.js +158 -726
  77. package/mission/rest.js.map +1 -1
  78. package/money/rest.js +58 -264
  79. package/money/rest.js.map +1 -1
  80. package/money2/rest.js +126 -542
  81. package/money2/rest.js.map +1 -1
  82. package/news/rest.js +36 -147
  83. package/news/rest.js.map +1 -1
  84. package/package.json +1 -1
  85. package/project/request/WaitCleanUserDataRequest.d.ts +0 -4
  86. package/project/request/WaitCleanUserDataRequest.js +0 -14
  87. package/project/request/WaitCleanUserDataRequest.js.map +1 -1
  88. package/project/request/WaitDumpUserDataRequest.d.ts +0 -4
  89. package/project/request/WaitDumpUserDataRequest.js +0 -14
  90. package/project/request/WaitDumpUserDataRequest.js.map +1 -1
  91. package/project/request/WaitImportUserDataRequest.d.ts +0 -4
  92. package/project/request/WaitImportUserDataRequest.js +0 -14
  93. package/project/request/WaitImportUserDataRequest.js.map +1 -1
  94. package/project/rest.js +91 -411
  95. package/project/rest.js.map +1 -1
  96. package/quest/rest.js +100 -431
  97. package/quest/rest.js.map +1 -1
  98. package/ranking/rest.js +92 -387
  99. package/ranking/rest.js.map +1 -1
  100. package/ranking2/rest.js +220 -939
  101. package/ranking2/rest.js.map +1 -1
  102. package/realtime/rest.js +24 -97
  103. package/realtime/rest.js.map +1 -1
  104. package/schedule/rest.js +94 -418
  105. package/schedule/rest.js.map +1 -1
  106. package/script/rest.js +34 -156
  107. package/script/rest.js.map +1 -1
  108. package/seasonRating/rest.js +70 -314
  109. package/seasonRating/rest.js.map +1 -1
  110. package/serialKey/rest.js +84 -383
  111. package/serialKey/rest.js.map +1 -1
  112. package/showcase/rest.js +116 -515
  113. package/showcase/rest.js.map +1 -1
  114. package/skillTree/rest.js +82 -372
  115. package/skillTree/rest.js.map +1 -1
  116. package/stamina/rest.js +166 -798
  117. package/stamina/rest.js.map +1 -1
  118. package/stateMachine/rest.js +62 -270
  119. package/stateMachine/rest.js.map +1 -1
  120. package/version/rest.js +78 -346
  121. package/version/rest.js.map +1 -1
  122. package/watch/rest.js +156 -563
  123. package/watch/rest.js.map +1 -1
package/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,17 +1045,12 @@ 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) {
1368
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
1053
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
1369
1054
  var url = (((_a = Gs2AccountRestClient.ENDPOINT_HOST) !== null && _a !== void 0 ? _a : model_1.Gs2Constant.ENDPOINT_HOST) + '/{namespaceName}/account/{userId}/platformId/type/{type}/userIdentifier/{userIdentifier}')
1370
1055
  .replace('{service}', 'account')
1371
1056
  .replace('{region}', this.session.region)
@@ -1382,14 +1067,10 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1382
1067
  }
1383
1068
  var params = {
1384
1069
  'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
1070
+ 'dontResolveDataOwner': String((_m = request.getDontResolveDataOwner()) !== null && _m !== void 0 ? _m : null),
1385
1071
  };
1386
- return axios_1.default.get(url, {
1387
- params: params,
1388
- headers: headers,
1389
- }).then(function (response) {
1390
- return Result.FindPlatformIdByUserIdResult.fromDict(response.data);
1391
- }).catch(function (error) {
1392
- 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);
1393
1074
  });
1394
1075
  };
1395
1076
  Gs2AccountRestClient.prototype.deletePlatformId = function (request) {
@@ -1413,13 +1094,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1413
1094
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1414
1095
  'userIdentifier': String((_j = request.getUserIdentifier()) !== null && _j !== void 0 ? _j : null),
1415
1096
  };
1416
- return axios_1.default.delete(url, {
1417
- params: params,
1418
- headers: headers,
1419
- }).then(function (response) {
1420
- return Result.DeletePlatformIdResult.fromDict(response.data);
1421
- }).catch(function (error) {
1422
- 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);
1423
1099
  });
1424
1100
  };
1425
1101
  Gs2AccountRestClient.prototype.deletePlatformIdByUserIdentifier = function (request) {
@@ -1440,13 +1116,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1440
1116
  var params = {
1441
1117
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
1442
1118
  };
1443
- return axios_1.default.delete(url, {
1444
- params: params,
1445
- headers: headers,
1446
- }).then(function (response) {
1447
- return Result.DeletePlatformIdByUserIdentifierResult.fromDict(response.data);
1448
- }).catch(function (error) {
1449
- 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);
1450
1121
  });
1451
1122
  };
1452
1123
  Gs2AccountRestClient.prototype.deletePlatformIdByUserId = function (request) {
@@ -1470,13 +1141,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1470
1141
  var params = {
1471
1142
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1472
1143
  };
1473
- return axios_1.default.delete(url, {
1474
- params: params,
1475
- headers: headers,
1476
- }).then(function (response) {
1477
- return Result.DeletePlatformIdByUserIdResult.fromDict(response.data);
1478
- }).catch(function (error) {
1479
- 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);
1480
1146
  });
1481
1147
  };
1482
1148
  Gs2AccountRestClient.prototype.getDataOwnerByUserId = function (request) {
@@ -1496,13 +1162,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1496
1162
  var params = {
1497
1163
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
1498
1164
  };
1499
- return axios_1.default.get(url, {
1500
- params: params,
1501
- headers: headers,
1502
- }).then(function (response) {
1503
- return Result.GetDataOwnerByUserIdResult.fromDict(response.data);
1504
- }).catch(function (error) {
1505
- 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);
1506
1167
  });
1507
1168
  };
1508
1169
  Gs2AccountRestClient.prototype.updateDataOwnerByUserId = function (request) {
@@ -1526,17 +1187,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1526
1187
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1527
1188
  'dataOwnerName': (_j = request.getDataOwnerName()) !== null && _j !== void 0 ? _j : null,
1528
1189
  };
1529
- return axios_1.default.put(url, body, {
1530
- headers: headers,
1531
- }).then(function (response) {
1532
- return Result.UpdateDataOwnerByUserIdResult.fromDict(response.data);
1533
- }).catch(function (error) {
1534
- if (error.response) {
1535
- throw JSON.parse(error.response.data.message);
1536
- }
1537
- else {
1538
- throw [];
1539
- }
1190
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1191
+ return Result.UpdateDataOwnerByUserIdResult.fromDict(data);
1540
1192
  });
1541
1193
  };
1542
1194
  Gs2AccountRestClient.prototype.deleteDataOwnerByUserId = function (request) {
@@ -1559,13 +1211,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1559
1211
  var params = {
1560
1212
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1561
1213
  };
1562
- return axios_1.default.delete(url, {
1563
- params: params,
1564
- headers: headers,
1565
- }).then(function (response) {
1566
- return Result.DeleteDataOwnerByUserIdResult.fromDict(response.data);
1567
- }).catch(function (error) {
1568
- 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);
1569
1216
  });
1570
1217
  };
1571
1218
  Gs2AccountRestClient.prototype.describeTakeOverTypeModels = function (request) {
@@ -1581,13 +1228,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1581
1228
  var params = {
1582
1229
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1583
1230
  };
1584
- return axios_1.default.get(url, {
1585
- params: params,
1586
- headers: headers,
1587
- }).then(function (response) {
1588
- return Result.DescribeTakeOverTypeModelsResult.fromDict(response.data);
1589
- }).catch(function (error) {
1590
- 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);
1591
1233
  });
1592
1234
  };
1593
1235
  Gs2AccountRestClient.prototype.getTakeOverTypeModel = function (request) {
@@ -1604,13 +1246,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1604
1246
  var params = {
1605
1247
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
1606
1248
  };
1607
- return axios_1.default.get(url, {
1608
- params: params,
1609
- headers: headers,
1610
- }).then(function (response) {
1611
- return Result.GetTakeOverTypeModelResult.fromDict(response.data);
1612
- }).catch(function (error) {
1613
- 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);
1614
1251
  });
1615
1252
  };
1616
1253
  Gs2AccountRestClient.prototype.describeTakeOverTypeModelMasters = function (request) {
@@ -1628,13 +1265,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1628
1265
  'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
1629
1266
  'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
1630
1267
  };
1631
- return axios_1.default.get(url, {
1632
- params: params,
1633
- headers: headers,
1634
- }).then(function (response) {
1635
- return Result.DescribeTakeOverTypeModelMastersResult.fromDict(response.data);
1636
- }).catch(function (error) {
1637
- 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);
1638
1270
  });
1639
1271
  };
1640
1272
  Gs2AccountRestClient.prototype.createTakeOverTypeModelMaster = function (request) {
@@ -1654,17 +1286,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1654
1286
  'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
1655
1287
  'openIdConnectSetting': (_j = (_h = request.getOpenIdConnectSetting()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
1656
1288
  };
1657
- return axios_1.default.post(url, body, {
1658
- headers: headers,
1659
- }).then(function (response) {
1660
- return Result.CreateTakeOverTypeModelMasterResult.fromDict(response.data);
1661
- }).catch(function (error) {
1662
- if (error.response) {
1663
- throw JSON.parse(error.response.data.message);
1664
- }
1665
- else {
1666
- throw [];
1667
- }
1289
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1290
+ return Result.CreateTakeOverTypeModelMasterResult.fromDict(data);
1668
1291
  });
1669
1292
  };
1670
1293
  Gs2AccountRestClient.prototype.getTakeOverTypeModelMaster = function (request) {
@@ -1681,13 +1304,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1681
1304
  var params = {
1682
1305
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
1683
1306
  };
1684
- return axios_1.default.get(url, {
1685
- params: params,
1686
- headers: headers,
1687
- }).then(function (response) {
1688
- return Result.GetTakeOverTypeModelMasterResult.fromDict(response.data);
1689
- }).catch(function (error) {
1690
- 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);
1691
1309
  });
1692
1310
  };
1693
1311
  Gs2AccountRestClient.prototype.updateTakeOverTypeModelMaster = function (request) {
@@ -1707,17 +1325,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1707
1325
  'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
1708
1326
  'openIdConnectSetting': (_k = (_j = request.getOpenIdConnectSetting()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
1709
1327
  };
1710
- return axios_1.default.put(url, body, {
1711
- headers: headers,
1712
- }).then(function (response) {
1713
- return Result.UpdateTakeOverTypeModelMasterResult.fromDict(response.data);
1714
- }).catch(function (error) {
1715
- if (error.response) {
1716
- throw JSON.parse(error.response.data.message);
1717
- }
1718
- else {
1719
- throw [];
1720
- }
1328
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1329
+ return Result.UpdateTakeOverTypeModelMasterResult.fromDict(data);
1721
1330
  });
1722
1331
  };
1723
1332
  Gs2AccountRestClient.prototype.deleteTakeOverTypeModelMaster = function (request) {
@@ -1734,13 +1343,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1734
1343
  var params = {
1735
1344
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
1736
1345
  };
1737
- return axios_1.default.delete(url, {
1738
- params: params,
1739
- headers: headers,
1740
- }).then(function (response) {
1741
- return Result.DeleteTakeOverTypeModelMasterResult.fromDict(response.data);
1742
- }).catch(function (error) {
1743
- 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);
1744
1348
  });
1745
1349
  };
1746
1350
  Gs2AccountRestClient.prototype.exportMaster = function (request) {
@@ -1756,13 +1360,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1756
1360
  var params = {
1757
1361
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1758
1362
  };
1759
- return axios_1.default.get(url, {
1760
- params: params,
1761
- headers: headers,
1762
- }).then(function (response) {
1763
- return Result.ExportMasterResult.fromDict(response.data);
1764
- }).catch(function (error) {
1765
- 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);
1766
1365
  });
1767
1366
  };
1768
1367
  Gs2AccountRestClient.prototype.getCurrentModelMaster = function (request) {
@@ -1778,13 +1377,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1778
1377
  var params = {
1779
1378
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1780
1379
  };
1781
- return axios_1.default.get(url, {
1782
- params: params,
1783
- headers: headers,
1784
- }).then(function (response) {
1785
- return Result.GetCurrentModelMasterResult.fromDict(response.data);
1786
- }).catch(function (error) {
1787
- 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);
1788
1382
  });
1789
1383
  };
1790
1384
  Gs2AccountRestClient.prototype.preUpdateCurrentModelMaster = function (request) {
@@ -1800,17 +1394,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1800
1394
  var body = {
1801
1395
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1802
1396
  };
1803
- return axios_1.default.post(url, body, {
1804
- headers: headers,
1805
- }).then(function (response) {
1806
- return Result.PreUpdateCurrentModelMasterResult.fromDict(response.data);
1807
- }).catch(function (error) {
1808
- if (error.response) {
1809
- throw JSON.parse(error.response.data.message);
1810
- }
1811
- else {
1812
- throw [];
1813
- }
1397
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1398
+ return Result.PreUpdateCurrentModelMasterResult.fromDict(data);
1814
1399
  });
1815
1400
  };
1816
1401
  Gs2AccountRestClient.prototype.updateCurrentModelMaster = function (request) {
@@ -1829,17 +1414,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1829
1414
  'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
1830
1415
  'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
1831
1416
  };
1832
- return axios_1.default.put(url, body, {
1833
- headers: headers,
1834
- }).then(function (response) {
1835
- return Result.UpdateCurrentModelMasterResult.fromDict(response.data);
1836
- }).catch(function (error) {
1837
- if (error.response) {
1838
- throw JSON.parse(error.response.data.message);
1839
- }
1840
- else {
1841
- throw [];
1842
- }
1417
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1418
+ return Result.UpdateCurrentModelMasterResult.fromDict(data);
1843
1419
  });
1844
1420
  };
1845
1421
  Gs2AccountRestClient.prototype.updateCurrentModelMasterFromGitHub = function (request) {
@@ -1856,17 +1432,8 @@ var Gs2AccountRestClient = /** @class */ (function (_super) {
1856
1432
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1857
1433
  'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
1858
1434
  };
1859
- return axios_1.default.put(url, body, {
1860
- headers: headers,
1861
- }).then(function (response) {
1862
- return Result.UpdateCurrentModelMasterFromGitHubResult.fromDict(response.data);
1863
- }).catch(function (error) {
1864
- if (error.response) {
1865
- throw JSON.parse(error.response.data.message);
1866
- }
1867
- else {
1868
- throw [];
1869
- }
1435
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1436
+ return Result.UpdateCurrentModelMasterFromGitHubResult.fromDict(data);
1870
1437
  });
1871
1438
  };
1872
1439
  Gs2AccountRestClient.ENDPOINT_HOST = null;