gs2 1.4.110 → 1.4.115

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/account/rest.js +130 -564
  2. package/account/rest.js.map +1 -1
  3. package/adReward/rest.js +44 -203
  4. package/adReward/rest.js.map +1 -1
  5. package/auth/rest.js +10 -52
  6. package/auth/rest.js.map +1 -1
  7. package/buff/rest.js +56 -249
  8. package/buff/rest.js.map +1 -1
  9. package/chat/rest.js +108 -463
  10. package/chat/rest.js.map +1 -1
  11. package/core/AbstractGs2RestClient.d.ts +9 -0
  12. package/core/AbstractGs2RestClient.js +48 -0
  13. package/core/AbstractGs2RestClient.js.map +1 -1
  14. package/core/model.d.ts +9 -1
  15. package/core/model.js +4 -1
  16. package/core/model.js.map +1 -1
  17. package/datastore/rest.js +78 -370
  18. package/datastore/rest.js.map +1 -1
  19. package/deploy/rest.js +48 -209
  20. package/deploy/rest.js.map +1 -1
  21. package/dictionary/rest.js +102 -450
  22. package/dictionary/rest.js.map +1 -1
  23. package/distributor/rest.js +96 -465
  24. package/distributor/rest.js.map +1 -1
  25. package/enchant/rest.js +112 -497
  26. package/enchant/rest.js.map +1 -1
  27. package/enhance/rest.js +100 -455
  28. package/enhance/rest.js.map +1 -1
  29. package/exchange/rest.js +108 -491
  30. package/exchange/rest.js.map +1 -1
  31. package/experience/rest.js +120 -561
  32. package/experience/rest.js.map +1 -1
  33. package/formation/rest.js +158 -686
  34. package/formation/rest.js.map +1 -1
  35. package/freeze/rest.js +12 -51
  36. package/freeze/rest.js.map +1 -1
  37. package/friend/rest.js +118 -490
  38. package/friend/rest.js.map +1 -1
  39. package/gateway/rest.js +56 -245
  40. package/gateway/rest.js.map +1 -1
  41. package/grade/rest.js +96 -449
  42. package/grade/rest.js.map +1 -1
  43. package/guard/rest.js +14 -58
  44. package/guard/rest.js.map +1 -1
  45. package/guild/rest.js +186 -840
  46. package/guild/rest.js.map +1 -1
  47. package/identifier/rest.js +60 -259
  48. package/identifier/rest.js.map +1 -1
  49. package/idle/rest.js +84 -387
  50. package/idle/rest.js.map +1 -1
  51. package/inbox/rest.js +96 -437
  52. package/inbox/rest.js.map +1 -1
  53. package/inventory/rest.js +270 -1206
  54. package/inventory/rest.js.map +1 -1
  55. package/jobQueue/rest.js +50 -220
  56. package/jobQueue/rest.js.map +1 -1
  57. package/key/rest.js +38 -166
  58. package/key/rest.js.map +1 -1
  59. package/limit/rest.js +80 -361
  60. package/limit/rest.js.map +1 -1
  61. package/lock/rest.js +28 -123
  62. package/lock/rest.js.map +1 -1
  63. package/log/rest.js +46 -186
  64. package/log/rest.js.map +1 -1
  65. package/loginReward/rest.js +82 -376
  66. package/loginReward/rest.js.map +1 -1
  67. package/lottery/rest.js +100 -427
  68. package/lottery/rest.js.map +1 -1
  69. package/matchmaking/rest.js +146 -644
  70. package/matchmaking/rest.js.map +1 -1
  71. package/megaField/rest.js +68 -307
  72. package/megaField/rest.js.map +1 -1
  73. package/mission/rest.js +158 -726
  74. package/mission/rest.js.map +1 -1
  75. package/money/rest.js +58 -264
  76. package/money/rest.js.map +1 -1
  77. package/money2/rest.js +126 -542
  78. package/money2/rest.js.map +1 -1
  79. package/news/rest.js +36 -147
  80. package/news/rest.js.map +1 -1
  81. package/package.json +5 -5
  82. package/project/request/WaitCleanUserDataRequest.d.ts +0 -4
  83. package/project/request/WaitCleanUserDataRequest.js +0 -14
  84. package/project/request/WaitCleanUserDataRequest.js.map +1 -1
  85. package/project/request/WaitDumpUserDataRequest.d.ts +0 -4
  86. package/project/request/WaitDumpUserDataRequest.js +0 -14
  87. package/project/request/WaitDumpUserDataRequest.js.map +1 -1
  88. package/project/request/WaitImportUserDataRequest.d.ts +0 -4
  89. package/project/request/WaitImportUserDataRequest.js +0 -14
  90. package/project/request/WaitImportUserDataRequest.js.map +1 -1
  91. package/project/rest.js +91 -411
  92. package/project/rest.js.map +1 -1
  93. package/quest/rest.js +100 -431
  94. package/quest/rest.js.map +1 -1
  95. package/ranking/rest.js +92 -387
  96. package/ranking/rest.js.map +1 -1
  97. package/ranking2/rest.js +220 -939
  98. package/ranking2/rest.js.map +1 -1
  99. package/realtime/rest.js +24 -97
  100. package/realtime/rest.js.map +1 -1
  101. package/schedule/rest.js +94 -418
  102. package/schedule/rest.js.map +1 -1
  103. package/script/rest.js +34 -156
  104. package/script/rest.js.map +1 -1
  105. package/seasonRating/rest.js +70 -314
  106. package/seasonRating/rest.js.map +1 -1
  107. package/serialKey/rest.js +84 -383
  108. package/serialKey/rest.js.map +1 -1
  109. package/showcase/rest.js +116 -515
  110. package/showcase/rest.js.map +1 -1
  111. package/skillTree/rest.js +82 -372
  112. package/skillTree/rest.js.map +1 -1
  113. package/stamina/rest.js +166 -798
  114. package/stamina/rest.js.map +1 -1
  115. package/stateMachine/rest.js +62 -270
  116. package/stateMachine/rest.js.map +1 -1
  117. package/version/rest.js +78 -346
  118. package/version/rest.js.map +1 -1
  119. package/watch/rest.js +156 -563
  120. package/watch/rest.js.map +1 -1
