UNPKG

@brayjamin/tba-api-v3client

Version:

_Overview__Information_and_statistics_about_FIRST_Robotics_Competition_teams_and_events___Authentication_All_endpoints_require_an_Auth_Key_to_be_passed_in_the_header_X_TBA_Auth_Key__If_you_do_not_have_an_auth_key_yet_you_can_obtain_one_from_your__Account_

634 lines (605 loc) 31.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); var _Match = _interopRequireDefault(require("../model/Match")); var _MatchSimple = _interopRequireDefault(require("../model/MatchSimple")); var _Zebra = _interopRequireDefault(require("../model/Zebra")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); } function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } /** * Match service. * @module api/MatchApi * @version 3.8.0 */ var MatchApi = /*#__PURE__*/function () { /** * Constructs a new MatchApi. * @alias module:api/MatchApi * @class * @param {module:ApiClient} [apiClient] Optional API client implementation to use, * default to {@link module:ApiClient#instance} if unspecified. */ function MatchApi(apiClient) { _classCallCheck(this, MatchApi); this.apiClient = apiClient || _ApiClient["default"].instance; } /** * Callback function to receive the result of the getEventMatchTimeseries operation. * @callback module:api/MatchApi~getEventMatchTimeseriesCallback * @param {String} error Error message, if any. * @param {Array.<String>} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Gets an array of Match Keys for the given event key that have timeseries data. Returns an empty array if no matches have timeseries data. *WARNING:* This is *not* official data, and is subject to a significant possibility of error, or missing data. Do not rely on this data for any purpose. In fact, pretend we made it up. *WARNING:* This endpoint and corresponding data models are under *active development* and may change at any time, including in breaking ways. * @param {String} eventKey TBA Event Key, eg `2016nytr` * @param {Object} opts Optional parameters * @param {String} opts.ifModifiedSince Value of the `Last-Modified` header in the most recently cached response by the client. * @param {module:api/MatchApi~getEventMatchTimeseriesCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link Array.<String>} */ _createClass(MatchApi, [{ key: "getEventMatchTimeseries", value: function getEventMatchTimeseries(eventKey, opts, callback) { opts = opts || {}; var postBody = null; // verify the required parameter 'eventKey' is set if (eventKey === undefined || eventKey === null) { throw new Error("Missing the required parameter 'eventKey' when calling getEventMatchTimeseries"); } var pathParams = { 'event_key': eventKey }; var queryParams = {}; var headerParams = { 'If-Modified-Since': opts['ifModifiedSince'] }; var formParams = {}; var authNames = ['apiKey']; var contentTypes = []; var accepts = ['application/json']; var returnType = ['String']; return this.apiClient.callApi('/event/{event_key}/matches/timeseries', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); } /** * Callback function to receive the result of the getEventMatches operation. * @callback module:api/MatchApi~getEventMatchesCallback * @param {String} error Error message, if any. * @param {Array.<module:model/Match>} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Gets a list of matches for the given event. * @param {String} eventKey TBA Event Key, eg `2016nytr` * @param {Object} opts Optional parameters * @param {String} opts.ifModifiedSince Value of the `Last-Modified` header in the most recently cached response by the client. * @param {module:api/MatchApi~getEventMatchesCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link Array.<module:model/Match>} */ }, { key: "getEventMatches", value: function getEventMatches(eventKey, opts, callback) { opts = opts || {}; var postBody = null; // verify the required parameter 'eventKey' is set if (eventKey === undefined || eventKey === null) { throw new Error("Missing the required parameter 'eventKey' when calling getEventMatches"); } var pathParams = { 'event_key': eventKey }; var queryParams = {}; var headerParams = { 'If-Modified-Since': opts['ifModifiedSince'] }; var formParams = {}; var authNames = ['apiKey']; var contentTypes = []; var accepts = ['application/json']; var returnType = [_Match["default"]]; return this.apiClient.callApi('/event/{event_key}/matches', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); } /** * Callback function to receive the result of the getEventMatchesKeys operation. * @callback module:api/MatchApi~getEventMatchesKeysCallback * @param {String} error Error message, if any. * @param {Array.<String>} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Gets a list of match keys for the given event. * @param {String} eventKey TBA Event Key, eg `2016nytr` * @param {Object} opts Optional parameters * @param {String} opts.ifModifiedSince Value of the `Last-Modified` header in the most recently cached response by the client. * @param {module:api/MatchApi~getEventMatchesKeysCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link Array.<String>} */ }, { key: "getEventMatchesKeys", value: function getEventMatchesKeys(eventKey, opts, callback) { opts = opts || {}; var postBody = null; // verify the required parameter 'eventKey' is set if (eventKey === undefined || eventKey === null) { throw new Error("Missing the required parameter 'eventKey' when calling getEventMatchesKeys"); } var pathParams = { 'event_key': eventKey }; var queryParams = {}; var headerParams = { 'If-Modified-Since': opts['ifModifiedSince'] }; var formParams = {}; var authNames = ['apiKey']; var contentTypes = []; var accepts = ['application/json']; var returnType = ['String']; return this.apiClient.callApi('/event/{event_key}/matches/keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); } /** * Callback function to receive the result of the getEventMatchesSimple operation. * @callback module:api/MatchApi~getEventMatchesSimpleCallback * @param {String} error Error message, if any. * @param {Array.<module:model/MatchSimple>} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Gets a short-form list of matches for the given event. * @param {String} eventKey TBA Event Key, eg `2016nytr` * @param {Object} opts Optional parameters * @param {String} opts.ifModifiedSince Value of the `Last-Modified` header in the most recently cached response by the client. * @param {module:api/MatchApi~getEventMatchesSimpleCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link Array.<module:model/MatchSimple>} */ }, { key: "getEventMatchesSimple", value: function getEventMatchesSimple(eventKey, opts, callback) { opts = opts || {}; var postBody = null; // verify the required parameter 'eventKey' is set if (eventKey === undefined || eventKey === null) { throw new Error("Missing the required parameter 'eventKey' when calling getEventMatchesSimple"); } var pathParams = { 'event_key': eventKey }; var queryParams = {}; var headerParams = { 'If-Modified-Since': opts['ifModifiedSince'] }; var formParams = {}; var authNames = ['apiKey']; var contentTypes = []; var accepts = ['application/json']; var returnType = [_MatchSimple["default"]]; return this.apiClient.callApi('/event/{event_key}/matches/simple', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); } /** * Callback function to receive the result of the getMatch operation. * @callback module:api/MatchApi~getMatchCallback * @param {String} error Error message, if any. * @param {module:model/Match} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Gets a `Match` object for the given match key. * @param {String} matchKey TBA Match Key, eg `2016nytr_qm1` * @param {Object} opts Optional parameters * @param {String} opts.ifModifiedSince Value of the `Last-Modified` header in the most recently cached response by the client. * @param {module:api/MatchApi~getMatchCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Match} */ }, { key: "getMatch", value: function getMatch(matchKey, opts, callback) { opts = opts || {}; var postBody = null; // verify the required parameter 'matchKey' is set if (matchKey === undefined || matchKey === null) { throw new Error("Missing the required parameter 'matchKey' when calling getMatch"); } var pathParams = { 'match_key': matchKey }; var queryParams = {}; var headerParams = { 'If-Modified-Since': opts['ifModifiedSince'] }; var formParams = {}; var authNames = ['apiKey']; var contentTypes = []; var accepts = ['application/json']; var returnType = _Match["default"]; return this.apiClient.callApi('/match/{match_key}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); } /** * Callback function to receive the result of the getMatchSimple operation. * @callback module:api/MatchApi~getMatchSimpleCallback * @param {String} error Error message, if any. * @param {module:model/MatchSimple} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Gets a short-form `Match` object for the given match key. * @param {String} matchKey TBA Match Key, eg `2016nytr_qm1` * @param {Object} opts Optional parameters * @param {String} opts.ifModifiedSince Value of the `Last-Modified` header in the most recently cached response by the client. * @param {module:api/MatchApi~getMatchSimpleCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/MatchSimple} */ }, { key: "getMatchSimple", value: function getMatchSimple(matchKey, opts, callback) { opts = opts || {}; var postBody = null; // verify the required parameter 'matchKey' is set if (matchKey === undefined || matchKey === null) { throw new Error("Missing the required parameter 'matchKey' when calling getMatchSimple"); } var pathParams = { 'match_key': matchKey }; var queryParams = {}; var headerParams = { 'If-Modified-Since': opts['ifModifiedSince'] }; var formParams = {}; var authNames = ['apiKey']; var contentTypes = []; var accepts = ['application/json']; var returnType = _MatchSimple["default"]; return this.apiClient.callApi('/match/{match_key}/simple', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); } /** * Callback function to receive the result of the getMatchTimeseries operation. * @callback module:api/MatchApi~getMatchTimeseriesCallback * @param {String} error Error message, if any. * @param {Array.<Object>} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Gets an array of game-specific Match Timeseries objects for the given match key or an empty array if not available. *WARNING:* This is *not* official data, and is subject to a significant possibility of error, or missing data. Do not rely on this data for any purpose. In fact, pretend we made it up. *WARNING:* This endpoint and corresponding data models are under *active development* and may change at any time, including in breaking ways. * @param {String} matchKey TBA Match Key, eg `2016nytr_qm1` * @param {Object} opts Optional parameters * @param {String} opts.ifModifiedSince Value of the `Last-Modified` header in the most recently cached response by the client. * @param {module:api/MatchApi~getMatchTimeseriesCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link Array.<Object>} */ }, { key: "getMatchTimeseries", value: function getMatchTimeseries(matchKey, opts, callback) { opts = opts || {}; var postBody = null; // verify the required parameter 'matchKey' is set if (matchKey === undefined || matchKey === null) { throw new Error("Missing the required parameter 'matchKey' when calling getMatchTimeseries"); } var pathParams = { 'match_key': matchKey }; var queryParams = {}; var headerParams = { 'If-Modified-Since': opts['ifModifiedSince'] }; var formParams = {}; var authNames = ['apiKey']; var contentTypes = []; var accepts = ['application/json']; var returnType = [Object]; return this.apiClient.callApi('/match/{match_key}/timeseries', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); } /** * Callback function to receive the result of the getMatchZebra operation. * @callback module:api/MatchApi~getMatchZebraCallback * @param {String} error Error message, if any. * @param {module:model/Zebra} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Gets Zebra MotionWorks data for a Match for the given match key. * @param {String} matchKey TBA Match Key, eg `2016nytr_qm1` * @param {Object} opts Optional parameters * @param {String} opts.ifModifiedSince Value of the `Last-Modified` header in the most recently cached response by the client. * @param {module:api/MatchApi~getMatchZebraCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link module:model/Zebra} */ }, { key: "getMatchZebra", value: function getMatchZebra(matchKey, opts, callback) { opts = opts || {}; var postBody = null; // verify the required parameter 'matchKey' is set if (matchKey === undefined || matchKey === null) { throw new Error("Missing the required parameter 'matchKey' when calling getMatchZebra"); } var pathParams = { 'match_key': matchKey }; var queryParams = {}; var headerParams = { 'If-Modified-Since': opts['ifModifiedSince'] }; var formParams = {}; var authNames = ['apiKey']; var contentTypes = []; var accepts = ['application/json']; var returnType = _Zebra["default"]; return this.apiClient.callApi('/match/{match_key}/zebra_motionworks', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); } /** * Callback function to receive the result of the getTeamEventMatches operation. * @callback module:api/MatchApi~getTeamEventMatchesCallback * @param {String} error Error message, if any. * @param {Array.<module:model/Match>} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Gets a list of matches for the given team and event. * @param {String} teamKey TBA Team Key, eg `frc254` * @param {String} eventKey TBA Event Key, eg `2016nytr` * @param {Object} opts Optional parameters * @param {String} opts.ifModifiedSince Value of the `Last-Modified` header in the most recently cached response by the client. * @param {module:api/MatchApi~getTeamEventMatchesCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link Array.<module:model/Match>} */ }, { key: "getTeamEventMatches", value: function getTeamEventMatches(teamKey, eventKey, opts, callback) { opts = opts || {}; var postBody = null; // verify the required parameter 'teamKey' is set if (teamKey === undefined || teamKey === null) { throw new Error("Missing the required parameter 'teamKey' when calling getTeamEventMatches"); } // verify the required parameter 'eventKey' is set if (eventKey === undefined || eventKey === null) { throw new Error("Missing the required parameter 'eventKey' when calling getTeamEventMatches"); } var pathParams = { 'team_key': teamKey, 'event_key': eventKey }; var queryParams = {}; var headerParams = { 'If-Modified-Since': opts['ifModifiedSince'] }; var formParams = {}; var authNames = ['apiKey']; var contentTypes = []; var accepts = ['application/json']; var returnType = [_Match["default"]]; return this.apiClient.callApi('/team/{team_key}/event/{event_key}/matches', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); } /** * Callback function to receive the result of the getTeamEventMatchesKeys operation. * @callback module:api/MatchApi~getTeamEventMatchesKeysCallback * @param {String} error Error message, if any. * @param {Array.<String>} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Gets a list of match keys for matches for the given team and event. * @param {String} teamKey TBA Team Key, eg `frc254` * @param {String} eventKey TBA Event Key, eg `2016nytr` * @param {Object} opts Optional parameters * @param {String} opts.ifModifiedSince Value of the `Last-Modified` header in the most recently cached response by the client. * @param {module:api/MatchApi~getTeamEventMatchesKeysCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link Array.<String>} */ }, { key: "getTeamEventMatchesKeys", value: function getTeamEventMatchesKeys(teamKey, eventKey, opts, callback) { opts = opts || {}; var postBody = null; // verify the required parameter 'teamKey' is set if (teamKey === undefined || teamKey === null) { throw new Error("Missing the required parameter 'teamKey' when calling getTeamEventMatchesKeys"); } // verify the required parameter 'eventKey' is set if (eventKey === undefined || eventKey === null) { throw new Error("Missing the required parameter 'eventKey' when calling getTeamEventMatchesKeys"); } var pathParams = { 'team_key': teamKey, 'event_key': eventKey }; var queryParams = {}; var headerParams = { 'If-Modified-Since': opts['ifModifiedSince'] }; var formParams = {}; var authNames = ['apiKey']; var contentTypes = []; var accepts = ['application/json']; var returnType = ['String']; return this.apiClient.callApi('/team/{team_key}/event/{event_key}/matches/keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); } /** * Callback function to receive the result of the getTeamEventMatchesSimple operation. * @callback module:api/MatchApi~getTeamEventMatchesSimpleCallback * @param {String} error Error message, if any. * @param {Array.<module:model/Match>} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Gets a short-form list of matches for the given team and event. * @param {String} teamKey TBA Team Key, eg `frc254` * @param {String} eventKey TBA Event Key, eg `2016nytr` * @param {Object} opts Optional parameters * @param {String} opts.ifModifiedSince Value of the `Last-Modified` header in the most recently cached response by the client. * @param {module:api/MatchApi~getTeamEventMatchesSimpleCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link Array.<module:model/Match>} */ }, { key: "getTeamEventMatchesSimple", value: function getTeamEventMatchesSimple(teamKey, eventKey, opts, callback) { opts = opts || {}; var postBody = null; // verify the required parameter 'teamKey' is set if (teamKey === undefined || teamKey === null) { throw new Error("Missing the required parameter 'teamKey' when calling getTeamEventMatchesSimple"); } // verify the required parameter 'eventKey' is set if (eventKey === undefined || eventKey === null) { throw new Error("Missing the required parameter 'eventKey' when calling getTeamEventMatchesSimple"); } var pathParams = { 'team_key': teamKey, 'event_key': eventKey }; var queryParams = {}; var headerParams = { 'If-Modified-Since': opts['ifModifiedSince'] }; var formParams = {}; var authNames = ['apiKey']; var contentTypes = []; var accepts = ['application/json']; var returnType = [_Match["default"]]; return this.apiClient.callApi('/team/{team_key}/event/{event_key}/matches/simple', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); } /** * Callback function to receive the result of the getTeamMatchesByYear operation. * @callback module:api/MatchApi~getTeamMatchesByYearCallback * @param {String} error Error message, if any. * @param {Array.<module:model/Match>} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Gets a list of matches for the given team and year. * @param {String} teamKey TBA Team Key, eg `frc254` * @param {Number} year Competition Year (or Season). Must be 4 digits. * @param {Object} opts Optional parameters * @param {String} opts.ifModifiedSince Value of the `Last-Modified` header in the most recently cached response by the client. * @param {module:api/MatchApi~getTeamMatchesByYearCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link Array.<module:model/Match>} */ }, { key: "getTeamMatchesByYear", value: function getTeamMatchesByYear(teamKey, year, opts, callback) { opts = opts || {}; var postBody = null; // verify the required parameter 'teamKey' is set if (teamKey === undefined || teamKey === null) { throw new Error("Missing the required parameter 'teamKey' when calling getTeamMatchesByYear"); } // verify the required parameter 'year' is set if (year === undefined || year === null) { throw new Error("Missing the required parameter 'year' when calling getTeamMatchesByYear"); } var pathParams = { 'team_key': teamKey, 'year': year }; var queryParams = {}; var headerParams = { 'If-Modified-Since': opts['ifModifiedSince'] }; var formParams = {}; var authNames = ['apiKey']; var contentTypes = []; var accepts = ['application/json']; var returnType = [_Match["default"]]; return this.apiClient.callApi('/team/{team_key}/matches/{year}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); } /** * Callback function to receive the result of the getTeamMatchesByYearKeys operation. * @callback module:api/MatchApi~getTeamMatchesByYearKeysCallback * @param {String} error Error message, if any. * @param {Array.<String>} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Gets a list of match keys for matches for the given team and year. * @param {String} teamKey TBA Team Key, eg `frc254` * @param {Number} year Competition Year (or Season). Must be 4 digits. * @param {Object} opts Optional parameters * @param {String} opts.ifModifiedSince Value of the `Last-Modified` header in the most recently cached response by the client. * @param {module:api/MatchApi~getTeamMatchesByYearKeysCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link Array.<String>} */ }, { key: "getTeamMatchesByYearKeys", value: function getTeamMatchesByYearKeys(teamKey, year, opts, callback) { opts = opts || {}; var postBody = null; // verify the required parameter 'teamKey' is set if (teamKey === undefined || teamKey === null) { throw new Error("Missing the required parameter 'teamKey' when calling getTeamMatchesByYearKeys"); } // verify the required parameter 'year' is set if (year === undefined || year === null) { throw new Error("Missing the required parameter 'year' when calling getTeamMatchesByYearKeys"); } var pathParams = { 'team_key': teamKey, 'year': year }; var queryParams = {}; var headerParams = { 'If-Modified-Since': opts['ifModifiedSince'] }; var formParams = {}; var authNames = ['apiKey']; var contentTypes = []; var accepts = ['application/json']; var returnType = ['String']; return this.apiClient.callApi('/team/{team_key}/matches/{year}/keys', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); } /** * Callback function to receive the result of the getTeamMatchesByYearSimple operation. * @callback module:api/MatchApi~getTeamMatchesByYearSimpleCallback * @param {String} error Error message, if any. * @param {Array.<module:model/MatchSimple>} data The data returned by the service call. * @param {String} response The complete HTTP response. */ /** * Gets a short-form list of matches for the given team and year. * @param {String} teamKey TBA Team Key, eg `frc254` * @param {Number} year Competition Year (or Season). Must be 4 digits. * @param {Object} opts Optional parameters * @param {String} opts.ifModifiedSince Value of the `Last-Modified` header in the most recently cached response by the client. * @param {module:api/MatchApi~getTeamMatchesByYearSimpleCallback} callback The callback function, accepting three arguments: error, data, response * data is of type: {@link Array.<module:model/MatchSimple>} */ }, { key: "getTeamMatchesByYearSimple", value: function getTeamMatchesByYearSimple(teamKey, year, opts, callback) { opts = opts || {}; var postBody = null; // verify the required parameter 'teamKey' is set if (teamKey === undefined || teamKey === null) { throw new Error("Missing the required parameter 'teamKey' when calling getTeamMatchesByYearSimple"); } // verify the required parameter 'year' is set if (year === undefined || year === null) { throw new Error("Missing the required parameter 'year' when calling getTeamMatchesByYearSimple"); } var pathParams = { 'team_key': teamKey, 'year': year }; var queryParams = {}; var headerParams = { 'If-Modified-Since': opts['ifModifiedSince'] }; var formParams = {}; var authNames = ['apiKey']; var contentTypes = []; var accepts = ['application/json']; var returnType = [_MatchSimple["default"]]; return this.apiClient.callApi('/team/{team_key}/matches/{year}/simple', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback); } }]); return MatchApi; }(); exports["default"] = MatchApi;