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.
- package/account/rest.js +130 -564
- package/account/rest.js.map +1 -1
- package/adReward/rest.js +44 -203
- package/adReward/rest.js.map +1 -1
- package/auth/rest.js +10 -52
- package/auth/rest.js.map +1 -1
- package/buff/rest.js +56 -249
- package/buff/rest.js.map +1 -1
- package/chat/rest.js +108 -463
- package/chat/rest.js.map +1 -1
- package/core/AbstractGs2RestClient.d.ts +9 -0
- package/core/AbstractGs2RestClient.js +48 -0
- package/core/AbstractGs2RestClient.js.map +1 -1
- package/core/model.d.ts +9 -1
- package/core/model.js +4 -1
- package/core/model.js.map +1 -1
- package/datastore/rest.js +78 -370
- package/datastore/rest.js.map +1 -1
- package/deploy/rest.js +48 -209
- package/deploy/rest.js.map +1 -1
- package/dictionary/rest.js +102 -450
- package/dictionary/rest.js.map +1 -1
- package/distributor/rest.js +96 -465
- package/distributor/rest.js.map +1 -1
- package/enchant/rest.js +112 -497
- package/enchant/rest.js.map +1 -1
- package/enhance/rest.js +100 -455
- package/enhance/rest.js.map +1 -1
- package/exchange/rest.js +108 -491
- package/exchange/rest.js.map +1 -1
- package/experience/rest.js +120 -561
- package/experience/rest.js.map +1 -1
- package/formation/rest.js +158 -686
- package/formation/rest.js.map +1 -1
- package/freeze/rest.js +12 -51
- package/freeze/rest.js.map +1 -1
- package/friend/rest.js +118 -490
- package/friend/rest.js.map +1 -1
- package/gateway/rest.js +56 -245
- package/gateway/rest.js.map +1 -1
- package/grade/rest.js +96 -449
- package/grade/rest.js.map +1 -1
- package/guard/rest.js +14 -58
- package/guard/rest.js.map +1 -1
- package/guild/rest.js +186 -840
- package/guild/rest.js.map +1 -1
- package/identifier/rest.js +60 -259
- package/identifier/rest.js.map +1 -1
- package/idle/rest.js +84 -387
- package/idle/rest.js.map +1 -1
- package/inbox/rest.js +96 -437
- package/inbox/rest.js.map +1 -1
- package/inventory/rest.js +270 -1206
- package/inventory/rest.js.map +1 -1
- package/jobQueue/rest.js +50 -220
- package/jobQueue/rest.js.map +1 -1
- package/key/rest.js +38 -166
- package/key/rest.js.map +1 -1
- package/limit/rest.js +80 -361
- package/limit/rest.js.map +1 -1
- package/lock/rest.js +28 -123
- package/lock/rest.js.map +1 -1
- package/log/rest.js +46 -186
- package/log/rest.js.map +1 -1
- package/loginReward/rest.js +82 -376
- package/loginReward/rest.js.map +1 -1
- package/lottery/rest.js +100 -427
- package/lottery/rest.js.map +1 -1
- package/matchmaking/rest.js +146 -644
- package/matchmaking/rest.js.map +1 -1
- package/megaField/rest.js +68 -307
- package/megaField/rest.js.map +1 -1
- package/mission/rest.js +158 -726
- package/mission/rest.js.map +1 -1
- package/money/rest.js +58 -264
- package/money/rest.js.map +1 -1
- package/money2/rest.js +126 -542
- package/money2/rest.js.map +1 -1
- package/news/rest.js +36 -147
- package/news/rest.js.map +1 -1
- package/package.json +5 -5
- package/project/request/WaitCleanUserDataRequest.d.ts +0 -4
- package/project/request/WaitCleanUserDataRequest.js +0 -14
- package/project/request/WaitCleanUserDataRequest.js.map +1 -1
- package/project/request/WaitDumpUserDataRequest.d.ts +0 -4
- package/project/request/WaitDumpUserDataRequest.js +0 -14
- package/project/request/WaitDumpUserDataRequest.js.map +1 -1
- package/project/request/WaitImportUserDataRequest.d.ts +0 -4
- package/project/request/WaitImportUserDataRequest.js +0 -14
- package/project/request/WaitImportUserDataRequest.js.map +1 -1
- package/project/rest.js +91 -411
- package/project/rest.js.map +1 -1
- package/quest/rest.js +100 -431
- package/quest/rest.js.map +1 -1
- package/ranking/rest.js +92 -387
- package/ranking/rest.js.map +1 -1
- package/ranking2/rest.js +220 -939
- package/ranking2/rest.js.map +1 -1
- package/realtime/rest.js +24 -97
- package/realtime/rest.js.map +1 -1
- package/schedule/rest.js +94 -418
- package/schedule/rest.js.map +1 -1
- package/script/rest.js +34 -156
- package/script/rest.js.map +1 -1
- package/seasonRating/rest.js +70 -314
- package/seasonRating/rest.js.map +1 -1
- package/serialKey/rest.js +84 -383
- package/serialKey/rest.js.map +1 -1
- package/showcase/rest.js +116 -515
- package/showcase/rest.js.map +1 -1
- package/skillTree/rest.js +82 -372
- package/skillTree/rest.js.map +1 -1
- package/stamina/rest.js +166 -798
- package/stamina/rest.js.map +1 -1
- package/stateMachine/rest.js +62 -270
- package/stateMachine/rest.js.map +1 -1
- package/version/rest.js +78 -346
- package/version/rest.js.map +1 -1
- package/watch/rest.js +156 -563
- package/watch/rest.js.map +1 -1
package/stamina/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 Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
24
23
|
tslib_1.__extends(Gs2StaminaRestClient, _super);
|
|
25
24
|
function Gs2StaminaRestClient(session) {
|
|
@@ -40,13 +39,8 @@ var Gs2StaminaRestClient = /** @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
|
|
44
|
-
|
|
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
|
Gs2StaminaRestClient.prototype.createNamespace = function (request) {
|
|
@@ -66,17 +60,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
66
60
|
'overflowTriggerScript': (_g = request.getOverflowTriggerScript()) !== null && _g !== void 0 ? _g : null,
|
|
67
61
|
'logSetting': (_j = (_h = request.getLogSetting()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
68
62
|
};
|
|
69
|
-
return
|
|
70
|
-
|
|
71
|
-
}).then(function (response) {
|
|
72
|
-
return Result.CreateNamespaceResult.fromDict(response.data);
|
|
73
|
-
}).catch(function (error) {
|
|
74
|
-
if (error.response) {
|
|
75
|
-
throw JSON.parse(error.response.data.message);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
throw [];
|
|
79
|
-
}
|
|
63
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
64
|
+
return Result.CreateNamespaceResult.fromDict(data);
|
|
80
65
|
});
|
|
81
66
|
};
|
|
82
67
|
Gs2StaminaRestClient.prototype.getNamespaceStatus = function (request) {
|
|
@@ -92,13 +77,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
92
77
|
var params = {
|
|
93
78
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
94
79
|
};
|
|
95
|
-
return
|
|
96
|
-
|
|
97
|
-
headers: headers,
|
|
98
|
-
}).then(function (response) {
|
|
99
|
-
return Result.GetNamespaceStatusResult.fromDict(response.data);
|
|
100
|
-
}).catch(function (error) {
|
|
101
|
-
throw JSON.parse(error.response.data.message);
|
|
80
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
81
|
+
return Result.GetNamespaceStatusResult.fromDict(data);
|
|
102
82
|
});
|
|
103
83
|
};
|
|
104
84
|
Gs2StaminaRestClient.prototype.getNamespace = function (request) {
|
|
@@ -114,13 +94,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
114
94
|
var params = {
|
|
115
95
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
116
96
|
};
|
|
117
|
-
return
|
|
118
|
-
|
|
119
|
-
headers: headers,
|
|
120
|
-
}).then(function (response) {
|
|
121
|
-
return Result.GetNamespaceResult.fromDict(response.data);
|
|
122
|
-
}).catch(function (error) {
|
|
123
|
-
throw JSON.parse(error.response.data.message);
|
|
97
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
98
|
+
return Result.GetNamespaceResult.fromDict(data);
|
|
124
99
|
});
|
|
125
100
|
};
|
|
126
101
|
Gs2StaminaRestClient.prototype.updateNamespace = function (request) {
|
|
@@ -140,17 +115,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
140
115
|
'overflowTriggerScript': (_h = request.getOverflowTriggerScript()) !== null && _h !== void 0 ? _h : null,
|
|
141
116
|
'logSetting': (_k = (_j = request.getLogSetting()) === null || _j === void 0 ? void 0 : _j.toDict()) !== null && _k !== void 0 ? _k : null,
|
|
142
117
|
};
|
|
143
|
-
return
|
|
144
|
-
|
|
145
|
-
}).then(function (response) {
|
|
146
|
-
return Result.UpdateNamespaceResult.fromDict(response.data);
|
|
147
|
-
}).catch(function (error) {
|
|
148
|
-
if (error.response) {
|
|
149
|
-
throw JSON.parse(error.response.data.message);
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
throw [];
|
|
153
|
-
}
|
|
118
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
119
|
+
return Result.UpdateNamespaceResult.fromDict(data);
|
|
154
120
|
});
|
|
155
121
|
};
|
|
156
122
|
Gs2StaminaRestClient.prototype.deleteNamespace = function (request) {
|
|
@@ -166,13 +132,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
166
132
|
var params = {
|
|
167
133
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
168
134
|
};
|
|
169
|
-
return
|
|
170
|
-
|
|
171
|
-
headers: headers,
|
|
172
|
-
}).then(function (response) {
|
|
173
|
-
return Result.DeleteNamespaceResult.fromDict(response.data);
|
|
174
|
-
}).catch(function (error) {
|
|
175
|
-
throw JSON.parse(error.response.data.message);
|
|
135
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
136
|
+
return Result.DeleteNamespaceResult.fromDict(data);
|
|
176
137
|
});
|
|
177
138
|
};
|
|
178
139
|
Gs2StaminaRestClient.prototype.getServiceVersion = function (request) {
|
|
@@ -187,13 +148,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
187
148
|
var params = {
|
|
188
149
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
189
150
|
};
|
|
190
|
-
return
|
|
191
|
-
|
|
192
|
-
headers: headers,
|
|
193
|
-
}).then(function (response) {
|
|
194
|
-
return Result.GetServiceVersionResult.fromDict(response.data);
|
|
195
|
-
}).catch(function (error) {
|
|
196
|
-
throw JSON.parse(error.response.data.message);
|
|
151
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
152
|
+
return Result.GetServiceVersionResult.fromDict(data);
|
|
197
153
|
});
|
|
198
154
|
};
|
|
199
155
|
Gs2StaminaRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
@@ -212,17 +168,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
212
168
|
var body = {
|
|
213
169
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
214
170
|
};
|
|
215
|
-
return
|
|
216
|
-
|
|
217
|
-
}).then(function (response) {
|
|
218
|
-
return Result.DumpUserDataByUserIdResult.fromDict(response.data);
|
|
219
|
-
}).catch(function (error) {
|
|
220
|
-
if (error.response) {
|
|
221
|
-
throw JSON.parse(error.response.data.message);
|
|
222
|
-
}
|
|
223
|
-
else {
|
|
224
|
-
throw [];
|
|
225
|
-
}
|
|
171
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
172
|
+
return Result.DumpUserDataByUserIdResult.fromDict(data);
|
|
226
173
|
});
|
|
227
174
|
};
|
|
228
175
|
Gs2StaminaRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
@@ -241,13 +188,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
241
188
|
var params = {
|
|
242
189
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
243
190
|
};
|
|
244
|
-
return
|
|
245
|
-
|
|
246
|
-
headers: headers,
|
|
247
|
-
}).then(function (response) {
|
|
248
|
-
return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
|
|
249
|
-
}).catch(function (error) {
|
|
250
|
-
throw JSON.parse(error.response.data.message);
|
|
191
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
192
|
+
return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
|
|
251
193
|
});
|
|
252
194
|
};
|
|
253
195
|
Gs2StaminaRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
@@ -266,17 +208,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
266
208
|
var body = {
|
|
267
209
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
268
210
|
};
|
|
269
|
-
return
|
|
270
|
-
|
|
271
|
-
}).then(function (response) {
|
|
272
|
-
return Result.CleanUserDataByUserIdResult.fromDict(response.data);
|
|
273
|
-
}).catch(function (error) {
|
|
274
|
-
if (error.response) {
|
|
275
|
-
throw JSON.parse(error.response.data.message);
|
|
276
|
-
}
|
|
277
|
-
else {
|
|
278
|
-
throw [];
|
|
279
|
-
}
|
|
211
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
212
|
+
return Result.CleanUserDataByUserIdResult.fromDict(data);
|
|
280
213
|
});
|
|
281
214
|
};
|
|
282
215
|
Gs2StaminaRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
@@ -295,13 +228,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
295
228
|
var params = {
|
|
296
229
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
297
230
|
};
|
|
298
|
-
return
|
|
299
|
-
|
|
300
|
-
headers: headers,
|
|
301
|
-
}).then(function (response) {
|
|
302
|
-
return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
|
|
303
|
-
}).catch(function (error) {
|
|
304
|
-
throw JSON.parse(error.response.data.message);
|
|
231
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
232
|
+
return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
|
|
305
233
|
});
|
|
306
234
|
};
|
|
307
235
|
Gs2StaminaRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
@@ -320,17 +248,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
320
248
|
var body = {
|
|
321
249
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
322
250
|
};
|
|
323
|
-
return
|
|
324
|
-
|
|
325
|
-
}).then(function (response) {
|
|
326
|
-
return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
|
|
327
|
-
}).catch(function (error) {
|
|
328
|
-
if (error.response) {
|
|
329
|
-
throw JSON.parse(error.response.data.message);
|
|
330
|
-
}
|
|
331
|
-
else {
|
|
332
|
-
throw [];
|
|
333
|
-
}
|
|
251
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
252
|
+
return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
|
|
334
253
|
});
|
|
335
254
|
};
|
|
336
255
|
Gs2StaminaRestClient.prototype.importUserDataByUserId = function (request) {
|
|
@@ -350,17 +269,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
350
269
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
351
270
|
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
352
271
|
};
|
|
353
|
-
return
|
|
354
|
-
|
|
355
|
-
}).then(function (response) {
|
|
356
|
-
return Result.ImportUserDataByUserIdResult.fromDict(response.data);
|
|
357
|
-
}).catch(function (error) {
|
|
358
|
-
if (error.response) {
|
|
359
|
-
throw JSON.parse(error.response.data.message);
|
|
360
|
-
}
|
|
361
|
-
else {
|
|
362
|
-
throw [];
|
|
363
|
-
}
|
|
272
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
273
|
+
return Result.ImportUserDataByUserIdResult.fromDict(data);
|
|
364
274
|
});
|
|
365
275
|
};
|
|
366
276
|
Gs2StaminaRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
@@ -380,13 +290,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
380
290
|
var params = {
|
|
381
291
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
382
292
|
};
|
|
383
|
-
return
|
|
384
|
-
|
|
385
|
-
headers: headers,
|
|
386
|
-
}).then(function (response) {
|
|
387
|
-
return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
|
|
388
|
-
}).catch(function (error) {
|
|
389
|
-
throw JSON.parse(error.response.data.message);
|
|
293
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
294
|
+
return Result.CheckImportUserDataByUserIdResult.fromDict(data);
|
|
390
295
|
});
|
|
391
296
|
};
|
|
392
297
|
Gs2StaminaRestClient.prototype.describeStaminaModelMasters = function (request) {
|
|
@@ -405,13 +310,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
405
310
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
406
311
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
407
312
|
};
|
|
408
|
-
return
|
|
409
|
-
|
|
410
|
-
headers: headers,
|
|
411
|
-
}).then(function (response) {
|
|
412
|
-
return Result.DescribeStaminaModelMastersResult.fromDict(response.data);
|
|
413
|
-
}).catch(function (error) {
|
|
414
|
-
throw JSON.parse(error.response.data.message);
|
|
313
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
314
|
+
return Result.DescribeStaminaModelMastersResult.fromDict(data);
|
|
415
315
|
});
|
|
416
316
|
};
|
|
417
317
|
Gs2StaminaRestClient.prototype.createStaminaModelMaster = function (request) {
|
|
@@ -438,17 +338,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
438
338
|
'recoverIntervalTableName': (_p = request.getRecoverIntervalTableName()) !== null && _p !== void 0 ? _p : null,
|
|
439
339
|
'recoverValueTableName': (_q = request.getRecoverValueTableName()) !== null && _q !== void 0 ? _q : null,
|
|
440
340
|
};
|
|
441
|
-
return
|
|
442
|
-
|
|
443
|
-
}).then(function (response) {
|
|
444
|
-
return Result.CreateStaminaModelMasterResult.fromDict(response.data);
|
|
445
|
-
}).catch(function (error) {
|
|
446
|
-
if (error.response) {
|
|
447
|
-
throw JSON.parse(error.response.data.message);
|
|
448
|
-
}
|
|
449
|
-
else {
|
|
450
|
-
throw [];
|
|
451
|
-
}
|
|
341
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
342
|
+
return Result.CreateStaminaModelMasterResult.fromDict(data);
|
|
452
343
|
});
|
|
453
344
|
};
|
|
454
345
|
Gs2StaminaRestClient.prototype.getStaminaModelMaster = function (request) {
|
|
@@ -465,13 +356,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
465
356
|
var params = {
|
|
466
357
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
467
358
|
};
|
|
468
|
-
return
|
|
469
|
-
|
|
470
|
-
headers: headers,
|
|
471
|
-
}).then(function (response) {
|
|
472
|
-
return Result.GetStaminaModelMasterResult.fromDict(response.data);
|
|
473
|
-
}).catch(function (error) {
|
|
474
|
-
throw JSON.parse(error.response.data.message);
|
|
359
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
360
|
+
return Result.GetStaminaModelMasterResult.fromDict(data);
|
|
475
361
|
});
|
|
476
362
|
};
|
|
477
363
|
Gs2StaminaRestClient.prototype.updateStaminaModelMaster = function (request) {
|
|
@@ -498,17 +384,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
498
384
|
'recoverIntervalTableName': (_q = request.getRecoverIntervalTableName()) !== null && _q !== void 0 ? _q : null,
|
|
499
385
|
'recoverValueTableName': (_r = request.getRecoverValueTableName()) !== null && _r !== void 0 ? _r : null,
|
|
500
386
|
};
|
|
501
|
-
return
|
|
502
|
-
|
|
503
|
-
}).then(function (response) {
|
|
504
|
-
return Result.UpdateStaminaModelMasterResult.fromDict(response.data);
|
|
505
|
-
}).catch(function (error) {
|
|
506
|
-
if (error.response) {
|
|
507
|
-
throw JSON.parse(error.response.data.message);
|
|
508
|
-
}
|
|
509
|
-
else {
|
|
510
|
-
throw [];
|
|
511
|
-
}
|
|
387
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
388
|
+
return Result.UpdateStaminaModelMasterResult.fromDict(data);
|
|
512
389
|
});
|
|
513
390
|
};
|
|
514
391
|
Gs2StaminaRestClient.prototype.deleteStaminaModelMaster = function (request) {
|
|
@@ -525,13 +402,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
525
402
|
var params = {
|
|
526
403
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
527
404
|
};
|
|
528
|
-
return
|
|
529
|
-
|
|
530
|
-
headers: headers,
|
|
531
|
-
}).then(function (response) {
|
|
532
|
-
return Result.DeleteStaminaModelMasterResult.fromDict(response.data);
|
|
533
|
-
}).catch(function (error) {
|
|
534
|
-
throw JSON.parse(error.response.data.message);
|
|
405
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
406
|
+
return Result.DeleteStaminaModelMasterResult.fromDict(data);
|
|
535
407
|
});
|
|
536
408
|
};
|
|
537
409
|
Gs2StaminaRestClient.prototype.describeMaxStaminaTableMasters = function (request) {
|
|
@@ -549,13 +421,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
549
421
|
'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
|
|
550
422
|
'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
|
|
551
423
|
};
|
|
552
|
-
return
|
|
553
|
-
|
|
554
|
-
headers: headers,
|
|
555
|
-
}).then(function (response) {
|
|
556
|
-
return Result.DescribeMaxStaminaTableMastersResult.fromDict(response.data);
|
|
557
|
-
}).catch(function (error) {
|
|
558
|
-
throw JSON.parse(error.response.data.message);
|
|
424
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
425
|
+
return Result.DescribeMaxStaminaTableMastersResult.fromDict(data);
|
|
559
426
|
});
|
|
560
427
|
};
|
|
561
428
|
Gs2StaminaRestClient.prototype.createMaxStaminaTableMaster = function (request) {
|
|
@@ -576,17 +443,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
576
443
|
'experienceModelId': (_h = request.getExperienceModelId()) !== null && _h !== void 0 ? _h : null,
|
|
577
444
|
'values': (_j = request.getValues()) !== null && _j !== void 0 ? _j : null,
|
|
578
445
|
};
|
|
579
|
-
return
|
|
580
|
-
|
|
581
|
-
}).then(function (response) {
|
|
582
|
-
return Result.CreateMaxStaminaTableMasterResult.fromDict(response.data);
|
|
583
|
-
}).catch(function (error) {
|
|
584
|
-
if (error.response) {
|
|
585
|
-
throw JSON.parse(error.response.data.message);
|
|
586
|
-
}
|
|
587
|
-
else {
|
|
588
|
-
throw [];
|
|
589
|
-
}
|
|
446
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
447
|
+
return Result.CreateMaxStaminaTableMasterResult.fromDict(data);
|
|
590
448
|
});
|
|
591
449
|
};
|
|
592
450
|
Gs2StaminaRestClient.prototype.getMaxStaminaTableMaster = function (request) {
|
|
@@ -603,13 +461,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
603
461
|
var params = {
|
|
604
462
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
605
463
|
};
|
|
606
|
-
return
|
|
607
|
-
|
|
608
|
-
headers: headers,
|
|
609
|
-
}).then(function (response) {
|
|
610
|
-
return Result.GetMaxStaminaTableMasterResult.fromDict(response.data);
|
|
611
|
-
}).catch(function (error) {
|
|
612
|
-
throw JSON.parse(error.response.data.message);
|
|
464
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
465
|
+
return Result.GetMaxStaminaTableMasterResult.fromDict(data);
|
|
613
466
|
});
|
|
614
467
|
};
|
|
615
468
|
Gs2StaminaRestClient.prototype.updateMaxStaminaTableMaster = function (request) {
|
|
@@ -630,17 +483,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
630
483
|
'experienceModelId': (_j = request.getExperienceModelId()) !== null && _j !== void 0 ? _j : null,
|
|
631
484
|
'values': (_k = request.getValues()) !== null && _k !== void 0 ? _k : null,
|
|
632
485
|
};
|
|
633
|
-
return
|
|
634
|
-
|
|
635
|
-
}).then(function (response) {
|
|
636
|
-
return Result.UpdateMaxStaminaTableMasterResult.fromDict(response.data);
|
|
637
|
-
}).catch(function (error) {
|
|
638
|
-
if (error.response) {
|
|
639
|
-
throw JSON.parse(error.response.data.message);
|
|
640
|
-
}
|
|
641
|
-
else {
|
|
642
|
-
throw [];
|
|
643
|
-
}
|
|
486
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
487
|
+
return Result.UpdateMaxStaminaTableMasterResult.fromDict(data);
|
|
644
488
|
});
|
|
645
489
|
};
|
|
646
490
|
Gs2StaminaRestClient.prototype.deleteMaxStaminaTableMaster = function (request) {
|
|
@@ -657,13 +501,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
657
501
|
var params = {
|
|
658
502
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
659
503
|
};
|
|
660
|
-
return
|
|
661
|
-
|
|
662
|
-
headers: headers,
|
|
663
|
-
}).then(function (response) {
|
|
664
|
-
return Result.DeleteMaxStaminaTableMasterResult.fromDict(response.data);
|
|
665
|
-
}).catch(function (error) {
|
|
666
|
-
throw JSON.parse(error.response.data.message);
|
|
504
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
505
|
+
return Result.DeleteMaxStaminaTableMasterResult.fromDict(data);
|
|
667
506
|
});
|
|
668
507
|
};
|
|
669
508
|
Gs2StaminaRestClient.prototype.describeRecoverIntervalTableMasters = function (request) {
|
|
@@ -682,13 +521,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
682
521
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
683
522
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
684
523
|
};
|
|
685
|
-
return
|
|
686
|
-
|
|
687
|
-
headers: headers,
|
|
688
|
-
}).then(function (response) {
|
|
689
|
-
return Result.DescribeRecoverIntervalTableMastersResult.fromDict(response.data);
|
|
690
|
-
}).catch(function (error) {
|
|
691
|
-
throw JSON.parse(error.response.data.message);
|
|
524
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
525
|
+
return Result.DescribeRecoverIntervalTableMastersResult.fromDict(data);
|
|
692
526
|
});
|
|
693
527
|
};
|
|
694
528
|
Gs2StaminaRestClient.prototype.createRecoverIntervalTableMaster = function (request) {
|
|
@@ -709,17 +543,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
709
543
|
'experienceModelId': (_h = request.getExperienceModelId()) !== null && _h !== void 0 ? _h : null,
|
|
710
544
|
'values': (_j = request.getValues()) !== null && _j !== void 0 ? _j : null,
|
|
711
545
|
};
|
|
712
|
-
return
|
|
713
|
-
|
|
714
|
-
}).then(function (response) {
|
|
715
|
-
return Result.CreateRecoverIntervalTableMasterResult.fromDict(response.data);
|
|
716
|
-
}).catch(function (error) {
|
|
717
|
-
if (error.response) {
|
|
718
|
-
throw JSON.parse(error.response.data.message);
|
|
719
|
-
}
|
|
720
|
-
else {
|
|
721
|
-
throw [];
|
|
722
|
-
}
|
|
546
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
547
|
+
return Result.CreateRecoverIntervalTableMasterResult.fromDict(data);
|
|
723
548
|
});
|
|
724
549
|
};
|
|
725
550
|
Gs2StaminaRestClient.prototype.getRecoverIntervalTableMaster = function (request) {
|
|
@@ -736,13 +561,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
736
561
|
var params = {
|
|
737
562
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
738
563
|
};
|
|
739
|
-
return
|
|
740
|
-
|
|
741
|
-
headers: headers,
|
|
742
|
-
}).then(function (response) {
|
|
743
|
-
return Result.GetRecoverIntervalTableMasterResult.fromDict(response.data);
|
|
744
|
-
}).catch(function (error) {
|
|
745
|
-
throw JSON.parse(error.response.data.message);
|
|
564
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
565
|
+
return Result.GetRecoverIntervalTableMasterResult.fromDict(data);
|
|
746
566
|
});
|
|
747
567
|
};
|
|
748
568
|
Gs2StaminaRestClient.prototype.updateRecoverIntervalTableMaster = function (request) {
|
|
@@ -763,17 +583,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
763
583
|
'experienceModelId': (_j = request.getExperienceModelId()) !== null && _j !== void 0 ? _j : null,
|
|
764
584
|
'values': (_k = request.getValues()) !== null && _k !== void 0 ? _k : null,
|
|
765
585
|
};
|
|
766
|
-
return
|
|
767
|
-
|
|
768
|
-
}).then(function (response) {
|
|
769
|
-
return Result.UpdateRecoverIntervalTableMasterResult.fromDict(response.data);
|
|
770
|
-
}).catch(function (error) {
|
|
771
|
-
if (error.response) {
|
|
772
|
-
throw JSON.parse(error.response.data.message);
|
|
773
|
-
}
|
|
774
|
-
else {
|
|
775
|
-
throw [];
|
|
776
|
-
}
|
|
586
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
587
|
+
return Result.UpdateRecoverIntervalTableMasterResult.fromDict(data);
|
|
777
588
|
});
|
|
778
589
|
};
|
|
779
590
|
Gs2StaminaRestClient.prototype.deleteRecoverIntervalTableMaster = function (request) {
|
|
@@ -790,13 +601,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
790
601
|
var params = {
|
|
791
602
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
792
603
|
};
|
|
793
|
-
return
|
|
794
|
-
|
|
795
|
-
headers: headers,
|
|
796
|
-
}).then(function (response) {
|
|
797
|
-
return Result.DeleteRecoverIntervalTableMasterResult.fromDict(response.data);
|
|
798
|
-
}).catch(function (error) {
|
|
799
|
-
throw JSON.parse(error.response.data.message);
|
|
604
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
605
|
+
return Result.DeleteRecoverIntervalTableMasterResult.fromDict(data);
|
|
800
606
|
});
|
|
801
607
|
};
|
|
802
608
|
Gs2StaminaRestClient.prototype.describeRecoverValueTableMasters = function (request) {
|
|
@@ -815,13 +621,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
815
621
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
816
622
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
817
623
|
};
|
|
818
|
-
return
|
|
819
|
-
|
|
820
|
-
headers: headers,
|
|
821
|
-
}).then(function (response) {
|
|
822
|
-
return Result.DescribeRecoverValueTableMastersResult.fromDict(response.data);
|
|
823
|
-
}).catch(function (error) {
|
|
824
|
-
throw JSON.parse(error.response.data.message);
|
|
624
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
625
|
+
return Result.DescribeRecoverValueTableMastersResult.fromDict(data);
|
|
825
626
|
});
|
|
826
627
|
};
|
|
827
628
|
Gs2StaminaRestClient.prototype.createRecoverValueTableMaster = function (request) {
|
|
@@ -842,17 +643,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
842
643
|
'experienceModelId': (_h = request.getExperienceModelId()) !== null && _h !== void 0 ? _h : null,
|
|
843
644
|
'values': (_j = request.getValues()) !== null && _j !== void 0 ? _j : null,
|
|
844
645
|
};
|
|
845
|
-
return
|
|
846
|
-
|
|
847
|
-
}).then(function (response) {
|
|
848
|
-
return Result.CreateRecoverValueTableMasterResult.fromDict(response.data);
|
|
849
|
-
}).catch(function (error) {
|
|
850
|
-
if (error.response) {
|
|
851
|
-
throw JSON.parse(error.response.data.message);
|
|
852
|
-
}
|
|
853
|
-
else {
|
|
854
|
-
throw [];
|
|
855
|
-
}
|
|
646
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
647
|
+
return Result.CreateRecoverValueTableMasterResult.fromDict(data);
|
|
856
648
|
});
|
|
857
649
|
};
|
|
858
650
|
Gs2StaminaRestClient.prototype.getRecoverValueTableMaster = function (request) {
|
|
@@ -869,13 +661,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
869
661
|
var params = {
|
|
870
662
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
871
663
|
};
|
|
872
|
-
return
|
|
873
|
-
|
|
874
|
-
headers: headers,
|
|
875
|
-
}).then(function (response) {
|
|
876
|
-
return Result.GetRecoverValueTableMasterResult.fromDict(response.data);
|
|
877
|
-
}).catch(function (error) {
|
|
878
|
-
throw JSON.parse(error.response.data.message);
|
|
664
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
665
|
+
return Result.GetRecoverValueTableMasterResult.fromDict(data);
|
|
879
666
|
});
|
|
880
667
|
};
|
|
881
668
|
Gs2StaminaRestClient.prototype.updateRecoverValueTableMaster = function (request) {
|
|
@@ -896,17 +683,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
896
683
|
'experienceModelId': (_j = request.getExperienceModelId()) !== null && _j !== void 0 ? _j : null,
|
|
897
684
|
'values': (_k = request.getValues()) !== null && _k !== void 0 ? _k : null,
|
|
898
685
|
};
|
|
899
|
-
return
|
|
900
|
-
|
|
901
|
-
}).then(function (response) {
|
|
902
|
-
return Result.UpdateRecoverValueTableMasterResult.fromDict(response.data);
|
|
903
|
-
}).catch(function (error) {
|
|
904
|
-
if (error.response) {
|
|
905
|
-
throw JSON.parse(error.response.data.message);
|
|
906
|
-
}
|
|
907
|
-
else {
|
|
908
|
-
throw [];
|
|
909
|
-
}
|
|
686
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
687
|
+
return Result.UpdateRecoverValueTableMasterResult.fromDict(data);
|
|
910
688
|
});
|
|
911
689
|
};
|
|
912
690
|
Gs2StaminaRestClient.prototype.deleteRecoverValueTableMaster = function (request) {
|
|
@@ -923,13 +701,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
923
701
|
var params = {
|
|
924
702
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
925
703
|
};
|
|
926
|
-
return
|
|
927
|
-
|
|
928
|
-
headers: headers,
|
|
929
|
-
}).then(function (response) {
|
|
930
|
-
return Result.DeleteRecoverValueTableMasterResult.fromDict(response.data);
|
|
931
|
-
}).catch(function (error) {
|
|
932
|
-
throw JSON.parse(error.response.data.message);
|
|
704
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
705
|
+
return Result.DeleteRecoverValueTableMasterResult.fromDict(data);
|
|
933
706
|
});
|
|
934
707
|
};
|
|
935
708
|
Gs2StaminaRestClient.prototype.exportMaster = function (request) {
|
|
@@ -945,13 +718,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
945
718
|
var params = {
|
|
946
719
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
947
720
|
};
|
|
948
|
-
return
|
|
949
|
-
|
|
950
|
-
headers: headers,
|
|
951
|
-
}).then(function (response) {
|
|
952
|
-
return Result.ExportMasterResult.fromDict(response.data);
|
|
953
|
-
}).catch(function (error) {
|
|
954
|
-
throw JSON.parse(error.response.data.message);
|
|
721
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
722
|
+
return Result.ExportMasterResult.fromDict(data);
|
|
955
723
|
});
|
|
956
724
|
};
|
|
957
725
|
Gs2StaminaRestClient.prototype.getCurrentStaminaMaster = function (request) {
|
|
@@ -967,13 +735,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
967
735
|
var params = {
|
|
968
736
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
969
737
|
};
|
|
970
|
-
return
|
|
971
|
-
|
|
972
|
-
headers: headers,
|
|
973
|
-
}).then(function (response) {
|
|
974
|
-
return Result.GetCurrentStaminaMasterResult.fromDict(response.data);
|
|
975
|
-
}).catch(function (error) {
|
|
976
|
-
throw JSON.parse(error.response.data.message);
|
|
738
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
739
|
+
return Result.GetCurrentStaminaMasterResult.fromDict(data);
|
|
977
740
|
});
|
|
978
741
|
};
|
|
979
742
|
Gs2StaminaRestClient.prototype.preUpdateCurrentStaminaMaster = function (request) {
|
|
@@ -989,17 +752,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
989
752
|
var body = {
|
|
990
753
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
991
754
|
};
|
|
992
|
-
return
|
|
993
|
-
|
|
994
|
-
}).then(function (response) {
|
|
995
|
-
return Result.PreUpdateCurrentStaminaMasterResult.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
|
-
}
|
|
755
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
756
|
+
return Result.PreUpdateCurrentStaminaMasterResult.fromDict(data);
|
|
1003
757
|
});
|
|
1004
758
|
};
|
|
1005
759
|
Gs2StaminaRestClient.prototype.updateCurrentStaminaMaster = function (request) {
|
|
@@ -1018,17 +772,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1018
772
|
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1019
773
|
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1020
774
|
};
|
|
1021
|
-
return
|
|
1022
|
-
|
|
1023
|
-
}).then(function (response) {
|
|
1024
|
-
return Result.UpdateCurrentStaminaMasterResult.fromDict(response.data);
|
|
1025
|
-
}).catch(function (error) {
|
|
1026
|
-
if (error.response) {
|
|
1027
|
-
throw JSON.parse(error.response.data.message);
|
|
1028
|
-
}
|
|
1029
|
-
else {
|
|
1030
|
-
throw [];
|
|
1031
|
-
}
|
|
775
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
776
|
+
return Result.UpdateCurrentStaminaMasterResult.fromDict(data);
|
|
1032
777
|
});
|
|
1033
778
|
};
|
|
1034
779
|
Gs2StaminaRestClient.prototype.updateCurrentStaminaMasterFromGitHub = function (request) {
|
|
@@ -1045,17 +790,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1045
790
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1046
791
|
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1047
792
|
};
|
|
1048
|
-
return
|
|
1049
|
-
|
|
1050
|
-
}).then(function (response) {
|
|
1051
|
-
return Result.UpdateCurrentStaminaMasterFromGitHubResult.fromDict(response.data);
|
|
1052
|
-
}).catch(function (error) {
|
|
1053
|
-
if (error.response) {
|
|
1054
|
-
throw JSON.parse(error.response.data.message);
|
|
1055
|
-
}
|
|
1056
|
-
else {
|
|
1057
|
-
throw [];
|
|
1058
|
-
}
|
|
793
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
794
|
+
return Result.UpdateCurrentStaminaMasterFromGitHubResult.fromDict(data);
|
|
1059
795
|
});
|
|
1060
796
|
};
|
|
1061
797
|
Gs2StaminaRestClient.prototype.describeStaminaModels = function (request) {
|
|
@@ -1071,13 +807,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1071
807
|
var params = {
|
|
1072
808
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1073
809
|
};
|
|
1074
|
-
return
|
|
1075
|
-
|
|
1076
|
-
headers: headers,
|
|
1077
|
-
}).then(function (response) {
|
|
1078
|
-
return Result.DescribeStaminaModelsResult.fromDict(response.data);
|
|
1079
|
-
}).catch(function (error) {
|
|
1080
|
-
throw JSON.parse(error.response.data.message);
|
|
810
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
811
|
+
return Result.DescribeStaminaModelsResult.fromDict(data);
|
|
1081
812
|
});
|
|
1082
813
|
};
|
|
1083
814
|
Gs2StaminaRestClient.prototype.getStaminaModel = function (request) {
|
|
@@ -1094,13 +825,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1094
825
|
var params = {
|
|
1095
826
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1096
827
|
};
|
|
1097
|
-
return
|
|
1098
|
-
|
|
1099
|
-
headers: headers,
|
|
1100
|
-
}).then(function (response) {
|
|
1101
|
-
return Result.GetStaminaModelResult.fromDict(response.data);
|
|
1102
|
-
}).catch(function (error) {
|
|
1103
|
-
throw JSON.parse(error.response.data.message);
|
|
828
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
829
|
+
return Result.GetStaminaModelResult.fromDict(data);
|
|
1104
830
|
});
|
|
1105
831
|
};
|
|
1106
832
|
Gs2StaminaRestClient.prototype.describeStaminas = function (request) {
|
|
@@ -1121,13 +847,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1121
847
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1122
848
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1123
849
|
};
|
|
1124
|
-
return
|
|
1125
|
-
|
|
1126
|
-
headers: headers,
|
|
1127
|
-
}).then(function (response) {
|
|
1128
|
-
return Result.DescribeStaminasResult.fromDict(response.data);
|
|
1129
|
-
}).catch(function (error) {
|
|
1130
|
-
throw JSON.parse(error.response.data.message);
|
|
850
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
851
|
+
return Result.DescribeStaminasResult.fromDict(data);
|
|
1131
852
|
});
|
|
1132
853
|
};
|
|
1133
854
|
Gs2StaminaRestClient.prototype.describeStaminasByUserId = function (request) {
|
|
@@ -1149,13 +870,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1149
870
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
1150
871
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
1151
872
|
};
|
|
1152
|
-
return
|
|
1153
|
-
|
|
1154
|
-
headers: headers,
|
|
1155
|
-
}).then(function (response) {
|
|
1156
|
-
return Result.DescribeStaminasByUserIdResult.fromDict(response.data);
|
|
1157
|
-
}).catch(function (error) {
|
|
1158
|
-
throw JSON.parse(error.response.data.message);
|
|
873
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
874
|
+
return Result.DescribeStaminasByUserIdResult.fromDict(data);
|
|
1159
875
|
});
|
|
1160
876
|
};
|
|
1161
877
|
Gs2StaminaRestClient.prototype.getStamina = function (request) {
|
|
@@ -1175,13 +891,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1175
891
|
var params = {
|
|
1176
892
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1177
893
|
};
|
|
1178
|
-
return
|
|
1179
|
-
|
|
1180
|
-
headers: headers,
|
|
1181
|
-
}).then(function (response) {
|
|
1182
|
-
return Result.GetStaminaResult.fromDict(response.data);
|
|
1183
|
-
}).catch(function (error) {
|
|
1184
|
-
throw JSON.parse(error.response.data.message);
|
|
894
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
895
|
+
return Result.GetStaminaResult.fromDict(data);
|
|
1185
896
|
});
|
|
1186
897
|
};
|
|
1187
898
|
Gs2StaminaRestClient.prototype.getStaminaByUserId = function (request) {
|
|
@@ -1202,13 +913,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1202
913
|
var params = {
|
|
1203
914
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1204
915
|
};
|
|
1205
|
-
return
|
|
1206
|
-
|
|
1207
|
-
headers: headers,
|
|
1208
|
-
}).then(function (response) {
|
|
1209
|
-
return Result.GetStaminaByUserIdResult.fromDict(response.data);
|
|
1210
|
-
}).catch(function (error) {
|
|
1211
|
-
throw JSON.parse(error.response.data.message);
|
|
916
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
917
|
+
return Result.GetStaminaByUserIdResult.fromDict(data);
|
|
1212
918
|
});
|
|
1213
919
|
};
|
|
1214
920
|
Gs2StaminaRestClient.prototype.updateStaminaByUserId = function (request) {
|
|
@@ -1236,17 +942,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1236
942
|
'recoverIntervalMinutes': (_o = request.getRecoverIntervalMinutes()) !== null && _o !== void 0 ? _o : null,
|
|
1237
943
|
'recoverValue': (_p = request.getRecoverValue()) !== null && _p !== void 0 ? _p : null,
|
|
1238
944
|
};
|
|
1239
|
-
return
|
|
1240
|
-
|
|
1241
|
-
}).then(function (response) {
|
|
1242
|
-
return Result.UpdateStaminaByUserIdResult.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
|
-
}
|
|
945
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
946
|
+
return Result.UpdateStaminaByUserIdResult.fromDict(data);
|
|
1250
947
|
});
|
|
1251
948
|
};
|
|
1252
949
|
Gs2StaminaRestClient.prototype.consumeStamina = function (request) {
|
|
@@ -1270,17 +967,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1270
967
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1271
968
|
'consumeValue': (_j = request.getConsumeValue()) !== null && _j !== void 0 ? _j : null,
|
|
1272
969
|
};
|
|
1273
|
-
return
|
|
1274
|
-
|
|
1275
|
-
}).then(function (response) {
|
|
1276
|
-
return Result.ConsumeStaminaResult.fromDict(response.data);
|
|
1277
|
-
}).catch(function (error) {
|
|
1278
|
-
if (error.response) {
|
|
1279
|
-
throw JSON.parse(error.response.data.message);
|
|
1280
|
-
}
|
|
1281
|
-
else {
|
|
1282
|
-
throw [];
|
|
1283
|
-
}
|
|
970
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
971
|
+
return Result.ConsumeStaminaResult.fromDict(data);
|
|
1284
972
|
});
|
|
1285
973
|
};
|
|
1286
974
|
Gs2StaminaRestClient.prototype.consumeStaminaByUserId = function (request) {
|
|
@@ -1305,17 +993,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1305
993
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1306
994
|
'consumeValue': (_l = request.getConsumeValue()) !== null && _l !== void 0 ? _l : null,
|
|
1307
995
|
};
|
|
1308
|
-
return
|
|
1309
|
-
|
|
1310
|
-
}).then(function (response) {
|
|
1311
|
-
return Result.ConsumeStaminaByUserIdResult.fromDict(response.data);
|
|
1312
|
-
}).catch(function (error) {
|
|
1313
|
-
if (error.response) {
|
|
1314
|
-
throw JSON.parse(error.response.data.message);
|
|
1315
|
-
}
|
|
1316
|
-
else {
|
|
1317
|
-
throw [];
|
|
1318
|
-
}
|
|
996
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
997
|
+
return Result.ConsumeStaminaByUserIdResult.fromDict(data);
|
|
1319
998
|
});
|
|
1320
999
|
};
|
|
1321
1000
|
Gs2StaminaRestClient.prototype.applyStamina = function (request) {
|
|
@@ -1338,17 +1017,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1338
1017
|
var body = {
|
|
1339
1018
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1340
1019
|
};
|
|
1341
|
-
return
|
|
1342
|
-
|
|
1343
|
-
}).then(function (response) {
|
|
1344
|
-
return Result.ApplyStaminaResult.fromDict(response.data);
|
|
1345
|
-
}).catch(function (error) {
|
|
1346
|
-
if (error.response) {
|
|
1347
|
-
throw JSON.parse(error.response.data.message);
|
|
1348
|
-
}
|
|
1349
|
-
else {
|
|
1350
|
-
throw [];
|
|
1351
|
-
}
|
|
1020
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1021
|
+
return Result.ApplyStaminaResult.fromDict(data);
|
|
1352
1022
|
});
|
|
1353
1023
|
};
|
|
1354
1024
|
Gs2StaminaRestClient.prototype.applyStaminaByUserId = function (request) {
|
|
@@ -1372,17 +1042,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1372
1042
|
var body = {
|
|
1373
1043
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1374
1044
|
};
|
|
1375
|
-
return
|
|
1376
|
-
|
|
1377
|
-
}).then(function (response) {
|
|
1378
|
-
return Result.ApplyStaminaByUserIdResult.fromDict(response.data);
|
|
1379
|
-
}).catch(function (error) {
|
|
1380
|
-
if (error.response) {
|
|
1381
|
-
throw JSON.parse(error.response.data.message);
|
|
1382
|
-
}
|
|
1383
|
-
else {
|
|
1384
|
-
throw [];
|
|
1385
|
-
}
|
|
1045
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1046
|
+
return Result.ApplyStaminaByUserIdResult.fromDict(data);
|
|
1386
1047
|
});
|
|
1387
1048
|
};
|
|
1388
1049
|
Gs2StaminaRestClient.prototype.recoverStaminaByUserId = function (request) {
|
|
@@ -1407,17 +1068,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1407
1068
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1408
1069
|
'recoverValue': (_l = request.getRecoverValue()) !== null && _l !== void 0 ? _l : null,
|
|
1409
1070
|
};
|
|
1410
|
-
return
|
|
1411
|
-
|
|
1412
|
-
}).then(function (response) {
|
|
1413
|
-
return Result.RecoverStaminaByUserIdResult.fromDict(response.data);
|
|
1414
|
-
}).catch(function (error) {
|
|
1415
|
-
if (error.response) {
|
|
1416
|
-
throw JSON.parse(error.response.data.message);
|
|
1417
|
-
}
|
|
1418
|
-
else {
|
|
1419
|
-
throw [];
|
|
1420
|
-
}
|
|
1071
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1072
|
+
return Result.RecoverStaminaByUserIdResult.fromDict(data);
|
|
1421
1073
|
});
|
|
1422
1074
|
};
|
|
1423
1075
|
Gs2StaminaRestClient.prototype.raiseMaxValueByUserId = function (request) {
|
|
@@ -1442,17 +1094,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1442
1094
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1443
1095
|
'raiseValue': (_l = request.getRaiseValue()) !== null && _l !== void 0 ? _l : null,
|
|
1444
1096
|
};
|
|
1445
|
-
return
|
|
1446
|
-
|
|
1447
|
-
}).then(function (response) {
|
|
1448
|
-
return Result.RaiseMaxValueByUserIdResult.fromDict(response.data);
|
|
1449
|
-
}).catch(function (error) {
|
|
1450
|
-
if (error.response) {
|
|
1451
|
-
throw JSON.parse(error.response.data.message);
|
|
1452
|
-
}
|
|
1453
|
-
else {
|
|
1454
|
-
throw [];
|
|
1455
|
-
}
|
|
1097
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1098
|
+
return Result.RaiseMaxValueByUserIdResult.fromDict(data);
|
|
1456
1099
|
});
|
|
1457
1100
|
};
|
|
1458
1101
|
Gs2StaminaRestClient.prototype.decreaseMaxValue = function (request) {
|
|
@@ -1476,17 +1119,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1476
1119
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1477
1120
|
'decreaseValue': (_j = request.getDecreaseValue()) !== null && _j !== void 0 ? _j : null,
|
|
1478
1121
|
};
|
|
1479
|
-
return
|
|
1480
|
-
|
|
1481
|
-
}).then(function (response) {
|
|
1482
|
-
return Result.DecreaseMaxValueResult.fromDict(response.data);
|
|
1483
|
-
}).catch(function (error) {
|
|
1484
|
-
if (error.response) {
|
|
1485
|
-
throw JSON.parse(error.response.data.message);
|
|
1486
|
-
}
|
|
1487
|
-
else {
|
|
1488
|
-
throw [];
|
|
1489
|
-
}
|
|
1122
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1123
|
+
return Result.DecreaseMaxValueResult.fromDict(data);
|
|
1490
1124
|
});
|
|
1491
1125
|
};
|
|
1492
1126
|
Gs2StaminaRestClient.prototype.decreaseMaxValueByUserId = function (request) {
|
|
@@ -1511,17 +1145,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1511
1145
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1512
1146
|
'decreaseValue': (_l = request.getDecreaseValue()) !== null && _l !== void 0 ? _l : null,
|
|
1513
1147
|
};
|
|
1514
|
-
return
|
|
1515
|
-
|
|
1516
|
-
}).then(function (response) {
|
|
1517
|
-
return Result.DecreaseMaxValueByUserIdResult.fromDict(response.data);
|
|
1518
|
-
}).catch(function (error) {
|
|
1519
|
-
if (error.response) {
|
|
1520
|
-
throw JSON.parse(error.response.data.message);
|
|
1521
|
-
}
|
|
1522
|
-
else {
|
|
1523
|
-
throw [];
|
|
1524
|
-
}
|
|
1148
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1149
|
+
return Result.DecreaseMaxValueByUserIdResult.fromDict(data);
|
|
1525
1150
|
});
|
|
1526
1151
|
};
|
|
1527
1152
|
Gs2StaminaRestClient.prototype.setMaxValueByUserId = function (request) {
|
|
@@ -1546,17 +1171,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1546
1171
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1547
1172
|
'maxValue': (_l = request.getMaxValue()) !== null && _l !== void 0 ? _l : null,
|
|
1548
1173
|
};
|
|
1549
|
-
return
|
|
1550
|
-
|
|
1551
|
-
}).then(function (response) {
|
|
1552
|
-
return Result.SetMaxValueByUserIdResult.fromDict(response.data);
|
|
1553
|
-
}).catch(function (error) {
|
|
1554
|
-
if (error.response) {
|
|
1555
|
-
throw JSON.parse(error.response.data.message);
|
|
1556
|
-
}
|
|
1557
|
-
else {
|
|
1558
|
-
throw [];
|
|
1559
|
-
}
|
|
1174
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1175
|
+
return Result.SetMaxValueByUserIdResult.fromDict(data);
|
|
1560
1176
|
});
|
|
1561
1177
|
};
|
|
1562
1178
|
Gs2StaminaRestClient.prototype.setRecoverIntervalByUserId = function (request) {
|
|
@@ -1581,17 +1197,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1581
1197
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1582
1198
|
'recoverIntervalMinutes': (_l = request.getRecoverIntervalMinutes()) !== null && _l !== void 0 ? _l : null,
|
|
1583
1199
|
};
|
|
1584
|
-
return
|
|
1585
|
-
|
|
1586
|
-
}).then(function (response) {
|
|
1587
|
-
return Result.SetRecoverIntervalByUserIdResult.fromDict(response.data);
|
|
1588
|
-
}).catch(function (error) {
|
|
1589
|
-
if (error.response) {
|
|
1590
|
-
throw JSON.parse(error.response.data.message);
|
|
1591
|
-
}
|
|
1592
|
-
else {
|
|
1593
|
-
throw [];
|
|
1594
|
-
}
|
|
1200
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1201
|
+
return Result.SetRecoverIntervalByUserIdResult.fromDict(data);
|
|
1595
1202
|
});
|
|
1596
1203
|
};
|
|
1597
1204
|
Gs2StaminaRestClient.prototype.setRecoverValueByUserId = function (request) {
|
|
@@ -1616,17 +1223,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1616
1223
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1617
1224
|
'recoverValue': (_l = request.getRecoverValue()) !== null && _l !== void 0 ? _l : null,
|
|
1618
1225
|
};
|
|
1619
|
-
return
|
|
1620
|
-
|
|
1621
|
-
}).then(function (response) {
|
|
1622
|
-
return Result.SetRecoverValueByUserIdResult.fromDict(response.data);
|
|
1623
|
-
}).catch(function (error) {
|
|
1624
|
-
if (error.response) {
|
|
1625
|
-
throw JSON.parse(error.response.data.message);
|
|
1626
|
-
}
|
|
1627
|
-
else {
|
|
1628
|
-
throw [];
|
|
1629
|
-
}
|
|
1226
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1227
|
+
return Result.SetRecoverValueByUserIdResult.fromDict(data);
|
|
1630
1228
|
});
|
|
1631
1229
|
};
|
|
1632
1230
|
Gs2StaminaRestClient.prototype.setMaxValueByStatus = function (request) {
|
|
@@ -1652,17 +1250,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1652
1250
|
'signedStatusBody': (_k = request.getSignedStatusBody()) !== null && _k !== void 0 ? _k : null,
|
|
1653
1251
|
'signedStatusSignature': (_l = request.getSignedStatusSignature()) !== null && _l !== void 0 ? _l : null,
|
|
1654
1252
|
};
|
|
1655
|
-
return
|
|
1656
|
-
|
|
1657
|
-
}).then(function (response) {
|
|
1658
|
-
return Result.SetMaxValueByStatusResult.fromDict(response.data);
|
|
1659
|
-
}).catch(function (error) {
|
|
1660
|
-
if (error.response) {
|
|
1661
|
-
throw JSON.parse(error.response.data.message);
|
|
1662
|
-
}
|
|
1663
|
-
else {
|
|
1664
|
-
throw [];
|
|
1665
|
-
}
|
|
1253
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1254
|
+
return Result.SetMaxValueByStatusResult.fromDict(data);
|
|
1666
1255
|
});
|
|
1667
1256
|
};
|
|
1668
1257
|
Gs2StaminaRestClient.prototype.setRecoverIntervalByStatus = function (request) {
|
|
@@ -1688,17 +1277,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1688
1277
|
'signedStatusBody': (_k = request.getSignedStatusBody()) !== null && _k !== void 0 ? _k : null,
|
|
1689
1278
|
'signedStatusSignature': (_l = request.getSignedStatusSignature()) !== null && _l !== void 0 ? _l : null,
|
|
1690
1279
|
};
|
|
1691
|
-
return
|
|
1692
|
-
|
|
1693
|
-
}).then(function (response) {
|
|
1694
|
-
return Result.SetRecoverIntervalByStatusResult.fromDict(response.data);
|
|
1695
|
-
}).catch(function (error) {
|
|
1696
|
-
if (error.response) {
|
|
1697
|
-
throw JSON.parse(error.response.data.message);
|
|
1698
|
-
}
|
|
1699
|
-
else {
|
|
1700
|
-
throw [];
|
|
1701
|
-
}
|
|
1280
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1281
|
+
return Result.SetRecoverIntervalByStatusResult.fromDict(data);
|
|
1702
1282
|
});
|
|
1703
1283
|
};
|
|
1704
1284
|
Gs2StaminaRestClient.prototype.setRecoverValueByStatus = function (request) {
|
|
@@ -1724,17 +1304,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1724
1304
|
'signedStatusBody': (_k = request.getSignedStatusBody()) !== null && _k !== void 0 ? _k : null,
|
|
1725
1305
|
'signedStatusSignature': (_l = request.getSignedStatusSignature()) !== null && _l !== void 0 ? _l : null,
|
|
1726
1306
|
};
|
|
1727
|
-
return
|
|
1728
|
-
|
|
1729
|
-
}).then(function (response) {
|
|
1730
|
-
return Result.SetRecoverValueByStatusResult.fromDict(response.data);
|
|
1731
|
-
}).catch(function (error) {
|
|
1732
|
-
if (error.response) {
|
|
1733
|
-
throw JSON.parse(error.response.data.message);
|
|
1734
|
-
}
|
|
1735
|
-
else {
|
|
1736
|
-
throw [];
|
|
1737
|
-
}
|
|
1307
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1308
|
+
return Result.SetRecoverValueByStatusResult.fromDict(data);
|
|
1738
1309
|
});
|
|
1739
1310
|
};
|
|
1740
1311
|
Gs2StaminaRestClient.prototype.deleteStaminaByUserId = function (request) {
|
|
@@ -1758,13 +1329,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1758
1329
|
var params = {
|
|
1759
1330
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1760
1331
|
};
|
|
1761
|
-
return
|
|
1762
|
-
|
|
1763
|
-
headers: headers,
|
|
1764
|
-
}).then(function (response) {
|
|
1765
|
-
return Result.DeleteStaminaByUserIdResult.fromDict(response.data);
|
|
1766
|
-
}).catch(function (error) {
|
|
1767
|
-
throw JSON.parse(error.response.data.message);
|
|
1332
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1333
|
+
return Result.DeleteStaminaByUserIdResult.fromDict(data);
|
|
1768
1334
|
});
|
|
1769
1335
|
};
|
|
1770
1336
|
Gs2StaminaRestClient.prototype.verifyStaminaValue = function (request) {
|
|
@@ -1790,17 +1356,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1790
1356
|
'value': (_l = request.getValue()) !== null && _l !== void 0 ? _l : null,
|
|
1791
1357
|
'multiplyValueSpecifyingQuantity': (_m = request.getMultiplyValueSpecifyingQuantity()) !== null && _m !== void 0 ? _m : null,
|
|
1792
1358
|
};
|
|
1793
|
-
return
|
|
1794
|
-
|
|
1795
|
-
}).then(function (response) {
|
|
1796
|
-
return Result.VerifyStaminaValueResult.fromDict(response.data);
|
|
1797
|
-
}).catch(function (error) {
|
|
1798
|
-
if (error.response) {
|
|
1799
|
-
throw JSON.parse(error.response.data.message);
|
|
1800
|
-
}
|
|
1801
|
-
else {
|
|
1802
|
-
throw [];
|
|
1803
|
-
}
|
|
1359
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1360
|
+
return Result.VerifyStaminaValueResult.fromDict(data);
|
|
1804
1361
|
});
|
|
1805
1362
|
};
|
|
1806
1363
|
Gs2StaminaRestClient.prototype.verifyStaminaValueByUserId = function (request) {
|
|
@@ -1827,17 +1384,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1827
1384
|
'value': (_o = request.getValue()) !== null && _o !== void 0 ? _o : null,
|
|
1828
1385
|
'multiplyValueSpecifyingQuantity': (_p = request.getMultiplyValueSpecifyingQuantity()) !== null && _p !== void 0 ? _p : null,
|
|
1829
1386
|
};
|
|
1830
|
-
return
|
|
1831
|
-
|
|
1832
|
-
}).then(function (response) {
|
|
1833
|
-
return Result.VerifyStaminaValueByUserIdResult.fromDict(response.data);
|
|
1834
|
-
}).catch(function (error) {
|
|
1835
|
-
if (error.response) {
|
|
1836
|
-
throw JSON.parse(error.response.data.message);
|
|
1837
|
-
}
|
|
1838
|
-
else {
|
|
1839
|
-
throw [];
|
|
1840
|
-
}
|
|
1387
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1388
|
+
return Result.VerifyStaminaValueByUserIdResult.fromDict(data);
|
|
1841
1389
|
});
|
|
1842
1390
|
};
|
|
1843
1391
|
Gs2StaminaRestClient.prototype.verifyStaminaMaxValue = function (request) {
|
|
@@ -1863,17 +1411,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1863
1411
|
'value': (_l = request.getValue()) !== null && _l !== void 0 ? _l : null,
|
|
1864
1412
|
'multiplyValueSpecifyingQuantity': (_m = request.getMultiplyValueSpecifyingQuantity()) !== null && _m !== void 0 ? _m : null,
|
|
1865
1413
|
};
|
|
1866
|
-
return
|
|
1867
|
-
|
|
1868
|
-
}).then(function (response) {
|
|
1869
|
-
return Result.VerifyStaminaMaxValueResult.fromDict(response.data);
|
|
1870
|
-
}).catch(function (error) {
|
|
1871
|
-
if (error.response) {
|
|
1872
|
-
throw JSON.parse(error.response.data.message);
|
|
1873
|
-
}
|
|
1874
|
-
else {
|
|
1875
|
-
throw [];
|
|
1876
|
-
}
|
|
1414
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1415
|
+
return Result.VerifyStaminaMaxValueResult.fromDict(data);
|
|
1877
1416
|
});
|
|
1878
1417
|
};
|
|
1879
1418
|
Gs2StaminaRestClient.prototype.verifyStaminaMaxValueByUserId = function (request) {
|
|
@@ -1900,17 +1439,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1900
1439
|
'value': (_o = request.getValue()) !== null && _o !== void 0 ? _o : null,
|
|
1901
1440
|
'multiplyValueSpecifyingQuantity': (_p = request.getMultiplyValueSpecifyingQuantity()) !== null && _p !== void 0 ? _p : null,
|
|
1902
1441
|
};
|
|
1903
|
-
return
|
|
1904
|
-
|
|
1905
|
-
}).then(function (response) {
|
|
1906
|
-
return Result.VerifyStaminaMaxValueByUserIdResult.fromDict(response.data);
|
|
1907
|
-
}).catch(function (error) {
|
|
1908
|
-
if (error.response) {
|
|
1909
|
-
throw JSON.parse(error.response.data.message);
|
|
1910
|
-
}
|
|
1911
|
-
else {
|
|
1912
|
-
throw [];
|
|
1913
|
-
}
|
|
1442
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1443
|
+
return Result.VerifyStaminaMaxValueByUserIdResult.fromDict(data);
|
|
1914
1444
|
});
|
|
1915
1445
|
};
|
|
1916
1446
|
Gs2StaminaRestClient.prototype.verifyStaminaRecoverIntervalMinutes = function (request) {
|
|
@@ -1936,17 +1466,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1936
1466
|
'value': (_l = request.getValue()) !== null && _l !== void 0 ? _l : null,
|
|
1937
1467
|
'multiplyValueSpecifyingQuantity': (_m = request.getMultiplyValueSpecifyingQuantity()) !== null && _m !== void 0 ? _m : null,
|
|
1938
1468
|
};
|
|
1939
|
-
return
|
|
1940
|
-
|
|
1941
|
-
}).then(function (response) {
|
|
1942
|
-
return Result.VerifyStaminaRecoverIntervalMinutesResult.fromDict(response.data);
|
|
1943
|
-
}).catch(function (error) {
|
|
1944
|
-
if (error.response) {
|
|
1945
|
-
throw JSON.parse(error.response.data.message);
|
|
1946
|
-
}
|
|
1947
|
-
else {
|
|
1948
|
-
throw [];
|
|
1949
|
-
}
|
|
1469
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1470
|
+
return Result.VerifyStaminaRecoverIntervalMinutesResult.fromDict(data);
|
|
1950
1471
|
});
|
|
1951
1472
|
};
|
|
1952
1473
|
Gs2StaminaRestClient.prototype.verifyStaminaRecoverIntervalMinutesByUserId = function (request) {
|
|
@@ -1973,17 +1494,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
1973
1494
|
'value': (_o = request.getValue()) !== null && _o !== void 0 ? _o : null,
|
|
1974
1495
|
'multiplyValueSpecifyingQuantity': (_p = request.getMultiplyValueSpecifyingQuantity()) !== null && _p !== void 0 ? _p : null,
|
|
1975
1496
|
};
|
|
1976
|
-
return
|
|
1977
|
-
|
|
1978
|
-
}).then(function (response) {
|
|
1979
|
-
return Result.VerifyStaminaRecoverIntervalMinutesByUserIdResult.fromDict(response.data);
|
|
1980
|
-
}).catch(function (error) {
|
|
1981
|
-
if (error.response) {
|
|
1982
|
-
throw JSON.parse(error.response.data.message);
|
|
1983
|
-
}
|
|
1984
|
-
else {
|
|
1985
|
-
throw [];
|
|
1986
|
-
}
|
|
1497
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1498
|
+
return Result.VerifyStaminaRecoverIntervalMinutesByUserIdResult.fromDict(data);
|
|
1987
1499
|
});
|
|
1988
1500
|
};
|
|
1989
1501
|
Gs2StaminaRestClient.prototype.verifyStaminaRecoverValue = function (request) {
|
|
@@ -2009,17 +1521,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2009
1521
|
'value': (_l = request.getValue()) !== null && _l !== void 0 ? _l : null,
|
|
2010
1522
|
'multiplyValueSpecifyingQuantity': (_m = request.getMultiplyValueSpecifyingQuantity()) !== null && _m !== void 0 ? _m : null,
|
|
2011
1523
|
};
|
|
2012
|
-
return
|
|
2013
|
-
|
|
2014
|
-
}).then(function (response) {
|
|
2015
|
-
return Result.VerifyStaminaRecoverValueResult.fromDict(response.data);
|
|
2016
|
-
}).catch(function (error) {
|
|
2017
|
-
if (error.response) {
|
|
2018
|
-
throw JSON.parse(error.response.data.message);
|
|
2019
|
-
}
|
|
2020
|
-
else {
|
|
2021
|
-
throw [];
|
|
2022
|
-
}
|
|
1524
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1525
|
+
return Result.VerifyStaminaRecoverValueResult.fromDict(data);
|
|
2023
1526
|
});
|
|
2024
1527
|
};
|
|
2025
1528
|
Gs2StaminaRestClient.prototype.verifyStaminaRecoverValueByUserId = function (request) {
|
|
@@ -2046,17 +1549,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2046
1549
|
'value': (_o = request.getValue()) !== null && _o !== void 0 ? _o : null,
|
|
2047
1550
|
'multiplyValueSpecifyingQuantity': (_p = request.getMultiplyValueSpecifyingQuantity()) !== null && _p !== void 0 ? _p : null,
|
|
2048
1551
|
};
|
|
2049
|
-
return
|
|
2050
|
-
|
|
2051
|
-
}).then(function (response) {
|
|
2052
|
-
return Result.VerifyStaminaRecoverValueByUserIdResult.fromDict(response.data);
|
|
2053
|
-
}).catch(function (error) {
|
|
2054
|
-
if (error.response) {
|
|
2055
|
-
throw JSON.parse(error.response.data.message);
|
|
2056
|
-
}
|
|
2057
|
-
else {
|
|
2058
|
-
throw [];
|
|
2059
|
-
}
|
|
1552
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1553
|
+
return Result.VerifyStaminaRecoverValueByUserIdResult.fromDict(data);
|
|
2060
1554
|
});
|
|
2061
1555
|
};
|
|
2062
1556
|
Gs2StaminaRestClient.prototype.verifyStaminaOverflowValue = function (request) {
|
|
@@ -2082,17 +1576,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2082
1576
|
'value': (_l = request.getValue()) !== null && _l !== void 0 ? _l : null,
|
|
2083
1577
|
'multiplyValueSpecifyingQuantity': (_m = request.getMultiplyValueSpecifyingQuantity()) !== null && _m !== void 0 ? _m : null,
|
|
2084
1578
|
};
|
|
2085
|
-
return
|
|
2086
|
-
|
|
2087
|
-
}).then(function (response) {
|
|
2088
|
-
return Result.VerifyStaminaOverflowValueResult.fromDict(response.data);
|
|
2089
|
-
}).catch(function (error) {
|
|
2090
|
-
if (error.response) {
|
|
2091
|
-
throw JSON.parse(error.response.data.message);
|
|
2092
|
-
}
|
|
2093
|
-
else {
|
|
2094
|
-
throw [];
|
|
2095
|
-
}
|
|
1579
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1580
|
+
return Result.VerifyStaminaOverflowValueResult.fromDict(data);
|
|
2096
1581
|
});
|
|
2097
1582
|
};
|
|
2098
1583
|
Gs2StaminaRestClient.prototype.verifyStaminaOverflowValueByUserId = function (request) {
|
|
@@ -2119,17 +1604,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2119
1604
|
'value': (_o = request.getValue()) !== null && _o !== void 0 ? _o : null,
|
|
2120
1605
|
'multiplyValueSpecifyingQuantity': (_p = request.getMultiplyValueSpecifyingQuantity()) !== null && _p !== void 0 ? _p : null,
|
|
2121
1606
|
};
|
|
2122
|
-
return
|
|
2123
|
-
|
|
2124
|
-
}).then(function (response) {
|
|
2125
|
-
return Result.VerifyStaminaOverflowValueByUserIdResult.fromDict(response.data);
|
|
2126
|
-
}).catch(function (error) {
|
|
2127
|
-
if (error.response) {
|
|
2128
|
-
throw JSON.parse(error.response.data.message);
|
|
2129
|
-
}
|
|
2130
|
-
else {
|
|
2131
|
-
throw [];
|
|
2132
|
-
}
|
|
1607
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1608
|
+
return Result.VerifyStaminaOverflowValueByUserIdResult.fromDict(data);
|
|
2133
1609
|
});
|
|
2134
1610
|
};
|
|
2135
1611
|
Gs2StaminaRestClient.prototype.recoverStaminaByStampSheet = function (request) {
|
|
@@ -2146,17 +1622,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2146
1622
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
2147
1623
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2148
1624
|
};
|
|
2149
|
-
return
|
|
2150
|
-
|
|
2151
|
-
}).then(function (response) {
|
|
2152
|
-
return Result.RecoverStaminaByStampSheetResult.fromDict(response.data);
|
|
2153
|
-
}).catch(function (error) {
|
|
2154
|
-
if (error.response) {
|
|
2155
|
-
throw JSON.parse(error.response.data.message);
|
|
2156
|
-
}
|
|
2157
|
-
else {
|
|
2158
|
-
throw [];
|
|
2159
|
-
}
|
|
1625
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1626
|
+
return Result.RecoverStaminaByStampSheetResult.fromDict(data);
|
|
2160
1627
|
});
|
|
2161
1628
|
};
|
|
2162
1629
|
Gs2StaminaRestClient.prototype.raiseMaxValueByStampSheet = function (request) {
|
|
@@ -2173,17 +1640,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2173
1640
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
2174
1641
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2175
1642
|
};
|
|
2176
|
-
return
|
|
2177
|
-
|
|
2178
|
-
}).then(function (response) {
|
|
2179
|
-
return Result.RaiseMaxValueByStampSheetResult.fromDict(response.data);
|
|
2180
|
-
}).catch(function (error) {
|
|
2181
|
-
if (error.response) {
|
|
2182
|
-
throw JSON.parse(error.response.data.message);
|
|
2183
|
-
}
|
|
2184
|
-
else {
|
|
2185
|
-
throw [];
|
|
2186
|
-
}
|
|
1643
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1644
|
+
return Result.RaiseMaxValueByStampSheetResult.fromDict(data);
|
|
2187
1645
|
});
|
|
2188
1646
|
};
|
|
2189
1647
|
Gs2StaminaRestClient.prototype.decreaseMaxValueByStampTask = function (request) {
|
|
@@ -2200,17 +1658,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2200
1658
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
2201
1659
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2202
1660
|
};
|
|
2203
|
-
return
|
|
2204
|
-
|
|
2205
|
-
}).then(function (response) {
|
|
2206
|
-
return Result.DecreaseMaxValueByStampTaskResult.fromDict(response.data);
|
|
2207
|
-
}).catch(function (error) {
|
|
2208
|
-
if (error.response) {
|
|
2209
|
-
throw JSON.parse(error.response.data.message);
|
|
2210
|
-
}
|
|
2211
|
-
else {
|
|
2212
|
-
throw [];
|
|
2213
|
-
}
|
|
1661
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1662
|
+
return Result.DecreaseMaxValueByStampTaskResult.fromDict(data);
|
|
2214
1663
|
});
|
|
2215
1664
|
};
|
|
2216
1665
|
Gs2StaminaRestClient.prototype.setMaxValueByStampSheet = function (request) {
|
|
@@ -2227,17 +1676,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2227
1676
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
2228
1677
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2229
1678
|
};
|
|
2230
|
-
return
|
|
2231
|
-
|
|
2232
|
-
}).then(function (response) {
|
|
2233
|
-
return Result.SetMaxValueByStampSheetResult.fromDict(response.data);
|
|
2234
|
-
}).catch(function (error) {
|
|
2235
|
-
if (error.response) {
|
|
2236
|
-
throw JSON.parse(error.response.data.message);
|
|
2237
|
-
}
|
|
2238
|
-
else {
|
|
2239
|
-
throw [];
|
|
2240
|
-
}
|
|
1679
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1680
|
+
return Result.SetMaxValueByStampSheetResult.fromDict(data);
|
|
2241
1681
|
});
|
|
2242
1682
|
};
|
|
2243
1683
|
Gs2StaminaRestClient.prototype.setRecoverIntervalByStampSheet = function (request) {
|
|
@@ -2254,17 +1694,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2254
1694
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
2255
1695
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2256
1696
|
};
|
|
2257
|
-
return
|
|
2258
|
-
|
|
2259
|
-
}).then(function (response) {
|
|
2260
|
-
return Result.SetRecoverIntervalByStampSheetResult.fromDict(response.data);
|
|
2261
|
-
}).catch(function (error) {
|
|
2262
|
-
if (error.response) {
|
|
2263
|
-
throw JSON.parse(error.response.data.message);
|
|
2264
|
-
}
|
|
2265
|
-
else {
|
|
2266
|
-
throw [];
|
|
2267
|
-
}
|
|
1697
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1698
|
+
return Result.SetRecoverIntervalByStampSheetResult.fromDict(data);
|
|
2268
1699
|
});
|
|
2269
1700
|
};
|
|
2270
1701
|
Gs2StaminaRestClient.prototype.setRecoverValueByStampSheet = function (request) {
|
|
@@ -2281,17 +1712,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2281
1712
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
2282
1713
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2283
1714
|
};
|
|
2284
|
-
return
|
|
2285
|
-
|
|
2286
|
-
}).then(function (response) {
|
|
2287
|
-
return Result.SetRecoverValueByStampSheetResult.fromDict(response.data);
|
|
2288
|
-
}).catch(function (error) {
|
|
2289
|
-
if (error.response) {
|
|
2290
|
-
throw JSON.parse(error.response.data.message);
|
|
2291
|
-
}
|
|
2292
|
-
else {
|
|
2293
|
-
throw [];
|
|
2294
|
-
}
|
|
1715
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1716
|
+
return Result.SetRecoverValueByStampSheetResult.fromDict(data);
|
|
2295
1717
|
});
|
|
2296
1718
|
};
|
|
2297
1719
|
Gs2StaminaRestClient.prototype.consumeStaminaByStampTask = function (request) {
|
|
@@ -2308,17 +1730,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2308
1730
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
2309
1731
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2310
1732
|
};
|
|
2311
|
-
return
|
|
2312
|
-
|
|
2313
|
-
}).then(function (response) {
|
|
2314
|
-
return Result.ConsumeStaminaByStampTaskResult.fromDict(response.data);
|
|
2315
|
-
}).catch(function (error) {
|
|
2316
|
-
if (error.response) {
|
|
2317
|
-
throw JSON.parse(error.response.data.message);
|
|
2318
|
-
}
|
|
2319
|
-
else {
|
|
2320
|
-
throw [];
|
|
2321
|
-
}
|
|
1733
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1734
|
+
return Result.ConsumeStaminaByStampTaskResult.fromDict(data);
|
|
2322
1735
|
});
|
|
2323
1736
|
};
|
|
2324
1737
|
Gs2StaminaRestClient.prototype.verifyStaminaValueByStampTask = function (request) {
|
|
@@ -2335,17 +1748,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2335
1748
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
2336
1749
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2337
1750
|
};
|
|
2338
|
-
return
|
|
2339
|
-
|
|
2340
|
-
}).then(function (response) {
|
|
2341
|
-
return Result.VerifyStaminaValueByStampTaskResult.fromDict(response.data);
|
|
2342
|
-
}).catch(function (error) {
|
|
2343
|
-
if (error.response) {
|
|
2344
|
-
throw JSON.parse(error.response.data.message);
|
|
2345
|
-
}
|
|
2346
|
-
else {
|
|
2347
|
-
throw [];
|
|
2348
|
-
}
|
|
1751
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1752
|
+
return Result.VerifyStaminaValueByStampTaskResult.fromDict(data);
|
|
2349
1753
|
});
|
|
2350
1754
|
};
|
|
2351
1755
|
Gs2StaminaRestClient.prototype.verifyStaminaMaxValueByStampTask = function (request) {
|
|
@@ -2362,17 +1766,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2362
1766
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
2363
1767
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2364
1768
|
};
|
|
2365
|
-
return
|
|
2366
|
-
|
|
2367
|
-
}).then(function (response) {
|
|
2368
|
-
return Result.VerifyStaminaMaxValueByStampTaskResult.fromDict(response.data);
|
|
2369
|
-
}).catch(function (error) {
|
|
2370
|
-
if (error.response) {
|
|
2371
|
-
throw JSON.parse(error.response.data.message);
|
|
2372
|
-
}
|
|
2373
|
-
else {
|
|
2374
|
-
throw [];
|
|
2375
|
-
}
|
|
1769
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1770
|
+
return Result.VerifyStaminaMaxValueByStampTaskResult.fromDict(data);
|
|
2376
1771
|
});
|
|
2377
1772
|
};
|
|
2378
1773
|
Gs2StaminaRestClient.prototype.verifyStaminaRecoverIntervalMinutesByStampTask = function (request) {
|
|
@@ -2389,17 +1784,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2389
1784
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
2390
1785
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2391
1786
|
};
|
|
2392
|
-
return
|
|
2393
|
-
|
|
2394
|
-
}).then(function (response) {
|
|
2395
|
-
return Result.VerifyStaminaRecoverIntervalMinutesByStampTaskResult.fromDict(response.data);
|
|
2396
|
-
}).catch(function (error) {
|
|
2397
|
-
if (error.response) {
|
|
2398
|
-
throw JSON.parse(error.response.data.message);
|
|
2399
|
-
}
|
|
2400
|
-
else {
|
|
2401
|
-
throw [];
|
|
2402
|
-
}
|
|
1787
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1788
|
+
return Result.VerifyStaminaRecoverIntervalMinutesByStampTaskResult.fromDict(data);
|
|
2403
1789
|
});
|
|
2404
1790
|
};
|
|
2405
1791
|
Gs2StaminaRestClient.prototype.verifyStaminaRecoverValueByStampTask = function (request) {
|
|
@@ -2416,17 +1802,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2416
1802
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
2417
1803
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2418
1804
|
};
|
|
2419
|
-
return
|
|
2420
|
-
|
|
2421
|
-
}).then(function (response) {
|
|
2422
|
-
return Result.VerifyStaminaRecoverValueByStampTaskResult.fromDict(response.data);
|
|
2423
|
-
}).catch(function (error) {
|
|
2424
|
-
if (error.response) {
|
|
2425
|
-
throw JSON.parse(error.response.data.message);
|
|
2426
|
-
}
|
|
2427
|
-
else {
|
|
2428
|
-
throw [];
|
|
2429
|
-
}
|
|
1805
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1806
|
+
return Result.VerifyStaminaRecoverValueByStampTaskResult.fromDict(data);
|
|
2430
1807
|
});
|
|
2431
1808
|
};
|
|
2432
1809
|
Gs2StaminaRestClient.prototype.verifyStaminaOverflowValueByStampTask = function (request) {
|
|
@@ -2443,17 +1820,8 @@ var Gs2StaminaRestClient = /** @class */ (function (_super) {
|
|
|
2443
1820
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
2444
1821
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
2445
1822
|
};
|
|
2446
|
-
return
|
|
2447
|
-
|
|
2448
|
-
}).then(function (response) {
|
|
2449
|
-
return Result.VerifyStaminaOverflowValueByStampTaskResult.fromDict(response.data);
|
|
2450
|
-
}).catch(function (error) {
|
|
2451
|
-
if (error.response) {
|
|
2452
|
-
throw JSON.parse(error.response.data.message);
|
|
2453
|
-
}
|
|
2454
|
-
else {
|
|
2455
|
-
throw [];
|
|
2456
|
-
}
|
|
1823
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1824
|
+
return Result.VerifyStaminaOverflowValueByStampTaskResult.fromDict(data);
|
|
2457
1825
|
});
|
|
2458
1826
|
};
|
|
2459
1827
|
Gs2StaminaRestClient.ENDPOINT_HOST = null;
|