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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
feat: add attribute values from the shop floor
Brad Barbina060d65d0bed
diff --git a/apps/erp/app/routes/x+/job+/methods+/operation.attribute.new.tsx b/apps/erp/app/routes/x+/job+/methods+/operation.attribute.new.tsxindex f811e96cb5..fd75a24ee5 100644--- a/apps/erp/app/routes/x+/job+/methods+/operation.attribute.new.tsx+++ b/apps/erp/app/routes/x+/job+/methods+/operation.attribute.new.tsx@@ -17,8 +17,6 @@ export async function action({ request }: ActionFunctionArgs) {formData);- console.log({ validation });-if (validation.error) {return validationError(validation.error);}@@ -29,8 +27,6 @@ export async function action({ request }: ActionFunctionArgs) {createdBy: userId,});- console.log({ insert });-if (insert.error) {return json({diff --git a/apps/mes/app/components/AppSidebar.tsx b/apps/mes/app/components/AppSidebar.tsxindex b1de6fc4db..e67f77a60e 100644--- a/apps/mes/app/components/AppSidebar.tsx+++ b/apps/mes/app/components/AppSidebar.tsx@@ -119,7 +119,7 @@ export function TeamSwitcher({size="lg"className="data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground">- <div className="flex aspect-square size-8 items-center justify-center rounded-lg text-sidebar-primary-foreground">+ <div className="flex aspect-square size-8 items-center justify-center rounded-lg text-foreground">{companyLogo ? (<imgsrc={companyLogo}diff --git a/apps/mes/app/components/FileDropzone.tsx b/apps/mes/app/components/FileDropzone.tsxnew file mode 100644index 0000000000..68c5ec31c3--- /dev/null+++ b/apps/mes/app/components/FileDropzone.tsx@@ -0,0 +1,34 @@+import { cn } from "@carbon/react";+import React from "react";+import { useDropzone } from "react-dropzone";+import { LuCloudUpload } from "react-icons/lu";++interface FileDropzoneProps {+ onDrop: (acceptedFiles: File[]) => void;+}++const FileDropzone: React.FC<FileDropzoneProps> = ({ onDrop }) => {+ const { getRootProps, getInputProps, isDragActive } = useDropzone({+ onDrop,+ maxFiles: 1,+ multiple: false,+ });++ return (+ <div+ {...getRootProps()}+ className={cn(+ "mt-4 border-2 border-dashed rounded-md p-6 text-center hover:border-primary hover:bg-primary/10 w-full",+ isDragActive ? "border-primary bg-primary/10" : "border-muted"+ )}+ >+ <input {...getInputProps()} />+ <LuCloudUpload className="mx-auto h-12 w-12 text-muted-foreground" />+ <p className="mt-2 text-sm text-muted-foreground">+ Drag and drop a file here, or click to select a file+ </p>+ </div>+ );+};++export default FileDropzone;diff --git a/apps/mes/app/components/JobOperation.tsx b/apps/mes/app/components/JobOperation.tsxindex 19cad772f7..80d346c3a8 100644--- a/apps/mes/app/components/JobOperation.tsx+++ b/apps/mes/app/components/JobOperation.tsx@@ -5,6 +5,7 @@ import {Avatar,Badge,Button,+ Checkbox,cn,DropdownMenu,DropdownMenuContent,@@ -79,6 +80,7 @@ import {import { useMode, useUser } from "~/hooks";import type { productionEventType } from "~/services/models";import {+ attributeRecordValidator,finishValidator,issueValidator,nonScrapQuantityValidator,@@ -99,11 +101,15 @@ import { path } from "~/utils/path";import { useCarbon } from "@carbon/auth";import {+ Boolean,Combobox,+ DateTimePicker,Hidden,+ Input as InputField,Number,NumberControlled,Select,+ Submit,TextArea,ValidatedForm,} from "@carbon/form";@@ -111,6 +117,7 @@ import {convertDateStringToIsoString,convertKbToString,formatDate,+ formatDateTime,formatDurationMilliseconds,formatRelativeTime,} from "@carbon/utils";@@ -133,16 +140,18 @@ import {LuActivity,LuAxis3D,LuChevronLeft,+ LuCircleCheck,LuClipboardCheck,LuDownload,LuEllipsisVertical,+ LuFile,LuGitBranchPlus,LuHammer,LuHardHat,- LuInfo,- LuList,+ LuPaperclip,LuSend,LuTimer,+ LuTrash,LuTriangleAlert,} from "react-icons/lu";import {@@ -154,27 +163,30 @@ import { getFileType } from "~/services/operations.service";import { useItems, usePeople } from "~/stores";import ItemThumbnail from "./ItemThumbnail";import ScrapReason from "./ScrapReason";+import FileDropzone from "./FileDropzone";+import { useNumberFormatter } from "@react-aria/i18n";type JobOperationProps = {- attributes: Promise<PostgrestResponse<JobOperationAttribute>>;events: ProductionEvent[];files: Promise<StorageItem[]>;materials: Promise<PostgrestResponse<JobMaterial>>;operation: OperationWithDetails;- parameters: Promise<PostgrestResponse<JobOperationParameter>>;+ procedure: Promise<{+ attributes: JobOperationAttribute[];+ parameters: JobOperationParameter[];+ }>;job: Job;thumbnailPath: string | null;workCenter: Promise<PostgrestSingleResponse<{ name: string }>>;};export const JobOperation = ({- attributes,events,files,job,materials,operation: originalOperation,- parameters,+ procedure,thumbnailPath,workCenter,}: JobOperationProps) => {@@ -182,6 +194,12 @@ export const JobOperation = ({const { downloadFile, downloadModel, getFilePath } = useFiles(job);+ const attributeRecordModal = useDisclosure();+ const attributeRecordDeleteModal = useDisclosure();++ const isModalOpen =+ attributeRecordModal.isOpen || attributeRecordDeleteModal.isOpen;+const {active,activeTab,@@ -202,7 +220,7 @@ export const JobOperation = ({setEventType,setSelectedMaterial,setupProductionEvent,- } = useOperation(originalOperation, events);+ } = useOperation(originalOperation, events, isModalOpen);const controlsHeight = useMemo(() => {let operations = 1;@@ -229,10 +247,33 @@ export const JobOperation = ({}: null;+ const [selectedAttribute, setSelectedAttribute] =+ useState<JobOperationAttribute | null>(null);++ const onRecordAttributeRecord = (attribute: JobOperationAttribute) => {+ flushSync(() => {+ setSelectedAttribute(attribute);+ });+ attributeRecordModal.onOpen();+ };++ const onDeleteAttributeRecord = (attribute: JobOperationAttribute) => {+ flushSync(() => {+ setSelectedAttribute(attribute);+ });+ attributeRecordDeleteModal.onOpen();+ };++ const onDeselectAttribute = () => {+ setSelectedAttribute(null);+ attributeRecordModal.onClose();+ attributeRecordDeleteModal.onClose();+ };+return (<><Tabs- key={operation.id}+ key={`operation-${operation.id}`}value={activeTab}onValueChange={setActiveTab}className="w-full h-screen bg-card relative"@@ -272,7 +313,7 @@ export const JobOperation = ({!operation.workInstruction ||Object.keys(operation.workInstruction).length === 0}- value="instructions"+ value="procedure">Procedure</TabsTrigger>@@ -284,7 +325,7 @@ export const JobOperation = ({</HStack></header>- <div className="hidden md:flex items-center justify-between px-4 py-2 h-[var(--header-height)] bg-background gap-4 max-w-[100vw] overflow-x-hidden scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent">+ <div className="hidden md:flex items-center justify-between px-4 lg:pl-6 py-2 h-[var(--header-height)] bg-background gap-4 max-w-[100vw] overflow-x-hidden scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent"><Heading size="h4">{operation.jobReadableId}</Heading><HStack className="justify-end items-center gap-2">@@ -349,7 +390,7 @@ export const JobOperation = ({<TabsContent value="details" className="flex-col hidden md:flex"><ScrollArea className="w-full pr-[calc(var(--controls-width))] h-[calc(100dvh-var(--header-height)*2-var(--controls-height)-2rem)] overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent">- <div className="flex items-start justify-between p-4">+ <div className="flex items-start justify-between p-4 lg:p-6"><HStack>{thumbnailPath && (<ItemThumbnail thumbnailPath={thumbnailPath} size="xl" />@@ -371,14 +412,14 @@ export const JobOperation = ({</div></div><Separator />- <div className="flex items-start p-4">+ <div className="flex items-start p-4 lg:p-6"><div className="grid gap-4 sm:grid-cols-1 md:grid-cols-3 w-full"><div className="rounded-xl border bg-card text-card-foreground shadow"><div className="p-6 flex flex-row items-center justify-between space-y-0 pb-2"><h3 className="tracking-tight text-sm font-medium">Completed</h3>- <FaCheck className="h-3 w-3 text-muted-foreground" />+ <FaCheck className="h-3 w-3 text-emerald-500" /></div><div className="p-6 pt-0"><Heading size="h1">{operation.quantityComplete}</Heading>@@ -389,7 +430,7 @@ export const JobOperation = ({<h3 className="tracking-tight text-sm font-medium">Scrapped</h3>- <FaTrash className="h-3 w-3 text-muted-foreground" />+ <FaTrash className="h-3 w-3 text-red-500" /></div><div className="p-6 pt-0"><Heading size="h1">{operation.quantityScrapped}</Heading>@@ -437,7 +478,7 @@ export const JobOperation = ({<Separator /><div className="flex flex-col items-start justify-between w-full">- <div className="flex flex-col gap-4 p-4 w-full">+ <div className="flex flex-col gap-4 p-4 lg:p-6 w-full"><HStack className="justify-between w-full"><Heading size="h3">Materials</Heading><Button@@ -454,7 +495,10 @@ export const JobOperation = ({Issue Material</Button></HStack>- <Suspense key={operationId} fallback={<TableSkeleton />}>+ <Suspense+ key={`materials-${operationId}`}+ fallback={<TableSkeleton />}+ ><Await resolve={materials}>{(resolvedMaterials) => (<Table className="w-full">@@ -480,7 +524,7 @@ export const JobOperation = ({) : (resolvedMaterials?.data?.map((material) => (<Tr- key={material.id}+ key={`material-${material.id}`}className={cn(material.jobOperationId !== operationId &&"opacity-50 hover:opacity-100"@@ -547,91 +591,93 @@ export const JobOperation = ({</div></div>- <Suspense key={operationId} fallback={<TableSkeleton />}>- <Await resolve={attributes}>- {(resolvedAttributes) =>- Array.isArray(resolvedAttributes?.data) &&- resolvedAttributes?.data.length > 0 && (- <>- <Separator />- <div className="flex flex-col items-start justify-between w-full">- <div className="flex flex-col gap-4 p-4 w-full">- <HStack className="justify-between w-full">- <Heading size="h3">Attributes</Heading>- </HStack>- <div className="border rounded-lg">- {resolvedAttributes.data- .sort(- (a, b) =>- (a.sortOrder ?? 0) - (b.sortOrder ?? 0)- )- .map((a, index) => (- <AttributesListItem- key={a.id}- attribute={a}- operationId={operationId}- className={- index === resolvedAttributes.data.length - 1- ? "border-none"- : ""- }- />- ))}- </div>- </div>- </div>- </>- )- }- </Await>- </Suspense>+ <Suspense key={`attributes-${operationId}`}>+ <Await resolve={procedure}>+ {(resolvedProcedure) => {+ const { attributes, parameters } = resolvedProcedure;- <Suspense key={operationId} fallback={<TableSkeleton />}>- <Await resolve={parameters}>- {(resolvedParameters) =>- Array.isArray(resolvedParameters?.data) &&- resolvedParameters?.data.length > 0 && (+ return (<>- <Separator />- <div className="flex flex-col items-start justify-between w-full">- <div className="flex flex-col gap-4 p-4 w-full">- <HStack className="justify-between w-full">- <Heading size="h3">Parameters</Heading>- </HStack>- <div className="border rounded-lg">- {resolvedParameters.data- .sort((a, b) =>- (a.key ?? "").localeCompare(b.key ?? "")- )- .map((p, index) => (- <ParametersListItem- key={p.id}- parameter={p}- operationId={operationId}- className={- index === resolvedParameters.data.length - 1- ? "border-none"- : ""- }- />- ))}+ {attributes.length > 0 && (+ <>+ <Separator />+ <div className="flex flex-col items-start justify-between w-full">+ <div className="flex flex-col gap-4 p-4 lg:p-6 w-full">+ <HStack className="justify-between w-full">+ <Heading size="h3">Quality Attributes</Heading>+ </HStack>+ <div className="border rounded-lg">+ {attributes+ .sort(+ (a, b) =>+ (a.sortOrder ?? 0) - (b.sortOrder ?? 0)+ )+ .map((a, index) => (+ <AttributesListItem+ key={`attribute-${a.id}`}+ attribute={a}+ onRecord={onRecordAttributeRecord}+ onDelete={onDeleteAttributeRecord}+ operationId={operationId}+ className={+ index === attributes.length - 1+ ? "border-none"+ : ""+ }+ />+ ))}+ </div>+ </div></div>- </div>- </div>+ </>+ )}+ {parameters.length > 0 && (+ <>+ <Separator />+ <div className="flex flex-col items-start justify-between w-full">+ <div className="flex flex-col gap-4 p-4 lg:p-6 w-full">+ <HStack className="justify-between w-full">+ <Heading size="h3">Process Parameters</Heading>+ </HStack>+ <div className="border rounded-lg">+ {parameters+ .sort((a, b) =>+ (a.key ?? "").localeCompare(b.key ?? "")+ )+ .map((p, index) => (+ <ParametersListItem+ key={`parameter-${p.id}`}+ parameter={p}+ operationId={operationId}+ className={+ index === parameters.length - 1+ ? "border-none"+ : ""+ }+ />+ ))}+ </div>+ </div>+ </div>+ </>+ )}</>- )- }+ );+ }}</Await></Suspense><Separator /><div className="flex flex-col items-start justify-between w-full">- <div className="flex flex-col gap-4 p-4 w-full">+ <div className="flex flex-col gap-4 p-4 lg:p-6 w-full"><Heading size="h3">Files</Heading><p className="text-muted-foreground text-sm -mt-2">Files related to the job and the opportunity line.</p>- <Suspense key={operationId} fallback={<TableSkeleton />}>+ <Suspense+ key={`files-${operationId}`}+ fallback={<TableSkeleton />}+ ><Await resolve={files}>{(resolvedFiles) => (<Table className="w-full">@@ -701,7 +747,7 @@ export const JobOperation = ({{resolvedFiles.map((file) => {const type = getFileType(file.name);return (- <Tr key={file.id}>+ <Tr key={`file-${file.id}`}><Td><HStack><FileIcon type={type} />@@ -769,7 +815,7 @@ export const JobOperation = ({<div className="w-full h-[calc(100dvh-var(--header-height)*2)] p-0"><ModelViewerfile={null}- key={operation.itemModelPath ?? job.modelPath}+ key={`model-${operation.itemModelPath ?? job.modelPath}`}url={`/file/preview/private/${operation.itemModelPath ?? job.modelPath}`}@@ -778,22 +824,134 @@ export const JobOperation = ({/></div></TabsContent>- <TabsContent value="instructions" className="flex flex-grow">- <ScrollArea className="w-full h-[calc(100dvh-var(--header-height)*2-var(--controls-height)-2rem)] overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent p-4">- <div- className="prose dark:prose-invert"- dangerouslySetInnerHTML={{- __html: generateHTML(- (operation.workInstruction ?? {}) as JSONContent- ),- }}- />- </ScrollArea>+ <TabsContent value="procedure" className="flex flex-grow">+ <div className="flex h-[calc(100dvh-var(--header-height)*2-var(--controls-height)-2rem)] w-full">+ <Suspense key={`procedure-${operationId}`}>+ <Await resolve={procedure}>+ {(resolvedProcedure) => {+ const { attributes, parameters } = resolvedProcedure;+ if (attributes.length === 0 && parameters.length === 0)+ return null;++ return (+ <ScrollArea className="hidden lg:block w-1/3 border-r shrink-0 overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent">+ <Tabs+ defaultValue="attributes"+ className="w-full flex-1 h-full flex flex-col"+ >+ <div className="w-full py-2 px-4 sticky top-0 z-10">+ <TabsList className="w-full grid grid-cols-2">+ <TabsTrigger value="attributes">+ Attributes+ </TabsTrigger>+ <TabsTrigger value="parameters">+ Parameters+ </TabsTrigger>+ </TabsList>+ </div>+ <TabsContent+ value="attributes"+ className="w-full flex-1 flex flex-col overflow-y-auto data-[state=inactive]:hidden"+ >+ <VStack+ className="w-full flex-1 overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent"+ spacing={0}+ >+ {attributes.length > 0 && (+ <>+ <div className="flex flex-col items-start justify-between w-full">+ <div className="flex flex-col w-full">+ <div>+ {attributes+ .sort(+ (a, b) =>+ (a.sortOrder ?? 0) -+ (b.sortOrder ?? 0)+ )+ .map((a, index) => (+ <AttributesListItem+ key={`attribute-${a.id}`}+ attribute={a}+ compact={true}+ onRecord={onRecordAttributeRecord}+ onDelete={onDeleteAttributeRecord}+ operationId={operationId}+ className={+ index === attributes.length - 1+ ? "border-none"+ : ""+ }+ />+ ))}+ </div>+ </div>+ </div>+ </>+ )}+ </VStack>+ </TabsContent>+ <TabsContent+ value="parameters"+ className="w-full flex-1 flex flex-col overflow-y-auto data-[state=inactive]:hidden"+ >+ <VStack+ className="w-full flex-1 overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent"+ spacing={0}+ >+ {parameters.length > 0 && (+ <>+ <Separator />+ <div className="flex flex-col items-start justify-between w-full">+ <div className="flex flex-col gap-4 w-full">+ <div>+ {parameters+ .sort((a, b) =>+ (a.key ?? "").localeCompare(+ b.key ?? ""+ )+ )+ .map((p, index) => (+ <ParametersListItem+ key={`parameter-${p.id}`}+ parameter={p}+ operationId={operationId}+ className={+ index === parameters.length - 1+ ? "border-none"+ : ""+ }+ />+ ))}+ </div>+ </div>+ </div>+ </>+ )}+ </VStack>+ </TabsContent>+ </Tabs>+ </ScrollArea>+ );+ }}+ </Await>+ </Suspense>++ <ScrollArea className="flex-1 p-4 overflow-y-auto scrollbar-thin scrollbar-track-transparent scrollbar-thumb-accent">+ <div+ className="prose dark:prose-invert"+ dangerouslySetInnerHTML={{+ __html: generateHTML(+ (operation.workInstruction ?? {}) as JSONContent+ ),+ }}+ />+ </ScrollArea>+ </div></TabsContent><TabsContent value="chat"><OperationChat operation={operation} /></TabsContent>- {!["instructions", "chat"].includes(activeTab) && (+ {!["chat", "procedure"].includes(activeTab) && (<Controls><div className="flex flex-col items-center gap-2 p-4"><VStack spacing={2}>@@ -930,7 +1088,7 @@ export const JobOperation = ({)}{!["chat"].includes(activeTab) && (<Times>- <div className="flex items-start p-4">+ <div className=" lg:p-6"><div className="flex flex-col w-full gap-2">{operation.setupDuration > 0 && (<HStack>@@ -1060,14 +1218,27 @@ export const JobOperation = ({)}{/* @ts-ignore */}{finishModal.isOpen && (- <QuantityModal- type="finish"- operation={operation}- setupProductionEvent={setupProductionEvent}- laborProductionEvent={laborProductionEvent}- machineProductionEvent={machineProductionEvent}- onClose={finishModal.onClose}- />+ <Suspense key={`finish-modal-${operationId}`}>+ <Await resolve={procedure}>+ {(resolvedProcedure) => {+ const { attributes } = resolvedProcedure;+ const allAttributesRecorded = attributes.every(+ (a) => a.jobOperationAttributeRecord !== null+ );+ return (+ <QuantityModal+ allAttributesRecorded={allAttributesRecorded}+ type="finish"+ operation={operation}+ setupProductionEvent={setupProductionEvent}+ laborProductionEvent={laborProductionEvent}+ machineProductionEvent={machineProductionEvent}+ onClose={finishModal.onClose}+ />+ );+ }}+ </Await>+ </Suspense>)}{issueModal.isOpen && (<IssueModal@@ -1079,6 +1250,22 @@ export const JobOperation = ({}}/>)}+ {attributeRecordModal.isOpen && selectedAttribute ? (+ <RecordModal+ key={selectedAttribute.id}+ attribute={selectedAttribute}+ onClose={onDeselectAttribute}+ />+ ) : null}++ {attributeRecordDeleteModal.isOpen && selectedAttribute && (+ <DeleteAttributeRecordModal+ onClose={onDeselectAttribute}+ id={selectedAttribute.id}+ title="Delete Attribute Record"+ description="Are you sure you want to delete this attribute record?"+ />+ )}</>);};@@ -1236,7 +1423,7 @@ function OperationChat({ operation }: { operation: OperationWithDetails }) {const isUser = m.createdBy === user.id;return (<div- key={m.id}+ key={`message-${m.id}`}className={cn("flex gap-2 items-end",isUser && "flex-row-reverse"@@ -1304,7 +1491,8 @@ function OperationChat({ operation }: { operation: OperationWithDetails }) {function useOperation(operation: OperationWithDetails,- events: ProductionEvent[]+ events: ProductionEvent[],+ pauseInterval: boolean) {const { carbon, accessToken } = useCarbon();const user = useUser();@@ -1317,6 +1505,15 @@ function useOperation(const finishModal = useDisclosure();const issueModal = useDisclosure();+ // we do this to avoid re-rendering when the modal is open+ const isAnyModalOpen =+ pauseInterval ||+ scrapModal.isOpen ||+ reworkModal.isOpen ||+ completeModal.isOpen ||+ finishModal.isOpen ||+ issueModal.isOpen;+const [selectedMaterial, setSelectedMaterial] = useState<JobMaterial | null>(null);@@ -1507,7 +1704,9 @@ function useOperation(() => {setProgress(getProgress());},- active.setup || active.labor || active.machine ? 1000 : null+ (active.setup || active.labor || active.machine) && !isAnyModalOpen+ ? 1000+ : null);return {@@ -1631,7 +1830,7 @@ function TableSkeleton() {</Thead><Tbody>{[...Array(5)].map((_, index) => (- <Tr key={index}>+ <Tr key={`skeleton-${index}`}><Td><Skeleton className="h-4 w-full" /></Td>@@ -1934,6 +2133,7 @@ function PlayButton({ className, ...props }: ComponentProps<"button">) {}function QuantityModal({+ allAttributesRecorded = true,operation,setupProductionEvent,laborProductionEvent,@@ -1941,6 +2141,7 @@ function QuantityModal({onClose,type,}: {+ allAttributesRecorded?: boolean;operation: OperationWithDetails;setupProductionEvent: ProductionEvent | undefined;laborProductionEvent: ProductionEvent | undefined;@@ -2037,6 +2238,16 @@ function QuantityModal({</AlertDescription></Alert>)}+ {type === "finish" && !allAttributesRecorded && (+ <Alert variant="destructive">+ <LuTriangleAlert className="h-4 w-4" />+ <AlertTitle>Attributes are missing</AlertTitle>+ <AlertDescription>+ Please record all attributes for this operation before+ closing.+ </AlertDescription>+ </Alert>+ )}{type !== "finish" && (<><NumberControlled@@ -2177,38 +2388,35 @@ function IssueModal({const unitOfMeasures = [{ label: "Ohms", value: "OHM" },- { label: "Amps", value: "AMP" },+ { label: "Degrees (F)", value: "F" },{ label: "Volts", value: "VOLT" },{ label: "Hertz", value: "HZ" },];function AttributesListItem({attribute,+ compact = false,operationId,className,+ onRecord,+ onDelete,}: {attribute: JobOperationAttribute;+ compact?: boolean;operationId?: string;className: string;+ onRecord: (attribute: JobOperationAttribute) => void;+ onDelete: (attribute: JobOperationAttribute) => void;}) {- const {- id,- name,- description,- type,- unitOfMeasureCode,- minValue,- maxValue,- listValues,- } = attribute;-- const fetcher = useFetcher<{ success: boolean }>();+ const user = useUser();+ const { name, description, type, unitOfMeasureCode, minValue, maxValue } =+ attribute;if (!operationId) return null;return (- <div className={cn("border-b p-6", className)}>- <div className="flex flex-1 justify-between items-center w-full">- <HStack spacing={4} className="w-1/2">+ <div className={cn("border-b hover:bg-muted/30 p-6", className)}>+ <div className="flex flex-1 justify-between items-center w-full gap-2">+ <HStack spacing={4} className="w-2/3"><HStack spacing={4} className="flex-1"><div className="bg-muted border rounded-full flex items-center justify-center p-2"><ProcedureAttributeTypeIcon type={type} />@@ -2225,7 +2433,7 @@ function AttributesListItem({)}</HStack>{type === "Measurement" && (- <span className="text-xs text-muted-foreground text-right">+ <span className="text-xs text-muted-foreground">{minValue !== null && maxValue !== null? `Must be between ${minValue} and ${maxValue} ${unitOfMeasures.find(@@ -2246,14 +2454,149 @@ function AttributesListItem({</span>)}</VStack>+ {!compact && <PreviewAttributeRecord attribute={attribute} />}</HStack></HStack>- <div className="flex items-center justify-end gap-2"></div>+ <div className="flex items-center justify-end gap-2">+ {attribute.jobOperationAttributeRecord ? (+ <div className="flex items-center gap-2">+ {compact ? (+ <IconButton+ aria-label="Update attribute"+ variant="secondary"+ icon={<LuCircleCheck />}+ isDisabled={+ attribute.jobOperationAttributeRecord?.createdBy !==+ user?.id+ }+ onClick={() => onRecord(attribute)}+ className={cn(+ "text-emerald-500",+ attribute.minValue !== null &&+ attribute.jobOperationAttributeRecord?.numericValue !=+ null &&+ attribute.jobOperationAttributeRecord.numericValue <+ attribute.minValue &&+ "text-red-500",+ attribute.maxValue !== null &&+ attribute.jobOperationAttributeRecord?.numericValue !=+ null &&+ attribute.jobOperationAttributeRecord.numericValue >+ attribute.maxValue &&+ "text-red-500"+ )}+ />+ ) : (+ <Button+ variant="secondary"+ rightIcon={<LuCircleCheck />}+ onClick={() => onRecord(attribute)}+ >+ Update+ </Button>+ )}+ <IconButton+ aria-label="Delete attribute"+ variant="secondary"+ icon={<LuTrash />}+ isDisabled={attribute.createdBy !== user?.id}+ onClick={() => onDelete(attribute)}+ />+ </div>+ ) : compact ? (+ <IconButton+ aria-label="Record attribute"+ variant="secondary"+ icon={<LuCircleCheck />}+ onClick={() => onRecord(attribute)}+ />+ ) : (+ <Button+ variant="secondary"+ rightIcon={<LuCircleCheck />}+ onClick={() => onRecord(attribute)}+ >+ Record+ </Button>+ )}+ </div></div></div>);}+function PreviewAttributeRecord({+ attribute,+}: {+ attribute: JobOperationAttribute;+}) {+ const [employees] = usePeople();+ const numberFormatter = useNumberFormatter();++ if (!attribute.jobOperationAttributeRecord) return null;+ return (+ <div className="min-w-[200px] truncate text-right font-medium">+ {attribute.type === "Checkbox" && (+ <Checkbox+ checked={attribute.jobOperationAttributeRecord.booleanValue ?? false}+ />+ )}+ {attribute.type === "Value" && (+ <p className="text-sm">{attribute.jobOperationAttributeRecord.value}</p>+ )}+ {attribute.type === "Measurement" &&+ typeof attribute.jobOperationAttributeRecord?.numericValue ===+ "number" && (+ <p+ className={cn(+ "text-sm",+ attribute.minValue !== null &&+ attribute.jobOperationAttributeRecord.numericValue <+ attribute.minValue &&+ "text-red-500",+ attribute.maxValue !== null &&+ attribute.jobOperationAttributeRecord.numericValue >+ attribute.maxValue &&+ "text-red-500"+ )}+ >+ {numberFormatter.format(+ attribute.jobOperationAttributeRecord.numericValue+ )}{" "}+ {+ unitOfMeasures.find(+ (u) => u.value === attribute.unitOfMeasureCode+ )?.label+ }+ </p>+ )}+ {attribute.type === "Timestamp" && (+ <p className="text-sm">+ {formatDateTime(attribute.jobOperationAttributeRecord.value ?? "")}+ </p>+ )}+ {attribute.type === "List" && (+ <p className="text-sm">{attribute.jobOperationAttributeRecord.value}</p>+ )}+ {attribute.type === "Person" && (+ <p className="text-sm">+ {+ employees.find(+ (e) => e.id === attribute.jobOperationAttributeRecord?.userValue+ )?.name+ }+ </p>+ )}+ {attribute.type === "File" &&+ attribute.jobOperationAttributeRecord?.value && (+ <div className="flex justify-end gap-2 text-sm">+ <LuPaperclip className="size-4 text-muted-foreground" />+ </div>+ )}+ </div>+ );+}+function ParametersListItem({parameter,operationId,@@ -2267,9 +2610,9 @@ function ParametersListItem({if (!operationId) return null;return (- <div className={cn("border-b p-6", className)}>+ <div className={cn("border-b p-6 hover:bg-muted/30", className)}><div className="flex flex-1 justify-between items-center w-full">- <HStack spacing={4} className="w-1/2">+ <HStack spacing={4} className="w-2/3"><HStack spacing={4} className="flex-1"><div className="bg-muted border rounded-full flex items-center justify-center p-2"><LuActivity />@@ -2278,9 +2621,222 @@ function ParametersListItem({</HStack></HStack><div className="flex items-center justify-end gap-2">- <p className="text-foreground text-sm">{value}</p>+ <p+ className={cn(+ "text-foreground",+ value?.length > 8+ ? "text-sm"+ : "text-2xl font-semibold tracking-tight"+ )}+ >+ {value}+ </p></div></div></div>);}++function RecordModal({+ attribute,+ onClose,+}: {+ attribute: JobOperationAttribute;+ onClose: () => void;+}) {+ const [employees] = usePeople();+ const employeeOptions = useMemo(() => {+ return employees.map((employee) => ({+ label: employee.name,+ value: employee.id,+ }));+ }, [employees]);++ const { carbon } = useCarbon();+ const { company } = useUser();+ const [file, setFile] = useState<File | null>(null);+ const [filePath, setFilePath] = useState<string | null>(null);++ const fetcher = useFetcher<{ success: boolean }>();++ const onDrop = async (acceptedFiles: File[]) => {+ if (!acceptedFiles[0] || !carbon) return;+ const fileUpload = acceptedFiles[0];++ setFile(fileUpload);+ toast.info(`Uploading ${fileUpload.name}`);++ const fileName = `${company.id}/job/${attribute.operationId}/${fileUpload.name}`;++ const upload = await carbon?.storage+ .from("private")+ .upload(fileName, fileUpload, {+ cacheControl: `${12 * 60 * 60}`,+ upsert: true,+ });++ if (upload.error) {+ toast.error(`Failed to upload file: ${fileUpload.name}`);+ } else if (upload.data?.path) {+ toast.success(`Uploaded: ${fileUpload.name}`);+ setFilePath(upload.data.path);+ }+ };++ useEffect(() => {+ if (fetcher.data?.success) {+ onClose();+ }+ }, [fetcher.data?.success, onClose]);++ return (+ <Modal+ open+ onOpenChange={(open) => {+ if (!open) {+ onClose();+ }+ }}+ >+ <ModalContent>+ <ValidatedForm+ method="post"+ validator={attributeRecordValidator}+ action={path.to.record}+ onSubmit={onClose}+ defaultValues={{+ jobOperationAttributeId: attribute.id,+ value:+ attribute?.jobOperationAttributeRecord?.value ??+ (attribute.type === "Timestamp" ? new Date().toISOString() : ""),+ numericValue:+ attribute?.jobOperationAttributeRecord?.numericValue ?? 0,+ userValue: attribute?.jobOperationAttributeRecord?.userValue ?? "",+ booleanValue:+ attribute?.jobOperationAttributeRecord?.booleanValue ?? false,+ }}+ fetcher={fetcher}+ >+ <ModalHeader>+ <ModalTitle>{attribute.name}</ModalTitle>+ <ModalDescription>{attribute.description}</ModalDescription>+ </ModalHeader>+ <ModalBody>+ <Hidden name="jobOperationAttributeId" />+ {attribute.type === "File" && (+ <Hidden name="value" value={filePath ?? ""} />+ )}+ <VStack spacing={4}>+ {attribute.type === "Value" && (+ <InputField name="value" label="" />+ )}+ {attribute.type === "Measurement" && (+ <Number name="numericValue" label="" />+ )}+ {attribute.type === "Timestamp" && (+ <DateTimePicker name="value" label="" />+ )}+ {attribute.type === "Checkbox" && (+ <Boolean name="booleanValue" label="" />+ )}+ {attribute.type === "Person" && (+ <Combobox name="userValue" label="" options={employeeOptions} />+ )}+ {attribute.type === "List" && (+ <Select+ name="value"+ label=""+ options={(attribute.listValues ?? []).map((value) => ({+ label: value,+ value,+ }))}+ />+ )}+ {attribute.type === "File" &&+ (file ? (+ <div className="flex flex-col gap-2 items-center justify-center py-6 w-full">+ <LuFile className="size-10 text-muted-foreground" />+ <p className="text-sm text-muted-foreground">{file.name}</p>+ <Button+ variant="secondary"+ size="sm"+ onClick={() => {+ setFile(null);+ setFilePath(null);+ }}+ >+ Remove+ </Button>+ </div>+ ) : (+ <FileDropzone onDrop={onDrop} />+ ))}+ </VStack>+ </ModalBody>+ <ModalFooter>+ <Button variant="secondary" onClick={onClose}>+ Cancel+ </Button>+ <Submit+ isLoading={fetcher.state !== "idle"}+ isDisabled={+ fetcher.state !== "idle" ||+ (attribute.type === "File" && !filePath)+ }+ rightIcon={<LuCircleCheck />}+ type="submit"+ >+ Record+ </Submit>+ </ModalFooter>+ </ValidatedForm>+ </ModalContent>+ </Modal>+ );+}++function DeleteAttributeRecordModal({+ onClose,+ id,+ title,+ description,+}: {+ onClose: () => void;+ id: string;+ title: string;+ description: string;+}) {+ const fetcher = useFetcher<{ success: boolean }>();++ useEffect(() => {+ if (fetcher.data?.success) {+ onClose();+ }+ }, [fetcher.data?.success, onClose]);++ return (+ <Modal open={true} onOpenChange={onClose}>+ <ModalContent>+ <ModalHeader>+ <ModalTitle>{title}</ModalTitle>+ <ModalDescription>{description}</ModalDescription>+ </ModalHeader>+ <ModalFooter>+ <Button variant="secondary" onClick={onClose}>+ Cancel+ </Button>+ <fetcher.Form method="post" action={path.to.recordDelete(id)}>+ <Button+ isLoading={fetcher.state !== "idle"}+ isDisabled={fetcher.state !== "idle"}+ type="submit"+ variant="destructive"+ >+ Delete+ </Button>+ </fetcher.Form>+ </ModalFooter>+ </ModalContent>+ </Modal>+ );+}diff --git a/apps/mes/app/routes/x+/operation.$operationId.tsx b/apps/mes/app/routes/x+/operation.$operationId.tsxindex 3db603a665..fb1b53e54d 100644--- a/apps/mes/app/routes/x+/operation.$operationId.tsx+++ b/apps/mes/app/routes/x+/operation.$operationId.tsx@@ -8,12 +8,11 @@ import { flash } from "@carbon/auth/session.server";import type { LoaderFunctionArgs } from "@vercel/remix";import { defer, redirect } from "@vercel/remix";import {- getJobAttributesByOperationId,getJobByOperationId,getJobFiles,getJobMaterialsByOperationId,getJobOperationById,- getJobParametersByOperationId,+ getJobOperationProcedure,getProductionEventsForJobOperation,getProductionQuantitiesForJobOperation,getThumbnailPathByItemId,@@ -68,10 +67,6 @@ export async function loader({ request, params }: LoaderFunctionArgs) {);return defer({- attributes: getJobAttributesByOperationId(- serviceRole,- operation.data?.[0].id- ),events: events.data ?? [],quantities: (quantities.data ?? []).reduce((acc, curr) => {@@ -95,10 +90,7 @@ export async function loader({ request, params }: LoaderFunctionArgs) {),materials: getJobMaterialsByOperationId(serviceRole, operation.data?.[0]),operation: makeDurations(operation.data?.[0]) as OperationWithDetails,- parameters: getJobParametersByOperationId(- serviceRole,- operation.data?.[0].id- ),+ procedure: getJobOperationProcedure(serviceRole, operation.data?.[0].id),workCenter: getWorkCenter(serviceRole, operation.data?.[0].workCenterId),thumbnailPath,});@@ -109,25 +101,23 @@ export default function OperationRoute() {if (!operationId) throw new Error("Operation ID is required");const {- attributes,events,job,files,materials,operation,- parameters,+ procedure,workCenter,thumbnailPath,} = useLoaderData<typeof loader>();return (<JobOperation- attributes={attributes}events={events}files={files}materials={materials}operation={operation}- parameters={parameters}+ procedure={procedure}job={job}thumbnailPath={thumbnailPath}workCenter={workCenter}diff --git a/apps/mes/app/routes/x+/record.$id.delete.tsx b/apps/mes/app/routes/x+/record.$id.delete.tsxnew file mode 100644index 0000000000..e30b1d369d--- /dev/null+++ b/apps/mes/app/routes/x+/record.$id.delete.tsx@@ -0,0 +1,48 @@+import {+ assertIsPost,+ error,+ getCarbonServiceRole,+ notFound,+ success,+} from "@carbon/auth";+import { requirePermissions } from "@carbon/auth/auth.server";+import { flash } from "@carbon/auth/session.server";+import type { ActionFunctionArgs } from "@vercel/remix";+import { json } from "@vercel/remix";+import { deleteAttributeRecord } from "~/services/operations.service";++export async function action({ params, request }: ActionFunctionArgs) {+ assertIsPost(request);+ const { companyId, userId } = await requirePermissions(request, {});+ const { id } = params;++ if (!id) {+ throw notFound("Attribute ID is required");+ }++ const serviceRole = await getCarbonServiceRole();++ const attributeDelete = await deleteAttributeRecord(serviceRole, {+ id,+ companyId,+ userId,+ });++ console.log(attributeDelete);++ if (attributeDelete.error) {+ console.log(attributeDelete.error);+ return json(+ { success: false },+ await flash(+ request,+ error(attributeDelete.error, "Failed to delete attribute")+ )+ );+ }++ return json(+ { success: true },+ await flash(request, success("Attribute record deleted successfully"))+ );+}diff --git a/apps/mes/app/routes/x+/record.tsx b/apps/mes/app/routes/x+/record.tsxnew file mode 100644index 0000000000..766d8a2cf9--- /dev/null+++ b/apps/mes/app/routes/x+/record.tsx@@ -0,0 +1,49 @@+import {+ assertIsPost,+ error,+ getCarbonServiceRole,+ 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 { ActionFunctionArgs } from "@vercel/remix";+import { json } from "@vercel/remix";+import { attributeRecordValidator } from "~/services/models";+import { insertAttributeRecord } from "~/services/operations.service";++export async function action({ request }: ActionFunctionArgs) {+ assertIsPost(request);+ const { companyId, userId } = await requirePermissions(request, {});++ const formData = await request.formData();+ const validation = await validator(attributeRecordValidator).validate(+ formData+ );+ const serviceRole = await getCarbonServiceRole();++ if (validation.error) {+ return validationError(validation.error);+ }++ const attributeRecord = await insertAttributeRecord(serviceRole, {+ ...validation.data,+ companyId,+ createdBy: userId,+ });++ if (attributeRecord.error) {+ return json(+ {},+ await flash(+ request,+ error(attributeRecord.error, "Failed to record attribute")+ )+ );+ }++ return json(+ { success: true },+ await flash(request, success("Attribute recorded successfully"))+ );+}diff --git a/apps/mes/app/services/models.ts b/apps/mes/app/services/models.tsindex cfb2b18471..b592275638 100644--- a/apps/mes/app/services/models.ts+++ b/apps/mes/app/services/models.ts@@ -40,6 +40,32 @@ export const jobOperationStatus = ["Canceled",] as const;+export const attributeRecordValidator = z+ .object({+ jobOperationAttributeId: z.string(),+ value: zfd.text(z.string().optional()),+ numericValue: zfd.numeric(z.number().optional()),+ booleanValue: zfd.checkbox().optional(),+ userValue: zfd.text(z.string().optional()),+ })+ .refine(+ (data) => {+ if (+ data.value === undefined &&+ data.numericValue === undefined &&+ data.booleanValue === undefined &&+ data.userValue === undefined+ ) {+ return false;+ }+ return true;+ },+ {+ path: ["value", "numericValue"],+ message: "Value is required",+ }+ );+export const issueValidator = z.object({itemId: z.string().min(1, { message: "Item is required" }),jobOperationId: z.string().min(1, { message: "Job Operation is required" }),diff --git a/apps/mes/app/services/operations.service.ts b/apps/mes/app/services/operations.service.tsindex dbc4574921..ea40a8df57 100644--- a/apps/mes/app/services/operations.service.ts+++ b/apps/mes/app/services/operations.service.ts@@ -3,6 +3,7 @@ import type { PostgrestResponse, SupabaseClient } from "@supabase/supabase-js";import type { z } from "zod";import { sanitize } from "~/utils/supabase";import type {+ attributeRecordValidator,documentTypes,nonScrapQuantityValidator,productionEventValidator,@@ -10,6 +11,18 @@ import type {} from "./models";import type { BaseOperationWithDetails, Job, StorageItem } from "./types";+export async function deleteAttributeRecord(+ client: SupabaseClient<Database>,+ args: { id: string; companyId: string; userId: string }+) {+ return client+ .from("jobOperationAttributeRecord")+ .delete()+ .eq("jobOperationAttributeId", args.id)+ .eq("companyId", args.companyId)+ .eq("createdBy", args.userId);+}+export async function finishJobOperation(client: SupabaseClient<Database>,args: {@@ -128,13 +141,34 @@ export function getFileType(fileName: string): (typeof documentTypes)[number] {return "Other";}+export async function getJobOperationProcedure(+ client: SupabaseClient<Database>,+ operationId: string+) {+ const [attributes, parameters] = await Promise.all([+ client+ .from("jobOperationAttribute")+ .select("*, jobOperationAttributeRecord(*)")+ .eq("operationId", operationId),+ client+ .from("jobOperationParameter")+ .select("*")+ .eq("operationId", operationId),+ ]);++ return {+ attributes: attributes.data ?? [],+ parameters: parameters.data ?? [],+ };+}+export async function getJobAttributesByOperationId(client: SupabaseClient<Database>,operationId: string) {return client.from("jobOperationAttribute")- .select("*")+ .select("*, jobOperationAttributeRecord(*)").eq("operationId", operationId);}@@ -377,6 +411,19 @@ export async function getWorkCentersByCompany(.order("name", { ascending: true });}+export async function insertAttributeRecord(+ client: SupabaseClient<Database>,+ data: z.infer<typeof attributeRecordValidator> & {+ companyId: string;+ createdBy: string;+ }+) {+ return client.from("jobOperationAttributeRecord").upsert(data, {+ onConflict: "jobOperationAttributeId",+ ignoreDuplicates: false,+ });+}+export async function insertReworkQuantity(client: SupabaseClient<Database>,data: z.infer<typeof nonScrapQuantityValidator> & {diff --git a/apps/mes/app/services/types.ts b/apps/mes/app/services/types.tsindex 4c14be57d6..a5e79db1b3 100644--- a/apps/mes/app/services/types.ts+++ b/apps/mes/app/services/types.ts@@ -1,11 +1,10 @@import type { FileObject } from "@supabase/storage-js";import type {- getJobAttributesByOperationId,getJobByOperationId,getJobMaterialsByOperationId,getJobOperationById,+ getJobOperationProcedure,getJobOperationsByWorkCenter,- getJobParametersByOperationId,getLocationsByCompany,getProductionEventsForJobOperation,getProductionQuantitiesForJobOperation,@@ -40,11 +39,11 @@ export type JobMaterial = NonNullable<>[number];export type JobOperationAttribute = NonNullable<- Awaited<ReturnType<typeof getJobAttributesByOperationId>>["data"]+ Awaited<ReturnType<typeof getJobOperationProcedure>>["attributes"]>[number];export type JobOperationParameter = NonNullable<- Awaited<ReturnType<typeof getJobParametersByOperationId>>["data"]+ Awaited<ReturnType<typeof getJobOperationProcedure>>["parameters"]>[number];export type Operation = BaseOperation & Durations;diff --git a/apps/mes/app/styles/tailwind.css b/apps/mes/app/styles/tailwind.cssindex 0084b3d756..11d77ac675 100644--- a/apps/mes/app/styles/tailwind.css+++ b/apps/mes/app/styles/tailwind.css@@ -24,25 +24,24 @@--sidebar-width: 240px;--base-shadow-color: rgb(0 0 0 / 0.16);- --button-drop-shadow: rgb(0 0 0 / 0.4);- --danger-drop-shadow: rgb(127 29 29 / 0.8);- --button-shadow: 0px -1px 0px 0px rgb(255 255 255 / 0.04),- 0px 0px 0px 1px rgb(255 255 255 / 0.12), 0px 0px 1px 0px rgb(0 0 0 / 0.04),- 0px 2px 2px 0px rgb(0 0 0 / 0.04), 0px 4px 2px 0px rgb(0 0 0 / 0.04),- 0px 6px 3px 0px rgb(0 0 0 / 0.04);- --popover-shadow: 0px 0px 4px rgba(0, 0, 0, 0.08),- 0px 0px 10px rgba(0, 0, 0, 0.12), 0px 0px 24px rgba(0, 0, 0, 0.16),- 0px 0px 80px rgba(0, 0, 0, 0.2);- --button-base-shadow: 0px 0px 0px 0.5px rgb(0 0 0 / 0.2),- 0px 1px 1px -1px rgb(0 0 0 / 0.08), 0px 2px 2px -1px rgb(0 0 0 / 0.08),- inset 0px 0.5px 0px rgb(255 255 255 / 0.04),- inset 0px 0px 1px 0px rgb(255 255 255 / 0.12),- inset 0px -4px 8px -4px rgb(0 0 0 / 0.12);- --button-primary-shadow: 0px 1px 1px -1px rgb(0 0 0 / 0.08),+ --base-shadow-color: rgb(0 0 0 / 0.05);++ --button-drop-shadow: rgb(0 0 0 / 0);+ --button-shadow: inset 0px 1px 0px 0px rgb(255 255 255 / 1),+ 0px 0px 0px 1px rgb(0 0 0 / 0.06), 0px 1px 0px 0px rgb(0 0 0 / 0.08),+ 0px 2px 2px 0px rgb(0 0 0 / 0.04), 0px 3px 3px 0px rgb(0 0 0 / 0.02),+ 0px 4px 4px 0px rgb(0 0 0 / 0.01);+ --popover-shadow: 0px 0px 3.6px rgba(0, 0, 0, 0.04),+ 0px 0px 10px rgba(0, 0, 0, 0.04), 0px 0px 24.1px rgba(0, 0, 0, 0.05),+ 0px 0px 80px rgba(0, 0, 0, 0.08);+ --dropdown-item-shadow: inset 0px 1px 0px rgb(255 255 255 / 0.02),+ inset 0px 0px 0px 1px rgb(255 255 255 / 0.02),+ 0px 1px 2px rgb(0 0 0 / 0.12), 0px 2px 4px rgb(0 0 0 / 0.08),+ 0px 0px 0px 0.5px rgb(0 0 0 / 0.24);+ --button-base-shadow: 0px 1px 1px -1px rgb(0 0 0 / 0.08),0px 2px 2px -1px rgb(0 0 0 / 0.08), 0px 0px 0px 1px rgb(0 0 0 / 0.06),- inset 0px 1px 0px #fff, inset 0px 0px 2px 1px #fff,- inset 0px 1px 2px rgb(0 0 0 / 0.06),- inset 0px -4px 8px -4px rgb(0 0 0 / 0.06);+ inset 0px 1px 0px #fff, inset 0px 1px 2px 1px #fff,+ inset 0px 1px 2px rgb(0 0 0 / 0.06);}.dark {diff --git a/apps/mes/app/utils/path.ts b/apps/mes/app/utils/path.tsindex 658d7e9498..a2e5297383 100644--- a/apps/mes/app/utils/path.ts+++ b/apps/mes/app/utils/path.ts@@ -40,6 +40,8 @@ export const path = {operations: `${x}/operations?saved=1`,productionEvent: `${x}/event`,recent: `${x}/recent`,+ record: `${x}/record`,+ recordDelete: (id: string) => generatePath(`${x}/record/${id}/delete`),refreshSession: "/refresh-session",requestAccess: "/request-access",rework: `${x}/rework`,diff --git a/packages/database/src/swagger-docs-schema.ts b/packages/database/src/swagger-docs-schema.tsindex fd08827085..52488c711c 100644--- a/packages/database/src/swagger-docs-schema.ts+++ b/packages/database/src/swagger-docs-schema.ts@@ -6219,6 +6219,9 @@ export default {{$ref: "#/parameters/rowFilter.jobOperation.tags",},+ {+ $ref: "#/parameters/rowFilter.jobOperation.procedureId",+ },{$ref: "#/parameters/select",},@@ -6389,6 +6392,9 @@ export default {{$ref: "#/parameters/rowFilter.jobOperation.tags",},+ {+ $ref: "#/parameters/rowFilter.jobOperation.procedureId",+ },{$ref: "#/parameters/preferReturn",},@@ -6513,6 +6519,9 @@ export default {{$ref: "#/parameters/rowFilter.jobOperation.tags",},+ {+ $ref: "#/parameters/rowFilter.jobOperation.procedureId",+ },{$ref: "#/parameters/body.jobOperation",},@@ -20653,262 +20662,271 @@ export default {$ref: "#/parameters/rowFilter.methodOperation.tags",},{- $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/methodOperation",- },- type: "array",- },- },- "206": {- description: "Partial Content",- },- },- tags: ["methodOperation"],- },- post: {- parameters: [- {- $ref: "#/parameters/body.methodOperation",- },- {- $ref: "#/parameters/select",- },- {- $ref: "#/parameters/preferPost",- },- ],- responses: {- "201": {- description: "Created",- },- },- tags: ["methodOperation"],- },- delete: {- parameters: [- {- $ref: "#/parameters/rowFilter.methodOperation.id",- },- {- $ref: "#/parameters/rowFilter.methodOperation.makeMethodId",- },- {- $ref: "#/parameters/rowFilter.methodOperation.order",- },- {- $ref: "#/parameters/rowFilter.methodOperation.operationOrder",- },- {- $ref: "#/parameters/rowFilter.methodOperation.description",- },- {- $ref: "#/parameters/rowFilter.methodOperation.companyId",- },- {- $ref: "#/parameters/rowFilter.methodOperation.createdAt",- },- {- $ref: "#/parameters/rowFilter.methodOperation.createdBy",- },- {- $ref: "#/parameters/rowFilter.methodOperation.updatedAt",- },- {- $ref: "#/parameters/rowFilter.methodOperation.updatedBy",- },- {- $ref: "#/parameters/rowFilter.methodOperation.customFields",- },- {- $ref: "#/parameters/rowFilter.methodOperation.processId",- },- {- $ref: "#/parameters/rowFilter.methodOperation.workCenterId",- },- {- $ref: "#/parameters/rowFilter.methodOperation.setupTime",- },- {- $ref: "#/parameters/rowFilter.methodOperation.setupUnit",- },- {- $ref: "#/parameters/rowFilter.methodOperation.laborTime",- },- {- $ref: "#/parameters/rowFilter.methodOperation.laborUnit",- },- {- $ref: "#/parameters/rowFilter.methodOperation.machineTime",- },- {- $ref: "#/parameters/rowFilter.methodOperation.machineUnit",- },- {- $ref: "#/parameters/rowFilter.methodOperation.operationType",- },- {- $ref: "#/parameters/rowFilter.methodOperation.operationSupplierProcessId",- },- {- $ref: "#/parameters/rowFilter.methodOperation.workInstruction",- },- {- $ref: "#/parameters/rowFilter.methodOperation.tags",- },- {- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",- },- },- tags: ["methodOperation"],- },- patch: {- parameters: [- {- $ref: "#/parameters/rowFilter.methodOperation.id",- },- {- $ref: "#/parameters/rowFilter.methodOperation.makeMethodId",- },- {- $ref: "#/parameters/rowFilter.methodOperation.order",- },- {- $ref: "#/parameters/rowFilter.methodOperation.operationOrder",- },- {- $ref: "#/parameters/rowFilter.methodOperation.description",- },- {- $ref: "#/parameters/rowFilter.methodOperation.companyId",- },- {- $ref: "#/parameters/rowFilter.methodOperation.createdAt",- },- {- $ref: "#/parameters/rowFilter.methodOperation.createdBy",- },- {- $ref: "#/parameters/rowFilter.methodOperation.updatedAt",- },- {- $ref: "#/parameters/rowFilter.methodOperation.updatedBy",- },- {- $ref: "#/parameters/rowFilter.methodOperation.customFields",- },- {- $ref: "#/parameters/rowFilter.methodOperation.processId",- },- {- $ref: "#/parameters/rowFilter.methodOperation.workCenterId",- },- {- $ref: "#/parameters/rowFilter.methodOperation.setupTime",- },- {- $ref: "#/parameters/rowFilter.methodOperation.setupUnit",- },- {- $ref: "#/parameters/rowFilter.methodOperation.laborTime",- },- {- $ref: "#/parameters/rowFilter.methodOperation.laborUnit",- },- {- $ref: "#/parameters/rowFilter.methodOperation.machineTime",- },- {- $ref: "#/parameters/rowFilter.methodOperation.machineUnit",- },- {- $ref: "#/parameters/rowFilter.methodOperation.operationType",- },- {- $ref: "#/parameters/rowFilter.methodOperation.operationSupplierProcessId",- },- {- $ref: "#/parameters/rowFilter.methodOperation.workInstruction",- },- {- $ref: "#/parameters/rowFilter.methodOperation.tags",- },- {- $ref: "#/parameters/body.methodOperation",- },- {- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",- },- },- tags: ["methodOperation"],- },- },- "/salesOrderPayment": {- get: {- parameters: [- {- $ref: "#/parameters/rowFilter.salesOrderPayment.id",- },- {- $ref: "#/parameters/rowFilter.salesOrderPayment.invoiceCustomerId",- },- {- $ref: "#/parameters/rowFilter.salesOrderPayment.invoiceCustomerLocationId",- },- {- $ref: "#/parameters/rowFilter.salesOrderPayment.invoiceCustomerContactId",- },- {- $ref: "#/parameters/rowFilter.salesOrderPayment.paymentTermId",- },- {- $ref: "#/parameters/rowFilter.salesOrderPayment.paymentComplete",- },- {- $ref: "#/parameters/rowFilter.salesOrderPayment.companyId",- },- {- $ref: "#/parameters/rowFilter.salesOrderPayment.updatedAt",- },- {- $ref: "#/parameters/rowFilter.salesOrderPayment.updatedBy",- },- {- $ref: "#/parameters/rowFilter.salesOrderPayment.customFields",+ $ref: "#/parameters/rowFilter.methodOperation.procedureId",+ },+ {+ $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/methodOperation",+ },+ type: "array",+ },+ },+ "206": {+ description: "Partial Content",+ },+ },+ tags: ["methodOperation"],+ },+ post: {+ parameters: [+ {+ $ref: "#/parameters/body.methodOperation",+ },+ {+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/preferPost",+ },+ ],+ responses: {+ "201": {+ description: "Created",+ },+ },+ tags: ["methodOperation"],+ },+ delete: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.methodOperation.id",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.makeMethodId",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.order",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.operationOrder",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.description",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.customFields",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.processId",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.workCenterId",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.setupTime",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.setupUnit",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.laborTime",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.laborUnit",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.machineTime",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.machineUnit",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.operationType",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.operationSupplierProcessId",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.workInstruction",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.tags",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.procedureId",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["methodOperation"],+ },+ patch: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.methodOperation.id",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.makeMethodId",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.order",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.operationOrder",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.description",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.customFields",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.processId",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.workCenterId",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.setupTime",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.setupUnit",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.laborTime",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.laborUnit",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.machineTime",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.machineUnit",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.operationType",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.operationSupplierProcessId",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.workInstruction",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.tags",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperation.procedureId",+ },+ {+ $ref: "#/parameters/body.methodOperation",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["methodOperation"],+ },+ },+ "/salesOrderPayment": {+ get: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.id",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.invoiceCustomerId",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.invoiceCustomerLocationId",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.invoiceCustomerContactId",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.paymentTermId",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.paymentComplete",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.salesOrderPayment.customFields",},{$ref: "#/parameters/select",@@ -23046,6 +23064,177 @@ export default {tags: ["quoteOperationsWithMakeMethods"],},},+ "/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"],+ },+ patch: {+ 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/body.procedureParameter",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["procedureParameter"],+ },+ },"/shipmentLines": {get: {parameters: [@@ -27792,50 +27981,59 @@ export default {tags: ["purchaseOrderDelivery"],},},- "/warehouse": {+ "/methodOperationAttribute": {get: {parameters: [{- $ref: "#/parameters/rowFilter.warehouse.id",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.id",},{- $ref: "#/parameters/rowFilter.warehouse.name",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.name",},{- $ref: "#/parameters/rowFilter.warehouse.locationId",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.description",},{- $ref: "#/parameters/rowFilter.warehouse.requiresPick",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.required",},{- $ref: "#/parameters/rowFilter.warehouse.requiresPutAway",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.sortOrder",},{- $ref: "#/parameters/rowFilter.warehouse.requiresBin",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.type",},{- $ref: "#/parameters/rowFilter.warehouse.requiresReceive",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.unitOfMeasureCode",},{- $ref: "#/parameters/rowFilter.warehouse.requiresShipment",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.minValue",},{- $ref: "#/parameters/rowFilter.warehouse.active",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.maxValue",},{- $ref: "#/parameters/rowFilter.warehouse.companyId",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.listValues",},{- $ref: "#/parameters/rowFilter.warehouse.createdBy",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.fileTypes",},{- $ref: "#/parameters/rowFilter.warehouse.createdAt",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.operationId",},{- $ref: "#/parameters/rowFilter.warehouse.updatedBy",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.companyId",},{- $ref: "#/parameters/rowFilter.warehouse.updatedAt",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperationAttribute.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperationAttribute.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperationAttribute.updatedBy",},{$ref: "#/parameters/select",@@ -27864,7 +28062,7 @@ export default {description: "OK",schema: {items: {- $ref: "#/definitions/warehouse",+ $ref: "#/definitions/methodOperationAttribute",},type: "array",},@@ -27873,12 +28071,12 @@ export default {description: "Partial Content",},},- tags: ["warehouse"],+ tags: ["methodOperationAttribute"],},post: {parameters: [{- $ref: "#/parameters/body.warehouse",+ $ref: "#/parameters/body.methodOperationAttribute",},{$ref: "#/parameters/select",@@ -27892,51 +28090,60 @@ export default {description: "Created",},},- tags: ["warehouse"],+ tags: ["methodOperationAttribute"],},delete: {parameters: [{- $ref: "#/parameters/rowFilter.warehouse.id",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.id",},{- $ref: "#/parameters/rowFilter.warehouse.name",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.name",},{- $ref: "#/parameters/rowFilter.warehouse.locationId",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.description",},{- $ref: "#/parameters/rowFilter.warehouse.requiresPick",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.required",},{- $ref: "#/parameters/rowFilter.warehouse.requiresPutAway",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.sortOrder",},{- $ref: "#/parameters/rowFilter.warehouse.requiresBin",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.type",},{- $ref: "#/parameters/rowFilter.warehouse.requiresReceive",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.unitOfMeasureCode",},{- $ref: "#/parameters/rowFilter.warehouse.requiresShipment",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.minValue",},{- $ref: "#/parameters/rowFilter.warehouse.active",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.maxValue",},{- $ref: "#/parameters/rowFilter.warehouse.companyId",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.listValues",},{- $ref: "#/parameters/rowFilter.warehouse.createdBy",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.fileTypes",},{- $ref: "#/parameters/rowFilter.warehouse.createdAt",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.operationId",},{- $ref: "#/parameters/rowFilter.warehouse.updatedBy",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.companyId",},{- $ref: "#/parameters/rowFilter.warehouse.updatedAt",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperationAttribute.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperationAttribute.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperationAttribute.updatedBy",},{$ref: "#/parameters/preferReturn",@@ -27947,54 +28154,63 @@ export default {description: "No Content",},},- tags: ["warehouse"],+ tags: ["methodOperationAttribute"],},patch: {parameters: [{- $ref: "#/parameters/rowFilter.warehouse.id",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.id",},{- $ref: "#/parameters/rowFilter.warehouse.name",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.name",},{- $ref: "#/parameters/rowFilter.warehouse.locationId",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.description",},{- $ref: "#/parameters/rowFilter.warehouse.requiresPick",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.required",},{- $ref: "#/parameters/rowFilter.warehouse.requiresPutAway",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.sortOrder",},{- $ref: "#/parameters/rowFilter.warehouse.requiresBin",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.type",},{- $ref: "#/parameters/rowFilter.warehouse.requiresReceive",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.unitOfMeasureCode",},{- $ref: "#/parameters/rowFilter.warehouse.requiresShipment",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.minValue",},{- $ref: "#/parameters/rowFilter.warehouse.active",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.maxValue",},{- $ref: "#/parameters/rowFilter.warehouse.companyId",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.listValues",},{- $ref: "#/parameters/rowFilter.warehouse.createdBy",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.fileTypes",},{- $ref: "#/parameters/rowFilter.warehouse.createdAt",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.operationId",},{- $ref: "#/parameters/rowFilter.warehouse.updatedBy",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.companyId",},{- $ref: "#/parameters/rowFilter.warehouse.updatedAt",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.createdAt",},{- $ref: "#/parameters/body.warehouse",+ $ref: "#/parameters/rowFilter.methodOperationAttribute.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperationAttribute.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.methodOperationAttribute.updatedBy",+ },+ {+ $ref: "#/parameters/body.methodOperationAttribute",},{$ref: "#/parameters/preferReturn",@@ -28005,65 +28221,62 @@ export default {description: "No Content",},},- tags: ["warehouse"],+ tags: ["methodOperationAttribute"],},},- "/itemLedger": {+ "/quoteOperationAttribute": {get: {parameters: [{- $ref: "#/parameters/rowFilter.itemLedger.id",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.id",},{- $ref: "#/parameters/rowFilter.itemLedger.entryNumber",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.name",},{- $ref: "#/parameters/rowFilter.itemLedger.postingDate",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.description",},{- $ref: "#/parameters/rowFilter.itemLedger.entryType",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.required",},{- $ref: "#/parameters/rowFilter.itemLedger.documentType",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.sortOrder",},{- $ref: "#/parameters/rowFilter.itemLedger.documentId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.type",},{- $ref: "#/parameters/rowFilter.itemLedger.externalDocumentId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.unitOfMeasureCode",},{- $ref: "#/parameters/rowFilter.itemLedger.itemId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.minValue",},{- $ref: "#/parameters/rowFilter.itemLedger.itemReadableId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.maxValue",},{- $ref: "#/parameters/rowFilter.itemLedger.locationId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.listValues",},{- $ref: "#/parameters/rowFilter.itemLedger.shelfId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.fileTypes",},{- $ref: "#/parameters/rowFilter.itemLedger.quantity",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.operationId",},{- $ref: "#/parameters/rowFilter.itemLedger.companyId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.companyId",},{- $ref: "#/parameters/rowFilter.itemLedger.createdAt",- },- {- $ref: "#/parameters/rowFilter.itemLedger.createdBy",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.createdAt",},{- $ref: "#/parameters/rowFilter.itemLedger.documentLineId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.createdBy",},{- $ref: "#/parameters/rowFilter.itemLedger.serialNumber",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.updatedAt",},{- $ref: "#/parameters/rowFilter.itemLedger.batchNumber",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.updatedBy",},{$ref: "#/parameters/select",@@ -28092,7 +28305,7 @@ export default {description: "OK",schema: {items: {- $ref: "#/definitions/itemLedger",+ $ref: "#/definitions/quoteOperationAttribute",},type: "array",},@@ -28101,12 +28314,12 @@ export default {description: "Partial Content",},},- tags: ["itemLedger"],+ tags: ["quoteOperationAttribute"],},post: {parameters: [{- $ref: "#/parameters/body.itemLedger",+ $ref: "#/parameters/body.quoteOperationAttribute",},{$ref: "#/parameters/select",@@ -28120,63 +28333,60 @@ export default {description: "Created",},},- tags: ["itemLedger"],+ tags: ["quoteOperationAttribute"],},delete: {parameters: [{- $ref: "#/parameters/rowFilter.itemLedger.id",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.id",},{- $ref: "#/parameters/rowFilter.itemLedger.entryNumber",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.name",},{- $ref: "#/parameters/rowFilter.itemLedger.postingDate",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.description",},{- $ref: "#/parameters/rowFilter.itemLedger.entryType",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.required",},{- $ref: "#/parameters/rowFilter.itemLedger.documentType",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.sortOrder",},{- $ref: "#/parameters/rowFilter.itemLedger.documentId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.type",},{- $ref: "#/parameters/rowFilter.itemLedger.externalDocumentId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.unitOfMeasureCode",},{- $ref: "#/parameters/rowFilter.itemLedger.itemId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.minValue",},{- $ref: "#/parameters/rowFilter.itemLedger.itemReadableId",- },- {- $ref: "#/parameters/rowFilter.itemLedger.locationId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.maxValue",},{- $ref: "#/parameters/rowFilter.itemLedger.shelfId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.listValues",},{- $ref: "#/parameters/rowFilter.itemLedger.quantity",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.fileTypes",},{- $ref: "#/parameters/rowFilter.itemLedger.companyId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.operationId",},{- $ref: "#/parameters/rowFilter.itemLedger.createdAt",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.companyId",},{- $ref: "#/parameters/rowFilter.itemLedger.createdBy",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.createdAt",},{- $ref: "#/parameters/rowFilter.itemLedger.documentLineId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.createdBy",},{- $ref: "#/parameters/rowFilter.itemLedger.serialNumber",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.updatedAt",},{- $ref: "#/parameters/rowFilter.itemLedger.batchNumber",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.updatedBy",},{$ref: "#/parameters/preferReturn",@@ -28187,66 +28397,63 @@ export default {description: "No Content",},},- tags: ["itemLedger"],+ tags: ["quoteOperationAttribute"],},patch: {parameters: [{- $ref: "#/parameters/rowFilter.itemLedger.id",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.id",},{- $ref: "#/parameters/rowFilter.itemLedger.entryNumber",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.name",},{- $ref: "#/parameters/rowFilter.itemLedger.postingDate",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.description",},{- $ref: "#/parameters/rowFilter.itemLedger.entryType",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.required",},{- $ref: "#/parameters/rowFilter.itemLedger.documentType",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.sortOrder",},{- $ref: "#/parameters/rowFilter.itemLedger.documentId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.type",},{- $ref: "#/parameters/rowFilter.itemLedger.externalDocumentId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.unitOfMeasureCode",},{- $ref: "#/parameters/rowFilter.itemLedger.itemId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.minValue",},{- $ref: "#/parameters/rowFilter.itemLedger.itemReadableId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.maxValue",},{- $ref: "#/parameters/rowFilter.itemLedger.locationId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.listValues",},{- $ref: "#/parameters/rowFilter.itemLedger.shelfId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.fileTypes",},{- $ref: "#/parameters/rowFilter.itemLedger.quantity",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.operationId",},{- $ref: "#/parameters/rowFilter.itemLedger.companyId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.companyId",},{- $ref: "#/parameters/rowFilter.itemLedger.createdAt",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.createdAt",},{- $ref: "#/parameters/rowFilter.itemLedger.createdBy",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.createdBy",},{- $ref: "#/parameters/rowFilter.itemLedger.documentLineId",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.updatedAt",},{- $ref: "#/parameters/rowFilter.itemLedger.serialNumber",+ $ref: "#/parameters/rowFilter.quoteOperationAttribute.updatedBy",},{- $ref: "#/parameters/rowFilter.itemLedger.batchNumber",- },- {- $ref: "#/parameters/body.itemLedger",+ $ref: "#/parameters/body.quoteOperationAttribute",},{$ref: "#/parameters/preferReturn",@@ -28257,17 +28464,485 @@ export default {description: "No Content",},},- tags: ["itemLedger"],+ tags: ["quoteOperationAttribute"],},},- "/salesRfqFavorite": {+ "/warehouse": {get: {parameters: [{- $ref: "#/parameters/rowFilter.salesRfqFavorite.rfqId",+ $ref: "#/parameters/rowFilter.warehouse.id",},{- $ref: "#/parameters/rowFilter.salesRfqFavorite.userId",+ $ref: "#/parameters/rowFilter.warehouse.name",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.locationId",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.requiresPick",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.requiresPutAway",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.requiresBin",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.requiresReceive",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.requiresShipment",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.active",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.updatedAt",+ },+ {+ $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/warehouse",+ },+ type: "array",+ },+ },+ "206": {+ description: "Partial Content",+ },+ },+ tags: ["warehouse"],+ },+ post: {+ parameters: [+ {+ $ref: "#/parameters/body.warehouse",+ },+ {+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/preferPost",+ },+ ],+ responses: {+ "201": {+ description: "Created",+ },+ },+ tags: ["warehouse"],+ },+ delete: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.warehouse.id",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.name",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.locationId",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.requiresPick",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.requiresPutAway",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.requiresBin",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.requiresReceive",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.requiresShipment",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.active",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.updatedAt",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["warehouse"],+ },+ patch: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.warehouse.id",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.name",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.locationId",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.requiresPick",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.requiresPutAway",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.requiresBin",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.requiresReceive",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.requiresShipment",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.active",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.updatedBy",+ },+ {+ $ref: "#/parameters/rowFilter.warehouse.updatedAt",+ },+ {+ $ref: "#/parameters/body.warehouse",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["warehouse"],+ },+ },+ "/itemLedger": {+ get: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.itemLedger.id",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.entryNumber",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.postingDate",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.entryType",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.documentType",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.documentId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.externalDocumentId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.itemId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.itemReadableId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.locationId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.shelfId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.quantity",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.documentLineId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.serialNumber",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.batchNumber",+ },+ {+ $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/itemLedger",+ },+ type: "array",+ },+ },+ "206": {+ description: "Partial Content",+ },+ },+ tags: ["itemLedger"],+ },+ post: {+ parameters: [+ {+ $ref: "#/parameters/body.itemLedger",+ },+ {+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/preferPost",+ },+ ],+ responses: {+ "201": {+ description: "Created",+ },+ },+ tags: ["itemLedger"],+ },+ delete: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.itemLedger.id",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.entryNumber",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.postingDate",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.entryType",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.documentType",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.documentId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.externalDocumentId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.itemId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.itemReadableId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.locationId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.shelfId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.quantity",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.documentLineId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.serialNumber",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.batchNumber",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["itemLedger"],+ },+ patch: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.itemLedger.id",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.entryNumber",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.postingDate",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.entryType",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.documentType",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.documentId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.externalDocumentId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.itemId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.itemReadableId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.locationId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.shelfId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.quantity",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.documentLineId",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.serialNumber",+ },+ {+ $ref: "#/parameters/rowFilter.itemLedger.batchNumber",+ },+ {+ $ref: "#/parameters/body.itemLedger",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["itemLedger"],+ },+ },+ "/salesRfqFavorite": {+ get: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.salesRfqFavorite.rfqId",+ },+ {+ $ref: "#/parameters/rowFilter.salesRfqFavorite.userId",},{$ref: "#/parameters/select",@@ -28422,7 +29097,337 @@ export default {description: "OK",schema: {items: {- $ref: "#/definitions/externalLink",+ $ref: "#/definitions/externalLink",+ },+ type: "array",+ },+ },+ "206": {+ description: "Partial Content",+ },+ },+ tags: ["externalLink"],+ },+ post: {+ parameters: [+ {+ $ref: "#/parameters/body.externalLink",+ },+ {+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/preferPost",+ },+ ],+ responses: {+ "201": {+ description: "Created",+ },+ },+ tags: ["externalLink"],+ },+ delete: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.externalLink.id",+ },+ {+ $ref: "#/parameters/rowFilter.externalLink.documentType",+ },+ {+ $ref: "#/parameters/rowFilter.externalLink.documentId",+ },+ {+ $ref: "#/parameters/rowFilter.externalLink.customerId",+ },+ {+ $ref: "#/parameters/rowFilter.externalLink.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.externalLink.expiresAt",+ },+ {+ $ref: "#/parameters/rowFilter.externalLink.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.externalLink.supplierId",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["externalLink"],+ },+ patch: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.externalLink.id",+ },+ {+ $ref: "#/parameters/rowFilter.externalLink.documentType",+ },+ {+ $ref: "#/parameters/rowFilter.externalLink.documentId",+ },+ {+ $ref: "#/parameters/rowFilter.externalLink.customerId",+ },+ {+ $ref: "#/parameters/rowFilter.externalLink.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.externalLink.expiresAt",+ },+ {+ $ref: "#/parameters/rowFilter.externalLink.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.externalLink.supplierId",+ },+ {+ $ref: "#/parameters/body.externalLink",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["externalLink"],+ },+ },+ "/quoteOperationTool": {+ get: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.id",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.operationId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.toolId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.quantity",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.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/quoteOperationTool",+ },+ type: "array",+ },+ },+ "206": {+ description: "Partial Content",+ },+ },+ tags: ["quoteOperationTool"],+ },+ post: {+ parameters: [+ {+ $ref: "#/parameters/body.quoteOperationTool",+ },+ {+ $ref: "#/parameters/select",+ },+ {+ $ref: "#/parameters/preferPost",+ },+ ],+ responses: {+ "201": {+ description: "Created",+ },+ },+ tags: ["quoteOperationTool"],+ },+ delete: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.id",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.operationId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.toolId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.quantity",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.updatedBy",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["quoteOperationTool"],+ },+ patch: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.id",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.operationId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.toolId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.quantity",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.quoteOperationTool.updatedBy",+ },+ {+ $ref: "#/parameters/body.quoteOperationTool",+ },+ {+ $ref: "#/parameters/preferReturn",+ },+ ],+ responses: {+ "204": {+ description: "No Content",+ },+ },+ tags: ["quoteOperationTool"],+ },+ },+ "/supplierContact": {+ get: {+ parameters: [+ {+ $ref: "#/parameters/rowFilter.supplierContact.id",+ },+ {+ $ref: "#/parameters/rowFilter.supplierContact.supplierId",+ },+ {+ $ref: "#/parameters/rowFilter.supplierContact.contactId",+ },+ {+ $ref: "#/parameters/rowFilter.supplierContact.supplierLocationId",+ },+ {+ $ref: "#/parameters/rowFilter.supplierContact.userId",+ },+ {+ $ref: "#/parameters/rowFilter.supplierContact.customFields",+ },+ {+ $ref: "#/parameters/rowFilter.supplierContact.tags",+ },+ {+ $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/supplierContact",},type: "array",},@@ -28431,12 +29436,12 @@ export default {description: "Partial Content",},},- tags: ["externalLink"],+ tags: ["supplierContact"],},post: {parameters: [{- $ref: "#/parameters/body.externalLink",+ $ref: "#/parameters/body.supplierContact",},{$ref: "#/parameters/select",@@ -28450,33 +29455,30 @@ export default {description: "Created",},},- tags: ["externalLink"],+ tags: ["supplierContact"],},delete: {parameters: [{- $ref: "#/parameters/rowFilter.externalLink.id",- },- {- $ref: "#/parameters/rowFilter.externalLink.documentType",+ $ref: "#/parameters/rowFilter.supplierContact.id",},{- $ref: "#/parameters/rowFilter.externalLink.documentId",+ $ref: "#/parameters/rowFilter.supplierContact.supplierId",},{- $ref: "#/parameters/rowFilter.externalLink.customerId",+ $ref: "#/parameters/rowFilter.supplierContact.contactId",},{- $ref: "#/parameters/rowFilter.externalLink.createdAt",+ $ref: "#/parameters/rowFilter.supplierContact.supplierLocationId",},{- $ref: "#/parameters/rowFilter.externalLink.expiresAt",+ $ref: "#/parameters/rowFilter.supplierContact.userId",},{- $ref: "#/parameters/rowFilter.externalLink.companyId",+ $ref: "#/parameters/rowFilter.supplierContact.customFields",},{- $ref: "#/parameters/rowFilter.externalLink.supplierId",+ $ref: "#/parameters/rowFilter.supplierContact.tags",},{$ref: "#/parameters/preferReturn",@@ -28487,36 +29489,33 @@ export default {description: "No Content",},},- tags: ["externalLink"],+ tags: ["supplierContact"],},patch: {parameters: [{- $ref: "#/parameters/rowFilter.externalLink.id",- },- {- $ref: "#/parameters/rowFilter.externalLink.documentType",+ $ref: "#/parameters/rowFilter.supplierContact.id",},{- $ref: "#/parameters/rowFilter.externalLink.documentId",+ $ref: "#/parameters/rowFilter.supplierContact.supplierId",},{- $ref: "#/parameters/rowFilter.externalLink.customerId",+ $ref: "#/parameters/rowFilter.supplierContact.contactId",},{- $ref: "#/parameters/rowFilter.externalLink.createdAt",+ $ref: "#/parameters/rowFilter.supplierContact.supplierLocationId",},{- $ref: "#/parameters/rowFilter.externalLink.expiresAt",+ $ref: "#/parameters/rowFilter.supplierContact.userId",},{- $ref: "#/parameters/rowFilter.externalLink.companyId",+ $ref: "#/parameters/rowFilter.supplierContact.customFields",},{- $ref: "#/parameters/rowFilter.externalLink.supplierId",+ $ref: "#/parameters/rowFilter.supplierContact.tags",},{- $ref: "#/parameters/body.externalLink",+ $ref: "#/parameters/body.supplierContact",},{$ref: "#/parameters/preferReturn",@@ -28527,38 +29526,26 @@ export default {description: "No Content",},},- tags: ["externalLink"],+ tags: ["supplierContact"],},},- "/quoteOperationTool": {+ "/integrations": {get: {parameters: [{- $ref: "#/parameters/rowFilter.quoteOperationTool.id",- },- {- $ref: "#/parameters/rowFilter.quoteOperationTool.operationId",- },- {- $ref: "#/parameters/rowFilter.quoteOperationTool.toolId",- },- {- $ref: "#/parameters/rowFilter.quoteOperationTool.quantity",- },- {- $ref: "#/parameters/rowFilter.quoteOperationTool.companyId",+ $ref: "#/parameters/rowFilter.integrations.id",},{- $ref: "#/parameters/rowFilter.quoteOperationTool.createdAt",+ $ref: "#/parameters/rowFilter.integrations.jsonschema",},{- $ref: "#/parameters/rowFilter.quoteOperationTool.createdBy",+ $ref: "#/parameters/rowFilter.integrations.companyId",},{- $ref: "#/parameters/rowFilter.quoteOperationTool.updatedAt",+ $ref: "#/parameters/rowFilter.integrations.metadata",},{- $ref: "#/parameters/rowFilter.quoteOperationTool.updatedBy",+ $ref: "#/parameters/rowFilter.integrations.active",},{$ref: "#/parameters/select",@@ -28587,7 +29574,7 @@ export default {description: "OK",schema: {items: {- $ref: "#/definitions/quoteOperationTool",+ $ref: "#/definitions/integrations",},type: "array",},@@ -28596,134 +29583,62 @@ export default {description: "Partial Content",},},- tags: ["quoteOperationTool"],- },- post: {- parameters: [- {- $ref: "#/parameters/body.quoteOperationTool",- },- {- $ref: "#/parameters/select",- },- {- $ref: "#/parameters/preferPost",- },- ],- responses: {- "201": {- description: "Created",- },- },- tags: ["quoteOperationTool"],- },- delete: {- parameters: [- {- $ref: "#/parameters/rowFilter.quoteOperationTool.id",- },- {- $ref: "#/parameters/rowFilter.quoteOperationTool.operationId",- },- {- $ref: "#/parameters/rowFilter.quoteOperationTool.toolId",- },- {- $ref: "#/parameters/rowFilter.quoteOperationTool.quantity",- },- {- $ref: "#/parameters/rowFilter.quoteOperationTool.companyId",- },- {- $ref: "#/parameters/rowFilter.quoteOperationTool.createdAt",- },- {- $ref: "#/parameters/rowFilter.quoteOperationTool.createdBy",- },- {- $ref: "#/parameters/rowFilter.quoteOperationTool.updatedAt",- },- {- $ref: "#/parameters/rowFilter.quoteOperationTool.updatedBy",- },- {- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",- },- },- tags: ["quoteOperationTool"],+ tags: ["integrations"],},- patch: {+ },+ "/jobOperationAttribute": {+ get: {parameters: [{- $ref: "#/parameters/rowFilter.quoteOperationTool.id",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.id",},{- $ref: "#/parameters/rowFilter.quoteOperationTool.operationId",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.name",},{- $ref: "#/parameters/rowFilter.quoteOperationTool.toolId",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.description",},{- $ref: "#/parameters/rowFilter.quoteOperationTool.quantity",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.required",},{- $ref: "#/parameters/rowFilter.quoteOperationTool.companyId",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.sortOrder",},{- $ref: "#/parameters/rowFilter.quoteOperationTool.createdAt",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.type",},{- $ref: "#/parameters/rowFilter.quoteOperationTool.createdBy",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.unitOfMeasureCode",},{- $ref: "#/parameters/rowFilter.quoteOperationTool.updatedAt",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.minValue",},{- $ref: "#/parameters/rowFilter.quoteOperationTool.updatedBy",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.maxValue",},{- $ref: "#/parameters/body.quoteOperationTool",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.listValues",},{- $ref: "#/parameters/preferReturn",- },- ],- responses: {- "204": {- description: "No Content",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.fileTypes",},- },- tags: ["quoteOperationTool"],- },- },- "/supplierContact": {- get: {- parameters: [{- $ref: "#/parameters/rowFilter.supplierContact.id",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.operationId",},{- $ref: "#/parameters/rowFilter.supplierContact.supplierId",- },- {- $ref: "#/parameters/rowFilter.supplierContact.contactId",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.companyId",},{- $ref: "#/parameters/rowFilter.supplierContact.supplierLocationId",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.createdAt",},{- $ref: "#/parameters/rowFilter.supplierContact.userId",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.createdBy",},{- $ref: "#/parameters/rowFilter.supplierContact.customFields",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.updatedAt",},{- $ref: "#/parameters/rowFilter.supplierContact.tags",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.updatedBy",},{$ref: "#/parameters/select",@@ -28752,7 +29667,7 @@ export default {description: "OK",schema: {items: {- $ref: "#/definitions/supplierContact",+ $ref: "#/definitions/jobOperationAttribute",},type: "array",},@@ -28761,12 +29676,12 @@ export default {description: "Partial Content",},},- tags: ["supplierContact"],+ tags: ["jobOperationAttribute"],},post: {parameters: [{- $ref: "#/parameters/body.supplierContact",+ $ref: "#/parameters/body.jobOperationAttribute",},{$ref: "#/parameters/select",@@ -28780,67 +29695,60 @@ export default {description: "Created",},},- tags: ["supplierContact"],+ tags: ["jobOperationAttribute"],},delete: {parameters: [{- $ref: "#/parameters/rowFilter.supplierContact.id",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.id",},{- $ref: "#/parameters/rowFilter.supplierContact.supplierId",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.name",},{- $ref: "#/parameters/rowFilter.supplierContact.contactId",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.description",},{- $ref: "#/parameters/rowFilter.supplierContact.supplierLocationId",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.required",},{- $ref: "#/parameters/rowFilter.supplierContact.userId",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.sortOrder",},{- $ref: "#/parameters/rowFilter.supplierContact.customFields",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.type",},{- $ref: "#/parameters/rowFilter.supplierContact.tags",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.unitOfMeasureCode",},{- $ref: "#/parameters/preferReturn",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.minValue",},- ],- responses: {- "204": {- description: "No Content",+ {+ $ref: "#/parameters/rowFilter.jobOperationAttribute.maxValue",},- },- tags: ["supplierContact"],- },- patch: {- parameters: [{- $ref: "#/parameters/rowFilter.supplierContact.id",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.listValues",},{- $ref: "#/parameters/rowFilter.supplierContact.supplierId",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.fileTypes",},{- $ref: "#/parameters/rowFilter.supplierContact.contactId",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.operationId",},{- $ref: "#/parameters/rowFilter.supplierContact.supplierLocationId",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.companyId",},{- $ref: "#/parameters/rowFilter.supplierContact.userId",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.createdAt",},{- $ref: "#/parameters/rowFilter.supplierContact.customFields",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.createdBy",},{- $ref: "#/parameters/rowFilter.supplierContact.tags",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.updatedAt",},{- $ref: "#/parameters/body.supplierContact",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.updatedBy",},{$ref: "#/parameters/preferReturn",@@ -28851,64 +29759,74 @@ export default {description: "No Content",},},- tags: ["supplierContact"],+ tags: ["jobOperationAttribute"],},- },- "/integrations": {- get: {+ patch: {parameters: [{- $ref: "#/parameters/rowFilter.integrations.id",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.id",},{- $ref: "#/parameters/rowFilter.integrations.jsonschema",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.name",},{- $ref: "#/parameters/rowFilter.integrations.companyId",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.description",},{- $ref: "#/parameters/rowFilter.integrations.metadata",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.required",},{- $ref: "#/parameters/rowFilter.integrations.active",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.sortOrder",},{- $ref: "#/parameters/select",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.type",},{- $ref: "#/parameters/order",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.unitOfMeasureCode",},{- $ref: "#/parameters/range",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.minValue",},{- $ref: "#/parameters/rangeUnit",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.maxValue",},{- $ref: "#/parameters/offset",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.listValues",},{- $ref: "#/parameters/limit",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.fileTypes",},{- $ref: "#/parameters/preferCount",+ $ref: "#/parameters/rowFilter.jobOperationAttribute.operationId",+ },+ {+ $ref: "#/parameters/rowFilter.jobOperationAttribute.companyId",+ },+ {+ $ref: "#/parameters/rowFilter.jobOperationAttribute.createdAt",+ },+ {+ $ref: "#/parameters/rowFilter.jobOperationAttribute.createdBy",+ },+ {+ $ref: "#/parameters/rowFilter.jobOperationAttribute.updatedAt",+ },+ {+ $ref: "#/parameters/rowFilter.jobOperationAttribute.updatedBy",+ },+ {+ $ref: "#/parameters/body.jobOperationAttribute",+ },+ {+ $ref: "#/parameters/preferReturn",},],responses: {- "200": {- description: "OK",- schema: {- items: {- $ref: "#/definitions/integrations",- },- type: "array",- },- },- "206": {- description: "Partial Content",+ "204": {+ description: "No Content",},},- tags: ["integrations"],+ tags: ["jobOperationAttribute"],},},"/groups_recursive": {@@ -32424,6 +33342,9 @@ export default {{$ref: "#/parameters/rowFilter.quoteOperation.tags",},+ {+ $ref: "#/parameters/rowFilter.quoteOperation.procedureId",+ },{$ref: "#/parameters/select",},@@ -32576,6 +33497,9 @@ export default {{$ref: "#/parameters/rowFilter.quoteOperation.tags",},+ {+ $ref: "#/parameters/rowFilter.quoteOperation.procedureId",+ },{$ref: "#/parameters/preferReturn",},@@ -32682,6 +33606,9 @@ export default {{$ref: "#/parameters/rowFilter.quoteOperation.tags",},+ {+ $ref: "#/parameters/rowFilter.quoteOperation.procedureId",+ },{$ref: "#/parameters/body.quoteOperation",},@@ -49199,6 +50126,12 @@ export default {},type: "array",},+ procedureId: {+ description:+ "Note:\nThis is a Foreign Key to `procedure.id`.<fk table='procedure' column='id'/>",+ format: "text",+ type: "string",+ },},type: "object",},@@ -56142,6 +57075,12 @@ export default {},type: "array",},+ procedureId: {+ description:+ "Note:\nThis is a Foreign Key to `procedure.id`.<fk table='procedure' column='id'/>",+ format: "text",+ type: "string",+ },},type: "object",},@@ -57158,6 +58097,59 @@ export default {},type: "object",},+ procedureParameter: {+ required: ["id", "procedureId", "key", "value", "createdAt", "createdBy"],+ properties: {+ id: {+ default: "public.xid()",+ 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",+ },+ key: {+ format: "text",+ type: "string",+ },+ value: {+ 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",+ },+ },+ type: "object",+ },shipmentLines: {properties: {id: {@@ -59173,66 +60165,288 @@ export default {},type: "object",},- purchaseOrderDelivery: {- required: ["id", "dropShipment", "companyId", "supplierShippingCost"],+ purchaseOrderDelivery: {+ required: ["id", "dropShipment", "companyId", "supplierShippingCost"],+ properties: {+ id: {+ description: "Note:\nThis is a Primary Key.<pk/>",+ format: "text",+ type: "string",+ },+ locationId: {+ description:+ "Note:\nThis is a Foreign Key to `location.id`.<fk table='location' column='id'/>",+ format: "text",+ type: "string",+ },+ shippingMethodId: {+ description:+ "Note:\nThis is a Foreign Key to `shippingMethod.id`.<fk table='shippingMethod' column='id'/>",+ format: "text",+ type: "string",+ },+ shippingTermId: {+ description:+ "Note:\nThis is a Foreign Key to `shippingTerm.id`.<fk table='shippingTerm' column='id'/>",+ format: "text",+ type: "string",+ },+ receiptRequestedDate: {+ format: "date",+ type: "string",+ },+ receiptPromisedDate: {+ format: "date",+ type: "string",+ },+ deliveryDate: {+ format: "date",+ type: "string",+ },+ notes: {+ format: "text",+ type: "string",+ },+ trackingNumber: {+ format: "text",+ type: "string",+ },+ dropShipment: {+ default: false,+ format: "boolean",+ type: "boolean",+ },+ customerId: {+ description:+ "Note:\nThis is a Foreign Key to `customer.id`.<fk table='customer' column='id'/>",+ format: "text",+ type: "string",+ },+ customerLocationId: {+ description:+ "Note:\nThis is a Foreign Key to `customerLocation.id`.<fk table='customerLocation' column='id'/>",+ format: "text",+ type: "string",+ },+ companyId: {+ format: "text",+ type: "string",+ },+ updatedBy: {+ 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",+ },+ customFields: {+ format: "jsonb",+ },+ tags: {+ format: "text[]",+ items: {+ type: "string",+ },+ type: "array",+ },+ supplierShippingCost: {+ default: 0,+ format: "numeric",+ type: "number",+ },+ },+ type: "object",+ },+ methodOperationAttribute: {+ required: [+ "id",+ "name",+ "sortOrder",+ "type",+ "operationId",+ "companyId",+ "createdAt",+ "createdBy",+ ],+ properties: {+ id: {+ default: "public.xid()",+ description: "Note:\nThis is a Primary Key.<pk/>",+ format: "text",+ type: "string",+ },+ name: {+ format: "text",+ type: "string",+ },+ description: {+ 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",+ ],+ format: 'public."procedureAttributeType"',+ 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",+ },+ },+ type: "object",+ },+ quoteOperationAttribute: {+ required: [+ "id",+ "name",+ "sortOrder",+ "type",+ "operationId",+ "companyId",+ "createdAt",+ "createdBy",+ ],properties: {id: {+ default: "public.xid()",description: "Note:\nThis is a Primary Key.<pk/>",format: "text",type: "string",},- locationId: {- description:- "Note:\nThis is a Foreign Key to `location.id`.<fk table='location' column='id'/>",- format: "text",- type: "string",- },- shippingMethodId: {- description:- "Note:\nThis is a Foreign Key to `shippingMethod.id`.<fk table='shippingMethod' column='id'/>",+ name: {format: "text",type: "string",},- shippingTermId: {- description:- "Note:\nThis is a Foreign Key to `shippingTerm.id`.<fk table='shippingTerm' column='id'/>",+ description: {format: "text",type: "string",},- receiptRequestedDate: {- format: "date",- type: "string",+ required: {+ default: false,+ format: "boolean",+ type: "boolean",},- receiptPromisedDate: {- format: "date",- type: "string",+ sortOrder: {+ default: 1,+ format: "double precision",+ type: "number",},- deliveryDate: {- format: "date",+ type: {+ enum: [+ "Value",+ "Measurement",+ "Checkbox",+ "Timestamp",+ "Person",+ "List",+ "File",+ ],+ format: 'public."procedureAttributeType"',type: "string",},- notes: {+ unitOfMeasureCode: {format: "text",type: "string",},- trackingNumber: {- format: "text",- type: "string",+ minValue: {+ format: "numeric",+ type: "number",},- dropShipment: {- default: false,- format: "boolean",- type: "boolean",+ maxValue: {+ format: "numeric",+ type: "number",},- customerId: {- description:- "Note:\nThis is a Foreign Key to `customer.id`.<fk table='customer' column='id'/>",- format: "text",- type: "string",+ listValues: {+ format: "text[]",+ items: {+ type: "string",+ },+ type: "array",},- customerLocationId: {+ fileTypes: {+ format: "text[]",+ items: {+ type: "string",+ },+ type: "array",+ },+ operationId: {description:- "Note:\nThis is a Foreign Key to `customerLocation.id`.<fk table='customerLocation' column='id'/>",+ "Note:\nThis is a Foreign Key to `quoteOperation.id`.<fk table='quoteOperation' column='id'/>",format: "text",type: "string",},@@ -59240,7 +60454,12 @@ export default {format: "text",type: "string",},- updatedBy: {+ 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",@@ -59250,20 +60469,11 @@ export default {format: "timestamp with time zone",type: "string",},- customFields: {- format: "jsonb",- },- tags: {- format: "text[]",- items: {- type: "string",- },- type: "array",- },- supplierShippingCost: {- default: 0,- format: "numeric",- type: "number",+ updatedBy: {+ description:+ "Note:\nThis is a Foreign Key to `user.id`.<fk table='user' column='id'/>",+ format: "text",+ type: "string",},},type: "object",@@ -59698,6 +60908,115 @@ export default {},type: "object",},+ jobOperationAttribute: {+ required: [+ "id",+ "name",+ "sortOrder",+ "type",+ "operationId",+ "companyId",+ "createdAt",+ "createdBy",+ ],+ properties: {+ id: {+ default: "public.xid()",+ description: "Note:\nThis is a Primary Key.<pk/>",+ format: "text",+ type: "string",+ },+ name: {+ format: "text",+ type: "string",+ },+ description: {+ 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",+ ],+ format: 'public."procedureAttributeType"',+ 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",+ },+ },+ type: "object",+ },groups_recursive: {properties: {groupId: {@@ -61457,6 +62776,12 @@ export default {},type: "array",},+ procedureId: {+ description:+ "Note:\nThis is a Foreign Key to `procedure.id`.<fk table='procedure' column='id'/>",+ format: "text",+ type: "string",+ },},type: "object",},@@ -69687,6 +71012,13 @@ export default {in: "query",type: "string",},+ "rowFilter.jobOperation.procedureId": {+ name: "procedureId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },"body.journalLine": {name: "journalLine",description: "journalLine",@@ -78749,6 +80081,13 @@ export default {in: "query",type: "string",},+ "rowFilter.methodOperation.procedureId": {+ name: "procedureId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },"body.salesOrderPayment": {name: "salesOrderPayment",description: "salesOrderPayment",@@ -80031,6 +81370,78 @@ export default {in: "query",type: "string",},+ "body.procedureParameter": {+ name: "procedureParameter",+ description: "procedureParameter",+ required: false,+ in: "body",+ schema: {+ $ref: "#/definitions/procedureParameter",+ },+ },+ "rowFilter.procedureParameter.id": {+ name: "id",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.procedureParameter.procedureId": {+ name: "procedureId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.procedureParameter.key": {+ name: "key",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.procedureParameter.value": {+ name: "value",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.procedureParameter.companyId": {+ name: "companyId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.procedureParameter.createdAt": {+ name: "createdAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.procedureParameter.createdBy": {+ name: "createdBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.procedureParameter.updatedAt": {+ name: "updatedAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.procedureParameter.updatedBy": {+ name: "updatedBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },"body.shipmentLines": {name: "shipmentLines",description: "shipmentLines",@@ -82906,6 +84317,262 @@ 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,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.name": {+ name: "name",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.description": {+ name: "description",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.required": {+ name: "required",+ required: false,+ format: "boolean",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.sortOrder": {+ name: "sortOrder",+ required: false,+ format: "double precision",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.type": {+ name: "type",+ required: false,+ format: 'public."procedureAttributeType"',+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.unitOfMeasureCode": {+ name: "unitOfMeasureCode",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.minValue": {+ name: "minValue",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.maxValue": {+ name: "maxValue",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.listValues": {+ name: "listValues",+ required: false,+ format: "text[]",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.fileTypes": {+ name: "fileTypes",+ required: false,+ format: "text[]",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.operationId": {+ name: "operationId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.companyId": {+ name: "companyId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.createdAt": {+ name: "createdAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.createdBy": {+ name: "createdBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.updatedAt": {+ name: "updatedAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.methodOperationAttribute.updatedBy": {+ name: "updatedBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "body.quoteOperationAttribute": {+ name: "quoteOperationAttribute",+ description: "quoteOperationAttribute",+ required: false,+ in: "body",+ schema: {+ $ref: "#/definitions/quoteOperationAttribute",+ },+ },+ "rowFilter.quoteOperationAttribute.id": {+ name: "id",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.name": {+ name: "name",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.description": {+ name: "description",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.required": {+ name: "required",+ required: false,+ format: "boolean",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.sortOrder": {+ name: "sortOrder",+ required: false,+ format: "double precision",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.type": {+ name: "type",+ required: false,+ format: 'public."procedureAttributeType"',+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.unitOfMeasureCode": {+ name: "unitOfMeasureCode",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.minValue": {+ name: "minValue",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.maxValue": {+ name: "maxValue",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.listValues": {+ name: "listValues",+ required: false,+ format: "text[]",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.fileTypes": {+ name: "fileTypes",+ required: false,+ format: "text[]",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.operationId": {+ name: "operationId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.companyId": {+ name: "companyId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.createdAt": {+ name: "createdAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.createdBy": {+ name: "createdBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.updatedAt": {+ name: "updatedAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.quoteOperationAttribute.updatedBy": {+ name: "updatedBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },"body.warehouse": {name: "warehouse",description: "warehouse",@@ -83410,6 +85077,134 @@ export default {in: "query",type: "string",},+ "body.jobOperationAttribute": {+ name: "jobOperationAttribute",+ description: "jobOperationAttribute",+ required: false,+ in: "body",+ schema: {+ $ref: "#/definitions/jobOperationAttribute",+ },+ },+ "rowFilter.jobOperationAttribute.id": {+ name: "id",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.name": {+ name: "name",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.description": {+ name: "description",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.required": {+ name: "required",+ required: false,+ format: "boolean",+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.sortOrder": {+ name: "sortOrder",+ required: false,+ format: "double precision",+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.type": {+ name: "type",+ required: false,+ format: 'public."procedureAttributeType"',+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.unitOfMeasureCode": {+ name: "unitOfMeasureCode",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.minValue": {+ name: "minValue",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.maxValue": {+ name: "maxValue",+ required: false,+ format: "numeric",+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.listValues": {+ name: "listValues",+ required: false,+ format: "text[]",+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.fileTypes": {+ name: "fileTypes",+ required: false,+ format: "text[]",+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.operationId": {+ name: "operationId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.companyId": {+ name: "companyId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.createdAt": {+ name: "createdAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.createdBy": {+ name: "createdBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.updatedAt": {+ name: "updatedAt",+ required: false,+ format: "timestamp with time zone",+ in: "query",+ type: "string",+ },+ "rowFilter.jobOperationAttribute.updatedBy": {+ name: "updatedBy",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },"body.groups_recursive": {name: "groups_recursive",description: "groups_recursive",@@ -85666,6 +87461,13 @@ export default {in: "query",type: "string",},+ "rowFilter.quoteOperation.procedureId": {+ name: "procedureId",+ required: false,+ format: "text",+ in: "query",+ type: "string",+ },"body.salesRfq": {name: "salesRfq",description: "salesRfq",diff --git a/packages/database/src/types.ts b/packages/database/src/types.tsindex f39b8c698a..f131d5fa1b 100644--- a/packages/database/src/types.ts+++ b/packages/database/src/types.ts@@ -8798,6 +8798,7 @@ export type Database = {order: numberoverheadRate: numberpriority: number+ procedureId: string | nullprocessId: stringquantityComplete: number | nullquantityReworked: number | null@@ -8837,6 +8838,7 @@ export type Database = {order?: numberoverheadRate?: numberpriority?: number+ procedureId?: string | nullprocessId: stringquantityComplete?: number | nullquantityReworked?: number | null@@ -8876,6 +8878,7 @@ export type Database = {order?: numberoverheadRate?: numberpriority?: number+ procedureId?: string | nullprocessId?: stringquantityComplete?: number | nullquantityReworked?: number | null@@ -9016,6 +9019,20 @@ export type Database = {referencedRelation: "jobMaterialWithMakeMethodId"referencedColumns: ["jobMaterialMakeMethodId"]},+ {+ foreignKeyName: "jobOperation_procedureId_fkey"+ columns: ["procedureId"]+ isOneToOne: false+ referencedRelation: "procedure"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperation_procedureId_fkey"+ columns: ["procedureId"]+ isOneToOne: false+ referencedRelation: "procedures"+ referencedColumns: ["id"]+ },{foreignKeyName: "jobOperation_processId_fkey"columns: ["processId"]@@ -9226,6 +9243,186 @@ export type Database = {},]}+ jobOperationAttributeRecord: {+ Row: {+ booleanValue: boolean | null+ companyId: string+ createdAt: string+ createdBy: string+ jobOperationAttributeId: string+ numericValue: number | null+ updatedAt: string | null+ updatedBy: string | null+ userValue: string | null+ value: string | null+ }+ Insert: {+ booleanValue?: boolean | null+ companyId: string+ createdAt?: string+ createdBy: string+ jobOperationAttributeId: string+ numericValue?: number | null+ updatedAt?: string | null+ updatedBy?: string | null+ userValue?: string | null+ value?: string | null+ }+ Update: {+ booleanValue?: boolean | null+ companyId?: string+ createdAt?: string+ createdBy?: string+ jobOperationAttributeId?: string+ numericValue?: number | null+ updatedAt?: string | null+ updatedBy?: string | null+ userValue?: string | null+ value?: string | null+ }+ Relationships: [+ {+ foreignKeyName: "jobOperationAttributeRecord_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "companies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "company"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "customFieldTables"+ referencedColumns: ["companyId"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "integrations"+ referencedColumns: ["companyId"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeesAcrossCompanies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_jobOperationAttributeId_fkey"+ columns: ["jobOperationAttributeId"]+ isOneToOne: true+ referencedRelation: "jobOperationAttribute"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeesAcrossCompanies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_userValue_fkey"+ columns: ["userValue"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_userValue_fkey"+ columns: ["userValue"]+ isOneToOne: false+ referencedRelation: "employeesAcrossCompanies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_userValue_fkey"+ columns: ["userValue"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_userValue_fkey"+ columns: ["userValue"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_userValue_fkey"+ columns: ["userValue"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }jobOperationNote: {Row: {companyId: string@@ -10830,6 +11027,7 @@ export type Database = {operationSupplierProcessId: string | nulloperationType: Database["public"]["Enums"]["operationType"]order: number+ procedureId: string | nullprocessId: stringsetupTime: numbersetupUnit: Database["public"]["Enums"]["factor"]@@ -10855,6 +11053,7 @@ export type Database = {operationSupplierProcessId?: string | nulloperationType?: Database["public"]["Enums"]["operationType"]order?: number+ procedureId?: string | nullprocessId: stringsetupTime?: numbersetupUnit?: Database["public"]["Enums"]["factor"]@@ -10880,6 +11079,7 @@ export type Database = {operationSupplierProcessId?: string | nulloperationType?: Database["public"]["Enums"]["operationType"]order?: number+ procedureId?: string | nullprocessId?: stringsetupTime?: numbersetupUnit?: Database["public"]["Enums"]["factor"]@@ -10974,6 +11174,20 @@ export type Database = {referencedRelation: "quoteOperationsWithMakeMethods"referencedColumns: ["makeMethodId"]},+ {+ foreignKeyName: "methodOperation_procedureId_fkey"+ columns: ["procedureId"]+ isOneToOne: false+ referencedRelation: "procedure"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "methodOperation_procedureId_fkey"+ columns: ["procedureId"]+ isOneToOne: false+ referencedRelation: "procedures"+ referencedColumns: ["id"]+ },{foreignKeyName: "methodOperation_processId_fkey"columns: ["processId"]@@ -18291,6 +18505,7 @@ export type Database = {operationUnitCost: numberorder: numberoverheadRate: number+ procedureId: string | nullprocessId: stringquoteId: stringquoteLineId: string@@ -18324,6 +18539,7 @@ export type Database = {operationUnitCost?: numberorder?: numberoverheadRate?: number+ procedureId?: string | nullprocessId: stringquoteId: stringquoteLineId: string@@ -18357,6 +18573,7 @@ export type Database = {operationUnitCost?: numberorder?: numberoverheadRate?: number+ procedureId?: string | nullprocessId?: stringquoteId?: stringquoteLineId?: string@@ -18447,6 +18664,20 @@ export type Database = {referencedRelation: "supplierProcesses"referencedColumns: ["id"]},+ {+ foreignKeyName: "quoteOperation_procedureId_fkey"+ columns: ["procedureId"]+ isOneToOne: false+ referencedRelation: "procedure"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "quoteOperation_procedureId_fkey"+ columns: ["procedureId"]+ isOneToOne: false+ referencedRelation: "procedures"+ referencedColumns: ["id"]+ },{foreignKeyName: "quoteOperation_processId_fkey"columns: ["processId"]@@ -33052,14 +33283,14 @@ export type Database = {Relationships: [{foreignKeyName: "address_countryCode_fkey"- columns: ["customerCountryCode"]+ columns: ["paymentCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]},{foreignKeyName: "address_countryCode_fkey"- columns: ["paymentCountryCode"]+ columns: ["customerCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]diff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.tsindex f39b8c698a..f131d5fa1b 100644--- a/packages/database/supabase/functions/lib/types.ts+++ b/packages/database/supabase/functions/lib/types.ts@@ -8798,6 +8798,7 @@ export type Database = {order: numberoverheadRate: numberpriority: number+ procedureId: string | nullprocessId: stringquantityComplete: number | nullquantityReworked: number | null@@ -8837,6 +8838,7 @@ export type Database = {order?: numberoverheadRate?: numberpriority?: number+ procedureId?: string | nullprocessId: stringquantityComplete?: number | nullquantityReworked?: number | null@@ -8876,6 +8878,7 @@ export type Database = {order?: numberoverheadRate?: numberpriority?: number+ procedureId?: string | nullprocessId?: stringquantityComplete?: number | nullquantityReworked?: number | null@@ -9016,6 +9019,20 @@ export type Database = {referencedRelation: "jobMaterialWithMakeMethodId"referencedColumns: ["jobMaterialMakeMethodId"]},+ {+ foreignKeyName: "jobOperation_procedureId_fkey"+ columns: ["procedureId"]+ isOneToOne: false+ referencedRelation: "procedure"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperation_procedureId_fkey"+ columns: ["procedureId"]+ isOneToOne: false+ referencedRelation: "procedures"+ referencedColumns: ["id"]+ },{foreignKeyName: "jobOperation_processId_fkey"columns: ["processId"]@@ -9226,6 +9243,186 @@ export type Database = {},]}+ jobOperationAttributeRecord: {+ Row: {+ booleanValue: boolean | null+ companyId: string+ createdAt: string+ createdBy: string+ jobOperationAttributeId: string+ numericValue: number | null+ updatedAt: string | null+ updatedBy: string | null+ userValue: string | null+ value: string | null+ }+ Insert: {+ booleanValue?: boolean | null+ companyId: string+ createdAt?: string+ createdBy: string+ jobOperationAttributeId: string+ numericValue?: number | null+ updatedAt?: string | null+ updatedBy?: string | null+ userValue?: string | null+ value?: string | null+ }+ Update: {+ booleanValue?: boolean | null+ companyId?: string+ createdAt?: string+ createdBy?: string+ jobOperationAttributeId?: string+ numericValue?: number | null+ updatedAt?: string | null+ updatedBy?: string | null+ userValue?: string | null+ value?: string | null+ }+ Relationships: [+ {+ foreignKeyName: "jobOperationAttributeRecord_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "companies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "company"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "customFieldTables"+ referencedColumns: ["companyId"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_companyId_fkey"+ columns: ["companyId"]+ isOneToOne: false+ referencedRelation: "integrations"+ referencedColumns: ["companyId"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeesAcrossCompanies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_createdBy_fkey"+ columns: ["createdBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_jobOperationAttributeId_fkey"+ columns: ["jobOperationAttributeId"]+ isOneToOne: true+ referencedRelation: "jobOperationAttribute"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeesAcrossCompanies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_updatedBy_fkey"+ columns: ["updatedBy"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_userValue_fkey"+ columns: ["userValue"]+ isOneToOne: false+ referencedRelation: "employees"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_userValue_fkey"+ columns: ["userValue"]+ isOneToOne: false+ referencedRelation: "employeesAcrossCompanies"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_userValue_fkey"+ columns: ["userValue"]+ isOneToOne: false+ referencedRelation: "employeeSummary"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_userValue_fkey"+ columns: ["userValue"]+ isOneToOne: false+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "jobOperationAttributeRecord_userValue_fkey"+ columns: ["userValue"]+ isOneToOne: false+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ ]+ }jobOperationNote: {Row: {companyId: string@@ -10830,6 +11027,7 @@ export type Database = {operationSupplierProcessId: string | nulloperationType: Database["public"]["Enums"]["operationType"]order: number+ procedureId: string | nullprocessId: stringsetupTime: numbersetupUnit: Database["public"]["Enums"]["factor"]@@ -10855,6 +11053,7 @@ export type Database = {operationSupplierProcessId?: string | nulloperationType?: Database["public"]["Enums"]["operationType"]order?: number+ procedureId?: string | nullprocessId: stringsetupTime?: numbersetupUnit?: Database["public"]["Enums"]["factor"]@@ -10880,6 +11079,7 @@ export type Database = {operationSupplierProcessId?: string | nulloperationType?: Database["public"]["Enums"]["operationType"]order?: number+ procedureId?: string | nullprocessId?: stringsetupTime?: numbersetupUnit?: Database["public"]["Enums"]["factor"]@@ -10974,6 +11174,20 @@ export type Database = {referencedRelation: "quoteOperationsWithMakeMethods"referencedColumns: ["makeMethodId"]},+ {+ foreignKeyName: "methodOperation_procedureId_fkey"+ columns: ["procedureId"]+ isOneToOne: false+ referencedRelation: "procedure"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "methodOperation_procedureId_fkey"+ columns: ["procedureId"]+ isOneToOne: false+ referencedRelation: "procedures"+ referencedColumns: ["id"]+ },{foreignKeyName: "methodOperation_processId_fkey"columns: ["processId"]@@ -18291,6 +18505,7 @@ export type Database = {operationUnitCost: numberorder: numberoverheadRate: number+ procedureId: string | nullprocessId: stringquoteId: stringquoteLineId: string@@ -18324,6 +18539,7 @@ export type Database = {operationUnitCost?: numberorder?: numberoverheadRate?: number+ procedureId?: string | nullprocessId: stringquoteId: stringquoteLineId: string@@ -18357,6 +18573,7 @@ export type Database = {operationUnitCost?: numberorder?: numberoverheadRate?: number+ procedureId?: string | nullprocessId?: stringquoteId?: stringquoteLineId?: string@@ -18447,6 +18664,20 @@ export type Database = {referencedRelation: "supplierProcesses"referencedColumns: ["id"]},+ {+ foreignKeyName: "quoteOperation_procedureId_fkey"+ columns: ["procedureId"]+ isOneToOne: false+ referencedRelation: "procedure"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "quoteOperation_procedureId_fkey"+ columns: ["procedureId"]+ isOneToOne: false+ referencedRelation: "procedures"+ referencedColumns: ["id"]+ },{foreignKeyName: "quoteOperation_processId_fkey"columns: ["processId"]@@ -33052,14 +33283,14 @@ export type Database = {Relationships: [{foreignKeyName: "address_countryCode_fkey"- columns: ["customerCountryCode"]+ columns: ["paymentCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]},{foreignKeyName: "address_countryCode_fkey"- columns: ["paymentCountryCode"]+ columns: ["customerCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]diff --git a/packages/database/supabase/migrations/20250216192838_procedures.sql b/packages/database/supabase/migrations/20250216192838_procedures.sqlindex 398fff3461..b17b100af3 100644--- a/packages/database/supabase/migrations/20250216192838_procedures.sql+++ b/packages/database/supabase/migrations/20250216192838_procedures.sql@@ -477,5 +477,76 @@ ALTER TABLE "jobOperation" ADD CONSTRAINT "jobOperation_procedureId_fkey" FOREIGALTER TABLE "quoteOperation" ADD COLUMN "procedureId" TEXT;ALTER TABLE "quoteOperation" ADD CONSTRAINT "quoteOperation_procedureId_fkey" FOREIGN KEY ("procedureId") REFERENCES "procedure"("id") ON DELETE CASCADE ON UPDATE CASCADE;+-- DROP TABLE IF EXISTS "jobOperationAttributeRecord";+CREATE TABLE "jobOperationAttributeRecord" (+ "jobOperationAttributeId" TEXT NOT NULL,+ "value" TEXT,+ "numericValue" NUMERIC,+ "booleanValue" BOOLEAN,+ "userValue" TEXT,+ "companyId" TEXT NOT NULL,+ "createdAt" TIMESTAMP WITH TIME ZONE DEFAULT NOW() NOT NULL,+ "createdBy" TEXT NOT NULL,+ "updatedAt" TIMESTAMP WITH TIME ZONE,+ "updatedBy" TEXT,++ CONSTRAINT "jobOperationAttributeRecord_pkey" PRIMARY KEY ("jobOperationAttributeId"),+ CONSTRAINT "jobOperationAttributeRecord_jobOperationAttributeId_fkey" FOREIGN KEY ("jobOperationAttributeId") REFERENCES "jobOperationAttribute"("id") ON DELETE CASCADE ON UPDATE CASCADE,+ CONSTRAINT "jobOperationAttributeRecord_userValue_fkey" FOREIGN KEY ("userValue") REFERENCES "user"("id") ON UPDATE CASCADE,+ CONSTRAINT "jobOperationAttributeRecord_companyId_fkey" FOREIGN KEY ("companyId") REFERENCES "company"("id") ON DELETE CASCADE ON UPDATE CASCADE,+ CONSTRAINT "jobOperationAttributeRecord_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user"("id") ON UPDATE CASCADE,+ CONSTRAINT "jobOperationAttributeRecord_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE+);++CREATE INDEX "jobOperationAttributeRecord_companyId_idx" ON "jobOperationAttributeRecord"("companyId");+CREATE INDEX "jobOperationAttributeRecord_jobOperationAttributeId_idx" ON "jobOperationAttributeRecord"("jobOperationAttributeId");+ALTER TABLE "jobOperationAttributeRecord" ENABLE ROW LEVEL SECURITY;+CREATE POLICY "SELECT" ON "public"."jobOperationAttributeRecord"+FOR SELECT USING (+ "companyId" = ANY (+ (+ SELECT+ get_companies_with_employee_role()+ )::text[]+ )+);++CREATE POLICY "INSERT" ON "public"."jobOperationAttributeRecord"+FOR INSERT WITH CHECK (+ "companyId" = ANY (+ (+ SELECT+ get_companies_with_employee_role()+ )::text[]+ )+);++CREATE POLICY "UPDATE" ON "public"."jobOperationAttributeRecord"+FOR UPDATE USING (+ "companyId" = ANY (+ (+ SELECT+ get_companies_with_employee_permission ('production_update')+ )::text[]+ )+);++CREATE POLICY "DELETE" ON "public"."jobOperationAttributeRecord"+FOR DELETE USING (+ "companyId" = ANY (+ (+ SELECT+ get_companies_with_employee_permission ('production_delete')+ )::text[]+ )+);++DROP POLICY IF EXISTS "Job documents insert requires employee role" ON storage.objects;+CREATE POLICY "Job documents insert requires employee role" ON storage.objects+FOR INSERT WITH CHECK (+ bucket_id = 'private'+ AND has_role('employee', (storage.foldername(name))[1])+ AND (storage.foldername(name))[2] = 'job'+);\ No newline at end of file