29 lines
758 B
JavaScript
29 lines
758 B
JavaScript
import { gql } from "@apollo/client";
|
|
|
|
export const GET_PHONE_NUMBER_OPT_OUT = gql`
|
|
query GET_PHONE_NUMBER_OPT_OUT($bodyshopid: uuid!, $phone_number: String!) {
|
|
phone_number_opt_out(where: { bodyshopid: { _eq: $bodyshopid }, phone_number: { _eq: $phone_number } }) {
|
|
id
|
|
bodyshopid
|
|
phone_number
|
|
created_at
|
|
updated_at
|
|
}
|
|
}
|
|
`;
|
|
|
|
export const GET_PHONE_NUMBER_OPT_OUTS = gql`
|
|
query GET_PHONE_NUMBER_OPT_OUTS($bodyshopid: uuid!, $search: String) {
|
|
phone_number_opt_out(
|
|
where: { bodyshopid: { _eq: $bodyshopid }, phone_number: { _ilike: $search } }
|
|
order_by: [{ phone_number: asc }, { updated_at: desc }]
|
|
) {
|
|
id
|
|
bodyshopid
|
|
phone_number
|
|
created_at
|
|
updated_at
|
|
}
|
|
}
|
|
`;
|