summaryrefslogtreecommitdiff
path: root/client/src/slices/api/guestSlice.ts
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-08-30 14:45:50 -0700
committerMichael Hunteman <michael@huntm.net>2024-08-30 14:45:50 -0700
commit340193f1d52e1b68fe950974d1003b9330e06fe3 (patch)
tree68dc6ddc99a0bffaf47dfa7f7bf591103b0d36d2 /client/src/slices/api/guestSlice.ts
parent1d2ffb8a2b6af752b6fd091e8e59682625c2b495 (diff)
Update material react table to have party guests
Diffstat (limited to 'client/src/slices/api/guestSlice.ts')
-rw-r--r--client/src/slices/api/guestSlice.ts31
1 files changed, 5 insertions, 26 deletions
diff --git a/client/src/slices/api/guestSlice.ts b/client/src/slices/api/guestSlice.ts
index b009ff0..fab0454 100644
--- a/client/src/slices/api/guestSlice.ts
+++ b/client/src/slices/api/guestSlice.ts
@@ -1,31 +1,10 @@
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';
import type { RootState } from '../../store';
-
-export interface GuestLoginRequest {
- firstName: string;
- lastName: string;
-}
-
-export interface GuestLoginResponse {
- guest: Guest;
- token: string;
-}
-
-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;
-}
+import type {
+ Guest,
+ GuestLoginRequest,
+ GuestLoginResponse,
+} from '../../models';
export const guestSlice = createApi({
reducerPath: 'guestApi',