package/formation/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 Gs2FormationRestClient = /** @class */ (function (_super) {
24
23
  tslib_1.__extends(Gs2FormationRestClient, _super);
25
24
  function Gs2FormationRestClient(session) {
@@ -40,13 +39,8 @@ var Gs2FormationRestClient = /** @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
  Gs2FormationRestClient.prototype.createNamespace = function (request) {
@@ -68,17 +62,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
68
62
  'updatePropertyFormScript': (_m = (_l = request.getUpdatePropertyFormScript()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
69
63
  'logSetting': (_p = (_o = request.getLogSetting()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
70
64
  };
71
- return axios_1.default.post(url, body, {
72
- headers: headers,
73
- }).then(function (response) {
74
- return Result.CreateNamespaceResult.fromDict(response.data);
75
- }).catch(function (error) {
76
- if (error.response) {
77
- throw JSON.parse(error.response.data.message);
78
- }
79
- else {
80
- throw [];
81
- }
65
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
66
+ return Result.CreateNamespaceResult.fromDict(data);
82
67
  });
83
68
  };
84
69
  Gs2FormationRestClient.prototype.getNamespaceStatus = function (request) {
@@ -94,13 +79,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
94
79
  var params = {
95
80
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
96
81
  };
97
- return axios_1.default.get(url, {
98
- params: params,
99
- headers: headers,
100
- }).then(function (response) {
101
- return Result.GetNamespaceStatusResult.fromDict(response.data);
102
- }).catch(function (error) {
103
- throw JSON.parse(error.response.data.message);
82
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
83
+ return Result.GetNamespaceStatusResult.fromDict(data);
104
84
  });
105
85
  };
106
86
  Gs2FormationRestClient.prototype.getNamespace = function (request) {
@@ -116,13 +96,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
116
96
  var params = {
117
97
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
118
98
  };
119
- return axios_1.default.get(url, {
120
- params: params,
121
- headers: headers,
122
- }).then(function (response) {
123
- return Result.GetNamespaceResult.fromDict(response.data);
124
- }).catch(function (error) {
125
- throw JSON.parse(error.response.data.message);
99
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
100
+ return Result.GetNamespaceResult.fromDict(data);
126
101
  });
127
102
  };
128
103
  Gs2FormationRestClient.prototype.updateNamespace = function (request) {
@@ -144,17 +119,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
144
119
  'updatePropertyFormScript': (_o = (_m = request.getUpdatePropertyFormScript()) === null || _m === void 0 ? void 0 : _m.toDict()) !== null && _o !== void 0 ? _o : null,
145
120
  'logSetting': (_q = (_p = request.getLogSetting()) === null || _p === void 0 ? void 0 : _p.toDict()) !== null && _q !== void 0 ? _q : null,
146
121
  };
147
- return axios_1.default.put(url, body, {
148
- headers: headers,
149
- }).then(function (response) {
150
- return Result.UpdateNamespaceResult.fromDict(response.data);
151
- }).catch(function (error) {
152
- if (error.response) {
153
- throw JSON.parse(error.response.data.message);
154
- }
155
- else {
156
- throw [];
157
- }
122
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
123
+ return Result.UpdateNamespaceResult.fromDict(data);
158
124
  });
159
125
  };
160
126
  Gs2FormationRestClient.prototype.deleteNamespace = function (request) {
@@ -170,13 +136,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
170
136
  var params = {
171
137
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
172
138
  };
173
- return axios_1.default.delete(url, {
174
- params: params,
175
- headers: headers,
176
- }).then(function (response) {
177
- return Result.DeleteNamespaceResult.fromDict(response.data);
178
- }).catch(function (error) {
179
- throw JSON.parse(error.response.data.message);
139
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
140
+ return Result.DeleteNamespaceResult.fromDict(data);
180
141
  });
181
142
  };
182
143
  Gs2FormationRestClient.prototype.getServiceVersion = function (request) {
@@ -191,13 +152,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
191
152
  var params = {
192
153
  'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
193
154
  };
194
- return axios_1.default.get(url, {
195
- params: params,
196
- headers: headers,
197
- }).then(function (response) {
198
- return Result.GetServiceVersionResult.fromDict(response.data);
199
- }).catch(function (error) {
200
- throw JSON.parse(error.response.data.message);
155
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
156
+ return Result.GetServiceVersionResult.fromDict(data);
201
157
  });
202
158
  };
203
159
  Gs2FormationRestClient.prototype.dumpUserDataByUserId = function (request) {
@@ -216,17 +172,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
216
172
  var body = {
217
173
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
218
174
  };
219
- return axios_1.default.post(url, body, {
220
- headers: headers,
221
- }).then(function (response) {
222
- return Result.DumpUserDataByUserIdResult.fromDict(response.data);
223
- }).catch(function (error) {
224
- if (error.response) {
225
- throw JSON.parse(error.response.data.message);
226
- }
227
- else {
228
- throw [];
229
- }
175
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
176
+ return Result.DumpUserDataByUserIdResult.fromDict(data);
230
177
  });
231
178
  };
232
179
  Gs2FormationRestClient.prototype.checkDumpUserDataByUserId = function (request) {
@@ -245,13 +192,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
245
192
  var params = {
246
193
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
247
194
  };
248
- return axios_1.default.get(url, {
249
- params: params,
250
- headers: headers,
251
- }).then(function (response) {
252
- return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
253
- }).catch(function (error) {
254
- throw JSON.parse(error.response.data.message);
195
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
196
+ return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
255
197
  });
256
198
  };
257
199
  Gs2FormationRestClient.prototype.cleanUserDataByUserId = function (request) {
@@ -270,17 +212,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
270
212
  var body = {
271
213
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
272
214
  };
273
- return axios_1.default.post(url, body, {
274
- headers: headers,
275
- }).then(function (response) {
276
- return Result.CleanUserDataByUserIdResult.fromDict(response.data);
277
- }).catch(function (error) {
278
- if (error.response) {
279
- throw JSON.parse(error.response.data.message);
280
- }
281
- else {
282
- throw [];
283
- }
215
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
216
+ return Result.CleanUserDataByUserIdResult.fromDict(data);
284
217
  });
285
218
  };
286
219
  Gs2FormationRestClient.prototype.checkCleanUserDataByUserId = function (request) {
@@ -299,13 +232,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
299
232
  var params = {
300
233
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
301
234
  };
302
- return axios_1.default.get(url, {
303
- params: params,
304
- headers: headers,
305
- }).then(function (response) {
306
- return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
307
- }).catch(function (error) {
308
- throw JSON.parse(error.response.data.message);
235
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
236
+ return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
309
237
  });
310
238
  };
311
239
  Gs2FormationRestClient.prototype.prepareImportUserDataByUserId = function (request) {
@@ -324,17 +252,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
324
252
  var body = {
325
253
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
326
254
  };
327
- return axios_1.default.post(url, body, {
328
- headers: headers,
329
- }).then(function (response) {
330
- return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
331
- }).catch(function (error) {
332
- if (error.response) {
333
- throw JSON.parse(error.response.data.message);
334
- }
335
- else {
336
- throw [];
337
- }
255
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
256
+ return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
338
257
  });
339
258
  };
340
259
  Gs2FormationRestClient.prototype.importUserDataByUserId = function (request) {
@@ -354,17 +273,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
354
273
  'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
355
274
  'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
356
275
  };
357
- return axios_1.default.post(url, body, {
358
- headers: headers,
359
- }).then(function (response) {
360
- return Result.ImportUserDataByUserIdResult.fromDict(response.data);
361
- }).catch(function (error) {
362
- if (error.response) {
363
- throw JSON.parse(error.response.data.message);
364
- }
365
- else {
366
- throw [];
367
- }
276
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
277
+ return Result.ImportUserDataByUserIdResult.fromDict(data);
368
278
  });
369
279
  };
370
280
  Gs2FormationRestClient.prototype.checkImportUserDataByUserId = function (request) {
@@ -384,13 +294,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
384
294
  var params = {
385
295
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
386
296
  };
387
- return axios_1.default.get(url, {
388
- params: params,
389
- headers: headers,
390
- }).then(function (response) {
391
- return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
392
- }).catch(function (error) {
393
- throw JSON.parse(error.response.data.message);
297
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
298
+ return Result.CheckImportUserDataByUserIdResult.fromDict(data);
394
299
  });
395
300
  };
396
301
  Gs2FormationRestClient.prototype.getFormModel = function (request) {
@@ -407,13 +312,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
407
312
  var params = {
408
313
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
409
314
  };
410
- return axios_1.default.get(url, {
411
- params: params,
412
- headers: headers,
413
- }).then(function (response) {
414
- return Result.GetFormModelResult.fromDict(response.data);
415
- }).catch(function (error) {
416
- throw JSON.parse(error.response.data.message);
315
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
316
+ return Result.GetFormModelResult.fromDict(data);
417
317
  });
418
318
  };
419
319
  Gs2FormationRestClient.prototype.describeFormModelMasters = function (request) {
@@ -432,13 +332,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
432
332
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
433
333
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
434
334
  };
435
- return axios_1.default.get(url, {
436
- params: params,
437
- headers: headers,
438
- }).then(function (response) {
439
- return Result.DescribeFormModelMastersResult.fromDict(response.data);
440
- }).catch(function (error) {
441
- throw JSON.parse(error.response.data.message);
335
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
336
+ return Result.DescribeFormModelMastersResult.fromDict(data);
442
337
  });
443
338
  };
444
339
  Gs2FormationRestClient.prototype.createFormModelMaster = function (request) {
@@ -458,17 +353,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
458
353
  'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
459
354
  'slots': (_j = (_h = request.getSlots()) === null || _h === void 0 ? void 0 : _h.map(function (item) { return item.toDict(); })) !== null && _j !== void 0 ? _j : null,
460
355
  };
461
- return axios_1.default.post(url, body, {
462
- headers: headers,
463
- }).then(function (response) {
464
- return Result.CreateFormModelMasterResult.fromDict(response.data);
465
- }).catch(function (error) {
466
- if (error.response) {
467
- throw JSON.parse(error.response.data.message);
468
- }
469
- else {
470
- throw [];
471
- }
356
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
357
+ return Result.CreateFormModelMasterResult.fromDict(data);
472
358
  });
473
359
  };
474
360
  Gs2FormationRestClient.prototype.getFormModelMaster = function (request) {
@@ -485,13 +371,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
485
371
  var params = {
486
372
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
487
373
  };
488
- return axios_1.default.get(url, {
489
- params: params,
490
- headers: headers,
491
- }).then(function (response) {
492
- return Result.GetFormModelMasterResult.fromDict(response.data);
493
- }).catch(function (error) {
494
- throw JSON.parse(error.response.data.message);
374
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
375
+ return Result.GetFormModelMasterResult.fromDict(data);
495
376
  });
496
377
  };
497
378
  Gs2FormationRestClient.prototype.updateFormModelMaster = function (request) {
@@ -511,17 +392,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
511
392
  'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
512
393
  'slots': (_k = (_j = request.getSlots()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
513
394
  };
514
- return axios_1.default.put(url, body, {
515
- headers: headers,
516
- }).then(function (response) {
517
- return Result.UpdateFormModelMasterResult.fromDict(response.data);
518
- }).catch(function (error) {
519
- if (error.response) {
520
- throw JSON.parse(error.response.data.message);
521
- }
522
- else {
523
- throw [];
524
- }
395
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
396
+ return Result.UpdateFormModelMasterResult.fromDict(data);
525
397
  });
526
398
  };
527
399
  Gs2FormationRestClient.prototype.deleteFormModelMaster = function (request) {
@@ -538,13 +410,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
538
410
  var params = {
539
411
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
540
412
  };
541
- return axios_1.default.delete(url, {
542
- params: params,
543
- headers: headers,
544
- }).then(function (response) {
545
- return Result.DeleteFormModelMasterResult.fromDict(response.data);
546
- }).catch(function (error) {
547
- throw JSON.parse(error.response.data.message);
413
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
414
+ return Result.DeleteFormModelMasterResult.fromDict(data);
548
415
  });
549
416
  };
550
417
  Gs2FormationRestClient.prototype.describeMoldModels = function (request) {
@@ -560,13 +427,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
560
427
  var params = {
561
428
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
562
429
  };
563
- return axios_1.default.get(url, {
564
- params: params,
565
- headers: headers,
566
- }).then(function (response) {
567
- return Result.DescribeMoldModelsResult.fromDict(response.data);
568
- }).catch(function (error) {
569
- throw JSON.parse(error.response.data.message);
430
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
431
+ return Result.DescribeMoldModelsResult.fromDict(data);
570
432
  });
571
433
  };
572
434
  Gs2FormationRestClient.prototype.getMoldModel = function (request) {
@@ -583,13 +445,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
583
445
  var params = {
584
446
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
585
447
  };
586
- return axios_1.default.get(url, {
587
- params: params,
588
- headers: headers,
589
- }).then(function (response) {
590
- return Result.GetMoldModelResult.fromDict(response.data);
591
- }).catch(function (error) {
592
- throw JSON.parse(error.response.data.message);
448
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
449
+ return Result.GetMoldModelResult.fromDict(data);
593
450
  });
594
451
  };
595
452
  Gs2FormationRestClient.prototype.describeMoldModelMasters = function (request) {
@@ -608,13 +465,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
608
465
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
609
466
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
610
467
  };
611
- return axios_1.default.get(url, {
612
- params: params,
613
- headers: headers,
614
- }).then(function (response) {
615
- return Result.DescribeMoldModelMastersResult.fromDict(response.data);
616
- }).catch(function (error) {
617
- throw JSON.parse(error.response.data.message);
468
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
469
+ return Result.DescribeMoldModelMastersResult.fromDict(data);
618
470
  });
619
471
  };
620
472
  Gs2FormationRestClient.prototype.createMoldModelMaster = function (request) {
@@ -636,17 +488,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
636
488
  'initialMaxCapacity': (_j = request.getInitialMaxCapacity()) !== null && _j !== void 0 ? _j : null,
637
489
  'maxCapacity': (_k = request.getMaxCapacity()) !== null && _k !== void 0 ? _k : null,
638
490
  };
639
- return axios_1.default.post(url, body, {
640
- headers: headers,
641
- }).then(function (response) {
642
- return Result.CreateMoldModelMasterResult.fromDict(response.data);
643
- }).catch(function (error) {
644
- if (error.response) {
645
- throw JSON.parse(error.response.data.message);
646
- }
647
- else {
648
- throw [];
649
- }
491
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
492
+ return Result.CreateMoldModelMasterResult.fromDict(data);
650
493
  });
651
494
  };
652
495
  Gs2FormationRestClient.prototype.getMoldModelMaster = function (request) {
@@ -663,13 +506,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
663
506
  var params = {
664
507
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
665
508
  };
666
- return axios_1.default.get(url, {
667
- params: params,
668
- headers: headers,
669
- }).then(function (response) {
670
- return Result.GetMoldModelMasterResult.fromDict(response.data);
671
- }).catch(function (error) {
672
- throw JSON.parse(error.response.data.message);
509
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
510
+ return Result.GetMoldModelMasterResult.fromDict(data);
673
511
  });
674
512
  };
675
513
  Gs2FormationRestClient.prototype.updateMoldModelMaster = function (request) {
@@ -691,17 +529,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
691
529
  'initialMaxCapacity': (_k = request.getInitialMaxCapacity()) !== null && _k !== void 0 ? _k : null,
692
530
  'maxCapacity': (_l = request.getMaxCapacity()) !== null && _l !== void 0 ? _l : null,
693
531
  };
694
- return axios_1.default.put(url, body, {
695
- headers: headers,
696
- }).then(function (response) {
697
- return Result.UpdateMoldModelMasterResult.fromDict(response.data);
698
- }).catch(function (error) {
699
- if (error.response) {
700
- throw JSON.parse(error.response.data.message);
701
- }
702
- else {
703
- throw [];
704
- }
532
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
533
+ return Result.UpdateMoldModelMasterResult.fromDict(data);
705
534
  });
706
535
  };
707
536
  Gs2FormationRestClient.prototype.deleteMoldModelMaster = function (request) {
@@ -718,13 +547,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
718
547
  var params = {
719
548
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
720
549
  };
721
- return axios_1.default.delete(url, {
722
- params: params,
723
- headers: headers,
724
- }).then(function (response) {
725
- return Result.DeleteMoldModelMasterResult.fromDict(response.data);
726
- }).catch(function (error) {
727
- throw JSON.parse(error.response.data.message);
550
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
551
+ return Result.DeleteMoldModelMasterResult.fromDict(data);
728
552
  });
729
553
  };
730
554
  Gs2FormationRestClient.prototype.describePropertyFormModels = function (request) {
@@ -740,13 +564,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
740
564
  var params = {
741
565
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
742
566
  };
743
- return axios_1.default.get(url, {
744
- params: params,
745
- headers: headers,
746
- }).then(function (response) {
747
- return Result.DescribePropertyFormModelsResult.fromDict(response.data);
748
- }).catch(function (error) {
749
- throw JSON.parse(error.response.data.message);
567
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
568
+ return Result.DescribePropertyFormModelsResult.fromDict(data);
750
569
  });
751
570
  };
752
571
  Gs2FormationRestClient.prototype.getPropertyFormModel = function (request) {
@@ -763,13 +582,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
763
582
  var params = {
764
583
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
765
584
  };
766
- return axios_1.default.get(url, {
767
- params: params,
768
- headers: headers,
769
- }).then(function (response) {
770
- return Result.GetPropertyFormModelResult.fromDict(response.data);
771
- }).catch(function (error) {
772
- throw JSON.parse(error.response.data.message);
585
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
586
+ return Result.GetPropertyFormModelResult.fromDict(data);
773
587
  });
774
588
  };
775
589
  Gs2FormationRestClient.prototype.describePropertyFormModelMasters = function (request) {
@@ -788,13 +602,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
788
602
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
789
603
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
790
604
  };
791
- return axios_1.default.get(url, {
792
- params: params,
793
- headers: headers,
794
- }).then(function (response) {
795
- return Result.DescribePropertyFormModelMastersResult.fromDict(response.data);
796
- }).catch(function (error) {
797
- throw JSON.parse(error.response.data.message);
605
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
606
+ return Result.DescribePropertyFormModelMastersResult.fromDict(data);
798
607
  });
799
608
  };
800
609
  Gs2FormationRestClient.prototype.createPropertyFormModelMaster = function (request) {
@@ -814,17 +623,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
814
623
  'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
815
624
  'slots': (_j = (_h = request.getSlots()) === null || _h === void 0 ? void 0 : _h.map(function (item) { return item.toDict(); })) !== null && _j !== void 0 ? _j : null,
816
625
  };
817
- return axios_1.default.post(url, body, {
818
- headers: headers,
819
- }).then(function (response) {
820
- return Result.CreatePropertyFormModelMasterResult.fromDict(response.data);
821
- }).catch(function (error) {
822
- if (error.response) {
823
- throw JSON.parse(error.response.data.message);
824
- }
825
- else {
826
- throw [];
827
- }
626
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
627
+ return Result.CreatePropertyFormModelMasterResult.fromDict(data);
828
628
  });
829
629
  };
830
630
  Gs2FormationRestClient.prototype.getPropertyFormModelMaster = function (request) {
@@ -841,13 +641,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
841
641
  var params = {
842
642
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
843
643
  };
844
- return axios_1.default.get(url, {
845
- params: params,
846
- headers: headers,
847
- }).then(function (response) {
848
- return Result.GetPropertyFormModelMasterResult.fromDict(response.data);
849
- }).catch(function (error) {
850
- throw JSON.parse(error.response.data.message);
644
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
645
+ return Result.GetPropertyFormModelMasterResult.fromDict(data);
851
646
  });
852
647
  };
853
648
  Gs2FormationRestClient.prototype.updatePropertyFormModelMaster = function (request) {
@@ -867,17 +662,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
867
662
  'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
868
663
  'slots': (_k = (_j = request.getSlots()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
869
664
  };
870
- return axios_1.default.put(url, body, {
871
- headers: headers,
872
- }).then(function (response) {
873
- return Result.UpdatePropertyFormModelMasterResult.fromDict(response.data);
874
- }).catch(function (error) {
875
- if (error.response) {
876
- throw JSON.parse(error.response.data.message);
877
- }
878
- else {
879
- throw [];
880
- }
665
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
666
+ return Result.UpdatePropertyFormModelMasterResult.fromDict(data);
881
667
  });
882
668
  };
883
669
  Gs2FormationRestClient.prototype.deletePropertyFormModelMaster = function (request) {
@@ -894,13 +680,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
894
680
  var params = {
895
681
  'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
896
682
  };
897
- return axios_1.default.delete(url, {
898
- params: params,
899
- headers: headers,
900
- }).then(function (response) {
901
- return Result.DeletePropertyFormModelMasterResult.fromDict(response.data);
902
- }).catch(function (error) {
903
- throw JSON.parse(error.response.data.message);
683
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
684
+ return Result.DeletePropertyFormModelMasterResult.fromDict(data);
904
685
  });
905
686
  };
906
687
  Gs2FormationRestClient.prototype.exportMaster = function (request) {
@@ -916,13 +697,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
916
697
  var params = {
917
698
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
918
699
  };
919
- return axios_1.default.get(url, {
920
- params: params,
921
- headers: headers,
922
- }).then(function (response) {
923
- return Result.ExportMasterResult.fromDict(response.data);
924
- }).catch(function (error) {
925
- throw JSON.parse(error.response.data.message);
700
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
701
+ return Result.ExportMasterResult.fromDict(data);
926
702
  });
927
703
  };
928
704
  Gs2FormationRestClient.prototype.getCurrentFormMaster = function (request) {
@@ -938,13 +714,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
938
714
  var params = {
939
715
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
940
716
  };
941
- return axios_1.default.get(url, {
942
- params: params,
943
- headers: headers,
944
- }).then(function (response) {
945
- return Result.GetCurrentFormMasterResult.fromDict(response.data);
946
- }).catch(function (error) {
947
- throw JSON.parse(error.response.data.message);
717
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
718
+ return Result.GetCurrentFormMasterResult.fromDict(data);
948
719
  });
949
720
  };
950
721
  Gs2FormationRestClient.prototype.preUpdateCurrentFormMaster = function (request) {
@@ -960,17 +731,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
960
731
  var body = {
961
732
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
962
733
  };
963
- return axios_1.default.post(url, body, {
964
- headers: headers,
965
- }).then(function (response) {
966
- return Result.PreUpdateCurrentFormMasterResult.fromDict(response.data);
967
- }).catch(function (error) {
968
- if (error.response) {
969
- throw JSON.parse(error.response.data.message);
970
- }
971
- else {
972
- throw [];
973
- }
734
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
735
+ return Result.PreUpdateCurrentFormMasterResult.fromDict(data);
974
736
  });
975
737
  };
976
738
  Gs2FormationRestClient.prototype.updateCurrentFormMaster = function (request) {
@@ -989,17 +751,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
989
751
  'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
990
752
  'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
991
753
  };
992
- return axios_1.default.put(url, body, {
993
- headers: headers,
994
- }).then(function (response) {
995
- return Result.UpdateCurrentFormMasterResult.fromDict(response.data);
996
- }).catch(function (error) {
997
- if (error.response) {
998
- throw JSON.parse(error.response.data.message);
999
- }
1000
- else {
1001
- throw [];
1002
- }
754
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
755
+ return Result.UpdateCurrentFormMasterResult.fromDict(data);
1003
756
  });
1004
757
  };
1005
758
  Gs2FormationRestClient.prototype.updateCurrentFormMasterFromGitHub = function (request) {
@@ -1016,17 +769,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1016
769
  'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
1017
770
  'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
1018
771
  };
1019
- return axios_1.default.put(url, body, {
1020
- headers: headers,
1021
- }).then(function (response) {
1022
- return Result.UpdateCurrentFormMasterFromGitHubResult.fromDict(response.data);
1023
- }).catch(function (error) {
1024
- if (error.response) {
1025
- throw JSON.parse(error.response.data.message);
1026
- }
1027
- else {
1028
- throw [];
1029
- }
772
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
773
+ return Result.UpdateCurrentFormMasterFromGitHubResult.fromDict(data);
1030
774
  });
1031
775
  };
1032
776
  Gs2FormationRestClient.prototype.describeMolds = function (request) {
@@ -1047,13 +791,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1047
791
  'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
1048
792
  'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
1049
793
  };
1050
- return axios_1.default.get(url, {
1051
- params: params,
1052
- headers: headers,
1053
- }).then(function (response) {
1054
- return Result.DescribeMoldsResult.fromDict(response.data);
1055
- }).catch(function (error) {
1056
- throw JSON.parse(error.response.data.message);
794
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
795
+ return Result.DescribeMoldsResult.fromDict(data);
1057
796
  });
1058
797
  };
1059
798
  Gs2FormationRestClient.prototype.describeMoldsByUserId = function (request) {
@@ -1075,13 +814,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1075
814
  'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
1076
815
  'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
1077
816
  };
1078
- return axios_1.default.get(url, {
1079
- params: params,
1080
- headers: headers,
1081
- }).then(function (response) {
1082
- return Result.DescribeMoldsByUserIdResult.fromDict(response.data);
1083
- }).catch(function (error) {
1084
- throw JSON.parse(error.response.data.message);
817
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
818
+ return Result.DescribeMoldsByUserIdResult.fromDict(data);
1085
819
  });
1086
820
  };
1087
821
  Gs2FormationRestClient.prototype.getMold = function (request) {
@@ -1101,13 +835,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1101
835
  var params = {
1102
836
  'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
1103
837
  };
1104
- return axios_1.default.get(url, {
1105
- params: params,
1106
- headers: headers,
1107
- }).then(function (response) {
1108
- return Result.GetMoldResult.fromDict(response.data);
1109
- }).catch(function (error) {
1110
- throw JSON.parse(error.response.data.message);
838
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
839
+ return Result.GetMoldResult.fromDict(data);
1111
840
  });
1112
841
  };
1113
842
  Gs2FormationRestClient.prototype.getMoldByUserId = function (request) {
@@ -1128,13 +857,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1128
857
  var params = {
1129
858
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
1130
859
  };
1131
- return axios_1.default.get(url, {
1132
- params: params,
1133
- headers: headers,
1134
- }).then(function (response) {
1135
- return Result.GetMoldByUserIdResult.fromDict(response.data);
1136
- }).catch(function (error) {
1137
- throw JSON.parse(error.response.data.message);
860
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
861
+ return Result.GetMoldByUserIdResult.fromDict(data);
1138
862
  });
1139
863
  };
1140
864
  Gs2FormationRestClient.prototype.setMoldCapacityByUserId = function (request) {
@@ -1159,17 +883,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1159
883
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1160
884
  'capacity': (_l = request.getCapacity()) !== null && _l !== void 0 ? _l : null,
1161
885
  };
1162
- return axios_1.default.put(url, body, {
1163
- headers: headers,
1164
- }).then(function (response) {
1165
- return Result.SetMoldCapacityByUserIdResult.fromDict(response.data);
1166
- }).catch(function (error) {
1167
- if (error.response) {
1168
- throw JSON.parse(error.response.data.message);
1169
- }
1170
- else {
1171
- throw [];
1172
- }
886
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
887
+ return Result.SetMoldCapacityByUserIdResult.fromDict(data);
1173
888
  });
1174
889
  };
1175
890
  Gs2FormationRestClient.prototype.addMoldCapacityByUserId = function (request) {
@@ -1194,17 +909,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1194
909
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1195
910
  'capacity': (_l = request.getCapacity()) !== null && _l !== void 0 ? _l : null,
1196
911
  };
1197
- return axios_1.default.post(url, body, {
1198
- headers: headers,
1199
- }).then(function (response) {
1200
- return Result.AddMoldCapacityByUserIdResult.fromDict(response.data);
1201
- }).catch(function (error) {
1202
- if (error.response) {
1203
- throw JSON.parse(error.response.data.message);
1204
- }
1205
- else {
1206
- throw [];
1207
- }
912
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
913
+ return Result.AddMoldCapacityByUserIdResult.fromDict(data);
1208
914
  });
1209
915
  };
1210
916
  Gs2FormationRestClient.prototype.subMoldCapacity = function (request) {
@@ -1228,17 +934,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1228
934
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1229
935
  'capacity': (_j = request.getCapacity()) !== null && _j !== void 0 ? _j : null,
1230
936
  };
1231
- return axios_1.default.post(url, body, {
1232
- headers: headers,
1233
- }).then(function (response) {
1234
- return Result.SubMoldCapacityResult.fromDict(response.data);
1235
- }).catch(function (error) {
1236
- if (error.response) {
1237
- throw JSON.parse(error.response.data.message);
1238
- }
1239
- else {
1240
- throw [];
1241
- }
937
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
938
+ return Result.SubMoldCapacityResult.fromDict(data);
1242
939
  });
1243
940
  };
1244
941
  Gs2FormationRestClient.prototype.subMoldCapacityByUserId = function (request) {
@@ -1263,17 +960,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1263
960
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1264
961
  'capacity': (_l = request.getCapacity()) !== null && _l !== void 0 ? _l : null,
1265
962
  };
1266
- return axios_1.default.post(url, body, {
1267
- headers: headers,
1268
- }).then(function (response) {
1269
- return Result.SubMoldCapacityByUserIdResult.fromDict(response.data);
1270
- }).catch(function (error) {
1271
- if (error.response) {
1272
- throw JSON.parse(error.response.data.message);
1273
- }
1274
- else {
1275
- throw [];
1276
- }
963
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
964
+ return Result.SubMoldCapacityByUserIdResult.fromDict(data);
1277
965
  });
1278
966
  };
1279
967
  Gs2FormationRestClient.prototype.deleteMold = function (request) {
@@ -1296,13 +984,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1296
984
  var params = {
1297
985
  'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1298
986
  };
1299
- return axios_1.default.delete(url, {
1300
- params: params,
1301
- headers: headers,
1302
- }).then(function (response) {
1303
- return Result.DeleteMoldResult.fromDict(response.data);
1304
- }).catch(function (error) {
1305
- throw JSON.parse(error.response.data.message);
987
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
988
+ return Result.DeleteMoldResult.fromDict(data);
1306
989
  });
1307
990
  };
1308
991
  Gs2FormationRestClient.prototype.deleteMoldByUserId = function (request) {
@@ -1326,13 +1009,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1326
1009
  var params = {
1327
1010
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1328
1011
  };
1329
- return axios_1.default.delete(url, {
1330
- params: params,
1331
- headers: headers,
1332
- }).then(function (response) {
1333
- return Result.DeleteMoldByUserIdResult.fromDict(response.data);
1334
- }).catch(function (error) {
1335
- throw JSON.parse(error.response.data.message);
1012
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
1013
+ return Result.DeleteMoldByUserIdResult.fromDict(data);
1336
1014
  });
1337
1015
  };
1338
1016
  Gs2FormationRestClient.prototype.addCapacityByStampSheet = function (request) {
@@ -1349,17 +1027,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1349
1027
  'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
1350
1028
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1351
1029
  };
1352
- return axios_1.default.post(url, body, {
1353
- headers: headers,
1354
- }).then(function (response) {
1355
- return Result.AddCapacityByStampSheetResult.fromDict(response.data);
1356
- }).catch(function (error) {
1357
- if (error.response) {
1358
- throw JSON.parse(error.response.data.message);
1359
- }
1360
- else {
1361
- throw [];
1362
- }
1030
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1031
+ return Result.AddCapacityByStampSheetResult.fromDict(data);
1363
1032
  });
1364
1033
  };
1365
1034
  Gs2FormationRestClient.prototype.subCapacityByStampTask = function (request) {
@@ -1376,17 +1045,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1376
1045
  'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
1377
1046
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1378
1047
  };
1379
- return axios_1.default.post(url, body, {
1380
- headers: headers,
1381
- }).then(function (response) {
1382
- return Result.SubCapacityByStampTaskResult.fromDict(response.data);
1383
- }).catch(function (error) {
1384
- if (error.response) {
1385
- throw JSON.parse(error.response.data.message);
1386
- }
1387
- else {
1388
- throw [];
1389
- }
1048
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1049
+ return Result.SubCapacityByStampTaskResult.fromDict(data);
1390
1050
  });
1391
1051
  };
1392
1052
  Gs2FormationRestClient.prototype.setCapacityByStampSheet = function (request) {
@@ -1403,17 +1063,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1403
1063
  'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
1404
1064
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1405
1065
  };
1406
- return axios_1.default.post(url, body, {
1407
- headers: headers,
1408
- }).then(function (response) {
1409
- return Result.SetCapacityByStampSheetResult.fromDict(response.data);
1410
- }).catch(function (error) {
1411
- if (error.response) {
1412
- throw JSON.parse(error.response.data.message);
1413
- }
1414
- else {
1415
- throw [];
1416
- }
1066
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1067
+ return Result.SetCapacityByStampSheetResult.fromDict(data);
1417
1068
  });
1418
1069
  };
1419
1070
  Gs2FormationRestClient.prototype.describeForms = function (request) {
@@ -1435,13 +1086,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1435
1086
  'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
1436
1087
  'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
1437
1088
  };
1438
- return axios_1.default.get(url, {
1439
- params: params,
1440
- headers: headers,
1441
- }).then(function (response) {
1442
- return Result.DescribeFormsResult.fromDict(response.data);
1443
- }).catch(function (error) {
1444
- throw JSON.parse(error.response.data.message);
1089
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1090
+ return Result.DescribeFormsResult.fromDict(data);
1445
1091
  });
1446
1092
  };
1447
1093
  Gs2FormationRestClient.prototype.describeFormsByUserId = function (request) {
@@ -1464,13 +1110,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1464
1110
  'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
1465
1111
  'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
1466
1112
  };
1467
- return axios_1.default.get(url, {
1468
- params: params,
1469
- headers: headers,
1470
- }).then(function (response) {
1471
- return Result.DescribeFormsByUserIdResult.fromDict(response.data);
1472
- }).catch(function (error) {
1473
- throw JSON.parse(error.response.data.message);
1113
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1114
+ return Result.DescribeFormsByUserIdResult.fromDict(data);
1474
1115
  });
1475
1116
  };
1476
1117
  Gs2FormationRestClient.prototype.getForm = function (request) {
@@ -1491,13 +1132,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1491
1132
  var params = {
1492
1133
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
1493
1134
  };
1494
- return axios_1.default.get(url, {
1495
- params: params,
1496
- headers: headers,
1497
- }).then(function (response) {
1498
- return Result.GetFormResult.fromDict(response.data);
1499
- }).catch(function (error) {
1500
- throw JSON.parse(error.response.data.message);
1135
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1136
+ return Result.GetFormResult.fromDict(data);
1501
1137
  });
1502
1138
  };
1503
1139
  Gs2FormationRestClient.prototype.getFormByUserId = function (request) {
@@ -1519,13 +1155,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1519
1155
  var params = {
1520
1156
  'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
1521
1157
  };
1522
- return axios_1.default.get(url, {
1523
- params: params,
1524
- headers: headers,
1525
- }).then(function (response) {
1526
- return Result.GetFormByUserIdResult.fromDict(response.data);
1527
- }).catch(function (error) {
1528
- throw JSON.parse(error.response.data.message);
1158
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1159
+ return Result.GetFormByUserIdResult.fromDict(data);
1529
1160
  });
1530
1161
  };
1531
1162
  Gs2FormationRestClient.prototype.getFormWithSignature = function (request) {
@@ -1547,13 +1178,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1547
1178
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
1548
1179
  'keyId': String((_k = request.getKeyId()) !== null && _k !== void 0 ? _k : null),
1549
1180
  };
1550
- return axios_1.default.get(url, {
1551
- params: params,
1552
- headers: headers,
1553
- }).then(function (response) {
1554
- return Result.GetFormWithSignatureResult.fromDict(response.data);
1555
- }).catch(function (error) {
1556
- throw JSON.parse(error.response.data.message);
1181
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1182
+ return Result.GetFormWithSignatureResult.fromDict(data);
1557
1183
  });
1558
1184
  };
1559
1185
  Gs2FormationRestClient.prototype.getFormWithSignatureByUserId = function (request) {
@@ -1576,13 +1202,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1576
1202
  'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
1577
1203
  'keyId': String((_m = request.getKeyId()) !== null && _m !== void 0 ? _m : null),
1578
1204
  };
1579
- return axios_1.default.get(url, {
1580
- params: params,
1581
- headers: headers,
1582
- }).then(function (response) {
1583
- return Result.GetFormWithSignatureByUserIdResult.fromDict(response.data);
1584
- }).catch(function (error) {
1585
- throw JSON.parse(error.response.data.message);
1205
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1206
+ return Result.GetFormWithSignatureByUserIdResult.fromDict(data);
1586
1207
  });
1587
1208
  };
1588
1209
  Gs2FormationRestClient.prototype.setForm = function (request) {
@@ -1607,17 +1228,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1607
1228
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1608
1229
  'slots': (_m = (_l = request.getSlots()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
1609
1230
  };
1610
- return axios_1.default.put(url, body, {
1611
- headers: headers,
1612
- }).then(function (response) {
1613
- return Result.SetFormResult.fromDict(response.data);
1614
- }).catch(function (error) {
1615
- if (error.response) {
1616
- throw JSON.parse(error.response.data.message);
1617
- }
1618
- else {
1619
- throw [];
1620
- }
1231
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1232
+ return Result.SetFormResult.fromDict(data);
1621
1233
  });
1622
1234
  };
1623
1235
  Gs2FormationRestClient.prototype.setFormByUserId = function (request) {
@@ -1643,17 +1255,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1643
1255
  'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
1644
1256
  'slots': (_p = (_o = request.getSlots()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
1645
1257
  };
1646
- return axios_1.default.put(url, body, {
1647
- headers: headers,
1648
- }).then(function (response) {
1649
- return Result.SetFormByUserIdResult.fromDict(response.data);
1650
- }).catch(function (error) {
1651
- if (error.response) {
1652
- throw JSON.parse(error.response.data.message);
1653
- }
1654
- else {
1655
- throw [];
1656
- }
1258
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1259
+ return Result.SetFormByUserIdResult.fromDict(data);
1657
1260
  });
1658
1261
  };
1659
1262
  Gs2FormationRestClient.prototype.setFormWithSignature = function (request) {
@@ -1679,17 +1282,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1679
1282
  'slots': (_m = (_l = request.getSlots()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
1680
1283
  'keyId': (_o = request.getKeyId()) !== null && _o !== void 0 ? _o : null,
1681
1284
  };
1682
- return axios_1.default.put(url, body, {
1683
- headers: headers,
1684
- }).then(function (response) {
1685
- return Result.SetFormWithSignatureResult.fromDict(response.data);
1686
- }).catch(function (error) {
1687
- if (error.response) {
1688
- throw JSON.parse(error.response.data.message);
1689
- }
1690
- else {
1691
- throw [];
1692
- }
1285
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1286
+ return Result.SetFormWithSignatureResult.fromDict(data);
1693
1287
  });
1694
1288
  };
1695
1289
  Gs2FormationRestClient.prototype.acquireActionsToFormProperties = function (request) {
@@ -1716,17 +1310,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1716
1310
  'acquireAction': (_p = (_o = request.getAcquireAction()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
1717
1311
  'config': (_r = (_q = request.getConfig()) === null || _q === void 0 ? void 0 : _q.map(function (item) { return item.toDict(); })) !== null && _r !== void 0 ? _r : null,
1718
1312
  };
1719
- return axios_1.default.post(url, body, {
1720
- headers: headers,
1721
- }).then(function (response) {
1722
- return Result.AcquireActionsToFormPropertiesResult.fromDict(response.data);
1723
- }).catch(function (error) {
1724
- if (error.response) {
1725
- throw JSON.parse(error.response.data.message);
1726
- }
1727
- else {
1728
- throw [];
1729
- }
1313
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1314
+ return Result.AcquireActionsToFormPropertiesResult.fromDict(data);
1730
1315
  });
1731
1316
  };
1732
1317
  Gs2FormationRestClient.prototype.deleteForm = function (request) {
@@ -1750,13 +1335,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1750
1335
  var params = {
1751
1336
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1752
1337
  };
1753
- return axios_1.default.delete(url, {
1754
- params: params,
1755
- headers: headers,
1756
- }).then(function (response) {
1757
- return Result.DeleteFormResult.fromDict(response.data);
1758
- }).catch(function (error) {
1759
- throw JSON.parse(error.response.data.message);
1338
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
1339
+ return Result.DeleteFormResult.fromDict(data);
1760
1340
  });
1761
1341
  };
1762
1342
  Gs2FormationRestClient.prototype.deleteFormByUserId = function (request) {
@@ -1781,13 +1361,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1781
1361
  var params = {
1782
1362
  'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
1783
1363
  };
1784
- return axios_1.default.delete(url, {
1785
- params: params,
1786
- headers: headers,
1787
- }).then(function (response) {
1788
- return Result.DeleteFormByUserIdResult.fromDict(response.data);
1789
- }).catch(function (error) {
1790
- throw JSON.parse(error.response.data.message);
1364
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
1365
+ return Result.DeleteFormByUserIdResult.fromDict(data);
1791
1366
  });
1792
1367
  };
1793
1368
  Gs2FormationRestClient.prototype.acquireActionToFormPropertiesByStampSheet = function (request) {
@@ -1804,17 +1379,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1804
1379
  'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
1805
1380
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1806
1381
  };
1807
- return axios_1.default.post(url, body, {
1808
- headers: headers,
1809
- }).then(function (response) {
1810
- return Result.AcquireActionToFormPropertiesByStampSheetResult.fromDict(response.data);
1811
- }).catch(function (error) {
1812
- if (error.response) {
1813
- throw JSON.parse(error.response.data.message);
1814
- }
1815
- else {
1816
- throw [];
1817
- }
1382
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1383
+ return Result.AcquireActionToFormPropertiesByStampSheetResult.fromDict(data);
1818
1384
  });
1819
1385
  };
1820
1386
  Gs2FormationRestClient.prototype.setFormByStampSheet = function (request) {
@@ -1831,17 +1397,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1831
1397
  'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
1832
1398
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
1833
1399
  };
1834
- return axios_1.default.post(url, body, {
1835
- headers: headers,
1836
- }).then(function (response) {
1837
- return Result.SetFormByStampSheetResult.fromDict(response.data);
1838
- }).catch(function (error) {
1839
- if (error.response) {
1840
- throw JSON.parse(error.response.data.message);
1841
- }
1842
- else {
1843
- throw [];
1844
- }
1400
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1401
+ return Result.SetFormByStampSheetResult.fromDict(data);
1845
1402
  });
1846
1403
  };
1847
1404
  Gs2FormationRestClient.prototype.describePropertyForms = function (request) {
@@ -1863,13 +1420,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1863
1420
  'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
1864
1421
  'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
1865
1422
  };
1866
- return axios_1.default.get(url, {
1867
- params: params,
1868
- headers: headers,
1869
- }).then(function (response) {
1870
- return Result.DescribePropertyFormsResult.fromDict(response.data);
1871
- }).catch(function (error) {
1872
- throw JSON.parse(error.response.data.message);
1423
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1424
+ return Result.DescribePropertyFormsResult.fromDict(data);
1873
1425
  });
1874
1426
  };
1875
1427
  Gs2FormationRestClient.prototype.describePropertyFormsByUserId = function (request) {
@@ -1892,13 +1444,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1892
1444
  'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
1893
1445
  'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
1894
1446
  };
1895
- return axios_1.default.get(url, {
1896
- params: params,
1897
- headers: headers,
1898
- }).then(function (response) {
1899
- return Result.DescribePropertyFormsByUserIdResult.fromDict(response.data);
1900
- }).catch(function (error) {
1901
- throw JSON.parse(error.response.data.message);
1447
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1448
+ return Result.DescribePropertyFormsByUserIdResult.fromDict(data);
1902
1449
  });
1903
1450
  };
1904
1451
  Gs2FormationRestClient.prototype.getPropertyForm = function (request) {
@@ -1919,13 +1466,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1919
1466
  var params = {
1920
1467
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
1921
1468
  };
1922
- return axios_1.default.get(url, {
1923
- params: params,
1924
- headers: headers,
1925
- }).then(function (response) {
1926
- return Result.GetPropertyFormResult.fromDict(response.data);
1927
- }).catch(function (error) {
1928
- throw JSON.parse(error.response.data.message);
1469
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1470
+ return Result.GetPropertyFormResult.fromDict(data);
1929
1471
  });
1930
1472
  };
1931
1473
  Gs2FormationRestClient.prototype.getPropertyFormByUserId = function (request) {
@@ -1947,13 +1489,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1947
1489
  var params = {
1948
1490
  'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
1949
1491
  };
1950
- return axios_1.default.get(url, {
1951
- params: params,
1952
- headers: headers,
1953
- }).then(function (response) {
1954
- return Result.GetPropertyFormByUserIdResult.fromDict(response.data);
1955
- }).catch(function (error) {
1956
- throw JSON.parse(error.response.data.message);
1492
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1493
+ return Result.GetPropertyFormByUserIdResult.fromDict(data);
1957
1494
  });
1958
1495
  };
1959
1496
  Gs2FormationRestClient.prototype.getPropertyFormWithSignature = function (request) {
@@ -1975,13 +1512,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
1975
1512
  'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
1976
1513
  'keyId': String((_k = request.getKeyId()) !== null && _k !== void 0 ? _k : null),
1977
1514
  };
1978
- return axios_1.default.get(url, {
1979
- params: params,
1980
- headers: headers,
1981
- }).then(function (response) {
1982
- return Result.GetPropertyFormWithSignatureResult.fromDict(response.data);
1983
- }).catch(function (error) {
1984
- throw JSON.parse(error.response.data.message);
1515
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1516
+ return Result.GetPropertyFormWithSignatureResult.fromDict(data);
1985
1517
  });
1986
1518
  };
1987
1519
  Gs2FormationRestClient.prototype.getPropertyFormWithSignatureByUserId = function (request) {
@@ -2004,13 +1536,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
2004
1536
  'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
2005
1537
  'keyId': String((_m = request.getKeyId()) !== null && _m !== void 0 ? _m : null),
2006
1538
  };
2007
- return axios_1.default.get(url, {
2008
- params: params,
2009
- headers: headers,
2010
- }).then(function (response) {
2011
- return Result.GetPropertyFormWithSignatureByUserIdResult.fromDict(response.data);
2012
- }).catch(function (error) {
2013
- throw JSON.parse(error.response.data.message);
1539
+ return this.request('GET', url, headers, params, undefined).then(function (data) {
1540
+ return Result.GetPropertyFormWithSignatureByUserIdResult.fromDict(data);
2014
1541
  });
2015
1542
  };
2016
1543
  Gs2FormationRestClient.prototype.setPropertyForm = function (request) {
@@ -2035,17 +1562,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
2035
1562
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
2036
1563
  'slots': (_m = (_l = request.getSlots()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
2037
1564
  };
2038
- return axios_1.default.put(url, body, {
2039
- headers: headers,
2040
- }).then(function (response) {
2041
- return Result.SetPropertyFormResult.fromDict(response.data);
2042
- }).catch(function (error) {
2043
- if (error.response) {
2044
- throw JSON.parse(error.response.data.message);
2045
- }
2046
- else {
2047
- throw [];
2048
- }
1565
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1566
+ return Result.SetPropertyFormResult.fromDict(data);
2049
1567
  });
2050
1568
  };
2051
1569
  Gs2FormationRestClient.prototype.setPropertyFormByUserId = function (request) {
@@ -2071,17 +1589,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
2071
1589
  'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
2072
1590
  'slots': (_p = (_o = request.getSlots()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
2073
1591
  };
2074
- return axios_1.default.put(url, body, {
2075
- headers: headers,
2076
- }).then(function (response) {
2077
- return Result.SetPropertyFormByUserIdResult.fromDict(response.data);
2078
- }).catch(function (error) {
2079
- if (error.response) {
2080
- throw JSON.parse(error.response.data.message);
2081
- }
2082
- else {
2083
- throw [];
2084
- }
1592
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1593
+ return Result.SetPropertyFormByUserIdResult.fromDict(data);
2085
1594
  });
2086
1595
  };
2087
1596
  Gs2FormationRestClient.prototype.setPropertyFormWithSignature = function (request) {
@@ -2107,17 +1616,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
2107
1616
  'slots': (_m = (_l = request.getSlots()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
2108
1617
  'keyId': (_o = request.getKeyId()) !== null && _o !== void 0 ? _o : null,
2109
1618
  };
2110
- return axios_1.default.put(url, body, {
2111
- headers: headers,
2112
- }).then(function (response) {
2113
- return Result.SetPropertyFormWithSignatureResult.fromDict(response.data);
2114
- }).catch(function (error) {
2115
- if (error.response) {
2116
- throw JSON.parse(error.response.data.message);
2117
- }
2118
- else {
2119
- throw [];
2120
- }
1619
+ return this.request('PUT', url, headers, undefined, body).then(function (data) {
1620
+ return Result.SetPropertyFormWithSignatureResult.fromDict(data);
2121
1621
  });
2122
1622
  };
2123
1623
  Gs2FormationRestClient.prototype.acquireActionsToPropertyFormProperties = function (request) {
@@ -2144,17 +1644,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
2144
1644
  'acquireAction': (_p = (_o = request.getAcquireAction()) === null || _o === void 0 ? void 0 : _o.toDict()) !== null && _p !== void 0 ? _p : null,
2145
1645
  'config': (_r = (_q = request.getConfig()) === null || _q === void 0 ? void 0 : _q.map(function (item) { return item.toDict(); })) !== null && _r !== void 0 ? _r : null,
2146
1646
  };
2147
- return axios_1.default.post(url, body, {
2148
- headers: headers,
2149
- }).then(function (response) {
2150
- return Result.AcquireActionsToPropertyFormPropertiesResult.fromDict(response.data);
2151
- }).catch(function (error) {
2152
- if (error.response) {
2153
- throw JSON.parse(error.response.data.message);
2154
- }
2155
- else {
2156
- throw [];
2157
- }
1647
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1648
+ return Result.AcquireActionsToPropertyFormPropertiesResult.fromDict(data);
2158
1649
  });
2159
1650
  };
2160
1651
  Gs2FormationRestClient.prototype.deletePropertyForm = function (request) {
@@ -2178,13 +1669,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
2178
1669
  var params = {
2179
1670
  'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
2180
1671
  };
2181
- return axios_1.default.delete(url, {
2182
- params: params,
2183
- headers: headers,
2184
- }).then(function (response) {
2185
- return Result.DeletePropertyFormResult.fromDict(response.data);
2186
- }).catch(function (error) {
2187
- throw JSON.parse(error.response.data.message);
1672
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
1673
+ return Result.DeletePropertyFormResult.fromDict(data);
2188
1674
  });
2189
1675
  };
2190
1676
  Gs2FormationRestClient.prototype.deletePropertyFormByUserId = function (request) {
@@ -2209,13 +1695,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
2209
1695
  var params = {
2210
1696
  'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
2211
1697
  };
2212
- return axios_1.default.delete(url, {
2213
- params: params,
2214
- headers: headers,
2215
- }).then(function (response) {
2216
- return Result.DeletePropertyFormByUserIdResult.fromDict(response.data);
2217
- }).catch(function (error) {
2218
- throw JSON.parse(error.response.data.message);
1698
+ return this.request('DELETE', url, headers, params, undefined).then(function (data) {
1699
+ return Result.DeletePropertyFormByUserIdResult.fromDict(data);
2219
1700
  });
2220
1701
  };
2221
1702
  Gs2FormationRestClient.prototype.acquireActionToPropertyFormPropertiesByStampSheet = function (request) {
@@ -2232,17 +1713,8 @@ var Gs2FormationRestClient = /** @class */ (function (_super) {
2232
1713
  'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
2233
1714
  'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
2234
1715
  };
2235
- return axios_1.default.post(url, body, {
2236
- headers: headers,
2237
- }).then(function (response) {
2238
- return Result.AcquireActionToPropertyFormPropertiesByStampSheetResult.fromDict(response.data);
2239
- }).catch(function (error) {
2240
- if (error.response) {
2241
- throw JSON.parse(error.response.data.message);
2242
- }
2243
- else {
2244
- throw [];
2245
- }
1716
+ return this.request('POST', url, headers, undefined, body).then(function (data) {
1717
+ return Result.AcquireActionToPropertyFormPropertiesByStampSheetResult.fromDict(data);
2246
1718
  });
2247
1719
  };
2248
1720
  Gs2FormationRestClient.ENDPOINT_HOST = null;