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_

331 lines (295 loc) 13.9 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 MatchScoreBreakdown2020Alliance model module. * @module model/MatchScoreBreakdown2020Alliance * @version 3.8.0 */ var MatchScoreBreakdown2020Alliance = /*#__PURE__*/function () { /** * Constructs a new <code>MatchScoreBreakdown2020Alliance</code>. * @alias module:model/MatchScoreBreakdown2020Alliance */ function MatchScoreBreakdown2020Alliance() { _classCallCheck(this, MatchScoreBreakdown2020Alliance); MatchScoreBreakdown2020Alliance.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(MatchScoreBreakdown2020Alliance, null, [{ key: "initialize", value: function initialize(obj) {} /** * Constructs a <code>MatchScoreBreakdown2020Alliance</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/MatchScoreBreakdown2020Alliance} obj Optional instance to populate. * @return {module:model/MatchScoreBreakdown2020Alliance} The populated <code>MatchScoreBreakdown2020Alliance</code> instance. */ }, { key: "constructFromObject", value: function constructFromObject(data, obj) { if (data) { obj = obj || new MatchScoreBreakdown2020Alliance(); if (data.hasOwnProperty('initLineRobot1')) { obj['initLineRobot1'] = _ApiClient["default"].convertToType(data['initLineRobot1'], 'String'); } if (data.hasOwnProperty('endgameRobot1')) { obj['endgameRobot1'] = _ApiClient["default"].convertToType(data['endgameRobot1'], 'String'); } if (data.hasOwnProperty('initLineRobot2')) { obj['initLineRobot2'] = _ApiClient["default"].convertToType(data['initLineRobot2'], 'String'); } if (data.hasOwnProperty('endgameRobot2')) { obj['endgameRobot2'] = _ApiClient["default"].convertToType(data['endgameRobot2'], 'String'); } if (data.hasOwnProperty('initLineRobot3')) { obj['initLineRobot3'] = _ApiClient["default"].convertToType(data['initLineRobot3'], 'String'); } if (data.hasOwnProperty('endgameRobot3')) { obj['endgameRobot3'] = _ApiClient["default"].convertToType(data['endgameRobot3'], 'String'); } if (data.hasOwnProperty('autoCellsBottom')) { obj['autoCellsBottom'] = _ApiClient["default"].convertToType(data['autoCellsBottom'], 'Number'); } if (data.hasOwnProperty('autoCellsOuter')) { obj['autoCellsOuter'] = _ApiClient["default"].convertToType(data['autoCellsOuter'], 'Number'); } if (data.hasOwnProperty('autoCellsInner')) { obj['autoCellsInner'] = _ApiClient["default"].convertToType(data['autoCellsInner'], 'Number'); } if (data.hasOwnProperty('teleopCellsBottom')) { obj['teleopCellsBottom'] = _ApiClient["default"].convertToType(data['teleopCellsBottom'], 'Number'); } if (data.hasOwnProperty('teleopCellsOuter')) { obj['teleopCellsOuter'] = _ApiClient["default"].convertToType(data['teleopCellsOuter'], 'Number'); } if (data.hasOwnProperty('teleopCellsInner')) { obj['teleopCellsInner'] = _ApiClient["default"].convertToType(data['teleopCellsInner'], 'Number'); } if (data.hasOwnProperty('stage1Activated')) { obj['stage1Activated'] = _ApiClient["default"].convertToType(data['stage1Activated'], 'Boolean'); } if (data.hasOwnProperty('stage2Activated')) { obj['stage2Activated'] = _ApiClient["default"].convertToType(data['stage2Activated'], 'Boolean'); } if (data.hasOwnProperty('stage3Activated')) { obj['stage3Activated'] = _ApiClient["default"].convertToType(data['stage3Activated'], 'Boolean'); } if (data.hasOwnProperty('stage3TargetColor')) { obj['stage3TargetColor'] = _ApiClient["default"].convertToType(data['stage3TargetColor'], 'String'); } if (data.hasOwnProperty('endgameRungIsLevel')) { obj['endgameRungIsLevel'] = _ApiClient["default"].convertToType(data['endgameRungIsLevel'], 'String'); } if (data.hasOwnProperty('autoInitLinePoints')) { obj['autoInitLinePoints'] = _ApiClient["default"].convertToType(data['autoInitLinePoints'], 'Number'); } if (data.hasOwnProperty('autoCellPoints')) { obj['autoCellPoints'] = _ApiClient["default"].convertToType(data['autoCellPoints'], 'Number'); } if (data.hasOwnProperty('autoPoints')) { obj['autoPoints'] = _ApiClient["default"].convertToType(data['autoPoints'], 'Number'); } if (data.hasOwnProperty('teleopCellPoints')) { obj['teleopCellPoints'] = _ApiClient["default"].convertToType(data['teleopCellPoints'], 'Number'); } if (data.hasOwnProperty('controlPanelPoints')) { obj['controlPanelPoints'] = _ApiClient["default"].convertToType(data['controlPanelPoints'], 'Number'); } if (data.hasOwnProperty('endgamePoints')) { obj['endgamePoints'] = _ApiClient["default"].convertToType(data['endgamePoints'], 'Number'); } if (data.hasOwnProperty('teleopPoints')) { obj['teleopPoints'] = _ApiClient["default"].convertToType(data['teleopPoints'], 'Number'); } if (data.hasOwnProperty('shieldOperationalRankingPoint')) { obj['shieldOperationalRankingPoint'] = _ApiClient["default"].convertToType(data['shieldOperationalRankingPoint'], 'Boolean'); } if (data.hasOwnProperty('shieldEnergizedRankingPoint')) { obj['shieldEnergizedRankingPoint'] = _ApiClient["default"].convertToType(data['shieldEnergizedRankingPoint'], 'Boolean'); } if (data.hasOwnProperty('tba_shieldEnergizedRankingPointFromFoul')) { obj['tba_shieldEnergizedRankingPointFromFoul'] = _ApiClient["default"].convertToType(data['tba_shieldEnergizedRankingPointFromFoul'], 'Boolean'); } if (data.hasOwnProperty('tba_numRobotsHanging')) { obj['tba_numRobotsHanging'] = _ApiClient["default"].convertToType(data['tba_numRobotsHanging'], 'Number'); } if (data.hasOwnProperty('foulCount')) { obj['foulCount'] = _ApiClient["default"].convertToType(data['foulCount'], 'Number'); } if (data.hasOwnProperty('techFoulCount')) { obj['techFoulCount'] = _ApiClient["default"].convertToType(data['techFoulCount'], 'Number'); } if (data.hasOwnProperty('adjustPoints')) { obj['adjustPoints'] = _ApiClient["default"].convertToType(data['adjustPoints'], '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('totalPoints')) { obj['totalPoints'] = _ApiClient["default"].convertToType(data['totalPoints'], 'Number'); } } return obj; } }]); return MatchScoreBreakdown2020Alliance; }(); /** * @member {String} initLineRobot1 */ MatchScoreBreakdown2020Alliance.prototype['initLineRobot1'] = undefined; /** * @member {String} endgameRobot1 */ MatchScoreBreakdown2020Alliance.prototype['endgameRobot1'] = undefined; /** * @member {String} initLineRobot2 */ MatchScoreBreakdown2020Alliance.prototype['initLineRobot2'] = undefined; /** * @member {String} endgameRobot2 */ MatchScoreBreakdown2020Alliance.prototype['endgameRobot2'] = undefined; /** * @member {String} initLineRobot3 */ MatchScoreBreakdown2020Alliance.prototype['initLineRobot3'] = undefined; /** * @member {String} endgameRobot3 */ MatchScoreBreakdown2020Alliance.prototype['endgameRobot3'] = undefined; /** * @member {Number} autoCellsBottom */ MatchScoreBreakdown2020Alliance.prototype['autoCellsBottom'] = undefined; /** * @member {Number} autoCellsOuter */ MatchScoreBreakdown2020Alliance.prototype['autoCellsOuter'] = undefined; /** * @member {Number} autoCellsInner */ MatchScoreBreakdown2020Alliance.prototype['autoCellsInner'] = undefined; /** * @member {Number} teleopCellsBottom */ MatchScoreBreakdown2020Alliance.prototype['teleopCellsBottom'] = undefined; /** * @member {Number} teleopCellsOuter */ MatchScoreBreakdown2020Alliance.prototype['teleopCellsOuter'] = undefined; /** * @member {Number} teleopCellsInner */ MatchScoreBreakdown2020Alliance.prototype['teleopCellsInner'] = undefined; /** * @member {Boolean} stage1Activated */ MatchScoreBreakdown2020Alliance.prototype['stage1Activated'] = undefined; /** * @member {Boolean} stage2Activated */ MatchScoreBreakdown2020Alliance.prototype['stage2Activated'] = undefined; /** * @member {Boolean} stage3Activated */ MatchScoreBreakdown2020Alliance.prototype['stage3Activated'] = undefined; /** * @member {String} stage3TargetColor */ MatchScoreBreakdown2020Alliance.prototype['stage3TargetColor'] = undefined; /** * @member {String} endgameRungIsLevel */ MatchScoreBreakdown2020Alliance.prototype['endgameRungIsLevel'] = undefined; /** * @member {Number} autoInitLinePoints */ MatchScoreBreakdown2020Alliance.prototype['autoInitLinePoints'] = undefined; /** * @member {Number} autoCellPoints */ MatchScoreBreakdown2020Alliance.prototype['autoCellPoints'] = undefined; /** * @member {Number} autoPoints */ MatchScoreBreakdown2020Alliance.prototype['autoPoints'] = undefined; /** * @member {Number} teleopCellPoints */ MatchScoreBreakdown2020Alliance.prototype['teleopCellPoints'] = undefined; /** * @member {Number} controlPanelPoints */ MatchScoreBreakdown2020Alliance.prototype['controlPanelPoints'] = undefined; /** * @member {Number} endgamePoints */ MatchScoreBreakdown2020Alliance.prototype['endgamePoints'] = undefined; /** * @member {Number} teleopPoints */ MatchScoreBreakdown2020Alliance.prototype['teleopPoints'] = undefined; /** * @member {Boolean} shieldOperationalRankingPoint */ MatchScoreBreakdown2020Alliance.prototype['shieldOperationalRankingPoint'] = undefined; /** * @member {Boolean} shieldEnergizedRankingPoint */ MatchScoreBreakdown2020Alliance.prototype['shieldEnergizedRankingPoint'] = undefined; /** * Unofficial TBA-computed value that indicates whether the shieldEnergizedRankingPoint was earned normally or awarded due to a foul. * @member {Boolean} tba_shieldEnergizedRankingPointFromFoul */ MatchScoreBreakdown2020Alliance.prototype['tba_shieldEnergizedRankingPointFromFoul'] = undefined; /** * Unofficial TBA-computed value that counts the number of robots who were hanging at the end of the match. * @member {Number} tba_numRobotsHanging */ MatchScoreBreakdown2020Alliance.prototype['tba_numRobotsHanging'] = undefined; /** * @member {Number} foulCount */ MatchScoreBreakdown2020Alliance.prototype['foulCount'] = undefined; /** * @member {Number} techFoulCount */ MatchScoreBreakdown2020Alliance.prototype['techFoulCount'] = undefined; /** * @member {Number} adjustPoints */ MatchScoreBreakdown2020Alliance.prototype['adjustPoints'] = undefined; /** * @member {Number} foulPoints */ MatchScoreBreakdown2020Alliance.prototype['foulPoints'] = undefined; /** * @member {Number} rp */ MatchScoreBreakdown2020Alliance.prototype['rp'] = undefined; /** * @member {Number} totalPoints */ MatchScoreBreakdown2020Alliance.prototype['totalPoints'] = undefined; var _default = MatchScoreBreakdown2020Alliance; exports["default"] = _default;