Types
Various types, used through out the app.
Type reference
---@class DriverOrder
---@field id string
---@field name string
---@field pickupCoords vector3
---@field pickupLabel? string
---@field dropoffCoords vector3
---@field dropoffLabel? string
---@field reward number
---@field distance number
---@field units 'kilometers' | 'miles'
---@field passengerRating? number
---@class DriverOrderLocal: DriverOrder
---@field isLocal true
---@field model string
---@class DriverOrderPlayer: DriverOrder
---@field isLocal false
---@field passengerSource number
---@field passengerIdentifier string
---@field isWaiting boolean
---@field isAccepted boolean
---@field rejectedBy? table<string>
---@field passengerPhone? string
---@field driverName? string
---@field driverPhone? string
---@field driverRating? number
---@field driverIdentifier? string
---@class ActiveDriver
---@field source string|number
---@field rating number
---@field coords? vector3
---@field heading? number
---@field isTakingLocals? boolean
---@field state OrderState
---@field order? DriverOrderPlayer | DriverOrderLocal
---@field finishedOrder? DriverOrderPlayer | DriverOrderLocal
---@class TaxiPlayerData
---@field identifier string
---@field name? string
---@field avatar string
---@field passengerRating number
---@field driverRating number
---@field isTakingLocals boolean
---@class CurrentState
---@field type 'driver' | 'passenger'
---@field state OrderState
---@field order? DriverOrderLocal | DriverOrderPlayer
---@alias OrderState 'SEARCHING' | 'ACCEPTING' | 'INPROGRESS' | 'FINISHED'
---@alias RewardType 'cash' | 'bank'
---@alias Units 'kilometers' | 'miles'
---@class ActivitySavingPayload
---@field id string
---@field identifier string
---@field type 'driver' | 'passenger'
---@field from string
---@field to string
---@field distance number
---@field reward number
---@field isLocal boolean
---@field reason? string
---@field handleName? string
---@field handleRating? number
On This Page