gs2 1.4.110 → 1.4.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +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/exchange/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 Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
24
23
|
tslib_1.__extends(Gs2ExchangeRestClient, _super);
|
|
25
24
|
function Gs2ExchangeRestClient(session) {
|
|
@@ -40,13 +39,8 @@ var Gs2ExchangeRestClient = /** @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
|
Gs2ExchangeRestClient.prototype.createNamespace = function (request) {
|
|
@@ -72,17 +66,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
72
66
|
'queueNamespaceId': (_s = request.getQueueNamespaceId()) !== null && _s !== void 0 ? _s : null,
|
|
73
67
|
'keyId': (_t = request.getKeyId()) !== null && _t !== void 0 ? _t : null,
|
|
74
68
|
};
|
|
75
|
-
return
|
|
76
|
-
|
|
77
|
-
}).then(function (response) {
|
|
78
|
-
return Result.CreateNamespaceResult.fromDict(response.data);
|
|
79
|
-
}).catch(function (error) {
|
|
80
|
-
if (error.response) {
|
|
81
|
-
throw JSON.parse(error.response.data.message);
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
throw [];
|
|
85
|
-
}
|
|
69
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
70
|
+
return Result.CreateNamespaceResult.fromDict(data);
|
|
86
71
|
});
|
|
87
72
|
};
|
|
88
73
|
Gs2ExchangeRestClient.prototype.getNamespaceStatus = function (request) {
|
|
@@ -98,13 +83,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
98
83
|
var params = {
|
|
99
84
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
100
85
|
};
|
|
101
|
-
return
|
|
102
|
-
|
|
103
|
-
headers: headers,
|
|
104
|
-
}).then(function (response) {
|
|
105
|
-
return Result.GetNamespaceStatusResult.fromDict(response.data);
|
|
106
|
-
}).catch(function (error) {
|
|
107
|
-
throw JSON.parse(error.response.data.message);
|
|
86
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
87
|
+
return Result.GetNamespaceStatusResult.fromDict(data);
|
|
108
88
|
});
|
|
109
89
|
};
|
|
110
90
|
Gs2ExchangeRestClient.prototype.getNamespace = function (request) {
|
|
@@ -120,13 +100,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
120
100
|
var params = {
|
|
121
101
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
122
102
|
};
|
|
123
|
-
return
|
|
124
|
-
|
|
125
|
-
headers: headers,
|
|
126
|
-
}).then(function (response) {
|
|
127
|
-
return Result.GetNamespaceResult.fromDict(response.data);
|
|
128
|
-
}).catch(function (error) {
|
|
129
|
-
throw JSON.parse(error.response.data.message);
|
|
103
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
104
|
+
return Result.GetNamespaceResult.fromDict(data);
|
|
130
105
|
});
|
|
131
106
|
};
|
|
132
107
|
Gs2ExchangeRestClient.prototype.updateNamespace = function (request) {
|
|
@@ -152,17 +127,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
152
127
|
'queueNamespaceId': (_t = request.getQueueNamespaceId()) !== null && _t !== void 0 ? _t : null,
|
|
153
128
|
'keyId': (_u = request.getKeyId()) !== null && _u !== void 0 ? _u : null,
|
|
154
129
|
};
|
|
155
|
-
return
|
|
156
|
-
|
|
157
|
-
}).then(function (response) {
|
|
158
|
-
return Result.UpdateNamespaceResult.fromDict(response.data);
|
|
159
|
-
}).catch(function (error) {
|
|
160
|
-
if (error.response) {
|
|
161
|
-
throw JSON.parse(error.response.data.message);
|
|
162
|
-
}
|
|
163
|
-
else {
|
|
164
|
-
throw [];
|
|
165
|
-
}
|
|
130
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
131
|
+
return Result.UpdateNamespaceResult.fromDict(data);
|
|
166
132
|
});
|
|
167
133
|
};
|
|
168
134
|
Gs2ExchangeRestClient.prototype.deleteNamespace = function (request) {
|
|
@@ -178,13 +144,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
178
144
|
var params = {
|
|
179
145
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
180
146
|
};
|
|
181
|
-
return
|
|
182
|
-
|
|
183
|
-
headers: headers,
|
|
184
|
-
}).then(function (response) {
|
|
185
|
-
return Result.DeleteNamespaceResult.fromDict(response.data);
|
|
186
|
-
}).catch(function (error) {
|
|
187
|
-
throw JSON.parse(error.response.data.message);
|
|
147
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
148
|
+
return Result.DeleteNamespaceResult.fromDict(data);
|
|
188
149
|
});
|
|
189
150
|
};
|
|
190
151
|
Gs2ExchangeRestClient.prototype.getServiceVersion = function (request) {
|
|
@@ -199,13 +160,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
199
160
|
var params = {
|
|
200
161
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
201
162
|
};
|
|
202
|
-
return
|
|
203
|
-
|
|
204
|
-
headers: headers,
|
|
205
|
-
}).then(function (response) {
|
|
206
|
-
return Result.GetServiceVersionResult.fromDict(response.data);
|
|
207
|
-
}).catch(function (error) {
|
|
208
|
-
throw JSON.parse(error.response.data.message);
|
|
163
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
164
|
+
return Result.GetServiceVersionResult.fromDict(data);
|
|
209
165
|
});
|
|
210
166
|
};
|
|
211
167
|
Gs2ExchangeRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
@@ -224,17 +180,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
224
180
|
var body = {
|
|
225
181
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
226
182
|
};
|
|
227
|
-
return
|
|
228
|
-
|
|
229
|
-
}).then(function (response) {
|
|
230
|
-
return Result.DumpUserDataByUserIdResult.fromDict(response.data);
|
|
231
|
-
}).catch(function (error) {
|
|
232
|
-
if (error.response) {
|
|
233
|
-
throw JSON.parse(error.response.data.message);
|
|
234
|
-
}
|
|
235
|
-
else {
|
|
236
|
-
throw [];
|
|
237
|
-
}
|
|
183
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
184
|
+
return Result.DumpUserDataByUserIdResult.fromDict(data);
|
|
238
185
|
});
|
|
239
186
|
};
|
|
240
187
|
Gs2ExchangeRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
@@ -253,13 +200,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
253
200
|
var params = {
|
|
254
201
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
255
202
|
};
|
|
256
|
-
return
|
|
257
|
-
|
|
258
|
-
headers: headers,
|
|
259
|
-
}).then(function (response) {
|
|
260
|
-
return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
|
|
261
|
-
}).catch(function (error) {
|
|
262
|
-
throw JSON.parse(error.response.data.message);
|
|
203
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
204
|
+
return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
|
|
263
205
|
});
|
|
264
206
|
};
|
|
265
207
|
Gs2ExchangeRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
@@ -278,17 +220,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
278
220
|
var body = {
|
|
279
221
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
280
222
|
};
|
|
281
|
-
return
|
|
282
|
-
|
|
283
|
-
}).then(function (response) {
|
|
284
|
-
return Result.CleanUserDataByUserIdResult.fromDict(response.data);
|
|
285
|
-
}).catch(function (error) {
|
|
286
|
-
if (error.response) {
|
|
287
|
-
throw JSON.parse(error.response.data.message);
|
|
288
|
-
}
|
|
289
|
-
else {
|
|
290
|
-
throw [];
|
|
291
|
-
}
|
|
223
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
224
|
+
return Result.CleanUserDataByUserIdResult.fromDict(data);
|
|
292
225
|
});
|
|
293
226
|
};
|
|
294
227
|
Gs2ExchangeRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
@@ -307,13 +240,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
307
240
|
var params = {
|
|
308
241
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
309
242
|
};
|
|
310
|
-
return
|
|
311
|
-
|
|
312
|
-
headers: headers,
|
|
313
|
-
}).then(function (response) {
|
|
314
|
-
return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
|
|
315
|
-
}).catch(function (error) {
|
|
316
|
-
throw JSON.parse(error.response.data.message);
|
|
243
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
244
|
+
return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
|
|
317
245
|
});
|
|
318
246
|
};
|
|
319
247
|
Gs2ExchangeRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
@@ -332,17 +260,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
332
260
|
var body = {
|
|
333
261
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
334
262
|
};
|
|
335
|
-
return
|
|
336
|
-
|
|
337
|
-
}).then(function (response) {
|
|
338
|
-
return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
|
|
339
|
-
}).catch(function (error) {
|
|
340
|
-
if (error.response) {
|
|
341
|
-
throw JSON.parse(error.response.data.message);
|
|
342
|
-
}
|
|
343
|
-
else {
|
|
344
|
-
throw [];
|
|
345
|
-
}
|
|
263
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
264
|
+
return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
|
|
346
265
|
});
|
|
347
266
|
};
|
|
348
267
|
Gs2ExchangeRestClient.prototype.importUserDataByUserId = function (request) {
|
|
@@ -362,17 +281,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
362
281
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
363
282
|
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
364
283
|
};
|
|
365
|
-
return
|
|
366
|
-
|
|
367
|
-
}).then(function (response) {
|
|
368
|
-
return Result.ImportUserDataByUserIdResult.fromDict(response.data);
|
|
369
|
-
}).catch(function (error) {
|
|
370
|
-
if (error.response) {
|
|
371
|
-
throw JSON.parse(error.response.data.message);
|
|
372
|
-
}
|
|
373
|
-
else {
|
|
374
|
-
throw [];
|
|
375
|
-
}
|
|
284
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
285
|
+
return Result.ImportUserDataByUserIdResult.fromDict(data);
|
|
376
286
|
});
|
|
377
287
|
};
|
|
378
288
|
Gs2ExchangeRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
@@ -392,13 +302,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
392
302
|
var params = {
|
|
393
303
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
394
304
|
};
|
|
395
|
-
return
|
|
396
|
-
|
|
397
|
-
headers: headers,
|
|
398
|
-
}).then(function (response) {
|
|
399
|
-
return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
|
|
400
|
-
}).catch(function (error) {
|
|
401
|
-
throw JSON.parse(error.response.data.message);
|
|
305
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
306
|
+
return Result.CheckImportUserDataByUserIdResult.fromDict(data);
|
|
402
307
|
});
|
|
403
308
|
};
|
|
404
309
|
Gs2ExchangeRestClient.prototype.describeRateModels = function (request) {
|
|
@@ -414,13 +319,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
414
319
|
var params = {
|
|
415
320
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
416
321
|
};
|
|
417
|
-
return
|
|
418
|
-
|
|
419
|
-
headers: headers,
|
|
420
|
-
}).then(function (response) {
|
|
421
|
-
return Result.DescribeRateModelsResult.fromDict(response.data);
|
|
422
|
-
}).catch(function (error) {
|
|
423
|
-
throw JSON.parse(error.response.data.message);
|
|
322
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
323
|
+
return Result.DescribeRateModelsResult.fromDict(data);
|
|
424
324
|
});
|
|
425
325
|
};
|
|
426
326
|
Gs2ExchangeRestClient.prototype.getRateModel = function (request) {
|
|
@@ -437,13 +337,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
437
337
|
var params = {
|
|
438
338
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
439
339
|
};
|
|
440
|
-
return
|
|
441
|
-
|
|
442
|
-
headers: headers,
|
|
443
|
-
}).then(function (response) {
|
|
444
|
-
return Result.GetRateModelResult.fromDict(response.data);
|
|
445
|
-
}).catch(function (error) {
|
|
446
|
-
throw JSON.parse(error.response.data.message);
|
|
340
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
341
|
+
return Result.GetRateModelResult.fromDict(data);
|
|
447
342
|
});
|
|
448
343
|
};
|
|
449
344
|
Gs2ExchangeRestClient.prototype.describeRateModelMasters = function (request) {
|
|
@@ -462,13 +357,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
462
357
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
463
358
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
464
359
|
};
|
|
465
|
-
return
|
|
466
|
-
|
|
467
|
-
headers: headers,
|
|
468
|
-
}).then(function (response) {
|
|
469
|
-
return Result.DescribeRateModelMastersResult.fromDict(response.data);
|
|
470
|
-
}).catch(function (error) {
|
|
471
|
-
throw JSON.parse(error.response.data.message);
|
|
360
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
361
|
+
return Result.DescribeRateModelMastersResult.fromDict(data);
|
|
472
362
|
});
|
|
473
363
|
};
|
|
474
364
|
Gs2ExchangeRestClient.prototype.createRateModelMaster = function (request) {
|
|
@@ -492,17 +382,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
492
382
|
'verifyActions': (_o = (_m = request.getVerifyActions()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
|
|
493
383
|
'consumeActions': (_q = (_p = request.getConsumeActions()) === null || _p === void 0 ? void 0 : _p.map(function (item) { return item.toDict(); })) !== null && _q !== void 0 ? _q : null,
|
|
494
384
|
};
|
|
495
|
-
return
|
|
496
|
-
|
|
497
|
-
}).then(function (response) {
|
|
498
|
-
return Result.CreateRateModelMasterResult.fromDict(response.data);
|
|
499
|
-
}).catch(function (error) {
|
|
500
|
-
if (error.response) {
|
|
501
|
-
throw JSON.parse(error.response.data.message);
|
|
502
|
-
}
|
|
503
|
-
else {
|
|
504
|
-
throw [];
|
|
505
|
-
}
|
|
385
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
386
|
+
return Result.CreateRateModelMasterResult.fromDict(data);
|
|
506
387
|
});
|
|
507
388
|
};
|
|
508
389
|
Gs2ExchangeRestClient.prototype.getRateModelMaster = function (request) {
|
|
@@ -519,13 +400,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
519
400
|
var params = {
|
|
520
401
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
521
402
|
};
|
|
522
|
-
return
|
|
523
|
-
|
|
524
|
-
headers: headers,
|
|
525
|
-
}).then(function (response) {
|
|
526
|
-
return Result.GetRateModelMasterResult.fromDict(response.data);
|
|
527
|
-
}).catch(function (error) {
|
|
528
|
-
throw JSON.parse(error.response.data.message);
|
|
403
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
404
|
+
return Result.GetRateModelMasterResult.fromDict(data);
|
|
529
405
|
});
|
|
530
406
|
};
|
|
531
407
|
Gs2ExchangeRestClient.prototype.updateRateModelMaster = function (request) {
|
|
@@ -549,17 +425,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
549
425
|
'verifyActions': (_p = (_o = request.getVerifyActions()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
|
|
550
426
|
'consumeActions': (_r = (_q = request.getConsumeActions()) === null || _q === void 0 ? void 0 : _q.map(function (item) { return item.toDict(); })) !== null && _r !== void 0 ? _r : null,
|
|
551
427
|
};
|
|
552
|
-
return
|
|
553
|
-
|
|
554
|
-
}).then(function (response) {
|
|
555
|
-
return Result.UpdateRateModelMasterResult.fromDict(response.data);
|
|
556
|
-
}).catch(function (error) {
|
|
557
|
-
if (error.response) {
|
|
558
|
-
throw JSON.parse(error.response.data.message);
|
|
559
|
-
}
|
|
560
|
-
else {
|
|
561
|
-
throw [];
|
|
562
|
-
}
|
|
428
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
429
|
+
return Result.UpdateRateModelMasterResult.fromDict(data);
|
|
563
430
|
});
|
|
564
431
|
};
|
|
565
432
|
Gs2ExchangeRestClient.prototype.deleteRateModelMaster = function (request) {
|
|
@@ -576,13 +443,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
576
443
|
var params = {
|
|
577
444
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
578
445
|
};
|
|
579
|
-
return
|
|
580
|
-
|
|
581
|
-
headers: headers,
|
|
582
|
-
}).then(function (response) {
|
|
583
|
-
return Result.DeleteRateModelMasterResult.fromDict(response.data);
|
|
584
|
-
}).catch(function (error) {
|
|
585
|
-
throw JSON.parse(error.response.data.message);
|
|
446
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
447
|
+
return Result.DeleteRateModelMasterResult.fromDict(data);
|
|
586
448
|
});
|
|
587
449
|
};
|
|
588
450
|
Gs2ExchangeRestClient.prototype.describeIncrementalRateModels = function (request) {
|
|
@@ -598,13 +460,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
598
460
|
var params = {
|
|
599
461
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
600
462
|
};
|
|
601
|
-
return
|
|
602
|
-
|
|
603
|
-
headers: headers,
|
|
604
|
-
}).then(function (response) {
|
|
605
|
-
return Result.DescribeIncrementalRateModelsResult.fromDict(response.data);
|
|
606
|
-
}).catch(function (error) {
|
|
607
|
-
throw JSON.parse(error.response.data.message);
|
|
463
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
464
|
+
return Result.DescribeIncrementalRateModelsResult.fromDict(data);
|
|
608
465
|
});
|
|
609
466
|
};
|
|
610
467
|
Gs2ExchangeRestClient.prototype.getIncrementalRateModel = function (request) {
|
|
@@ -621,13 +478,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
621
478
|
var params = {
|
|
622
479
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
623
480
|
};
|
|
624
|
-
return
|
|
625
|
-
|
|
626
|
-
headers: headers,
|
|
627
|
-
}).then(function (response) {
|
|
628
|
-
return Result.GetIncrementalRateModelResult.fromDict(response.data);
|
|
629
|
-
}).catch(function (error) {
|
|
630
|
-
throw JSON.parse(error.response.data.message);
|
|
481
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
482
|
+
return Result.GetIncrementalRateModelResult.fromDict(data);
|
|
631
483
|
});
|
|
632
484
|
};
|
|
633
485
|
Gs2ExchangeRestClient.prototype.describeIncrementalRateModelMasters = function (request) {
|
|
@@ -646,13 +498,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
646
498
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
647
499
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
648
500
|
};
|
|
649
|
-
return
|
|
650
|
-
|
|
651
|
-
headers: headers,
|
|
652
|
-
}).then(function (response) {
|
|
653
|
-
return Result.DescribeIncrementalRateModelMastersResult.fromDict(response.data);
|
|
654
|
-
}).catch(function (error) {
|
|
655
|
-
throw JSON.parse(error.response.data.message);
|
|
501
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
502
|
+
return Result.DescribeIncrementalRateModelMastersResult.fromDict(data);
|
|
656
503
|
});
|
|
657
504
|
};
|
|
658
505
|
Gs2ExchangeRestClient.prototype.createIncrementalRateModelMaster = function (request) {
|
|
@@ -679,17 +526,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
679
526
|
'maximumExchangeCount': (_q = request.getMaximumExchangeCount()) !== null && _q !== void 0 ? _q : null,
|
|
680
527
|
'acquireActions': (_s = (_r = request.getAcquireActions()) === null || _r === void 0 ? void 0 : _r.map(function (item) { return item.toDict(); })) !== null && _s !== void 0 ? _s : null,
|
|
681
528
|
};
|
|
682
|
-
return
|
|
683
|
-
|
|
684
|
-
}).then(function (response) {
|
|
685
|
-
return Result.CreateIncrementalRateModelMasterResult.fromDict(response.data);
|
|
686
|
-
}).catch(function (error) {
|
|
687
|
-
if (error.response) {
|
|
688
|
-
throw JSON.parse(error.response.data.message);
|
|
689
|
-
}
|
|
690
|
-
else {
|
|
691
|
-
throw [];
|
|
692
|
-
}
|
|
529
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
530
|
+
return Result.CreateIncrementalRateModelMasterResult.fromDict(data);
|
|
693
531
|
});
|
|
694
532
|
};
|
|
695
533
|
Gs2ExchangeRestClient.prototype.getIncrementalRateModelMaster = function (request) {
|
|
@@ -706,13 +544,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
706
544
|
var params = {
|
|
707
545
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
708
546
|
};
|
|
709
|
-
return
|
|
710
|
-
|
|
711
|
-
headers: headers,
|
|
712
|
-
}).then(function (response) {
|
|
713
|
-
return Result.GetIncrementalRateModelMasterResult.fromDict(response.data);
|
|
714
|
-
}).catch(function (error) {
|
|
715
|
-
throw JSON.parse(error.response.data.message);
|
|
547
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
548
|
+
return Result.GetIncrementalRateModelMasterResult.fromDict(data);
|
|
716
549
|
});
|
|
717
550
|
};
|
|
718
551
|
Gs2ExchangeRestClient.prototype.updateIncrementalRateModelMaster = function (request) {
|
|
@@ -739,17 +572,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
739
572
|
'maximumExchangeCount': (_r = request.getMaximumExchangeCount()) !== null && _r !== void 0 ? _r : null,
|
|
740
573
|
'acquireActions': (_t = (_s = request.getAcquireActions()) === null || _s === void 0 ? void 0 : _s.map(function (item) { return item.toDict(); })) !== null && _t !== void 0 ? _t : null,
|
|
741
574
|
};
|
|
742
|
-
return
|
|
743
|
-
|
|
744
|
-
}).then(function (response) {
|
|
745
|
-
return Result.UpdateIncrementalRateModelMasterResult.fromDict(response.data);
|
|
746
|
-
}).catch(function (error) {
|
|
747
|
-
if (error.response) {
|
|
748
|
-
throw JSON.parse(error.response.data.message);
|
|
749
|
-
}
|
|
750
|
-
else {
|
|
751
|
-
throw [];
|
|
752
|
-
}
|
|
575
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
576
|
+
return Result.UpdateIncrementalRateModelMasterResult.fromDict(data);
|
|
753
577
|
});
|
|
754
578
|
};
|
|
755
579
|
Gs2ExchangeRestClient.prototype.deleteIncrementalRateModelMaster = function (request) {
|
|
@@ -766,13 +590,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
766
590
|
var params = {
|
|
767
591
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
768
592
|
};
|
|
769
|
-
return
|
|
770
|
-
|
|
771
|
-
headers: headers,
|
|
772
|
-
}).then(function (response) {
|
|
773
|
-
return Result.DeleteIncrementalRateModelMasterResult.fromDict(response.data);
|
|
774
|
-
}).catch(function (error) {
|
|
775
|
-
throw JSON.parse(error.response.data.message);
|
|
593
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
594
|
+
return Result.DeleteIncrementalRateModelMasterResult.fromDict(data);
|
|
776
595
|
});
|
|
777
596
|
};
|
|
778
597
|
Gs2ExchangeRestClient.prototype.exchange = function (request) {
|
|
@@ -797,17 +616,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
797
616
|
'count': (_j = request.getCount()) !== null && _j !== void 0 ? _j : null,
|
|
798
617
|
'config': (_l = (_k = request.getConfig()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
799
618
|
};
|
|
800
|
-
return
|
|
801
|
-
|
|
802
|
-
}).then(function (response) {
|
|
803
|
-
return Result.ExchangeResult.fromDict(response.data);
|
|
804
|
-
}).catch(function (error) {
|
|
805
|
-
if (error.response) {
|
|
806
|
-
throw JSON.parse(error.response.data.message);
|
|
807
|
-
}
|
|
808
|
-
else {
|
|
809
|
-
throw [];
|
|
810
|
-
}
|
|
619
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
620
|
+
return Result.ExchangeResult.fromDict(data);
|
|
811
621
|
});
|
|
812
622
|
};
|
|
813
623
|
Gs2ExchangeRestClient.prototype.exchangeByUserId = function (request) {
|
|
@@ -833,17 +643,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
833
643
|
'count': (_l = request.getCount()) !== null && _l !== void 0 ? _l : null,
|
|
834
644
|
'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
|
|
835
645
|
};
|
|
836
|
-
return
|
|
837
|
-
|
|
838
|
-
}).then(function (response) {
|
|
839
|
-
return Result.ExchangeByUserIdResult.fromDict(response.data);
|
|
840
|
-
}).catch(function (error) {
|
|
841
|
-
if (error.response) {
|
|
842
|
-
throw JSON.parse(error.response.data.message);
|
|
843
|
-
}
|
|
844
|
-
else {
|
|
845
|
-
throw [];
|
|
846
|
-
}
|
|
646
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
647
|
+
return Result.ExchangeByUserIdResult.fromDict(data);
|
|
847
648
|
});
|
|
848
649
|
};
|
|
849
650
|
Gs2ExchangeRestClient.prototype.exchangeByStampSheet = function (request) {
|
|
@@ -860,17 +661,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
860
661
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
861
662
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
862
663
|
};
|
|
863
|
-
return
|
|
864
|
-
|
|
865
|
-
}).then(function (response) {
|
|
866
|
-
return Result.ExchangeByStampSheetResult.fromDict(response.data);
|
|
867
|
-
}).catch(function (error) {
|
|
868
|
-
if (error.response) {
|
|
869
|
-
throw JSON.parse(error.response.data.message);
|
|
870
|
-
}
|
|
871
|
-
else {
|
|
872
|
-
throw [];
|
|
873
|
-
}
|
|
664
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
665
|
+
return Result.ExchangeByStampSheetResult.fromDict(data);
|
|
874
666
|
});
|
|
875
667
|
};
|
|
876
668
|
Gs2ExchangeRestClient.prototype.incrementalExchange = function (request) {
|
|
@@ -895,17 +687,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
895
687
|
'count': (_j = request.getCount()) !== null && _j !== void 0 ? _j : null,
|
|
896
688
|
'config': (_l = (_k = request.getConfig()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
897
689
|
};
|
|
898
|
-
return
|
|
899
|
-
|
|
900
|
-
}).then(function (response) {
|
|
901
|
-
return Result.IncrementalExchangeResult.fromDict(response.data);
|
|
902
|
-
}).catch(function (error) {
|
|
903
|
-
if (error.response) {
|
|
904
|
-
throw JSON.parse(error.response.data.message);
|
|
905
|
-
}
|
|
906
|
-
else {
|
|
907
|
-
throw [];
|
|
908
|
-
}
|
|
690
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
691
|
+
return Result.IncrementalExchangeResult.fromDict(data);
|
|
909
692
|
});
|
|
910
693
|
};
|
|
911
694
|
Gs2ExchangeRestClient.prototype.incrementalExchangeByUserId = function (request) {
|
|
@@ -931,17 +714,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
931
714
|
'count': (_l = request.getCount()) !== null && _l !== void 0 ? _l : null,
|
|
932
715
|
'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
|
|
933
716
|
};
|
|
934
|
-
return
|
|
935
|
-
|
|
936
|
-
}).then(function (response) {
|
|
937
|
-
return Result.IncrementalExchangeByUserIdResult.fromDict(response.data);
|
|
938
|
-
}).catch(function (error) {
|
|
939
|
-
if (error.response) {
|
|
940
|
-
throw JSON.parse(error.response.data.message);
|
|
941
|
-
}
|
|
942
|
-
else {
|
|
943
|
-
throw [];
|
|
944
|
-
}
|
|
717
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
718
|
+
return Result.IncrementalExchangeByUserIdResult.fromDict(data);
|
|
945
719
|
});
|
|
946
720
|
};
|
|
947
721
|
Gs2ExchangeRestClient.prototype.incrementalExchangeByStampSheet = function (request) {
|
|
@@ -958,17 +732,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
958
732
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
959
733
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
960
734
|
};
|
|
961
|
-
return
|
|
962
|
-
|
|
963
|
-
}).then(function (response) {
|
|
964
|
-
return Result.IncrementalExchangeByStampSheetResult.fromDict(response.data);
|
|
965
|
-
}).catch(function (error) {
|
|
966
|
-
if (error.response) {
|
|
967
|
-
throw JSON.parse(error.response.data.message);
|
|
968
|
-
}
|
|
969
|
-
else {
|
|
970
|
-
throw [];
|
|
971
|
-
}
|
|
735
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
736
|
+
return Result.IncrementalExchangeByStampSheetResult.fromDict(data);
|
|
972
737
|
});
|
|
973
738
|
};
|
|
974
739
|
Gs2ExchangeRestClient.prototype.exportMaster = function (request) {
|
|
@@ -984,13 +749,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
984
749
|
var params = {
|
|
985
750
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
986
751
|
};
|
|
987
|
-
return
|
|
988
|
-
|
|
989
|
-
headers: headers,
|
|
990
|
-
}).then(function (response) {
|
|
991
|
-
return Result.ExportMasterResult.fromDict(response.data);
|
|
992
|
-
}).catch(function (error) {
|
|
993
|
-
throw JSON.parse(error.response.data.message);
|
|
752
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
753
|
+
return Result.ExportMasterResult.fromDict(data);
|
|
994
754
|
});
|
|
995
755
|
};
|
|
996
756
|
Gs2ExchangeRestClient.prototype.getCurrentRateMaster = function (request) {
|
|
@@ -1006,13 +766,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1006
766
|
var params = {
|
|
1007
767
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1008
768
|
};
|
|
1009
|
-
return
|
|
1010
|
-
|
|
1011
|
-
headers: headers,
|
|
1012
|
-
}).then(function (response) {
|
|
1013
|
-
return Result.GetCurrentRateMasterResult.fromDict(response.data);
|
|
1014
|
-
}).catch(function (error) {
|
|
1015
|
-
throw JSON.parse(error.response.data.message);
|
|
769
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
770
|
+
return Result.GetCurrentRateMasterResult.fromDict(data);
|
|
1016
771
|
});
|
|
1017
772
|
};
|
|
1018
773
|
Gs2ExchangeRestClient.prototype.preUpdateCurrentRateMaster = function (request) {
|
|
@@ -1028,17 +783,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1028
783
|
var body = {
|
|
1029
784
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1030
785
|
};
|
|
1031
|
-
return
|
|
1032
|
-
|
|
1033
|
-
}).then(function (response) {
|
|
1034
|
-
return Result.PreUpdateCurrentRateMasterResult.fromDict(response.data);
|
|
1035
|
-
}).catch(function (error) {
|
|
1036
|
-
if (error.response) {
|
|
1037
|
-
throw JSON.parse(error.response.data.message);
|
|
1038
|
-
}
|
|
1039
|
-
else {
|
|
1040
|
-
throw [];
|
|
1041
|
-
}
|
|
786
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
787
|
+
return Result.PreUpdateCurrentRateMasterResult.fromDict(data);
|
|
1042
788
|
});
|
|
1043
789
|
};
|
|
1044
790
|
Gs2ExchangeRestClient.prototype.updateCurrentRateMaster = function (request) {
|
|
@@ -1057,17 +803,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1057
803
|
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
1058
804
|
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
1059
805
|
};
|
|
1060
|
-
return
|
|
1061
|
-
|
|
1062
|
-
}).then(function (response) {
|
|
1063
|
-
return Result.UpdateCurrentRateMasterResult.fromDict(response.data);
|
|
1064
|
-
}).catch(function (error) {
|
|
1065
|
-
if (error.response) {
|
|
1066
|
-
throw JSON.parse(error.response.data.message);
|
|
1067
|
-
}
|
|
1068
|
-
else {
|
|
1069
|
-
throw [];
|
|
1070
|
-
}
|
|
806
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
807
|
+
return Result.UpdateCurrentRateMasterResult.fromDict(data);
|
|
1071
808
|
});
|
|
1072
809
|
};
|
|
1073
810
|
Gs2ExchangeRestClient.prototype.updateCurrentRateMasterFromGitHub = function (request) {
|
|
@@ -1084,17 +821,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1084
821
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
1085
822
|
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
1086
823
|
};
|
|
1087
|
-
return
|
|
1088
|
-
|
|
1089
|
-
}).then(function (response) {
|
|
1090
|
-
return Result.UpdateCurrentRateMasterFromGitHubResult.fromDict(response.data);
|
|
1091
|
-
}).catch(function (error) {
|
|
1092
|
-
if (error.response) {
|
|
1093
|
-
throw JSON.parse(error.response.data.message);
|
|
1094
|
-
}
|
|
1095
|
-
else {
|
|
1096
|
-
throw [];
|
|
1097
|
-
}
|
|
824
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
825
|
+
return Result.UpdateCurrentRateMasterFromGitHubResult.fromDict(data);
|
|
1098
826
|
});
|
|
1099
827
|
};
|
|
1100
828
|
Gs2ExchangeRestClient.prototype.createAwaitByUserId = function (request) {
|
|
@@ -1120,17 +848,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1120
848
|
'count': (_l = request.getCount()) !== null && _l !== void 0 ? _l : null,
|
|
1121
849
|
'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
|
|
1122
850
|
};
|
|
1123
|
-
return
|
|
1124
|
-
|
|
1125
|
-
}).then(function (response) {
|
|
1126
|
-
return Result.CreateAwaitByUserIdResult.fromDict(response.data);
|
|
1127
|
-
}).catch(function (error) {
|
|
1128
|
-
if (error.response) {
|
|
1129
|
-
throw JSON.parse(error.response.data.message);
|
|
1130
|
-
}
|
|
1131
|
-
else {
|
|
1132
|
-
throw [];
|
|
1133
|
-
}
|
|
851
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
852
|
+
return Result.CreateAwaitByUserIdResult.fromDict(data);
|
|
1134
853
|
});
|
|
1135
854
|
};
|
|
1136
855
|
Gs2ExchangeRestClient.prototype.describeAwaits = function (request) {
|
|
@@ -1152,13 +871,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1152
871
|
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
1153
872
|
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
1154
873
|
};
|
|
1155
|
-
return
|
|
1156
|
-
|
|
1157
|
-
headers: headers,
|
|
1158
|
-
}).then(function (response) {
|
|
1159
|
-
return Result.DescribeAwaitsResult.fromDict(response.data);
|
|
1160
|
-
}).catch(function (error) {
|
|
1161
|
-
throw JSON.parse(error.response.data.message);
|
|
874
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
875
|
+
return Result.DescribeAwaitsResult.fromDict(data);
|
|
1162
876
|
});
|
|
1163
877
|
};
|
|
1164
878
|
Gs2ExchangeRestClient.prototype.describeAwaitsByUserId = function (request) {
|
|
@@ -1181,13 +895,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1181
895
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
1182
896
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
1183
897
|
};
|
|
1184
|
-
return
|
|
1185
|
-
|
|
1186
|
-
headers: headers,
|
|
1187
|
-
}).then(function (response) {
|
|
1188
|
-
return Result.DescribeAwaitsByUserIdResult.fromDict(response.data);
|
|
1189
|
-
}).catch(function (error) {
|
|
1190
|
-
throw JSON.parse(error.response.data.message);
|
|
898
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
899
|
+
return Result.DescribeAwaitsByUserIdResult.fromDict(data);
|
|
1191
900
|
});
|
|
1192
901
|
};
|
|
1193
902
|
Gs2ExchangeRestClient.prototype.getAwait = function (request) {
|
|
@@ -1207,13 +916,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1207
916
|
var params = {
|
|
1208
917
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1209
918
|
};
|
|
1210
|
-
return
|
|
1211
|
-
|
|
1212
|
-
headers: headers,
|
|
1213
|
-
}).then(function (response) {
|
|
1214
|
-
return Result.GetAwaitResult.fromDict(response.data);
|
|
1215
|
-
}).catch(function (error) {
|
|
1216
|
-
throw JSON.parse(error.response.data.message);
|
|
919
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
920
|
+
return Result.GetAwaitResult.fromDict(data);
|
|
1217
921
|
});
|
|
1218
922
|
};
|
|
1219
923
|
Gs2ExchangeRestClient.prototype.getAwaitByUserId = function (request) {
|
|
@@ -1234,13 +938,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1234
938
|
var params = {
|
|
1235
939
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1236
940
|
};
|
|
1237
|
-
return
|
|
1238
|
-
|
|
1239
|
-
headers: headers,
|
|
1240
|
-
}).then(function (response) {
|
|
1241
|
-
return Result.GetAwaitByUserIdResult.fromDict(response.data);
|
|
1242
|
-
}).catch(function (error) {
|
|
1243
|
-
throw JSON.parse(error.response.data.message);
|
|
941
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
942
|
+
return Result.GetAwaitByUserIdResult.fromDict(data);
|
|
1244
943
|
});
|
|
1245
944
|
};
|
|
1246
945
|
Gs2ExchangeRestClient.prototype.acquire = function (request) {
|
|
@@ -1264,17 +963,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1264
963
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1265
964
|
'config': (_k = (_j = request.getConfig()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
1266
965
|
};
|
|
1267
|
-
return
|
|
1268
|
-
|
|
1269
|
-
}).then(function (response) {
|
|
1270
|
-
return Result.AcquireResult.fromDict(response.data);
|
|
1271
|
-
}).catch(function (error) {
|
|
1272
|
-
if (error.response) {
|
|
1273
|
-
throw JSON.parse(error.response.data.message);
|
|
1274
|
-
}
|
|
1275
|
-
else {
|
|
1276
|
-
throw [];
|
|
1277
|
-
}
|
|
966
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
967
|
+
return Result.AcquireResult.fromDict(data);
|
|
1278
968
|
});
|
|
1279
969
|
};
|
|
1280
970
|
Gs2ExchangeRestClient.prototype.acquireByUserId = function (request) {
|
|
@@ -1299,17 +989,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1299
989
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1300
990
|
'config': (_m = (_l = request.getConfig()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
1301
991
|
};
|
|
1302
|
-
return
|
|
1303
|
-
|
|
1304
|
-
}).then(function (response) {
|
|
1305
|
-
return Result.AcquireByUserIdResult.fromDict(response.data);
|
|
1306
|
-
}).catch(function (error) {
|
|
1307
|
-
if (error.response) {
|
|
1308
|
-
throw JSON.parse(error.response.data.message);
|
|
1309
|
-
}
|
|
1310
|
-
else {
|
|
1311
|
-
throw [];
|
|
1312
|
-
}
|
|
992
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
993
|
+
return Result.AcquireByUserIdResult.fromDict(data);
|
|
1313
994
|
});
|
|
1314
995
|
};
|
|
1315
996
|
Gs2ExchangeRestClient.prototype.acquireForceByUserId = function (request) {
|
|
@@ -1334,17 +1015,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1334
1015
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1335
1016
|
'config': (_m = (_l = request.getConfig()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
1336
1017
|
};
|
|
1337
|
-
return
|
|
1338
|
-
|
|
1339
|
-
}).then(function (response) {
|
|
1340
|
-
return Result.AcquireForceByUserIdResult.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
|
-
}
|
|
1018
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1019
|
+
return Result.AcquireForceByUserIdResult.fromDict(data);
|
|
1348
1020
|
});
|
|
1349
1021
|
};
|
|
1350
1022
|
Gs2ExchangeRestClient.prototype.skipByUserId = function (request) {
|
|
@@ -1371,17 +1043,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1371
1043
|
'minutes': (_m = request.getMinutes()) !== null && _m !== void 0 ? _m : null,
|
|
1372
1044
|
'rate': (_o = request.getRate()) !== null && _o !== void 0 ? _o : null,
|
|
1373
1045
|
};
|
|
1374
|
-
return
|
|
1375
|
-
|
|
1376
|
-
}).then(function (response) {
|
|
1377
|
-
return Result.SkipByUserIdResult.fromDict(response.data);
|
|
1378
|
-
}).catch(function (error) {
|
|
1379
|
-
if (error.response) {
|
|
1380
|
-
throw JSON.parse(error.response.data.message);
|
|
1381
|
-
}
|
|
1382
|
-
else {
|
|
1383
|
-
throw [];
|
|
1384
|
-
}
|
|
1046
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1047
|
+
return Result.SkipByUserIdResult.fromDict(data);
|
|
1385
1048
|
});
|
|
1386
1049
|
};
|
|
1387
1050
|
Gs2ExchangeRestClient.prototype.deleteAwait = function (request) {
|
|
@@ -1404,13 +1067,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1404
1067
|
var params = {
|
|
1405
1068
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1406
1069
|
};
|
|
1407
|
-
return
|
|
1408
|
-
|
|
1409
|
-
headers: headers,
|
|
1410
|
-
}).then(function (response) {
|
|
1411
|
-
return Result.DeleteAwaitResult.fromDict(response.data);
|
|
1412
|
-
}).catch(function (error) {
|
|
1413
|
-
throw JSON.parse(error.response.data.message);
|
|
1070
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1071
|
+
return Result.DeleteAwaitResult.fromDict(data);
|
|
1414
1072
|
});
|
|
1415
1073
|
};
|
|
1416
1074
|
Gs2ExchangeRestClient.prototype.deleteAwaitByUserId = function (request) {
|
|
@@ -1434,13 +1092,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1434
1092
|
var params = {
|
|
1435
1093
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1436
1094
|
};
|
|
1437
|
-
return
|
|
1438
|
-
|
|
1439
|
-
headers: headers,
|
|
1440
|
-
}).then(function (response) {
|
|
1441
|
-
return Result.DeleteAwaitByUserIdResult.fromDict(response.data);
|
|
1442
|
-
}).catch(function (error) {
|
|
1443
|
-
throw JSON.parse(error.response.data.message);
|
|
1095
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1096
|
+
return Result.DeleteAwaitByUserIdResult.fromDict(data);
|
|
1444
1097
|
});
|
|
1445
1098
|
};
|
|
1446
1099
|
Gs2ExchangeRestClient.prototype.createAwaitByStampSheet = function (request) {
|
|
@@ -1457,17 +1110,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1457
1110
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1458
1111
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1459
1112
|
};
|
|
1460
|
-
return
|
|
1461
|
-
|
|
1462
|
-
}).then(function (response) {
|
|
1463
|
-
return Result.CreateAwaitByStampSheetResult.fromDict(response.data);
|
|
1464
|
-
}).catch(function (error) {
|
|
1465
|
-
if (error.response) {
|
|
1466
|
-
throw JSON.parse(error.response.data.message);
|
|
1467
|
-
}
|
|
1468
|
-
else {
|
|
1469
|
-
throw [];
|
|
1470
|
-
}
|
|
1113
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1114
|
+
return Result.CreateAwaitByStampSheetResult.fromDict(data);
|
|
1471
1115
|
});
|
|
1472
1116
|
};
|
|
1473
1117
|
Gs2ExchangeRestClient.prototype.acquireForceByStampSheet = function (request) {
|
|
@@ -1484,17 +1128,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1484
1128
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1485
1129
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1486
1130
|
};
|
|
1487
|
-
return
|
|
1488
|
-
|
|
1489
|
-
}).then(function (response) {
|
|
1490
|
-
return Result.AcquireForceByStampSheetResult.fromDict(response.data);
|
|
1491
|
-
}).catch(function (error) {
|
|
1492
|
-
if (error.response) {
|
|
1493
|
-
throw JSON.parse(error.response.data.message);
|
|
1494
|
-
}
|
|
1495
|
-
else {
|
|
1496
|
-
throw [];
|
|
1497
|
-
}
|
|
1131
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1132
|
+
return Result.AcquireForceByStampSheetResult.fromDict(data);
|
|
1498
1133
|
});
|
|
1499
1134
|
};
|
|
1500
1135
|
Gs2ExchangeRestClient.prototype.skipByStampSheet = function (request) {
|
|
@@ -1511,17 +1146,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1511
1146
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1512
1147
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1513
1148
|
};
|
|
1514
|
-
return
|
|
1515
|
-
|
|
1516
|
-
}).then(function (response) {
|
|
1517
|
-
return Result.SkipByStampSheetResult.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
|
-
}
|
|
1149
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1150
|
+
return Result.SkipByStampSheetResult.fromDict(data);
|
|
1525
1151
|
});
|
|
1526
1152
|
};
|
|
1527
1153
|
Gs2ExchangeRestClient.prototype.deleteAwaitByStampTask = function (request) {
|
|
@@ -1538,17 +1164,8 @@ var Gs2ExchangeRestClient = /** @class */ (function (_super) {
|
|
|
1538
1164
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1539
1165
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1540
1166
|
};
|
|
1541
|
-
return
|
|
1542
|
-
|
|
1543
|
-
}).then(function (response) {
|
|
1544
|
-
return Result.DeleteAwaitByStampTaskResult.fromDict(response.data);
|
|
1545
|
-
}).catch(function (error) {
|
|
1546
|
-
if (error.response) {
|
|
1547
|
-
throw JSON.parse(error.response.data.message);
|
|
1548
|
-
}
|
|
1549
|
-
else {
|
|
1550
|
-
throw [];
|
|
1551
|
-
}
|
|
1167
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1168
|
+
return Result.DeleteAwaitByStampTaskResult.fromDict(data);
|
|
1552
1169
|
});
|
|
1553
1170
|
};
|
|
1554
1171
|
Gs2ExchangeRestClient.ENDPOINT_HOST = null;
|