Skip to content

Commit

Permalink
feat: update types
Browse files Browse the repository at this point in the history
  • Loading branch information
LeleDallas committed May 4, 2023
1 parent 9a296ac commit 20a07d2
Showing 1 changed file with 75 additions and 1 deletion.
76 changes: 75 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,78 @@ export interface UserApi {
password: string,
name: string,
surname: string,
}
}

export interface UserProps {
_id: string,
name: string
surname: string
email: string
password: string
token: string
type: string
}

export interface User {
logged: boolean,
user: UserProps
}

export interface UserPreference {
userId: string;
activityLog: boolean;
notification: boolean;
news: boolean;
avatar: string;
}

export interface Renewable {
organizationId: string;
buildings: Array<any>;
price: number;
name: string;
type: string;
resourcesType: string;
earning: number;
organization: number;
}

export interface Organization {
name: string;
description?: string;
userId?: string;
type?: Array<string>;
icon?: string;
customers?: Array<UserProps>;
details?: any;
createAt: Date;
}


export interface Building {
name: string;
contact: string;
userId?: string;
organizationId?: string;
address: string;
type: string;
sqft?: number;
lat: string;
long: string;
resources?: Array<any>;
}

export interface Bills {
buildingId?: string;
organizationId?: string;
bills?: Array<any>;
}

export interface Activity {
userId?: string;
country_code?: string;
country_name?: string;
city?: string;
IPv4?: string;
state?: string;
}

0 comments on commit 20a07d2

Please sign in to comment.