Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

feat: support recording multi instances of each step in MES

Brad Barbind199a0ebe0a5
diff --git a/apps/erp/app/components/Form/Procedure.tsx b/apps/erp/app/components/Form/Procedure.tsx
index f55bd0b310..5f795306c5 100644
--- a/apps/erp/app/components/Form/Procedure.tsx
+++ b/apps/erp/app/components/Form/Procedure.tsx
@@ -14,7 +14,7 @@ type ProcedureSelectProps = Omit<ComboboxProps, "options"> & {
};
const Procedure = (props: ProcedureSelectProps) => {
- const options = useProcedures({
+ const { options, loading } = useProcedures({
processId: props?.processId,
});
@@ -23,6 +23,7 @@ const Procedure = (props: ProcedureSelectProps) => {
<Combobox
options={options}
isOptional={props?.isOptional ?? true}
+ isLoading={loading}
{...props}
label={props?.label ?? "Procedure"}
/>
@@ -43,6 +44,8 @@ export const useProcedures = (args: { processId?: string }) => {
procedureFetcher.load(path.to.api.procedures);
});
+ const loading = procedureFetcher.state !== "idle";
+
const options = useMemo(
() =>
procedureFetcher.data?.data
@@ -64,7 +67,9 @@ export const useProcedures = (args: { processId?: string }) => {
v{c.version}
</span>
</HStack>
- <ProcedureStatus status={c.status} />
+ <ProcedureStatus
+ status={c.status as "Active" | "Draft" | "Archived"}
+ />
</div>
),
}))
@@ -72,5 +77,5 @@ export const useProcedures = (args: { processId?: string }) => {
[procedureFetcher.data, processId]
);
- return options;
+ return { options, loading };
};
diff --git a/apps/erp/app/modules/production/production.service.ts b/apps/erp/app/modules/production/production.service.ts
index 9facc5ff09..4404c90ea3 100644
--- a/apps/erp/app/modules/production/production.service.ts
+++ b/apps/erp/app/modules/production/production.service.ts
@@ -646,7 +646,9 @@ export async function getProceduresList(
id: string;
name: string;
version: number;
- }>(client, "procedure", "id, name, version", (query) =>
+ processId: string;
+ status: string;
+ }>(client, "procedure", "id, name, version, processId, status", (query) =>
query
.eq("companyId", companyId)
.order("name", { ascending: true })
diff --git a/apps/erp/app/routes/api+/production.procedures.ts b/apps/erp/app/routes/api+/production.procedures.ts
index 6e09320e83..6df60bde61 100644
--- a/apps/erp/app/routes/api+/production.procedures.ts
+++ b/apps/erp/app/routes/api+/production.procedures.ts
@@ -1,7 +1,9 @@
import { requirePermissions } from "@carbon/auth/auth.server";
-import type { LoaderFunctionArgs } from "@vercel/remix";
+import type { ClientLoaderFunctionArgs } from "@remix-run/react";
+import type { LoaderFunctionArgs, SerializeFrom } from "@vercel/remix";
import { json } from "@vercel/remix";
import { getProceduresList } from "~/modules/production";
+import { getCompanyId, proceduresQuery } from "~/utils/react-query";
export async function loader({ request }: LoaderFunctionArgs) {
const { client, companyId } = await requirePermissions(request, {
@@ -10,3 +12,24 @@ export async function loader({ request }: LoaderFunctionArgs) {
return json(await getProceduresList(client, companyId));
}
+
+export async function clientLoader({ serverLoader }: ClientLoaderFunctionArgs) {
+ const companyId = getCompanyId();
+
+ if (!companyId) {
+ return await serverLoader<typeof loader>();
+ }
+
+ const queryKey = proceduresQuery(companyId).queryKey;
+ const data =
+ window?.clientCache?.getQueryData<SerializeFrom<typeof loader>>(queryKey);
+
+ if (!data) {
+ const serverData = await serverLoader<typeof loader>();
+ window?.clientCache?.setQueryData(queryKey, serverData);
+ return serverData;
+ }
+
+ return data;
+}
+clientLoader.hydrate = true;
diff --git a/apps/erp/app/routes/x+/procedure+/delete.$id.tsx b/apps/erp/app/routes/x+/procedure+/delete.$id.tsx
index 38c26e9107..8bdd09e50d 100644
--- a/apps/erp/app/routes/x+/procedure+/delete.$id.tsx
+++ b/apps/erp/app/routes/x+/procedure+/delete.$id.tsx
@@ -1,10 +1,12 @@
import { error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
+import type { ClientActionFunctionArgs } from "@remix-run/react";
import type { ActionFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
import { deleteProcedure } from "~/modules/production/production.service";
import { path } from "~/utils/path";
+import { getCompanyId, proceduresQuery } from "~/utils/react-query";
export async function action({ request, params }: ActionFunctionArgs) {
const { client } = await requirePermissions(request, {
@@ -30,3 +32,11 @@ export async function action({ request, params }: ActionFunctionArgs) {
await flash(request, success("Successfully deleted procedure"))
);
}
+
+export async function clientAction({ serverAction }: ClientActionFunctionArgs) {
+ window.clientCache?.setQueryData(
+ proceduresQuery(getCompanyId()).queryKey,
+ null
+ );
+ return await serverAction();
+}
diff --git a/apps/erp/app/routes/x+/procedure+/update.tsx b/apps/erp/app/routes/x+/procedure+/update.tsx
index 4fb9c3b6e7..05190b9ffe 100644
--- a/apps/erp/app/routes/x+/procedure+/update.tsx
+++ b/apps/erp/app/routes/x+/procedure+/update.tsx
@@ -1,5 +1,7 @@
import { requirePermissions } from "@carbon/auth/auth.server";
+import type { ClientActionFunctionArgs } from "@remix-run/react";
import { json, type ActionFunctionArgs } from "@vercel/remix";
+import { getCompanyId, proceduresQuery } from "~/utils/react-query";
export async function action({ request }: ActionFunctionArgs) {
const { client, userId } = await requirePermissions(request, {
@@ -35,3 +37,11 @@ export async function action({ request }: ActionFunctionArgs) {
return json({ error: { message: "Invalid field" }, data: null });
}
}
+
+export async function clientAction({ serverAction }: ClientActionFunctionArgs) {
+ window.clientCache?.setQueryData(
+ proceduresQuery(getCompanyId()).queryKey,
+ null
+ );
+ return await serverAction();
+}
diff --git a/apps/erp/app/routes/x+/production+/procedures.new.tsx b/apps/erp/app/routes/x+/production+/procedures.new.tsx
index 81677a12a4..1bb8d7fa8a 100644
--- a/apps/erp/app/routes/x+/production+/procedures.new.tsx
+++ b/apps/erp/app/routes/x+/production+/procedures.new.tsx
@@ -2,6 +2,7 @@ import { assertIsPost, error, success } from "@carbon/auth";
import { requirePermissions } from "@carbon/auth/auth.server";
import { flash } from "@carbon/auth/session.server";
import { validationError, validator } from "@carbon/form";
+import type { ClientActionFunctionArgs } from "@remix-run/react";
import { useNavigate } from "@remix-run/react";
import type { ActionFunctionArgs, LoaderFunctionArgs } from "@vercel/remix";
import { json, redirect } from "@vercel/remix";
@@ -9,6 +10,7 @@ import { procedureValidator } from "~/modules/production/production.models";
import { upsertProcedure } from "~/modules/production/production.service";
import ProcedureForm from "~/modules/production/ui/Procedures/ProcedureForm";
import { path } from "~/utils/path";
+import { getCompanyId, proceduresQuery } from "~/utils/react-query";
export async function loader({ request }: LoaderFunctionArgs) {
await requirePermissions(request, {
@@ -71,6 +73,14 @@ export async function action({ request }: ActionFunctionArgs) {
);
}
+export async function clientAction({ serverAction }: ClientActionFunctionArgs) {
+ window.clientCache?.setQueryData(
+ proceduresQuery(getCompanyId()).queryKey,
+ null
+ );
+ return await serverAction();
+}
+
export default function NewProcedureRoute() {
const navigate = useNavigate();
const initialValues = {
diff --git a/apps/erp/app/utils/react-query.ts b/apps/erp/app/utils/react-query.ts
index 5a79c1d542..75147a7924 100644
--- a/apps/erp/app/utils/react-query.ts
+++ b/apps/erp/app/utils/react-query.ts
@@ -63,6 +63,11 @@ export const processesQuery = (companyId: string | null) => ({
staleTime: RefreshRate.Low,
});
+export const proceduresQuery = (companyId: string | null) => ({
+ queryKey: ["procedures", companyId ?? "null"],
+ staleTime: RefreshRate.Low,
+});
+
export const shelvesQuery = (
companyId: string | null,
locationId: string | null
diff --git a/apps/mes/app/components/JobOperation.tsx b/apps/mes/app/components/JobOperation.tsx
index ab0d84fbcc..b056672019 100644
--- a/apps/mes/app/components/JobOperation.tsx
+++ b/apps/mes/app/components/JobOperation.tsx
@@ -235,13 +235,12 @@ export const JobOperation = ({
const trackedEntityParam = params.get("trackedEntityId");
const trackedEntityId = trackedEntityParam ?? trackedEntities[0]?.id;
- const trackedEntity = trackedEntities.find(
- (entity) => entity.id === trackedEntityId
- );
-
const parentIsSerial = method?.requiresSerialTracking;
const parentIsBatch = method?.requiresBatchTracking;
+ const serialIndex =
+ trackedEntities.findIndex((entity) => entity.id === trackedEntityId) ?? 0;
+
const navigate = useNavigate();
const [items] = useItems();
@@ -249,6 +248,16 @@ export const JobOperation = ({
const attributeRecordModal = useDisclosure();
const attributeRecordDeleteModal = useDisclosure();
+ const [activeStep, setActiveStep] = useState(
+ parentIsSerial ? serialIndex : 0
+ );
+ const [hasMultipleRecords, setHasMultipleRecords] = useState(false);
+
+ useEffect(() => {
+ if (parentIsSerial) {
+ setActiveStep(serialIndex);
+ }
+ }, [parentIsSerial, serialIndex]);
const isModalOpen =
attributeRecordModal.isOpen || attributeRecordDeleteModal.isOpen;
@@ -275,8 +284,13 @@ export const JobOperation = ({
setEventType,
setSelectedMaterial,
setupProductionEvent,
- activeStep,
- } = useOperation(originalOperation, events, trackedEntities, isModalOpen);
+ } = useOperation({
+ operation: originalOperation,
+ events,
+ trackedEntities,
+ pauseInterval: isModalOpen,
+ procedure,
+ });
const controlsHeight = useMemo(() => {
let operations = 1;
@@ -500,10 +514,7 @@ export const JobOperation = ({
<div className="flex flex-col flex-shrink items-end">
{parentIsSerial ? (
<Heading size="h2">
- {/* @ts-ignore */}
- {trackedEntity?.attributes?.[`Operation ${operationId}`] ??
- 1}{" "}
- of {operation.operationQuantity}
+ {serialIndex + 1} of {operation.operationQuantity}
</Heading>
) : (
<Heading size="h2">{operation.operationQuantity}</Heading>
@@ -593,34 +604,134 @@ export const JobOperation = ({
<HStack className="justify-between w-full">
<Heading size="h3">Steps</Heading>
<div className="flex items-center gap-2">
- {attributes.length > 0 && (
- <>
- <Progress
- value={
- (attributes.filter(
- (a) =>
- a.jobOperationStepRecord[
- activeStep
- ]
- ).length /
- attributes.length) *
- 100
- }
- className="h-2 w-24"
- />
- <span className="text-xs text-muted-foreground">
- {
- attributes.filter(
- (a) =>
- a.jobOperationStepRecord[
- activeStep
- ]
- ).length
- }{" "}
- of {attributes.length} complete
- </span>
- </>
- )}
+ {attributes.length > 0 &&
+ (() => {
+ const maxRecords = parentIsSerial
+ ? trackedEntities.length
+ : operation.operationQuantity +
+ operation.quantityScrapped;
+
+ const isRecordSetStarted =
+ recordSetIsStarted(
+ attributes,
+ activeStep
+ );
+
+ const canCreateNewRecord =
+ !parentIsSerial && isRecordSetStarted;
+
+ const canNavigateNext =
+ isRecordSetStarted &&
+ activeStep <
+ operation.operationQuantity +
+ operation.quantityScrapped -
+ 1;
+
+ const showNavigation =
+ hasMultipleRecords ||
+ attributes.some(
+ (att) =>
+ att.jobOperationStepRecord.length >
+ 1
+ );
+
+ return (
+ <div className="flex flex-col items-end justify-center gap-2">
+ <div className="flex items-center gap-1">
+ {showNavigation &&
+ !parentIsSerial && (
+ <>
+ <IconButton
+ aria-label="Previous record set"
+ variant="secondary"
+ icon={<LuChevronLeft />}
+ onClick={() => {
+ setActiveStep(
+ activeStep - 1
+ );
+ }}
+ isDisabled={
+ activeStep === 0
+ }
+ />
+ <span className="text-sm font-medium px-2 min-w-[60px] text-center">
+ Record {activeStep + 1}
+ </span>
+ <IconButton
+ aria-label="Next record set"
+ variant="secondary"
+ icon={<LuChevronRight />}
+ onClick={() => {
+ setActiveStep(
+ activeStep + 1
+ );
+ }}
+ isDisabled={
+ !canNavigateNext
+ }
+ />
+ </>
+ )}
+ {canCreateNewRecord &&
+ !showNavigation && (
+ <Button
+ aria-label="Add new record set"
+ variant="secondary"
+ leftIcon={<LuCirclePlus />}
+ onClick={() => {
+ const nextIndex =
+ activeStep + 1;
+ if (
+ nextIndex >= maxRecords
+ ) {
+ toast.warning(
+ "Maximum number of records reached"
+ );
+ return;
+ }
+ setHasMultipleRecords(true);
+ setActiveStep(nextIndex);
+ }}
+ isDisabled={
+ activeStep + 1 >= maxRecords
+ }
+ >
+ New Record
+ </Button>
+ )}
+ {parentIsSerial && (
+ <Heading size="h2">
+ {serialIndex + 1} of{" "}
+ {operation.operationQuantity}
+ </Heading>
+ )}
+ </div>
+
+ <Progress
+ value={
+ (attributes.filter((a) =>
+ a.jobOperationStepRecord.some(
+ (r) => r.index === activeStep
+ )
+ ).length /
+ attributes.length) *
+ 100
+ }
+ className="h-2 w-24"
+ />
+ <span className="text-xs text-muted-foreground">
+ {
+ attributes.filter((a) =>
+ a.jobOperationStepRecord.some(
+ (r) => r.index === activeStep
+ )
+ ).length
+ }{" "}
+ of {attributes.length} complete
+ </span>
+ </div>
+ );
+ })()}
</div>
</HStack>
<div className="border rounded-lg">
@@ -1317,6 +1428,13 @@ export const JobOperation = ({
size="sm"
isDisabled={entity.id === trackedEntityId}
onClick={() => {
+ const entityIndex =
+ trackedEntities.findIndex(
+ (e) => e.id === entity.id
+ );
+ if (entityIndex !== -1) {
+ setActiveStep(entityIndex);
+ }
setParams({
trackedEntityId: entity.id,
});
@@ -1381,6 +1499,122 @@ export const JobOperation = ({
className="w-full flex-1 overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent"
spacing={0}
>
+ {attributes.length > 0 &&
+ (() => {
+ const maxRecords = parentIsSerial
+ ? trackedEntities.length
+ : operation.operationQuantity +
+ operation.quantityScrapped;
+
+ const isRecordSetStarted = recordSetIsStarted(
+ attributes,
+ activeStep
+ );
+
+ const canCreateNewRecord =
+ !parentIsSerial && isRecordSetStarted;
+
+ const canNavigateNext =
+ isRecordSetStarted &&
+ activeStep <
+ operation.operationQuantity +
+ operation.quantityScrapped -
+ 1;
+
+ const showNavigation =
+ hasMultipleRecords ||
+ attributes.some(
+ (att) =>
+ att.jobOperationStepRecord.length > 1
+ );
+
+ return (
+ <div className="flex flex-col items-end justify-center gap-1 w-full px-4">
+ <div className="flex items-center gap-1">
+ {showNavigation && !parentIsSerial && (
+ <>
+ <IconButton
+ aria-label="Previous record set"
+ variant="secondary"
+ icon={<LuChevronLeft />}
+ onClick={() => {
+ setActiveStep(activeStep - 1);
+ }}
+ isDisabled={activeStep === 0}
+ />
+ <span className="text-sm font-medium px-2 min-w-[60px] text-center">
+ Record {activeStep + 1}
+ </span>
+ <IconButton
+ aria-label="Next record set"
+ variant="secondary"
+ icon={<LuChevronRight />}
+ onClick={() => {
+ setActiveStep(activeStep + 1);
+ }}
+ isDisabled={!canNavigateNext}
+ />
+ </>
+ )}
+ {canCreateNewRecord &&
+ !showNavigation && (
+ <Button
+ aria-label="Add new record set"
+ variant="secondary"
+ leftIcon={<LuCirclePlus />}
+ onClick={() => {
+ const nextIndex = activeStep + 1;
+ if (nextIndex >= maxRecords) {
+ toast.warning(
+ "Maximum number of records reached"
+ );
+ return;
+ }
+ setHasMultipleRecords(true);
+ setActiveStep(nextIndex);
+ }}
+ isDisabled={
+ activeStep + 1 >= maxRecords
+ }
+ >
+ New Record
+ </Button>
+ )}
+ {parentIsSerial && (
+ <Heading size="h2">
+ {serialIndex + 1} of{" "}
+ {operation.operationQuantity}
+ </Heading>
+ )}
+ </div>
+
+ <div className="flex flex-col justify-center items-end gap-1">
+ <Progress
+ value={
+ (attributes.filter((a) =>
+ a.jobOperationStepRecord.some(
+ (r) => r.index === activeStep
+ )
+ ).length /
+ attributes.length) *
+ 100
+ }
+ className="h-2 w-24"
+ />
+ <span className="text-xs text-muted-foreground">
+ {
+ attributes.filter((a) =>
+ a.jobOperationStepRecord.some(
+ (r) => r.index === activeStep
+ )
+ ).length
+ }{" "}
+ of {attributes.length} completed
+ </span>
+ </div>
+ </div>
+ );
+ })()}
{attributes.length > 0 && (
<>
<div className="flex flex-col items-start justify-between w-full">
@@ -1831,6 +2065,12 @@ export const JobOperation = ({
onClose={serialModal.onClose}
onCancel={() => navigate(path.to.operations)}
onSelect={(entity) => {
+ const entityIndex = availableEntities.findIndex(
+ (e) => e.id === entity.id
+ );
+ if (entityIndex !== -1) {
+ setActiveStep(entityIndex);
+ }
setParams({
trackedEntityId: entity.id,
});
@@ -1851,7 +2091,11 @@ export const JobOperation = ({
{attributeRecordDeleteModal.isOpen && selectedAttribute && (
<DeleteAttributeRecordModal
onClose={onDeselectAttribute}
- id={selectedAttribute?.jobOperationStepRecord[activeStep]?.id}
+ id={
+ selectedAttribute?.jobOperationStepRecord.find(
+ (r) => r.index === activeStep
+ )?.id ?? ""
+ }
title="Delete Step"
description="Are you sure you want to delete this step?"
/>
@@ -1867,6 +2111,22 @@ type Message = {
note: string;
};
+function recordSetIsStarted(
+ attributes: JobOperationAttribute[],
+ activeStep: number
+) {
+ return attributes.some((att) =>
+ att.jobOperationStepRecord.some(
+ (record) =>
+ record.index === activeStep &&
+ (record.value !== null ||
+ record.numericValue !== null ||
+ record.booleanValue !== null ||
+ record.userValue !== null)
+ )
+ );
+}
+
function OperationChat({ operation }: { operation: OperationWithDetails }) {
const user = useUser();
const [employees] = usePeople();
@@ -2079,12 +2339,22 @@ function OperationChat({ operation }: { operation: OperationWithDetails }) {
);
}
-function useOperation(
- operation: OperationWithDetails,
- events: ProductionEvent[],
- trackedEntities: TrackedEntity[],
- pauseInterval: boolean
-) {
+function useOperation({
+ operation,
+ events,
+ trackedEntities,
+ pauseInterval,
+ procedure,
+}: {
+ operation: OperationWithDetails;
+ events: ProductionEvent[];
+ trackedEntities: TrackedEntity[];
+ pauseInterval: boolean;
+ procedure: Promise<{
+ attributes: JobOperationAttribute[];
+ parameters: JobOperationParameter[];
+ }>;
+}) {
const [params] = useUrlParams();
const trackedEntityParam = params.get("trackedEntityId");
const { carbon, accessToken } = useCarbon();
@@ -2325,8 +2595,6 @@ function useOperation(
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [trackedEntities, trackedEntityParam]);
- const activeStep = 0;
-
return {
active,
availableEntities,
@@ -2335,7 +2603,7 @@ function useOperation(
...activeEvents,
progress,
operation: operationState,
- activeStep,
+
activeTab,
eventType,
scrapModal,
@@ -4283,6 +4551,9 @@ function AttributesListItem({
const hasDescription = description && Object.keys(description).length > 0;
if (!operationId) return null;
+ const record = attribute.jobOperationStepRecord.find(
+ (r) => r.index === activeStep
+ );
return (
<div className={cn("border-b hover:bg-muted/30 p-6", className)}>
@@ -4319,7 +4590,7 @@ function AttributesListItem({
</HStack>
</HStack>
<div className="flex items-center justify-end gap-2">
- {attribute.jobOperationStepRecord[activeStep] ? (
+ {record ? (
<div className="flex items-center gap-2">
{type !== "Task" &&
(compact ? (
@@ -4327,24 +4598,17 @@ function AttributesListItem({
aria-label="Update attribute"
variant="secondary"
icon={<LuCircleCheck />}
- isDisabled={
- attribute.jobOperationStepRecord[activeStep]
- ?.createdBy !== user?.id
- }
+ isDisabled={record?.createdBy !== user?.id}
onClick={() => onRecord(attribute)}
className={cn(
"text-emerald-500",
attribute.minValue !== null &&
- attribute.jobOperationStepRecord[activeStep]
- ?.numericValue != null &&
- attribute.jobOperationStepRecord[activeStep]
- ?.numericValue < attribute.minValue &&
+ record?.numericValue != null &&
+ record?.numericValue < attribute.minValue &&
"text-red-500",
attribute.maxValue !== null &&
- attribute.jobOperationStepRecord[activeStep]
- ?.numericValue != null &&
- attribute.jobOperationStepRecord[activeStep]
- ?.numericValue > attribute.maxValue &&
+ record?.numericValue != null &&
+ record?.numericValue > attribute.maxValue &&
"text-red-500"
)}
/>
@@ -4361,10 +4625,7 @@ function AttributesListItem({
aria-label="Delete attribute"
variant="secondary"
icon={<LuTrash />}
- isDisabled={
- attribute.jobOperationStepRecord[activeStep]?.createdBy !==
- user?.id
- }
+ isDisabled={record?.createdBy !== user?.id}
onClick={() => onDelete(attribute)}
/>
</div>
@@ -4450,77 +4711,50 @@ function PreviewAttributeRecord({
const numberFormatter = useNumberFormatter();
if (!attribute.jobOperationStepRecord) return null;
+ const record = attribute.jobOperationStepRecord.find(
+ (r) => r.index === activeStep
+ );
+
return (
<div className="min-w-[200px] truncate text-right font-medium">
{attribute.type === "Task" && (
- <Checkbox
- checked={
- attribute.jobOperationStepRecord[activeStep]?.booleanValue ?? false
- }
- />
+ <Checkbox checked={record?.booleanValue ?? false} />
)}
{attribute.type === "Checkbox" && (
- <Checkbox
- checked={
- attribute.jobOperationStepRecord[activeStep]?.booleanValue ?? false
- }
- />
- )}
- {attribute.type === "Value" && (
- <p className="text-sm">
- {attribute.jobOperationStepRecord[activeStep]?.value}
- </p>
+ <Checkbox checked={record?.booleanValue ?? false} />
)}
+ {attribute.type === "Value" && <p className="text-sm">{record?.value}</p>}
{attribute.type === "Measurement" &&
- typeof attribute.jobOperationStepRecord[activeStep]?.numericValue ===
- "number" && (
+ typeof record?.numericValue === "number" && (
<p
className={cn(
"text-sm",
attribute.minValue !== null &&
- attribute.jobOperationStepRecord[activeStep]?.numericValue <
- attribute.minValue &&
+ record?.numericValue < attribute.minValue &&
"text-red-500",
attribute.maxValue !== null &&
- attribute.jobOperationStepRecord[activeStep]?.numericValue >
- attribute.maxValue &&
+ record?.numericValue > attribute.maxValue &&
"text-red-500"
)}
>
- {numberFormatter.format(
- attribute.jobOperationStepRecord[activeStep]?.numericValue
- )}{" "}
+ {numberFormatter.format(record?.numericValue)}{" "}
{attribute.unitOfMeasureCode}
</p>
)}
{attribute.type === "Timestamp" && (
- <p className="text-sm">
- {formatDateTime(
- attribute.jobOperationStepRecord[activeStep]?.value ?? ""
- )}
- </p>
- )}
- {attribute.type === "List" && (
- <p className="text-sm">
- {attribute.jobOperationStepRecord[activeStep]?.value}
- </p>
+ <p className="text-sm">{formatDateTime(record?.value ?? "")}</p>
)}
+ {attribute.type === "List" && <p className="text-sm">{record?.value}</p>}
{attribute.type === "Person" && (
<p className="text-sm">
- {
- employees.find(
- (e) =>
- e.id === attribute.jobOperationStepRecord[activeStep]?.userValue
- )?.name
- }
+ {employees.find((e) => e.id === record?.userValue)?.name}
</p>
)}
- {attribute.type === "File" &&
- attribute.jobOperationStepRecord[activeStep]?.value && (
- <div className="flex justify-end gap-2 text-sm">
- <LuPaperclip className="size-4 text-muted-foreground" />
- </div>
- )}
+ {attribute.type === "File" && record?.value && (
+ <div className="flex justify-end gap-2 text-sm">
+ <LuPaperclip className="size-4 text-muted-foreground" />
+ </div>
+ )}
</div>
);
}
@@ -4596,7 +4830,7 @@ function RecordModal({
setFile(fileUpload);
toast.info(`Uploading ${fileUpload.name}`);
- const fileName = `${company.id}/job/${attribute.operationId}/${activeStep}/${fileUpload.name}`;
+ const fileName = `${company.id}/job/${attribute.operationId}/${fileUpload.name}`;
const upload = await carbon?.storage
.from("private")
@@ -4619,8 +4853,12 @@ function RecordModal({
}
}, [fetcher.data?.success, onClose]);
+ const record = attribute?.jobOperationStepRecord.find(
+ (r) => r.index === activeStep
+ );
+
const [booleanControlled, setBooleanControlled] = useState(
- attribute?.jobOperationStepRecord[activeStep]?.booleanValue ?? false
+ record?.booleanValue ?? false
);
return (
@@ -4642,17 +4880,17 @@ function RecordModal({
index: activeStep,
jobOperationStepId: attribute.id,
value:
- attribute?.jobOperationStepRecord[activeStep]?.value ??
+ record?.value ??
(attribute.type === "Timestamp" ? new Date().toISOString() : ""),
- numericValue:
- attribute?.jobOperationStepRecord[activeStep]?.numericValue ?? 0,
- userValue:
- attribute?.jobOperationStepRecord[activeStep]?.userValue ?? "",
+ numericValue: record?.numericValue ?? 0,
+ userValue: record?.userValue ?? "",
}}
fetcher={fetcher}
>
<ModalHeader>
- <ModalTitle>{attribute.name}</ModalTitle>
+ <ModalTitle>
+ {attribute.name} - Set {activeStep + 1}
+ </ModalTitle>
</ModalHeader>
<ModalBody>
<Hidden name="id" />
diff --git a/llm/cache/clientAction-patterns.md b/llm/cache/clientAction-patterns.md
new file mode 100644
index 0000000000..b66a804977
--- /dev/null
+++ b/llm/cache/clientAction-patterns.md
@@ -0,0 +1,93 @@
+# ClientAction Implementation Patterns
+
+## Overview
+ClientAction is a Remix feature used to handle client-side operations before calling the server action. In this codebase, it's primarily used for cache invalidation with React Query.
+
+## Common Patterns
+
+### 1. Cache Invalidation with Predicate (Delete Operations)
+**File**: `/Users/barbinbrad/Code/carbon/apps/erp/app/routes/x+/inventory+/shelves.delete.$shelfId.tsx`
+
+```typescript
+export async function clientAction({ serverAction }: ClientActionFunctionArgs) {
+ const companyId = getCompanyId();
+
+ window.clientCache?.invalidateQueries({
+ predicate: (query) => {
+ const queryKey = query.queryKey as string[];
+ return queryKey[0] === "shelves" && queryKey[1] === companyId;
+ },
+ });
+
+ return await serverAction();
+}
+```
+
+### 2. Setting Query Data to Null (Update Operations)
+**File**: `/Users/barbinbrad/Code/carbon/apps/erp/app/routes/x+/resources+/work-centers.$id.tsx`
+
+```typescript
+export async function clientAction({ serverAction }: ClientActionFunctionArgs) {
+ window.clientCache?.setQueryData(
+ workCentersQuery(getCompanyId()).queryKey,
+ null
+ );
+ return await serverAction();
+}
+```
+
+### 3. Setting Query Data to Null (Create Operations)
+**File**: `/Users/barbinbrad/Code/carbon/apps/erp/app/routes/x+/items+/uom.new.tsx`
+
+```typescript
+export async function clientAction({ serverAction }: ClientActionFunctionArgs) {
+ window?.clientCache?.setQueryData(uomsQuery(getCompanyId()).queryKey, null);
+
+ return await serverAction();
+}
+```
+
+### 4. Conditional Cache Updates Based on Form Data
+**File**: `/Users/barbinbrad/Code/carbon/apps/erp/app/routes/x+/supplier+/$supplierId.processes.new.tsx`
+
+```typescript
+export async function clientAction({
+ request,
+ serverAction,
+ params,
+}: ClientActionFunctionArgs) {
+ const formData = await request.clone().formData(); // if we. don't clone it we can't access it in the action
+ const validation = await validator(supplierProcessValidator).validate(
+ formData
+ );
+
+ if (validation.error) {
+ return validationError(validation.error);
+ }
+
+ if (validation.data.processId) {
+ window.clientCache?.setQueryData(
+ supplierProcessesQuery(validation.data.processId).queryKey,
+ null
+ );
+ }
+ return await serverAction();
+}
+```
+
+## Key Principles
+
+1. **Always call serverAction()**: ClientAction should always call the server action after handling client-side operations
+2. **Cache invalidation patterns**:
+ - Use `invalidateQueries` with predicates for bulk invalidation (common in delete operations)
+ - Use `setQueryData(queryKey, null)` for specific query invalidation (common in create/update operations)
+3. **Error handling**: ClientAction can handle validation errors before hitting the server
+4. **Form data access**: Use `request.clone().formData()` if you need to access form data in both clientAction and serverAction
+5. **Safety checks**: Always use optional chaining (`window?.clientCache?.`) since clientCache might not be available
+6. **Company scoping**: Most queries are scoped by company ID using `getCompanyId()`
+
+## Import Requirements
+```typescript
+import type { ClientActionFunctionArgs } from "@remix-run/react";
+import { getCompanyId } from "~/utils/react-query";
+```
\ No newline at end of file
diff --git a/packages/database/src/swagger-docs-schema.ts b/packages/database/src/swagger-docs-schema.ts
index 97173cbb11..349b3f1a14 100644
--- a/packages/database/src/swagger-docs-schema.ts
+++ b/packages/database/src/swagger-docs-schema.ts
@@ -4959,6 +4959,249 @@ export default {
tags: ["documentExtensions"],
},
},
+ "/quoteOperationStep": {
+ get: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.required",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.sortOrder",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.type",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.unitOfMeasureCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.minValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.maxValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.listValues",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.fileTypes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.operationId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.description",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/order",
+ },
+ {
+ $ref: "#/parameters/range",
+ },
+ {
+ $ref: "#/parameters/rangeUnit",
+ },
+ {
+ $ref: "#/parameters/offset",
+ },
+ {
+ $ref: "#/parameters/limit",
+ },
+ {
+ $ref: "#/parameters/preferCount",
+ },
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/quoteOperationStep",
+ },
+ type: "array",
+ },
+ },
+ "206": {
+ description: "Partial Content",
+ },
+ },
+ tags: ["quoteOperationStep"],
+ },
+ post: {
+ parameters: [
+ {
+ $ref: "#/parameters/body.quoteOperationStep",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/preferPost",
+ },
+ ],
+ responses: {
+ "201": {
+ description: "Created",
+ },
+ },
+ tags: ["quoteOperationStep"],
+ },
+ delete: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.required",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.sortOrder",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.type",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.unitOfMeasureCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.minValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.maxValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.listValues",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.fileTypes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.operationId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.description",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["quoteOperationStep"],
+ },
+ patch: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.required",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.sortOrder",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.type",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.unitOfMeasureCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.minValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.maxValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.listValues",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.fileTypes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.operationId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.quoteOperationStep.description",
+ },
+ {
+ $ref: "#/parameters/body.quoteOperationStep",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["quoteOperationStep"],
+ },
+ },
"/purchaseOrderLocations": {
get: {
parameters: [
@@ -10626,44 +10869,44 @@ export default {
tags: ["userDefaults"],
},
},
- "/demandForecast": {
+ "/jobOperationStepRecord": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.demandForecast.itemId",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.jobOperationStepId",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.locationId",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.value",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.periodId",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.numericValue",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.forecastQuantity",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.booleanValue",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.forecastMethod",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.userValue",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.confidence",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.companyId",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.notes",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.createdAt",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.companyId",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.createdBy",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.createdBy",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.createdAt",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.updatedBy",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.updatedAt",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.id",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.updatedBy",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.index",
},
{
$ref: "#/parameters/select",
@@ -10692,7 +10935,7 @@ export default {
description: "OK",
schema: {
items: {
- $ref: "#/definitions/demandForecast",
+ $ref: "#/definitions/jobOperationStepRecord",
},
type: "array",
},
@@ -10701,12 +10944,12 @@ export default {
description: "Partial Content",
},
},
- tags: ["demandForecast"],
+ tags: ["jobOperationStepRecord"],
},
post: {
parameters: [
{
- $ref: "#/parameters/body.demandForecast",
+ $ref: "#/parameters/body.jobOperationStepRecord",
},
{
$ref: "#/parameters/select",
@@ -10720,45 +10963,45 @@ export default {
description: "Created",
},
},
- tags: ["demandForecast"],
+ tags: ["jobOperationStepRecord"],
},
delete: {
parameters: [
{
- $ref: "#/parameters/rowFilter.demandForecast.itemId",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.jobOperationStepId",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.locationId",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.value",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.periodId",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.numericValue",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.forecastQuantity",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.booleanValue",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.forecastMethod",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.userValue",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.confidence",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.companyId",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.notes",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.createdAt",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.companyId",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.createdBy",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.createdBy",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.createdAt",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.updatedBy",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.updatedAt",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.id",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.updatedBy",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.index",
},
{
$ref: "#/parameters/preferReturn",
@@ -10769,48 +11012,48 @@ export default {
description: "No Content",
},
},
- tags: ["demandForecast"],
+ tags: ["jobOperationStepRecord"],
},
patch: {
parameters: [
{
- $ref: "#/parameters/rowFilter.demandForecast.itemId",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.jobOperationStepId",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.locationId",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.value",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.periodId",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.numericValue",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.forecastQuantity",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.booleanValue",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.forecastMethod",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.userValue",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.confidence",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.companyId",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.notes",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.createdAt",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.companyId",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.createdBy",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.createdBy",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.createdAt",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.updatedBy",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.updatedAt",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.id",
},
{
- $ref: "#/parameters/rowFilter.demandForecast.updatedBy",
+ $ref: "#/parameters/rowFilter.jobOperationStepRecord.index",
},
{
- $ref: "#/parameters/body.demandForecast",
+ $ref: "#/parameters/body.jobOperationStepRecord",
},
{
$ref: "#/parameters/preferReturn",
@@ -10821,62 +11064,47 @@ export default {
description: "No Content",
},
},
- tags: ["demandForecast"],
+ tags: ["jobOperationStepRecord"],
},
},
- "/quoteOperationAttribute": {
+ "/demandForecast": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.id",
- },
- {
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.name",
- },
- {
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.required",
- },
- {
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.sortOrder",
- },
- {
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.type",
- },
- {
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.unitOfMeasureCode",
+ $ref: "#/parameters/rowFilter.demandForecast.itemId",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.minValue",
+ $ref: "#/parameters/rowFilter.demandForecast.locationId",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.maxValue",
+ $ref: "#/parameters/rowFilter.demandForecast.periodId",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.listValues",
+ $ref: "#/parameters/rowFilter.demandForecast.forecastQuantity",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.fileTypes",
+ $ref: "#/parameters/rowFilter.demandForecast.forecastMethod",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.operationId",
+ $ref: "#/parameters/rowFilter.demandForecast.confidence",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.companyId",
+ $ref: "#/parameters/rowFilter.demandForecast.notes",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.createdAt",
+ $ref: "#/parameters/rowFilter.demandForecast.companyId",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.createdBy",
+ $ref: "#/parameters/rowFilter.demandForecast.createdBy",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.updatedAt",
+ $ref: "#/parameters/rowFilter.demandForecast.createdAt",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.updatedBy",
+ $ref: "#/parameters/rowFilter.demandForecast.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.description",
+ $ref: "#/parameters/rowFilter.demandForecast.updatedBy",
},
{
$ref: "#/parameters/select",
@@ -10905,7 +11133,7 @@ export default {
description: "OK",
schema: {
items: {
- $ref: "#/definitions/quoteOperationAttribute",
+ $ref: "#/definitions/demandForecast",
},
type: "array",
},
@@ -10914,12 +11142,12 @@ export default {
description: "Partial Content",
},
},
- tags: ["quoteOperationAttribute"],
+ tags: ["demandForecast"],
},
post: {
parameters: [
{
- $ref: "#/parameters/body.quoteOperationAttribute",
+ $ref: "#/parameters/body.demandForecast",
},
{
$ref: "#/parameters/select",
@@ -10933,60 +11161,45 @@ export default {
description: "Created",
},
},
- tags: ["quoteOperationAttribute"],
+ tags: ["demandForecast"],
},
delete: {
parameters: [
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.id",
- },
- {
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.name",
- },
- {
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.required",
- },
- {
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.sortOrder",
- },
- {
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.type",
- },
- {
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.unitOfMeasureCode",
+ $ref: "#/parameters/rowFilter.demandForecast.itemId",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.minValue",
+ $ref: "#/parameters/rowFilter.demandForecast.locationId",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.maxValue",
+ $ref: "#/parameters/rowFilter.demandForecast.periodId",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.listValues",
+ $ref: "#/parameters/rowFilter.demandForecast.forecastQuantity",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.fileTypes",
+ $ref: "#/parameters/rowFilter.demandForecast.forecastMethod",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.operationId",
+ $ref: "#/parameters/rowFilter.demandForecast.confidence",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.companyId",
+ $ref: "#/parameters/rowFilter.demandForecast.notes",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.createdAt",
+ $ref: "#/parameters/rowFilter.demandForecast.companyId",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.createdBy",
+ $ref: "#/parameters/rowFilter.demandForecast.createdBy",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.updatedAt",
+ $ref: "#/parameters/rowFilter.demandForecast.createdAt",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.updatedBy",
+ $ref: "#/parameters/rowFilter.demandForecast.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.description",
+ $ref: "#/parameters/rowFilter.demandForecast.updatedBy",
},
{
$ref: "#/parameters/preferReturn",
@@ -10997,63 +11210,48 @@ export default {
description: "No Content",
},
},
- tags: ["quoteOperationAttribute"],
+ tags: ["demandForecast"],
},
patch: {
parameters: [
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.id",
- },
- {
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.name",
- },
- {
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.required",
- },
- {
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.sortOrder",
- },
- {
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.type",
- },
- {
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.unitOfMeasureCode",
+ $ref: "#/parameters/rowFilter.demandForecast.itemId",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.minValue",
+ $ref: "#/parameters/rowFilter.demandForecast.locationId",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.maxValue",
+ $ref: "#/parameters/rowFilter.demandForecast.periodId",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.listValues",
+ $ref: "#/parameters/rowFilter.demandForecast.forecastQuantity",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.fileTypes",
+ $ref: "#/parameters/rowFilter.demandForecast.forecastMethod",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.operationId",
+ $ref: "#/parameters/rowFilter.demandForecast.confidence",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.companyId",
+ $ref: "#/parameters/rowFilter.demandForecast.notes",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.createdAt",
+ $ref: "#/parameters/rowFilter.demandForecast.companyId",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.createdBy",
+ $ref: "#/parameters/rowFilter.demandForecast.createdBy",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.updatedAt",
+ $ref: "#/parameters/rowFilter.demandForecast.createdAt",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.updatedBy",
+ $ref: "#/parameters/rowFilter.demandForecast.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.quoteOperationAttribute.description",
+ $ref: "#/parameters/rowFilter.demandForecast.updatedBy",
},
{
- $ref: "#/parameters/body.quoteOperationAttribute",
+ $ref: "#/parameters/body.demandForecast",
},
{
$ref: "#/parameters/preferReturn",
@@ -11064,7 +11262,7 @@ export default {
description: "No Content",
},
},
- tags: ["quoteOperationAttribute"],
+ tags: ["demandForecast"],
},
},
"/supplyForecast": {
@@ -23442,6 +23640,249 @@ export default {
tags: ["quoteCustomerDetails"],
},
},
+ "/procedureStep": {
+ get: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.procedureId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.required",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.sortOrder",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.type",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.unitOfMeasureCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.minValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.maxValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.listValues",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.fileTypes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.description",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/order",
+ },
+ {
+ $ref: "#/parameters/range",
+ },
+ {
+ $ref: "#/parameters/rangeUnit",
+ },
+ {
+ $ref: "#/parameters/offset",
+ },
+ {
+ $ref: "#/parameters/limit",
+ },
+ {
+ $ref: "#/parameters/preferCount",
+ },
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/procedureStep",
+ },
+ type: "array",
+ },
+ },
+ "206": {
+ description: "Partial Content",
+ },
+ },
+ tags: ["procedureStep"],
+ },
+ post: {
+ parameters: [
+ {
+ $ref: "#/parameters/body.procedureStep",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/preferPost",
+ },
+ ],
+ responses: {
+ "201": {
+ description: "Created",
+ },
+ },
+ tags: ["procedureStep"],
+ },
+ delete: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.procedureId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.required",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.sortOrder",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.type",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.unitOfMeasureCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.minValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.maxValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.listValues",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.fileTypes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.description",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["procedureStep"],
+ },
+ patch: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.procedureId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.required",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.sortOrder",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.type",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.unitOfMeasureCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.minValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.maxValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.listValues",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.fileTypes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.procedureStep.description",
+ },
+ {
+ $ref: "#/parameters/body.procedureStep",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["procedureStep"],
+ },
+ },
"/documentFavorite": {
get: {
parameters: [
@@ -30744,38 +31185,32 @@ export default {
tags: ["jobOperationParameter"],
},
},
- "/jobOperationStepRecord": {
+ "/gaugeType": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.jobOperationStepId",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.value",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.numericValue",
+ $ref: "#/parameters/rowFilter.gaugeType.id",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.booleanValue",
+ $ref: "#/parameters/rowFilter.gaugeType.name",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.userValue",
+ $ref: "#/parameters/rowFilter.gaugeType.companyId",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.companyId",
+ $ref: "#/parameters/rowFilter.gaugeType.customFields",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.createdAt",
+ $ref: "#/parameters/rowFilter.gaugeType.createdAt",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.createdBy",
+ $ref: "#/parameters/rowFilter.gaugeType.createdBy",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.updatedAt",
+ $ref: "#/parameters/rowFilter.gaugeType.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.updatedBy",
+ $ref: "#/parameters/rowFilter.gaugeType.updatedBy",
},
{
$ref: "#/parameters/select",
@@ -30804,7 +31239,7 @@ export default {
description: "OK",
schema: {
items: {
- $ref: "#/definitions/jobOperationStepRecord",
+ $ref: "#/definitions/gaugeType",
},
type: "array",
},
@@ -30813,12 +31248,12 @@ export default {
description: "Partial Content",
},
},
- tags: ["jobOperationStepRecord"],
+ tags: ["gaugeType"],
},
post: {
parameters: [
{
- $ref: "#/parameters/body.jobOperationStepRecord",
+ $ref: "#/parameters/body.gaugeType",
},
{
$ref: "#/parameters/select",
@@ -30832,39 +31267,33 @@ export default {
description: "Created",
},
},
- tags: ["jobOperationStepRecord"],
+ tags: ["gaugeType"],
},
delete: {
parameters: [
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.jobOperationStepId",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.value",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.numericValue",
+ $ref: "#/parameters/rowFilter.gaugeType.id",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.booleanValue",
+ $ref: "#/parameters/rowFilter.gaugeType.name",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.userValue",
+ $ref: "#/parameters/rowFilter.gaugeType.companyId",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.companyId",
+ $ref: "#/parameters/rowFilter.gaugeType.customFields",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.createdAt",
+ $ref: "#/parameters/rowFilter.gaugeType.createdAt",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.createdBy",
+ $ref: "#/parameters/rowFilter.gaugeType.createdBy",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.updatedAt",
+ $ref: "#/parameters/rowFilter.gaugeType.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.updatedBy",
+ $ref: "#/parameters/rowFilter.gaugeType.updatedBy",
},
{
$ref: "#/parameters/preferReturn",
@@ -30875,42 +31304,36 @@ export default {
description: "No Content",
},
},
- tags: ["jobOperationStepRecord"],
+ tags: ["gaugeType"],
},
patch: {
parameters: [
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.jobOperationStepId",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.value",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.numericValue",
+ $ref: "#/parameters/rowFilter.gaugeType.id",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.booleanValue",
+ $ref: "#/parameters/rowFilter.gaugeType.name",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.userValue",
+ $ref: "#/parameters/rowFilter.gaugeType.companyId",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.companyId",
+ $ref: "#/parameters/rowFilter.gaugeType.customFields",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.createdAt",
+ $ref: "#/parameters/rowFilter.gaugeType.createdAt",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.createdBy",
+ $ref: "#/parameters/rowFilter.gaugeType.createdBy",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.updatedAt",
+ $ref: "#/parameters/rowFilter.gaugeType.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStepRecord.updatedBy",
+ $ref: "#/parameters/rowFilter.gaugeType.updatedBy",
},
{
- $ref: "#/parameters/body.jobOperationStepRecord",
+ $ref: "#/parameters/body.gaugeType",
},
{
$ref: "#/parameters/preferReturn",
@@ -30921,35 +31344,62 @@ export default {
description: "No Content",
},
},
- tags: ["jobOperationStepRecord"],
+ tags: ["gaugeType"],
},
},
- "/gaugeType": {
+ "/jobOperationStep": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.gaugeType.id",
+ $ref: "#/parameters/rowFilter.jobOperationStep.id",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.name",
+ $ref: "#/parameters/rowFilter.jobOperationStep.name",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.companyId",
+ $ref: "#/parameters/rowFilter.jobOperationStep.required",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.customFields",
+ $ref: "#/parameters/rowFilter.jobOperationStep.sortOrder",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.createdAt",
+ $ref: "#/parameters/rowFilter.jobOperationStep.type",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.createdBy",
+ $ref: "#/parameters/rowFilter.jobOperationStep.unitOfMeasureCode",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.updatedAt",
+ $ref: "#/parameters/rowFilter.jobOperationStep.minValue",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.updatedBy",
+ $ref: "#/parameters/rowFilter.jobOperationStep.maxValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.listValues",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.fileTypes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.operationId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.description",
},
{
$ref: "#/parameters/select",
@@ -30978,7 +31428,7 @@ export default {
description: "OK",
schema: {
items: {
- $ref: "#/definitions/gaugeType",
+ $ref: "#/definitions/jobOperationStep",
},
type: "array",
},
@@ -30987,12 +31437,12 @@ export default {
description: "Partial Content",
},
},
- tags: ["gaugeType"],
+ tags: ["jobOperationStep"],
},
post: {
parameters: [
{
- $ref: "#/parameters/body.gaugeType",
+ $ref: "#/parameters/body.jobOperationStep",
},
{
$ref: "#/parameters/select",
@@ -31006,33 +31456,60 @@ export default {
description: "Created",
},
},
- tags: ["gaugeType"],
+ tags: ["jobOperationStep"],
},
delete: {
parameters: [
{
- $ref: "#/parameters/rowFilter.gaugeType.id",
+ $ref: "#/parameters/rowFilter.jobOperationStep.id",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.name",
+ $ref: "#/parameters/rowFilter.jobOperationStep.name",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.companyId",
+ $ref: "#/parameters/rowFilter.jobOperationStep.required",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.customFields",
+ $ref: "#/parameters/rowFilter.jobOperationStep.sortOrder",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.createdAt",
+ $ref: "#/parameters/rowFilter.jobOperationStep.type",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.createdBy",
+ $ref: "#/parameters/rowFilter.jobOperationStep.unitOfMeasureCode",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.updatedAt",
+ $ref: "#/parameters/rowFilter.jobOperationStep.minValue",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.updatedBy",
+ $ref: "#/parameters/rowFilter.jobOperationStep.maxValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.listValues",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.fileTypes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.operationId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.description",
},
{
$ref: "#/parameters/preferReturn",
@@ -31043,36 +31520,63 @@ export default {
description: "No Content",
},
},
- tags: ["gaugeType"],
+ tags: ["jobOperationStep"],
},
patch: {
parameters: [
{
- $ref: "#/parameters/rowFilter.gaugeType.id",
+ $ref: "#/parameters/rowFilter.jobOperationStep.id",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.name",
+ $ref: "#/parameters/rowFilter.jobOperationStep.name",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.companyId",
+ $ref: "#/parameters/rowFilter.jobOperationStep.required",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.customFields",
+ $ref: "#/parameters/rowFilter.jobOperationStep.sortOrder",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.createdAt",
+ $ref: "#/parameters/rowFilter.jobOperationStep.type",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.createdBy",
+ $ref: "#/parameters/rowFilter.jobOperationStep.unitOfMeasureCode",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.updatedAt",
+ $ref: "#/parameters/rowFilter.jobOperationStep.minValue",
},
{
- $ref: "#/parameters/rowFilter.gaugeType.updatedBy",
+ $ref: "#/parameters/rowFilter.jobOperationStep.maxValue",
},
{
- $ref: "#/parameters/body.gaugeType",
+ $ref: "#/parameters/rowFilter.jobOperationStep.listValues",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.fileTypes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.operationId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.jobOperationStep.description",
+ },
+ {
+ $ref: "#/parameters/body.jobOperationStep",
},
{
$ref: "#/parameters/preferReturn",
@@ -31083,7 +31587,7 @@ export default {
description: "No Content",
},
},
- tags: ["gaugeType"],
+ tags: ["jobOperationStep"],
},
},
"/receiptLine": {
@@ -37107,59 +37611,35 @@ export default {
tags: ["itemReplenishment"],
},
},
- "/methodOperationAttribute": {
+ "/procedureParameter": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.id",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.name",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.required",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.sortOrder",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.type",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.unitOfMeasureCode",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.minValue",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.maxValue",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.listValues",
+ $ref: "#/parameters/rowFilter.procedureParameter.id",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.fileTypes",
+ $ref: "#/parameters/rowFilter.procedureParameter.procedureId",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.operationId",
+ $ref: "#/parameters/rowFilter.procedureParameter.key",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.companyId",
+ $ref: "#/parameters/rowFilter.procedureParameter.value",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.createdAt",
+ $ref: "#/parameters/rowFilter.procedureParameter.companyId",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.createdBy",
+ $ref: "#/parameters/rowFilter.procedureParameter.createdAt",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.updatedAt",
+ $ref: "#/parameters/rowFilter.procedureParameter.createdBy",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.updatedBy",
+ $ref: "#/parameters/rowFilter.procedureParameter.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.description",
+ $ref: "#/parameters/rowFilter.procedureParameter.updatedBy",
},
{
$ref: "#/parameters/select",
@@ -37188,7 +37668,7 @@ export default {
description: "OK",
schema: {
items: {
- $ref: "#/definitions/methodOperationAttribute",
+ $ref: "#/definitions/procedureParameter",
},
type: "array",
},
@@ -37197,12 +37677,12 @@ export default {
description: "Partial Content",
},
},
- tags: ["methodOperationAttribute"],
+ tags: ["procedureParameter"],
},
post: {
parameters: [
{
- $ref: "#/parameters/body.methodOperationAttribute",
+ $ref: "#/parameters/body.procedureParameter",
},
{
$ref: "#/parameters/select",
@@ -37216,60 +37696,36 @@ export default {
description: "Created",
},
},
- tags: ["methodOperationAttribute"],
+ tags: ["procedureParameter"],
},
delete: {
parameters: [
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.id",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.name",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.required",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.sortOrder",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.type",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.unitOfMeasureCode",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.minValue",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.maxValue",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.listValues",
+ $ref: "#/parameters/rowFilter.procedureParameter.id",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.fileTypes",
+ $ref: "#/parameters/rowFilter.procedureParameter.procedureId",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.operationId",
+ $ref: "#/parameters/rowFilter.procedureParameter.key",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.companyId",
+ $ref: "#/parameters/rowFilter.procedureParameter.value",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.createdAt",
+ $ref: "#/parameters/rowFilter.procedureParameter.companyId",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.createdBy",
+ $ref: "#/parameters/rowFilter.procedureParameter.createdAt",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.updatedAt",
+ $ref: "#/parameters/rowFilter.procedureParameter.createdBy",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.updatedBy",
+ $ref: "#/parameters/rowFilter.procedureParameter.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.methodOperationAttribute.description",
+ $ref: "#/parameters/rowFilter.procedureParameter.updatedBy",
},
{
$ref: "#/parameters/preferReturn",
@@ -37280,202 +37736,7 @@ export default {
description: "No Content",
},
},
- tags: ["methodOperationAttribute"],
- },
- patch: {
- parameters: [
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.id",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.name",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.required",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.sortOrder",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.type",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.unitOfMeasureCode",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.minValue",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.maxValue",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.listValues",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.fileTypes",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.operationId",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.createdBy",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.updatedAt",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.updatedBy",
- },
- {
- $ref: "#/parameters/rowFilter.methodOperationAttribute.description",
- },
- {
- $ref: "#/parameters/body.methodOperationAttribute",
- },
- {
- $ref: "#/parameters/preferReturn",
- },
- ],
- responses: {
- "204": {
- description: "No Content",
- },
- },
- tags: ["methodOperationAttribute"],
- },
- },
- "/procedureParameter": {
- get: {
- parameters: [
- {
- $ref: "#/parameters/rowFilter.procedureParameter.id",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.procedureId",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.key",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.value",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.createdBy",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.updatedAt",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.updatedBy",
- },
- {
- $ref: "#/parameters/select",
- },
- {
- $ref: "#/parameters/order",
- },
- {
- $ref: "#/parameters/range",
- },
- {
- $ref: "#/parameters/rangeUnit",
- },
- {
- $ref: "#/parameters/offset",
- },
- {
- $ref: "#/parameters/limit",
- },
- {
- $ref: "#/parameters/preferCount",
- },
- ],
- responses: {
- "200": {
- description: "OK",
- schema: {
- items: {
- $ref: "#/definitions/procedureParameter",
- },
- type: "array",
- },
- },
- "206": {
- description: "Partial Content",
- },
- },
- tags: ["procedureParameter"],
- },
- post: {
- parameters: [
- {
- $ref: "#/parameters/body.procedureParameter",
- },
- {
- $ref: "#/parameters/select",
- },
- {
- $ref: "#/parameters/preferPost",
- },
- ],
- responses: {
- "201": {
- description: "Created",
- },
- },
- tags: ["procedureParameter"],
- },
- delete: {
- parameters: [
- {
- $ref: "#/parameters/rowFilter.procedureParameter.id",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.procedureId",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.key",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.value",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.createdBy",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.updatedAt",
- },
- {
- $ref: "#/parameters/rowFilter.procedureParameter.updatedBy",
- },
- {
- $ref: "#/parameters/preferReturn",
- },
- ],
- responses: {
- "204": {
- description: "No Content",
- },
- },
- tags: ["procedureParameter"],
+ tags: ["procedureParameter"],
},
patch: {
parameters: [
@@ -43746,185 +44007,428 @@ export default {
tags: ["documents"],
},
},
- "/tag": {
+ "/methodOperationStep": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.tag.name",
- },
- {
- $ref: "#/parameters/rowFilter.tag.table",
- },
- {
- $ref: "#/parameters/rowFilter.tag.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.tag.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.tag.createdBy",
- },
- {
- $ref: "#/parameters/select",
- },
- {
- $ref: "#/parameters/order",
- },
- {
- $ref: "#/parameters/range",
- },
- {
- $ref: "#/parameters/rangeUnit",
- },
- {
- $ref: "#/parameters/offset",
- },
- {
- $ref: "#/parameters/limit",
- },
- {
- $ref: "#/parameters/preferCount",
- },
- ],
- responses: {
- "200": {
- description: "OK",
- schema: {
- items: {
- $ref: "#/definitions/tag",
- },
- type: "array",
- },
- },
- "206": {
- description: "Partial Content",
- },
- },
- tags: ["tag"],
- },
- post: {
- parameters: [
- {
- $ref: "#/parameters/body.tag",
+ $ref: "#/parameters/rowFilter.methodOperationStep.id",
},
{
- $ref: "#/parameters/select",
+ $ref: "#/parameters/rowFilter.methodOperationStep.name",
},
{
- $ref: "#/parameters/preferPost",
- },
- ],
- responses: {
- "201": {
- description: "Created",
+ $ref: "#/parameters/rowFilter.methodOperationStep.required",
},
- },
- tags: ["tag"],
- },
- delete: {
- parameters: [
{
- $ref: "#/parameters/rowFilter.tag.name",
+ $ref: "#/parameters/rowFilter.methodOperationStep.sortOrder",
},
{
- $ref: "#/parameters/rowFilter.tag.table",
+ $ref: "#/parameters/rowFilter.methodOperationStep.type",
},
{
- $ref: "#/parameters/rowFilter.tag.companyId",
+ $ref: "#/parameters/rowFilter.methodOperationStep.unitOfMeasureCode",
},
{
- $ref: "#/parameters/rowFilter.tag.createdAt",
+ $ref: "#/parameters/rowFilter.methodOperationStep.minValue",
},
{
- $ref: "#/parameters/rowFilter.tag.createdBy",
+ $ref: "#/parameters/rowFilter.methodOperationStep.maxValue",
},
{
- $ref: "#/parameters/preferReturn",
+ $ref: "#/parameters/rowFilter.methodOperationStep.listValues",
},
- ],
- responses: {
- "204": {
- description: "No Content",
- },
- },
- tags: ["tag"],
- },
- patch: {
- parameters: [
{
- $ref: "#/parameters/rowFilter.tag.name",
+ $ref: "#/parameters/rowFilter.methodOperationStep.fileTypes",
},
{
- $ref: "#/parameters/rowFilter.tag.table",
- },
- {
- $ref: "#/parameters/rowFilter.tag.companyId",
+ $ref: "#/parameters/rowFilter.methodOperationStep.operationId",
},
{
- $ref: "#/parameters/rowFilter.tag.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.tag.createdBy",
+ $ref: "#/parameters/rowFilter.methodOperationStep.companyId",
},
{
- $ref: "#/parameters/body.tag",
+ $ref: "#/parameters/rowFilter.methodOperationStep.createdAt",
},
{
- $ref: "#/parameters/preferReturn",
+ $ref: "#/parameters/rowFilter.methodOperationStep.createdBy",
},
- ],
- responses: {
- "204": {
- description: "No Content",
- },
- },
- tags: ["tag"],
- },
- },
- "/paymentTerm": {
- get: {
- parameters: [
{
- $ref: "#/parameters/rowFilter.paymentTerm.id",
+ $ref: "#/parameters/rowFilter.methodOperationStep.updatedAt",
},
{
- $ref: "#/parameters/rowFilter.paymentTerm.name",
+ $ref: "#/parameters/rowFilter.methodOperationStep.updatedBy",
},
{
- $ref: "#/parameters/rowFilter.paymentTerm.daysDue",
- },
- {
- $ref: "#/parameters/rowFilter.paymentTerm.daysDiscount",
- },
- {
- $ref: "#/parameters/rowFilter.paymentTerm.discountPercentage",
- },
- {
- $ref: "#/parameters/rowFilter.paymentTerm.calculationMethod",
- },
- {
- $ref: "#/parameters/rowFilter.paymentTerm.active",
- },
- {
- $ref: "#/parameters/rowFilter.paymentTerm.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.paymentTerm.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.paymentTerm.createdBy",
- },
- {
- $ref: "#/parameters/rowFilter.paymentTerm.updatedAt",
- },
- {
- $ref: "#/parameters/rowFilter.paymentTerm.updatedBy",
- },
- {
- $ref: "#/parameters/rowFilter.paymentTerm.customFields",
- },
- {
- $ref: "#/parameters/rowFilter.paymentTerm.tags",
+ $ref: "#/parameters/rowFilter.methodOperationStep.description",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/order",
+ },
+ {
+ $ref: "#/parameters/range",
+ },
+ {
+ $ref: "#/parameters/rangeUnit",
+ },
+ {
+ $ref: "#/parameters/offset",
+ },
+ {
+ $ref: "#/parameters/limit",
+ },
+ {
+ $ref: "#/parameters/preferCount",
+ },
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/methodOperationStep",
+ },
+ type: "array",
+ },
+ },
+ "206": {
+ description: "Partial Content",
+ },
+ },
+ tags: ["methodOperationStep"],
+ },
+ post: {
+ parameters: [
+ {
+ $ref: "#/parameters/body.methodOperationStep",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/preferPost",
+ },
+ ],
+ responses: {
+ "201": {
+ description: "Created",
+ },
+ },
+ tags: ["methodOperationStep"],
+ },
+ delete: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.required",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.sortOrder",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.type",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.unitOfMeasureCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.minValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.maxValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.listValues",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.fileTypes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.operationId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.description",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["methodOperationStep"],
+ },
+ patch: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.required",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.sortOrder",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.type",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.unitOfMeasureCode",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.minValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.maxValue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.listValues",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.fileTypes",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.operationId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.methodOperationStep.description",
+ },
+ {
+ $ref: "#/parameters/body.methodOperationStep",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["methodOperationStep"],
+ },
+ },
+ "/tag": {
+ get: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.tag.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.tag.table",
+ },
+ {
+ $ref: "#/parameters/rowFilter.tag.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.tag.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.tag.createdBy",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/order",
+ },
+ {
+ $ref: "#/parameters/range",
+ },
+ {
+ $ref: "#/parameters/rangeUnit",
+ },
+ {
+ $ref: "#/parameters/offset",
+ },
+ {
+ $ref: "#/parameters/limit",
+ },
+ {
+ $ref: "#/parameters/preferCount",
+ },
+ ],
+ responses: {
+ "200": {
+ description: "OK",
+ schema: {
+ items: {
+ $ref: "#/definitions/tag",
+ },
+ type: "array",
+ },
+ },
+ "206": {
+ description: "Partial Content",
+ },
+ },
+ tags: ["tag"],
+ },
+ post: {
+ parameters: [
+ {
+ $ref: "#/parameters/body.tag",
+ },
+ {
+ $ref: "#/parameters/select",
+ },
+ {
+ $ref: "#/parameters/preferPost",
+ },
+ ],
+ responses: {
+ "201": {
+ description: "Created",
+ },
+ },
+ tags: ["tag"],
+ },
+ delete: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.tag.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.tag.table",
+ },
+ {
+ $ref: "#/parameters/rowFilter.tag.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.tag.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.tag.createdBy",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["tag"],
+ },
+ patch: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.tag.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.tag.table",
+ },
+ {
+ $ref: "#/parameters/rowFilter.tag.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.tag.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.tag.createdBy",
+ },
+ {
+ $ref: "#/parameters/body.tag",
+ },
+ {
+ $ref: "#/parameters/preferReturn",
+ },
+ ],
+ responses: {
+ "204": {
+ description: "No Content",
+ },
+ },
+ tags: ["tag"],
+ },
+ },
+ "/paymentTerm": {
+ get: {
+ parameters: [
+ {
+ $ref: "#/parameters/rowFilter.paymentTerm.id",
+ },
+ {
+ $ref: "#/parameters/rowFilter.paymentTerm.name",
+ },
+ {
+ $ref: "#/parameters/rowFilter.paymentTerm.daysDue",
+ },
+ {
+ $ref: "#/parameters/rowFilter.paymentTerm.daysDiscount",
+ },
+ {
+ $ref: "#/parameters/rowFilter.paymentTerm.discountPercentage",
+ },
+ {
+ $ref: "#/parameters/rowFilter.paymentTerm.calculationMethod",
+ },
+ {
+ $ref: "#/parameters/rowFilter.paymentTerm.active",
+ },
+ {
+ $ref: "#/parameters/rowFilter.paymentTerm.companyId",
+ },
+ {
+ $ref: "#/parameters/rowFilter.paymentTerm.createdAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.paymentTerm.createdBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.paymentTerm.updatedAt",
+ },
+ {
+ $ref: "#/parameters/rowFilter.paymentTerm.updatedBy",
+ },
+ {
+ $ref: "#/parameters/rowFilter.paymentTerm.customFields",
+ },
+ {
+ $ref: "#/parameters/rowFilter.paymentTerm.tags",
},
{
$ref: "#/parameters/select",
@@ -46893,249 +47397,6 @@ export default {
tags: ["salesInvoiceShipment"],
},
},
- "/procedureStep": {
- get: {
- parameters: [
- {
- $ref: "#/parameters/rowFilter.procedureStep.id",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.procedureId",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.name",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.required",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.sortOrder",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.type",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.unitOfMeasureCode",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.minValue",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.maxValue",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.listValues",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.fileTypes",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.createdBy",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.updatedAt",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.updatedBy",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.description",
- },
- {
- $ref: "#/parameters/select",
- },
- {
- $ref: "#/parameters/order",
- },
- {
- $ref: "#/parameters/range",
- },
- {
- $ref: "#/parameters/rangeUnit",
- },
- {
- $ref: "#/parameters/offset",
- },
- {
- $ref: "#/parameters/limit",
- },
- {
- $ref: "#/parameters/preferCount",
- },
- ],
- responses: {
- "200": {
- description: "OK",
- schema: {
- items: {
- $ref: "#/definitions/procedureStep",
- },
- type: "array",
- },
- },
- "206": {
- description: "Partial Content",
- },
- },
- tags: ["procedureStep"],
- },
- post: {
- parameters: [
- {
- $ref: "#/parameters/body.procedureStep",
- },
- {
- $ref: "#/parameters/select",
- },
- {
- $ref: "#/parameters/preferPost",
- },
- ],
- responses: {
- "201": {
- description: "Created",
- },
- },
- tags: ["procedureStep"],
- },
- delete: {
- parameters: [
- {
- $ref: "#/parameters/rowFilter.procedureStep.id",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.procedureId",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.name",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.required",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.sortOrder",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.type",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.unitOfMeasureCode",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.minValue",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.maxValue",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.listValues",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.fileTypes",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.createdBy",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.updatedAt",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.updatedBy",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.description",
- },
- {
- $ref: "#/parameters/preferReturn",
- },
- ],
- responses: {
- "204": {
- description: "No Content",
- },
- },
- tags: ["procedureStep"],
- },
- patch: {
- parameters: [
- {
- $ref: "#/parameters/rowFilter.procedureStep.id",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.procedureId",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.name",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.required",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.sortOrder",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.type",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.unitOfMeasureCode",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.minValue",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.maxValue",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.listValues",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.fileTypes",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.createdBy",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.updatedAt",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.updatedBy",
- },
- {
- $ref: "#/parameters/rowFilter.procedureStep.description",
- },
- {
- $ref: "#/parameters/body.procedureStep",
- },
- {
- $ref: "#/parameters/preferReturn",
- },
- ],
- responses: {
- "204": {
- description: "No Content",
- },
- },
- tags: ["procedureStep"],
- },
- },
"/supplierQuoteFavorite": {
get: {
parameters: [
@@ -53727,266 +53988,23 @@ export default {
tags: ["salesInvoiceLine"],
},
},
- "/jobOperationStep": {
+ "/customFieldTables": {
get: {
parameters: [
{
- $ref: "#/parameters/rowFilter.jobOperationStep.id",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.name",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.required",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.sortOrder",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.type",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.unitOfMeasureCode",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.minValue",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.maxValue",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.listValues",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.fileTypes",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.operationId",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.createdAt",
+ $ref: "#/parameters/rowFilter.customFieldTables.table",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStep.createdBy",
+ $ref: "#/parameters/rowFilter.customFieldTables.module",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStep.updatedAt",
+ $ref: "#/parameters/rowFilter.customFieldTables.name",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStep.updatedBy",
+ $ref: "#/parameters/rowFilter.customFieldTables.companyId",
},
{
- $ref: "#/parameters/rowFilter.jobOperationStep.description",
- },
- {
- $ref: "#/parameters/select",
- },
- {
- $ref: "#/parameters/order",
- },
- {
- $ref: "#/parameters/range",
- },
- {
- $ref: "#/parameters/rangeUnit",
- },
- {
- $ref: "#/parameters/offset",
- },
- {
- $ref: "#/parameters/limit",
- },
- {
- $ref: "#/parameters/preferCount",
- },
- ],
- responses: {
- "200": {
- description: "OK",
- schema: {
- items: {
- $ref: "#/definitions/jobOperationStep",
- },
- type: "array",
- },
- },
- "206": {
- description: "Partial Content",
- },
- },
- tags: ["jobOperationStep"],
- },
- post: {
- parameters: [
- {
- $ref: "#/parameters/body.jobOperationStep",
- },
- {
- $ref: "#/parameters/select",
- },
- {
- $ref: "#/parameters/preferPost",
- },
- ],
- responses: {
- "201": {
- description: "Created",
- },
- },
- tags: ["jobOperationStep"],
- },
- delete: {
- parameters: [
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.id",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.name",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.required",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.sortOrder",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.type",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.unitOfMeasureCode",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.minValue",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.maxValue",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.listValues",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.fileTypes",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.operationId",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.createdBy",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.updatedAt",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.updatedBy",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.description",
- },
- {
- $ref: "#/parameters/preferReturn",
- },
- ],
- responses: {
- "204": {
- description: "No Content",
- },
- },
- tags: ["jobOperationStep"],
- },
- patch: {
- parameters: [
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.id",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.name",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.required",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.sortOrder",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.type",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.unitOfMeasureCode",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.minValue",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.maxValue",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.listValues",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.fileTypes",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.operationId",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.createdAt",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.createdBy",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.updatedAt",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.updatedBy",
- },
- {
- $ref: "#/parameters/rowFilter.jobOperationStep.description",
- },
- {
- $ref: "#/parameters/body.jobOperationStep",
- },
- {
- $ref: "#/parameters/preferReturn",
- },
- ],
- responses: {
- "204": {
- description: "No Content",
- },
- },
- tags: ["jobOperationStep"],
- },
- },
- "/customFieldTables": {
- get: {
- parameters: [
- {
- $ref: "#/parameters/rowFilter.customFieldTables.table",
- },
- {
- $ref: "#/parameters/rowFilter.customFieldTables.module",
- },
- {
- $ref: "#/parameters/rowFilter.customFieldTables.name",
- },
- {
- $ref: "#/parameters/rowFilter.customFieldTables.companyId",
- },
- {
- $ref: "#/parameters/rowFilter.customFieldTables.fields",
+ $ref: "#/parameters/rowFilter.customFieldTables.fields",
},
{
$ref: "#/parameters/select",
@@ -60605,6 +60623,115 @@ export default {
},
type: "object",
},
+ quoteOperationStep: {
+ required: [
+ "id",
+ "name",
+ "sortOrder",
+ "type",
+ "operationId",
+ "companyId",
+ "createdAt",
+ "createdBy",
+ ],
+ properties: {
+ id: {
+ default: "public.id('qoa'::text)",
+ description: "Note:\nThis is a Primary Key.<pk/>",
+ format: "text",
+ type: "string",
+ },
+ name: {
+ format: "text",
+ type: "string",
+ },
+ required: {
+ default: false,
+ format: "boolean",
+ type: "boolean",
+ },
+ sortOrder: {
+ default: 1,
+ format: "double precision",
+ type: "number",
+ },
+ type: {
+ enum: [
+ "Value",
+ "Measurement",
+ "Checkbox",
+ "Timestamp",
+ "Person",
+ "List",
+ "File",
+ "Task",
+ ],
+ format: 'public."procedureStepType"',
+ type: "string",
+ },
+ unitOfMeasureCode: {
+ format: "text",
+ type: "string",
+ },
+ minValue: {
+ format: "numeric",
+ type: "number",
+ },
+ maxValue: {
+ format: "numeric",
+ type: "number",
+ },
+ listValues: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
+ fileTypes: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
+ operationId: {
+ description:
+ "Note:\nThis is a Foreign Key to `quoteOperation.id`.<fk table='quoteOperation' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ companyId: {
+ format: "text",
+ type: "string",
+ },
+ createdAt: {
+ default: "now()",
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ createdBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ updatedAt: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ updatedBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ description: {
+ format: "json",
+ },
+ },
+ type: "object",
+ },
purchaseOrderLocations: {
properties: {
id: {
@@ -63422,6 +63549,81 @@ export default {
},
type: "object",
},
+ jobOperationStepRecord: {
+ required: [
+ "jobOperationStepId",
+ "companyId",
+ "createdAt",
+ "createdBy",
+ "id",
+ "index",
+ ],
+ properties: {
+ jobOperationStepId: {
+ description:
+ "Note:\nThis is a Foreign Key to `jobOperationStep.id`.<fk table='jobOperationStep' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ value: {
+ format: "text",
+ type: "string",
+ },
+ numericValue: {
+ format: "numeric",
+ type: "number",
+ },
+ booleanValue: {
+ format: "boolean",
+ type: "boolean",
+ },
+ userValue: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ companyId: {
+ description:
+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ createdAt: {
+ default: "now()",
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ createdBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ updatedAt: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ updatedBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ id: {
+ default: "public.id('step'::text)",
+ description: "Note:\nThis is a Primary Key.<pk/>",
+ format: "text",
+ type: "string",
+ },
+ index: {
+ default: 0,
+ format: "integer",
+ type: "integer",
+ },
+ },
+ type: "object",
+ },
demandForecast: {
required: [
"itemId",
@@ -63501,115 +63703,6 @@ export default {
},
type: "object",
},
- quoteOperationAttribute: {
- required: [
- "id",
- "name",
- "sortOrder",
- "type",
- "operationId",
- "companyId",
- "createdAt",
- "createdBy",
- ],
- properties: {
- id: {
- default: "public.id('qoa'::text)",
- description: "Note:\nThis is a Primary Key.<pk/>",
- format: "text",
- type: "string",
- },
- name: {
- format: "text",
- type: "string",
- },
- required: {
- default: false,
- format: "boolean",
- type: "boolean",
- },
- sortOrder: {
- default: 1,
- format: "double precision",
- type: "number",
- },
- type: {
- enum: [
- "Value",
- "Measurement",
- "Checkbox",
- "Timestamp",
- "Person",
- "List",
- "File",
- "Task",
- ],
- format: 'public."procedureStepType"',
- type: "string",
- },
- unitOfMeasureCode: {
- format: "text",
- type: "string",
- },
- minValue: {
- format: "numeric",
- type: "number",
- },
- maxValue: {
- format: "numeric",
- type: "number",
- },
- listValues: {
- format: "text[]",
- items: {
- type: "string",
- },
- type: "array",
- },
- fileTypes: {
- format: "text[]",
- items: {
- type: "string",
- },
- type: "array",
- },
- operationId: {
- description:
- "Note:\nThis is a Foreign Key to `quoteOperation.id`.<fk table='quoteOperation' column='id'/>",
- format: "text",
- type: "string",
- },
- companyId: {
- format: "text",
- type: "string",
- },
- createdAt: {
- default: "now()",
- format: "timestamp with time zone",
- type: "string",
- },
- createdBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- updatedAt: {
- format: "timestamp with time zone",
- type: "string",
- },
- updatedBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- description: {
- format: "json",
- },
- },
- type: "object",
- },
supplyForecast: {
required: [
"itemId",
@@ -69332,6 +69425,116 @@ export default {
},
type: "object",
},
+ procedureStep: {
+ required: [
+ "id",
+ "procedureId",
+ "name",
+ "sortOrder",
+ "type",
+ "createdAt",
+ "createdBy",
+ ],
+ properties: {
+ id: {
+ default: "public.id()",
+ description: "Note:\nThis is a Primary Key.<pk/>",
+ format: "text",
+ type: "string",
+ },
+ procedureId: {
+ description:
+ "Note:\nThis is a Foreign Key to `procedure.id`.<fk table='procedure' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ name: {
+ format: "text",
+ type: "string",
+ },
+ required: {
+ default: false,
+ format: "boolean",
+ type: "boolean",
+ },
+ sortOrder: {
+ default: 1,
+ format: "double precision",
+ type: "number",
+ },
+ type: {
+ enum: [
+ "Value",
+ "Measurement",
+ "Checkbox",
+ "Timestamp",
+ "Person",
+ "List",
+ "File",
+ "Task",
+ ],
+ format: 'public."procedureStepType"',
+ type: "string",
+ },
+ unitOfMeasureCode: {
+ format: "text",
+ type: "string",
+ },
+ minValue: {
+ format: "numeric",
+ type: "number",
+ },
+ maxValue: {
+ format: "numeric",
+ type: "number",
+ },
+ listValues: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
+ fileTypes: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
+ companyId: {
+ description:
+ "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ createdAt: {
+ default: "now()",
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ createdBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ updatedAt: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ updatedBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ description: {
+ format: "json",
+ },
+ },
+ type: "object",
+ },
documentFavorite: {
required: ["documentId", "userId"],
properties: {
@@ -72885,30 +73088,16 @@ export default {
},
type: "object",
},
- jobOperationStepRecord: {
- required: ["jobOperationStepId", "companyId", "createdAt", "createdBy"],
+ gaugeType: {
+ required: ["id", "name", "customFields", "createdAt", "createdBy"],
properties: {
- jobOperationStepId: {
- description:
- "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `jobOperationStep.id`.<fk table='jobOperationStep' column='id'/>",
- format: "text",
- type: "string",
- },
- value: {
+ id: {
+ default: "public.id('gt'::text)",
+ description: "Note:\nThis is a Primary Key.<pk/>",
format: "text",
type: "string",
},
- numericValue: {
- format: "numeric",
- type: "number",
- },
- booleanValue: {
- format: "boolean",
- type: "boolean",
- },
- userValue: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ name: {
format: "text",
type: "string",
},
@@ -72918,6 +73107,9 @@ export default {
format: "text",
type: "string",
},
+ customFields: {
+ format: "json",
+ },
createdAt: {
default: "now()",
format: "timestamp with time zone",
@@ -72942,11 +73134,20 @@ export default {
},
type: "object",
},
- gaugeType: {
- required: ["id", "name", "customFields", "createdAt", "createdBy"],
+ jobOperationStep: {
+ required: [
+ "id",
+ "name",
+ "sortOrder",
+ "type",
+ "operationId",
+ "companyId",
+ "createdAt",
+ "createdBy",
+ ],
properties: {
id: {
- default: "public.id('gt'::text)",
+ default: "public.id()",
description: "Note:\nThis is a Primary Key.<pk/>",
format: "text",
type: "string",
@@ -72955,14 +73156,65 @@ export default {
format: "text",
type: "string",
},
- companyId: {
+ required: {
+ default: false,
+ format: "boolean",
+ type: "boolean",
+ },
+ sortOrder: {
+ default: 1,
+ format: "double precision",
+ type: "number",
+ },
+ type: {
+ enum: [
+ "Value",
+ "Measurement",
+ "Checkbox",
+ "Timestamp",
+ "Person",
+ "List",
+ "File",
+ "Task",
+ ],
+ format: 'public."procedureStepType"',
+ type: "string",
+ },
+ unitOfMeasureCode: {
+ format: "text",
+ type: "string",
+ },
+ minValue: {
+ format: "numeric",
+ type: "number",
+ },
+ maxValue: {
+ format: "numeric",
+ type: "number",
+ },
+ listValues: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
+ fileTypes: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
+ operationId: {
description:
- "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
+ "Note:\nThis is a Foreign Key to `jobOperation.id`.<fk table='jobOperation' column='id'/>",
format: "text",
type: "string",
},
- customFields: {
- format: "json",
+ companyId: {
+ format: "text",
+ type: "string",
},
createdAt: {
default: "now()",
@@ -72985,6 +73237,9 @@ export default {
format: "text",
type: "string",
},
+ description: {
+ format: "json",
+ },
},
type: "object",
},
@@ -75754,115 +76009,6 @@ export default {
},
type: "object",
},
- methodOperationAttribute: {
- required: [
- "id",
- "name",
- "sortOrder",
- "type",
- "operationId",
- "companyId",
- "createdAt",
- "createdBy",
- ],
- properties: {
- id: {
- default: "public.id()",
- description: "Note:\nThis is a Primary Key.<pk/>",
- format: "text",
- type: "string",
- },
- name: {
- format: "text",
- type: "string",
- },
- required: {
- default: false,
- format: "boolean",
- type: "boolean",
- },
- sortOrder: {
- default: 1,
- format: "double precision",
- type: "number",
- },
- type: {
- enum: [
- "Value",
- "Measurement",
- "Checkbox",
- "Timestamp",
- "Person",
- "List",
- "File",
- "Task",
- ],
- format: 'public."procedureStepType"',
- type: "string",
- },
- unitOfMeasureCode: {
- format: "text",
- type: "string",
- },
- minValue: {
- format: "numeric",
- type: "number",
- },
- maxValue: {
- format: "numeric",
- type: "number",
- },
- listValues: {
- format: "text[]",
- items: {
- type: "string",
- },
- type: "array",
- },
- fileTypes: {
- format: "text[]",
- items: {
- type: "string",
- },
- type: "array",
- },
- operationId: {
- description:
- "Note:\nThis is a Foreign Key to `methodOperation.id`.<fk table='methodOperation' column='id'/>",
- format: "text",
- type: "string",
- },
- companyId: {
- format: "text",
- type: "string",
- },
- createdAt: {
- default: "now()",
- format: "timestamp with time zone",
- type: "string",
- },
- createdBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- updatedAt: {
- format: "timestamp with time zone",
- type: "string",
- },
- updatedBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- description: {
- format: "json",
- },
- },
- type: "object",
- },
procedureParameter: {
required: ["id", "procedureId", "key", "value", "createdAt", "createdBy"],
properties: {
@@ -79049,6 +79195,115 @@ export default {
},
type: "object",
},
+ methodOperationStep: {
+ required: [
+ "id",
+ "name",
+ "sortOrder",
+ "type",
+ "operationId",
+ "companyId",
+ "createdAt",
+ "createdBy",
+ ],
+ properties: {
+ id: {
+ default: "public.id()",
+ description: "Note:\nThis is a Primary Key.<pk/>",
+ format: "text",
+ type: "string",
+ },
+ name: {
+ format: "text",
+ type: "string",
+ },
+ required: {
+ default: false,
+ format: "boolean",
+ type: "boolean",
+ },
+ sortOrder: {
+ default: 1,
+ format: "double precision",
+ type: "number",
+ },
+ type: {
+ enum: [
+ "Value",
+ "Measurement",
+ "Checkbox",
+ "Timestamp",
+ "Person",
+ "List",
+ "File",
+ "Task",
+ ],
+ format: 'public."procedureStepType"',
+ type: "string",
+ },
+ unitOfMeasureCode: {
+ format: "text",
+ type: "string",
+ },
+ minValue: {
+ format: "numeric",
+ type: "number",
+ },
+ maxValue: {
+ format: "numeric",
+ type: "number",
+ },
+ listValues: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
+ fileTypes: {
+ format: "text[]",
+ items: {
+ type: "string",
+ },
+ type: "array",
+ },
+ operationId: {
+ description:
+ "Note:\nThis is a Foreign Key to `methodOperation.id`.<fk table='methodOperation' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ companyId: {
+ format: "text",
+ type: "string",
+ },
+ createdAt: {
+ default: "now()",
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ createdBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ updatedAt: {
+ format: "timestamp with time zone",
+ type: "string",
+ },
+ updatedBy: {
+ description:
+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
+ format: "text",
+ type: "string",
+ },
+ description: {
+ format: "json",
+ },
+ },
+ type: "object",
+ },
tag: {
required: ["name", "table", "companyId", "createdAt", "createdBy"],
properties: {
@@ -80547,116 +80802,6 @@ export default {
},
type: "object",
},
- procedureStep: {
- required: [
- "id",
- "procedureId",
- "name",
- "sortOrder",
- "type",
- "createdAt",
- "createdBy",
- ],
- properties: {
- id: {
- default: "public.id()",
- description: "Note:\nThis is a Primary Key.<pk/>",
- format: "text",
- type: "string",
- },
- procedureId: {
- description:
- "Note:\nThis is a Foreign Key to `procedure.id`.<fk table='procedure' column='id'/>",
- format: "text",
- type: "string",
- },
- name: {
- format: "text",
- type: "string",
- },
- required: {
- default: false,
- format: "boolean",
- type: "boolean",
- },
- sortOrder: {
- default: 1,
- format: "double precision",
- type: "number",
- },
- type: {
- enum: [
- "Value",
- "Measurement",
- "Checkbox",
- "Timestamp",
- "Person",
- "List",
- "File",
- "Task",
- ],
- format: 'public."procedureStepType"',
- type: "string",
- },
- unitOfMeasureCode: {
- format: "text",
- type: "string",
- },
- minValue: {
- format: "numeric",
- type: "number",
- },
- maxValue: {
- format: "numeric",
- type: "number",
- },
- listValues: {
- format: "text[]",
- items: {
- type: "string",
- },
- type: "array",
- },
- fileTypes: {
- format: "text[]",
- items: {
- type: "string",
- },
- type: "array",
- },
- companyId: {
- description:
- "Note:\nThis is a Foreign Key to `company.id`.<fk table='company' column='id'/>",
- format: "text",
- type: "string",
- },
- createdAt: {
- default: "now()",
- format: "timestamp with time zone",
- type: "string",
- },
- createdBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- updatedAt: {
- format: "timestamp with time zone",
- type: "string",
- },
- updatedBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- description: {
- format: "json",
- },
- },
- type: "object",
- },
supplierQuoteFavorite: {
required: ["supplierQuoteId", "userId"],
properties: {
@@ -83833,115 +83978,6 @@ export default {
},
type: "object",
},
- jobOperationStep: {
- required: [
- "id",
- "name",
- "sortOrder",
- "type",
- "operationId",
- "companyId",
- "createdAt",
- "createdBy",
- ],
- properties: {
- id: {
- default: "public.id()",
- description: "Note:\nThis is a Primary Key.<pk/>",
- format: "text",
- type: "string",
- },
- name: {
- format: "text",
- type: "string",
- },
- required: {
- default: false,
- format: "boolean",
- type: "boolean",
- },
- sortOrder: {
- default: 1,
- format: "double precision",
- type: "number",
- },
- type: {
- enum: [
- "Value",
- "Measurement",
- "Checkbox",
- "Timestamp",
- "Person",
- "List",
- "File",
- "Task",
- ],
- format: 'public."procedureStepType"',
- type: "string",
- },
- unitOfMeasureCode: {
- format: "text",
- type: "string",
- },
- minValue: {
- format: "numeric",
- type: "number",
- },
- maxValue: {
- format: "numeric",
- type: "number",
- },
- listValues: {
- format: "text[]",
- items: {
- type: "string",
- },
- type: "array",
- },
- fileTypes: {
- format: "text[]",
- items: {
- type: "string",
- },
- type: "array",
- },
- operationId: {
- description:
- "Note:\nThis is a Foreign Key to `jobOperation.id`.<fk table='jobOperation' column='id'/>",
- format: "text",
- type: "string",
- },
- companyId: {
- format: "text",
- type: "string",
- },
- createdAt: {
- default: "now()",
- format: "timestamp with time zone",
- type: "string",
- },
- createdBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- updatedAt: {
- format: "timestamp with time zone",
- type: "string",
- },
- updatedBy: {
- description:
- "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",
- format: "text",
- type: "string",
- },
- description: {
- format: "json",
- },
- },
- type: "object",
- },
customFieldTables: {
properties: {
table: {
@@ -86843,6 +86879,117 @@ export default {
in: "query",
type: "string",
},
+ "body.quoteOperationStep": {
+ name: "quoteOperationStep",
+ description: "quoteOperationStep",
+ required: false,
+ in: "body",
+ schema: {
+ $ref: "#/definitions/quoteOperationStep",
+ },
+ },
+ "rowFilter.quoteOperationStep.id": {
+ name: "id",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.name": {
+ name: "name",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.required": {
+ name: "required",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.sortOrder": {
+ name: "sortOrder",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.type": {
+ name: "type",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.unitOfMeasureCode": {
+ name: "unitOfMeasureCode",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.minValue": {
+ name: "minValue",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.maxValue": {
+ name: "maxValue",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.listValues": {
+ name: "listValues",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.fileTypes": {
+ name: "fileTypes",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.operationId": {
+ name: "operationId",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.companyId": {
+ name: "companyId",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.createdAt": {
+ name: "createdAt",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.createdBy": {
+ name: "createdBy",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.updatedAt": {
+ name: "updatedAt",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.updatedBy": {
+ name: "updatedBy",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.quoteOperationStep.description": {
+ name: "description",
+ required: false,
+ in: "query",
+ type: "string",
+ },
"body.purchaseOrderLocations": {
name: "purchaseOrderLocations",
description: "purchaseOrderLocations",
@@ -90050,198 +90197,168 @@ export default {
in: "query",
type: "string",
},
- "body.demandForecast": {
- name: "demandForecast",
- description: "demandForecast",
+ "body.jobOperationStepRecord": {
+ name: "jobOperationStepRecord",
+ description: "jobOperationStepRecord",
required: false,
in: "body",
schema: {
- $ref: "#/definitions/demandForecast",
+ $ref: "#/definitions/jobOperationStepRecord",
},
},
- "rowFilter.demandForecast.itemId": {
- name: "itemId",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.demandForecast.locationId": {
- name: "locationId",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.demandForecast.periodId": {
- name: "periodId",
+ "rowFilter.jobOperationStepRecord.jobOperationStepId": {
+ name: "jobOperationStepId",
required: false,
in: "query",
type: "string",
},
- "rowFilter.demandForecast.forecastQuantity": {
- name: "forecastQuantity",
+ "rowFilter.jobOperationStepRecord.value": {
+ name: "value",
required: false,
in: "query",
type: "string",
},
- "rowFilter.demandForecast.forecastMethod": {
- name: "forecastMethod",
+ "rowFilter.jobOperationStepRecord.numericValue": {
+ name: "numericValue",
required: false,
in: "query",
type: "string",
},
- "rowFilter.demandForecast.confidence": {
- name: "confidence",
+ "rowFilter.jobOperationStepRecord.booleanValue": {
+ name: "booleanValue",
required: false,
in: "query",
type: "string",
},
- "rowFilter.demandForecast.notes": {
- name: "notes",
+ "rowFilter.jobOperationStepRecord.userValue": {
+ name: "userValue",
required: false,
in: "query",
type: "string",
},
- "rowFilter.demandForecast.companyId": {
+ "rowFilter.jobOperationStepRecord.companyId": {
name: "companyId",
required: false,
in: "query",
type: "string",
},
- "rowFilter.demandForecast.createdBy": {
- name: "createdBy",
+ "rowFilter.jobOperationStepRecord.createdAt": {
+ name: "createdAt",
required: false,
in: "query",
type: "string",
},
- "rowFilter.demandForecast.createdAt": {
- name: "createdAt",
+ "rowFilter.jobOperationStepRecord.createdBy": {
+ name: "createdBy",
required: false,
in: "query",
type: "string",
},
- "rowFilter.demandForecast.updatedAt": {
+ "rowFilter.jobOperationStepRecord.updatedAt": {
name: "updatedAt",
required: false,
in: "query",
type: "string",
},
- "rowFilter.demandForecast.updatedBy": {
+ "rowFilter.jobOperationStepRecord.updatedBy": {
name: "updatedBy",
required: false,
in: "query",
type: "string",
},
- "body.quoteOperationAttribute": {
- name: "quoteOperationAttribute",
- description: "quoteOperationAttribute",
- required: false,
- in: "body",
- schema: {
- $ref: "#/definitions/quoteOperationAttribute",
- },
- },
- "rowFilter.quoteOperationAttribute.id": {
+ "rowFilter.jobOperationStepRecord.id": {
name: "id",
required: false,
in: "query",
type: "string",
},
- "rowFilter.quoteOperationAttribute.name": {
- name: "name",
+ "rowFilter.jobOperationStepRecord.index": {
+ name: "index",
required: false,
in: "query",
type: "string",
},
- "rowFilter.quoteOperationAttribute.required": {
- name: "required",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.quoteOperationAttribute.sortOrder": {
- name: "sortOrder",
+ "body.demandForecast": {
+ name: "demandForecast",
+ description: "demandForecast",
required: false,
- in: "query",
- type: "string",
+ in: "body",
+ schema: {
+ $ref: "#/definitions/demandForecast",
+ },
},
- "rowFilter.quoteOperationAttribute.type": {
- name: "type",
+ "rowFilter.demandForecast.itemId": {
+ name: "itemId",
required: false,
in: "query",
type: "string",
},
- "rowFilter.quoteOperationAttribute.unitOfMeasureCode": {
- name: "unitOfMeasureCode",
+ "rowFilter.demandForecast.locationId": {
+ name: "locationId",
required: false,
in: "query",
type: "string",
},
- "rowFilter.quoteOperationAttribute.minValue": {
- name: "minValue",
+ "rowFilter.demandForecast.periodId": {
+ name: "periodId",
required: false,
in: "query",
type: "string",
},
- "rowFilter.quoteOperationAttribute.maxValue": {
- name: "maxValue",
+ "rowFilter.demandForecast.forecastQuantity": {
+ name: "forecastQuantity",
required: false,
in: "query",
type: "string",
},
- "rowFilter.quoteOperationAttribute.listValues": {
- name: "listValues",
+ "rowFilter.demandForecast.forecastMethod": {
+ name: "forecastMethod",
required: false,
in: "query",
type: "string",
},
- "rowFilter.quoteOperationAttribute.fileTypes": {
- name: "fileTypes",
+ "rowFilter.demandForecast.confidence": {
+ name: "confidence",
required: false,
in: "query",
type: "string",
},
- "rowFilter.quoteOperationAttribute.operationId": {
- name: "operationId",
+ "rowFilter.demandForecast.notes": {
+ name: "notes",
required: false,
in: "query",
type: "string",
},
- "rowFilter.quoteOperationAttribute.companyId": {
+ "rowFilter.demandForecast.companyId": {
name: "companyId",
required: false,
in: "query",
type: "string",
},
- "rowFilter.quoteOperationAttribute.createdAt": {
- name: "createdAt",
+ "rowFilter.demandForecast.createdBy": {
+ name: "createdBy",
required: false,
in: "query",
type: "string",
},
- "rowFilter.quoteOperationAttribute.createdBy": {
- name: "createdBy",
+ "rowFilter.demandForecast.createdAt": {
+ name: "createdAt",
required: false,
in: "query",
type: "string",
},
- "rowFilter.quoteOperationAttribute.updatedAt": {
+ "rowFilter.demandForecast.updatedAt": {
name: "updatedAt",
required: false,
in: "query",
type: "string",
},
- "rowFilter.quoteOperationAttribute.updatedBy": {
+ "rowFilter.demandForecast.updatedBy": {
name: "updatedBy",
required: false,
in: "query",
type: "string",
},
- "rowFilter.quoteOperationAttribute.description": {
- name: "description",
- required: false,
- in: "query",
- type: "string",
- },
"body.supplyForecast": {
name: "supplyForecast",
description: "supplyForecast",
@@ -96746,6 +96863,117 @@ export default {
in: "query",
type: "string",
},
+ "body.procedureStep": {
+ name: "procedureStep",
+ description: "procedureStep",
+ required: false,
+ in: "body",
+ schema: {
+ $ref: "#/definitions/procedureStep",
+ },
+ },
+ "rowFilter.procedureStep.id": {
+ name: "id",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.procedureId": {
+ name: "procedureId",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.name": {
+ name: "name",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.required": {
+ name: "required",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.sortOrder": {
+ name: "sortOrder",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.type": {
+ name: "type",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.unitOfMeasureCode": {
+ name: "unitOfMeasureCode",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.minValue": {
+ name: "minValue",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.maxValue": {
+ name: "maxValue",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.listValues": {
+ name: "listValues",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.fileTypes": {
+ name: "fileTypes",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.companyId": {
+ name: "companyId",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.createdAt": {
+ name: "createdAt",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.createdBy": {
+ name: "createdBy",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.updatedAt": {
+ name: "updatedAt",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.updatedBy": {
+ name: "updatedBy",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.procedureStep.description": {
+ name: "description",
+ required: false,
+ in: "query",
+ type: "string",
+ },
"body.documentFavorite": {
name: "documentFavorite",
description: "documentFavorite",
@@ -100763,132 +100991,174 @@ export default {
in: "query",
type: "string",
},
- "body.jobOperationStepRecord": {
- name: "jobOperationStepRecord",
- description: "jobOperationStepRecord",
+ "body.gaugeType": {
+ name: "gaugeType",
+ description: "gaugeType",
required: false,
in: "body",
schema: {
- $ref: "#/definitions/jobOperationStepRecord",
+ $ref: "#/definitions/gaugeType",
},
},
- "rowFilter.jobOperationStepRecord.jobOperationStepId": {
- name: "jobOperationStepId",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStepRecord.value": {
- name: "value",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStepRecord.numericValue": {
- name: "numericValue",
+ "rowFilter.gaugeType.id": {
+ name: "id",
required: false,
in: "query",
type: "string",
},
- "rowFilter.jobOperationStepRecord.booleanValue": {
- name: "booleanValue",
+ "rowFilter.gaugeType.name": {
+ name: "name",
required: false,
in: "query",
type: "string",
},
- "rowFilter.jobOperationStepRecord.userValue": {
- name: "userValue",
+ "rowFilter.gaugeType.companyId": {
+ name: "companyId",
required: false,
in: "query",
type: "string",
},
- "rowFilter.jobOperationStepRecord.companyId": {
- name: "companyId",
+ "rowFilter.gaugeType.customFields": {
+ name: "customFields",
required: false,
in: "query",
type: "string",
},
- "rowFilter.jobOperationStepRecord.createdAt": {
+ "rowFilter.gaugeType.createdAt": {
name: "createdAt",
required: false,
in: "query",
type: "string",
},
- "rowFilter.jobOperationStepRecord.createdBy": {
+ "rowFilter.gaugeType.createdBy": {
name: "createdBy",
required: false,
in: "query",
type: "string",
},
- "rowFilter.jobOperationStepRecord.updatedAt": {
+ "rowFilter.gaugeType.updatedAt": {
name: "updatedAt",
required: false,
in: "query",
type: "string",
},
- "rowFilter.jobOperationStepRecord.updatedBy": {
+ "rowFilter.gaugeType.updatedBy": {
name: "updatedBy",
required: false,
in: "query",
type: "string",
},
- "body.gaugeType": {
- name: "gaugeType",
- description: "gaugeType",
+ "body.jobOperationStep": {
+ name: "jobOperationStep",
+ description: "jobOperationStep",
required: false,
in: "body",
schema: {
- $ref: "#/definitions/gaugeType",
+ $ref: "#/definitions/jobOperationStep",
},
},
- "rowFilter.gaugeType.id": {
+ "rowFilter.jobOperationStep.id": {
name: "id",
required: false,
in: "query",
type: "string",
},
- "rowFilter.gaugeType.name": {
+ "rowFilter.jobOperationStep.name": {
name: "name",
required: false,
in: "query",
type: "string",
},
- "rowFilter.gaugeType.companyId": {
- name: "companyId",
+ "rowFilter.jobOperationStep.required": {
+ name: "required",
required: false,
in: "query",
type: "string",
},
- "rowFilter.gaugeType.customFields": {
- name: "customFields",
+ "rowFilter.jobOperationStep.sortOrder": {
+ name: "sortOrder",
required: false,
in: "query",
type: "string",
},
- "rowFilter.gaugeType.createdAt": {
+ "rowFilter.jobOperationStep.type": {
+ name: "type",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationStep.unitOfMeasureCode": {
+ name: "unitOfMeasureCode",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationStep.minValue": {
+ name: "minValue",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationStep.maxValue": {
+ name: "maxValue",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationStep.listValues": {
+ name: "listValues",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationStep.fileTypes": {
+ name: "fileTypes",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationStep.operationId": {
+ name: "operationId",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationStep.companyId": {
+ name: "companyId",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.jobOperationStep.createdAt": {
name: "createdAt",
required: false,
in: "query",
type: "string",
},
- "rowFilter.gaugeType.createdBy": {
+ "rowFilter.jobOperationStep.createdBy": {
name: "createdBy",
required: false,
in: "query",
type: "string",
},
- "rowFilter.gaugeType.updatedAt": {
+ "rowFilter.jobOperationStep.updatedAt": {
name: "updatedAt",
required: false,
in: "query",
type: "string",
},
- "rowFilter.gaugeType.updatedBy": {
+ "rowFilter.jobOperationStep.updatedBy": {
name: "updatedBy",
required: false,
in: "query",
type: "string",
},
+ "rowFilter.jobOperationStep.description": {
+ name: "description",
+ required: false,
+ in: "query",
+ type: "string",
+ },
"body.receiptLine": {
name: "receiptLine",
description: "receiptLine",
@@ -104030,117 +104300,6 @@ export default {
in: "query",
type: "string",
},
- "body.methodOperationAttribute": {
- name: "methodOperationAttribute",
- description: "methodOperationAttribute",
- required: false,
- in: "body",
- schema: {
- $ref: "#/definitions/methodOperationAttribute",
- },
- },
- "rowFilter.methodOperationAttribute.id": {
- name: "id",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.name": {
- name: "name",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.required": {
- name: "required",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.sortOrder": {
- name: "sortOrder",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.type": {
- name: "type",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.unitOfMeasureCode": {
- name: "unitOfMeasureCode",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.minValue": {
- name: "minValue",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.maxValue": {
- name: "maxValue",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.listValues": {
- name: "listValues",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.fileTypes": {
- name: "fileTypes",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.operationId": {
- name: "operationId",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.companyId": {
- name: "companyId",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.createdAt": {
- name: "createdAt",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.createdBy": {
- name: "createdBy",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.updatedAt": {
- name: "updatedAt",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.updatedBy": {
- name: "updatedBy",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.methodOperationAttribute.description": {
- name: "description",
- required: false,
- in: "query",
- type: "string",
- },
"body.procedureParameter": {
name: "procedureParameter",
description: "procedureParameter",
@@ -107753,6 +107912,117 @@ export default {
in: "query",
type: "string",
},
+ "body.methodOperationStep": {
+ name: "methodOperationStep",
+ description: "methodOperationStep",
+ required: false,
+ in: "body",
+ schema: {
+ $ref: "#/definitions/methodOperationStep",
+ },
+ },
+ "rowFilter.methodOperationStep.id": {
+ name: "id",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.name": {
+ name: "name",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.required": {
+ name: "required",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.sortOrder": {
+ name: "sortOrder",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.type": {
+ name: "type",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.unitOfMeasureCode": {
+ name: "unitOfMeasureCode",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.minValue": {
+ name: "minValue",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.maxValue": {
+ name: "maxValue",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.listValues": {
+ name: "listValues",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.fileTypes": {
+ name: "fileTypes",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.operationId": {
+ name: "operationId",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.companyId": {
+ name: "companyId",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.createdAt": {
+ name: "createdAt",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.createdBy": {
+ name: "createdBy",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.updatedAt": {
+ name: "updatedAt",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.updatedBy": {
+ name: "updatedBy",
+ required: false,
+ in: "query",
+ type: "string",
+ },
+ "rowFilter.methodOperationStep.description": {
+ name: "description",
+ required: false,
+ in: "query",
+ type: "string",
+ },
"body.tag": {
name: "tag",
description: "tag",
@@ -109421,117 +109691,6 @@ export default {
in: "query",
type: "string",
},
- "body.procedureStep": {
- name: "procedureStep",
- description: "procedureStep",
- required: false,
- in: "body",
- schema: {
- $ref: "#/definitions/procedureStep",
- },
- },
- "rowFilter.procedureStep.id": {
- name: "id",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.procedureId": {
- name: "procedureId",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.name": {
- name: "name",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.required": {
- name: "required",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.sortOrder": {
- name: "sortOrder",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.type": {
- name: "type",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.unitOfMeasureCode": {
- name: "unitOfMeasureCode",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.minValue": {
- name: "minValue",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.maxValue": {
- name: "maxValue",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.listValues": {
- name: "listValues",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.fileTypes": {
- name: "fileTypes",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.companyId": {
- name: "companyId",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.createdAt": {
- name: "createdAt",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.createdBy": {
- name: "createdBy",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.updatedAt": {
- name: "updatedAt",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.updatedBy": {
- name: "updatedBy",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.procedureStep.description": {
- name: "description",
- required: false,
- in: "query",
- type: "string",
- },
"body.supplierQuoteFavorite": {
name: "supplierQuoteFavorite",
description: "supplierQuoteFavorite",
@@ -113075,117 +113234,6 @@ export default {
in: "query",
type: "string",
},
- "body.jobOperationStep": {
- name: "jobOperationStep",
- description: "jobOperationStep",
- required: false,
- in: "body",
- schema: {
- $ref: "#/definitions/jobOperationStep",
- },
- },
- "rowFilter.jobOperationStep.id": {
- name: "id",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.name": {
- name: "name",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.required": {
- name: "required",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.sortOrder": {
- name: "sortOrder",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.type": {
- name: "type",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.unitOfMeasureCode": {
- name: "unitOfMeasureCode",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.minValue": {
- name: "minValue",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.maxValue": {
- name: "maxValue",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.listValues": {
- name: "listValues",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.fileTypes": {
- name: "fileTypes",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.operationId": {
- name: "operationId",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.companyId": {
- name: "companyId",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.createdAt": {
- name: "createdAt",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.createdBy": {
- name: "createdBy",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.updatedAt": {
- name: "updatedAt",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.updatedBy": {
- name: "updatedBy",
- required: false,
- in: "query",
- type: "string",
- },
- "rowFilter.jobOperationStep.description": {
- name: "description",
- required: false,
- in: "query",
- type: "string",
- },
"body.customFieldTables": {
name: "customFieldTables",
description: "customFieldTables",
diff --git a/packages/database/src/types.ts b/packages/database/src/types.ts
index 238c849b37..d0039966ed 100644
--- a/packages/database/src/types.ts
+++ b/packages/database/src/types.ts
@@ -19780,119 +19780,119 @@ export type Database = {
}
Relationships: [
{
- foreignKeyName: "procedureAttribute_companyId_fkey"
+ foreignKeyName: "procedureStep_companyId_fkey"
columns: ["companyId"]
isOneToOne: false
referencedRelation: "companies"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_companyId_fkey"
+ foreignKeyName: "procedureStep_companyId_fkey"
columns: ["companyId"]
isOneToOne: false
referencedRelation: "company"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_companyId_fkey"
+ foreignKeyName: "procedureStep_companyId_fkey"
columns: ["companyId"]
isOneToOne: false
referencedRelation: "customFieldTables"
referencedColumns: ["companyId"]
},
{
- foreignKeyName: "procedureAttribute_companyId_fkey"
+ foreignKeyName: "procedureStep_companyId_fkey"
columns: ["companyId"]
isOneToOne: false
referencedRelation: "integrations"
referencedColumns: ["companyId"]
},
{
- foreignKeyName: "procedureAttribute_createdBy_fkey"
+ foreignKeyName: "procedureStep_createdBy_fkey"
columns: ["createdBy"]
isOneToOne: false
referencedRelation: "employees"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_createdBy_fkey"
+ foreignKeyName: "procedureStep_createdBy_fkey"
columns: ["createdBy"]
isOneToOne: false
referencedRelation: "employeesAcrossCompanies"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_createdBy_fkey"
+ foreignKeyName: "procedureStep_createdBy_fkey"
columns: ["createdBy"]
isOneToOne: false
referencedRelation: "employeeSummary"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_createdBy_fkey"
+ foreignKeyName: "procedureStep_createdBy_fkey"
columns: ["createdBy"]
isOneToOne: false
referencedRelation: "user"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_createdBy_fkey"
+ foreignKeyName: "procedureStep_createdBy_fkey"
columns: ["createdBy"]
isOneToOne: false
referencedRelation: "userDefaults"
referencedColumns: ["userId"]
},
{
- foreignKeyName: "procedureAttribute_procedureId_fkey"
+ foreignKeyName: "procedureStep_procedureId_fkey"
columns: ["procedureId"]
isOneToOne: false
referencedRelation: "procedure"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_procedureId_fkey"
+ foreignKeyName: "procedureStep_procedureId_fkey"
columns: ["procedureId"]
isOneToOne: false
referencedRelation: "procedures"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_unitOfMeasureCode_fkey"
+ foreignKeyName: "procedureStep_unitOfMeasureCode_fkey"
columns: ["unitOfMeasureCode", "companyId"]
isOneToOne: false
referencedRelation: "unitOfMeasure"
referencedColumns: ["code", "companyId"]
},
{
- foreignKeyName: "procedureAttribute_updatedBy_fkey"
+ foreignKeyName: "procedureStep_updatedBy_fkey"
columns: ["updatedBy"]
isOneToOne: false
referencedRelation: "employees"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_updatedBy_fkey"
+ foreignKeyName: "procedureStep_updatedBy_fkey"
columns: ["updatedBy"]
isOneToOne: false
referencedRelation: "employeesAcrossCompanies"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_updatedBy_fkey"
+ foreignKeyName: "procedureStep_updatedBy_fkey"
columns: ["updatedBy"]
isOneToOne: false
referencedRelation: "employeeSummary"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_updatedBy_fkey"
+ foreignKeyName: "procedureStep_updatedBy_fkey"
columns: ["updatedBy"]
isOneToOne: false
referencedRelation: "user"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_updatedBy_fkey"
+ foreignKeyName: "procedureStep_updatedBy_fkey"
columns: ["updatedBy"]
isOneToOne: false
referencedRelation: "userDefaults"
@@ -40578,14 +40578,14 @@ export type Database = {
},
{
foreignKeyName: "partner_id_fkey"
- columns: ["id"]
+ columns: ["supplierLocationId"]
isOneToOne: false
referencedRelation: "supplierLocation"
referencedColumns: ["id"]
},
{
foreignKeyName: "partner_id_fkey"
- columns: ["supplierLocationId"]
+ columns: ["id"]
isOneToOne: false
referencedRelation: "supplierLocation"
referencedColumns: ["id"]
@@ -41947,14 +41947,14 @@ export type Database = {
Relationships: [
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["supplierCountryCode"]
+ columns: ["customerCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
},
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["customerCountryCode"]
+ columns: ["supplierCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
@@ -44382,14 +44382,14 @@ export type Database = {
Relationships: [
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["customerCountryCode"]
+ columns: ["invoiceCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
},
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["invoiceCountryCode"]
+ columns: ["customerCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
@@ -44925,14 +44925,14 @@ export type Database = {
Relationships: [
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["paymentCountryCode"]
+ columns: ["customerCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
},
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["customerCountryCode"]
+ columns: ["paymentCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
diff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.ts
index 238c849b37..d0039966ed 100644
--- a/packages/database/supabase/functions/lib/types.ts
+++ b/packages/database/supabase/functions/lib/types.ts
@@ -19780,119 +19780,119 @@ export type Database = {
}
Relationships: [
{
- foreignKeyName: "procedureAttribute_companyId_fkey"
+ foreignKeyName: "procedureStep_companyId_fkey"
columns: ["companyId"]
isOneToOne: false
referencedRelation: "companies"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_companyId_fkey"
+ foreignKeyName: "procedureStep_companyId_fkey"
columns: ["companyId"]
isOneToOne: false
referencedRelation: "company"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_companyId_fkey"
+ foreignKeyName: "procedureStep_companyId_fkey"
columns: ["companyId"]
isOneToOne: false
referencedRelation: "customFieldTables"
referencedColumns: ["companyId"]
},
{
- foreignKeyName: "procedureAttribute_companyId_fkey"
+ foreignKeyName: "procedureStep_companyId_fkey"
columns: ["companyId"]
isOneToOne: false
referencedRelation: "integrations"
referencedColumns: ["companyId"]
},
{
- foreignKeyName: "procedureAttribute_createdBy_fkey"
+ foreignKeyName: "procedureStep_createdBy_fkey"
columns: ["createdBy"]
isOneToOne: false
referencedRelation: "employees"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_createdBy_fkey"
+ foreignKeyName: "procedureStep_createdBy_fkey"
columns: ["createdBy"]
isOneToOne: false
referencedRelation: "employeesAcrossCompanies"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_createdBy_fkey"
+ foreignKeyName: "procedureStep_createdBy_fkey"
columns: ["createdBy"]
isOneToOne: false
referencedRelation: "employeeSummary"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_createdBy_fkey"
+ foreignKeyName: "procedureStep_createdBy_fkey"
columns: ["createdBy"]
isOneToOne: false
referencedRelation: "user"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_createdBy_fkey"
+ foreignKeyName: "procedureStep_createdBy_fkey"
columns: ["createdBy"]
isOneToOne: false
referencedRelation: "userDefaults"
referencedColumns: ["userId"]
},
{
- foreignKeyName: "procedureAttribute_procedureId_fkey"
+ foreignKeyName: "procedureStep_procedureId_fkey"
columns: ["procedureId"]
isOneToOne: false
referencedRelation: "procedure"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_procedureId_fkey"
+ foreignKeyName: "procedureStep_procedureId_fkey"
columns: ["procedureId"]
isOneToOne: false
referencedRelation: "procedures"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_unitOfMeasureCode_fkey"
+ foreignKeyName: "procedureStep_unitOfMeasureCode_fkey"
columns: ["unitOfMeasureCode", "companyId"]
isOneToOne: false
referencedRelation: "unitOfMeasure"
referencedColumns: ["code", "companyId"]
},
{
- foreignKeyName: "procedureAttribute_updatedBy_fkey"
+ foreignKeyName: "procedureStep_updatedBy_fkey"
columns: ["updatedBy"]
isOneToOne: false
referencedRelation: "employees"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_updatedBy_fkey"
+ foreignKeyName: "procedureStep_updatedBy_fkey"
columns: ["updatedBy"]
isOneToOne: false
referencedRelation: "employeesAcrossCompanies"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_updatedBy_fkey"
+ foreignKeyName: "procedureStep_updatedBy_fkey"
columns: ["updatedBy"]
isOneToOne: false
referencedRelation: "employeeSummary"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_updatedBy_fkey"
+ foreignKeyName: "procedureStep_updatedBy_fkey"
columns: ["updatedBy"]
isOneToOne: false
referencedRelation: "user"
referencedColumns: ["id"]
},
{
- foreignKeyName: "procedureAttribute_updatedBy_fkey"
+ foreignKeyName: "procedureStep_updatedBy_fkey"
columns: ["updatedBy"]
isOneToOne: false
referencedRelation: "userDefaults"
@@ -40578,14 +40578,14 @@ export type Database = {
},
{
foreignKeyName: "partner_id_fkey"
- columns: ["id"]
+ columns: ["supplierLocationId"]
isOneToOne: false
referencedRelation: "supplierLocation"
referencedColumns: ["id"]
},
{
foreignKeyName: "partner_id_fkey"
- columns: ["supplierLocationId"]
+ columns: ["id"]
isOneToOne: false
referencedRelation: "supplierLocation"
referencedColumns: ["id"]
@@ -41947,14 +41947,14 @@ export type Database = {
Relationships: [
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["supplierCountryCode"]
+ columns: ["customerCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
},
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["customerCountryCode"]
+ columns: ["supplierCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
@@ -44382,14 +44382,14 @@ export type Database = {
Relationships: [
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["customerCountryCode"]
+ columns: ["invoiceCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
},
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["invoiceCountryCode"]
+ columns: ["customerCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
@@ -44925,14 +44925,14 @@ export type Database = {
Relationships: [
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["paymentCountryCode"]
+ columns: ["customerCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
},
{
foreignKeyName: "address_countryCode_fkey"
- columns: ["customerCountryCode"]
+ columns: ["paymentCountryCode"]
isOneToOne: false
referencedRelation: "country"
referencedColumns: ["alpha2"]
diff --git a/packages/database/supabase/migrations/20250915115859_procedure-steps.sql b/packages/database/supabase/migrations/20250915115859_procedure-steps.sql
index 598d10d237..b26091959b 100644
--- a/packages/database/supabase/migrations/20250915115859_procedure-steps.sql
+++ b/packages/database/supabase/migrations/20250915115859_procedure-steps.sql
@@ -1,46 +1,45 @@
+-- First, rename the tables before creating foreign key constraints
+
+-- Drop and recreate RLS policies for jobOperationAttribute before renaming
+DROP POLICY IF EXISTS "SELECT" ON "public"."jobOperationAttribute";
+DROP POLICY IF EXISTS "INSERT" ON "public"."jobOperationAttribute";
+DROP POLICY IF EXISTS "UPDATE" ON "public"."jobOperationAttribute";
+DROP POLICY IF EXISTS "DELETE" ON "public"."jobOperationAttribute";
+
+-- Rename jobOperationAttribute table to jobOperationStep
+ALTER TABLE "jobOperationAttribute" RENAME TO "jobOperationStep";
+
-- Update jobOperationStepRecord to support multiple rows per operation attribute
-ALTER TABLE "jobOperationStepRecord" DROP CONSTRAINT "jobOperationStepRecord_pkey";
+ALTER TABLE "jobOperationAttributeRecord" DROP CONSTRAINT "jobOperationAttributeRecord_pkey";
-- Add an id column as the new primary key
-ALTER TABLE "jobOperationStepRecord" ADD COLUMN "id" TEXT NOT NULL DEFAULT id('step');
+ALTER TABLE "jobOperationAttributeRecord" ADD COLUMN "id" TEXT NOT NULL DEFAULT id('step');
-- Add an index column to order the records
-ALTER TABLE "jobOperationStepRecord" ADD COLUMN "index" INTEGER NOT NULL DEFAULT 0;
+ALTER TABLE "jobOperationAttributeRecord" ADD COLUMN "index" INTEGER NOT NULL DEFAULT 0;
-- Set the new primary key
-ALTER TABLE "jobOperationStepRecord" ADD CONSTRAINT "jobOperationStepRecord_pkey" PRIMARY KEY ("id");
+ALTER TABLE "jobOperationAttributeRecord" ADD CONSTRAINT "jobOperationAttributeRecord_pkey" PRIMARY KEY ("id");
-- Update the column name from jobOperationAttributeId to jobOperationStepId
-ALTER TABLE "jobOperationStepRecord" RENAME COLUMN "jobOperationAttributeId" TO "jobOperationStepId";
+ALTER TABLE "jobOperationAttributeRecord" RENAME COLUMN "jobOperationAttributeId" TO "jobOperationStepId";
-- Drop the existing foreign key constraint
-ALTER TABLE "jobOperationStepRecord" DROP CONSTRAINT IF EXISTS "jobOperationStepRecord_jobOperationAttributeId_fkey";
-
--- Drop the existing foreign key constraint for jobOperationAttributeRecord
-ALTER TABLE "jobOperationStepRecord" DROP CONSTRAINT IF EXISTS "jobOperationAttributeRecord_jobOperationAttributeId_fkey";
+ALTER TABLE "jobOperationAttributeRecord" DROP CONSTRAINT IF EXISTS "jobOperationAttributeRecord_jobOperationAttributeId_fkey";
+-- Rename jobOperationAttributeRecord table to jobOperationStepRecord first
+ALTER TABLE "jobOperationAttributeRecord" RENAME TO "jobOperationStepRecord";
--- Add the new foreign key constraint
+-- Add the new foreign key constraint (now that jobOperationStep table exists)
ALTER TABLE "jobOperationStepRecord" ADD CONSTRAINT "jobOperationStepRecord_jobOperationStepId_fkey"
FOREIGN KEY ("jobOperationStepId") REFERENCES "jobOperationStep"("id") ON DELETE CASCADE;
-
-- Create a unique constraint on jobOperationStepId and index to ensure ordering
ALTER TABLE "jobOperationStepRecord" ADD CONSTRAINT "jobOperationStepRecord_jobOperationStepId_index_fkey" UNIQUE ("jobOperationStepId", "index");
-- Add index for better query performance
CREATE INDEX "jobOperationStepRecord_jobOperationStepId_index_idx" ON "jobOperationStepRecord"("jobOperationStepId", "index");
-
--- Rename jobOperationStep table to jobOperationStep
-ALTER TABLE "jobOperationStep" RENAME TO "jobOperationStep";
-
--- Drop and recreate RLS policies for the renamed table
-DROP POLICY IF EXISTS "SELECT" ON "public"."jobOperationStep";
-DROP POLICY IF EXISTS "INSERT" ON "public"."jobOperationStep";
-DROP POLICY IF EXISTS "UPDATE" ON "public"."jobOperationStep";
-DROP POLICY IF EXISTS "DELETE" ON "public"."jobOperationStep";
-
CREATE POLICY "SELECT" ON "public"."jobOperationStep"
FOR SELECT USING (
"companyId" = ANY (
@@ -82,8 +81,7 @@ FOR DELETE USING (
);
--- Rename the table itself
-ALTER TABLE "jobOperationStepRecord" RENAME TO "jobOperationStepRecord";
+-- Update RLS policies for jobOperationStepRecord (already renamed above)
-- Update RLS policies for the renamed table
DROP POLICY IF EXISTS "SELECT" ON "public"."jobOperationStepRecord";
@@ -131,8 +129,7 @@ FOR DELETE USING (
)
);
--- Rename procedureStepType enum to procedureStepType
-ALTER TYPE "procedureStepType" RENAME TO "procedureStepType";
+-- procedureStepType enum doesn't need renaming (already correct name)
-- Rename methodOperationAttribute to methodOperationStep
@@ -237,8 +234,7 @@ FOR DELETE USING (
--- Rename procedureStep table to procedureStep
-ALTER TABLE "procedureStep" RENAME TO "procedureStep";
+-- procedureStep table doesn't need renaming (already correct name)
-- Update RLS policies for the renamed table
DROP POLICY IF EXISTS "SELECT" ON "public"."procedureStep";
diff --git a/packages/react/src/IconButton.tsx b/packages/react/src/IconButton.tsx
index 887bd60f7e..dab1bdc25a 100644
--- a/packages/react/src/IconButton.tsx
+++ b/packages/react/src/IconButton.tsx
@@ -12,9 +12,9 @@ export interface IconButtonProps
}
const iconSizes = {
- sm: "size-3",
- md: "size-5",
- lg: "size-6",
+ sm: "size-3 flex-shrink-0",
+ md: "size-5 flex-shrink-0",
+ lg: "size-6 flex-shrink-0",
} as const;
const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>(