You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
642 B
33 lines
642 B
export interface TokenGrantPasswordRequest { |
|
grant_type: "password"; |
|
username: string; |
|
password: string; |
|
} |
|
|
|
export interface TokenGrantRefreshRequest { |
|
grant_type: "refresh"; |
|
refresh_token: string; |
|
} |
|
|
|
export type TokenGrantRequest = |
|
| TokenGrantPasswordRequest |
|
| TokenGrantRefreshRequest; |
|
|
|
export interface TokenGrantResponse { |
|
access_token: string; |
|
refresh_token: string; |
|
} |
|
|
|
export interface IUser { |
|
id: number; |
|
username: string; |
|
name: string; |
|
devices: ISprinklersDevice[] | undefined; |
|
} |
|
|
|
export interface ISprinklersDevice { |
|
id: number; |
|
deviceId: string | null; |
|
name: string; |
|
users: IUser[] | undefined; |
|
}
|
|
|