gs2 1.3.250 → 1.3.253

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 (211) hide show
  1. package/matchmaking/model/{CurrentRatingModelMaster.d.ts → CurrentModelMaster.d.ts} +2 -2
  2. package/matchmaking/model/{CurrentRatingModelMaster.js → CurrentModelMaster.js} +19 -19
  3. package/matchmaking/model/CurrentModelMaster.js.map +1 -0
  4. package/matchmaking/model/{CurrentRatingModelMaster.ts → CurrentModelMaster.ts} +3 -3
  5. package/matchmaking/model/JoinedSeasonGathering.d.ts +45 -0
  6. package/matchmaking/model/JoinedSeasonGathering.js +241 -0
  7. package/matchmaking/model/JoinedSeasonGathering.js.map +1 -0
  8. package/matchmaking/model/JoinedSeasonGathering.ts +260 -0
  9. package/matchmaking/model/SeasonGathering.d.ts +50 -0
  10. package/matchmaking/model/SeasonGathering.js +285 -0
  11. package/matchmaking/model/SeasonGathering.js.map +1 -0
  12. package/matchmaking/model/SeasonGathering.ts +309 -0
  13. package/matchmaking/model/SeasonModel.d.ts +39 -0
  14. package/matchmaking/model/SeasonModel.js +185 -0
  15. package/matchmaking/model/SeasonModel.js.map +1 -0
  16. package/matchmaking/model/SeasonModel.ts +198 -0
  17. package/matchmaking/model/SeasonModelMaster.d.ts +55 -0
  18. package/matchmaking/model/SeasonModelMaster.js +241 -0
  19. package/matchmaking/model/SeasonModelMaster.js.map +1 -0
  20. package/matchmaking/model/SeasonModelMaster.ts +254 -0
  21. package/matchmaking/model/index.d.ts +6 -2
  22. package/matchmaking/model/index.js +11 -3
  23. package/matchmaking/model/index.js.map +1 -1
  24. package/matchmaking/model/index.ts +10 -2
  25. package/matchmaking/request/CreateSeasonModelMasterRequest.d.ts +45 -0
  26. package/matchmaking/request/CreateSeasonModelMasterRequest.js +153 -0
  27. package/matchmaking/request/CreateSeasonModelMasterRequest.js.map +1 -0
  28. package/matchmaking/request/CreateSeasonModelMasterRequest.ts +160 -0
  29. package/matchmaking/request/DeleteSeasonGatheringRequest.d.ts +37 -0
  30. package/matchmaking/request/DeleteSeasonGatheringRequest.js +125 -0
  31. package/matchmaking/request/DeleteSeasonGatheringRequest.js.map +1 -0
  32. package/matchmaking/request/DeleteSeasonGatheringRequest.ts +132 -0
  33. package/matchmaking/request/DeleteSeasonModelMasterRequest.d.ts +25 -0
  34. package/matchmaking/request/DeleteSeasonModelMasterRequest.js +83 -0
  35. package/matchmaking/request/DeleteSeasonModelMasterRequest.js.map +1 -0
  36. package/matchmaking/request/DeleteSeasonModelMasterRequest.ts +90 -0
  37. package/matchmaking/request/DescribeJoinedSeasonGatheringsByUserIdRequest.d.ts +41 -0
  38. package/matchmaking/request/DescribeJoinedSeasonGatheringsByUserIdRequest.js +139 -0
  39. package/matchmaking/request/DescribeJoinedSeasonGatheringsByUserIdRequest.js.map +1 -0
  40. package/matchmaking/request/DescribeJoinedSeasonGatheringsByUserIdRequest.ts +146 -0
  41. package/matchmaking/request/DescribeJoinedSeasonGatheringsRequest.d.ts +37 -0
  42. package/matchmaking/request/DescribeJoinedSeasonGatheringsRequest.js +125 -0
  43. package/matchmaking/request/DescribeJoinedSeasonGatheringsRequest.js.map +1 -0
  44. package/matchmaking/request/DescribeJoinedSeasonGatheringsRequest.ts +132 -0
  45. package/matchmaking/request/DescribeMatchmakingSeasonGatheringsRequest.d.ts +41 -0
  46. package/matchmaking/request/DescribeMatchmakingSeasonGatheringsRequest.js +139 -0
  47. package/matchmaking/request/DescribeMatchmakingSeasonGatheringsRequest.js.map +1 -0
  48. package/matchmaking/request/DescribeMatchmakingSeasonGatheringsRequest.ts +146 -0
  49. package/matchmaking/request/DescribeSeasonGatheringsRequest.d.ts +41 -0
  50. package/matchmaking/request/DescribeSeasonGatheringsRequest.js +139 -0
  51. package/matchmaking/request/DescribeSeasonGatheringsRequest.js.map +1 -0
  52. package/matchmaking/request/DescribeSeasonGatheringsRequest.ts +146 -0
  53. package/matchmaking/request/DescribeSeasonModelMastersRequest.d.ts +29 -0
  54. package/matchmaking/request/DescribeSeasonModelMastersRequest.js +97 -0
  55. package/matchmaking/request/DescribeSeasonModelMastersRequest.js.map +1 -0
  56. package/matchmaking/request/DescribeSeasonModelMastersRequest.ts +104 -0
  57. package/matchmaking/request/{GetCurrentRatingModelMasterRequest.d.ts → DescribeSeasonModelsRequest.d.ts} +2 -2
  58. package/matchmaking/request/DescribeSeasonModelsRequest.js +69 -0
  59. package/matchmaking/request/DescribeSeasonModelsRequest.js.map +1 -0
  60. package/matchmaking/request/DescribeSeasonModelsRequest.ts +76 -0
  61. package/matchmaking/request/DoSeasonMatchmakingByUserIdRequest.d.ts +41 -0
  62. package/matchmaking/request/DoSeasonMatchmakingByUserIdRequest.js +137 -0
  63. package/matchmaking/request/DoSeasonMatchmakingByUserIdRequest.js.map +1 -0
  64. package/matchmaking/request/DoSeasonMatchmakingByUserIdRequest.ts +147 -0
  65. package/matchmaking/request/DoSeasonMatchmakingRequest.d.ts +37 -0
  66. package/matchmaking/request/DoSeasonMatchmakingRequest.js +123 -0
  67. package/matchmaking/request/DoSeasonMatchmakingRequest.js.map +1 -0
  68. package/matchmaking/request/DoSeasonMatchmakingRequest.ts +133 -0
  69. package/matchmaking/request/GetCurrentModelMasterRequest.d.ts +21 -0
  70. package/matchmaking/request/{GetCurrentRatingModelMasterRequest.js → GetCurrentModelMasterRequest.js} +17 -17
  71. package/matchmaking/request/GetCurrentModelMasterRequest.js.map +1 -0
  72. package/matchmaking/request/{GetCurrentRatingModelMasterRequest.ts → GetCurrentModelMasterRequest.ts} +3 -3
  73. package/matchmaking/request/GetJoinedSeasonGatheringByUserIdRequest.d.ts +37 -0
  74. package/matchmaking/request/GetJoinedSeasonGatheringByUserIdRequest.js +125 -0
  75. package/matchmaking/request/GetJoinedSeasonGatheringByUserIdRequest.js.map +1 -0
  76. package/matchmaking/request/GetJoinedSeasonGatheringByUserIdRequest.ts +132 -0
  77. package/matchmaking/request/GetJoinedSeasonGatheringRequest.d.ts +33 -0
  78. package/matchmaking/request/GetJoinedSeasonGatheringRequest.js +111 -0
  79. package/matchmaking/request/GetJoinedSeasonGatheringRequest.js.map +1 -0
  80. package/matchmaking/request/GetJoinedSeasonGatheringRequest.ts +118 -0
  81. package/matchmaking/request/GetSeasonGatheringRequest.d.ts +37 -0
  82. package/matchmaking/request/GetSeasonGatheringRequest.js +125 -0
  83. package/matchmaking/request/GetSeasonGatheringRequest.js.map +1 -0
  84. package/matchmaking/request/GetSeasonGatheringRequest.ts +132 -0
  85. package/matchmaking/request/GetSeasonModelMasterRequest.d.ts +25 -0
  86. package/matchmaking/request/GetSeasonModelMasterRequest.js +83 -0
  87. package/matchmaking/request/GetSeasonModelMasterRequest.js.map +1 -0
  88. package/matchmaking/request/GetSeasonModelMasterRequest.ts +90 -0
  89. package/matchmaking/request/GetSeasonModelRequest.d.ts +25 -0
  90. package/matchmaking/request/GetSeasonModelRequest.js +83 -0
  91. package/matchmaking/request/GetSeasonModelRequest.js.map +1 -0
  92. package/matchmaking/request/GetSeasonModelRequest.ts +90 -0
  93. package/matchmaking/request/{UpdateCurrentRatingModelMasterFromGitHubRequest.d.ts → UpdateCurrentModelMasterFromGitHubRequest.d.ts} +2 -2
  94. package/matchmaking/request/{UpdateCurrentRatingModelMasterFromGitHubRequest.js → UpdateCurrentModelMasterFromGitHubRequest.js} +20 -20
  95. package/matchmaking/request/UpdateCurrentModelMasterFromGitHubRequest.js.map +1 -0
  96. package/matchmaking/request/{UpdateCurrentRatingModelMasterFromGitHubRequest.ts → UpdateCurrentModelMasterFromGitHubRequest.ts} +3 -3
  97. package/matchmaking/request/{UpdateCurrentRatingModelMasterRequest.d.ts → UpdateCurrentModelMasterRequest.d.ts} +2 -2
  98. package/matchmaking/request/{UpdateCurrentRatingModelMasterRequest.js → UpdateCurrentModelMasterRequest.js} +20 -20
  99. package/matchmaking/request/UpdateCurrentModelMasterRequest.js.map +1 -0
  100. package/matchmaking/request/{UpdateCurrentRatingModelMasterRequest.ts → UpdateCurrentModelMasterRequest.ts} +3 -3
  101. package/matchmaking/request/UpdateSeasonModelMasterRequest.d.ts +45 -0
  102. package/matchmaking/request/UpdateSeasonModelMasterRequest.js +153 -0
  103. package/matchmaking/request/UpdateSeasonModelMasterRequest.js.map +1 -0
  104. package/matchmaking/request/UpdateSeasonModelMasterRequest.ts +160 -0
  105. package/matchmaking/request/index.d.ts +21 -4
  106. package/matchmaking/request/index.js +42 -8
  107. package/matchmaking/request/index.js.map +1 -1
  108. package/matchmaking/request/index.ts +40 -6
  109. package/matchmaking/rest.d.ts +20 -3
  110. package/matchmaking/rest.js +472 -6
  111. package/matchmaking/rest.js.map +1 -1
  112. package/matchmaking/rest.ts +540 -6
  113. package/matchmaking/result/CreateSeasonModelMasterResult.d.ts +14 -0
  114. package/matchmaking/result/{UpdateCurrentRatingModelMasterResult.js → CreateSeasonModelMasterResult.js} +12 -12
  115. package/matchmaking/result/CreateSeasonModelMasterResult.js.map +1 -0
  116. package/matchmaking/result/CreateSeasonModelMasterResult.ts +47 -0
  117. package/matchmaking/result/DeleteSeasonGatheringResult.d.ts +14 -0
  118. package/matchmaking/result/{UpdateCurrentRatingModelMasterFromGitHubResult.js → DeleteSeasonGatheringResult.js} +12 -12
  119. package/matchmaking/result/DeleteSeasonGatheringResult.js.map +1 -0
  120. package/matchmaking/result/DeleteSeasonGatheringResult.ts +47 -0
  121. package/matchmaking/result/DeleteSeasonModelMasterResult.d.ts +14 -0
  122. package/matchmaking/result/DeleteSeasonModelMasterResult.js +48 -0
  123. package/matchmaking/result/DeleteSeasonModelMasterResult.js.map +1 -0
  124. package/matchmaking/result/DeleteSeasonModelMasterResult.ts +47 -0
  125. package/matchmaking/result/DescribeJoinedSeasonGatheringsByUserIdResult.d.ts +18 -0
  126. package/matchmaking/result/DescribeJoinedSeasonGatheringsByUserIdResult.js +67 -0
  127. package/matchmaking/result/DescribeJoinedSeasonGatheringsByUserIdResult.js.map +1 -0
  128. package/matchmaking/result/DescribeJoinedSeasonGatheringsByUserIdResult.ts +72 -0
  129. package/matchmaking/result/DescribeJoinedSeasonGatheringsResult.d.ts +18 -0
  130. package/matchmaking/result/DescribeJoinedSeasonGatheringsResult.js +67 -0
  131. package/matchmaking/result/DescribeJoinedSeasonGatheringsResult.js.map +1 -0
  132. package/matchmaking/result/DescribeJoinedSeasonGatheringsResult.ts +72 -0
  133. package/matchmaking/result/DescribeMatchmakingSeasonGatheringsResult.d.ts +18 -0
  134. package/matchmaking/result/DescribeMatchmakingSeasonGatheringsResult.js +67 -0
  135. package/matchmaking/result/DescribeMatchmakingSeasonGatheringsResult.js.map +1 -0
  136. package/matchmaking/result/DescribeMatchmakingSeasonGatheringsResult.ts +72 -0
  137. package/matchmaking/result/DescribeSeasonGatheringsResult.d.ts +18 -0
  138. package/matchmaking/result/DescribeSeasonGatheringsResult.js +67 -0
  139. package/matchmaking/result/DescribeSeasonGatheringsResult.js.map +1 -0
  140. package/matchmaking/result/DescribeSeasonGatheringsResult.ts +72 -0
  141. package/matchmaking/result/DescribeSeasonModelMastersResult.d.ts +18 -0
  142. package/matchmaking/result/DescribeSeasonModelMastersResult.js +67 -0
  143. package/matchmaking/result/DescribeSeasonModelMastersResult.js.map +1 -0
  144. package/matchmaking/result/DescribeSeasonModelMastersResult.ts +72 -0
  145. package/matchmaking/result/DescribeSeasonModelsResult.d.ts +14 -0
  146. package/matchmaking/result/DescribeSeasonModelsResult.js +53 -0
  147. package/matchmaking/result/DescribeSeasonModelsResult.js.map +1 -0
  148. package/matchmaking/result/DescribeSeasonModelsResult.ts +55 -0
  149. package/matchmaking/result/DoSeasonMatchmakingByUserIdResult.d.ts +18 -0
  150. package/matchmaking/result/DoSeasonMatchmakingByUserIdResult.js +62 -0
  151. package/matchmaking/result/DoSeasonMatchmakingByUserIdResult.js.map +1 -0
  152. package/matchmaking/result/DoSeasonMatchmakingByUserIdResult.ts +64 -0
  153. package/matchmaking/result/DoSeasonMatchmakingResult.d.ts +18 -0
  154. package/matchmaking/result/DoSeasonMatchmakingResult.js +62 -0
  155. package/matchmaking/result/DoSeasonMatchmakingResult.js.map +1 -0
  156. package/matchmaking/result/DoSeasonMatchmakingResult.ts +64 -0
  157. package/matchmaking/result/ExportMasterResult.d.ts +3 -3
  158. package/matchmaking/result/ExportMasterResult.js +1 -1
  159. package/matchmaking/result/ExportMasterResult.js.map +1 -1
  160. package/matchmaking/result/ExportMasterResult.ts +5 -5
  161. package/matchmaking/result/GetCurrentModelMasterResult.d.ts +14 -0
  162. package/matchmaking/result/GetCurrentModelMasterResult.js +48 -0
  163. package/matchmaking/result/GetCurrentModelMasterResult.js.map +1 -0
  164. package/matchmaking/result/{GetCurrentRatingModelMasterResult.ts → GetCurrentModelMasterResult.ts} +8 -8
  165. package/matchmaking/result/GetJoinedSeasonGatheringByUserIdResult.d.ts +14 -0
  166. package/matchmaking/result/GetJoinedSeasonGatheringByUserIdResult.js +48 -0
  167. package/matchmaking/result/GetJoinedSeasonGatheringByUserIdResult.js.map +1 -0
  168. package/matchmaking/result/GetJoinedSeasonGatheringByUserIdResult.ts +47 -0
  169. package/matchmaking/result/GetJoinedSeasonGatheringResult.d.ts +14 -0
  170. package/matchmaking/result/{GetCurrentRatingModelMasterResult.js → GetJoinedSeasonGatheringResult.js} +12 -12
  171. package/matchmaking/result/GetJoinedSeasonGatheringResult.js.map +1 -0
  172. package/matchmaking/result/GetJoinedSeasonGatheringResult.ts +47 -0
  173. package/matchmaking/result/GetSeasonGatheringResult.d.ts +14 -0
  174. package/matchmaking/result/GetSeasonGatheringResult.js +48 -0
  175. package/matchmaking/result/GetSeasonGatheringResult.js.map +1 -0
  176. package/matchmaking/result/GetSeasonGatheringResult.ts +47 -0
  177. package/matchmaking/result/GetSeasonModelMasterResult.d.ts +14 -0
  178. package/matchmaking/result/GetSeasonModelMasterResult.js +48 -0
  179. package/matchmaking/result/GetSeasonModelMasterResult.js.map +1 -0
  180. package/matchmaking/result/GetSeasonModelMasterResult.ts +47 -0
  181. package/matchmaking/result/GetSeasonModelResult.d.ts +14 -0
  182. package/matchmaking/result/GetSeasonModelResult.js +48 -0
  183. package/matchmaking/result/GetSeasonModelResult.js.map +1 -0
  184. package/matchmaking/result/GetSeasonModelResult.ts +47 -0
  185. package/matchmaking/result/UpdateCurrentModelMasterFromGitHubResult.d.ts +14 -0
  186. package/matchmaking/result/UpdateCurrentModelMasterFromGitHubResult.js +48 -0
  187. package/matchmaking/result/UpdateCurrentModelMasterFromGitHubResult.js.map +1 -0
  188. package/matchmaking/result/{UpdateCurrentRatingModelMasterResult.ts → UpdateCurrentModelMasterFromGitHubResult.ts} +8 -8
  189. package/matchmaking/result/UpdateCurrentModelMasterResult.d.ts +14 -0
  190. package/matchmaking/result/UpdateCurrentModelMasterResult.js +48 -0
  191. package/matchmaking/result/UpdateCurrentModelMasterResult.js.map +1 -0
  192. package/matchmaking/result/{UpdateCurrentRatingModelMasterFromGitHubResult.ts → UpdateCurrentModelMasterResult.ts} +8 -8
  193. package/matchmaking/result/UpdateSeasonModelMasterResult.d.ts +14 -0
  194. package/matchmaking/result/UpdateSeasonModelMasterResult.js +48 -0
  195. package/matchmaking/result/UpdateSeasonModelMasterResult.js.map +1 -0
  196. package/matchmaking/result/UpdateSeasonModelMasterResult.ts +47 -0
  197. package/matchmaking/result/index.d.ts +21 -4
  198. package/matchmaking/result/index.js +42 -8
  199. package/matchmaking/result/index.js.map +1 -1
  200. package/matchmaking/result/index.ts +40 -6
  201. package/package.json +1 -1
  202. package/matchmaking/model/CurrentRatingModelMaster.js.map +0 -1
  203. package/matchmaking/request/GetCurrentRatingModelMasterRequest.js.map +0 -1
  204. package/matchmaking/request/UpdateCurrentRatingModelMasterFromGitHubRequest.js.map +0 -1
  205. package/matchmaking/request/UpdateCurrentRatingModelMasterRequest.js.map +0 -1
  206. package/matchmaking/result/GetCurrentRatingModelMasterResult.d.ts +0 -14
  207. package/matchmaking/result/GetCurrentRatingModelMasterResult.js.map +0 -1
  208. package/matchmaking/result/UpdateCurrentRatingModelMasterFromGitHubResult.d.ts +0 -14
  209. package/matchmaking/result/UpdateCurrentRatingModelMasterFromGitHubResult.js.map +0 -1
  210. package/matchmaking/result/UpdateCurrentRatingModelMasterResult.d.ts +0 -14
  211. package/matchmaking/result/UpdateCurrentRatingModelMasterResult.js.map +0 -1
