Adding of generic appointments to calendar.
This commit is contained in:
@@ -123,6 +123,27 @@
|
|||||||
</translation>
|
</translation>
|
||||||
</translations>
|
</translations>
|
||||||
</concept_node>
|
</concept_node>
|
||||||
|
<concept_node>
|
||||||
|
<name>new</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>reschedule</name>
|
<name>reschedule</name>
|
||||||
<definition_loaded>false</definition_loaded>
|
<definition_loaded>false</definition_loaded>
|
||||||
@@ -214,6 +235,32 @@
|
|||||||
</concept_node>
|
</concept_node>
|
||||||
</children>
|
</children>
|
||||||
</folder_node>
|
</folder_node>
|
||||||
|
<folder_node>
|
||||||
|
<name>fields</name>
|
||||||
|
<children>
|
||||||
|
<concept_node>
|
||||||
|
<name>title</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>
|
||||||
|
</children>
|
||||||
|
</folder_node>
|
||||||
<folder_node>
|
<folder_node>
|
||||||
<name>labels</name>
|
<name>labels</name>
|
||||||
<children>
|
<children>
|
||||||
|
|||||||
@@ -0,0 +1,67 @@
|
|||||||
|
import { Checkbox, Col, DatePicker, Modal, Row, TimePicker, Input } from "antd";
|
||||||
|
import React from "react";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
import ScheduleDayViewContainer from "../schedule-day-view/schedule-day-view.container";
|
||||||
|
|
||||||
|
export default function ScheduleJobModalComponent({
|
||||||
|
appData,
|
||||||
|
setAppData,
|
||||||
|
formData,
|
||||||
|
setFormData,
|
||||||
|
...props
|
||||||
|
}) {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
//TODO: Existing appointments list only refreshes sometimes after modal close. May have to do with the container class.
|
||||||
|
return (
|
||||||
|
<Modal
|
||||||
|
{...props}
|
||||||
|
width={"80%"}
|
||||||
|
maskClosable={false}
|
||||||
|
destroyOnClose={true}
|
||||||
|
okButtonProps={{ disabled: appData.start ? false : true }}
|
||||||
|
>
|
||||||
|
<Row>
|
||||||
|
<Col span={14}>
|
||||||
|
<Row>
|
||||||
|
Manual Job Selection Scheduled Time
|
||||||
|
<Input
|
||||||
|
placeholder={t("appointments.fields.title")}
|
||||||
|
onChange={e => {
|
||||||
|
setAppData({ ...appData, title: e.target.value });
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<DatePicker
|
||||||
|
value={appData.start}
|
||||||
|
onChange={e => {
|
||||||
|
setAppData({ ...appData, start: e });
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<TimePicker
|
||||||
|
value={appData.start}
|
||||||
|
format={"HH:mm"}
|
||||||
|
minuteStep={15}
|
||||||
|
onChange={e => {
|
||||||
|
setAppData({ ...appData, start: e });
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Row>
|
||||||
|
|
||||||
|
{
|
||||||
|
//TODO: Build out notifications.
|
||||||
|
}
|
||||||
|
<Checkbox
|
||||||
|
defaultChecked={formData.notifyCustomer}
|
||||||
|
onChange={e =>
|
||||||
|
setFormData({ ...formData, notifyCustomer: e.target.checked })
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{t("jobs.labels.appointmentconfirmation")}
|
||||||
|
</Checkbox>
|
||||||
|
</Col>
|
||||||
|
<Col span={10}>
|
||||||
|
<ScheduleDayViewContainer day={appData.start} />
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
</Modal>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,74 @@
|
|||||||
|
import { notification } from "antd";
|
||||||
|
import moment from "moment";
|
||||||
|
import React, { useState } from "react";
|
||||||
|
import { useMutation } from "react-apollo";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
import { connect } from "react-redux";
|
||||||
|
import { createStructuredSelector } from "reselect";
|
||||||
|
import { INSERT_APPOINTMENT } from "../../graphql/appointments.queries";
|
||||||
|
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||||
|
import ScheduleAppointmentModalComponent from "./schedule-appointment-modal.component";
|
||||||
|
|
||||||
|
const mapStateToProps = createStructuredSelector({
|
||||||
|
bodyshop: selectBodyshop
|
||||||
|
});
|
||||||
|
|
||||||
|
export default connect(
|
||||||
|
mapStateToProps,
|
||||||
|
null
|
||||||
|
)(function ScheduleAppointmentModalContainer({
|
||||||
|
scheduleModalState,
|
||||||
|
jobId,
|
||||||
|
bodyshop,
|
||||||
|
refetch
|
||||||
|
}) {
|
||||||
|
const [scheduleModalVisible, setscheduleModalVisible] = scheduleModalState;
|
||||||
|
const [appData, setAppData] = useState({
|
||||||
|
jobid: jobId,
|
||||||
|
bodyshopid: bodyshop.id,
|
||||||
|
isintake: false,
|
||||||
|
start: null
|
||||||
|
});
|
||||||
|
const [insertAppointment] = useMutation(INSERT_APPOINTMENT);
|
||||||
|
const [formData, setFormData] = useState({ notifyCustomer: false });
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
|
return (
|
||||||
|
<ScheduleAppointmentModalComponent
|
||||||
|
appData={appData}
|
||||||
|
setAppData={setAppData}
|
||||||
|
formData={formData}
|
||||||
|
setFormData={setFormData}
|
||||||
|
//Spreadable Modal Props
|
||||||
|
visible={scheduleModalVisible}
|
||||||
|
onCancel={() => setscheduleModalVisible(false)}
|
||||||
|
onOk={() => {
|
||||||
|
//TODO: Customize the amount of minutes it will add.
|
||||||
|
insertAppointment({
|
||||||
|
variables: {
|
||||||
|
app: { ...appData, end: moment(appData.start).add(60, "minutes") }
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.then(r => {
|
||||||
|
notification["success"]({
|
||||||
|
message: t("appointments.successes.created")
|
||||||
|
});
|
||||||
|
|
||||||
|
if (formData.notifyCustomer) {
|
||||||
|
//TODO: Implement customer reminder on scheduling.
|
||||||
|
alert("Chosed to notify the customer somehow!");
|
||||||
|
}
|
||||||
|
setscheduleModalVisible(false);
|
||||||
|
if (refetch) refetch();
|
||||||
|
})
|
||||||
|
.catch(error => {
|
||||||
|
notification["error"]({
|
||||||
|
message: t("appointments.errors.saving", {
|
||||||
|
message: error.message
|
||||||
|
})
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
);
|
||||||
|
});
|
||||||
@@ -1,13 +1,46 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
//import "react-big-calendar/lib/css/react-big-calendar.css";
|
//import "react-big-calendar/lib/css/react-big-calendar.css";
|
||||||
import ScheduleCalendarWrapperComponent from "../schedule-calendar-wrapper/scheduler-calendar-wrapper.component";
|
import ScheduleCalendarWrapperComponent from "../schedule-calendar-wrapper/scheduler-calendar-wrapper.component";
|
||||||
|
import { Button, Icon } from "antd";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
import ScheduleAppointmentModalContainer from "../schedule-appointment-modal/schedule-appointment-modal.container";
|
||||||
|
|
||||||
|
export default function ScheduleCalendarComponent({
|
||||||
|
data,
|
||||||
|
refetch,
|
||||||
|
scheduleModalState
|
||||||
|
}) {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
|
||||||
export default function ScheduleCalendarComponent({ data, refetch }) {
|
|
||||||
return (
|
return (
|
||||||
<ScheduleCalendarWrapperComponent
|
<div>
|
||||||
data={data}
|
<Button
|
||||||
defaultView="week"
|
onClick={() => {
|
||||||
refetch={refetch}
|
refetch();
|
||||||
/>
|
}}
|
||||||
|
>
|
||||||
|
<Icon type="sync" />
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button
|
||||||
|
onClick={() => {
|
||||||
|
scheduleModalState[1](true);
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{t("appointments.actions.new")}
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<ScheduleAppointmentModalContainer
|
||||||
|
scheduleModalState={scheduleModalState}
|
||||||
|
jobId={null}
|
||||||
|
refetch={refetch}
|
||||||
|
/>
|
||||||
|
|
||||||
|
<ScheduleCalendarWrapperComponent
|
||||||
|
data={data}
|
||||||
|
defaultView="week"
|
||||||
|
refetch={refetch}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import React from "react";
|
import React, { useState } from "react";
|
||||||
import { useQuery } from "react-apollo";
|
import { useQuery } from "react-apollo";
|
||||||
import ScheduleCalendarComponent from "./schedule-calendar.component";
|
import ScheduleCalendarComponent from "./schedule-calendar.component";
|
||||||
import { QUERY_ALL_ACTIVE_APPOINTMENTS } from "../../graphql/appointments.queries";
|
import { QUERY_ALL_ACTIVE_APPOINTMENTS } from "../../graphql/appointments.queries";
|
||||||
@@ -12,6 +12,7 @@ export default function ScheduleCalendarContainer() {
|
|||||||
fetchPolicy: "network-only"
|
fetchPolicy: "network-only"
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
const scheduleModalState = useState(false);
|
||||||
|
|
||||||
if (loading) return <LoadingSpinner />;
|
if (loading) return <LoadingSpinner />;
|
||||||
if (error) return <AlertComponent message={error.message} type="error" />;
|
if (error) return <AlertComponent message={error.message} type="error" />;
|
||||||
@@ -27,6 +28,7 @@ export default function ScheduleCalendarContainer() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ScheduleCalendarComponent
|
<ScheduleCalendarComponent
|
||||||
|
scheduleModalState={scheduleModalState}
|
||||||
refetch={refetch}
|
refetch={refetch}
|
||||||
data={data ? normalizedData : null}
|
data={data ? normalizedData : null}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -9,22 +9,53 @@ export default function ScheduleEventComponent({ event, handleCancel }) {
|
|||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
const popoverContent = (
|
const popoverContent = (
|
||||||
<div>
|
<div>
|
||||||
<div>{`${t("jobs.fields.ro_number")}: ${event.job.ro_number}`}</div>
|
{!event.isintake ? (
|
||||||
<div>
|
<strong>{event.title}</strong>
|
||||||
{t("jobs.fields.clm_total")}:
|
) : (
|
||||||
<CurrencyFormatter>{event.job.clm_total}</CurrencyFormatter>
|
<div>
|
||||||
</div>
|
<strong>{`${(event.job && event.job.ownr_fn) || ""} ${(event.job &&
|
||||||
<div>{`${t("jobs.fields.clm_no")}: ${event.job.clm_no}`}</div>
|
event.job.ownr_ln) ||
|
||||||
<div>
|
""}`}</strong>
|
||||||
{t("jobs.fields.ownr_ea")}:{event.job.ownr_ea}
|
<span style={{ margin: 4 }}>
|
||||||
</div>
|
{`${(event.job && event.job.vehicle.v_model_yr) ||
|
||||||
<div>
|
""} ${(event.job && event.job.vehicle.v_make_desc) ||
|
||||||
{t("jobs.fields.ownr_ph1")}:
|
""} ${(event.job && event.job.vehicle.v_model_desc) || ""}`}
|
||||||
<PhoneFormatter>{event.job.ownr_ph1}</PhoneFormatter>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<Link to={`/manage/jobs/${event.job.id}`}>
|
)}
|
||||||
<Button>{t("appointments.actions.viewjob")}</Button>
|
{event.job ? (
|
||||||
</Link>
|
<div>
|
||||||
|
<div>{`${t("jobs.fields.ro_number")}: ${(event.job &&
|
||||||
|
event.job.ro_number) ||
|
||||||
|
""}`}</div>
|
||||||
|
<div>
|
||||||
|
{t("jobs.fields.clm_total")}:
|
||||||
|
<CurrencyFormatter>
|
||||||
|
{(event.job && event.job.clm_total) || ""}
|
||||||
|
</CurrencyFormatter>
|
||||||
|
</div>
|
||||||
|
<div>{`${t("jobs.fields.clm_no")}: ${(event.job &&
|
||||||
|
event.job.clm_no) ||
|
||||||
|
""}`}</div>
|
||||||
|
<div>
|
||||||
|
{t("jobs.fields.ownr_ea")}:{(event.job && event.job.ownr_ea) || ""}
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
{t("jobs.fields.ownr_ph1")}:
|
||||||
|
<PhoneFormatter>
|
||||||
|
{(event.job && event.job.ownr_ph1) || ""}
|
||||||
|
</PhoneFormatter>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
) : null}
|
||||||
|
{
|
||||||
|
//TODO Add phone 1 MessagingActionTypes.
|
||||||
|
}
|
||||||
|
{event.job ? (
|
||||||
|
<Link to={`/manage/jobs/${event.job && event.job.id}`}>
|
||||||
|
<Button>{t("appointments.actions.viewjob")}</Button>
|
||||||
|
</Link>
|
||||||
|
) : null}
|
||||||
<Button onClick={() => handleCancel(event.id)}>
|
<Button onClick={() => handleCancel(event.id)}>
|
||||||
{t("appointments.actions.cancel")}
|
{t("appointments.actions.cancel")}
|
||||||
</Button>
|
</Button>
|
||||||
@@ -34,24 +65,36 @@ export default function ScheduleEventComponent({ event, handleCancel }) {
|
|||||||
}
|
}
|
||||||
{t("appointments.actions.reschedule")}
|
{t("appointments.actions.reschedule")}
|
||||||
</Button>
|
</Button>
|
||||||
<Button>
|
{event.isintake ? (
|
||||||
{
|
<Button>
|
||||||
//TODO: Add intake func.
|
{
|
||||||
}
|
//TODO: Add intake func.
|
||||||
{t("appointments.actions.intake")}
|
}
|
||||||
</Button>
|
{t("appointments.actions.intake")}
|
||||||
|
</Button>
|
||||||
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Popover content={popoverContent}>
|
<Popover content={popoverContent}>
|
||||||
<div>
|
<div>
|
||||||
<strong>{`${event.job.ownr_fn || ""} ${event.job.ownr_ln ||
|
{event.isintake ? (
|
||||||
""}`}</strong>
|
<div>
|
||||||
<span style={{ margin: 4 }}>
|
<strong>{`${(event.job && event.job.ownr_fn) || ""} ${(event.job &&
|
||||||
{`${event.job.vehicle.v_model_yr || ""} ${event.job.vehicle
|
event.job.ownr_ln) ||
|
||||||
.v_make_desc || ""} ${event.job.vehicle.v_model_desc || ""}`}
|
""}`}</strong>
|
||||||
</span>
|
<span style={{ margin: 4 }}>
|
||||||
|
{`${(event.job && event.job.vehicle.v_model_yr) ||
|
||||||
|
""} ${(event.job && event.job.vehicle.v_make_desc) ||
|
||||||
|
""} ${(event.job && event.job.vehicle.v_model_desc) || ""}`}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<div>
|
||||||
|
<strong>{`${event.title || ""}`}</strong>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Popover>
|
</Popover>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -28,12 +28,16 @@ export default connect(
|
|||||||
refetch
|
refetch
|
||||||
}) {
|
}) {
|
||||||
const [scheduleModalVisible, setscheduleModalVisible] = scheduleModalState;
|
const [scheduleModalVisible, setscheduleModalVisible] = scheduleModalState;
|
||||||
const [appData, setAppData] = useState({ jobid: jobId, start: null });
|
const [appData, setAppData] = useState({
|
||||||
|
jobid: jobId,
|
||||||
|
start: null,
|
||||||
|
bodyshopid: bodyshop.id
|
||||||
|
});
|
||||||
const [insertAppointment] = useMutation(INSERT_APPOINTMENT);
|
const [insertAppointment] = useMutation(INSERT_APPOINTMENT);
|
||||||
const [updateJobStatus] = useMutation(UPDATE_JOB_STATUS, {
|
const [updateJobStatus] = useMutation(UPDATE_JOB_STATUS, {
|
||||||
variables: {
|
variables: {
|
||||||
jobId: jobId,
|
jobId: jobId,
|
||||||
status: bodyshop.md_ro_statuses.default_scheduled
|
status: bodyshop.md_ro_statuses.default_scheduled
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const [formData, setFormData] = useState({ notifyCustomer: false });
|
const [formData, setFormData] = useState({ notifyCustomer: false });
|
||||||
|
|||||||
@@ -6,6 +6,8 @@ export const QUERY_ALL_ACTIVE_APPOINTMENTS = gql`
|
|||||||
start
|
start
|
||||||
id
|
id
|
||||||
end
|
end
|
||||||
|
title
|
||||||
|
isintake
|
||||||
job {
|
job {
|
||||||
ro_number
|
ro_number
|
||||||
ownr_ln
|
ownr_ln
|
||||||
@@ -38,10 +40,14 @@ export const INSERT_APPOINTMENT = gql`
|
|||||||
|
|
||||||
export const QUERY_APPOINTMENT_BY_DATE = gql`
|
export const QUERY_APPOINTMENT_BY_DATE = gql`
|
||||||
query QUERY_APPOINTMENT_BY_DATE($start: timestamptz, $end: timestamptz) {
|
query QUERY_APPOINTMENT_BY_DATE($start: timestamptz, $end: timestamptz) {
|
||||||
appointments(where: { start: { _lte: $end, _gte: $start } }) {
|
appointments(
|
||||||
|
where: { start: { _lte: $end, _gte: $start }, canceled: { _eq: false } }
|
||||||
|
) {
|
||||||
start
|
start
|
||||||
id
|
id
|
||||||
end
|
end
|
||||||
|
title
|
||||||
|
isintake
|
||||||
job {
|
job {
|
||||||
ro_number
|
ro_number
|
||||||
ownr_ln
|
ownr_ln
|
||||||
@@ -81,6 +87,7 @@ export const QUERY_APPOINTMENTS_BY_JOBID = gql`
|
|||||||
start
|
start
|
||||||
id
|
id
|
||||||
end
|
end
|
||||||
|
isintake
|
||||||
arrived
|
arrived
|
||||||
canceled
|
canceled
|
||||||
created_at
|
created_at
|
||||||
|
|||||||
@@ -1,20 +1,28 @@
|
|||||||
|
import { notification } from "antd";
|
||||||
import React, { useEffect } from "react";
|
import React, { useEffect } from "react";
|
||||||
import ManagePage from "./manage.page";
|
|
||||||
import { useQuery } from "react-apollo";
|
import { useQuery } from "react-apollo";
|
||||||
|
import { useTranslation } from "react-i18next";
|
||||||
|
import { connect } from "react-redux";
|
||||||
|
import { createStructuredSelector } from "reselect";
|
||||||
|
import LoadingSpinner from "../../components/loading-spinner/loading-spinner.component";
|
||||||
import { QUERY_BODYSHOP } from "../../graphql/bodyshop.queries";
|
import { QUERY_BODYSHOP } from "../../graphql/bodyshop.queries";
|
||||||
import { setBodyshop } from "../../redux/user/user.actions";
|
import { setBodyshop } from "../../redux/user/user.actions";
|
||||||
import { connect } from "react-redux";
|
import { selectBodyshop, selectCurrentUser } from "../../redux/user/user.selectors";
|
||||||
import { notification } from "antd";
|
import ManagePage from "./manage.page";
|
||||||
import { useTranslation } from "react-i18next";
|
|
||||||
|
const mapStateToProps = createStructuredSelector({
|
||||||
|
currentUser: selectCurrentUser,
|
||||||
|
bodyshop: selectBodyshop
|
||||||
|
});
|
||||||
|
|
||||||
const mapDispatchToProps = dispatch => ({
|
const mapDispatchToProps = dispatch => ({
|
||||||
setBodyshop: bs => dispatch(setBodyshop(bs))
|
setBodyshop: bs => dispatch(setBodyshop(bs))
|
||||||
});
|
});
|
||||||
|
|
||||||
export default connect(
|
export default connect(
|
||||||
null,
|
mapStateToProps,
|
||||||
mapDispatchToProps
|
mapDispatchToProps
|
||||||
)(function ManagePageContainer({ match, setBodyshop }) {
|
)(function ManagePageContainer({ match, setBodyshop, bodyshop }) {
|
||||||
const { error, data } = useQuery(QUERY_BODYSHOP, {
|
const { error, data } = useQuery(QUERY_BODYSHOP, {
|
||||||
fetchPolicy: "network-only"
|
fetchPolicy: "network-only"
|
||||||
});
|
});
|
||||||
@@ -30,5 +38,7 @@ export default connect(
|
|||||||
};
|
};
|
||||||
}, [data, setBodyshop]);
|
}, [data, setBodyshop]);
|
||||||
|
|
||||||
|
//TODO Translate later.
|
||||||
|
if (!bodyshop) return <LoadingSpinner message="Loading bodyshop data." />;
|
||||||
return <ManagePage match={match} />;
|
return <ManagePage match={match} />;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
"actions": {
|
"actions": {
|
||||||
"cancel": "Cancel",
|
"cancel": "Cancel",
|
||||||
"intake": "Intake",
|
"intake": "Intake",
|
||||||
|
"new": "New Appointment",
|
||||||
"reschedule": "Reschedule",
|
"reschedule": "Reschedule",
|
||||||
"viewjob": "View Job"
|
"viewjob": "View Job"
|
||||||
},
|
},
|
||||||
@@ -19,6 +20,9 @@
|
|||||||
"canceling": "Error canceling appointment.",
|
"canceling": "Error canceling appointment.",
|
||||||
"saving": "Error scheduling appointment. {{message}}"
|
"saving": "Error scheduling appointment. {{message}}"
|
||||||
},
|
},
|
||||||
|
"fields": {
|
||||||
|
"title": "Title"
|
||||||
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"arrivedon": "Arrived on: ",
|
"arrivedon": "Arrived on: ",
|
||||||
"cancelledappointment": "Canceled appointment for: ",
|
"cancelledappointment": "Canceled appointment for: ",
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
"actions": {
|
"actions": {
|
||||||
"cancel": "Cancelar",
|
"cancel": "Cancelar",
|
||||||
"intake": "Consumo",
|
"intake": "Consumo",
|
||||||
|
"new": "Nueva cita",
|
||||||
"reschedule": "Reprogramar",
|
"reschedule": "Reprogramar",
|
||||||
"viewjob": "Ver trabajo"
|
"viewjob": "Ver trabajo"
|
||||||
},
|
},
|
||||||
@@ -19,6 +20,9 @@
|
|||||||
"canceling": "Error al cancelar la cita.",
|
"canceling": "Error al cancelar la cita.",
|
||||||
"saving": "Error al programar la cita. {{message}}"
|
"saving": "Error al programar la cita. {{message}}"
|
||||||
},
|
},
|
||||||
|
"fields": {
|
||||||
|
"title": "Título"
|
||||||
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"arrivedon": "Llegado el:",
|
"arrivedon": "Llegado el:",
|
||||||
"cancelledappointment": "Cita cancelada para:",
|
"cancelledappointment": "Cita cancelada para:",
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
"actions": {
|
"actions": {
|
||||||
"cancel": "annuler",
|
"cancel": "annuler",
|
||||||
"intake": "Admission",
|
"intake": "Admission",
|
||||||
|
"new": "Nouveau rendez-vous",
|
||||||
"reschedule": "Replanifier",
|
"reschedule": "Replanifier",
|
||||||
"viewjob": "Voir le travail"
|
"viewjob": "Voir le travail"
|
||||||
},
|
},
|
||||||
@@ -19,6 +20,9 @@
|
|||||||
"canceling": "Erreur lors de l'annulation du rendez-vous.",
|
"canceling": "Erreur lors de l'annulation du rendez-vous.",
|
||||||
"saving": "Erreur lors de la planification du rendez-vous. {{message}}"
|
"saving": "Erreur lors de la planification du rendez-vous. {{message}}"
|
||||||
},
|
},
|
||||||
|
"fields": {
|
||||||
|
"title": "Titre"
|
||||||
|
},
|
||||||
"labels": {
|
"labels": {
|
||||||
"arrivedon": "Arrivé le:",
|
"arrivedon": "Arrivé le:",
|
||||||
"cancelledappointment": "Rendez-vous annulé pour:",
|
"cancelledappointment": "Rendez-vous annulé pour:",
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
- args:
|
||||||
|
sql: ALTER TABLE "public"."appointments" DROP COLUMN "isintake";
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
- args:
|
||||||
|
sql: ALTER TABLE "public"."appointments" ADD COLUMN "isintake" boolean NOT NULL
|
||||||
|
DEFAULT true;
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_insert_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
check:
|
||||||
|
job:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
columns:
|
||||||
|
- arrived
|
||||||
|
- canceled
|
||||||
|
- created_at
|
||||||
|
- end
|
||||||
|
- start
|
||||||
|
- updated_at
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
localPresets:
|
||||||
|
- key: ""
|
||||||
|
value: ""
|
||||||
|
set: {}
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_insert_permission
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_insert_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
check:
|
||||||
|
job:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
columns:
|
||||||
|
- id
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- jobid
|
||||||
|
- start
|
||||||
|
- end
|
||||||
|
- canceled
|
||||||
|
- arrived
|
||||||
|
- isintake
|
||||||
|
localPresets:
|
||||||
|
- key: ""
|
||||||
|
value: ""
|
||||||
|
set: {}
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_insert_permission
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_select_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
allow_aggregations: true
|
||||||
|
columns:
|
||||||
|
- arrived
|
||||||
|
- canceled
|
||||||
|
- created_at
|
||||||
|
- end
|
||||||
|
- start
|
||||||
|
- updated_at
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
computed_fields: []
|
||||||
|
filter:
|
||||||
|
job:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_select_permission
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_select_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
allow_aggregations: true
|
||||||
|
columns:
|
||||||
|
- arrived
|
||||||
|
- canceled
|
||||||
|
- isintake
|
||||||
|
- created_at
|
||||||
|
- end
|
||||||
|
- start
|
||||||
|
- updated_at
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
computed_fields: []
|
||||||
|
filter:
|
||||||
|
job:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_select_permission
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_update_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
columns:
|
||||||
|
- arrived
|
||||||
|
- canceled
|
||||||
|
- created_at
|
||||||
|
- end
|
||||||
|
- start
|
||||||
|
- updated_at
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
filter:
|
||||||
|
job:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
localPresets:
|
||||||
|
- key: ""
|
||||||
|
value: ""
|
||||||
|
set: {}
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_update_permission
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_update_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
columns:
|
||||||
|
- arrived
|
||||||
|
- canceled
|
||||||
|
- isintake
|
||||||
|
- created_at
|
||||||
|
- end
|
||||||
|
- start
|
||||||
|
- updated_at
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
filter:
|
||||||
|
job:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
localPresets:
|
||||||
|
- key: ""
|
||||||
|
value: ""
|
||||||
|
set: {}
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_update_permission
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
- args:
|
||||||
|
sql: ALTER TABLE "public"."appointments" DROP COLUMN "bodyshopid";
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
- args:
|
||||||
|
sql: ALTER TABLE "public"."appointments" ADD COLUMN "bodyshopid" uuid NOT NULL;
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
- args:
|
||||||
|
sql: "\n alter table \"public\".\"appointments\" drop constraint \"appointments_bodyshopid_fkey\"\n
|
||||||
|
\ "
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
- args:
|
||||||
|
sql: "\n alter table \"public\".\"appointments\"\n add constraint
|
||||||
|
\"appointments_bodyshopid_fkey\"\n foreign key (\"bodyshopid\")\n
|
||||||
|
\ references \"public\".\"bodyshops\"\n (\"id\") on update
|
||||||
|
cascade on delete cascade;\n "
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
- args:
|
||||||
|
sql: ALTER TABLE "public"."appointments" ALTER COLUMN "jobid" SET NOT NULL;
|
||||||
|
type: run_sql
|
||||||
|
- args:
|
||||||
|
sql: COMMENT ON COLUMN "public"."appointments"."jobid" IS E'null'
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
- args:
|
||||||
|
sql: ALTER TABLE "public"."appointments" ALTER COLUMN "jobid" DROP NOT NULL;
|
||||||
|
type: run_sql
|
||||||
|
- args:
|
||||||
|
sql: COMMENT ON COLUMN "public"."appointments"."jobid" IS E''
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
- args:
|
||||||
|
relationship: bodyshop
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_relationship
|
||||||
|
- args:
|
||||||
|
relationship: appointments
|
||||||
|
table:
|
||||||
|
name: bodyshops
|
||||||
|
schema: public
|
||||||
|
type: drop_relationship
|
||||||
@@ -0,0 +1,20 @@
|
|||||||
|
- args:
|
||||||
|
name: bodyshop
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
using:
|
||||||
|
foreign_key_constraint_on: bodyshopid
|
||||||
|
type: create_object_relationship
|
||||||
|
- args:
|
||||||
|
name: appointments
|
||||||
|
table:
|
||||||
|
name: bodyshops
|
||||||
|
schema: public
|
||||||
|
using:
|
||||||
|
foreign_key_constraint_on:
|
||||||
|
column: bodyshopid
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_array_relationship
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_insert_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
check:
|
||||||
|
job:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
columns:
|
||||||
|
- id
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- jobid
|
||||||
|
- start
|
||||||
|
- end
|
||||||
|
- canceled
|
||||||
|
- arrived
|
||||||
|
- isintake
|
||||||
|
localPresets:
|
||||||
|
- key: ""
|
||||||
|
value: ""
|
||||||
|
set: {}
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_insert_permission
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_insert_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
check:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
columns:
|
||||||
|
- id
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- jobid
|
||||||
|
- start
|
||||||
|
- end
|
||||||
|
- canceled
|
||||||
|
- arrived
|
||||||
|
- isintake
|
||||||
|
localPresets:
|
||||||
|
- key: ""
|
||||||
|
value: ""
|
||||||
|
set: {}
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_insert_permission
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_insert_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
check:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
columns:
|
||||||
|
- id
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- jobid
|
||||||
|
- start
|
||||||
|
- end
|
||||||
|
- canceled
|
||||||
|
- arrived
|
||||||
|
- isintake
|
||||||
|
localPresets:
|
||||||
|
- key: ""
|
||||||
|
value: ""
|
||||||
|
set: {}
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_insert_permission
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_insert_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
check:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
columns:
|
||||||
|
- arrived
|
||||||
|
- canceled
|
||||||
|
- isintake
|
||||||
|
- created_at
|
||||||
|
- end
|
||||||
|
- start
|
||||||
|
- updated_at
|
||||||
|
- bodyshopid
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
localPresets:
|
||||||
|
- key: ""
|
||||||
|
value: ""
|
||||||
|
set: {}
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_insert_permission
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_select_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
allow_aggregations: true
|
||||||
|
columns:
|
||||||
|
- arrived
|
||||||
|
- canceled
|
||||||
|
- isintake
|
||||||
|
- created_at
|
||||||
|
- end
|
||||||
|
- start
|
||||||
|
- updated_at
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
computed_fields: []
|
||||||
|
filter:
|
||||||
|
job:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_select_permission
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_select_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
allow_aggregations: true
|
||||||
|
columns:
|
||||||
|
- arrived
|
||||||
|
- canceled
|
||||||
|
- isintake
|
||||||
|
- created_at
|
||||||
|
- end
|
||||||
|
- start
|
||||||
|
- updated_at
|
||||||
|
- bodyshopid
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
computed_fields: []
|
||||||
|
filter:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_select_permission
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_update_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
columns:
|
||||||
|
- arrived
|
||||||
|
- canceled
|
||||||
|
- isintake
|
||||||
|
- created_at
|
||||||
|
- end
|
||||||
|
- start
|
||||||
|
- updated_at
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
filter:
|
||||||
|
job:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
localPresets:
|
||||||
|
- key: ""
|
||||||
|
value: ""
|
||||||
|
set: {}
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_update_permission
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_update_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
columns:
|
||||||
|
- arrived
|
||||||
|
- canceled
|
||||||
|
- isintake
|
||||||
|
- created_at
|
||||||
|
- end
|
||||||
|
- start
|
||||||
|
- updated_at
|
||||||
|
- bodyshopid
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
filter:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
localPresets:
|
||||||
|
- key: ""
|
||||||
|
value: ""
|
||||||
|
set: {}
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_update_permission
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_delete_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
filter:
|
||||||
|
job:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_delete_permission
|
||||||
@@ -0,0 +1,22 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_delete_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
filter:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_delete_permission
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
- args:
|
||||||
|
sql: ALTER TABLE "public"."appointments" DROP COLUMN "title";
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
- args:
|
||||||
|
sql: ALTER TABLE "public"."appointments" ADD COLUMN "title" text NULL;
|
||||||
|
type: run_sql
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_insert_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
check:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
columns:
|
||||||
|
- arrived
|
||||||
|
- canceled
|
||||||
|
- isintake
|
||||||
|
- created_at
|
||||||
|
- end
|
||||||
|
- start
|
||||||
|
- updated_at
|
||||||
|
- bodyshopid
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
localPresets:
|
||||||
|
- key: ""
|
||||||
|
value: ""
|
||||||
|
set: {}
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_insert_permission
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_insert_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
check:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
columns:
|
||||||
|
- id
|
||||||
|
- created_at
|
||||||
|
- updated_at
|
||||||
|
- jobid
|
||||||
|
- start
|
||||||
|
- end
|
||||||
|
- canceled
|
||||||
|
- arrived
|
||||||
|
- isintake
|
||||||
|
- bodyshopid
|
||||||
|
- title
|
||||||
|
localPresets:
|
||||||
|
- key: ""
|
||||||
|
value: ""
|
||||||
|
set: {}
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_insert_permission
|
||||||
@@ -0,0 +1,35 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_select_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
allow_aggregations: true
|
||||||
|
columns:
|
||||||
|
- arrived
|
||||||
|
- canceled
|
||||||
|
- isintake
|
||||||
|
- created_at
|
||||||
|
- end
|
||||||
|
- start
|
||||||
|
- updated_at
|
||||||
|
- bodyshopid
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
computed_fields: []
|
||||||
|
filter:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_select_permission
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_select_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
allow_aggregations: true
|
||||||
|
columns:
|
||||||
|
- arrived
|
||||||
|
- canceled
|
||||||
|
- isintake
|
||||||
|
- title
|
||||||
|
- created_at
|
||||||
|
- end
|
||||||
|
- start
|
||||||
|
- updated_at
|
||||||
|
- bodyshopid
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
computed_fields: []
|
||||||
|
filter:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_select_permission
|
||||||
@@ -0,0 +1,37 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_update_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
columns:
|
||||||
|
- arrived
|
||||||
|
- canceled
|
||||||
|
- isintake
|
||||||
|
- created_at
|
||||||
|
- end
|
||||||
|
- start
|
||||||
|
- updated_at
|
||||||
|
- bodyshopid
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
filter:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
localPresets:
|
||||||
|
- key: ""
|
||||||
|
value: ""
|
||||||
|
set: {}
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_update_permission
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
- args:
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: drop_update_permission
|
||||||
|
- args:
|
||||||
|
permission:
|
||||||
|
columns:
|
||||||
|
- arrived
|
||||||
|
- canceled
|
||||||
|
- isintake
|
||||||
|
- title
|
||||||
|
- created_at
|
||||||
|
- end
|
||||||
|
- start
|
||||||
|
- updated_at
|
||||||
|
- bodyshopid
|
||||||
|
- id
|
||||||
|
- jobid
|
||||||
|
filter:
|
||||||
|
bodyshop:
|
||||||
|
associations:
|
||||||
|
_and:
|
||||||
|
- user:
|
||||||
|
authid:
|
||||||
|
_eq: X-Hasura-User-Id
|
||||||
|
- active:
|
||||||
|
_eq: true
|
||||||
|
localPresets:
|
||||||
|
- key: ""
|
||||||
|
value: ""
|
||||||
|
set: {}
|
||||||
|
role: user
|
||||||
|
table:
|
||||||
|
name: appointments
|
||||||
|
schema: public
|
||||||
|
type: create_update_permission
|
||||||
Reference in New Issue
Block a user