@battle-racing/br-common-lib 4.6.1 → 4.7.0
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.
- package/dist/domains/game/Game.schema.d.ts +13 -0
- package/dist/domains/game/Game.schema.js +11 -1
- package/dist/domains/game/Game.types.d.ts +3 -1
- package/dist/domains/game/battle/Battle.schema.d.ts +17 -0
- package/dist/domains/game/battle/Battle.schema.js +15 -1
- package/dist/domains/game/battle/Battle.types.d.ts +3 -1
- package/dist/domains/game/race/Race.schema.d.ts +41 -0
- package/dist/domains/game/race/Race.schema.js +16 -1
- package/dist/domains/game/race/Race.types.d.ts +3 -1
- package/dist/domains/player/Player.schema.d.ts +5 -0
- package/dist/domains/player/Player.schema.js +6 -1
- package/dist/domains/player/Player.types.d.ts +2 -1
- package/dist/domains/session/Session.schema.d.ts +20 -0
- package/dist/domains/ticketing/Ticketing.const.d.ts +2 -0
- package/dist/domains/ticketing/Ticketing.const.js +2 -0
- package/dist/domains/ticketing/Ticketing.schema.d.ts +99 -0
- package/dist/domains/ticketing/Ticketing.schema.js +27 -1
- package/dist/domains/ticketing/Ticketing.types.d.ts +5 -1
- package/dist/mcp-server/index.d.ts +1 -0
- package/dist/mcp-server/index.js +174 -0
- package/package.json +6 -1
- package/src/domains/game/Game.schema.ts +12 -0
- package/src/domains/game/Game.types.ts +4 -0
- package/src/domains/game/battle/Battle.schema.ts +16 -0
- package/src/domains/game/battle/Battle.types.ts +4 -1
- package/src/domains/game/race/Race.schema.ts +17 -0
- package/src/domains/game/race/Race.types.ts +5 -0
- package/src/domains/player/Player.schema.ts +6 -0
- package/src/domains/player/Player.types.ts +2 -1
- package/src/domains/ticketing/Ticketing.const.ts +2 -0
- package/src/domains/ticketing/Ticketing.schema.ts +32 -1
- package/src/domains/ticketing/Ticketing.types.ts +8 -0
- package/src/mcp-server/index.ts +171 -0
- package/dist/constants/checkpoint-type.d.ts +0 -6
- package/dist/constants/checkpoint-type.js +0 -9
- package/dist/constants/hardware/base-hardware-status.d.ts +0 -6
- package/dist/constants/hardware/base-hardware-status.js +0 -9
- package/dist/constants/hardware/damage.d.ts +0 -10
- package/dist/constants/hardware/damage.js +0 -13
- package/dist/constants/hardware/flag-media-name.d.ts +0 -63
- package/dist/constants/hardware/flag-media-name.js +0 -71
- package/dist/constants/hardware/flag-status.d.ts +0 -10
- package/dist/constants/hardware/flag-status.js +0 -11
- package/dist/constants/hardware/index.d.ts +0 -9
- package/dist/constants/hardware/index.js +0 -25
- package/dist/constants/hardware/lights-effect.d.ts +0 -10
- package/dist/constants/hardware/lights-effect.js +0 -14
- package/dist/constants/hardware/rgb-status.d.ts +0 -8
- package/dist/constants/hardware/rgb-status.js +0 -11
- package/dist/constants/hardware/screen-status.d.ts +0 -7
- package/dist/constants/hardware/screen-status.js +0 -8
- package/dist/constants/hardware/screen-view.d.ts +0 -9
- package/dist/constants/hardware/screen-view.js +0 -12
- package/dist/constants/hardware/speed-status.d.ts +0 -9
- package/dist/constants/hardware/speed-status.js +0 -10
- package/dist/constants/index.d.ts +0 -9
- package/dist/constants/index.js +0 -25
- package/dist/constants/kart-status.d.ts +0 -12
- package/dist/constants/kart-status.js +0 -15
- package/dist/constants/module-name.d.ts +0 -12
- package/dist/constants/module-name.js +0 -15
- package/dist/constants/payment-provider.d.ts +0 -5
- package/dist/constants/payment-provider.js +0 -8
- package/dist/constants/payment-status.d.ts +0 -7
- package/dist/constants/payment-status.js +0 -10
- package/dist/constants/permission.d.ts +0 -12
- package/dist/constants/permission.js +0 -15
- package/dist/constants/racing-team-role.d.ts +0 -5
- package/dist/constants/racing-team-role.js +0 -8
- package/dist/constants/user-role.d.ts +0 -5
- package/dist/constants/user-role.js +0 -8
- package/dist/domains/powerUp/PowerUpCommand.schema.d.ts +0 -799
- package/dist/domains/powerUp/PowerUpCommand.schema.js +0 -120
- package/dist/domains/socket/Socket.types.d.ts +0 -35
- package/dist/domains/socket/Socket.types.js +0 -2
- package/dist/domains/socket/SocketHardware.schema.d.ts +0 -1021
- package/dist/domains/socket/SocketHardware.schema.js +0 -82
- package/dist/domains/socket/SocketHardware.types.d.ts +0 -66
- package/dist/domains/socket/SocketHardware.types.js +0 -2
- package/dist/domains/socket/SocketParamsToEvents.d.ts +0 -10
- package/dist/domains/socket/SocketParamsToEvents.js +0 -2
- package/dist/domains/socket/SocketPowerUp.schema.d.ts +0 -1224
- package/dist/domains/socket/SocketPowerUp.schema.js +0 -12
- package/dist/domains/socket/SocketPowerUp.types.d.ts +0 -17
- package/dist/domains/socket/SocketPowerUp.types.js +0 -2
- package/dist/domains/socket/clientToServer/SocketClientToServer.schema.d.ts +0 -399
- package/dist/domains/socket/clientToServer/SocketClientToServer.schema.js +0 -32
- package/dist/domains/socket/clientToServer/SocketClientToServer.types.d.ts +0 -52
- package/dist/domains/socket/clientToServer/SocketClientToServer.types.js +0 -2
- package/dist/domains/socket/inputs/SocketInput.schema.d.ts +0 -63
- package/dist/domains/socket/inputs/SocketInput.schema.js +0 -21
- package/dist/domains/socket/inputs/SocketInput.types.d.ts +0 -19
- package/dist/domains/socket/inputs/SocketInput.types.js +0 -2
- package/dist/domains/socket/serverToClient/SocketServerToClient.schema.d.ts +0 -3786
- package/dist/domains/socket/serverToClient/SocketServerToClient.schema.js +0 -105
- package/dist/domains/socket/serverToClient/SocketServerToClient.types.d.ts +0 -97
- package/dist/domains/socket/serverToClient/SocketServerToClient.types.js +0 -2
- package/dist/types/checkpoint/Checkpoint.d.ts +0 -10
- package/dist/types/checkpoint/Checkpoint.js +0 -2
- package/dist/types/checkpoint/CheckpointType.d.ts +0 -3
- package/dist/types/checkpoint/CheckpointType.js +0 -2
- package/dist/types/checkpoint/index.d.ts +0 -2
- package/dist/types/checkpoint/index.js +0 -18
- package/dist/types/color/ColorInfo.d.ts +0 -4
- package/dist/types/color/ColorInfo.js +0 -2
- package/dist/types/color/ColorName.d.ts +0 -1
- package/dist/types/color/ColorName.js +0 -2
- package/dist/types/color/index.d.ts +0 -2
- package/dist/types/color/index.js +0 -18
- package/dist/types/command/CommandConfig.d.ts +0 -159
- package/dist/types/command/CommandConfig.js +0 -2
- package/dist/types/command/index.d.ts +0 -1
- package/dist/types/command/index.js +0 -17
- package/dist/types/damage/Damage.d.ts +0 -13
- package/dist/types/damage/Damage.js +0 -2
- package/dist/types/damage/DamageName.d.ts +0 -3
- package/dist/types/damage/DamageName.js +0 -2
- package/dist/types/damage/DamageTarget.d.ts +0 -1
- package/dist/types/damage/DamageTarget.js +0 -2
- package/dist/types/damage/index.d.ts +0 -3
- package/dist/types/damage/index.js +0 -19
- package/dist/types/flow/Flow.d.ts +0 -7
- package/dist/types/flow/Flow.js +0 -2
- package/dist/types/flow/index.d.ts +0 -1
- package/dist/types/flow/index.js +0 -17
- package/dist/types/game/Game.d.ts +0 -38
- package/dist/types/game/Game.js +0 -14
- package/dist/types/game/GameStatus.d.ts +0 -9
- package/dist/types/game/GameStatus.js +0 -12
- package/dist/types/game/GameType.d.ts +0 -5
- package/dist/types/game/GameType.js +0 -8
- package/dist/types/game/GameWarningEvent.d.ts +0 -1
- package/dist/types/game/GameWarningEvent.js +0 -2
- package/dist/types/game/KartRankingItem.d.ts +0 -5
- package/dist/types/game/KartRankingItem.js +0 -2
- package/dist/types/game/battle/Battle.d.ts +0 -9
- package/dist/types/game/battle/Battle.js +0 -2
- package/dist/types/game/battle/index.d.ts +0 -1
- package/dist/types/game/battle/index.js +0 -17
- package/dist/types/game/index.d.ts +0 -7
- package/dist/types/game/index.js +0 -23
- package/dist/types/game/race/KartProgress.d.ts +0 -10
- package/dist/types/game/race/KartProgress.js +0 -2
- package/dist/types/game/race/LapTime.d.ts +0 -11
- package/dist/types/game/race/LapTime.js +0 -2
- package/dist/types/game/race/Race.d.ts +0 -25
- package/dist/types/game/race/Race.js +0 -2
- package/dist/types/game/race/index.d.ts +0 -3
- package/dist/types/game/race/index.js +0 -19
- package/dist/types/gameTrack/GameTrack.d.ts +0 -14
- package/dist/types/gameTrack/GameTrack.js +0 -2
- package/dist/types/gameTrack/GameTrackGameDefaultValues.d.ts +0 -4
- package/dist/types/gameTrack/GameTrackGameDefaultValues.js +0 -2
- package/dist/types/gameTrack/GameTrackKartConfig.d.ts +0 -9
- package/dist/types/gameTrack/GameTrackKartConfig.js +0 -2
- package/dist/types/gameTrack/GameTrackKartsConfig.d.ts +0 -23
- package/dist/types/gameTrack/GameTrackKartsConfig.js +0 -2
- package/dist/types/gameTrack/index.d.ts +0 -4
- package/dist/types/gameTrack/index.js +0 -20
- package/dist/types/hardware/KartEffect.d.ts +0 -1
- package/dist/types/hardware/KartEffect.js +0 -2
- package/dist/types/hardware/KartHardwareState.d.ts +0 -21
- package/dist/types/hardware/KartHardwareState.js +0 -2
- package/dist/types/hardware/ModuleName.d.ts +0 -3
- package/dist/types/hardware/ModuleName.js +0 -2
- package/dist/types/hardware/ModuleStatus.d.ts +0 -9
- package/dist/types/hardware/ModuleStatus.js +0 -2
- package/dist/types/hardware/ballSensor/BallSensorCommand.d.ts +0 -1
- package/dist/types/hardware/ballSensor/BallSensorCommand.js +0 -2
- package/dist/types/hardware/ballSensor/BallSensorDiskThrowerModuleStatus.d.ts +0 -4
- package/dist/types/hardware/ballSensor/BallSensorDiskThrowerModuleStatus.js +0 -2
- package/dist/types/hardware/ballSensor/BallSensorStatus.d.ts +0 -1
- package/dist/types/hardware/ballSensor/BallSensorStatus.js +0 -2
- package/dist/types/hardware/ballSensor/ConfigureBallSensorDiskThrowerModuleOptions.d.ts +0 -4
- package/dist/types/hardware/ballSensor/ConfigureBallSensorDiskThrowerModuleOptions.js +0 -2
- package/dist/types/hardware/ballSensor/index.d.ts +0 -4
- package/dist/types/hardware/ballSensor/index.js +0 -20
- package/dist/types/hardware/ballShooter/BallShooterCommand.d.ts +0 -1
- package/dist/types/hardware/ballShooter/BallShooterCommand.js +0 -2
- package/dist/types/hardware/ballShooter/BallShooterStatus.d.ts +0 -1
- package/dist/types/hardware/ballShooter/BallShooterStatus.js +0 -2
- package/dist/types/hardware/ballShooter/index.d.ts +0 -2
- package/dist/types/hardware/ballShooter/index.js +0 -18
- package/dist/types/hardware/diskSensor/ConfigDiskSensorBallShooterModuleOptions.d.ts +0 -8
- package/dist/types/hardware/diskSensor/ConfigDiskSensorBallShooterModuleOptions.js +0 -2
- package/dist/types/hardware/diskSensor/DiskSensorBallShooterModuleStatus.d.ts +0 -4
- package/dist/types/hardware/diskSensor/DiskSensorBallShooterModuleStatus.js +0 -2
- package/dist/types/hardware/diskSensor/DiskSensorCommand.d.ts +0 -1
- package/dist/types/hardware/diskSensor/DiskSensorCommand.js +0 -2
- package/dist/types/hardware/diskSensor/DiskSensorStatus.d.ts +0 -1
- package/dist/types/hardware/diskSensor/DiskSensorStatus.js +0 -2
- package/dist/types/hardware/diskSensor/index.d.ts +0 -4
- package/dist/types/hardware/diskSensor/index.js +0 -20
- package/dist/types/hardware/diskThrower/DiskThrowerCommand.d.ts +0 -1
- package/dist/types/hardware/diskThrower/DiskThrowerCommand.js +0 -2
- package/dist/types/hardware/diskThrower/DiskThrowerStatus.d.ts +0 -1
- package/dist/types/hardware/diskThrower/DiskThrowerStatus.js +0 -2
- package/dist/types/hardware/diskThrower/index.d.ts +0 -2
- package/dist/types/hardware/diskThrower/index.js +0 -18
- package/dist/types/hardware/emergency/EmergencyActionCommand.d.ts +0 -1
- package/dist/types/hardware/emergency/EmergencyActionCommand.js +0 -2
- package/dist/types/hardware/emergency/EmergencyModuleStatus.d.ts +0 -4
- package/dist/types/hardware/emergency/EmergencyModuleStatus.js +0 -2
- package/dist/types/hardware/emergency/EmergencyStatus.d.ts +0 -1
- package/dist/types/hardware/emergency/EmergencyStatus.js +0 -2
- package/dist/types/hardware/emergency/index.d.ts +0 -3
- package/dist/types/hardware/emergency/index.js +0 -19
- package/dist/types/hardware/flag/FlagActionCommand.d.ts +0 -1
- package/dist/types/hardware/flag/FlagActionCommand.js +0 -2
- package/dist/types/hardware/flag/FlagConfigurationOptions.d.ts +0 -10
- package/dist/types/hardware/flag/FlagConfigurationOptions.js +0 -2
- package/dist/types/hardware/flag/FlagMediaName.d.ts +0 -3
- package/dist/types/hardware/flag/FlagMediaName.js +0 -2
- package/dist/types/hardware/flag/FlagModuleStatus.d.ts +0 -7
- package/dist/types/hardware/flag/FlagModuleStatus.js +0 -2
- package/dist/types/hardware/flag/FlagShowMediaOptions.d.ts +0 -14
- package/dist/types/hardware/flag/FlagShowMediaOptions.js +0 -2
- package/dist/types/hardware/flag/FlagStatus.d.ts +0 -3
- package/dist/types/hardware/flag/FlagStatus.js +0 -2
- package/dist/types/hardware/flag/index.d.ts +0 -6
- package/dist/types/hardware/flag/index.js +0 -22
- package/dist/types/hardware/index.d.ts +0 -17
- package/dist/types/hardware/index.js +0 -33
- package/dist/types/hardware/lights/LightsEffect.d.ts +0 -3
- package/dist/types/hardware/lights/LightsEffect.js +0 -2
- package/dist/types/hardware/lights/ShowLightsColorParams.d.ts +0 -7
- package/dist/types/hardware/lights/ShowLightsColorParams.js +0 -2
- package/dist/types/hardware/lights/ShowLightsEffectParams.d.ts +0 -8
- package/dist/types/hardware/lights/ShowLightsEffectParams.js +0 -2
- package/dist/types/hardware/lights/index.d.ts +0 -3
- package/dist/types/hardware/lights/index.js +0 -19
- package/dist/types/hardware/rgb/RGBActionCommand.d.ts +0 -1
- package/dist/types/hardware/rgb/RGBActionCommand.js +0 -2
- package/dist/types/hardware/rgb/RGBConfigurationOptions.d.ts +0 -8
- package/dist/types/hardware/rgb/RGBConfigurationOptions.js +0 -2
- package/dist/types/hardware/rgb/RGBModuleStatus.d.ts +0 -6
- package/dist/types/hardware/rgb/RGBModuleStatus.js +0 -2
- package/dist/types/hardware/rgb/RGBShowEffectOptions.d.ts +0 -4
- package/dist/types/hardware/rgb/RGBShowEffectOptions.js +0 -2
- package/dist/types/hardware/rgb/RGBStatus.d.ts +0 -3
- package/dist/types/hardware/rgb/RGBStatus.js +0 -2
- package/dist/types/hardware/rgb/index.d.ts +0 -5
- package/dist/types/hardware/rgb/index.js +0 -21
- package/dist/types/hardware/screen/ScreenBattleViewConfig.d.ts +0 -4
- package/dist/types/hardware/screen/ScreenBattleViewConfig.js +0 -2
- package/dist/types/hardware/screen/ScreenCountdownParams.d.ts +0 -11
- package/dist/types/hardware/screen/ScreenCountdownParams.js +0 -2
- package/dist/types/hardware/screen/ScreenDebugViewInput.d.ts +0 -4
- package/dist/types/hardware/screen/ScreenDebugViewInput.js +0 -2
- package/dist/types/hardware/screen/ScreenFinishViewInput.d.ts +0 -10
- package/dist/types/hardware/screen/ScreenFinishViewInput.js +0 -2
- package/dist/types/hardware/screen/ScreenGameTimeLeft.d.ts +0 -4
- package/dist/types/hardware/screen/ScreenGameTimeLeft.js +0 -2
- package/dist/types/hardware/screen/ScreenHomeViewInput.d.ts +0 -3
- package/dist/types/hardware/screen/ScreenHomeViewInput.js +0 -2
- package/dist/types/hardware/screen/ScreenModuleStatus.d.ts +0 -6
- package/dist/types/hardware/screen/ScreenModuleStatus.js +0 -2
- package/dist/types/hardware/screen/ScreenRaceViewConfig.d.ts +0 -4
- package/dist/types/hardware/screen/ScreenRaceViewConfig.js +0 -2
- package/dist/types/hardware/screen/ScreenStatus.d.ts +0 -3
- package/dist/types/hardware/screen/ScreenStatus.js +0 -2
- package/dist/types/hardware/screen/ScreenUpdateGameViewInput.d.ts +0 -11
- package/dist/types/hardware/screen/ScreenUpdateGameViewInput.js +0 -2
- package/dist/types/hardware/screen/ScreenView.d.ts +0 -3
- package/dist/types/hardware/screen/ScreenView.js +0 -2
- package/dist/types/hardware/screen/ScreenViewBaseConfig.d.ts +0 -16
- package/dist/types/hardware/screen/ScreenViewBaseConfig.js +0 -2
- package/dist/types/hardware/screen/index.d.ts +0 -12
- package/dist/types/hardware/screen/index.js +0 -28
- package/dist/types/hardware/sound/PlaySoundOptions.d.ts +0 -11
- package/dist/types/hardware/sound/PlaySoundOptions.js +0 -2
- package/dist/types/hardware/sound/index.d.ts +0 -1
- package/dist/types/hardware/sound/index.js +0 -17
- package/dist/types/hardware/speed/SpeedActionCommand.d.ts +0 -1
- package/dist/types/hardware/speed/SpeedActionCommand.js +0 -2
- package/dist/types/hardware/speed/SpeedChangeOptions.d.ts +0 -6
- package/dist/types/hardware/speed/SpeedChangeOptions.js +0 -2
- package/dist/types/hardware/speed/SpeedConfiguration.d.ts +0 -6
- package/dist/types/hardware/speed/SpeedConfiguration.js +0 -2
- package/dist/types/hardware/speed/SpeedModuleStatus.d.ts +0 -12
- package/dist/types/hardware/speed/SpeedModuleStatus.js +0 -2
- package/dist/types/hardware/speed/SpeedStatus.d.ts +0 -3
- package/dist/types/hardware/speed/SpeedStatus.js +0 -2
- package/dist/types/hardware/speed/index.d.ts +0 -5
- package/dist/types/hardware/speed/index.js +0 -21
- package/dist/types/hardware/star-laser/StarLaserCommand.d.ts +0 -1
- package/dist/types/hardware/star-laser/StarLaserCommand.js +0 -2
- package/dist/types/hardware/star-laser/StarLaserConfigureModuleOptions.d.ts +0 -7
- package/dist/types/hardware/star-laser/StarLaserConfigureModuleOptions.js +0 -2
- package/dist/types/hardware/star-laser/StarLaserModuleStatus.d.ts +0 -7
- package/dist/types/hardware/star-laser/StarLaserModuleStatus.js +0 -2
- package/dist/types/hardware/star-laser/StarLaserSendActionsOptions.d.ts +0 -5
- package/dist/types/hardware/star-laser/StarLaserSendActionsOptions.js +0 -2
- package/dist/types/hardware/star-laser/StarLaserStatus.d.ts +0 -1
- package/dist/types/hardware/star-laser/StarLaserStatus.js +0 -2
- package/dist/types/hardware/star-laser/index.d.ts +0 -5
- package/dist/types/hardware/star-laser/index.js +0 -21
- package/dist/types/hardware/steering-wheel/SteeringWheelModuleStatus.d.ts +0 -4
- package/dist/types/hardware/steering-wheel/SteeringWheelModuleStatus.js +0 -2
- package/dist/types/hardware/steering-wheel/index.d.ts +0 -1
- package/dist/types/hardware/steering-wheel/index.js +0 -17
- package/dist/types/index.d.ts +0 -24
- package/dist/types/index.js +0 -40
- package/dist/types/kart/Kart.d.ts +0 -36
- package/dist/types/kart/Kart.js +0 -2
- package/dist/types/kart/KartShield.d.ts +0 -4
- package/dist/types/kart/KartShield.js +0 -2
- package/dist/types/kart/KartStatus.d.ts +0 -3
- package/dist/types/kart/KartStatus.js +0 -2
- package/dist/types/kart/index.d.ts +0 -2
- package/dist/types/kart/index.js +0 -18
- package/dist/types/kartTracking/CheckpointEvent.d.ts +0 -8
- package/dist/types/kartTracking/CheckpointEvent.js +0 -2
- package/dist/types/kartTracking/KartTracking.d.ts +0 -5
- package/dist/types/kartTracking/KartTracking.js +0 -2
- package/dist/types/kartTracking/index.d.ts +0 -2
- package/dist/types/kartTracking/index.js +0 -18
- package/dist/types/pagination/Pagination.d.ts +0 -3
- package/dist/types/pagination/Pagination.js +0 -2
- package/dist/types/pagination/index.d.ts +0 -2
- package/dist/types/pagination/index.js +0 -18
- package/dist/types/pagination/pagination.schema.d.ts +0 -14
- package/dist/types/pagination/pagination.schema.js +0 -16
- package/dist/types/powerUp/PowerUp.d.ts +0 -27
- package/dist/types/powerUp/PowerUp.js +0 -2
- package/dist/types/powerUp/PowerUpName.d.ts +0 -1
- package/dist/types/powerUp/PowerUpName.js +0 -2
- package/dist/types/powerUp/PowerUpShield.d.ts +0 -6
- package/dist/types/powerUp/PowerUpShield.js +0 -2
- package/dist/types/powerUp/PowerUpTarget.d.ts +0 -11
- package/dist/types/powerUp/PowerUpTarget.js +0 -10
- package/dist/types/powerUp/PowerUpType.d.ts +0 -8
- package/dist/types/powerUp/PowerUpType.js +0 -7
- package/dist/types/powerUp/index.d.ts +0 -5
- package/dist/types/powerUp/index.js +0 -21
- package/dist/types/racingTeam/RacingTeam.d.ts +0 -8
- package/dist/types/racingTeam/RacingTeam.js +0 -2
- package/dist/types/racingTeam/RacingTeam.schema.d.ts +0 -60
- package/dist/types/racingTeam/RacingTeam.schema.js +0 -34
- package/dist/types/racingTeam/RacingTeamMembership.d.ts +0 -6
- package/dist/types/racingTeam/RacingTeamMembership.js +0 -2
- package/dist/types/racingTeam/RacingTeamMembership.schema.d.ts +0 -31
- package/dist/types/racingTeam/RacingTeamMembership.schema.js +0 -28
- package/dist/types/racingTeam/index.d.ts +0 -4
- package/dist/types/racingTeam/index.js +0 -20
- package/dist/types/response/ErrorResponse.d.ts +0 -6
- package/dist/types/response/ErrorResponse.js +0 -2
- package/dist/types/response/Response.d.ts +0 -3
- package/dist/types/response/Response.js +0 -2
- package/dist/types/response/SuccessResponse.d.ts +0 -5
- package/dist/types/response/SuccessResponse.js +0 -2
- package/dist/types/response/index.d.ts +0 -3
- package/dist/types/response/index.js +0 -2
- package/dist/types/role/Permission.d.ts +0 -3
- package/dist/types/role/Permission.js +0 -2
- package/dist/types/role/RoleDefinition.d.ts +0 -7
- package/dist/types/role/RoleDefinition.js +0 -2
- package/dist/types/role/UserRole.d.ts +0 -3
- package/dist/types/role/UserRole.js +0 -2
- package/dist/types/role/index.d.ts +0 -3
- package/dist/types/role/index.js +0 -19
- package/dist/types/socket/SocketHardwareModulesEventsParams.d.ts +0 -65
- package/dist/types/socket/SocketHardwareModulesEventsParams.js +0 -2
- package/dist/types/socket/SocketHardwareOnDataEventsParams.d.ts +0 -17
- package/dist/types/socket/SocketHardwareOnDataEventsParams.js +0 -2
- package/dist/types/socket/SocketPowerUpEventsParams.d.ts +0 -21
- package/dist/types/socket/SocketPowerUpEventsParams.js +0 -2
- package/dist/types/socket/clientToServer/SocketGameTrackClientToServerEventsParams.d.ts +0 -13
- package/dist/types/socket/clientToServer/SocketGameTrackClientToServerEventsParams.js +0 -2
- package/dist/types/socket/clientToServer/SocketKartClientToServerEventsParams.d.ts +0 -21
- package/dist/types/socket/clientToServer/SocketKartClientToServerEventsParams.js +0 -2
- package/dist/types/socket/clientToServer/SocketWebAppClientToServerEventsParams.d.ts +0 -22
- package/dist/types/socket/clientToServer/SocketWebAppClientToServerEventsParams.js +0 -2
- package/dist/types/socket/clientToServer/index.d.ts +0 -3
- package/dist/types/socket/clientToServer/index.js +0 -19
- package/dist/types/socket/index.d.ts +0 -7
- package/dist/types/socket/index.js +0 -23
- package/dist/types/socket/inputs/MacAddressGameTrackConnection.d.ts +0 -7
- package/dist/types/socket/inputs/MacAddressGameTrackConnection.js +0 -2
- package/dist/types/socket/inputs/SocketInitRaspberryInput.d.ts +0 -4
- package/dist/types/socket/inputs/SocketInitRaspberryInput.js +0 -2
- package/dist/types/socket/inputs/SocketRegisterKartCheckpointInput.d.ts +0 -11
- package/dist/types/socket/inputs/SocketRegisterKartCheckpointInput.js +0 -2
- package/dist/types/socket/inputs/index.d.ts +0 -3
- package/dist/types/socket/inputs/index.js +0 -19
- package/dist/types/socket/serverToClient/SocketGameTrackServerToClientEventParams.d.ts +0 -14
- package/dist/types/socket/serverToClient/SocketGameTrackServerToClientEventParams.js +0 -2
- package/dist/types/socket/serverToClient/SocketKartServerToClientEventsParams.d.ts +0 -53
- package/dist/types/socket/serverToClient/SocketKartServerToClientEventsParams.js +0 -2
- package/dist/types/socket/serverToClient/SocketWebAppServerToClientEventsParams.d.ts +0 -28
- package/dist/types/socket/serverToClient/SocketWebAppServerToClientEventsParams.js +0 -2
- package/dist/types/socket/serverToClient/index.d.ts +0 -3
- package/dist/types/socket/serverToClient/index.js +0 -19
- package/dist/types/socket/utils/SocketParamsToEvents.d.ts +0 -10
- package/dist/types/socket/utils/SocketParamsToEvents.js +0 -2
- package/dist/types/socket/utils/index.d.ts +0 -1
- package/dist/types/socket/utils/index.js +0 -17
- package/dist/types/sounds/SoundName.d.ts +0 -1
- package/dist/types/sounds/SoundName.js +0 -2
- package/dist/types/sounds/index.d.ts +0 -1
- package/dist/types/sounds/index.js +0 -17
- package/dist/types/ticketing/GameTurn.d.ts +0 -4
- package/dist/types/ticketing/GameTurn.js +0 -2
- package/dist/types/ticketing/GameTurn.schema.d.ts +0 -92
- package/dist/types/ticketing/GameTurn.schema.js +0 -46
- package/dist/types/ticketing/GameTurnTask.d.ts +0 -3
- package/dist/types/ticketing/GameTurnTask.js +0 -2
- package/dist/types/ticketing/GameTurnTask.schema.d.ts +0 -34
- package/dist/types/ticketing/GameTurnTask.schema.js +0 -30
- package/dist/types/ticketing/PaymentProvider.d.ts +0 -34
- package/dist/types/ticketing/PaymentProvider.js +0 -2
- package/dist/types/ticketing/Ticketing.d.ts +0 -10
- package/dist/types/ticketing/Ticketing.js +0 -2
- package/dist/types/ticketing/index.d.ts +0 -7
- package/dist/types/ticketing/index.js +0 -23
- package/dist/types/ticketing/ticketing.schemas.d.ts +0 -104
- package/dist/types/ticketing/ticketing.schemas.js +0 -65
- package/dist/types/user/User.d.ts +0 -4
- package/dist/types/user/User.js +0 -2
- package/dist/types/user/index.d.ts +0 -4
- package/dist/types/user/index.js +0 -22
- package/dist/types/user/user-type.schema.d.ts +0 -9
- package/dist/types/user/user-type.schema.js +0 -12
- package/dist/types/user/user.schema.d.ts +0 -39
- package/dist/types/user/user.schema.js +0 -19
- package/dist/types/utils/ArithmeticString.d.ts +0 -9
- package/dist/types/utils/ArithmeticString.js +0 -2
- package/dist/types/utils/ObjectValues.d.ts +0 -1
- package/dist/types/utils/ObjectValues.js +0 -2
- package/dist/types/utils/index.d.ts +0 -2
- package/dist/types/utils/index.js +0 -18
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./SpeedActionCommand"), exports);
|
|
18
|
-
__exportStar(require("./SpeedChangeOptions"), exports);
|
|
19
|
-
__exportStar(require("./SpeedConfiguration"), exports);
|
|
20
|
-
__exportStar(require("./SpeedModuleStatus"), exports);
|
|
21
|
-
__exportStar(require("./SpeedStatus"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type StarLaserCommand = 'Activate' | 'Deactivate' | 'Init Attack' | 'Configure' | 'None';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type StarLaserStatus = 'Standby' | 'Activated' | 'Deactivated' | 'Attacking' | 'Hit' | 'Unknown';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./StarLaserCommand"), exports);
|
|
18
|
-
__exportStar(require("./StarLaserConfigureModuleOptions"), exports);
|
|
19
|
-
__exportStar(require("./StarLaserModuleStatus"), exports);
|
|
20
|
-
__exportStar(require("./StarLaserSendActionsOptions"), exports);
|
|
21
|
-
__exportStar(require("./StarLaserStatus"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './SteeringWheelModuleStatus';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./SteeringWheelModuleStatus"), exports);
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This types are shared wihin the 3 Repositories
|
|
3
|
-
* Webapp, Backend and Raspberry
|
|
4
|
-
*/
|
|
5
|
-
export * from './checkpoint';
|
|
6
|
-
export * from './color';
|
|
7
|
-
export * from './command';
|
|
8
|
-
export * from './damage';
|
|
9
|
-
export * from './flow';
|
|
10
|
-
export * from './game';
|
|
11
|
-
export * from './gameTrack';
|
|
12
|
-
export * from './hardware';
|
|
13
|
-
export * from './kart';
|
|
14
|
-
export * from './kartTracking';
|
|
15
|
-
export * from './pagination';
|
|
16
|
-
export * from './powerUp';
|
|
17
|
-
export * from './racingTeam';
|
|
18
|
-
export * from './response';
|
|
19
|
-
export * from './role';
|
|
20
|
-
export * from './socket';
|
|
21
|
-
export * from './sounds';
|
|
22
|
-
export * from './ticketing';
|
|
23
|
-
export * from './user';
|
|
24
|
-
export * from './utils';
|
package/dist/types/index.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This types are shared wihin the 3 Repositories
|
|
4
|
-
* Webapp, Backend and Raspberry
|
|
5
|
-
*/
|
|
6
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
-
if (k2 === undefined) k2 = k;
|
|
8
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
-
}
|
|
12
|
-
Object.defineProperty(o, k2, desc);
|
|
13
|
-
}) : (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
o[k2] = m[k];
|
|
16
|
-
}));
|
|
17
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
__exportStar(require("./checkpoint"), exports);
|
|
22
|
-
__exportStar(require("./color"), exports);
|
|
23
|
-
__exportStar(require("./command"), exports);
|
|
24
|
-
__exportStar(require("./damage"), exports);
|
|
25
|
-
__exportStar(require("./flow"), exports);
|
|
26
|
-
__exportStar(require("./game"), exports);
|
|
27
|
-
__exportStar(require("./gameTrack"), exports);
|
|
28
|
-
__exportStar(require("./hardware"), exports);
|
|
29
|
-
__exportStar(require("./kart"), exports);
|
|
30
|
-
__exportStar(require("./kartTracking"), exports);
|
|
31
|
-
__exportStar(require("./pagination"), exports);
|
|
32
|
-
__exportStar(require("./powerUp"), exports);
|
|
33
|
-
__exportStar(require("./racingTeam"), exports);
|
|
34
|
-
__exportStar(require("./response"), exports);
|
|
35
|
-
__exportStar(require("./role"), exports);
|
|
36
|
-
__exportStar(require("./socket"), exports);
|
|
37
|
-
__exportStar(require("./sounds"), exports);
|
|
38
|
-
__exportStar(require("./ticketing"), exports);
|
|
39
|
-
__exportStar(require("./user"), exports);
|
|
40
|
-
__exportStar(require("./utils"), exports);
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { ColorName } from '../color';
|
|
2
|
-
import type { DamageEffectName } from '../damage';
|
|
3
|
-
import type { GameType } from '../game';
|
|
4
|
-
import type { GameTrack } from '../gameTrack';
|
|
5
|
-
import type { KartHardwareState } from '../hardware';
|
|
6
|
-
import type { PowerUpName } from '../powerUp';
|
|
7
|
-
import type { KartShield } from './KartShield';
|
|
8
|
-
import type { KartStatus } from './KartStatus';
|
|
9
|
-
interface KartGame {
|
|
10
|
-
id: number;
|
|
11
|
-
type: GameType;
|
|
12
|
-
}
|
|
13
|
-
export interface Kart {
|
|
14
|
-
/** Unique ID by kart */
|
|
15
|
-
guid: string;
|
|
16
|
-
/** kartGuid assigned by Game Track (multiple karts could have the same Id) */
|
|
17
|
-
id: number;
|
|
18
|
-
mac: string;
|
|
19
|
-
hostname: string;
|
|
20
|
-
isConnected: boolean;
|
|
21
|
-
status: KartStatus;
|
|
22
|
-
shield: KartShield;
|
|
23
|
-
gameTrackId: GameTrack['id'];
|
|
24
|
-
color: ColorName;
|
|
25
|
-
number: number;
|
|
26
|
-
currentGame?: KartGame | null;
|
|
27
|
-
description?: string | null;
|
|
28
|
-
/**
|
|
29
|
-
* In testing Mode, the kart should be listening to the hardware status
|
|
30
|
-
*/
|
|
31
|
-
isSubscribedToHardwareStatus: boolean;
|
|
32
|
-
hardwareState?: KartHardwareState | null;
|
|
33
|
-
currentPowerUp?: PowerUpName | null;
|
|
34
|
-
currentDamage?: DamageEffectName | null;
|
|
35
|
-
}
|
|
36
|
-
export {};
|
package/dist/types/kart/Kart.js
DELETED
package/dist/types/kart/index.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./Kart"), exports);
|
|
18
|
-
__exportStar(require("./KartStatus"), exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./CheckpointEvent"), exports);
|
|
18
|
-
__exportStar(require("./KartTracking"), exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./Pagination"), exports);
|
|
18
|
-
__exportStar(require("./pagination.schema"), exports);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const paginationMetadataSchema: z.ZodObject<{
|
|
3
|
-
nextCursor: z.ZodOptional<z.ZodString>;
|
|
4
|
-
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
-
limit: z.ZodNumber;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
export declare const paginatedResponseSchema: <T extends z.ZodTypeAny>(itemSchema: T) => z.ZodObject<{
|
|
8
|
-
data: z.ZodArray<T>;
|
|
9
|
-
meta: z.ZodObject<{
|
|
10
|
-
nextCursor: z.ZodOptional<z.ZodString>;
|
|
11
|
-
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
limit: z.ZodNumber;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
}, z.core.$strip>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.paginatedResponseSchema = exports.paginationMetadataSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.paginationMetadataSchema = zod_1.z.object({
|
|
6
|
-
nextCursor: zod_1.z.string().optional(),
|
|
7
|
-
hasMore: zod_1.z.boolean().optional(),
|
|
8
|
-
limit: zod_1.z.number(),
|
|
9
|
-
});
|
|
10
|
-
const paginatedResponseSchema = (itemSchema) => {
|
|
11
|
-
return zod_1.z.object({
|
|
12
|
-
data: zod_1.z.array(itemSchema),
|
|
13
|
-
meta: exports.paginationMetadataSchema,
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
exports.paginatedResponseSchema = paginatedResponseSchema;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { BallSensorDiskThrowerModuleCommands, DiskSensorBallShooterModuleCommands, FlagModuleCommands, LeftStarBackLaserModuleCommands, RGBModuleCommands, RightStarFrontLaserModuleCommands, SoundModuleCommands, SpeedModuleCommands, SteeringWheelModuleCommands } from '../command';
|
|
2
|
-
import type { Damage } from '../damage';
|
|
3
|
-
import type { PowerUpName } from './PowerUpName';
|
|
4
|
-
import type { PowerUpShield } from './PowerUpShield';
|
|
5
|
-
export type PowerUpLevel = 1 | 2 | 3 | 4 | 5;
|
|
6
|
-
/**
|
|
7
|
-
* The Power-up command exclude the ScreenModuleCommands because
|
|
8
|
-
* the system needs to know to know in which kind of game is the kart.
|
|
9
|
-
*/
|
|
10
|
-
export type PowerUpCommand = BallSensorDiskThrowerModuleCommands | DiskSensorBallShooterModuleCommands | FlagModuleCommands | RGBModuleCommands | SpeedModuleCommands | LeftStarBackLaserModuleCommands | RightStarFrontLaserModuleCommands | SteeringWheelModuleCommands | SoundModuleCommands;
|
|
11
|
-
export interface PowerUp {
|
|
12
|
-
id: string;
|
|
13
|
-
name: PowerUpName;
|
|
14
|
-
imageName: string;
|
|
15
|
-
description: string;
|
|
16
|
-
level: PowerUpLevel;
|
|
17
|
-
/** Commands to be executed when the power-up is assigned */
|
|
18
|
-
assignationCommands: PowerUpCommand[];
|
|
19
|
-
/** Whenever the user activates the assigned power-up */
|
|
20
|
-
activationCommands: PowerUpCommand[];
|
|
21
|
-
shield?: PowerUpShield;
|
|
22
|
-
/**
|
|
23
|
-
* Represents damage that needs the backend to be propagated
|
|
24
|
-
* to other(s) kart(s)
|
|
25
|
-
*/
|
|
26
|
-
networkDamage?: Pick<Damage, 'name' | 'target'>;
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type PowerUpName = 'Battle God' | 'Battle Star' | 'Battle Shot' | 'Battle Nitro' | 'Battle Pulse' | 'Battle Trap' | 'Battle Shield' | 'Battle Turbo' | 'Battle Blue Shot';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { ObjectValues } from '../utils';
|
|
2
|
-
declare const POWER_UP_TARGET: {
|
|
3
|
-
/** Affect the owner of the power-up */
|
|
4
|
-
readonly Self: "Self";
|
|
5
|
-
/** Affect a single Kart */
|
|
6
|
-
readonly Any: "Any";
|
|
7
|
-
/** Affect all the other Karts in game (must communicate to the server) */
|
|
8
|
-
readonly All: "All";
|
|
9
|
-
};
|
|
10
|
-
export type PowerUpTarget = ObjectValues<typeof POWER_UP_TARGET>;
|
|
11
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const POWER_UP_TARGET = {
|
|
4
|
-
/** Affect the owner of the power-up */
|
|
5
|
-
Self: 'Self',
|
|
6
|
-
/** Affect a single Kart */
|
|
7
|
-
Any: 'Any',
|
|
8
|
-
/** Affect all the other Karts in game (must communicate to the server) */
|
|
9
|
-
All: 'All',
|
|
10
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./PowerUp"), exports);
|
|
18
|
-
__exportStar(require("./PowerUpName"), exports);
|
|
19
|
-
__exportStar(require("./PowerUpShield"), exports);
|
|
20
|
-
__exportStar(require("./PowerUpTarget"), exports);
|
|
21
|
-
__exportStar(require("./PowerUpType"), exports);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { createRacingTeamSchema, paginatedRacingTeamSchema, paginatedRacingTeamSummarySchema, racingTeamSchema, racingTeamSummarySchema, updateRacingTeamSchema } from './RacingTeam.schema';
|
|
3
|
-
export type RacingTeam = z.infer<typeof racingTeamSchema>;
|
|
4
|
-
export type CreateRacingTeamInput = z.infer<typeof createRacingTeamSchema>;
|
|
5
|
-
export type UpdateRacingTeamInput = z.infer<typeof updateRacingTeamSchema>;
|
|
6
|
-
export type PaginatedRacingTeam = z.infer<typeof paginatedRacingTeamSchema>;
|
|
7
|
-
export type RacingTeamSummary = z.infer<typeof racingTeamSummarySchema>;
|
|
8
|
-
export type PaginatedRacingTeamSummary = z.infer<typeof paginatedRacingTeamSummarySchema>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const racingTeamSchema: z.ZodObject<{
|
|
3
|
-
id: z.ZodString;
|
|
4
|
-
name: z.ZodString;
|
|
5
|
-
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
6
|
-
adminUserId: z.ZodString;
|
|
7
|
-
createdAt: z.ZodDate;
|
|
8
|
-
updatedAt: z.ZodDate;
|
|
9
|
-
}, z.core.$strip>;
|
|
10
|
-
export declare const createRacingTeamSchema: z.ZodObject<{
|
|
11
|
-
name: z.ZodString;
|
|
12
|
-
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
13
|
-
}, z.core.$strip>;
|
|
14
|
-
export declare const updateRacingTeamSchema: z.ZodObject<{
|
|
15
|
-
id: z.ZodOptional<z.ZodString>;
|
|
16
|
-
name: z.ZodOptional<z.ZodString>;
|
|
17
|
-
imageUrl: z.ZodOptional<z.ZodOptional<z.ZodURL>>;
|
|
18
|
-
adminUserId: z.ZodOptional<z.ZodString>;
|
|
19
|
-
createdAt: z.ZodOptional<z.ZodDate>;
|
|
20
|
-
updatedAt: z.ZodOptional<z.ZodDate>;
|
|
21
|
-
}, z.core.$strip>;
|
|
22
|
-
export declare const filterRacingTeamSchema: z.ZodObject<{
|
|
23
|
-
name: z.ZodOptional<z.ZodString>;
|
|
24
|
-
adminUserId: z.ZodOptional<z.ZodString>;
|
|
25
|
-
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
26
|
-
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
27
|
-
cursor: z.ZodOptional<z.ZodString>;
|
|
28
|
-
}, z.core.$strip>;
|
|
29
|
-
export declare const racingTeamSummarySchema: z.ZodObject<{
|
|
30
|
-
id: z.ZodString;
|
|
31
|
-
name: z.ZodString;
|
|
32
|
-
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
33
|
-
}, z.core.$strip>;
|
|
34
|
-
export declare const paginatedRacingTeamSchema: z.ZodObject<{
|
|
35
|
-
data: z.ZodArray<z.ZodObject<{
|
|
36
|
-
id: z.ZodString;
|
|
37
|
-
name: z.ZodString;
|
|
38
|
-
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
39
|
-
adminUserId: z.ZodString;
|
|
40
|
-
createdAt: z.ZodDate;
|
|
41
|
-
updatedAt: z.ZodDate;
|
|
42
|
-
}, z.core.$strip>>;
|
|
43
|
-
meta: z.ZodObject<{
|
|
44
|
-
nextCursor: z.ZodOptional<z.ZodString>;
|
|
45
|
-
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
-
limit: z.ZodNumber;
|
|
47
|
-
}, z.core.$strip>;
|
|
48
|
-
}, z.core.$strip>;
|
|
49
|
-
export declare const paginatedRacingTeamSummarySchema: z.ZodObject<{
|
|
50
|
-
data: z.ZodArray<z.ZodObject<{
|
|
51
|
-
id: z.ZodString;
|
|
52
|
-
name: z.ZodString;
|
|
53
|
-
imageUrl: z.ZodOptional<z.ZodURL>;
|
|
54
|
-
}, z.core.$strip>>;
|
|
55
|
-
meta: z.ZodObject<{
|
|
56
|
-
nextCursor: z.ZodOptional<z.ZodString>;
|
|
57
|
-
hasMore: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
-
limit: z.ZodNumber;
|
|
59
|
-
}, z.core.$strip>;
|
|
60
|
-
}, z.core.$strip>;
|