gs2 1.3.148 → 1.3.149

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.
Files changed (49) hide show
  1. package/package.json +1 -1
  2. package/showcase/model/RandomDisplayItem.d.ts +4 -0
  3. package/showcase/model/RandomDisplayItem.js +14 -0
  4. package/showcase/model/RandomDisplayItem.js.map +1 -1
  5. package/showcase/model/RandomDisplayItem.ts +14 -0
  6. package/showcase/request/ForceReDrawByUserIdByStampSheetRequest.d.ts +25 -0
  7. package/showcase/request/ForceReDrawByUserIdByStampSheetRequest.js +83 -0
  8. package/showcase/request/ForceReDrawByUserIdByStampSheetRequest.js.map +1 -0
  9. package/showcase/request/ForceReDrawByUserIdByStampSheetRequest.ts +90 -0
  10. package/showcase/request/ForceReDrawByUserIdRequest.d.ts +33 -0
  11. package/showcase/request/ForceReDrawByUserIdRequest.js +109 -0
  12. package/showcase/request/ForceReDrawByUserIdRequest.js.map +1 -0
  13. package/showcase/request/ForceReDrawByUserIdRequest.ts +119 -0
  14. package/showcase/request/GetRandomShowcaseSalesItemByUserIdRequest.d.ts +33 -0
  15. package/showcase/request/GetRandomShowcaseSalesItemByUserIdRequest.js +111 -0
  16. package/showcase/request/GetRandomShowcaseSalesItemByUserIdRequest.js.map +1 -0
  17. package/showcase/request/GetRandomShowcaseSalesItemByUserIdRequest.ts +118 -0
  18. package/showcase/request/GetRandomShowcaseSalesItemRequest.d.ts +33 -0
  19. package/showcase/request/GetRandomShowcaseSalesItemRequest.js +111 -0
  20. package/showcase/request/GetRandomShowcaseSalesItemRequest.js.map +1 -0
  21. package/showcase/request/GetRandomShowcaseSalesItemRequest.ts +118 -0
  22. package/showcase/request/index.d.ts +7 -3
  23. package/showcase/request/index.js +13 -5
  24. package/showcase/request/index.js.map +1 -1
  25. package/showcase/request/index.ts +12 -4
  26. package/showcase/rest.d.ts +6 -2
  27. package/showcase/rest.js +141 -35
  28. package/showcase/rest.js.map +1 -1
  29. package/showcase/rest.ts +145 -23
  30. package/showcase/result/ForceReDrawByUserIdByStampSheetResult.d.ts +14 -0
  31. package/showcase/result/ForceReDrawByUserIdByStampSheetResult.js +53 -0
  32. package/showcase/result/ForceReDrawByUserIdByStampSheetResult.js.map +1 -0
  33. package/showcase/result/ForceReDrawByUserIdByStampSheetResult.ts +56 -0
  34. package/showcase/result/ForceReDrawByUserIdResult.d.ts +14 -0
  35. package/showcase/result/ForceReDrawByUserIdResult.js +53 -0
  36. package/showcase/result/ForceReDrawByUserIdResult.js.map +1 -0
  37. package/showcase/result/ForceReDrawByUserIdResult.ts +56 -0
  38. package/showcase/result/GetRandomShowcaseSalesItemByUserIdResult.d.ts +14 -0
  39. package/showcase/result/GetRandomShowcaseSalesItemByUserIdResult.js +48 -0
  40. package/showcase/result/GetRandomShowcaseSalesItemByUserIdResult.js.map +1 -0
  41. package/showcase/result/GetRandomShowcaseSalesItemByUserIdResult.ts +48 -0
  42. package/showcase/result/GetRandomShowcaseSalesItemResult.d.ts +14 -0
  43. package/showcase/result/GetRandomShowcaseSalesItemResult.js +48 -0
  44. package/showcase/result/GetRandomShowcaseSalesItemResult.js.map +1 -0
  45. package/showcase/result/GetRandomShowcaseSalesItemResult.ts +48 -0
  46. package/showcase/result/index.d.ts +7 -3
  47. package/showcase/result/index.js +13 -5
  48. package/showcase/result/index.js.map +1 -1
  49. package/showcase/result/index.ts +12 -4
package/showcase/rest.ts CHANGED
@@ -1180,8 +1180,8 @@ export default class Gs2ShowcaseRestClient extends AbstractGs2RestClient {
1180
1180
  });
