Package cleanup & transition to latest apollo.

This commit is contained in:
Patrick Fic
2021-02-24 08:48:55 -08:00
parent 359edea97c
commit 46014261d6
202 changed files with 31740 additions and 1174 deletions

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const QUERY_JOBS_FOR_EXPORT = gql`
query QUERY_JOBS_FOR_EXPORT($invoicedStatus: String!) {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const INSERT_ALLOCATION = gql`
mutation INSERT_ALLOCATION($alloc: [allocations_insert_input!]!) {

View File

@@ -1,4 +1,4 @@
import { onError } from "apollo-link-error";
import { onError } from "@apollo/client/link/error";
//https://stackoverflow.com/questions/57163454/refreshing-a-token-with-apollo-client-firebase-auth
const errorLink = onError(

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const QUERY_ALL_ACTIVE_APPOINTMENTS = gql`
query QUERY_ALL_ACTIVE_APPOINTMENTS(
@@ -54,11 +54,8 @@ export const QUERY_ALL_ACTIVE_APPOINTMENTS = gql`
}
`;
export const INSERT_APPOINTMENT_BLOCK = gql`
mutation INSERT_APPOINTMENT_BLOCK(
$app: [appointments_insert_input!]!
) {
mutation INSERT_APPOINTMENT_BLOCK($app: [appointments_insert_input!]!) {
insert_appointments(objects: $app) {
returning {
id

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const QUERY_ALL_ASSOCIATIONS = gql`
query QUERY_ALL_ASSOCIATIONS {

View File

@@ -1,18 +1,18 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const QUERY_AUDIT_TRAIL = gql`
query QUERY_AUDIT_TRAIL($id: uuid!) {
audit_trail(where: {recordid: {_eq: $id}}) {
useremail
tabname
schemaname
recordid
operation
old_val
new_val
id
created
bodyshopid
}
audit_trail(where: { recordid: { _eq: $id } }) {
useremail
tabname
schemaname
recordid
operation
old_val
new_val
id
created
bodyshopid
}
}
`;

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const QUERY_AVAILABLE_JOBS = gql`
query QUERY_AVAILABLE_JOBS {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const UPDATE_BILL_LINE = gql`
mutation UPDATE_BILL_LINE(

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const INSERT_NEW_BILL = gql`
mutation INSERT_NEW_BILL($bill: [bills_insert_input!]!) {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const INTROSPECTION = gql`
query INTROSPECTION {
__schema {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const INSERT_NEW_CONTRACT = gql`
mutation INSERT_NEW_CONTRACT(

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const CONVERSATION_LIST_SUBSCRIPTION = gql`
subscription CONVERSATION_LIST_SUBSCRIPTION {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const INSERT_NEW_COURTESY_CAR = gql`
mutation INSERT_NEW_COURTESY_CAR(

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const QUERY_SURVEY = gql`
query QUERY_SURVEY($surveyId: uuid!) {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const GET_DOCUMENTS_BY_JOB = gql`
query GET_DOCUMENTS_BY_JOB($jobId: uuid!) {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const QUERY_EMPLOYEES = gql`
query QUERY_EMPLOYEES {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const INSERT_CONVERSATION_TAG = gql`
mutation INSERT_CONVERSATION_TAG($conversationId: uuid!, $jobId: uuid!) {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const GET_JOB_LINES_BY_PK = gql`
query GET_JOB_LINES_BY_PK($id: uuid!) {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const QUERY_ALL_ACTIVE_JOBS = gql`
query QUERY_ALL_ACTIVE_JOBS($statuses: [String!]!) {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const MARK_MESSAGES_AS_READ_BY_CONVERSATION = gql`
mutation MARK_MESSAGES_AS_READ_BY_CONVERSATION($conversationId: uuid) {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const GET_LANDING_NAV_ITEMS = gql`
query nav_items {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const INSERT_NEW_NOTE = gql`
mutation INSERT_NEW_NOTE($noteInput: [notes_insert_input!]!) {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const QUERY_SEARCH_OWNER_BY_IDX = gql`
query QUERY_SEARCH_OWNER_BY_IDX($search: String!) {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const INSERT_NEW_PARTS_ORDERS = gql`
mutation INSERT_NEW_PARTS_ORDERS($po: [parts_orders_insert_input!]!) {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const INSERT_NEW_PAYMENT = gql`
mutation INSERT_NEW_PAYMENT($paymentInput: [payments_insert_input!]!) {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const SUBSCRIPTION_SCOREBOARD = gql`
subscription SUBSCRIPTION_SCOREBOARD($start: date!, $end: date!) {
@@ -10,7 +10,6 @@ export const SUBSCRIPTION_SCOREBOARD = gql`
job {
id
ro_number
}
}
}

View File

@@ -1,11 +1,11 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const GLOBAL_SEARCH_QUERY = gql`
query GLOBAL_SEARCH_QUERY($search: String) {
search_jobs(args: { search: $search }) {
id
ro_number
clm_total
clm_no
v_model_yr

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const QUERY_TEMPLATES_BY_NAME = gql`
query QUERY_TEMPLATES_BY_NAME($name: String!) {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const QUERY_TICKETS_BY_JOBID = gql`
query QUERY_TICKETS_BY_JOBID($jobid: uuid!) {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const QUERY_SHOP_ASSOCIATIONS = gql`
query QUERY_SHOP_ASSOCIATIONS {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const QUERY_VEHICLE_BY_ID = gql`
query QUERY_VEHICLE_BY_ID($id: uuid!) {

View File

@@ -1,4 +1,4 @@
import gql from "graphql-tag";
import { gql } from "@apollo/client";
export const QUERY_VENDOR_BY_ID = gql`
query QUERY_VENDOR_BY_ID($id: uuid!) {