fitbit-sdk-types
Advanced tools
Comparing version 3.2.11 to 3.2.12
{ | ||
"name": "fitbit-sdk-types", | ||
"version": "3.2.11", | ||
"version": "3.2.12", | ||
"author": "Sergio Morchón Poveda <sergio.morchon@outlook.com>", | ||
@@ -5,0 +5,0 @@ "description": "Types for Fitbit SDK.", |
@@ -21,5 +21,5 @@ declare module 'peer' { | ||
}; | ||
readonly type: 'WATCH' | 'TRACKER'; | ||
readonly type: string; | ||
} | ||
const device: PeerDevice; | ||
} |
@@ -21,22 +21,3 @@ interface ElementSearchMap { | ||
} | ||
type AnimationTrigger = | ||
| 'activate' | ||
| 'click' | ||
| 'collapse' | ||
| 'disable' | ||
| 'enable' | ||
| 'expand' | ||
| 'highlight' | ||
| 'load' | ||
| 'mousedown' | ||
| 'mousemove' | ||
| 'mouseout' | ||
| 'mouseover' | ||
| 'mouseup' | ||
| 'paint' | ||
| 'reload' | ||
| 'select' | ||
| 'unhighlight' | ||
| 'unload' | ||
| 'unselect'; | ||
type EventName = string; | ||
interface Element extends ElementSearch, GlobalEvents { | ||
@@ -56,3 +37,3 @@ readonly class: string; | ||
enabled: boolean; | ||
animate(trigger: AnimationTrigger): void; | ||
animate(trigger: EventName): void; | ||
sendEvent(event: Event): void; | ||
@@ -59,0 +40,0 @@ } |
@@ -18,3 +18,3 @@ interface ListScrollEvent extends Event { | ||
interface KeyboardEvent extends Event { | ||
readonly key: 'back' | 'up' | 'down'; | ||
readonly key: string; | ||
} | ||
@@ -21,0 +21,0 @@ interface MouseEvent extends Event { |
@@ -51,3 +51,3 @@ type Component<Props> = (props: Props) => JSX.Element; | ||
action?: string; | ||
type?: 'text' | 'number' | 'password' | 'search' | 'email' | 'tel' | 'url'; | ||
type?: string; | ||
value?: string; | ||
@@ -54,0 +54,0 @@ disabled?: boolean; |
declare module 'device' { | ||
type IonicColors = undefined; | ||
type VersaColors = 'black' | 'rose-gold' | 'silver' | 'graphite'; | ||
interface Device { | ||
readonly bodyColor: IonicColors | VersaColors; | ||
readonly bodyColor: string | undefined; | ||
readonly firmwareVersion: string; | ||
readonly lastSyncTime: Date; | ||
readonly modelId: string; | ||
readonly modelName: 'Ionic' | 'Versa'; | ||
readonly modelName: string; | ||
readonly screen: { | ||
@@ -14,3 +12,3 @@ readonly width: number; | ||
}; | ||
readonly type: 'WATCH' | 'TRACKER'; | ||
readonly type: string; | ||
} | ||
@@ -17,0 +15,0 @@ |
type PermissionName = | ||
| 'access_activity' | ||
| 'access_user_profile' | ||
| 'access_exercise' | ||
| 'access_heart_rate' | ||
| 'access_internet' | ||
| 'access_location' | ||
| 'access_internet' | ||
| 'access_user_profile' | ||
| 'run_background'; | ||
@@ -8,0 +9,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47259
1499