-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
YvetteNyibuka
committed
Oct 3, 2024
1 parent
36bc829
commit 438498a
Showing
22 changed files
with
266 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const AddOrganization = gql` | ||
mutation AddOrganization( | ||
$organizationInput: OrganizationInput | ||
$action: String | ||
) { | ||
addOrganization(organizationInput: $organizationInput, action: $action) { | ||
id | ||
} | ||
} | ||
`; | ||
|
||
// delete organisation | ||
export const DeleteOrganization = gql` | ||
mutation DeleteOrganization($deleteOrganizationId: ID!) { | ||
deleteOrganization(id: $deleteOrganizationId) { | ||
id | ||
name | ||
description | ||
} | ||
} | ||
`; | ||
|
||
export const RegisterNewOrganization = gql` | ||
mutation RegisterNewOrganization( | ||
$organizationInput: OrganizationInput | ||
$action: String | ||
) { | ||
RegisterNewOrganization( | ||
organizationInput: $organizationInput | ||
action: $action | ||
) { | ||
name | ||
status | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const AddCohort = gql` | ||
mutation AddCohort( | ||
$name: String! | ||
$phaseName: String! | ||
$coordinatorEmail: String! | ||
$programName: String! | ||
$startDate: DateTime! | ||
$endDate: DateTime | ||
$orgToken: String! | ||
) { | ||
addCohort( | ||
name: $name | ||
phaseName: $phaseName | ||
coordinatorEmail: $coordinatorEmail | ||
programName: $programName | ||
startDate: $startDate | ||
endDate: $endDate | ||
orgToken: $orgToken | ||
) { | ||
id | ||
name | ||
phase { | ||
name | ||
} | ||
coordinator { | ||
} | ||
program { | ||
name | ||
} | ||
startDate | ||
endDate | ||
} | ||
} | ||
`; | ||
|
||
export const DeleteCohort = gql` | ||
mutation DeleteCohort($deleteCohortId: ID!, $orgToken: String) { | ||
deleteCohort(id: $deleteCohortId, orgToken: $orgToken) { | ||
id | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const UPDATE_AVATAR = gql` | ||
mutation UpdateAvatar($avatar: String) { | ||
updateAvatar(avatar: $avatar) { | ||
avatar | ||
} | ||
} | ||
`; | ||
export const UPDATE_COVER = gql` | ||
mutation UpdateCover($cover: String) { | ||
updateCoverImage(cover: $cover) { | ||
cover | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const AddPhase = gql` | ||
mutation AddPhase($name: String!, $description: String!, $orgToken: String!) { | ||
addPhase(name: $name, description: $description, orgToken: $orgToken) { | ||
id | ||
} | ||
} | ||
`; | ||
|
||
export const DeletePhase = gql` | ||
mutation DeletePhase($deletePhaseId: ID!, $orgToken: String) { | ||
deletePhase(id: $deletePhaseId, orgToken: $orgToken) { | ||
id | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const UPDATE_PROFILE = gql` | ||
mutation UpdateProfile( | ||
$lastName: String | ||
$firstName: String | ||
$address: String | ||
$city: String | ||
$country: String | ||
$phoneNumber: String | ||
$biography: String | ||
$fileName: String | ||
$cover: String | ||
$githubUsername: String | ||
) { | ||
updateProfile( | ||
lastName: $lastName | ||
firstName: $firstName | ||
address: $address | ||
city: $city | ||
country: $country | ||
phoneNumber: $phoneNumber | ||
biography: $biography | ||
fileName: $fileName | ||
cover: $cover | ||
githubUsername: $githubUsername | ||
) { | ||
id | ||
lastName | ||
firstName | ||
biography | ||
phoneNumber | ||
address | ||
city | ||
country | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const AddProgram = gql` | ||
mutation AddProgram( | ||
$name: String! | ||
$description: String! | ||
$managerEmail: String! | ||
$orgToken: String! | ||
) { | ||
addProgram( | ||
name: $name | ||
description: $description | ||
managerEmail: $managerEmail | ||
orgToken: $orgToken | ||
) { | ||
id | ||
} | ||
} | ||
`; | ||
|
||
export const DeleteProgram = gql` | ||
mutation DeleteProgram($deleteProgramId: ID!, $orgToken: String) { | ||
deleteProgram(id: $deleteProgramId, orgToken: $orgToken) { | ||
id | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { gql } from '@apollo/client'; | ||
|
||
export const UPLOAD_RESUME = gql` | ||
mutation UploadResume($userId: ID!, $resume: String!) { | ||
uploadResume(userId: $userId, resume: $resume) { | ||
resume | ||
} | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.