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/friend/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 Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
24
23
|
tslib_1.__extends(Gs2FriendRestClient, _super);
|
|
25
24
|
function Gs2FriendRestClient(session) {
|
|
@@ -40,13 +39,8 @@ var Gs2FriendRestClient = /** @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
|
Gs2FriendRestClient.prototype.createNamespace = function (request) {
|
|
@@ -79,17 +73,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
79
73
|
'deleteFriendNotification': (_9 = (_8 = request.getDeleteFriendNotification()) === null || _8 === void 0 ? void 0 : _8.toDict()) !== null && _9 !== void 0 ? _9 : null,
|
|
80
74
|
'logSetting': (_11 = (_10 = request.getLogSetting()) === null || _10 === void 0 ? void 0 : _10.toDict()) !== null && _11 !== void 0 ? _11 : 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
|
Gs2FriendRestClient.prototype.getNamespaceStatus = function (request) {
|
|
@@ -105,13 +90,8 @@ var Gs2FriendRestClient = /** @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
|
Gs2FriendRestClient.prototype.getNamespace = function (request) {
|
|
@@ -127,13 +107,8 @@ var Gs2FriendRestClient = /** @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
|
Gs2FriendRestClient.prototype.updateNamespace = function (request) {
|
|
@@ -166,17 +141,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
166
141
|
'deleteFriendNotification': (_10 = (_9 = request.getDeleteFriendNotification()) === null || _9 === void 0 ? void 0 : _9.toDict()) !== null && _10 !== void 0 ? _10 : null,
|
|
167
142
|
'logSetting': (_12 = (_11 = request.getLogSetting()) === null || _11 === void 0 ? void 0 : _11.toDict()) !== null && _12 !== void 0 ? _12 : 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
|
Gs2FriendRestClient.prototype.deleteNamespace = function (request) {
|
|
@@ -192,13 +158,8 @@ var Gs2FriendRestClient = /** @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
|
Gs2FriendRestClient.prototype.getServiceVersion = function (request) {
|
|
@@ -213,13 +174,8 @@ var Gs2FriendRestClient = /** @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
|
Gs2FriendRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
@@ -238,17 +194,8 @@ var Gs2FriendRestClient = /** @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
|
Gs2FriendRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
@@ -267,13 +214,8 @@ var Gs2FriendRestClient = /** @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
|
Gs2FriendRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
@@ -292,17 +234,8 @@ var Gs2FriendRestClient = /** @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
|
Gs2FriendRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
@@ -321,13 +254,8 @@ var Gs2FriendRestClient = /** @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
|
Gs2FriendRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
@@ -346,17 +274,8 @@ var Gs2FriendRestClient = /** @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
|
Gs2FriendRestClient.prototype.importUserDataByUserId = function (request) {
|
|
@@ -376,17 +295,8 @@ var Gs2FriendRestClient = /** @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
|
Gs2FriendRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
@@ -406,13 +316,8 @@ var Gs2FriendRestClient = /** @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
|
Gs2FriendRestClient.prototype.getProfile = function (request) {
|
|
@@ -431,13 +336,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
431
336
|
var params = {
|
|
432
337
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
433
338
|
};
|
|
434
|
-
return
|
|
435
|
-
|
|
436
|
-
headers: headers,
|
|
437
|
-
}).then(function (response) {
|
|
438
|
-
return Result.GetProfileResult.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.GetProfileResult.fromDict(data);
|
|
441
341
|
});
|
|
442
342
|
};
|
|
443
343
|
Gs2FriendRestClient.prototype.getProfileByUserId = function (request) {
|
|
@@ -457,13 +357,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
457
357
|
var params = {
|
|
458
358
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
459
359
|
};
|
|
460
|
-
return
|
|
461
|
-
|
|
462
|
-
headers: headers,
|
|
463
|
-
}).then(function (response) {
|
|
464
|
-
return Result.GetProfileByUserIdResult.fromDict(response.data);
|
|
465
|
-
}).catch(function (error) {
|
|
466
|
-
throw JSON.parse(error.response.data.message);
|
|
360
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
361
|
+
return Result.GetProfileByUserIdResult.fromDict(data);
|
|
467
362
|
});
|
|
468
363
|
};
|
|
469
364
|
Gs2FriendRestClient.prototype.updateProfile = function (request) {
|
|
@@ -488,17 +383,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
488
383
|
'followerProfile': (_h = request.getFollowerProfile()) !== null && _h !== void 0 ? _h : null,
|
|
489
384
|
'friendProfile': (_j = request.getFriendProfile()) !== null && _j !== void 0 ? _j : null,
|
|
490
385
|
};
|
|
491
|
-
return
|
|
492
|
-
|
|
493
|
-
}).then(function (response) {
|
|
494
|
-
return Result.UpdateProfileResult.fromDict(response.data);
|
|
495
|
-
}).catch(function (error) {
|
|
496
|
-
if (error.response) {
|
|
497
|
-
throw JSON.parse(error.response.data.message);
|
|
498
|
-
}
|
|
499
|
-
else {
|
|
500
|
-
throw [];
|
|
501
|
-
}
|
|
386
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
387
|
+
return Result.UpdateProfileResult.fromDict(data);
|
|
502
388
|
});
|
|
503
389
|
};
|
|
504
390
|
Gs2FriendRestClient.prototype.updateProfileByUserId = function (request) {
|
|
@@ -524,17 +410,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
524
410
|
'followerProfile': (_k = request.getFollowerProfile()) !== null && _k !== void 0 ? _k : null,
|
|
525
411
|
'friendProfile': (_l = request.getFriendProfile()) !== null && _l !== void 0 ? _l : null,
|
|
526
412
|
};
|
|
527
|
-
return
|
|
528
|
-
|
|
529
|
-
}).then(function (response) {
|
|
530
|
-
return Result.UpdateProfileByUserIdResult.fromDict(response.data);
|
|
531
|
-
}).catch(function (error) {
|
|
532
|
-
if (error.response) {
|
|
533
|
-
throw JSON.parse(error.response.data.message);
|
|
534
|
-
}
|
|
535
|
-
else {
|
|
536
|
-
throw [];
|
|
537
|
-
}
|
|
413
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
414
|
+
return Result.UpdateProfileByUserIdResult.fromDict(data);
|
|
538
415
|
});
|
|
539
416
|
};
|
|
540
417
|
Gs2FriendRestClient.prototype.deleteProfileByUserId = function (request) {
|
|
@@ -557,13 +434,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
557
434
|
var params = {
|
|
558
435
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
559
436
|
};
|
|
560
|
-
return
|
|
561
|
-
|
|
562
|
-
headers: headers,
|
|
563
|
-
}).then(function (response) {
|
|
564
|
-
return Result.DeleteProfileByUserIdResult.fromDict(response.data);
|
|
565
|
-
}).catch(function (error) {
|
|
566
|
-
throw JSON.parse(error.response.data.message);
|
|
437
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
438
|
+
return Result.DeleteProfileByUserIdResult.fromDict(data);
|
|
567
439
|
});
|
|
568
440
|
};
|
|
569
441
|
Gs2FriendRestClient.prototype.updateProfileByStampSheet = function (request) {
|
|
@@ -580,17 +452,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
580
452
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
581
453
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
582
454
|
};
|
|
583
|
-
return
|
|
584
|
-
|
|
585
|
-
}).then(function (response) {
|
|
586
|
-
return Result.UpdateProfileByStampSheetResult.fromDict(response.data);
|
|
587
|
-
}).catch(function (error) {
|
|
588
|
-
if (error.response) {
|
|
589
|
-
throw JSON.parse(error.response.data.message);
|
|
590
|
-
}
|
|
591
|
-
else {
|
|
592
|
-
throw [];
|
|
593
|
-
}
|
|
455
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
456
|
+
return Result.UpdateProfileByStampSheetResult.fromDict(data);
|
|
594
457
|
});
|
|
595
458
|
};
|
|
596
459
|
Gs2FriendRestClient.prototype.describeFriends = function (request) {
|
|
@@ -612,13 +475,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
612
475
|
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
613
476
|
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
614
477
|
};
|
|
615
|
-
return
|
|
616
|
-
|
|
617
|
-
headers: headers,
|
|
618
|
-
}).then(function (response) {
|
|
619
|
-
return Result.DescribeFriendsResult.fromDict(response.data);
|
|
620
|
-
}).catch(function (error) {
|
|
621
|
-
throw JSON.parse(error.response.data.message);
|
|
478
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
479
|
+
return Result.DescribeFriendsResult.fromDict(data);
|
|
622
480
|
});
|
|
623
481
|
};
|
|
624
482
|
Gs2FriendRestClient.prototype.describeFriendsByUserId = function (request) {
|
|
@@ -641,13 +499,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
641
499
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
642
500
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
643
501
|
};
|
|
644
|
-
return
|
|
645
|
-
|
|
646
|
-
headers: headers,
|
|
647
|
-
}).then(function (response) {
|
|
648
|
-
return Result.DescribeFriendsByUserIdResult.fromDict(response.data);
|
|
649
|
-
}).catch(function (error) {
|
|
650
|
-
throw JSON.parse(error.response.data.message);
|
|
502
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
503
|
+
return Result.DescribeFriendsByUserIdResult.fromDict(data);
|
|
651
504
|
});
|
|
652
505
|
};
|
|
653
506
|
Gs2FriendRestClient.prototype.describeBlackList = function (request) {
|
|
@@ -668,13 +521,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
668
521
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
669
522
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
670
523
|
};
|
|
671
|
-
return
|
|
672
|
-
|
|
673
|
-
headers: headers,
|
|
674
|
-
}).then(function (response) {
|
|
675
|
-
return Result.DescribeBlackListResult.fromDict(response.data);
|
|
676
|
-
}).catch(function (error) {
|
|
677
|
-
throw JSON.parse(error.response.data.message);
|
|
524
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
525
|
+
return Result.DescribeBlackListResult.fromDict(data);
|
|
678
526
|
});
|
|
679
527
|
};
|
|
680
528
|
Gs2FriendRestClient.prototype.describeBlackListByUserId = function (request) {
|
|
@@ -696,13 +544,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
696
544
|
'pageToken': String((_h = request.getPageToken()) !== null && _h !== void 0 ? _h : null),
|
|
697
545
|
'limit': String((_j = request.getLimit()) !== null && _j !== void 0 ? _j : null),
|
|
698
546
|
};
|
|
699
|
-
return
|
|
700
|
-
|
|
701
|
-
headers: headers,
|
|
702
|
-
}).then(function (response) {
|
|
703
|
-
return Result.DescribeBlackListByUserIdResult.fromDict(response.data);
|
|
704
|
-
}).catch(function (error) {
|
|
705
|
-
throw JSON.parse(error.response.data.message);
|
|
547
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
548
|
+
return Result.DescribeBlackListByUserIdResult.fromDict(data);
|
|
706
549
|
});
|
|
707
550
|
};
|
|
708
551
|
Gs2FriendRestClient.prototype.registerBlackList = function (request) {
|
|
@@ -725,17 +568,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
725
568
|
var body = {
|
|
726
569
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
727
570
|
};
|
|
728
|
-
return
|
|
729
|
-
|
|
730
|
-
}).then(function (response) {
|
|
731
|
-
return Result.RegisterBlackListResult.fromDict(response.data);
|
|
732
|
-
}).catch(function (error) {
|
|
733
|
-
if (error.response) {
|
|
734
|
-
throw JSON.parse(error.response.data.message);
|
|
735
|
-
}
|
|
736
|
-
else {
|
|
737
|
-
throw [];
|
|
738
|
-
}
|
|
571
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
572
|
+
return Result.RegisterBlackListResult.fromDict(data);
|
|
739
573
|
});
|
|
740
574
|
};
|
|
741
575
|
Gs2FriendRestClient.prototype.registerBlackListByUserId = function (request) {
|
|
@@ -759,17 +593,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
759
593
|
var body = {
|
|
760
594
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
761
595
|
};
|
|
762
|
-
return
|
|
763
|
-
|
|
764
|
-
}).then(function (response) {
|
|
765
|
-
return Result.RegisterBlackListByUserIdResult.fromDict(response.data);
|
|
766
|
-
}).catch(function (error) {
|
|
767
|
-
if (error.response) {
|
|
768
|
-
throw JSON.parse(error.response.data.message);
|
|
769
|
-
}
|
|
770
|
-
else {
|
|
771
|
-
throw [];
|
|
772
|
-
}
|
|
596
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
597
|
+
return Result.RegisterBlackListByUserIdResult.fromDict(data);
|
|
773
598
|
});
|
|
774
599
|
};
|
|
775
600
|
Gs2FriendRestClient.prototype.unregisterBlackList = function (request) {
|
|
@@ -792,13 +617,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
792
617
|
var params = {
|
|
793
618
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
794
619
|
};
|
|
795
|
-
return
|
|
796
|
-
|
|
797
|
-
headers: headers,
|
|
798
|
-
}).then(function (response) {
|
|
799
|
-
return Result.UnregisterBlackListResult.fromDict(response.data);
|
|
800
|
-
}).catch(function (error) {
|
|
801
|
-
throw JSON.parse(error.response.data.message);
|
|
620
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
621
|
+
return Result.UnregisterBlackListResult.fromDict(data);
|
|
802
622
|
});
|
|
803
623
|
};
|
|
804
624
|
Gs2FriendRestClient.prototype.unregisterBlackListByUserId = function (request) {
|
|
@@ -822,13 +642,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
822
642
|
var params = {
|
|
823
643
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
824
644
|
};
|
|
825
|
-
return
|
|
826
|
-
|
|
827
|
-
headers: headers,
|
|
828
|
-
}).then(function (response) {
|
|
829
|
-
return Result.UnregisterBlackListByUserIdResult.fromDict(response.data);
|
|
830
|
-
}).catch(function (error) {
|
|
831
|
-
throw JSON.parse(error.response.data.message);
|
|
645
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
646
|
+
return Result.UnregisterBlackListByUserIdResult.fromDict(data);
|
|
832
647
|
});
|
|
833
648
|
};
|
|
834
649
|
Gs2FriendRestClient.prototype.describeFollows = function (request) {
|
|
@@ -850,13 +665,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
850
665
|
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
851
666
|
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
852
667
|
};
|
|
853
|
-
return
|
|
854
|
-
|
|
855
|
-
headers: headers,
|
|
856
|
-
}).then(function (response) {
|
|
857
|
-
return Result.DescribeFollowsResult.fromDict(response.data);
|
|
858
|
-
}).catch(function (error) {
|
|
859
|
-
throw JSON.parse(error.response.data.message);
|
|
668
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
669
|
+
return Result.DescribeFollowsResult.fromDict(data);
|
|
860
670
|
});
|
|
861
671
|
};
|
|
862
672
|
Gs2FriendRestClient.prototype.describeFollowsByUserId = function (request) {
|
|
@@ -879,13 +689,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
879
689
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
880
690
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
881
691
|
};
|
|
882
|
-
return
|
|
883
|
-
|
|
884
|
-
headers: headers,
|
|
885
|
-
}).then(function (response) {
|
|
886
|
-
return Result.DescribeFollowsByUserIdResult.fromDict(response.data);
|
|
887
|
-
}).catch(function (error) {
|
|
888
|
-
throw JSON.parse(error.response.data.message);
|
|
692
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
693
|
+
return Result.DescribeFollowsByUserIdResult.fromDict(data);
|
|
889
694
|
});
|
|
890
695
|
};
|
|
891
696
|
Gs2FriendRestClient.prototype.getFollow = function (request) {
|
|
@@ -906,13 +711,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
906
711
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
907
712
|
'withProfile': String((_h = request.getWithProfile()) !== null && _h !== void 0 ? _h : null),
|
|
908
713
|
};
|
|
909
|
-
return
|
|
910
|
-
|
|
911
|
-
headers: headers,
|
|
912
|
-
}).then(function (response) {
|
|
913
|
-
return Result.GetFollowResult.fromDict(response.data);
|
|
914
|
-
}).catch(function (error) {
|
|
915
|
-
throw JSON.parse(error.response.data.message);
|
|
714
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
715
|
+
return Result.GetFollowResult.fromDict(data);
|
|
916
716
|
});
|
|
917
717
|
};
|
|
918
718
|
Gs2FriendRestClient.prototype.getFollowByUserId = function (request) {
|
|
@@ -934,13 +734,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
934
734
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
935
735
|
'withProfile': String((_k = request.getWithProfile()) !== null && _k !== void 0 ? _k : null),
|
|
936
736
|
};
|
|
937
|
-
return
|
|
938
|
-
|
|
939
|
-
headers: headers,
|
|
940
|
-
}).then(function (response) {
|
|
941
|
-
return Result.GetFollowByUserIdResult.fromDict(response.data);
|
|
942
|
-
}).catch(function (error) {
|
|
943
|
-
throw JSON.parse(error.response.data.message);
|
|
737
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
738
|
+
return Result.GetFollowByUserIdResult.fromDict(data);
|
|
944
739
|
});
|
|
945
740
|
};
|
|
946
741
|
Gs2FriendRestClient.prototype.follow = function (request) {
|
|
@@ -963,17 +758,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
963
758
|
var body = {
|
|
964
759
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
965
760
|
};
|
|
966
|
-
return
|
|
967
|
-
|
|
968
|
-
}).then(function (response) {
|
|
969
|
-
return Result.FollowResult.fromDict(response.data);
|
|
970
|
-
}).catch(function (error) {
|
|
971
|
-
if (error.response) {
|
|
972
|
-
throw JSON.parse(error.response.data.message);
|
|
973
|
-
}
|
|
974
|
-
else {
|
|
975
|
-
throw [];
|
|
976
|
-
}
|
|
761
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
762
|
+
return Result.FollowResult.fromDict(data);
|
|
977
763
|
});
|
|
978
764
|
};
|
|
979
765
|
Gs2FriendRestClient.prototype.followByUserId = function (request) {
|
|
@@ -997,17 +783,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
997
783
|
var body = {
|
|
998
784
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
999
785
|
};
|
|
1000
|
-
return
|
|
1001
|
-
|
|
1002
|
-
}).then(function (response) {
|
|
1003
|
-
return Result.FollowByUserIdResult.fromDict(response.data);
|
|
1004
|
-
}).catch(function (error) {
|
|
1005
|
-
if (error.response) {
|
|
1006
|
-
throw JSON.parse(error.response.data.message);
|
|
1007
|
-
}
|
|
1008
|
-
else {
|
|
1009
|
-
throw [];
|
|
1010
|
-
}
|
|
786
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
787
|
+
return Result.FollowByUserIdResult.fromDict(data);
|
|
1011
788
|
});
|
|
1012
789
|
};
|
|
1013
790
|
Gs2FriendRestClient.prototype.unfollow = function (request) {
|
|
@@ -1030,13 +807,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1030
807
|
var params = {
|
|
1031
808
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1032
809
|
};
|
|
1033
|
-
return
|
|
1034
|
-
|
|
1035
|
-
headers: headers,
|
|
1036
|
-
}).then(function (response) {
|
|
1037
|
-
return Result.UnfollowResult.fromDict(response.data);
|
|
1038
|
-
}).catch(function (error) {
|
|
1039
|
-
throw JSON.parse(error.response.data.message);
|
|
810
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
811
|
+
return Result.UnfollowResult.fromDict(data);
|
|
1040
812
|
});
|
|
1041
813
|
};
|
|
1042
814
|
Gs2FriendRestClient.prototype.unfollowByUserId = function (request) {
|
|
@@ -1060,13 +832,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1060
832
|
var params = {
|
|
1061
833
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1062
834
|
};
|
|
1063
|
-
return
|
|
1064
|
-
|
|
1065
|
-
headers: headers,
|
|
1066
|
-
}).then(function (response) {
|
|
1067
|
-
return Result.UnfollowByUserIdResult.fromDict(response.data);
|
|
1068
|
-
}).catch(function (error) {
|
|
1069
|
-
throw JSON.parse(error.response.data.message);
|
|
835
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
836
|
+
return Result.UnfollowByUserIdResult.fromDict(data);
|
|
1070
837
|
});
|
|
1071
838
|
};
|
|
1072
839
|
Gs2FriendRestClient.prototype.getFriend = function (request) {
|
|
@@ -1087,13 +854,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1087
854
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1088
855
|
'withProfile': String((_h = request.getWithProfile()) !== null && _h !== void 0 ? _h : null),
|
|
1089
856
|
};
|
|
1090
|
-
return
|
|
1091
|
-
|
|
1092
|
-
headers: headers,
|
|
1093
|
-
}).then(function (response) {
|
|
1094
|
-
return Result.GetFriendResult.fromDict(response.data);
|
|
1095
|
-
}).catch(function (error) {
|
|
1096
|
-
throw JSON.parse(error.response.data.message);
|
|
857
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
858
|
+
return Result.GetFriendResult.fromDict(data);
|
|
1097
859
|
});
|
|
1098
860
|
};
|
|
1099
861
|
Gs2FriendRestClient.prototype.getFriendByUserId = function (request) {
|
|
@@ -1115,13 +877,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1115
877
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1116
878
|
'withProfile': String((_k = request.getWithProfile()) !== null && _k !== void 0 ? _k : null),
|
|
1117
879
|
};
|
|
1118
|
-
return
|
|
1119
|
-
|
|
1120
|
-
headers: headers,
|
|
1121
|
-
}).then(function (response) {
|
|
1122
|
-
return Result.GetFriendByUserIdResult.fromDict(response.data);
|
|
1123
|
-
}).catch(function (error) {
|
|
1124
|
-
throw JSON.parse(error.response.data.message);
|
|
880
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
881
|
+
return Result.GetFriendByUserIdResult.fromDict(data);
|
|
1125
882
|
});
|
|
1126
883
|
};
|
|
1127
884
|
Gs2FriendRestClient.prototype.addFriend = function (request) {
|
|
@@ -1144,17 +901,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1144
901
|
var body = {
|
|
1145
902
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1146
903
|
};
|
|
1147
|
-
return
|
|
1148
|
-
|
|
1149
|
-
}).then(function (response) {
|
|
1150
|
-
return Result.AddFriendResult.fromDict(response.data);
|
|
1151
|
-
}).catch(function (error) {
|
|
1152
|
-
if (error.response) {
|
|
1153
|
-
throw JSON.parse(error.response.data.message);
|
|
1154
|
-
}
|
|
1155
|
-
else {
|
|
1156
|
-
throw [];
|
|
1157
|
-
}
|
|
904
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
905
|
+
return Result.AddFriendResult.fromDict(data);
|
|
1158
906
|
});
|
|
1159
907
|
};
|
|
1160
908
|
Gs2FriendRestClient.prototype.addFriendByUserId = function (request) {
|
|
@@ -1178,17 +926,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1178
926
|
var body = {
|
|
1179
927
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1180
928
|
};
|
|
1181
|
-
return
|
|
1182
|
-
|
|
1183
|
-
}).then(function (response) {
|
|
1184
|
-
return Result.AddFriendByUserIdResult.fromDict(response.data);
|
|
1185
|
-
}).catch(function (error) {
|
|
1186
|
-
if (error.response) {
|
|
1187
|
-
throw JSON.parse(error.response.data.message);
|
|
1188
|
-
}
|
|
1189
|
-
else {
|
|
1190
|
-
throw [];
|
|
1191
|
-
}
|
|
929
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
930
|
+
return Result.AddFriendByUserIdResult.fromDict(data);
|
|
1192
931
|
});
|
|
1193
932
|
};
|
|
1194
933
|
Gs2FriendRestClient.prototype.deleteFriend = function (request) {
|
|
@@ -1211,13 +950,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1211
950
|
var params = {
|
|
1212
951
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1213
952
|
};
|
|
1214
|
-
return
|
|
1215
|
-
|
|
1216
|
-
headers: headers,
|
|
1217
|
-
}).then(function (response) {
|
|
1218
|
-
return Result.DeleteFriendResult.fromDict(response.data);
|
|
1219
|
-
}).catch(function (error) {
|
|
1220
|
-
throw JSON.parse(error.response.data.message);
|
|
953
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
954
|
+
return Result.DeleteFriendResult.fromDict(data);
|
|
1221
955
|
});
|
|
1222
956
|
};
|
|
1223
957
|
Gs2FriendRestClient.prototype.deleteFriendByUserId = function (request) {
|
|
@@ -1241,13 +975,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1241
975
|
var params = {
|
|
1242
976
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1243
977
|
};
|
|
1244
|
-
return
|
|
1245
|
-
|
|
1246
|
-
headers: headers,
|
|
1247
|
-
}).then(function (response) {
|
|
1248
|
-
return Result.DeleteFriendByUserIdResult.fromDict(response.data);
|
|
1249
|
-
}).catch(function (error) {
|
|
1250
|
-
throw JSON.parse(error.response.data.message);
|
|
978
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
979
|
+
return Result.DeleteFriendByUserIdResult.fromDict(data);
|
|
1251
980
|
});
|
|
1252
981
|
};
|
|
1253
982
|
Gs2FriendRestClient.prototype.describeSendRequests = function (request) {
|
|
@@ -1269,13 +998,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1269
998
|
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
1270
999
|
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
1271
1000
|
};
|
|
1272
|
-
return
|
|
1273
|
-
|
|
1274
|
-
headers: headers,
|
|
1275
|
-
}).then(function (response) {
|
|
1276
|
-
return Result.DescribeSendRequestsResult.fromDict(response.data);
|
|
1277
|
-
}).catch(function (error) {
|
|
1278
|
-
throw JSON.parse(error.response.data.message);
|
|
1001
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1002
|
+
return Result.DescribeSendRequestsResult.fromDict(data);
|
|
1279
1003
|
});
|
|
1280
1004
|
};
|
|
1281
1005
|
Gs2FriendRestClient.prototype.describeSendRequestsByUserId = function (request) {
|
|
@@ -1298,13 +1022,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1298
1022
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
1299
1023
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
1300
1024
|
};
|
|
1301
|
-
return
|
|
1302
|
-
|
|
1303
|
-
headers: headers,
|
|
1304
|
-
}).then(function (response) {
|
|
1305
|
-
return Result.DescribeSendRequestsByUserIdResult.fromDict(response.data);
|
|
1306
|
-
}).catch(function (error) {
|
|
1307
|
-
throw JSON.parse(error.response.data.message);
|
|
1025
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1026
|
+
return Result.DescribeSendRequestsByUserIdResult.fromDict(data);
|
|
1308
1027
|
});
|
|
1309
1028
|
};
|
|
1310
1029
|
Gs2FriendRestClient.prototype.getSendRequest = function (request) {
|
|
@@ -1325,13 +1044,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1325
1044
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1326
1045
|
'withProfile': String((_h = request.getWithProfile()) !== null && _h !== void 0 ? _h : null),
|
|
1327
1046
|
};
|
|
1328
|
-
return
|
|
1329
|
-
|
|
1330
|
-
headers: headers,
|
|
1331
|
-
}).then(function (response) {
|
|
1332
|
-
return Result.GetSendRequestResult.fromDict(response.data);
|
|
1333
|
-
}).catch(function (error) {
|
|
1334
|
-
throw JSON.parse(error.response.data.message);
|
|
1047
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1048
|
+
return Result.GetSendRequestResult.fromDict(data);
|
|
1335
1049
|
});
|
|
1336
1050
|
};
|
|
1337
1051
|
Gs2FriendRestClient.prototype.getSendRequestByUserId = function (request) {
|
|
@@ -1353,13 +1067,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1353
1067
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1354
1068
|
'withProfile': String((_k = request.getWithProfile()) !== null && _k !== void 0 ? _k : null),
|
|
1355
1069
|
};
|
|
1356
|
-
return
|
|
1357
|
-
|
|
1358
|
-
headers: headers,
|
|
1359
|
-
}).then(function (response) {
|
|
1360
|
-
return Result.GetSendRequestByUserIdResult.fromDict(response.data);
|
|
1361
|
-
}).catch(function (error) {
|
|
1362
|
-
throw JSON.parse(error.response.data.message);
|
|
1070
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1071
|
+
return Result.GetSendRequestByUserIdResult.fromDict(data);
|
|
1363
1072
|
});
|
|
1364
1073
|
};
|
|
1365
1074
|
Gs2FriendRestClient.prototype.sendRequest = function (request) {
|
|
@@ -1382,17 +1091,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1382
1091
|
var body = {
|
|
1383
1092
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1384
1093
|
};
|
|
1385
|
-
return
|
|
1386
|
-
|
|
1387
|
-
}).then(function (response) {
|
|
1388
|
-
return Result.SendRequestResult.fromDict(response.data);
|
|
1389
|
-
}).catch(function (error) {
|
|
1390
|
-
if (error.response) {
|
|
1391
|
-
throw JSON.parse(error.response.data.message);
|
|
1392
|
-
}
|
|
1393
|
-
else {
|
|
1394
|
-
throw [];
|
|
1395
|
-
}
|
|
1094
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1095
|
+
return Result.SendRequestResult.fromDict(data);
|
|
1396
1096
|
});
|
|
1397
1097
|
};
|
|
1398
1098
|
Gs2FriendRestClient.prototype.sendRequestByUserId = function (request) {
|
|
@@ -1416,17 +1116,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1416
1116
|
var body = {
|
|
1417
1117
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1418
1118
|
};
|
|
1419
|
-
return
|
|
1420
|
-
|
|
1421
|
-
}).then(function (response) {
|
|
1422
|
-
return Result.SendRequestByUserIdResult.fromDict(response.data);
|
|
1423
|
-
}).catch(function (error) {
|
|
1424
|
-
if (error.response) {
|
|
1425
|
-
throw JSON.parse(error.response.data.message);
|
|
1426
|
-
}
|
|
1427
|
-
else {
|
|
1428
|
-
throw [];
|
|
1429
|
-
}
|
|
1119
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1120
|
+
return Result.SendRequestByUserIdResult.fromDict(data);
|
|
1430
1121
|
});
|
|
1431
1122
|
};
|
|
1432
1123
|
Gs2FriendRestClient.prototype.deleteRequest = function (request) {
|
|
@@ -1449,13 +1140,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1449
1140
|
var params = {
|
|
1450
1141
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1451
1142
|
};
|
|
1452
|
-
return
|
|
1453
|
-
|
|
1454
|
-
headers: headers,
|
|
1455
|
-
}).then(function (response) {
|
|
1456
|
-
return Result.DeleteRequestResult.fromDict(response.data);
|
|
1457
|
-
}).catch(function (error) {
|
|
1458
|
-
throw JSON.parse(error.response.data.message);
|
|
1143
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1144
|
+
return Result.DeleteRequestResult.fromDict(data);
|
|
1459
1145
|
});
|
|
1460
1146
|
};
|
|
1461
1147
|
Gs2FriendRestClient.prototype.deleteRequestByUserId = function (request) {
|
|
@@ -1479,13 +1165,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1479
1165
|
var params = {
|
|
1480
1166
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1481
1167
|
};
|
|
1482
|
-
return
|
|
1483
|
-
|
|
1484
|
-
headers: headers,
|
|
1485
|
-
}).then(function (response) {
|
|
1486
|
-
return Result.DeleteRequestByUserIdResult.fromDict(response.data);
|
|
1487
|
-
}).catch(function (error) {
|
|
1488
|
-
throw JSON.parse(error.response.data.message);
|
|
1168
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1169
|
+
return Result.DeleteRequestByUserIdResult.fromDict(data);
|
|
1489
1170
|
});
|
|
1490
1171
|
};
|
|
1491
1172
|
Gs2FriendRestClient.prototype.describeReceiveRequests = function (request) {
|
|
@@ -1507,13 +1188,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1507
1188
|
'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
|
|
1508
1189
|
'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
|
|
1509
1190
|
};
|
|
1510
|
-
return
|
|
1511
|
-
|
|
1512
|
-
headers: headers,
|
|
1513
|
-
}).then(function (response) {
|
|
1514
|
-
return Result.DescribeReceiveRequestsResult.fromDict(response.data);
|
|
1515
|
-
}).catch(function (error) {
|
|
1516
|
-
throw JSON.parse(error.response.data.message);
|
|
1191
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1192
|
+
return Result.DescribeReceiveRequestsResult.fromDict(data);
|
|
1517
1193
|
});
|
|
1518
1194
|
};
|
|
1519
1195
|
Gs2FriendRestClient.prototype.describeReceiveRequestsByUserId = function (request) {
|
|
@@ -1536,13 +1212,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1536
1212
|
'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
|
|
1537
1213
|
'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
|
|
1538
1214
|
};
|
|
1539
|
-
return
|
|
1540
|
-
|
|
1541
|
-
headers: headers,
|
|
1542
|
-
}).then(function (response) {
|
|
1543
|
-
return Result.DescribeReceiveRequestsByUserIdResult.fromDict(response.data);
|
|
1544
|
-
}).catch(function (error) {
|
|
1545
|
-
throw JSON.parse(error.response.data.message);
|
|
1215
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1216
|
+
return Result.DescribeReceiveRequestsByUserIdResult.fromDict(data);
|
|
1546
1217
|
});
|
|
1547
1218
|
};
|
|
1548
1219
|
Gs2FriendRestClient.prototype.getReceiveRequest = function (request) {
|
|
@@ -1563,13 +1234,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1563
1234
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1564
1235
|
'withProfile': String((_h = request.getWithProfile()) !== null && _h !== void 0 ? _h : null),
|
|
1565
1236
|
};
|
|
1566
|
-
return
|
|
1567
|
-
|
|
1568
|
-
headers: headers,
|
|
1569
|
-
}).then(function (response) {
|
|
1570
|
-
return Result.GetReceiveRequestResult.fromDict(response.data);
|
|
1571
|
-
}).catch(function (error) {
|
|
1572
|
-
throw JSON.parse(error.response.data.message);
|
|
1237
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1238
|
+
return Result.GetReceiveRequestResult.fromDict(data);
|
|
1573
1239
|
});
|
|
1574
1240
|
};
|
|
1575
1241
|
Gs2FriendRestClient.prototype.getReceiveRequestByUserId = function (request) {
|
|
@@ -1591,13 +1257,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1591
1257
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1592
1258
|
'withProfile': String((_k = request.getWithProfile()) !== null && _k !== void 0 ? _k : null),
|
|
1593
1259
|
};
|
|
1594
|
-
return
|
|
1595
|
-
|
|
1596
|
-
headers: headers,
|
|
1597
|
-
}).then(function (response) {
|
|
1598
|
-
return Result.GetReceiveRequestByUserIdResult.fromDict(response.data);
|
|
1599
|
-
}).catch(function (error) {
|
|
1600
|
-
throw JSON.parse(error.response.data.message);
|
|
1260
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1261
|
+
return Result.GetReceiveRequestByUserIdResult.fromDict(data);
|
|
1601
1262
|
});
|
|
1602
1263
|
};
|
|
1603
1264
|
Gs2FriendRestClient.prototype.acceptRequest = function (request) {
|
|
@@ -1620,17 +1281,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1620
1281
|
var body = {
|
|
1621
1282
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1622
1283
|
};
|
|
1623
|
-
return
|
|
1624
|
-
|
|
1625
|
-
}).then(function (response) {
|
|
1626
|
-
return Result.AcceptRequestResult.fromDict(response.data);
|
|
1627
|
-
}).catch(function (error) {
|
|
1628
|
-
if (error.response) {
|
|
1629
|
-
throw JSON.parse(error.response.data.message);
|
|
1630
|
-
}
|
|
1631
|
-
else {
|
|
1632
|
-
throw [];
|
|
1633
|
-
}
|
|
1284
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1285
|
+
return Result.AcceptRequestResult.fromDict(data);
|
|
1634
1286
|
});
|
|
1635
1287
|
};
|
|
1636
1288
|
Gs2FriendRestClient.prototype.acceptRequestByUserId = function (request) {
|
|
@@ -1654,17 +1306,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1654
1306
|
var body = {
|
|
1655
1307
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1656
1308
|
};
|
|
1657
|
-
return
|
|
1658
|
-
|
|
1659
|
-
}).then(function (response) {
|
|
1660
|
-
return Result.AcceptRequestByUserIdResult.fromDict(response.data);
|
|
1661
|
-
}).catch(function (error) {
|
|
1662
|
-
if (error.response) {
|
|
1663
|
-
throw JSON.parse(error.response.data.message);
|
|
1664
|
-
}
|
|
1665
|
-
else {
|
|
1666
|
-
throw [];
|
|
1667
|
-
}
|
|
1309
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
1310
|
+
return Result.AcceptRequestByUserIdResult.fromDict(data);
|
|
1668
1311
|
});
|
|
1669
1312
|
};
|
|
1670
1313
|
Gs2FriendRestClient.prototype.rejectRequest = function (request) {
|
|
@@ -1687,13 +1330,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1687
1330
|
var params = {
|
|
1688
1331
|
'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
|
|
1689
1332
|
};
|
|
1690
|
-
return
|
|
1691
|
-
|
|
1692
|
-
headers: headers,
|
|
1693
|
-
}).then(function (response) {
|
|
1694
|
-
return Result.RejectRequestResult.fromDict(response.data);
|
|
1695
|
-
}).catch(function (error) {
|
|
1696
|
-
throw JSON.parse(error.response.data.message);
|
|
1333
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1334
|
+
return Result.RejectRequestResult.fromDict(data);
|
|
1697
1335
|
});
|
|
1698
1336
|
};
|
|
1699
1337
|
Gs2FriendRestClient.prototype.rejectRequestByUserId = function (request) {
|
|
@@ -1717,13 +1355,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1717
1355
|
var params = {
|
|
1718
1356
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1719
1357
|
};
|
|
1720
|
-
return
|
|
1721
|
-
|
|
1722
|
-
headers: headers,
|
|
1723
|
-
}).then(function (response) {
|
|
1724
|
-
return Result.RejectRequestByUserIdResult.fromDict(response.data);
|
|
1725
|
-
}).catch(function (error) {
|
|
1726
|
-
throw JSON.parse(error.response.data.message);
|
|
1358
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1359
|
+
return Result.RejectRequestByUserIdResult.fromDict(data);
|
|
1727
1360
|
});
|
|
1728
1361
|
};
|
|
1729
1362
|
Gs2FriendRestClient.prototype.getPublicProfile = function (request) {
|
|
@@ -1743,13 +1376,8 @@ var Gs2FriendRestClient = /** @class */ (function (_super) {
|
|
|
1743
1376
|
var params = {
|
|
1744
1377
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1745
1378
|
};
|
|
1746
|
-
return
|
|
1747
|
-
|
|
1748
|
-
headers: headers,
|
|
1749
|
-
}).then(function (response) {
|
|
1750
|
-
return Result.GetPublicProfileResult.fromDict(response.data);
|
|
1751
|
-
}).catch(function (error) {
|
|
1752
|
-
throw JSON.parse(error.response.data.message);
|
|
1379
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1380
|
+
return Result.GetPublicProfileResult.fromDict(data);
|
|
1753
1381
|
});
|
|
1754
1382
|
};
|
|
1755
1383
|
Gs2FriendRestClient.ENDPOINT_HOST = null;
|