felicity-lims/frontend/vite/src/graphql/clients.queries.ts

82 lines
1.4 KiB
TypeScript
Raw Normal View History

2021-03-26 04:22:59 +08:00
import gql from 'graphql-tag'
export const GET_ALL_CLIENTS = gql`
query getAllClients {
clientAll {
edges{
node {
uid
name
code
district {
uid
name
province {
uid
name
country{
uid
name
}
}
}
}
}
}
}`;
export const SEARCH_CLIENTS = gql`
query searchClients($queryString: String!) {
clientSearch(queryString: $queryString){
uid
name
code
district {
uid
name
province {
uid
name
country{
uid
name
}
}
}
}
}`;
export const GET_CLIENT_CONTACTS_BY_CLIENT_UID = gql`
query getClientContactsByClientUid($clientUid: String!) {
clientContactByClientUid(clientUid: $clientUid){
uid
firstName
lastName
email
mobilePhone
consentSms
}
2021-05-07 01:32:14 +08:00
}`;
export const GET_CLIENT_BY_UID = gql`
query getClientByUid($uid: String!) {
clientByUid(uid: $uid){
uid
name
code
district {
uid
name
province {
uid
name
country{
uid
name
}
}
}
}
}`;