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_

354 lines (315 loc) 15.1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); 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); } /** * The MatchScoreBreakdown2018Alliance model module. * @module model/MatchScoreBreakdown2018Alliance * @version 3.8.0 */ var MatchScoreBreakdown2018Alliance = /*#__PURE__*/function () { /** * Constructs a new <code>MatchScoreBreakdown2018Alliance</code>. * @alias module:model/MatchScoreBreakdown2018Alliance */ function MatchScoreBreakdown2018Alliance() { _classCallCheck(this, MatchScoreBreakdown2018Alliance); MatchScoreBreakdown2018Alliance.initialize(this); } /** * Initializes the fields of this object. * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ _createClass(MatchScoreBreakdown2018Alliance, null, [{ key: "initialize", value: function initialize(obj) {} /** * Constructs a <code>MatchScoreBreakdown2018Alliance</code> from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from <code>data</code> to <code>obj</code> if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. * @param {module:model/MatchScoreBreakdown2018Alliance} obj Optional instance to populate. * @return {module:model/MatchScoreBreakdown2018Alliance} The populated <code>MatchScoreBreakdown2018Alliance</code> instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { obj = obj || new MatchScoreBreakdown2018Alliance(); if (data.hasOwnProperty('adjustPoints')) { obj['adjustPoints'] = _ApiClient["default"].convertToType(data['adjustPoints'], 'Number'); } if (data.hasOwnProperty('autoOwnershipPoints')) { obj['autoOwnershipPoints'] = _ApiClient["default"].convertToType(data['autoOwnershipPoints'], 'Number'); } if (data.hasOwnProperty('autoPoints')) { obj['autoPoints'] = _ApiClient["default"].convertToType(data['autoPoints'], 'Number'); } if (data.hasOwnProperty('autoQuestRankingPoint')) { obj['autoQuestRankingPoint'] = _ApiClient["default"].convertToType(data['autoQuestRankingPoint'], 'Boolean'); } if (data.hasOwnProperty('autoRobot1')) { obj['autoRobot1'] = _ApiClient["default"].convertToType(data['autoRobot1'], 'String'); } if (data.hasOwnProperty('autoRobot2')) { obj['autoRobot2'] = _ApiClient["default"].convertToType(data['autoRobot2'], 'String'); } if (data.hasOwnProperty('autoRobot3')) { obj['autoRobot3'] = _ApiClient["default"].convertToType(data['autoRobot3'], 'String'); } if (data.hasOwnProperty('autoRunPoints')) { obj['autoRunPoints'] = _ApiClient["default"].convertToType(data['autoRunPoints'], 'Number'); } if (data.hasOwnProperty('autoScaleOwnershipSec')) { obj['autoScaleOwnershipSec'] = _ApiClient["default"].convertToType(data['autoScaleOwnershipSec'], 'Number'); } if (data.hasOwnProperty('autoSwitchAtZero')) { obj['autoSwitchAtZero'] = _ApiClient["default"].convertToType(data['autoSwitchAtZero'], 'Boolean'); } if (data.hasOwnProperty('autoSwitchOwnershipSec')) { obj['autoSwitchOwnershipSec'] = _ApiClient["default"].convertToType(data['autoSwitchOwnershipSec'], 'Number'); } if (data.hasOwnProperty('endgamePoints')) { obj['endgamePoints'] = _ApiClient["default"].convertToType(data['endgamePoints'], 'Number'); } if (data.hasOwnProperty('endgameRobot1')) { obj['endgameRobot1'] = _ApiClient["default"].convertToType(data['endgameRobot1'], 'String'); } if (data.hasOwnProperty('endgameRobot2')) { obj['endgameRobot2'] = _ApiClient["default"].convertToType(data['endgameRobot2'], 'String'); } if (data.hasOwnProperty('endgameRobot3')) { obj['endgameRobot3'] = _ApiClient["default"].convertToType(data['endgameRobot3'], 'String'); } if (data.hasOwnProperty('faceTheBossRankingPoint')) { obj['faceTheBossRankingPoint'] = _ApiClient["default"].convertToType(data['faceTheBossRankingPoint'], 'Boolean'); } if (data.hasOwnProperty('foulCount')) { obj['foulCount'] = _ApiClient["default"].convertToType(data['foulCount'], 'Number'); } if (data.hasOwnProperty('foulPoints')) { obj['foulPoints'] = _ApiClient["default"].convertToType(data['foulPoints'], 'Number'); } if (data.hasOwnProperty('rp')) { obj['rp'] = _ApiClient["default"].convertToType(data['rp'], 'Number'); } if (data.hasOwnProperty('techFoulCount')) { obj['techFoulCount'] = _ApiClient["default"].convertToType(data['techFoulCount'], 'Number'); } if (data.hasOwnProperty('teleopOwnershipPoints')) { obj['teleopOwnershipPoints'] = _ApiClient["default"].convertToType(data['teleopOwnershipPoints'], 'Number'); } if (data.hasOwnProperty('teleopPoints')) { obj['teleopPoints'] = _ApiClient["default"].convertToType(data['teleopPoints'], 'Number'); } if (data.hasOwnProperty('teleopScaleBoostSec')) { obj['teleopScaleBoostSec'] = _ApiClient["default"].convertToType(data['teleopScaleBoostSec'], 'Number'); } if (data.hasOwnProperty('teleopScaleForceSec')) { obj['teleopScaleForceSec'] = _ApiClient["default"].convertToType(data['teleopScaleForceSec'], 'Number'); } if (data.hasOwnProperty('teleopScaleOwnershipSec')) { obj['teleopScaleOwnershipSec'] = _ApiClient["default"].convertToType(data['teleopScaleOwnershipSec'], 'Number'); } if (data.hasOwnProperty('teleopSwitchBoostSec')) { obj['teleopSwitchBoostSec'] = _ApiClient["default"].convertToType(data['teleopSwitchBoostSec'], 'Number'); } if (data.hasOwnProperty('teleopSwitchForceSec')) { obj['teleopSwitchForceSec'] = _ApiClient["default"].convertToType(data['teleopSwitchForceSec'], 'Number'); } if (data.hasOwnProperty('teleopSwitchOwnershipSec')) { obj['teleopSwitchOwnershipSec'] = _ApiClient["default"].convertToType(data['teleopSwitchOwnershipSec'], 'Number'); } if (data.hasOwnProperty('totalPoints')) { obj['totalPoints'] = _ApiClient["default"].convertToType(data['totalPoints'], 'Number'); } if (data.hasOwnProperty('vaultBoostPlayed')) { obj['vaultBoostPlayed'] = _ApiClient["default"].convertToType(data['vaultBoostPlayed'], 'Number'); } if (data.hasOwnProperty('vaultBoostTotal')) { obj['vaultBoostTotal'] = _ApiClient["default"].convertToType(data['vaultBoostTotal'], 'Number'); } if (data.hasOwnProperty('vaultForcePlayed')) { obj['vaultForcePlayed'] = _ApiClient["default"].convertToType(data['vaultForcePlayed'], 'Number'); } if (data.hasOwnProperty('vaultForceTotal')) { obj['vaultForceTotal'] = _ApiClient["default"].convertToType(data['vaultForceTotal'], 'Number'); } if (data.hasOwnProperty('vaultLevitatePlayed')) { obj['vaultLevitatePlayed'] = _ApiClient["default"].convertToType(data['vaultLevitatePlayed'], 'Number'); } if (data.hasOwnProperty('vaultLevitateTotal')) { obj['vaultLevitateTotal'] = _ApiClient["default"].convertToType(data['vaultLevitateTotal'], 'Number'); } if (data.hasOwnProperty('vaultPoints')) { obj['vaultPoints'] = _ApiClient["default"].convertToType(data['vaultPoints'], 'Number'); } if (data.hasOwnProperty('tba_gameData')) { obj['tba_gameData'] = _ApiClient["default"].convertToType(data['tba_gameData'], 'String'); } } return obj; } }]); return MatchScoreBreakdown2018Alliance; }(); /** * @member {Number} adjustPoints */ MatchScoreBreakdown2018Alliance.prototype['adjustPoints'] = undefined; /** * @member {Number} autoOwnershipPoints */ MatchScoreBreakdown2018Alliance.prototype['autoOwnershipPoints'] = undefined; /** * @member {Number} autoPoints */ MatchScoreBreakdown2018Alliance.prototype['autoPoints'] = undefined; /** * @member {Boolean} autoQuestRankingPoint */ MatchScoreBreakdown2018Alliance.prototype['autoQuestRankingPoint'] = undefined; /** * @member {String} autoRobot1 */ MatchScoreBreakdown2018Alliance.prototype['autoRobot1'] = undefined; /** * @member {String} autoRobot2 */ MatchScoreBreakdown2018Alliance.prototype['autoRobot2'] = undefined; /** * @member {String} autoRobot3 */ MatchScoreBreakdown2018Alliance.prototype['autoRobot3'] = undefined; /** * @member {Number} autoRunPoints */ MatchScoreBreakdown2018Alliance.prototype['autoRunPoints'] = undefined; /** * @member {Number} autoScaleOwnershipSec */ MatchScoreBreakdown2018Alliance.prototype['autoScaleOwnershipSec'] = undefined; /** * @member {Boolean} autoSwitchAtZero */ MatchScoreBreakdown2018Alliance.prototype['autoSwitchAtZero'] = undefined; /** * @member {Number} autoSwitchOwnershipSec */ MatchScoreBreakdown2018Alliance.prototype['autoSwitchOwnershipSec'] = undefined; /** * @member {Number} endgamePoints */ MatchScoreBreakdown2018Alliance.prototype['endgamePoints'] = undefined; /** * @member {String} endgameRobot1 */ MatchScoreBreakdown2018Alliance.prototype['endgameRobot1'] = undefined; /** * @member {String} endgameRobot2 */ MatchScoreBreakdown2018Alliance.prototype['endgameRobot2'] = undefined; /** * @member {String} endgameRobot3 */ MatchScoreBreakdown2018Alliance.prototype['endgameRobot3'] = undefined; /** * @member {Boolean} faceTheBossRankingPoint */ MatchScoreBreakdown2018Alliance.prototype['faceTheBossRankingPoint'] = undefined; /** * @member {Number} foulCount */ MatchScoreBreakdown2018Alliance.prototype['foulCount'] = undefined; /** * @member {Number} foulPoints */ MatchScoreBreakdown2018Alliance.prototype['foulPoints'] = undefined; /** * @member {Number} rp */ MatchScoreBreakdown2018Alliance.prototype['rp'] = undefined; /** * @member {Number} techFoulCount */ MatchScoreBreakdown2018Alliance.prototype['techFoulCount'] = undefined; /** * @member {Number} teleopOwnershipPoints */ MatchScoreBreakdown2018Alliance.prototype['teleopOwnershipPoints'] = undefined; /** * @member {Number} teleopPoints */ MatchScoreBreakdown2018Alliance.prototype['teleopPoints'] = undefined; /** * @member {Number} teleopScaleBoostSec */ MatchScoreBreakdown2018Alliance.prototype['teleopScaleBoostSec'] = undefined; /** * @member {Number} teleopScaleForceSec */ MatchScoreBreakdown2018Alliance.prototype['teleopScaleForceSec'] = undefined; /** * @member {Number} teleopScaleOwnershipSec */ MatchScoreBreakdown2018Alliance.prototype['teleopScaleOwnershipSec'] = undefined; /** * @member {Number} teleopSwitchBoostSec */ MatchScoreBreakdown2018Alliance.prototype['teleopSwitchBoostSec'] = undefined; /** * @member {Number} teleopSwitchForceSec */ MatchScoreBreakdown2018Alliance.prototype['teleopSwitchForceSec'] = undefined; /** * @member {Number} teleopSwitchOwnershipSec */ MatchScoreBreakdown2018Alliance.prototype['teleopSwitchOwnershipSec'] = undefined; /** * @member {Number} totalPoints */ MatchScoreBreakdown2018Alliance.prototype['totalPoints'] = undefined; /** * @member {Number} vaultBoostPlayed */ MatchScoreBreakdown2018Alliance.prototype['vaultBoostPlayed'] = undefined; /** * @member {Number} vaultBoostTotal */ MatchScoreBreakdown2018Alliance.prototype['vaultBoostTotal'] = undefined; /** * @member {Number} vaultForcePlayed */ MatchScoreBreakdown2018Alliance.prototype['vaultForcePlayed'] = undefined; /** * @member {Number} vaultForceTotal */ MatchScoreBreakdown2018Alliance.prototype['vaultForceTotal'] = undefined; /** * @member {Number} vaultLevitatePlayed */ MatchScoreBreakdown2018Alliance.prototype['vaultLevitatePlayed'] = undefined; /** * @member {Number} vaultLevitateTotal */ MatchScoreBreakdown2018Alliance.prototype['vaultLevitateTotal'] = undefined; /** * @member {Number} vaultPoints */ MatchScoreBreakdown2018Alliance.prototype['vaultPoints'] = undefined; /** * Unofficial TBA-computed value of the FMS provided GameData given to the alliance teams at the start of the match. 3 Character String containing `L` and `R` only. The first character represents the near switch, the 2nd the scale, and the 3rd the far, opposing, switch from the alliance's perspective. An `L` in a position indicates the platform on the left will be lit for the alliance while an `R` will indicate the right platform will be lit for the alliance. See also [WPI Screen Steps](https://wpilib.screenstepslive.com/s/currentCS/m/getting_started/l/826278-2018-game-data-details). * @member {String} tba_gameData */ MatchScoreBreakdown2018Alliance.prototype['tba_gameData'] = undefined; var _default = MatchScoreBreakdown2018Alliance; exports["default"] = _default;