1181
1181
  }
1182
1182
 
1183
- public randomShowcaseBuy(request: Request.RandomShowcaseBuyRequest): Promise<Result.RandomShowcaseBuyResult> {
1184
- const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/random/showcase/{showcaseName}/{displayItemName}')
1183
+ public getRandomShowcaseSalesItem(request: Request.GetRandomShowcaseSalesItemRequest): Promise<Result.GetRandomShowcaseSalesItemResult> {
1184
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/random/showcase/{showcaseName}/displayItem/{displayItemName}')
1185
1185
  .replace('{service}', 'showcase')
1186
1186
  .replace('{region}', this.session.region)
1187
1187
  .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
@@ -1195,13 +1195,70 @@ export default class Gs2ShowcaseRestClient extends AbstractGs2RestClient {
1195
1195
  if (request.getAccessToken()) {
1196
1196
  headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
1197
1197
  }
1198
+ const params: {[key: string]: any} = {
1199
+ 'contextStack': request.getContextStack() ?? null,
1200
+ };
1201
+ return axios.get(
1202
+ url,
1203
+ {
1204
+ params,
1205
+ headers,
1206
+ },
1207
+ ).then((response: any) => {
1208
+ return Result.GetRandomShowcaseSalesItemResult.fromDict(response.data);
1209
+ }).catch((error: any) => {
1210
+ throw JSON.parse(error.response.data.message);
1211
+ });
1212
+ }
1213
+
1214
+ public getRandomShowcaseSalesItemByUserId(request: Request.GetRandomShowcaseSalesItemByUserIdRequest): Promise<Result.GetRandomShowcaseSalesItemByUserIdResult> {
1215
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/random/showcase/{showcaseName}/displayItem/{displayItemName}')
1216
+ .replace('{service}', 'showcase')
1217
+ .replace('{region}', this.session.region)
1218
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1219
+ .replace('{showcaseName}', String(request.getShowcaseName() ?? 'null') === "" ? "null" : String(request.getShowcaseName() ?? 'null'))
1220
+ .replace('{displayItemName}', String(request.getDisplayItemName() ?? 'null') === "" ? "null" : String(request.getDisplayItemName() ?? 'null'))
1221
+ .replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
1222
+
1223
+ const headers = this.createAuthorizedHeaders();
1224
+ if (request.getRequestId()) {
1225
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1226
+ }
1227
+ const params: {[key: string]: any} = {
1228
+ 'contextStack': request.getContextStack() ?? null,
1229
+ };
1230
+ return axios.get(
1231
+ url,
1232
+ {
1233
+ params,
1234
+ headers,
1235
+ },
1236
+ ).then((response: any) => {
1237
+ return Result.GetRandomShowcaseSalesItemByUserIdResult.fromDict(response.data);
1238
+ }).catch((error: any) => {
1239
+ throw JSON.parse(error.response.data.message);
1240
+ });
1241
+ }
1242
+
1243
+ public incrementPurchaseCountByUserId(request: Request.IncrementPurchaseCountByUserIdRequest): Promise<Result.IncrementPurchaseCountByUserIdResult> {
1244
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/random/showcase/user/{userId}/status/{showcaseName}/{displayItemName}/purchase/count')
1245
+ .replace('{service}', 'showcase')
1246
+ .replace('{region}', this.session.region)
1247
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1248
+ .replace('{showcaseName}', String(request.getShowcaseName() ?? 'null') === "" ? "null" : String(request.getShowcaseName() ?? 'null'))
1249
+ .replace('{displayItemName}', String(request.getDisplayItemName() ?? 'null') === "" ? "null" : String(request.getDisplayItemName() ?? 'null'))
1250
+ .replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
1251
+
1252
+ const headers = this.createAuthorizedHeaders();
1253
+ if (request.getRequestId()) {
1254
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1255
+ }
1198
1256
  if (request.getDuplicationAvoider()) {
1199
1257
  headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
1200
1258
  }
1201
1259
  const body: {[key: string]: any} = {
1202
1260
  'contextStack': request.getContextStack() ?? null,
1203
- 'quantity': request.getQuantity() ?? null,
1204
- 'config': request.getConfig()?.map((item) => item.toDict()) ?? null,
1261
+ 'count': request.getCount() ?? null,
1205
1262
  };
1206
1263
  return axios.post(
1207
1264
  url,
@@ -1210,7 +1267,7 @@ export default class Gs2ShowcaseRestClient extends AbstractGs2RestClient {
1210
1267
  headers,
1211
1268
  },
1212
1269
  ).then((response: any) => {
1213
- return Result.RandomShowcaseBuyResult.fromDict(response.data);
1270
+ return Result.IncrementPurchaseCountByUserIdResult.fromDict(response.data);
1214
1271
  }).catch((error: any) => {
1215
1272
  if (error.response) {
1216
1273
  throw JSON.parse(error.response.data.message);
@@ -1220,13 +1277,43 @@ export default class Gs2ShowcaseRestClient extends AbstractGs2RestClient {
1220
1277
  });
1221
1278
  }
1222
1279
 
1223
- public randomShowcaseBuyByUserId(request: Request.RandomShowcaseBuyByUserIdRequest): Promise<Result.RandomShowcaseBuyByUserIdResult> {
1224
- const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/random/showcase/{showcaseName}/{displayItemName}')
1280
+ public incrementPurchaseCountByStampTask(request: Request.IncrementPurchaseCountByStampTaskRequest): Promise<Result.IncrementPurchaseCountByStampTaskResult> {
1281
+ const url = (Gs2Constant.ENDPOINT_HOST + '/stamp/random/showcase/status/purchase/count')
1282
+ .replace('{service}', 'showcase')
1283
+ .replace('{region}', this.session.region);
1284
+
1285
+ const headers = this.createAuthorizedHeaders();
1286
+ if (request.getRequestId()) {
1287
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1288
+ }
1289
+ const body: {[key: string]: any} = {
1290
+ 'contextStack': request.getContextStack() ?? null,
1291
+ 'stampTask': request.getStampTask() ?? null,
1292
+ 'keyId': request.getKeyId() ?? null,
1293
+ };
1294
+ return axios.post(
1295
+ url,
1296
+ body,
1297
+ {
1298
+ headers,
1299
+ },
1300
+ ).then((response: any) => {
1301
+ return Result.IncrementPurchaseCountByStampTaskResult.fromDict(response.data);
1302
+ }).catch((error: any) => {
1303
+ if (error.response) {
1304
+ throw JSON.parse(error.response.data.message);
1305
+ } else {
1306
+ throw [];
1307
+ }
1308
+ });
1309
+ }
1310
+
1311
+ public forceReDrawByUserId(request: Request.ForceReDrawByUserIdRequest): Promise<Result.ForceReDrawByUserIdResult> {
1312
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/random/showcase/{showcaseName}/user/{userId}')
1225
1313
  .replace('{service}', 'showcase')
1226
1314
  .replace('{region}', this.session.region)
1227
1315
  .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1228
1316
  .replace('{showcaseName}', String(request.getShowcaseName() ?? 'null') === "" ? "null" : String(request.getShowcaseName() ?? 'null'))
1229
- .replace('{displayItemName}', String(request.getDisplayItemName() ?? 'null') === "" ? "null" : String(request.getDisplayItemName() ?? 'null'))
1230
1317
  .replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
1231
1318
 
1232
1319
  const headers = this.createAuthorizedHeaders();
@@ -1236,10 +1323,35 @@ export default class Gs2ShowcaseRestClient extends AbstractGs2RestClient {
1236
1323
  if (request.getDuplicationAvoider()) {
1237
1324
  headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
1238
1325
  }
1326
+ const params: {[key: string]: any} = {
1327
+ 'contextStack': request.getContextStack() ?? null,
1328
+ };
1329
+ return axios.delete(
1330
+ url,
1331
+ {
1332
+ params,
1333
+ headers,
1334
+ },
1335
+ ).then((response: any) => {
1336
+ return Result.ForceReDrawByUserIdResult.fromDict(response.data);
1337
+ }).catch((error: any) => {
1338
+ throw JSON.parse(error.response.data.message);
1339
+ });
1340
+ }
1341
+
1342
+ public forceReDrawByUserIdByStampSheet(request: Request.ForceReDrawByUserIdByStampSheetRequest): Promise<Result.ForceReDrawByUserIdByStampSheetResult> {
1343
+ const url = (Gs2Constant.ENDPOINT_HOST + '/stamp/random/showcase/status/redraw')
1344
+ .replace('{service}', 'showcase')
1345
+ .replace('{region}', this.session.region);
1346
+
1347
+ const headers = this.createAuthorizedHeaders();
1348
+ if (request.getRequestId()) {
1349
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1350
+ }
1239
1351
  const body: {[key: string]: any} = {
1240
1352
  'contextStack': request.getContextStack() ?? null,
1241
- 'quantity': request.getQuantity() ?? null,
1242
- 'config': request.getConfig()?.map((item) => item.toDict()) ?? null,
1353
+ 'stampSheet': request.getStampSheet() ?? null,
1354
+ 'keyId': request.getKeyId() ?? null,
1243
1355
  };
1244
1356
  return axios.post(
1245
1357
  url,
@@ -1248,7 +1360,7 @@ export default class Gs2ShowcaseRestClient extends AbstractGs2RestClient {
1248
1360
  headers,
1249
1361
  },
1250
1362
  ).then((response: any) => {
1251
- return Result.RandomShowcaseBuyByUserIdResult.fromDict(response.data);
1363
+ return Result.ForceReDrawByUserIdByStampSheetResult.fromDict(response.data);
1252
1364
  }).catch((error: any) => {
1253
1365
  if (error.response) {
1254
1366
  throw JSON.parse(error.response.data.message);
@@ -1258,25 +1370,28 @@ export default class Gs2ShowcaseRestClient extends AbstractGs2RestClient {
1258
1370
  });
1259
1371
  }
1260
1372
 
1261
- public incrementPurchaseCountByUserId(request: Request.IncrementPurchaseCountByUserIdRequest): Promise<Result.IncrementPurchaseCountByUserIdResult> {
1262
- const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/random/showcase/user/{userId}/status/{showcaseName}/{displayItemName}/purchase/count')
1373
+ public randomShowcaseBuy(request: Request.RandomShowcaseBuyRequest): Promise<Result.RandomShowcaseBuyResult> {
1374
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/random/showcase/{showcaseName}/{displayItemName}')
1263
1375
  .replace('{service}', 'showcase')
1264
1376
  .replace('{region}', this.session.region)
1265
1377
  .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1266
1378
  .replace('{showcaseName}', String(request.getShowcaseName() ?? 'null') === "" ? "null" : String(request.getShowcaseName() ?? 'null'))
1267
- .replace('{displayItemName}', String(request.getDisplayItemName() ?? 'null') === "" ? "null" : String(request.getDisplayItemName() ?? 'null'))
1268
- .replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
1379
+ .replace('{displayItemName}', String(request.getDisplayItemName() ?? 'null') === "" ? "null" : String(request.getDisplayItemName() ?? 'null'));
1269
1380
 
1270
1381
  const headers = this.createAuthorizedHeaders();
1271
1382
  if (request.getRequestId()) {
1272
1383
  headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1273
1384
  }
1385
+ if (request.getAccessToken()) {
1386
+ headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
1387
+ }
1274
1388
  if (request.getDuplicationAvoider()) {
1275
1389
  headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
1276
1390
  }
1277
1391
  const body: {[key: string]: any} = {
1278
1392
  'contextStack': request.getContextStack() ?? null,
1279
- 'count': request.getCount() ?? null,
1393
+ 'quantity': request.getQuantity() ?? null,
1394
+ 'config': request.getConfig()?.map((item) => item.toDict()) ?? null,
1280
1395
  };
1281
1396
  return axios.post(
1282
1397
  url,
@@ -1285,7 +1400,7 @@ export default class Gs2ShowcaseRestClient extends AbstractGs2RestClient {
1285
1400
  headers,
1286
1401
  },
1287
1402
  ).then((response: any) => {
1288
- return Result.IncrementPurchaseCountByUserIdResult.fromDict(response.data);
1403
+ return Result.RandomShowcaseBuyResult.fromDict(response.data);
1289
1404
  }).catch((error: any) => {
1290
1405
  if (error.response) {
1291
1406
  throw JSON.parse(error.response.data.message);
@@ -1295,19 +1410,26 @@ export default class Gs2ShowcaseRestClient extends AbstractGs2RestClient {
1295
1410
  });
1296
1411
  }
1297
1412
 
1298
- public incrementPurchaseCountByStampTask(request: Request.IncrementPurchaseCountByStampTaskRequest): Promise<Result.IncrementPurchaseCountByStampTaskResult> {
1299
- const url = (Gs2Constant.ENDPOINT_HOST + '/stamp/random/showcase/status/purchase/count')
1413
+ public randomShowcaseBuyByUserId(request: Request.RandomShowcaseBuyByUserIdRequest): Promise<Result.RandomShowcaseBuyByUserIdResult> {
1414
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/random/showcase/{showcaseName}/{displayItemName}')
1300
1415
  .replace('{service}', 'showcase')
1301
- .replace('{region}', this.session.region);
1416
+ .replace('{region}', this.session.region)
1417
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1418
+ .replace('{showcaseName}', String(request.getShowcaseName() ?? 'null') === "" ? "null" : String(request.getShowcaseName() ?? 'null'))
1419
+ .replace('{displayItemName}', String(request.getDisplayItemName() ?? 'null') === "" ? "null" : String(request.getDisplayItemName() ?? 'null'))
1420
+ .replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
1302
1421
 
1303
1422
  const headers = this.createAuthorizedHeaders();
1304
1423
  if (request.getRequestId()) {
1305
1424
  headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1306
1425
  }
1426
+ if (request.getDuplicationAvoider()) {
1427
+ headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
1428
+ }
1307
1429
  const body: {[key: string]: any} = {
1308
1430
  'contextStack': request.getContextStack() ?? null,
1309
- 'stampTask': request.getStampTask() ?? null,
1310
- 'keyId': request.getKeyId() ?? null,
1431
+ 'quantity': request.getQuantity() ?? null,
1432
+ 'config': request.getConfig()?.map((item) => item.toDict()) ?? null,
1311
1433
  };
1312
1434
  return axios.post(
1313
1435
  url,
@@ -1316,7 +1438,7 @@ export default class Gs2ShowcaseRestClient extends AbstractGs2RestClient {
1316
1438
  headers,
1317
1439
  },
1318
1440
  ).then((response: any) => {
1319
- return Result.IncrementPurchaseCountByStampTaskResult.fromDict(response.data);
1441
+ return Result.RandomShowcaseBuyByUserIdResult.fromDict(response.data);
1320
1442
  }).catch((error: any) => {
1321
1443
  if (error.response) {
1322
1444
  throw JSON.parse(error.response.data.message);
@@ -0,0 +1,14 @@
1
+ import IResult from '../../core/interface/IResult';
2
+ import * as Gs2Showcase from '../model';
3
+ export default class ForceReDrawByUserIdByStampSheetResult implements IResult {
4
+ private items;
5
+ getItems(): Gs2Showcase.RandomDisplayItem[] | null;
6
+ setItems(items: Gs2Showcase.RandomDisplayItem[] | null): this;
7
+ withItems(items: Gs2Showcase.RandomDisplayItem[] | null): this;
8
+ static fromDict(data: {
9
+ [key: string]: any;
10
+ }): ForceReDrawByUserIdByStampSheetResult;
11
+ toDict(): {
12
+ [key: string]: any;
13
+ };
14
+ }
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ Reserved.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License").
7
+ You may not use this file except in compliance with the License.
8
+ A copy of the License is located at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ or in the "license" file accompanying this file. This file is distributed
13
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ express or implied. See the License for the specific language governing
15
+ permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var tslib_1 = require("tslib");
19
+ var Gs2Showcase = tslib_1.__importStar(require("../model"));
20
+ var ForceReDrawByUserIdByStampSheetResult = /** @class */ (function () {
21
+ function ForceReDrawByUserIdByStampSheetResult() {
22
+ this.items = null;
23
+ }
24
+ ForceReDrawByUserIdByStampSheetResult.prototype.getItems = function () {
25
+ return this.items;
26
+ };
27
+ ForceReDrawByUserIdByStampSheetResult.prototype.setItems = function (items) {
28
+ this.items = items;
29
+ return this;
30
+ };
31
+ ForceReDrawByUserIdByStampSheetResult.prototype.withItems = function (items) {
32
+ this.items = items;
33
+ return this;
34
+ };
35
+ ForceReDrawByUserIdByStampSheetResult.fromDict = function (data) {
36
+ return new ForceReDrawByUserIdByStampSheetResult()
37
+ .withItems(data.items ?
38
+ data.items.map(function (item) {
39
+ return Gs2Showcase.RandomDisplayItem.fromDict(item);
40
+ }) : []);
41
+ };
42
+ ForceReDrawByUserIdByStampSheetResult.prototype.toDict = function () {
43
+ return {
44
+ "items": this.getItems() ?
45
+ this.getItems().map(function (item) {
46
+ return item.toDict();
47
+ }) : [],
48
+ };
49
+ };
50
+ return ForceReDrawByUserIdByStampSheetResult;
51
+ }());
52
+ exports.default = ForceReDrawByUserIdByStampSheetResult;
53
+ //# sourceMappingURL=ForceReDrawByUserIdByStampSheetResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForceReDrawByUserIdByStampSheetResult.js","sourceRoot":"","sources":["ForceReDrawByUserIdByStampSheetResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,4DAAuC;AAEvC;IAAA;QACY,UAAK,GAAyC,IAAI,CAAC;IAkC/D,CAAC;IAhCU,wDAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,wDAAQ,GAAf,UAAgB,KAA2C;QACvD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,yDAAS,GAAhB,UAAiB,KAA2C;QACxD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,8CAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,qCAAqC,EAAE;aAC7C,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACtC,OAAO,WAAW,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACxD,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,sDAAM,GAAb;QACI,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAAmC;oBACrD,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,4CAAC;AAAD,CAAC,AAnCD,IAmCC"}
@@ -0,0 +1,56 @@
1
+ /*
2
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ Reserved.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License").
6
+ You may not use this file except in compliance with the License.
7
+ A copy of the License is located at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ or in the "license" file accompanying this file. This file is distributed
12
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ express or implied. See the License for the specific language governing
14
+ permissions and limitations under the License.
15
+ */
16
+
17
+ import IResult from '../../core/interface/IResult';
18
+
19
+ import * as Gs2Showcase from '../model'
20
+
21
+ export default class ForceReDrawByUserIdByStampSheetResult implements IResult {
22
+ private items: Gs2Showcase.RandomDisplayItem[]|null = null;
23
+
24
+ public getItems(): Gs2Showcase.RandomDisplayItem[]|null {
25
+ return this.items;
26
+ }
27
+
28
+ public setItems(items: Gs2Showcase.RandomDisplayItem[]|null) {
29
+ this.items = items;
30
+ return this;
31
+ }
32
+
33
+ public withItems(items: Gs2Showcase.RandomDisplayItem[]|null): this {
34
+ this.items = items;
35
+ return this;
36
+ }
37
+
38
+ public static fromDict(data: {[key: string]: any}): ForceReDrawByUserIdByStampSheetResult {
39
+ return new ForceReDrawByUserIdByStampSheetResult()
40
+ .withItems(data.items ?
41
+ data.items.map((item: {[key: string]: any}) => {
42
+ return Gs2Showcase.RandomDisplayItem.fromDict(item);
43
+ }
44
+ ) : []);
45
+ }
46
+
47
+ public toDict(): {[key: string]: any} {
48
+ return {
49
+ "items": this.getItems() ?
50
+ this.getItems()!.map((item: Gs2Showcase.RandomDisplayItem) => {
51
+ return item.toDict();
52
+ }
53
+ ) : [],
54
+ };
55
+ }
56
+ }
@@ -0,0 +1,14 @@
1
+ import IResult from '../../core/interface/IResult';
2
+ import * as Gs2Showcase from '../model';
3
+ export default class ForceReDrawByUserIdResult implements IResult {
4
+ private items;
5
+ getItems(): Gs2Showcase.RandomDisplayItem[] | null;
6
+ setItems(items: Gs2Showcase.RandomDisplayItem[] | null): this;
7
+ withItems(items: Gs2Showcase.RandomDisplayItem[] | null): this;
8
+ static fromDict(data: {
9
+ [key: string]: any;
10
+ }): ForceReDrawByUserIdResult;
11
+ toDict(): {
12
+ [key: string]: any;
13
+ };
14
+ }
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ Reserved.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License").
7
+ You may not use this file except in compliance with the License.
8
+ A copy of the License is located at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ or in the "license" file accompanying this file. This file is distributed
13
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ express or implied. See the License for the specific language governing
15
+ permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var tslib_1 = require("tslib");
19
+ var Gs2Showcase = tslib_1.__importStar(require("../model"));
20
+ var ForceReDrawByUserIdResult = /** @class */ (function () {
21
+ function ForceReDrawByUserIdResult() {
22
+ this.items = null;
23
+ }
24
+ ForceReDrawByUserIdResult.prototype.getItems = function () {
25
+ return this.items;
26
+ };
27
+ ForceReDrawByUserIdResult.prototype.setItems = function (items) {
28
+ this.items = items;
29
+ return this;
30
+ };
31
+ ForceReDrawByUserIdResult.prototype.withItems = function (items) {
32
+ this.items = items;
33
+ return this;
34
+ };
35
+ ForceReDrawByUserIdResult.fromDict = function (data) {
36
+ return new ForceReDrawByUserIdResult()
37
+ .withItems(data.items ?
38
+ data.items.map(function (item) {
39
+ return Gs2Showcase.RandomDisplayItem.fromDict(item);
40
+ }) : []);
41
+ };
42
+ ForceReDrawByUserIdResult.prototype.toDict = function () {
43
+ return {
44
+ "items": this.getItems() ?
45
+ this.getItems().map(function (item) {
46
+ return item.toDict();
47
+ }) : [],
48
+ };
49
+ };
50
+ return ForceReDrawByUserIdResult;
51
+ }());
52
+ exports.default = ForceReDrawByUserIdResult;
53
+ //# sourceMappingURL=ForceReDrawByUserIdResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ForceReDrawByUserIdResult.js","sourceRoot":"","sources":["ForceReDrawByUserIdResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,4DAAuC;AAEvC;IAAA;QACY,UAAK,GAAyC,IAAI,CAAC;IAkC/D,CAAC;IAhCU,4CAAQ,GAAf;QACI,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,4CAAQ,GAAf,UAAgB,KAA2C;QACvD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,6CAAS,GAAhB,UAAiB,KAA2C;QACxD,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,kCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,yBAAyB,EAAE;aACjC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACtC,OAAO,WAAW,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACxD,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,0CAAM,GAAb;QACI,OAAO;YACH,OAAO,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACtB,IAAI,CAAC,QAAQ,EAAG,CAAC,GAAG,CAAC,UAAC,IAAmC;oBACrD,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,gCAAC;AAAD,CAAC,AAnCD,IAmCC"}
@@ -0,0 +1,56 @@
1
+ /*
2
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ Reserved.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License").
6
+ You may not use this file except in compliance with the License.
7
+ A copy of the License is located at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ or in the "license" file accompanying this file. This file is distributed
12
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ express or implied. See the License for the specific language governing
14
+ permissions and limitations under the License.
15
+ */
16
+
17
+ import IResult from '../../core/interface/IResult';
18
+
19
+ import * as Gs2Showcase from '../model'
20
+
21
+ export default class ForceReDrawByUserIdResult implements IResult {
22
+ private items: Gs2Showcase.RandomDisplayItem[]|null = null;
23
+
24
+ public getItems(): Gs2Showcase.RandomDisplayItem[]|null {
25
+ return this.items;
26
+ }
27
+
28
+ public setItems(items: Gs2Showcase.RandomDisplayItem[]|null) {
29
+ this.items = items;
30
+ return this;
31
+ }
32
+
33
+ public withItems(items: Gs2Showcase.RandomDisplayItem[]|null): this {
34
+ this.items = items;
35
+ return this;
36
+ }
37
+
38
+ public static fromDict(data: {[key: string]: any}): ForceReDrawByUserIdResult {
39
+ return new ForceReDrawByUserIdResult()
40
+ .withItems(data.items ?
41
+ data.items.map((item: {[key: string]: any}) => {
42
+ return Gs2Showcase.RandomDisplayItem.fromDict(item);
43
+ }
44
+ ) : []);
45
+ }
46
+
47
+ public toDict(): {[key: string]: any} {
48
+ return {
49
+ "items": this.getItems() ?
50
+ this.getItems()!.map((item: Gs2Showcase.RandomDisplayItem) => {
51
+ return item.toDict();
52
+ }
53
+ ) : [],
54
+ };
55
+ }
56
+ }
@@ -0,0 +1,14 @@
1
+ import IResult from '../../core/interface/IResult';
2
+ import * as Gs2Showcase from '../model';
3
+ export default class GetRandomShowcaseSalesItemByUserIdResult implements IResult {
4
+ private item;
5
+ getItem(): Gs2Showcase.RandomDisplayItem | null;
6
+ setItem(item: Gs2Showcase.RandomDisplayItem | null): this;
7
+ withItem(item: Gs2Showcase.RandomDisplayItem | null): this;
8
+ static fromDict(data: {
9
+ [key: string]: any;
10
+ }): GetRandomShowcaseSalesItemByUserIdResult;
11
+ toDict(): {
12
+ [key: string]: any;
13
+ };
14
+ }
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /*
3
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
4
+ Reserved.
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License").
7
+ You may not use this file except in compliance with the License.
8
+ A copy of the License is located at
9
+
10
+ http://www.apache.org/licenses/LICENSE-2.0
11
+
12
+ or in the "license" file accompanying this file. This file is distributed
13
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
14
+ express or implied. See the License for the specific language governing
15
+ permissions and limitations under the License.
16
+ */
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ var tslib_1 = require("tslib");
19
+ var Gs2Showcase = tslib_1.__importStar(require("../model"));
20
+ var GetRandomShowcaseSalesItemByUserIdResult = /** @class */ (function () {
21
+ function GetRandomShowcaseSalesItemByUserIdResult() {
22
+ this.item = null;
23
+ }
24
+ GetRandomShowcaseSalesItemByUserIdResult.prototype.getItem = function () {
25
+ return this.item;
26
+ };
27
+ GetRandomShowcaseSalesItemByUserIdResult.prototype.setItem = function (item) {
28
+ this.item = item;
29
+ return this;
30
+ };
31
+ GetRandomShowcaseSalesItemByUserIdResult.prototype.withItem = function (item) {
32
+ this.item = item;
33
+ return this;
34
+ };
35
+ GetRandomShowcaseSalesItemByUserIdResult.fromDict = function (data) {
36
+ return new GetRandomShowcaseSalesItemByUserIdResult()
37
+ .withItem(Gs2Showcase.RandomDisplayItem.fromDict(data["item"]));
38
+ };
39
+ GetRandomShowcaseSalesItemByUserIdResult.prototype.toDict = function () {
40
+ var _a;
41
+ return {
42
+ "item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
43
+ };
44
+ };
45
+ return GetRandomShowcaseSalesItemByUserIdResult;
46
+ }());
47
+ exports.default = GetRandomShowcaseSalesItemByUserIdResult;
48
+ //# sourceMappingURL=GetRandomShowcaseSalesItemByUserIdResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GetRandomShowcaseSalesItemByUserIdResult.js","sourceRoot":"","sources":["GetRandomShowcaseSalesItemByUserIdResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAIH,4DAAuC;AAEvC;IAAA;QACY,SAAI,GAAuC,IAAI,CAAC;IA0B5D,CAAC;IAxBU,0DAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,0DAAO,GAAd,UAAe,IAAwC;QACnD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,2DAAQ,GAAf,UAAgB,IAAwC;QACpD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,iDAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,wCAAwC,EAAE;aAChD,QAAQ,CAAC,WAAW,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACxE,CAAC;IAEM,yDAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,+CAAC;AAAD,CAAC,AA3BD,IA2BC"}
@@ -0,0 +1,48 @@
1
+ /*
2
+ Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
3
+ Reserved.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License").
6
+ You may not use this file except in compliance with the License.
7
+ A copy of the License is located at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ or in the "license" file accompanying this file. This file is distributed
12
+ on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13
+ express or implied. See the License for the specific language governing
14
+ permissions and limitations under the License.
15
+ */
16
+
17
+ import IResult from '../../core/interface/IResult';
18
+
19
+ import * as Gs2Showcase from '../model'
20
+
21
+ export default class GetRandomShowcaseSalesItemByUserIdResult implements IResult {
22
+ private item: Gs2Showcase.RandomDisplayItem|null = null;
23
+
24
+ public getItem(): Gs2Showcase.RandomDisplayItem|null {
25
+ return this.item;
26
+ }
27
+
28
+ public setItem(item: Gs2Showcase.RandomDisplayItem|null) {
29
+ this.item = item;
30
+ return this;
31
+ }
32
+
33
+ public withItem(item: Gs2Showcase.RandomDisplayItem|null): this {
34
+ this.item = item;
35
+ return this;
36
+ }
37
+
38
+ public static fromDict(data: {[key: string]: any}): GetRandomShowcaseSalesItemByUserIdResult {
39
+ return new GetRandomShowcaseSalesItemByUserIdResult()
40
+ .withItem(Gs2Showcase.RandomDisplayItem.fromDict(data["item"]));
41
+ }
42
+
43
+ public toDict(): {[key: string]: any} {
44
+ return {
45
+ "item": this.getItem()?.toDict(),
46
+ };
47
+ }
48
+ }