gs2 1.4.109 → 1.4.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/account/request/FindPlatformIdByUserIdRequest.d.ts +4 -0
- package/account/request/FindPlatformIdByUserIdRequest.js +14 -0
- package/account/request/FindPlatformIdByUserIdRequest.js.map +1 -1
- package/account/rest.js +132 -565
- package/account/rest.js.map +1 -1
- package/adReward/rest.js +44 -203
- package/adReward/rest.js.map +1 -1
- package/auth/rest.js +10 -52
- package/auth/rest.js.map +1 -1
- package/buff/rest.js +56 -249
- package/buff/rest.js.map +1 -1
- package/chat/rest.js +108 -463
- package/chat/rest.js.map +1 -1
- package/core/AbstractGs2RestClient.d.ts +9 -0
- package/core/AbstractGs2RestClient.js +48 -0
- package/core/AbstractGs2RestClient.js.map +1 -1
- package/core/model.d.ts +9 -1
- package/core/model.js +4 -1
- package/core/model.js.map +1 -1
- package/datastore/rest.js +78 -370
- package/datastore/rest.js.map +1 -1
- package/deploy/rest.js +48 -209
- package/deploy/rest.js.map +1 -1
- package/dictionary/rest.js +102 -450
- package/dictionary/rest.js.map +1 -1
- package/distributor/rest.js +96 -465
- package/distributor/rest.js.map +1 -1
- package/enchant/rest.js +112 -497
- package/enchant/rest.js.map +1 -1
- package/enhance/rest.js +100 -455
- package/enhance/rest.js.map +1 -1
- package/exchange/rest.js +108 -491
- package/exchange/rest.js.map +1 -1
- package/experience/rest.js +120 -561
- package/experience/rest.js.map +1 -1
- package/formation/rest.js +158 -686
- package/formation/rest.js.map +1 -1
- package/freeze/rest.js +12 -51
- package/freeze/rest.js.map +1 -1
- package/friend/rest.js +118 -490
- package/friend/rest.js.map +1 -1
- package/gateway/rest.js +56 -245
- package/gateway/rest.js.map +1 -1
- package/grade/rest.js +96 -449
- package/grade/rest.js.map +1 -1
- package/guard/rest.js +14 -58
- package/guard/rest.js.map +1 -1
- package/guild/rest.js +186 -840
- package/guild/rest.js.map +1 -1
- package/identifier/rest.js +60 -259
- package/identifier/rest.js.map +1 -1
- package/idle/rest.js +84 -387
- package/idle/rest.js.map +1 -1
- package/inbox/rest.js +96 -437
- package/inbox/rest.js.map +1 -1
- package/inventory/rest.js +270 -1206
- package/inventory/rest.js.map +1 -1
- package/jobQueue/rest.js +50 -220
- package/jobQueue/rest.js.map +1 -1
- package/key/rest.js +38 -166
- package/key/rest.js.map +1 -1
- package/limit/rest.js +80 -361
- package/limit/rest.js.map +1 -1
- package/lock/rest.js +28 -123
- package/lock/rest.js.map +1 -1
- package/log/rest.js +46 -186
- package/log/rest.js.map +1 -1
- package/loginReward/rest.js +82 -376
- package/loginReward/rest.js.map +1 -1
- package/lottery/rest.js +100 -427
- package/lottery/rest.js.map +1 -1
- package/matchmaking/rest.js +146 -644
- package/matchmaking/rest.js.map +1 -1
- package/megaField/rest.js +68 -307
- package/megaField/rest.js.map +1 -1
- package/mission/rest.js +158 -726
- package/mission/rest.js.map +1 -1
- package/money/rest.js +58 -264
- package/money/rest.js.map +1 -1
- package/money2/rest.js +126 -542
- package/money2/rest.js.map +1 -1
- package/news/rest.js +36 -147
- package/news/rest.js.map +1 -1
- package/package.json +1 -1
- package/project/request/WaitCleanUserDataRequest.d.ts +0 -4
- package/project/request/WaitCleanUserDataRequest.js +0 -14
- package/project/request/WaitCleanUserDataRequest.js.map +1 -1
- package/project/request/WaitDumpUserDataRequest.d.ts +0 -4
- package/project/request/WaitDumpUserDataRequest.js +0 -14
- package/project/request/WaitDumpUserDataRequest.js.map +1 -1
- package/project/request/WaitImportUserDataRequest.d.ts +0 -4
- package/project/request/WaitImportUserDataRequest.js +0 -14
- package/project/request/WaitImportUserDataRequest.js.map +1 -1
- package/project/rest.js +91 -411
- package/project/rest.js.map +1 -1
- package/quest/rest.js +100 -431
- package/quest/rest.js.map +1 -1
- package/ranking/rest.js +92 -387
- package/ranking/rest.js.map +1 -1
- package/ranking2/rest.js +220 -939
- package/ranking2/rest.js.map +1 -1
- package/realtime/rest.js +24 -97
- package/realtime/rest.js.map +1 -1
- package/schedule/rest.js +94 -418
- package/schedule/rest.js.map +1 -1
- package/script/rest.js +34 -156
- package/script/rest.js.map +1 -1
- package/seasonRating/rest.js +70 -314
- package/seasonRating/rest.js.map +1 -1
- package/serialKey/rest.js +84 -383
- package/serialKey/rest.js.map +1 -1
- package/showcase/rest.js +116 -515
- package/showcase/rest.js.map +1 -1
- package/skillTree/rest.js +82 -372
- package/skillTree/rest.js.map +1 -1
- package/stamina/rest.js +166 -798
- package/stamina/rest.js.map +1 -1
- package/stateMachine/rest.js +62 -270
- package/stateMachine/rest.js.map +1 -1
- package/version/rest.js +78 -346
- package/version/rest.js.map +1 -1
- package/watch/rest.js +156 -563
- package/watch/rest.js.map +1 -1
package/showcase/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 Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
24
23
|
tslib_1.__extends(Gs2ShowcaseRestClient, _super);
|
|
25
24
|
function Gs2ShowcaseRestClient(session) {
|
|
@@ -40,13 +39,8 @@ var Gs2ShowcaseRestClient = /** @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
|
Gs2ShowcaseRestClient.prototype.createNamespace = function (request) {
|
|
@@ -68,17 +62,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
68
62
|
'keyId': (_k = request.getKeyId()) !== null && _k !== void 0 ? _k : null,
|
|
69
63
|
'logSetting': (_m = (_l = request.getLogSetting()) === null || _l === void 0 ? void 0 : _l.toDict()) !== null && _m !== void 0 ? _m : null,
|
|
70
64
|
};
|
|
71
|
-
return
|
|
72
|
-
|
|
73
|
-
}).then(function (response) {
|
|
74
|
-
return Result.CreateNamespaceResult.fromDict(response.data);
|
|
75
|
-
}).catch(function (error) {
|
|
76
|
-
if (error.response) {
|
|
77
|
-
throw JSON.parse(error.response.data.message);
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
throw [];
|
|
81
|
-
}
|
|
65
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
66
|
+
return Result.CreateNamespaceResult.fromDict(data);
|
|
82
67
|
});
|
|
83
68
|
};
|
|
84
69
|
Gs2ShowcaseRestClient.prototype.getNamespaceStatus = function (request) {
|
|
@@ -94,13 +79,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
94
79
|
var params = {
|
|
95
80
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
96
81
|
};
|
|
97
|
-
return
|
|
98
|
-
|
|
99
|
-
headers: headers,
|
|
100
|
-
}).then(function (response) {
|
|
101
|
-
return Result.GetNamespaceStatusResult.fromDict(response.data);
|
|
102
|
-
}).catch(function (error) {
|
|
103
|
-
throw JSON.parse(error.response.data.message);
|
|
82
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
83
|
+
return Result.GetNamespaceStatusResult.fromDict(data);
|
|
104
84
|
});
|
|
105
85
|
};
|
|
106
86
|
Gs2ShowcaseRestClient.prototype.getNamespace = function (request) {
|
|
@@ -116,13 +96,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
116
96
|
var params = {
|
|
117
97
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
118
98
|
};
|
|
119
|
-
return
|
|
120
|
-
|
|
121
|
-
headers: headers,
|
|
122
|
-
}).then(function (response) {
|
|
123
|
-
return Result.GetNamespaceResult.fromDict(response.data);
|
|
124
|
-
}).catch(function (error) {
|
|
125
|
-
throw JSON.parse(error.response.data.message);
|
|
99
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
100
|
+
return Result.GetNamespaceResult.fromDict(data);
|
|
126
101
|
});
|
|
127
102
|
};
|
|
128
103
|
Gs2ShowcaseRestClient.prototype.updateNamespace = function (request) {
|
|
@@ -144,17 +119,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
144
119
|
'queueNamespaceId': (_m = request.getQueueNamespaceId()) !== null && _m !== void 0 ? _m : null,
|
|
145
120
|
'keyId': (_o = request.getKeyId()) !== null && _o !== void 0 ? _o : null,
|
|
146
121
|
};
|
|
147
|
-
return
|
|
148
|
-
|
|
149
|
-
}).then(function (response) {
|
|
150
|
-
return Result.UpdateNamespaceResult.fromDict(response.data);
|
|
151
|
-
}).catch(function (error) {
|
|
152
|
-
if (error.response) {
|
|
153
|
-
throw JSON.parse(error.response.data.message);
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
throw [];
|
|
157
|
-
}
|
|
122
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
123
|
+
return Result.UpdateNamespaceResult.fromDict(data);
|
|
158
124
|
});
|
|
159
125
|
};
|
|
160
126
|
Gs2ShowcaseRestClient.prototype.deleteNamespace = function (request) {
|
|
@@ -170,13 +136,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
170
136
|
var params = {
|
|
171
137
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
172
138
|
};
|
|
173
|
-
return
|
|
174
|
-
|
|
175
|
-
headers: headers,
|
|
176
|
-
}).then(function (response) {
|
|
177
|
-
return Result.DeleteNamespaceResult.fromDict(response.data);
|
|
178
|
-
}).catch(function (error) {
|
|
179
|
-
throw JSON.parse(error.response.data.message);
|
|
139
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
140
|
+
return Result.DeleteNamespaceResult.fromDict(data);
|
|
180
141
|
});
|
|
181
142
|
};
|
|
182
143
|
Gs2ShowcaseRestClient.prototype.getServiceVersion = function (request) {
|
|
@@ -191,13 +152,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
191
152
|
var params = {
|
|
192
153
|
'contextStack': (_b = request.getContextStack()) !== null && _b !== void 0 ? _b : null,
|
|
193
154
|
};
|
|
194
|
-
return
|
|
195
|
-
|
|
196
|
-
headers: headers,
|
|
197
|
-
}).then(function (response) {
|
|
198
|
-
return Result.GetServiceVersionResult.fromDict(response.data);
|
|
199
|
-
}).catch(function (error) {
|
|
200
|
-
throw JSON.parse(error.response.data.message);
|
|
155
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
156
|
+
return Result.GetServiceVersionResult.fromDict(data);
|
|
201
157
|
});
|
|
202
158
|
};
|
|
203
159
|
Gs2ShowcaseRestClient.prototype.dumpUserDataByUserId = function (request) {
|
|
@@ -216,17 +172,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
216
172
|
var body = {
|
|
217
173
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
218
174
|
};
|
|
219
|
-
return
|
|
220
|
-
|
|
221
|
-
}).then(function (response) {
|
|
222
|
-
return Result.DumpUserDataByUserIdResult.fromDict(response.data);
|
|
223
|
-
}).catch(function (error) {
|
|
224
|
-
if (error.response) {
|
|
225
|
-
throw JSON.parse(error.response.data.message);
|
|
226
|
-
}
|
|
227
|
-
else {
|
|
228
|
-
throw [];
|
|
229
|
-
}
|
|
175
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
176
|
+
return Result.DumpUserDataByUserIdResult.fromDict(data);
|
|
230
177
|
});
|
|
231
178
|
};
|
|
232
179
|
Gs2ShowcaseRestClient.prototype.checkDumpUserDataByUserId = function (request) {
|
|
@@ -245,13 +192,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
245
192
|
var params = {
|
|
246
193
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
247
194
|
};
|
|
248
|
-
return
|
|
249
|
-
|
|
250
|
-
headers: headers,
|
|
251
|
-
}).then(function (response) {
|
|
252
|
-
return Result.CheckDumpUserDataByUserIdResult.fromDict(response.data);
|
|
253
|
-
}).catch(function (error) {
|
|
254
|
-
throw JSON.parse(error.response.data.message);
|
|
195
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
196
|
+
return Result.CheckDumpUserDataByUserIdResult.fromDict(data);
|
|
255
197
|
});
|
|
256
198
|
};
|
|
257
199
|
Gs2ShowcaseRestClient.prototype.cleanUserDataByUserId = function (request) {
|
|
@@ -270,17 +212,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
270
212
|
var body = {
|
|
271
213
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
272
214
|
};
|
|
273
|
-
return
|
|
274
|
-
|
|
275
|
-
}).then(function (response) {
|
|
276
|
-
return Result.CleanUserDataByUserIdResult.fromDict(response.data);
|
|
277
|
-
}).catch(function (error) {
|
|
278
|
-
if (error.response) {
|
|
279
|
-
throw JSON.parse(error.response.data.message);
|
|
280
|
-
}
|
|
281
|
-
else {
|
|
282
|
-
throw [];
|
|
283
|
-
}
|
|
215
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
216
|
+
return Result.CleanUserDataByUserIdResult.fromDict(data);
|
|
284
217
|
});
|
|
285
218
|
};
|
|
286
219
|
Gs2ShowcaseRestClient.prototype.checkCleanUserDataByUserId = function (request) {
|
|
@@ -299,13 +232,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
299
232
|
var params = {
|
|
300
233
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
301
234
|
};
|
|
302
|
-
return
|
|
303
|
-
|
|
304
|
-
headers: headers,
|
|
305
|
-
}).then(function (response) {
|
|
306
|
-
return Result.CheckCleanUserDataByUserIdResult.fromDict(response.data);
|
|
307
|
-
}).catch(function (error) {
|
|
308
|
-
throw JSON.parse(error.response.data.message);
|
|
235
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
236
|
+
return Result.CheckCleanUserDataByUserIdResult.fromDict(data);
|
|
309
237
|
});
|
|
310
238
|
};
|
|
311
239
|
Gs2ShowcaseRestClient.prototype.prepareImportUserDataByUserId = function (request) {
|
|
@@ -324,17 +252,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
324
252
|
var body = {
|
|
325
253
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
326
254
|
};
|
|
327
|
-
return
|
|
328
|
-
|
|
329
|
-
}).then(function (response) {
|
|
330
|
-
return Result.PrepareImportUserDataByUserIdResult.fromDict(response.data);
|
|
331
|
-
}).catch(function (error) {
|
|
332
|
-
if (error.response) {
|
|
333
|
-
throw JSON.parse(error.response.data.message);
|
|
334
|
-
}
|
|
335
|
-
else {
|
|
336
|
-
throw [];
|
|
337
|
-
}
|
|
255
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
256
|
+
return Result.PrepareImportUserDataByUserIdResult.fromDict(data);
|
|
338
257
|
});
|
|
339
258
|
};
|
|
340
259
|
Gs2ShowcaseRestClient.prototype.importUserDataByUserId = function (request) {
|
|
@@ -354,17 +273,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
354
273
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
355
274
|
'uploadToken': (_f = request.getUploadToken()) !== null && _f !== void 0 ? _f : null,
|
|
356
275
|
};
|
|
357
|
-
return
|
|
358
|
-
|
|
359
|
-
}).then(function (response) {
|
|
360
|
-
return Result.ImportUserDataByUserIdResult.fromDict(response.data);
|
|
361
|
-
}).catch(function (error) {
|
|
362
|
-
if (error.response) {
|
|
363
|
-
throw JSON.parse(error.response.data.message);
|
|
364
|
-
}
|
|
365
|
-
else {
|
|
366
|
-
throw [];
|
|
367
|
-
}
|
|
276
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
277
|
+
return Result.ImportUserDataByUserIdResult.fromDict(data);
|
|
368
278
|
});
|
|
369
279
|
};
|
|
370
280
|
Gs2ShowcaseRestClient.prototype.checkImportUserDataByUserId = function (request) {
|
|
@@ -384,13 +294,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
384
294
|
var params = {
|
|
385
295
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
386
296
|
};
|
|
387
|
-
return
|
|
388
|
-
|
|
389
|
-
headers: headers,
|
|
390
|
-
}).then(function (response) {
|
|
391
|
-
return Result.CheckImportUserDataByUserIdResult.fromDict(response.data);
|
|
392
|
-
}).catch(function (error) {
|
|
393
|
-
throw JSON.parse(error.response.data.message);
|
|
297
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
298
|
+
return Result.CheckImportUserDataByUserIdResult.fromDict(data);
|
|
394
299
|
});
|
|
395
300
|
};
|
|
396
301
|
Gs2ShowcaseRestClient.prototype.describeSalesItemMasters = function (request) {
|
|
@@ -409,13 +314,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
409
314
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
410
315
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
411
316
|
};
|
|
412
|
-
return
|
|
413
|
-
|
|
414
|
-
headers: headers,
|
|
415
|
-
}).then(function (response) {
|
|
416
|
-
return Result.DescribeSalesItemMastersResult.fromDict(response.data);
|
|
417
|
-
}).catch(function (error) {
|
|
418
|
-
throw JSON.parse(error.response.data.message);
|
|
317
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
318
|
+
return Result.DescribeSalesItemMastersResult.fromDict(data);
|
|
419
319
|
});
|
|
420
320
|
};
|
|
421
321
|
Gs2ShowcaseRestClient.prototype.createSalesItemMaster = function (request) {
|
|
@@ -437,17 +337,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
437
337
|
'consumeActions': (_l = (_k = request.getConsumeActions()) === null || _k === void 0 ? void 0 : _k.map(function (item) { return item.toDict(); })) !== null && _l !== void 0 ? _l : null,
|
|
438
338
|
'acquireActions': (_o = (_m = request.getAcquireActions()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
|
|
439
339
|
};
|
|
440
|
-
return
|
|
441
|
-
|
|
442
|
-
}).then(function (response) {
|
|
443
|
-
return Result.CreateSalesItemMasterResult.fromDict(response.data);
|
|
444
|
-
}).catch(function (error) {
|
|
445
|
-
if (error.response) {
|
|
446
|
-
throw JSON.parse(error.response.data.message);
|
|
447
|
-
}
|
|
448
|
-
else {
|
|
449
|
-
throw [];
|
|
450
|
-
}
|
|
340
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
341
|
+
return Result.CreateSalesItemMasterResult.fromDict(data);
|
|
451
342
|
});
|
|
452
343
|
};
|
|
453
344
|
Gs2ShowcaseRestClient.prototype.getSalesItemMaster = function (request) {
|
|
@@ -464,13 +355,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
464
355
|
var params = {
|
|
465
356
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
466
357
|
};
|
|
467
|
-
return
|
|
468
|
-
|
|
469
|
-
headers: headers,
|
|
470
|
-
}).then(function (response) {
|
|
471
|
-
return Result.GetSalesItemMasterResult.fromDict(response.data);
|
|
472
|
-
}).catch(function (error) {
|
|
473
|
-
throw JSON.parse(error.response.data.message);
|
|
358
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
359
|
+
return Result.GetSalesItemMasterResult.fromDict(data);
|
|
474
360
|
});
|
|
475
361
|
};
|
|
476
362
|
Gs2ShowcaseRestClient.prototype.updateSalesItemMaster = function (request) {
|
|
@@ -492,17 +378,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
492
378
|
'consumeActions': (_m = (_l = request.getConsumeActions()) === null || _l === void 0 ? void 0 : _l.map(function (item) { return item.toDict(); })) !== null && _m !== void 0 ? _m : null,
|
|
493
379
|
'acquireActions': (_p = (_o = request.getAcquireActions()) === null || _o === void 0 ? void 0 : _o.map(function (item) { return item.toDict(); })) !== null && _p !== void 0 ? _p : null,
|
|
494
380
|
};
|
|
495
|
-
return
|
|
496
|
-
|
|
497
|
-
}).then(function (response) {
|
|
498
|
-
return Result.UpdateSalesItemMasterResult.fromDict(response.data);
|
|
499
|
-
}).catch(function (error) {
|
|
500
|
-
if (error.response) {
|
|
501
|
-
throw JSON.parse(error.response.data.message);
|
|
502
|
-
}
|
|
503
|
-
else {
|
|
504
|
-
throw [];
|
|
505
|
-
}
|
|
381
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
382
|
+
return Result.UpdateSalesItemMasterResult.fromDict(data);
|
|
506
383
|
});
|
|
507
384
|
};
|
|
508
385
|
Gs2ShowcaseRestClient.prototype.deleteSalesItemMaster = function (request) {
|
|
@@ -519,13 +396,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
519
396
|
var params = {
|
|
520
397
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
521
398
|
};
|
|
522
|
-
return
|
|
523
|
-
|
|
524
|
-
headers: headers,
|
|
525
|
-
}).then(function (response) {
|
|
526
|
-
return Result.DeleteSalesItemMasterResult.fromDict(response.data);
|
|
527
|
-
}).catch(function (error) {
|
|
528
|
-
throw JSON.parse(error.response.data.message);
|
|
399
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
400
|
+
return Result.DeleteSalesItemMasterResult.fromDict(data);
|
|
529
401
|
});
|
|
530
402
|
};
|
|
531
403
|
Gs2ShowcaseRestClient.prototype.describeSalesItemGroupMasters = function (request) {
|
|
@@ -544,13 +416,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
544
416
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
545
417
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
546
418
|
};
|
|
547
|
-
return
|
|
548
|
-
|
|
549
|
-
headers: headers,
|
|
550
|
-
}).then(function (response) {
|
|
551
|
-
return Result.DescribeSalesItemGroupMastersResult.fromDict(response.data);
|
|
552
|
-
}).catch(function (error) {
|
|
553
|
-
throw JSON.parse(error.response.data.message);
|
|
419
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
420
|
+
return Result.DescribeSalesItemGroupMastersResult.fromDict(data);
|
|
554
421
|
});
|
|
555
422
|
};
|
|
556
423
|
Gs2ShowcaseRestClient.prototype.createSalesItemGroupMaster = function (request) {
|
|
@@ -570,17 +437,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
570
437
|
'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
|
|
571
438
|
'salesItemNames': (_h = request.getSalesItemNames()) !== null && _h !== void 0 ? _h : null,
|
|
572
439
|
};
|
|
573
|
-
return
|
|
574
|
-
|
|
575
|
-
}).then(function (response) {
|
|
576
|
-
return Result.CreateSalesItemGroupMasterResult.fromDict(response.data);
|
|
577
|
-
}).catch(function (error) {
|
|
578
|
-
if (error.response) {
|
|
579
|
-
throw JSON.parse(error.response.data.message);
|
|
580
|
-
}
|
|
581
|
-
else {
|
|
582
|
-
throw [];
|
|
583
|
-
}
|
|
440
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
441
|
+
return Result.CreateSalesItemGroupMasterResult.fromDict(data);
|
|
584
442
|
});
|
|
585
443
|
};
|
|
586
444
|
Gs2ShowcaseRestClient.prototype.getSalesItemGroupMaster = function (request) {
|
|
@@ -597,13 +455,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
597
455
|
var params = {
|
|
598
456
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
599
457
|
};
|
|
600
|
-
return
|
|
601
|
-
|
|
602
|
-
headers: headers,
|
|
603
|
-
}).then(function (response) {
|
|
604
|
-
return Result.GetSalesItemGroupMasterResult.fromDict(response.data);
|
|
605
|
-
}).catch(function (error) {
|
|
606
|
-
throw JSON.parse(error.response.data.message);
|
|
458
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
459
|
+
return Result.GetSalesItemGroupMasterResult.fromDict(data);
|
|
607
460
|
});
|
|
608
461
|
};
|
|
609
462
|
Gs2ShowcaseRestClient.prototype.updateSalesItemGroupMaster = function (request) {
|
|
@@ -623,17 +476,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
623
476
|
'metadata': (_h = request.getMetadata()) !== null && _h !== void 0 ? _h : null,
|
|
624
477
|
'salesItemNames': (_j = request.getSalesItemNames()) !== null && _j !== void 0 ? _j : null,
|
|
625
478
|
};
|
|
626
|
-
return
|
|
627
|
-
|
|
628
|
-
}).then(function (response) {
|
|
629
|
-
return Result.UpdateSalesItemGroupMasterResult.fromDict(response.data);
|
|
630
|
-
}).catch(function (error) {
|
|
631
|
-
if (error.response) {
|
|
632
|
-
throw JSON.parse(error.response.data.message);
|
|
633
|
-
}
|
|
634
|
-
else {
|
|
635
|
-
throw [];
|
|
636
|
-
}
|
|
479
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
480
|
+
return Result.UpdateSalesItemGroupMasterResult.fromDict(data);
|
|
637
481
|
});
|
|
638
482
|
};
|
|
639
483
|
Gs2ShowcaseRestClient.prototype.deleteSalesItemGroupMaster = function (request) {
|
|
@@ -650,13 +494,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
650
494
|
var params = {
|
|
651
495
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
652
496
|
};
|
|
653
|
-
return
|
|
654
|
-
|
|
655
|
-
headers: headers,
|
|
656
|
-
}).then(function (response) {
|
|
657
|
-
return Result.DeleteSalesItemGroupMasterResult.fromDict(response.data);
|
|
658
|
-
}).catch(function (error) {
|
|
659
|
-
throw JSON.parse(error.response.data.message);
|
|
497
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
498
|
+
return Result.DeleteSalesItemGroupMasterResult.fromDict(data);
|
|
660
499
|
});
|
|
661
500
|
};
|
|
662
501
|
Gs2ShowcaseRestClient.prototype.describeShowcaseMasters = function (request) {
|
|
@@ -675,13 +514,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
675
514
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
676
515
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
677
516
|
};
|
|
678
|
-
return
|
|
679
|
-
|
|
680
|
-
headers: headers,
|
|
681
|
-
}).then(function (response) {
|
|
682
|
-
return Result.DescribeShowcaseMastersResult.fromDict(response.data);
|
|
683
|
-
}).catch(function (error) {
|
|
684
|
-
throw JSON.parse(error.response.data.message);
|
|
517
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
518
|
+
return Result.DescribeShowcaseMastersResult.fromDict(data);
|
|
685
519
|
});
|
|
686
520
|
};
|
|
687
521
|
Gs2ShowcaseRestClient.prototype.createShowcaseMaster = function (request) {
|
|
@@ -702,17 +536,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
702
536
|
'displayItems': (_j = (_h = request.getDisplayItems()) === null || _h === void 0 ? void 0 : _h.map(function (item) { return item.toDict(); })) !== null && _j !== void 0 ? _j : null,
|
|
703
537
|
'salesPeriodEventId': (_k = request.getSalesPeriodEventId()) !== null && _k !== void 0 ? _k : null,
|
|
704
538
|
};
|
|
705
|
-
return
|
|
706
|
-
|
|
707
|
-
}).then(function (response) {
|
|
708
|
-
return Result.CreateShowcaseMasterResult.fromDict(response.data);
|
|
709
|
-
}).catch(function (error) {
|
|
710
|
-
if (error.response) {
|
|
711
|
-
throw JSON.parse(error.response.data.message);
|
|
712
|
-
}
|
|
713
|
-
else {
|
|
714
|
-
throw [];
|
|
715
|
-
}
|
|
539
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
540
|
+
return Result.CreateShowcaseMasterResult.fromDict(data);
|
|
716
541
|
});
|
|
717
542
|
};
|
|
718
543
|
Gs2ShowcaseRestClient.prototype.getShowcaseMaster = function (request) {
|
|
@@ -729,13 +554,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
729
554
|
var params = {
|
|
730
555
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
731
556
|
};
|
|
732
|
-
return
|
|
733
|
-
|
|
734
|
-
headers: headers,
|
|
735
|
-
}).then(function (response) {
|
|
736
|
-
return Result.GetShowcaseMasterResult.fromDict(response.data);
|
|
737
|
-
}).catch(function (error) {
|
|
738
|
-
throw JSON.parse(error.response.data.message);
|
|
557
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
558
|
+
return Result.GetShowcaseMasterResult.fromDict(data);
|
|
739
559
|
});
|
|
740
560
|
};
|
|
741
561
|
Gs2ShowcaseRestClient.prototype.updateShowcaseMaster = function (request) {
|
|
@@ -756,17 +576,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
756
576
|
'displayItems': (_k = (_j = request.getDisplayItems()) === null || _j === void 0 ? void 0 : _j.map(function (item) { return item.toDict(); })) !== null && _k !== void 0 ? _k : null,
|
|
757
577
|
'salesPeriodEventId': (_l = request.getSalesPeriodEventId()) !== null && _l !== void 0 ? _l : null,
|
|
758
578
|
};
|
|
759
|
-
return
|
|
760
|
-
|
|
761
|
-
}).then(function (response) {
|
|
762
|
-
return Result.UpdateShowcaseMasterResult.fromDict(response.data);
|
|
763
|
-
}).catch(function (error) {
|
|
764
|
-
if (error.response) {
|
|
765
|
-
throw JSON.parse(error.response.data.message);
|
|
766
|
-
}
|
|
767
|
-
else {
|
|
768
|
-
throw [];
|
|
769
|
-
}
|
|
579
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
580
|
+
return Result.UpdateShowcaseMasterResult.fromDict(data);
|
|
770
581
|
});
|
|
771
582
|
};
|
|
772
583
|
Gs2ShowcaseRestClient.prototype.deleteShowcaseMaster = function (request) {
|
|
@@ -783,13 +594,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
783
594
|
var params = {
|
|
784
595
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
785
596
|
};
|
|
786
|
-
return
|
|
787
|
-
|
|
788
|
-
headers: headers,
|
|
789
|
-
}).then(function (response) {
|
|
790
|
-
return Result.DeleteShowcaseMasterResult.fromDict(response.data);
|
|
791
|
-
}).catch(function (error) {
|
|
792
|
-
throw JSON.parse(error.response.data.message);
|
|
597
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
598
|
+
return Result.DeleteShowcaseMasterResult.fromDict(data);
|
|
793
599
|
});
|
|
794
600
|
};
|
|
795
601
|
Gs2ShowcaseRestClient.prototype.exportMaster = function (request) {
|
|
@@ -805,13 +611,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
805
611
|
var params = {
|
|
806
612
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
807
613
|
};
|
|
808
|
-
return
|
|
809
|
-
|
|
810
|
-
headers: headers,
|
|
811
|
-
}).then(function (response) {
|
|
812
|
-
return Result.ExportMasterResult.fromDict(response.data);
|
|
813
|
-
}).catch(function (error) {
|
|
814
|
-
throw JSON.parse(error.response.data.message);
|
|
614
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
615
|
+
return Result.ExportMasterResult.fromDict(data);
|
|
815
616
|
});
|
|
816
617
|
};
|
|
817
618
|
Gs2ShowcaseRestClient.prototype.getCurrentShowcaseMaster = function (request) {
|
|
@@ -827,13 +628,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
827
628
|
var params = {
|
|
828
629
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
829
630
|
};
|
|
830
|
-
return
|
|
831
|
-
|
|
832
|
-
headers: headers,
|
|
833
|
-
}).then(function (response) {
|
|
834
|
-
return Result.GetCurrentShowcaseMasterResult.fromDict(response.data);
|
|
835
|
-
}).catch(function (error) {
|
|
836
|
-
throw JSON.parse(error.response.data.message);
|
|
631
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
632
|
+
return Result.GetCurrentShowcaseMasterResult.fromDict(data);
|
|
837
633
|
});
|
|
838
634
|
};
|
|
839
635
|
Gs2ShowcaseRestClient.prototype.preUpdateCurrentShowcaseMaster = function (request) {
|
|
@@ -849,17 +645,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
849
645
|
var body = {
|
|
850
646
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
851
647
|
};
|
|
852
|
-
return
|
|
853
|
-
|
|
854
|
-
}).then(function (response) {
|
|
855
|
-
return Result.PreUpdateCurrentShowcaseMasterResult.fromDict(response.data);
|
|
856
|
-
}).catch(function (error) {
|
|
857
|
-
if (error.response) {
|
|
858
|
-
throw JSON.parse(error.response.data.message);
|
|
859
|
-
}
|
|
860
|
-
else {
|
|
861
|
-
throw [];
|
|
862
|
-
}
|
|
648
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
649
|
+
return Result.PreUpdateCurrentShowcaseMasterResult.fromDict(data);
|
|
863
650
|
});
|
|
864
651
|
};
|
|
865
652
|
Gs2ShowcaseRestClient.prototype.updateCurrentShowcaseMaster = function (request) {
|
|
@@ -878,17 +665,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
878
665
|
'settings': (_f = request.getSettings()) !== null && _f !== void 0 ? _f : null,
|
|
879
666
|
'uploadToken': (_g = request.getUploadToken()) !== null && _g !== void 0 ? _g : null,
|
|
880
667
|
};
|
|
881
|
-
return
|
|
882
|
-
|
|
883
|
-
}).then(function (response) {
|
|
884
|
-
return Result.UpdateCurrentShowcaseMasterResult.fromDict(response.data);
|
|
885
|
-
}).catch(function (error) {
|
|
886
|
-
if (error.response) {
|
|
887
|
-
throw JSON.parse(error.response.data.message);
|
|
888
|
-
}
|
|
889
|
-
else {
|
|
890
|
-
throw [];
|
|
891
|
-
}
|
|
668
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
669
|
+
return Result.UpdateCurrentShowcaseMasterResult.fromDict(data);
|
|
892
670
|
});
|
|
893
671
|
};
|
|
894
672
|
Gs2ShowcaseRestClient.prototype.updateCurrentShowcaseMasterFromGitHub = function (request) {
|
|
@@ -905,17 +683,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
905
683
|
'contextStack': (_d = request.getContextStack()) !== null && _d !== void 0 ? _d : null,
|
|
906
684
|
'checkoutSetting': (_f = (_e = request.getCheckoutSetting()) === null || _e === void 0 ? void 0 : _e.toDict()) !== null && _f !== void 0 ? _f : null,
|
|
907
685
|
};
|
|
908
|
-
return
|
|
909
|
-
|
|
910
|
-
}).then(function (response) {
|
|
911
|
-
return Result.UpdateCurrentShowcaseMasterFromGitHubResult.fromDict(response.data);
|
|
912
|
-
}).catch(function (error) {
|
|
913
|
-
if (error.response) {
|
|
914
|
-
throw JSON.parse(error.response.data.message);
|
|
915
|
-
}
|
|
916
|
-
else {
|
|
917
|
-
throw [];
|
|
918
|
-
}
|
|
686
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
687
|
+
return Result.UpdateCurrentShowcaseMasterFromGitHubResult.fromDict(data);
|
|
919
688
|
});
|
|
920
689
|
};
|
|
921
690
|
Gs2ShowcaseRestClient.prototype.describeShowcases = function (request) {
|
|
@@ -934,13 +703,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
934
703
|
var params = {
|
|
935
704
|
'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
|
|
936
705
|
};
|
|
937
|
-
return
|
|
938
|
-
|
|
939
|
-
headers: headers,
|
|
940
|
-
}).then(function (response) {
|
|
941
|
-
return Result.DescribeShowcasesResult.fromDict(response.data);
|
|
942
|
-
}).catch(function (error) {
|
|
943
|
-
throw JSON.parse(error.response.data.message);
|
|
706
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
707
|
+
return Result.DescribeShowcasesResult.fromDict(data);
|
|
944
708
|
});
|
|
945
709
|
};
|
|
946
710
|
Gs2ShowcaseRestClient.prototype.describeShowcasesByUserId = function (request) {
|
|
@@ -960,13 +724,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
960
724
|
var params = {
|
|
961
725
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
962
726
|
};
|
|
963
|
-
return
|
|
964
|
-
|
|
965
|
-
headers: headers,
|
|
966
|
-
}).then(function (response) {
|
|
967
|
-
return Result.DescribeShowcasesByUserIdResult.fromDict(response.data);
|
|
968
|
-
}).catch(function (error) {
|
|
969
|
-
throw JSON.parse(error.response.data.message);
|
|
727
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
728
|
+
return Result.DescribeShowcasesByUserIdResult.fromDict(data);
|
|
970
729
|
});
|
|
971
730
|
};
|
|
972
731
|
Gs2ShowcaseRestClient.prototype.getShowcase = function (request) {
|
|
@@ -986,13 +745,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
986
745
|
var params = {
|
|
987
746
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
988
747
|
};
|
|
989
|
-
return
|
|
990
|
-
|
|
991
|
-
headers: headers,
|
|
992
|
-
}).then(function (response) {
|
|
993
|
-
return Result.GetShowcaseResult.fromDict(response.data);
|
|
994
|
-
}).catch(function (error) {
|
|
995
|
-
throw JSON.parse(error.response.data.message);
|
|
748
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
749
|
+
return Result.GetShowcaseResult.fromDict(data);
|
|
996
750
|
});
|
|
997
751
|
};
|
|
998
752
|
Gs2ShowcaseRestClient.prototype.getShowcaseByUserId = function (request) {
|
|
@@ -1013,13 +767,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1013
767
|
var params = {
|
|
1014
768
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1015
769
|
};
|
|
1016
|
-
return
|
|
1017
|
-
|
|
1018
|
-
headers: headers,
|
|
1019
|
-
}).then(function (response) {
|
|
1020
|
-
return Result.GetShowcaseByUserIdResult.fromDict(response.data);
|
|
1021
|
-
}).catch(function (error) {
|
|
1022
|
-
throw JSON.parse(error.response.data.message);
|
|
770
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
771
|
+
return Result.GetShowcaseByUserIdResult.fromDict(data);
|
|
1023
772
|
});
|
|
1024
773
|
};
|
|
1025
774
|
Gs2ShowcaseRestClient.prototype.buy = function (request) {
|
|
@@ -1045,17 +794,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1045
794
|
'quantity': (_l = request.getQuantity()) !== null && _l !== void 0 ? _l : null,
|
|
1046
795
|
'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
|
|
1047
796
|
};
|
|
1048
|
-
return
|
|
1049
|
-
|
|
1050
|
-
}).then(function (response) {
|
|
1051
|
-
return Result.BuyResult.fromDict(response.data);
|
|
1052
|
-
}).catch(function (error) {
|
|
1053
|
-
if (error.response) {
|
|
1054
|
-
throw JSON.parse(error.response.data.message);
|
|
1055
|
-
}
|
|
1056
|
-
else {
|
|
1057
|
-
throw [];
|
|
1058
|
-
}
|
|
797
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
798
|
+
return Result.BuyResult.fromDict(data);
|
|
1059
799
|
});
|
|
1060
800
|
};
|
|
1061
801
|
Gs2ShowcaseRestClient.prototype.buyByUserId = function (request) {
|
|
@@ -1082,17 +822,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1082
822
|
'quantity': (_o = request.getQuantity()) !== null && _o !== void 0 ? _o : null,
|
|
1083
823
|
'config': (_q = (_p = request.getConfig()) === null || _p === void 0 ? void 0 : _p.map(function (item) { return item.toDict(); })) !== null && _q !== void 0 ? _q : null,
|
|
1084
824
|
};
|
|
1085
|
-
return
|
|
1086
|
-
|
|
1087
|
-
}).then(function (response) {
|
|
1088
|
-
return Result.BuyByUserIdResult.fromDict(response.data);
|
|
1089
|
-
}).catch(function (error) {
|
|
1090
|
-
if (error.response) {
|
|
1091
|
-
throw JSON.parse(error.response.data.message);
|
|
1092
|
-
}
|
|
1093
|
-
else {
|
|
1094
|
-
throw [];
|
|
1095
|
-
}
|
|
825
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
826
|
+
return Result.BuyByUserIdResult.fromDict(data);
|
|
1096
827
|
});
|
|
1097
828
|
};
|
|
1098
829
|
Gs2ShowcaseRestClient.prototype.describeRandomShowcaseMasters = function (request) {
|
|
@@ -1111,13 +842,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1111
842
|
'pageToken': String((_f = request.getPageToken()) !== null && _f !== void 0 ? _f : null),
|
|
1112
843
|
'limit': String((_g = request.getLimit()) !== null && _g !== void 0 ? _g : null),
|
|
1113
844
|
};
|
|
1114
|
-
return
|
|
1115
|
-
|
|
1116
|
-
headers: headers,
|
|
1117
|
-
}).then(function (response) {
|
|
1118
|
-
return Result.DescribeRandomShowcaseMastersResult.fromDict(response.data);
|
|
1119
|
-
}).catch(function (error) {
|
|
1120
|
-
throw JSON.parse(error.response.data.message);
|
|
845
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
846
|
+
return Result.DescribeRandomShowcaseMastersResult.fromDict(data);
|
|
1121
847
|
});
|
|
1122
848
|
};
|
|
1123
849
|
Gs2ShowcaseRestClient.prototype.createRandomShowcaseMaster = function (request) {
|
|
@@ -1141,17 +867,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1141
867
|
'resetIntervalHours': (_m = request.getResetIntervalHours()) !== null && _m !== void 0 ? _m : null,
|
|
1142
868
|
'salesPeriodEventId': (_o = request.getSalesPeriodEventId()) !== null && _o !== void 0 ? _o : null,
|
|
1143
869
|
};
|
|
1144
|
-
return
|
|
1145
|
-
|
|
1146
|
-
}).then(function (response) {
|
|
1147
|
-
return Result.CreateRandomShowcaseMasterResult.fromDict(response.data);
|
|
1148
|
-
}).catch(function (error) {
|
|
1149
|
-
if (error.response) {
|
|
1150
|
-
throw JSON.parse(error.response.data.message);
|
|
1151
|
-
}
|
|
1152
|
-
else {
|
|
1153
|
-
throw [];
|
|
1154
|
-
}
|
|
870
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
871
|
+
return Result.CreateRandomShowcaseMasterResult.fromDict(data);
|
|
1155
872
|
});
|
|
1156
873
|
};
|
|
1157
874
|
Gs2ShowcaseRestClient.prototype.getRandomShowcaseMaster = function (request) {
|
|
@@ -1168,13 +885,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1168
885
|
var params = {
|
|
1169
886
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1170
887
|
};
|
|
1171
|
-
return
|
|
1172
|
-
|
|
1173
|
-
headers: headers,
|
|
1174
|
-
}).then(function (response) {
|
|
1175
|
-
return Result.GetRandomShowcaseMasterResult.fromDict(response.data);
|
|
1176
|
-
}).catch(function (error) {
|
|
1177
|
-
throw JSON.parse(error.response.data.message);
|
|
888
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
889
|
+
return Result.GetRandomShowcaseMasterResult.fromDict(data);
|
|
1178
890
|
});
|
|
1179
891
|
};
|
|
1180
892
|
Gs2ShowcaseRestClient.prototype.updateRandomShowcaseMaster = function (request) {
|
|
@@ -1198,17 +910,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1198
910
|
'resetIntervalHours': (_o = request.getResetIntervalHours()) !== null && _o !== void 0 ? _o : null,
|
|
1199
911
|
'salesPeriodEventId': (_p = request.getSalesPeriodEventId()) !== null && _p !== void 0 ? _p : null,
|
|
1200
912
|
};
|
|
1201
|
-
return
|
|
1202
|
-
|
|
1203
|
-
}).then(function (response) {
|
|
1204
|
-
return Result.UpdateRandomShowcaseMasterResult.fromDict(response.data);
|
|
1205
|
-
}).catch(function (error) {
|
|
1206
|
-
if (error.response) {
|
|
1207
|
-
throw JSON.parse(error.response.data.message);
|
|
1208
|
-
}
|
|
1209
|
-
else {
|
|
1210
|
-
throw [];
|
|
1211
|
-
}
|
|
913
|
+
return this.request('PUT', url, headers, undefined, body).then(function (data) {
|
|
914
|
+
return Result.UpdateRandomShowcaseMasterResult.fromDict(data);
|
|
1212
915
|
});
|
|
1213
916
|
};
|
|
1214
917
|
Gs2ShowcaseRestClient.prototype.deleteRandomShowcaseMaster = function (request) {
|
|
@@ -1225,13 +928,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1225
928
|
var params = {
|
|
1226
929
|
'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
|
|
1227
930
|
};
|
|
1228
|
-
return
|
|
1229
|
-
|
|
1230
|
-
headers: headers,
|
|
1231
|
-
}).then(function (response) {
|
|
1232
|
-
return Result.DeleteRandomShowcaseMasterResult.fromDict(response.data);
|
|
1233
|
-
}).catch(function (error) {
|
|
1234
|
-
throw JSON.parse(error.response.data.message);
|
|
931
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
932
|
+
return Result.DeleteRandomShowcaseMasterResult.fromDict(data);
|
|
1235
933
|
});
|
|
1236
934
|
};
|
|
1237
935
|
Gs2ShowcaseRestClient.prototype.incrementPurchaseCount = function (request) {
|
|
@@ -1256,17 +954,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1256
954
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1257
955
|
'count': (_l = request.getCount()) !== null && _l !== void 0 ? _l : null,
|
|
1258
956
|
};
|
|
1259
|
-
return
|
|
1260
|
-
|
|
1261
|
-
}).then(function (response) {
|
|
1262
|
-
return Result.IncrementPurchaseCountResult.fromDict(response.data);
|
|
1263
|
-
}).catch(function (error) {
|
|
1264
|
-
if (error.response) {
|
|
1265
|
-
throw JSON.parse(error.response.data.message);
|
|
1266
|
-
}
|
|
1267
|
-
else {
|
|
1268
|
-
throw [];
|
|
1269
|
-
}
|
|
957
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
958
|
+
return Result.IncrementPurchaseCountResult.fromDict(data);
|
|
1270
959
|
});
|
|
1271
960
|
};
|
|
1272
961
|
Gs2ShowcaseRestClient.prototype.incrementPurchaseCountByUserId = function (request) {
|
|
@@ -1292,17 +981,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1292
981
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1293
982
|
'count': (_o = request.getCount()) !== null && _o !== void 0 ? _o : null,
|
|
1294
983
|
};
|
|
1295
|
-
return
|
|
1296
|
-
|
|
1297
|
-
}).then(function (response) {
|
|
1298
|
-
return Result.IncrementPurchaseCountByUserIdResult.fromDict(response.data);
|
|
1299
|
-
}).catch(function (error) {
|
|
1300
|
-
if (error.response) {
|
|
1301
|
-
throw JSON.parse(error.response.data.message);
|
|
1302
|
-
}
|
|
1303
|
-
else {
|
|
1304
|
-
throw [];
|
|
1305
|
-
}
|
|
984
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
985
|
+
return Result.IncrementPurchaseCountByUserIdResult.fromDict(data);
|
|
1306
986
|
});
|
|
1307
987
|
};
|
|
1308
988
|
Gs2ShowcaseRestClient.prototype.decrementPurchaseCountByUserId = function (request) {
|
|
@@ -1328,17 +1008,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1328
1008
|
'contextStack': (_m = request.getContextStack()) !== null && _m !== void 0 ? _m : null,
|
|
1329
1009
|
'count': (_o = request.getCount()) !== null && _o !== void 0 ? _o : null,
|
|
1330
1010
|
};
|
|
1331
|
-
return
|
|
1332
|
-
|
|
1333
|
-
}).then(function (response) {
|
|
1334
|
-
return Result.DecrementPurchaseCountByUserIdResult.fromDict(response.data);
|
|
1335
|
-
}).catch(function (error) {
|
|
1336
|
-
if (error.response) {
|
|
1337
|
-
throw JSON.parse(error.response.data.message);
|
|
1338
|
-
}
|
|
1339
|
-
else {
|
|
1340
|
-
throw [];
|
|
1341
|
-
}
|
|
1011
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1012
|
+
return Result.DecrementPurchaseCountByUserIdResult.fromDict(data);
|
|
1342
1013
|
});
|
|
1343
1014
|
};
|
|
1344
1015
|
Gs2ShowcaseRestClient.prototype.incrementPurchaseCountByStampTask = function (request) {
|
|
@@ -1355,17 +1026,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1355
1026
|
'stampTask': (_c = request.getStampTask()) !== null && _c !== void 0 ? _c : null,
|
|
1356
1027
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1357
1028
|
};
|
|
1358
|
-
return
|
|
1359
|
-
|
|
1360
|
-
}).then(function (response) {
|
|
1361
|
-
return Result.IncrementPurchaseCountByStampTaskResult.fromDict(response.data);
|
|
1362
|
-
}).catch(function (error) {
|
|
1363
|
-
if (error.response) {
|
|
1364
|
-
throw JSON.parse(error.response.data.message);
|
|
1365
|
-
}
|
|
1366
|
-
else {
|
|
1367
|
-
throw [];
|
|
1368
|
-
}
|
|
1029
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1030
|
+
return Result.IncrementPurchaseCountByStampTaskResult.fromDict(data);
|
|
1369
1031
|
});
|
|
1370
1032
|
};
|
|
1371
1033
|
Gs2ShowcaseRestClient.prototype.decrementPurchaseCountByStampSheet = function (request) {
|
|
@@ -1382,17 +1044,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1382
1044
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1383
1045
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1384
1046
|
};
|
|
1385
|
-
return
|
|
1386
|
-
|
|
1387
|
-
}).then(function (response) {
|
|
1388
|
-
return Result.DecrementPurchaseCountByStampSheetResult.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
|
-
}
|
|
1047
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1048
|
+
return Result.DecrementPurchaseCountByStampSheetResult.fromDict(data);
|
|
1396
1049
|
});
|
|
1397
1050
|
};
|
|
1398
1051
|
Gs2ShowcaseRestClient.prototype.forceReDrawByUserId = function (request) {
|
|
@@ -1416,13 +1069,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1416
1069
|
var params = {
|
|
1417
1070
|
'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
|
|
1418
1071
|
};
|
|
1419
|
-
return
|
|
1420
|
-
|
|
1421
|
-
headers: headers,
|
|
1422
|
-
}).then(function (response) {
|
|
1423
|
-
return Result.ForceReDrawByUserIdResult.fromDict(response.data);
|
|
1424
|
-
}).catch(function (error) {
|
|
1425
|
-
throw JSON.parse(error.response.data.message);
|
|
1072
|
+
return this.request('DELETE', url, headers, params, undefined).then(function (data) {
|
|
1073
|
+
return Result.ForceReDrawByUserIdResult.fromDict(data);
|
|
1426
1074
|
});
|
|
1427
1075
|
};
|
|
1428
1076
|
Gs2ShowcaseRestClient.prototype.forceReDrawByUserIdByStampSheet = function (request) {
|
|
@@ -1439,17 +1087,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1439
1087
|
'stampSheet': (_c = request.getStampSheet()) !== null && _c !== void 0 ? _c : null,
|
|
1440
1088
|
'keyId': (_d = request.getKeyId()) !== null && _d !== void 0 ? _d : null,
|
|
1441
1089
|
};
|
|
1442
|
-
return
|
|
1443
|
-
|
|
1444
|
-
}).then(function (response) {
|
|
1445
|
-
return Result.ForceReDrawByUserIdByStampSheetResult.fromDict(response.data);
|
|
1446
|
-
}).catch(function (error) {
|
|
1447
|
-
if (error.response) {
|
|
1448
|
-
throw JSON.parse(error.response.data.message);
|
|
1449
|
-
}
|
|
1450
|
-
else {
|
|
1451
|
-
throw [];
|
|
1452
|
-
}
|
|
1090
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1091
|
+
return Result.ForceReDrawByUserIdByStampSheetResult.fromDict(data);
|
|
1453
1092
|
});
|
|
1454
1093
|
};
|
|
1455
1094
|
Gs2ShowcaseRestClient.prototype.describeRandomDisplayItems = function (request) {
|
|
@@ -1469,13 +1108,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1469
1108
|
var params = {
|
|
1470
1109
|
'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
|
|
1471
1110
|
};
|
|
1472
|
-
return
|
|
1473
|
-
|
|
1474
|
-
headers: headers,
|
|
1475
|
-
}).then(function (response) {
|
|
1476
|
-
return Result.DescribeRandomDisplayItemsResult.fromDict(response.data);
|
|
1477
|
-
}).catch(function (error) {
|
|
1478
|
-
throw JSON.parse(error.response.data.message);
|
|
1111
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1112
|
+
return Result.DescribeRandomDisplayItemsResult.fromDict(data);
|
|
1479
1113
|
});
|
|
1480
1114
|
};
|
|
1481
1115
|
Gs2ShowcaseRestClient.prototype.describeRandomDisplayItemsByUserId = function (request) {
|
|
@@ -1496,13 +1130,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1496
1130
|
var params = {
|
|
1497
1131
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1498
1132
|
};
|
|
1499
|
-
return
|
|
1500
|
-
|
|
1501
|
-
headers: headers,
|
|
1502
|
-
}).then(function (response) {
|
|
1503
|
-
return Result.DescribeRandomDisplayItemsByUserIdResult.fromDict(response.data);
|
|
1504
|
-
}).catch(function (error) {
|
|
1505
|
-
throw JSON.parse(error.response.data.message);
|
|
1133
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1134
|
+
return Result.DescribeRandomDisplayItemsByUserIdResult.fromDict(data);
|
|
1506
1135
|
});
|
|
1507
1136
|
};
|
|
1508
1137
|
Gs2ShowcaseRestClient.prototype.getRandomDisplayItem = function (request) {
|
|
@@ -1523,13 +1152,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1523
1152
|
var params = {
|
|
1524
1153
|
'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
|
|
1525
1154
|
};
|
|
1526
|
-
return
|
|
1527
|
-
|
|
1528
|
-
headers: headers,
|
|
1529
|
-
}).then(function (response) {
|
|
1530
|
-
return Result.GetRandomDisplayItemResult.fromDict(response.data);
|
|
1531
|
-
}).catch(function (error) {
|
|
1532
|
-
throw JSON.parse(error.response.data.message);
|
|
1155
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1156
|
+
return Result.GetRandomDisplayItemResult.fromDict(data);
|
|
1533
1157
|
});
|
|
1534
1158
|
};
|
|
1535
1159
|
Gs2ShowcaseRestClient.prototype.getRandomDisplayItemByUserId = function (request) {
|
|
@@ -1551,13 +1175,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1551
1175
|
var params = {
|
|
1552
1176
|
'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
|
|
1553
1177
|
};
|
|
1554
|
-
return
|
|
1555
|
-
|
|
1556
|
-
headers: headers,
|
|
1557
|
-
}).then(function (response) {
|
|
1558
|
-
return Result.GetRandomDisplayItemByUserIdResult.fromDict(response.data);
|
|
1559
|
-
}).catch(function (error) {
|
|
1560
|
-
throw JSON.parse(error.response.data.message);
|
|
1178
|
+
return this.request('GET', url, headers, params, undefined).then(function (data) {
|
|
1179
|
+
return Result.GetRandomDisplayItemByUserIdResult.fromDict(data);
|
|
1561
1180
|
});
|
|
1562
1181
|
};
|
|
1563
1182
|
Gs2ShowcaseRestClient.prototype.randomShowcaseBuy = function (request) {
|
|
@@ -1583,17 +1202,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1583
1202
|
'quantity': (_l = request.getQuantity()) !== null && _l !== void 0 ? _l : null,
|
|
1584
1203
|
'config': (_o = (_m = request.getConfig()) === null || _m === void 0 ? void 0 : _m.map(function (item) { return item.toDict(); })) !== null && _o !== void 0 ? _o : null,
|
|
1585
1204
|
};
|
|
1586
|
-
return
|
|
1587
|
-
|
|
1588
|
-
}).then(function (response) {
|
|
1589
|
-
return Result.RandomShowcaseBuyResult.fromDict(response.data);
|
|
1590
|
-
}).catch(function (error) {
|
|
1591
|
-
if (error.response) {
|
|
1592
|
-
throw JSON.parse(error.response.data.message);
|
|
1593
|
-
}
|
|
1594
|
-
else {
|
|
1595
|
-
throw [];
|
|
1596
|
-
}
|
|
1205
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1206
|
+
return Result.RandomShowcaseBuyResult.fromDict(data);
|
|
1597
1207
|
});
|
|
1598
1208
|
};
|
|
1599
1209
|
Gs2ShowcaseRestClient.prototype.randomShowcaseBuyByUserId = function (request) {
|
|
@@ -1620,17 +1230,8 @@ var Gs2ShowcaseRestClient = /** @class */ (function (_super) {
|
|
|
1620
1230
|
'quantity': (_o = request.getQuantity()) !== null && _o !== void 0 ? _o : null,
|
|
1621
1231
|
'config': (_q = (_p = request.getConfig()) === null || _p === void 0 ? void 0 : _p.map(function (item) { return item.toDict(); })) !== null && _q !== void 0 ? _q : null,
|
|
1622
1232
|
};
|
|
1623
|
-
return
|
|
1624
|
-
|
|
1625
|
-
}).then(function (response) {
|
|
1626
|
-
return Result.RandomShowcaseBuyByUserIdResult.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
|
-
}
|
|
1233
|
+
return this.request('POST', url, headers, undefined, body).then(function (data) {
|
|
1234
|
+
return Result.RandomShowcaseBuyByUserIdResult.fromDict(data);
|
|
1634
1235
|
});
|
|
1635
1236
|
};
|
|
1636
1237
|
Gs2ShowcaseRestClient.ENDPOINT_HOST = null;
|