add SEARCH_JOBS_FOR_AUTOCOMPLETE N S_JS_BY_ID_F_A
This commit is contained in:
@@ -451,6 +451,54 @@ export const ACTIVE_JOBS_FOR_AUTOCOMPLETE = gql`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
export const SEARCH_JOBS_FOR_AUTOCOMPLETE = gql`
|
||||||
|
query SEARCH_JOBS_FOR_AUTOCOMPLETE(
|
||||||
|
$search: String
|
||||||
|
$isConverted: Boolean
|
||||||
|
$notExported: Boolean
|
||||||
|
$notInvoiced: Boolean
|
||||||
|
) {
|
||||||
|
search_jobs(
|
||||||
|
args: { search: $search }
|
||||||
|
limit: 50
|
||||||
|
where: {
|
||||||
|
_and: {
|
||||||
|
converted: { _eq: $isConverted }
|
||||||
|
date_exported: { _is_null: $notExported }
|
||||||
|
date_invoiced: { _is_null: $notInvoiced }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
) {
|
||||||
|
id
|
||||||
|
ownr_fn
|
||||||
|
ownr_ln
|
||||||
|
ro_number
|
||||||
|
clm_no
|
||||||
|
vehicleid
|
||||||
|
v_make_desc
|
||||||
|
v_model_desc
|
||||||
|
v_model_yr
|
||||||
|
status
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
export const SEARCH_JOBS_BY_ID_FOR_AUTOCOMPLETE = gql`
|
||||||
|
query SEARCH_JOBS_BY_ID_FOR_AUTOCOMPLETE($id: uuid!) {
|
||||||
|
jobs_by_pk(id: $id) {
|
||||||
|
id
|
||||||
|
ownr_fn
|
||||||
|
ownr_ln
|
||||||
|
ro_number
|
||||||
|
clm_no
|
||||||
|
vehicleid
|
||||||
|
v_make_desc
|
||||||
|
v_model_desc
|
||||||
|
v_model_yr
|
||||||
|
status
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
|
||||||
export const SEARCH_FOR_JOBS = gql`
|
export const SEARCH_FOR_JOBS = gql`
|
||||||
query SEARCH_FOR_JOBS($search: String!) {
|
query SEARCH_FOR_JOBS($search: String!) {
|
||||||
jobs(where: { ro_number: { _ilike: $search } }) {
|
jobs(where: { ro_number: { _ilike: $search } }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user