Skip to content

Commit

Permalink
Accept phone numbers and product area in API responses
Browse files Browse the repository at this point in the history
  • Loading branch information
thoukydides authored Jul 19, 2023
1 parent 917547d commit 9398704
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/aegapi-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ export enum CleaningCommand {
Stop = 'stop' // Stop any Clean/Spot/Return and Sleep
}

// Types of phone number
export enum PhoneType {
Phone = 'Phone',
Mobile = 'Mobile'
}

// Measurement units
export enum DistanceUnit {
KM = 'KiloMeter',
Expand All @@ -137,6 +143,10 @@ export enum VolumeUnit {
}

// GET /one-account-user/api/v1/users/current
export interface PhoneNumber {
type: PhoneType;
number: string | null;
}
export interface MeasurementUnits {
distanceMeasurementUnit: DistanceUnit;
tempMeasurementUnit: TemperatureUnit;
Expand All @@ -147,6 +157,7 @@ export interface MeasurementUnits {
export interface User {
firstName: string;
lastName: string;
phoneNumbers?: PhoneNumber[];
countryCode: string; // e.g. 'GB'
locale: string; // e.g. 'en'
measurementUnits: MeasurementUnits | null;
Expand Down Expand Up @@ -266,6 +277,7 @@ export interface ApplianceInfo {
pnc: string; // e.g. '900277479'
brand: string; // e.g. 'AEG'
market: string; // e.g. 'EUROPE'
productArea?: string; // e.g. `WELLBEING`
deviceType: string; // e.g. 'ROBOTIC_VACUUM_CLEANER'
project: string; // e.g. 'CYCLOPS'
model: string; // e.g. 'rx92'
Expand Down

0 comments on commit 9398704

Please sign in to comment.