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
@@ -1115,7 +1115,7 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
1115
1115
  throw JSON.parse(error.response.data.message);
1116
1116
  });
1117
1117
  };
1118
- Gs2MatchmakingRestClient.prototype.getCurrentRatingModelMaster = function (request) {
1118
+ Gs2MatchmakingRestClient.prototype.getCurrentModelMaster = function (request) {
1119
1119
  var _a, _b, _c;
1120
1120
  var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
1121
1121
  .replace('{service}', 'matchmaking')
@@ -1132,12 +1132,12 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
1132
1132
  params: params,
1133
1133
  headers: headers,
1134
1134
  }).then(function (response) {
1135
- return Result.GetCurrentRatingModelMasterResult.fromDict(response.data);
1135
+ return Result.GetCurrentModelMasterResult.fromDict(response.data);
1136
1136
  }).catch(function (error) {
1137
1137
  throw JSON.parse(error.response.data.message);
1138
1138
  });
1139
1139
  };
1140
- Gs2MatchmakingRestClient.prototype.updateCurrentRatingModelMaster = function (request) {
1140
+ Gs2MatchmakingRestClient.prototype.updateCurrentModelMaster = function (request) {
1141
1141
  var _a, _b, _c, _d;
1142
1142
  var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master')
1143
1143
  .replace('{service}', 'matchmaking')
@@ -1154,7 +1154,7 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
1154
1154
  return axios_1.default.put(url, body, {
1155
1155
  headers: headers,
1156
1156
  }).then(function (response) {
1157
- return Result.UpdateCurrentRatingModelMasterResult.fromDict(response.data);
1157
+ return Result.UpdateCurrentModelMasterResult.fromDict(response.data);
1158
1158
  }).catch(function (error) {
1159
1159
  if (error.response) {
1160
1160
  throw JSON.parse(error.response.data.message);
@@ -1164,7 +1164,7 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
1164
1164
  }
1165
1165
  });
1166
1166
  };
1167
- Gs2MatchmakingRestClient.prototype.updateCurrentRatingModelMasterFromGitHub = function (request) {
1167
+ Gs2MatchmakingRestClient.prototype.updateCurrentModelMasterFromGitHub = function (request) {
1168
1168
  var _a, _b, _c, _d, _e;
1169
1169
  var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/from_git_hub')
1170
1170
  .replace('{service}', 'matchmaking')
@@ -1181,7 +1181,7 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
1181
1181
  return axios_1.default.put(url, body, {
1182
1182
  headers: headers,
1183
1183
  }).then(function (response) {
1184
- return Result.UpdateCurrentRatingModelMasterFromGitHubResult.fromDict(response.data);
1184
+ return Result.UpdateCurrentModelMasterFromGitHubResult.fromDict(response.data);
1185
1185
  }).catch(function (error) {
1186
1186
  if (error.response) {
1187
1187
  throw JSON.parse(error.response.data.message);
@@ -1191,6 +1191,472 @@ var Gs2MatchmakingRestClient = /** @class */ (function (_super) {
1191
1191
  }
1192
1192
  });
1193
1193
  };
1194
+ Gs2MatchmakingRestClient.prototype.describeSeasonModels = function (request) {
1195
+ var _a, _b, _c;
1196
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/season')
1197
+ .replace('{service}', 'matchmaking')
1198
+ .replace('{region}', this.session.region)
1199
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'));
1200
+ var headers = this.createAuthorizedHeaders();
1201
+ if (request.getRequestId()) {
1202
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1203
+ }
1204
+ var params = {
1205
+ 'contextStack': (_c = request.getContextStack()) !== null && _c !== void 0 ? _c : null,
1206
+ };
1207
+ return axios_1.default.get(url, {
1208
+ params: params,
1209
+ headers: headers,
1210
+ }).then(function (response) {
1211
+ return Result.DescribeSeasonModelsResult.fromDict(response.data);
1212
+ }).catch(function (error) {
1213
+ throw JSON.parse(error.response.data.message);
1214
+ });
1215
+ };
1216
+ Gs2MatchmakingRestClient.prototype.getSeasonModel = function (request) {
1217
+ var _a, _b, _c, _d, _e;
1218
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/season/{seasonName}')
1219
+ .replace('{service}', 'matchmaking')
1220
+ .replace('{region}', this.session.region)
1221
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
1222
+ .replace('{seasonName}', String((_c = request.getSeasonName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getSeasonName()) !== null && _d !== void 0 ? _d : 'null'));
1223
+ var headers = this.createAuthorizedHeaders();
1224
+ if (request.getRequestId()) {
1225
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1226
+ }
1227
+ var params = {
1228
+ 'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
1229
+ };
1230
+ return axios_1.default.get(url, {
1231
+ params: params,
1232
+ headers: headers,
1233
+ }).then(function (response) {
1234
+ return Result.GetSeasonModelResult.fromDict(response.data);
1235
+ }).catch(function (error) {
1236
+ throw JSON.parse(error.response.data.message);
1237
+ });
1238
+ };
1239
+ Gs2MatchmakingRestClient.prototype.describeSeasonModelMasters = function (request) {
1240
+ var _a, _b, _c, _d, _e;
1241
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/season')
1242
+ .replace('{service}', 'matchmaking')
1243
+ .replace('{region}', this.session.region)
1244
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'));
1245
+ var headers = this.createAuthorizedHeaders();
1246
+ if (request.getRequestId()) {
1247
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1248
+ }
1249
+ var params = {
1250
+ 'contextStack': (_c = request.getContextStack()) !== null && _c !== void 0 ? _c : null,
1251
+ 'pageToken': String((_d = request.getPageToken()) !== null && _d !== void 0 ? _d : null),
1252
+ 'limit': String((_e = request.getLimit()) !== null && _e !== void 0 ? _e : null),
1253
+ };
1254
+ return axios_1.default.get(url, {
1255
+ params: params,
1256
+ headers: headers,
1257
+ }).then(function (response) {
1258
+ return Result.DescribeSeasonModelMastersResult.fromDict(response.data);
1259
+ }).catch(function (error) {
1260
+ throw JSON.parse(error.response.data.message);
1261
+ });
1262
+ };
1263
+ Gs2MatchmakingRestClient.prototype.createSeasonModelMaster = function (request) {
1264
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1265
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/season')
1266
+ .replace('{service}', 'matchmaking')
1267
+ .replace('{region}', this.session.region)
1268
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'));
1269
+ var headers = this.createAuthorizedHeaders();
1270
+ if (request.getRequestId()) {
1271
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1272
+ }
1273
+ var body = {
1274
+ 'contextStack': (_c = request.getContextStack()) !== null && _c !== void 0 ? _c : null,
1275
+ 'name': (_d = request.getName()) !== null && _d !== void 0 ? _d : null,
1276
+ 'description': (_e = request.getDescription()) !== null && _e !== void 0 ? _e : null,
1277
+ 'metadata': (_f = request.getMetadata()) !== null && _f !== void 0 ? _f : null,
1278
+ 'maximumParticipants': (_g = request.getMaximumParticipants()) !== null && _g !== void 0 ? _g : null,
1279
+ 'experienceModelId': (_h = request.getExperienceModelId()) !== null && _h !== void 0 ? _h : null,
1280
+ 'challengePeriodEventId': (_j = request.getChallengePeriodEventId()) !== null && _j !== void 0 ? _j : null,
1281
+ };
1282
+ return axios_1.default.post(url, body, {
1283
+ headers: headers,
1284
+ }).then(function (response) {
1285
+ return Result.CreateSeasonModelMasterResult.fromDict(response.data);
1286
+ }).catch(function (error) {
1287
+ if (error.response) {
1288
+ throw JSON.parse(error.response.data.message);
1289
+ }
1290
+ else {
1291
+ throw [];
1292
+ }
1293
+ });
1294
+ };
1295
+ Gs2MatchmakingRestClient.prototype.getSeasonModelMaster = function (request) {
1296
+ var _a, _b, _c, _d, _e;
1297
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/season/{seasonName}')
1298
+ .replace('{service}', 'matchmaking')
1299
+ .replace('{region}', this.session.region)
1300
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
1301
+ .replace('{seasonName}', String((_c = request.getSeasonName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getSeasonName()) !== null && _d !== void 0 ? _d : 'null'));
1302
+ var headers = this.createAuthorizedHeaders();
1303
+ if (request.getRequestId()) {
1304
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1305
+ }
1306
+ var params = {
1307
+ 'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
1308
+ };
1309
+ return axios_1.default.get(url, {
1310
+ params: params,
1311
+ headers: headers,
1312
+ }).then(function (response) {
1313
+ return Result.GetSeasonModelMasterResult.fromDict(response.data);
1314
+ }).catch(function (error) {
1315
+ throw JSON.parse(error.response.data.message);
1316
+ });
1317
+ };
1318
+ Gs2MatchmakingRestClient.prototype.updateSeasonModelMaster = function (request) {
1319
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1320
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/season/{seasonName}')
1321
+ .replace('{service}', 'matchmaking')
1322
+ .replace('{region}', this.session.region)
1323
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
1324
+ .replace('{seasonName}', String((_c = request.getSeasonName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getSeasonName()) !== null && _d !== void 0 ? _d : 'null'));
1325
+ var headers = this.createAuthorizedHeaders();
1326
+ if (request.getRequestId()) {
1327
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1328
+ }
1329
+ var body = {
1330
+ 'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
1331
+ 'description': (_f = request.getDescription()) !== null && _f !== void 0 ? _f : null,
1332
+ 'metadata': (_g = request.getMetadata()) !== null && _g !== void 0 ? _g : null,
1333
+ 'maximumParticipants': (_h = request.getMaximumParticipants()) !== null && _h !== void 0 ? _h : null,
1334
+ 'experienceModelId': (_j = request.getExperienceModelId()) !== null && _j !== void 0 ? _j : null,
1335
+ 'challengePeriodEventId': (_k = request.getChallengePeriodEventId()) !== null && _k !== void 0 ? _k : null,
1336
+ };
1337
+ return axios_1.default.put(url, body, {
1338
+ headers: headers,
1339
+ }).then(function (response) {
1340
+ return Result.UpdateSeasonModelMasterResult.fromDict(response.data);
1341
+ }).catch(function (error) {
1342
+ if (error.response) {
1343
+ throw JSON.parse(error.response.data.message);
1344
+ }
1345
+ else {
1346
+ throw [];
1347
+ }
1348
+ });
1349
+ };
1350
+ Gs2MatchmakingRestClient.prototype.deleteSeasonModelMaster = function (request) {
1351
+ var _a, _b, _c, _d, _e;
1352
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/master/season/{seasonName}')
1353
+ .replace('{service}', 'matchmaking')
1354
+ .replace('{region}', this.session.region)
1355
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
1356
+ .replace('{seasonName}', String((_c = request.getSeasonName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getSeasonName()) !== null && _d !== void 0 ? _d : 'null'));
1357
+ var headers = this.createAuthorizedHeaders();
1358
+ if (request.getRequestId()) {
1359
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1360
+ }
1361
+ var params = {
1362
+ 'contextStack': (_e = request.getContextStack()) !== null && _e !== void 0 ? _e : null,
1363
+ };
1364
+ return axios_1.default.delete(url, {
1365
+ params: params,
1366
+ headers: headers,
1367
+ }).then(function (response) {
1368
+ return Result.DeleteSeasonModelMasterResult.fromDict(response.data);
1369
+ }).catch(function (error) {
1370
+ throw JSON.parse(error.response.data.message);
1371
+ });
1372
+ };
1373
+ Gs2MatchmakingRestClient.prototype.describeSeasonGatherings = function (request) {
1374
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
1375
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/season/{seasonName}/{season}/gathering')
1376
+ .replace('{service}', 'matchmaking')
1377
+ .replace('{region}', this.session.region)
1378
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
1379
+ .replace('{seasonName}', String((_c = request.getSeasonName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getSeasonName()) !== null && _d !== void 0 ? _d : 'null'))
1380
+ .replace('{season}', String((_e = request.getSeason()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getSeason()) !== null && _f !== void 0 ? _f : 'null'))
1381
+ .replace('{tier}', String((_g = request.getTier()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getTier()) !== null && _h !== void 0 ? _h : 'null'));
1382
+ var headers = this.createAuthorizedHeaders();
1383
+ if (request.getRequestId()) {
1384
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1385
+ }
1386
+ var params = {
1387
+ 'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
1388
+ 'pageToken': String((_k = request.getPageToken()) !== null && _k !== void 0 ? _k : null),
1389
+ 'limit': String((_l = request.getLimit()) !== null && _l !== void 0 ? _l : null),
1390
+ };
1391
+ return axios_1.default.get(url, {
1392
+ params: params,
1393
+ headers: headers,
1394
+ }).then(function (response) {
1395
+ return Result.DescribeSeasonGatheringsResult.fromDict(response.data);
1396
+ }).catch(function (error) {
1397
+ throw JSON.parse(error.response.data.message);
1398
+ });
1399
+ };
1400
+ Gs2MatchmakingRestClient.prototype.describeMatchmakingSeasonGatherings = function (request) {
1401
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1402
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/season/{seasonName}/{season}/gathering/matchmaking')
1403
+ .replace('{service}', 'matchmaking')
1404
+ .replace('{region}', this.session.region)
1405
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
1406
+ .replace('{seasonName}', String((_c = request.getSeasonName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getSeasonName()) !== null && _d !== void 0 ? _d : 'null'))
1407
+ .replace('{season}', String((_e = request.getSeason()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getSeason()) !== null && _f !== void 0 ? _f : 'null'));
1408
+ var headers = this.createAuthorizedHeaders();
1409
+ if (request.getRequestId()) {
1410
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1411
+ }
1412
+ var params = {
1413
+ 'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
1414
+ 'tier': String((_h = request.getTier()) !== null && _h !== void 0 ? _h : null),
1415
+ 'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
1416
+ 'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
1417
+ };
1418
+ return axios_1.default.get(url, {
1419
+ params: params,
1420
+ headers: headers,
1421
+ }).then(function (response) {
1422
+ return Result.DescribeMatchmakingSeasonGatheringsResult.fromDict(response.data);
1423
+ }).catch(function (error) {
1424
+ throw JSON.parse(error.response.data.message);
1425
+ });
1426
+ };
1427
+ Gs2MatchmakingRestClient.prototype.doSeasonMatchmaking = function (request) {
1428
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1429
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/season/{seasonName}/gathering/do')
1430
+ .replace('{service}', 'matchmaking')
1431
+ .replace('{region}', this.session.region)
1432
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
1433
+ .replace('{seasonName}', String((_c = request.getSeasonName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getSeasonName()) !== null && _d !== void 0 ? _d : 'null'));
1434
+ var headers = this.createAuthorizedHeaders();
1435
+ if (request.getRequestId()) {
1436
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1437
+ }
1438
+ if (request.getAccessToken()) {
1439
+ headers['X-GS2-ACCESS-TOKEN'] = (_e = request.getAccessToken()) !== null && _e !== void 0 ? _e : null;
1440
+ }
1441
+ if (request.getDuplicationAvoider()) {
1442
+ headers['X-GS2-DUPLICATION-AVOIDER'] = (_f = request.getDuplicationAvoider()) !== null && _f !== void 0 ? _f : null;
1443
+ }
1444
+ var body = {
1445
+ 'contextStack': (_g = request.getContextStack()) !== null && _g !== void 0 ? _g : null,
1446
+ 'matchmakingContextToken': (_h = request.getMatchmakingContextToken()) !== null && _h !== void 0 ? _h : null,
1447
+ };
1448
+ return axios_1.default.post(url, body, {
1449
+ headers: headers,
1450
+ }).then(function (response) {
1451
+ return Result.DoSeasonMatchmakingResult.fromDict(response.data);
1452
+ }).catch(function (error) {
1453
+ if (error.response) {
1454
+ throw JSON.parse(error.response.data.message);
1455
+ }
1456
+ else {
1457
+ throw [];
1458
+ }
1459
+ });
1460
+ };
1461
+ Gs2MatchmakingRestClient.prototype.doSeasonMatchmakingByUserId = function (request) {
1462
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1463
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/season/{seasonName}/gathering/do')
1464
+ .replace('{service}', 'matchmaking')
1465
+ .replace('{region}', this.session.region)
1466
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
1467
+ .replace('{seasonName}', String((_c = request.getSeasonName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getSeasonName()) !== null && _d !== void 0 ? _d : 'null'))
1468
+ .replace('{userId}', String((_e = request.getUserId()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getUserId()) !== null && _f !== void 0 ? _f : 'null'));
1469
+ var headers = this.createAuthorizedHeaders();
1470
+ if (request.getRequestId()) {
1471
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1472
+ }
1473
+ if (request.getDuplicationAvoider()) {
1474
+ headers['X-GS2-DUPLICATION-AVOIDER'] = (_g = request.getDuplicationAvoider()) !== null && _g !== void 0 ? _g : null;
1475
+ }
1476
+ if (request.getTimeOffsetToken()) {
1477
+ headers['X-GS2-TIME-OFFSET-TOKEN'] = (_h = request.getTimeOffsetToken()) !== null && _h !== void 0 ? _h : null;
1478
+ }
1479
+ var body = {
1480
+ 'contextStack': (_j = request.getContextStack()) !== null && _j !== void 0 ? _j : null,
1481
+ 'matchmakingContextToken': (_k = request.getMatchmakingContextToken()) !== null && _k !== void 0 ? _k : null,
1482
+ };
1483
+ return axios_1.default.post(url, body, {
1484
+ headers: headers,
1485
+ }).then(function (response) {
1486
+ return Result.DoSeasonMatchmakingByUserIdResult.fromDict(response.data);
1487
+ }).catch(function (error) {
1488
+ if (error.response) {
1489
+ throw JSON.parse(error.response.data.message);
1490
+ }
1491
+ else {
1492
+ throw [];
1493
+ }
1494
+ });
1495
+ };
1496
+ Gs2MatchmakingRestClient.prototype.getSeasonGathering = function (request) {
1497
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
1498
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/season/{seasonName}/{season}/{tier}/gathering/{seasonGatheringName}')
1499
+ .replace('{service}', 'matchmaking')
1500
+ .replace('{region}', this.session.region)
1501
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
1502
+ .replace('{seasonName}', String((_c = request.getSeasonName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getSeasonName()) !== null && _d !== void 0 ? _d : 'null'))
1503
+ .replace('{season}', String((_e = request.getSeason()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getSeason()) !== null && _f !== void 0 ? _f : 'null'))
1504
+ .replace('{tier}', String((_g = request.getTier()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getTier()) !== null && _h !== void 0 ? _h : 'null'))
1505
+ .replace('{seasonGatheringName}', String((_j = request.getSeasonGatheringName()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getSeasonGatheringName()) !== null && _k !== void 0 ? _k : 'null'));
1506
+ var headers = this.createAuthorizedHeaders();
1507
+ if (request.getRequestId()) {
1508
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1509
+ }
1510
+ var params = {
1511
+ 'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
1512
+ };
1513
+ return axios_1.default.get(url, {
1514
+ params: params,
1515
+ headers: headers,
1516
+ }).then(function (response) {
1517
+ return Result.GetSeasonGatheringResult.fromDict(response.data);
1518
+ }).catch(function (error) {
1519
+ throw JSON.parse(error.response.data.message);
1520
+ });
1521
+ };
1522
+ Gs2MatchmakingRestClient.prototype.deleteSeasonGathering = function (request) {
1523
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
1524
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/season/{seasonName}/{season}/{tier}/gathering/{seasonGatheringName}')
1525
+ .replace('{service}', 'matchmaking')
1526
+ .replace('{region}', this.session.region)
1527
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
1528
+ .replace('{seasonName}', String((_c = request.getSeasonName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getSeasonName()) !== null && _d !== void 0 ? _d : 'null'))
1529
+ .replace('{season}', String((_e = request.getSeason()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getSeason()) !== null && _f !== void 0 ? _f : 'null'))
1530
+ .replace('{tier}', String((_g = request.getTier()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getTier()) !== null && _h !== void 0 ? _h : 'null'))
1531
+ .replace('{seasonGatheringName}', String((_j = request.getSeasonGatheringName()) !== null && _j !== void 0 ? _j : 'null') === "" ? "null" : String((_k = request.getSeasonGatheringName()) !== null && _k !== void 0 ? _k : 'null'));
1532
+ var headers = this.createAuthorizedHeaders();
1533
+ if (request.getRequestId()) {
1534
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1535
+ }
1536
+ var params = {
1537
+ 'contextStack': (_l = request.getContextStack()) !== null && _l !== void 0 ? _l : null,
1538
+ };
1539
+ return axios_1.default.delete(url, {
1540
+ params: params,
1541
+ headers: headers,
1542
+ }).then(function (response) {
1543
+ return Result.DeleteSeasonGatheringResult.fromDict(response.data);
1544
+ }).catch(function (error) {
1545
+ throw JSON.parse(error.response.data.message);
1546
+ });
1547
+ };
1548
+ Gs2MatchmakingRestClient.prototype.describeJoinedSeasonGatherings = function (request) {
1549
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1550
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/season/{seasonName}/gathering/join')
1551
+ .replace('{service}', 'matchmaking')
1552
+ .replace('{region}', this.session.region)
1553
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
1554
+ .replace('{seasonName}', String((_c = request.getSeasonName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getSeasonName()) !== null && _d !== void 0 ? _d : 'null'));
1555
+ var headers = this.createAuthorizedHeaders();
1556
+ if (request.getRequestId()) {
1557
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1558
+ }
1559
+ if (request.getAccessToken()) {
1560
+ headers['X-GS2-ACCESS-TOKEN'] = (_e = request.getAccessToken()) !== null && _e !== void 0 ? _e : null;
1561
+ }
1562
+ var params = {
1563
+ 'contextStack': (_f = request.getContextStack()) !== null && _f !== void 0 ? _f : null,
1564
+ 'pageToken': String((_g = request.getPageToken()) !== null && _g !== void 0 ? _g : null),
1565
+ 'limit': String((_h = request.getLimit()) !== null && _h !== void 0 ? _h : null),
1566
+ };
1567
+ return axios_1.default.get(url, {
1568
+ params: params,
1569
+ headers: headers,
1570
+ }).then(function (response) {
1571
+ return Result.DescribeJoinedSeasonGatheringsResult.fromDict(response.data);
1572
+ }).catch(function (error) {
1573
+ throw JSON.parse(error.response.data.message);
1574
+ });
1575
+ };
1576
+ Gs2MatchmakingRestClient.prototype.describeJoinedSeasonGatheringsByUserId = function (request) {
1577
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1578
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/season/{seasonName}/gathering/join')
1579
+ .replace('{service}', 'matchmaking')
1580
+ .replace('{region}', this.session.region)
1581
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
1582
+ .replace('{userId}', String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null'))
1583
+ .replace('{seasonName}', String((_e = request.getSeasonName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getSeasonName()) !== null && _f !== void 0 ? _f : 'null'));
1584
+ var headers = this.createAuthorizedHeaders();
1585
+ if (request.getRequestId()) {
1586
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1587
+ }
1588
+ if (request.getTimeOffsetToken()) {
1589
+ headers['X-GS2-TIME-OFFSET-TOKEN'] = (_g = request.getTimeOffsetToken()) !== null && _g !== void 0 ? _g : null;
1590
+ }
1591
+ var params = {
1592
+ 'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1593
+ 'pageToken': String((_j = request.getPageToken()) !== null && _j !== void 0 ? _j : null),
1594
+ 'limit': String((_k = request.getLimit()) !== null && _k !== void 0 ? _k : null),
1595
+ };
1596
+ return axios_1.default.get(url, {
1597
+ params: params,
1598
+ headers: headers,
1599
+ }).then(function (response) {
1600
+ return Result.DescribeJoinedSeasonGatheringsByUserIdResult.fromDict(response.data);
1601
+ }).catch(function (error) {
1602
+ throw JSON.parse(error.response.data.message);
1603
+ });
1604
+ };
1605
+ Gs2MatchmakingRestClient.prototype.getJoinedSeasonGathering = function (request) {
1606
+ var _a, _b, _c, _d, _e, _f, _g, _h;
1607
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/season/{seasonName}/gathering/join/{season}')
1608
+ .replace('{service}', 'matchmaking')
1609
+ .replace('{region}', this.session.region)
1610
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
1611
+ .replace('{seasonName}', String((_c = request.getSeasonName()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getSeasonName()) !== null && _d !== void 0 ? _d : 'null'))
1612
+ .replace('{season}', String((_e = request.getSeason()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getSeason()) !== null && _f !== void 0 ? _f : 'null'));
1613
+ var headers = this.createAuthorizedHeaders();
1614
+ if (request.getRequestId()) {
1615
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1616
+ }
1617
+ if (request.getAccessToken()) {
1618
+ headers['X-GS2-ACCESS-TOKEN'] = (_g = request.getAccessToken()) !== null && _g !== void 0 ? _g : null;
1619
+ }
1620
+ var params = {
1621
+ 'contextStack': (_h = request.getContextStack()) !== null && _h !== void 0 ? _h : null,
1622
+ };
1623
+ return axios_1.default.get(url, {
1624
+ params: params,
1625
+ headers: headers,
1626
+ }).then(function (response) {
1627
+ return Result.GetJoinedSeasonGatheringResult.fromDict(response.data);
1628
+ }).catch(function (error) {
1629
+ throw JSON.parse(error.response.data.message);
1630
+ });
1631
+ };
1632
+ Gs2MatchmakingRestClient.prototype.getJoinedSeasonGatheringByUserId = function (request) {
1633
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1634
+ var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/{userId}/season/{seasonName}/gathering/join/{season}')
1635
+ .replace('{service}', 'matchmaking')
1636
+ .replace('{region}', this.session.region)
1637
+ .replace('{namespaceName}', String((_a = request.getNamespaceName()) !== null && _a !== void 0 ? _a : 'null') === "" ? "null" : String((_b = request.getNamespaceName()) !== null && _b !== void 0 ? _b : 'null'))
1638
+ .replace('{userId}', String((_c = request.getUserId()) !== null && _c !== void 0 ? _c : 'null') === "" ? "null" : String((_d = request.getUserId()) !== null && _d !== void 0 ? _d : 'null'))
1639
+ .replace('{seasonName}', String((_e = request.getSeasonName()) !== null && _e !== void 0 ? _e : 'null') === "" ? "null" : String((_f = request.getSeasonName()) !== null && _f !== void 0 ? _f : 'null'))
1640
+ .replace('{season}', String((_g = request.getSeason()) !== null && _g !== void 0 ? _g : 'null') === "" ? "null" : String((_h = request.getSeason()) !== null && _h !== void 0 ? _h : 'null'));
1641
+ var headers = this.createAuthorizedHeaders();
1642
+ if (request.getRequestId()) {
1643
+ headers['X-GS2-REQUEST-ID'] = request.getRequestId();
1644
+ }
1645
+ if (request.getTimeOffsetToken()) {
1646
+ headers['X-GS2-TIME-OFFSET-TOKEN'] = (_j = request.getTimeOffsetToken()) !== null && _j !== void 0 ? _j : null;
1647
+ }
1648
+ var params = {
1649
+ 'contextStack': (_k = request.getContextStack()) !== null && _k !== void 0 ? _k : null,
1650
+ };
1651
+ return axios_1.default.get(url, {
1652
+ params: params,
1653
+ headers: headers,
1654
+ }).then(function (response) {
1655
+ return Result.GetJoinedSeasonGatheringByUserIdResult.fromDict(response.data);
1656
+ }).catch(function (error) {
1657
+ throw JSON.parse(error.response.data.message);
1658
+ });
1659
+ };
1194
1660
  Gs2MatchmakingRestClient.prototype.describeRatings = function (request) {
1195
1661
  var _a, _b, _c, _d, _e, _f;
1196
1662
  var url = (model_1.Gs2Constant.ENDPOINT_HOST + '/{namespaceName}/user/me/rating')