Created
April 2, 2018 15:17
-
-
Save YonathanMeguira/73f9d6d0dfebf4396297a7dadeceb4be to your computer and use it in GitHub Desktop.
types
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export interface Worker { | |
| firstName: string; | |
| interest: string; | |
| additionalInterests: string[]; | |
| city: string; | |
| age: number; | |
| lastName: string; | |
| phone: string; | |
| experiences: Experience[]; | |
| entryDate: string; | |
| location: Partial<Location>; | |
| uid: string; | |
| isQualified: boolean; | |
| hasExperience: boolean; | |
| initialRating: number; | |
| dob: string; | |
| source: string; | |
| sex: string; | |
| email: string; | |
| descriptionSkill: string; | |
| metadata: Partial<Comments>; | |
| tz: string; | |
| days: Partial<Disponibilities>; | |
| languages: Language[]; | |
| } | |
| export type Language = | |
| | "French" | |
| | "Arabic" | |
| | "Russian" | |
| | "Hebrew" | |
| | "Spanish" | |
| | "Ukrainian" | |
| | string; | |
| export interface Location { | |
| city: string; | |
| street: string; | |
| number: string; | |
| areaCode: number; | |
| } | |
| export interface Comments { | |
| disponibilities: string; | |
| overview: string; | |
| } | |
| export class Experience { | |
| category: string; | |
| restaurant: string; | |
| city: string; | |
| year: number; | |
| constructor() {} | |
| } | |
| export interface Hunt { | |
| address?: string; | |
| city?: string; | |
| date?: string; | |
| need?: string; | |
| quantity?: number; | |
| ownerID?: string; | |
| restaurant?: string; | |
| salary?: any; | |
| remaining?: number; | |
| huntID?: string; | |
| sms_sent?: boolean; | |
| } | |
| export interface Owner { | |
| address?: string; | |
| city?: string; | |
| firstName?: string; | |
| gigs?: Hunt[]; | |
| lastName?: string; | |
| phone?: string; | |
| restaurant?: string; | |
| uid?: string; | |
| } | |
| export class Disponibilities { | |
| sundayLunch: boolean; | |
| sundayEvening: boolean; | |
| mondayLunch: boolean; | |
| mondayEvening: boolean; | |
| tuesdayLunch: boolean; | |
| tuesdayEvening: boolean; | |
| wednesdayLunch: boolean; | |
| wednesdayEvening: boolean; | |
| thursdayLunch: boolean; | |
| thursdayEvening: boolean; | |
| fridayLunch: boolean; | |
| constructor() {} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment