Skip to content

Commit

Permalink
get staff api constant
Browse files Browse the repository at this point in the history
  • Loading branch information
tnsprasanna committed Oct 12, 2024
1 parent de72d9a commit f79025d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
17 changes: 17 additions & 0 deletions frontend/src/APIClients/Queries/StaffQueries.ts
Original file line number Diff line number Diff line change
@@ -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
}
}
`;
13 changes: 13 additions & 0 deletions frontend/src/APIClients/Types/StaffTypes.ts
Original file line number Diff line number Diff line change
@@ -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;
};

0 comments on commit f79025d

Please sign in to comment.