exports.FIND_BODYSHOP_BY_MESSAGING_SERVICE_SID = ` query FIND_BODYSHOP_BY_MESSAGING_SERVICE_SID( $mssid: String! $phone: String! ) { bodyshops(where: { messagingservicesid: { _eq: $mssid } }) { id conversations(where: { phone_num: { _eq: $phone } }) { id } } } `; exports.INSERT_MESSAGE = ` mutation INSERT_MESSAGE($msg: [messages_insert_input!]!) { insert_messages(objects: $msg) { returning { conversation { bodyshop { associations(where: {active: {_eq: true}}) { user { fcmtokens } } } } } } } `; exports.UPDATE_MESSAGE_STATUS = ` mutation UPDATE_MESSAGE($msid: String!, $fields: messages_set_input!) { update_messages(where: { msid: { _eq: $msid } }, _set: $fields) { returning { id } } } `; exports.QUERY_JOBS_FOR_RECEIVABLES_EXPORT = ` query QUERY_JOBS_FOR_RECEIVABLES_EXPORT($id: uuid!) { jobs_by_pk(id: $id) { id job_totals date_invoiced ro_number clm_total invoice_allocation ownerid ownr_addr1 ownr_addr2 ownr_zip ownr_city ownr_st bodyshop { id md_responsibility_centers } } } `;