Skip to content

Commit

Permalink
Merge pull request #32 from tomvin/dev
Browse files Browse the repository at this point in the history
Admin Portal
  • Loading branch information
tomvin authored Oct 20, 2019
2 parents 18f41b8 + 570494d commit 3ac1ecf
Show file tree
Hide file tree
Showing 36 changed files with 397 additions and 171 deletions.
4 changes: 2 additions & 2 deletions apollo.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
client: {
service: {//"match-me"
service: {
name: 'match-me',
url: 'http://dev-match-me-backend-rmit.herokuapp.com/graphql'
url: 'https://dev-match-me-backend-rmit.herokuapp.com/graphql'
}
}
};
82 changes: 23 additions & 59 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/api/fragments/userForJobMatchFragment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export const USER_FOR_JOB_MATCH_FRAGMENT = gql`
fragment UserForJobMatch on User {
_id
email
profilePictureUrl
jobSeeker {
_id
name
Expand Down
1 change: 1 addition & 0 deletions src/api/mutations/createJobSeekerMutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export type CreateJobSeekerVariables = {
userInput: {
email: string;
password: string;
profilePictureUrl: string;
}
}

Expand Down
15 changes: 15 additions & 0 deletions src/api/mutations/deleteJobMutation.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import gql from "graphql-tag";

export type DeleteJobVariables = {
jobId: string;
}

export type DeleteJobResult = {
deleteJob: boolean;
}

export const DELETE_JOB = gql`
mutation DeleteJob($jobId: String) {
deleteJob(jobId: $jobId)
}
`;
18 changes: 18 additions & 0 deletions src/api/queries/allCompaniesQuery.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { ICompany } from './../../models/Company';
import gql from 'graphql-tag';

export type AllCompaniesResult = {
companies: ICompany[] | undefined;
}

export const ALL_COMPANIES = gql`
query AllCompanies {
companies {
_id
name
logoUrl
phone
email
}
}
`;
1 change: 1 addition & 0 deletions src/api/queries/allJobSeekerUsersQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ query AllJobSeekerUsers {
users {
_id
email
profilePictureUrl
jobSeeker {
_id
name
Expand Down
Loading

0 comments on commit 3ac1ecf

Please sign in to comment.