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/guild/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 Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
24
23
|
tslib_1.__extends(Gs2GuildRestClient, _super);
|
|
25
24
|
function Gs2GuildRestClient(session) {
|
|
@@ -40,13 +39,8 @@ var Gs2GuildRestClient = /** @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
|
Gs2GuildRestClient.prototype.createNamespace = function (request) {
|
|
@@ -79,17 +73,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
79
73
|
'deleteGuildScript': (_8 = (_7 = request.getDeleteGuildScript()) === null || _7 === void 0 ? void 0 : _7.toDict()) !== null && _8 !== void 0 ? _8 : null,
|
|
80
74
|
'logSetting': (_10 = (_9 = request.getLogSetting()) === null || _9 === void 0 ? void 0 : _9.toDict()) !== null && _10 !== void 0 ? _10 : null,
|
|
81
75
|
};
|
|
82
|
-
return
|
|
83
|
-
|
|
84
|
-
}).then(function (response) {
|
|
85
|
-
return Result.CreateNamespaceResult.fromDict(response.data);
|
|
86
|
-
}).catch(function (error) {
|
|
87
|
-
if (error.response) {
|
|
88
|
-
throw JSON.parse(error.response.data.message);
|
|
89
|
-
}
|
|
90
|
-
else {
|
|
91
|
-
throw [];
|
|
92
|
-
}
|
|
76
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
77
|
+
return Result.CreateNamespaceResult.fromDict(data);
|
|
93
78
|
});
|
|
94
79
|
};
|
|
95
80
|
Gs2GuildRestClient.prototype.getNamespaceStatus = function (request) {
|
|
@@ -105,13 +90,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
105
90
|
var params = {
|
|
106
91
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
107
92
|
};
|
|
108
|
-
return
|
|
109
|
-
|
|
110
|
-
headers: headers,
|
|
111
|
-
}).then(function (response) {
|
|
112
|
-
return Result.GetNamespaceStatusResult.fromDict(response.data);
|
|
113
|
-
}).catch(function (error) {
|
|
114
|
-
throw JSON.parse(error.response.data.message);
|
|
93
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
94
|
+
return Result.GetNamespaceStatusResult.fromDict(data);
|
|
115
95
|
});
|
|
116
96
|
};
|
|
117
97
|
Gs2GuildRestClient.prototype.getNamespace = function (request) {
|
|
@@ -127,13 +107,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
127
107
|
var params = {
|
|
128
108
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
129
109
|
};
|
|
130
|
-
return
|
|
131
|
-
|
|
132
|
-
headers: headers,
|
|
133
|
-
}).then(function (response) {
|
|
134
|
-
return Result.GetNamespaceResult.fromDict(response.data);
|
|
135
|
-
}).catch(function (error) {
|
|
136
|
-
throw JSON.parse(error.response.data.message);
|
|
110
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
111
|
+
return Result.GetNamespaceResult.fromDict(data);
|
|
137
112
|
});
|
|
138
113
|
};
|
|
139
114
|
Gs2GuildRestClient.prototype.updateNamespace = function (request) {
|
|
@@ -166,17 +141,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
166
141
|
'deleteGuildScript': (_9 = (_8 = request.getDeleteGuildScript()) === null || _8 === void 0 ? void 0 : _8.toDict()) !== null && _9 !== void 0 ? _9 : null,
|
|
167
142
|
'logSetting': (_11 = (_10 = request.getLogSetting()) === null || _10 === void 0 ? void 0 : _10.toDict()) !== null && _11 !== void 0 ? _11 : null,
|
|
168
143
|
};
|
|
169
|
-
return
|
|
170
|
-
|
|
171
|
-
}).then(function (response) {
|
|
172
|
-
return Result.UpdateNamespaceResult.fromDict(response.data);
|
|
173
|
-
}).catch(function (error) {
|
|
174
|
-
if (error.response) {
|
|
175
|
-
throw JSON.parse(error.response.data.message);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
throw [];
|
|
179
|
-
}
|
|
144
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
145
|
+
return Result.UpdateNamespaceResult.fromDict(data);
|
|
180
146
|
});
|
|
181
147
|
};
|
|
182
148
|
Gs2GuildRestClient.prototype.deleteNamespace = function (request) {
|
|
@@ -192,13 +158,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
192
158
|
var params = {
|
|
193
159
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
194
160
|
};
|
|
195
|
-
return
|
|
196
|
-
|
|
197
|
-
headers: headers,
|
|
198
|
-
}).then(function (response) {
|
|
199
|
-
return Result.DeleteNamespaceResult.fromDict(response.data);
|
|
200
|
-
}).catch(function (error) {
|
|
201
|
-
throw JSON.parse(error.response.data.message);
|
|
161
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
162
|
+
return Result.DeleteNamespaceResult.fromDict(data);
|
|
202
163
|
});
|
|
203
164
|
};
|
|
204
165
|
Gs2GuildRestClient.prototype.getServiceVersion = function (request) {
|
|
@@ -213,13 +174,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
213
174
|
var params = {
|
|
214
175
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
215
176
|
};
|
|
216
|
-
return
|
|
217
|
-
|
|
218
|
-
headers: headers,
|
|
219
|
-
}).then(function (response) {
|
|
220
|
-
return Result.GetServiceVersionResult.fromDict(response.data);
|
|
221
|
-
}).catch(function (error) {
|
|
222
|
-
throw JSON.parse(error.response.data.message);
|
|
177
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
178
|
+
return Result.GetServiceVersionResult.fromDict(data);
|
|
223
179
|
});
|
|
224
180
|
};
|
|
225
181
|
Gs2GuildRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
@@ -238,17 +194,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
238
194
|
var body = {
|
|
239
195
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
240
196
|
};
|
|
241
|
-
return
|
|
242
|
-
|
|
243
|
-
}).then(function (response) {
|
|
244
|
-
return Result.DumpUserDataByUserIdResult.fromDict(response.data);
|
|
245
|
-
}).catch(function (error) {
|
|
246
|
-
if (error.response) {
|
|
247
|
-
throw JSON.parse(error.response.data.message);
|
|
248
|
-
}
|
|
249
|
-
else {
|
|
250
|
-
throw [];
|
|
251
|
-
}
|
|
197
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
198
|
+
return Result.DumpUserDataByUserIdResult.fromDict(data);
|
|
252
199
|
});
|
|
253
200
|
};
|
|
254
201
|
Gs2GuildRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
@@ -267,13 +214,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
267
214
|
var params = {
|
|
268
215
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
269
216
|
};
|
|
270
|
-
return
|
|
271
|
-
|
|
272
|
-
headers: headers,
|
|
273
|
-
}).then(function (response) {
|
|
274
|
-
return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
|
|
275
|
-
}).catch(function (error) {
|
|
276
|
-
throw JSON.parse(error.response.data.message);
|
|
217
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
218
|
+
return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
|
|
277
219
|
});
|
|
278
220
|
};
|
|
279
221
|
Gs2GuildRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
@@ -292,17 +234,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
292
234
|
var body = {
|
|
293
235
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
294
236
|
};
|
|
295
|
-
return
|
|
296
|
-
|
|
297
|
-
}).then(function (response) {
|
|
298
|
-
return Result.CleanUserDataByUserIdResult.fromDict(response.data);
|
|
299
|
-
}).catch(function (error) {
|
|
300
|
-
if (error.response) {
|
|
301
|
-
throw JSON.parse(error.response.data.message);
|
|
302
|
-
}
|
|
303
|
-
else {
|
|
304
|
-
throw [];
|
|
305
|
-
}
|
|
237
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
238
|
+
return Result.CleanUserDataByUserIdResult.fromDict(data);
|
|
306
239
|
});
|
|
307
240
|
};
|
|
308
241
|
Gs2GuildRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
@@ -321,13 +254,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
321
254
|
var params = {
|
|
322
255
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
323
256
|
};
|
|
324
|
-
return
|
|
325
|
-
|
|
326
|
-
headers: headers,
|
|
327
|
-
}).then(function (response) {
|
|
328
|
-
return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
|
|
329
|
-
}).catch(function (error) {
|
|
330
|
-
throw JSON.parse(error.response.data.message);
|
|
257
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
258
|
+
return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
|
|
331
259
|
});
|
|
332
260
|
};
|
|
333
261
|
Gs2GuildRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
@@ -346,17 +274,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
346
274
|
var body = {
|
|
347
275
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
348
276
|
};
|
|
349
|
-
return
|
|
350
|
-
|
|
351
|
-
}).then(function (response) {
|
|
352
|
-
return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
|
|
353
|
-
}).catch(function (error) {
|
|
354
|
-
if (error.response) {
|
|
355
|
-
throw JSON.parse(error.response.data.message);
|
|
356
|
-
}
|
|
357
|
-
else {
|
|
358
|
-
throw [];
|
|
359
|
-
}
|
|
277
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
278
|
+
return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
|
|
360
279
|
});
|
|
361
280
|
};
|
|
362
281
|
Gs2GuildRestClient.prototype.importUserDataByUserId = function (request) {
|
|
@@ -376,17 +295,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
376
295
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
377
296
|
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
378
297
|
};
|
|
379
|
-
return
|
|
380
|
-
|
|
381
|
-
}).then(function (response) {
|
|
382
|
-
return Result.ImportUserDataByUserIdResult.fromDict(response.data);
|
|
383
|
-
}).catch(function (error) {
|
|
384
|
-
if (error.response) {
|
|
385
|
-
throw JSON.parse(error.response.data.message);
|
|
386
|
-
}
|
|
387
|
-
else {
|
|
388
|
-
throw [];
|
|
389
|
-
}
|
|
298
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
299
|
+
return Result.ImportUserDataByUserIdResult.fromDict(data);
|
|
390
300
|
});
|
|
391
301
|
};
|
|
392
302
|
Gs2GuildRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
@@ -406,13 +316,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
406
316
|
var params = {
|
|
407
317
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
408
318
|
};
|
|
409
|
-
return
|
|
410
|
-
|
|
411
|
-
headers: headers,
|
|
412
|
-
}).then(function (response) {
|
|
413
|
-
return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
|
|
414
|
-
}).catch(function (error) {
|
|
415
|
-
throw JSON.parse(error.response.data.message);
|
|
319
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
320
|
+
return Result.CheckImportUserDataByUserIdResult.fromDict(data);
|
|
416
321
|
});
|
|
417
322
|
};
|
|
418
323
|
Gs2GuildRestClient.prototype.describeGuildModelMasters = function (request) {
|
|
@@ -431,13 +336,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
431
336
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
432
337
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
433
338
|
};
|
|
434
|
-
return
|
|
435
|
-
|
|
436
|
-
headers: headers,
|
|
437
|
-
}).then(function (response) {
|
|
438
|
-
return Result.DescribeGuildModelMastersResult.fromDict(response.data);
|
|
439
|
-
}).catch(function (error) {
|
|
440
|
-
throw JSON.parse(error.response.data.message);
|
|
339
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
340
|
+
return Result.DescribeGuildModelMastersResult.fromDict(data);
|
|
441
341
|
});
|
|
442
342
|
};
|
|
443
343
|
Gs2GuildRestClient.prototype.createGuildModelMaster = function (request) {
|
|
@@ -465,17 +365,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
465
365
|
'maxConcurrentJoinGuilds': (_r = request.getMaxConcurrentJoinGuilds()) !== null && _r !== void 0 ? _r : null,
|
|
466
366
|
'maxConcurrentGuildMasterCount': (_s = request.getMaxConcurrentGuildMasterCount()) !== null && _s !== void 0 ? _s : null,
|
|
467
367
|
};
|
|
468
|
-
return
|
|
469
|
-
|
|
470
|
-
}).then(function (response) {
|
|
471
|
-
return Result.CreateGuildModelMasterResult.fromDict(response.data);
|
|
472
|
-
}).catch(function (error) {
|
|
473
|
-
if (error.response) {
|
|
474
|
-
throw JSON.parse(error.response.data.message);
|
|
475
|
-
}
|
|
476
|
-
else {
|
|
477
|
-
throw [];
|
|
478
|
-
}
|
|
368
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
369
|
+
return Result.CreateGuildModelMasterResult.fromDict(data);
|
|
479
370
|
});
|
|
480
371
|
};
|
|
481
372
|
Gs2GuildRestClient.prototype.getGuildModelMaster = function (request) {
|
|
@@ -492,13 +383,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
492
383
|
var params = {
|
|
493
384
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
494
385
|
};
|
|
495
|
-
return
|
|
496
|
-
|
|
497
|
-
headers: headers,
|
|
498
|
-
}).then(function (response) {
|
|
499
|
-
return Result.GetGuildModelMasterResult.fromDict(response.data);
|
|
500
|
-
}).catch(function (error) {
|
|
501
|
-
throw JSON.parse(error.response.data.message);
|
|
386
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
387
|
+
return Result.GetGuildModelMasterResult.fromDict(data);
|
|
502
388
|
});
|
|
503
389
|
};
|
|
504
390
|
Gs2GuildRestClient.prototype.updateGuildModelMaster = function (request) {
|
|
@@ -526,17 +412,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
526
412
|
'maxConcurrentJoinGuilds': (_s = request.getMaxConcurrentJoinGuilds()) !== null && _s !== void 0 ? _s : null,
|
|
527
413
|
'maxConcurrentGuildMasterCount': (_t = request.getMaxConcurrentGuildMasterCount()) !== null && _t !== void 0 ? _t : null,
|
|
528
414
|
};
|
|
529
|
-
return
|
|
530
|
-
|
|
531
|
-
}).then(function (response) {
|
|
532
|
-
return Result.UpdateGuildModelMasterResult.fromDict(response.data);
|
|
533
|
-
}).catch(function (error) {
|
|
534
|
-
if (error.response) {
|
|
535
|
-
throw JSON.parse(error.response.data.message);
|
|
536
|
-
}
|
|
537
|
-
else {
|
|
538
|
-
throw [];
|
|
539
|
-
}
|
|
415
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
416
|
+
return Result.UpdateGuildModelMasterResult.fromDict(data);
|
|
540
417
|
});
|
|
541
418
|
};
|
|
542
419
|
Gs2GuildRestClient.prototype.deleteGuildModelMaster = function (request) {
|
|
@@ -553,13 +430,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
553
430
|
var params = {
|
|
554
431
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
555
432
|
};
|
|
556
|
-
return
|
|
557
|
-
|
|
558
|
-
headers: headers,
|
|
559
|
-
}).then(function (response) {
|
|
560
|
-
return Result.DeleteGuildModelMasterResult.fromDict(response.data);
|
|
561
|
-
}).catch(function (error) {
|
|
562
|
-
throw JSON.parse(error.response.data.message);
|
|
433
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
434
|
+
return Result.DeleteGuildModelMasterResult.fromDict(data);
|
|
563
435
|
});
|
|
564
436
|
};
|
|
565
437
|
Gs2GuildRestClient.prototype.describeGuildModels = function (request) {
|
|
@@ -575,13 +447,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
575
447
|
var params = {
|
|
576
448
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
577
449
|
};
|
|
578
|
-
return
|
|
579
|
-
|
|
580
|
-
headers: headers,
|
|
581
|
-
}).then(function (response) {
|
|
582
|
-
return Result.DescribeGuildModelsResult.fromDict(response.data);
|
|
583
|
-
}).catch(function (error) {
|
|
584
|
-
throw JSON.parse(error.response.data.message);
|
|
450
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
451
|
+
return Result.DescribeGuildModelsResult.fromDict(data);
|
|
585
452
|
});
|
|
586
453
|
};
|
|
587
454
|
Gs2GuildRestClient.prototype.getGuildModel = function (request) {
|
|
@@ -598,13 +465,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
598
465
|
var params = {
|
|
599
466
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
600
467
|
};
|
|
601
|
-
return
|
|
602
|
-
|
|
603
|
-
headers: headers,
|
|
604
|
-
}).then(function (response) {
|
|
605
|
-
return Result.GetGuildModelResult.fromDict(response.data);
|
|
606
|
-
}).catch(function (error) {
|
|
607
|
-
throw JSON.parse(error.response.data.message);
|
|
468
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
469
|
+
return Result.GetGuildModelResult.fromDict(data);
|
|
608
470
|
});
|
|
609
471
|
};
|
|
610
472
|
Gs2GuildRestClient.prototype.searchGuilds = function (request) {
|
|
@@ -638,17 +500,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
638
500
|
'pageToken': (_t = request.getPageToken()) !== null && _t !== void 0 ? _t : null,
|
|
639
501
|
'limit': (_u = request.getLimit()) !== null && _u !== void 0 ? _u : null,
|
|
640
502
|
};
|
|
641
|
-
return
|
|
642
|
-
|
|
643
|
-
}).then(function (response) {
|
|
644
|
-
return Result.SearchGuildsResult.fromDict(response.data);
|
|
645
|
-
}).catch(function (error) {
|
|
646
|
-
if (error.response) {
|
|
647
|
-
throw JSON.parse(error.response.data.message);
|
|
648
|
-
}
|
|
649
|
-
else {
|
|
650
|
-
throw [];
|
|
651
|
-
}
|
|
503
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
504
|
+
return Result.SearchGuildsResult.fromDict(data);
|
|
652
505
|
});
|
|
653
506
|
};
|
|
654
507
|
Gs2GuildRestClient.prototype.searchGuildsByUserId = function (request) {
|
|
@@ -683,17 +536,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
683
536
|
'pageToken': (_v = request.getPageToken()) !== null && _v !== void 0 ? _v : null,
|
|
684
537
|
'limit': (_w = request.getLimit()) !== null && _w !== void 0 ? _w : null,
|
|
685
538
|
};
|
|
686
|
-
return
|
|
687
|
-
|
|
688
|
-
}).then(function (response) {
|
|
689
|
-
return Result.SearchGuildsByUserIdResult.fromDict(response.data);
|
|
690
|
-
}).catch(function (error) {
|
|
691
|
-
if (error.response) {
|
|
692
|
-
throw JSON.parse(error.response.data.message);
|
|
693
|
-
}
|
|
694
|
-
else {
|
|
695
|
-
throw [];
|
|
696
|
-
}
|
|
539
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
540
|
+
return Result.SearchGuildsByUserIdResult.fromDict(data);
|
|
697
541
|
});
|
|
698
542
|
};
|
|
699
543
|
Gs2GuildRestClient.prototype.createGuild = function (request) {
|
|
@@ -727,17 +571,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
727
571
|
'customRoles': (_u = (_t = request.getCustomRoles()) === null || _t === void 0 ? void 0 : _t.map(function (item) { return item.toDict(); })) !== null && _u !== void 0 ? _u : null,
|
|
728
572
|
'guildMemberDefaultRole': (_v = request.getGuildMemberDefaultRole()) !== null && _v !== void 0 ? _v : null,
|
|
729
573
|
};
|
|
730
|
-
return
|
|
731
|
-
|
|
732
|
-
}).then(function (response) {
|
|
733
|
-
return Result.CreateGuildResult.fromDict(response.data);
|
|
734
|
-
}).catch(function (error) {
|
|
735
|
-
if (error.response) {
|
|
736
|
-
throw JSON.parse(error.response.data.message);
|
|
737
|
-
}
|
|
738
|
-
else {
|
|
739
|
-
throw [];
|
|
740
|
-
}
|
|
574
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
575
|
+
return Result.CreateGuildResult.fromDict(data);
|
|
741
576
|
});
|
|
742
577
|
};
|
|
743
578
|
Gs2GuildRestClient.prototype.createGuildByUserId = function (request) {
|
|
@@ -772,17 +607,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
772
607
|
'customRoles': (_w = (_v = request.getCustomRoles()) === null || _v === void 0 ? void 0 : _v.map(function (item) { return item.toDict(); })) !== null && _w !== void 0 ? _w : null,
|
|
773
608
|
'guildMemberDefaultRole': (_x = request.getGuildMemberDefaultRole()) !== null && _x !== void 0 ? _x : null,
|
|
774
609
|
};
|
|
775
|
-
return
|
|
776
|
-
|
|
777
|
-
}).then(function (response) {
|
|
778
|
-
return Result.CreateGuildByUserIdResult.fromDict(response.data);
|
|
779
|
-
}).catch(function (error) {
|
|
780
|
-
if (error.response) {
|
|
781
|
-
throw JSON.parse(error.response.data.message);
|
|
782
|
-
}
|
|
783
|
-
else {
|
|
784
|
-
throw [];
|
|
785
|
-
}
|
|
610
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
611
|
+
return Result.CreateGuildByUserIdResult.fromDict(data);
|
|
786
612
|
});
|
|
787
613
|
};
|
|
788
614
|
Gs2GuildRestClient.prototype.getGuild = function (request) {
|
|
@@ -803,13 +629,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
803
629
|
var params = {
|
|
804
630
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
805
631
|
};
|
|
806
|
-
return
|
|
807
|
-
|
|
808
|
-
headers: headers,
|
|
809
|
-
}).then(function (response) {
|
|
810
|
-
return Result.GetGuildResult.fromDict(response.data);
|
|
811
|
-
}).catch(function (error) {
|
|
812
|
-
throw JSON.parse(error.response.data.message);
|
|
632
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
633
|
+
return Result.GetGuildResult.fromDict(data);
|
|
813
634
|
});
|
|
814
635
|
};
|
|
815
636
|
Gs2GuildRestClient.prototype.getGuildByUserId = function (request) {
|
|
@@ -831,13 +652,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
831
652
|
var params = {
|
|
832
653
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
833
654
|
};
|
|
834
|
-
return
|
|
835
|
-
|
|
836
|
-
headers: headers,
|
|
837
|
-
}).then(function (response) {
|
|
838
|
-
return Result.GetGuildByUserIdResult.fromDict(response.data);
|
|
839
|
-
}).catch(function (error) {
|
|
840
|
-
throw JSON.parse(error.response.data.message);
|
|
655
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
656
|
+
return Result.GetGuildByUserIdResult.fromDict(data);
|
|
841
657
|
});
|
|
842
658
|
};
|
|
843
659
|
Gs2GuildRestClient.prototype.updateGuild = function (request) {
|
|
@@ -870,17 +686,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
870
686
|
'customRoles': (_t = (_s = request.getCustomRoles()) === null || _s === void 0 ? void 0 : _s.map(function (item) { return item.toDict(); })) !== null && _t !== void 0 ? _t : null,
|
|
871
687
|
'guildMemberDefaultRole': (_u = request.getGuildMemberDefaultRole()) !== null && _u !== void 0 ? _u : null,
|
|
872
688
|
};
|
|
873
|
-
return
|
|
874
|
-
|
|
875
|
-
}).then(function (response) {
|
|
876
|
-
return Result.UpdateGuildResult.fromDict(response.data);
|
|
877
|
-
}).catch(function (error) {
|
|
878
|
-
if (error.response) {
|
|
879
|
-
throw JSON.parse(error.response.data.message);
|
|
880
|
-
}
|
|
881
|
-
else {
|
|
882
|
-
throw [];
|
|
883
|
-
}
|
|
689
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
690
|
+
return Result.UpdateGuildResult.fromDict(data);
|
|
884
691
|
});
|
|
885
692
|
};
|
|
886
693
|
Gs2GuildRestClient.prototype.updateGuildByGuildName = function (request) {
|
|
@@ -911,17 +718,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
911
718
|
'customRoles': (_u = (_t = request.getCustomRoles()) === null || _t === void 0 ? void 0 : _t.map(function (item) { return item.toDict(); })) !== null && _u !== void 0 ? _u : null,
|
|
912
719
|
'guildMemberDefaultRole': (_v = request.getGuildMemberDefaultRole()) !== null && _v !== void 0 ? _v : null,
|
|
913
720
|
};
|
|
914
|
-
return
|
|
915
|
-
|
|
916
|
-
}).then(function (response) {
|
|
917
|
-
return Result.UpdateGuildByGuildNameResult.fromDict(response.data);
|
|
918
|
-
}).catch(function (error) {
|
|
919
|
-
if (error.response) {
|
|
920
|
-
throw JSON.parse(error.response.data.message);
|
|
921
|
-
}
|
|
922
|
-
else {
|
|
923
|
-
throw [];
|
|
924
|
-
}
|
|
721
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
722
|
+
return Result.UpdateGuildByGuildNameResult.fromDict(data);
|
|
925
723
|
});
|
|
926
724
|
};
|
|
927
725
|
Gs2GuildRestClient.prototype.deleteMember = function (request) {
|
|
@@ -945,13 +743,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
945
743
|
var params = {
|
|
946
744
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
947
745
|
};
|
|
948
|
-
return
|
|
949
|
-
|
|
950
|
-
headers: headers,
|
|
951
|
-
}).then(function (response) {
|
|
952
|
-
return Result.DeleteMemberResult.fromDict(response.data);
|
|
953
|
-
}).catch(function (error) {
|
|
954
|
-
throw JSON.parse(error.response.data.message);
|
|
746
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
747
|
+
return Result.DeleteMemberResult.fromDict(data);
|
|
955
748
|
});
|
|
956
749
|
};
|
|
957
750
|
Gs2GuildRestClient.prototype.deleteMemberByGuildName = function (request) {
|
|
@@ -973,17 +766,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
973
766
|
var body = {
|
|
974
767
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
975
768
|
};
|
|
976
|
-
return
|
|
977
|
-
|
|
978
|
-
}).then(function (response) {
|
|
979
|
-
return Result.DeleteMemberByGuildNameResult.fromDict(response.data);
|
|
980
|
-
}).catch(function (error) {
|
|
981
|
-
if (error.response) {
|
|
982
|
-
throw JSON.parse(error.response.data.message);
|
|
983
|
-
}
|
|
984
|
-
else {
|
|
985
|
-
throw [];
|
|
986
|
-
}
|
|
769
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
770
|
+
return Result.DeleteMemberByGuildNameResult.fromDict(data);
|
|
987
771
|
});
|
|
988
772
|
};
|
|
989
773
|
Gs2GuildRestClient.prototype.updateMemberRole = function (request) {
|
|
@@ -1008,17 +792,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1008
792
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1009
793
|
'roleName': (_l = request.getRoleName()) !== null && _l !== void 0 ? _l : null,
|
|
1010
794
|
};
|
|
1011
|
-
return
|
|
1012
|
-
|
|
1013
|
-
}).then(function (response) {
|
|
1014
|
-
return Result.UpdateMemberRoleResult.fromDict(response.data);
|
|
1015
|
-
}).catch(function (error) {
|
|
1016
|
-
if (error.response) {
|
|
1017
|
-
throw JSON.parse(error.response.data.message);
|
|
1018
|
-
}
|
|
1019
|
-
else {
|
|
1020
|
-
throw [];
|
|
1021
|
-
}
|
|
795
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
796
|
+
return Result.UpdateMemberRoleResult.fromDict(data);
|
|
1022
797
|
});
|
|
1023
798
|
};
|
|
1024
799
|
Gs2GuildRestClient.prototype.updateMemberRoleByGuildName = function (request) {
|
|
@@ -1041,17 +816,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1041
816
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1042
817
|
'roleName': (_m = request.getRoleName()) !== null && _m !== void 0 ? _m : null,
|
|
1043
818
|
};
|
|
1044
|
-
return
|
|
1045
|
-
|
|
1046
|
-
}).then(function (response) {
|
|
1047
|
-
return Result.UpdateMemberRoleByGuildNameResult.fromDict(response.data);
|
|
1048
|
-
}).catch(function (error) {
|
|
1049
|
-
if (error.response) {
|
|
1050
|
-
throw JSON.parse(error.response.data.message);
|
|
1051
|
-
}
|
|
1052
|
-
else {
|
|
1053
|
-
throw [];
|
|
1054
|
-
}
|
|
819
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
820
|
+
return Result.UpdateMemberRoleByGuildNameResult.fromDict(data);
|
|
1055
821
|
});
|
|
1056
822
|
};
|
|
1057
823
|
Gs2GuildRestClient.prototype.batchUpdateMemberRole = function (request) {
|
|
@@ -1075,17 +841,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1075
841
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1076
842
|
'members': (_k = (_j = request.getMembers()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
1077
843
|
};
|
|
1078
|
-
return
|
|
1079
|
-
|
|
1080
|
-
}).then(function (response) {
|
|
1081
|
-
return Result.BatchUpdateMemberRoleResult.fromDict(response.data);
|
|
1082
|
-
}).catch(function (error) {
|
|
1083
|
-
if (error.response) {
|
|
1084
|
-
throw JSON.parse(error.response.data.message);
|
|
1085
|
-
}
|
|
1086
|
-
else {
|
|
1087
|
-
throw [];
|
|
1088
|
-
}
|
|
844
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
845
|
+
return Result.BatchUpdateMemberRoleResult.fromDict(data);
|
|
1089
846
|
});
|
|
1090
847
|
};
|
|
1091
848
|
Gs2GuildRestClient.prototype.batchUpdateMemberRoleByGuildName = function (request) {
|
|
@@ -1107,17 +864,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1107
864
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1108
865
|
'members': (_l = (_k = request.getMembers()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
1109
866
|
};
|
|
1110
|
-
return
|
|
1111
|
-
|
|
1112
|
-
}).then(function (response) {
|
|
1113
|
-
return Result.BatchUpdateMemberRoleByGuildNameResult.fromDict(response.data);
|
|
1114
|
-
}).catch(function (error) {
|
|
1115
|
-
if (error.response) {
|
|
1116
|
-
throw JSON.parse(error.response.data.message);
|
|
1117
|
-
}
|
|
1118
|
-
else {
|
|
1119
|
-
throw [];
|
|
1120
|
-
}
|
|
867
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
868
|
+
return Result.BatchUpdateMemberRoleByGuildNameResult.fromDict(data);
|
|
1121
869
|
});
|
|
1122
870
|
};
|
|
1123
871
|
Gs2GuildRestClient.prototype.deleteGuild = function (request) {
|
|
@@ -1140,13 +888,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1140
888
|
var params = {
|
|
1141
889
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1142
890
|
};
|
|
1143
|
-
return
|
|
1144
|
-
|
|
1145
|
-
headers: headers,
|
|
1146
|
-
}).then(function (response) {
|
|
1147
|
-
return Result.DeleteGuildResult.fromDict(response.data);
|
|
1148
|
-
}).catch(function (error) {
|
|
1149
|
-
throw JSON.parse(error.response.data.message);
|
|
891
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
892
|
+
return Result.DeleteGuildResult.fromDict(data);
|
|
1150
893
|
});
|
|
1151
894
|
};
|
|
1152
895
|
Gs2GuildRestClient.prototype.deleteGuildByGuildName = function (request) {
|
|
@@ -1167,13 +910,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1167
910
|
var params = {
|
|
1168
911
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1169
912
|
};
|
|
1170
|
-
return
|
|
1171
|
-
|
|
1172
|
-
headers: headers,
|
|
1173
|
-
}).then(function (response) {
|
|
1174
|
-
return Result.DeleteGuildByGuildNameResult.fromDict(response.data);
|
|
1175
|
-
}).catch(function (error) {
|
|
1176
|
-
throw JSON.parse(error.response.data.message);
|
|
913
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
914
|
+
return Result.DeleteGuildByGuildNameResult.fromDict(data);
|
|
1177
915
|
});
|
|
1178
916
|
};
|
|
1179
917
|
Gs2GuildRestClient.prototype.increaseMaximumCurrentMaximumMemberCountByGuildName = function (request) {
|
|
@@ -1195,17 +933,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1195
933
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1196
934
|
'value': (_k = request.getValue()) !== null && _k !== void 0 ? _k : null,
|
|
1197
935
|
};
|
|
1198
|
-
return
|
|
1199
|
-
|
|
1200
|
-
}).then(function (response) {
|
|
1201
|
-
return Result.IncreaseMaximumCurrentMaximumMemberCountByGuildNameResult.fromDict(response.data);
|
|
1202
|
-
}).catch(function (error) {
|
|
1203
|
-
if (error.response) {
|
|
1204
|
-
throw JSON.parse(error.response.data.message);
|
|
1205
|
-
}
|
|
1206
|
-
else {
|
|
1207
|
-
throw [];
|
|
1208
|
-
}
|
|
936
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
937
|
+
return Result.IncreaseMaximumCurrentMaximumMemberCountByGuildNameResult.fromDict(data);
|
|
1209
938
|
});
|
|
1210
939
|
};
|
|
1211
940
|
Gs2GuildRestClient.prototype.decreaseMaximumCurrentMaximumMemberCount = function (request) {
|
|
@@ -1229,17 +958,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1229
958
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1230
959
|
'value': (_j = request.getValue()) !== null && _j !== void 0 ? _j : null,
|
|
1231
960
|
};
|
|
1232
|
-
return
|
|
1233
|
-
|
|
1234
|
-
}).then(function (response) {
|
|
1235
|
-
return Result.DecreaseMaximumCurrentMaximumMemberCountResult.fromDict(response.data);
|
|
1236
|
-
}).catch(function (error) {
|
|
1237
|
-
if (error.response) {
|
|
1238
|
-
throw JSON.parse(error.response.data.message);
|
|
1239
|
-
}
|
|
1240
|
-
else {
|
|
1241
|
-
throw [];
|
|
1242
|
-
}
|
|
961
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
962
|
+
return Result.DecreaseMaximumCurrentMaximumMemberCountResult.fromDict(data);
|
|
1243
963
|
});
|
|
1244
964
|
};
|
|
1245
965
|
Gs2GuildRestClient.prototype.decreaseMaximumCurrentMaximumMemberCountByGuildName = function (request) {
|
|
@@ -1261,17 +981,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1261
981
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1262
982
|
'value': (_k = request.getValue()) !== null && _k !== void 0 ? _k : null,
|
|
1263
983
|
};
|
|
1264
|
-
return
|
|
1265
|
-
|
|
1266
|
-
}).then(function (response) {
|
|
1267
|
-
return Result.DecreaseMaximumCurrentMaximumMemberCountByGuildNameResult.fromDict(response.data);
|
|
1268
|
-
}).catch(function (error) {
|
|
1269
|
-
if (error.response) {
|
|
1270
|
-
throw JSON.parse(error.response.data.message);
|
|
1271
|
-
}
|
|
1272
|
-
else {
|
|
1273
|
-
throw [];
|
|
1274
|
-
}
|
|
984
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
985
|
+
return Result.DecreaseMaximumCurrentMaximumMemberCountByGuildNameResult.fromDict(data);
|
|
1275
986
|
});
|
|
1276
987
|
};
|
|
1277
988
|
Gs2GuildRestClient.prototype.verifyCurrentMaximumMemberCount = function (request) {
|
|
@@ -1297,17 +1008,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1297
1008
|
'value': (_k = request.getValue()) !== null && _k !== void 0 ? _k : null,
|
|
1298
1009
|
'multiplyValueSpecifyingQuantity': (_l = request.getMultiplyValueSpecifyingQuantity()) !== null && _l !== void 0 ? _l : null,
|
|
1299
1010
|
};
|
|
1300
|
-
return
|
|
1301
|
-
|
|
1302
|
-
}).then(function (response) {
|
|
1303
|
-
return Result.VerifyCurrentMaximumMemberCountResult.fromDict(response.data);
|
|
1304
|
-
}).catch(function (error) {
|
|
1305
|
-
if (error.response) {
|
|
1306
|
-
throw JSON.parse(error.response.data.message);
|
|
1307
|
-
}
|
|
1308
|
-
else {
|
|
1309
|
-
throw [];
|
|
1310
|
-
}
|
|
1011
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1012
|
+
return Result.VerifyCurrentMaximumMemberCountResult.fromDict(data);
|
|
1311
1013
|
});
|
|
1312
1014
|
};
|
|
1313
1015
|
Gs2GuildRestClient.prototype.verifyCurrentMaximumMemberCountByGuildName = function (request) {
|
|
@@ -1331,17 +1033,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1331
1033
|
'value': (_l = request.getValue()) !== null && _l !== void 0 ? _l : null,
|
|
1332
1034
|
'multiplyValueSpecifyingQuantity': (_m = request.getMultiplyValueSpecifyingQuantity()) !== null && _m !== void 0 ? _m : null,
|
|
1333
1035
|
};
|
|
1334
|
-
return
|
|
1335
|
-
|
|
1336
|
-
}).then(function (response) {
|
|
1337
|
-
return Result.VerifyCurrentMaximumMemberCountByGuildNameResult.fromDict(response.data);
|
|
1338
|
-
}).catch(function (error) {
|
|
1339
|
-
if (error.response) {
|
|
1340
|
-
throw JSON.parse(error.response.data.message);
|
|
1341
|
-
}
|
|
1342
|
-
else {
|
|
1343
|
-
throw [];
|
|
1344
|
-
}
|
|
1036
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1037
|
+
return Result.VerifyCurrentMaximumMemberCountByGuildNameResult.fromDict(data);
|
|
1345
1038
|
});
|
|
1346
1039
|
};
|
|
1347
1040
|
Gs2GuildRestClient.prototype.verifyIncludeMember = function (request) {
|
|
@@ -1366,17 +1059,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1366
1059
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1367
1060
|
'verifyType': (_l = request.getVerifyType()) !== null && _l !== void 0 ? _l : null,
|
|
1368
1061
|
};
|
|
1369
|
-
return
|
|
1370
|
-
|
|
1371
|
-
}).then(function (response) {
|
|
1372
|
-
return Result.VerifyIncludeMemberResult.fromDict(response.data);
|
|
1373
|
-
}).catch(function (error) {
|
|
1374
|
-
if (error.response) {
|
|
1375
|
-
throw JSON.parse(error.response.data.message);
|
|
1376
|
-
}
|
|
1377
|
-
else {
|
|
1378
|
-
throw [];
|
|
1379
|
-
}
|
|
1062
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1063
|
+
return Result.VerifyIncludeMemberResult.fromDict(data);
|
|
1380
1064
|
});
|
|
1381
1065
|
};
|
|
1382
1066
|
Gs2GuildRestClient.prototype.verifyIncludeMemberByUserId = function (request) {
|
|
@@ -1402,17 +1086,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1402
1086
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1403
1087
|
'verifyType': (_o = request.getVerifyType()) !== null && _o !== void 0 ? _o : null,
|
|
1404
1088
|
};
|
|
1405
|
-
return
|
|
1406
|
-
|
|
1407
|
-
}).then(function (response) {
|
|
1408
|
-
return Result.VerifyIncludeMemberByUserIdResult.fromDict(response.data);
|
|
1409
|
-
}).catch(function (error) {
|
|
1410
|
-
if (error.response) {
|
|
1411
|
-
throw JSON.parse(error.response.data.message);
|
|
1412
|
-
}
|
|
1413
|
-
else {
|
|
1414
|
-
throw [];
|
|
1415
|
-
}
|
|
1089
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1090
|
+
return Result.VerifyIncludeMemberByUserIdResult.fromDict(data);
|
|
1416
1091
|
});
|
|
1417
1092
|
};
|
|
1418
1093
|
Gs2GuildRestClient.prototype.setMaximumCurrentMaximumMemberCountByGuildName = function (request) {
|
|
@@ -1434,17 +1109,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1434
1109
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1435
1110
|
'value': (_k = request.getValue()) !== null && _k !== void 0 ? _k : null,
|
|
1436
1111
|
};
|
|
1437
|
-
return
|
|
1438
|
-
|
|
1439
|
-
}).then(function (response) {
|
|
1440
|
-
return Result.SetMaximumCurrentMaximumMemberCountByGuildNameResult.fromDict(response.data);
|
|
1441
|
-
}).catch(function (error) {
|
|
1442
|
-
if (error.response) {
|
|
1443
|
-
throw JSON.parse(error.response.data.message);
|
|
1444
|
-
}
|
|
1445
|
-
else {
|
|
1446
|
-
throw [];
|
|
1447
|
-
}
|
|
1112
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1113
|
+
return Result.SetMaximumCurrentMaximumMemberCountByGuildNameResult.fromDict(data);
|
|
1448
1114
|
});
|
|
1449
1115
|
};
|
|
1450
1116
|
Gs2GuildRestClient.prototype.assume = function (request) {
|
|
@@ -1468,17 +1134,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1468
1134
|
var body = {
|
|
1469
1135
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1470
1136
|
};
|
|
1471
|
-
return
|
|
1472
|
-
|
|
1473
|
-
}).then(function (response) {
|
|
1474
|
-
return Result.AssumeResult.fromDict(response.data);
|
|
1475
|
-
}).catch(function (error) {
|
|
1476
|
-
if (error.response) {
|
|
1477
|
-
throw JSON.parse(error.response.data.message);
|
|
1478
|
-
}
|
|
1479
|
-
else {
|
|
1480
|
-
throw [];
|
|
1481
|
-
}
|
|
1137
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1138
|
+
return Result.AssumeResult.fromDict(data);
|
|
1482
1139
|
});
|
|
1483
1140
|
};
|
|
1484
1141
|
Gs2GuildRestClient.prototype.assumeByUserId = function (request) {
|
|
@@ -1503,17 +1160,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1503
1160
|
var body = {
|
|
1504
1161
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1505
1162
|
};
|
|
1506
|
-
return
|
|
1507
|
-
|
|
1508
|
-
}).then(function (response) {
|
|
1509
|
-
return Result.AssumeByUserIdResult.fromDict(response.data);
|
|
1510
|
-
}).catch(function (error) {
|
|
1511
|
-
if (error.response) {
|
|
1512
|
-
throw JSON.parse(error.response.data.message);
|
|
1513
|
-
}
|
|
1514
|
-
else {
|
|
1515
|
-
throw [];
|
|
1516
|
-
}
|
|
1163
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1164
|
+
return Result.AssumeByUserIdResult.fromDict(data);
|
|
1517
1165
|
});
|
|
1518
1166
|
};
|
|
1519
1167
|
Gs2GuildRestClient.prototype.increaseMaximumCurrentMaximumMemberCountByStampSheet = function (request) {
|
|
@@ -1530,17 +1178,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1530
1178
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1531
1179
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1532
1180
|
};
|
|
1533
|
-
return
|
|
1534
|
-
|
|
1535
|
-
}).then(function (response) {
|
|
1536
|
-
return Result.IncreaseMaximumCurrentMaximumMemberCountByStampSheetResult.fromDict(response.data);
|
|
1537
|
-
}).catch(function (error) {
|
|
1538
|
-
if (error.response) {
|
|
1539
|
-
throw JSON.parse(error.response.data.message);
|
|
1540
|
-
}
|
|
1541
|
-
else {
|
|
1542
|
-
throw [];
|
|
1543
|
-
}
|
|
1181
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1182
|
+
return Result.IncreaseMaximumCurrentMaximumMemberCountByStampSheetResult.fromDict(data);
|
|
1544
1183
|
});
|
|
1545
1184
|
};
|
|
1546
1185
|
Gs2GuildRestClient.prototype.decreaseMaximumCurrentMaximumMemberCountByStampTask = function (request) {
|
|
@@ -1557,17 +1196,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1557
1196
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1558
1197
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1559
1198
|
};
|
|
1560
|
-
return
|
|
1561
|
-
|
|
1562
|
-
}).then(function (response) {
|
|
1563
|
-
return Result.DecreaseMaximumCurrentMaximumMemberCountByStampTaskResult.fromDict(response.data);
|
|
1564
|
-
}).catch(function (error) {
|
|
1565
|
-
if (error.response) {
|
|
1566
|
-
throw JSON.parse(error.response.data.message);
|
|
1567
|
-
}
|
|
1568
|
-
else {
|
|
1569
|
-
throw [];
|
|
1570
|
-
}
|
|
1199
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1200
|
+
return Result.DecreaseMaximumCurrentMaximumMemberCountByStampTaskResult.fromDict(data);
|
|
1571
1201
|
});
|
|
1572
1202
|
};
|
|
1573
1203
|
Gs2GuildRestClient.prototype.setMaximumCurrentMaximumMemberCountByStampSheet = function (request) {
|
|
@@ -1584,17 +1214,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1584
1214
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1585
1215
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1586
1216
|
};
|
|
1587
|
-
return
|
|
1588
|
-
|
|
1589
|
-
}).then(function (response) {
|
|
1590
|
-
return Result.SetMaximumCurrentMaximumMemberCountByStampSheetResult.fromDict(response.data);
|
|
1591
|
-
}).catch(function (error) {
|
|
1592
|
-
if (error.response) {
|
|
1593
|
-
throw JSON.parse(error.response.data.message);
|
|
1594
|
-
}
|
|
1595
|
-
else {
|
|
1596
|
-
throw [];
|
|
1597
|
-
}
|
|
1217
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1218
|
+
return Result.SetMaximumCurrentMaximumMemberCountByStampSheetResult.fromDict(data);
|
|
1598
1219
|
});
|
|
1599
1220
|
};
|
|
1600
1221
|
Gs2GuildRestClient.prototype.verifyCurrentMaximumMemberCountByStampTask = function (request) {
|
|
@@ -1611,17 +1232,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1611
1232
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1612
1233
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1613
1234
|
};
|
|
1614
|
-
return
|
|
1615
|
-
|
|
1616
|
-
}).then(function (response) {
|
|
1617
|
-
return Result.VerifyCurrentMaximumMemberCountByStampTaskResult.fromDict(response.data);
|
|
1618
|
-
}).catch(function (error) {
|
|
1619
|
-
if (error.response) {
|
|
1620
|
-
throw JSON.parse(error.response.data.message);
|
|
1621
|
-
}
|
|
1622
|
-
else {
|
|
1623
|
-
throw [];
|
|
1624
|
-
}
|
|
1235
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1236
|
+
return Result.VerifyCurrentMaximumMemberCountByStampTaskResult.fromDict(data);
|
|
1625
1237
|
});
|
|
1626
1238
|
};
|
|
1627
1239
|
Gs2GuildRestClient.prototype.verifyIncludeMemberByStampTask = function (request) {
|
|
@@ -1638,17 +1250,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1638
1250
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1639
1251
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1640
1252
|
};
|
|
1641
|
-
return
|
|
1642
|
-
|
|
1643
|
-
}).then(function (response) {
|
|
1644
|
-
return Result.VerifyIncludeMemberByStampTaskResult.fromDict(response.data);
|
|
1645
|
-
}).catch(function (error) {
|
|
1646
|
-
if (error.response) {
|
|
1647
|
-
throw JSON.parse(error.response.data.message);
|
|
1648
|
-
}
|
|
1649
|
-
else {
|
|
1650
|
-
throw [];
|
|
1651
|
-
}
|
|
1253
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1254
|
+
return Result.VerifyIncludeMemberByStampTaskResult.fromDict(data);
|
|
1652
1255
|
});
|
|
1653
1256
|
};
|
|
1654
1257
|
Gs2GuildRestClient.prototype.describeJoinedGuilds = function (request) {
|
|
@@ -1670,13 +1273,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1670
1273
|
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
1671
1274
|
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
1672
1275
|
};
|
|
1673
|
-
return
|
|
1674
|
-
|
|
1675
|
-
headers: headers,
|
|
1676
|
-
}).then(function (response) {
|
|
1677
|
-
return Result.DescribeJoinedGuildsResult.fromDict(response.data);
|
|
1678
|
-
}).catch(function (error) {
|
|
1679
|
-
throw JSON.parse(error.response.data.message);
|
|
1276
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1277
|
+
return Result.DescribeJoinedGuildsResult.fromDict(data);
|
|
1680
1278
|
});
|
|
1681
1279
|
};
|
|
1682
1280
|
Gs2GuildRestClient.prototype.describeJoinedGuildsByUserId = function (request) {
|
|
@@ -1699,13 +1297,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1699
1297
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
1700
1298
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
1701
1299
|
};
|
|
1702
|
-
return
|
|
1703
|
-
|
|
1704
|
-
headers: headers,
|
|
1705
|
-
}).then(function (response) {
|
|
1706
|
-
return Result.DescribeJoinedGuildsByUserIdResult.fromDict(response.data);
|
|
1707
|
-
}).catch(function (error) {
|
|
1708
|
-
throw JSON.parse(error.response.data.message);
|
|
1300
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1301
|
+
return Result.DescribeJoinedGuildsByUserIdResult.fromDict(data);
|
|
1709
1302
|
});
|
|
1710
1303
|
};
|
|
1711
1304
|
Gs2GuildRestClient.prototype.getJoinedGuild = function (request) {
|
|
@@ -1726,13 +1319,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1726
1319
|
var params = {
|
|
1727
1320
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1728
1321
|
};
|
|
1729
|
-
return
|
|
1730
|
-
|
|
1731
|
-
headers: headers,
|
|
1732
|
-
}).then(function (response) {
|
|
1733
|
-
return Result.GetJoinedGuildResult.fromDict(response.data);
|
|
1734
|
-
}).catch(function (error) {
|
|
1735
|
-
throw JSON.parse(error.response.data.message);
|
|
1322
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1323
|
+
return Result.GetJoinedGuildResult.fromDict(data);
|
|
1736
1324
|
});
|
|
1737
1325
|
};
|
|
1738
1326
|
Gs2GuildRestClient.prototype.getJoinedGuildByUserId = function (request) {
|
|
@@ -1754,13 +1342,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1754
1342
|
var params = {
|
|
1755
1343
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1756
1344
|
};
|
|
1757
|
-
return
|
|
1758
|
-
|
|
1759
|
-
headers: headers,
|
|
1760
|
-
}).then(function (response) {
|
|
1761
|
-
return Result.GetJoinedGuildByUserIdResult.fromDict(response.data);
|
|
1762
|
-
}).catch(function (error) {
|
|
1763
|
-
throw JSON.parse(error.response.data.message);
|
|
1345
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1346
|
+
return Result.GetJoinedGuildByUserIdResult.fromDict(data);
|
|
1764
1347
|
});
|
|
1765
1348
|
};
|
|
1766
1349
|
Gs2GuildRestClient.prototype.updateMemberMetadata = function (request) {
|
|
@@ -1785,17 +1368,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1785
1368
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1786
1369
|
'metadata': (_l = request.getMetadata()) !== null && _l !== void 0 ? _l : null,
|
|
1787
1370
|
};
|
|
1788
|
-
return
|
|
1789
|
-
|
|
1790
|
-
}).then(function (response) {
|
|
1791
|
-
return Result.UpdateMemberMetadataResult.fromDict(response.data);
|
|
1792
|
-
}).catch(function (error) {
|
|
1793
|
-
if (error.response) {
|
|
1794
|
-
throw JSON.parse(error.response.data.message);
|
|
1795
|
-
}
|
|
1796
|
-
else {
|
|
1797
|
-
throw [];
|
|
1798
|
-
}
|
|
1371
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1372
|
+
return Result.UpdateMemberMetadataResult.fromDict(data);
|
|
1799
1373
|
});
|
|
1800
1374
|
};
|
|
1801
1375
|
Gs2GuildRestClient.prototype.updateMemberMetadataByUserId = function (request) {
|
|
@@ -1821,17 +1395,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1821
1395
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1822
1396
|
'metadata': (_o = request.getMetadata()) !== null && _o !== void 0 ? _o : null,
|
|
1823
1397
|
};
|
|
1824
|
-
return
|
|
1825
|
-
|
|
1826
|
-
}).then(function (response) {
|
|
1827
|
-
return Result.UpdateMemberMetadataByUserIdResult.fromDict(response.data);
|
|
1828
|
-
}).catch(function (error) {
|
|
1829
|
-
if (error.response) {
|
|
1830
|
-
throw JSON.parse(error.response.data.message);
|
|
1831
|
-
}
|
|
1832
|
-
else {
|
|
1833
|
-
throw [];
|
|
1834
|
-
}
|
|
1398
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1399
|
+
return Result.UpdateMemberMetadataByUserIdResult.fromDict(data);
|
|
1835
1400
|
});
|
|
1836
1401
|
};
|
|
1837
1402
|
Gs2GuildRestClient.prototype.withdrawal = function (request) {
|
|
@@ -1855,13 +1420,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1855
1420
|
var params = {
|
|
1856
1421
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1857
1422
|
};
|
|
1858
|
-
return
|
|
1859
|
-
|
|
1860
|
-
headers: headers,
|
|
1861
|
-
}).then(function (response) {
|
|
1862
|
-
return Result.WithdrawalResult.fromDict(response.data);
|
|
1863
|
-
}).catch(function (error) {
|
|
1864
|
-
throw JSON.parse(error.response.data.message);
|
|
1423
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1424
|
+
return Result.WithdrawalResult.fromDict(data);
|
|
1865
1425
|
});
|
|
1866
1426
|
};
|
|
1867
1427
|
Gs2GuildRestClient.prototype.withdrawalByUserId = function (request) {
|
|
@@ -1886,13 +1446,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1886
1446
|
var params = {
|
|
1887
1447
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1888
1448
|
};
|
|
1889
|
-
return
|
|
1890
|
-
|
|
1891
|
-
headers: headers,
|
|
1892
|
-
}).then(function (response) {
|
|
1893
|
-
return Result.WithdrawalByUserIdResult.fromDict(response.data);
|
|
1894
|
-
}).catch(function (error) {
|
|
1895
|
-
throw JSON.parse(error.response.data.message);
|
|
1449
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1450
|
+
return Result.WithdrawalByUserIdResult.fromDict(data);
|
|
1896
1451
|
});
|
|
1897
1452
|
};
|
|
1898
1453
|
Gs2GuildRestClient.prototype.getLastGuildMasterActivity = function (request) {
|
|
@@ -1912,13 +1467,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1912
1467
|
var params = {
|
|
1913
1468
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1914
1469
|
};
|
|
1915
|
-
return
|
|
1916
|
-
|
|
1917
|
-
headers: headers,
|
|
1918
|
-
}).then(function (response) {
|
|
1919
|
-
return Result.GetLastGuildMasterActivityResult.fromDict(response.data);
|
|
1920
|
-
}).catch(function (error) {
|
|
1921
|
-
throw JSON.parse(error.response.data.message);
|
|
1470
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1471
|
+
return Result.GetLastGuildMasterActivityResult.fromDict(data);
|
|
1922
1472
|
});
|
|
1923
1473
|
};
|
|
1924
1474
|
Gs2GuildRestClient.prototype.getLastGuildMasterActivityByGuildName = function (request) {
|
|
@@ -1936,13 +1486,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1936
1486
|
var params = {
|
|
1937
1487
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1938
1488
|
};
|
|
1939
|
-
return
|
|
1940
|
-
|
|
1941
|
-
headers: headers,
|
|
1942
|
-
}).then(function (response) {
|
|
1943
|
-
return Result.GetLastGuildMasterActivityByGuildNameResult.fromDict(response.data);
|
|
1944
|
-
}).catch(function (error) {
|
|
1945
|
-
throw JSON.parse(error.response.data.message);
|
|
1489
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1490
|
+
return Result.GetLastGuildMasterActivityByGuildNameResult.fromDict(data);
|
|
1946
1491
|
});
|
|
1947
1492
|
};
|
|
1948
1493
|
Gs2GuildRestClient.prototype.promoteSeniorMember = function (request) {
|
|
@@ -1965,17 +1510,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1965
1510
|
var body = {
|
|
1966
1511
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1967
1512
|
};
|
|
1968
|
-
return
|
|
1969
|
-
|
|
1970
|
-
}).then(function (response) {
|
|
1971
|
-
return Result.PromoteSeniorMemberResult.fromDict(response.data);
|
|
1972
|
-
}).catch(function (error) {
|
|
1973
|
-
if (error.response) {
|
|
1974
|
-
throw JSON.parse(error.response.data.message);
|
|
1975
|
-
}
|
|
1976
|
-
else {
|
|
1977
|
-
throw [];
|
|
1978
|
-
}
|
|
1513
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1514
|
+
return Result.PromoteSeniorMemberResult.fromDict(data);
|
|
1979
1515
|
});
|
|
1980
1516
|
};
|
|
1981
1517
|
Gs2GuildRestClient.prototype.promoteSeniorMemberByGuildName = function (request) {
|
|
@@ -1996,17 +1532,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
1996
1532
|
var body = {
|
|
1997
1533
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1998
1534
|
};
|
|
1999
|
-
return
|
|
2000
|
-
|
|
2001
|
-
}).then(function (response) {
|
|
2002
|
-
return Result.PromoteSeniorMemberByGuildNameResult.fromDict(response.data);
|
|
2003
|
-
}).catch(function (error) {
|
|
2004
|
-
if (error.response) {
|
|
2005
|
-
throw JSON.parse(error.response.data.message);
|
|
2006
|
-
}
|
|
2007
|
-
else {
|
|
2008
|
-
throw [];
|
|
2009
|
-
}
|
|
1535
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1536
|
+
return Result.PromoteSeniorMemberByGuildNameResult.fromDict(data);
|
|
2010
1537
|
});
|
|
2011
1538
|
};
|
|
2012
1539
|
Gs2GuildRestClient.prototype.exportMaster = function (request) {
|
|
@@ -2022,13 +1549,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2022
1549
|
var params = {
|
|
2023
1550
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
2024
1551
|
};
|
|
2025
|
-
return
|
|
2026
|
-
|
|
2027
|
-
headers: headers,
|
|
2028
|
-
}).then(function (response) {
|
|
2029
|
-
return Result.ExportMasterResult.fromDict(response.data);
|
|
2030
|
-
}).catch(function (error) {
|
|
2031
|
-
throw JSON.parse(error.response.data.message);
|
|
1552
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1553
|
+
return Result.ExportMasterResult.fromDict(data);
|
|
2032
1554
|
});
|
|
2033
1555
|
};
|
|
2034
1556
|
Gs2GuildRestClient.prototype.getCurrentGuildMaster = function (request) {
|
|
@@ -2044,13 +1566,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2044
1566
|
var params = {
|
|
2045
1567
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
2046
1568
|
};
|
|
2047
|
-
return
|
|
2048
|
-
|
|
2049
|
-
headers: headers,
|
|
2050
|
-
}).then(function (response) {
|
|
2051
|
-
return Result.GetCurrentGuildMasterResult.fromDict(response.data);
|
|
2052
|
-
}).catch(function (error) {
|
|
2053
|
-
throw JSON.parse(error.response.data.message);
|
|
1569
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1570
|
+
return Result.GetCurrentGuildMasterResult.fromDict(data);
|
|
2054
1571
|
});
|
|
2055
1572
|
};
|
|
2056
1573
|
Gs2GuildRestClient.prototype.preUpdateCurrentGuildMaster = function (request) {
|
|
@@ -2066,17 +1583,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2066
1583
|
var body = {
|
|
2067
1584
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
2068
1585
|
};
|
|
2069
|
-
return
|
|
2070
|
-
|
|
2071
|
-
}).then(function (response) {
|
|
2072
|
-
return Result.PreUpdateCurrentGuildMasterResult.fromDict(response.data);
|
|
2073
|
-
}).catch(function (error) {
|
|
2074
|
-
if (error.response) {
|
|
2075
|
-
throw JSON.parse(error.response.data.message);
|
|
2076
|
-
}
|
|
2077
|
-
else {
|
|
2078
|
-
throw [];
|
|
2079
|
-
}
|
|
1586
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1587
|
+
return Result.PreUpdateCurrentGuildMasterResult.fromDict(data);
|
|
2080
1588
|
});
|
|
2081
1589
|
};
|
|
2082
1590
|
Gs2GuildRestClient.prototype.updateCurrentGuildMaster = function (request) {
|
|
@@ -2095,17 +1603,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2095
1603
|
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
2096
1604
|
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
2097
1605
|
};
|
|
2098
|
-
return
|
|
2099
|
-
|
|
2100
|
-
}).then(function (response) {
|
|
2101
|
-
return Result.UpdateCurrentGuildMasterResult.fromDict(response.data);
|
|
2102
|
-
}).catch(function (error) {
|
|
2103
|
-
if (error.response) {
|
|
2104
|
-
throw JSON.parse(error.response.data.message);
|
|
2105
|
-
}
|
|
2106
|
-
else {
|
|
2107
|
-
throw [];
|
|
2108
|
-
}
|
|
1606
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1607
|
+
return Result.UpdateCurrentGuildMasterResult.fromDict(data);
|
|
2109
1608
|
});
|
|
2110
1609
|
};
|
|
2111
1610
|
Gs2GuildRestClient.prototype.updateCurrentGuildMasterFromGitHub = function (request) {
|
|
@@ -2122,17 +1621,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2122
1621
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
2123
1622
|
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
2124
1623
|
};
|
|
2125
|
-
return
|
|
2126
|
-
|
|
2127
|
-
}).then(function (response) {
|
|
2128
|
-
return Result.UpdateCurrentGuildMasterFromGitHubResult.fromDict(response.data);
|
|
2129
|
-
}).catch(function (error) {
|
|
2130
|
-
if (error.response) {
|
|
2131
|
-
throw JSON.parse(error.response.data.message);
|
|
2132
|
-
}
|
|
2133
|
-
else {
|
|
2134
|
-
throw [];
|
|
2135
|
-
}
|
|
1624
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1625
|
+
return Result.UpdateCurrentGuildMasterFromGitHubResult.fromDict(data);
|
|
2136
1626
|
});
|
|
2137
1627
|
};
|
|
2138
1628
|
Gs2GuildRestClient.prototype.describeReceiveRequests = function (request) {
|
|
@@ -2154,13 +1644,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2154
1644
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
2155
1645
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
2156
1646
|
};
|
|
2157
|
-
return
|
|
2158
|
-
|
|
2159
|
-
headers: headers,
|
|
2160
|
-
}).then(function (response) {
|
|
2161
|
-
return Result.DescribeReceiveRequestsResult.fromDict(response.data);
|
|
2162
|
-
}).catch(function (error) {
|
|
2163
|
-
throw JSON.parse(error.response.data.message);
|
|
1647
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1648
|
+
return Result.DescribeReceiveRequestsResult.fromDict(data);
|
|
2164
1649
|
});
|
|
2165
1650
|
};
|
|
2166
1651
|
Gs2GuildRestClient.prototype.describeReceiveRequestsByGuildName = function (request) {
|
|
@@ -2180,13 +1665,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2180
1665
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
2181
1666
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
2182
1667
|
};
|
|
2183
|
-
return
|
|
2184
|
-
|
|
2185
|
-
headers: headers,
|
|
2186
|
-
}).then(function (response) {
|
|
2187
|
-
return Result.DescribeReceiveRequestsByGuildNameResult.fromDict(response.data);
|
|
2188
|
-
}).catch(function (error) {
|
|
2189
|
-
throw JSON.parse(error.response.data.message);
|
|
1668
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1669
|
+
return Result.DescribeReceiveRequestsByGuildNameResult.fromDict(data);
|
|
2190
1670
|
});
|
|
2191
1671
|
};
|
|
2192
1672
|
Gs2GuildRestClient.prototype.getReceiveRequest = function (request) {
|
|
@@ -2207,13 +1687,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2207
1687
|
var params = {
|
|
2208
1688
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
2209
1689
|
};
|
|
2210
|
-
return
|
|
2211
|
-
|
|
2212
|
-
headers: headers,
|
|
2213
|
-
}).then(function (response) {
|
|
2214
|
-
return Result.GetReceiveRequestResult.fromDict(response.data);
|
|
2215
|
-
}).catch(function (error) {
|
|
2216
|
-
throw JSON.parse(error.response.data.message);
|
|
1690
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1691
|
+
return Result.GetReceiveRequestResult.fromDict(data);
|
|
2217
1692
|
});
|
|
2218
1693
|
};
|
|
2219
1694
|
Gs2GuildRestClient.prototype.getReceiveRequestByGuildName = function (request) {
|
|
@@ -2232,13 +1707,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2232
1707
|
var params = {
|
|
2233
1708
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
2234
1709
|
};
|
|
2235
|
-
return
|
|
2236
|
-
|
|
2237
|
-
headers: headers,
|
|
2238
|
-
}).then(function (response) {
|
|
2239
|
-
return Result.GetReceiveRequestByGuildNameResult.fromDict(response.data);
|
|
2240
|
-
}).catch(function (error) {
|
|
2241
|
-
throw JSON.parse(error.response.data.message);
|
|
1710
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1711
|
+
return Result.GetReceiveRequestByGuildNameResult.fromDict(data);
|
|
2242
1712
|
});
|
|
2243
1713
|
};
|
|
2244
1714
|
Gs2GuildRestClient.prototype.acceptRequest = function (request) {
|
|
@@ -2262,17 +1732,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2262
1732
|
var body = {
|
|
2263
1733
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
2264
1734
|
};
|
|
2265
|
-
return
|
|
2266
|
-
|
|
2267
|
-
}).then(function (response) {
|
|
2268
|
-
return Result.AcceptRequestResult.fromDict(response.data);
|
|
2269
|
-
}).catch(function (error) {
|
|
2270
|
-
if (error.response) {
|
|
2271
|
-
throw JSON.parse(error.response.data.message);
|
|
2272
|
-
}
|
|
2273
|
-
else {
|
|
2274
|
-
throw [];
|
|
2275
|
-
}
|
|
1735
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1736
|
+
return Result.AcceptRequestResult.fromDict(data);
|
|
2276
1737
|
});
|
|
2277
1738
|
};
|
|
2278
1739
|
Gs2GuildRestClient.prototype.acceptRequestByGuildName = function (request) {
|
|
@@ -2294,17 +1755,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2294
1755
|
var body = {
|
|
2295
1756
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
2296
1757
|
};
|
|
2297
|
-
return
|
|
2298
|
-
|
|
2299
|
-
}).then(function (response) {
|
|
2300
|
-
return Result.AcceptRequestByGuildNameResult.fromDict(response.data);
|
|
2301
|
-
}).catch(function (error) {
|
|
2302
|
-
if (error.response) {
|
|
2303
|
-
throw JSON.parse(error.response.data.message);
|
|
2304
|
-
}
|
|
2305
|
-
else {
|
|
2306
|
-
throw [];
|
|
2307
|
-
}
|
|
1758
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1759
|
+
return Result.AcceptRequestByGuildNameResult.fromDict(data);
|
|
2308
1760
|
});
|
|
2309
1761
|
};
|
|
2310
1762
|
Gs2GuildRestClient.prototype.rejectRequest = function (request) {
|
|
@@ -2328,13 +1780,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2328
1780
|
var params = {
|
|
2329
1781
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
2330
1782
|
};
|
|
2331
|
-
return
|
|
2332
|
-
|
|
2333
|
-
headers: headers,
|
|
2334
|
-
}).then(function (response) {
|
|
2335
|
-
return Result.RejectRequestResult.fromDict(response.data);
|
|
2336
|
-
}).catch(function (error) {
|
|
2337
|
-
throw JSON.parse(error.response.data.message);
|
|
1783
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1784
|
+
return Result.RejectRequestResult.fromDict(data);
|
|
2338
1785
|
});
|
|
2339
1786
|
};
|
|
2340
1787
|
Gs2GuildRestClient.prototype.rejectRequestByGuildName = function (request) {
|
|
@@ -2356,13 +1803,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2356
1803
|
var params = {
|
|
2357
1804
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
2358
1805
|
};
|
|
2359
|
-
return
|
|
2360
|
-
|
|
2361
|
-
headers: headers,
|
|
2362
|
-
}).then(function (response) {
|
|
2363
|
-
return Result.RejectRequestByGuildNameResult.fromDict(response.data);
|
|
2364
|
-
}).catch(function (error) {
|
|
2365
|
-
throw JSON.parse(error.response.data.message);
|
|
1806
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1807
|
+
return Result.RejectRequestByGuildNameResult.fromDict(data);
|
|
2366
1808
|
});
|
|
2367
1809
|
};
|
|
2368
1810
|
Gs2GuildRestClient.prototype.describeSendRequests = function (request) {
|
|
@@ -2384,13 +1826,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2384
1826
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
2385
1827
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
2386
1828
|
};
|
|
2387
|
-
return
|
|
2388
|
-
|
|
2389
|
-
headers: headers,
|
|
2390
|
-
}).then(function (response) {
|
|
2391
|
-
return Result.DescribeSendRequestsResult.fromDict(response.data);
|
|
2392
|
-
}).catch(function (error) {
|
|
2393
|
-
throw JSON.parse(error.response.data.message);
|
|
1829
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1830
|
+
return Result.DescribeSendRequestsResult.fromDict(data);
|
|
2394
1831
|
});
|
|
2395
1832
|
};
|
|
2396
1833
|
Gs2GuildRestClient.prototype.describeSendRequestsByUserId = function (request) {
|
|
@@ -2413,13 +1850,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2413
1850
|
'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
|
|
2414
1851
|
'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
|
|
2415
1852
|
};
|
|
2416
|
-
return
|
|
2417
|
-
|
|
2418
|
-
headers: headers,
|
|
2419
|
-
}).then(function (response) {
|
|
2420
|
-
return Result.DescribeSendRequestsByUserIdResult.fromDict(response.data);
|
|
2421
|
-
}).catch(function (error) {
|
|
2422
|
-
throw JSON.parse(error.response.data.message);
|
|
1853
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1854
|
+
return Result.DescribeSendRequestsByUserIdResult.fromDict(data);
|
|
2423
1855
|
});
|
|
2424
1856
|
};
|
|
2425
1857
|
Gs2GuildRestClient.prototype.getSendRequest = function (request) {
|
|
@@ -2440,13 +1872,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2440
1872
|
var params = {
|
|
2441
1873
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
2442
1874
|
};
|
|
2443
|
-
return
|
|
2444
|
-
|
|
2445
|
-
headers: headers,
|
|
2446
|
-
}).then(function (response) {
|
|
2447
|
-
return Result.GetSendRequestResult.fromDict(response.data);
|
|
2448
|
-
}).catch(function (error) {
|
|
2449
|
-
throw JSON.parse(error.response.data.message);
|
|
1875
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1876
|
+
return Result.GetSendRequestResult.fromDict(data);
|
|
2450
1877
|
});
|
|
2451
1878
|
};
|
|
2452
1879
|
Gs2GuildRestClient.prototype.getSendRequestByUserId = function (request) {
|
|
@@ -2468,13 +1895,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2468
1895
|
var params = {
|
|
2469
1896
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
2470
1897
|
};
|
|
2471
|
-
return
|
|
2472
|
-
|
|
2473
|
-
headers: headers,
|
|
2474
|
-
}).then(function (response) {
|
|
2475
|
-
return Result.GetSendRequestByUserIdResult.fromDict(response.data);
|
|
2476
|
-
}).catch(function (error) {
|
|
2477
|
-
throw JSON.parse(error.response.data.message);
|
|
1898
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1899
|
+
return Result.GetSendRequestByUserIdResult.fromDict(data);
|
|
2478
1900
|
});
|
|
2479
1901
|
};
|
|
2480
1902
|
Gs2GuildRestClient.prototype.sendRequest = function (request) {
|
|
@@ -2499,17 +1921,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2499
1921
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
2500
1922
|
'metadata': (_l = request.getMetadata()) !== null && _l !== void 0 ? _l : null,
|
|
2501
1923
|
};
|
|
2502
|
-
return
|
|
2503
|
-
|
|
2504
|
-
}).then(function (response) {
|
|
2505
|
-
return Result.SendRequestResult.fromDict(response.data);
|
|
2506
|
-
}).catch(function (error) {
|
|
2507
|
-
if (error.response) {
|
|
2508
|
-
throw JSON.parse(error.response.data.message);
|
|
2509
|
-
}
|
|
2510
|
-
else {
|
|
2511
|
-
throw [];
|
|
2512
|
-
}
|
|
1924
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1925
|
+
return Result.SendRequestResult.fromDict(data);
|
|
2513
1926
|
});
|
|
2514
1927
|
};
|
|
2515
1928
|
Gs2GuildRestClient.prototype.sendRequestByUserId = function (request) {
|
|
@@ -2535,17 +1948,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2535
1948
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2536
1949
|
'metadata': (_o = request.getMetadata()) !== null && _o !== void 0 ? _o : null,
|
|
2537
1950
|
};
|
|
2538
|
-
return
|
|
2539
|
-
|
|
2540
|
-
}).then(function (response) {
|
|
2541
|
-
return Result.SendRequestByUserIdResult.fromDict(response.data);
|
|
2542
|
-
}).catch(function (error) {
|
|
2543
|
-
if (error.response) {
|
|
2544
|
-
throw JSON.parse(error.response.data.message);
|
|
2545
|
-
}
|
|
2546
|
-
else {
|
|
2547
|
-
throw [];
|
|
2548
|
-
}
|
|
1951
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1952
|
+
return Result.SendRequestByUserIdResult.fromDict(data);
|
|
2549
1953
|
});
|
|
2550
1954
|
};
|
|
2551
1955
|
Gs2GuildRestClient.prototype.deleteRequest = function (request) {
|
|
@@ -2569,13 +1973,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2569
1973
|
var params = {
|
|
2570
1974
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
2571
1975
|
};
|
|
2572
|
-
return
|
|
2573
|
-
|
|
2574
|
-
headers: headers,
|
|
2575
|
-
}).then(function (response) {
|
|
2576
|
-
return Result.DeleteRequestResult.fromDict(response.data);
|
|
2577
|
-
}).catch(function (error) {
|
|
2578
|
-
throw JSON.parse(error.response.data.message);
|
|
1976
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1977
|
+
return Result.DeleteRequestResult.fromDict(data);
|
|
2579
1978
|
});
|
|
2580
1979
|
};
|
|
2581
1980
|
Gs2GuildRestClient.prototype.deleteRequestByUserId = function (request) {
|
|
@@ -2600,13 +1999,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2600
1999
|
var params = {
|
|
2601
2000
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2602
2001
|
};
|
|
2603
|
-
return
|
|
2604
|
-
|
|
2605
|
-
headers: headers,
|
|
2606
|
-
}).then(function (response) {
|
|
2607
|
-
return Result.DeleteRequestByUserIdResult.fromDict(response.data);
|
|
2608
|
-
}).catch(function (error) {
|
|
2609
|
-
throw JSON.parse(error.response.data.message);
|
|
2002
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
2003
|
+
return Result.DeleteRequestByUserIdResult.fromDict(data);
|
|
2610
2004
|
});
|
|
2611
2005
|
};
|
|
2612
2006
|
Gs2GuildRestClient.prototype.describeIgnoreUsers = function (request) {
|
|
@@ -2628,13 +2022,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2628
2022
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
2629
2023
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
2630
2024
|
};
|
|
2631
|
-
return
|
|
2632
|
-
|
|
2633
|
-
headers: headers,
|
|
2634
|
-
}).then(function (response) {
|
|
2635
|
-
return Result.DescribeIgnoreUsersResult.fromDict(response.data);
|
|
2636
|
-
}).catch(function (error) {
|
|
2637
|
-
throw JSON.parse(error.response.data.message);
|
|
2025
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2026
|
+
return Result.DescribeIgnoreUsersResult.fromDict(data);
|
|
2638
2027
|
});
|
|
2639
2028
|
};
|
|
2640
2029
|
Gs2GuildRestClient.prototype.describeIgnoreUsersByGuildName = function (request) {
|
|
@@ -2654,13 +2043,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2654
2043
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
2655
2044
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
2656
2045
|
};
|
|
2657
|
-
return
|
|
2658
|
-
|
|
2659
|
-
headers: headers,
|
|
2660
|
-
}).then(function (response) {
|
|
2661
|
-
return Result.DescribeIgnoreUsersByGuildNameResult.fromDict(response.data);
|
|
2662
|
-
}).catch(function (error) {
|
|
2663
|
-
throw JSON.parse(error.response.data.message);
|
|
2046
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2047
|
+
return Result.DescribeIgnoreUsersByGuildNameResult.fromDict(data);
|
|
2664
2048
|
});
|
|
2665
2049
|
};
|
|
2666
2050
|
Gs2GuildRestClient.prototype.getIgnoreUser = function (request) {
|
|
@@ -2681,13 +2065,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2681
2065
|
var params = {
|
|
2682
2066
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
2683
2067
|
};
|
|
2684
|
-
return
|
|
2685
|
-
|
|
2686
|
-
headers: headers,
|
|
2687
|
-
}).then(function (response) {
|
|
2688
|
-
return Result.GetIgnoreUserResult.fromDict(response.data);
|
|
2689
|
-
}).catch(function (error) {
|
|
2690
|
-
throw JSON.parse(error.response.data.message);
|
|
2068
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2069
|
+
return Result.GetIgnoreUserResult.fromDict(data);
|
|
2691
2070
|
});
|
|
2692
2071
|
};
|
|
2693
2072
|
Gs2GuildRestClient.prototype.getIgnoreUserByGuildName = function (request) {
|
|
@@ -2709,13 +2088,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2709
2088
|
var params = {
|
|
2710
2089
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
2711
2090
|
};
|
|
2712
|
-
return
|
|
2713
|
-
|
|
2714
|
-
headers: headers,
|
|
2715
|
-
}).then(function (response) {
|
|
2716
|
-
return Result.GetIgnoreUserByGuildNameResult.fromDict(response.data);
|
|
2717
|
-
}).catch(function (error) {
|
|
2718
|
-
throw JSON.parse(error.response.data.message);
|
|
2091
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
2092
|
+
return Result.GetIgnoreUserByGuildNameResult.fromDict(data);
|
|
2719
2093
|
});
|
|
2720
2094
|
};
|
|
2721
2095
|
Gs2GuildRestClient.prototype.addIgnoreUser = function (request) {
|
|
@@ -2739,17 +2113,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2739
2113
|
var body = {
|
|
2740
2114
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
2741
2115
|
};
|
|
2742
|
-
return
|
|
2743
|
-
|
|
2744
|
-
}).then(function (response) {
|
|
2745
|
-
return Result.AddIgnoreUserResult.fromDict(response.data);
|
|
2746
|
-
}).catch(function (error) {
|
|
2747
|
-
if (error.response) {
|
|
2748
|
-
throw JSON.parse(error.response.data.message);
|
|
2749
|
-
}
|
|
2750
|
-
else {
|
|
2751
|
-
throw [];
|
|
2752
|
-
}
|
|
2116
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
2117
|
+
return Result.AddIgnoreUserResult.fromDict(data);
|
|
2753
2118
|
});
|
|
2754
2119
|
};
|
|
2755
2120
|
Gs2GuildRestClient.prototype.addIgnoreUserByGuildName = function (request) {
|
|
@@ -2774,17 +2139,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2774
2139
|
var body = {
|
|
2775
2140
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2776
2141
|
};
|
|
2777
|
-
return
|
|
2778
|
-
|
|
2779
|
-
}).then(function (response) {
|
|
2780
|
-
return Result.AddIgnoreUserByGuildNameResult.fromDict(response.data);
|
|
2781
|
-
}).catch(function (error) {
|
|
2782
|
-
if (error.response) {
|
|
2783
|
-
throw JSON.parse(error.response.data.message);
|
|
2784
|
-
}
|
|
2785
|
-
else {
|
|
2786
|
-
throw [];
|
|
2787
|
-
}
|
|
2142
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
2143
|
+
return Result.AddIgnoreUserByGuildNameResult.fromDict(data);
|
|
2788
2144
|
});
|
|
2789
2145
|
};
|
|
2790
2146
|
Gs2GuildRestClient.prototype.deleteIgnoreUser = function (request) {
|
|
@@ -2808,13 +2164,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2808
2164
|
var params = {
|
|
2809
2165
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
2810
2166
|
};
|
|
2811
|
-
return
|
|
2812
|
-
|
|
2813
|
-
headers: headers,
|
|
2814
|
-
}).then(function (response) {
|
|
2815
|
-
return Result.DeleteIgnoreUserResult.fromDict(response.data);
|
|
2816
|
-
}).catch(function (error) {
|
|
2817
|
-
throw JSON.parse(error.response.data.message);
|
|
2167
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
2168
|
+
return Result.DeleteIgnoreUserResult.fromDict(data);
|
|
2818
2169
|
});
|
|
2819
2170
|
};
|
|
2820
2171
|
Gs2GuildRestClient.prototype.deleteIgnoreUserByGuildName = function (request) {
|
|
@@ -2839,13 +2190,8 @@ var Gs2GuildRestClient = /** @class */ (function (_super) {
|
|
|
2839
2190
|
var params = {
|
|
2840
2191
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
2841
2192
|
};
|
|
2842
|
-
return
|
|
2843
|
-
|
|
2844
|
-
headers: headers,
|
|
2845
|
-
}).then(function (response) {
|
|
2846
|
-
return Result.DeleteIgnoreUserByGuildNameResult.fromDict(response.data);
|
|
2847
|
-
}).catch(function (error) {
|
|
2848
|
-
throw JSON.parse(error.response.data.message);
|
|
2193
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
2194
|
+
return Result.DeleteIgnoreUserByGuildNameResult.fromDict(data);
|
|
2849
2195
|
});
|
|
2850
2196
|
};
|
|
2851
2197
|
Gs2GuildRestClient.ENDPOINT_HOST = null;
|