gs2 1.4.109 → 1.4.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/request/FindPlatformIdByUserIdRequest.d.ts +4 -0
- package/account/request/FindPlatformIdByUserIdRequest.js +14 -0
- package/account/request/FindPlatformIdByUserIdRequest.js.map +1 -1
- package/account/rest.js +132 -565
- 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 +1 -1
- 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/enchant/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 Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
24
23
|
tslib_1.__extends(Gs2EnchantRestClient, _super);
|
|
25
24
|
function Gs2EnchantRestClient(session) {
|
|
@@ -40,13 +39,8 @@ var Gs2EnchantRestClient = /** @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
|
Gs2EnchantRestClient.prototype.createNamespace = function (request) {
|
|
@@ -65,17 +59,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
65
59
|
'transactionSetting': (_f = (_e = request.getTransactionSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
66
60
|
'logSetting': (_h = (_g = request.getLogSetting()) === null || _g === void 0 ? void 0 : _g.toDict()) !== null && _h !== void 0 ? _h : null,
|
|
67
61
|
};
|
|
68
|
-
return
|
|
69
|
-
|
|
70
|
-
}).then(function (response) {
|
|
71
|
-
return Result.CreateNamespaceResult.fromDict(response.data);
|
|
72
|
-
}).catch(function (error) {
|
|
73
|
-
if (error.response) {
|
|
74
|
-
throw JSON.parse(error.response.data.message);
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
throw [];
|
|
78
|
-
}
|
|
62
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
63
|
+
return Result.CreateNamespaceResult.fromDict(data);
|
|
79
64
|
});
|
|
80
65
|
};
|
|
81
66
|
Gs2EnchantRestClient.prototype.getNamespaceStatus = function (request) {
|
|
@@ -91,13 +76,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
91
76
|
var params = {
|
|
92
77
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
93
78
|
};
|
|
94
|
-
return
|
|
95
|
-
|
|
96
|
-
headers: headers,
|
|
97
|
-
}).then(function (response) {
|
|
98
|
-
return Result.GetNamespaceStatusResult.fromDict(response.data);
|
|
99
|
-
}).catch(function (error) {
|
|
100
|
-
throw JSON.parse(error.response.data.message);
|
|
79
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
80
|
+
return Result.GetNamespaceStatusResult.fromDict(data);
|
|
101
81
|
});
|
|
102
82
|
};
|
|
103
83
|
Gs2EnchantRestClient.prototype.getNamespace = function (request) {
|
|
@@ -113,13 +93,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
113
93
|
var params = {
|
|
114
94
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
115
95
|
};
|
|
116
|
-
return
|
|
117
|
-
|
|
118
|
-
headers: headers,
|
|
119
|
-
}).then(function (response) {
|
|
120
|
-
return Result.GetNamespaceResult.fromDict(response.data);
|
|
121
|
-
}).catch(function (error) {
|
|
122
|
-
throw JSON.parse(error.response.data.message);
|
|
96
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
97
|
+
return Result.GetNamespaceResult.fromDict(data);
|
|
123
98
|
});
|
|
124
99
|
};
|
|
125
100
|
Gs2EnchantRestClient.prototype.updateNamespace = function (request) {
|
|
@@ -138,17 +113,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
138
113
|
'transactionSetting': (_g = (_f = request.getTransactionSetting()) === null || _f === void 0 ? void 0 : _f.toDict()) !== null && _g !== void 0 ? _g : null,
|
|
139
114
|
'logSetting': (_j = (_h = request.getLogSetting()) === null || _h === void 0 ? void 0 : _h.toDict()) !== null && _j !== void 0 ? _j : null,
|
|
140
115
|
};
|
|
141
|
-
return
|
|
142
|
-
|
|
143
|
-
}).then(function (response) {
|
|
144
|
-
return Result.UpdateNamespaceResult.fromDict(response.data);
|
|
145
|
-
}).catch(function (error) {
|
|
146
|
-
if (error.response) {
|
|
147
|
-
throw JSON.parse(error.response.data.message);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
throw [];
|
|
151
|
-
}
|
|
116
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
117
|
+
return Result.UpdateNamespaceResult.fromDict(data);
|
|
152
118
|
});
|
|
153
119
|
};
|
|
154
120
|
Gs2EnchantRestClient.prototype.deleteNamespace = function (request) {
|
|
@@ -164,13 +130,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
164
130
|
var params = {
|
|
165
131
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
166
132
|
};
|
|
167
|
-
return
|
|
168
|
-
|
|
169
|
-
headers: headers,
|
|
170
|
-
}).then(function (response) {
|
|
171
|
-
return Result.DeleteNamespaceResult.fromDict(response.data);
|
|
172
|
-
}).catch(function (error) {
|
|
173
|
-
throw JSON.parse(error.response.data.message);
|
|
133
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
134
|
+
return Result.DeleteNamespaceResult.fromDict(data);
|
|
174
135
|
});
|
|
175
136
|
};
|
|
176
137
|
Gs2EnchantRestClient.prototype.getServiceVersion = function (request) {
|
|
@@ -185,13 +146,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
185
146
|
var params = {
|
|
186
147
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
187
148
|
};
|
|
188
|
-
return
|
|
189
|
-
|
|
190
|
-
headers: headers,
|
|
191
|
-
}).then(function (response) {
|
|
192
|
-
return Result.GetServiceVersionResult.fromDict(response.data);
|
|
193
|
-
}).catch(function (error) {
|
|
194
|
-
throw JSON.parse(error.response.data.message);
|
|
149
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
150
|
+
return Result.GetServiceVersionResult.fromDict(data);
|
|
195
151
|
});
|
|
196
152
|
};
|
|
197
153
|
Gs2EnchantRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
@@ -210,17 +166,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
210
166
|
var body = {
|
|
211
167
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
212
168
|
};
|
|
213
|
-
return
|
|
214
|
-
|
|
215
|
-
}).then(function (response) {
|
|
216
|
-
return Result.DumpUserDataByUserIdResult.fromDict(response.data);
|
|
217
|
-
}).catch(function (error) {
|
|
218
|
-
if (error.response) {
|
|
219
|
-
throw JSON.parse(error.response.data.message);
|
|
220
|
-
}
|
|
221
|
-
else {
|
|
222
|
-
throw [];
|
|
223
|
-
}
|
|
169
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
170
|
+
return Result.DumpUserDataByUserIdResult.fromDict(data);
|
|
224
171
|
});
|
|
225
172
|
};
|
|
226
173
|
Gs2EnchantRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
@@ -239,13 +186,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
239
186
|
var params = {
|
|
240
187
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
241
188
|
};
|
|
242
|
-
return
|
|
243
|
-
|
|
244
|
-
headers: headers,
|
|
245
|
-
}).then(function (response) {
|
|
246
|
-
return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
|
|
247
|
-
}).catch(function (error) {
|
|
248
|
-
throw JSON.parse(error.response.data.message);
|
|
189
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
190
|
+
return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
|
|
249
191
|
});
|
|
250
192
|
};
|
|
251
193
|
Gs2EnchantRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
@@ -264,17 +206,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
264
206
|
var body = {
|
|
265
207
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
266
208
|
};
|
|
267
|
-
return
|
|
268
|
-
|
|
269
|
-
}).then(function (response) {
|
|
270
|
-
return Result.CleanUserDataByUserIdResult.fromDict(response.data);
|
|
271
|
-
}).catch(function (error) {
|
|
272
|
-
if (error.response) {
|
|
273
|
-
throw JSON.parse(error.response.data.message);
|
|
274
|
-
}
|
|
275
|
-
else {
|
|
276
|
-
throw [];
|
|
277
|
-
}
|
|
209
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
210
|
+
return Result.CleanUserDataByUserIdResult.fromDict(data);
|
|
278
211
|
});
|
|
279
212
|
};
|
|
280
213
|
Gs2EnchantRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
@@ -293,13 +226,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
293
226
|
var params = {
|
|
294
227
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
295
228
|
};
|
|
296
|
-
return
|
|
297
|
-
|
|
298
|
-
headers: headers,
|
|
299
|
-
}).then(function (response) {
|
|
300
|
-
return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
|
|
301
|
-
}).catch(function (error) {
|
|
302
|
-
throw JSON.parse(error.response.data.message);
|
|
229
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
230
|
+
return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
|
|
303
231
|
});
|
|
304
232
|
};
|
|
305
233
|
Gs2EnchantRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
@@ -318,17 +246,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
318
246
|
var body = {
|
|
319
247
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
320
248
|
};
|
|
321
|
-
return
|
|
322
|
-
|
|
323
|
-
}).then(function (response) {
|
|
324
|
-
return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
|
|
325
|
-
}).catch(function (error) {
|
|
326
|
-
if (error.response) {
|
|
327
|
-
throw JSON.parse(error.response.data.message);
|
|
328
|
-
}
|
|
329
|
-
else {
|
|
330
|
-
throw [];
|
|
331
|
-
}
|
|
249
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
250
|
+
return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
|
|
332
251
|
});
|
|
333
252
|
};
|
|
334
253
|
Gs2EnchantRestClient.prototype.importUserDataByUserId = function (request) {
|
|
@@ -348,17 +267,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
348
267
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
349
268
|
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
350
269
|
};
|
|
351
|
-
return
|
|
352
|
-
|
|
353
|
-
}).then(function (response) {
|
|
354
|
-
return Result.ImportUserDataByUserIdResult.fromDict(response.data);
|
|
355
|
-
}).catch(function (error) {
|
|
356
|
-
if (error.response) {
|
|
357
|
-
throw JSON.parse(error.response.data.message);
|
|
358
|
-
}
|
|
359
|
-
else {
|
|
360
|
-
throw [];
|
|
361
|
-
}
|
|
270
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
271
|
+
return Result.ImportUserDataByUserIdResult.fromDict(data);
|
|
362
272
|
});
|
|
363
273
|
};
|
|
364
274
|
Gs2EnchantRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
@@ -378,13 +288,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
378
288
|
var params = {
|
|
379
289
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
380
290
|
};
|
|
381
|
-
return
|
|
382
|
-
|
|
383
|
-
headers: headers,
|
|
384
|
-
}).then(function (response) {
|
|
385
|
-
return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
|
|
386
|
-
}).catch(function (error) {
|
|
387
|
-
throw JSON.parse(error.response.data.message);
|
|
291
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
292
|
+
return Result.CheckImportUserDataByUserIdResult.fromDict(data);
|
|
388
293
|
});
|
|
389
294
|
};
|
|
390
295
|
Gs2EnchantRestClient.prototype.describeBalanceParameterModels = function (request) {
|
|
@@ -400,13 +305,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
400
305
|
var params = {
|
|
401
306
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
402
307
|
};
|
|
403
|
-
return
|
|
404
|
-
|
|
405
|
-
headers: headers,
|
|
406
|
-
}).then(function (response) {
|
|
407
|
-
return Result.DescribeBalanceParameterModelsResult.fromDict(response.data);
|
|
408
|
-
}).catch(function (error) {
|
|
409
|
-
throw JSON.parse(error.response.data.message);
|
|
308
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
309
|
+
return Result.DescribeBalanceParameterModelsResult.fromDict(data);
|
|
410
310
|
});
|
|
411
311
|
};
|
|
412
312
|
Gs2EnchantRestClient.prototype.getBalanceParameterModel = function (request) {
|
|
@@ -423,13 +323,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
423
323
|
var params = {
|
|
424
324
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
425
325
|
};
|
|
426
|
-
return
|
|
427
|
-
|
|
428
|
-
headers: headers,
|
|
429
|
-
}).then(function (response) {
|
|
430
|
-
return Result.GetBalanceParameterModelResult.fromDict(response.data);
|
|
431
|
-
}).catch(function (error) {
|
|
432
|
-
throw JSON.parse(error.response.data.message);
|
|
326
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
327
|
+
return Result.GetBalanceParameterModelResult.fromDict(data);
|
|
433
328
|
});
|
|
434
329
|
};
|
|
435
330
|
Gs2EnchantRestClient.prototype.describeBalanceParameterModelMasters = function (request) {
|
|
@@ -448,13 +343,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
448
343
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
449
344
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
450
345
|
};
|
|
451
|
-
return
|
|
452
|
-
|
|
453
|
-
headers: headers,
|
|
454
|
-
}).then(function (response) {
|
|
455
|
-
return Result.DescribeBalanceParameterModelMastersResult.fromDict(response.data);
|
|
456
|
-
}).catch(function (error) {
|
|
457
|
-
throw JSON.parse(error.response.data.message);
|
|
346
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
347
|
+
return Result.DescribeBalanceParameterModelMastersResult.fromDict(data);
|
|
458
348
|
});
|
|
459
349
|
};
|
|
460
350
|
Gs2EnchantRestClient.prototype.createBalanceParameterModelMaster = function (request) {
|
|
@@ -476,17 +366,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
476
366
|
'initialValueStrategy': (_j = request.getInitialValueStrategy()) !== null && _j !== void 0 ? _j : null,
|
|
477
367
|
'parameters': (_l = (_k = request.getParameters()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
478
368
|
};
|
|
479
|
-
return
|
|
480
|
-
|
|
481
|
-
}).then(function (response) {
|
|
482
|
-
return Result.CreateBalanceParameterModelMasterResult.fromDict(response.data);
|
|
483
|
-
}).catch(function (error) {
|
|
484
|
-
if (error.response) {
|
|
485
|
-
throw JSON.parse(error.response.data.message);
|
|
486
|
-
}
|
|
487
|
-
else {
|
|
488
|
-
throw [];
|
|
489
|
-
}
|
|
369
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
370
|
+
return Result.CreateBalanceParameterModelMasterResult.fromDict(data);
|
|
490
371
|
});
|
|
491
372
|
};
|
|
492
373
|
Gs2EnchantRestClient.prototype.getBalanceParameterModelMaster = function (request) {
|
|
@@ -503,13 +384,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
503
384
|
var params = {
|
|
504
385
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
505
386
|
};
|
|
506
|
-
return
|
|
507
|
-
|
|
508
|
-
headers: headers,
|
|
509
|
-
}).then(function (response) {
|
|
510
|
-
return Result.GetBalanceParameterModelMasterResult.fromDict(response.data);
|
|
511
|
-
}).catch(function (error) {
|
|
512
|
-
throw JSON.parse(error.response.data.message);
|
|
387
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
388
|
+
return Result.GetBalanceParameterModelMasterResult.fromDict(data);
|
|
513
389
|
});
|
|
514
390
|
};
|
|
515
391
|
Gs2EnchantRestClient.prototype.updateBalanceParameterModelMaster = function (request) {
|
|
@@ -531,17 +407,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
531
407
|
'initialValueStrategy': (_k = request.getInitialValueStrategy()) !== null && _k !== void 0 ? _k : null,
|
|
532
408
|
'parameters': (_m = (_l = request.getParameters()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
533
409
|
};
|
|
534
|
-
return
|
|
535
|
-
|
|
536
|
-
}).then(function (response) {
|
|
537
|
-
return Result.UpdateBalanceParameterModelMasterResult.fromDict(response.data);
|
|
538
|
-
}).catch(function (error) {
|
|
539
|
-
if (error.response) {
|
|
540
|
-
throw JSON.parse(error.response.data.message);
|
|
541
|
-
}
|
|
542
|
-
else {
|
|
543
|
-
throw [];
|
|
544
|
-
}
|
|
410
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
411
|
+
return Result.UpdateBalanceParameterModelMasterResult.fromDict(data);
|
|
545
412
|
});
|
|
546
413
|
};
|
|
547
414
|
Gs2EnchantRestClient.prototype.deleteBalanceParameterModelMaster = function (request) {
|
|
@@ -558,13 +425,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
558
425
|
var params = {
|
|
559
426
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
560
427
|
};
|
|
561
|
-
return
|
|
562
|
-
|
|
563
|
-
headers: headers,
|
|
564
|
-
}).then(function (response) {
|
|
565
|
-
return Result.DeleteBalanceParameterModelMasterResult.fromDict(response.data);
|
|
566
|
-
}).catch(function (error) {
|
|
567
|
-
throw JSON.parse(error.response.data.message);
|
|
428
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
429
|
+
return Result.DeleteBalanceParameterModelMasterResult.fromDict(data);
|
|
568
430
|
});
|
|
569
431
|
};
|
|
570
432
|
Gs2EnchantRestClient.prototype.describeRarityParameterModels = function (request) {
|
|
@@ -580,13 +442,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
580
442
|
var params = {
|
|
581
443
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
582
444
|
};
|
|
583
|
-
return
|
|
584
|
-
|
|
585
|
-
headers: headers,
|
|
586
|
-
}).then(function (response) {
|
|
587
|
-
return Result.DescribeRarityParameterModelsResult.fromDict(response.data);
|
|
588
|
-
}).catch(function (error) {
|
|
589
|
-
throw JSON.parse(error.response.data.message);
|
|
445
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
446
|
+
return Result.DescribeRarityParameterModelsResult.fromDict(data);
|
|
590
447
|
});
|
|
591
448
|
};
|
|
592
449
|
Gs2EnchantRestClient.prototype.getRarityParameterModel = function (request) {
|
|
@@ -603,13 +460,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
603
460
|
var params = {
|
|
604
461
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
605
462
|
};
|
|
606
|
-
return
|
|
607
|
-
|
|
608
|
-
headers: headers,
|
|
609
|
-
}).then(function (response) {
|
|
610
|
-
return Result.GetRarityParameterModelResult.fromDict(response.data);
|
|
611
|
-
}).catch(function (error) {
|
|
612
|
-
throw JSON.parse(error.response.data.message);
|
|
463
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
464
|
+
return Result.GetRarityParameterModelResult.fromDict(data);
|
|
613
465
|
});
|
|
614
466
|
};
|
|
615
467
|
Gs2EnchantRestClient.prototype.describeRarityParameterModelMasters = function (request) {
|
|
@@ -627,13 +479,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
627
479
|
'pageToken': String((_e = request.getPageToken()) !== null && _e !== void 0 ? _e : null),
|
|
628
480
|
'limit': String((_f = request.getLimit()) !== null && _f !== void 0 ? _f : null),
|
|
629
481
|
};
|
|
630
|
-
return
|
|
631
|
-
|
|
632
|
-
headers: headers,
|
|
633
|
-
}).then(function (response) {
|
|
634
|
-
return Result.DescribeRarityParameterModelMastersResult.fromDict(response.data);
|
|
635
|
-
}).catch(function (error) {
|
|
636
|
-
throw JSON.parse(error.response.data.message);
|
|
482
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
483
|
+
return Result.DescribeRarityParameterModelMastersResult.fromDict(data);
|
|
637
484
|
});
|
|
638
485
|
};
|
|
639
486
|
Gs2EnchantRestClient.prototype.createRarityParameterModelMaster = function (request) {
|
|
@@ -655,17 +502,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
655
502
|
'parameterCounts': (_k = (_j = request.getParameterCounts()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
656
503
|
'parameters': (_m = (_l = request.getParameters()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
657
504
|
};
|
|
658
|
-
return
|
|
659
|
-
|
|
660
|
-
}).then(function (response) {
|
|
661
|
-
return Result.CreateRarityParameterModelMasterResult.fromDict(response.data);
|
|
662
|
-
}).catch(function (error) {
|
|
663
|
-
if (error.response) {
|
|
664
|
-
throw JSON.parse(error.response.data.message);
|
|
665
|
-
}
|
|
666
|
-
else {
|
|
667
|
-
throw [];
|
|
668
|
-
}
|
|
505
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
506
|
+
return Result.CreateRarityParameterModelMasterResult.fromDict(data);
|
|
669
507
|
});
|
|
670
508
|
};
|
|
671
509
|
Gs2EnchantRestClient.prototype.getRarityParameterModelMaster = function (request) {
|
|
@@ -682,13 +520,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
682
520
|
var params = {
|
|
683
521
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
684
522
|
};
|
|
685
|
-
return
|
|
686
|
-
|
|
687
|
-
headers: headers,
|
|
688
|
-
}).then(function (response) {
|
|
689
|
-
return Result.GetRarityParameterModelMasterResult.fromDict(response.data);
|
|
690
|
-
}).catch(function (error) {
|
|
691
|
-
throw JSON.parse(error.response.data.message);
|
|
523
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
524
|
+
return Result.GetRarityParameterModelMasterResult.fromDict(data);
|
|
692
525
|
});
|
|
693
526
|
};
|
|
694
527
|
Gs2EnchantRestClient.prototype.updateRarityParameterModelMaster = function (request) {
|
|
@@ -710,17 +543,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
710
543
|
'parameterCounts': (_l = (_k = request.getParameterCounts()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
711
544
|
'parameters': (_o = (_m = request.getParameters()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
|
|
712
545
|
};
|
|
713
|
-
return
|
|
714
|
-
|
|
715
|
-
}).then(function (response) {
|
|
716
|
-
return Result.UpdateRarityParameterModelMasterResult.fromDict(response.data);
|
|
717
|
-
}).catch(function (error) {
|
|
718
|
-
if (error.response) {
|
|
719
|
-
throw JSON.parse(error.response.data.message);
|
|
720
|
-
}
|
|
721
|
-
else {
|
|
722
|
-
throw [];
|
|
723
|
-
}
|
|
546
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
547
|
+
return Result.UpdateRarityParameterModelMasterResult.fromDict(data);
|
|
724
548
|
});
|
|
725
549
|
};
|
|
726
550
|
Gs2EnchantRestClient.prototype.deleteRarityParameterModelMaster = function (request) {
|
|
@@ -737,13 +561,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
737
561
|
var params = {
|
|
738
562
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
739
563
|
};
|
|
740
|
-
return
|
|
741
|
-
|
|
742
|
-
headers: headers,
|
|
743
|
-
}).then(function (response) {
|
|
744
|
-
return Result.DeleteRarityParameterModelMasterResult.fromDict(response.data);
|
|
745
|
-
}).catch(function (error) {
|
|
746
|
-
throw JSON.parse(error.response.data.message);
|
|
564
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
565
|
+
return Result.DeleteRarityParameterModelMasterResult.fromDict(data);
|
|
747
566
|
});
|
|
748
567
|
};
|
|
749
568
|
Gs2EnchantRestClient.prototype.exportMaster = function (request) {
|
|
@@ -759,13 +578,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
759
578
|
var params = {
|
|
760
579
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
761
580
|
};
|
|
762
|
-
return
|
|
763
|
-
|
|
764
|
-
headers: headers,
|
|
765
|
-
}).then(function (response) {
|
|
766
|
-
return Result.ExportMasterResult.fromDict(response.data);
|
|
767
|
-
}).catch(function (error) {
|
|
768
|
-
throw JSON.parse(error.response.data.message);
|
|
581
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
582
|
+
return Result.ExportMasterResult.fromDict(data);
|
|
769
583
|
});
|
|
770
584
|
};
|
|
771
585
|
Gs2EnchantRestClient.prototype.getCurrentParameterMaster = function (request) {
|
|
@@ -781,13 +595,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
781
595
|
var params = {
|
|
782
596
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
783
597
|
};
|
|
784
|
-
return
|
|
785
|
-
|
|
786
|
-
headers: headers,
|
|
787
|
-
}).then(function (response) {
|
|
788
|
-
return Result.GetCurrentParameterMasterResult.fromDict(response.data);
|
|
789
|
-
}).catch(function (error) {
|
|
790
|
-
throw JSON.parse(error.response.data.message);
|
|
598
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
599
|
+
return Result.GetCurrentParameterMasterResult.fromDict(data);
|
|
791
600
|
});
|
|
792
601
|
};
|
|
793
602
|
Gs2EnchantRestClient.prototype.preUpdateCurrentParameterMaster = function (request) {
|
|
@@ -803,17 +612,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
803
612
|
var body = {
|
|
804
613
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
805
614
|
};
|
|
806
|
-
return
|
|
807
|
-
|
|
808
|
-
}).then(function (response) {
|
|
809
|
-
return Result.PreUpdateCurrentParameterMasterResult.fromDict(response.data);
|
|
810
|
-
}).catch(function (error) {
|
|
811
|
-
if (error.response) {
|
|
812
|
-
throw JSON.parse(error.response.data.message);
|
|
813
|
-
}
|
|
814
|
-
else {
|
|
815
|
-
throw [];
|
|
816
|
-
}
|
|
615
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
616
|
+
return Result.PreUpdateCurrentParameterMasterResult.fromDict(data);
|
|
817
617
|
});
|
|
818
618
|
};
|
|
819
619
|
Gs2EnchantRestClient.prototype.updateCurrentParameterMaster = function (request) {
|
|
@@ -832,17 +632,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
832
632
|
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
833
633
|
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
834
634
|
};
|
|
835
|
-
return
|
|
836
|
-
|
|
837
|
-
}).then(function (response) {
|
|
838
|
-
return Result.UpdateCurrentParameterMasterResult.fromDict(response.data);
|
|
839
|
-
}).catch(function (error) {
|
|
840
|
-
if (error.response) {
|
|
841
|
-
throw JSON.parse(error.response.data.message);
|
|
842
|
-
}
|
|
843
|
-
else {
|
|
844
|
-
throw [];
|
|
845
|
-
}
|
|
635
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
636
|
+
return Result.UpdateCurrentParameterMasterResult.fromDict(data);
|
|
846
637
|
});
|
|
847
638
|
};
|
|
848
639
|
Gs2EnchantRestClient.prototype.updateCurrentParameterMasterFromGitHub = function (request) {
|
|
@@ -859,17 +650,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
859
650
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
860
651
|
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
861
652
|
};
|
|
862
|
-
return
|
|
863
|
-
|
|
864
|
-
}).then(function (response) {
|
|
865
|
-
return Result.UpdateCurrentParameterMasterFromGitHubResult.fromDict(response.data);
|
|
866
|
-
}).catch(function (error) {
|
|
867
|
-
if (error.response) {
|
|
868
|
-
throw JSON.parse(error.response.data.message);
|
|
869
|
-
}
|
|
870
|
-
else {
|
|
871
|
-
throw [];
|
|
872
|
-
}
|
|
653
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
654
|
+
return Result.UpdateCurrentParameterMasterFromGitHubResult.fromDict(data);
|
|
873
655
|
});
|
|
874
656
|
};
|
|
875
657
|
Gs2EnchantRestClient.prototype.describeBalanceParameterStatuses = function (request) {
|
|
@@ -891,13 +673,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
891
673
|
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
892
674
|
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
893
675
|
};
|
|
894
|
-
return
|
|
895
|
-
|
|
896
|
-
headers: headers,
|
|
897
|
-
}).then(function (response) {
|
|
898
|
-
return Result.DescribeBalanceParameterStatusesResult.fromDict(response.data);
|
|
899
|
-
}).catch(function (error) {
|
|
900
|
-
throw JSON.parse(error.response.data.message);
|
|
676
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
677
|
+
return Result.DescribeBalanceParameterStatusesResult.fromDict(data);
|
|
901
678
|
});
|
|
902
679
|
};
|
|
903
680
|
Gs2EnchantRestClient.prototype.describeBalanceParameterStatusesByUserId = function (request) {
|
|
@@ -920,13 +697,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
920
697
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
921
698
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
922
699
|
};
|
|
923
|
-
return
|
|
924
|
-
|
|
925
|
-
headers: headers,
|
|
926
|
-
}).then(function (response) {
|
|
927
|
-
return Result.DescribeBalanceParameterStatusesByUserIdResult.fromDict(response.data);
|
|
928
|
-
}).catch(function (error) {
|
|
929
|
-
throw JSON.parse(error.response.data.message);
|
|
700
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
701
|
+
return Result.DescribeBalanceParameterStatusesByUserIdResult.fromDict(data);
|
|
930
702
|
});
|
|
931
703
|
};
|
|
932
704
|
Gs2EnchantRestClient.prototype.getBalanceParameterStatus = function (request) {
|
|
@@ -947,13 +719,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
947
719
|
var params = {
|
|
948
720
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
949
721
|
};
|
|
950
|
-
return
|
|
951
|
-
|
|
952
|
-
headers: headers,
|
|
953
|
-
}).then(function (response) {
|
|
954
|
-
return Result.GetBalanceParameterStatusResult.fromDict(response.data);
|
|
955
|
-
}).catch(function (error) {
|
|
956
|
-
throw JSON.parse(error.response.data.message);
|
|
722
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
723
|
+
return Result.GetBalanceParameterStatusResult.fromDict(data);
|
|
957
724
|
});
|
|
958
725
|
};
|
|
959
726
|
Gs2EnchantRestClient.prototype.getBalanceParameterStatusByUserId = function (request) {
|
|
@@ -975,13 +742,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
975
742
|
var params = {
|
|
976
743
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
977
744
|
};
|
|
978
|
-
return
|
|
979
|
-
|
|
980
|
-
headers: headers,
|
|
981
|
-
}).then(function (response) {
|
|
982
|
-
return Result.GetBalanceParameterStatusByUserIdResult.fromDict(response.data);
|
|
983
|
-
}).catch(function (error) {
|
|
984
|
-
throw JSON.parse(error.response.data.message);
|
|
745
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
746
|
+
return Result.GetBalanceParameterStatusByUserIdResult.fromDict(data);
|
|
985
747
|
});
|
|
986
748
|
};
|
|
987
749
|
Gs2EnchantRestClient.prototype.deleteBalanceParameterStatusByUserId = function (request) {
|
|
@@ -1006,13 +768,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1006
768
|
var params = {
|
|
1007
769
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1008
770
|
};
|
|
1009
|
-
return
|
|
1010
|
-
|
|
1011
|
-
headers: headers,
|
|
1012
|
-
}).then(function (response) {
|
|
1013
|
-
return Result.DeleteBalanceParameterStatusByUserIdResult.fromDict(response.data);
|
|
1014
|
-
}).catch(function (error) {
|
|
1015
|
-
throw JSON.parse(error.response.data.message);
|
|
771
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
772
|
+
return Result.DeleteBalanceParameterStatusByUserIdResult.fromDict(data);
|
|
1016
773
|
});
|
|
1017
774
|
};
|
|
1018
775
|
Gs2EnchantRestClient.prototype.reDrawBalanceParameterStatusByUserId = function (request) {
|
|
@@ -1038,17 +795,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1038
795
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1039
796
|
'fixedParameterNames': (_o = request.getFixedParameterNames()) !== null && _o !== void 0 ? _o : null,
|
|
1040
797
|
};
|
|
1041
|
-
return
|
|
1042
|
-
|
|
1043
|
-
}).then(function (response) {
|
|
1044
|
-
return Result.ReDrawBalanceParameterStatusByUserIdResult.fromDict(response.data);
|
|
1045
|
-
}).catch(function (error) {
|
|
1046
|
-
if (error.response) {
|
|
1047
|
-
throw JSON.parse(error.response.data.message);
|
|
1048
|
-
}
|
|
1049
|
-
else {
|
|
1050
|
-
throw [];
|
|
1051
|
-
}
|
|
798
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
799
|
+
return Result.ReDrawBalanceParameterStatusByUserIdResult.fromDict(data);
|
|
1052
800
|
});
|
|
1053
801
|
};
|
|
1054
802
|
Gs2EnchantRestClient.prototype.reDrawBalanceParameterStatusByStampSheet = function (request) {
|
|
@@ -1065,17 +813,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1065
813
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1066
814
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1067
815
|
};
|
|
1068
|
-
return
|
|
1069
|
-
|
|
1070
|
-
}).then(function (response) {
|
|
1071
|
-
return Result.ReDrawBalanceParameterStatusByStampSheetResult.fromDict(response.data);
|
|
1072
|
-
}).catch(function (error) {
|
|
1073
|
-
if (error.response) {
|
|
1074
|
-
throw JSON.parse(error.response.data.message);
|
|
1075
|
-
}
|
|
1076
|
-
else {
|
|
1077
|
-
throw [];
|
|
1078
|
-
}
|
|
816
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
817
|
+
return Result.ReDrawBalanceParameterStatusByStampSheetResult.fromDict(data);
|
|
1079
818
|
});
|
|
1080
819
|
};
|
|
1081
820
|
Gs2EnchantRestClient.prototype.setBalanceParameterStatusByUserId = function (request) {
|
|
@@ -1101,17 +840,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1101
840
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1102
841
|
'parameterValues': (_p = (_o = request.getParameterValues()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
|
|
1103
842
|
};
|
|
1104
|
-
return
|
|
1105
|
-
|
|
1106
|
-
}).then(function (response) {
|
|
1107
|
-
return Result.SetBalanceParameterStatusByUserIdResult.fromDict(response.data);
|
|
1108
|
-
}).catch(function (error) {
|
|
1109
|
-
if (error.response) {
|
|
1110
|
-
throw JSON.parse(error.response.data.message);
|
|
1111
|
-
}
|
|
1112
|
-
else {
|
|
1113
|
-
throw [];
|
|
1114
|
-
}
|
|
843
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
844
|
+
return Result.SetBalanceParameterStatusByUserIdResult.fromDict(data);
|
|
1115
845
|
});
|
|
1116
846
|
};
|
|
1117
847
|
Gs2EnchantRestClient.prototype.setBalanceParameterStatusByStampSheet = function (request) {
|
|
@@ -1128,17 +858,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1128
858
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1129
859
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1130
860
|
};
|
|
1131
|
-
return
|
|
1132
|
-
|
|
1133
|
-
}).then(function (response) {
|
|
1134
|
-
return Result.SetBalanceParameterStatusByStampSheetResult.fromDict(response.data);
|
|
1135
|
-
}).catch(function (error) {
|
|
1136
|
-
if (error.response) {
|
|
1137
|
-
throw JSON.parse(error.response.data.message);
|
|
1138
|
-
}
|
|
1139
|
-
else {
|
|
1140
|
-
throw [];
|
|
1141
|
-
}
|
|
861
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
862
|
+
return Result.SetBalanceParameterStatusByStampSheetResult.fromDict(data);
|
|
1142
863
|
});
|
|
1143
864
|
};
|
|
1144
865
|
Gs2EnchantRestClient.prototype.describeRarityParameterStatuses = function (request) {
|
|
@@ -1160,13 +881,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1160
881
|
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
1161
882
|
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
1162
883
|
};
|
|
1163
|
-
return
|
|
1164
|
-
|
|
1165
|
-
headers: headers,
|
|
1166
|
-
}).then(function (response) {
|
|
1167
|
-
return Result.DescribeRarityParameterStatusesResult.fromDict(response.data);
|
|
1168
|
-
}).catch(function (error) {
|
|
1169
|
-
throw JSON.parse(error.response.data.message);
|
|
884
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
885
|
+
return Result.DescribeRarityParameterStatusesResult.fromDict(data);
|
|
1170
886
|
});
|
|
1171
887
|
};
|
|
1172
888
|
Gs2EnchantRestClient.prototype.describeRarityParameterStatusesByUserId = function (request) {
|
|
@@ -1189,13 +905,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1189
905
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
1190
906
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
1191
907
|
};
|
|
1192
|
-
return
|
|
1193
|
-
|
|
1194
|
-
headers: headers,
|
|
1195
|
-
}).then(function (response) {
|
|
1196
|
-
return Result.DescribeRarityParameterStatusesByUserIdResult.fromDict(response.data);
|
|
1197
|
-
}).catch(function (error) {
|
|
1198
|
-
throw JSON.parse(error.response.data.message);
|
|
908
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
909
|
+
return Result.DescribeRarityParameterStatusesByUserIdResult.fromDict(data);
|
|
1199
910
|
});
|
|
1200
911
|
};
|
|
1201
912
|
Gs2EnchantRestClient.prototype.getRarityParameterStatus = function (request) {
|
|
@@ -1216,13 +927,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1216
927
|
var params = {
|
|
1217
928
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1218
929
|
};
|
|
1219
|
-
return
|
|
1220
|
-
|
|
1221
|
-
headers: headers,
|
|
1222
|
-
}).then(function (response) {
|
|
1223
|
-
return Result.GetRarityParameterStatusResult.fromDict(response.data);
|
|
1224
|
-
}).catch(function (error) {
|
|
1225
|
-
throw JSON.parse(error.response.data.message);
|
|
930
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
931
|
+
return Result.GetRarityParameterStatusResult.fromDict(data);
|
|
1226
932
|
});
|
|
1227
933
|
};
|
|
1228
934
|
Gs2EnchantRestClient.prototype.getRarityParameterStatusByUserId = function (request) {
|
|
@@ -1244,13 +950,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1244
950
|
var params = {
|
|
1245
951
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1246
952
|
};
|
|
1247
|
-
return
|
|
1248
|
-
|
|
1249
|
-
headers: headers,
|
|
1250
|
-
}).then(function (response) {
|
|
1251
|
-
return Result.GetRarityParameterStatusByUserIdResult.fromDict(response.data);
|
|
1252
|
-
}).catch(function (error) {
|
|
1253
|
-
throw JSON.parse(error.response.data.message);
|
|
953
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
954
|
+
return Result.GetRarityParameterStatusByUserIdResult.fromDict(data);
|
|
1254
955
|
});
|
|
1255
956
|
};
|
|
1256
957
|
Gs2EnchantRestClient.prototype.deleteRarityParameterStatusByUserId = function (request) {
|
|
@@ -1275,13 +976,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1275
976
|
var params = {
|
|
1276
977
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1277
978
|
};
|
|
1278
|
-
return
|
|
1279
|
-
|
|
1280
|
-
headers: headers,
|
|
1281
|
-
}).then(function (response) {
|
|
1282
|
-
return Result.DeleteRarityParameterStatusByUserIdResult.fromDict(response.data);
|
|
1283
|
-
}).catch(function (error) {
|
|
1284
|
-
throw JSON.parse(error.response.data.message);
|
|
979
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
980
|
+
return Result.DeleteRarityParameterStatusByUserIdResult.fromDict(data);
|
|
1285
981
|
});
|
|
1286
982
|
};
|
|
1287
983
|
Gs2EnchantRestClient.prototype.reDrawRarityParameterStatusByUserId = function (request) {
|
|
@@ -1307,17 +1003,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1307
1003
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1308
1004
|
'fixedParameterNames': (_o = request.getFixedParameterNames()) !== null && _o !== void 0 ? _o : null,
|
|
1309
1005
|
};
|
|
1310
|
-
return
|
|
1311
|
-
|
|
1312
|
-
}).then(function (response) {
|
|
1313
|
-
return Result.ReDrawRarityParameterStatusByUserIdResult.fromDict(response.data);
|
|
1314
|
-
}).catch(function (error) {
|
|
1315
|
-
if (error.response) {
|
|
1316
|
-
throw JSON.parse(error.response.data.message);
|
|
1317
|
-
}
|
|
1318
|
-
else {
|
|
1319
|
-
throw [];
|
|
1320
|
-
}
|
|
1006
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1007
|
+
return Result.ReDrawRarityParameterStatusByUserIdResult.fromDict(data);
|
|
1321
1008
|
});
|
|
1322
1009
|
};
|
|
1323
1010
|
Gs2EnchantRestClient.prototype.reDrawRarityParameterStatusByStampSheet = function (request) {
|
|
@@ -1334,17 +1021,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1334
1021
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1335
1022
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1336
1023
|
};
|
|
1337
|
-
return
|
|
1338
|
-
|
|
1339
|
-
}).then(function (response) {
|
|
1340
|
-
return Result.ReDrawRarityParameterStatusByStampSheetResult.fromDict(response.data);
|
|
1341
|
-
}).catch(function (error) {
|
|
1342
|
-
if (error.response) {
|
|
1343
|
-
throw JSON.parse(error.response.data.message);
|
|
1344
|
-
}
|
|
1345
|
-
else {
|
|
1346
|
-
throw [];
|
|
1347
|
-
}
|
|
1024
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1025
|
+
return Result.ReDrawRarityParameterStatusByStampSheetResult.fromDict(data);
|
|
1348
1026
|
});
|
|
1349
1027
|
};
|
|
1350
1028
|
Gs2EnchantRestClient.prototype.addRarityParameterStatusByUserId = function (request) {
|
|
@@ -1370,17 +1048,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1370
1048
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1371
1049
|
'count': (_o = request.getCount()) !== null && _o !== void 0 ? _o : null,
|
|
1372
1050
|
};
|
|
1373
|
-
return
|
|
1374
|
-
|
|
1375
|
-
}).then(function (response) {
|
|
1376
|
-
return Result.AddRarityParameterStatusByUserIdResult.fromDict(response.data);
|
|
1377
|
-
}).catch(function (error) {
|
|
1378
|
-
if (error.response) {
|
|
1379
|
-
throw JSON.parse(error.response.data.message);
|
|
1380
|
-
}
|
|
1381
|
-
else {
|
|
1382
|
-
throw [];
|
|
1383
|
-
}
|
|
1051
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1052
|
+
return Result.AddRarityParameterStatusByUserIdResult.fromDict(data);
|
|
1384
1053
|
});
|
|
1385
1054
|
};
|
|
1386
1055
|
Gs2EnchantRestClient.prototype.addRarityParameterStatusByStampSheet = function (request) {
|
|
@@ -1397,17 +1066,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1397
1066
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1398
1067
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1399
1068
|
};
|
|
1400
|
-
return
|
|
1401
|
-
|
|
1402
|
-
}).then(function (response) {
|
|
1403
|
-
return Result.AddRarityParameterStatusByStampSheetResult.fromDict(response.data);
|
|
1404
|
-
}).catch(function (error) {
|
|
1405
|
-
if (error.response) {
|
|
1406
|
-
throw JSON.parse(error.response.data.message);
|
|
1407
|
-
}
|
|
1408
|
-
else {
|
|
1409
|
-
throw [];
|
|
1410
|
-
}
|
|
1069
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1070
|
+
return Result.AddRarityParameterStatusByStampSheetResult.fromDict(data);
|
|
1411
1071
|
});
|
|
1412
1072
|
};
|
|
1413
1073
|
Gs2EnchantRestClient.prototype.verifyRarityParameterStatus = function (request) {
|
|
@@ -1435,17 +1095,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1435
1095
|
'parameterCount': (_p = request.getParameterCount()) !== null && _p !== void 0 ? _p : null,
|
|
1436
1096
|
'multiplyValueSpecifyingQuantity': (_q = request.getMultiplyValueSpecifyingQuantity()) !== null && _q !== void 0 ? _q : null,
|
|
1437
1097
|
};
|
|
1438
|
-
return
|
|
1439
|
-
|
|
1440
|
-
}).then(function (response) {
|
|
1441
|
-
return Result.VerifyRarityParameterStatusResult.fromDict(response.data);
|
|
1442
|
-
}).catch(function (error) {
|
|
1443
|
-
if (error.response) {
|
|
1444
|
-
throw JSON.parse(error.response.data.message);
|
|
1445
|
-
}
|
|
1446
|
-
else {
|
|
1447
|
-
throw [];
|
|
1448
|
-
}
|
|
1098
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1099
|
+
return Result.VerifyRarityParameterStatusResult.fromDict(data);
|
|
1449
1100
|
});
|
|
1450
1101
|
};
|
|
1451
1102
|
Gs2EnchantRestClient.prototype.verifyRarityParameterStatusByUserId = function (request) {
|
|
@@ -1474,17 +1125,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1474
1125
|
'parameterCount': (_r = request.getParameterCount()) !== null && _r !== void 0 ? _r : null,
|
|
1475
1126
|
'multiplyValueSpecifyingQuantity': (_s = request.getMultiplyValueSpecifyingQuantity()) !== null && _s !== void 0 ? _s : null,
|
|
1476
1127
|
};
|
|
1477
|
-
return
|
|
1478
|
-
|
|
1479
|
-
}).then(function (response) {
|
|
1480
|
-
return Result.VerifyRarityParameterStatusByUserIdResult.fromDict(response.data);
|
|
1481
|
-
}).catch(function (error) {
|
|
1482
|
-
if (error.response) {
|
|
1483
|
-
throw JSON.parse(error.response.data.message);
|
|
1484
|
-
}
|
|
1485
|
-
else {
|
|
1486
|
-
throw [];
|
|
1487
|
-
}
|
|
1128
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1129
|
+
return Result.VerifyRarityParameterStatusByUserIdResult.fromDict(data);
|
|
1488
1130
|
});
|
|
1489
1131
|
};
|
|
1490
1132
|
Gs2EnchantRestClient.prototype.verifyRarityParameterStatusByStampTask = function (request) {
|
|
@@ -1501,17 +1143,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1501
1143
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1502
1144
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1503
1145
|
};
|
|
1504
|
-
return
|
|
1505
|
-
|
|
1506
|
-
}).then(function (response) {
|
|
1507
|
-
return Result.VerifyRarityParameterStatusByStampTaskResult.fromDict(response.data);
|
|
1508
|
-
}).catch(function (error) {
|
|
1509
|
-
if (error.response) {
|
|
1510
|
-
throw JSON.parse(error.response.data.message);
|
|
1511
|
-
}
|
|
1512
|
-
else {
|
|
1513
|
-
throw [];
|
|
1514
|
-
}
|
|
1146
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1147
|
+
return Result.VerifyRarityParameterStatusByStampTaskResult.fromDict(data);
|
|
1515
1148
|
});
|
|
1516
1149
|
};
|
|
1517
1150
|
Gs2EnchantRestClient.prototype.setRarityParameterStatusByUserId = function (request) {
|
|
@@ -1537,17 +1170,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1537
1170
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1538
1171
|
'parameterValues': (_p = (_o = request.getParameterValues()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
|
|
1539
1172
|
};
|
|
1540
|
-
return
|
|
1541
|
-
|
|
1542
|
-
}).then(function (response) {
|
|
1543
|
-
return Result.SetRarityParameterStatusByUserIdResult.fromDict(response.data);
|
|
1544
|
-
}).catch(function (error) {
|
|
1545
|
-
if (error.response) {
|
|
1546
|
-
throw JSON.parse(error.response.data.message);
|
|
1547
|
-
}
|
|
1548
|
-
else {
|
|
1549
|
-
throw [];
|
|
1550
|
-
}
|
|
1173
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1174
|
+
return Result.SetRarityParameterStatusByUserIdResult.fromDict(data);
|
|
1551
1175
|
});
|
|
1552
1176
|
};
|
|
1553
1177
|
Gs2EnchantRestClient.prototype.setRarityParameterStatusByStampSheet = function (request) {
|
|
@@ -1564,17 +1188,8 @@ var Gs2EnchantRestClient = /** @class */ (function (_super) {
|
|
|
1564
1188
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1565
1189
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1566
1190
|
};
|
|
1567
|
-
return
|
|
1568
|
-
|
|
1569
|
-
}).then(function (response) {
|
|
1570
|
-
return Result.SetRarityParameterStatusByStampSheetResult.fromDict(response.data);
|
|
1571
|
-
}).catch(function (error) {
|
|
1572
|
-
if (error.response) {
|
|
1573
|
-
throw JSON.parse(error.response.data.message);
|
|
1574
|
-
}
|
|
1575
|
-
else {
|
|
1576
|
-
throw [];
|
|
1577
|
-
}
|
|
1191
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1192
|
+
return Result.SetRarityParameterStatusByStampSheetResult.fromDict(data);
|
|
1578
1193
|
});
|
|
1579
1194
|
};
|
|
1580
1195
|
Gs2EnchantRestClient.ENDPOINT_HOST = null;
|