diff options
author | Michael Hunteman <michael@huntm.net> | 2024-08-31 16:09:58 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-08-31 16:09:58 -0700 |
commit | 9e6c97e532ef9970fc975123abaca86c4ce9b6b1 (patch) | |
tree | 340f5f00ecbed20be9a18964b17487dbd427b85a /client/src/models.ts | |
parent | df22d74076e3af98c2ddf1b5f7b44c71f1972640 (diff) |
Update type names
Diffstat (limited to 'client/src/models.ts')
-rw-r--r-- | client/src/models.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/client/src/models.ts b/client/src/models.ts index 2580d90..6840a46 100644 --- a/client/src/models.ts +++ b/client/src/models.ts @@ -6,25 +6,25 @@ export interface Guest { email?: string; message?: string; partySize?: number; - partyList?: Array<Guest>; + partyList?: Array<Name>; } -export interface GuestLoginRequest { +export interface Name { firstName: string; lastName: string; } -export interface GuestLoginResponse { +export interface GuestLogin { guest: Guest; token: string; } -export interface AdminLoginRequest { +export interface Credentials { username: string; password: string; } -export interface AdminLoginResponse { +export interface AdminLogin { guests: Guest[]; token: string; } |