Jobslines schema. Added phone number formatting.
This commit is contained in:
11
client/src/graphql/jobs-lines.queries.js
Normal file
11
client/src/graphql/jobs-lines.queries.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { gql } from "apollo-boost";
|
||||
|
||||
export const GET_JOB_LINES_BY_PK = gql`
|
||||
query GET_JOB_LINES_BY_PK($id: uuid!) {
|
||||
joblines(where: { jobid: { _eq: $id } }) {
|
||||
id
|
||||
line_ind
|
||||
line_desc
|
||||
}
|
||||
}
|
||||
`;
|
||||
@@ -62,29 +62,11 @@ export const GET_JOB_BY_PK = gql`
|
||||
last_name
|
||||
phone
|
||||
}
|
||||
rate_atp
|
||||
rate_la1
|
||||
rate_la2
|
||||
rate_la3
|
||||
rate_la4
|
||||
rate_lab
|
||||
rate_lad
|
||||
rate_lae
|
||||
rate_laf
|
||||
rate_lag
|
||||
rate_lam
|
||||
rate_lar
|
||||
rate_las
|
||||
rate_lau
|
||||
rate_ma2s
|
||||
rate_ma2t
|
||||
rate_mabl
|
||||
rate_ma3s
|
||||
rate_macs
|
||||
rate_mahw
|
||||
rate_mapa
|
||||
rate_mash
|
||||
rate_matd
|
||||
est_co_nm
|
||||
est_ph1
|
||||
est_ea
|
||||
est_ct_fn
|
||||
est_ct_ln
|
||||
regie_number
|
||||
ro_number
|
||||
scheduled_completion
|
||||
@@ -92,6 +74,8 @@ export const GET_JOB_BY_PK = gql`
|
||||
scheduled_delivery
|
||||
status
|
||||
updated_at
|
||||
claim_total
|
||||
deductible
|
||||
vehicle {
|
||||
plate_no
|
||||
v_vin
|
||||
@@ -109,6 +93,8 @@ export const UPDATE_JOB = gql`
|
||||
update_jobs(where: { id: { _eq: $jobId } }, _set: $job) {
|
||||
returning {
|
||||
id
|
||||
est_ph1
|
||||
est_ea
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
import { gql } from "apollo-boost";
|
||||
import {
|
||||
GET_CURRENT_USER,
|
||||
GET_WHITE_BOARD_LEFT_SIDER_VISIBLE
|
||||
} from "./local.queries";
|
||||
import { GET_CURRENT_USER } from "./local.queries";
|
||||
|
||||
export const typeDefs = gql`
|
||||
extend type Mutation {
|
||||
|
||||
Reference in New Issue
Block a user