From f79025da2243adc399d0a3029b7d0b958b8ffbed Mon Sep 17 00:00:00 2001 From: tnsprasanna Date: Sat, 12 Oct 2024 11:57:45 -0400 Subject: [PATCH] get staff api constant --- frontend/src/APIClients/Queries/StaffQueries.ts | 17 +++++++++++++++++ frontend/src/APIClients/Types/StaffTypes.ts | 13 +++++++++++++ 2 files changed, 30 insertions(+) diff --git a/frontend/src/APIClients/Queries/StaffQueries.ts b/frontend/src/APIClients/Queries/StaffQueries.ts index e69de29b..08916dd3 100644 --- a/frontend/src/APIClients/Queries/StaffQueries.ts +++ b/frontend/src/APIClients/Queries/StaffQueries.ts @@ -0,0 +1,17 @@ +import {gql} from "@apollo/client"; + +export const GET_ALL_STAFF = gql` + query GetAllStaff { + getAllStaff { + userId + email + phoneNumber + firstName + lastName + displayName + profilePictureURL + isActive + isAdmin + } + } +`; diff --git a/frontend/src/APIClients/Types/StaffTypes.ts b/frontend/src/APIClients/Types/StaffTypes.ts index e69de29b..66c1e877 100644 --- a/frontend/src/APIClients/Types/StaffTypes.ts +++ b/frontend/src/APIClients/Types/StaffTypes.ts @@ -0,0 +1,13 @@ +export type UserRequest = { + userId?: string; + email: string; + password: string; + phoneNumber?: string; + firstName: string; + lastName: string; + isAdmin: boolean; + displayName?: string; + profilePictureURL?: string; + isActive: boolean; + }; + \ No newline at end of file