diff options
Diffstat (limited to 'client/src/models.ts')
-rw-r--r-- | client/src/models.ts | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/client/src/models.ts b/client/src/models.ts new file mode 100644 index 0000000..97dce1f --- /dev/null +++ b/client/src/models.ts @@ -0,0 +1,35 @@ +export interface Guest { + id: number; + firstName: string; + lastName: string; + attendance: string; + email: string; + message: string; + partySize: number; + partyList: Array<PartyGuest>; +} + +export interface PartyGuest { + firstName: string; + lastName: string; +} + +export interface GuestLoginRequest { + firstName: string; + lastName: string; +} + +export interface GuestLoginResponse { + guest: Guest; + token: string; +} + +export interface AdminLoginRequest { + username: string; + password: string; +} + +export interface AdminLoginResponse { + guests: Guest[]; + token: string; +} |