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
style: add unit price and quantity to summary cards for orders and invoices
Brad Barbin05a06ecbc7ed
diff --git a/.gitignore b/.gitignoreindex 89f0e99aab..2f416212d3 100644--- a/.gitignore+++ b/.gitignore@@ -15,7 +15,7 @@ public/distvite.config.ts.timestamp*scripts/migrations/data-scripts/paperless-test.ts+scripts/**# local env files.envdiff --git a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSummary.tsx b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSummary.tsxindex 23fbe0ad92..6aa93ce3c5 100644--- a/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSummary.tsx+++ b/apps/erp/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceSummary.tsx@@ -1,4 +1,5 @@import {+ Badge,Button,Card,CardContent,@@ -19,7 +20,7 @@ import { Link, useParams } from "@remix-run/react";import { motion } from "framer-motion";import { useState } from "react";import { LuChevronRight, LuImage } from "react-icons/lu";-import { SupplierAvatar } from "~/components";+import { MethodIcon, SupplierAvatar } from "~/components";import { useUnitOfMeasure } from "~/components/Form/UnitOfMeasure";import {useCurrencyFormatter,@@ -106,49 +107,86 @@ const LineItems = ({className="flex flex-col cursor-pointer w-full"onClick={() => toggleOpen(line.id!)}>- <div className="flex items-center gap-x-4 justify-between flex-grow min-w-0">- <HStack spacing={2} className="min-w-0 flex-shrink">- <Heading className="truncate">{itemReadableId}</Heading>-- <Button- asChild- variant="link"- size="sm"- className="text-muted-foreground flex-shrink-0"+ <div className="flex items-center justify-between w-full">+ <VStack+ spacing={0}+ className="flex-shrink-0 min-w-0 w-auto"+ >+ <HStack+ spacing={2}+ className="flex min-w-0 flex-shrink-0">- <Link- to={path.to.purchaseInvoiceLine(invoiceId, line.id!)}+ <Heading className="truncate">{itemReadableId}</Heading>+ <Button+ asChild+ variant="link"+ size="sm"+ className="text-muted-foreground flex-shrink-0">- Edit- </Link>- </Button>- </HStack>- <HStack spacing={4} className="flex-shrink-0 ml-4">- <VStack spacing={0}>- <span className="font-bold text-xl whitespace-nowrap">- {formatter.format(total)}- </span>- {shouldConvertCurrency && (- <span className="text-muted-foreground text-sm">- {presentationCurrencyFormatter.format(- supplierTotal- )}+ <Link+ to={path.to.purchaseInvoiceLine(invoiceId, line.id!)}+ >+ Edit+ </Link>+ </Button>+ </HStack>+ <span className="text-muted-foreground text-base truncate">+ {line.description}+ </span>+ </VStack>+ <VStack+ spacing={2}+ className="flex-shrink-0 items-end w-auto"+ >+ <HStack spacing={4}>+ <VStack spacing={0}>+ <span className="font-bold text-xl whitespace-nowrap">+ {formatter.format(total)}</span>- )}- </VStack>- <motion.div- animate={{- rotate: openItems.includes(line.id) ? 90 : 0,- }}- transition={{ duration: 0.3 }}- >- <LuChevronRight size={24} />- </motion.div>- </HStack>+ {shouldConvertCurrency && (+ <span className="text-muted-foreground text-sm">+ {presentationCurrencyFormatter.format(+ supplierTotal+ )}+ </span>+ )}+ </VStack>+ <motion.div+ animate={{+ rotate: openItems.includes(line.id) ? 90 : 0,+ }}+ transition={{ duration: 0.3 }}+ >+ <LuChevronRight size={24} />+ </motion.div>+ </HStack>+ <div className="flex items-center gap-2">+ <Badge+ variant="outline"+ className="flex items-center gap-2"+ >+ {line.quantity}+ <MethodIcon type={line.methodType ?? "Pick"} />+ </Badge>+ <Badge variant="green">+ {formatter.format(+ line.unitPrice ?? 0+ )}{" "}+ {+ unitOfMeasures.find(+ (uom) =>+ uom.value === line.purchaseUnitOfMeasureCode+ )?.label+ }+ </Badge>+ {(line.taxPercent ?? 0) > 0 ? (+ <Badge variant="red">+ {percentFormatter.format(line.taxPercent ?? 0)} Tax+ </Badge>+ ) : null}+ </div>+ </VStack></div>- <span className="text-muted-foreground text-base truncate">- {line.description}- </span></div></VStack></HStack>diff --git a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceSummary.tsx b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceSummary.tsxindex 362f0cb3b8..290a531528 100644--- a/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceSummary.tsx+++ b/apps/erp/app/modules/invoicing/ui/SalesInvoice/SalesInvoiceSummary.tsx@@ -1,4 +1,5 @@import {+ Badge,Button,Card,CardContent,@@ -19,7 +20,7 @@ import { Link, useParams } from "@remix-run/react";import { motion } from "framer-motion";import { useState } from "react";import { LuChevronRight, LuImage } from "react-icons/lu";-import { CustomerAvatar } from "~/components";+import { CustomerAvatar, MethodIcon } from "~/components";import { useUnitOfMeasure } from "~/components/Form/UnitOfMeasure";import {useCurrencyFormatter,@@ -118,49 +119,85 @@ const LineItems = ({className="flex flex-col cursor-pointer w-full"onClick={() => toggleOpen(line.id!)}>- <div className="flex items-center gap-x-4 justify-between flex-grow min-w-0">- <HStack spacing={2} className="min-w-0 flex-shrink">- <Heading className="truncate">{itemReadableId}</Heading>-- <Button- asChild- variant="link"- size="sm"- className="text-muted-foreground flex-shrink-0"+ <div className="flex items-center justify-between w-full">+ <VStack+ spacing={0}+ className="flex-shrink-0 min-w-0 w-auto"+ >+ <HStack+ spacing={2}+ className="flex min-w-0 flex-shrink-0">- <Link- to={path.to.salesInvoiceLine(invoiceId, line.id!)}+ <Heading className="truncate">{itemReadableId}</Heading>+ <Button+ asChild+ variant="link"+ size="sm"+ className="text-muted-foreground flex-shrink-0">- Edit- </Link>- </Button>- </HStack>- <HStack spacing={4} className="flex-shrink-0 ml-4">- <VStack spacing={0}>- <span className="font-bold text-xl whitespace-nowrap">- {formatter.format(total)}- </span>- {shouldConvertCurrency && (- <span className="text-muted-foreground text-sm">- {presentationCurrencyFormatter.format(- customerTotal- )}+ <Link+ to={path.to.salesInvoiceLine(invoiceId, line.id!)}+ >+ Edit+ </Link>+ </Button>+ </HStack>+ <span className="text-muted-foreground text-base truncate">+ {line.description}+ </span>+ </VStack>+ <VStack+ spacing={2}+ className="flex-shrink-0 items-end w-auto"+ >+ <HStack spacing={4}>+ <VStack spacing={0}>+ <span className="font-bold text-xl whitespace-nowrap">+ {formatter.format(total)}</span>- )}- </VStack>- <motion.div- animate={{- rotate: openItems.includes(line.id) ? 90 : 0,- }}- transition={{ duration: 0.3 }}- >- <LuChevronRight size={24} />- </motion.div>- </HStack>+ {shouldConvertCurrency && (+ <span className="text-muted-foreground text-sm">+ {presentationCurrencyFormatter.format(+ customerTotal+ )}+ </span>+ )}+ </VStack>+ <motion.div+ animate={{+ rotate: openItems.includes(line.id) ? 90 : 0,+ }}+ transition={{ duration: 0.3 }}+ >+ <LuChevronRight size={24} />+ </motion.div>+ </HStack>+ <div className="flex items-center gap-2">+ <Badge+ variant="outline"+ className="flex items-center gap-2"+ >+ {line.quantity}+ <MethodIcon type={line.methodType ?? "Pick"} />+ </Badge>+ <Badge variant="green">+ {formatter.format(+ line.unitPrice ?? 0+ )}{" "}+ {+ unitOfMeasures.find(+ (uom) => uom.value === line.unitOfMeasureCode+ )?.label+ }+ </Badge>+ {(line.taxPercent ?? 0) > 0 ? (+ <Badge variant="red">+ {percentFormatter.format(line.taxPercent ?? 0)} Tax+ </Badge>+ ) : null}+ </div>+ </VStack></div>- <span className="text-muted-foreground text-base truncate">- {line.description}- </span></div></VStack></HStack>diff --git a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSummary.tsx b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSummary.tsxindex c9cc2cc7f2..bfa78690aa 100644--- a/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSummary.tsx+++ b/apps/erp/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderSummary.tsx@@ -1,4 +1,5 @@import {+ Badge,Button,Card,CardContent,@@ -19,7 +20,7 @@ import { Link, useParams } from "@remix-run/react";import { motion } from "framer-motion";import { useState } from "react";import { LuChevronRight, LuImage } from "react-icons/lu";-import { SupplierAvatar } from "~/components";+import { MethodIcon, SupplierAvatar } from "~/components";import { useUnitOfMeasure } from "~/components/Form/UnitOfMeasure";import {useCurrencyFormatter,@@ -107,47 +108,84 @@ const LineItems = ({className="flex flex-col cursor-pointer w-full"onClick={() => toggleOpen(line.id!)}>- <div className="flex items-center gap-x-4 justify-between flex-grow min-w-0">- <HStack spacing={2} className="min-w-0 flex-shrink ">- <Heading className="truncate">{itemReadableId}</Heading>-- <Button- asChild- variant="link"- size="sm"- className="text-muted-foreground flex-shrink-0"+ <div className="flex items-center justify-between w-full">+ <VStack+ spacing={0}+ className="flex-shrink-0 min-w-0 w-auto"+ >+ <HStack+ spacing={2}+ className="flex min-w-0 flex-shrink-0">- <Link to={path.to.purchaseOrderLine(orderId, line.id!)}>- Edit- </Link>- </Button>- </HStack>- <HStack spacing={4} className="flex-shrink-0 ml-4">- <VStack spacing={0}>- <span className="font-bold text-xl whitespace-nowrap">- {formatter.format(total)}- </span>- {shouldConvertCurrency && (- <span className="text-muted-foreground text-sm">- {presentationCurrencyFormatter.format(- supplierTotal- )}+ <Heading className="truncate">{itemReadableId}</Heading>+ <Button+ asChild+ variant="link"+ size="sm"+ className="text-muted-foreground flex-shrink-0"+ >+ <Link to={path.to.purchaseOrderLine(orderId, line.id!)}>+ Edit+ </Link>+ </Button>+ </HStack>+ <span className="text-muted-foreground text-base truncate">+ {line.description}+ </span>+ </VStack>+ <VStack+ spacing={2}+ className="flex-shrink-0 items-end w-auto"+ >+ <HStack spacing={4}>+ <VStack spacing={0}>+ <span className="font-bold text-xl whitespace-nowrap">+ {formatter.format(total)}</span>- )}- </VStack>- <motion.div- animate={{- rotate: openItems.includes(line.id) ? 90 : 0,- }}- transition={{ duration: 0.3 }}- >- <LuChevronRight size={24} />- </motion.div>- </HStack>+ {shouldConvertCurrency && (+ <span className="text-muted-foreground text-sm">+ {presentationCurrencyFormatter.format(+ supplierTotal+ )}+ </span>+ )}+ </VStack>+ <motion.div+ animate={{+ rotate: openItems.includes(line.id) ? 90 : 0,+ }}+ transition={{ duration: 0.3 }}+ >+ <LuChevronRight size={24} />+ </motion.div>+ </HStack>+ <div className="flex items-center gap-2">+ <Badge+ variant="outline"+ className="flex items-center gap-2"+ >+ {line.purchaseQuantity}+ <MethodIcon type={line.methodType ?? "Pick"} />+ </Badge>+ <Badge variant="green">+ {formatter.format(+ line.unitPrice ?? 0+ )}{" "}+ {+ unitOfMeasures.find(+ (uom) =>+ uom.value === line.purchaseUnitOfMeasureCode+ )?.label+ }+ </Badge>+ {(line.taxPercent ?? 0) > 0 ? (+ <Badge variant="red">+ {percentFormatter.format(line.taxPercent ?? 0)} Tax+ </Badge>+ ) : null}+ </div>+ </VStack></div>- <span className="text-muted-foreground text-base truncate">- {line.description}- </span></div></VStack></HStack>diff --git a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsxindex 9650fe0fd7..3a61de6c9d 100644--- a/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx+++ b/apps/erp/app/modules/sales/ui/Opportunity/OpportunityLineDocuments.tsx@@ -478,7 +478,7 @@ const OpportunityLineDocuments = ({: "--"}</Td><Td>- <Enumerable value="Opportunity" />+ <Enumerable value="Model" /></Td><Td><div className="flex justify-end w-full">diff --git a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsxindex b7ca3ffa76..eb7557030e 100644--- a/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx+++ b/apps/erp/app/modules/sales/ui/SalesOrder/SalesOrderSummary.tsx@@ -36,7 +36,7 @@ import {LuImage,LuInfo,} from "react-icons/lu";-import { CustomerAvatar, Hyperlink } from "~/components";+import { CustomerAvatar, Hyperlink, MethodIcon } from "~/components";import { usePercentFormatter, useRouteData } from "~/hooks";import type { Job } from "~/modules/production/types";import JobStatus from "~/modules/production/ui/Jobs/JobStatus";@@ -227,6 +227,7 @@ const SalesOrderSummary = ({function LineItems({currencyCode,locale,+ formatter,lines,salesOrder,}: {@@ -308,51 +309,87 @@ function LineItems({className="flex flex-col cursor-pointer w-full"onClick={() => toggleOpen(line.id!)}>- <div className="flex items-center gap-x-4 justify-between flex-grow min-w-0">- <HStack spacing={2} className="min-w-0 flex-shrink">- <Heading className="truncate">- {line.itemReadableId}- </Heading>- <Button- asChild- variant="link"- size="sm"- className="text-muted-foreground flex-shrink-0"+ <div className="flex items-center justify-between w-full">+ <VStack+ spacing={0}+ className="flex-shrink-0 min-w-0 w-auto"+ >+ <HStack+ spacing={2}+ className="flex min-w-0 flex-shrink-0">- <Link to={path.to.salesOrderLine(orderId, line.id!)}>- Edit- </Link>- </Button>- </HStack>- <HStack spacing={4} className="flex-shrink-0 ml-4">- <MotionNumber- className="font-bold text-xl whitespace-nowrap"- value={- ((line?.convertedUnitPrice ?? 0) *- (line?.saleQuantity ?? 0) +- (line?.convertedAddOnCost ?? 0) +- (line?.convertedShippingCost ?? 0)) *- (1 + (line?.taxPercent ?? 0))- }- format={{- style: "currency",- currency: currencyCode,- }}- locales={locale}- />- <motion.div- animate={{- rotate: openItems.includes(line.id) ? 90 : 0,- }}- transition={{ duration: 0.3 }}- >- <LuChevronRight size={24} />- </motion.div>- </HStack>+ <Heading className="truncate">+ {line.itemReadableId}+ </Heading>+ <Button+ asChild+ variant="link"+ size="sm"+ className="text-muted-foreground flex-shrink-0"+ >+ <Link to={path.to.salesOrderLine(orderId, line.id!)}>+ Edit+ </Link>+ </Button>+ </HStack>+ <span className="text-muted-foreground text-base truncate">+ {line.description}+ </span>+ </VStack>+ <VStack+ spacing={2}+ className="flex-shrink-0 items-end w-auto"+ >+ <HStack spacing={4}>+ <MotionNumber+ className="font-bold text-xl whitespace-nowrap"+ value={+ ((line?.convertedUnitPrice ?? 0) *+ (line?.saleQuantity ?? 0) ++ (line?.convertedAddOnCost ?? 0) ++ (line?.convertedShippingCost ?? 0)) *+ (1 + (line?.taxPercent ?? 0))+ }+ format={{+ style: "currency",+ currency: currencyCode,+ }}+ locales={locale}+ />+ <motion.div+ animate={{+ rotate: openItems.includes(line.id) ? 90 : 0,+ }}+ transition={{ duration: 0.3 }}+ >+ <LuChevronRight size={24} />+ </motion.div>+ </HStack>+ <div className="flex items-center gap-2">+ <Badge+ variant="outline"+ className="flex items-center gap-2"+ >+ {line.saleQuantity}+ <MethodIcon type={line.methodType ?? "Pick"} />+ </Badge>+ <Badge variant="green">+ {formatter.format(+ (line.unitPrice ?? 0) ++ (line.addOnCost ?? 0) ++ (line.shippingCost ?? 0)+ )}{" "}+ {line.unitOfMeasureCode}+ </Badge>+ {(line.taxPercent ?? 0) > 0 ? (+ <Badge variant="red">+ {percentFormatter.format(line.taxPercent ?? 0)} Tax+ </Badge>+ ) : null}+ </div>+ </VStack></div>- <span className="text-muted-foreground text-base truncate">- {line.description}- </span>+{isMade && (<div className="mt-2 flex flex-row items-end gap-x-2"><Badge variant={jobVariant}>{jobLabel}</Badge>diff --git a/packages/database/src/swagger-docs-schema.ts b/packages/database/src/swagger-docs-schema.tsindex 349b3f1a14..63f3195992 100644--- a/packages/database/src/swagger-docs-schema.ts+++ b/packages/database/src/swagger-docs-schema.ts@@ -3,7 +3,7 @@ export default {info: {description: "",title: "standard public schema",- version: "13.0.6",+ version: "12.2.8 (4a3936f)",},host: "0.0.0.0:3000",basePath: "/",@@ -11583,6 +11583,9 @@ export default {{$ref: "#/parameters/rowFilter.jobs.startDate",},+ {+ $ref: "#/parameters/rowFilter.jobs.jobMakeMethodId",+ },{$ref: "#/parameters/rowFilter.jobs.name",},@@ -43425,6 +43428,9 @@ export default {{$ref: "#/parameters/rowFilter.user.acknowledgedUniversity",},+ {+ $ref: "#/parameters/rowFilter.user.acknowledgedITAR",+ },{$ref: "#/parameters/select",},@@ -43523,6 +43529,9 @@ export default {{$ref: "#/parameters/rowFilter.user.acknowledgedUniversity",},+ {+ $ref: "#/parameters/rowFilter.user.acknowledgedITAR",+ },{$ref: "#/parameters/preferReturn",},@@ -43575,6 +43584,9 @@ export default {{$ref: "#/parameters/rowFilter.user.acknowledgedUniversity",},+ {+ $ref: "#/parameters/rowFilter.user.acknowledgedITAR",+ },{$ref: "#/parameters/body.user",},@@ -55198,6 +55210,35 @@ export default {},},"/rpc/has_company_permission": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "claim",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "company",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) has_company_permission"],+ },post: {parameters: [{@@ -55237,6 +55278,49 @@ export default {},},"/rpc/create_rfq_from_models_v2": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "email",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "sequence_number",+ required: true,+ type: "string",+ },+ {+ format: "json[]",+ in: "query",+ name: "model_data",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) create_rfq_from_models_v2"],+ },post: {parameters: [{@@ -55290,6 +55374,28 @@ export default {},},"/rpc/get_supplier_interaction_with_related_records": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "supplier_interaction_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_supplier_interaction_with_related_records"],+ },post: {parameters: [{@@ -55325,6 +55431,28 @@ export default {},},"/rpc/check_operation_dependencies": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "operation_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) check_operation_dependencies"],+ },post: {parameters: [{@@ -55360,6 +55488,28 @@ export default {},},"/rpc/get_companies_with_employee_permission": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "permission",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_companies_with_employee_permission"],+ },post: {parameters: [{@@ -55490,6 +55640,19 @@ export default {},},"/rpc/get_companies_with_any_role": {+ get: {+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_companies_with_any_role"],+ },post: {parameters: [{@@ -55518,6 +55681,28 @@ export default {},},"/rpc/get_direct_ancestors_of_tracked_entity": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "p_tracked_entity_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_direct_ancestors_of_tracked_entity"],+ },post: {parameters: [{@@ -55553,6 +55738,28 @@ export default {},},"/rpc/get_permission_companies": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "claim",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_permission_companies"],+ },post: {parameters: [{@@ -55588,6 +55795,28 @@ export default {},},"/rpc/get_tool_details": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "item_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_tool_details"],+ },post: {parameters: [{@@ -55623,6 +55852,35 @@ export default {},},"/rpc/get_inventory_quantities": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "location_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_inventory_quantities"],+ },post: {parameters: [{@@ -55662,6 +55920,28 @@ export default {},},"/rpc/get_direct_descendants_of_tracked_entity_strict": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "p_tracked_entity_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_direct_descendants_of_tracked_entity_strict"],+ },post: {parameters: [{@@ -55697,6 +55977,49 @@ export default {},},"/rpc/create_rfq_from_models_v1": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "email",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "sequence_number",+ required: true,+ type: "string",+ },+ {+ format: "json[]",+ in: "query",+ name: "model_data",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) create_rfq_from_models_v1"],+ },post: {parameters: [{@@ -55750,6 +56073,28 @@ export default {},},"/rpc/get_companies_with_permission": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "permission",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_companies_with_permission"],+ },post: {parameters: [{@@ -55785,6 +56130,19 @@ export default {},},"/rpc/get_companies_with_employee_role": {+ get: {+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_companies_with_employee_role"],+ },post: {parameters: [{@@ -55910,6 +56268,28 @@ export default {},},"/rpc/has_any_company_permission": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "claim",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) has_any_company_permission"],+ },post: {parameters: [{@@ -55945,6 +56325,19 @@ export default {},},"/rpc/is_claims_admin": {+ get: {+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) is_claims_admin"],+ },post: {parameters: [{@@ -55973,6 +56366,28 @@ export default {},},"/rpc/xid": {+ get: {+ parameters: [+ {+ format: "timestamp with time zone",+ in: "query",+ name: "_at",+ required: false,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) xid"],+ },post: {parameters: [{@@ -56064,6 +56479,56 @@ export default {},},"/rpc/update_receipt_line_serial_tracking": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "p_receipt_line_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "p_receipt_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "p_serial_number",+ required: true,+ type: "string",+ },+ {+ format: "integer",+ in: "query",+ name: "p_index",+ required: true,+ type: "integer",+ },+ {+ format: "text",+ in: "query",+ name: "p_tracked_entity_id",+ required: false,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) update_receipt_line_serial_tracking"],+ },post: {parameters: [{@@ -56120,6 +56585,42 @@ export default {},},"/rpc/get_production_projections": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "location_id",+ required: true,+ type: "string",+ },+ {+ format: "text[]",+ in: "query",+ name: "periods",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_production_projections"],+ },post: {parameters: [{@@ -56166,6 +56667,35 @@ export default {},},"/rpc/get_job_operations_by_work_center": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "work_center_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "location_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_job_operations_by_work_center"],+ },post: {parameters: [{@@ -56205,6 +56735,42 @@ export default {},},"/rpc/get_item_quantities_by_tracking_id": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "item_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "location_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_item_quantities_by_tracking_id"],+ },post: {parameters: [{@@ -56362,6 +56928,28 @@ export default {},},"/rpc/xid_time": {+ get: {+ parameters: [+ {+ format: "public.xid",+ in: "query",+ name: "_xid",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) xid_time"],+ },post: {parameters: [{@@ -56397,6 +56985,28 @@ export default {},},"/rpc/get_sales_order_lines_by_customer_id": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "customer_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_sales_order_lines_by_customer_id"],+ },post: {parameters: [{@@ -56432,6 +57042,28 @@ export default {},},"/rpc/get_my_permission": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "claim",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_my_permission"],+ },post: {parameters: [{@@ -56467,6 +57099,28 @@ export default {},},"/rpc/xid_decode": {+ get: {+ parameters: [+ {+ format: "public.xid",+ in: "query",+ name: "_xid",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) xid_decode"],+ },post: {parameters: [{@@ -56502,6 +57156,49 @@ export default {},},"/rpc/nanoid_optimized": {+ get: {+ parameters: [+ {+ format: "integer",+ in: "query",+ name: "size",+ required: true,+ type: "integer",+ },+ {+ format: "text",+ in: "query",+ name: "alphabet",+ required: true,+ type: "string",+ },+ {+ format: "integer",+ in: "query",+ name: "mask",+ required: true,+ type: "integer",+ },+ {+ format: "integer",+ in: "query",+ name: "step",+ required: true,+ type: "integer",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) nanoid_optimized"],+ },post: {parameters: [{@@ -56549,6 +57246,35 @@ export default {},},"/rpc/get_active_job_operations_by_location": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "location_id",+ required: true,+ type: "string",+ },+ {+ format: "text[]",+ in: "query",+ name: "work_center_ids",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_active_job_operations_by_location"],+ },post: {parameters: [{@@ -56591,6 +57317,35 @@ export default {},},"/rpc/get_next_numeric_sequence": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ {+ format: '"itemType"',+ in: "query",+ name: "item_type",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_next_numeric_sequence"],+ },post: {parameters: [{@@ -56630,6 +57385,28 @@ export default {},},"/rpc/get_part_details": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "item_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_part_details"],+ },post: {parameters: [{@@ -56665,6 +57442,28 @@ export default {},},"/rpc/xid_pid": {+ get: {+ parameters: [+ {+ format: "public.xid",+ in: "query",+ name: "_xid",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) xid_pid"],+ },post: {parameters: [{@@ -56700,6 +57499,35 @@ export default {},},"/rpc/get_active_job_count": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "employee_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_active_job_count"],+ },post: {parameters: [{@@ -56739,6 +57567,28 @@ export default {},},"/rpc/groups_for_user": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "uid",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) groups_for_user"],+ },post: {parameters: [{@@ -56774,6 +57624,70 @@ export default {},},"/rpc/create_rfq_from_model_v1": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "customer_part_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "email",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "model_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "sequence_number",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "unit_of_measure",+ required: true,+ type: "string",+ },+ {+ format: "json",+ in: "query",+ name: "notes",+ required: false,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) create_rfq_from_model_v1"],+ },post: {parameters: [{@@ -56839,6 +57753,19 @@ export default {},},"/rpc/get_company_id_from_api_key": {+ get: {+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_company_id_from_api_key"],+ },post: {parameters: [{@@ -56867,6 +57794,35 @@ export default {},},"/rpc/get_radan_v1": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ {+ format: "text[]",+ in: "query",+ name: "processes",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_radan_v1"],+ },post: {parameters: [{@@ -56909,6 +57865,28 @@ export default {},},"/rpc/uuid_to_base58": {+ get: {+ parameters: [+ {+ format: "uuid",+ in: "query",+ name: "_uuid",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) uuid_to_base58"],+ },post: {parameters: [{@@ -56944,6 +57922,35 @@ export default {},},"/rpc/get_assigned_job_operations": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "user_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_assigned_job_operations"],+ },post: {parameters: [{@@ -56983,6 +57990,28 @@ export default {},},"/rpc/xid_encode": {+ get: {+ parameters: [+ {+ format: "integer[]",+ in: "query",+ name: "_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) xid_encode"],+ },post: {parameters: [{@@ -57021,6 +58050,28 @@ export default {},},"/rpc/get_direct_descendants_of_tracked_entity": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "p_tracked_entity_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_direct_descendants_of_tracked_entity"],+ },post: {parameters: [{@@ -57056,6 +58107,28 @@ export default {},},"/rpc/get_customer_ids_with_customer_permission": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "permission",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_customer_ids_with_customer_permission"],+ },post: {parameters: [{@@ -57091,6 +58164,35 @@ export default {},},"/rpc/get_company_id_from_foreign_key": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "foreign_key",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "tbl",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_company_id_from_foreign_key"],+ },post: {parameters: [{@@ -57130,6 +58232,28 @@ export default {},},"/rpc/users_for_groups": {+ get: {+ parameters: [+ {+ format: "text[]",+ in: "query",+ name: "groups",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) users_for_groups"],+ },post: {parameters: [{@@ -57168,6 +58292,35 @@ export default {},},"/rpc/get_recent_job_operations_by_employee": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "employee_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_recent_job_operations_by_employee"],+ },post: {parameters: [{@@ -57207,6 +58360,28 @@ export default {},},"/rpc/get_supplier_ids_with_supplier_permission": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "permission",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_supplier_ids_with_supplier_permission"],+ },post: {parameters: [{@@ -57242,6 +58417,28 @@ export default {},},"/rpc/get_job_operation_by_id": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "operation_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_job_operation_by_id"],+ },post: {parameters: [{@@ -57277,6 +58474,28 @@ export default {},},"/rpc/increment_webhook_error": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "webhook_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) increment_webhook_error"],+ },post: {parameters: [{@@ -57312,6 +58531,35 @@ export default {},},"/rpc/journalLinesByAccountNumber": {+ get: {+ parameters: [+ {+ format: "date",+ in: "query",+ name: "from_date",+ required: false,+ type: "string",+ },+ {+ format: "date",+ in: "query",+ name: "to_date",+ required: false,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) journalLinesByAccountNumber"],+ },post: {parameters: [{@@ -57350,6 +58598,28 @@ export default {},},"/rpc/xid_machine": {+ get: {+ parameters: [+ {+ format: "public.xid",+ in: "query",+ name: "_xid",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) xid_machine"],+ },post: {parameters: [{@@ -57385,6 +58655,28 @@ export default {},},"/rpc/get_my_claim": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "claim",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_my_claim"],+ },post: {parameters: [{@@ -57420,6 +58712,42 @@ export default {},},"/rpc/get_job_quantity_on_hand": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "job_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "location_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_job_quantity_on_hand"],+ },post: {parameters: [{@@ -57577,6 +58905,28 @@ export default {},},"/rpc/increment_webhook_success": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "webhook_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) increment_webhook_success"],+ },post: {parameters: [{@@ -57611,7 +58961,70 @@ export default {tags: ["(rpc) increment_webhook_success"],},},+ "/rpc/uuid_generate_v4": {+ get: {+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) uuid_generate_v4"],+ },+ post: {+ parameters: [+ {+ in: "body",+ name: "args",+ required: true,+ schema: {+ type: "object",+ },+ },+ {+ $ref: "#/parameters/preferParams",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) uuid_generate_v4"],+ },+ },"/rpc/is_last_job_operation": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "operation_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) is_last_job_operation"],+ },post: {parameters: [{@@ -57647,6 +59060,35 @@ export default {},},"/rpc/get_next_sequence": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "sequence_name",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_next_sequence"],+ },post: {parameters: [{@@ -57743,6 +59185,49 @@ export default {},},"/rpc/nanoid": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "prefix",+ required: false,+ type: "string",+ },+ {+ format: "integer",+ in: "query",+ name: "size",+ required: false,+ type: "integer",+ },+ {+ format: "text",+ in: "query",+ name: "alphabet",+ required: false,+ type: "string",+ },+ {+ format: "double precision",+ in: "query",+ name: "additionalbytesfactor",+ required: false,+ type: "number",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) nanoid"],+ },post: {parameters: [{@@ -57789,6 +59274,35 @@ export default {},},"/rpc/has_role": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "required_role",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "company",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) has_role"],+ },post: {parameters: [{@@ -57828,6 +59342,28 @@ export default {},},"/rpc/has_valid_api_key_for_company": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "company",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) has_valid_api_key_for_company"],+ },post: {parameters: [{@@ -57920,6 +59456,35 @@ export default {},},"/rpc/groups_query": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "_name",+ required: false,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "_uid",+ required: false,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) groups_query"],+ },post: {parameters: [{@@ -57958,6 +59523,42 @@ export default {},},"/rpc/get_next_prefixed_sequence": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ {+ format: '"itemType"',+ in: "query",+ name: "item_type",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "prefix",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_next_prefixed_sequence"],+ },post: {parameters: [{@@ -58001,6 +59602,35 @@ export default {},},"/rpc/get_active_job_operations_by_employee": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "employee_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_active_job_operations_by_employee"],+ },post: {parameters: [{@@ -58097,6 +59727,28 @@ export default {},},"/rpc/xid_counter": {+ get: {+ parameters: [+ {+ format: "public.xid",+ in: "query",+ name: "_xid",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) xid_counter"],+ },post: {parameters: [{@@ -58132,6 +59784,42 @@ export default {},},"/rpc/get_production_planning": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "location_id",+ required: true,+ type: "string",+ },+ {+ format: "text[]",+ in: "query",+ name: "periods",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_production_planning"],+ },post: {parameters: [{@@ -58178,6 +59866,63 @@ export default {},},"/rpc/update_receipt_line_batch_tracking": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "p_receipt_line_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "p_receipt_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "p_batch_number",+ required: true,+ type: "string",+ },+ {+ format: "numeric",+ in: "query",+ name: "p_quantity",+ required: true,+ type: "number",+ },+ {+ format: "text",+ in: "query",+ name: "p_tracked_entity_id",+ required: false,+ type: "string",+ },+ {+ format: "jsonb",+ in: "query",+ name: "p_properties",+ required: false,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) update_receipt_line_batch_tracking"],+ },post: {parameters: [{@@ -58237,6 +59982,42 @@ export default {},},"/rpc/get_purchasing_planning": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "location_id",+ required: true,+ type: "string",+ },+ {+ format: "text[]",+ in: "query",+ name: "periods",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_purchasing_planning"],+ },post: {parameters: [{@@ -58283,6 +60064,28 @@ export default {},},"/rpc/id": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "_prefix",+ required: false,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) id"],+ },post: {parameters: [{@@ -58317,6 +60120,42 @@ export default {},},"/rpc/get_custom_field_unique_values": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "table_name",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "field_key",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "company_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_custom_field_unique_values"],+ },post: {parameters: [{@@ -58360,6 +60199,35 @@ export default {},},"/rpc/get_claims": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "uid",+ required: true,+ type: "string",+ },+ {+ format: "text",+ in: "query",+ name: "company",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_claims"],+ },post: {parameters: [{@@ -58399,6 +60267,28 @@ export default {},},"/rpc/get_opportunity_with_related_records": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "opportunity_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_opportunity_with_related_records"],+ },post: {parameters: [{@@ -58529,6 +60419,28 @@ export default {},},"/rpc/get_direct_ancestors_of_tracked_entity_strict": {+ get: {+ parameters: [+ {+ format: "text",+ in: "query",+ name: "p_tracked_entity_id",+ required: true,+ type: "string",+ },+ ],+ produces: [+ "application/json",+ "application/vnd.pgrst.object+json;nulls=stripped",+ "application/vnd.pgrst.object+json",+ ],+ responses: {+ "200": {+ description: "OK",+ },+ },+ tags: ["(rpc) get_direct_ancestors_of_tracked_entity_strict"],+ },post: {parameters: [{@@ -62056,7 +63968,7 @@ export default {properties: {id: {description:- "Note:\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",+ "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",format: "text",type: "string",},@@ -62105,7 +64017,7 @@ export default {},supplierLocationId: {description:- "Note:\nThis is a Primary Key.<pk/>\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",+ "Note:\nThis is a Foreign Key to `supplierLocation.id`.<fk table='supplierLocation' column='id'/>",format: "text",type: "string",},@@ -63966,6 +65878,11 @@ export default {format: "date",type: "string",},+ jobMakeMethodId: {+ description: "Note:\nThis is a Primary Key.<pk/>",+ format: "text",+ type: "string",+ },name: {format: "text",type: "string",@@ -67773,7 +69690,15 @@ export default {type: "object",},procedure: {- required: ["id", "name", "version", "status", "createdAt", "createdBy"],+ required: [+ "id",+ "name",+ "version",+ "status",+ "content",+ "createdAt",+ "createdBy",+ ],properties: {id: {default: "public.id('pro'::text)",@@ -78909,6 +80834,7 @@ export default {"about","createdAt","acknowledgedUniversity",+ "acknowledgedITAR",],properties: {id: {@@ -78972,6 +80898,11 @@ export default {format: "boolean",type: "boolean",},+ acknowledgedITAR: {+ default: false,+ format: "boolean",+ type: "boolean",+ },},type: "object",},@@ -84438,6 +86369,7 @@ export default {name: "Prefer",description: "Preference",required: false,+ enum: ["params=single-object"],in: "header",type: "string",},@@ -90671,6 +92603,12 @@ export default {in: "query",type: "string",},+ "rowFilter.jobs.jobMakeMethodId": {+ name: "jobMakeMethodId",+ required: false,+ in: "query",+ type: "string",+ },"rowFilter.jobs.name": {name: "name",required: false,@@ -107675,6 +109613,12 @@ export default {in: "query",type: "string",},+ "rowFilter.user.acknowledgedITAR": {+ name: "acknowledgedITAR",+ required: false,+ in: "query",+ type: "string",+ },"body.externalLink": {name: "externalLink",description: "externalLink",@@ -113687,6 +115631,6 @@ export default {},externalDocs: {description: "PostgREST Documentation",- url: "https://postgrest.org/en/v13/references/api.html",+ url: "https://postgrest.org/en/v12/references/api.html",},};diff --git a/packages/database/src/types.ts b/packages/database/src/types.tsindex fb54909f95..70cffcc62e 100644--- a/packages/database/src/types.ts+++ b/packages/database/src/types.ts@@ -40624,14 +40624,14 @@ export type Database = {},{foreignKeyName: "partner_id_fkey"- columns: ["id"]+ columns: ["supplierLocationId"]isOneToOne: falsereferencedRelation: "supplierLocation"referencedColumns: ["id"]},{foreignKeyName: "partner_id_fkey"- columns: ["supplierLocationId"]+ columns: ["id"]isOneToOne: falsereferencedRelation: "supplierLocation"referencedColumns: ["id"]@@ -41993,14 +41993,14 @@ export type Database = {Relationships: [{foreignKeyName: "address_countryCode_fkey"- columns: ["supplierCountryCode"]+ columns: ["customerCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]},{foreignKeyName: "address_countryCode_fkey"- columns: ["customerCountryCode"]+ columns: ["supplierCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]@@ -48575,6 +48575,10 @@ export type Database = {}Returns: Json}+ uuid_generate_v4: {+ Args: Record<PropertyKey, never>+ Returns: string+ }uuid_to_base58: {Args: {_uuid: string@@ -49068,7 +49072,6 @@ export type Database = {owner: string | nullowner_id: string | nullpublic: boolean | null- type: Database["storage"]["Enums"]["buckettype"]updated_at: string | null}Insert: {@@ -49081,7 +49084,6 @@ export type Database = {owner?: string | nullowner_id?: string | nullpublic?: boolean | null- type?: Database["storage"]["Enums"]["buckettype"]updated_at?: string | null}Update: {@@ -49094,112 +49096,10 @@ export type Database = {owner?: string | nullowner_id?: string | nullpublic?: boolean | null- type?: Database["storage"]["Enums"]["buckettype"]updated_at?: string | null}Relationships: []}- buckets_analytics: {- Row: {- created_at: string- format: string- id: string- type: Database["storage"]["Enums"]["buckettype"]- updated_at: string- }- Insert: {- created_at?: string- format?: string- id: string- type?: Database["storage"]["Enums"]["buckettype"]- updated_at?: string- }- Update: {- created_at?: string- format?: string- id?: string- type?: Database["storage"]["Enums"]["buckettype"]- updated_at?: string- }- Relationships: []- }- iceberg_namespaces: {- Row: {- bucket_id: string- created_at: string- id: string- name: string- updated_at: string- }- Insert: {- bucket_id: string- created_at?: string- id?: string- name: string- updated_at?: string- }- Update: {- bucket_id?: string- created_at?: string- id?: string- name?: string- updated_at?: string- }- Relationships: [- {- foreignKeyName: "iceberg_namespaces_bucket_id_fkey"- columns: ["bucket_id"]- isOneToOne: false- referencedRelation: "buckets_analytics"- referencedColumns: ["id"]- },- ]- }- iceberg_tables: {- Row: {- bucket_id: string- created_at: string- id: string- location: string- name: string- namespace_id: string- updated_at: string- }- Insert: {- bucket_id: string- created_at?: string- id?: string- location: string- name: string- namespace_id: string- updated_at?: string- }- Update: {- bucket_id?: string- created_at?: string- id?: string- location?: string- name?: string- namespace_id?: string- updated_at?: string- }- Relationships: [- {- foreignKeyName: "iceberg_tables_bucket_id_fkey"- columns: ["bucket_id"]- isOneToOne: false- referencedRelation: "buckets_analytics"- referencedColumns: ["id"]- },- {- foreignKeyName: "iceberg_tables_namespace_id_fkey"- columns: ["namespace_id"]- isOneToOne: false- referencedRelation: "iceberg_namespaces"- referencedColumns: ["id"]- },- ]- }migrations: {Row: {executed_at: string | null@@ -49592,7 +49492,7 @@ export type Database = {}}Enums: {- buckettype: "STANDARD" | "ANALYTICS"+ [_ in never]: never}CompositeTypes: {[_ in never]: neverdiff --git a/packages/database/supabase/functions/lib/types.ts b/packages/database/supabase/functions/lib/types.tsindex fb54909f95..70cffcc62e 100644--- a/packages/database/supabase/functions/lib/types.ts+++ b/packages/database/supabase/functions/lib/types.ts@@ -40624,14 +40624,14 @@ export type Database = {},{foreignKeyName: "partner_id_fkey"- columns: ["id"]+ columns: ["supplierLocationId"]isOneToOne: falsereferencedRelation: "supplierLocation"referencedColumns: ["id"]},{foreignKeyName: "partner_id_fkey"- columns: ["supplierLocationId"]+ columns: ["id"]isOneToOne: falsereferencedRelation: "supplierLocation"referencedColumns: ["id"]@@ -41993,14 +41993,14 @@ export type Database = {Relationships: [{foreignKeyName: "address_countryCode_fkey"- columns: ["supplierCountryCode"]+ columns: ["customerCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]},{foreignKeyName: "address_countryCode_fkey"- columns: ["customerCountryCode"]+ columns: ["supplierCountryCode"]isOneToOne: falsereferencedRelation: "country"referencedColumns: ["alpha2"]@@ -48575,6 +48575,10 @@ export type Database = {}Returns: Json}+ uuid_generate_v4: {+ Args: Record<PropertyKey, never>+ Returns: string+ }uuid_to_base58: {Args: {_uuid: string@@ -49068,7 +49072,6 @@ export type Database = {owner: string | nullowner_id: string | nullpublic: boolean | null- type: Database["storage"]["Enums"]["buckettype"]updated_at: string | null}Insert: {@@ -49081,7 +49084,6 @@ export type Database = {owner?: string | nullowner_id?: string | nullpublic?: boolean | null- type?: Database["storage"]["Enums"]["buckettype"]updated_at?: string | null}Update: {@@ -49094,112 +49096,10 @@ export type Database = {owner?: string | nullowner_id?: string | nullpublic?: boolean | null- type?: Database["storage"]["Enums"]["buckettype"]updated_at?: string | null}Relationships: []}- buckets_analytics: {- Row: {- created_at: string- format: string- id: string- type: Database["storage"]["Enums"]["buckettype"]- updated_at: string- }- Insert: {- created_at?: string- format?: string- id: string- type?: Database["storage"]["Enums"]["buckettype"]- updated_at?: string- }- Update: {- created_at?: string- format?: string- id?: string- type?: Database["storage"]["Enums"]["buckettype"]- updated_at?: string- }- Relationships: []- }- iceberg_namespaces: {- Row: {- bucket_id: string- created_at: string- id: string- name: string- updated_at: string- }- Insert: {- bucket_id: string- created_at?: string- id?: string- name: string- updated_at?: string- }- Update: {- bucket_id?: string- created_at?: string- id?: string- name?: string- updated_at?: string- }- Relationships: [- {- foreignKeyName: "iceberg_namespaces_bucket_id_fkey"- columns: ["bucket_id"]- isOneToOne: false- referencedRelation: "buckets_analytics"- referencedColumns: ["id"]- },- ]- }- iceberg_tables: {- Row: {- bucket_id: string- created_at: string- id: string- location: string- name: string- namespace_id: string- updated_at: string- }- Insert: {- bucket_id: string- created_at?: string- id?: string- location: string- name: string- namespace_id: string- updated_at?: string- }- Update: {- bucket_id?: string- created_at?: string- id?: string- location?: string- name?: string- namespace_id?: string- updated_at?: string- }- Relationships: [- {- foreignKeyName: "iceberg_tables_bucket_id_fkey"- columns: ["bucket_id"]- isOneToOne: false- referencedRelation: "buckets_analytics"- referencedColumns: ["id"]- },- {- foreignKeyName: "iceberg_tables_namespace_id_fkey"- columns: ["namespace_id"]- isOneToOne: false- referencedRelation: "iceberg_namespaces"- referencedColumns: ["id"]- },- ]- }migrations: {Row: {executed_at: string | null@@ -49592,7 +49492,7 @@ export type Database = {}}Enums: {- buckettype: "STANDARD" | "ANALYTICS"+ [_ in never]: never}CompositeTypes: {[_ in never]: never