@@ -1265,7 +1265,7 @@ export default class Gs2MatchmakingRestClient extends AbstractGs2RestClient {
1265
1265
  });
1266
1266
  }
1267
1267
 
1268
- public getCurrentRatingModelMaster(request: Request.GetCurrentRatingModelMasterRequest): Promise<Result.GetCurrentRatingModelMasterResult> {
1268
+ public getCurrentModelMaster(request: Request.GetCurrentModelMasterRequest): Promise<Result.GetCurrentModelMasterResult> {
1269
1269
  const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
1270
1270
  .replace('{service}', 'matchmaking')
1271
1271
  .replace('{region}', this.session.region)
@@ -1285,13 +1285,13 @@ export default class Gs2MatchmakingRestClient extends AbstractGs2RestClient {
1285
1285
  headers,
1286
1286
  },
1287
1287
  ).then((response: any) => {
1288
- return Result.GetCurrentRatingModelMasterResult.fromDict(response.data);
1288
+ return Result.GetCurrentModelMasterResult.fromDict(response.data);
1289
1289
  }).catch((error: any) => {
1290
1290
  throw JSON.parse(error.response.data.message);
1291
1291
  });
1292
1292
  }
1293
1293
 
1294
- public updateCurrentRatingModelMaster(request: Request.UpdateCurrentRatingModelMasterRequest): Promise<Result.UpdateCurrentRatingModelMasterResult> {
1294
+ public updateCurrentModelMaster(request: Request.UpdateCurrentModelMasterRequest): Promise<Result.UpdateCurrentModelMasterResult> {
1295
1295
  const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
1296
1296
  .replace('{service}', 'matchmaking')
1297
1297
  .replace('{region}', this.session.region)
@@ -1312,7 +1312,7 @@ export default class Gs2MatchmakingRestClient extends AbstractGs2RestClient {
1312
1312
  headers,
1313
1313
  },
1314
1314
  ).then((response: any) => {
1315
- return Result.UpdateCurrentRatingModelMasterResult.fromDict(response.data);
1315
+ return Result.UpdateCurrentModelMasterResult.fromDict(response.data);
1316
1316
  }).catch((error: any) => {
1317
1317
  if (error.response) {
1318
1318
  throw JSON.parse(error.response.data.message);
@@ -1322,7 +1322,7 @@ export default class Gs2MatchmakingRestClient extends AbstractGs2RestClient {
1322
1322
  });
1323
1323
  }
1324
1324
 
1325
- public updateCurrentRatingModelMasterFromGitHub(request: Request.UpdateCurrentRatingModelMasterFromGitHubRequest): Promise<Result.UpdateCurrentRatingModelMasterFromGitHubResult> {
1325
+ public updateCurrentModelMasterFromGitHub(request: Request.UpdateCurrentModelMasterFromGitHubRequest): Promise<Result.UpdateCurrentModelMasterFromGitHubResult> {
1326
1326
  const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
1327
1327
  .replace('{service}', 'matchmaking')
1328
1328
  .replace('{region}', this.session.region)
@@ -1343,7 +1343,7 @@ export default class Gs2MatchmakingRestClient extends AbstractGs2RestClient {
1343
1343
  headers,
1344
1344
  },
1345
1345
  ).then((response: any) => {
1346
- return Result.UpdateCurrentRatingModelMasterFromGitHubResult.fromDict(response.data);
1346
+ return Result.UpdateCurrentModelMasterFromGitHubResult.fromDict(response.data);
1347
1347
  }).catch((error: any) => {
1348
1348
  if (error.response) {
1349
1349
  throw JSON.parse(error.response.data.message);
@@ -1353,6 +1353,540 @@ export default class Gs2MatchmakingRestClient extends AbstractGs2RestClient {
1353
1353
  });
1354
1354
  }
1355
1355
 
1356
+ public describeSeasonModels(request: Request.DescribeSeasonModelsRequest): Promise<Result.DescribeSeasonModelsResult> {
1357
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/season')
1358
+ .replace('{service}', 'matchmaking')
1359
+ .replace('{region}', this.session.region)
1360
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1361
+
1362
+ const headers = this.createAuthorizedHeaders();
1363
+ if (request.getRequestId()) {
1364
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1365
+ }
1366
+ const params: {[key: string]: any} = {
1367
+ 'contextStack': request.getContextStack() ?? null,
1368
+ };
1369
+ return axios.get(
1370
+ url,
1371
+ {
1372
+ params,
1373
+ headers,
1374
+ },
1375
+ ).then((response: any) => {
1376
+ return Result.DescribeSeasonModelsResult.fromDict(response.data);
1377
+ }).catch((error: any) => {
1378
+ throw JSON.parse(error.response.data.message);
1379
+ });
1380
+ }
1381
+
1382
+ public getSeasonModel(request: Request.GetSeasonModelRequest): Promise<Result.GetSeasonModelResult> {
1383
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/season/{seasonName}')
1384
+ .replace('{service}', 'matchmaking')
1385
+ .replace('{region}', this.session.region)
1386
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1387
+ .replace('{seasonName}', String(request.getSeasonName() ?? 'null') === "" ? "null" : String(request.getSeasonName() ?? 'null'));
1388
+
1389
+ const headers = this.createAuthorizedHeaders();
1390
+ if (request.getRequestId()) {
1391
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1392
+ }
1393
+ const params: {[key: string]: any} = {
1394
+ 'contextStack': request.getContextStack() ?? null,
1395
+ };
1396
+ return axios.get(
1397
+ url,
1398
+ {
1399
+ params,
1400
+ headers,
1401
+ },
1402
+ ).then((response: any) => {
1403
+ return Result.GetSeasonModelResult.fromDict(response.data);
1404
+ }).catch((error: any) => {
1405
+ throw JSON.parse(error.response.data.message);
1406
+ });
1407
+ }
1408
+
1409
+ public describeSeasonModelMasters(request: Request.DescribeSeasonModelMastersRequest): Promise<Result.DescribeSeasonModelMastersResult> {
1410
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/season')
1411
+ .replace('{service}', 'matchmaking')
1412
+ .replace('{region}', this.session.region)
1413
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1414
+
1415
+ const headers = this.createAuthorizedHeaders();
1416
+ if (request.getRequestId()) {
1417
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1418
+ }
1419
+ const params: {[key: string]: any} = {
1420
+ 'contextStack': request.getContextStack() ?? null,
1421
+ 'pageToken': String(request.getPageToken() ?? null),
1422
+ 'limit': String(request.getLimit() ?? null),
1423
+ };
1424
+ return axios.get(
1425
+ url,
1426
+ {
1427
+ params,
1428
+ headers,
1429
+ },
1430
+ ).then((response: any) => {
1431
+ return Result.DescribeSeasonModelMastersResult.fromDict(response.data);
1432
+ }).catch((error: any) => {
1433
+ throw JSON.parse(error.response.data.message);
1434
+ });
1435
+ }
1436
+
1437
+ public createSeasonModelMaster(request: Request.CreateSeasonModelMasterRequest): Promise<Result.CreateSeasonModelMasterResult> {
1438
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/season')
1439
+ .replace('{service}', 'matchmaking')
1440
+ .replace('{region}', this.session.region)
1441
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'));
1442
+
1443
+ const headers = this.createAuthorizedHeaders();
1444
+ if (request.getRequestId()) {
1445
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1446
+ }
1447
+ const body: {[key: string]: any} = {
1448
+ 'contextStack': request.getContextStack() ?? null,
1449
+ 'name': request.getName() ?? null,
1450
+ 'description': request.getDescription() ?? null,
1451
+ 'metadata': request.getMetadata() ?? null,
1452
+ 'maximumParticipants': request.getMaximumParticipants() ?? null,
1453
+ 'experienceModelId': request.getExperienceModelId() ?? null,
1454
+ 'challengePeriodEventId': request.getChallengePeriodEventId() ?? null,
1455
+ };
1456
+ return axios.post(
1457
+ url,
1458
+ body,
1459
+ {
1460
+ headers,
1461
+ },
1462
+ ).then((response: any) => {
1463
+ return Result.CreateSeasonModelMasterResult.fromDict(response.data);
1464
+ }).catch((error: any) => {
1465
+ if (error.response) {
1466
+ throw JSON.parse(error.response.data.message);
1467
+ } else {
1468
+ throw [];
1469
+ }
1470
+ });
1471
+ }
1472
+
1473
+ public getSeasonModelMaster(request: Request.GetSeasonModelMasterRequest): Promise<Result.GetSeasonModelMasterResult> {
1474
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/season/{seasonName}')
1475
+ .replace('{service}', 'matchmaking')
1476
+ .replace('{region}', this.session.region)
1477
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1478
+ .replace('{seasonName}', String(request.getSeasonName() ?? 'null') === "" ? "null" : String(request.getSeasonName() ?? 'null'));
1479
+
1480
+ const headers = this.createAuthorizedHeaders();
1481
+ if (request.getRequestId()) {
1482
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1483
+ }
1484
+ const params: {[key: string]: any} = {
1485
+ 'contextStack': request.getContextStack() ?? null,
1486
+ };
1487
+ return axios.get(
1488
+ url,
1489
+ {
1490
+ params,
1491
+ headers,
1492
+ },
1493
+ ).then((response: any) => {
1494
+ return Result.GetSeasonModelMasterResult.fromDict(response.data);
1495
+ }).catch((error: any) => {
1496
+ throw JSON.parse(error.response.data.message);
1497
+ });
1498
+ }
1499
+
1500
+ public updateSeasonModelMaster(request: Request.UpdateSeasonModelMasterRequest): Promise<Result.UpdateSeasonModelMasterResult> {
1501
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/season/{seasonName}')
1502
+ .replace('{service}', 'matchmaking')
1503
+ .replace('{region}', this.session.region)
1504
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1505
+ .replace('{seasonName}', String(request.getSeasonName() ?? 'null') === "" ? "null" : String(request.getSeasonName() ?? 'null'));
1506
+
1507
+ const headers = this.createAuthorizedHeaders();
1508
+ if (request.getRequestId()) {
1509
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1510
+ }
1511
+ const body: {[key: string]: any} = {
1512
+ 'contextStack': request.getContextStack() ?? null,
1513
+ 'description': request.getDescription() ?? null,
1514
+ 'metadata': request.getMetadata() ?? null,
1515
+ 'maximumParticipants': request.getMaximumParticipants() ?? null,
1516
+ 'experienceModelId': request.getExperienceModelId() ?? null,
1517
+ 'challengePeriodEventId': request.getChallengePeriodEventId() ?? null,
1518
+ };
1519
+ return axios.put(
1520
+ url,
1521
+ body,
1522
+ {
1523
+ headers,
1524
+ },
1525
+ ).then((response: any) => {
1526
+ return Result.UpdateSeasonModelMasterResult.fromDict(response.data);
1527
+ }).catch((error: any) => {
1528
+ if (error.response) {
1529
+ throw JSON.parse(error.response.data.message);
1530
+ } else {
1531
+ throw [];
1532
+ }
1533
+ });
1534
+ }
1535
+
1536
+ public deleteSeasonModelMaster(request: Request.DeleteSeasonModelMasterRequest): Promise<Result.DeleteSeasonModelMasterResult> {
1537
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/season/{seasonName}')
1538
+ .replace('{service}', 'matchmaking')
1539
+ .replace('{region}', this.session.region)
1540
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1541
+ .replace('{seasonName}', String(request.getSeasonName() ?? 'null') === "" ? "null" : String(request.getSeasonName() ?? 'null'));
1542
+
1543
+ const headers = this.createAuthorizedHeaders();
1544
+ if (request.getRequestId()) {
1545
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1546
+ }
1547
+ const params: {[key: string]: any} = {
1548
+ 'contextStack': request.getContextStack() ?? null,
1549
+ };
1550
+ return axios.delete(
1551
+ url,
1552
+ {
1553
+ params,
1554
+ headers,
1555
+ },
1556
+ ).then((response: any) => {
1557
+ return Result.DeleteSeasonModelMasterResult.fromDict(response.data);
1558
+ }).catch((error: any) => {
1559
+ throw JSON.parse(error.response.data.message);
1560
+ });
1561
+ }
1562
+
1563
+ public describeSeasonGatherings(request: Request.DescribeSeasonGatheringsRequest): Promise<Result.DescribeSeasonGatheringsResult> {
1564
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/season/{seasonName}/{season}/gathering')
1565
+ .replace('{service}', 'matchmaking')
1566
+ .replace('{region}', this.session.region)
1567
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1568
+ .replace('{seasonName}', String(request.getSeasonName() ?? 'null') === "" ? "null" : String(request.getSeasonName() ?? 'null'))
1569
+ .replace('{season}', String(request.getSeason() ?? 'null') === "" ? "null" : String(request.getSeason() ?? 'null'))
1570
+ .replace('{tier}', String(request.getTier() ?? 'null') === "" ? "null" : String(request.getTier() ?? 'null'));
1571
+
1572
+ const headers = this.createAuthorizedHeaders();
1573
+ if (request.getRequestId()) {
1574
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1575
+ }
1576
+ const params: {[key: string]: any} = {
1577
+ 'contextStack': request.getContextStack() ?? null,
1578
+ 'pageToken': String(request.getPageToken() ?? null),
1579
+ 'limit': String(request.getLimit() ?? null),
1580
+ };
1581
+ return axios.get(
1582
+ url,
1583
+ {
1584
+ params,
1585
+ headers,
1586
+ },
1587
+ ).then((response: any) => {
1588
+ return Result.DescribeSeasonGatheringsResult.fromDict(response.data);
1589
+ }).catch((error: any) => {
1590
+ throw JSON.parse(error.response.data.message);
1591
+ });
1592
+ }
1593
+
1594
+ public describeMatchmakingSeasonGatherings(request: Request.DescribeMatchmakingSeasonGatheringsRequest): Promise<Result.DescribeMatchmakingSeasonGatheringsResult> {
1595
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/season/{seasonName}/{season}/gathering/matchmaking')
1596
+ .replace('{service}', 'matchmaking')
1597
+ .replace('{region}', this.session.region)
1598
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1599
+ .replace('{seasonName}', String(request.getSeasonName() ?? 'null') === "" ? "null" : String(request.getSeasonName() ?? 'null'))
1600
+ .replace('{season}', String(request.getSeason() ?? 'null') === "" ? "null" : String(request.getSeason() ?? 'null'));
1601
+
1602
+ const headers = this.createAuthorizedHeaders();
1603
+ if (request.getRequestId()) {
1604
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1605
+ }
1606
+ const params: {[key: string]: any} = {
1607
+ 'contextStack': request.getContextStack() ?? null,
1608
+ 'tier': String(request.getTier() ?? null),
1609
+ 'pageToken': String(request.getPageToken() ?? null),
1610
+ 'limit': String(request.getLimit() ?? null),
1611
+ };
1612
+ return axios.get(
1613
+ url,
1614
+ {
1615
+ params,
1616
+ headers,
1617
+ },
1618
+ ).then((response: any) => {
1619
+ return Result.DescribeMatchmakingSeasonGatheringsResult.fromDict(response.data);
1620
+ }).catch((error: any) => {
1621
+ throw JSON.parse(error.response.data.message);
1622
+ });
1623
+ }
1624
+
1625
+ public doSeasonMatchmaking(request: Request.DoSeasonMatchmakingRequest): Promise<Result.DoSeasonMatchmakingResult> {
1626
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/season/{seasonName}/gathering/do')
1627
+ .replace('{service}', 'matchmaking')
1628
+ .replace('{region}', this.session.region)
1629
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1630
+ .replace('{seasonName}', String(request.getSeasonName() ?? 'null') === "" ? "null" : String(request.getSeasonName() ?? 'null'));
1631
+
1632
+ const headers = this.createAuthorizedHeaders();
1633
+ if (request.getRequestId()) {
1634
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1635
+ }
1636
+ if (request.getAccessToken()) {
1637
+ headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
1638
+ }
1639
+ if (request.getDuplicationAvoider()) {
1640
+ headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
1641
+ }
1642
+ const body: {[key: string]: any} = {
1643
+ 'contextStack': request.getContextStack() ?? null,
1644
+ 'matchmakingContextToken': request.getMatchmakingContextToken() ?? null,
1645
+ };
1646
+ return axios.post(
1647
+ url,
1648
+ body,
1649
+ {
1650
+ headers,
1651
+ },
1652
+ ).then((response: any) => {
1653
+ return Result.DoSeasonMatchmakingResult.fromDict(response.data);
1654
+ }).catch((error: any) => {
1655
+ if (error.response) {
1656
+ throw JSON.parse(error.response.data.message);
1657
+ } else {
1658
+ throw [];
1659
+ }
1660
+ });
1661
+ }
1662
+
1663
+ public doSeasonMatchmakingByUserId(request: Request.DoSeasonMatchmakingByUserIdRequest): Promise<Result.DoSeasonMatchmakingByUserIdResult> {
1664
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/season/{seasonName}/gathering/do')
1665
+ .replace('{service}', 'matchmaking')
1666
+ .replace('{region}', this.session.region)
1667
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1668
+ .replace('{seasonName}', String(request.getSeasonName() ?? 'null') === "" ? "null" : String(request.getSeasonName() ?? 'null'))
1669
+ .replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'));
1670
+
1671
+ const headers = this.createAuthorizedHeaders();
1672
+ if (request.getRequestId()) {
1673
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1674
+ }
1675
+ if (request.getDuplicationAvoider()) {
1676
+ headers['X-GS2-DUPLICATION-AVOIDER'] = request.getDuplicationAvoider() ?? null;
1677
+ }
1678
+ if (request.getTimeOffsetToken()) {
1679
+ headers['X-GS2-TIME-OFFSET-TOKEN'] = request.getTimeOffsetToken() ?? null;
1680
+ }
1681
+ const body: {[key: string]: any} = {
1682
+ 'contextStack': request.getContextStack() ?? null,
1683
+ 'matchmakingContextToken': request.getMatchmakingContextToken() ?? null,
1684
+ };
1685
+ return axios.post(
1686
+ url,
1687
+ body,
1688
+ {
1689
+ headers,
1690
+ },
1691
+ ).then((response: any) => {
1692
+ return Result.DoSeasonMatchmakingByUserIdResult.fromDict(response.data);
1693
+ }).catch((error: any) => {
1694
+ if (error.response) {
1695
+ throw JSON.parse(error.response.data.message);
1696
+ } else {
1697
+ throw [];
1698
+ }
1699
+ });
1700
+ }
1701
+
1702
+ public getSeasonGathering(request: Request.GetSeasonGatheringRequest): Promise<Result.GetSeasonGatheringResult> {
1703
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/season/{seasonName}/{season}/{tier}/gathering/{seasonGatheringName}')
1704
+ .replace('{service}', 'matchmaking')
1705
+ .replace('{region}', this.session.region)
1706
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1707
+ .replace('{seasonName}', String(request.getSeasonName() ?? 'null') === "" ? "null" : String(request.getSeasonName() ?? 'null'))
1708
+ .replace('{season}', String(request.getSeason() ?? 'null') === "" ? "null" : String(request.getSeason() ?? 'null'))
1709
+ .replace('{tier}', String(request.getTier() ?? 'null') === "" ? "null" : String(request.getTier() ?? 'null'))
1710
+ .replace('{seasonGatheringName}', String(request.getSeasonGatheringName() ?? 'null') === "" ? "null" : String(request.getSeasonGatheringName() ?? 'null'));
1711
+
1712
+ const headers = this.createAuthorizedHeaders();
1713
+ if (request.getRequestId()) {
1714
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1715
+ }
1716
+ const params: {[key: string]: any} = {
1717
+ 'contextStack': request.getContextStack() ?? null,
1718
+ };
1719
+ return axios.get(
1720
+ url,
1721
+ {
1722
+ params,
1723
+ headers,
1724
+ },
1725
+ ).then((response: any) => {
1726
+ return Result.GetSeasonGatheringResult.fromDict(response.data);
1727
+ }).catch((error: any) => {
1728
+ throw JSON.parse(error.response.data.message);
1729
+ });
1730
+ }
1731
+
1732
+ public deleteSeasonGathering(request: Request.DeleteSeasonGatheringRequest): Promise<Result.DeleteSeasonGatheringResult> {
1733
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/season/{seasonName}/{season}/{tier}/gathering/{seasonGatheringName}')
1734
+ .replace('{service}', 'matchmaking')
1735
+ .replace('{region}', this.session.region)
1736
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1737
+ .replace('{seasonName}', String(request.getSeasonName() ?? 'null') === "" ? "null" : String(request.getSeasonName() ?? 'null'))
1738
+ .replace('{season}', String(request.getSeason() ?? 'null') === "" ? "null" : String(request.getSeason() ?? 'null'))
1739
+ .replace('{tier}', String(request.getTier() ?? 'null') === "" ? "null" : String(request.getTier() ?? 'null'))
1740
+ .replace('{seasonGatheringName}', String(request.getSeasonGatheringName() ?? 'null') === "" ? "null" : String(request.getSeasonGatheringName() ?? 'null'));
1741
+
1742
+ const headers = this.createAuthorizedHeaders();
1743
+ if (request.getRequestId()) {
1744
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1745
+ }
1746
+ const params: {[key: string]: any} = {
1747
+ 'contextStack': request.getContextStack() ?? null,
1748
+ };
1749
+ return axios.delete(
1750
+ url,
1751
+ {
1752
+ params,
1753
+ headers,
1754
+ },
1755
+ ).then((response: any) => {
1756
+ return Result.DeleteSeasonGatheringResult.fromDict(response.data);
1757
+ }).catch((error: any) => {
1758
+ throw JSON.parse(error.response.data.message);
1759
+ });
1760
+ }
1761
+
1762
+ public describeJoinedSeasonGatherings(request: Request.DescribeJoinedSeasonGatheringsRequest): Promise<Result.DescribeJoinedSeasonGatheringsResult> {
1763
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/season/{seasonName}/gathering/join')
1764
+ .replace('{service}', 'matchmaking')
1765
+ .replace('{region}', this.session.region)
1766
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1767
+ .replace('{seasonName}', String(request.getSeasonName() ?? 'null') === "" ? "null" : String(request.getSeasonName() ?? 'null'));
1768
+
1769
+ const headers = this.createAuthorizedHeaders();
1770
+ if (request.getRequestId()) {
1771
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1772
+ }
1773
+ if (request.getAccessToken()) {
1774
+ headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
1775
+ }
1776
+ const params: {[key: string]: any} = {
1777
+ 'contextStack': request.getContextStack() ?? null,
1778
+ 'pageToken': String(request.getPageToken() ?? null),
1779
+ 'limit': String(request.getLimit() ?? null),
1780
+ };
1781
+ return axios.get(
1782
+ url,
1783
+ {
1784
+ params,
1785
+ headers,
1786
+ },
1787
+ ).then((response: any) => {
1788
+ return Result.DescribeJoinedSeasonGatheringsResult.fromDict(response.data);
1789
+ }).catch((error: any) => {
1790
+ throw JSON.parse(error.response.data.message);
1791
+ });
1792
+ }
1793
+
1794
+ public describeJoinedSeasonGatheringsByUserId(request: Request.DescribeJoinedSeasonGatheringsByUserIdRequest): Promise<Result.DescribeJoinedSeasonGatheringsByUserIdResult> {
1795
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/season/{seasonName}/gathering/join')
1796
+ .replace('{service}', 'matchmaking')
1797
+ .replace('{region}', this.session.region)
1798
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1799
+ .replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
1800
+ .replace('{seasonName}', String(request.getSeasonName() ?? 'null') === "" ? "null" : String(request.getSeasonName() ?? 'null'));
1801
+
1802
+ const headers = this.createAuthorizedHeaders();
1803
+ if (request.getRequestId()) {
1804
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1805
+ }
1806
+ if (request.getTimeOffsetToken()) {
1807
+ headers['X-GS2-TIME-OFFSET-TOKEN'] = request.getTimeOffsetToken() ?? null;
1808
+ }
1809
+ const params: {[key: string]: any} = {
1810
+ 'contextStack': request.getContextStack() ?? null,
1811
+ 'pageToken': String(request.getPageToken() ?? null),
1812
+ 'limit': String(request.getLimit() ?? null),
1813
+ };
1814
+ return axios.get(
1815
+ url,
1816
+ {
1817
+ params,
1818
+ headers,
1819
+ },
1820
+ ).then((response: any) => {
1821
+ return Result.DescribeJoinedSeasonGatheringsByUserIdResult.fromDict(response.data);
1822
+ }).catch((error: any) => {
1823
+ throw JSON.parse(error.response.data.message);
1824
+ });
1825
+ }
1826
+
1827
+ public getJoinedSeasonGathering(request: Request.GetJoinedSeasonGatheringRequest): Promise<Result.GetJoinedSeasonGatheringResult> {
1828
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/season/{seasonName}/gathering/join/{season}')
1829
+ .replace('{service}', 'matchmaking')
1830
+ .replace('{region}', this.session.region)
1831
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1832
+ .replace('{seasonName}', String(request.getSeasonName() ?? 'null') === "" ? "null" : String(request.getSeasonName() ?? 'null'))
1833
+ .replace('{season}', String(request.getSeason() ?? 'null') === "" ? "null" : String(request.getSeason() ?? 'null'));
1834
+
1835
+ const headers = this.createAuthorizedHeaders();
1836
+ if (request.getRequestId()) {
1837
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1838
+ }
1839
+ if (request.getAccessToken()) {
1840
+ headers['X-GS2-ACCESS-TOKEN'] = request.getAccessToken() ?? null;
1841
+ }
1842
+ const params: {[key: string]: any} = {
1843
+ 'contextStack': request.getContextStack() ?? null,
1844
+ };
1845
+ return axios.get(
1846
+ url,
1847
+ {
1848
+ params,
1849
+ headers,
1850
+ },
1851
+ ).then((response: any) => {
1852
+ return Result.GetJoinedSeasonGatheringResult.fromDict(response.data);
1853
+ }).catch((error: any) => {
1854
+ throw JSON.parse(error.response.data.message);
1855
+ });
1856
+ }
1857
+
1858
+ public getJoinedSeasonGatheringByUserId(request: Request.GetJoinedSeasonGatheringByUserIdRequest): Promise<Result.GetJoinedSeasonGatheringByUserIdResult> {
1859
+ const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/season/{seasonName}/gathering/join/{season}')
1860
+ .replace('{service}', 'matchmaking')
1861
+ .replace('{region}', this.session.region)
1862
+ .replace('{namespaceName}', String(request.getNamespaceName() ?? 'null') === "" ? "null" : String(request.getNamespaceName() ?? 'null'))
1863
+ .replace('{userId}', String(request.getUserId() ?? 'null') === "" ? "null" : String(request.getUserId() ?? 'null'))
1864
+ .replace('{seasonName}', String(request.getSeasonName() ?? 'null') === "" ? "null" : String(request.getSeasonName() ?? 'null'))
1865
+ .replace('{season}', String(request.getSeason() ?? 'null') === "" ? "null" : String(request.getSeason() ?? 'null'));
1866
+
1867
+ const headers = this.createAuthorizedHeaders();
1868
+ if (request.getRequestId()) {
1869
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1870
+ }
1871
+ if (request.getTimeOffsetToken()) {
1872
+ headers['X-GS2-TIME-OFFSET-TOKEN'] = request.getTimeOffsetToken() ?? null;
1873
+ }
1874
+ const params: {[key: string]: any} = {
1875
+ 'contextStack': request.getContextStack() ?? null,
1876
+ };
1877
+ return axios.get(
1878
+ url,
1879
+ {
1880
+ params,
1881
+ headers,
1882
+ },
1883
+ ).then((response: any) => {
1884
+ return Result.GetJoinedSeasonGatheringByUserIdResult.fromDict(response.data);
1885
+ }).catch((error: any) => {
1886
+ throw JSON.parse(error.response.data.message);
1887
+ });
1888
+ }
1889
+
1356
1890
  public describeRatings(request: Request.DescribeRatingsRequest): Promise<Result.DescribeRatingsResult> {
1357
1891
  const url = (Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/rating')
1358
1892
  .replace('{service}', 'matchmaking')
@@ -0,0 +1,14 @@
1
+ import IResult from '../../core/interface/IResult';
2
+ import * as Gs2Matchmaking from '../model';
3
+ export default class CreateSeasonModelMasterResult implements IResult {
4
+ private item;
5
+ getItem(): Gs2Matchmaking.SeasonModelMaster | null;
6
+ setItem(item: Gs2Matchmaking.SeasonModelMaster | null): this;
7
+ withItem(item: Gs2Matchmaking.SeasonModelMaster | null): this;
8
+ static fromDict(data: {
9
+ [key: string]: any;
10
+ }): CreateSeasonModelMasterResult;
11
+ toDict(): {
12
+ [key: string]: any;
13
+ };
14
+ }
@@ -17,32 +17,32 @@ permissions and limitations under the License.
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  var tslib_1 = require("tslib");
19
19
  var Gs2Matchmaking = tslib_1.__importStar(require("../model"));
20
- var UpdateCurrentRatingModelMasterResult = /** @class */ (function () {
21
- function UpdateCurrentRatingModelMasterResult() {
20
+ var CreateSeasonModelMasterResult = /** @class */ (function () {
21
+ function CreateSeasonModelMasterResult() {
22
22
  this.item = null;
23
23
  }
24
- UpdateCurrentRatingModelMasterResult.prototype.getItem = function () {
24
+ CreateSeasonModelMasterResult.prototype.getItem = function () {
25
25
  return this.item;
26
26
  };
27
- UpdateCurrentRatingModelMasterResult.prototype.setItem = function (item) {
27
+ CreateSeasonModelMasterResult.prototype.setItem = function (item) {
28
28
  this.item = item;
29
29
  return this;
30
30
  };
31
- UpdateCurrentRatingModelMasterResult.prototype.withItem = function (item) {
31
+ CreateSeasonModelMasterResult.prototype.withItem = function (item) {
32
32
  this.item = item;
33
33
  return this;
34
34
  };
35
- UpdateCurrentRatingModelMasterResult.fromDict = function (data) {
36
- return new UpdateCurrentRatingModelMasterResult()
37
- .withItem(Gs2Matchmaking.CurrentRatingModelMaster.fromDict(data["item"]));
35
+ CreateSeasonModelMasterResult.fromDict = function (data) {
36
+ return new CreateSeasonModelMasterResult()
37
+ .withItem(Gs2Matchmaking.SeasonModelMaster.fromDict(data["item"]));
38
38
  };
39
- UpdateCurrentRatingModelMasterResult.prototype.toDict = function () {
39
+ CreateSeasonModelMasterResult.prototype.toDict = function () {
40
40
  var _a;
41
41
  return {
42
42
  "item": (_a = this.getItem()) === null || _a === void 0 ? void 0 : _a.toDict(),
43
43
  };
44
44
  };
45
- return UpdateCurrentRatingModelMasterResult;
45
+ return CreateSeasonModelMasterResult;
46
46
  }());
47
- exports.default = UpdateCurrentRatingModelMasterResult;
48
- //# sourceMappingURL=UpdateCurrentRatingModelMasterResult.js.map
47
+ exports.default = CreateSeasonModelMasterResult;
48
+ //# sourceMappingURL=CreateSeasonModelMasterResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CreateSeasonModelMasterResult.js","sourceRoot":"","sources":["CreateSeasonModelMasterResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,+DAA0C;AAE1C;IAAA;QACY,SAAI,GAA0C,IAAI,CAAC;IA0B/D,CAAC;IAxBU,+CAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,+CAAO,GAAd,UAAe,IAA2C;QACtD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,gDAAQ,GAAf,UAAgB,IAA2C;QACvD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,sCAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,6BAA6B,EAAE;aACrC,QAAQ,CAAC,cAAc,CAAC,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC3E,CAAC;IAEM,8CAAM,GAAb;;QACI,OAAO;YACH,MAAM,EAAE,MAAA,IAAI,CAAC,OAAO,EAAE,0CAAE,MAAM,EAAE;SACnC,CAAC;IACN,CAAC;IACL,oCAAC;AAAD,CAAC,AA3BD,IA2BC"}