Merge branch 'master' into feature/member-mangement

This commit is contained in:
Barry Low committed 2018-10-06 00:39:15 -07:00
commit 4fe572411e
44 files changed
+1307 -919

No files matched your search

@@ -2,8 +2,8 @@
import gql from 'graphql-tag'
const CREATE_TEAM = gql`
mutation CreateTeamMutation($name: String!, $slug: String!) {
createTeam(name: $name, slug: $slug) {
mutation CreateTeamMutation($name: String!, $slug: String!, $botName: String!, $botSlug: String!) {
createTeam(name: $name, slug: $slug, botName: $botName, botSlug: $botSlug) {
id
name
slug
@@ -18,6 +18,7 @@ export const GET_ALL_TEAMS_QUERY = gql`
createdAt
profile {
avatar
banner
description
motto
updatedAt
@@ -36,6 +37,18 @@ export const GET_ALL_TEAMS_QUERY = gql`
createdAt
}
}
fb {
id
name
slug
avatar
kind
status {
status
reason
createdAt
}
}
}
}
}
@@ -2,8 +2,8 @@
import gql from 'graphql-tag'
export const GET_TEAMS_BY_OWNER = gql`
query teamsByOwnerQuery {
teamsByOwner {
query teamsByOwnerQuery($authId: String!) {
teamsByOwner(ownerId: $authId) {
id
name
slug
@@ -16,6 +16,7 @@ export const GET_TEAMS_BY_OWNER = gql`
createdAt
profile {
avatar
banner
description
motto
updatedAt
@@ -34,6 +35,18 @@ export const GET_TEAMS_BY_OWNER = gql`
createdAt
}
}
fb {
id
name
slug
avatar
kind
status {
status
reason
createdAt
}
}
}
}
`
+13
View File
@@ -15,6 +15,7 @@ export const TEAMS_FRAGMENT = gql`
createdAt
profile {
avatar
banner
description
motto
updatedAt
@@ -33,6 +34,18 @@ export const TEAMS_FRAGMENT = gql`
createdAt
}
}
fb {
id
name
slug
avatar
kind
status {
status
reason
createdAt
}
}
}
`
@@ -0,0 +1,42 @@
/* eslint-disable no-unused-vars */
import gql from 'graphql-tag'
const UPDATE_FB = gql`
mutation UpdateFBMutation($teamSlug: String!, $avatar: String) {
updateFB(teamId, $teamSlug, avatar: $avatar) {
id
name
slug
owner
status {
status
reason
createdAt
}
createdAt
profile {
avatar
banner
description
motto
updatedAt
}
members {
role
email
member {
alias
authId
}
status {
id
status
reason
createdAt
}
}
}
}
`
export default UPDATE_FB
@@ -28,6 +28,7 @@ const UPDATE_TEAM_PROFILE = gql`
createdAt
profile {
avatar
banner
description
motto
updatedAt