Merged in test (pull request #63)

Push Minor Bug Fixes to Production
This commit is contained in:
Patrick Fic
2021-05-20 14:55:37 +00:00
35 changed files with 4951 additions and 54 deletions

View File

@@ -8,7 +8,7 @@ const authProvider = {
username, username,
password password
); );
const token = await user.getIdToken(true); const token = await user.getIdToken();
localStorage.setItem("token", token); localStorage.setItem("token", token);
return Promise.resolve(); return Promise.resolve();
} catch (error) { } catch (error) {

View File

@@ -1,4 +1,4 @@
<babeledit_project be_version="2.7.1" version="1.2"> <babeledit_project version="1.2" be_version="2.7.1">
<!-- <!--
BabelEdit project file BabelEdit project file
@@ -6535,6 +6535,27 @@
</translation> </translation>
</translations> </translations>
</concept_node> </concept_node>
<concept_node>
<name>website</name>
<definition_loaded>false</definition_loaded>
<description></description>
<comment></comment>
<default_text></default_text>
<translations>
<translation>
<language>en-US</language>
<approved>false</approved>
</translation>
<translation>
<language>es-MX</language>
<approved>false</approved>
</translation>
<translation>
<language>fr-CA</language>
<approved>false</approved>
</translation>
</translations>
</concept_node>
<concept_node> <concept_node>
<name>zip_post</name> <name>zip_post</name>
<definition_loaded>false</definition_loaded> <definition_loaded>false</definition_loaded>

View File

@@ -75,8 +75,8 @@
"start": "craco start", "start": "craco start",
"build": "REACT_APP_GIT_SHA=`git rev-parse --short HEAD` craco build", "build": "REACT_APP_GIT_SHA=`git rev-parse --short HEAD` craco build",
"build:test": "env-cmd -f .env.test npm run build", "build:test": "env-cmd -f .env.test npm run build",
"build-deploy:test": "npm run build:test && s3cmd sync build/* s3://imex-online-test && echo '🚀 TESTING Deployed!'",
"buildcra": "REACT_APP_GIT_SHA=`git rev-parse --short HEAD` react-scripts build", "buildcra": "REACT_APP_GIT_SHA=`git rev-parse --short HEAD` react-scripts build",
"build-deploy": "REACT_APP_GIT_SHA=`git rev-parse --short HEAD` craco build && s3cmd sync build/* s3://imex-online-production && echo '🚀 Deployed!'",
"test": "craco test", "test": "craco test",
"eject": "react-scripts eject", "eject": "react-scripts eject",
"madge": "madge --image ./madge-graph.svg --extensions js,jsx,ts,tsx --circular ." "madge": "madge --image ./madge-graph.svg --extensions js,jsx,ts,tsx --circular ."

View File

@@ -1,5 +1,5 @@
import { useApolloClient, useMutation } from "@apollo/client"; import { useApolloClient, useMutation } from "@apollo/client";
import { Button, Form, Modal, notification } from "antd"; import { Button, Form, Modal, notification, Space } from "antd";
import _ from "lodash"; import _ from "lodash";
import React, { useEffect, useState, useMemo } from "react"; import React, { useEffect, useState, useMemo } from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
@@ -227,7 +227,7 @@ function BillEnterModalContainer({
onCancel={handleCancel} onCancel={handleCancel}
afterClose={() => form.resetFields()} afterClose={() => form.resetFields()}
footer={ footer={
<span> <Space>
<Button onClick={handleCancel}>{t("general.actions.cancel")}</Button> <Button onClick={handleCancel}>{t("general.actions.cancel")}</Button>
<Button loading={loading} onClick={() => form.submit()}> <Button loading={loading} onClick={() => form.submit()}>
{t("general.actions.save")} {t("general.actions.save")}
@@ -243,7 +243,7 @@ function BillEnterModalContainer({
{t("general.actions.saveandnew")} {t("general.actions.saveandnew")}
</Button> </Button>
)} )}
</span> </Space>
} }
destroyOnClose destroyOnClose
> >
@@ -255,7 +255,6 @@ function BillEnterModalContainer({
onFinishFailed={() => { onFinishFailed={() => {
setEnterAgain(false); setEnterAgain(false);
}} }}
// initialValues={formValues}
> >
<BillFormContainer <BillFormContainer
form={form} form={form}

View File

@@ -1,6 +1,6 @@
import { UploadOutlined } from "@ant-design/icons";
import { useApolloClient } from "@apollo/client"; import { useApolloClient } from "@apollo/client";
import { import {
Button,
Divider, Divider,
Form, Form,
Input, Input,
@@ -316,9 +316,21 @@ export function BillFormComponent({
return e && e.fileList; return e && e.fileList;
}} }}
> >
<Upload name="logo" beforeUpload={() => false} listType="picture"> <Upload.Dragger
<Button>Click to upload</Button> multiple={true}
</Upload> name="logo"
beforeUpload={() => false}
listType="picture"
>
<>
<p className="ant-upload-drag-icon">
<UploadOutlined />
</p>
<p className="ant-upload-text">
Click or drag files to this area to upload.
</p>
</>
</Upload.Dragger>
</Form.Item> </Form.Item>
</div> </div>
); );

View File

@@ -47,6 +47,7 @@ export function BillEnterModalLinesComponent({
return { return {
key: `${field.index}joblinename`, key: `${field.index}joblinename`,
name: [field.name, "joblineid"], name: [field.name, "joblineid"],
label: t("billlines.fields.jobline"),
rules: [ rules: [
{ {
required: true, required: true,
@@ -94,6 +95,7 @@ export function BillEnterModalLinesComponent({
return { return {
key: `${field.index}line_desc`, key: `${field.index}line_desc`,
name: [field.name, "line_desc"], name: [field.name, "line_desc"],
label: t("billlines.fields.line_desc"),
rules: [ rules: [
{ {
required: true, required: true,
@@ -113,6 +115,7 @@ export function BillEnterModalLinesComponent({
return { return {
key: `${field.index}quantity`, key: `${field.index}quantity`,
name: [field.name, "quantity"], name: [field.name, "quantity"],
label: t("billlines.fields.quantity"),
rules: [ rules: [
{ {
required: true, required: true,
@@ -134,6 +137,7 @@ export function BillEnterModalLinesComponent({
return { return {
key: `${field.index}actual_price`, key: `${field.index}actual_price`,
name: [field.name, "actual_price"], name: [field.name, "actual_price"],
label: t("billlines.fields.actual_price"),
rules: [ rules: [
{ {
required: true, required: true,
@@ -186,10 +190,12 @@ export function BillEnterModalLinesComponent({
dataIndex: "actual_cost", dataIndex: "actual_cost",
editable: true, editable: true,
width: "8rem", width: "8rem",
formItemProps: (field) => { formItemProps: (field) => {
return { return {
key: `${field.index}actual_cost`, key: `${field.index}actual_cost`,
name: [field.name, "actual_cost"], name: [field.name, "actual_cost"],
label: t("billlines.fields.actual_cost"),
rules: [ rules: [
{ {
required: true, required: true,
@@ -221,10 +227,12 @@ export function BillEnterModalLinesComponent({
title: t("billlines.fields.cost_center"), title: t("billlines.fields.cost_center"),
dataIndex: "cost_center", dataIndex: "cost_center",
editable: true, editable: true,
formItemProps: (field) => { formItemProps: (field) => {
return { return {
key: `${field.index}cost_center`, key: `${field.index}cost_center`,
name: [field.name, "cost_center"], name: [field.name, "cost_center"],
label: t("billlines.fields.cost_center"),
rules: [ rules: [
{ {
required: true, required: true,
@@ -246,6 +254,7 @@ export function BillEnterModalLinesComponent({
title: t("billlines.fields.location"), title: t("billlines.fields.location"),
dataIndex: "location", dataIndex: "location",
editable: true, editable: true,
label: t("billlines.fields.location"),
formItemProps: (field) => { formItemProps: (field) => {
return { return {
key: `${field.index}location`, key: `${field.index}location`,
@@ -488,6 +497,7 @@ const EditableCell = ({
<Space size="small"> <Space size="small">
<Form.Item <Form.Item
name={dataIndex} name={dataIndex}
labelCol={{ span: 0 }}
{...(formItemProps && formItemProps(record))} {...(formItemProps && formItemProps(record))}
> >
{(formInput && formInput(record, record.key)) || children} {(formInput && formInput(record, record.key)) || children}
@@ -499,7 +509,11 @@ const EditableCell = ({
return ( return (
<td {...restProps}> <td {...restProps}>
<Form.Item name={dataIndex} {...(formItemProps && formItemProps(record))}> <Form.Item
labelCol={{ span: 0 }}
name={dataIndex}
{...(formItemProps && formItemProps(record))}
>
{(formInput && formInput(record, record.key)) || children} {(formInput && formInput(record, record.key)) || children}
</Form.Item> </Form.Item>
</td> </td>

View File

@@ -20,7 +20,7 @@ const mapDispatchToProps = (dispatch) => ({
toggleModalVisible: () => dispatch(toggleModalVisible("courtesyCarReturn")), toggleModalVisible: () => dispatch(toggleModalVisible("courtesyCarReturn")),
}); });
export function BillEnterModalContainer({ export function CCReturnModalContainer({
courtesyCarReturnModal, courtesyCarReturnModal,
toggleModalVisible, toggleModalVisible,
bodyshop, bodyshop,
@@ -85,4 +85,4 @@ export function BillEnterModalContainer({
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps mapDispatchToProps
)(BillEnterModalContainer); )(CCReturnModalContainer);

View File

@@ -105,7 +105,7 @@ export function JobLinesComponent({
state.sortedInfo.columnKey === "op_code_desc" && state.sortedInfo.order, state.sortedInfo.columnKey === "op_code_desc" && state.sortedInfo.order,
ellipsis: true, ellipsis: true,
render: (text, record) => render: (text, record) =>
`${record.op_code_desc||""}${ `${record.op_code_desc || ""}${
record.alt_partm ? ` ${record.alt_partm}` : "" record.alt_partm ? ` ${record.alt_partm}` : ""
}`, }`,
}, },
@@ -120,11 +120,11 @@ export function JobLinesComponent({
filters: [ filters: [
{ {
text: t("jobs.labels.partsfilter"), text: t("jobs.labels.partsfilter"),
value: ["PAN", "PAL", "PAA", "PAS", "PASL"], value: ["PAN", "PAP", "PAL", "PAA", "PAS", "PASL"],
}, },
{ {
text: t("joblines.fields.part_types.PAN"), text: t("joblines.fields.part_types.PAN"),
value: ["PAN"], value: ["PAN", "PAP"],
}, },
{ {
text: t("joblines.fields.part_types.PAL"), text: t("joblines.fields.part_types.PAL"),

View File

@@ -3,12 +3,12 @@ import { notification } from "antd";
import React, { useState } from "react"; import React, { useState } from "react";
import { useTranslation } from "react-i18next"; import { useTranslation } from "react-i18next";
import { logImEXEvent } from "../../firebase/firebase.utils"; import { logImEXEvent } from "../../firebase/firebase.utils";
import { UPDATE_JOB } from "../../graphql/jobs.queries"; import { UPDATE_JOB_ASSIGNMENTS } from "../../graphql/jobs.queries";
import JobEmployeeAssignmentsComponent from "./job-employee-assignments.component"; import JobEmployeeAssignmentsComponent from "./job-employee-assignments.component";
export default function JobEmployeeAssignmentsContainer({ job, refetch }) { export default function JobEmployeeAssignmentsContainer({ job, refetch }) {
const { t } = useTranslation(); const { t } = useTranslation();
const [updateJob] = useMutation(UPDATE_JOB); const [updateJob] = useMutation(UPDATE_JOB_ASSIGNMENTS);
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const handleAdd = async (assignment) => { const handleAdd = async (assignment) => {
@@ -20,8 +20,6 @@ export default function JobEmployeeAssignmentsContainer({ job, refetch }) {
const result = await updateJob({ const result = await updateJob({
variables: { jobId: job.id, job: { [empAssignment]: employeeid } }, variables: { jobId: job.id, job: { [empAssignment]: employeeid } },
refetchQueries: ["GET_JOB_BY_PK"],
awaitRefetchQueries: true,
}); });
if (refetch) refetch(); if (refetch) refetch();
@@ -41,8 +39,6 @@ export default function JobEmployeeAssignmentsContainer({ job, refetch }) {
let empAssignment = determineFieldName(operation); let empAssignment = determineFieldName(operation);
const result = await updateJob({ const result = await updateJob({
variables: { jobId: job.id, job: { [empAssignment]: null } }, variables: { jobId: job.id, job: { [empAssignment]: null } },
refetchQueries: ["GET_JOB_BY_PK"],
awaitRefetchQueries: true,
}); });
if (!!result.errors) { if (!!result.errors) {

View File

@@ -36,10 +36,8 @@ const JobSearchSelect = (
} }
); );
const [ const [callIdSearch, { loading: idLoading, error: idError, data: idData }] =
callIdSearch, useLazyQuery(SEARCH_JOBS_BY_ID_FOR_AUTOCOMPLETE);
{ loading: idLoading, error: idError, data: idData },
] = useLazyQuery(SEARCH_JOBS_BY_ID_FOR_AUTOCOMPLETE);
const executeSearch = (v) => { const executeSearch = (v) => {
callSearch(v); callSearch(v);
@@ -81,7 +79,7 @@ const JobSearchSelect = (
> >
{theOptions {theOptions
? theOptions.map((o) => ( ? theOptions.map((o) => (
<Option key={o.id} value={o.id}> <Option key={o.id} value={o.id} status={o.status}>
{`${clm_no ? `${o.clm_no} | ` : ""}${ {`${clm_no ? `${o.clm_no} | ` : ""}${
o.ro_number || t("general.labels.na") o.ro_number || t("general.labels.na")
} | ${o.ownr_ln || ""} ${o.ownr_fn || ""} ${ } | ${o.ownr_ln || ""} ${o.ownr_fn || ""} ${

View File

@@ -57,7 +57,7 @@ export function JobAdminMarkReexport({ bodyshop, job }) {
return ( return (
<Button <Button
loading={loading} loading={loading}
disabled={(!job.voided && !job.date_exported) || !job.converted} disabled={!job.date_exported}
onClick={handleUpdate} onClick={handleUpdate}
> >
{t("jobs.labels.markforreexport")} {t("jobs.labels.markforreexport")}

View File

@@ -40,7 +40,7 @@ export function JobsCloseExportButton({
{ jobIds: [jobId] }, { jobIds: [jobId] },
{ {
headers: { headers: {
Authorization: `Bearer ${await auth.currentUser.getIdToken(true)}`, Authorization: `Bearer ${await auth.currentUser.getIdToken()}`,
}, },
} }
); );
@@ -64,7 +64,7 @@ export function JobsCloseExportButton({
QbXmlResponse.data, QbXmlResponse.data,
{ {
headers: { headers: {
Authorization: `Bearer ${await auth.currentUser.getIdToken(true)}`, Authorization: `Bearer ${await auth.currentUser.getIdToken()}`,
}, },
} }
); );
@@ -86,7 +86,7 @@ export function JobsCloseExportButton({
failedTransactions.forEach((ft) => { failedTransactions.forEach((ft) => {
//insert failed export log //insert failed export log
notification.open({ notification.open({
// key: "failedexports", // key: "failedexports",
type: "error", type: "error",
message: t("jobs.errors.exporting", { message: t("jobs.errors.exporting", {
error: ft.errorMessage || "", error: ft.errorMessage || "",

View File

@@ -102,9 +102,10 @@ export function JobsCloseLines({ bodyshop, job, jobRO }) {
</td> </td>
<td> <td>
<Form.Item <Form.Item
//label={t("joblines.fields.profitcenter_part")} label={t("joblines.fields.profitcenter_part")}
key={`${index}profitcenter_part`} key={`${index}profitcenter_part`}
name={[field.name, "profitcenter_part"]} name={[field.name, "profitcenter_part"]}
labelCol={{ span: 0 }}
rules={[ rules={[
{ {
required: !!job.joblines[index].act_price, required: !!job.joblines[index].act_price,
@@ -135,7 +136,8 @@ export function JobsCloseLines({ bodyshop, job, jobRO }) {
</td> </td>
<td> <td>
<Form.Item <Form.Item
//label={t("joblines.fields.profitcenter_labor")} label={t("joblines.fields.profitcenter_labor")}
labelCol={{ span: 0 }}
key={`${index}profitcenter_labor`} key={`${index}profitcenter_labor`}
name={[field.name, "profitcenter_labor"]} name={[field.name, "profitcenter_labor"]}
rules={[ rules={[

View File

@@ -43,7 +43,7 @@ export function JobsExportAllButton({
{ jobIds: jobIds }, { jobIds: jobIds },
{ {
headers: { headers: {
Authorization: `Bearer ${await auth.currentUser.getIdToken(true)}`, Authorization: `Bearer ${await auth.currentUser.getIdToken()}`,
}, },
} }
); );
@@ -66,7 +66,7 @@ export function JobsExportAllButton({
QbXmlResponse.data, QbXmlResponse.data,
{ {
headers: { headers: {
Authorization: `Bearer ${await auth.currentUser.getIdToken(true)}`, Authorization: `Bearer ${await auth.currentUser.getIdToken()}`,
}, },
} }
); );

View File

@@ -46,7 +46,7 @@ export function PayableExportAll({
{ bills: billids }, { bills: billids },
{ {
headers: { headers: {
Authorization: `Bearer ${await auth.currentUser.getIdToken(true)}`, Authorization: `Bearer ${await auth.currentUser.getIdToken()}`,
}, },
} }
); );

View File

@@ -44,7 +44,7 @@ export function PayableExportButton({
{ bills: [billId] }, { bills: [billId] },
{ {
headers: { headers: {
Authorization: `Bearer ${await auth.currentUser.getIdToken(true)}`, Authorization: `Bearer ${await auth.currentUser.getIdToken()}`,
}, },
} }
); );

View File

@@ -43,7 +43,7 @@ export function PaymentExportButton({
{ payments: [paymentId] }, { payments: [paymentId] },
{ {
headers: { headers: {
Authorization: `Bearer ${await auth.currentUser.getIdToken(true)}`, Authorization: `Bearer ${await auth.currentUser.getIdToken()}`,
}, },
} }
); );

View File

@@ -33,7 +33,7 @@ const mapDispatchToProps = (dispatch) => ({
toggleModalVisible: () => dispatch(toggleModalVisible("payment")), toggleModalVisible: () => dispatch(toggleModalVisible("payment")),
}); });
function BillEnterModalContainer({ function PaymentModalContainer({
paymentModal, paymentModal,
toggleModalVisible, toggleModalVisible,
bodyshop, bodyshop,
@@ -237,7 +237,7 @@ function BillEnterModalContainer({
export default connect( export default connect(
mapStateToProps, mapStateToProps,
mapDispatchToProps mapDispatchToProps
)(BillEnterModalContainer); )(PaymentModalContainer);
// const pr = stripe.paymentRequest({ // const pr = stripe.paymentRequest({
// country: "CA", // country: "CA",

View File

@@ -42,7 +42,7 @@ export function PaymentsExportAllButton({
{ payments: paymentIds }, { payments: paymentIds },
{ {
headers: { headers: {
Authorization: `Bearer ${await auth.currentUser.getIdToken(true)}`, Authorization: `Bearer ${await auth.currentUser.getIdToken()}`,
}, },
} }
); );

View File

@@ -92,7 +92,9 @@ export default function ShopInfoGeneral({ form }) {
> >
<PhoneFormItem /> <PhoneFormItem />
</Form.Item> </Form.Item>
<Form.Item label={t("bodyshop.fields.website")} name="website">
<Input />
</Form.Item>
<Form.Item <Form.Item
label={t("bodyshop.fields.insurance_vendor_id")} label={t("bodyshop.fields.insurance_vendor_id")}
name="insurance_vendor_id" name="insurance_vendor_id"

View File

@@ -32,14 +32,7 @@ export default function VendorsListComponent({
sortOrder: sortOrder:
state.sortedInfo.columnKey === "name" && state.sortedInfo.order, state.sortedInfo.columnKey === "name" && state.sortedInfo.order,
}, },
{
title: t("vendors.fields.cost_center"),
dataIndex: "cost_center",
key: "cost_center",
sorter: (a, b) => alphaSort(a.cost_center, b.cost_center),
sortOrder:
state.sortedInfo.columnKey === "cost_center" && state.sortedInfo.order,
},
{ {
title: t("vendors.fields.phone"), title: t("vendors.fields.phone"),
dataIndex: "phone", dataIndex: "phone",

View File

@@ -86,6 +86,7 @@ export const QUERY_BODYSHOP = gql`
jobsizelimit jobsizelimit
md_ccc_rates md_ccc_rates
enforce_referral enforce_referral
website
employees { employees {
id id
active active
@@ -169,6 +170,7 @@ export const UPDATE_SHOP = gql`
jobsizelimit jobsizelimit
md_ccc_rates md_ccc_rates
enforce_referral enforce_referral
website
employees { employees {
id id
first_name first_name

View File

@@ -864,6 +864,36 @@ export const UPDATE_JOB = gql`
} }
`; `;
export const UPDATE_JOB_ASSIGNMENTS = gql`
mutation UPDATE_JOB_ASSIGNMENTS($jobId: uuid!, $job: jobs_set_input!) {
update_jobs(where: { id: { _eq: $jobId } }, _set: $job) {
returning {
id
employee_body_rel {
id
first_name
last_name
}
employee_refinish_rel {
id
first_name
last_name
}
employee_prep_rel {
id
first_name
last_name
}
employee_csr_rel {
id
first_name
last_name
}
}
}
}
`;
export const VOID_JOB = gql` export const VOID_JOB = gql`
mutation VOID_JOB( mutation VOID_JOB(
$jobId: uuid! $jobId: uuid!
@@ -1009,6 +1039,7 @@ export const SEARCH_JOBS_BY_ID_FOR_AUTOCOMPLETE = gql`
v_make_desc v_make_desc
v_model_desc v_model_desc
v_model_yr v_model_yr
status
} }
} }
`; `;

View File

@@ -53,7 +53,7 @@ export function JobsCloseContainer({ setBreadcrumbs, setSelectedHeader }) {
setBreadcrumbs([ setBreadcrumbs([
{ {
link: `/manage/jobs/${jobId}/`, link: `/manage/jobs/`,
label: t("titles.bc.jobs"), label: t("titles.bc.jobs"),
}, },
{ {

View File

@@ -416,6 +416,7 @@
}, },
"target_touchtime": "Target Touch Time", "target_touchtime": "Target Touch Time",
"use_fippa": "Use FIPPA for Names on Generated Documents?", "use_fippa": "Use FIPPA for Names on Generated Documents?",
"website": "Website",
"zip_post": "Zip/Postal Code" "zip_post": "Zip/Postal Code"
}, },
"labels": { "labels": {

View File

@@ -416,6 +416,7 @@
}, },
"target_touchtime": "", "target_touchtime": "",
"use_fippa": "", "use_fippa": "",
"website": "",
"zip_post": "" "zip_post": ""
}, },
"labels": { "labels": {

View File

@@ -416,6 +416,7 @@
}, },
"target_touchtime": "", "target_touchtime": "",
"use_fippa": "", "use_fippa": "",
"website": "",
"zip_post": "" "zip_post": ""
}, },
"labels": { "labels": {

View File

@@ -9,8 +9,7 @@ if (process.env.NODE_ENV === "production") {
export const axiosAuthInterceptorId = axios.interceptors.request.use( export const axiosAuthInterceptorId = axios.interceptors.request.use(
async (config) => { async (config) => {
if (!config.headers.Authorization) { if (!config.headers.Authorization) {
const token = const token = auth.currentUser && (await auth.currentUser.getIdToken());
auth.currentUser && (await auth.currentUser.getIdToken(true));
if (token) { if (token) {
config.headers.Authorization = `Bearer ${token}`; config.headers.Authorization = `Bearer ${token}`;
} }

View File

@@ -0,0 +1,5 @@
- args:
cascade: false
read_only: false
sql: ALTER TABLE "public"."bodyshops" DROP COLUMN "website";
type: run_sql

View File

@@ -0,0 +1,5 @@
- args:
cascade: false
read_only: false
sql: ALTER TABLE "public"."bodyshops" ADD COLUMN "website" text NULL;
type: run_sql

View File

@@ -0,0 +1,82 @@
- args:
role: user
table:
name: bodyshops
schema: public
type: drop_select_permission
- args:
permission:
allow_aggregations: false
columns:
- accountingconfig
- address1
- address2
- appt_alt_transport
- appt_colors
- appt_length
- bill_tax_rates
- city
- country
- created_at
- default_adjustment_rate
- deliverchecklist
- email
- enforce_class
- enforce_referral
- federal_tax_id
- id
- imexshopid
- inhousevendorid
- insurance_vendor_id
- intakechecklist
- jobsizelimit
- logo_img_path
- md_categories
- md_ccc_rates
- md_classes
- md_hour_split
- md_ins_cos
- md_labor_rates
- md_messaging_presets
- md_notes_presets
- md_order_statuses
- md_parts_locations
- md_payment_types
- md_rbac
- md_referral_sources
- md_responsibility_centers
- md_ro_statuses
- messagingservicesid
- phone
- prodtargethrs
- production_config
- region_config
- schedule_end_time
- schedule_start_time
- scoreboard_target
- shopname
- shoprates
- speedprint
- ssbuckets
- state
- state_tax_id
- stripe_acct_id
- sub_status
- target_touchtime
- template_header
- textid
- updated_at
- use_fippa
- workingdays
- zip_post
computed_fields: []
filter:
associations:
user:
authid:
_eq: X-Hasura-User-Id
role: user
table:
name: bodyshops
schema: public
type: create_select_permission

View File

@@ -0,0 +1,83 @@
- args:
role: user
table:
name: bodyshops
schema: public
type: drop_select_permission
- args:
permission:
allow_aggregations: false
columns:
- accountingconfig
- address1
- address2
- appt_alt_transport
- appt_colors
- appt_length
- bill_tax_rates
- city
- country
- created_at
- default_adjustment_rate
- deliverchecklist
- email
- enforce_class
- enforce_referral
- federal_tax_id
- id
- imexshopid
- inhousevendorid
- insurance_vendor_id
- intakechecklist
- jobsizelimit
- logo_img_path
- md_categories
- md_ccc_rates
- md_classes
- md_hour_split
- md_ins_cos
- md_labor_rates
- md_messaging_presets
- md_notes_presets
- md_order_statuses
- md_parts_locations
- md_payment_types
- md_rbac
- md_referral_sources
- md_responsibility_centers
- md_ro_statuses
- messagingservicesid
- phone
- prodtargethrs
- production_config
- region_config
- schedule_end_time
- schedule_start_time
- scoreboard_target
- shopname
- shoprates
- speedprint
- ssbuckets
- state
- state_tax_id
- stripe_acct_id
- sub_status
- target_touchtime
- template_header
- textid
- updated_at
- use_fippa
- website
- workingdays
- zip_post
computed_fields: []
filter:
associations:
user:
authid:
_eq: X-Hasura-User-Id
role: user
table:
name: bodyshops
schema: public
type: create_select_permission

View File

@@ -0,0 +1,76 @@
- args:
role: user
table:
name: bodyshops
schema: public
type: drop_update_permission
- args:
permission:
columns:
- accountingconfig
- address1
- address2
- appt_alt_transport
- appt_colors
- appt_length
- bill_tax_rates
- city
- country
- created_at
- default_adjustment_rate
- deliverchecklist
- email
- enforce_class
- enforce_referral
- federal_tax_id
- id
- inhousevendorid
- insurance_vendor_id
- intakechecklist
- logo_img_path
- md_categories
- md_ccc_rates
- md_classes
- md_hour_split
- md_ins_cos
- md_labor_rates
- md_messaging_presets
- md_notes_presets
- md_order_statuses
- md_parts_locations
- md_payment_types
- md_rbac
- md_referral_sources
- md_responsibility_centers
- md_ro_statuses
- phone
- prodtargethrs
- production_config
- schedule_end_time
- schedule_start_time
- scoreboard_target
- shopname
- shoprates
- speedprint
- ssbuckets
- state
- state_tax_id
- target_touchtime
- updated_at
- use_fippa
- workingdays
- zip_post
filter:
associations:
_and:
- user:
authid:
_eq: X-Hasura-User-Id
- active:
_eq: true
set: {}
role: user
table:
name: bodyshops
schema: public
type: create_update_permission

View File

@@ -0,0 +1,77 @@
- args:
role: user
table:
name: bodyshops
schema: public
type: drop_update_permission
- args:
permission:
columns:
- accountingconfig
- address1
- address2
- appt_alt_transport
- appt_colors
- appt_length
- bill_tax_rates
- city
- country
- created_at
- default_adjustment_rate
- deliverchecklist
- email
- enforce_class
- enforce_referral
- federal_tax_id
- id
- inhousevendorid
- insurance_vendor_id
- intakechecklist
- logo_img_path
- md_categories
- md_ccc_rates
- md_classes
- md_hour_split
- md_ins_cos
- md_labor_rates
- md_messaging_presets
- md_notes_presets
- md_order_statuses
- md_parts_locations
- md_payment_types
- md_rbac
- md_referral_sources
- md_responsibility_centers
- md_ro_statuses
- phone
- prodtargethrs
- production_config
- schedule_end_time
- schedule_start_time
- scoreboard_target
- shopname
- shoprates
- speedprint
- ssbuckets
- state
- state_tax_id
- target_touchtime
- updated_at
- use_fippa
- website
- workingdays
- zip_post
filter:
associations:
_and:
- user:
authid:
_eq: X-Hasura-User-Id
- active:
_eq: true
set: {}
role: user
table:
name: bodyshops
schema: public
type: create_update_permission

File diff suppressed because it is too large Load Diff