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
Purchase Invoices from Receipt and Purchase Order (#48)
Brad Barbin58bc651826a5
diff --git a/.eslintrc.js b/.eslintrc.jsnew file mode 100644index 0000000000..1308cba140--- /dev/null+++ b/.eslintrc.js@@ -0,0 +1,4 @@+module.exports = {+ root: true,+ extends: ["carbon"],+};diff --git a/.vscode/postgres.code-snippets b/.vscode/postgres.code-snippetsnew file mode 100644index 0000000000..b6b5160241--- /dev/null+++ b/.vscode/postgres.code-snippets@@ -0,0 +1,33 @@+{+ "enum": {+ "prefix": "/enum",+ "body": [+ "CREATE TYPE \"enum\" AS ENUM (",+ " 'One',",+ " 'Two',",+ " 'Three',",+ ");"+ ]+ },+ "table": {+ "prefix": "/table",+ "body": [+ "CREATE TABLE \"table\" (",+ " \"id\" TEXT NOT NULL DEFAULT xid(),",+ " \"name\" TEXT NOT NULL,",+ "",+ " CONSTRAINT \"table_pkey\" PRIMARY KEY (\"id\")",+ ");"+ ]+ },+ "view": {+ "prefix": "/view",+ "body": [+ "CREATE OR REPLACE VIEW \"view\" WITH(SECURITY_INVOKER=true) AS",+ " SELECT",+ " \"table\".\"id\",",+ " \"table\".\"name\"",+ " FROM \"table\";"+ ]+ }+}diff --git a/.vscode/remix.code-snippets b/.vscode/remix.code-snippetsnew file mode 100644index 0000000000..c29d19b75d--- /dev/null+++ b/.vscode/remix.code-snippets@@ -0,0 +1,76 @@+{+ "loader": {+ "prefix": "/loader",+ "body": [+ "import type { LoaderFunctionArgs } from \"@remix-run/node\"",+ "",+ "export async function loader({ request }: LoaderFunctionArgs) {",+ " return null",+ "}"+ ]+ },+ "action": {+ "prefix": "/action",+ "body": [+ "import type { ActionFunctionArgs } from \"@remix-run/node\"",+ "",+ "export async function action({ request }: ActionFunctionArgs) {",+ " return null",+ "}"+ ]+ },+ "default": {+ "prefix": "/default",+ "body": [+ "export default function ${TM_FILENAME_BASE/[^a-zA-Z0-9]*([a-zA-Z0-9])([a-zA-Z0-9]*)/${1:/capitalize}${2}/g}() {",+ " return (",+ " <div>",+ " <h1>Unknown Route</h1>",+ " </div>",+ " )",+ "}"+ ]+ },+ "headers": {+ "prefix": "/headers",+ "body": [+ "import type { HeadersFunction } from '@remix-run/node'",+ "",+ "export const headers: HeadersFunction = ({ loaderHeaders }) => ({",+ " 'Cache-Control': loaderHeaders.get('Cache-Control') ?? '',",+ "})"+ ]+ },+ "links": {+ "prefix": "/links",+ "body": [+ "import type { LinksFunction } from '@remix-run/node'",+ "",+ "export const links: LinksFunction = () => {",+ " return []",+ "}"+ ]+ },+ "meta": {+ "prefix": "/meta",+ "body": [+ "import type { MetaFunction } from '@remix-run/node'",+ "",+ "export const meta: MetaFunction<typeof loader> = ({ data }) => [{",+ " title: 'Title',",+ "}]"+ ]+ },+ "shouldRevalidate": {+ "prefix": "/shouldRevalidate",+ "body": [+ "import type { ShouldRevalidateFunction } from '@remix-run/react'",+ "",+ "export const shouldRevalidate: ShouldRevalidateFunction = ({",+ " defaultShouldRevalidate",+ "}) => {",+ " return defaultShouldRevalidate",+ "}"+ ]+ }+}diff --git a/.vscode/supabase.code-snippets b/.vscode/supabase.code-snippetsnew file mode 100644index 0000000000..1d11c47fc2--- /dev/null+++ b/.vscode/supabase.code-snippets@@ -0,0 +1,45 @@+{+ "function": {+ "prefix": "/function",+ "body": [+ "import { serve } from \"https://deno.land/[email protected]/http/server.ts\";",+ "import { DB, getConnectionPool, getDatabaseClient } from \"../lib/database.ts\";",+ "",+ "import { corsHeaders } from \"../lib/headers.ts\";",+ "import { getSupabaseServiceRole } from \"../lib/supabase.ts\";",+ "",+ "const pool = getConnectionPool(1);",+ "const db = getDatabaseClient<DB>(pool);",+ "",+ "serve(async (req: Request) => {",+ " if (req.method === \"OPTIONS\") {",+ " return new Response(\"ok\", { headers: corsHeaders });",+ " }",+ " const { id } = await req.json();",+ "",+ " try {",+ " if (!id) throw new Error(\"Payload is missing id\");",+ "",+ " const client = getSupabaseServiceRole(req.headers.get(\"Authorization\"));",+ " await db.transaction().execute(async (trx) => {});",+ "",+ " return new Response(",+ " JSON.stringify({",+ " success: true,",+ " }),",+ " {",+ " headers: { ...corsHeaders, \"Content-Type\": \"application/json\" },",+ " status: 200,"+ " }",+ " );",+ " } catch (err) {",+ " console.error(err);",+ " return new Response(JSON.stringify(err), {",+ " headers: { ...corsHeaders, \"Content-Type\": \"application/json\" },",+ " status: 500,",+ " });",+ " }",+ "});"+ ]+ }+}diff --git a/apps/carbon/app/components/Editable/EditablePurchaseInvoiceLineNumber.tsx b/apps/carbon/app/components/Editable/EditablePurchaseInvoiceLineNumber.tsxnew file mode 100644index 0000000000..b725a6b2e8--- /dev/null+++ b/apps/carbon/app/components/Editable/EditablePurchaseInvoiceLineNumber.tsx@@ -0,0 +1,176 @@+/* eslint-disable react/display-name */+import type { Database } from "@carbon/database";+import { Select } from "@carbon/react";+import type {+ PostgrestSingleResponse,+ SupabaseClient,+} from "@supabase/supabase-js";+import type { EditableTableCellComponentProps } from "~/components/Editable";+import type { PurchaseInvoiceLine } from "~/modules/invoicing";++const EditablePurchaseInvoiceLineNumber =+ (+ mutation: (+ accessorKey: string,+ newValue: string,+ row: PurchaseInvoiceLine+ ) => Promise<PostgrestSingleResponse<unknown>>,+ options: {+ client?: SupabaseClient<Database>;+ parts: { label: string; value: string }[];+ accounts: { label: string; value: string }[];+ defaultLocationId: string | null;+ userId: string;+ }+ ) =>+ ({+ value,+ row,+ accessorKey,+ onError,+ onUpdate,+ }: EditableTableCellComponentProps<PurchaseInvoiceLine>) => {+ const { client, parts, accounts, userId } = options;+ const selectOptions =+ row.invoiceLineType === "Part"+ ? parts+ : row.invoiceLineType === "G/L Account"+ ? accounts+ : [];++ const onAccountChange = async ({+ value,+ label,+ }: {+ value: string;+ label: string;+ }) => {+ if (!client) throw new Error("Supabase client not found");++ const account = await client+ .from("account")+ .select("name")+ .eq("number", value)+ .single();++ onUpdate("description", account.data?.name ?? "");+ onUpdate("partId", null);+ onUpdate("assetId", null);+ onUpdate("accountNumber", value);+ onUpdate("unitOfMeasureCode", null);+ onUpdate("shelfId", null);++ try {+ const { error } = await client+ .from("purchaseInvoiceLine")+ .update({+ partId: null,+ assetId: null,+ accountNumber: value,+ description: account.data?.name ?? "",+ unitOfMeasureCode: null,+ shelfId: null,+ updatedBy: userId,+ })+ .eq("id", row.id);++ if (error) onError();+ } catch (error) {+ console.error(error);+ onError();+ }+ };++ const onPartChange = async ({+ value: partId,+ }: {+ value: string;+ label: string;+ }) => {+ if (!client) throw new Error("Supabase client not found");+ const [part, shelf, cost] = await Promise.all([+ client+ .from("part")+ .select("name, unitOfMeasureCode")+ .eq("id", partId)+ .single(),+ client+ .from("partInventory")+ .select("defaultShelfId")+ .eq("partId", partId)+ .eq("locationId", options.defaultLocationId!)+ .single(),+ client+ .from("partCost")+ .select("unitCost")+ .eq("partId", partId)+ .single(),+ ]);++ if (part.error) {+ onError();+ return;+ }++ onUpdate("partId", partId);+ onUpdate("description", part.data?.name);+ onUpdate("assetId", null);+ onUpdate("accountNumber", null);+ onUpdate("unitOfMeasureCode", part.data?.unitOfMeasureCode ?? null);+ onUpdate("locationId", options.defaultLocationId);+ onUpdate("shelfId", shelf.data?.defaultShelfId ?? null);+ onUpdate("unitPrice", cost.data?.unitCost ?? null);++ try {+ const { error } = await client+ .from("purchaseInvoiceLine")+ .update({+ partId: partId,+ assetId: null,+ accountNumber: null,+ description: part.data?.name,+ unitOfMeasureCode: part.data?.unitOfMeasureCode ?? null,+ locationId: options.defaultLocationId,+ shelfId: shelf.data?.defaultShelfId ?? null,+ unitPrice: cost.data?.unitCost,+ updatedBy: userId,+ })+ .eq("id", row.id);++ if (error) onError();+ } catch (error) {+ console.error(error);+ onError();+ }+ };++ const onChange = (newValue: { value: string; label: string } | null) => {+ if (!newValue) return;++ if (row.invoiceLineType === "Part") {+ onPartChange(newValue);+ } else if (row.invoiceLineType === "G/L Account") {+ onAccountChange(newValue);+ }+ };++ const controlledValue = selectOptions.find(+ (option) => option.value === value+ );++ return (+ <Select+ autoFocus+ value={controlledValue}+ options={selectOptions}+ onChange={onChange}+ // @ts-ignore+ borderRadius="none"+ size="sm"+ />+ );+ };++EditablePurchaseInvoiceLineNumber.displayName =+ "EditablePurchaseInvoiceLineNumber";+export default EditablePurchaseInvoiceLineNumber;diff --git a/apps/carbon/app/components/Editable/EditablePurchaseOrderLineNumber.tsx b/apps/carbon/app/components/Editable/EditablePurchaseOrderLineNumber.tsxindex 63efce4c06..7cd87b5f43 100644--- a/apps/carbon/app/components/Editable/EditablePurchaseOrderLineNumber.tsx+++ b/apps/carbon/app/components/Editable/EditablePurchaseOrderLineNumber.tsx@@ -20,6 +20,7 @@ const EditablePurchaseOrderLineNumber =parts: { label: string; value: string }[];accounts: { label: string; value: string }[];defaultLocationId: string | null;+ userId: string;}) =>({@@ -29,7 +30,7 @@ const EditablePurchaseOrderLineNumber =onError,onUpdate,}: EditableTableCellComponentProps<PurchaseOrderLine>) => {- const { client, parts, accounts } = options;+ const { client, parts, accounts, userId } = options;const selectOptions =row.purchaseOrderLineType === "Part"? parts@@ -69,6 +70,7 @@ const EditablePurchaseOrderLineNumber =description: account.data?.name ?? "",unitOfMeasureCode: null,shelfId: null,+ updatedBy: userId,}).eq("id", row.id);@@ -131,6 +133,7 @@ const EditablePurchaseOrderLineNumber =locationId: options.defaultLocationId,shelfId: shelf.data?.defaultShelfId ?? null,unitPrice: cost.data?.unitCost ?? null,+ updatedBy: userId,}).eq("id", row.id);diff --git a/apps/carbon/app/components/Editable/index.ts b/apps/carbon/app/components/Editable/index.tsindex 517e1b9a3f..3af30890b1 100644--- a/apps/carbon/app/components/Editable/index.ts+++ b/apps/carbon/app/components/Editable/index.ts@@ -1,12 +1,14 @@import EditableList from "./EditableList";import EditableNumber from "./EditableNumber";+import EditablePurchaseInvoiceLineNumber from "./EditablePurchaseInvoiceLineNumber";import EditablePurchaseOrderLineNumber from "./EditablePurchaseOrderLineNumber";import EditableText from "./EditableText";+export * from "./types";export {EditableList,EditableNumber,+ EditablePurchaseInvoiceLineNumber,EditablePurchaseOrderLineNumber,EditableText,};-export * from "./types";diff --git a/apps/carbon/app/components/Form/Abilities.tsx b/apps/carbon/app/components/Form/Abilities.tsxindex b4d1c9b1c6..966ff379cd 100644--- a/apps/carbon/app/components/Form/Abilities.tsx+++ b/apps/carbon/app/components/Form/Abilities.tsx@@ -14,7 +14,6 @@ import { path } from "~/utils/path";import type { SelectProps } from "./Select";type AbilitiesSelectProps = Omit<SelectProps, "options" | "onChange"> & {- ability?: string;onChange?: (selections: MultiValue<{value: string;@@ -26,7 +25,6 @@ type AbilitiesSelectProps = Omit<SelectProps, "options" | "onChange"> & {const Abilities = ({name,label = "Abilities",- ability,helperText,isLoading,isReadOnly,diff --git a/apps/carbon/app/components/Form/Ability.tsx b/apps/carbon/app/components/Form/Ability.tsxindex b6e591faf7..0b5464c969 100644--- a/apps/carbon/app/components/Form/Ability.tsx+++ b/apps/carbon/app/components/Form/Ability.tsx@@ -14,7 +14,6 @@ import { path } from "~/utils/path";import type { SelectProps } from "./Select";type AbilitySelectProps = Omit<SelectProps, "options" | "onChange"> & {- ability?: string;onChange?: (selection: SingleValue<{value: string | number;@@ -26,7 +25,6 @@ type AbilitySelectProps = Omit<SelectProps, "options" | "onChange"> & {const Ability = ({name,label = "Ability",- ability,helperText,isLoading,isReadOnly,diff --git a/apps/carbon/app/components/Form/Account.tsx b/apps/carbon/app/components/Form/Account.tsxindex bde532b739..2356ee1a55 100644--- a/apps/carbon/app/components/Form/Account.tsx+++ b/apps/carbon/app/components/Form/Account.tsx@@ -12,14 +12,11 @@ import type { getAccountsList } from "~/modules/accounting";import { path } from "~/utils/path";import type { SelectProps } from "./Select";-type AccountSelectProps = Omit<SelectProps, "options"> & {- account?: string;-};+type AccountSelectProps = Omit<SelectProps, "options">;const Account = ({name,label = "Account",- account,helperText,isLoading,isReadOnly,diff --git a/apps/carbon/app/components/Form/AccountSubcategory.tsx b/apps/carbon/app/components/Form/AccountSubcategory.tsxindex 1285d13019..692fa0536b 100644--- a/apps/carbon/app/components/Form/AccountSubcategory.tsx+++ b/apps/carbon/app/components/Form/AccountSubcategory.tsx@@ -13,6 +13,15 @@ import type {getAccountSubcategoriesByCategory,} from "~/modules/accounting";import { path } from "~/utils/path";+import type { SelectProps } from "./Select";++type AccountSubcategorySelectProps = Omit<+ SelectProps,+ "options" | "onChange"+> & {+ accountCategoryId?: string;+ onChange?: (accountCategory: AccountSubcategoryType | undefined) => void;+};const AccountSubcategory = ({name,@@ -22,15 +31,7 @@ const AccountSubcategory = ({isReadOnly = false,placeholder = "Select Account Subcategory",onChange,-}: {- name: string;- label?: string;- accountCategoryId?: string;- placeholder?: string;- helperText?: string;- isReadOnly?: boolean;- onChange?: (newValue?: AccountSubcategoryType) => void;-}) => {+}: AccountSubcategorySelectProps) => {const { error, getInputProps, defaultValue } = useField(name);const [accountSubcategory, setAccountSubcategory] = useControlField<{@@ -101,7 +102,6 @@ const AccountSubcategory = ({options={accountSubcategories}value={accountSubcategory}onChange={handleChange}- // @ts-ignoreisReadOnly={isReadOnly}w="full"/>diff --git a/apps/carbon/app/components/Form/CreatableMultiSelect.tsx b/apps/carbon/app/components/Form/CreatableMultiSelect.tsxindex b29a9abb70..99c61e950d 100644--- a/apps/carbon/app/components/Form/CreatableMultiSelect.tsx+++ b/apps/carbon/app/components/Form/CreatableMultiSelect.tsx@@ -5,17 +5,10 @@ import {FormHelperText,FormLabel,} from "@chakra-ui/react";-import { useControlField, useField } from "remix-validated-form";+import type { SelectProps } from "./Select";-export type SelectProps = {- name: string;- label?: string;- options: { value: string | number; label: string }[];- helperText?: string;- isReadOnly?: boolean;- isLoading?: boolean;- placeholder?: string;+export type CreatableMultiSelectProps = Omit<SelectProps, "onChange"> & {onChange?: (newValue: { value: string | number; label: string }[] | null) => void;@@ -33,7 +26,7 @@ const Select = ({onChange,onUsingCreatedChanged,...props-}: SelectProps) => {+}: CreatableMultiSelectProps) => {const { error } = useField(name);const [value, setValue] = useControlField<string[]>(name);@@ -45,7 +38,7 @@ const Select = ({onUsingCreatedChanged?.(false);};- const handleCreate = (inputValue: string) => {+ const onCreateOption = (inputValue: string) => {setValue([...value, inputValue]);onChange?.(value.map((value) => ({@@ -90,7 +83,7 @@ const Select = ({options={options}placeholder={placeholder}w="full"- onCreateOption={handleCreate}+ onCreateOption={onCreateOption}// @ts-ignoreonChange={handleChange}/>diff --git a/apps/carbon/app/components/Form/CreatableSelect.tsx b/apps/carbon/app/components/Form/CreatableSelect.tsxindex 6514fcbb63..f19111aaf3 100644--- a/apps/carbon/app/components/Form/CreatableSelect.tsx+++ b/apps/carbon/app/components/Form/CreatableSelect.tsx@@ -5,17 +5,11 @@ import {FormHelperText,FormLabel,} from "@chakra-ui/react";-import { useControlField, useField } from "remix-validated-form";-export type SelectProps = {- name: string;- label?: string;- options: { value: string | number; label: string }[];- helperText?: string;- isReadOnly?: boolean;- isLoading?: boolean;- placeholder?: string;+import type { SelectProps } from "./Select";++export type CreatableSelectProps = Omit<SelectProps, "onChange"> & {onChange?: (newValue: { value: string | number; label: string } | null) => void;@@ -33,7 +27,7 @@ const Select = ({onChange,onUsingCreatedChanged,...props-}: SelectProps) => {+}: CreatableSelectProps) => {const { getInputProps, error } = useField(name);const [value, setValue] = useControlField<string>(name);@@ -45,7 +39,7 @@ const Select = ({onUsingCreatedChanged?.(false);};- const handleCreate = (inputValue: string) => {+ const onCreateOption = (inputValue: string) => {setValue(inputValue);onChange?.({ value: inputValue, label: inputValue });onUsingCreatedChanged?.(true);@@ -73,9 +67,8 @@ const Select = ({isLoading={isLoading}options={options}placeholder={placeholder}- // @ts-ignorew="full"- onCreateOption={handleCreate}+ onCreateOption={onCreateOption}onChange={handleChange}/>{error ? (diff --git a/apps/carbon/app/components/Form/Currency.tsx b/apps/carbon/app/components/Form/Currency.tsxindex 16589de168..8bd03bc8b6 100644--- a/apps/carbon/app/components/Form/Currency.tsx+++ b/apps/carbon/app/components/Form/Currency.tsx@@ -12,14 +12,11 @@ import type { getCurrenciesList } from "~/modules/accounting";import { path } from "~/utils/path";import type { SelectProps } from "./Select";-type CurrencySelectProps = Omit<SelectProps, "options"> & {- currency?: string;-};+type CurrencySelectProps = Omit<SelectProps, "options"> & {};const Currency = ({name,label = "Currency",- currency,helperText,isLoading,isReadOnly,diff --git a/apps/carbon/app/components/Form/Department.tsx b/apps/carbon/app/components/Form/Department.tsxindex 99fcf37163..21a0e39d38 100644--- a/apps/carbon/app/components/Form/Department.tsx+++ b/apps/carbon/app/components/Form/Department.tsx@@ -12,14 +12,11 @@ import type { getDepartmentsList } from "~/modules/resources";import { path } from "~/utils/path";import type { SelectProps } from "./Select";-type DepartmentSelectProps = Omit<SelectProps, "options"> & {- department?: string;-};+type DepartmentSelectProps = Omit<SelectProps, "options">;const Department = ({name,label = "Department",- department,helperText,isLoading,isReadOnly,diff --git a/apps/carbon/app/components/Form/Hidden.tsx b/apps/carbon/app/components/Form/Hidden.tsxindex 4b35073d25..a8fca7469b 100644--- a/apps/carbon/app/components/Form/Hidden.tsx+++ b/apps/carbon/app/components/Form/Hidden.tsx@@ -1,18 +1,18 @@import type { InputProps } from "@chakra-ui/react";import {+ Input as ChakraInput,FormControl,FormErrorMessage,- Input as ChakraInput,} from "@chakra-ui/react";import { forwardRef } from "react";import { useField } from "remix-validated-form";-type FormHiddenProps = InputProps & {+type HiddenProps = InputProps & {name: string;value?: string | number;};-const Hidden = forwardRef<HTMLInputElement, FormHiddenProps>(+const Hidden = forwardRef<HTMLInputElement, HiddenProps>(({ name, value, ...rest }, ref) => {const { getInputProps, error } = useField(name);diff --git a/apps/carbon/app/components/Form/Location.tsx b/apps/carbon/app/components/Form/Location.tsxindex b937c4d2e7..3bf7737812 100644--- a/apps/carbon/app/components/Form/Location.tsx+++ b/apps/carbon/app/components/Form/Location.tsx@@ -14,7 +14,6 @@ import type { SelectProps } from "./Select";type LocationSelectProps = Omit<SelectProps, "options" | "onChange"> & {isClearable?: boolean;- location?: string;onChange?: (selected: {value: string | number;@@ -26,7 +25,6 @@ type LocationSelectProps = Omit<SelectProps, "options" | "onChange"> & {const Location = ({name,label = "Location",- location,helperText,isLoading,isClearable,@@ -91,7 +89,6 @@ const Location = ({isLoading={isLoading}options={options}placeholder={placeholder}- // @ts-ignoreonChange={handleChange}/>{error ? (diff --git a/apps/carbon/app/components/Form/Sequence.tsx b/apps/carbon/app/components/Form/Sequence.tsxnew file mode 100644index 0000000000..09fd4bea6d--- /dev/null+++ b/apps/carbon/app/components/Form/Sequence.tsx@@ -0,0 +1,102 @@+import { Select, useMount } from "@carbon/react";+import {+ FormControl,+ FormErrorMessage,+ FormHelperText,+ FormLabel,+} from "@chakra-ui/react";+import { useFetcher } from "@remix-run/react";+import { useEffect, useMemo } from "react";+import { useControlField, useField } from "remix-validated-form";+import type { getSequencesList } from "~/modules/settings";+import { path } from "~/utils/path";+import type { SelectProps } from "./Select";++type SequenceSelectProps = Omit<SelectProps, "options"> & {+ table: string;+};++const Sequence = ({+ name,+ label = "Sequence",+ table,+ helperText,+ isLoading,+ isReadOnly,+ placeholder = "Select Sequence",+ onChange,+ ...props+}: SequenceSelectProps) => {+ const { error, defaultValue } = useField(name);+ const [value, setValue] = useControlField<string | undefined>(name);++ const sequenceFetcher =+ useFetcher<Awaited<ReturnType<typeof getSequencesList>>>();++ useMount(() => {+ sequenceFetcher.load(path.to.api.sequences(table));+ });++ const options = useMemo(+ () =>+ sequenceFetcher.data?.data+ ? sequenceFetcher.data?.data.map((c) => ({+ value: c.id,+ label: c.id,+ }))+ : [],+ [sequenceFetcher.data]+ );++ console.log(sequenceFetcher.data?.data);++ const handleChange = (selection: {+ value: string | number;+ label: string;+ }) => {+ const newValue = (selection.value as string) || undefined;+ setValue(newValue);+ if (onChange && typeof onChange === "function") {+ onChange(selection);+ }+ };++ const controlledValue = useMemo(+ () =>+ options.find((option) => option.value === value) ?? options?.[0] ?? null,+ [value, options]+ );++ // so that we can call onChange on load+ useEffect(() => {+ if (controlledValue && controlledValue.value === defaultValue) {+ handleChange(controlledValue);+ }+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [controlledValue?.value]);++ return (+ <FormControl isInvalid={!!error}>+ {label && <FormLabel htmlFor={name}>{label}</FormLabel>}+ <input type="hidden" name={name} id={name} value={value} />+ <Select+ {...props}+ value={controlledValue}+ isLoading={isLoading}+ options={options}+ placeholder={placeholder}+ // @ts-ignore+ onChange={handleChange}+ />+ {error ? (+ <FormErrorMessage>{error}</FormErrorMessage>+ ) : (+ helperText && <FormHelperText>{helperText}</FormHelperText>+ )}+ </FormControl>+ );+};++Sequence.displayName = "Sequence";++export default Sequence;diff --git a/apps/carbon/app/components/Form/SupplierContact.tsx b/apps/carbon/app/components/Form/SupplierContact.tsxindex 6dca2be751..104bbafc9b 100644--- a/apps/carbon/app/components/Form/SupplierContact.tsx+++ b/apps/carbon/app/components/Form/SupplierContact.tsx@@ -6,102 +6,111 @@ import {FormLabel,} from "@chakra-ui/react";import { useFetcher } from "@remix-run/react";-import { useEffect, useMemo } from "react";+import { useEffect, useMemo, useRef } from "react";import { useControlField, useField } from "remix-validated-form";-import type { getSupplierContacts } from "~/modules/purchasing";+import type {+ SupplierContact as SupplierContactType,+ getSupplierContacts,+} from "~/modules/purchasing";import { path } from "~/utils/path";+import type { SelectProps } from "./Select";++type SupplierContactSelectProps = Omit<SelectProps, "options" | "onChange"> & {+ supplier?: string;+ onChange?: (supplierContact: SupplierContactType | undefined) => void;+};const SupplierContact = ({name,label = "Supplier Contact",supplier,helperText,- isReadOnly = false,+ isLoading,+ isReadOnly,+ placeholder = "Select Supplier Contact",onChange,-}: {- name: string;- label?: string;- supplier?: string;- helperText?: string;- isReadOnly?: boolean;- onChange?: (value?: {- firstName: string;- lastName: string;- email: string;- }) => void;-}) => {- const { error, getInputProps, defaultValue } = useField(name);+ ...props+}: SupplierContactSelectProps) => {+ const initialLoad = useRef(true);+ const { error, defaultValue } = useField(name);+ const [value, setValue] = useControlField<string | null>(name);- const [supplierContact, setSupplierContact] = useControlField<{- value: string | number;- label: string;- } | null>(name);-- const supplierContactsFetcher =+ const supplierContactFetcher =useFetcher<Awaited<ReturnType<typeof getSupplierContacts>>>();useEffect(() => {- if (supplier)- supplierContactsFetcher.load(path.to.api.supplierContacts(supplier));+ if (supplier) {+ supplierContactFetcher.load(path.to.api.supplierContacts(supplier));+ }++ if (initialLoad.current) {+ initialLoad.current = false;+ } else {+ setValue(null);+ if (onChange) {+ onChange(null);+ }+ }// eslint-disable-next-line react-hooks/exhaustive-deps}, [supplier]);- const supplierContacts = useMemo(+ const options = useMemo(() =>- supplierContactsFetcher.data?.data?.map((c) => ({- value: c.id,- // @ts-ignore- label: `${c.contact.firstName} ${c.contact.lastName}`,- })) ?? [],- [supplierContactsFetcher.data]+ supplierContactFetcher.data?.data+ ? supplierContactFetcher.data?.data.map((c) => ({+ value: c.id,+ // @ts-ignore+ label: `${c.contact?.firstName} ${c.contact?.lastName}`,+ }))+ : [],+ [supplierContactFetcher.data]);- useEffect(() => {- // if the initial value is in the options, set it, otherwise set to null- if (supplierContacts) {- setSupplierContact(- supplierContacts.find((s) => s.value === defaultValue) ?? null+ const handleChange = (+ selection: {+ value: string | number;+ label: string;+ } | null+ ) => {+ const newValue = selection === null ? null : (selection.value as string);+ setValue(newValue);+ if (onChange && typeof onChange === "function") {+ if (newValue === null) onChange(newValue);+ const contact = supplierContactFetcher.data?.data?.find(+ (c) => c.id === newValue);- if (onChange) {- const contact =- supplierContactsFetcher.data?.data?.find((c) => c.id === defaultValue)- ?.contact ?? undefined;-- if (Array.isArray(contact)) throw new Error("Contact is an array");- if (contact) onChange(contact);- }+ onChange(contact);}- // eslint-disable-next-line react-hooks/exhaustive-deps- }, [supplierContacts, defaultValue]);-- const onContactChange = (newValue?: { label: string; value: string }) => {- setSupplierContact(newValue ?? null);- if (onChange) {- const contact =- supplierContactsFetcher.data?.data?.find(- (c) => c.id === newValue?.value- )?.contact ?? undefined;+ };- if (Array.isArray(contact)) throw new Error("Contact is an array");+ const controlledValue = useMemo(+ // @ts-ignore+ () => options.find((option) => option.value === value),+ [value, options]+ );- onChange(contact);+ // so that we can call onChange on load+ useEffect(() => {+ if (controlledValue && controlledValue.value === defaultValue) {+ handleChange(controlledValue);}- };+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [controlledValue?.value]);return (<FormControl isInvalid={!!error}>- <FormLabel htmlFor={name}>{label}</FormLabel>+ {label && <FormLabel htmlFor={name}>{label}</FormLabel>}+ <input type="hidden" name={name} id={name} value={value ?? ""} /><Select- {...getInputProps({- // @ts-ignore- id: name,- })}- options={supplierContacts}- value={supplierContact}- onChange={onContactChange}+ {...props}+ value={controlledValue}+ isLoading={isLoading}+ options={options}+ placeholder={placeholder}// @ts-ignore- isReadOnly={isReadOnly}+ onChange={handleChange}+ isClearablew="full"/>{error ? (@@ -113,4 +122,6 @@ const SupplierContact = ({);};+SupplierContact.displayName = "SupplierContact";+export default SupplierContact;diff --git a/apps/carbon/app/components/Form/SupplierLocation.tsx b/apps/carbon/app/components/Form/SupplierLocation.tsxindex 5206c04a9b..2818ee337b 100644--- a/apps/carbon/app/components/Form/SupplierLocation.tsx+++ b/apps/carbon/app/components/Form/SupplierLocation.tsx@@ -9,15 +9,15 @@ import { useFetcher } from "@remix-run/react";import { useEffect, useMemo, useRef } from "react";import { useControlField, useField } from "remix-validated-form";import type {- getSupplierLocations,SupplierLocation as SupplierLocationType,+ getSupplierLocations,} from "~/modules/purchasing";import { path } from "~/utils/path";import type { SelectProps } from "./Select";type SupplierLocationSelectProps = Omit<SelectProps, "options" | "onChange"> & {supplier?: string;- onChange?: (supplierLocation: SupplierLocationType | undefined) => void;+ onChange?: (supplierLocation: SupplierLocationType | null) => void;};const SupplierLocation = ({@@ -33,7 +33,7 @@ const SupplierLocation = ({}: SupplierLocationSelectProps) => {const initialLoad = useRef(true);const { error, defaultValue } = useField(name);- const [value, setValue] = useControlField<string | undefined>(name);+ const [value, setValue] = useControlField<string | null>(name);const supplierLocationFetcher =useFetcher<Awaited<ReturnType<typeof getSupplierLocations>>>();@@ -45,9 +45,9 @@ const SupplierLocation = ({if (initialLoad.current) {initialLoad.current = false;} else {- setValue(undefined);+ setValue(null);if (onChange) {- onChange(undefined);+ onChange(null);}}// eslint-disable-next-line react-hooks/exhaustive-deps@@ -65,14 +65,16 @@ const SupplierLocation = ({[supplierLocationFetcher.data]);- const handleChange = (selection: {- value: string | number;- label: string;- }) => {- const newValue = (selection.value as string) || undefined;+ const handleChange = (+ selection: {+ value: string | number;+ label: string;+ } | null+ ) => {+ const newValue = (selection?.value as string) ?? null;setValue(newValue);if (onChange && typeof onChange === "function") {- if (newValue === undefined) onChange(newValue);+ if (newValue === null) onChange(newValue);const contact = supplierLocationFetcher.data?.data?.find((c) => c.id === newValue);@@ -98,13 +100,14 @@ const SupplierLocation = ({return (<FormControl isInvalid={!!error}>{label && <FormLabel htmlFor={name}>{label}</FormLabel>}- <input type="hidden" name={name} id={name} value={value} />+ <input type="hidden" name={name} id={name} value={value ?? ""} /><Select{...props}value={controlledValue}isLoading={isLoading}options={options}placeholder={placeholder}+ isClearable// @ts-ignoreonChange={handleChange}w="full"diff --git a/apps/carbon/app/components/Form/index.ts b/apps/carbon/app/components/Form/index.tsindex 014bb9e27f..d65be31892 100644--- a/apps/carbon/app/components/Form/index.ts+++ b/apps/carbon/app/components/Form/index.ts@@ -28,6 +28,7 @@ import Radios from "./Radios";import RichText from "./RichText";import Select from "./Select";import SelectControlled from "./SelectControlled";+import Sequence from "./Sequence";import Slider from "./Slider";import Submit from "./Submit";import Supplier from "./Supplier";@@ -70,6 +71,7 @@ export {RichText,Select,SelectControlled,+ Sequence,Slider,Submit,Supplier,diff --git a/apps/carbon/app/components/Grid/Grid.tsx b/apps/carbon/app/components/Grid/Grid.tsxindex 584bda06f3..b771c43f3e 100644--- a/apps/carbon/app/components/Grid/Grid.tsx+++ b/apps/carbon/app/components/Grid/Grid.tsx@@ -40,6 +40,7 @@ interface GridProps<T extends object> {withColumnOrdering?: boolean;withNewRow?: boolean;withSimpleSorting?: boolean;+ onDataChange?: (data: T[]) => void;onEditRow?: (row: T) => void;onNewRow?: () => void;}@@ -54,6 +55,7 @@ const Grid = <T extends object>({defaultColumnVisibility,withColumnOrdering = false,withSimpleSorting = true,+ onDataChange,onEditRow,onNewRow,}: GridProps<T>) => {@@ -111,8 +113,8 @@ const Grid = <T extends object>({// These are not part of the standard API, but are accessible via table.options.metaeditableComponents,updateData: (rowIndex, columnId, value) => {- setInternalData((previousData) =>- previousData.map((row, index) => {+ setInternalData((previousData) => {+ const newData = previousData.map((row, index) => {if (index === rowIndex) {if (columnId.includes("_") && !(columnId in row)) {updateNestedProperty(row, columnId, value);@@ -125,8 +127,12 @@ const Grid = <T extends object>({}}return row;- })- );+ });+ console.log("calling onDataChange", newData);+ onDataChange?.(newData);++ return newData;+ });},},});diff --git a/apps/carbon/app/components/Search/Search/Search.tsx b/apps/carbon/app/components/Search/Search/Search.tsxindex 9ea8b0dea5..6419aa8e38 100644--- a/apps/carbon/app/components/Search/Search/Search.tsx+++ b/apps/carbon/app/components/Search/Search/Search.tsx@@ -18,8 +18,8 @@ import {ModalContent,ModalOverlay,Text,- useDisclosure,VStack,+ useDisclosure,} from "@chakra-ui/react";import { Link, useNavigate } from "@remix-run/react";import { useCallback, useEffect, useRef, useState } from "react";@@ -126,20 +126,36 @@ const SearchModal = ({}};+ const next = () => {+ setSelectedIndex((prev) => {+ const newIndex = clip(prev + 1, 0, results.length - 1);+ scrollToListItem(newIndex);+ return newIndex;+ });+ };++ const prev = () => {+ setSelectedIndex((prev) => {+ const newIndex = clip(prev - 1, 0, results.length - 1);+ scrollToListItem(newIndex);+ return newIndex;+ });+ };+switch (event.code) {+ case "Tab":+ event.preventDefault();+ if (event.shiftKey) {+ prev();+ } else {+ next();+ }+ break;case "ArrowDown":- setSelectedIndex((prev) => {- const newIndex = clip(prev + 1, 0, results.length - 1);- scrollToListItem(newIndex);- return newIndex;- });+ next();break;case "ArrowUp":- setSelectedIndex((prev) => {- const newIndex = clip(prev - 1, 0, results.length - 1);- scrollToListItem(newIndex);- return newIndex;- });+ prev();break;case "Enter":const selectedResult = results[selectedIndex];@@ -195,6 +211,8 @@ const SearchModal = ({variant="flushed"onChange={(e) => setQuery(e.target.value)}onKeyDown={onKeyDown}+ borderTopLeftRadius="lg"+ borderTopRightRadius="lg"_focus={{borderBottomColor: "transparent",boxShadow: "none",diff --git a/apps/carbon/app/modules/account/services/account.form.ts b/apps/carbon/app/modules/account/account.models.tssimilarity index 100%rename from apps/carbon/app/modules/account/services/account.form.tsrename to apps/carbon/app/modules/account/account.models.tsdiff --git a/apps/carbon/app/modules/account/services/account.server.ts b/apps/carbon/app/modules/account/account.service.tssimilarity index 100%rename from apps/carbon/app/modules/account/services/account.server.tsrename to apps/carbon/app/modules/account/account.service.tsdiff --git a/apps/carbon/app/modules/account/index.ts b/apps/carbon/app/modules/account/index.tsindex 83b8af135e..588cc14ad2 100644--- a/apps/carbon/app/modules/account/index.ts+++ b/apps/carbon/app/modules/account/index.ts@@ -1,3 +1,4 @@-export * from "./services";+export * from "./account.models";+export * from "./account.service";export * from "./types";export * from "./ui";diff --git a/apps/carbon/app/modules/account/services/index.ts b/apps/carbon/app/modules/account/services/index.tsdeleted file mode 100644index e628878620..0000000000--- a/apps/carbon/app/modules/account/services/index.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./account.form";-export * from "./account.server";diff --git a/apps/carbon/app/modules/account/types.ts b/apps/carbon/app/modules/account/types.tsindex 7b148dd8fb..b743d590d0 100644--- a/apps/carbon/app/modules/account/types.ts+++ b/apps/carbon/app/modules/account/types.ts@@ -1,4 +1,4 @@-import type { getAccount, getPublicAttributes } from "./services";+import type { getAccount, getPublicAttributes } from "./account.service";export type Account = NonNullable<Awaited<ReturnType<typeof getAccount>>["data"]diff --git a/apps/carbon/app/modules/accounting/services/accounting.form.ts b/apps/carbon/app/modules/accounting/accounting.models.tssimilarity index 100%rename from apps/carbon/app/modules/accounting/services/accounting.form.tsrename to apps/carbon/app/modules/accounting/accounting.models.tsdiff --git a/apps/carbon/app/modules/accounting/services/accounting.server.ts b/apps/carbon/app/modules/accounting/accounting.service.tssimilarity index 99%rename from apps/carbon/app/modules/accounting/services/accounting.server.tsrename to apps/carbon/app/modules/accounting/accounting.service.tsindex f800d45d7f..fde35425bd 100644--- a/apps/carbon/app/modules/accounting/services/accounting.server.ts+++ b/apps/carbon/app/modules/accounting/accounting.service.ts@@ -5,7 +5,6 @@ import type { TypeOfValidator } from "~/types/validators";import type { GenericQueryFilters } from "~/utils/query";import { setGenericQueryFilters } from "~/utils/query";import { sanitize } from "~/utils/supabase";-import type { Account, Transaction } from "../types";import type {accountCategoryValidator,accountSubcategoryValidator,@@ -17,7 +16,8 @@ import type {partLedgerValidator,paymentTermValidator,valueLedgerValidator,-} from "./accounting.form";+} from "./accounting.models";+import type { Account, Transaction } from "./types";type AccountWithTotals = Account & { level: number; totaling: string };diff --git a/apps/carbon/app/modules/accounting/index.ts b/apps/carbon/app/modules/accounting/index.tsindex 83b8af135e..50f753e8e8 100644--- a/apps/carbon/app/modules/accounting/index.ts+++ b/apps/carbon/app/modules/accounting/index.ts@@ -1,3 +1,4 @@-export * from "./services";+export * from "./accounting.models";+export * from "./accounting.service";export * from "./types";export * from "./ui";diff --git a/apps/carbon/app/modules/accounting/services/index.ts b/apps/carbon/app/modules/accounting/services/index.tsdeleted file mode 100644index d9d49eff7e..0000000000--- a/apps/carbon/app/modules/accounting/services/index.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./accounting.form";-export * from "./accounting.server";diff --git a/apps/carbon/app/modules/accounting/types.ts b/apps/carbon/app/modules/accounting/types.tsindex e487677bf0..82a71072a5 100644--- a/apps/carbon/app/modules/accounting/types.ts+++ b/apps/carbon/app/modules/accounting/types.ts@@ -9,7 +9,7 @@ import type {getPaymentTerms,getPurchasingPostingGroups,getSalesPostingGroups,-} from "./services";+} from "./accounting.service";export type Account = NonNullable<Awaited<ReturnType<typeof getAccount>>["data"]diff --git a/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters/ChartOfAccountsTableFilters.tsx b/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters/ChartOfAccountsTableFilters.tsxindex 4cbe2ef933..790400a282 100644--- a/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters/ChartOfAccountsTableFilters.tsx+++ b/apps/carbon/app/modules/accounting/ui/ChartOfAccounts/ChartOfAccountsTableFilters/ChartOfAccountsTableFilters.tsx@@ -16,7 +16,7 @@ import { Link } from "@remix-run/react";import { IoMdAdd } from "react-icons/io";import { MdCalendarMonth, MdClose } from "react-icons/md";import { usePermissions, useUrlParams } from "~/hooks";-import { incomeBalanceTypes } from "~/modules/accounting/services";+import { incomeBalanceTypes } from "~/modules/accounting";const CurrenciesTableFilters = () => {const [params, setParams] = useUrlParams();diff --git a/apps/carbon/app/modules/documents/services/documents.form.ts b/apps/carbon/app/modules/documents/documents.models.tssimilarity index 100%rename from apps/carbon/app/modules/documents/services/documents.form.tsrename to apps/carbon/app/modules/documents/documents.models.tsdiff --git a/apps/carbon/app/modules/documents/services/documents.server.ts b/apps/carbon/app/modules/documents/documents.service.tssimilarity index 99%rename from apps/carbon/app/modules/documents/services/documents.server.tsrename to apps/carbon/app/modules/documents/documents.service.tsindex cd8e38507a..72ca91d478 100644--- a/apps/carbon/app/modules/documents/services/documents.server.ts+++ b/apps/carbon/app/modules/documents/documents.service.ts@@ -7,7 +7,7 @@ import { sanitize } from "~/utils/supabase";import type {documentLabelsValidator,documentValidator,-} from "./documents.form";+} from "./documents.models";export async function deleteDocument(client: SupabaseClient<Database>,diff --git a/apps/carbon/app/modules/documents/index.ts b/apps/carbon/app/modules/documents/index.tsindex 83b8af135e..f238e5e7a2 100644--- a/apps/carbon/app/modules/documents/index.ts+++ b/apps/carbon/app/modules/documents/index.ts@@ -1,3 +1,4 @@-export * from "./services";+export * from "./documents.models";+export * from "./documents.service";export * from "./types";export * from "./ui";diff --git a/apps/carbon/app/modules/documents/services/index.ts b/apps/carbon/app/modules/documents/services/index.tsdeleted file mode 100644index 47c39e26cf..0000000000--- a/apps/carbon/app/modules/documents/services/index.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./documents.form";-export * from "./documents.server";diff --git a/apps/carbon/app/modules/documents/types.ts b/apps/carbon/app/modules/documents/types.tsindex d04712aeee..f907890cd5 100644--- a/apps/carbon/app/modules/documents/types.ts+++ b/apps/carbon/app/modules/documents/types.ts@@ -1,5 +1,5 @@import type { Database } from "@carbon/database";-import type { getDocumentLabels } from "./services";+import type { getDocumentLabels } from "./documents.service";export type Document = Omit<Database["public"]["Tables"]["document"]["Row"],diff --git a/apps/carbon/app/modules/inventory/index.ts b/apps/carbon/app/modules/inventory/index.tsindex 83b8af135e..3c7b31fa7c 100644--- a/apps/carbon/app/modules/inventory/index.ts+++ b/apps/carbon/app/modules/inventory/index.ts@@ -1,3 +1,4 @@-export * from "./services";+export * from "./inventory.models";+export * from "./inventory.service";export * from "./types";export * from "./ui";diff --git a/apps/carbon/app/modules/inventory/services/inventory.form.ts b/apps/carbon/app/modules/inventory/inventory.models.tssimilarity index 100%rename from apps/carbon/app/modules/inventory/services/inventory.form.tsrename to apps/carbon/app/modules/inventory/inventory.models.tsdiff --git a/apps/carbon/app/modules/inventory/services/inventory.server.ts b/apps/carbon/app/modules/inventory/inventory.service.tssimilarity index 98%rename from apps/carbon/app/modules/inventory/services/inventory.server.tsrename to apps/carbon/app/modules/inventory/inventory.service.tsindex 493132ad8a..39d3a1927b 100644--- a/apps/carbon/app/modules/inventory/services/inventory.server.ts+++ b/apps/carbon/app/modules/inventory/inventory.service.ts@@ -7,7 +7,7 @@ import { sanitize } from "~/utils/supabase";import type {receiptValidator,shippingMethodValidator,-} from "./inventory.form";+} from "./inventory.models";export async function deleteReceipt(client: SupabaseClient<Database>,@@ -134,6 +134,7 @@ export async function upsertReceipt(updatedBy: string;})) {+ console.log("upserting receipt", receipt);if ("createdBy" in receipt) {return client.from("receipt").insert([receipt]).select("id").single();}diff --git a/apps/carbon/app/modules/inventory/services/index.ts b/apps/carbon/app/modules/inventory/services/index.tsdeleted file mode 100644index 6600d49679..0000000000--- a/apps/carbon/app/modules/inventory/services/index.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./inventory.form";-export * from "./inventory.server";diff --git a/apps/carbon/app/modules/inventory/types.ts b/apps/carbon/app/modules/inventory/types.tsindex 044f3b1642..820b045474 100644--- a/apps/carbon/app/modules/inventory/types.ts+++ b/apps/carbon/app/modules/inventory/types.ts@@ -3,7 +3,7 @@ import type {getReceiptLines,getReceipts,getShippingMethods,-} from "./services";+} from "./inventory.service";export type Receipt = NonNullable<Awaited<ReturnType<typeof getReceipts>>["data"]diff --git a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptForm/ReceiptForm.tsx b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptForm/ReceiptForm.tsxindex 24a8316d89..17e6541591 100644--- a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptForm/ReceiptForm.tsx+++ b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptForm/ReceiptForm.tsx@@ -64,6 +64,7 @@ const ReceiptForm = ({onClose,onPost,setLocationId,+ setReceiptLines,setSourceDocument,setSourceDocumentId,} = useReceiptForm({@@ -71,6 +72,11 @@ const ReceiptForm = ({receiptLines: receiptLines ?? [],});+ console.log({+ initialValues,+ isPosted,+ });+return (<><Drawer onClose={onClose} isOpen={true} size="full">@@ -172,6 +178,7 @@ const ReceiptForm = ({canEdit={!isPosted}contained={false}editableComponents={editableComponents}+ onDataChange={setReceiptLines}/></VStack>diff --git a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptForm/useReceiptForm.tsx b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptForm/useReceiptForm.tsxindex 1155f0a26b..bc4fff9e14 100644--- a/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptForm/useReceiptForm.tsx+++ b/apps/carbon/app/modules/inventory/ui/Receipts/ReceiptForm/useReceiptForm.tsx@@ -38,9 +38,10 @@ export default function useReceiptForm({const [internalReceiptLines, setReceiptLines] = useState<ReceiptLine[]>(receiptLines ?? []);+const canPost =internalReceiptLines.length > 0 &&- internalReceiptLines.some((l) => l.receivedQuantity > 0);+ internalReceiptLines.some((line) => line.receivedQuantity > 0);const [locationId, setLocationId] = useState<string | null>(receipt.locationId ?? user.defaults.locationId ?? null@@ -386,6 +387,7 @@ export default function useReceiptForm({onClose,onPost,setLocationId,+ setReceiptLines,setSourceDocument,setSourceDocumentId,};diff --git a/apps/carbon/app/modules/invoicing/index.ts b/apps/carbon/app/modules/invoicing/index.tsindex 83b8af135e..21ecd36e6f 100644--- a/apps/carbon/app/modules/invoicing/index.ts+++ b/apps/carbon/app/modules/invoicing/index.ts@@ -1,3 +1,4 @@-export * from "./services";+export * from "./invoicing.models";+export * from "./invoicing.service";export * from "./types";export * from "./ui";diff --git a/apps/carbon/app/modules/invoicing/services/invoicing.form.ts b/apps/carbon/app/modules/invoicing/invoicing.models.tssimilarity index 66%rename from apps/carbon/app/modules/invoicing/services/invoicing.form.tsrename to apps/carbon/app/modules/invoicing/invoicing.models.tsindex 9858833c30..8879ec83cf 100644--- a/apps/carbon/app/modules/invoicing/services/invoicing.form.ts+++ b/apps/carbon/app/modules/invoicing/invoicing.models.ts@@ -18,8 +18,14 @@ export const purchaseInvoiceValidator = withZod(id: zfd.text(z.string().optional()),invoiceId: zfd.text(z.string().optional()),supplierId: z.string().min(36, { message: "Supplier is required" }),+ supplierReference: zfd.text(z.string().optional()),+ paymentTermId: zfd.text(z.string().optional()),+ currencyCode: zfd.text(z.string().optional()),+ invoiceSupplierId: zfd.text(z.string().optional()),+ invoiceSupplierContactId: zfd.text(z.string().optional()),+ invoiceSupplierLocationId: zfd.text(z.string().optional()),dateIssued: zfd.text(z.string().optional()),+ dateDue: zfd.text(z.string().optional()),status: z.enum(purchaseInvoiceStatusType).optional(),- currencyCode: zfd.text(z.string().optional()),}));diff --git a/apps/carbon/app/modules/invoicing/invoicing.server.ts b/apps/carbon/app/modules/invoicing/invoicing.server.tsnew file mode 100644index 0000000000..a8c43d9759--- /dev/null+++ b/apps/carbon/app/modules/invoicing/invoicing.server.ts@@ -0,0 +1,33 @@+import { getSupabaseServiceRole } from "~/lib/supabase";++export async function createPurchaseInvoiceFromPurchaseOrder(+ purchaseOrderId: string,+ userId: string+) {+ const client = getSupabaseServiceRole();+ return client.functions.invoke<{ id: string }>(+ "create-purchase-invoice-from-purchase-order",+ {+ body: {+ id: purchaseOrderId,+ userId: userId,+ },+ }+ );+}++export async function createPurchaseInvoiceFromReceipt(+ receiptId: string,+ userId: string+) {+ const client = getSupabaseServiceRole();+ return client.functions.invoke<{ id: string }>(+ "create-purchase-invoice-from-receipt",+ {+ body: {+ id: receiptId,+ userId: userId,+ },+ }+ );+}diff --git a/apps/carbon/app/modules/invoicing/services/invoicing.server.ts b/apps/carbon/app/modules/invoicing/invoicing.service.tssimilarity index 75%rename from apps/carbon/app/modules/invoicing/services/invoicing.server.tsrename to apps/carbon/app/modules/invoicing/invoicing.service.tsindex 1b0fceff29..c340f6d23e 100644--- a/apps/carbon/app/modules/invoicing/services/invoicing.server.ts+++ b/apps/carbon/app/modules/invoicing/invoicing.service.ts@@ -1,16 +1,19 @@import type { Database } from "@carbon/database";import type { SupabaseClient } from "@supabase/supabase-js";-import { getSupplier } from "~/modules/purchasing";+import { getSupplierPayment } from "~/modules/purchasing";import type { TypeOfValidator } from "~/types/validators";import type { GenericQueryFilters } from "~/utils/query";import { setGenericQueryFilters } from "~/utils/query";import { sanitize } from "~/utils/supabase";-import type { purchaseInvoiceValidator } from "./invoicing.form";+import type { purchaseInvoiceValidator } from "./invoicing.models";export async function deletePurchaseInvoice(client: SupabaseClient<Database>,purchaseInvoiceId: string) {+ // TODO: this should be a transaction that checks whether it is posted+ // and then sets the status of the purchase order back to+ // "To Receive and Invoice" | "To Invoice"return client.from("purchaseInvoice").delete().eq("id", purchaseInvoiceId);}@@ -62,7 +65,7 @@ export async function getPurchaseInvoiceLines(return client.from("purchaseInvoiceLine").select("*")- .eq("purchaseInvoiceId", purchaseInvoiceId);+ .eq("invoiceId", purchaseInvoiceId);}export async function upsertPurchaseInvoice(@@ -92,26 +95,23 @@ export async function upsertPurchaseInvoice(.select("id, invoiceId");}- const [supplier] = await Promise.all([- getSupplier(client, purchaseInvoice.supplierId),+ const [supplierPayment] = await Promise.all([+ getSupplierPayment(client, purchaseInvoice.supplierId),]);- if (supplier.error) return supplier;+ if (supplierPayment.error) return supplierPayment;- const {- defaultCurrencyCode,- // defaultPaymentTermId,- // defaultShippingMethodId,- // defaultShippingTermId,- } = supplier.data;+ const { currencyCode, paymentTermId } = supplierPayment.data;const invoice = await client.from("purchaseInvoice").insert([{...purchaseInvoice,- currencyCode:- purchaseInvoice.currencyCode ?? defaultCurrencyCode ?? "USD",+ invoiceSupplierId:+ purchaseInvoice.invoiceSupplierId ?? purchaseInvoice.supplierId ?? "",+ currencyCode: purchaseInvoice.currencyCode ?? currencyCode ?? "USD",+ paymentTermId: purchaseInvoice.paymentTermId ?? paymentTermId,},]).select("id, invoiceId");diff --git a/apps/carbon/app/modules/invoicing/services/index.ts b/apps/carbon/app/modules/invoicing/services/index.tsdeleted file mode 100644index 3db3b6f772..0000000000--- a/apps/carbon/app/modules/invoicing/services/index.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./invoicing.form";-export * from "./invoicing.server";diff --git a/apps/carbon/app/modules/invoicing/types.ts b/apps/carbon/app/modules/invoicing/types.tsindex 4043d88725..dfd870e335 100644--- a/apps/carbon/app/modules/invoicing/types.ts+++ b/apps/carbon/app/modules/invoicing/types.ts@@ -1,10 +1,15 @@+import type { purchaseInvoiceStatusType } from "./invoicing.models";import type {+ getPurchaseInvoiceLines,getPurchaseInvoices,- purchaseInvoiceStatusType,-} from "./services";+} from "./invoicing.service";export type PurchaseInvoice = NonNullable<Awaited<ReturnType<typeof getPurchaseInvoices>>["data"]>[number];+export type PurchaseInvoiceLine = NonNullable<+ Awaited<ReturnType<typeof getPurchaseInvoiceLines>>["data"]+>[number];+export type PurchaseInvoiceStatus = (typeof purchaseInvoiceStatusType)[number];diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceForm/PurchaseInvoiceForm.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceForm/PurchaseInvoiceForm.tsxindex 42cb2629f5..1c3e5723e8 100644--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceForm/PurchaseInvoiceForm.tsx+++ b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceForm/PurchaseInvoiceForm.tsx@@ -11,20 +11,23 @@ import {import { useState } from "react";import { ValidatedForm } from "remix-validated-form";import {+ Currency,DatePicker,Hidden,Input,+ Select,SelectControlled,Submit,Supplier,SupplierContact,- TextArea,+ SupplierLocation,} from "~/components/Form";import { usePermissions } from "~/hooks";import {purchaseInvoiceStatusType,purchaseInvoiceValidator,} from "~/modules/invoicing";+import type { ListItem } from "~/types";import type { TypeOfValidator } from "~/types/validators";type PurchaseInvoiceFormValues = TypeOfValidator<@@ -33,13 +36,18 @@ type PurchaseInvoiceFormValues = TypeOfValidator<type PurchaseInvoiceFormProps = {initialValues: PurchaseInvoiceFormValues;+ paymentTerms: ListItem[];};-const PurchaseInvoiceForm = ({ initialValues }: PurchaseInvoiceFormProps) => {+const PurchaseInvoiceForm = ({+ initialValues,+ paymentTerms,+}: PurchaseInvoiceFormProps) => {const permissions = usePermissions();const [supplier, setSupplier] = useState<string | undefined>(initialValues.supplierId);+const isEditing = initialValues.id !== undefined;const statusOptions = purchaseInvoiceStatusType.map((status) => ({@@ -47,6 +55,11 @@ const PurchaseInvoiceForm = ({ initialValues }: PurchaseInvoiceFormProps) => {value: status,}));+ const paymentTermOptions = paymentTerms.map((paymentTerm) => ({+ label: paymentTerm.name,+ value: paymentTerm.id,+ }));+return (<ValidatedFormmethod="post"@@ -81,25 +94,37 @@ const PurchaseInvoiceForm = ({ initialValues }: PurchaseInvoiceFormProps) => {<Suppliername="supplierId"label="Supplier"- onChange={(newValue) =>- setSupplier(newValue?.value as string | undefined)- }+ isReadOnly={isEditing}/>{isEditing && (- <SupplierContact- name="supplierContactId"- label="Supplier Contact"- supplier={supplier}- />+ <>+ <Supplier+ name="invoiceSupplierId"+ label="Invoice Supplier"+ onChange={(newValue) =>+ setSupplier(newValue?.value as string | undefined)+ }+ />+ <SupplierLocation+ name="invoiceSupplierLocationId"+ label="Invoice Location"+ supplier={supplier}+ />+ <SupplierContact+ name="invoiceSupplierContactId"+ label="Invoice Supplier Contact"+ supplier={supplier}+ />+ </>)}+ </VStack>+ <VStack alignItems="start" spacing={2} w="full"><Inputname="supplierReference"label="Supplier Invoice Number"/>- </VStack>- <VStack alignItems="start" spacing={2} w="full">- <DatePicker name="dateIssued" label="Invoice Date" />-+ <DatePicker name="dateIssued" label="Date Issued" />+ <DatePicker name="dateDue" label="Due Date" />{isEditing && (<SelectControlledname="status"@@ -113,7 +138,12 @@ const PurchaseInvoiceForm = ({ initialValues }: PurchaseInvoiceFormProps) => {<VStack alignItems="start" spacing={2} w="full">{isEditing && (<>- <TextArea name="notes" label="Notes" />+ <Select+ name="paymentTermId"+ label="Payment Terms"+ options={paymentTermOptions}+ />+ <Currency name="currencyCode" label="Currency" /></>)}</VStack>diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader/PurchaseInvoiceHeader.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader/PurchaseInvoiceHeader.tsxindex 0d4e3bf057..6ca4788dbf 100644--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader/PurchaseInvoiceHeader.tsx+++ b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceHeader/PurchaseInvoiceHeader.tsx@@ -4,17 +4,21 @@ import {Card,CardBody,CardHeader,- Heading,HStack,+ Heading,Stack,Text,VStack,} from "@chakra-ui/react";import { useParams } from "@remix-run/react";+import { useMemo } from "react";import { FaHistory } from "react-icons/fa";import { usePermissions, useRouteData } from "~/hooks";import type { PurchaseInvoice } from "~/modules/invoicing";-import { PurchaseInvoicingStatus } from "~/modules/invoicing";+import {+ PurchaseInvoicingStatus,+ usePurchaseInvoiceTotals,+} from "~/modules/invoicing";import { path } from "~/utils/path";const PurchaseInvoiceHeader = () => {@@ -27,12 +31,14 @@ const PurchaseInvoiceHeader = () => {path.to.purchaseInvoice(invoiceId));+ const [purchaseInvoiceTotals] = usePurchaseInvoiceTotals();+// TODO: factor in default currency, po currency and exchange rate- // const currencyFormatter = useMemo(- // () =>- // new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }),- // []- // );+ const formatter = useMemo(+ () =>+ new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }),+ []+ );return (<VStack w="full" alignItems="start" spacing={2}>@@ -71,6 +77,16 @@ const PurchaseInvoiceHeader = () => {</CardHeader><CardBody><Stack direction={["column", "column", "row"]} spacing={8}>+ <Stack+ direction={["row", "row", "column"]}+ alignItems="start"+ justifyContent="space-between"+ >+ <Text color="gray.500">Total</Text>+ <Text fontWeight="bold">+ {formatter.format(purchaseInvoiceTotals?.total ?? 0)}+ </Text>+ </Stack><Stackdirection={["row", "row", "column"]}alignItems="start"diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLines/PurchaseInvoiceLines.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLines/PurchaseInvoiceLines.tsxnew file mode 100644index 0000000000..64a8f884d5--- /dev/null+++ b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLines/PurchaseInvoiceLines.tsx@@ -0,0 +1,233 @@+import {+ Box,+ Button,+ Card,+ CardBody,+ CardHeader,+ Heading,+ HStack,+ IconButton,+ Menu,+ MenuButton,+ MenuItem,+ MenuList,+} from "@chakra-ui/react";+import { Link, Outlet, useNavigate, useParams } from "@remix-run/react";+import type { ColumnDef } from "@tanstack/react-table";+import { useMemo } from "react";+import { BsPencilSquare } from "react-icons/bs";+import { IoMdTrash } from "react-icons/io";+import { MdMoreHoriz } from "react-icons/md";+import {+ EditableNumber,+ EditablePurchaseInvoiceLineNumber,+ EditableText,+} from "~/components/Editable";+import Grid from "~/components/Grid";+import { useRouteData, useUser } from "~/hooks";+import type { PurchaseInvoice, PurchaseInvoiceLine } from "~/modules/invoicing";+import { usePurchaseInvoiceTotals } from "~/modules/invoicing";+import type { ListItem } from "~/types";+import { path } from "~/utils/path";+import usePurchaseInvoiceLines from "./usePurchaseInvoiceLines";++const PurchaseInvoiceLines = () => {+ const { invoiceId } = useParams();+ if (!invoiceId) throw new Error("invoiceId not found");++ const navigate = useNavigate();++ const routeData = useRouteData<{+ purchaseInvoiceLines: PurchaseInvoiceLine[];+ locations: ListItem[];+ purchaseInvoice: PurchaseInvoice;+ }>(path.to.purchaseInvoice(invoiceId));++ const { defaults, id: userId } = useUser();+ const {+ canEdit,+ canDelete,+ supabase,+ partOptions,+ accountOptions,+ onCellEdit,+ } = usePurchaseInvoiceLines();+ const [, setPurchaseInvoiceTotals] = usePurchaseInvoiceTotals();++ const isEditable = ["Draft", "To Review"].includes(+ routeData?.purchaseInvoice?.status ?? ""+ );++ const columns = useMemo<ColumnDef<PurchaseInvoiceLine>[]>(() => {+ return [+ {+ header: "Line",+ cell: ({ row }) => row.index + 1,+ },+ {+ accessorKey: "invoiceLineType",+ header: "Type",+ cell: ({ row }) => (+ <HStack justify="space-between" minW={100}>+ <span>{row.original.invoiceLineType}</span>+ <Box position="relative" w={6} h={5}>+ <Menu>+ <MenuButton+ as={IconButton}+ aria-label="Edit purchase order line type"+ icon={<MdMoreHoriz />}+ size="sm"+ position="absolute"+ right={-1}+ top="-6px"+ variant="ghost"+ onClick={(e) => e.stopPropagation()}+ />+ <MenuList>+ <MenuItem+ icon={<BsPencilSquare />}+ onClick={() => navigate(row.original.id)}+ isDisabled={!isEditable || !canEdit}+ >+ Edit Line+ </MenuItem>+ <MenuItem+ icon={<IoMdTrash />}+ onClick={() => navigate(`delete/${row.original.id}`)}+ isDisabled={!isEditable || !canDelete}+ >+ Delete Line+ </MenuItem>+ </MenuList>+ </Menu>+ </Box>+ </HStack>+ ),+ },+ {+ accessorKey: "partId",+ header: "Number",+ cell: ({ row }) => {+ switch (row.original.invoiceLineType) {+ case "Part":+ return <span>{row.original.partId}</span>;+ case "G/L Account":+ return <span>{row.original.accountNumber}</span>;+ case "Fixed Asset":+ return <span>{row.original.assetId}</span>;+ default:+ return null;+ }+ },+ },+ {+ accessorKey: "description",+ header: "Description",+ cell: ({ row }) => {+ let description = row.original.description ?? "";+ if (description.length > 50) {+ description = description.substring(0, 50) + "...";+ }+ return <span>{description}</span>;+ },+ },+ {+ accessorKey: "quantity",+ header: "Quantity",+ cell: (item) => item.getValue(),+ },+ {+ accessorKey: "unitPrice",+ header: "Unit Price",+ cell: (item) => item.getValue(),+ },+ {+ accessorKey: "shelfId",+ header: "Shelf",+ cell: (item) => item.getValue(),+ },+ {+ id: "totalPrice",+ header: "Total Price",+ cell: ({ row }) => {+ if (!row.original.unitPrice || !row.original.quantity) return 0;+ return (row.original.unitPrice * row.original.quantity).toFixed(2);+ },+ },+ {+ id: "quantityReceived",+ header: "Quantity Received",+ cell: (item) => item.getValue(),+ },+ {+ id: "quantityInvoiced",+ header: "Quantity Invoiced",+ cell: (item) => item.getValue(),+ },+ ];+ // eslint-disable-next-line react-hooks/exhaustive-deps+ }, [navigate]);++ const editableComponents = useMemo(+ () => ({+ description: EditableText(onCellEdit),+ quantity: EditableNumber(onCellEdit),+ unitPrice: EditableNumber(onCellEdit),+ partId: EditablePurchaseInvoiceLineNumber(onCellEdit, {+ client: supabase,+ parts: partOptions,+ accounts: accountOptions,+ defaultLocationId: defaults.locationId,+ userId: userId,+ }),+ }),+ [+ onCellEdit,+ supabase,+ partOptions,+ accountOptions,+ defaults.locationId,+ userId,+ ]+ );++ return (+ <>+ <Card w="full" minH={320}>+ <CardHeader display="flex" justifyContent="space-between">+ <Heading size="md" display="inline-flex">+ Purchase Invoice Lines+ </Heading>+ {canEdit && isEditable && (+ <Button colorScheme="brand" as={Link} to="new">+ New+ </Button>+ )}+ </CardHeader>+ <CardBody>+ <Grid<PurchaseInvoiceLine>+ data={routeData?.purchaseInvoiceLines ?? []}+ columns={columns}+ canEdit={canEdit && isEditable}+ editableComponents={editableComponents}+ onDataChange={(lines: PurchaseInvoiceLine[]) => {+ const totals = lines.reduce(+ (acc, line) => {+ acc.total += (line.quantity ?? 0) * (line.unitPrice ?? 0);++ return acc;+ },+ { total: 0 }+ );+ setPurchaseInvoiceTotals(totals);+ }}+ onNewRow={canEdit && isEditable ? () => navigate("new") : undefined}+ />+ </CardBody>+ </Card>+ <Outlet />+ </>+ );+};++export default PurchaseInvoiceLines;diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLines/index.ts b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLines/index.tsnew file mode 100644index 0000000000..deeae9c028--- /dev/null+++ b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLines/index.ts@@ -0,0 +1,3 @@+import PurchaseInvoiceLines from "./PurchaseInvoiceLines";++export default PurchaseInvoiceLines;diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLines/usePurchaseInvoiceLines.tsx b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLines/usePurchaseInvoiceLines.tsxnew file mode 100644index 0000000000..434554fe72--- /dev/null+++ b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/PurchaseInvoiceLines/usePurchaseInvoiceLines.tsx@@ -0,0 +1,69 @@+import { useMount } from "@carbon/react";+import { useFetcher } from "@remix-run/react";+import { useCallback, useMemo } from "react";+import { usePermissions, useUser } from "~/hooks";+import { useSupabase } from "~/lib/supabase";+import type { getAccountsList } from "~/modules/accounting";+import type { PurchaseInvoiceLine } from "~/modules/invoicing";+import { usePurchasedParts } from "~/stores/parts";+import { path } from "~/utils/path";++export default function usePurchaseInvoiceLines() {+ const { id: userId } = useUser();+ const { supabase } = useSupabase();+ const permissions = usePermissions();++ const canEdit = permissions.can("update", "invoicing");+ const canDelete = permissions.can("delete", "invoicing");++ const parts = usePurchasedParts();+ const accountsFetcher =+ useFetcher<Awaited<ReturnType<typeof getAccountsList>>>();++ useMount(() => {+ accountsFetcher.load(`${path.to.api.accounts}?type=Posting`);+ });++ const partOptions = useMemo(+ () =>+ parts.map((p) => ({+ value: p.id,+ label: p.id,+ })),+ [parts]+ );++ const accountOptions = useMemo(+ () =>+ accountsFetcher.data?.data+ ? accountsFetcher.data?.data.map((c) => ({+ value: c.number,+ label: c.number,+ }))+ : [],+ [accountsFetcher.data]+ );++ const onCellEdit = useCallback(+ async (id: string, value: unknown, row: PurchaseInvoiceLine) => {+ if (!supabase) throw new Error("Supabase client not found");+ return await supabase+ .from("purchaseInvoiceLine")+ .update({+ [id]: value,+ updatedBy: userId,+ })+ .eq("id", row.id);+ },+ [supabase, userId]+ );++ return {+ accountOptions,+ canDelete,+ canEdit,+ partOptions,+ supabase,+ onCellEdit,+ };+}diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/index.ts b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/index.tsindex 896cf97085..2caa96de98 100644--- a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/index.ts+++ b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/index.ts@@ -1,11 +1,15 @@import PurchaseInvoiceForm from "./PurchaseInvoiceForm";import PurchaseInvoiceHeader from "./PurchaseInvoiceHeader";+import PurchaseInvoiceLines from "./PurchaseInvoiceLines";import PurchaseInvoiceSidebar from "./PurchaseInvoiceSidebar";import PurchaseInvoicingStatus from "./PurchaseInvoicingStatus";+import { usePurchaseInvoiceTotals } from "./usePurchaseInvoiceTotals";export {PurchaseInvoiceForm,PurchaseInvoiceHeader,- PurchaseInvoicingStatus,+ PurchaseInvoiceLines,PurchaseInvoiceSidebar,+ PurchaseInvoicingStatus,+ usePurchaseInvoiceTotals,};diff --git a/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/usePurchaseInvoiceTotals.ts b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/usePurchaseInvoiceTotals.tsnew file mode 100644index 0000000000..24b244f3cf--- /dev/null+++ b/apps/carbon/app/modules/invoicing/ui/PurchaseInvoice/usePurchaseInvoiceTotals.ts@@ -0,0 +1,7 @@+import { atom } from "nanostores";+import { useNanoStore } from "~/hooks";++const $totals = atom<{ total: number }>({+ total: 0,+});+export const usePurchaseInvoiceTotals = () => useNanoStore($totals);diff --git a/apps/carbon/app/modules/parts/index.ts b/apps/carbon/app/modules/parts/index.tsindex 83b8af135e..a67d0153be 100644--- a/apps/carbon/app/modules/parts/index.ts+++ b/apps/carbon/app/modules/parts/index.ts@@ -1,3 +1,4 @@-export * from "./services";+export * from "./parts.models";+export * from "./parts.service";export * from "./types";export * from "./ui";diff --git a/apps/carbon/app/modules/parts/services/parts.form.ts b/apps/carbon/app/modules/parts/parts.models.tssimilarity index 100%rename from apps/carbon/app/modules/parts/services/parts.form.tsrename to apps/carbon/app/modules/parts/parts.models.tsdiff --git a/apps/carbon/app/modules/parts/services/parts.server.ts b/apps/carbon/app/modules/parts/parts.service.tssimilarity index 99%rename from apps/carbon/app/modules/parts/services/parts.server.tsrename to apps/carbon/app/modules/parts/parts.service.tsindex 2d437ced90..26974cde42 100644--- a/apps/carbon/app/modules/parts/services/parts.server.ts+++ b/apps/carbon/app/modules/parts/parts.service.ts@@ -4,7 +4,6 @@ import type { TypeOfValidator } from "~/types/validators";import type { GenericQueryFilters } from "~/utils/query";import { setGenericQueryFilters } from "~/utils/query";import { sanitize } from "~/utils/supabase";-import type { PartReplenishmentSystem } from "../types";import type {partCostValidator,partGroupValidator,@@ -15,7 +14,8 @@ import type {partSupplierValidator,partUnitSalePriceValidator,partValidator,-} from "./parts.form";+} from "./parts.models";+import type { PartReplenishmentSystem } from "./types";export async function deletePartGroup(client: SupabaseClient<Database>,diff --git a/apps/carbon/app/modules/parts/services/index.ts b/apps/carbon/app/modules/parts/services/index.tsdeleted file mode 100644index a8afb5ec4d..0000000000--- a/apps/carbon/app/modules/parts/services/index.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./parts.form";-export * from "./parts.server";diff --git a/apps/carbon/app/modules/parts/types.ts b/apps/carbon/app/modules/parts/types.tsindex 14d179ae79..64946df9bd 100644--- a/apps/carbon/app/modules/parts/types.ts+++ b/apps/carbon/app/modules/parts/types.ts@@ -9,7 +9,7 @@ import type {getPartSuppliers,getUnitOfMeasure,getUnitOfMeasuresList,-} from "./services";+} from "./parts.service";export type PartCost = NonNullable<Awaited<ReturnType<typeof getPartCost>>diff --git a/apps/carbon/app/modules/purchasing/index.ts b/apps/carbon/app/modules/purchasing/index.tsindex 83b8af135e..97fc666490 100644--- a/apps/carbon/app/modules/purchasing/index.ts+++ b/apps/carbon/app/modules/purchasing/index.ts@@ -1,3 +1,4 @@-export * from "./services";+export * from "./purchasing.models";+export * from "./purchasing.service";export * from "./types";export * from "./ui";diff --git a/apps/carbon/app/modules/purchasing/services/purchasing.form.ts b/apps/carbon/app/modules/purchasing/purchasing.models.tssimilarity index 86%rename from apps/carbon/app/modules/purchasing/services/purchasing.form.tsrename to apps/carbon/app/modules/purchasing/purchasing.models.tsindex c1ea84260d..9fb45e0c3d 100644--- a/apps/carbon/app/modules/purchasing/services/purchasing.form.ts+++ b/apps/carbon/app/modules/purchasing/purchasing.models.ts@@ -159,10 +159,6 @@ export const supplierValidator = withZod(supplierStatusId: zfd.text(z.string().optional()),taxId: zfd.text(z.string().optional()),accountManagerId: zfd.text(z.string().optional()),- defaultCurrencyCode: zfd.text(z.string().optional()),- defaultPaymentTermId: zfd.text(z.string().optional()),- defaultShippingTermId: zfd.text(z.string().optional()),- defaultShippingMethodId: zfd.text(z.string().optional()),}));@@ -181,6 +177,28 @@ export const supplierLocationValidator = withZod(}));+export const supplierPaymentValidator = withZod(+ z.object({+ supplierId: z.string().min(36, { message: "Supplier is required" }),+ invoiceSupplierId: zfd.text(z.string().optional()),+ invoiceSupplierLocationId: zfd.text(z.string().optional()),+ invoiceSupplierContactId: zfd.text(z.string().optional()),+ paymentTermId: zfd.text(z.string().optional()),+ currencyCode: zfd.text(z.string().optional()),+ })+);++export const supplierShippingValidator = withZod(+ z.object({+ supplierId: z.string().min(36, { message: "Supplier is required" }),+ shippingSupplierId: zfd.text(z.string().optional()),+ shippingSupplierLocationId: zfd.text(z.string().optional()),+ shippingSupplierContactId: zfd.text(z.string().optional()),+ shippingTermId: zfd.text(z.string().optional()),+ shippingMethodId: zfd.text(z.string().optional()),+ })+);+export const supplierTypeValidator = withZod(z.object({id: zfd.text(z.string().optional()),diff --git a/apps/carbon/app/modules/purchasing/services/purchasing.server.ts b/apps/carbon/app/modules/purchasing/purchasing.service.tssimilarity index 88%rename from apps/carbon/app/modules/purchasing/services/purchasing.server.tsrename to apps/carbon/app/modules/purchasing/purchasing.service.tsindex b98b5edb17..0b2f475709 100644--- a/apps/carbon/app/modules/purchasing/services/purchasing.server.ts+++ b/apps/carbon/app/modules/purchasing/purchasing.service.ts@@ -1,7 +1,6 @@import type { Database } from "@carbon/database";import { getLocalTimeZone, today } from "@internationalized/date";import type { SupabaseClient } from "@supabase/supabase-js";-import { getSupabaseServiceRole } from "~/lib/supabase";import { getEmployeeJob } from "~/modules/resources";import type { TypeOfValidator } from "~/types/validators";import type { GenericQueryFilters } from "~/utils/query";@@ -12,9 +11,12 @@ import type {purchaseOrderLineValidator,purchaseOrderPaymentValidator,purchaseOrderValidator,+ supplierContactValidator,+ supplierPaymentValidator,+ supplierShippingValidator,supplierTypeValidator,supplierValidator,-} from "./purchasing.form";+} from "./purchasing.models";export async function closePurchaseOrder(client: SupabaseClient<Database>,@@ -242,6 +244,28 @@ export async function getSupplierLocation(.single();}+export async function getSupplierPayment(+ client: SupabaseClient<Database>,+ supplierId: string+) {+ return client+ .from("supplierPayment")+ .select("*")+ .eq("supplierId", supplierId)+ .single();+}++export async function getSupplierShipping(+ client: SupabaseClient<Database>,+ supplierId: string+) {+ return client+ .from("supplierShipping")+ .select("*")+ .eq("supplierId", supplierId)+ .single();+}+export async function getSuppliers(client: SupabaseClient<Database>,args: GenericQueryFilters & {@@ -341,57 +365,19 @@ export async function insertSupplier(return client.from("supplier").insert([supplier]).select("id").single();}-export async function getUninvoicedReceipts(- client: SupabaseClient<Database>,- args?: GenericQueryFilters & {- supplier: string | null;- }-) {- let query = client.from("receiptsPostedNotInvoiced").select("*");-- if (args?.supplier) {- query = query.eq("supplierId", args.supplier);- }-- if (args)- if (args) {- query = setGenericQueryFilters(query, args, "name");- }-- return query;-}-export async function insertSupplierContact(client: SupabaseClient<Database>,supplierContact: {supplierId: string;- contact: {- firstName: string;- lastName: string;- email: string;- mobilePhone?: string;- homePhone?: string;- workPhone?: string;- fax?: string;- title?: string;- addressLine1?: string;- addressLine2?: string;- city?: string;- state?: string;- postalCode?: string;- birthday?: string;- notes?: string;- };+ contact: TypeOfValidator<typeof supplierContactValidator>;}) {- // Need to use service role here because it violates RLS- // to select a contact that does not belong to any supplier- // TODO: replace this with a transaction- const insertContact = await getSupabaseServiceRole()+ const insertContact = await client.from("contact").insert([supplierContact.contact]).select("id").single();+if (insertContact.error) {return insertContact;}@@ -413,6 +399,26 @@ export async function insertSupplierContact(.single();}+export async function getUninvoicedReceipts(+ client: SupabaseClient<Database>,+ args?: GenericQueryFilters & {+ supplier: string | null;+ }+) {+ let query = client.from("receiptsPostedNotInvoiced").select("*");++ if (args?.supplier) {+ query = query.eq("supplierId", args.supplier);+ }++ if (args)+ if (args) {+ query = setGenericQueryFilters(query, args, "name");+ }++ return query;+}+export async function insertSupplierLocation(client: SupabaseClient<Database>,supplierLocation: {@@ -522,6 +528,30 @@ export async function updateSupplierLocation(.single();}+export async function updateSupplierPayment(+ client: SupabaseClient<Database>,+ supplierPayment: TypeOfValidator<typeof supplierPaymentValidator> & {+ updatedBy: string;+ }+) {+ return client+ .from("supplierPayment")+ .update(sanitize(supplierPayment))+ .eq("supplierId", supplierPayment.supplierId);+}++export async function updateSupplierShipping(+ client: SupabaseClient<Database>,+ supplierShipping: TypeOfValidator<typeof supplierShippingValidator> & {+ updatedBy: string;+ }+) {+ return client+ .from("supplierShipping")+ .update(sanitize(supplierShipping))+ .eq("supplierId", supplierShipping.supplierId);+}+export async function upsertPurchaseOrder(client: SupabaseClient<Database>,purchaseOrder:@@ -549,19 +579,24 @@ export async function upsertPurchaseOrder(.select("id, purchaseOrderId");}- const [supplier, purchaser] = await Promise.all([- getSupplier(client, purchaseOrder.supplierId),+ const [supplierPayment, supplierShipping, purchaser] = await Promise.all([+ getSupplierPayment(client, purchaseOrder.supplierId),+ getSupplierShipping(client, purchaseOrder.supplierId),getEmployeeJob(client, purchaseOrder.createdBy),]);- if (supplier.error) return supplier;+ if (supplierPayment.error) return supplierPayment;+ if (supplierShipping.error) return supplierShipping;const {- defaultCurrencyCode,- defaultPaymentTermId,- defaultShippingMethodId,- defaultShippingTermId,- } = supplier.data;+ currencyCode,+ paymentTermId,+ invoiceSupplierId,+ invoiceSupplierContactId,+ invoiceSupplierLocationId,+ } = supplierPayment.data;++ const { shippingMethodId, shippingTermId } = supplierShipping.data;const locationId = purchaser?.data?.locationId ?? null;@@ -579,16 +614,18 @@ export async function upsertPurchaseOrder({id: purchaseOrderId,locationId: locationId,- shippingMethodId: defaultShippingMethodId,- shippingTermId: defaultShippingTermId,+ shippingMethodId: shippingMethodId,+ shippingTermId: shippingTermId,},]),client.from("purchaseOrderPayment").insert([{id: purchaseOrderId,- currencyCode: defaultCurrencyCode ?? "USD",- invoiceSupplierId: purchaseOrder.supplierId,- paymentTermId: defaultPaymentTermId,+ currencyCode: currencyCode ?? "USD",+ invoiceSupplierId: invoiceSupplierId,+ invoiceSupplierContactId: invoiceSupplierContactId,+ invoiceSupplierLocationId: invoiceSupplierLocationId,+ paymentTermId: paymentTermId,},]),]);diff --git a/apps/carbon/app/modules/purchasing/services/index.ts b/apps/carbon/app/modules/purchasing/services/index.tsdeleted file mode 100644index b0d255d9c4..0000000000--- a/apps/carbon/app/modules/purchasing/services/index.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./purchasing.form";-export * from "./purchasing.server";diff --git a/apps/carbon/app/modules/purchasing/types.ts b/apps/carbon/app/modules/purchasing/types.tsindex 53c19072cb..9f46e6cc68 100644--- a/apps/carbon/app/modules/purchasing/types.ts+++ b/apps/carbon/app/modules/purchasing/types.ts@@ -9,7 +9,7 @@ import type {getSuppliers,getSupplierStatuses,getSupplierTypes,-} from "./services";+} from "./purchasing.service";// TODO: we should just use the FileObject type from supabaseexport type PurchaseOrderAttachment = NonNullable<diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderForm/PurchaseOrderForm.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderForm/PurchaseOrderForm.tsxindex 079ddce731..0777aada79 100644--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderForm/PurchaseOrderForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderForm/PurchaseOrderForm.tsx@@ -97,10 +97,7 @@ const PurchaseOrderForm = ({ initialValues }: PurchaseOrderFormProps) => {supplier={supplier}/>)}- <Input- name="supplierReference"- label="Supplier Invoice Number"- />+ <Input name="supplierReference" label="Supplier Order Number" /></VStack><VStack alignItems="start" spacing={2} w="full"><DatePickerdiff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader/PurchaseOrderHeader.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader/PurchaseOrderHeader.tsxindex 726d868de5..ec6c05d3b2 100644--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader/PurchaseOrderHeader.tsx+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderHeader/PurchaseOrderHeader.tsx@@ -4,17 +4,18 @@ import {Card,CardBody,CardHeader,- Heading,HStack,+ Heading,Stack,Text,VStack,} from "@chakra-ui/react";import { useParams } from "@remix-run/react";+import { useMemo } from "react";import { FaHistory } from "react-icons/fa";import { usePermissions, useRouteData } from "~/hooks";import type { PurchaseOrder } from "~/modules/purchasing";-import { PurchasingStatus } from "~/modules/purchasing";+import { PurchasingStatus, usePurchaseOrderTotals } from "~/modules/purchasing";import { path } from "~/utils/path";import { usePurchaseOrder } from "../../PurchaseOrders/usePurchaseOrder";@@ -27,14 +28,16 @@ const PurchaseOrderHeader = () => {path.to.purchaseOrder(orderId));+ const [purchaseOrderTotals] = usePurchaseOrderTotals();+// TODO: factor in default currency, po currency and exchange rate- // const currencyFormatter = useMemo(- // () =>- // new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }),- // []- // );+ const formatter = useMemo(+ () =>+ new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }),+ []+ );- const { receive, release } = usePurchaseOrder();+ const { receive, release, invoice } = usePurchaseOrder();return (<VStack w="full" alignItems="start" spacing={2}>@@ -42,7 +45,9 @@ const PurchaseOrderHeader = () => {<Menubar><MenubarItemonClick={() => {- if (routeData?.purchaseOrder) release(routeData.purchaseOrder);+ if (!routeData?.purchaseOrder)+ throw new Error("purchaseOrder not found");+ release(routeData.purchaseOrder);}}isDisabled={!["Draft", "Approved"].includes(@@ -54,7 +59,9 @@ const PurchaseOrderHeader = () => {</MenubarItem><MenubarItemonClick={() => {- if (routeData?.purchaseOrder) receive(routeData.purchaseOrder);+ if (!routeData?.purchaseOrder)+ throw new Error("purchaseOrder not found");+ receive(routeData.purchaseOrder);}}isDisabled={routeData?.purchaseOrder?.status !== "To Receive" &&@@ -63,6 +70,19 @@ const PurchaseOrderHeader = () => {>Receive</MenubarItem>+ <MenubarItem+ onClick={() => {+ if (!routeData?.purchaseOrder)+ throw new Error("purchaseOrder not found");+ invoice(routeData.purchaseOrder);+ }}+ isDisabled={+ routeData?.purchaseOrder?.status !== "To Invoice" &&+ routeData?.purchaseOrder?.status !== "To Receive and Invoice"+ }+ >+ Invoice+ </MenubarItem></Menubar>)}@@ -84,6 +104,16 @@ const PurchaseOrderHeader = () => {</CardHeader><CardBody><Stack direction={["column", "column", "row"]} spacing={8}>+ <Stack+ direction={["row", "row", "column"]}+ alignItems="start"+ justifyContent="space-between"+ >+ <Text color="gray.500">Total</Text>+ <Text fontWeight="bold">+ {formatter.format(purchaseOrderTotals?.total ?? 0)}+ </Text>+ </Stack><Stackdirection={["row", "row", "column"]}alignItems="start"diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm/PurchaseOrderLineForm.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm/PurchaseOrderLineForm.tsxindex 4eac1e2822..d765226e9b 100644--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm/PurchaseOrderLineForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLineForm/PurchaseOrderLineForm.tsx@@ -1,5 +1,6 @@import {Button,+ Input as ChakraInput,Drawer,DrawerBody,DrawerCloseButton,@@ -10,7 +11,6 @@ import {FormControl,FormLabel,HStack,- Input as ChakraInput,NumberDecrementStepper,NumberIncrementStepper,NumberInput,@@ -256,45 +256,52 @@ const PurchaseOrderLineForm = ({}/></FormControl>- <Number name="purchaseQuantity" label="Quantity" />- {/*- // TODO: implement this and replace the UoM in PartForm */}- {/* <UnitOfMeasure name="unitOfMeasureCode" label="Unit of Measure" value={uom} /> */}- <FormControl>- <FormLabel htmlFor="unitPrice">Unit Cost</FormLabel>- <NumberInput- name="unitPrice"- value={partData.unitPrice}- onChange={(value) =>- setPartData((d) => ({- ...d,- unitPrice: value,- }))- }- >- <NumberInputField />- <NumberInputStepper>- <NumberIncrementStepper />- <NumberDecrementStepper />- </NumberInputStepper>- </NumberInput>- </FormControl>- <SelectControlled- name="locationId"- label="Location"- options={locationOptions}- value={locationId}- onChange={onLocationChange}- />- <SelectControlled- name="shelfId"- label="Shelf"- options={shelfOptions}- value={partData.shelfId}- onChange={(newValue) =>- setPartData((d) => ({ ...d, shelfId: newValue as string }))- }- />+ {type !== "Comment" && (+ <>+ <Number name="purchaseQuantity" label="Quantity" />+ {/*+ // TODO: implement this and replace the UoM in PartForm */}+ {/* <UnitOfMeasure name="unitOfMeasureCode" label="Unit of Measure" value={uom} /> */}+ <FormControl>+ <FormLabel htmlFor="unitPrice">Unit Cost</FormLabel>+ <NumberInput+ name="unitPrice"+ value={partData.unitPrice}+ onChange={(value) =>+ setPartData((d) => ({+ ...d,+ unitPrice: value,+ }))+ }+ >+ <NumberInputField />+ <NumberInputStepper>+ <NumberIncrementStepper />+ <NumberDecrementStepper />+ </NumberInputStepper>+ </NumberInput>+ </FormControl>+ <SelectControlled+ name="locationId"+ label="Location"+ options={locationOptions}+ value={locationId}+ onChange={onLocationChange}+ />+ <SelectControlled+ name="shelfId"+ label="Shelf"+ options={shelfOptions}+ value={partData.shelfId}+ onChange={(newValue) =>+ setPartData((d) => ({+ ...d,+ shelfId: newValue as string,+ }))+ }+ />+ </>+ )}</VStack></DrawerBody><DrawerFooter>diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLines/PurchaseOrderLines.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLines/PurchaseOrderLines.tsxindex fe7c0ce8aa..73699c5855 100644--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLines/PurchaseOrderLines.tsx+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLines/PurchaseOrderLines.tsx@@ -27,6 +27,7 @@ import {import Grid from "~/components/Grid";import { useRouteData, useUser } from "~/hooks";import type { PurchaseOrder, PurchaseOrderLine } from "~/modules/purchasing";+import { usePurchaseOrderTotals } from "~/modules/purchasing";import type { ListItem } from "~/types";import { path } from "~/utils/path";import usePurchaseOrderLines from "./usePurchaseOrderLines";@@ -44,7 +45,7 @@ const PurchaseOrderLines = () => {}>(path.to.purchaseOrder(orderId));const locations = routeData?.locations ?? [];- const { defaults } = useUser();+ const { defaults, id: userId } = useUser();const {canEdit,canDelete,@@ -53,6 +54,7 @@ const PurchaseOrderLines = () => {accountOptions,onCellEdit,} = usePurchaseOrderLines();+ const [, setPurchaseOrderTotals] = usePurchaseOrderTotals();const isEditable = ["Draft", "To Review"].includes(routeData?.purchaseOrder?.status ?? ""@@ -249,9 +251,17 @@ const PurchaseOrderLines = () => {parts: partOptions,accounts: accountOptions,defaultLocationId: defaults.locationId,+ userId: userId,}),}),- [onCellEdit, supabase, partOptions, accountOptions, defaults.locationId]+ [+ onCellEdit,+ supabase,+ partOptions,+ accountOptions,+ defaults.locationId,+ userId,+ ]);return (@@ -273,6 +283,18 @@ const PurchaseOrderLines = () => {columns={columns}canEdit={canEdit && isEditable}editableComponents={editableComponents}+ onDataChange={(lines: PurchaseOrderLine[]) => {+ const totals = lines.reduce(+ (acc, line) => {+ acc.total +=+ (line.purchaseQuantity ?? 0) * (line.unitPrice ?? 0);++ return acc;+ },+ { total: 0 }+ );+ setPurchaseOrderTotals(totals);+ }}onNewRow={canEdit && isEditable ? () => navigate("new") : undefined}/></CardBody>diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLines/usePurchaseOrderLines.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLines/usePurchaseOrderLines.tsxindex b109cee956..d9f081b28f 100644--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLines/usePurchaseOrderLines.tsx+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderLines/usePurchaseOrderLines.tsx@@ -1,7 +1,7 @@import { useMount } from "@carbon/react";import { useFetcher } from "@remix-run/react";import { useCallback, useMemo } from "react";-import { usePermissions } from "~/hooks";+import { usePermissions, useUser } from "~/hooks";import { useSupabase } from "~/lib/supabase";import type { getAccountsList } from "~/modules/accounting";import type { PurchaseOrderLine } from "~/modules/purchasing";@@ -9,6 +9,7 @@ import { usePurchasedParts } from "~/stores/parts";import { path } from "~/utils/path";export default function usePurchaseOrderLines() {+ const { id: userId } = useUser();const { supabase } = useSupabase();const permissions = usePermissions();@@ -50,10 +51,11 @@ export default function usePurchaseOrderLines() {.from("purchaseOrderLine").update({[id]: value,+ updatedBy: userId,}).eq("id", row.id);},- [supabase]+ [supabase, userId]);return {diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm/PurchaseOrderPaymentForm.tsx b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm/PurchaseOrderPaymentForm.tsxindex c3424bea07..174c00d146 100644--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm/PurchaseOrderPaymentForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/PurchaseOrderPaymentForm/PurchaseOrderPaymentForm.tsx@@ -10,14 +10,14 @@ import {import { useState } from "react";import { ValidatedForm } from "remix-validated-form";import {- Currency,Boolean,+ Currency,Hidden,+ Select,+ Submit,Supplier,SupplierContact,SupplierLocation,- Select,- Submit,} from "~/components/Form";import { usePermissions } from "~/hooks";import { purchaseOrderPaymentValidator } from "~/modules/purchasing";diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/index.ts b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/index.tsindex 6c359c50d1..736f9aed75 100644--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/index.ts+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/index.ts@@ -8,6 +8,7 @@ import PurchaseOrderLines from "./PurchaseOrderLines";import PurchaseOrderPaymentForm from "./PurchaseOrderPaymentForm";import PurchaseOrderSidebar from "./PurchaseOrderSidebar";import PurchasingStatus from "./PurchasingStatus";+import { usePurchaseOrderTotals } from "./usePurchaseOrderTotals";export {PurchaseOrderDeliveryForm,@@ -20,4 +21,5 @@ export {PurchaseOrderPaymentForm,PurchaseOrderSidebar,PurchasingStatus,+ usePurchaseOrderTotals,};diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/usePurchaseOrderTotals.ts b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/usePurchaseOrderTotals.tsnew file mode 100644index 0000000000..a2c28b620e--- /dev/null+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrder/usePurchaseOrderTotals.ts@@ -0,0 +1,7 @@+import { atom } from "nanostores";+import { useNanoStore } from "~/hooks";++const $totals = atom<{ total: number }>({+ total: 0,+});+export const usePurchaseOrderTotals = () => useNanoStore($totals);diff --git a/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/usePurchaseOrder.ts b/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/usePurchaseOrder.tsindex 3402540f59..ab144ca459 100644--- a/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/usePurchaseOrder.ts+++ b/apps/carbon/app/modules/purchasing/ui/PurchaseOrders/usePurchaseOrder.ts@@ -53,6 +53,14 @@ export const usePurchaseOrder = () => {[insertTransaction, supabase, user?.id]);+ const invoice = useCallback(+ (purchaseOrder: PurchaseOrder) =>+ navigate(+ `${path.to.newPurchaseInvoice}?sourceDocument=Purchase Order&sourceDocumentId=${purchaseOrder.id}`+ ),+ [navigate]+ );+const receive = useCallback((purchaseOrder: PurchaseOrder) =>navigate(@@ -85,6 +93,7 @@ export const usePurchaseOrder = () => {return {edit,favorite,+ invoice,receive,release,};diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierForm/SupplierForm.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierForm/SupplierForm.tsxindex f12e02550a..ac2ac87373 100644--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierForm/SupplierForm.tsx+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierForm/SupplierForm.tsx@@ -1,5 +1,4 @@import {- Button,Card,CardBody,CardFooter,@@ -10,20 +9,11 @@ import {Text,VStack,} from "@chakra-ui/react";-import { useNavigate } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";-import {- Currency,- Employee,- Hidden,- Input,- Select,- Submit,-} from "~/components/Form";+import { Employee, Hidden, Input, Select, Submit } from "~/components/Form";import { usePermissions, useRouteData } from "~/hooks";import type { SupplierStatus, SupplierType } from "~/modules/purchasing";import { supplierValidator } from "~/modules/purchasing";-import type { ListItem } from "~/types";import type { TypeOfValidator } from "~/types/validators";import { path } from "~/utils/path";@@ -33,15 +23,10 @@ type SupplierFormProps = {const SupplierForm = ({ initialValues }: SupplierFormProps) => {const permissions = usePermissions();- const navigate = useNavigate();- const onClose = () => navigate(path.to.suppliers);const routeData = useRouteData<{supplierTypes: SupplierType[];supplierStatuses: SupplierStatus[];- paymentTerms: ListItem[];- shippingMethods: ListItem[];- shippingTerms: ListItem[];}>(path.to.supplierRoot);const supplierTypeOptions =@@ -56,24 +41,6 @@ const SupplierForm = ({ initialValues }: SupplierFormProps) => {label: status.name,})) ?? [];- const paymentTermOptions =- routeData?.paymentTerms?.map((term) => ({- value: term.id,- label: term.name,- })) ?? [];-- const shippingMethodOptions =- routeData?.shippingMethods?.map((method) => ({- value: method.id,- label: method.name,- })) ?? [];-- const shippingTermOptions =- routeData?.shippingTerms?.map((term) => ({- value: term.id,- label: term.name,- })) ?? [];-const isEditing = initialValues.id !== undefined;const isDisabled = isEditing? !permissions.can("update", "purchasing")@@ -88,7 +55,7 @@ const SupplierForm = ({ initialValues }: SupplierFormProps) => {<Card w="full"><CardHeader><Heading size="md">- {isEditing ? "Supplier Details" : "New Supplier"}+ {isEditing ? "Supplier Overview" : "New Supplier"}</Heading>{!isEditing && (<Text color="gray.500">@@ -110,48 +77,25 @@ const SupplierForm = ({ initialValues }: SupplierFormProps) => {<VStack alignItems="start" spacing={2} w="full"><Input name="name" label="Name" /><Input name="taxId" label="Tax ID" />+ </VStack>+ <VStack alignItems="start" spacing={2} w="full"><Selectname="supplierTypeId"label="Supplier Type"options={supplierTypeOptions}placeholder="Select Supplier Type"/>+ <Select+ name="supplierStatusId"+ label="Supplier Status"+ options={supplierStatusOptions}+ placeholder="Select Supplier Status"+ /></VStack>{isEditing && (<><VStack alignItems="start" spacing={2} w="full"><Employee name="accountManagerId" label="Account Manager" />- <Select- name="supplierStatusId"- label="Supplier Status"- options={supplierStatusOptions}- placeholder="Select Supplier Status"- />- <Currency- name="defaultCurrencyCode"- label="Currency"- placeholder="Default Currency"- />- </VStack>- <VStack alignItems="start" spacing={2} w="full">- <Select- name="defaultPaymentTermId"- label="Payment Term"- options={paymentTermOptions}- placeholder="Default Payment Term"- />- <Select- name="defaultShippingMethodId"- label="Shipping Method"- options={shippingMethodOptions}- placeholder="Default Shipping Method"- />- <Select- name="defaultShippingTermId"- label="Shipping Term"- options={shippingTermOptions}- placeholder="Default Shipping Term"- /></VStack></>)}@@ -160,14 +104,6 @@ const SupplierForm = ({ initialValues }: SupplierFormProps) => {<CardFooter><HStack spacing={2}><Submit isDisabled={isDisabled}>Save</Submit>- <Button- size="md"- colorScheme="gray"- variant="solid"- onClick={onClose}- >- Cancel- </Button></HStack></CardFooter></Card>diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm/SupplierPaymentForm.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm/SupplierPaymentForm.tsxnew file mode 100644index 0000000000..f6397f4482--- /dev/null+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm/SupplierPaymentForm.tsx@@ -0,0 +1,105 @@+import {+ Card,+ CardBody,+ CardFooter,+ CardHeader,+ Grid,+ Heading,+ HStack,+ VStack,+} from "@chakra-ui/react";+import { useState } from "react";+import { ValidatedForm } from "remix-validated-form";+import {+ Currency,+ Hidden,+ Select,+ Submit,+ Supplier,+ SupplierContact,+ SupplierLocation,+} from "~/components/Form";+import { usePermissions, useRouteData } from "~/hooks";+import { supplierPaymentValidator } from "~/modules/purchasing";+import type { ListItem } from "~/types";+import type { TypeOfValidator } from "~/types/validators";+import { path } from "~/utils/path";++type SupplierPaymentFormProps = {+ initialValues: TypeOfValidator<typeof supplierPaymentValidator>;+};++const SupplierPaymentForm = ({ initialValues }: SupplierPaymentFormProps) => {+ const permissions = usePermissions();+ const [supplier, setSupplier] = useState<string | undefined>(+ initialValues.invoiceSupplierId+ );++ const routeData = useRouteData<{+ paymentTerms: ListItem[];+ }>(path.to.supplierRoot);++ const paymentTermOptions =+ routeData?.paymentTerms?.map((term) => ({+ value: term.id,+ label: term.name,+ })) ?? [];++ const isDisabled = !permissions.can("update", "purchasing");++ return (+ <ValidatedForm+ method="post"+ validator={supplierPaymentValidator}+ defaultValues={initialValues}+ >+ <Card w="full">+ <CardHeader>+ <Heading size="md">Supplier Payment</Heading>+ </CardHeader>+ <CardBody>+ <Hidden name="supplierId" />+ <Grid+ gridTemplateColumns={["1fr", "1fr", "1fr 1fr 1fr"]}+ gridColumnGap={8}+ gridRowGap={2}+ w="full"+ >+ <VStack alignItems="start" spacing={2} w="full">+ <Supplier+ name="invoiceSupplierId"+ label="Invoice Supplier"+ onChange={({ value }) => setSupplier(value as string)}+ />+ <SupplierLocation+ name="invoiceSupplierLocationId"+ label="Invoice Location"+ supplier={supplier}+ />+ <SupplierContact+ name="invoiceSupplierContactId"+ label="Invoice Contact"+ supplier={supplier}+ />+ </VStack>+ <VStack alignItems="start" spacing={2} w="full">+ <Select+ name="paymentTermId"+ label="Payment Term"+ options={paymentTermOptions}+ />+ <Currency name="currencyCode" label="Currency" />+ </VStack>+ </Grid>+ </CardBody>+ <CardFooter>+ <HStack spacing={2}>+ <Submit isDisabled={isDisabled}>Save</Submit>+ </HStack>+ </CardFooter>+ </Card>+ </ValidatedForm>+ );+};++export default SupplierPaymentForm;diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm/index.ts b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm/index.tsnew file mode 100644index 0000000000..e0e682cb8e--- /dev/null+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierPaymentForm/index.ts@@ -0,0 +1,3 @@+import SupplierPaymentForm from "./SupplierPaymentForm";++export default SupplierPaymentForm;diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm/SupplierShippingForm.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm/SupplierShippingForm.tsxnew file mode 100644index 0000000000..14a375ff43--- /dev/null+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm/SupplierShippingForm.tsx@@ -0,0 +1,115 @@+import {+ Card,+ CardBody,+ CardFooter,+ CardHeader,+ Grid,+ Heading,+ HStack,+ VStack,+} from "@chakra-ui/react";+import { useState } from "react";+import { ValidatedForm } from "remix-validated-form";+import {+ Hidden,+ Select,+ Submit,+ Supplier,+ SupplierContact,+ SupplierLocation,+} from "~/components/Form";+import { usePermissions, useRouteData } from "~/hooks";+import { supplierShippingValidator } from "~/modules/purchasing";+import type { ListItem } from "~/types";+import type { TypeOfValidator } from "~/types/validators";+import { path } from "~/utils/path";++type SupplierShippingFormProps = {+ initialValues: TypeOfValidator<typeof supplierShippingValidator>;+};++const SupplierShippingForm = ({ initialValues }: SupplierShippingFormProps) => {+ const permissions = usePermissions();+ const [supplier, setSupplier] = useState<string | undefined>(+ initialValues.shippingSupplierId+ );++ const routeData = useRouteData<{+ shippingMethods: ListItem[];+ shippingTerms: ListItem[];+ }>(path.to.supplierRoot);++ const shippingMethodOptions =+ routeData?.shippingMethods?.map((method) => ({+ value: method.id,+ label: method.name,+ })) ?? [];++ const shippingTermOptions =+ routeData?.shippingTerms?.map((term) => ({+ value: term.id,+ label: term.name,+ })) ?? [];++ const isDisabled = !permissions.can("update", "purchasing");++ return (+ <ValidatedForm+ method="post"+ validator={supplierShippingValidator}+ defaultValues={initialValues}+ >+ <Card w="full">+ <CardHeader>+ <Heading size="md">Supplier Shipping</Heading>+ </CardHeader>+ <CardBody>+ <Hidden name="supplierId" />+ <Grid+ gridTemplateColumns={["1fr", "1fr", "1fr 1fr 1fr"]}+ gridColumnGap={8}+ gridRowGap={2}+ w="full"+ >+ <VStack alignItems="start" spacing={2} w="full">+ <Supplier+ name="shippingSupplierId"+ label="Shipping Supplier"+ onChange={({ value }) => setSupplier(value as string)}+ />+ <SupplierLocation+ name="shippingSupplierLocationId"+ label="Shipping Location"+ supplier={supplier}+ />+ <SupplierContact+ name="shippingSupplierContactId"+ label="Shipping Contact"+ supplier={supplier}+ />+ </VStack>+ <VStack alignItems="start" spacing={2} w="full">+ <Select+ name="shippingMethodId"+ label="Shipping Method"+ options={shippingMethodOptions}+ />+ <Select+ name="shippingTermId"+ label="Shipping Term"+ options={shippingTermOptions}+ />+ </VStack>+ </Grid>+ </CardBody>+ <CardFooter>+ <HStack spacing={2}>+ <Submit isDisabled={isDisabled}>Save</Submit>+ </HStack>+ </CardFooter>+ </Card>+ </ValidatedForm>+ );+};++export default SupplierShippingForm;diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm/index.ts b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm/index.tsnew file mode 100644index 0000000000..6d74129dbd--- /dev/null+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierShippingForm/index.ts@@ -0,0 +1,3 @@+import SupplierShippingForm from "./SupplierShippingForm";++export default SupplierShippingForm;diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsx b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsxindex 72030b1de3..1a80c2e45a 100644--- a/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsx+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/SupplierSidebar/useSupplierSidebar.tsx@@ -10,7 +10,7 @@ export function useSupplierSidebar({ contacts, locations }: Props) {const permissions = usePermissions();return [{- name: "Details",+ name: "Overview",to: "",},{@@ -25,6 +25,16 @@ export function useSupplierSidebar({ contacts, locations }: Props) {role: ["employee", "supplier"],count: locations,},+ {+ name: "Payments",+ to: "payments",+ role: ["employee"],+ },+ {+ name: "Shipping",+ to: "shipping",+ role: ["employee"],+ },].filter((item) =>item.role === undefined ||diff --git a/apps/carbon/app/modules/purchasing/ui/Supplier/index.ts b/apps/carbon/app/modules/purchasing/ui/Supplier/index.tsindex ee928b7b39..7e651241e0 100644--- a/apps/carbon/app/modules/purchasing/ui/Supplier/index.ts+++ b/apps/carbon/app/modules/purchasing/ui/Supplier/index.ts@@ -4,6 +4,8 @@ import SupplierForm from "./SupplierForm";import SupplierHeader from "./SupplierHeader";import SupplierLocationForm from "./SupplierLocationForm";import SupplierLocations from "./SupplierLocations";+import SupplierPaymentForm from "./SupplierPaymentForm";+import SupplierShippingForm from "./SupplierShippingForm";import SupplierSidebar from "./SupplierSidebar";export {@@ -13,5 +15,7 @@ export {SupplierHeader,SupplierLocationForm,SupplierLocations,+ SupplierPaymentForm,+ SupplierShippingForm,SupplierSidebar,};diff --git a/apps/carbon/app/modules/resources/index.ts b/apps/carbon/app/modules/resources/index.tsindex 83b8af135e..b7428e126a 100644--- a/apps/carbon/app/modules/resources/index.ts+++ b/apps/carbon/app/modules/resources/index.ts@@ -1,3 +1,4 @@-export * from "./services";+export * from "./resources.models";+export * from "./resources.service";export * from "./types";export * from "./ui";diff --git a/apps/carbon/app/modules/resources/services/resources.form.ts b/apps/carbon/app/modules/resources/resources.models.tssimilarity index 100%rename from apps/carbon/app/modules/resources/services/resources.form.tsrename to apps/carbon/app/modules/resources/resources.models.tsdiff --git a/apps/carbon/app/modules/resources/services/resources.server.ts b/apps/carbon/app/modules/resources/resources.service.tssimilarity index 99%rename from apps/carbon/app/modules/resources/services/resources.server.tsrename to apps/carbon/app/modules/resources/resources.service.tsindex c102015339..083810541c 100644--- a/apps/carbon/app/modules/resources/services/resources.server.ts+++ b/apps/carbon/app/modules/resources/resources.service.ts@@ -6,7 +6,7 @@ import type { TypeOfValidator } from "~/types/validators";import type { GenericQueryFilters } from "~/utils/query";import { setGenericQueryFilters } from "~/utils/query";import { sanitize } from "~/utils/supabase";-import type { locationValidator } from "./resources.form";+import type { locationValidator } from "./resources.models";export async function deleteAbility(client: SupabaseClient<Database>,diff --git a/apps/carbon/app/modules/resources/services/index.ts b/apps/carbon/app/modules/resources/services/index.tsdeleted file mode 100644index fc6688196c..0000000000--- a/apps/carbon/app/modules/resources/services/index.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./resources.form";-export * from "./resources.server";diff --git a/apps/carbon/app/modules/resources/types.ts b/apps/carbon/app/modules/resources/types.tsindex 91b883ea8e..3bf274f316 100644--- a/apps/carbon/app/modules/resources/types.ts+++ b/apps/carbon/app/modules/resources/types.ts@@ -18,7 +18,7 @@ import type {getShifts,getWorkCellType,getWorkCellTypes,-} from "./services";+} from "./resources.service";export type Ability = NonNullable<Awaited<ReturnType<typeof getAbility>>["data"]diff --git a/apps/carbon/app/modules/sales/index.ts b/apps/carbon/app/modules/sales/index.tsindex 83b8af135e..30078df554 100644--- a/apps/carbon/app/modules/sales/index.ts+++ b/apps/carbon/app/modules/sales/index.ts@@ -1,3 +1,4 @@-export * from "./services";+export * from "./sales.models";+export * from "./sales.service";export * from "./types";export * from "./ui";diff --git a/apps/carbon/app/modules/sales/services/sales.form.ts b/apps/carbon/app/modules/sales/sales.models.tssimilarity index 54%rename from apps/carbon/app/modules/sales/services/sales.form.tsrename to apps/carbon/app/modules/sales/sales.models.tsindex a48048055d..17279e9194 100644--- a/apps/carbon/app/modules/sales/services/sales.form.ts+++ b/apps/carbon/app/modules/sales/sales.models.ts@@ -11,10 +11,6 @@ export const customerValidator = withZod(customerStatusId: zfd.text(z.string().optional()),taxId: zfd.text(z.string().optional()),accountManagerId: zfd.text(z.string().optional()),- defaultCurrencyCode: zfd.text(z.string().optional()),- defaultPaymentTermId: zfd.text(z.string().optional()),- defaultShippingTermId: zfd.text(z.string().optional()),- defaultShippingMethodId: zfd.text(z.string().optional()),}));@@ -33,6 +29,28 @@ export const customerLocationValidator = withZod(}));+export const customerPaymentValidator = withZod(+ z.object({+ customerId: z.string().min(36, { message: "Customer is required" }),+ invoiceCustomerId: zfd.text(z.string().optional()),+ invoiceCustomerLocationId: zfd.text(z.string().optional()),+ invoiceCustomerContactId: zfd.text(z.string().optional()),+ paymentTermId: zfd.text(z.string().optional()),+ currencyCode: zfd.text(z.string().optional()),+ })+);++export const customerShippingValidator = withZod(+ z.object({+ customerId: z.string().min(36, { message: "Customer is required" }),+ shippingCustomerId: zfd.text(z.string().optional()),+ shippingCustomerLocationId: zfd.text(z.string().optional()),+ shippingCustomerContactId: zfd.text(z.string().optional()),+ shippingTermId: zfd.text(z.string().optional()),+ shippingMethodId: zfd.text(z.string().optional()),+ })+);+export const customerTypeValidator = withZod(z.object({id: zfd.text(z.string().optional()),diff --git a/apps/carbon/app/modules/sales/services/sales.server.ts b/apps/carbon/app/modules/sales/sales.service.tssimilarity index 86%rename from apps/carbon/app/modules/sales/services/sales.server.tsrename to apps/carbon/app/modules/sales/sales.service.tsindex 316f459da6..8cb903b116 100644--- a/apps/carbon/app/modules/sales/services/sales.server.ts+++ b/apps/carbon/app/modules/sales/sales.service.ts@@ -1,11 +1,16 @@import type { Database } from "@carbon/database";import type { SupabaseClient } from "@supabase/supabase-js";-import { getSupabaseServiceRole } from "~/lib/supabase";import type { TypeOfValidator } from "~/types/validators";import type { GenericQueryFilters } from "~/utils/query";import { setGenericQueryFilters } from "~/utils/query";import { sanitize } from "~/utils/supabase";-import type { customerTypeValidator, customerValidator } from "./sales.form";+import type {+ customerContactValidator,+ customerPaymentValidator,+ customerShippingValidator,+ customerTypeValidator,+ customerValidator,+} from "./sales.models";export async function deleteCustomerContact(client: SupabaseClient<Database>,@@ -95,6 +100,28 @@ export async function getCustomerLocations(.eq("customerId", customerId);}+export async function getCustomerPayment(+ client: SupabaseClient<Database>,+ customerId: string+) {+ return client+ .from("customerPayment")+ .select("*")+ .eq("customerId", customerId)+ .single();+}++export async function getCustomerShipping(+ client: SupabaseClient<Database>,+ customerId: string+) {+ return client+ .from("customerShipping")+ .select("*")+ .eq("customerId", customerId)+ .single();+}+export async function getCustomers(client: SupabaseClient<Database>,args: GenericQueryFilters & {@@ -198,30 +225,10 @@ export async function insertCustomerContact(client: SupabaseClient<Database>,customerContact: {customerId: string;- contact: {- firstName: string;- lastName: string;- email: string;- mobilePhone?: string;- homePhone?: string;- workPhone?: string;- fax?: string;- title?: string;- addressLine1?: string;- addressLine2?: string;- city?: string;- state?: string;- // countryId: string;- postalCode?: string;- birthday?: string;- notes?: string;- };+ contact: TypeOfValidator<typeof customerContactValidator>;}) {- // Need to use service role here because it violates RLS- // to select a contact that does not belong to any customer- // TODO: replace this with a transaction- const insertContact = await getSupabaseServiceRole()+ const insertContact = await client.from("contact").insert([customerContact.contact]).select("id")@@ -355,6 +362,29 @@ export async function updateCustomerLocation(.select("id").single();}+export async function updateCustomerPayment(+ client: SupabaseClient<Database>,+ customerPayment: TypeOfValidator<typeof customerPaymentValidator> & {+ updatedBy: string;+ }+) {+ return client+ .from("customerPayment")+ .update(sanitize(customerPayment))+ .eq("customerId", customerPayment.customerId);+}++export async function updateCustomerShipping(+ client: SupabaseClient<Database>,+ customerShipping: TypeOfValidator<typeof customerShippingValidator> & {+ updatedBy: string;+ }+) {+ return client+ .from("customerShipping")+ .update(sanitize(customerShipping))+ .eq("customerId", customerShipping.customerId);+}export async function upsertCustomerType(client: SupabaseClient<Database>,diff --git a/apps/carbon/app/modules/sales/services/index.ts b/apps/carbon/app/modules/sales/services/index.tsdeleted file mode 100644index f4b3153c5f..0000000000--- a/apps/carbon/app/modules/sales/services/index.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./sales.form";-export * from "./sales.server";diff --git a/apps/carbon/app/modules/sales/types.ts b/apps/carbon/app/modules/sales/types.tsindex b93a081a2d..e787cd08d2 100644--- a/apps/carbon/app/modules/sales/types.ts+++ b/apps/carbon/app/modules/sales/types.ts@@ -5,7 +5,7 @@ import type {getCustomers,getCustomerStatuses,getCustomerTypes,-} from "./services";+} from "./sales.service";export type Customer = NonNullable<Awaited<ReturnType<typeof getCustomers>>["data"]diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerForm/CustomerForm.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerForm/CustomerForm.tsxindex 95ff919de3..591380a0e7 100644--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerForm/CustomerForm.tsx+++ b/apps/carbon/app/modules/sales/ui/Customer/CustomerForm/CustomerForm.tsx@@ -1,5 +1,4 @@import {- Button,Card,CardBody,CardFooter,@@ -10,20 +9,11 @@ import {Text,VStack,} from "@chakra-ui/react";-import { useNavigate } from "@remix-run/react";import { ValidatedForm } from "remix-validated-form";-import {- Currency,- Employee,- Hidden,- Input,- Select,- Submit,-} from "~/components/Form";+import { Employee, Hidden, Input, Select, Submit } from "~/components/Form";import { usePermissions, useRouteData } from "~/hooks";import type { CustomerStatus, CustomerType } from "~/modules/sales";import { customerValidator } from "~/modules/sales";-import type { ListItem } from "~/types";import type { TypeOfValidator } from "~/types/validators";import { path } from "~/utils/path";@@ -33,15 +23,10 @@ type CustomerFormProps = {const CustomerForm = ({ initialValues }: CustomerFormProps) => {const permissions = usePermissions();- const navigate = useNavigate();- const onClose = () => navigate(path.to.customers);const routeData = useRouteData<{customerTypes: CustomerType[];customerStatuses: CustomerStatus[];- paymentTerms: ListItem[];- shippingMethods: ListItem[];- shippingTerms: ListItem[];}>(path.to.customerRoot);const customerTypeOptions =@@ -56,24 +41,6 @@ const CustomerForm = ({ initialValues }: CustomerFormProps) => {label: status.name,})) ?? [];- const paymentTermOptions =- routeData?.paymentTerms?.map((term) => ({- value: term.id,- label: term.name,- })) ?? [];-- const shippingMethodOptions =- routeData?.shippingMethods?.map((method) => ({- value: method.id,- label: method.name,- })) ?? [];-- const shippingTermOptions =- routeData?.shippingTerms?.map((term) => ({- value: term.id,- label: term.name,- })) ?? [];-const isEditing = initialValues.id !== undefined;const isDisabled = isEditing? !permissions.can("update", "sales")@@ -88,7 +55,7 @@ const CustomerForm = ({ initialValues }: CustomerFormProps) => {<Card w="full"><CardHeader><Heading size="md">- {isEditing ? "Customer Details" : "New Customer"}+ {isEditing ? "Customer Overview" : "New Customer"}</Heading>{!isEditing && (<Text color="gray.500">@@ -110,48 +77,25 @@ const CustomerForm = ({ initialValues }: CustomerFormProps) => {<VStack alignItems="start" spacing={2} w="full"><Input name="name" label="Name" /><Input name="taxId" label="Tax ID" />+ </VStack>+ <VStack alignItems="start" spacing={2} w="full"><Selectname="customerTypeId"label="Customer Type"options={customerTypeOptions}placeholder="Select Customer Type"/>+ <Select+ name="customerStatusId"+ label="Customer Status"+ options={customerStatusOptions}+ placeholder="Select Customer Status"+ /></VStack>{isEditing && (<><VStack alignItems="start" spacing={2} w="full"><Employee name="accountManagerId" label="Account Manager" />- <Select- name="customerStatusId"- label="Customer Status"- options={customerStatusOptions}- placeholder="Select Customer Status"- />- <Currency- name="defaultCurrencyCode"- label="Currency"- placeholder="Default Currency"- />- </VStack>- <VStack alignItems="start" spacing={2} w="full">- <Select- name="defaultPaymentTermId"- label="Payment Term"- options={paymentTermOptions}- placeholder="Default Payment Term"- />- <Select- name="defaultShippingMethodId"- label="Shipping Method"- options={shippingMethodOptions}- placeholder="Default Shipping Method"- />- <Select- name="defaultShippingTermId"- label="Shipping Term"- options={shippingTermOptions}- placeholder="Default Shipping Term"- /></VStack></>)}@@ -160,14 +104,6 @@ const CustomerForm = ({ initialValues }: CustomerFormProps) => {<CardFooter><HStack spacing={2}><Submit isDisabled={isDisabled}>Save</Submit>- <Button- size="md"- colorScheme="gray"- variant="solid"- onClick={onClose}- >- Cancel- </Button></HStack></CardFooter></Card>diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm/CustomerPaymentForm.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm/CustomerPaymentForm.tsxnew file mode 100644index 0000000000..0bef0d0b0c--- /dev/null+++ b/apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm/CustomerPaymentForm.tsx@@ -0,0 +1,105 @@+import {+ Card,+ CardBody,+ CardFooter,+ CardHeader,+ Grid,+ Heading,+ HStack,+ VStack,+} from "@chakra-ui/react";+import { useState } from "react";+import { ValidatedForm } from "remix-validated-form";+import {+ Currency,+ Customer,+ CustomerContact,+ CustomerLocation,+ Hidden,+ Select,+ Submit,+} from "~/components/Form";+import { usePermissions, useRouteData } from "~/hooks";+import { customerPaymentValidator } from "~/modules/sales";+import type { ListItem } from "~/types";+import type { TypeOfValidator } from "~/types/validators";+import { path } from "~/utils/path";++type CustomerPaymentFormProps = {+ initialValues: TypeOfValidator<typeof customerPaymentValidator>;+};++const CustomerPaymentForm = ({ initialValues }: CustomerPaymentFormProps) => {+ const permissions = usePermissions();+ const [customer, setCustomer] = useState<string | undefined>(+ initialValues.invoiceCustomerId+ );++ const routeData = useRouteData<{+ paymentTerms: ListItem[];+ }>(path.to.customerRoot);++ const paymentTermOptions =+ routeData?.paymentTerms?.map((term) => ({+ value: term.id,+ label: term.name,+ })) ?? [];++ const isDisabled = !permissions.can("update", "sales");++ return (+ <ValidatedForm+ method="post"+ validator={customerPaymentValidator}+ defaultValues={initialValues}+ >+ <Card w="full">+ <CardHeader>+ <Heading size="md">Customer Payment</Heading>+ </CardHeader>+ <CardBody>+ <Hidden name="customerId" />+ <Grid+ gridTemplateColumns={["1fr", "1fr", "1fr 1fr 1fr"]}+ gridColumnGap={8}+ gridRowGap={2}+ w="full"+ >+ <VStack alignItems="start" spacing={2} w="full">+ <Customer+ name="invoiceCustomerId"+ label="Invoice Customer"+ onChange={({ value }) => setCustomer(value as string)}+ />+ <CustomerLocation+ name="invoiceCustomerLocationId"+ label="Invoice Location"+ customer={customer}+ />+ <CustomerContact+ name="invoiceCustomerContactId"+ label="Invoice Contact"+ customer={customer}+ />+ </VStack>+ <VStack alignItems="start" spacing={2} w="full">+ <Select+ name="paymentTermId"+ label="Payment Term"+ options={paymentTermOptions}+ />+ <Currency name="currencyCode" label="Currency" />+ </VStack>+ </Grid>+ </CardBody>+ <CardFooter>+ <HStack spacing={2}>+ <Submit isDisabled={isDisabled}>Save</Submit>+ </HStack>+ </CardFooter>+ </Card>+ </ValidatedForm>+ );+};++export default CustomerPaymentForm;diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm/index.ts b/apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm/index.tsnew file mode 100644index 0000000000..3a93b1a28a--- /dev/null+++ b/apps/carbon/app/modules/sales/ui/Customer/CustomerPaymentForm/index.ts@@ -0,0 +1,3 @@+import CustomerPaymentForm from "./CustomerPaymentForm";++export default CustomerPaymentForm;diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm/CustomerShippingForm.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm/CustomerShippingForm.tsxnew file mode 100644index 0000000000..6186528e88--- /dev/null+++ b/apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm/CustomerShippingForm.tsx@@ -0,0 +1,115 @@+import {+ Card,+ CardBody,+ CardFooter,+ CardHeader,+ Grid,+ Heading,+ HStack,+ VStack,+} from "@chakra-ui/react";+import { useState } from "react";+import { ValidatedForm } from "remix-validated-form";+import {+ Customer,+ CustomerContact,+ CustomerLocation,+ Hidden,+ Select,+ Submit,+} from "~/components/Form";+import { usePermissions, useRouteData } from "~/hooks";+import { customerShippingValidator } from "~/modules/sales";+import type { ListItem } from "~/types";+import type { TypeOfValidator } from "~/types/validators";+import { path } from "~/utils/path";++type CustomerShippingFormProps = {+ initialValues: TypeOfValidator<typeof customerShippingValidator>;+};++const CustomerShippingForm = ({ initialValues }: CustomerShippingFormProps) => {+ const permissions = usePermissions();+ const [customer, setCustomer] = useState<string | undefined>(+ initialValues.shippingCustomerId+ );++ const routeData = useRouteData<{+ shippingMethods: ListItem[];+ shippingTerms: ListItem[];+ }>(path.to.customerRoot);++ const shippingMethodOptions =+ routeData?.shippingMethods?.map((method) => ({+ value: method.id,+ label: method.name,+ })) ?? [];++ const shippingTermOptions =+ routeData?.shippingTerms?.map((term) => ({+ value: term.id,+ label: term.name,+ })) ?? [];++ const isDisabled = !permissions.can("update", "sales");++ return (+ <ValidatedForm+ method="post"+ validator={customerShippingValidator}+ defaultValues={initialValues}+ >+ <Card w="full">+ <CardHeader>+ <Heading size="md">Customer Shipping</Heading>+ </CardHeader>+ <CardBody>+ <Hidden name="customerId" />+ <Grid+ gridTemplateColumns={["1fr", "1fr", "1fr 1fr 1fr"]}+ gridColumnGap={8}+ gridRowGap={2}+ w="full"+ >+ <VStack alignItems="start" spacing={2} w="full">+ <Customer+ name="shippingCustomerId"+ label="Shipping Customer"+ onChange={({ value }) => setCustomer(value as string)}+ />+ <CustomerLocation+ name="shippingCustomerLocationId"+ label="Shipping Location"+ customer={customer}+ />+ <CustomerContact+ name="shippingCustomerContactId"+ label="Shipping Contact"+ customer={customer}+ />+ </VStack>+ <VStack alignItems="start" spacing={2} w="full">+ <Select+ name="shippingMethodId"+ label="Shipping Method"+ options={shippingMethodOptions}+ />+ <Select+ name="shippingTermId"+ label="Shipping Term"+ options={shippingTermOptions}+ />+ </VStack>+ </Grid>+ </CardBody>+ <CardFooter>+ <HStack spacing={2}>+ <Submit isDisabled={isDisabled}>Save</Submit>+ </HStack>+ </CardFooter>+ </Card>+ </ValidatedForm>+ );+};++export default CustomerShippingForm;diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm/index.ts b/apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm/index.tsnew file mode 100644index 0000000000..ef689058a5--- /dev/null+++ b/apps/carbon/app/modules/sales/ui/Customer/CustomerShippingForm/index.ts@@ -0,0 +1,3 @@+import CustomerShippingForm from "./CustomerShippingForm";++export default CustomerShippingForm;diff --git a/apps/carbon/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsx b/apps/carbon/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsxindex 05386a3c26..48c78db187 100644--- a/apps/carbon/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsx+++ b/apps/carbon/app/modules/sales/ui/Customer/CustomerSidebar/useCustomerSidebar.tsx@@ -10,7 +10,7 @@ export function useCustomerSidebar({ contacts, locations }: Props) {const permissions = usePermissions();return [{- name: "Details",+ name: "Overview",to: "",},{@@ -25,6 +25,16 @@ export function useCustomerSidebar({ contacts, locations }: Props) {role: ["employee", "customer"],count: locations,},+ {+ name: "Payments",+ to: "payments",+ role: ["employee"],+ },+ {+ name: "Shipping",+ to: "shipping",+ role: ["employee"],+ },].filter((item) =>item.role === undefined ||diff --git a/apps/carbon/app/modules/sales/ui/Customer/index.ts b/apps/carbon/app/modules/sales/ui/Customer/index.tsindex 85c8b03340..766e7d2e4a 100644--- a/apps/carbon/app/modules/sales/ui/Customer/index.ts+++ b/apps/carbon/app/modules/sales/ui/Customer/index.ts@@ -4,6 +4,8 @@ import CustomerForm from "./CustomerForm";import CustomerHeader from "./CustomerHeader";import CustomerLocationForm from "./CustomerLocationForm";import CustomerLocations from "./CustomerLocations";+import CustomerPaymentForm from "./CustomerPaymentForm";+import CustomerShippingForm from "./CustomerShippingForm";import CustomerSidebar from "./CustomerSidebar";export {@@ -13,5 +15,7 @@ export {CustomerHeader,CustomerLocationForm,CustomerLocations,+ CustomerPaymentForm,+ CustomerShippingForm,CustomerSidebar,};diff --git a/apps/carbon/app/modules/settings/index.ts b/apps/carbon/app/modules/settings/index.tsindex 83b8af135e..0c0195d59e 100644--- a/apps/carbon/app/modules/settings/index.ts+++ b/apps/carbon/app/modules/settings/index.ts@@ -1,3 +1,4 @@-export * from "./services";+export * from "./settings.models";+export * from "./settings.service";export * from "./types";export * from "./ui";diff --git a/apps/carbon/app/modules/settings/services/index.ts b/apps/carbon/app/modules/settings/services/index.tsdeleted file mode 100644index 7e5c33ed01..0000000000--- a/apps/carbon/app/modules/settings/services/index.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./settings.form";-export * from "./settings.server";diff --git a/apps/carbon/app/modules/settings/services/settings.form.ts b/apps/carbon/app/modules/settings/settings.models.tssimilarity index 100%rename from apps/carbon/app/modules/settings/services/settings.form.tsrename to apps/carbon/app/modules/settings/settings.models.tsdiff --git a/apps/carbon/app/modules/settings/services/settings.server.ts b/apps/carbon/app/modules/settings/settings.service.tssimilarity index 83%rename from apps/carbon/app/modules/settings/services/settings.server.tsrename to apps/carbon/app/modules/settings/settings.service.tsindex 5443c4a6e1..a6d00f77f7 100644--- a/apps/carbon/app/modules/settings/services/settings.server.ts+++ b/apps/carbon/app/modules/settings/settings.service.ts@@ -3,9 +3,9 @@ import type { SupabaseClient } from "@supabase/supabase-js";import type { TypeOfValidator } from "~/types/validators";import type { GenericQueryFilters } from "~/utils/query";import { setGenericQueryFilters } from "~/utils/query";-import { interpolateDate } from "~/utils/string";+import { interpolateSequenceDate } from "~/utils/string";import { sanitize } from "~/utils/supabase";-import type { sequenceValidator } from "./settings.form";+import type { sequenceValidator } from "./settings.models";export async function getCurrentSequence(client: SupabaseClient<Database>,@@ -19,8 +19,8 @@ export async function getCurrentSequence(const { prefix, suffix, next, size } = sequence.data;const currentSequence = next.toString().padStart(size, "0");- const derivedPrefix = interpolateDate(prefix);- const derivedSuffix = interpolateDate(suffix);+ const derivedPrefix = interpolateSequenceDate(prefix);+ const derivedSuffix = interpolateSequenceDate(suffix);return {data: `${derivedPrefix}${currentSequence}${derivedSuffix}`,@@ -42,8 +42,8 @@ export async function getNextSequence(const nextValue = next + step;const nextSequence = nextValue.toString().padStart(size, "0");- const derivedPrefix = interpolateDate(prefix);- const derivedSuffix = interpolateDate(suffix);+ const derivedPrefix = interpolateSequenceDate(prefix);+ const derivedSuffix = interpolateSequenceDate(suffix);const update = await updateSequence(client, table, {next: nextValue,@@ -83,6 +83,13 @@ export async function getSequences(return query;}+export async function getSequencesList(+ client: SupabaseClient<Database>,+ table: string+) {+ return client.from("sequence").select("id").eq("table", table);+}+export async function rollbackNextSequence(client: SupabaseClient<Database>,table: string,diff --git a/apps/carbon/app/modules/settings/types.ts b/apps/carbon/app/modules/settings/types.tsindex c3a2d7c63c..b974d2686d 100644--- a/apps/carbon/app/modules/settings/types.ts+++ b/apps/carbon/app/modules/settings/types.ts@@ -1,4 +1,4 @@-import type { getSequences } from "./services";+import type { getSequences } from "./settings.service";export type Sequence = NonNullable<Awaited<ReturnType<typeof getSequences>>["data"]diff --git a/apps/carbon/app/modules/settings/ui/Sequences/SequenceForm/SequenceForm.tsx b/apps/carbon/app/modules/settings/ui/Sequences/SequenceForm/SequenceForm.tsxindex bbbae1d744..d3c0b423a7 100644--- a/apps/carbon/app/modules/settings/ui/Sequences/SequenceForm/SequenceForm.tsx+++ b/apps/carbon/app/modules/settings/ui/Sequences/SequenceForm/SequenceForm.tsx@@ -20,7 +20,7 @@ import { usePermissions } from "~/hooks";import { sequenceValidator } from "~/modules/settings";import type { TypeOfValidator } from "~/types/validators";import { path } from "~/utils/path";-import { interpolateDate } from "~/utils/string";+import { interpolateSequenceDate } from "~/utils/string";type SequenceFormProps = {initialValues: TypeOfValidator<typeof sequenceValidator> & {@@ -39,8 +39,8 @@ const SequenceForm = ({ initialValues }: SequenceFormProps) => {const [size, setSize] = useState(initialValues.size ?? 5);const makePreview = () => {- const p = interpolateDate(prefix);- const s = interpolateDate(suffix);+ const p = interpolateSequenceDate(prefix);+ const s = interpolateSequenceDate(suffix);return `${p}${next.toString().padStart(size, "0")}${s}`;};diff --git a/apps/carbon/app/modules/shared/index.ts b/apps/carbon/app/modules/shared/index.tsindex 83b8af135e..1d438c93ec 100644--- a/apps/carbon/app/modules/shared/index.ts+++ b/apps/carbon/app/modules/shared/index.ts@@ -1,3 +1,4 @@-export * from "./services";+export * from "./shared.models";+export * from "./shared.service";export * from "./types";export * from "./ui";diff --git a/apps/carbon/app/modules/shared/services/index.ts b/apps/carbon/app/modules/shared/services/index.tsdeleted file mode 100644index cffa448b28..0000000000--- a/apps/carbon/app/modules/shared/services/index.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./shared.form";-export * from "./shared.server";diff --git a/apps/carbon/app/modules/shared/services/shared.form.ts b/apps/carbon/app/modules/shared/shared.models.tssimilarity index 100%rename from apps/carbon/app/modules/shared/services/shared.form.tsrename to apps/carbon/app/modules/shared/shared.models.tsdiff --git a/apps/carbon/app/modules/shared/services/shared.server.ts b/apps/carbon/app/modules/shared/shared.service.tssimilarity index 100%rename from apps/carbon/app/modules/shared/services/shared.server.tsrename to apps/carbon/app/modules/shared/shared.service.tsdiff --git a/apps/carbon/app/modules/shared/types.ts b/apps/carbon/app/modules/shared/types.tsindex 14a7d265be..ad69ffd12d 100644--- a/apps/carbon/app/modules/shared/types.ts+++ b/apps/carbon/app/modules/shared/types.ts@@ -1,4 +1,4 @@-import type { getNotes } from "./services";+import type { getNotes } from "./shared.service";export type Note = NonNullable<Awaited<ReturnType<typeof getNotes>>["data"]diff --git a/apps/carbon/app/modules/shared/ui/Realtime/RealtimeDataProvider.tsx b/apps/carbon/app/modules/shared/ui/Realtime/RealtimeDataProvider.tsxindex 5b6e2fa668..1250a2e1a3 100644--- a/apps/carbon/app/modules/shared/ui/Realtime/RealtimeDataProvider.tsx+++ b/apps/carbon/app/modules/shared/ui/Realtime/RealtimeDataProvider.tsx@@ -19,7 +19,8 @@ const RealtimeDataProvider = ({ children }: { children: React.ReactNode }) => {supabase.from("part").select("id, name, replenishmentSystem")- .eq("active", true),+ .eq("active", true)+ .eq("blocked", false),supabase.from("supplier").select("id, name"),supabase.from("customer").select("id, name"),]);diff --git a/apps/carbon/app/modules/users/index.ts b/apps/carbon/app/modules/users/index.tsindex 83b8af135e..6a798fd4ff 100644--- a/apps/carbon/app/modules/users/index.ts+++ b/apps/carbon/app/modules/users/index.ts@@ -1,3 +1,4 @@-export * from "./services";export * from "./types";export * from "./ui";+export * from "./users.models";+export * from "./users.service";diff --git a/apps/carbon/app/modules/users/services/index.ts b/apps/carbon/app/modules/users/services/index.tsdeleted file mode 100644index 0bdfb80333..0000000000--- a/apps/carbon/app/modules/users/services/index.ts+++ /dev/null@@ -1,2 +0,0 @@-export * from "./users.form";-export * from "./users.server";diff --git a/apps/carbon/app/modules/users/types.ts b/apps/carbon/app/modules/users/types.tsindex 5d7ef3408c..43828cfa9a 100644--- a/apps/carbon/app/modules/users/types.ts+++ b/apps/carbon/app/modules/users/types.ts@@ -7,7 +7,7 @@ import type {getPermissionsByEmployeeType,getSuppliers,getUsers,-} from "./services";+} from "./users.service";export type Customer = NonNullable<Awaited<ReturnType<typeof getCustomers>>["data"]diff --git a/apps/carbon/app/modules/users/services/users.form.ts b/apps/carbon/app/modules/users/users.models.tssimilarity index 100%rename from apps/carbon/app/modules/users/services/users.form.tsrename to apps/carbon/app/modules/users/users.models.tsdiff --git a/apps/carbon/app/modules/users/services/users.server.ts b/apps/carbon/app/modules/users/users.server.tssimilarity index 70%rename from apps/carbon/app/modules/users/services/users.server.tsrename to apps/carbon/app/modules/users/users.server.tsindex 1d6854eaf0..c39028133e 100644--- a/apps/carbon/app/modules/users/services/users.server.ts+++ b/apps/carbon/app/modules/users/users.server.ts@@ -5,12 +5,13 @@ import type { SupabaseClient } from "@supabase/supabase-js";import { getSupabaseServiceRole } from "~/lib/supabase";import { getSupplierContact } from "~/modules/purchasing";import { getCustomerContact } from "~/modules/sales";-import type {- EmployeeRow,- EmployeeTypePermission,- Feature,- Permission,- User,+import {+ getPermissionsByEmployeeType,+ type EmployeeRow,+ type EmployeeTypePermission,+ type Feature,+ type Permission,+ type User,} from "~/modules/users";import {deleteAuthAccount,@@ -20,8 +21,6 @@ import {import { flash, requireAuthSession } from "~/services/session";import type { ListItem, Result } from "~/types";import { path } from "~/utils/path";-import type { GenericQueryFilters } from "~/utils/query";-import { setGenericQueryFilters } from "~/utils/query";import { error, success } from "~/utils/result";export async function createCustomerAccount(@@ -46,7 +45,7 @@ export async function createCustomerAccount(const { email, firstName, lastName } = customerContact.data.contact;- // TODO: can we do this after we've done the other stuff?+ // TODO: convert to transaction and call this at the end of the transactionconst invitation = await sendInviteByEmail(email);if (invitation.error)@@ -127,7 +126,7 @@ export async function createEmployeeAccount("Failed to get employee type permissions");- // TODO: can we do this after we've done the other stuff?+ // TODO: convert to transaction and call this at the end of the transactionconst invitation = await sendInviteByEmail(email);if (invitation.error)@@ -192,7 +191,7 @@ export async function createSupplierAccount(const { email, firstName, lastName } = supplierContact.data.contact;- // TODO: can we do this after we've done the other stuff?+ // TODO: convert to transaction and call this at the end of the transactionconst invitation = await sendInviteByEmail(email);if (invitation.error)@@ -278,20 +277,6 @@ export async function deactivateUser(return success("Sucessfully deactivated user");}-export async function deleteEmployeeType(- client: SupabaseClient<Database>,- employeeTypeId: string-) {- return client.from("employeeType").delete().eq("id", employeeTypeId);-}--export async function deleteGroup(- client: SupabaseClient<Database>,- groupId: string-) {- return client.from("group").delete().eq("id", groupId);-}-export async function getClaims(client: SupabaseClient<Database>, uid: string) {return client.rpc("get_claims", { uid });}@@ -313,190 +298,10 @@ export async function getCurrentUser(return user.data;}-export async function getCustomers(- client: SupabaseClient<Database>,- args: GenericQueryFilters & {- name: string | null;- type: string | null;- active: boolean | null;- }-) {- let query = client.from("customerAccount").select(- `user!inner(id, fullName, firstName, lastName, email, avatarUrl, active),- customer!inner(name, customerType!left(name))`,- { count: "exact" }- );-- if (args.name) {- query = query.ilike("user.fullName", `%${args.name}%`);- }-- if (args.type) {- query = query.eq("customer.customerTypeId", args.type);- }-- if (args.active !== null) {- query = query.eq("user.active", args.active);- }-- query = setGenericQueryFilters(query, args, "user(lastName)");- return query;-}--export async function getEmployee(- client: SupabaseClient<Database>,- id: string-) {- return client- .from("employee")- .select("id, user(id, firstName, lastName, email), employeeType(id)")- .eq("id", id)- .single();-}--export async function getEmployees(- client: SupabaseClient<Database>,- args: GenericQueryFilters & {- name: string | null;- type: string | null;- active: boolean | null;- }-) {- let query = client- .from("employee")- .select(- "user!inner(id, fullName, firstName, lastName, email, avatarUrl, active), employeeType!inner(name)",- { count: "exact" }- );-- if (args.name) {- query = query.ilike("user.fullName", `%${args.name}%`);- }-- if (args.type) {- query = query.eq("employeeTypeId", args.type);- }-- if (args.active !== null) {- query = query.eq("user.active", args.active);- }-- query = setGenericQueryFilters(query, args, "user(lastName)");- return query;-}--export async function getEmployeeType(- client: SupabaseClient<Database>,- employeeTypeId: string-) {- return client- .from("employeeType")- .select("id, name, color, protected")- .eq("id", employeeTypeId)- .single();-}--export async function getEmployeeTypes(- client: SupabaseClient<Database>,- args?: GenericQueryFilters & { name: string | null }-) {- let query = client- .from("employeeType")- .select("id, name, color, protected", { count: "exact" });-- if (args?.name) {- query = query.ilike("name", `%${args.name}%`);- }-- if (args) {- query = setGenericQueryFilters(query, args, "name");- }-- return query;-}--export async function getFeatures(client: SupabaseClient<Database>) {- return client.from("feature").select("id, name").order("name");-}--export async function getGroup(- client: SupabaseClient<Database>,- groupId: string-) {- return client.from("group").select("id, name").eq("id", groupId).single();-}--export async function getGroupMembers(- client: SupabaseClient<Database>,- groupId: string-) {- return client- .from("groupMembers")- .select("name, groupId, memberGroupId, memberUserId")- .eq("groupId", groupId);-}--export async function getGroups(- client: SupabaseClient<Database>,- args?: GenericQueryFilters & {- name: string | null;- uid: string | null;- }-) {- let query = client.rpc("groups_query", {- _uid: args?.uid ?? "",- _name: args?.name ?? "",- });-- if (args) query = setGenericQueryFilters(query, args);-- return query;-}--export async function getPermissionsByEmployeeType(- client: SupabaseClient<Database>,- employeeTypeId: string-) {- return client- .from("employeeTypePermission")- .select("view, create, update, delete, feature (id, name)")- .eq("employeeTypeId", employeeTypeId);-}-function getPermissionCacheKey(userId: string) {return `permissions:${userId}`;}-export async function getSuppliers(- client: SupabaseClient<Database>,- args: GenericQueryFilters & {- name: string | null;- type: string | null;- active: boolean | null;- }-) {- let query = client.from("supplierAccount").select(- `user!inner(id, fullName, firstName, lastName, email, avatarUrl, active),- supplier!inner(name, supplierType!left(name))`,- { count: "exact" }- );-- if (args.name) {- query = query.ilike("user.fullName", `%${args.name}%`);- }-- if (args.type) {- query = query.eq("supplier.supplierTypeId", args.type);- }-- if (args.active !== null) {- query = query.eq("user.active", args.active);- }-- query = setGenericQueryFilters(query, args, "user(lastName)");- return query;-}-export async function getUser(client: SupabaseClient<Database>, id: string) {return client.from("user")@@ -514,10 +319,7 @@ export async function getUserByEmail(email: string) {.single();}-export async function getUserClaims(- request: Request,- client: SupabaseClient<Database>-) {+export async function getUserClaims(request: Request) {const { userId } = await requireAuthSession(request);let claims: {@@ -576,14 +378,6 @@ export async function getUserDefaults(return client.from("userDefaults").select("*").eq("userId", userId).single();}-export async function getUsers(client: SupabaseClient<Database>) {- return client- .from("user")- .select("id, firstName, lastName, fullName, email, avatarUrl")- .eq("active", true)- .order("lastName");-}-async function insertCustomerAccount(client: SupabaseClient<Database>,customerAccount: {@@ -605,24 +399,6 @@ export async function insertEmployee(return client.from("employee").insert([employee]).select("id").single();}-export async function insertEmployeeType(- client: SupabaseClient<Database>,- employeeType: { id?: string; name: string; color?: string }-) {- return client- .from("employeeType")- .insert([employeeType])- .select("id")- .single();-}--export async function insertGroup(- client: SupabaseClient<Database>,- group: { name: string }-) {- return client.from("group").insert(group).select("id").single();-}-async function insertSupplierAccount(client: SupabaseClient<Database>,supplierAccount: {@@ -903,74 +679,3 @@ export async function updatePermissions(return error(null, "You do not have permission to update permissions");}}--export async function upsertEmployeeType(- client: SupabaseClient<Database>,- employeeType: { id?: string; name: string; color?: string }-) {- return client- .from("employeeType")- .upsert([employeeType])- .select("id")- .single();-}--export async function upsertEmployeeTypePermissions(- client: SupabaseClient<Database>,- employeeTypeId: string,- permissions: { id: string; permission: Permission }[]-) {- const employeeTypePermissions = permissions.map(({ id, permission }) => ({- employeeTypeId,- featureId: id,- view: permission.view,- create: permission.create,- update: permission.update,- delete: permission.delete,- }));-- return client.from("employeeTypePermission").upsert(employeeTypePermissions);-}--export async function upsertGroup(- client: SupabaseClient<Database>,- {- id,- name,- }: {- id: string;- name: string;- }-) {- return client.from("group").upsert([{ id, name }]);-}--export async function upsertGroupMembers(- client: SupabaseClient<Database>,- groupId: string,- selections: string[]-) {- const deleteExisting = await client- .from("membership")- .delete()- .eq("groupId", groupId);-- if (deleteExisting.error) return deleteExisting;-- // separate each id according to whether it is a group or a user- const memberGroups = selections- .filter((id) => id.startsWith("group_"))- .map((id) => ({- groupId,- memberGroupId: id.slice(6),- }));-- const memberUsers = selections- .filter((id) => id.startsWith("user_"))- .map((id) => ({- groupId,- memberUserId: id.slice(5),- }));-- return client.from("membership").insert([...memberGroups, ...memberUsers]);-}diff --git a/apps/carbon/app/modules/users/users.service.ts b/apps/carbon/app/modules/users/users.service.tsnew file mode 100644index 0000000000..c198d54a44--- /dev/null+++ b/apps/carbon/app/modules/users/users.service.ts@@ -0,0 +1,296 @@+import type { Database } from "@carbon/database";+import type { SupabaseClient } from "@supabase/supabase-js";+import type { GenericQueryFilters } from "~/utils/query";+import { setGenericQueryFilters } from "~/utils/query";+import type { Permission } from "./types";++export async function deleteEmployeeType(+ client: SupabaseClient<Database>,+ employeeTypeId: string+) {+ return client.from("employeeType").delete().eq("id", employeeTypeId);+}++export async function deleteGroup(+ client: SupabaseClient<Database>,+ groupId: string+) {+ return client.from("group").delete().eq("id", groupId);+}++export async function getCustomers(+ client: SupabaseClient<Database>,+ args: GenericQueryFilters & {+ name: string | null;+ type: string | null;+ active: boolean | null;+ }+) {+ let query = client.from("customerAccount").select(+ `user!inner(id, fullName, firstName, lastName, email, avatarUrl, active),+ customer!inner(name, customerType!left(name))`,+ { count: "exact" }+ );++ if (args.name) {+ query = query.ilike("user.fullName", `%${args.name}%`);+ }++ if (args.type) {+ query = query.eq("customer.customerTypeId", args.type);+ }++ if (args.active !== null) {+ query = query.eq("user.active", args.active);+ }++ query = setGenericQueryFilters(query, args, "user(lastName)");+ return query;+}++export async function getEmployee(+ client: SupabaseClient<Database>,+ id: string+) {+ return client+ .from("employee")+ .select("id, user(id, firstName, lastName, email), employeeType(id)")+ .eq("id", id)+ .single();+}++export async function getEmployees(+ client: SupabaseClient<Database>,+ args: GenericQueryFilters & {+ name: string | null;+ type: string | null;+ active: boolean | null;+ }+) {+ let query = client+ .from("employee")+ .select(+ "user!inner(id, fullName, firstName, lastName, email, avatarUrl, active), employeeType!inner(name)",+ { count: "exact" }+ );++ if (args.name) {+ query = query.ilike("user.fullName", `%${args.name}%`);+ }++ if (args.type) {+ query = query.eq("employeeTypeId", args.type);+ }++ if (args.active !== null) {+ query = query.eq("user.active", args.active);+ }++ query = setGenericQueryFilters(query, args, "user(lastName)");+ return query;+}++export async function getEmployeeType(+ client: SupabaseClient<Database>,+ employeeTypeId: string+) {+ return client+ .from("employeeType")+ .select("id, name, color, protected")+ .eq("id", employeeTypeId)+ .single();+}++export async function getEmployeeTypes(+ client: SupabaseClient<Database>,+ args?: GenericQueryFilters & { name: string | null }+) {+ let query = client+ .from("employeeType")+ .select("id, name, color, protected", { count: "exact" });++ if (args?.name) {+ query = query.ilike("name", `%${args.name}%`);+ }++ if (args) {+ query = setGenericQueryFilters(query, args, "name");+ }++ return query;+}++export async function getFeatures(client: SupabaseClient<Database>) {+ return client.from("feature").select("id, name").order("name");+}++export async function getGroup(+ client: SupabaseClient<Database>,+ groupId: string+) {+ return client.from("group").select("id, name").eq("id", groupId).single();+}++export async function getGroupMembers(+ client: SupabaseClient<Database>,+ groupId: string+) {+ return client+ .from("groupMembers")+ .select("name, groupId, memberGroupId, memberUserId")+ .eq("groupId", groupId);+}++export async function getGroups(+ client: SupabaseClient<Database>,+ args?: GenericQueryFilters & {+ name: string | null;+ uid: string | null;+ }+) {+ let query = client.rpc("groups_query", {+ _uid: args?.uid ?? "",+ _name: args?.name ?? "",+ });++ if (args) query = setGenericQueryFilters(query, args);++ return query;+}++export async function getPermissionsByEmployeeType(+ client: SupabaseClient<Database>,+ employeeTypeId: string+) {+ return client+ .from("employeeTypePermission")+ .select("view, create, update, delete, feature (id, name)")+ .eq("employeeTypeId", employeeTypeId);+}++export async function getSuppliers(+ client: SupabaseClient<Database>,+ args: GenericQueryFilters & {+ name: string | null;+ type: string | null;+ active: boolean | null;+ }+) {+ let query = client.from("supplierAccount").select(+ `user!inner(id, fullName, firstName, lastName, email, avatarUrl, active),+ supplier!inner(name, supplierType!left(name))`,+ { count: "exact" }+ );++ if (args.name) {+ query = query.ilike("user.fullName", `%${args.name}%`);+ }++ if (args.type) {+ query = query.eq("supplier.supplierTypeId", args.type);+ }++ if (args.active !== null) {+ query = query.eq("user.active", args.active);+ }++ query = setGenericQueryFilters(query, args, "user(lastName)");+ return query;+}++export async function getUsers(client: SupabaseClient<Database>) {+ return client+ .from("user")+ .select("id, firstName, lastName, fullName, email, avatarUrl")+ .eq("active", true)+ .order("lastName");+}++export async function insertEmployeeType(+ client: SupabaseClient<Database>,+ employeeType: { id?: string; name: string; color?: string }+) {+ return client+ .from("employeeType")+ .insert([employeeType])+ .select("id")+ .single();+}++export async function insertGroup(+ client: SupabaseClient<Database>,+ group: { name: string }+) {+ return client.from("group").insert(group).select("id").single();+}++export async function upsertEmployeeType(+ client: SupabaseClient<Database>,+ employeeType: { id?: string; name: string; color?: string }+) {+ return client+ .from("employeeType")+ .upsert([employeeType])+ .select("id")+ .single();+}++export async function upsertEmployeeTypePermissions(+ client: SupabaseClient<Database>,+ employeeTypeId: string,+ permissions: { id: string; permission: Permission }[]+) {+ const employeeTypePermissions = permissions.map(({ id, permission }) => ({+ employeeTypeId,+ featureId: id,+ view: permission.view,+ create: permission.create,+ update: permission.update,+ delete: permission.delete,+ }));++ return client.from("employeeTypePermission").upsert(employeeTypePermissions);+}++export async function upsertGroup(+ client: SupabaseClient<Database>,+ {+ id,+ name,+ }: {+ id: string;+ name: string;+ }+) {+ return client.from("group").upsert([{ id, name }]);+}++export async function upsertGroupMembers(+ client: SupabaseClient<Database>,+ groupId: string,+ selections: string[]+) {+ const deleteExisting = await client+ .from("membership")+ .delete()+ .eq("groupId", groupId);++ if (deleteExisting.error) return deleteExisting;++ // separate each id according to whether it is a group or a user+ const memberGroups = selections+ .filter((id) => id.startsWith("group_"))+ .map((id) => ({+ groupId,+ memberGroupId: id.slice(6),+ }));++ const memberUsers = selections+ .filter((id) => id.startsWith("user_"))+ .map((id) => ({+ groupId,+ memberUserId: id.slice(5),+ }));++ return client.from("membership").insert([...memberGroups, ...memberUsers]);+}diff --git a/apps/carbon/app/queues/user-admin.queue.server.ts b/apps/carbon/app/queues/user-admin.queue.server.tsindex 4466a73529..a6c21fbd75 100644--- a/apps/carbon/app/queues/user-admin.queue.server.ts+++ b/apps/carbon/app/queues/user-admin.queue.server.ts@@ -1,6 +1,6 @@import { Queue } from "~/lib/bullmq";import { getSupabaseServiceRole } from "~/lib/supabase";-import { deactivateUser, resendInvite } from "~/modules/users";+import { deactivateUser, resendInvite } from "~/modules/users/users.server";export enum UserAdminQueueType {Resend = "resend",diff --git a/apps/carbon/app/queues/user-permissions.queue.server.ts b/apps/carbon/app/queues/user-permissions.queue.server.tsindex 49909078c7..46413e16bb 100644--- a/apps/carbon/app/queues/user-permissions.queue.server.ts+++ b/apps/carbon/app/queues/user-permissions.queue.server.ts@@ -1,7 +1,7 @@import { Queue } from "~/lib/bullmq";import { getSupabaseServiceRole } from "~/lib/supabase";import type { Permission } from "~/modules/users";-import { updatePermissions } from "~/modules/users";+import { updatePermissions } from "~/modules/users/users.server";export type UserPermissionsQueueData = {id: string;diff --git a/apps/carbon/app/routes/_public+/callback.tsx b/apps/carbon/app/routes/_public+/callback.tsxindex a0641ff937..fecefc5e68 100644--- a/apps/carbon/app/routes/_public+/callback.tsx+++ b/apps/carbon/app/routes/_public+/callback.tsx@@ -4,7 +4,7 @@ import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { useFetcher } from "@remix-run/react";import { getSupabase } from "~/lib/supabase";-import { getUserByEmail } from "~/modules/users";+import { getUserByEmail } from "~/modules/users/users.server";import { refreshAccessToken } from "~/services/auth";import { callbackValidator } from "~/services/auth/auth.form";import {diff --git a/apps/carbon/app/routes/_public+/forgot-password.tsx b/apps/carbon/app/routes/_public+/forgot-password.tsxindex 8ff22ed591..02fab1df84 100644--- a/apps/carbon/app/routes/_public+/forgot-password.tsx+++ b/apps/carbon/app/routes/_public+/forgot-password.tsx@@ -20,7 +20,7 @@ import { useActionData } from "@remix-run/react";import { ValidatedForm, validationError } from "remix-validated-form";import { Input, Submit } from "~/components/Form";-import { getUserByEmail } from "~/modules/users";+import { getUserByEmail } from "~/modules/users/users.server";import { forgotPasswordValidator, sendMagicLink } from "~/services/auth";import { getAuthSession } from "~/services/session";import type { FormActionData, Result } from "~/types";diff --git a/apps/carbon/app/routes/_public+/reset-password.tsx b/apps/carbon/app/routes/_public+/reset-password.tsxindex 250e0c831b..a58926f8cf 100644--- a/apps/carbon/app/routes/_public+/reset-password.tsx+++ b/apps/carbon/app/routes/_public+/reset-password.tsx@@ -13,7 +13,7 @@ import { json, redirect } from "@remix-run/node";import { useNavigate } from "@remix-run/react";import { ValidatedForm, validationError } from "remix-validated-form";import { Password, Submit } from "~/components/Form";-import { resetPassword } from "~/modules/users";+import { resetPassword } from "~/modules/users/users.server";import { resetPasswordValidator } from "~/services/auth";import { flash, requireAuthSession } from "~/services/session";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/api+/accounting.accounts.tsx b/apps/carbon/app/routes/api+/accounting.accounts.tssimilarity index 100%rename from apps/carbon/app/routes/api+/accounting.accounts.tsxrename to apps/carbon/app/routes/api+/accounting.accounts.tsdiff --git a/apps/carbon/app/routes/api+/accounting.categories.tsx b/apps/carbon/app/routes/api+/accounting.categories.tssimilarity index 100%rename from apps/carbon/app/routes/api+/accounting.categories.tsxrename to apps/carbon/app/routes/api+/accounting.categories.tsdiff --git a/apps/carbon/app/routes/api+/accounting.currencies.tsx b/apps/carbon/app/routes/api+/accounting.currencies.tssimilarity index 100%rename from apps/carbon/app/routes/api+/accounting.currencies.tsxrename to apps/carbon/app/routes/api+/accounting.currencies.tsdiff --git a/apps/carbon/app/routes/api+/accounting.subcategories.tsx b/apps/carbon/app/routes/api+/accounting.subcategories.tssimilarity index 100%rename from apps/carbon/app/routes/api+/accounting.subcategories.tsxrename to apps/carbon/app/routes/api+/accounting.subcategories.tsdiff --git a/apps/carbon/app/routes/api+/parts.list.tsx b/apps/carbon/app/routes/api+/parts.list.tssimilarity index 100%rename from apps/carbon/app/routes/api+/parts.list.tsxrename to apps/carbon/app/routes/api+/parts.list.tsdiff --git a/apps/carbon/app/routes/api+/parts.shelf.tsx b/apps/carbon/app/routes/api+/parts.shelf.tssimilarity index 100%rename from apps/carbon/app/routes/api+/parts.shelf.tsxrename to apps/carbon/app/routes/api+/parts.shelf.tsdiff --git a/apps/carbon/app/routes/api+/parts.uom.tsx b/apps/carbon/app/routes/api+/parts.uom.tssimilarity index 100%rename from apps/carbon/app/routes/api+/parts.uom.tsxrename to apps/carbon/app/routes/api+/parts.uom.tsdiff --git a/apps/carbon/app/routes/api+/purchasing.supplier-contacts.tsx b/apps/carbon/app/routes/api+/purchasing.supplier-contacts.tssimilarity index 100%rename from apps/carbon/app/routes/api+/purchasing.supplier-contacts.tsxrename to apps/carbon/app/routes/api+/purchasing.supplier-contacts.tsdiff --git a/apps/carbon/app/routes/api+/purchasing.supplier-locations.tsx b/apps/carbon/app/routes/api+/purchasing.supplier-locations.tssimilarity index 100%rename from apps/carbon/app/routes/api+/purchasing.supplier-locations.tsxrename to apps/carbon/app/routes/api+/purchasing.supplier-locations.tsdiff --git a/apps/carbon/app/routes/api+/purchasing.suppliers.tsx b/apps/carbon/app/routes/api+/purchasing.suppliers.tssimilarity index 100%rename from apps/carbon/app/routes/api+/purchasing.suppliers.tsxrename to apps/carbon/app/routes/api+/purchasing.suppliers.tsdiff --git a/apps/carbon/app/routes/api+/resources.abilities.tsx b/apps/carbon/app/routes/api+/resources.abilities.tssimilarity index 100%rename from apps/carbon/app/routes/api+/resources.abilities.tsxrename to apps/carbon/app/routes/api+/resources.abilities.tsdiff --git a/apps/carbon/app/routes/api+/resources.departments.tsx b/apps/carbon/app/routes/api+/resources.departments.tssimilarity index 100%rename from apps/carbon/app/routes/api+/resources.departments.tsxrename to apps/carbon/app/routes/api+/resources.departments.tsdiff --git a/apps/carbon/app/routes/api+/resources.locations.tsx b/apps/carbon/app/routes/api+/resources.locations.tssimilarity index 100%rename from apps/carbon/app/routes/api+/resources.locations.tsxrename to apps/carbon/app/routes/api+/resources.locations.tsdiff --git a/apps/carbon/app/routes/api+/resources.shifts.tsx b/apps/carbon/app/routes/api+/resources.shifts.tssimilarity index 100%rename from apps/carbon/app/routes/api+/resources.shifts.tsxrename to apps/carbon/app/routes/api+/resources.shifts.tsdiff --git a/apps/carbon/app/routes/api+/resources.work-cells.tsx b/apps/carbon/app/routes/api+/resources.work-cells.tssimilarity index 100%rename from apps/carbon/app/routes/api+/resources.work-cells.tsxrename to apps/carbon/app/routes/api+/resources.work-cells.tsdiff --git a/apps/carbon/app/routes/api+/sales.customer-contacts.tsx b/apps/carbon/app/routes/api+/sales.customer-contacts.tssimilarity index 100%rename from apps/carbon/app/routes/api+/sales.customer-contacts.tsxrename to apps/carbon/app/routes/api+/sales.customer-contacts.tsdiff --git a/apps/carbon/app/routes/api+/sales.customer-locations.tsx b/apps/carbon/app/routes/api+/sales.customer-locations.tssimilarity index 100%rename from apps/carbon/app/routes/api+/sales.customer-locations.tsxrename to apps/carbon/app/routes/api+/sales.customer-locations.tsdiff --git a/apps/carbon/app/routes/api+/sales.customers.tsx b/apps/carbon/app/routes/api+/sales.customers.tssimilarity index 100%rename from apps/carbon/app/routes/api+/sales.customers.tsxrename to apps/carbon/app/routes/api+/sales.customers.tsdiff --git a/apps/carbon/app/routes/api+/settings.sequence.next.tsx b/apps/carbon/app/routes/api+/settings.sequence.next.tssimilarity index 100%rename from apps/carbon/app/routes/api+/settings.sequence.next.tsxrename to apps/carbon/app/routes/api+/settings.sequence.next.tsdiff --git a/apps/carbon/app/routes/api+/settings.sequence.rollback.tsx b/apps/carbon/app/routes/api+/settings.sequence.rollback.tssimilarity index 100%rename from apps/carbon/app/routes/api+/settings.sequence.rollback.tsxrename to apps/carbon/app/routes/api+/settings.sequence.rollback.tsdiff --git a/apps/carbon/app/routes/api+/settings.sequences.ts b/apps/carbon/app/routes/api+/settings.sequences.tsnew file mode 100644index 0000000000..1d880b0aea--- /dev/null+++ b/apps/carbon/app/routes/api+/settings.sequences.ts@@ -0,0 +1,20 @@+import type { LoaderFunctionArgs } from "@remix-run/node";+import { json } from "@remix-run/node";+import { getSequencesList } from "~/modules/settings";+import { requirePermissions } from "~/services/auth";++export async function loader({ request }: LoaderFunctionArgs) {+ const authorized = await requirePermissions(request, {});++ const url = new URL(request.url);+ const table = url.searchParams.get("table");++ if (!table) {+ return json({+ data: [],+ error: null,+ });+ }++ return json(await getSequencesList(authorized.client, table));+}diff --git a/apps/carbon/app/routes/api+/users.employee-types.tsx b/apps/carbon/app/routes/api+/users.employee-types.tssimilarity index 100%rename from apps/carbon/app/routes/api+/users.employee-types.tsxrename to apps/carbon/app/routes/api+/users.employee-types.tsdiff --git a/apps/carbon/app/routes/api+/users.empty-permissions.tsx b/apps/carbon/app/routes/api+/users.empty-permissions.tssimilarity index 85%rename from apps/carbon/app/routes/api+/users.empty-permissions.tsxrename to apps/carbon/app/routes/api+/users.empty-permissions.tsindex 3351eaee4f..ddaca84bf0 100644--- a/apps/carbon/app/routes/api+/users.empty-permissions.tsx+++ b/apps/carbon/app/routes/api+/users.empty-permissions.ts@@ -1,6 +1,7 @@import type { LoaderFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";-import { getFeatures, makeEmptyPermissionsFromFeatures } from "~/modules/users";+import { getFeatures } from "~/modules/users";+import { makeEmptyPermissionsFromFeatures } from "~/modules/users/users.server";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session";import { error } from "~/utils/result";diff --git a/apps/carbon/app/routes/x+/_layout.tsx b/apps/carbon/app/routes/x+/_layout.tsxindex f266e044a3..6169b80863 100644--- a/apps/carbon/app/routes/x+/_layout.tsx+++ b/apps/carbon/app/routes/x+/_layout.tsx@@ -7,14 +7,14 @@ import { Outlet, useLoaderData, useNavigation } from "@remix-run/react";import NProgress from "nprogress";import { useEffect } from "react";import { IconSidebar, Topbar } from "~/components/Layout";-import { getSupabase, SupabaseProvider } from "~/lib/supabase";+import { SupabaseProvider, getSupabase } from "~/lib/supabase";import { RealtimeDataProvider } from "~/modules/shared";import {getUser,getUserClaims,getUserDefaults,getUserGroups,-} from "~/modules/users";+} from "~/modules/users/users.server";import {destroyAuthSession,getSessionFlash,@@ -32,7 +32,7 @@ export async function loader({ request }: LoaderFunctionArgs) {const [sessionFlash, user, claims, groups, defaults] = await Promise.all([getSessionFlash(request),getUser(client, userId),- getUserClaims(request, client),+ getUserClaims(request),getUserGroups(client, userId),getUserDefaults(client, userId),]);diff --git a/apps/carbon/app/routes/x+/account+/$userId.attribute.tsx b/apps/carbon/app/routes/x+/account+/$userId.attribute.tsxindex 2e392704c9..fa3ebf806d 100644--- a/apps/carbon/app/routes/x+/account+/$userId.attribute.tsx+++ b/apps/carbon/app/routes/x+/account+/$userId.attribute.tsx@@ -9,7 +9,7 @@ import {upsertUserAttributeValue,} from "~/modules/account";import { getAttribute } from "~/modules/resources";-import { getUserClaims } from "~/modules/users";+import { getUserClaims } from "~/modules/users/users.server";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session";import { assertIsPost } from "~/utils/http";@@ -30,7 +30,7 @@ export async function action({ request, params }: ActionFunctionArgs) {const attributeId = formData.get("userAttributeId") as string;if (!attributeId) throw new Error("No attribute id provided");- const clientClaims = await getUserClaims(request, client);+ const clientClaims = await getUserClaims(request);const canUpdateAnyUser = clientClaims.permissions["users"]?.update === true;if (!canUpdateAnyUser && userId !== targetUserId) {diff --git a/apps/carbon/app/routes/x+/account+/$userId.delete.attribute.tsx b/apps/carbon/app/routes/x+/account+/$userId.delete.attribute.tsxindex d550d17a35..af394637a7 100644--- a/apps/carbon/app/routes/x+/account+/$userId.delete.attribute.tsx+++ b/apps/carbon/app/routes/x+/account+/$userId.delete.attribute.tsx@@ -2,7 +2,7 @@ import type { ActionFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { deleteUserAttributeValue } from "~/modules/account";import { getAttribute } from "~/modules/resources";-import { getUserClaims } from "~/modules/users";+import { getUserClaims } from "~/modules/users/users.server";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session";import { assertIsPost } from "~/utils/http";@@ -26,7 +26,7 @@ export async function action({ request, params }: ActionFunctionArgs) {const userAttributeValueId = formData.get("userAttributeValueId") as string;if (!userAttributeValueId) throw new Error("No attribute value id provided");- const clientClaims = await getUserClaims(request, client);+ const clientClaims = await getUserClaims(request);const canUpdateAnyUser =clientClaims.permissions["resources"]?.update === true;diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.contacts.new.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.contacts.new.tsxindex ba89a46b8d..54e8143496 100644--- a/apps/carbon/app/routes/x+/customer+/$customerId.contacts.new.tsx+++ b/apps/carbon/app/routes/x+/customer+/$customerId.contacts.new.tsx@@ -1,6 +1,7 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { validationError } from "remix-validated-form";+import { getSupabaseServiceRole } from "~/lib/supabase";import {CustomerContactForm,customerContactValidator,@@ -14,10 +15,13 @@ import { error, success } from "~/utils/result";export async function action({ request, params }: ActionFunctionArgs) {assertIsPost(request);- const { client } = await requirePermissions(request, {+ await requirePermissions(request, {create: "sales",});+ // RLS doesn't work for selecting a contact with no customer+ const client = getSupabaseServiceRole();+const { customerId } = params;if (!customerId) throw notFound("customerId not found");diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.index.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.index.tsxindex d3ebc07251..c131655ab2 100644--- a/apps/carbon/app/routes/x+/customer+/$customerId.index.tsx+++ b/apps/carbon/app/routes/x+/customer+/$customerId.index.tsx@@ -67,13 +67,6 @@ export default function CustomerEditRoute() {customerStatusId: routeData?.customer?.customerStatusId ?? undefined,accountManagerId: routeData?.customer?.accountManagerId ?? undefined,taxId: routeData?.customer?.taxId ?? "",- defaultCurrencyCode: routeData?.customer?.defaultCurrencyCode ?? "",- defaultPaymentTermId:- routeData?.customer?.defaultPaymentTermId ?? undefined,- defaultShippingMethodId:- routeData?.customer?.defaultShippingMethodId ?? undefined,- defaultShippingTermId:- routeData?.customer?.defaultShippingTermId ?? undefined,};return <CustomerForm initialValues={initialValues} />;diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.payments.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.payments.tsxnew file mode 100644index 0000000000..1046a528db--- /dev/null+++ b/apps/carbon/app/routes/x+/customer+/$customerId.payments.tsx@@ -0,0 +1,93 @@+import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";+import { json, redirect } from "@remix-run/node";+import { useLoaderData } from "@remix-run/react";+import { validationError } from "remix-validated-form";+import {+ CustomerPaymentForm,+ customerPaymentValidator,+ getCustomerPayment,+ updateCustomerPayment,+} from "~/modules/sales";+import { requirePermissions } from "~/services/auth";+import { flash } from "~/services/session";+import { assertIsPost } from "~/utils/http";+import { path } from "~/utils/path";+import { error, success } from "~/utils/result";++export async function loader({ request, params }: LoaderFunctionArgs) {+ const { client } = await requirePermissions(request, {+ view: "sales",+ });++ const { customerId } = params;+ if (!customerId) throw new Error("Could not find customerId");++ const customerPayment = await getCustomerPayment(client, customerId);++ if (customerPayment.error || !customerPayment.data) {+ return redirect(+ path.to.customer(customerId),+ await flash(+ request,+ error(customerPayment.error, "Failed to load customer payment")+ )+ );+ }++ return json({+ customerPayment: customerPayment.data,+ });+}++export async function action({ request, params }: ActionFunctionArgs) {+ assertIsPost(request);+ const { client, userId } = await requirePermissions(request, {+ update: "sales",+ });++ const { customerId } = params;+ if (!customerId) throw new Error("Could not find customerId");++ // validate with salesValidator+ const validation = await customerPaymentValidator.validate(+ await request.formData()+ );++ if (validation.error) {+ return validationError(validation.error);+ }++ const update = await updateCustomerPayment(client, {+ ...validation.data,+ customerId,+ updatedBy: userId,+ });+ if (update.error) {+ return redirect(+ path.to.customer(customerId),+ await flash(+ request,+ error(update.error, "Failed to update customer payment")+ )+ );+ }++ return redirect(+ path.to.customerPayment(customerId),+ await flash(request, success("Updated customer payment"))+ );+}++export default function CustomerPaymentRoute() {+ const { customerPayment } = useLoaderData<typeof loader>();+ const initialValues = {+ customerId: customerPayment?.customerId ?? "",+ invoiceCustomerId: customerPayment?.invoiceCustomerId ?? "",+ invoiceCustomerContactId: customerPayment?.invoiceCustomerContactId ?? "",+ invoiceCustomerLocationId: customerPayment?.invoiceCustomerLocationId ?? "",+ paymentTermId: customerPayment?.paymentTermId ?? "",+ currencyCode: customerPayment?.currencyCode ?? "",+ };++ return <CustomerPaymentForm initialValues={initialValues} />;+}diff --git a/apps/carbon/app/routes/x+/customer+/$customerId.shipping.tsx b/apps/carbon/app/routes/x+/customer+/$customerId.shipping.tsxnew file mode 100644index 0000000000..b5d566d4f2--- /dev/null+++ b/apps/carbon/app/routes/x+/customer+/$customerId.shipping.tsx@@ -0,0 +1,95 @@+import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";+import { json, redirect } from "@remix-run/node";+import { useLoaderData } from "@remix-run/react";+import { validationError } from "remix-validated-form";+import {+ CustomerShippingForm,+ customerShippingValidator,+ getCustomerShipping,+ updateCustomerShipping,+} from "~/modules/sales";+import { requirePermissions } from "~/services/auth";+import { flash } from "~/services/session";+import { assertIsPost } from "~/utils/http";+import { path } from "~/utils/path";+import { error, success } from "~/utils/result";++export async function loader({ request, params }: LoaderFunctionArgs) {+ const { client } = await requirePermissions(request, {+ view: "sales",+ });++ const { customerId } = params;+ if (!customerId) throw new Error("Could not find customerId");++ const customerShipping = await getCustomerShipping(client, customerId);++ if (customerShipping.error || !customerShipping.data) {+ return redirect(+ path.to.customer(customerId),+ await flash(+ request,+ error(customerShipping.error, "Failed to load customer shipping")+ )+ );+ }++ return json({+ customerShipping: customerShipping.data,+ });+}++export async function action({ request, params }: ActionFunctionArgs) {+ assertIsPost(request);+ const { client, userId } = await requirePermissions(request, {+ update: "sales",+ });++ const { customerId } = params;+ if (!customerId) throw new Error("Could not find customerId");++ // validate with salesValidator+ const validation = await customerShippingValidator.validate(+ await request.formData()+ );++ if (validation.error) {+ return validationError(validation.error);+ }++ const update = await updateCustomerShipping(client, {+ ...validation.data,+ customerId,+ updatedBy: userId,+ });+ if (update.error) {+ return redirect(+ path.to.customer(customerId),+ await flash(+ request,+ error(update.error, "Failed to update customer shipping")+ )+ );+ }++ return redirect(+ path.to.customerShipping(customerId),+ await flash(request, success("Updated customer shipping"))+ );+}++export default function CustomerShippingRoute() {+ const { customerShipping } = useLoaderData<typeof loader>();+ const initialValues = {+ customerId: customerShipping?.customerId ?? "",+ shippingCustomerId: customerShipping?.shippingCustomerId ?? "",+ shippingCustomerContactId:+ customerShipping?.shippingCustomerContactId ?? "",+ shippingCustomerLocationId:+ customerShipping?.shippingCustomerLocationId ?? "",+ shippingMethodId: customerShipping?.shippingMethodId ?? "",+ shippingTermId: customerShipping?.shippingTermId ?? "",+ };++ return <CustomerShippingForm initialValues={initialValues} />;+}diff --git a/apps/carbon/app/routes/x+/inventory+/receipts.$receiptId.tsx b/apps/carbon/app/routes/x+/inventory+/receipts.$receiptId.tsxindex 599db3fd4b..9c79c7e6e8 100644--- a/apps/carbon/app/routes/x+/inventory+/receipts.$receiptId.tsx+++ b/apps/carbon/app/routes/x+/inventory+/receipts.$receiptId.tsx@@ -3,9 +3,9 @@ import { json, redirect } from "@remix-run/node";import { useLoaderData } from "@remix-run/react";import { validationError } from "remix-validated-form";import {+ ReceiptForm,getReceipt,getReceiptLines,- ReceiptForm,receiptValidator,upsertReceipt,} from "~/modules/inventory";diff --git a/apps/carbon/app/routes/x+/inventory+/receipts.new.tsx b/apps/carbon/app/routes/x+/inventory+/receipts.new.tsxindex 873e16486e..edeab044ca 100644--- a/apps/carbon/app/routes/x+/inventory+/receipts.new.tsx+++ b/apps/carbon/app/routes/x+/inventory+/receipts.new.tsx@@ -5,7 +5,7 @@ import type { ReceiptSourceDocument } from "~/modules/inventory";import { upsertReceipt } from "~/modules/inventory";import { getPurchaseOrder } from "~/modules/purchasing";import { getNextSequence, rollbackNextSequence } from "~/modules/settings";-import { getUserDefaults } from "~/modules/users";+import { getUserDefaults } from "~/modules/users/users.server";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session";import { path } from "~/utils/path";diff --git a/apps/carbon/app/routes/x+/part+/$partId.inventory.tsx b/apps/carbon/app/routes/x+/part+/$partId.inventory.tsxindex 0a246fcecf..703500d249 100644--- a/apps/carbon/app/routes/x+/part+/$partId.inventory.tsx+++ b/apps/carbon/app/routes/x+/part+/$partId.inventory.tsx@@ -4,16 +4,16 @@ import { useLoaderData } from "@remix-run/react";import { validationError } from "remix-validated-form";import { useRouteData } from "~/hooks";import {+ PartInventoryForm,getPartInventory,getPartQuantities,getShelvesList,insertShelf,- PartInventoryForm,partInventoryValidator,upsertPartInventory,} from "~/modules/parts";import { getLocationsList } from "~/modules/resources";-import { getUserDefaults } from "~/modules/users";+import { getUserDefaults } from "~/modules/users/users.server";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session";import type { ListItem } from "~/types";diff --git a/apps/carbon/app/routes/x+/part+/$partId.planning.tsx b/apps/carbon/app/routes/x+/part+/$partId.planning.tsxindex 9a1f1bfc1f..c30c6dc291 100644--- a/apps/carbon/app/routes/x+/part+/$partId.planning.tsx+++ b/apps/carbon/app/routes/x+/part+/$partId.planning.tsx@@ -5,13 +5,13 @@ import { validationError } from "remix-validated-form";import { useRouteData } from "~/hooks";import type { PartReorderingPolicy } from "~/modules/parts";import {- getPartPlanning,PartPlanningForm,+ getPartPlanning,partPlanningValidator,upsertPartPlanning,} from "~/modules/parts";import { getLocationsList } from "~/modules/resources";-import { getUserDefaults } from "~/modules/users";+import { getUserDefaults } from "~/modules/users/users.server";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session";import type { ListItem } from "~/types";diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.details.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.details.tsxindex 21a0a1b603..baac392a8b 100644--- a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.details.tsx+++ b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.details.tsx@@ -7,12 +7,13 @@ import { useRouteData } from "~/hooks";import type { PurchaseInvoice } from "~/modules/invoicing";import {PurchaseInvoiceForm,- // PurchaseInvoiceLines,+ PurchaseInvoiceLines,purchaseInvoiceValidator,upsertPurchaseInvoice,} from "~/modules/invoicing";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session";+import type { ListItem } from "~/types";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";import { error, success } from "~/utils/result";@@ -26,7 +27,6 @@ export async function action({ request, params }: ActionFunctionArgs) {const { invoiceId: id } = params;if (!id) throw new Error("Could not find invoiceId");- // validate with invoicingValidatorconst validation = await purchaseInvoiceValidator.validate(await request.formData());@@ -46,7 +46,7 @@ export async function action({ request, params }: ActionFunctionArgs) {});if (updatePurchaseInvoice.error) {return redirect(- path.to.purchaseInvoice(invoiceId),+ path.to.purchaseInvoice(id),await flash(request,error(updatePurchaseInvoice.error, "Failed to update purchase invoice")@@ -55,7 +55,7 @@ export async function action({ request, params }: ActionFunctionArgs) {}return redirect(- path.to.purchaseInvoice(invoiceId),+ path.to.purchaseInvoice(id),await flash(request, success("Updated purchase invoice")));}@@ -63,6 +63,9 @@ export async function action({ request, params }: ActionFunctionArgs) {export default function PurchaseInvoiceBasicRoute() {const { invoiceId } = useParams();if (!invoiceId) throw new Error("Could not find invoiceId");+ const sharedData = useRouteData<{ paymentTerms: ListItem[] }>(+ path.to.purchaseInvoiceRoot+ );const invoiceData = useRouteData<{ purchaseInvoice: PurchaseInvoice }>(path.to.purchaseInvoice(invoiceId));@@ -72,8 +75,15 @@ export default function PurchaseInvoiceBasicRoute() {id: invoiceData?.purchaseInvoice?.id ?? "",invoiceId: invoiceData?.purchaseInvoice?.invoiceId ?? "",supplierId: invoiceData?.purchaseInvoice?.supplierId ?? "",- supplierContactId: invoiceData?.purchaseInvoice?.supplierContactId ?? "",supplierReference: invoiceData?.purchaseInvoice?.supplierReference ?? "",+ invoiceSupplierId: invoiceData?.purchaseInvoice?.invoiceSupplierId ?? "",+ invoiceSupplierContactId:+ invoiceData?.purchaseInvoice?.invoiceSupplierContactId ?? "",+ invoiceSupplierLocationId:+ invoiceData?.purchaseInvoice.invoiceSupplierLocationId ?? "",+ paymentTermId: invoiceData?.purchaseInvoice?.paymentTermId ?? "",+ currencyCode: invoiceData?.purchaseInvoice?.currencyCode ?? "",+ dateIssued: invoiceData?.purchaseInvoice?.dateIssued ?? "",dateDue: invoiceData?.purchaseInvoice?.dateDue ?? "",status: invoiceData?.purchaseInvoice?.status ?? ("Draft" as "Draft"),};@@ -81,8 +91,11 @@ export default function PurchaseInvoiceBasicRoute() {return (<><Flex w="full" rowGap={4} flexDirection="column">- <PurchaseInvoiceForm initialValues={initialValues} />- {/* <PurchaseInvoiceLines /> */}+ <PurchaseInvoiceForm+ initialValues={initialValues}+ paymentTerms={sharedData?.paymentTerms ?? []}+ />+ <PurchaseInvoiceLines /><Outlet /></Flex></>diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.tsxindex 263ee862c6..d70f854d7a 100644--- a/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.tsx+++ b/apps/carbon/app/routes/x+/purchase-invoice+/$invoiceId.tsx@@ -1,12 +1,14 @@import { Grid } from "@chakra-ui/react";import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";-import { Outlet } from "@remix-run/react";+import { Outlet, useLoaderData } from "@remix-run/react";+import { useEffect } from "react";import {PurchaseInvoiceHeader,PurchaseInvoiceSidebar,getPurchaseInvoice,getPurchaseInvoiceLines,+ usePurchaseInvoiceTotals,} from "~/modules/invoicing";import { getLocationsList } from "~/modules/resources";import { requirePermissions } from "~/services/auth";@@ -45,9 +47,9 @@ export async function loader({ request, params }: LoaderFunctionArgs) {}return json({+ locations: locations.data ?? [],purchaseInvoice: purchaseInvoice.data,purchaseInvoiceLines: purchaseInvoiceLines.data ?? [],- locations: locations.data ?? [],});}@@ -56,6 +58,21 @@ export async function action({ request }: ActionFunctionArgs) {}export default function PurchaseInvoiceRoute() {+ const { purchaseInvoiceLines } = useLoaderData<typeof loader>();+ const [, setPurchaseInvoiceTotals] = usePurchaseInvoiceTotals();++ useEffect(() => {+ console.log({ purchaseInvoiceLines });+ const totals = purchaseInvoiceLines.reduce(+ (acc, line) => {+ acc.total += line?.totalAmount ?? 0;++ return acc;+ },+ { total: 0 }+ );+ setPurchaseInvoiceTotals(totals);+ }, [purchaseInvoiceLines, setPurchaseInvoiceTotals]);return (<><PurchaseInvoiceHeader />diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/_layout.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/_layout.tsxindex 75e150548f..f7c6e601b3 100644--- a/apps/carbon/app/routes/x+/purchase-invoice+/_layout.tsx+++ b/apps/carbon/app/routes/x+/purchase-invoice+/_layout.tsx@@ -1,6 +1,8 @@import { VStack } from "@chakra-ui/react";-import type { MetaFunction } from "@remix-run/node";+import type { LoaderFunctionArgs, MetaFunction } from "@remix-run/node";import { Outlet } from "@remix-run/react";+import { getPaymentTermsList } from "~/modules/accounting";+import { requirePermissions } from "~/services/auth";import type { Handle } from "~/utils/handle";import { path } from "~/utils/path";@@ -14,6 +16,17 @@ export const handle: Handle = {module: "invoicing",};+export async function loader({ request }: LoaderFunctionArgs) {+ const { client } = await requirePermissions(request, {+ view: "invoicing",+ });+ const [paymentTerms] = await Promise.all([getPaymentTermsList(client)]);++ return {+ paymentTerms: paymentTerms.data ?? [],+ };+}+export default function PurchaseInvoiceRoute() {return (<VStack w="full" h="full" spacing={4} p={4}>diff --git a/apps/carbon/app/routes/x+/purchase-invoice+/new.tsx b/apps/carbon/app/routes/x+/purchase-invoice+/new.tsxindex 38724abbd0..0bb2e0115f 100644--- a/apps/carbon/app/routes/x+/purchase-invoice+/new.tsx+++ b/apps/carbon/app/routes/x+/purchase-invoice+/new.tsx@@ -1,21 +1,81 @@import { Box } from "@chakra-ui/react";-import type { ActionFunctionArgs } from "@remix-run/node";+import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";+import type { FunctionsResponse } from "@supabase/functions-js";import { validationError } from "remix-validated-form";-import { useUrlParams } from "~/hooks";+import { useRouteData, useUrlParams } from "~/hooks";import type { PurchaseInvoiceStatus } from "~/modules/invoicing";import {PurchaseInvoiceForm,purchaseInvoiceValidator,upsertPurchaseInvoice,} from "~/modules/invoicing";+import {+ createPurchaseInvoiceFromPurchaseOrder,+ createPurchaseInvoiceFromReceipt,+} from "~/modules/invoicing/invoicing.server";import { getNextSequence, rollbackNextSequence } from "~/modules/settings";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session";+import type { ListItem } from "~/types";import { assertIsPost } from "~/utils/http";import { path } from "~/utils/path";import { error } from "~/utils/result";+export async function loader({ request }: LoaderFunctionArgs) {+ // we don't use the client here -- if they have this permission, we'll upgrade to a service role if needed+ const { userId } = await requirePermissions(request, {+ create: "invoicing",+ });++ const url = new URL(request.url);+ const sourceDocument = url.searchParams.get("sourceDocument") ?? undefined;+ const sourceDocumentId = url.searchParams.get("sourceDocumentId") ?? "";++ let result: FunctionsResponse<{ id: string }>;++ switch (sourceDocument) {+ case "Purchase Order":+ if (!sourceDocumentId) throw new Error("Missing sourceDocumentId");+ result = await createPurchaseInvoiceFromPurchaseOrder(+ sourceDocumentId,+ userId+ );++ if (result.error || !result?.data) {+ return redirect(+ request.headers.get("Referer") ?? path.to.purchaseOrders,+ await flash(+ request,+ error(result.error, "Failed to create purchase invoice")+ )+ );+ }++ return redirect(path.to.purchaseInvoice(result.data?.id!));++ case "Receipt":+ if (!sourceDocumentId) throw new Error("Missing sourceDocumentId");++ result = await createPurchaseInvoiceFromReceipt(sourceDocumentId, userId);++ if (result.error || !result?.data) {+ return redirect(+ request.headers.get("Referer") ?? path.to.receipts,+ await flash(+ request,+ error(result.error, "Failed to create purchase invoice")+ )+ );+ }++ return redirect(path.to.purchaseInvoice(result.data?.id!));++ default:+ return null;+ }+}+export async function action({ request }: ActionFunctionArgs) {assertIsPost(request);const { client, userId } = await requirePermissions(request, {@@ -50,7 +110,6 @@ export async function action({ request }: ActionFunctionArgs) {});if (createPurchaseInvoice.error || !createPurchaseInvoice.data?.[0]) {- // TODO: this should be done as a transactionawait rollbackNextSequence(client, "purchaseInvoice", userId);return redirect(path.to.purchaseInvoices,@@ -69,6 +128,11 @@ export async function action({ request }: ActionFunctionArgs) {export default function PurchaseInvoiceNewRoute() {const [params] = useUrlParams();const supplierId = params.get("supplierId");++ const sharedData = useRouteData<{ paymentTerms: ListItem[] }>(+ path.to.purchaseInvoiceRoot+ );+const initialValues = {id: undefined,invoiceId: undefined,@@ -81,6 +145,7 @@ export default function PurchaseInvoiceNewRoute() {<PurchaseInvoiceForm// @ts-expect-errorinitialValues={initialValues}+ paymentTerms={sharedData?.paymentTerms ?? []}/></Box>);diff --git a/apps/carbon/app/routes/x+/purchase-order+/$orderId.payment.tsx b/apps/carbon/app/routes/x+/purchase-order+/$orderId.payment.tsxindex 9e211aa93a..108d6899e6 100644--- a/apps/carbon/app/routes/x+/purchase-order+/$orderId.payment.tsx+++ b/apps/carbon/app/routes/x+/purchase-order+/$orderId.payment.tsx@@ -4,8 +4,8 @@ import { useLoaderData } from "@remix-run/react";import { validationError } from "remix-validated-form";import { getPaymentTermsList } from "~/modules/accounting";import {- getPurchaseOrderPayment,PurchaseOrderPaymentForm,+ getPurchaseOrderPayment,purchaseOrderPaymentValidator,upsertPurchaseOrderPayment,} from "~/modules/purchasing";diff --git a/apps/carbon/app/routes/x+/purchase-order+/$orderId.tsx b/apps/carbon/app/routes/x+/purchase-order+/$orderId.tsxindex 6f61cd10e0..488dba7378 100644--- a/apps/carbon/app/routes/x+/purchase-order+/$orderId.tsx+++ b/apps/carbon/app/routes/x+/purchase-order+/$orderId.tsx@@ -1,7 +1,8 @@import { Grid } from "@chakra-ui/react";import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";-import { Outlet } from "@remix-run/react";+import { Outlet, useLoaderData } from "@remix-run/react";+import { useEffect } from "react";import {PurchaseOrderHeader,PurchaseOrderSidebar,@@ -9,6 +10,7 @@ import {getInternalDocuments,getPurchaseOrder,getPurchaseOrderLines,+ usePurchaseOrderTotals,} from "~/modules/purchasing";import { getLocationsList } from "~/modules/resources";import { requirePermissions } from "~/services/auth";@@ -68,6 +70,21 @@ export async function action({ request }: ActionFunctionArgs) {}export default function PurchaseOrderRoute() {+ const { purchaseOrderLines } = useLoaderData<typeof loader>();+ const [, setPurchaseOrderTotals] = usePurchaseOrderTotals();++ useEffect(() => {+ const totals = purchaseOrderLines.reduce(+ (acc, line) => {+ acc.total += (line.purchaseQuantity ?? 0) * (line.unitPrice ?? 0);++ return acc;+ },+ { total: 0 }+ );+ setPurchaseOrderTotals(totals);+ }, [purchaseOrderLines, setPurchaseOrderTotals]);+return (<><PurchaseOrderHeader />diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.new.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.new.tsxindex e23653babd..3116af22e0 100644--- a/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.new.tsx+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.contacts.new.tsx@@ -1,9 +1,10 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { validationError } from "remix-validated-form";+import { getSupabaseServiceRole } from "~/lib/supabase";import {- insertSupplierContact,SupplierContactForm,+ insertSupplierContact,supplierContactValidator,} from "~/modules/purchasing";import { requirePermissions } from "~/services/auth";@@ -14,10 +15,13 @@ import { error, success } from "~/utils/result";export async function action({ request, params }: ActionFunctionArgs) {assertIsPost(request);- const { client } = await requirePermissions(request, {+ await requirePermissions(request, {create: "purchasing",});+ // RLS doesn't work for selecting a contact with no supplier+ const client = getSupabaseServiceRole();+const { supplierId } = params;if (!supplierId) throw notFound("supplierId not found");diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.index.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.index.tsxindex c04fd97b70..db30849d1c 100644--- a/apps/carbon/app/routes/x+/supplier+/$supplierId.index.tsx+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.index.tsx@@ -67,13 +67,6 @@ export default function SupplierEditRoute() {supplierStatusId: routeData?.supplier?.supplierStatusId ?? undefined,accountManagerId: routeData?.supplier?.accountManagerId ?? undefined,taxId: routeData?.supplier?.taxId ?? "",- defaultCurrencyCode: routeData?.supplier?.defaultCurrencyCode ?? "",- defaultPaymentTermId:- routeData?.supplier?.defaultPaymentTermId ?? undefined,- defaultShippingMethodId:- routeData?.supplier?.defaultShippingMethodId ?? undefined,- defaultShippingTermId:- routeData?.supplier?.defaultShippingTermId ?? undefined,};return <SupplierForm initialValues={initialValues} />;diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.payments.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.payments.tsxnew file mode 100644index 0000000000..36a7598968--- /dev/null+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.payments.tsx@@ -0,0 +1,93 @@+import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";+import { json, redirect } from "@remix-run/node";+import { useLoaderData } from "@remix-run/react";+import { validationError } from "remix-validated-form";+import {+ SupplierPaymentForm,+ getSupplierPayment,+ supplierPaymentValidator,+ updateSupplierPayment,+} from "~/modules/purchasing";+import { requirePermissions } from "~/services/auth";+import { flash } from "~/services/session";+import { assertIsPost } from "~/utils/http";+import { path } from "~/utils/path";+import { error, success } from "~/utils/result";++export async function loader({ request, params }: LoaderFunctionArgs) {+ const { client } = await requirePermissions(request, {+ view: "purchasing",+ });++ const { supplierId } = params;+ if (!supplierId) throw new Error("Could not find supplierId");++ const supplierPayment = await getSupplierPayment(client, supplierId);++ if (supplierPayment.error || !supplierPayment.data) {+ return redirect(+ path.to.supplier(supplierId),+ await flash(+ request,+ error(supplierPayment.error, "Failed to load supplier payment")+ )+ );+ }++ return json({+ supplierPayment: supplierPayment.data,+ });+}++export async function action({ request, params }: ActionFunctionArgs) {+ assertIsPost(request);+ const { client, userId } = await requirePermissions(request, {+ update: "purchasing",+ });++ const { supplierId } = params;+ if (!supplierId) throw new Error("Could not find supplierId");++ // validate with purchasingValidator+ const validation = await supplierPaymentValidator.validate(+ await request.formData()+ );++ if (validation.error) {+ return validationError(validation.error);+ }++ const update = await updateSupplierPayment(client, {+ ...validation.data,+ supplierId,+ updatedBy: userId,+ });+ if (update.error) {+ return redirect(+ path.to.supplier(supplierId),+ await flash(+ request,+ error(update.error, "Failed to update supplier payment")+ )+ );+ }++ return redirect(+ path.to.supplierPayment(supplierId),+ await flash(request, success("Updated supplier payment"))+ );+}++export default function SupplierPaymentRoute() {+ const { supplierPayment } = useLoaderData<typeof loader>();+ const initialValues = {+ supplierId: supplierPayment?.supplierId ?? "",+ invoiceSupplierId: supplierPayment?.invoiceSupplierId ?? "",+ invoiceSupplierContactId: supplierPayment?.invoiceSupplierContactId ?? "",+ invoiceSupplierLocationId: supplierPayment?.invoiceSupplierLocationId ?? "",+ paymentTermId: supplierPayment?.paymentTermId ?? "",+ currencyCode: supplierPayment?.currencyCode ?? "",+ };++ return <SupplierPaymentForm initialValues={initialValues} />;+}diff --git a/apps/carbon/app/routes/x+/supplier+/$supplierId.shipping.tsx b/apps/carbon/app/routes/x+/supplier+/$supplierId.shipping.tsxnew file mode 100644index 0000000000..4ee7d6541d--- /dev/null+++ b/apps/carbon/app/routes/x+/supplier+/$supplierId.shipping.tsx@@ -0,0 +1,95 @@+import type { ActionFunctionArgs, LoaderFunctionArgs } from "@remix-run/node";+import { json, redirect } from "@remix-run/node";+import { useLoaderData } from "@remix-run/react";+import { validationError } from "remix-validated-form";+import {+ SupplierShippingForm,+ getSupplierShipping,+ supplierShippingValidator,+ updateSupplierShipping,+} from "~/modules/purchasing";+import { requirePermissions } from "~/services/auth";+import { flash } from "~/services/session";+import { assertIsPost } from "~/utils/http";+import { path } from "~/utils/path";+import { error, success } from "~/utils/result";++export async function loader({ request, params }: LoaderFunctionArgs) {+ const { client } = await requirePermissions(request, {+ view: "purchasing",+ });++ const { supplierId } = params;+ if (!supplierId) throw new Error("Could not find supplierId");++ const supplierShipping = await getSupplierShipping(client, supplierId);++ if (supplierShipping.error || !supplierShipping.data) {+ return redirect(+ path.to.supplier(supplierId),+ await flash(+ request,+ error(supplierShipping.error, "Failed to load supplier shipping")+ )+ );+ }++ return json({+ supplierShipping: supplierShipping.data,+ });+}++export async function action({ request, params }: ActionFunctionArgs) {+ assertIsPost(request);+ const { client, userId } = await requirePermissions(request, {+ update: "purchasing",+ });++ const { supplierId } = params;+ if (!supplierId) throw new Error("Could not find supplierId");++ // validate with purchasingValidator+ const validation = await supplierShippingValidator.validate(+ await request.formData()+ );++ if (validation.error) {+ return validationError(validation.error);+ }++ const update = await updateSupplierShipping(client, {+ ...validation.data,+ supplierId,+ updatedBy: userId,+ });+ if (update.error) {+ return redirect(+ path.to.supplier(supplierId),+ await flash(+ request,+ error(update.error, "Failed to update supplier shipping")+ )+ );+ }++ return redirect(+ path.to.supplierShipping(supplierId),+ await flash(request, success("Updated supplier shipping"))+ );+}++export default function SupplierShippingRoute() {+ const { supplierShipping } = useLoaderData<typeof loader>();+ const initialValues = {+ supplierId: supplierShipping?.supplierId ?? "",+ shippingSupplierId: supplierShipping?.shippingSupplierId ?? "",+ shippingSupplierContactId:+ supplierShipping?.shippingSupplierContactId ?? "",+ shippingSupplierLocationId:+ supplierShipping?.shippingSupplierLocationId ?? "",+ shippingMethodId: supplierShipping?.shippingMethodId ?? "",+ shippingTermId: supplierShipping?.shippingTermId ?? "",+ };++ return <SupplierShippingForm initialValues={initialValues} />;+}diff --git a/apps/carbon/app/routes/x+/users+/customers.new.tsx b/apps/carbon/app/routes/x+/users+/customers.new.tsxindex cda8d030fd..ec5dcdb8b3 100644--- a/apps/carbon/app/routes/x+/users+/customers.new.tsx+++ b/apps/carbon/app/routes/x+/users+/customers.new.tsx@@ -2,10 +2,10 @@ import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { validationError } from "remix-validated-form";import {- createCustomerAccount,createCustomerAccountValidator,CreateCustomerModal,} from "~/modules/users";+import { createCustomerAccount } from "~/modules/users/users.server";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/users+/deactivate.tsx b/apps/carbon/app/routes/x+/users+/deactivate.tsxindex c6f7280882..ea44fe6361 100644--- a/apps/carbon/app/routes/x+/users+/deactivate.tsx+++ b/apps/carbon/app/routes/x+/users+/deactivate.tsx@@ -1,7 +1,8 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { validationError } from "remix-validated-form";-import { deactivateUser, deactivateUsersValidator } from "~/modules/users";+import { deactivateUsersValidator } from "~/modules/users";+import { deactivateUser } from "~/modules/users/users.server";import type { UserAdminQueueData } from "~/queues";import { userAdminQueue, UserAdminQueueType } from "~/queues";import { requirePermissions } from "~/services/auth";diff --git a/apps/carbon/app/routes/x+/users+/employee-types.$employeeTypeId.tsx b/apps/carbon/app/routes/x+/users+/employee-types.$employeeTypeId.tsxindex 798c21f5f5..dae0300ce5 100644--- a/apps/carbon/app/routes/x+/users+/employee-types.$employeeTypeId.tsx+++ b/apps/carbon/app/routes/x+/users+/employee-types.$employeeTypeId.tsx@@ -8,10 +8,10 @@ import {employeeTypeValidator,getEmployeeType,getPermissionsByEmployeeType,- makePermissionsFromEmployeeType,upsertEmployeeType,upsertEmployeeTypePermissions,} from "~/modules/users";+import { makePermissionsFromEmployeeType } from "~/modules/users/users.server";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/users+/employee-types.new.tsx b/apps/carbon/app/routes/x+/users+/employee-types.new.tsxindex 2943e8cb61..268ad8f70e 100644--- a/apps/carbon/app/routes/x+/users+/employee-types.new.tsx+++ b/apps/carbon/app/routes/x+/users+/employee-types.new.tsx@@ -8,9 +8,9 @@ import {employeeTypeValidator,getFeatures,insertEmployeeType,- makeEmptyPermissionsFromFeatures,upsertEmployeeTypePermissions,} from "~/modules/users";+import { makeEmptyPermissionsFromFeatures } from "~/modules/users/users.server";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/users+/employees.$employeeId.tsx b/apps/carbon/app/routes/x+/users+/employees.$employeeId.tsxindex 39acea99b6..66a7181988 100644--- a/apps/carbon/app/routes/x+/users+/employees.$employeeId.tsx+++ b/apps/carbon/app/routes/x+/users+/employees.$employeeId.tsx@@ -6,13 +6,15 @@ import { validationError } from "remix-validated-form";import {EmployeePermissionsForm,employeeValidator,- getClaims,getEmployee,getEmployeeTypes,- makePermissionsFromClaims,- updateEmployee,userPermissionsValidator,} from "~/modules/users";+import {+ getClaims,+ makePermissionsFromClaims,+ updateEmployee,+} from "~/modules/users/users.server";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session";import { assertIsPost, notFound } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/users+/employees.new.tsx b/apps/carbon/app/routes/x+/users+/employees.new.tsxindex da3435aba6..19a2883acf 100644--- a/apps/carbon/app/routes/x+/users+/employees.new.tsx+++ b/apps/carbon/app/routes/x+/users+/employees.new.tsx@@ -1,11 +1,8 @@import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { validationError } from "remix-validated-form";-import {- createEmployeeAccount,- CreateEmployeeModal,- createEmployeeValidator,-} from "~/modules/users";+import { CreateEmployeeModal, createEmployeeValidator } from "~/modules/users";+import { createEmployeeAccount } from "~/modules/users/users.server";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/routes/x+/users+/groups.new.tsx b/apps/carbon/app/routes/x+/users+/groups.new.tsxindex c5ee43a304..07054da8df 100644--- a/apps/carbon/app/routes/x+/users+/groups.new.tsx+++ b/apps/carbon/app/routes/x+/users+/groups.new.tsx@@ -2,8 +2,8 @@ import type { ActionFunctionArgs } from "@remix-run/node";import { json, redirect } from "@remix-run/node";import { validationError } from "remix-validated-form";import {- deleteGroup,GroupForm,+ deleteGroup,groupValidator,insertGroup,upsertGroupMembers,diff --git a/apps/carbon/app/routes/x+/users+/resend-invite.tsx b/apps/carbon/app/routes/x+/users+/resend-invite.tsxindex 46ddcc50e2..715e28d481 100644--- a/apps/carbon/app/routes/x+/users+/resend-invite.tsx+++ b/apps/carbon/app/routes/x+/users+/resend-invite.tsx@@ -1,7 +1,8 @@import type { ActionFunctionArgs } from "@remix-run/node";import { json } from "@remix-run/node";import { validationError } from "remix-validated-form";-import { resendInvite, resendInviteValidator } from "~/modules/users";+import { resendInviteValidator } from "~/modules/users";+import { resendInvite } from "~/modules/users/users.server";import type { UserAdminQueueData } from "~/queues";import { userAdminQueue, UserAdminQueueType } from "~/queues";import { requirePermissions } from "~/services/auth";diff --git a/apps/carbon/app/routes/x+/users+/suppliers.new.tsx b/apps/carbon/app/routes/x+/users+/suppliers.new.tsxindex 3cb106e643..0c0bb1c334 100644--- a/apps/carbon/app/routes/x+/users+/suppliers.new.tsx+++ b/apps/carbon/app/routes/x+/users+/suppliers.new.tsx@@ -2,10 +2,10 @@ import type { ActionFunctionArgs } from "@remix-run/node";import { redirect } from "@remix-run/node";import { validationError } from "remix-validated-form";import {- createSupplierAccount,createSupplierAccountValidator,CreateSupplierModal,} from "~/modules/users";+import { createSupplierAccount } from "~/modules/users/users.server";import { requirePermissions } from "~/services/auth";import { flash } from "~/services/session";import { assertIsPost } from "~/utils/http";diff --git a/apps/carbon/app/services/auth/auth.server.ts b/apps/carbon/app/services/auth/auth.server.tsindex 9559e12de5..833adfb563 100644--- a/apps/carbon/app/services/auth/auth.server.ts+++ b/apps/carbon/app/services/auth/auth.server.ts@@ -6,7 +6,7 @@ import type {} from "@supabase/supabase-js";import { REFRESH_ACCESS_TOKEN_THRESHOLD, VERCEL_URL } from "~/config/env";import { getSupabase, getSupabaseServiceRole } from "~/lib/supabase";-import { getUserClaims } from "~/modules/users";+import { getUserClaims } from "~/modules/users/users.server";import { flash, requireAuthSession } from "~/services/session";import { path } from "~/utils/path";import { error } from "~/utils/result";@@ -94,7 +94,7 @@ export async function requirePermissions(if (Object.keys(requiredPermissions).length === 0)return { client, email, userId };- const myClaims = await getUserClaims(request, client);+ const myClaims = await getUserClaims(request);const hasRequiredPermissions = Object.entries(requiredPermissions).every(([action, permission]) => {diff --git a/apps/carbon/app/services/session/session.server.ts b/apps/carbon/app/services/session/session.server.tsindex 213a5729ec..a902dff5e3 100644--- a/apps/carbon/app/services/session/session.server.ts+++ b/apps/carbon/app/services/session/session.server.ts@@ -6,6 +6,7 @@ import {makeRedirectToFromHere,safeRedirect,} from "~/utils/http";+import { error } from "~/utils/result";import {NODE_ENV,@@ -30,15 +31,7 @@ async function assertAuthSession(if (!authSession?.accessToken || !authSession?.refreshToken) {throw redirect(`${onFailRedirectTo || path.to.login}?${makeRedirectToFromHere(request)}`,- {- // TODO: convert this to await flash(request, error("No user session found"))- headers: {- "Set-Cookie": await commitAuthSession(request, {- authSession: null,- flashErrorMessage: "No user session found",- }),- },- }+ await flash(request, error("No user session found")));}diff --git a/apps/carbon/app/utils/path.ts b/apps/carbon/app/utils/path.tsindex b2eccc5195..995755df54 100644--- a/apps/carbon/app/utils/path.ts+++ b/apps/carbon/app/utils/path.ts@@ -26,6 +26,7 @@ export const path = {generatePath(`${api}/settings/sequence/rollback?table=${table}¤tSequence=${id}`),+ sequences: (table: string) => `${api}/settings/sequences?table=${table}`,shifts: (id: string) =>generatePath(`${api}/resources/shifts?location=${id}`),shelves: (id: string) =>@@ -86,6 +87,10 @@ export const path = {generatePath(`${x}/customer/${customerId}/locations/${id}`),customerLocations: (id: string) =>generatePath(`${x}/customer/${id}/locations`),+ customerPayment: (id: string) =>+ generatePath(`${x}/customer/${id}/payments`),+ customerShipping: (id: string) =>+ generatePath(`${x}/customer/${id}/shipping`),customerType: (id: string) =>generatePath(`${x}/sales/customer-types/delete/${id}`),customerTypes: `${x}/sales/customer-types`,@@ -286,6 +291,7 @@ export const path = {generatePath(`${x}/purchase-invoice/${id}`),purchaseInvoiceDetails: (id: string) =>generatePath(`${x}/purchase-invoice/${id}/details`),+ purchaseInvoiceRoot: `${x}/purchase-invoice`,purchaseInvoices: `${x}/invoicing/purchasing`,purchaseOrder: (id: string) => generatePath(`${x}/purchase-order/${id}`),purchaseOrderDelivery: (id: string) =>@@ -330,6 +336,10 @@ export const path = {generatePath(`${x}/supplier/${supplierId}/locations/${id}`),supplierLocations: (id: string) =>generatePath(`${x}/supplier/${id}/locations`),+ supplierPayment: (id: string) =>+ generatePath(`${x}/supplier/${id}/payments`),+ supplierShipping: (id: string) =>+ generatePath(`${x}/supplier/${id}/shipping`),supplierRoot: `${x}/supplier`,supplierType: (id: string) =>generatePath(`${x}/purchasing/supplier-types/delete/${id}`),diff --git a/apps/carbon/app/utils/string.ts b/apps/carbon/app/utils/string.tsindex 473b1d0360..ef49cd3cf0 100644--- a/apps/carbon/app/utils/string.ts+++ b/apps/carbon/app/utils/string.ts@@ -4,7 +4,7 @@ export const capitalize = (words: string) => {};// used to generate sequences-export const interpolateDate = (value: string | null) => {+export const interpolateSequenceDate = (value: string | null) => {// replace all instances of %{year} with the current yearif (!value) return "";let result = value;diff --git a/apps/carbon/package.json b/apps/carbon/package.jsonindex 10b2c01966..de074254a5 100644--- a/apps/carbon/package.json+++ b/apps/carbon/package.json@@ -25,15 +25,16 @@"@emotion/styled": "^11.11.0","@internationalized/date": "^3.3.0","@nanostores/react": "^0.7.1",- "@remix-run/eslint-config": "~2.1.0",- "@remix-run/dev": "~2.1.0",- "@remix-run/node": "~2.1.0",- "@remix-run/react": "~2.1.0",- "@remix-run/serve": "~2.1.0",+ "@remix-run/eslint-config": "~2.2.0",+ "@remix-run/dev": "~2.2.0",+ "@remix-run/node": "~2.2.0",+ "@remix-run/react": "~2.2.0",+ "@remix-run/serve": "~2.2.0","@vercel/analytics": "^1.0.2",- "@vercel/remix": "2.1.0",+ "@vercel/remix": "2.2.0","@remix-validated-form/with-zod": "^2.0.7",- "@supabase/supabase-js": "^2.33.1",+ "@supabase/functions-js": "2.1.5",+ "@supabase/supabase-js": "^2.38.4","@tanstack/react-table": "^8.9.3","@visx/axis": "3.3.0","@visx/curve": "3.3.0",diff --git a/apps/carbon/tsconfig.json b/apps/carbon/tsconfig.jsonindex 23af1baa07..96841b303b 100644--- a/apps/carbon/tsconfig.json+++ b/apps/carbon/tsconfig.json@@ -1,5 +1,10 @@{- "include": ["remix.env.d.ts", "**/*.ts", "**/*.tsx"],+ "include": [+ "remix.env.d.ts",+ "**/*.ts",+ "**/*.tsx",+ "app/modules/documents/documents.service.ts"+ ],"compilerOptions": {"lib": ["dom", "dom.iterable", "ES2019"],"esModuleInterop": true,diff --git a/package-lock.json b/package-lock.jsonindex 1f047edb3a..99fb2a9050 100644--- a/package-lock.json+++ b/package-lock.json@@ -12,6 +12,8 @@"www"],"devDependencies": {+ "eslint": "^8.23.1",+ "eslint-config-carbon": "*","husky": "^8.0.3","lint-staged": "^13.1.2","npm-run-all": "^4.1.5",@@ -40,16 +42,17 @@"@emotion/styled": "^11.11.0","@internationalized/date": "^3.3.0","@nanostores/react": "^0.7.1",- "@remix-run/dev": "~2.1.0",- "@remix-run/eslint-config": "~2.1.0",- "@remix-run/node": "~2.1.0",- "@remix-run/react": "~2.1.0",- "@remix-run/serve": "~2.1.0",+ "@remix-run/dev": "~2.2.0",+ "@remix-run/eslint-config": "~2.2.0",+ "@remix-run/node": "~2.2.0",+ "@remix-run/react": "~2.2.0",+ "@remix-run/serve": "~2.2.0","@remix-validated-form/with-zod": "^2.0.7",- "@supabase/supabase-js": "^2.33.1",+ "@supabase/functions-js": "2.1.5",+ "@supabase/supabase-js": "^2.38.4","@tanstack/react-table": "^8.9.3","@vercel/analytics": "^1.0.2",- "@vercel/remix": "2.1.0",+ "@vercel/remix": "2.2.0","@visx/axis": "3.3.0","@visx/curve": "3.3.0","@visx/drag": "3.3.0",@@ -92,40 +95,6 @@"node": ">=18"}},- "apps/shared": {- "extraneous": true,- "license": "AGPL-3.0-or-later",- "dependencies": {- "@carbon/logger": "*",- "@remix-run/dev": "~2.0.0",- "@remix-run/eslint-config": "~2.0.0",- "@remix-run/node": "~2.0.0",- "@remix-run/react": "~2.0.0",- "@remix-run/serve": "~2.0.0",- "@supabase/supabase-js": "^2.33.1",- "@trigger.dev/react": "^2.2.2",- "@trigger.dev/remix": "^2.2.2",- "@trigger.dev/sdk": "^2.2.2",- "@vercel/analytics": "^1.0.2",- "@vercel/remix": "2.0.0",- "axios": "1.5.1",- "isbot": "latest",- "remix-flat-routes": "^0.5.10",- "remix-validated-form": "^5.0.2",- "zod": "^3.21.4"- },- "devDependencies": {- "@carbon/tsconfig": "*",- "@types/react": "^18.2.17",- "@types/react-dom": "^18.2.7",- "cross-env": "7.0.3",- "nodemon": "^3.0.1",- "typescript": "^5.2.2"- },- "engines": {- "node": ">=18"- }- },"node_modules/@aashutoshrathi/word-wrap": {"version": "1.2.6","resolved": "https://registry.npmjs.org/@aashutoshrathi/word-wrap/-/word-wrap-1.2.6.tgz",@@ -158,6 +127,17 @@"node": ">=6.9.0"}},+ "node_modules/@babel/code-frame/node_modules/ansi-styles": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",+ "dependencies": {+ "color-convert": "^1.9.0"+ },+ "engines": {+ "node": ">=4"+ }+ },"node_modules/@babel/code-frame/node_modules/chalk": {"version": "2.4.2","resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",@@ -171,6 +151,19 @@"node": ">=4"}},+ "node_modules/@babel/code-frame/node_modules/color-convert": {+ "version": "1.9.3",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",+ "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",+ "dependencies": {+ "color-name": "1.1.3"+ }+ },+ "node_modules/@babel/code-frame/node_modules/color-name": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",+ "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw=="+ },"node_modules/@babel/code-frame/node_modules/escape-string-regexp": {"version": "1.0.5","resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",@@ -556,6 +549,17 @@"node": ">=6.9.0"}},+ "node_modules/@babel/highlight/node_modules/ansi-styles": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",+ "dependencies": {+ "color-convert": "^1.9.0"+ },+ "engines": {+ "node": ">=4"+ }+ },"node_modules/@babel/highlight/node_modules/chalk": {"version": "2.4.2","resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",@@ -569,6 +573,19 @@"node": ">=4"}},+ "node_modules/@babel/highlight/node_modules/color-convert": {+ "version": "1.9.3",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",+ "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",+ "dependencies": {+ "color-name": "1.1.3"+ }+ },+ "node_modules/@babel/highlight/node_modules/color-name": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",+ "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw=="+ },"node_modules/@babel/highlight/node_modules/escape-string-regexp": {"version": "1.0.5","resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",@@ -2359,9 +2376,9 @@"integrity": "sha512-EsBwpc7hBUJWAsNPBmJy4hxWx12v6bshQsldrVmjxJoc3isbxhOrF2IcCpaXxfvq03NwkI7sbsOLXbYuqF/8Ww=="},"node_modules/@esbuild/android-arm": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz",- "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.19.tgz",+ "integrity": "sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==","cpu": ["arm"],@@ -2369,14 +2386,15 @@"os": ["android"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/android-arm64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz",- "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz",+ "integrity": "sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==","cpu": ["arm64"],@@ -2384,14 +2402,15 @@"os": ["android"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/android-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz",- "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.19.tgz",+ "integrity": "sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==","cpu": ["x64"],@@ -2399,14 +2418,15 @@"os": ["android"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/darwin-arm64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz",- "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz",+ "integrity": "sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==","cpu": ["arm64"],@@ -2414,14 +2434,15 @@"os": ["darwin"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/darwin-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz",- "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.19.tgz",+ "integrity": "sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==","cpu": ["x64"],@@ -2429,14 +2450,15 @@"os": ["darwin"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/freebsd-arm64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz",- "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.19.tgz",+ "integrity": "sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==","cpu": ["arm64"],@@ -2444,14 +2466,15 @@"os": ["freebsd"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/freebsd-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz",- "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.19.tgz",+ "integrity": "sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==","cpu": ["x64"],@@ -2459,14 +2482,15 @@"os": ["freebsd"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/linux-arm": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz",- "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.19.tgz",+ "integrity": "sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==","cpu": ["arm"],@@ -2474,14 +2498,15 @@"os": ["linux"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/linux-arm64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz",- "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.19.tgz",+ "integrity": "sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==","cpu": ["arm64"],@@ -2489,14 +2514,15 @@"os": ["linux"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/linux-ia32": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz",- "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.19.tgz",+ "integrity": "sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==","cpu": ["ia32"],@@ -2504,14 +2530,15 @@"os": ["linux"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/linux-loong64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz",- "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.19.tgz",+ "integrity": "sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==","cpu": ["loong64"],@@ -2519,14 +2546,15 @@"os": ["linux"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/linux-mips64el": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz",- "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.19.tgz",+ "integrity": "sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==","cpu": ["mips64el"],@@ -2534,14 +2562,15 @@"os": ["linux"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/linux-ppc64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz",- "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.19.tgz",+ "integrity": "sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==","cpu": ["ppc64"],@@ -2549,14 +2578,15 @@"os": ["linux"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/linux-riscv64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz",- "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.19.tgz",+ "integrity": "sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==","cpu": ["riscv64"],@@ -2564,14 +2594,15 @@"os": ["linux"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/linux-s390x": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz",- "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.19.tgz",+ "integrity": "sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==","cpu": ["s390x"],@@ -2579,14 +2610,15 @@"os": ["linux"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/linux-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz",- "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz",+ "integrity": "sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==","cpu": ["x64"],@@ -2594,14 +2626,15 @@"os": ["linux"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/netbsd-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz",- "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.19.tgz",+ "integrity": "sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==","cpu": ["x64"],@@ -2609,14 +2642,15 @@"os": ["netbsd"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/openbsd-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz",- "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.19.tgz",+ "integrity": "sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==","cpu": ["x64"],@@ -2624,14 +2658,15 @@"os": ["openbsd"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/sunos-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz",- "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.19.tgz",+ "integrity": "sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==","cpu": ["x64"],@@ -2639,14 +2674,15 @@"os": ["sunos"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/win32-arm64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz",- "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.19.tgz",+ "integrity": "sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==","cpu": ["arm64"],@@ -2654,14 +2690,15 @@"os": ["win32"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/win32-ia32": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz",- "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.19.tgz",+ "integrity": "sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==","cpu": ["ia32"],@@ -2669,14 +2706,15 @@"os": ["win32"],+ "peer": true,"engines": {"node": ">=12"}},"node_modules/@esbuild/win32-x64": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz",- "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz",+ "integrity": "sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==","cpu": ["x64"],@@ -2684,6 +2722,7 @@"os": ["win32"],+ "peer": true,"engines": {"node": ">=12"}@@ -2703,17 +2742,17 @@}},"node_modules/@eslint-community/regexpp": {- "version": "4.9.1",- "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.9.1.tgz",- "integrity": "sha512-Y27x+MBLjXa+0JWDhykM3+JE+il3kHKAEqabfEWq3SDhZjLYb6/BHL/JKFnH3fe207JaXkyDo685Oc2Glt6ifA==",+ "version": "4.10.0",+ "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.10.0.tgz",+ "integrity": "sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA==","engines": {"node": "^12.0.0 || ^14.0.0 || >=16.0.0"}},"node_modules/@eslint/eslintrc": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.2.tgz",- "integrity": "sha512-+wvgpDsrB1YqAMdEUCcnTlpfVBH7Vqn6A/NT3D8WVXFIaKMlErPIZT3oCIAVCOtarRpMtelZLqJeU3t7WY6X6g==",+ "version": "2.1.3",+ "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.3.tgz",+ "integrity": "sha512-yZzuIG+jnVu6hNSzFEN07e8BxF3uAzYtQb6uDkaYZLo6oYZDCq454c5kB8zxnzfCYyP4MIuyBn10L0DqwujTmA==","dependencies": {"ajv": "^6.12.4","debug": "^4.3.2",@@ -2733,13 +2772,21 @@}},"node_modules/@eslint/js": {- "version": "8.52.0",- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.52.0.tgz",- "integrity": "sha512-mjZVbpaeMZludF2fsWLD0Z9gCref1Tk4i9+wddjRvpUNqqcndPkBD09N/Mapey0b3jaXbLm2kICwFv2E64QinA==",+ "version": "8.53.0",+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.53.0.tgz",+ "integrity": "sha512-Kn7K8dx/5U6+cT1yEhpX1w4PCSg0M+XyRILPgvwcEBjerFWCwQj5sbr3/VmxqV0JGHCBCzyd6LxypEuehypY1w==","engines": {"node": "^12.22.0 || ^14.17.0 || >=16.0.0"}},+ "node_modules/@fastify/busboy": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.0.0.tgz",+ "integrity": "sha512-JUFJad5lv7jxj926GPgymrWQxxjPYuJNiNjNMzqT+HiuP6Vl3dk5xzG+8sTX96np0ZAluvaMzPsjhHZ5rNuNQQ==",+ "engines": {+ "node": ">=14"+ }+ },"node_modules/@floating-ui/core": {"version": "1.5.0","resolved": "https://registry.npmjs.org/@floating-ui/core/-/core-1.5.0.tgz",@@ -2905,6 +2952,31 @@"node": ">=12"}},+ "node_modules/@isaacs/cliui/node_modules/ansi-regex": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz",+ "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ }+ },+ "node_modules/@isaacs/cliui/node_modules/strip-ansi": {+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",+ "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",+ "dependencies": {+ "ansi-regex": "^6.0.1"+ },+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ }+ },"node_modules/@istanbuljs/load-nyc-config": {"version": "1.1.0","resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz",@@ -3020,51 +3092,6 @@"node": ">= 10.14.2"}},- "node_modules/@jest/console/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/@jest/console/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/@jest/console/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/@jest/console/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/@jest/core": {"version": "26.6.3","resolved": "https://registry.npmjs.org/@jest/core/-/core-26.6.3.tgz",@@ -3117,59 +3144,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/@jest/core/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/@jest/core/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/@jest/core/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/@jest/core/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/@jest/core/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/@jest/core/node_modules/glob": {"version": "7.2.3","resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",@@ -3203,17 +3177,6 @@"url": "https://github.com/sponsors/isaacs"}},- "node_modules/@jest/core/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },"node_modules/@jest/core/node_modules/type-fest": {"version": "0.21.3","resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",@@ -3305,51 +3268,20 @@"node-notifier": "^8.0.0"}},- "node_modules/@jest/reporters/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "node_modules/@jest/reporters/node_modules/ansi-escapes": {+ "version": "4.3.2",+ "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",+ "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==","dependencies": {- "color-convert": "^2.0.1"+ "type-fest": "^0.21.3"},"engines": {"node": ">=8"},"funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/@jest/reporters/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/@jest/reporters/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"+ "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/@jest/reporters/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/@jest/reporters/node_modules/glob": {"version": "7.2.3","resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",@@ -3369,6 +3301,40 @@"url": "https://github.com/sponsors/isaacs"}},+ "node_modules/@jest/reporters/node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "engines": {+ "node": ">=0.10.0"+ }+ },+ "node_modules/@jest/reporters/node_modules/terminal-link": {+ "version": "2.1.1",+ "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz",+ "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==",+ "dependencies": {+ "ansi-escapes": "^4.2.1",+ "supports-hyperlinks": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/@jest/reporters/node_modules/type-fest": {+ "version": "0.21.3",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",+ "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/@jest/source-map": {"version": "26.6.2","resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-26.6.2.tgz",@@ -3382,6 +3348,14 @@"node": ">= 10.14.2"}},+ "node_modules/@jest/source-map/node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/@jest/test-result": {"version": "26.6.2","resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-26.6.2.tgz",@@ -3436,56 +3410,19 @@"node": ">= 10.14.2"}},- "node_modules/@jest/transform/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/@jest/transform/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/@jest/transform/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/@jest/transform/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/@jest/transform/node_modules/convert-source-map": {"version": "1.9.0","resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz","integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A=="},+ "node_modules/@jest/transform/node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/@jest/transform/node_modules/write-file-atomic": {"version": "3.0.3","resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz",@@ -3512,70 +3449,25 @@"node": ">= 10.14.2"}},- "node_modules/@jest/types/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "node_modules/@jridgewell/gen-mapping": {+ "version": "0.3.3",+ "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",+ "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==","dependencies": {- "color-convert": "^2.0.1"+ "@jridgewell/set-array": "^1.0.1",+ "@jridgewell/sourcemap-codec": "^1.4.10",+ "@jridgewell/trace-mapping": "^0.3.9"},"engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "node": ">=6.0.0"}},- "node_modules/@jest/types/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },+ "node_modules/@jridgewell/resolve-uri": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz",+ "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==","engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/@jest/types/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/@jest/types/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },- "node_modules/@jridgewell/gen-mapping": {- "version": "0.3.3",- "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",- "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==",- "dependencies": {- "@jridgewell/set-array": "^1.0.1",- "@jridgewell/sourcemap-codec": "^1.4.10",- "@jridgewell/trace-mapping": "^0.3.9"- },- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@jridgewell/resolve-uri": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz",- "integrity": "sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==",- "engines": {- "node": ">=6.0.0"+ "node": ">=6.0.0"}},"node_modules/@jridgewell/set-array": {@@ -4073,6 +3965,26 @@"eslint-scope": "5.1.1"}},+ "node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/eslint-scope": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",+ "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",+ "dependencies": {+ "esrecurse": "^4.3.0",+ "estraverse": "^4.1.1"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/@nicolo-ribaudo/eslint-scope-5-internals/node_modules/estraverse": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",+ "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",+ "engines": {+ "node": ">=4.0"+ }+ },"node_modules/@nodelib/fs.scandir": {"version": "2.1.5","resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",@@ -4806,9 +4718,9 @@}},"node_modules/@remix-run/dev": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/@remix-run/dev/-/dev-2.1.0.tgz",- "integrity": "sha512-Hn5lw46F+a48dp5uHKe68ckaHgdStW4+PmLod+LMFEqrMbkF0j4XD1ousebxlv989o0Uy/OLgfRMgMy4cBOvHg==",+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@remix-run/dev/-/dev-2.2.0.tgz",+ "integrity": "sha512-JtteMtYirQlj1Xf9FSLLjqO+owxlqJVsTESgVWdF+CR5kon2i12YjPnRx1xGtB4UGgU/yTZseMTPNhTKc5mwpQ==","dependencies": {"@babel/core": "^7.21.8","@babel/generator": "^7.21.5",@@ -4816,17 +4728,22 @@"@babel/plugin-syntax-decorators": "^7.22.10","@babel/plugin-syntax-jsx": "^7.21.4","@babel/preset-typescript": "^7.21.5",- "@babel/traverse": "^7.21.5",+ "@babel/traverse": "^7.23.2",+ "@babel/types": "^7.22.5","@mdx-js/mdx": "^2.3.0","@npmcli/package-json": "^4.0.1",- "@remix-run/server-runtime": "2.1.0",+ "@remix-run/node": "2.2.0",+ "@remix-run/router": "1.11.0",+ "@remix-run/server-runtime": "2.2.0","@types/mdx": "^2.0.5","@vanilla-extract/integration": "^6.2.0","arg": "^5.0.1","cacache": "^17.1.3","chalk": "^4.1.2","chokidar": "^3.5.1",+ "cross-spawn": "^7.0.3","dotenv": "^16.0.0",+ "es-module-lexer": "^1.3.1","esbuild": "0.17.6","esbuild-plugins-node-modules-polyfill": "^1.6.0","execa": "5.1.1",@@ -4842,6 +4759,7 @@"minimatch": "^9.0.0","node-fetch": "^2.6.9","ora": "^5.4.1",+ "parse-multipart-data": "^1.5.0","picocolors": "^1.0.0","picomatch": "^2.3.1","pidtree": "^0.6.0",@@ -4855,8 +4773,10 @@"remark-frontmatter": "4.0.1","remark-mdx-frontmatter": "^1.0.1","semver": "^7.3.7",+ "set-cookie-parser": "^2.6.0","tar-fs": "^2.1.1","tsconfig-paths": "^4.0.0",+ "undici": "^5.22.1","ws": "^7.4.5"},"bin": {@@ -4866,8 +4786,9 @@"node": ">=18.0.0"},"peerDependencies": {- "@remix-run/serve": "^2.1.0",- "typescript": "^5.1.0"+ "@remix-run/serve": "^2.2.0",+ "typescript": "^5.1.0",+ "vite": "^4.4.9"},"peerDependenciesMeta": {"@remix-run/serve": {@@ -4875,6 +4796,9 @@},"typescript": {"optional": true+ },+ "vite": {+ "optional": true}}},@@ -5208,20 +5132,6 @@"node": ">=12"}},- "node_modules/@remix-run/dev/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },"node_modules/@remix-run/dev/node_modules/brace-expansion": {"version": "2.0.1","resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",@@ -5230,37 +5140,6 @@"balanced-match": "^1.0.0"}},- "node_modules/@remix-run/dev/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/@remix-run/dev/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/@remix-run/dev/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/@remix-run/dev/node_modules/esbuild": {"version": "0.17.6","resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.6.tgz",@@ -5477,9 +5356,9 @@}},"node_modules/@remix-run/eslint-config": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/@remix-run/eslint-config/-/eslint-config-2.1.0.tgz",- "integrity": "sha512-yfeUnHpUG+XveujMi6QODKMGhs5CvKWCKzASU397BPXiPWbMv6r2acfODSWK64ZdBMu9hcLbOb42GBFydVQeHA==",+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@remix-run/eslint-config/-/eslint-config-2.2.0.tgz",+ "integrity": "sha512-H+LPiQhsXaCsOVvyB5vf6wTAv72m/pI6rdoCjyx3ayipNGAuqldkAnmFD6Qa/Bpc/zRHk13+PZV27kjyNd32vw==","dependencies": {"@babel/core": "^7.21.8","@babel/eslint-parser": "^7.21.8",@@ -5513,11 +5392,11 @@}},"node_modules/@remix-run/express": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/@remix-run/express/-/express-2.1.0.tgz",- "integrity": "sha512-R5myPowQx6LYWY3+EqP42q19MOCT3+ZGwb2f0UKNs9a34R8U3nFpGWL7saXryC+To+EasujEScc8rTQw5Pftog==",+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@remix-run/express/-/express-2.2.0.tgz",+ "integrity": "sha512-ztiQxiRCVAeo5UiYf/GiH3ON57V/WGX+RAjuIX1vZvlrtuupPIkfOWfxgFD3osgOuI2CIdvkHbm9No4cPOWMXw==","dependencies": {- "@remix-run/node": "2.1.0"+ "@remix-run/node": "2.2.0"},"engines": {"node": ">=18.0.0"@@ -5533,11 +5412,11 @@}},"node_modules/@remix-run/node": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/@remix-run/node/-/node-2.1.0.tgz",- "integrity": "sha512-TeSgjXnZUUlmw5FVpBVnXY7MLpracjdnwFNwoJE5NQkiUEFnGD/Yhvk4F2fOCkszqc2Z25KRclc5noweyiFu6Q==",+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@remix-run/node/-/node-2.2.0.tgz",+ "integrity": "sha512-QZBdsQE2bZXAMFdPtB64L9icRiduUDRj1lXMzJJXgg+tnIYEF1A3FsDwI+VKaRY+Z4h+bLEftSO0yM0RijP/Ow==","dependencies": {- "@remix-run/server-runtime": "2.1.0",+ "@remix-run/server-runtime": "2.2.0","@remix-run/web-fetch": "^4.4.1","@remix-run/web-file": "^3.1.0","@remix-run/web-stream": "^1.1.0",@@ -5559,13 +5438,13 @@}},"node_modules/@remix-run/react": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/@remix-run/react/-/react-2.1.0.tgz",- "integrity": "sha512-DeYgfsvNxHqNn29sGA3XsZCciMKo2EFTQ9hHkuVPTsJXC4ipHr6Dja1j6UzZYPe/ZuKppiuTjueWCQlE2jOe1w==",+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@remix-run/react/-/react-2.2.0.tgz",+ "integrity": "sha512-1nD5ihI0A1wUpFr9Eo9bquEtqjhjvg1OwFF7qDXXHgQ4Zh13y3MKO5dRmHf+Os999o0vqVJ+xSnVPN+Vbco3uA==","dependencies": {- "@remix-run/router": "1.10.0",- "@remix-run/server-runtime": "2.1.0",- "react-router-dom": "6.17.0"+ "@remix-run/router": "1.11.0",+ "@remix-run/server-runtime": "2.2.0",+ "react-router-dom": "6.18.0"},"engines": {"node": ">=18.0.0"@@ -5582,20 +5461,20 @@}},"node_modules/@remix-run/router": {- "version": "1.10.0",- "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.10.0.tgz",- "integrity": "sha512-Lm+fYpMfZoEucJ7cMxgt4dYt8jLfbpwRCzAjm9UgSLOkmlqo9gupxt6YX3DY0Fk155NT9l17d/ydi+964uS9Lw==",+ "version": "1.11.0",+ "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.11.0.tgz",+ "integrity": "sha512-BHdhcWgeiudl91HvVa2wxqZjSHbheSgIiDvxrF1VjFzBzpTtuDPkOdOi3Iqvc08kXtFkLjhbS+ML9aM8mJS+wQ==","engines": {"node": ">=14.0.0"}},"node_modules/@remix-run/serve": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/@remix-run/serve/-/serve-2.1.0.tgz",- "integrity": "sha512-XHI+vPYz217qrg1QcV38TTPlEBTzMJzAt0SImPutyF0S2IBrZGZIFMEsspI0i0wNvdcdQz1IqmSx+mTghzW8eQ==",+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@remix-run/serve/-/serve-2.2.0.tgz",+ "integrity": "sha512-hUdxQeb/KwIiJTaW5w6OFgcF8lEucafxOkZDH66XYKdUAW4Mj300+gG8R0f20xdnf0Ud7PnhdVjkMhVNETyXqw==","dependencies": {- "@remix-run/express": "2.1.0",- "@remix-run/node": "2.1.0",+ "@remix-run/express": "2.2.0",+ "@remix-run/node": "2.2.0","chokidar": "^3.5.3","compression": "^1.7.4","express": "^4.17.1",@@ -5611,11 +5490,11 @@}},"node_modules/@remix-run/server-runtime": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/@remix-run/server-runtime/-/server-runtime-2.1.0.tgz",- "integrity": "sha512-Uz69yF4Gu6F3VYQub3JgDo9godN8eDMeZclkadBTAWN7bYLonu0ChR/GlFxS35OLeF7BDgudxOSZob0nE1WHNg==",+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@remix-run/server-runtime/-/server-runtime-2.2.0.tgz",+ "integrity": "sha512-+FiQy/Y6yqakkP2dRMhyf47fEvO2Pbu5aHCknUC9GKuzvDSbR5z65lB/rlRYUg1f8OBY46b7AMVG46qM+tRxeQ==","dependencies": {- "@remix-run/router": "1.10.0",+ "@remix-run/router": "1.11.0","@types/cookie": "^0.4.1","@web3-storage/multipart-parser": "^1.0.0","cookie": "^0.4.1",@@ -5800,9 +5679,9 @@}},"node_modules/@supabase/realtime-js": {- "version": "2.8.2",- "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.8.2.tgz",- "integrity": "sha512-QY9H3an/TaInBJkGdKMrTVU1etomEtwStgeRGUFfYX0eURzBYKffgheZBnMdM9VgPCv0Oz5JcchoclpSlC8KvQ==",+ "version": "2.8.4",+ "resolved": "https://registry.npmjs.org/@supabase/realtime-js/-/realtime-js-2.8.4.tgz",+ "integrity": "sha512-5C9slLTGikHnYmAnIBOaPogAgbcNY68vnIyE6GpqIKjHElVb6LIi4clwNcjHSj4z6szuvvzj8T/+ePEgGEGekw==","dependencies": {"@supabase/node-fetch": "^2.6.14","@types/phoenix": "^1.5.4",@@ -5819,15 +5698,15 @@}},"node_modules/@supabase/supabase-js": {- "version": "2.38.3",- "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.38.3.tgz",- "integrity": "sha512-qIQxXZJN42iM41VChBo3kmGNyRhM0LOk27fkTX8A4tHnWxt0zmxMGFKVCX7Qnrz8zttiJkcym/BZreM/F9k0FQ==",+ "version": "2.38.4",+ "resolved": "https://registry.npmjs.org/@supabase/supabase-js/-/supabase-js-2.38.4.tgz",+ "integrity": "sha512-bYwxm/GosvRqOMIv6YP7qUTZWi/trgHtDWUEZDEmyRHW24d0JYIb1GOt6RaO2hsWlecn88DAJIpjoNbprocgRA==","dependencies": {"@supabase/functions-js": "^2.1.5","@supabase/gotrue-js": "^2.56.0","@supabase/node-fetch": "^2.6.14","@supabase/postgrest-js": "^1.8.5",- "@supabase/realtime-js": "^2.8.2",+ "@supabase/realtime-js": "^2.8.4","@supabase/storage-js": "^2.5.4"}},@@ -5923,51 +5802,6 @@"node": ">=12"}},- "node_modules/@testing-library/dom/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/@testing-library/dom/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/@testing-library/dom/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/@testing-library/dom/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/@theguild/remark-mermaid": {"version": "0.0.5","resolved": "https://registry.npmjs.org/@theguild/remark-mermaid/-/remark-mermaid-0.0.5.tgz",@@ -6431,9 +6265,9 @@}},"node_modules/@trigger.dev/core": {- "version": "2.2.2",- "resolved": "https://registry.npmjs.org/@trigger.dev/core/-/core-2.2.2.tgz",- "integrity": "sha512-T+lZcbFj6q/ueFbJH7iLZWmvWNaAFoplzGK0s8AWBZCwGc6CuVRkrxtpP4vK8oayj5Q+skiMSaKPDq5xoMBZDA==",+ "version": "2.2.4",+ "resolved": "https://registry.npmjs.org/@trigger.dev/core/-/core-2.2.4.tgz",+ "integrity": "sha512-WO4w0HeJYwrloyTL6Y8apOqyRlsYFa5ihBEkNjyI+QDlvOQxO/DbppYuW3iMpU2xmyO0T6zdV7yf7UEJP6boDA==","dependencies": {"ulid": "^2.3.0","zod": "3.22.3",@@ -6443,6 +6277,14 @@"node": ">=18.0.0"}},+ "node_modules/@trigger.dev/core-backend": {+ "version": "2.2.4",+ "resolved": "https://registry.npmjs.org/@trigger.dev/core-backend/-/core-backend-2.2.4.tgz",+ "integrity": "sha512-C+CtJjKuuE+KRZHt8FzmI3rno8iUU4Tkd0m67/bhOBAVDWbSXkv+/yHdd6ANMrWgdX8NjGlIlQgsgOFB0IeGyA==",+ "engines": {+ "node": ">=18.0.0"+ }+ },"node_modules/@trigger.dev/core/node_modules/zod": {"version": "3.22.3","resolved": "https://registry.npmjs.org/zod/-/zod-3.22.3.tgz",@@ -6452,12 +6294,12 @@}},"node_modules/@trigger.dev/react": {- "version": "2.2.2",- "resolved": "https://registry.npmjs.org/@trigger.dev/react/-/react-2.2.2.tgz",- "integrity": "sha512-+DaIrRQb1U9wfW5NJwasLS2hRgTCI1gam5qsmD6kR0Smk1zmR2C5NJTe0qEQ4LeBOcSAULJq4T10DsP5/Af4HQ==",+ "version": "2.2.4",+ "resolved": "https://registry.npmjs.org/@trigger.dev/react/-/react-2.2.4.tgz",+ "integrity": "sha512-BXl7c/DqGKgUQ6MxdUrZzm04xnpq2zStmhqMspyFPZ66ZbjERha1fd7sz7aOskQdRioSMRdM1Birufaaak0C3w==","dependencies": {"@tanstack/react-query": "5.0.0-beta.2",- "@trigger.dev/core": "^2.2.2",+ "@trigger.dev/core": "^2.2.4","debug": "^4.3.4","zod": "3.22.3"},@@ -6474,9 +6316,9 @@}},"node_modules/@trigger.dev/remix": {- "version": "2.2.2",- "resolved": "https://registry.npmjs.org/@trigger.dev/remix/-/remix-2.2.2.tgz",- "integrity": "sha512-SnnzgSNHacxTH0cFWroTrmMKHGAaa2IfjsoE0VI8+3imimbAAygxlNFjCAaT97o1JlxB2PcnnCEM6EJmlfGByA==",+ "version": "2.2.4",+ "resolved": "https://registry.npmjs.org/@trigger.dev/remix/-/remix-2.2.4.tgz",+ "integrity": "sha512-V6NcrZLU+SZ2ppORGw+8+IATNE0VKq7pnxRtclsAZdSd6kYhNCv0M02IQI+aVie+d/ACQbq0UTDA+ClwuUWOSA==","dependencies": {"debug": "^4.3.4"},@@ -6485,15 +6327,16 @@},"peerDependencies": {"@remix-run/server-runtime": ">1.19.0",- "@trigger.dev/sdk": "^2.2.2"+ "@trigger.dev/sdk": "^2.2.4"}},"node_modules/@trigger.dev/sdk": {- "version": "2.2.2",- "resolved": "https://registry.npmjs.org/@trigger.dev/sdk/-/sdk-2.2.2.tgz",- "integrity": "sha512-sUU27aUJa/d9+04ZcQFfTqfwH37+EvGP2bTJuXV0WrrMFxxPfijmFunUp7V2JSan/Ncz1iUqrPEvrXwBzm4bmg==",+ "version": "2.2.4",+ "resolved": "https://registry.npmjs.org/@trigger.dev/sdk/-/sdk-2.2.4.tgz",+ "integrity": "sha512-Q0iUNLD//pCpMXnAScjQjFvLzQhNvWAjJ4y73v8dv1oLCoNyM9IreI/b4A92gr1LIlwC8hayKosgR/wP6G6lLQ==","dependencies": {- "@trigger.dev/core": "^2.2.2",+ "@trigger.dev/core": "^2.2.4",+ "@trigger.dev/core-backend": "^2.2.4","chalk": "^5.2.0","cronstrue": "^2.21.0","debug": "^4.3.4",@@ -6512,19 +6355,15 @@"node": ">=18.0.0"}},- "node_modules/@trigger.dev/sdk/node_modules/terminal-link": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-3.0.0.tgz",- "integrity": "sha512-flFL3m4wuixmf6IfhFJd1YPiLiMuxEc8uHRM1buzIeZPm22Au2pDqBJQgdo7n1WfPU1ONFGv7YDwpFBmHGF6lg==",- "dependencies": {- "ansi-escapes": "^5.0.0",- "supports-hyperlinks": "^2.2.0"- },+ "node_modules/@trigger.dev/sdk/node_modules/chalk": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz",+ "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==","engines": {- "node": ">=12"+ "node": "^12.17.0 || ^14.13 || >=16.0.0"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "url": "https://github.com/chalk/chalk?sponsor=1"}},"node_modules/@trigger.dev/sdk/node_modules/ws": {@@ -6860,9 +6699,9 @@}},"node_modules/@types/estree": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.3.tgz",- "integrity": "sha512-CS2rOaoQ/eAgAfcTfq6amKG7bsN+EMcgGY4FAFQdvSj2y1ixvOZTUA9mOtCai7E1SYu283XNw7urKK30nP3wkQ=="+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.4.tgz",+ "integrity": "sha512-2JwWnHK9H+wUZNorf2Zr6ves96WHoWDJIftkcxPKsS7Djta6Zu519LarhRNljPXkpsZR2ZMwNCPeW7omW07BJw=="},"node_modules/@types/estree-jsx": {"version": "1.0.2",@@ -6934,48 +6773,6 @@"pretty-format": "^26.0.0"}},- "node_modules/@types/jest/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "dev": true,- "engines": {- "node": ">=8"- }- },- "node_modules/@types/jest/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dev": true,- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/@types/jest/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dev": true,- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/@types/jest/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",- "dev": true- },"node_modules/@types/jest/node_modules/pretty-format": {"version": "26.6.2","resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz",@@ -7049,11 +6846,11 @@"integrity": "sha512-AuHIyzR5Hea7ij0P9q7vx7xu4z0C28ucwjAZC0ja7JhINyCnOw8/DnvAPQQ9TfOlCtZAmCERKQX9+o1mgQhuOQ=="},"node_modules/@types/node": {- "version": "20.8.8",- "resolved": "https://registry.npmjs.org/@types/node/-/node-20.8.8.tgz",- "integrity": "sha512-YRsdVxq6OaLfmR9Hy816IMp33xOBjfyOgUd77ehqg96CFywxAPbDbXvAsuN2KVg2HOT8Eh6uAfU+l4WffwPVrQ==",+ "version": "18.18.8",+ "resolved": "https://registry.npmjs.org/@types/node/-/node-18.18.8.tgz",+ "integrity": "sha512-OLGBaaK5V3VRBS1bAkMVP2/W9B+H8meUfl866OrMNQqt7wDgdpWPp5o6gmIc9pB+lIQHSq4ZL8ypeH1vPxcPaQ==","dependencies": {- "undici-types": "~5.25.1"+ "undici-types": "~5.26.4"}},"node_modules/@types/normalize-package-data": {@@ -7098,9 +6895,9 @@"integrity": "sha512-n1yyPsugYNSmHgxDFjicaI2+gCNjsBck8UX9kuofAKlc0h1bL+20oSF72KeNaW2DUlesbEVCFgyV2dPGTiY42g=="},"node_modules/@types/react": {- "version": "18.2.33",- "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.33.tgz",- "integrity": "sha512-v+I7S+hu3PIBoVkKGpSYYpiBT1ijqEzWpzQD62/jm4K74hPpSP7FF9BnKG6+fg2+62weJYkkBWDJlZt5JO/9hg==",+ "version": "18.2.34",+ "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.34.tgz",+ "integrity": "sha512-U6eW/alrRk37FU/MS2RYMjx0Va2JGIVXELTODaTIYgvWGCV4Y4TfTUzG8DdmpDNIT0Xpj/R7GfyHOJJrDttcvg==","dependencies": {"@types/prop-types": "*","@types/scheduler": "*",@@ -7405,6 +7202,26 @@"eslint": "^6.0.0 || ^7.0.0 || ^8.0.0"}},+ "node_modules/@typescript-eslint/utils/node_modules/eslint-scope": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",+ "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",+ "dependencies": {+ "esrecurse": "^4.3.0",+ "estraverse": "^4.1.1"+ },+ "engines": {+ "node": ">=8.0.0"+ }+ },+ "node_modules/@typescript-eslint/utils/node_modules/estraverse": {+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",+ "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",+ "engines": {+ "node": ">=4.0"+ }+ },"node_modules/@typescript-eslint/utils/node_modules/lru-cache": {"version": "6.0.0","resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",@@ -7477,55 +7294,10 @@"outdent": "^0.8.0"}},- "node_modules/@vanilla-extract/css/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/@vanilla-extract/css/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/@vanilla-extract/css/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/@vanilla-extract/css/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },- "node_modules/@vanilla-extract/integration": {- "version": "6.2.2",- "resolved": "https://registry.npmjs.org/@vanilla-extract/integration/-/integration-6.2.2.tgz",- "integrity": "sha512-gV3qPFjFap1+IrPeuFy+tEZOq7l7ifJf1ik/kluDWhPr1ffsFG9puq1/jjJ4rod1BIC79Q5ZWPNvBInHyxfCew==",+ "node_modules/@vanilla-extract/integration": {+ "version": "6.2.2",+ "resolved": "https://registry.npmjs.org/@vanilla-extract/integration/-/integration-6.2.2.tgz",+ "integrity": "sha512-gV3qPFjFap1+IrPeuFy+tEZOq7l7ifJf1ik/kluDWhPr1ffsFG9puq1/jjJ4rod1BIC79Q5ZWPNvBInHyxfCew==","dependencies": {"@babel/core": "^7.20.7","@babel/plugin-syntax-typescript": "^7.20.0",@@ -7922,12 +7694,12 @@}},"node_modules/@vercel/remix": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/@vercel/remix/-/remix-2.1.0.tgz",- "integrity": "sha512-w+IrgzHFw15eNSsYNVCPokt2THUiRyS3yzLlXMkcsx/W8aNBlWl59pCqClJt6lawsWo0CUoi/FRX3PWcXa0XGg==",+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/@vercel/remix/-/remix-2.2.0.tgz",+ "integrity": "sha512-FmaGaJCLM8H3UrvYN9IPtdPgzJHhPeVl43Yt4g9cC/FKQGVLnGLsd5pAwWUl9ylkQGZxyfRx80UZ2+ByFP4PMA==","dependencies": {- "@remix-run/node": "2.1.0",- "@remix-run/server-runtime": "2.1.0",+ "@remix-run/node": "2.2.0",+ "@remix-run/server-runtime": "2.2.0","isbot": "^3.6.8"},"engines": {@@ -8208,9 +7980,9 @@}},"node_modules/acorn": {- "version": "7.4.1",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz",- "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",+ "version": "8.11.2",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.11.2.tgz",+ "integrity": "sha512-nc0Axzp/0FILLEVsm4fNwLCwMttvhEI263QtVPQcbpfZZ3ts0hLsZGOpE6czNlid7CJ9MlyH8reXkpsf3YUY4w==","bin": {"acorn": "bin/acorn"},@@ -8227,6 +7999,17 @@"acorn-walk": "^7.1.1"}},+ "node_modules/acorn-globals/node_modules/acorn": {+ "version": "7.4.1",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz",+ "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },"node_modules/acorn-jsx": {"version": "5.3.2","resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",@@ -8246,6 +8029,18 @@"xtend": "^4.0.2"}},+ "node_modules/acorn-node/node_modules/acorn": {+ "version": "7.4.1",+ "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz",+ "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",+ "dev": true,+ "bin": {+ "acorn": "bin/acorn"+ },+ "engines": {+ "node": ">=0.4.0"+ }+ },"node_modules/acorn-walk": {"version": "7.2.0","resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz",@@ -8297,17 +8092,6 @@"url": "https://github.com/sponsors/epoberezkin"}},- "node_modules/ansi-colors": {- "version": "4.1.3",- "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz",- "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==",- "dev": true,- "optional": true,- "peer": true,- "engines": {- "node": ">=6"- }- },"node_modules/ansi-escapes": {"version": "5.0.0","resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-5.0.0.tgz",@@ -8322,15 +8106,23 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/ansi-regex": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz",- "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==",+ "node_modules/ansi-escapes/node_modules/type-fest": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz",+ "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==","engines": {- "node": ">=12"+ "node": ">=10"},"funding": {- "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/ansi-regex": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",+ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "engines": {+ "node": ">=8"}},"node_modules/ansi-sequence-parser": {@@ -8339,14 +8131,17 @@"integrity": "sha512-vJXt3yiaUL4UU546s3rPXlsry/RnM730G1+HkpKE012AN0sx1eOrxSu95oKDIonskeLTijMgqWZ3uDEe3NFvyg=="},"node_modules/ansi-styles": {- "version": "3.2.1",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",- "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",+ "version": "4.3.0",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",+ "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==","dependencies": {- "color-convert": "^1.9.0"+ "color-convert": "^2.0.1"},"engines": {- "node": ">=4"+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"}},"node_modules/any-promise": {@@ -8583,9 +8378,9 @@}},"node_modules/ast-types-flow": {- "version": "0.0.7",- "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.7.tgz",- "integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag=="+ "version": "0.0.8",+ "resolved": "https://registry.npmjs.org/ast-types-flow/-/ast-types-flow-0.0.8.tgz",+ "integrity": "sha512-OH/2E5Fg20h2aPrbe+QL8JZQFko0YZaF+j4mnQ7BGhfavO7OpSLa8a0y9sBwomHdSbkhTS8TQNayBfnW5DwbvQ=="},"node_modules/astring": {"version": "1.8.6",@@ -8668,9 +8463,9 @@}},"node_modules/axe-core": {- "version": "4.8.2",- "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.8.2.tgz",- "integrity": "sha512-/dlp0fxyM3R8YW7MFzaHWXrf4zzbr0vaYb23VBFCl83R7nWNPg/yaQw2Dc8jzCMmDVLhSdzH8MjrsuIUuvX+6g==",+ "version": "4.7.0",+ "resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.7.0.tgz",+ "integrity": "sha512-M0JtH+hlOL5pLQwHOLNYZaXuhqmvS8oExsqB1SBYgA4Dk7u/xx+YdGHXaK5pyUfed5mYXdlYiphWq3G8cRi5JQ==","engines": {"node": ">=4"}@@ -8685,19 +8480,6 @@"proxy-from-env": "^1.1.0"}},- "node_modules/axios/node_modules/form-data": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",- "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",- "dependencies": {- "asynckit": "^0.4.0",- "combined-stream": "^1.0.8",- "mime-types": "^2.1.12"- },- "engines": {- "node": ">= 6"- }- },"node_modules/axobject-query": {"version": "3.2.1","resolved": "https://registry.npmjs.org/axobject-query/-/axobject-query-3.2.1.tgz",@@ -8727,51 +8509,6 @@"@babel/core": "^7.0.0"}},- "node_modules/babel-jest/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/babel-jest/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/babel-jest/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/babel-jest/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/babel-plugin-istanbul": {"version": "6.1.1","resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz",@@ -9221,9 +8958,9 @@}},"node_modules/bullmq": {- "version": "4.12.5",- "resolved": "https://registry.npmjs.org/bullmq/-/bullmq-4.12.5.tgz",- "integrity": "sha512-llBh5ejISbtdvSgQOqwgoXOdagBTLFbgy8FoYc03nKVV+H1OqlUOsTVmlUh3Q1GapMVzRilMHBMHBPKaaE5Bjg==",+ "version": "4.12.8",+ "resolved": "https://registry.npmjs.org/bullmq/-/bullmq-4.12.8.tgz",+ "integrity": "sha512-aG9o2/y6P+SvsIlIfjTP4Cn2wOsD6r7IplWBovi1wCmTMDBhtKsPVCC2ZKezaagtTCGtV6IN5Bx5g6WrtMUz0Q==","dependencies": {"cron-parser": "^4.6.0","glob": "^8.0.3",@@ -9439,9 +9176,9 @@}},"node_modules/caniuse-lite": {- "version": "1.0.30001553",- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001553.tgz",- "integrity": "sha512-N0ttd6TrFfuqKNi+pMgWJTb9qrdJu4JSpgPFLe/lrD19ugC6fZgF0pUewRowDwzdDnb9V41mFcdlYgl/PyKf4A==",+ "version": "1.0.30001559",+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001559.tgz",+ "integrity": "sha512-cPiMKZgqgkg5LY3/ntGeLFUpi6tzddBNS58A4tnTgQw1zON7u2sZMU7SzOeVH4tj20++9ggL+V6FDOFMTaFFYA==","funding": [{"type": "opencollective",@@ -9493,11 +9230,15 @@}},"node_modules/chalk": {- "version": "5.3.0",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz",- "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==",+ "version": "4.1.2",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",+ "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",+ "dependencies": {+ "ansi-styles": "^4.1.0",+ "supports-color": "^7.1.0"+ },"engines": {- "node": "^12.17.0 || ^14.13 || >=16.0.0"+ "node": ">=10"},"funding": {"url": "https://github.com/chalk/chalk?sponsor=1"@@ -9573,6 +9314,17 @@"fsevents": "~2.3.2"}},+ "node_modules/chokidar/node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },"node_modules/chownr": {"version": "2.0.0","resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",@@ -9616,74 +9368,16 @@"node": ">=0.10.0"}},- "node_modules/class-utils/node_modules/is-accessor-descriptor": {- "version": "0.1.6",- "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz",- "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==",- "dependencies": {- "kind-of": "^3.0.2"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/class-utils/node_modules/is-accessor-descriptor/node_modules/kind-of": {- "version": "3.2.2",- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",- "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",- "dependencies": {- "is-buffer": "^1.1.5"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/class-utils/node_modules/is-buffer": {- "version": "1.1.6",- "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",- "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="- },- "node_modules/class-utils/node_modules/is-data-descriptor": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",- "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==",- "dependencies": {- "kind-of": "^3.0.2"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/class-utils/node_modules/is-data-descriptor/node_modules/kind-of": {- "version": "3.2.2",- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",- "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",- "dependencies": {- "is-buffer": "^1.1.5"- },- "engines": {- "node": ">=0.10.0"- }- },"node_modules/class-utils/node_modules/is-descriptor": {- "version": "0.1.6",- "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz",- "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==",+ "version": "0.1.7",+ "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz",+ "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==","dependencies": {- "is-accessor-descriptor": "^0.1.6",- "is-data-descriptor": "^0.1.4",- "kind-of": "^5.0.0"+ "is-accessor-descriptor": "^1.0.1",+ "is-data-descriptor": "^1.0.1"},"engines": {- "node": ">=0.10.0"- }- },- "node_modules/class-utils/node_modules/kind-of": {- "version": "5.1.0",- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz",- "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==",- "engines": {- "node": ">=0.10.0"+ "node": ">= 0.4"}},"node_modules/classcat": {@@ -9879,44 +9573,6 @@"wrap-ansi": "^6.2.0"}},- "node_modules/cliui/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/cliui/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/cliui/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/cliui/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/cliui/node_modules/emoji-regex": {"version": "8.0.0","resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",@@ -9943,17 +9599,6 @@"node": ">=8"}},- "node_modules/cliui/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },"node_modules/cliui/node_modules/wrap-ansi": {"version": "6.2.0","resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz",@@ -10027,17 +9672,20 @@}},"node_modules/color-convert": {- "version": "1.9.3",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",- "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",+ "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==","dependencies": {- "color-name": "1.1.3"+ "color-name": "~1.1.4"+ },+ "engines": {+ "node": ">=7.0.0"}},"node_modules/color-name": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",- "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw=="+ "version": "1.1.4",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="},"node_modules/color2k": {"version": "2.0.2",@@ -10388,9 +10036,9 @@"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="},"node_modules/cytoscape": {- "version": "3.26.0",- "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.26.0.tgz",- "integrity": "sha512-IV+crL+KBcrCnVVUCZW+zRRRFUZQcrtdOPXki+o4CFUWLdAEYvuZLcBSJC9EBK++suamERKzeY7roq2hdovV3w==",+ "version": "3.27.0",+ "resolved": "https://registry.npmjs.org/cytoscape/-/cytoscape-3.27.0.tgz",+ "integrity": "sha512-pPZJilfX9BxESwujODz5pydeGi+FBrXq1rcaB1mfhFXXFJ9GjE6CNndAk+8jPzoXGD+16LtSS4xlYEIUiW4Abg==","dependencies": {"heap": "^0.2.6","lodash": "^4.17.21"@@ -10919,6 +10567,14 @@"node": ">=8"}},+ "node_modules/data-urls/node_modules/webidl-conversions": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz",+ "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==",+ "engines": {+ "node": ">=10.4"+ }+ },"node_modules/data-urls/node_modules/whatwg-url": {"version": "8.7.0","resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz",@@ -11375,9 +11031,9 @@"integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow=="},"node_modules/electron-to-chromium": {- "version": "1.4.566",- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.566.tgz",- "integrity": "sha512-mv+fAy27uOmTVlUULy15U3DVJ+jg+8iyKH1bpwboCRhtDC69GKf1PPTZvEIhCyDr81RFqfxZJYrbgp933a1vtg=="+ "version": "1.4.576",+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.576.tgz",+ "integrity": "sha512-yXsZyXJfAqzWk1WKryr0Wl0MN2D47xodPvEEwlVePBnhU5E7raevLQR+E6b9JAD3GfL/7MbAL9ZtWQQPcLx7wA=="},"node_modules/elkjs": {"version": "0.8.2",@@ -11428,46 +11084,6 @@"node": ">=10.13.0"}},- "node_modules/enquirer": {- "version": "2.4.1",- "resolved": "https://registry.npmjs.org/enquirer/-/enquirer-2.4.1.tgz",- "integrity": "sha512-rRqJg/6gd538VHvR3PSrdRBb/1Vy2YfzHqzvbhGIQpDRKIa4FgV/54b5Q1xYSxOOwKvjXweS26E0Q+nAMwp2pQ==",- "dev": true,- "optional": true,- "peer": true,- "dependencies": {- "ansi-colors": "^4.1.1",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8.6"- }- },- "node_modules/enquirer/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "dev": true,- "optional": true,- "peer": true,- "engines": {- "node": ">=8"- }- },- "node_modules/enquirer/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "optional": true,- "peer": true,- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },"node_modules/entities": {"version": "3.0.1","resolved": "https://registry.npmjs.org/entities/-/entities-3.0.1.tgz",@@ -11584,6 +11200,11 @@"safe-array-concat": "^1.0.1"}},+ "node_modules/es-module-lexer": {+ "version": "1.3.1",+ "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-1.3.1.tgz",+ "integrity": "sha512-JUFAyicQV9mXc3YRxPnDlrfBKpqt6hUYzz9/boprUJHs4e4KVr3XwOF70doO6gwXUor6EWZJAyWAfKki84t20Q=="+ },"node_modules/es-set-tostringtag": {"version": "2.0.2","resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.2.tgz",@@ -11655,9 +11276,9 @@}},"node_modules/esbuild": {- "version": "0.18.20",- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz",- "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==",+ "version": "0.17.19",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.19.tgz",+ "integrity": "sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==","hasInstallScript": true,"bin": {"esbuild": "bin/esbuild"@@ -11666,28 +11287,28 @@"node": ">=12"},"optionalDependencies": {- "@esbuild/android-arm": "0.18.20",- "@esbuild/android-arm64": "0.18.20",- "@esbuild/android-x64": "0.18.20",- "@esbuild/darwin-arm64": "0.18.20",- "@esbuild/darwin-x64": "0.18.20",- "@esbuild/freebsd-arm64": "0.18.20",- "@esbuild/freebsd-x64": "0.18.20",- "@esbuild/linux-arm": "0.18.20",- "@esbuild/linux-arm64": "0.18.20",- "@esbuild/linux-ia32": "0.18.20",- "@esbuild/linux-loong64": "0.18.20",- "@esbuild/linux-mips64el": "0.18.20",- "@esbuild/linux-ppc64": "0.18.20",- "@esbuild/linux-riscv64": "0.18.20",- "@esbuild/linux-s390x": "0.18.20",- "@esbuild/linux-x64": "0.18.20",- "@esbuild/netbsd-x64": "0.18.20",- "@esbuild/openbsd-x64": "0.18.20",- "@esbuild/sunos-x64": "0.18.20",- "@esbuild/win32-arm64": "0.18.20",- "@esbuild/win32-ia32": "0.18.20",- "@esbuild/win32-x64": "0.18.20"+ "@esbuild/android-arm": "0.17.19",+ "@esbuild/android-arm64": "0.17.19",+ "@esbuild/android-x64": "0.17.19",+ "@esbuild/darwin-arm64": "0.17.19",+ "@esbuild/darwin-x64": "0.17.19",+ "@esbuild/freebsd-arm64": "0.17.19",+ "@esbuild/freebsd-x64": "0.17.19",+ "@esbuild/linux-arm": "0.17.19",+ "@esbuild/linux-arm64": "0.17.19",+ "@esbuild/linux-ia32": "0.17.19",+ "@esbuild/linux-loong64": "0.17.19",+ "@esbuild/linux-mips64el": "0.17.19",+ "@esbuild/linux-ppc64": "0.17.19",+ "@esbuild/linux-riscv64": "0.17.19",+ "@esbuild/linux-s390x": "0.17.19",+ "@esbuild/linux-x64": "0.17.19",+ "@esbuild/netbsd-x64": "0.17.19",+ "@esbuild/openbsd-x64": "0.17.19",+ "@esbuild/sunos-x64": "0.17.19",+ "@esbuild/win32-arm64": "0.17.19",+ "@esbuild/win32-ia32": "0.17.19",+ "@esbuild/win32-x64": "0.17.19"}},"node_modules/esbuild-plugins-node-modules-polyfill": {@@ -11750,15 +11371,24 @@"source-map": "~0.6.1"}},+ "node_modules/escodegen/node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "optional": true,+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/eslint": {- "version": "8.52.0",- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.52.0.tgz",- "integrity": "sha512-zh/JHnaixqHZsolRB/w9/02akBk9EPrOs9JwcTP2ek7yL5bVvXuRariiaAjjoJ5DvuwQ1WAE/HsMz+w17YgBCg==",+ "version": "8.53.0",+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.53.0.tgz",+ "integrity": "sha512-N4VuiPjXDUa4xVeV/GC/RV3hQW9Nw+Y463lkWaKKXKYMvmRiRDAtfpuPFLN+E1/6ZhyR8J2ig+eVREnYgUsiag==","dependencies": {"@eslint-community/eslint-utils": "^4.2.0","@eslint-community/regexpp": "^4.6.1",- "@eslint/eslintrc": "^2.1.2",- "@eslint/js": "8.52.0",+ "@eslint/eslintrc": "^2.1.3",+ "@eslint/js": "8.53.0","@humanwhocodes/config-array": "^0.11.13","@humanwhocodes/module-importer": "^1.0.1","@nodelib/fs.walk": "^1.2.8",@@ -12034,26 +11664,26 @@}},"node_modules/eslint-plugin-jsx-a11y": {- "version": "6.7.1",- "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz",- "integrity": "sha512-63Bog4iIethyo8smBklORknVjB0T2dwB8Mr/hIC+fBS0uyHdYYpzM/Ed+YC8VxTjlXHEWFOdmgwcDn1U2L9VCA==",+ "version": "6.8.0",+ "resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.8.0.tgz",+ "integrity": "sha512-Hdh937BS3KdwwbBaKd5+PLCOmYY6U4f2h9Z2ktwtNKvIdIEu137rjYbcb9ApSbVJfWxANNuiKTD/9tOKjK9qOA==","dependencies": {- "@babel/runtime": "^7.20.7",- "aria-query": "^5.1.3",- "array-includes": "^3.1.6",- "array.prototype.flatmap": "^1.3.1",- "ast-types-flow": "^0.0.7",- "axe-core": "^4.6.2",- "axobject-query": "^3.1.1",+ "@babel/runtime": "^7.23.2",+ "aria-query": "^5.3.0",+ "array-includes": "^3.1.7",+ "array.prototype.flatmap": "^1.3.2",+ "ast-types-flow": "^0.0.8",+ "axe-core": "=4.7.0",+ "axobject-query": "^3.2.1","damerau-levenshtein": "^1.0.8","emoji-regex": "^9.2.2",- "has": "^1.0.3",- "jsx-ast-utils": "^3.3.3",- "language-tags": "=1.0.5",+ "es-iterator-helpers": "^1.0.15",+ "hasown": "^2.0.0",+ "jsx-ast-utils": "^3.3.5",+ "language-tags": "^1.0.9","minimatch": "^3.1.2",- "object.entries": "^1.1.6",- "object.fromentries": "^2.0.6",- "semver": "^6.3.0"+ "object.entries": "^1.1.7",+ "object.fromentries": "^2.0.7"},"engines": {"node": ">=4.0"@@ -12062,12 +11692,12 @@"eslint": "^3 || ^4 || ^5 || ^6 || ^7 || ^8"}},- "node_modules/eslint-plugin-jsx-a11y/node_modules/semver": {- "version": "6.3.1",- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",- "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",- "bin": {- "semver": "bin/semver.js"+ "node_modules/eslint-plugin-jsx-a11y/node_modules/aria-query": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/aria-query/-/aria-query-5.3.0.tgz",+ "integrity": "sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A==",+ "dependencies": {+ "dequal": "^2.0.3"}},"node_modules/eslint-plugin-node": {@@ -12188,23 +11818,18 @@}},"node_modules/eslint-scope": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-5.1.1.tgz",- "integrity": "sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw==",+ "version": "7.2.2",+ "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",+ "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==","dependencies": {"esrecurse": "^4.3.0",- "estraverse": "^4.1.1"+ "estraverse": "^5.2.0"},"engines": {- "node": ">=8.0.0"- }- },- "node_modules/eslint-scope/node_modules/estraverse": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz",- "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==",- "engines": {- "node": ">=4.0"+ "node": "^12.22.0 || ^14.17.0 || >=16.0.0"+ },+ "funding": {+ "url": "https://opencollective.com/eslint"}},"node_modules/eslint-utils": {@@ -12240,96 +11865,6 @@"url": "https://opencollective.com/eslint"}},- "node_modules/eslint/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/eslint/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/eslint/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/eslint/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/eslint/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },- "node_modules/eslint/node_modules/eslint-scope": {- "version": "7.2.2",- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",- "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",- "dependencies": {- "esrecurse": "^4.3.0",- "estraverse": "^5.2.0"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/eslint/node_modules/glob-parent": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",- "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",- "dependencies": {- "is-glob": "^4.0.3"- },- "engines": {- "node": ">=10.13.0"- }- },- "node_modules/eslint/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },"node_modules/espree": {"version": "9.6.1","resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",@@ -12346,17 +11881,6 @@"url": "https://opencollective.com/eslint"}},- "node_modules/espree/node_modules/acorn": {- "version": "8.10.0",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz",- "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==",- "bin": {- "acorn": "bin/acorn"- },- "engines": {- "node": ">=0.4.0"- }- },"node_modules/esprima": {"version": "4.0.1","resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",@@ -12623,74 +12147,16 @@"node": ">=0.10.0"}},- "node_modules/expand-brackets/node_modules/is-accessor-descriptor": {- "version": "0.1.6",- "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz",- "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==",+ "node_modules/expand-brackets/node_modules/is-descriptor": {+ "version": "0.1.7",+ "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz",+ "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==","dependencies": {- "kind-of": "^3.0.2"+ "is-accessor-descriptor": "^1.0.1",+ "is-data-descriptor": "^1.0.1"},"engines": {- "node": ">=0.10.0"- }- },- "node_modules/expand-brackets/node_modules/is-accessor-descriptor/node_modules/kind-of": {- "version": "3.2.2",- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",- "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",- "dependencies": {- "is-buffer": "^1.1.5"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/expand-brackets/node_modules/is-buffer": {- "version": "1.1.6",- "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",- "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="- },- "node_modules/expand-brackets/node_modules/is-data-descriptor": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",- "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==",- "dependencies": {- "kind-of": "^3.0.2"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/expand-brackets/node_modules/is-data-descriptor/node_modules/kind-of": {- "version": "3.2.2",- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",- "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",- "dependencies": {- "is-buffer": "^1.1.5"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/expand-brackets/node_modules/is-descriptor": {- "version": "0.1.6",- "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz",- "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==",- "dependencies": {- "is-accessor-descriptor": "^0.1.6",- "is-data-descriptor": "^0.1.4",- "kind-of": "^5.0.0"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/expand-brackets/node_modules/kind-of": {- "version": "5.1.0",- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz",- "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==",- "engines": {- "node": ">=0.10.0"+ "node": ">= 0.4"}},"node_modules/expand-brackets/node_modules/ms": {@@ -12714,36 +12180,6 @@"node": ">= 10.14.2"}},- "node_modules/expect/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/expect/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/expect/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/express": {"version": "4.18.2","resolved": "https://registry.npmjs.org/express/-/express-4.18.2.tgz",@@ -12916,6 +12352,17 @@"node": ">=8.6.0"}},+ "node_modules/fast-glob/node_modules/glob-parent": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",+ "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "dependencies": {+ "is-glob": "^4.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },"node_modules/fast-json-stable-stringify": {"version": "2.1.0","resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",@@ -13183,9 +12630,9 @@}},"node_modules/form-data": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz",- "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==",+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",+ "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==","dependencies": {"asynckit": "^0.4.0","combined-stream": "^1.0.8",@@ -13581,14 +13028,14 @@}},"node_modules/glob-parent": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",- "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",+ "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==","dependencies": {- "is-glob": "^4.0.1"+ "is-glob": "^4.0.3"},"engines": {- "node": ">= 6"+ "node": ">=10.13.0"}},"node_modules/glob-to-regexp": {@@ -13632,17 +13079,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/globals/node_modules/type-fest": {- "version": "0.20.2",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",- "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },"node_modules/globalthis": {"version": "1.0.3","resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz",@@ -13753,14 +13189,6 @@"gunzip-maybe": "bin.js"}},- "node_modules/has": {- "version": "1.0.4",- "resolved": "https://registry.npmjs.org/has/-/has-1.0.4.tgz",- "integrity": "sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ==",- "engines": {- "node": ">= 0.4.0"- }- },"node_modules/has-bigints": {"version": "1.0.2","resolved": "https://registry.npmjs.org/has-bigints/-/has-bigints-1.0.2.tgz",@@ -13903,6 +13331,17 @@"url": "https://github.com/sponsors/sindresorhus"}},+ "node_modules/hash-obj/node_modules/type-fest": {+ "version": "1.4.0",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz",+ "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==",+ "engines": {+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/hasown": {"version": "2.0.0","resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.0.tgz",@@ -14737,14 +14176,14 @@}},"node_modules/is-accessor-descriptor": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz",- "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==",+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.1.tgz",+ "integrity": "sha512-YBUanLI8Yoihw923YeFUS5fs0fF2f5TSFTNiYAAzhhDscDa3lEqYuz1pDOEP5KvX94I9ey3vsqjJcLVFVU+3QA==","dependencies": {- "kind-of": "^6.0.0"+ "hasown": "^2.0.0"},"engines": {- "node": ">=0.10.0"+ "node": ">= 0.10"}},"node_modules/is-alphabetical": {@@ -14909,14 +14348,14 @@}},"node_modules/is-data-descriptor": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz",- "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==",+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.1.tgz",+ "integrity": "sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw==","dependencies": {- "kind-of": "^6.0.0"+ "hasown": "^2.0.0"},"engines": {- "node": ">=0.10.0"+ "node": ">= 0.4"}},"node_modules/is-date-object": {@@ -14948,16 +14387,15 @@"integrity": "sha512-YDoFpuZWu1VRXlsnlYMzKyVRITXj7Ej/V9gXQ2/pAe7X1J7M/RNOqaIYi6qUn+B7nGyB9pDXrv02dsB58d2ZAQ=="},"node_modules/is-descriptor": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz",- "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==",+ "version": "1.0.3",+ "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.3.tgz",+ "integrity": "sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw==","dependencies": {- "is-accessor-descriptor": "^1.0.0",- "is-data-descriptor": "^1.0.0",- "kind-of": "^6.0.2"+ "is-accessor-descriptor": "^1.0.1",+ "is-data-descriptor": "^1.0.1"},"engines": {- "node": ">=0.10.0"+ "node": ">= 0.4"}},"node_modules/is-docker": {@@ -15420,6 +14858,14 @@"node": ">=10"}},+ "node_modules/istanbul-lib-source-maps/node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/istanbul-reports": {"version": "3.1.6","resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.6.tgz",@@ -15626,51 +15072,6 @@"node": ">= 10.14.2"}},- "node_modules/jest-cli/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/jest-cli/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/jest-cli/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/jest-cli/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/jest-config": {"version": "26.6.3","resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz",@@ -15707,59 +15108,6 @@}}},- "node_modules/jest-config/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/jest-config/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/jest-config/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/jest-config/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/jest-config/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/jest-config/node_modules/glob": {"version": "7.2.3","resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",@@ -15812,68 +15160,15 @@"node": ">= 10.14.2"}},- "node_modules/jest-diff/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/jest-diff/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "node_modules/jest-diff/node_modules/pretty-format": {+ "version": "26.6.2",+ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz",+ "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==","dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/jest-diff/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/jest-diff/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/jest-diff/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },- "node_modules/jest-diff/node_modules/pretty-format": {- "version": "26.6.2",- "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz",- "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==",- "dependencies": {- "@jest/types": "^26.6.2",- "ansi-regex": "^5.0.0",- "ansi-styles": "^4.0.0",- "react-is": "^17.0.1"+ "@jest/types": "^26.6.2",+ "ansi-regex": "^5.0.0",+ "ansi-styles": "^4.0.0",+ "react-is": "^17.0.1"},"engines": {"node": ">= 10"@@ -15910,59 +15205,6 @@"node": ">= 10.14.2"}},- "node_modules/jest-each/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/jest-each/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/jest-each/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/jest-each/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/jest-each/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/jest-each/node_modules/pretty-format": {"version": "26.6.2","resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz",@@ -16077,59 +15319,6 @@"node": ">= 10.14.2"}},- "node_modules/jest-jasmine2/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/jest-jasmine2/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/jest-jasmine2/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/jest-jasmine2/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/jest-jasmine2/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/jest-jasmine2/node_modules/pretty-format": {"version": "26.6.2","resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz",@@ -16161,44 +15350,6 @@"node": ">= 10.14.2"}},- "node_modules/jest-leak-detector/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/jest-leak-detector/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/jest-leak-detector/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/jest-leak-detector/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/jest-leak-detector/node_modules/pretty-format": {"version": "26.6.2","resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz",@@ -16232,59 +15383,6 @@"node": ">= 10.14.2"}},- "node_modules/jest-matcher-utils/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/jest-matcher-utils/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/jest-matcher-utils/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/jest-matcher-utils/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/jest-matcher-utils/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/jest-matcher-utils/node_modules/pretty-format": {"version": "26.6.2","resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz",@@ -16323,85 +15421,32 @@"node": ">= 10.14.2"}},- "node_modules/jest-message-util/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "node_modules/jest-message-util/node_modules/pretty-format": {+ "version": "26.6.2",+ "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz",+ "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==",+ "dependencies": {+ "@jest/types": "^26.6.2",+ "ansi-regex": "^5.0.0",+ "ansi-styles": "^4.0.0",+ "react-is": "^17.0.1"+ },"engines": {- "node": ">=8"+ "node": ">= 10"}},- "node_modules/jest-message-util/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "node_modules/jest-message-util/node_modules/react-is": {+ "version": "17.0.2",+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",+ "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w=="+ },+ "node_modules/jest-mock": {+ "version": "26.6.2",+ "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-26.6.2.tgz",+ "integrity": "sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew==","dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/jest-message-util/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/jest-message-util/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/jest-message-util/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },- "node_modules/jest-message-util/node_modules/pretty-format": {- "version": "26.6.2",- "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz",- "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==",- "dependencies": {- "@jest/types": "^26.6.2",- "ansi-regex": "^5.0.0",- "ansi-styles": "^4.0.0",- "react-is": "^17.0.1"- },- "engines": {- "node": ">= 10"- }- },- "node_modules/jest-message-util/node_modules/react-is": {- "version": "17.0.2",- "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz",- "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w=="- },- "node_modules/jest-mock": {- "version": "26.6.2",- "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-26.6.2.tgz",- "integrity": "sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew==",- "dependencies": {- "@jest/types": "^26.6.2",- "@types/node": "*"+ "@jest/types": "^26.6.2",+ "@types/node": "*"},"engines": {"node": ">= 10.14.2"@@ -16462,51 +15507,6 @@"node": ">= 10.14.2"}},- "node_modules/jest-resolve/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/jest-resolve/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/jest-resolve/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/jest-resolve/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/jest-runner": {"version": "26.6.3","resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-26.6.3.tgz",@@ -16537,51 +15537,6 @@"node": ">= 10.14.2"}},- "node_modules/jest-runner/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/jest-runner/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/jest-runner/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/jest-runner/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/jest-runtime": {"version": "26.6.3","resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.6.3.tgz",@@ -16622,51 +15577,6 @@"node": ">= 10.14.2"}},- "node_modules/jest-runtime/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/jest-runtime/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/jest-runtime/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/jest-runtime/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/jest-runtime/node_modules/glob": {"version": "7.2.3","resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",@@ -16732,59 +15642,6 @@"node": ">= 10.14.2"}},- "node_modules/jest-snapshot/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/jest-snapshot/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/jest-snapshot/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/jest-snapshot/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/jest-snapshot/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/jest-snapshot/node_modules/lru-cache": {"version": "6.0.0","resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",@@ -16845,131 +15702,33 @@"node": ">= 10.14.2"}},- "node_modules/jest-util/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "node_modules/jest-validate": {+ "version": "26.6.2",+ "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz",+ "integrity": "sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ==","dependencies": {- "color-convert": "^2.0.1"+ "@jest/types": "^26.6.2",+ "camelcase": "^6.0.0",+ "chalk": "^4.0.0",+ "jest-get-type": "^26.3.0",+ "leven": "^3.1.0",+ "pretty-format": "^26.6.2"},"engines": {- "node": ">=8"+ "node": ">= 10.14.2"+ }+ },+ "node_modules/jest-validate/node_modules/camelcase": {+ "version": "6.3.0",+ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz",+ "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==",+ "engines": {+ "node": ">=10"},"funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/jest-util/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/jest-util/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/jest-util/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },- "node_modules/jest-validate": {- "version": "26.6.2",- "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz",- "integrity": "sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ==",- "dependencies": {- "@jest/types": "^26.6.2",- "camelcase": "^6.0.0",- "chalk": "^4.0.0",- "jest-get-type": "^26.3.0",- "leven": "^3.1.0",- "pretty-format": "^26.6.2"- },- "engines": {- "node": ">= 10.14.2"- }- },- "node_modules/jest-validate/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/jest-validate/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/jest-validate/node_modules/camelcase": {- "version": "6.3.0",- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz",- "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/jest-validate/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/jest-validate/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/jest-validate/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/jest-validate/node_modules/pretty-format": {"version": "26.6.2","resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz",@@ -17020,51 +15779,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/jest-watcher/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/jest-watcher/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/jest-watcher/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/jest-watcher/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/jest-watcher/node_modules/type-fest": {"version": "0.21.3","resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",@@ -17159,15 +15873,17 @@}}},- "node_modules/jsdom/node_modules/acorn": {- "version": "8.10.0",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz",- "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==",- "bin": {- "acorn": "bin/acorn"+ "node_modules/jsdom/node_modules/form-data": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz",+ "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==",+ "dependencies": {+ "asynckit": "^0.4.0",+ "combined-stream": "^1.0.8",+ "mime-types": "^2.1.12"},"engines": {- "node": ">=0.4.0"+ "node": ">= 6"}},"node_modules/jsdom/node_modules/tr46": {@@ -17181,6 +15897,14 @@"node": ">=8"}},+ "node_modules/jsdom/node_modules/webidl-conversions": {+ "version": "6.1.0",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz",+ "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==",+ "engines": {+ "node": ">=10.4"+ }+ },"node_modules/jsdom/node_modules/whatwg-url": {"version": "8.7.0","resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz",@@ -17333,11 +16057,14 @@"integrity": "sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w=="},"node_modules/language-tags": {- "version": "1.0.5",- "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.5.tgz",- "integrity": "sha512-qJhlO9cGXi6hBGKoxEG/sKZDAHD5Hnu9Hs4WbOY3pCWXDhw0N8x1NenNzm2EnNLkLkk7J2SdxAkDSbb6ftT+UQ==",+ "version": "1.0.9",+ "resolved": "https://registry.npmjs.org/language-tags/-/language-tags-1.0.9.tgz",+ "integrity": "sha512-MbjN408fEndfiQXbFQ1vnd+1NoLDsnQW41410oQBXiyXDMYH5z505juWa4KUE1LqxRC7DgOgZDbKLxHIwm27hA==","dependencies": {- "language-subtag-registry": "~0.3.2"+ "language-subtag-registry": "^0.3.20"+ },+ "engines": {+ "node": ">=0.10"}},"node_modules/layout-base": {@@ -17413,6 +16140,18 @@"url": "https://opencollective.com/lint-staged"}},+ "node_modules/lint-staged/node_modules/chalk": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz",+ "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==",+ "dev": true,+ "engines": {+ "node": "^12.17.0 || ^14.13 || >=16.0.0"+ },+ "funding": {+ "url": "https://github.com/chalk/chalk?sponsor=1"+ }+ },"node_modules/listr2": {"version": "6.6.1","resolved": "https://registry.npmjs.org/listr2/-/listr2-6.6.1.tgz",@@ -17566,68 +16305,50 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/log-symbols/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "node_modules/log-update": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/log-update/-/log-update-5.0.1.tgz",+ "integrity": "sha512-5UtUDQ/6edw4ofyljDNcOVJQ4c7OjDro4h3y8e1GQL5iYElYclVHJ3zeWchylvMaKnDbDilC8irOVyexnA/Slw==",+ "dev": true,"dependencies": {- "color-convert": "^2.0.1"+ "ansi-escapes": "^5.0.0",+ "cli-cursor": "^4.0.0",+ "slice-ansi": "^5.0.0",+ "strip-ansi": "^7.0.1",+ "wrap-ansi": "^8.0.1"},"engines": {- "node": ">=8"+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"},"funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/log-symbols/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },+ "node_modules/log-update/node_modules/ansi-regex": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz",+ "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==",+ "dev": true,"engines": {- "node": ">=10"+ "node": ">=12"},"funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/log-symbols/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"}},- "node_modules/log-symbols/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },- "node_modules/log-update": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/log-update/-/log-update-5.0.1.tgz",- "integrity": "sha512-5UtUDQ/6edw4ofyljDNcOVJQ4c7OjDro4h3y8e1GQL5iYElYclVHJ3zeWchylvMaKnDbDilC8irOVyexnA/Slw==",+ "node_modules/log-update/node_modules/strip-ansi": {+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",+ "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==","dev": true,"dependencies": {- "ansi-escapes": "^5.0.0",- "cli-cursor": "^4.0.0",- "slice-ansi": "^5.0.0",- "strip-ansi": "^7.0.1",- "wrap-ansi": "^8.0.1"+ "ansi-regex": "^6.0.1"},"engines": {- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"+ "node": ">=12"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"}},"node_modules/longest-streak": {@@ -18340,9 +17061,9 @@}},"node_modules/mermaid": {- "version": "10.5.1",- "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.5.1.tgz",- "integrity": "sha512-+4mkGW5PptHDSae4YZ/Jw1pEOf0irrB/aCL6BwZcJPhr5+84UJBrQnHTvyPqCUz67tXkrDvSzWv4B+J2hLO78g==",+ "version": "10.6.0",+ "resolved": "https://registry.npmjs.org/mermaid/-/mermaid-10.6.0.tgz",+ "integrity": "sha512-Hcti+Q2NiWnb2ZCijSX89Bn2i7TCUwosBdIn/d+u63Sz7y40XU6EKMctT4UX4qZuZGfKGZpfOeim2/KTrdR7aQ==","dependencies": {"@braintree/sanitize-url": "^6.0.1","@types/d3-scale": "^4.0.3",@@ -18719,17 +17440,6 @@"url": "https://opencollective.com/unified"}},- "node_modules/micromark-extension-mdxjs/node_modules/acorn": {- "version": "8.10.0",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz",- "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==",- "bin": {- "acorn": "bin/acorn"- },- "engines": {- "node": ">=0.4.0"- }- },"node_modules/micromark-factory-destination": {"version": "1.1.0","resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-1.1.0.tgz",@@ -19374,17 +18084,6 @@"ufo": "^1.3.0"}},- "node_modules/mlly/node_modules/acorn": {- "version": "8.10.0",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz",- "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==",- "bin": {- "acorn": "bin/acorn"- },- "engines": {- "node": ">=0.4.0"- }- },"node_modules/morgan": {"version": "1.10.0","resolved": "https://registry.npmjs.org/morgan/-/morgan-1.10.0.tgz",@@ -19641,9 +18340,9 @@}},"node_modules/next-seo": {- "version": "6.1.0",- "resolved": "https://registry.npmjs.org/next-seo/-/next-seo-6.1.0.tgz",- "integrity": "sha512-iMBpFoJsR5zWhguHJvsoBDxDSmdYTHtnVPB1ij+CD0NReQCP78ZxxbdL9qkKIf4oEuZEqZkrjAQLB0bkII7RYA==",+ "version": "6.4.0",+ "resolved": "https://registry.npmjs.org/next-seo/-/next-seo-6.4.0.tgz",+ "integrity": "sha512-XQFxkOL2hw0YE+P100HbI3EAvcludlHPxuzMgaIjKb7kPK0CvjGvLFjd9hszZFEDc5oiQkGFA8+cuWcnip7eYA==","peerDependencies": {"next": "^8.1.1-canary.54 || >=9.0.0","react": ">=16.0.0",@@ -20225,6 +18924,18 @@"node": ">= 4"}},+ "node_modules/npm-run-all/node_modules/ansi-styles": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",+ "dev": true,+ "dependencies": {+ "color-convert": "^1.9.0"+ },+ "engines": {+ "node": ">=4"+ }+ },"node_modules/npm-run-all/node_modules/chalk": {"version": "2.4.2","resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz",@@ -20239,6 +18950,21 @@"node": ">=4"}},+ "node_modules/npm-run-all/node_modules/color-convert": {+ "version": "1.9.3",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",+ "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",+ "dev": true,+ "dependencies": {+ "color-name": "1.1.3"+ }+ },+ "node_modules/npm-run-all/node_modules/color-name": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",+ "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==",+ "dev": true+ },"node_modules/npm-run-all/node_modules/cross-spawn": {"version": "6.0.5","resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",@@ -20419,52 +19145,21 @@"node": ">=0.10.0"}},- "node_modules/object-copy/node_modules/is-accessor-descriptor": {- "version": "0.1.6",- "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz",- "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==",- "dependencies": {- "kind-of": "^3.0.2"- },- "engines": {- "node": ">=0.10.0"- }- },"node_modules/object-copy/node_modules/is-buffer": {"version": "1.1.6","resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz","integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="},- "node_modules/object-copy/node_modules/is-data-descriptor": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",- "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==",- "dependencies": {- "kind-of": "^3.0.2"- },- "engines": {- "node": ">=0.10.0"- }- },"node_modules/object-copy/node_modules/is-descriptor": {- "version": "0.1.6",- "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz",- "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==",+ "version": "0.1.7",+ "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz",+ "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==","dependencies": {- "is-accessor-descriptor": "^0.1.6",- "is-data-descriptor": "^0.1.4",- "kind-of": "^5.0.0"+ "is-accessor-descriptor": "^1.0.1",+ "is-data-descriptor": "^1.0.1"},"engines": {- "node": ">=0.10.0"- }- },- "node_modules/object-copy/node_modules/is-descriptor/node_modules/kind-of": {- "version": "5.1.0",- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz",- "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==",- "engines": {- "node": ">=0.10.0"+ "node": ">= 0.4"}},"node_modules/object-copy/node_modules/kind-of": {@@ -20716,43 +19411,6 @@"url": "https://github.com/sponsors/sindresorhus"}},- "node_modules/ora/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/ora/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/ora/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },"node_modules/ora/node_modules/cli-cursor": {"version": "3.1.0","resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz",@@ -20764,22 +19422,6 @@"node": ">=8"}},- "node_modules/ora/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/ora/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },"node_modules/ora/node_modules/mimic-fn": {"version": "2.1.0","resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",@@ -20814,17 +19456,6 @@"node": ">=8"}},- "node_modules/ora/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },"node_modules/orderedmap": {"version": "2.1.1","resolved": "https://registry.npmjs.org/orderedmap/-/orderedmap-2.1.1.tgz",@@ -20960,6 +19591,11 @@"node": ">=6"}},+ "node_modules/parse-multipart-data": {+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/parse-multipart-data/-/parse-multipart-data-1.5.0.tgz",+ "integrity": "sha512-ck5zaMF0ydjGfejNMnlo5YU2oJ+pT+80Jb1y4ybanT27j+zbVP/jkYmCrUGsEln0Ox/hZmuvgy8Ra7AxbXP2Mw=="+ },"node_modules/parse-numeric-range": {"version": "1.3.0","resolved": "https://registry.npmjs.org/parse-numeric-range/-/parse-numeric-range-1.3.0.tgz",@@ -21252,6 +19888,23 @@"postcss": "^8.2.15"}},+ "node_modules/postcss-import": {+ "version": "14.1.0",+ "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-14.1.0.tgz",+ "integrity": "sha512-flwI+Vgm4SElObFVPpTIT7SU7R3qk2L7PyduMcokiaVKuWv9d/U+Gm/QAd8NDLuykTWTkcrjOeD2Pp1rMeBTGw==",+ "dev": true,+ "dependencies": {+ "postcss-value-parser": "^4.0.0",+ "read-cache": "^1.0.0",+ "resolve": "^1.1.7"+ },+ "engines": {+ "node": ">=10.0.0"+ },+ "peerDependencies": {+ "postcss": "^8.0.0"+ }+ },"node_modules/postcss-js": {"version": "4.0.1","resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.0.1.tgz",@@ -21382,6 +20035,25 @@"postcss": "^8.1.0"}},+ "node_modules/postcss-nested": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.0.tgz",+ "integrity": "sha512-0DkamqrPcmkBDsLn+vQDIrtkSbNkv5AD/M322ySo9kqFkCIYklym2xEmWkwo+Y3/qZo34tzEPNUw4y7yMCdv5w==",+ "dev": true,+ "dependencies": {+ "postcss-selector-parser": "^6.0.10"+ },+ "engines": {+ "node": ">=12.0"+ },+ "funding": {+ "type": "opencollective",+ "url": "https://opencollective.com/postcss/"+ },+ "peerDependencies": {+ "postcss": "^8.2.14"+ }+ },"node_modules/postcss-selector-parser": {"version": "6.0.13","resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.0.13.tgz",@@ -21434,14 +20106,6 @@"node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0"}},- "node_modules/pretty-format/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },"node_modules/pretty-format/node_modules/ansi-styles": {"version": "5.2.0","resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",@@ -21525,9 +20189,9 @@}},"node_modules/property-information": {- "version": "6.3.0",- "resolved": "https://registry.npmjs.org/property-information/-/property-information-6.3.0.tgz",- "integrity": "sha512-gVNZ74nqhRMiIUYWGQdosYetaKc83x8oT41a0LlV3AAFCAZwCpg4vmGkq8t34+cUhp3cnM4XDiU/7xlgK7HGrg==",+ "version": "6.4.0",+ "resolved": "https://registry.npmjs.org/property-information/-/property-information-6.4.0.tgz",+ "integrity": "sha512-9t5qARVofg2xQqKtytzt+lZ4d1Qvj8t5B8fEwXK6qOfgRLgH/b13QlgEyDh033NOS31nXeFbYv7CLUDG1CeifQ==","funding": {"type": "github","url": "https://github.com/sponsors/wooorm"@@ -21701,9 +20365,9 @@}},"node_modules/prosemirror-view": {- "version": "1.32.1",- "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.32.1.tgz",- "integrity": "sha512-9SnB4HBgRczzTyIMZLPE1iszegL04hNfUyS8uPtP1RPxNM2NTCiIs8KwNsJU4nbZO9rxJTwVTv7Jm3zU4CR78A==",+ "version": "1.32.3",+ "resolved": "https://registry.npmjs.org/prosemirror-view/-/prosemirror-view-1.32.3.tgz",+ "integrity": "sha512-tP7AUTxisM0m3PDxs6vDWgTjgcbFo4fnwg2M/5NHlgMqUJgBNOqSUZETBZKmLD7AxGN3GZ5yqEzQv9r9VCZKrg==","dependencies": {"prosemirror-model": "^1.16.0","prosemirror-state": "^1.0.0",@@ -21768,9 +20432,9 @@}},"node_modules/punycode": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",- "integrity": "sha512-rRV+zQD8tVFys26lAGR9WUuS4iUAngJScM+ZRSKtvl5tKeZ2t5bvdNFdNHBW9FWR4guGHlgmsZ1G7BSm2wTbuA==",+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",+ "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==","engines": {"node": ">=6"}@@ -21992,11 +20656,11 @@}},"node_modules/react-router": {- "version": "6.17.0",- "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.17.0.tgz",- "integrity": "sha512-YJR3OTJzi3zhqeJYADHANCGPUu9J+6fT5GLv82UWRGSxu6oJYCKVmxUcaBQuGm9udpWmPsvpme/CdHumqgsoaA==",+ "version": "6.18.0",+ "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.18.0.tgz",+ "integrity": "sha512-vk2y7Dsy8wI02eRRaRmOs9g2o+aE72YCx5q9VasT1N9v+lrdB79tIqrjMfByHiY5+6aYkH2rUa5X839nwWGPDg==","dependencies": {- "@remix-run/router": "1.10.0"+ "@remix-run/router": "1.11.0"},"engines": {"node": ">=14.0.0"@@ -22006,12 +20670,12 @@}},"node_modules/react-router-dom": {- "version": "6.17.0",- "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.17.0.tgz",- "integrity": "sha512-qWHkkbXQX+6li0COUUPKAUkxjNNqPJuiBd27dVwQGDNsuFBdMbrS6UZ0CLYc4CsbdLYTckn4oB4tGDuPZpPhaQ==",+ "version": "6.18.0",+ "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.18.0.tgz",+ "integrity": "sha512-Ubrue4+Ercc/BoDkFQfc6og5zRQ4A8YxSO3Knsne+eRbZ+IepAsK249XBH/XaFuOYOYr3L3r13CXTLvYt5JDjw==","dependencies": {- "@remix-run/router": "1.10.0",- "react-router": "6.17.0"+ "@remix-run/router": "1.11.0",+ "react-router": "6.18.0"},"engines": {"node": ">=14.0.0"@@ -22716,9 +21380,9 @@}},"node_modules/remeda": {- "version": "1.27.1",- "resolved": "https://registry.npmjs.org/remeda/-/remeda-1.27.1.tgz",- "integrity": "sha512-va05uuDBz/E55O9wmpDdbVlwdWbHGJJy3oC0EAHSFn74MpWF3S81NVJDz/FW05bc/UDg769t1u6YPhBK/gmvLw=="+ "version": "1.29.0",+ "resolved": "https://registry.npmjs.org/remeda/-/remeda-1.29.0.tgz",+ "integrity": "sha512-M3LQ14KtMdQ1879lj/kKji3zBk158s7Rwg963mEkTfQFMxnKrIEAMxJfo/+0sp/+uGgN/KMVU2MBA4LNjqf8YQ=="},"node_modules/remix-flat-routes": {"version": "0.5.12",@@ -23786,74 +22450,16 @@"node": ">=0.10.0"}},- "node_modules/snapdragon/node_modules/is-accessor-descriptor": {- "version": "0.1.6",- "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz",- "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==",- "dependencies": {- "kind-of": "^3.0.2"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/snapdragon/node_modules/is-accessor-descriptor/node_modules/kind-of": {- "version": "3.2.2",- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",- "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",- "dependencies": {- "is-buffer": "^1.1.5"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/snapdragon/node_modules/is-buffer": {- "version": "1.1.6",- "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",- "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="- },- "node_modules/snapdragon/node_modules/is-data-descriptor": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",- "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==",- "dependencies": {- "kind-of": "^3.0.2"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/snapdragon/node_modules/is-data-descriptor/node_modules/kind-of": {- "version": "3.2.2",- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",- "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",- "dependencies": {- "is-buffer": "^1.1.5"- },- "engines": {- "node": ">=0.10.0"- }- },"node_modules/snapdragon/node_modules/is-descriptor": {- "version": "0.1.6",- "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz",- "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==",+ "version": "0.1.7",+ "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz",+ "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==","dependencies": {- "is-accessor-descriptor": "^0.1.6",- "is-data-descriptor": "^0.1.4",- "kind-of": "^5.0.0"+ "is-accessor-descriptor": "^1.0.1",+ "is-data-descriptor": "^1.0.1"},"engines": {- "node": ">=0.10.0"- }- },- "node_modules/snapdragon/node_modules/kind-of": {- "version": "5.1.0",- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz",- "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==",- "engines": {- "node": ">=0.10.0"+ "node": ">= 0.4"}},"node_modules/snapdragon/node_modules/ms": {@@ -23895,11 +22501,15 @@}},"node_modules/source-map": {- "version": "0.6.1",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "version": "0.8.0-beta.0",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz",+ "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==",+ "dev": true,+ "dependencies": {+ "whatwg-url": "^7.0.0"+ },"engines": {- "node": ">=0.10.0"+ "node": ">= 8"}},"node_modules/source-map-js": {@@ -23932,12 +22542,46 @@"source-map": "^0.6.0"}},+ "node_modules/source-map-support/node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "engines": {+ "node": ">=0.10.0"+ }+ },"node_modules/source-map-url": {"version": "0.4.1","resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz","integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==","deprecated": "See https://github.com/lydell/source-map-url#deprecated"},+ "node_modules/source-map/node_modules/tr46": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz",+ "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==",+ "dev": true,+ "dependencies": {+ "punycode": "^2.1.0"+ }+ },+ "node_modules/source-map/node_modules/webidl-conversions": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz",+ "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==",+ "dev": true+ },+ "node_modules/source-map/node_modules/whatwg-url": {+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz",+ "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==",+ "dev": true,+ "dependencies": {+ "lodash.sortby": "^4.7.0",+ "tr46": "^1.0.1",+ "webidl-conversions": "^4.0.2"+ }+ },"node_modules/space-separated-tokens": {"version": "2.0.2","resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz",@@ -24061,74 +22705,16 @@"node": ">=0.10.0"}},- "node_modules/static-extend/node_modules/is-accessor-descriptor": {- "version": "0.1.6",- "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz",- "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==",+ "node_modules/static-extend/node_modules/is-descriptor": {+ "version": "0.1.7",+ "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.7.tgz",+ "integrity": "sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg==","dependencies": {- "kind-of": "^3.0.2"+ "is-accessor-descriptor": "^1.0.1",+ "is-data-descriptor": "^1.0.1"},"engines": {- "node": ">=0.10.0"- }- },- "node_modules/static-extend/node_modules/is-accessor-descriptor/node_modules/kind-of": {- "version": "3.2.2",- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",- "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",- "dependencies": {- "is-buffer": "^1.1.5"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/static-extend/node_modules/is-buffer": {- "version": "1.1.6",- "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz",- "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w=="- },- "node_modules/static-extend/node_modules/is-data-descriptor": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz",- "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==",- "dependencies": {- "kind-of": "^3.0.2"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/static-extend/node_modules/is-data-descriptor/node_modules/kind-of": {- "version": "3.2.2",- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz",- "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==",- "dependencies": {- "is-buffer": "^1.1.5"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/static-extend/node_modules/is-descriptor": {- "version": "0.1.6",- "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz",- "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==",- "dependencies": {- "is-accessor-descriptor": "^0.1.6",- "is-data-descriptor": "^0.1.4",- "kind-of": "^5.0.0"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/static-extend/node_modules/kind-of": {- "version": "5.1.0",- "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz",- "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==",- "engines": {- "node": ">=0.10.0"+ "node": ">= 0.4"}},"node_modules/statuses": {@@ -24199,25 +22785,6 @@"node": ">=10"}},- "node_modules/string-length/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },- "node_modules/string-length/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },"node_modules/string-width": {"version": "5.1.2","resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",@@ -24248,14 +22815,6 @@"node": ">=8"}},- "node_modules/string-width-cjs/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },"node_modules/string-width-cjs/node_modules/emoji-regex": {"version": "8.0.0","resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",@@ -24269,15 +22828,29 @@"node": ">=8"}},- "node_modules/string-width-cjs/node_modules/strip-ansi": {+ "node_modules/string-width/node_modules/ansi-regex": {"version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz",+ "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==",+ "engines": {+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"+ }+ },+ "node_modules/string-width/node_modules/strip-ansi": {+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",+ "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==","dependencies": {- "ansi-regex": "^5.0.1"+ "ansi-regex": "^6.0.1"},"engines": {- "node": ">=8"+ "node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"}},"node_modules/string.prototype.matchall": {@@ -24372,17 +22945,14 @@}},"node_modules/strip-ansi": {- "version": "7.1.0",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",- "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",+ "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==","dependencies": {- "ansi-regex": "^6.0.1"+ "ansi-regex": "^5.0.1"},"engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/strip-ansi?sponsor=1"+ "node": ">=8"}},"node_modules/strip-ansi-cjs": {@@ -24397,14 +22967,6 @@"node": ">=8"}},- "node_modules/strip-ansi-cjs/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"- }- },"node_modules/strip-bom": {"version": "3.0.0","resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz",@@ -24595,6 +23157,47 @@"resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz","integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw=="},+ "node_modules/tailwindcss": {+ "version": "3.2.7",+ "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.2.7.tgz",+ "integrity": "sha512-B6DLqJzc21x7wntlH/GsZwEXTBttVSl1FtCzC8WP4oBc/NKef7kaax5jeihkkCEWc831/5NDJ9gRNDK6NEioQQ==",+ "dev": true,+ "dependencies": {+ "arg": "^5.0.2",+ "chokidar": "^3.5.3",+ "color-name": "^1.1.4",+ "detective": "^5.2.1",+ "didyoumean": "^1.2.2",+ "dlv": "^1.1.3",+ "fast-glob": "^3.2.12",+ "glob-parent": "^6.0.2",+ "is-glob": "^4.0.3",+ "lilconfig": "^2.0.6",+ "micromatch": "^4.0.5",+ "normalize-path": "^3.0.0",+ "object-hash": "^3.0.0",+ "picocolors": "^1.0.0",+ "postcss": "^8.0.9",+ "postcss-import": "^14.1.0",+ "postcss-js": "^4.0.0",+ "postcss-load-config": "^3.1.4",+ "postcss-nested": "6.0.0",+ "postcss-selector-parser": "^6.0.11",+ "postcss-value-parser": "^4.2.0",+ "quick-lru": "^5.1.1",+ "resolve": "^1.22.1"+ },+ "bin": {+ "tailwind": "lib/cli.js",+ "tailwindcss": "lib/cli.js"+ },+ "engines": {+ "node": ">=12.13.0"+ },+ "peerDependencies": {+ "postcss": "^8.0.9"+ }+ },"node_modules/tapable": {"version": "2.2.1","resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz",@@ -24708,40 +23311,15 @@}},"node_modules/terminal-link": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz",- "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==",- "dependencies": {- "ansi-escapes": "^4.2.1",- "supports-hyperlinks": "^2.0.0"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/terminal-link/node_modules/ansi-escapes": {- "version": "4.3.2",- "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",- "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==",+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-3.0.0.tgz",+ "integrity": "sha512-flFL3m4wuixmf6IfhFJd1YPiLiMuxEc8uHRM1buzIeZPm22Au2pDqBJQgdo7n1WfPU1ONFGv7YDwpFBmHGF6lg==","dependencies": {- "type-fest": "^0.21.3"- },- "engines": {- "node": ">=8"+ "ansi-escapes": "^5.0.0",+ "supports-hyperlinks": "^2.2.0"},- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/terminal-link/node_modules/type-fest": {- "version": "0.21.3",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",- "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==","engines": {- "node": ">=10"+ "node": ">=12"},"funding": {"url": "https://github.com/sponsors/sindresorhus"@@ -24886,6 +23464,17 @@"title": "bin/title.js"}},+ "node_modules/title/node_modules/ansi-styles": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz",+ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==",+ "dependencies": {+ "color-convert": "^1.9.0"+ },+ "engines": {+ "node": ">=4"+ }+ },"node_modules/title/node_modules/arg": {"version": "1.0.0","resolved": "https://registry.npmjs.org/arg/-/arg-1.0.0.tgz",@@ -24904,6 +23493,19 @@"node": ">=4"}},+ "node_modules/title/node_modules/color-convert": {+ "version": "1.9.3",+ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz",+ "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==",+ "dependencies": {+ "color-name": "1.1.3"+ }+ },+ "node_modules/title/node_modules/color-name": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",+ "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw=="+ },"node_modules/title/node_modules/escape-string-regexp": {"version": "1.0.5","resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",@@ -25182,46 +23784,148 @@}}},- "node_modules/tsup/node_modules/@esbuild/android-arm": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.19.tgz",- "integrity": "sha512-rIKddzqhmav7MSmoFCmDIb6e2W57geRsM94gV2l38fzhXMwq7hZoClug9USI2pFRGL06f4IOPHHpFNOkWieR8A==",- "cpu": [- "arm"- ],+ "node_modules/tsup/node_modules/execa": {+ "version": "5.1.1",+ "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",+ "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==","dev": true,- "optional": true,- "os": [- "android"- ],+ "dependencies": {+ "cross-spawn": "^7.0.3",+ "get-stream": "^6.0.0",+ "human-signals": "^2.1.0",+ "is-stream": "^2.0.0",+ "merge-stream": "^2.0.0",+ "npm-run-path": "^4.0.1",+ "onetime": "^5.1.2",+ "signal-exit": "^3.0.3",+ "strip-final-newline": "^2.0.0"+ },"engines": {- "node": ">=12"+ "node": ">=10"+ },+ "funding": {+ "url": "https://github.com/sindresorhus/execa?sponsor=1"}},- "node_modules/tsup/node_modules/@esbuild/android-arm64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.19.tgz",- "integrity": "sha512-KBMWvEZooR7+kzY0BtbTQn0OAYY7CsiydT63pVEaPtVYF0hXbUaOyZog37DKxK7NF3XacBJOpYT4adIJh+avxA==",- "cpu": [- "arm64"- ],+ "node_modules/tsup/node_modules/human-signals": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",+ "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==","dev": true,- "optional": true,- "os": [- "android"- ],"engines": {- "node": ">=12"+ "node": ">=10.17.0"}},- "node_modules/tsup/node_modules/@esbuild/android-x64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.19.tgz",- "integrity": "sha512-uUTTc4xGNDT7YSArp/zbtmbhO0uEEK9/ETW29Wk1thYUJBz3IVnvgEiEwEa9IeLyvnpKrWK64Utw2bgUmDveww==",- "cpu": [- "x64"- ],- "dev": true,+ "node_modules/tsup/node_modules/is-stream": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",+ "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",+ "dev": true,+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/tsup/node_modules/mimic-fn": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",+ "dev": true,+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/tsup/node_modules/npm-run-path": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",+ "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",+ "dev": true,+ "dependencies": {+ "path-key": "^3.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/tsup/node_modules/onetime": {+ "version": "5.1.2",+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",+ "dev": true,+ "dependencies": {+ "mimic-fn": "^2.1.0"+ },+ "engines": {+ "node": ">=6"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/tsup/node_modules/resolve-from": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",+ "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",+ "dev": true,+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/tsup/node_modules/strip-final-newline": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",+ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",+ "dev": true,+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/tsutils": {+ "version": "3.21.0",+ "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",+ "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",+ "dependencies": {+ "tslib": "^1.8.1"+ },+ "engines": {+ "node": ">= 6"+ },+ "peerDependencies": {+ "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"+ }+ },+ "node_modules/tsutils/node_modules/tslib": {+ "version": "1.14.1",+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",+ "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="+ },+ "node_modules/tsx": {+ "version": "3.14.0",+ "resolved": "https://registry.npmjs.org/tsx/-/tsx-3.14.0.tgz",+ "integrity": "sha512-xHtFaKtHxM9LOklMmJdI3BEnQq/D5F73Of2E1GDrITi9sgoVkvIsrQUTY1G8FlmGtA+awCI4EBlTRRYxkL2sRg==",+ "dev": true,+ "dependencies": {+ "esbuild": "~0.18.20",+ "get-tsconfig": "^4.7.2",+ "source-map-support": "^0.5.21"+ },+ "bin": {+ "tsx": "dist/cli.mjs"+ },+ "optionalDependencies": {+ "fsevents": "~2.3.3"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/android-arm": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz",+ "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==",+ "cpu": [+ "arm"+ ],+ "dev": true,"optional": true,"os": ["android"@@ -25230,10 +23934,42 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/darwin-arm64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.19.tgz",- "integrity": "sha512-80wEoCfF/hFKM6WE1FyBHc9SfUblloAWx6FJkFWTWiCoht9Mc0ARGEM47e67W9rI09YoUxJL68WHfDRYEAvOhg==",+ "node_modules/tsx/node_modules/@esbuild/android-arm64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz",+ "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/android-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz",+ "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/tsx/node_modules/@esbuild/darwin-arm64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz",+ "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==","cpu": ["arm64"],@@ -25246,10 +23982,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/darwin-x64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.19.tgz",- "integrity": "sha512-IJM4JJsLhRYr9xdtLytPLSH9k/oxR3boaUIYiHkAawtwNOXKE8KoU8tMvryogdcT8AU+Bflmh81Xn6Q0vTZbQw==",+ "node_modules/tsx/node_modules/@esbuild/darwin-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz",+ "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==","cpu": ["x64"],@@ -25262,10 +23998,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/freebsd-arm64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.19.tgz",- "integrity": "sha512-pBwbc7DufluUeGdjSU5Si+P3SoMF5DQ/F/UmTSb8HXO80ZEAJmrykPyzo1IfNbAoaqw48YRpv8shwd1NoI0jcQ==",+ "node_modules/tsx/node_modules/@esbuild/freebsd-arm64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz",+ "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==","cpu": ["arm64"],@@ -25278,10 +24014,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/freebsd-x64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.19.tgz",- "integrity": "sha512-4lu+n8Wk0XlajEhbEffdy2xy53dpR06SlzvhGByyg36qJw6Kpfk7cp45DR/62aPH9mtJRmIyrXAS5UWBrJT6TQ==",+ "node_modules/tsx/node_modules/@esbuild/freebsd-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz",+ "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==","cpu": ["x64"],@@ -25294,10 +24030,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/linux-arm": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.19.tgz",- "integrity": "sha512-cdmT3KxjlOQ/gZ2cjfrQOtmhG4HJs6hhvm3mWSRDPtZ/lP5oe8FWceS10JaSJC13GBd4eH/haHnqf7hhGNLerA==",+ "node_modules/tsx/node_modules/@esbuild/linux-arm": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz",+ "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==","cpu": ["arm"],@@ -25310,10 +24046,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/linux-arm64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.19.tgz",- "integrity": "sha512-ct1Tg3WGwd3P+oZYqic+YZF4snNl2bsnMKRkb3ozHmnM0dGWuxcPTTntAF6bOP0Sp4x0PjSF+4uHQ1xvxfRKqg==",+ "node_modules/tsx/node_modules/@esbuild/linux-arm64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz",+ "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==","cpu": ["arm64"],@@ -25326,10 +24062,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/linux-ia32": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.19.tgz",- "integrity": "sha512-w4IRhSy1VbsNxHRQpeGCHEmibqdTUx61Vc38APcsRbuVgK0OPEnQ0YD39Brymn96mOx48Y2laBQGqgZ0j9w6SQ==",+ "node_modules/tsx/node_modules/@esbuild/linux-ia32": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz",+ "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==","cpu": ["ia32"],@@ -25342,10 +24078,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/linux-loong64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.19.tgz",- "integrity": "sha512-2iAngUbBPMq439a+z//gE+9WBldoMp1s5GWsUSgqHLzLJ9WoZLZhpwWuym0u0u/4XmZ3gpHmzV84PonE+9IIdQ==",+ "node_modules/tsx/node_modules/@esbuild/linux-loong64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz",+ "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==","cpu": ["loong64"],@@ -25358,10 +24094,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/linux-mips64el": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.19.tgz",- "integrity": "sha512-LKJltc4LVdMKHsrFe4MGNPp0hqDFA1Wpt3jE1gEyM3nKUvOiO//9PheZZHfYRfYl6AwdTH4aTcXSqBerX0ml4A==",+ "node_modules/tsx/node_modules/@esbuild/linux-mips64el": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz",+ "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==","cpu": ["mips64el"],@@ -25374,10 +24110,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/linux-ppc64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.19.tgz",- "integrity": "sha512-/c/DGybs95WXNS8y3Ti/ytqETiW7EU44MEKuCAcpPto3YjQbyK3IQVKfF6nbghD7EcLUGl0NbiL5Rt5DMhn5tg==",+ "node_modules/tsx/node_modules/@esbuild/linux-ppc64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz",+ "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==","cpu": ["ppc64"],@@ -25390,10 +24126,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/linux-riscv64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.19.tgz",- "integrity": "sha512-FC3nUAWhvFoutlhAkgHf8f5HwFWUL6bYdvLc/TTuxKlvLi3+pPzdZiFKSWz/PF30TB1K19SuCxDTI5KcqASJqA==",+ "node_modules/tsx/node_modules/@esbuild/linux-riscv64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz",+ "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==","cpu": ["riscv64"],@@ -25406,10 +24142,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/linux-s390x": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.19.tgz",- "integrity": "sha512-IbFsFbxMWLuKEbH+7sTkKzL6NJmG2vRyy6K7JJo55w+8xDk7RElYn6xvXtDW8HCfoKBFK69f3pgBJSUSQPr+4Q==",+ "node_modules/tsx/node_modules/@esbuild/linux-s390x": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz",+ "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==","cpu": ["s390x"],@@ -25422,10 +24158,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/linux-x64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.19.tgz",- "integrity": "sha512-68ngA9lg2H6zkZcyp22tsVt38mlhWde8l3eJLWkyLrp4HwMUr3c1s/M2t7+kHIhvMjglIBrFpncX1SzMckomGw==",+ "node_modules/tsx/node_modules/@esbuild/linux-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz",+ "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==","cpu": ["x64"],@@ -25438,10 +24174,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/netbsd-x64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.19.tgz",- "integrity": "sha512-CwFq42rXCR8TYIjIfpXCbRX0rp1jo6cPIUPSaWwzbVI4aOfX96OXY8M6KNmtPcg7QjYeDmN+DD0Wp3LaBOLf4Q==",+ "node_modules/tsx/node_modules/@esbuild/netbsd-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz",+ "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==","cpu": ["x64"],@@ -25454,10 +24190,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/openbsd-x64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.19.tgz",- "integrity": "sha512-cnq5brJYrSZ2CF6c35eCmviIN3k3RczmHz8eYaVlNasVqsNY+JKohZU5MKmaOI+KkllCdzOKKdPs762VCPC20g==",+ "node_modules/tsx/node_modules/@esbuild/openbsd-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz",+ "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==","cpu": ["x64"],@@ -25470,10 +24206,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/sunos-x64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.19.tgz",- "integrity": "sha512-vCRT7yP3zX+bKWFeP/zdS6SqdWB8OIpaRq/mbXQxTGHnIxspRtigpkUcDMlSCOejlHowLqII7K2JKevwyRP2rg==",+ "node_modules/tsx/node_modules/@esbuild/sunos-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz",+ "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==","cpu": ["x64"],@@ -25486,10 +24222,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/win32-arm64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.19.tgz",- "integrity": "sha512-yYx+8jwowUstVdorcMdNlzklLYhPxjniHWFKgRqH7IFlUEa0Umu3KuYplf1HUZZ422e3NU9F4LGb+4O0Kdcaag==",+ "node_modules/tsx/node_modules/@esbuild/win32-arm64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz",+ "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==","cpu": ["arm64"],@@ -25502,10 +24238,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/win32-ia32": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.19.tgz",- "integrity": "sha512-eggDKanJszUtCdlVs0RB+h35wNlb5v4TWEkq4vZcmVt5u/HiDZrTXe2bWFQUez3RgNHwx/x4sk5++4NSSicKkw==",+ "node_modules/tsx/node_modules/@esbuild/win32-ia32": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz",+ "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==","cpu": ["ia32"],@@ -25518,10 +24254,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/@esbuild/win32-x64": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.19.tgz",- "integrity": "sha512-lAhycmKnVOuRYNtRtatQR1LPQf2oYCkRGkSFnseDAKPl8lu5SOsK/e1sXe5a0Pc5kHIHe6P2I/ilntNv2xf3cA==",+ "node_modules/tsx/node_modules/@esbuild/win32-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz",+ "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==","cpu": ["x64"],@@ -25534,10 +24270,10 @@"node": ">=12"}},- "node_modules/tsup/node_modules/esbuild": {- "version": "0.17.19",- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.19.tgz",- "integrity": "sha512-XQ0jAPFkK/u3LcVRcvVHQcTIqD6E2H1fvZMA5dQPSOWb3suUbWbfbRf94pjc0bNzRYLfIrDRQXr7X+LHIm5oHw==",+ "node_modules/tsx/node_modules/esbuild": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz",+ "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==","dev": true,"hasInstallScript": true,"bin": {@@ -25547,200 +24283,28 @@"node": ">=12"},"optionalDependencies": {- "@esbuild/android-arm": "0.17.19",- "@esbuild/android-arm64": "0.17.19",- "@esbuild/android-x64": "0.17.19",- "@esbuild/darwin-arm64": "0.17.19",- "@esbuild/darwin-x64": "0.17.19",- "@esbuild/freebsd-arm64": "0.17.19",- "@esbuild/freebsd-x64": "0.17.19",- "@esbuild/linux-arm": "0.17.19",- "@esbuild/linux-arm64": "0.17.19",- "@esbuild/linux-ia32": "0.17.19",- "@esbuild/linux-loong64": "0.17.19",- "@esbuild/linux-mips64el": "0.17.19",- "@esbuild/linux-ppc64": "0.17.19",- "@esbuild/linux-riscv64": "0.17.19",- "@esbuild/linux-s390x": "0.17.19",- "@esbuild/linux-x64": "0.17.19",- "@esbuild/netbsd-x64": "0.17.19",- "@esbuild/openbsd-x64": "0.17.19",- "@esbuild/sunos-x64": "0.17.19",- "@esbuild/win32-arm64": "0.17.19",- "@esbuild/win32-ia32": "0.17.19",- "@esbuild/win32-x64": "0.17.19"- }- },- "node_modules/tsup/node_modules/execa": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",- "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",- "dev": true,- "dependencies": {- "cross-spawn": "^7.0.3",- "get-stream": "^6.0.0",- "human-signals": "^2.1.0",- "is-stream": "^2.0.0",- "merge-stream": "^2.0.0",- "npm-run-path": "^4.0.1",- "onetime": "^5.1.2",- "signal-exit": "^3.0.3",- "strip-final-newline": "^2.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sindresorhus/execa?sponsor=1"- }- },- "node_modules/tsup/node_modules/human-signals": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",- "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",- "dev": true,- "engines": {- "node": ">=10.17.0"- }- },- "node_modules/tsup/node_modules/is-stream": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",- "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",- "dev": true,- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/tsup/node_modules/mimic-fn": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",- "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",- "dev": true,- "engines": {- "node": ">=6"- }- },- "node_modules/tsup/node_modules/npm-run-path": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",- "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",- "dev": true,- "dependencies": {- "path-key": "^3.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/tsup/node_modules/onetime": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",- "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",- "dev": true,- "dependencies": {- "mimic-fn": "^2.1.0"- },- "engines": {- "node": ">=6"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/tsup/node_modules/resolve-from": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",- "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",- "dev": true,- "engines": {- "node": ">=8"- }- },- "node_modules/tsup/node_modules/source-map": {- "version": "0.8.0-beta.0",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.8.0-beta.0.tgz",- "integrity": "sha512-2ymg6oRBpebeZi9UUNsgQ89bhx01TcTkmNTGnNO88imTmbSgy4nfujrgVEFKWpMTEGA11EDkTt7mqObTPdigIA==",- "dev": true,- "dependencies": {- "whatwg-url": "^7.0.0"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/tsup/node_modules/strip-final-newline": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",- "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",- "dev": true,- "engines": {- "node": ">=6"- }- },- "node_modules/tsup/node_modules/tr46": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/tr46/-/tr46-1.0.1.tgz",- "integrity": "sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA==",- "dev": true,- "dependencies": {- "punycode": "^2.1.0"- }- },- "node_modules/tsup/node_modules/webidl-conversions": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-4.0.2.tgz",- "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==",- "dev": true- },- "node_modules/tsup/node_modules/whatwg-url": {- "version": "7.1.0",- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-7.1.0.tgz",- "integrity": "sha512-WUu7Rg1DroM7oQvGWfOiAK21n74Gg+T4elXEQYkOhtyLeWiJFoOGLXPKI/9gzIie9CtwVLm8wtw6YJdKyxSjeg==",- "dev": true,- "dependencies": {- "lodash.sortby": "^4.7.0",- "tr46": "^1.0.1",- "webidl-conversions": "^4.0.2"- }- },- "node_modules/tsutils": {- "version": "3.21.0",- "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz",- "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==",- "dependencies": {- "tslib": "^1.8.1"- },- "engines": {- "node": ">= 6"- },- "peerDependencies": {- "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"- }- },- "node_modules/tsutils/node_modules/tslib": {- "version": "1.14.1",- "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",- "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg=="- },- "node_modules/tsx": {- "version": "3.14.0",- "resolved": "https://registry.npmjs.org/tsx/-/tsx-3.14.0.tgz",- "integrity": "sha512-xHtFaKtHxM9LOklMmJdI3BEnQq/D5F73Of2E1GDrITi9sgoVkvIsrQUTY1G8FlmGtA+awCI4EBlTRRYxkL2sRg==",- "dev": true,- "dependencies": {- "esbuild": "~0.18.20",- "get-tsconfig": "^4.7.2",- "source-map-support": "^0.5.21"- },- "bin": {- "tsx": "dist/cli.mjs"- },- "optionalDependencies": {- "fsevents": "~2.3.3"+ "@esbuild/android-arm": "0.18.20",+ "@esbuild/android-arm64": "0.18.20",+ "@esbuild/android-x64": "0.18.20",+ "@esbuild/darwin-arm64": "0.18.20",+ "@esbuild/darwin-x64": "0.18.20",+ "@esbuild/freebsd-arm64": "0.18.20",+ "@esbuild/freebsd-x64": "0.18.20",+ "@esbuild/linux-arm": "0.18.20",+ "@esbuild/linux-arm64": "0.18.20",+ "@esbuild/linux-ia32": "0.18.20",+ "@esbuild/linux-loong64": "0.18.20",+ "@esbuild/linux-mips64el": "0.18.20",+ "@esbuild/linux-ppc64": "0.18.20",+ "@esbuild/linux-riscv64": "0.18.20",+ "@esbuild/linux-s390x": "0.18.20",+ "@esbuild/linux-x64": "0.18.20",+ "@esbuild/netbsd-x64": "0.18.20",+ "@esbuild/openbsd-x64": "0.18.20",+ "@esbuild/sunos-x64": "0.18.20",+ "@esbuild/win32-arm64": "0.18.20",+ "@esbuild/win32-ia32": "0.18.20",+ "@esbuild/win32-x64": "0.18.20"}},"node_modules/turbo": {@@ -25863,9 +24427,9 @@}},"node_modules/type-fest": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-1.4.0.tgz",- "integrity": "sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==",+ "version": "0.20.2",+ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",+ "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==","engines": {"node": ">=10"},@@ -26004,10 +24568,21 @@"integrity": "sha512-WxONCrssBM8TSPRqN5EmsjVrsv4A8X12J4ArBiiayv3DyyG3ZlIg6yysuuSYdZsVz3TKcTg2fd//Ujd4CHV1iA==","dev": true},+ "node_modules/undici": {+ "version": "5.27.2",+ "resolved": "https://registry.npmjs.org/undici/-/undici-5.27.2.tgz",+ "integrity": "sha512-iS857PdOEy/y3wlM3yRp+6SNQQ6xU0mmZcwRSriqk+et/cwWAtwmIGf6WkoDN2EK/AMdCO/dfXzIwi+rFMrjjQ==",+ "dependencies": {+ "@fastify/busboy": "^2.0.0"+ },+ "engines": {+ "node": ">=14.0"+ }+ },"node_modules/undici-types": {- "version": "5.25.3",- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.25.3.tgz",- "integrity": "sha512-Ga1jfYwRn7+cP9v8auvEXN1rX3sWqlayd4HP7OKk4mZWylEmu3KzXDUGrQUN6Ol7qo1gPvB2e5gX6udnyEPgdA=="+ "version": "5.26.5",+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz",+ "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA=="},"node_modules/unified": {"version": "10.1.2",@@ -26302,9 +24877,9 @@}},"node_modules/universalify": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",- "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==",+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",+ "integrity": "sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==","engines": {"node": ">= 10.0.0"}@@ -26806,1690 +25381,1098 @@"url": "https://github.com/sponsors/antfu"}},- "node_modules/vscode-oniguruma": {- "version": "1.7.0",- "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz",- "integrity": "sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA=="- },- "node_modules/vscode-textmate": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-8.0.0.tgz",- "integrity": "sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg=="- },- "node_modules/w3c-hr-time": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz",- "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==",- "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.",- "dependencies": {- "browser-process-hrtime": "^1.0.0"+ "node_modules/vite-node/node_modules/source-map": {+ "version": "0.6.1",+ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",+ "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "engines": {+ "node": ">=0.10.0"}},- "node_modules/w3c-keyname": {- "version": "2.2.8",- "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz",- "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ=="- },- "node_modules/w3c-xmlserializer": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz",- "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==",- "dependencies": {- "xml-name-validator": "^3.0.0"- },+ "node_modules/vite/node_modules/@esbuild/android-arm": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.18.20.tgz",+ "integrity": "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw==",+ "cpu": [+ "arm"+ ],+ "optional": true,+ "os": [+ "android"+ ],"engines": {- "node": ">=10"- }- },- "node_modules/walker": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz",- "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==",- "dependencies": {- "makeerror": "1.0.12"+ "node": ">=12"}},- "node_modules/watchpack": {- "version": "2.4.0",- "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz",- "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==",- "dependencies": {- "glob-to-regexp": "^0.4.1",- "graceful-fs": "^4.1.2"- },+ "node_modules/vite/node_modules/@esbuild/android-arm64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.18.20.tgz",+ "integrity": "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "android"+ ],"engines": {- "node": ">=10.13.0"+ "node": ">=12"}},- "node_modules/wcwidth": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",- "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==",- "dependencies": {- "defaults": "^1.0.3"+ "node_modules/vite/node_modules/@esbuild/android-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.18.20.tgz",+ "integrity": "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"}},- "node_modules/web-encoding": {- "version": "1.1.5",- "resolved": "https://registry.npmjs.org/web-encoding/-/web-encoding-1.1.5.tgz",- "integrity": "sha512-HYLeVCdJ0+lBYV2FvNZmv3HJ2Nt0QYXqZojk3d9FJOLkwnuhzM9tmamh8d7HPM8QqjKH8DeHkFTx+CFlWpZZDA==",- "dependencies": {- "util": "^0.12.3"- },- "optionalDependencies": {- "@zxing/text-encoding": "0.9.0"+ "node_modules/vite/node_modules/@esbuild/darwin-arm64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.18.20.tgz",+ "integrity": "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"}},- "node_modules/web-namespaces": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz",- "integrity": "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"+ "node_modules/vite/node_modules/@esbuild/darwin-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.18.20.tgz",+ "integrity": "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"}},- "node_modules/web-streams-polyfill": {- "version": "3.2.1",- "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz",- "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==",+ "node_modules/vite/node_modules/@esbuild/freebsd-arm64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.18.20.tgz",+ "integrity": "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "freebsd"+ ],"engines": {- "node": ">= 8"+ "node": ">=12"}},- "node_modules/web-worker": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.2.0.tgz",- "integrity": "sha512-PgF341avzqyx60neE9DD+XS26MMNMoUQRz9NOZwW32nPQrF6p77f1htcnjBSEV8BGMKZ16choqUG4hyI0Hx7mA=="- },- "node_modules/webidl-conversions": {- "version": "6.1.0",- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz",- "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==",+ "node_modules/vite/node_modules/@esbuild/freebsd-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.18.20.tgz",+ "integrity": "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "freebsd"+ ],"engines": {- "node": ">=10.4"+ "node": ">=12"}},- "node_modules/websocket": {- "version": "1.0.34",- "resolved": "https://registry.npmjs.org/websocket/-/websocket-1.0.34.tgz",- "integrity": "sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ==",- "dependencies": {- "bufferutil": "^4.0.1",- "debug": "^2.2.0",- "es5-ext": "^0.10.50",- "typedarray-to-buffer": "^3.1.5",- "utf-8-validate": "^5.0.2",- "yaeti": "^0.0.6"- },+ "node_modules/vite/node_modules/@esbuild/linux-arm": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.18.20.tgz",+ "integrity": "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg==",+ "cpu": [+ "arm"+ ],+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">=4.0.0"+ "node": ">=12"}},- "node_modules/websocket/node_modules/debug": {- "version": "2.6.9",- "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",- "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==",- "dependencies": {- "ms": "2.0.0"+ "node_modules/vite/node_modules/@esbuild/linux-arm64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.18.20.tgz",+ "integrity": "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"}},- "node_modules/websocket/node_modules/ms": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",- "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="- },- "node_modules/whatwg-encoding": {- "version": "1.0.5",- "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz",- "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==",- "dependencies": {- "iconv-lite": "0.4.24"+ "node_modules/vite/node_modules/@esbuild/linux-ia32": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.18.20.tgz",+ "integrity": "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA==",+ "cpu": [+ "ia32"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"}},- "node_modules/whatwg-mimetype": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz",- "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g=="- },- "node_modules/whatwg-url": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",- "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",- "dependencies": {- "tr46": "~0.0.3",- "webidl-conversions": "^3.0.0"+ "node_modules/vite/node_modules/@esbuild/linux-loong64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.18.20.tgz",+ "integrity": "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg==",+ "cpu": [+ "loong64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"}},- "node_modules/whatwg-url/node_modules/webidl-conversions": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",- "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="- },- "node_modules/which": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",- "dependencies": {- "isexe": "^2.0.0"- },- "bin": {- "node-which": "bin/node-which"- },+ "node_modules/vite/node_modules/@esbuild/linux-mips64el": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.18.20.tgz",+ "integrity": "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ==",+ "cpu": [+ "mips64el"+ ],+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">= 8"+ "node": ">=12"}},- "node_modules/which-boxed-primitive": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz",- "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==",- "dependencies": {- "is-bigint": "^1.0.1",- "is-boolean-object": "^1.1.0",- "is-number-object": "^1.0.4",- "is-string": "^1.0.5",- "is-symbol": "^1.0.3"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node_modules/vite/node_modules/@esbuild/linux-ppc64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.18.20.tgz",+ "integrity": "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA==",+ "cpu": [+ "ppc64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"}},- "node_modules/which-builtin-type": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.3.tgz",- "integrity": "sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==",- "dependencies": {- "function.prototype.name": "^1.1.5",- "has-tostringtag": "^1.0.0",- "is-async-function": "^2.0.0",- "is-date-object": "^1.0.5",- "is-finalizationregistry": "^1.0.2",- "is-generator-function": "^1.0.10",- "is-regex": "^1.1.4",- "is-weakref": "^1.0.2",- "isarray": "^2.0.5",- "which-boxed-primitive": "^1.0.2",- "which-collection": "^1.0.1",- "which-typed-array": "^1.1.9"- },+ "node_modules/vite/node_modules/@esbuild/linux-riscv64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.18.20.tgz",+ "integrity": "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A==",+ "cpu": [+ "riscv64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node": ">=12"}},- "node_modules/which-collection": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz",- "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==",- "dependencies": {- "is-map": "^2.0.1",- "is-set": "^2.0.1",- "is-weakmap": "^2.0.1",- "is-weakset": "^2.0.1"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node_modules/vite/node_modules/@esbuild/linux-s390x": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.18.20.tgz",+ "integrity": "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ==",+ "cpu": [+ "s390x"+ ],+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"}},- "node_modules/which-module": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz",- "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ=="- },- "node_modules/which-typed-array": {- "version": "1.1.13",- "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz",- "integrity": "sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==",- "dependencies": {- "available-typed-arrays": "^1.0.5",- "call-bind": "^1.0.4",- "for-each": "^0.3.3",- "gopd": "^1.0.1",- "has-tostringtag": "^1.0.0"- },+ "node_modules/vite/node_modules/@esbuild/linux-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.18.20.tgz",+ "integrity": "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "linux"+ ],"engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"+ "node": ">=12"}},- "node_modules/wrap-ansi": {- "version": "8.1.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",- "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",- "dependencies": {- "ansi-styles": "^6.1.0",- "string-width": "^5.0.1",- "strip-ansi": "^7.0.1"- },+ "node_modules/vite/node_modules/@esbuild/netbsd-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.18.20.tgz",+ "integrity": "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "netbsd"+ ],"engines": {"node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"}},- "node_modules/wrap-ansi-cjs": {- "name": "wrap-ansi",- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",- "dependencies": {- "ansi-styles": "^4.0.0",- "string-width": "^4.1.0",- "strip-ansi": "^6.0.0"- },+ "node_modules/vite/node_modules/@esbuild/openbsd-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.18.20.tgz",+ "integrity": "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "openbsd"+ ],"engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"+ "node": ">=12"}},- "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",+ "node_modules/vite/node_modules/@esbuild/sunos-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.18.20.tgz",+ "integrity": "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "sunos"+ ],"engines": {- "node": ">=8"+ "node": ">=12"}},- "node_modules/wrap-ansi-cjs/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dependencies": {- "color-convert": "^2.0.1"- },+ "node_modules/vite/node_modules/@esbuild/win32-arm64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.18.20.tgz",+ "integrity": "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg==",+ "cpu": [+ "arm64"+ ],+ "optional": true,+ "os": [+ "win32"+ ],"engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "node": ">=12"}},- "node_modules/wrap-ansi-cjs/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dependencies": {- "color-name": "~1.1.4"- },+ "node_modules/vite/node_modules/@esbuild/win32-ia32": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.18.20.tgz",+ "integrity": "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g==",+ "cpu": [+ "ia32"+ ],+ "optional": true,+ "os": [+ "win32"+ ],"engines": {- "node": ">=7.0.0"+ "node": ">=12"}},- "node_modules/wrap-ansi-cjs/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },- "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="- },- "node_modules/wrap-ansi-cjs/node_modules/is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "node_modules/vite/node_modules/@esbuild/win32-x64": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.18.20.tgz",+ "integrity": "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ==",+ "cpu": [+ "x64"+ ],+ "optional": true,+ "os": [+ "win32"+ ],"engines": {- "node": ">=8"+ "node": ">=12"}},- "node_modules/wrap-ansi-cjs/node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"+ "node_modules/vite/node_modules/esbuild": {+ "version": "0.18.20",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.18.20.tgz",+ "integrity": "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA==",+ "hasInstallScript": true,+ "bin": {+ "esbuild": "bin/esbuild"},- "engines": {- "node": ">=8"- }- },- "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/wrap-ansi/node_modules/ansi-styles": {- "version": "6.2.1",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",- "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==","engines": {"node": ">=12"},- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "optionalDependencies": {+ "@esbuild/android-arm": "0.18.20",+ "@esbuild/android-arm64": "0.18.20",+ "@esbuild/android-x64": "0.18.20",+ "@esbuild/darwin-arm64": "0.18.20",+ "@esbuild/darwin-x64": "0.18.20",+ "@esbuild/freebsd-arm64": "0.18.20",+ "@esbuild/freebsd-x64": "0.18.20",+ "@esbuild/linux-arm": "0.18.20",+ "@esbuild/linux-arm64": "0.18.20",+ "@esbuild/linux-ia32": "0.18.20",+ "@esbuild/linux-loong64": "0.18.20",+ "@esbuild/linux-mips64el": "0.18.20",+ "@esbuild/linux-ppc64": "0.18.20",+ "@esbuild/linux-riscv64": "0.18.20",+ "@esbuild/linux-s390x": "0.18.20",+ "@esbuild/linux-x64": "0.18.20",+ "@esbuild/netbsd-x64": "0.18.20",+ "@esbuild/openbsd-x64": "0.18.20",+ "@esbuild/sunos-x64": "0.18.20",+ "@esbuild/win32-arm64": "0.18.20",+ "@esbuild/win32-ia32": "0.18.20",+ "@esbuild/win32-x64": "0.18.20"}},- "node_modules/wrappy": {+ "node_modules/vscode-oniguruma": {+ "version": "1.7.0",+ "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz",+ "integrity": "sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA=="+ },+ "node_modules/vscode-textmate": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-8.0.0.tgz",+ "integrity": "sha512-AFbieoL7a5LMqcnOF04ji+rpXadgOXnZsxQr//r83kLPr7biP7am3g9zbaZIaBGwBRWeSvoMD4mgPdX3e4NWBg=="+ },+ "node_modules/w3c-hr-time": {"version": "1.0.2",- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="+ "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz",+ "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==",+ "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.",+ "dependencies": {+ "browser-process-hrtime": "^1.0.0"+ }},- "node_modules/write-file-atomic": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz",- "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==",- "dev": true,+ "node_modules/w3c-keyname": {+ "version": "2.2.8",+ "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.8.tgz",+ "integrity": "sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ=="+ },+ "node_modules/w3c-xmlserializer": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz",+ "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==","dependencies": {- "imurmurhash": "^0.1.4",- "signal-exit": "^4.0.1"+ "xml-name-validator": "^3.0.0"},"engines": {- "node": "^14.17.0 || ^16.13.0 || >=18.0.0"+ "node": ">=10"}},- "node_modules/write-file-atomic/node_modules/signal-exit": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",- "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",- "dev": true,- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"+ "node_modules/walker": {+ "version": "1.0.8",+ "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz",+ "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==",+ "dependencies": {+ "makeerror": "1.0.12"}},- "node_modules/ws": {- "version": "7.5.9",- "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",- "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",- "engines": {- "node": ">=8.3.0"- },- "peerDependencies": {- "bufferutil": "^4.0.1",- "utf-8-validate": "^5.0.2"+ "node_modules/watchpack": {+ "version": "2.4.0",+ "resolved": "https://registry.npmjs.org/watchpack/-/watchpack-2.4.0.tgz",+ "integrity": "sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg==",+ "dependencies": {+ "glob-to-regexp": "^0.4.1",+ "graceful-fs": "^4.1.2"},- "peerDependenciesMeta": {- "bufferutil": {- "optional": true- },- "utf-8-validate": {- "optional": true- }+ "engines": {+ "node": ">=10.13.0"}},- "node_modules/www": {- "resolved": "www",- "link": true- },- "node_modules/xml-name-validator": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz",- "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw=="- },- "node_modules/xmlchars": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",- "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw=="+ "node_modules/wcwidth": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",+ "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==",+ "dependencies": {+ "defaults": "^1.0.3"+ }},- "node_modules/xtend": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",- "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",- "engines": {- "node": ">=0.4"+ "node_modules/web-encoding": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/web-encoding/-/web-encoding-1.1.5.tgz",+ "integrity": "sha512-HYLeVCdJ0+lBYV2FvNZmv3HJ2Nt0QYXqZojk3d9FJOLkwnuhzM9tmamh8d7HPM8QqjKH8DeHkFTx+CFlWpZZDA==",+ "dependencies": {+ "util": "^0.12.3"+ },+ "optionalDependencies": {+ "@zxing/text-encoding": "0.9.0"}},- "node_modules/y18n": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz",- "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ=="+ "node_modules/web-namespaces": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/web-namespaces/-/web-namespaces-2.0.1.tgz",+ "integrity": "sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }},- "node_modules/yaeti": {- "version": "0.0.6",- "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz",- "integrity": "sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==",+ "node_modules/web-streams-polyfill": {+ "version": "3.2.1",+ "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz",+ "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==","engines": {- "node": ">=0.10.32"+ "node": ">= 8"}},- "node_modules/yallist": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",- "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="+ "node_modules/web-worker": {+ "version": "1.2.0",+ "resolved": "https://registry.npmjs.org/web-worker/-/web-worker-1.2.0.tgz",+ "integrity": "sha512-PgF341avzqyx60neE9DD+XS26MMNMoUQRz9NOZwW32nPQrF6p77f1htcnjBSEV8BGMKZ16choqUG4hyI0Hx7mA=="},- "node_modules/yaml": {- "version": "2.3.1",- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz",- "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==",- "engines": {- "node": ">= 14"- }+ "node_modules/webidl-conversions": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="},- "node_modules/yargs": {- "version": "15.4.1",- "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz",- "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==",+ "node_modules/websocket": {+ "version": "1.0.34",+ "resolved": "https://registry.npmjs.org/websocket/-/websocket-1.0.34.tgz",+ "integrity": "sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ==","dependencies": {- "cliui": "^6.0.0",- "decamelize": "^1.2.0",- "find-up": "^4.1.0",- "get-caller-file": "^2.0.1",- "require-directory": "^2.1.1",- "require-main-filename": "^2.0.0",- "set-blocking": "^2.0.0",- "string-width": "^4.2.0",- "which-module": "^2.0.0",- "y18n": "^4.0.0",- "yargs-parser": "^18.1.2"+ "bufferutil": "^4.0.1",+ "debug": "^2.2.0",+ "es5-ext": "^0.10.50",+ "typedarray-to-buffer": "^3.1.5",+ "utf-8-validate": "^5.0.2",+ "yaeti": "^0.0.6"},"engines": {- "node": ">=8"+ "node": ">=4.0.0"}},- "node_modules/yargs-parser": {- "version": "18.1.3",- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz",- "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==",+ "node_modules/websocket/node_modules/debug": {+ "version": "2.6.9",+ "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz",+ "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==","dependencies": {- "camelcase": "^5.0.0",- "decamelize": "^1.2.0"- },- "engines": {- "node": ">=6"+ "ms": "2.0.0"}},- "node_modules/yargs/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "engines": {- "node": ">=8"+ "node_modules/websocket/node_modules/ms": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz",+ "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A=="+ },+ "node_modules/whatwg-encoding": {+ "version": "1.0.5",+ "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz",+ "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==",+ "dependencies": {+ "iconv-lite": "0.4.24"}},- "node_modules/yargs/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="- },- "node_modules/yargs/node_modules/find-up": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",- "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",- "dependencies": {- "locate-path": "^5.0.0",- "path-exists": "^4.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/yargs/node_modules/is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",- "engines": {- "node": ">=8"- }+ "node_modules/whatwg-mimetype": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz",+ "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g=="},- "node_modules/yargs/node_modules/locate-path": {+ "node_modules/whatwg-url": {"version": "5.0.0",- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",- "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==","dependencies": {- "p-locate": "^4.1.0"- },- "engines": {- "node": ">=8"+ "tr46": "~0.0.3",+ "webidl-conversions": "^3.0.0"}},- "node_modules/yargs/node_modules/p-limit": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",- "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",+ "node_modules/which": {+ "version": "2.0.2",+ "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",+ "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==","dependencies": {- "p-try": "^2.0.0"- },- "engines": {- "node": ">=6"+ "isexe": "^2.0.0"},- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/yargs/node_modules/p-locate": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",- "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",- "dependencies": {- "p-limit": "^2.2.0"+ "bin": {+ "node-which": "bin/node-which"},"engines": {- "node": ">=8"+ "node": ">= 8"}},- "node_modules/yargs/node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "node_modules/which-boxed-primitive": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz",+ "integrity": "sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==","dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"+ "is-bigint": "^1.0.1",+ "is-boolean-object": "^1.1.0",+ "is-number-object": "^1.0.4",+ "is-string": "^1.0.5",+ "is-symbol": "^1.0.3"},- "engines": {- "node": ">=8"+ "funding": {+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/yargs/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",+ "node_modules/which-builtin-type": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/which-builtin-type/-/which-builtin-type-1.1.3.tgz",+ "integrity": "sha512-YmjsSMDBYsM1CaFiayOVT06+KJeXf0o5M/CAd4o1lTadFAtacTUM49zoYxr/oroopFDfhvN6iEcBxUyc3gvKmw==","dependencies": {- "ansi-regex": "^5.0.1"+ "function.prototype.name": "^1.1.5",+ "has-tostringtag": "^1.0.0",+ "is-async-function": "^2.0.0",+ "is-date-object": "^1.0.5",+ "is-finalizationregistry": "^1.0.2",+ "is-generator-function": "^1.0.10",+ "is-regex": "^1.1.4",+ "is-weakref": "^1.0.2",+ "isarray": "^2.0.5",+ "which-boxed-primitive": "^1.0.2",+ "which-collection": "^1.0.1",+ "which-typed-array": "^1.1.9"},"engines": {- "node": ">=8"- }- },- "node_modules/yocto-queue": {- "version": "0.1.0",- "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",- "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",- "engines": {- "node": ">=10"+ "node": ">= 0.4"},"funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/zod": {- "version": "3.22.4",- "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz",- "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==",- "funding": {- "url": "https://github.com/sponsors/colinhacks"+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/zod-error": {- "version": "1.5.0",- "resolved": "https://registry.npmjs.org/zod-error/-/zod-error-1.5.0.tgz",- "integrity": "sha512-zzopKZ/skI9iXpqCEPj+iLCKl9b88E43ehcU+sbRoHuwGd9F1IDVGQ70TyO6kmfiRL1g4IXkjsXK+g1gLYl4WQ==",+ "node_modules/which-collection": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/which-collection/-/which-collection-1.0.1.tgz",+ "integrity": "sha512-W8xeTUwaln8i3K/cY1nGXzdnVZlidBcagyNFtBdD5kxnb4TvGKR7FfSIS3mYpwWS1QUCutfKz8IY8RjftB0+1A==","dependencies": {- "zod": "^3.20.2"+ "is-map": "^2.0.1",+ "is-set": "^2.0.1",+ "is-weakmap": "^2.0.1",+ "is-weakset": "^2.0.1"+ },+ "funding": {+ "url": "https://github.com/sponsors/ljharb"}},- "node_modules/zod-form-data": {+ "node_modules/which-module": {"version": "2.0.1",- "resolved": "https://registry.npmjs.org/zod-form-data/-/zod-form-data-2.0.1.tgz",- "integrity": "sha512-4jcsj3vFyFGINLLHEmehfOPKdcw+HqV65RwsV2IdyLHp9wpvGJRVXWg1yY8sq0ASEbQfTVBRtI7LcDGv3Qpj8g==",- "peerDependencies": {- "zod": "^3.11.x"- }+ "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.1.tgz",+ "integrity": "sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ=="},- "node_modules/zustand": {- "version": "4.4.4",- "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.4.4.tgz",- "integrity": "sha512-5UTUIAiHMNf5+mFp7/AnzJXS7+XxktULFN0+D1sCiZWyX7ZG+AQpqs2qpYrynRij4QvoDdCD+U+bmg/cG3Ucxw==",+ "node_modules/which-typed-array": {+ "version": "1.1.13",+ "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.13.tgz",+ "integrity": "sha512-P5Nra0qjSncduVPEAr7xhoF5guty49ArDTwzJ/yNuPIbZppyRxFQsRCWrocxIY+CnMVG+qfbU2FmDKyvSGClow==","dependencies": {- "use-sync-external-store": "1.2.0"+ "available-typed-arrays": "^1.0.5",+ "call-bind": "^1.0.4",+ "for-each": "^0.3.3",+ "gopd": "^1.0.1",+ "has-tostringtag": "^1.0.0"},"engines": {- "node": ">=12.7.0"- },- "peerDependencies": {- "@types/react": ">=16.8",- "immer": ">=9.0",- "react": ">=16.8"+ "node": ">= 0.4"},- "peerDependenciesMeta": {- "@types/react": {- "optional": true- },- "immer": {- "optional": true- },- "react": {- "optional": true- }- }- },- "node_modules/zwitch": {- "version": "2.0.4",- "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",- "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==","funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "packages/database": {- "name": "@carbon/database",- "license": "AGPL-3.0-or-later",- "devDependencies": {- "@carbon/tsconfig": "*",- "@supabase/supabase-js": "^2.33.1",- "@types/node": "^18.15.0",- "@types/uuid": "^8.3.4",- "dotenv": "16.3.1",- "eslint": "^8.23.1",- "eslint-config-carbon": "*",- "npm-run-all": "^4.1.5",- "rimraf": "^4.4.0",- "supabase": "1.93.0",- "tsup": "^6.5.0",- "tsx": "^3.12.1",- "typescript": "^5.2.2",- "uuid": "9.0.0"- }- },- "packages/database/node_modules/@types/node": {- "version": "18.17.1",- "dev": true,- "license": "MIT"- },- "packages/database/node_modules/brace-expansion": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",- "dev": true,- "dependencies": {- "balanced-match": "^1.0.0"+ "url": "https://github.com/sponsors/ljharb"}},- "packages/database/node_modules/glob": {- "version": "9.3.5",- "dev": true,- "license": "ISC",+ "node_modules/wrap-ansi": {+ "version": "8.1.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",+ "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==","dependencies": {- "fs.realpath": "^1.0.0",- "minimatch": "^8.0.2",- "minipass": "^4.2.4",- "path-scurry": "^1.6.1"+ "ansi-styles": "^6.1.0",+ "string-width": "^5.0.1",+ "strip-ansi": "^7.0.1"},"engines": {- "node": ">=16 || 14 >=14.17"+ "node": ">=12"},"funding": {- "url": "https://github.com/sponsors/isaacs"+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"}},- "packages/database/node_modules/glob/node_modules/minimatch": {- "version": "8.0.4",- "dev": true,- "license": "ISC",+ "node_modules/wrap-ansi-cjs": {+ "name": "wrap-ansi",+ "version": "7.0.0",+ "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",+ "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==","dependencies": {- "brace-expansion": "^2.0.1"+ "ansi-styles": "^4.0.0",+ "string-width": "^4.1.0",+ "strip-ansi": "^6.0.0"},"engines": {- "node": ">=16 || 14 >=14.17"+ "node": ">=10"},"funding": {- "url": "https://github.com/sponsors/isaacs"+ "url": "https://github.com/chalk/wrap-ansi?sponsor=1"}},- "packages/database/node_modules/minipass": {- "version": "4.2.8",- "dev": true,- "license": "ISC",- "engines": {- "node": ">=8"- }- },- "packages/database/node_modules/rimraf": {- "version": "4.4.1",- "dev": true,- "license": "ISC",- "dependencies": {- "glob": "^9.2.0"- },- "bin": {- "rimraf": "dist/cjs/src/bin.js"- },- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "packages/eslint-config-carbon": {- "license": "MIT",- "dependencies": {- "@babel/eslint-parser": "7.22.9",- "@babel/preset-react": "7.22.5",- "@typescript-eslint/eslint-plugin": "^5.38.0",- "@typescript-eslint/parser": "^5.38.0",- "eslint-config-prettier": "^8.5.0",- "eslint-import-resolver-node": "0.3.6",- "eslint-import-resolver-typescript": "^3.5.1"- },- "peerDependencies": {- "@types/eslint": "^8.4.6",- "eslint": "^8.23.1",- "typescript": "^5.2.2"- },- "peerDependenciesMeta": {- "typescript": {- "optional": true- }- }- },- "packages/eslint-config-carbon/node_modules/debug": {- "version": "3.2.7",- "license": "MIT",- "dependencies": {- "ms": "^2.1.1"- }- },- "packages/eslint-config-carbon/node_modules/eslint-import-resolver-node": {- "version": "0.3.6",- "license": "MIT",- "dependencies": {- "debug": "^3.2.7",- "resolve": "^1.20.0"- }- },- "packages/jest": {- "name": "@carbon/jest",- "version": "0.0.0",- "license": "MIT",- "dependencies": {- "ts-jest": "^26.5.0"- },- "devDependencies": {- "eslint-config-carbon": "*"- }- },- "packages/jest/node_modules/lru-cache": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",- "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",- "dependencies": {- "yallist": "^4.0.0"- },- "engines": {- "node": ">=10"- }- },- "packages/jest/node_modules/semver": {- "version": "7.5.4",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",- "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",- "dependencies": {- "lru-cache": "^6.0.0"- },- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "packages/jest/node_modules/ts-jest": {- "version": "26.5.6",- "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-26.5.6.tgz",- "integrity": "sha512-rua+rCP8DxpA8b4DQD/6X2HQS8Zy/xzViVYfEs2OQu68tkCuKLV0Md8pmX55+W24uRIyAsf/BajRfxOs+R2MKA==",- "dependencies": {- "bs-logger": "0.x",- "buffer-from": "1.x",- "fast-json-stable-stringify": "2.x",- "jest-util": "^26.1.0",- "json5": "2.x",- "lodash": "4.x",- "make-error": "1.x",- "mkdirp": "1.x",- "semver": "7.x",- "yargs-parser": "20.x"- },- "bin": {- "ts-jest": "cli.js"- },- "engines": {- "node": ">= 10"- },- "peerDependencies": {- "jest": ">=26 <27",- "typescript": ">=3.8 <5.0"- }- },- "packages/jest/node_modules/typescript": {- "version": "4.9.5",- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",- "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",- "peer": true,- "bin": {- "tsc": "bin/tsc",- "tsserver": "bin/tsserver"- },- "engines": {- "node": ">=4.2.0"- }- },- "packages/jest/node_modules/yargs-parser": {- "version": "20.2.9",- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",- "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",- "engines": {- "node": ">=10"- }- },- "packages/logger": {- "name": "@carbon/logger",- "version": "0.0.0",- "devDependencies": {- "@carbon/jest": "*",- "@types/jest": "^26.0.22",- "eslint": "^8.23.1",- "eslint-config-carbon": "*",- "jest": "^26.6.3",- "tsup": "^6.2.3",- "typescript": "^5.2.2"- }- },- "packages/react": {- "name": "@carbon/react",- "version": "0.0.0",- "license": "AGPL-3.0-or-later",- "dependencies": {- "@chakra-ui/react": "^2.8.0",- "@emotion/react": "^11.11.1",- "@emotion/styled": "^11.11.0",- "@internationalized/date": "^3.3.0",- "@react-aria/button": "^3.8.0",- "@react-aria/calendar": "^3.4.0",- "@react-aria/datepicker": "^3.5.0",- "@react-stately/calendar": "^3.3.0",- "@react-stately/datepicker": "^3.5.0",- "@react-types/button": "^3.7.3",- "@react-types/calendar": "^3.3.0",- "@react-types/datepicker": "^3.4.0",- "@tanstack/react-table": "^8.9.3",- "@tiptap/extension-color": "^2.0.4",- "@tiptap/extension-list-item": "^2.0.4",- "@tiptap/extension-text-style": "^2.0.4",- "@tiptap/pm": "2.0.4",- "@tiptap/react": "^2.0.4",- "@tiptap/starter-kit": "^2.0.4",- "dompurify": "3.0.5",- "framer-motion": "^10.13.1",- "is-hotkey": "^0.2.0",- "react-colorful": "^5.6.1",- "react-icons": "^4.10.1",- "react-select": "^5.5.1",- "react-window": "^1.8.9"- },- "devDependencies": {- "@carbon/jest": "*",- "@carbon/tsconfig": "*",- "@testing-library/dom": "^8.11.1",- "@types/dompurify": "^2.4.0",- "@types/jest": "^26.0.22",- "@types/react": "^18.0.21",- "@types/react-dom": "^18.0.6",- "@types/react-window": "^1.8.5",- "eslint": "^8.23.1",- "eslint-config-carbon": "*",- "jest": "^26.6.3",- "react": "^18.2.0",- "tsup": "^6.2.3",- "typescript": "^5.2.2"- }- },- "packages/redis": {- "name": "@carbon/redis",- "version": "1.0.0",- "license": "MIT",- "dependencies": {- "ioredis": "^5.2.4"- },- "devDependencies": {- "@carbon/logger": "*",- "@carbon/tsconfig": "*",- "@types/ioredis": "^5.0.0",- "@types/node": "^18.15.1",- "dotenv": "16.0.3",- "eslint": "^8.23.1",- "eslint-config-carbon": "*",- "rimraf": "^3.0.2",- "tsup": "^6.5.0",- "tsx": "^3.12.1",- "typescript": "^5.2.2"- }- },- "packages/redis/node_modules/@types/node": {- "version": "18.18.6",- "dev": true,- "license": "MIT"+ "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="},- "packages/redis/node_modules/dotenv": {- "version": "16.0.3",- "dev": true,- "license": "BSD-2-Clause",+ "node_modules/wrap-ansi-cjs/node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==","engines": {- "node": ">=12"+ "node": ">=8"}},- "packages/redis/node_modules/glob": {- "version": "7.2.3",- "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",- "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",- "dev": true,+ "node_modules/wrap-ansi-cjs/node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==","dependencies": {- "fs.realpath": "^1.0.0",- "inflight": "^1.0.4",- "inherits": "2",- "minimatch": "^3.1.1",- "once": "^1.3.0",- "path-is-absolute": "^1.0.0"+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"},"engines": {- "node": "*"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "packages/redis/node_modules/rimraf": {- "version": "3.0.2",- "dev": true,- "license": "ISC",- "dependencies": {- "glob": "^7.1.3"- },- "bin": {- "rimraf": "bin.js"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "packages/tsconfig": {- "name": "@carbon/tsconfig",- "version": "0.0.0",- "license": "MIT"- },- "packages/utils": {- "name": "@carbon/utils",- "version": "0.0.0",- "license": "MIT",- "devDependencies": {- "@carbon/jest": "*",- "@carbon/tsconfig": "*",- "@types/jest": "^26.0.22",- "@types/react": "^18.0.21",- "@types/react-dom": "^18.0.6",- "eslint": "^8.23.1",- "eslint-config-carbon": "*",- "jest": "^26.6.3",- "react": "^18.2.0",- "tsup": "^6.2.3",- "typescript": "^5.2.2"- }- },- "shared": {- "license": "AGPL-3.0-or-later",- "dependencies": {- "@carbon/logger": "*",- "@remix-run/dev": "~2.0.0",- "@remix-run/eslint-config": "~2.0.0",- "@remix-run/node": "~2.0.0",- "@remix-run/react": "~2.0.0",- "@remix-run/serve": "~2.0.0",- "@supabase/supabase-js": "^2.33.1",- "@trigger.dev/react": "^2.2.2",- "@trigger.dev/remix": "^2.2.2",- "@trigger.dev/sdk": "^2.2.2",- "@vercel/analytics": "^1.0.2",- "@vercel/remix": "2.0.0",- "axios": "1.5.1",- "isbot": "latest",- "remix-flat-routes": "^0.5.10",- "remix-validated-form": "^5.0.2",- "zod": "^3.21.4"- },- "devDependencies": {- "@carbon/tsconfig": "*",- "@types/react": "^18.2.17",- "@types/react-dom": "^18.2.7",- "cross-env": "7.0.3",- "nodemon": "^3.0.1",- "typescript": "^5.2.2"- },- "engines": {- "node": ">=18"- }- },- "shared/node_modules/@esbuild/android-arm": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.17.6.tgz",- "integrity": "sha512-bSC9YVUjADDy1gae8RrioINU6e1lCkg3VGVwm0QQ2E1CWcC4gnMce9+B6RpxuSsrsXsk1yojn7sp1fnG8erE2g==",- "cpu": [- "arm"- ],- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/android-arm64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.17.6.tgz",- "integrity": "sha512-YnYSCceN/dUzUr5kdtUzB+wZprCafuD89Hs0Aqv9QSdwhYQybhXTaSTcrl6X/aWThn1a/j0eEpUBGOE7269REg==",- "cpu": [- "arm64"- ],- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/android-x64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.17.6.tgz",- "integrity": "sha512-MVcYcgSO7pfu/x34uX9u2QIZHmXAB7dEiLQC5bBl5Ryqtpj9lT2sg3gNDEsrPEmimSJW2FXIaxqSQ501YLDsZQ==",- "cpu": [- "x64"- ],- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/darwin-arm64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.17.6.tgz",- "integrity": "sha512-bsDRvlbKMQMt6Wl08nHtFz++yoZHsyTOxnjfB2Q95gato+Yi4WnRl13oC2/PJJA9yLCoRv9gqT/EYX0/zDsyMA==",- "cpu": [- "arm64"- ],- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/darwin-x64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.17.6.tgz",- "integrity": "sha512-xh2A5oPrYRfMFz74QXIQTQo8uA+hYzGWJFoeTE8EvoZGHb+idyV4ATaukaUvnnxJiauhs/fPx3vYhU4wiGfosg==",- "cpu": [- "x64"- ],- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/freebsd-arm64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.17.6.tgz",- "integrity": "sha512-EnUwjRc1inT4ccZh4pB3v1cIhohE2S4YXlt1OvI7sw/+pD+dIE4smwekZlEPIwY6PhU6oDWwITrQQm5S2/iZgg==",- "cpu": [- "arm64"- ],- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/freebsd-x64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.17.6.tgz",- "integrity": "sha512-Uh3HLWGzH6FwpviUcLMKPCbZUAFzv67Wj5MTwK6jn89b576SR2IbEp+tqUHTr8DIl0iDmBAf51MVaP7pw6PY5Q==",- "cpu": [- "x64"- ],- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/linux-arm": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.17.6.tgz",- "integrity": "sha512-7YdGiurNt7lqO0Bf/U9/arrPWPqdPqcV6JCZda4LZgEn+PTQ5SMEI4MGR52Bfn3+d6bNEGcWFzlIxiQdS48YUw==",- "cpu": [- "arm"- ],- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/linux-arm64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.17.6.tgz",- "integrity": "sha512-bUR58IFOMJX523aDVozswnlp5yry7+0cRLCXDsxnUeQYJik1DukMY+apBsLOZJblpH+K7ox7YrKrHmJoWqVR9w==",- "cpu": [- "arm64"- ],- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/linux-ia32": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.17.6.tgz",- "integrity": "sha512-ujp8uoQCM9FRcbDfkqECoARsLnLfCUhKARTP56TFPog8ie9JG83D5GVKjQ6yVrEVdMie1djH86fm98eY3quQkQ==",- "cpu": [- "ia32"- ],- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/linux-loong64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.17.6.tgz",- "integrity": "sha512-y2NX1+X/Nt+izj9bLoiaYB9YXT/LoaQFYvCkVD77G/4F+/yuVXYCWz4SE9yr5CBMbOxOfBcy/xFL4LlOeNlzYQ==",- "cpu": [- "loong64"- ],- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/linux-mips64el": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.17.6.tgz",- "integrity": "sha512-09AXKB1HDOzXD+j3FdXCiL/MWmZP0Ex9eR8DLMBVcHorrWJxWmY8Nms2Nm41iRM64WVx7bA/JVHMv081iP2kUA==",- "cpu": [- "mips64el"- ],- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/linux-ppc64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.17.6.tgz",- "integrity": "sha512-AmLhMzkM8JuqTIOhxnX4ubh0XWJIznEynRnZAVdA2mMKE6FAfwT2TWKTwdqMG+qEaeyDPtfNoZRpJbD4ZBv0Tg==",- "cpu": [- "ppc64"- ],- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/linux-riscv64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.17.6.tgz",- "integrity": "sha512-Y4Ri62PfavhLQhFbqucysHOmRamlTVK10zPWlqjNbj2XMea+BOs4w6ASKwQwAiqf9ZqcY9Ab7NOU4wIgpxwoSQ==",- "cpu": [- "riscv64"- ],- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/linux-s390x": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.17.6.tgz",- "integrity": "sha512-SPUiz4fDbnNEm3JSdUW8pBJ/vkop3M1YwZAVwvdwlFLoJwKEZ9L98l3tzeyMzq27CyepDQ3Qgoba44StgbiN5Q==",- "cpu": [- "s390x"- ],- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/linux-x64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.17.6.tgz",- "integrity": "sha512-a3yHLmOodHrzuNgdpB7peFGPx1iJ2x6m+uDvhP2CKdr2CwOaqEFMeSqYAHU7hG+RjCq8r2NFujcd/YsEsFgTGw==",- "cpu": [- "x64"- ],- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/netbsd-x64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.17.6.tgz",- "integrity": "sha512-EanJqcU/4uZIBreTrnbnre2DXgXSa+Gjap7ifRfllpmyAU7YMvaXmljdArptTHmjrkkKm9BK6GH5D5Yo+p6y5A==",- "cpu": [- "x64"- ],- "optional": true,- "os": [- "netbsd"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/openbsd-x64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.17.6.tgz",- "integrity": "sha512-xaxeSunhQRsTNGFanoOkkLtnmMn5QbA0qBhNet/XLVsc+OVkpIWPHcr3zTW2gxVU5YOHFbIHR9ODuaUdNza2Vw==",- "cpu": [- "x64"- ],- "optional": true,- "os": [- "openbsd"- ],- "engines": {- "node": ">=12"- }- },- "shared/node_modules/@esbuild/sunos-x64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.17.6.tgz",- "integrity": "sha512-gnMnMPg5pfMkZvhHee21KbKdc6W3GR8/JuE0Da1kjwpK6oiFU3nqfHuVPgUX2rsOx9N2SadSQTIYV1CIjYG+xw==",- "cpu": [- "x64"- ],- "optional": true,- "os": [- "sunos"- ],- "engines": {- "node": ">=12"+ "node": ">=8"}},- "shared/node_modules/@esbuild/win32-arm64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.17.6.tgz",- "integrity": "sha512-G95n7vP1UnGJPsVdKXllAJPtqjMvFYbN20e8RK8LVLhlTiSOH1sd7+Gt7rm70xiG+I5tM58nYgwWrLs6I1jHqg==",- "cpu": [- "arm64"- ],- "optional": true,- "os": [- "win32"- ],+ "node_modules/wrap-ansi/node_modules/ansi-regex": {+ "version": "6.0.1",+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1.tgz",+ "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA==","engines": {"node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-regex?sponsor=1"}},- "shared/node_modules/@esbuild/win32-ia32": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.17.6.tgz",- "integrity": "sha512-96yEFzLhq5bv9jJo5JhTs1gI+1cKQ83cUpyxHuGqXVwQtY5Eq54ZEsKs8veKtiKwlrNimtckHEkj4mRh4pPjsg==",- "cpu": [- "ia32"- ],- "optional": true,- "os": [- "win32"- ],+ "node_modules/wrap-ansi/node_modules/ansi-styles": {+ "version": "6.2.1",+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz",+ "integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==","engines": {"node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/ansi-styles?sponsor=1"}},- "shared/node_modules/@esbuild/win32-x64": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.17.6.tgz",- "integrity": "sha512-n6d8MOyUrNp6G4VSpRcgjs5xj4A91svJSaiwLIDWVWEsZtpN5FA9NlBbZHDmAJc2e8e6SF4tkBD3HAvPF+7igA==",- "cpu": [- "x64"- ],- "optional": true,- "os": [- "win32"- ],+ "node_modules/wrap-ansi/node_modules/strip-ansi": {+ "version": "7.1.0",+ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",+ "integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",+ "dependencies": {+ "ansi-regex": "^6.0.1"+ },"engines": {"node": ">=12"+ },+ "funding": {+ "url": "https://github.com/chalk/strip-ansi?sponsor=1"}},- "shared/node_modules/@remix-run/dev": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/@remix-run/dev/-/dev-2.0.1.tgz",- "integrity": "sha512-FxlbgCBXUzKxBSs2OfNoBUadcARr4S7S4JQ28t7MLcIsfJI/uHmGAMXClatsgeZuRvPK/Zx/W3B4uho1FTfQVA==",+ "node_modules/wrappy": {+ "version": "1.0.2",+ "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",+ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="+ },+ "node_modules/write-file-atomic": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz",+ "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==",+ "dev": true,"dependencies": {- "@babel/core": "^7.21.8",- "@babel/generator": "^7.21.5",- "@babel/parser": "^7.21.8",- "@babel/plugin-syntax-decorators": "^7.22.10",- "@babel/plugin-syntax-jsx": "^7.21.4",- "@babel/preset-typescript": "^7.21.5",- "@babel/traverse": "^7.21.5",- "@mdx-js/mdx": "^2.3.0",- "@npmcli/package-json": "^4.0.1",- "@remix-run/server-runtime": "2.0.1",- "@types/mdx": "^2.0.5",- "@vanilla-extract/integration": "^6.2.0",- "arg": "^5.0.1",- "cacache": "^17.1.3",- "chalk": "^4.1.2",- "chokidar": "^3.5.1",- "dotenv": "^16.0.0",- "esbuild": "0.17.6",- "esbuild-plugins-node-modules-polyfill": "^1.6.0",- "execa": "5.1.1",- "exit-hook": "2.2.1",- "express": "^4.17.1",- "fs-extra": "^10.0.0",- "get-port": "^5.1.1",- "gunzip-maybe": "^1.4.2",- "jsesc": "3.0.2",- "json5": "^2.2.2",- "lodash": "^4.17.21",- "lodash.debounce": "^4.0.8",- "minimatch": "^9.0.0",- "node-fetch": "^2.6.9",- "ora": "^5.4.1",- "picocolors": "^1.0.0",- "picomatch": "^2.3.1",- "pidtree": "^0.6.0",- "postcss": "^8.4.19",- "postcss-discard-duplicates": "^5.1.0",- "postcss-load-config": "^4.0.1",- "postcss-modules": "^6.0.0",- "prettier": "^2.7.1",- "pretty-ms": "^7.0.1",- "react-refresh": "^0.14.0",- "remark-frontmatter": "4.0.1",- "remark-mdx-frontmatter": "^1.0.1",- "semver": "^7.3.7",- "tar-fs": "^2.1.1",- "tsconfig-paths": "^4.0.0",- "ws": "^7.4.5"+ "imurmurhash": "^0.1.4",+ "signal-exit": "^4.0.1"},- "bin": {- "remix": "dist/cli.js"+ "engines": {+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"+ }+ },+ "node_modules/write-file-atomic/node_modules/signal-exit": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",+ "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",+ "dev": true,+ "engines": {+ "node": ">=14"},+ "funding": {+ "url": "https://github.com/sponsors/isaacs"+ }+ },+ "node_modules/ws": {+ "version": "7.5.9",+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",+ "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==","engines": {- "node": ">=18.0.0"+ "node": ">=8.3.0"},"peerDependencies": {- "@remix-run/serve": "^2.0.1",- "typescript": "^5.1.0"+ "bufferutil": "^4.0.1",+ "utf-8-validate": "^5.0.2"},"peerDependenciesMeta": {- "@remix-run/serve": {+ "bufferutil": {"optional": true},- "typescript": {+ "utf-8-validate": {"optional": true}}},- "shared/node_modules/@remix-run/eslint-config": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/@remix-run/eslint-config/-/eslint-config-2.0.1.tgz",- "integrity": "sha512-XIKnID45O60Vtegsib2qJOVYBCq2VRn+3qaEAX1NtgcQDI1xD7o3k1k3MCdQqaGD9/XmcbJumkmuAIX3Ti6/mA==",+ "node_modules/www": {+ "resolved": "www",+ "link": true+ },+ "node_modules/xml-name-validator": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz",+ "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw=="+ },+ "node_modules/xmlchars": {+ "version": "2.2.0",+ "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz",+ "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw=="+ },+ "node_modules/xtend": {+ "version": "4.0.2",+ "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",+ "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",+ "engines": {+ "node": ">=0.4"+ }+ },+ "node_modules/y18n": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz",+ "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ=="+ },+ "node_modules/yaeti": {+ "version": "0.0.6",+ "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz",+ "integrity": "sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==",+ "engines": {+ "node": ">=0.10.32"+ }+ },+ "node_modules/yallist": {+ "version": "4.0.0",+ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",+ "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="+ },+ "node_modules/yaml": {+ "version": "2.3.1",+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz",+ "integrity": "sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==",+ "engines": {+ "node": ">= 14"+ }+ },+ "node_modules/yargs": {+ "version": "15.4.1",+ "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz",+ "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==","dependencies": {- "@babel/core": "^7.21.8",- "@babel/eslint-parser": "^7.21.8",- "@babel/preset-react": "^7.18.6",- "@typescript-eslint/eslint-plugin": "^5.59.0",- "@typescript-eslint/parser": "^5.59.0",- "eslint-import-resolver-node": "0.3.7",- "eslint-import-resolver-typescript": "^3.5.4",- "eslint-plugin-import": "^2.27.5",- "eslint-plugin-jest": "^26.9.0",- "eslint-plugin-jest-dom": "^4.0.3",- "eslint-plugin-jsx-a11y": "^6.7.1",- "eslint-plugin-node": "^11.1.0",- "eslint-plugin-react": "^7.32.2",- "eslint-plugin-react-hooks": "^4.6.0",- "eslint-plugin-testing-library": "^5.10.2"+ "cliui": "^6.0.0",+ "decamelize": "^1.2.0",+ "find-up": "^4.1.0",+ "get-caller-file": "^2.0.1",+ "require-directory": "^2.1.1",+ "require-main-filename": "^2.0.0",+ "set-blocking": "^2.0.0",+ "string-width": "^4.2.0",+ "which-module": "^2.0.0",+ "y18n": "^4.0.0",+ "yargs-parser": "^18.1.2"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/yargs-parser": {+ "version": "18.1.3",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz",+ "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==",+ "dependencies": {+ "camelcase": "^5.0.0",+ "decamelize": "^1.2.0"+ },+ "engines": {+ "node": ">=6"+ }+ },+ "node_modules/yargs/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="+ },+ "node_modules/yargs/node_modules/find-up": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",+ "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",+ "dependencies": {+ "locate-path": "^5.0.0",+ "path-exists": "^4.0.0"},"engines": {- "node": ">=18.0.0"- },- "peerDependencies": {- "eslint": "^8.0.0",- "react": "^18.0.0",- "typescript": "^5.1.0"- },- "peerDependenciesMeta": {- "typescript": {- "optional": true- }+ "node": ">=8"+ }+ },+ "node_modules/yargs/node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "engines": {+ "node": ">=8"}},- "shared/node_modules/@remix-run/express": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/@remix-run/express/-/express-2.0.1.tgz",- "integrity": "sha512-YwqWF+Se6EoKL7uJhA/55BwP6kxIgDo//kHoh8miaMvVUKa1KMLru79kqU74d7PleYf9Qj4i2cXygz1mMl032w==",+ "node_modules/yargs/node_modules/locate-path": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",+ "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==","dependencies": {- "@remix-run/node": "2.0.1"+ "p-locate": "^4.1.0"},"engines": {- "node": ">=18.0.0"+ "node": ">=8"+ }+ },+ "node_modules/yargs/node_modules/p-limit": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",+ "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",+ "dependencies": {+ "p-try": "^2.0.0"},- "peerDependencies": {- "express": "^4.17.1",- "typescript": "^5.1.0"+ "engines": {+ "node": ">=6"},- "peerDependenciesMeta": {- "typescript": {- "optional": true- }+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"}},- "shared/node_modules/@remix-run/node": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/@remix-run/node/-/node-2.0.1.tgz",- "integrity": "sha512-pWsbmkNRb7azYomh1IGSKeW68hkwBBp6L2AWvfKSq2r2MJXHCzqgAJEc0uWkEUx6OtFbVNOg27g/cMCyKvrjIA==",+ "node_modules/yargs/node_modules/p-locate": {+ "version": "4.1.0",+ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",+ "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==","dependencies": {- "@remix-run/server-runtime": "2.0.1",- "@remix-run/web-fetch": "^4.4.1",- "@remix-run/web-file": "^3.1.0",- "@remix-run/web-stream": "^1.1.0",- "@web3-storage/multipart-parser": "^1.0.0",- "cookie-signature": "^1.1.0",- "source-map-support": "^0.5.21",- "stream-slice": "^0.1.2"+ "p-limit": "^2.2.0"},"engines": {- "node": ">=18.0.0"+ "node": ">=8"+ }+ },+ "node_modules/yargs/node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"},- "peerDependencies": {- "typescript": "^5.1.0"+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/yocto-queue": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",+ "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",+ "engines": {+ "node": ">=10"},- "peerDependenciesMeta": {- "typescript": {- "optional": true- }+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/zod": {+ "version": "3.22.4",+ "resolved": "https://registry.npmjs.org/zod/-/zod-3.22.4.tgz",+ "integrity": "sha512-iC+8Io04lddc+mVqQ9AZ7OQ2MrUKGN+oIQyq1vemgt46jwCwLfhq7/pwnBnNXXXZb8VTVLKwp9EDkx+ryxIWmg==",+ "funding": {+ "url": "https://github.com/sponsors/colinhacks"+ }+ },+ "node_modules/zod-error": {+ "version": "1.5.0",+ "resolved": "https://registry.npmjs.org/zod-error/-/zod-error-1.5.0.tgz",+ "integrity": "sha512-zzopKZ/skI9iXpqCEPj+iLCKl9b88E43ehcU+sbRoHuwGd9F1IDVGQ70TyO6kmfiRL1g4IXkjsXK+g1gLYl4WQ==",+ "dependencies": {+ "zod": "^3.20.2"}},- "shared/node_modules/@remix-run/react": {+ "node_modules/zod-form-data": {"version": "2.0.1",- "resolved": "https://registry.npmjs.org/@remix-run/react/-/react-2.0.1.tgz",- "integrity": "sha512-xZgJcRjzx9gjCzh7dDZGQJcmQPPFisMrDwhUuIzlSHuR2rEQCCGZPBLVCpbD1zhDfbdvOugbf2DLSmP2TEBXNA==",+ "resolved": "https://registry.npmjs.org/zod-form-data/-/zod-form-data-2.0.1.tgz",+ "integrity": "sha512-4jcsj3vFyFGINLLHEmehfOPKdcw+HqV65RwsV2IdyLHp9wpvGJRVXWg1yY8sq0ASEbQfTVBRtI7LcDGv3Qpj8g==",+ "peerDependencies": {+ "zod": "^3.11.x"+ }+ },+ "node_modules/zustand": {+ "version": "4.4.6",+ "resolved": "https://registry.npmjs.org/zustand/-/zustand-4.4.6.tgz",+ "integrity": "sha512-Rb16eW55gqL4W2XZpJh0fnrATxYEG3Apl2gfHTyDSE965x/zxslTikpNch0JgNjJA9zK6gEFW8Fl6d1rTZaqgg==","dependencies": {- "@remix-run/router": "1.9.0",- "@remix-run/server-runtime": "2.0.1",- "react-router-dom": "6.16.0"+ "use-sync-external-store": "1.2.0"},"engines": {- "node": ">=18.0.0"+ "node": ">=12.7.0"},"peerDependencies": {- "react": "^18.0.0",- "react-dom": "^18.0.0",- "typescript": "^5.1.0"+ "@types/react": ">=16.8",+ "immer": ">=9.0",+ "react": ">=16.8"},"peerDependenciesMeta": {- "typescript": {+ "@types/react": {+ "optional": true+ },+ "immer": {+ "optional": true+ },+ "react": {"optional": true}}},- "shared/node_modules/@remix-run/router": {- "version": "1.9.0",- "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.9.0.tgz",- "integrity": "sha512-bV63itrKBC0zdT27qYm6SDZHlkXwFL1xMBuhkn+X7l0+IIhNaH5wuuvZKp6eKhCD4KFhujhfhCT1YxXW6esUIA==",- "engines": {- "node": ">=14.0.0"+ "node_modules/zwitch": {+ "version": "2.0.4",+ "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",+ "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==",+ "funding": {+ "type": "github",+ "url": "https://github.com/sponsors/wooorm"+ }+ },+ "packages/database": {+ "name": "@carbon/database",+ "license": "AGPL-3.0-or-later",+ "devDependencies": {+ "@carbon/tsconfig": "*",+ "@supabase/supabase-js": "^2.38.4",+ "@types/node": "^18.15.0",+ "@types/uuid": "^8.3.4",+ "dotenv": "16.3.1",+ "eslint": "^8.23.1",+ "eslint-config-carbon": "*",+ "npm-run-all": "^4.1.5",+ "rimraf": "^4.4.0",+ "supabase": "1.93.0",+ "tsup": "^6.5.0",+ "tsx": "^3.12.1",+ "typescript": "^5.2.2",+ "uuid": "9.0.0"}},- "shared/node_modules/@remix-run/serve": {+ "packages/database/node_modules/brace-expansion": {"version": "2.0.1",- "resolved": "https://registry.npmjs.org/@remix-run/serve/-/serve-2.0.1.tgz",- "integrity": "sha512-3aljUFhzsIwgGN2SuMgrXQH5TqA8e52afrYAnHR5CpHXxVxkwyDB4BNKng7yLRIywsOi5MHOclu/5preKV8qVA==",+ "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",+ "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",+ "dev": true,"dependencies": {- "@remix-run/express": "2.0.1",- "@remix-run/node": "2.0.1",- "chokidar": "^3.5.3",- "compression": "^1.7.4",- "express": "^4.17.1",- "get-port": "5.1.1",- "morgan": "^1.10.0",- "source-map-support": "^0.5.21"- },- "bin": {- "remix-serve": "dist/cli.js"- },- "engines": {- "node": ">=18.0.0"+ "balanced-match": "^1.0.0"}},- "shared/node_modules/@remix-run/server-runtime": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/@remix-run/server-runtime/-/server-runtime-2.0.1.tgz",- "integrity": "sha512-xCW2aw9EILx7F3orEHN2fcpEkNzZTRU8VzP7gS9pmHP45qteFqsY5Qg2/dnF17royWmeeBNhnXaJOgb76W1KEA==",+ "packages/database/node_modules/glob": {+ "version": "9.3.5",+ "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.5.tgz",+ "integrity": "sha512-e1LleDykUz2Iu+MTYdkSsuWX8lvAjAcs0Xef0lNIu0S2wOAzuTxCJtcd9S3cijlwYF18EsU3rzb8jPVobxDh9Q==",+ "dev": true,"dependencies": {- "@remix-run/router": "1.9.0",- "@types/cookie": "^0.4.1",- "@web3-storage/multipart-parser": "^1.0.0",- "cookie": "^0.4.1",- "set-cookie-parser": "^2.4.8",- "source-map": "^0.7.3",- "type-fest": "^4.0.0"+ "fs.realpath": "^1.0.0",+ "minimatch": "^8.0.2",+ "minipass": "^4.2.4",+ "path-scurry": "^1.6.1"},"engines": {- "node": ">=18.0.0"- },- "peerDependencies": {- "typescript": "^5.1.0"+ "node": ">=16 || 14 >=14.17"},- "peerDependenciesMeta": {- "typescript": {- "optional": true- }+ "funding": {+ "url": "https://github.com/sponsors/isaacs"}},- "shared/node_modules/@vercel/remix": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/@vercel/remix/-/remix-2.0.0.tgz",- "integrity": "sha512-nwv1Z0ucVAARp399JOq/+Vf174E457P8BIJuDn63NAudgcKUWPVmqbfg1EP0jIa+FsjNQX1YXyExZ47k3sAfHg==",+ "packages/database/node_modules/minimatch": {+ "version": "8.0.4",+ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-8.0.4.tgz",+ "integrity": "sha512-W0Wvr9HyFXZRGIDgCicunpQ299OKXs9RgZfaukz4qAW/pJhcpUfupc9c+OObPOFueNy8VSrZgEmDtk6Kh4WzDA==",+ "dev": true,"dependencies": {- "@remix-run/node": "2.0.0",- "@remix-run/server-runtime": "2.0.0",- "isbot": "^3.6.8"+ "brace-expansion": "^2.0.1"},"engines": {- "node": ">=14"+ "node": ">=16 || 14 >=14.17"},- "peerDependencies": {- "react": "*",- "react-dom": "*"+ "funding": {+ "url": "https://github.com/sponsors/isaacs"}},- "shared/node_modules/@vercel/remix/node_modules/@remix-run/node": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/@remix-run/node/-/node-2.0.0.tgz",- "integrity": "sha512-wICp1W3Aue6CojlfSQZoKCQYnJ+7U/kk0poqQr6+CNihY5QPStzOce3hNYwB9NweagbZsMf80x47m6ef6a9psQ==",+ "packages/database/node_modules/minipass": {+ "version": "4.2.8",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.2.8.tgz",+ "integrity": "sha512-fNzuVyifolSLFL4NzpF+wEF4qrgqaaKX0haXPQEdQ7NKAN+WecoKMHV09YcuL/DHxrUsYQOK3MiuDf7Ip2OXfQ==",+ "dev": true,+ "engines": {+ "node": ">=8"+ }+ },+ "packages/database/node_modules/rimraf": {+ "version": "4.4.1",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.4.1.tgz",+ "integrity": "sha512-Gk8NlF062+T9CqNGn6h4tls3k6T1+/nXdOcSZVikNVtlRdYpA7wRJJMoXmuvOnLW844rPjdQ7JgXCYM6PPC/og==",+ "dev": true,"dependencies": {- "@remix-run/server-runtime": "2.0.0",- "@remix-run/web-fetch": "^4.4.0",- "@remix-run/web-file": "^3.1.0",- "@remix-run/web-stream": "^1.1.0",- "@web3-storage/multipart-parser": "^1.0.0",- "cookie-signature": "^1.1.0",- "source-map-support": "^0.5.21",- "stream-slice": "^0.1.2"+ "glob": "^9.2.0"},- "engines": {- "node": ">=18.0.0"+ "bin": {+ "rimraf": "dist/cjs/src/bin.js"},- "peerDependencies": {- "typescript": "^5.1.0"+ "engines": {+ "node": ">=14"},- "peerDependenciesMeta": {- "typescript": {- "optional": true- }+ "funding": {+ "url": "https://github.com/sponsors/isaacs"}},- "shared/node_modules/@vercel/remix/node_modules/@remix-run/server-runtime": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/@remix-run/server-runtime/-/server-runtime-2.0.0.tgz",- "integrity": "sha512-HaNszj/mp/A1Qz5sVupVIXqDyeEni3nwW5iKDqGAqv0n8E6FRkzEhOtAJypRABcKWBq0M9VM3fm6IO0vaMti8Q==",+ "packages/eslint-config-carbon": {+ "license": "MIT","dependencies": {- "@remix-run/router": "1.9.0",- "@types/cookie": "^0.4.1",- "@web3-storage/multipart-parser": "^1.0.0",- "cookie": "^0.4.1",- "set-cookie-parser": "^2.4.8",- "source-map": "^0.7.3",- "type-fest": "^4.0.0"- },- "engines": {- "node": ">=18.0.0"+ "@babel/eslint-parser": "7.22.9",+ "@babel/preset-react": "7.22.5",+ "@typescript-eslint/eslint-plugin": "^5.38.0",+ "@typescript-eslint/parser": "^5.38.0",+ "eslint-config-prettier": "^8.5.0",+ "eslint-import-resolver-node": "0.3.6",+ "eslint-import-resolver-typescript": "^3.5.1"},"peerDependencies": {- "typescript": "^5.1.0"+ "@types/eslint": "^8.4.6",+ "eslint": "^8.23.1",+ "typescript": "^5.2.2"},"peerDependenciesMeta": {"typescript": {@@ -28497,321 +26480,286 @@}}},- "shared/node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",+ "packages/eslint-config-carbon/node_modules/debug": {+ "version": "3.2.7",+ "license": "MIT","dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"+ "ms": "^2.1.1"}},- "shared/node_modules/brace-expansion": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",+ "packages/eslint-config-carbon/node_modules/eslint-import-resolver-node": {+ "version": "0.3.6",+ "license": "MIT","dependencies": {- "balanced-match": "^1.0.0"+ "debug": "^3.2.7",+ "resolve": "^1.20.0"}},- "shared/node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",+ "packages/jest": {+ "name": "@carbon/jest",+ "version": "0.0.0",+ "license": "MIT","dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"+ "ts-jest": "^26.5.0"},- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"+ "devDependencies": {+ "eslint-config-carbon": "*"}},- "shared/node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",+ "packages/jest/node_modules/lru-cache": {+ "version": "6.0.0",+ "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",+ "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==","dependencies": {- "color-name": "~1.1.4"+ "yallist": "^4.0.0"},"engines": {- "node": ">=7.0.0"+ "node": ">=10"}},- "shared/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="- },- "shared/node_modules/esbuild": {- "version": "0.17.6",- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.17.6.tgz",- "integrity": "sha512-TKFRp9TxrJDdRWfSsSERKEovm6v30iHnrjlcGhLBOtReE28Yp1VSBRfO3GTaOFMoxsNerx4TjrhzSuma9ha83Q==",- "hasInstallScript": true,+ "packages/jest/node_modules/semver": {+ "version": "7.5.4",+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",+ "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",+ "dependencies": {+ "lru-cache": "^6.0.0"+ },"bin": {- "esbuild": "bin/esbuild"+ "semver": "bin/semver.js"},"engines": {- "node": ">=12"- },- "optionalDependencies": {- "@esbuild/android-arm": "0.17.6",- "@esbuild/android-arm64": "0.17.6",- "@esbuild/android-x64": "0.17.6",- "@esbuild/darwin-arm64": "0.17.6",- "@esbuild/darwin-x64": "0.17.6",- "@esbuild/freebsd-arm64": "0.17.6",- "@esbuild/freebsd-x64": "0.17.6",- "@esbuild/linux-arm": "0.17.6",- "@esbuild/linux-arm64": "0.17.6",- "@esbuild/linux-ia32": "0.17.6",- "@esbuild/linux-loong64": "0.17.6",- "@esbuild/linux-mips64el": "0.17.6",- "@esbuild/linux-ppc64": "0.17.6",- "@esbuild/linux-riscv64": "0.17.6",- "@esbuild/linux-s390x": "0.17.6",- "@esbuild/linux-x64": "0.17.6",- "@esbuild/netbsd-x64": "0.17.6",- "@esbuild/openbsd-x64": "0.17.6",- "@esbuild/sunos-x64": "0.17.6",- "@esbuild/win32-arm64": "0.17.6",- "@esbuild/win32-ia32": "0.17.6",- "@esbuild/win32-x64": "0.17.6"+ "node": ">=10"}},- "shared/node_modules/execa": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",- "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",+ "packages/jest/node_modules/ts-jest": {+ "version": "26.5.6",+ "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-26.5.6.tgz",+ "integrity": "sha512-rua+rCP8DxpA8b4DQD/6X2HQS8Zy/xzViVYfEs2OQu68tkCuKLV0Md8pmX55+W24uRIyAsf/BajRfxOs+R2MKA==","dependencies": {- "cross-spawn": "^7.0.3",- "get-stream": "^6.0.0",- "human-signals": "^2.1.0",- "is-stream": "^2.0.0",- "merge-stream": "^2.0.0",- "npm-run-path": "^4.0.1",- "onetime": "^5.1.2",- "signal-exit": "^3.0.3",- "strip-final-newline": "^2.0.0"+ "bs-logger": "0.x",+ "buffer-from": "1.x",+ "fast-json-stable-stringify": "2.x",+ "jest-util": "^26.1.0",+ "json5": "2.x",+ "lodash": "4.x",+ "make-error": "1.x",+ "mkdirp": "1.x",+ "semver": "7.x",+ "yargs-parser": "20.x"},- "engines": {- "node": ">=10"+ "bin": {+ "ts-jest": "cli.js"},- "funding": {- "url": "https://github.com/sindresorhus/execa?sponsor=1"- }- },- "shared/node_modules/human-signals": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",- "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",- "engines": {- "node": ">=10.17.0"- }- },- "shared/node_modules/is-stream": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",- "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==","engines": {- "node": ">=8"+ "node": ">= 10"},- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "peerDependencies": {+ "jest": ">=26 <27",+ "typescript": ">=3.8 <5.0"}},- "shared/node_modules/jsesc": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz",- "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==",+ "packages/jest/node_modules/typescript": {+ "version": "4.9.5",+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz",+ "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",+ "peer": true,"bin": {- "jsesc": "bin/jsesc"+ "tsc": "bin/tsc",+ "tsserver": "bin/tsserver"},"engines": {- "node": ">=6"+ "node": ">=4.2.0"}},- "shared/node_modules/lru-cache": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",- "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==",- "dependencies": {- "yallist": "^4.0.0"- },+ "packages/jest/node_modules/yargs-parser": {+ "version": "20.2.9",+ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",+ "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==","engines": {"node": ">=10"}},- "shared/node_modules/mimic-fn": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",- "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",- "engines": {- "node": ">=6"- }- },- "shared/node_modules/minimatch": {- "version": "9.0.3",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.3.tgz",- "integrity": "sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg==",- "dependencies": {- "brace-expansion": "^2.0.1"- },- "engines": {- "node": ">=16 || 14 >=14.17"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"+ "packages/logger": {+ "name": "@carbon/logger",+ "version": "0.0.0",+ "devDependencies": {+ "@carbon/jest": "*",+ "@types/jest": "^26.0.22",+ "eslint": "^8.23.1",+ "eslint-config-carbon": "*",+ "jest": "^26.6.3",+ "tsup": "^6.2.3",+ "typescript": "^5.2.2"}},- "shared/node_modules/node-fetch": {- "version": "2.7.0",- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz",- "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==",+ "packages/react": {+ "name": "@carbon/react",+ "version": "0.0.0",+ "license": "AGPL-3.0-or-later","dependencies": {- "whatwg-url": "^5.0.0"- },- "engines": {- "node": "4.x || >=6.0.0"- },- "peerDependencies": {- "encoding": "^0.1.0"+ "@chakra-ui/react": "^2.8.0",+ "@emotion/react": "^11.11.1",+ "@emotion/styled": "^11.11.0",+ "@internationalized/date": "^3.3.0",+ "@react-aria/button": "^3.8.0",+ "@react-aria/calendar": "^3.4.0",+ "@react-aria/datepicker": "^3.5.0",+ "@react-stately/calendar": "^3.3.0",+ "@react-stately/datepicker": "^3.5.0",+ "@react-types/button": "^3.7.3",+ "@react-types/calendar": "^3.3.0",+ "@react-types/datepicker": "^3.4.0",+ "@tanstack/react-table": "^8.9.3",+ "@tiptap/extension-color": "^2.0.4",+ "@tiptap/extension-list-item": "^2.0.4",+ "@tiptap/extension-text-style": "^2.0.4",+ "@tiptap/pm": "2.0.4",+ "@tiptap/react": "^2.0.4",+ "@tiptap/starter-kit": "^2.0.4",+ "dompurify": "3.0.5",+ "framer-motion": "^10.13.1",+ "is-hotkey": "^0.2.0",+ "react-colorful": "^5.6.1",+ "react-icons": "^4.10.1",+ "react-select": "^5.5.1",+ "react-window": "^1.8.9"},- "peerDependenciesMeta": {- "encoding": {- "optional": true- }+ "devDependencies": {+ "@carbon/jest": "*",+ "@carbon/tsconfig": "*",+ "@testing-library/dom": "^8.11.1",+ "@types/dompurify": "^2.4.0",+ "@types/jest": "^26.0.22",+ "@types/react": "^18.0.21",+ "@types/react-dom": "^18.0.6",+ "@types/react-window": "^1.8.5",+ "eslint": "^8.23.1",+ "eslint-config-carbon": "*",+ "jest": "^26.6.3",+ "react": "^18.2.0",+ "tsup": "^6.2.3",+ "typescript": "^5.2.2"}},- "shared/node_modules/npm-run-path": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",- "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",+ "packages/redis": {+ "name": "@carbon/redis",+ "version": "1.0.0",+ "license": "MIT","dependencies": {- "path-key": "^3.0.0"+ "ioredis": "^5.2.4"},- "engines": {- "node": ">=8"+ "devDependencies": {+ "@carbon/logger": "*",+ "@carbon/tsconfig": "*",+ "@types/ioredis": "^5.0.0",+ "@types/node": "^18.15.1",+ "dotenv": "16.0.3",+ "eslint": "^8.23.1",+ "eslint-config-carbon": "*",+ "rimraf": "^3.0.2",+ "tsup": "^6.5.0",+ "tsx": "^3.12.1",+ "typescript": "^5.2.2"}},- "shared/node_modules/onetime": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",- "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",- "dependencies": {- "mimic-fn": "^2.1.0"- },+ "packages/redis/node_modules/dotenv": {+ "version": "16.0.3",+ "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz",+ "integrity": "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==",+ "dev": true,"engines": {- "node": ">=6"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">=12"}},- "shared/node_modules/postcss-load-config": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-4.0.1.tgz",- "integrity": "sha512-vEJIc8RdiBRu3oRAI0ymerOn+7rPuMvRXslTvZUKZonDHFIczxztIyJ1urxM1x9JXEikvpWWTUUqal5j/8QgvA==",+ "packages/redis/node_modules/glob": {+ "version": "7.2.3",+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",+ "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",+ "dev": true,"dependencies": {- "lilconfig": "^2.0.5",- "yaml": "^2.1.1"+ "fs.realpath": "^1.0.0",+ "inflight": "^1.0.4",+ "inherits": "2",+ "minimatch": "^3.1.1",+ "once": "^1.3.0",+ "path-is-absolute": "^1.0.0"},"engines": {- "node": ">= 14"+ "node": "*"},"funding": {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- "peerDependencies": {- "postcss": ">=8.0.9",- "ts-node": ">=9.0.0"- },- "peerDependenciesMeta": {- "postcss": {- "optional": true- },- "ts-node": {- "optional": true- }+ "url": "https://github.com/sponsors/isaacs"}},- "shared/node_modules/react-router": {- "version": "6.16.0",- "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.16.0.tgz",- "integrity": "sha512-VT4Mmc4jj5YyjpOi5jOf0I+TYzGpvzERy4ckNSvSh2RArv8LLoCxlsZ2D+tc7zgjxcY34oTz2hZaeX5RVprKqA==",+ "packages/redis/node_modules/rimraf": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",+ "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",+ "dev": true,"dependencies": {- "@remix-run/router": "1.9.0"+ "glob": "^7.1.3"},- "engines": {- "node": ">=14.0.0"+ "bin": {+ "rimraf": "bin.js"},- "peerDependencies": {- "react": ">=16.8"+ "funding": {+ "url": "https://github.com/sponsors/isaacs"}},- "shared/node_modules/react-router-dom": {- "version": "6.16.0",- "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.16.0.tgz",- "integrity": "sha512-aTfBLv3mk/gaKLxgRDUPbPw+s4Y/O+ma3rEN1u8EgEpLpPe6gNjIsWt9rxushMHHMb7mSwxRGdGlGdvmFsyPIg==",- "dependencies": {- "@remix-run/router": "1.9.0",- "react-router": "6.16.0"- },- "engines": {- "node": ">=14.0.0"- },- "peerDependencies": {- "react": ">=16.8",- "react-dom": ">=16.8"+ "packages/tsconfig": {+ "name": "@carbon/tsconfig",+ "version": "0.0.0",+ "license": "MIT"+ },+ "packages/utils": {+ "name": "@carbon/utils",+ "version": "0.0.0",+ "license": "MIT",+ "devDependencies": {+ "@carbon/jest": "*",+ "@carbon/tsconfig": "*",+ "@types/jest": "^26.0.22",+ "@types/react": "^18.0.21",+ "@types/react-dom": "^18.0.6",+ "eslint": "^8.23.1",+ "eslint-config-carbon": "*",+ "jest": "^26.6.3",+ "react": "^18.2.0",+ "tsup": "^6.2.3",+ "typescript": "^5.2.2"}},- "shared/node_modules/semver": {- "version": "7.5.4",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz",- "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==",+ "shared": {+ "license": "AGPL-3.0-or-later","dependencies": {- "lru-cache": "^6.0.0"+ "@carbon/logger": "*",+ "@remix-run/dev": "~2.2.0",+ "@remix-run/eslint-config": "~2.2.0",+ "@remix-run/node": "~2.2.0",+ "@remix-run/react": "~2.2.0",+ "@remix-run/serve": "~2.2.0",+ "@supabase/supabase-js": "^2.38.4",+ "@trigger.dev/react": "^2.2.2",+ "@trigger.dev/remix": "^2.2.2",+ "@trigger.dev/sdk": "^2.2.2",+ "@vercel/analytics": "^1.0.2",+ "@vercel/remix": "2.2.0",+ "axios": "1.5.1",+ "isbot": "latest",+ "remix-flat-routes": "^0.5.10",+ "remix-validated-form": "^5.0.2",+ "zod": "^3.21.4"},- "bin": {- "semver": "bin/semver.js"+ "devDependencies": {+ "@carbon/tsconfig": "*",+ "@types/react": "^18.2.17",+ "@types/react-dom": "^18.2.7",+ "cross-env": "7.0.3",+ "nodemon": "^3.0.1",+ "typescript": "^5.2.2"},"engines": {- "node": ">=10"- }- },- "shared/node_modules/source-map": {- "version": "0.7.4",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz",- "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==",- "engines": {- "node": ">= 8"- }- },- "shared/node_modules/strip-final-newline": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",- "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",- "engines": {- "node": ">=6"- }- },- "shared/node_modules/type-fest": {- "version": "4.6.0",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.6.0.tgz",- "integrity": "sha512-rLjWJzQFOq4xw7MgJrCZ6T1jIOvvYElXT12r+y0CC6u67hegDHaxcPqb2fZHOGlqxugGQPNB1EnTezjBetkwkw==",- "engines": {- "node": ">=16"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"+ "node": ">=18"}},"www": {@@ -28836,106 +26784,6 @@"tailwindcss": "~3.2.7","typescript": "^5.2.2"}- },- "www/node_modules/@types/node": {- "version": "18.17.1",- "dev": true,- "license": "MIT"- },- "www/node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",- "dev": true- },- "www/node_modules/glob-parent": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",- "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",- "dev": true,- "dependencies": {- "is-glob": "^4.0.3"- },- "engines": {- "node": ">=10.13.0"- }- },- "www/node_modules/postcss-import": {- "version": "14.1.0",- "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-14.1.0.tgz",- "integrity": "sha512-flwI+Vgm4SElObFVPpTIT7SU7R3qk2L7PyduMcokiaVKuWv9d/U+Gm/QAd8NDLuykTWTkcrjOeD2Pp1rMeBTGw==",- "dev": true,- "dependencies": {- "postcss-value-parser": "^4.0.0",- "read-cache": "^1.0.0",- "resolve": "^1.1.7"- },- "engines": {- "node": ">=10.0.0"- },- "peerDependencies": {- "postcss": "^8.0.0"- }- },- "www/node_modules/postcss-nested": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.0.tgz",- "integrity": "sha512-0DkamqrPcmkBDsLn+vQDIrtkSbNkv5AD/M322ySo9kqFkCIYklym2xEmWkwo+Y3/qZo34tzEPNUw4y7yMCdv5w==",- "dev": true,- "dependencies": {- "postcss-selector-parser": "^6.0.10"- },- "engines": {- "node": ">=12.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- "peerDependencies": {- "postcss": "^8.2.14"- }- },- "www/node_modules/tailwindcss": {- "version": "3.2.7",- "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.2.7.tgz",- "integrity": "sha512-B6DLqJzc21x7wntlH/GsZwEXTBttVSl1FtCzC8WP4oBc/NKef7kaax5jeihkkCEWc831/5NDJ9gRNDK6NEioQQ==",- "dev": true,- "dependencies": {- "arg": "^5.0.2",- "chokidar": "^3.5.3",- "color-name": "^1.1.4",- "detective": "^5.2.1",- "didyoumean": "^1.2.2",- "dlv": "^1.1.3",- "fast-glob": "^3.2.12",- "glob-parent": "^6.0.2",- "is-glob": "^4.0.3",- "lilconfig": "^2.0.6",- "micromatch": "^4.0.5",- "normalize-path": "^3.0.0",- "object-hash": "^3.0.0",- "picocolors": "^1.0.0",- "postcss": "^8.0.9",- "postcss-import": "^14.1.0",- "postcss-js": "^4.0.0",- "postcss-load-config": "^3.1.4",- "postcss-nested": "6.0.0",- "postcss-selector-parser": "^6.0.11",- "postcss-value-parser": "^4.2.0",- "quick-lru": "^5.1.1",- "resolve": "^1.22.1"- },- "bin": {- "tailwind": "lib/cli.js",- "tailwindcss": "lib/cli.js"- },- "engines": {- "node": ">=12.13.0"- },- "peerDependencies": {- "postcss": "^8.0.9"- }}}}diff --git a/package.json b/package.jsonindex 70e68ed704..c1cbf6470c 100755--- a/package.json+++ b/package.json@@ -44,6 +44,8 @@"test": "turbo run test"},"devDependencies": {+ "eslint": "^8.23.1",+ "eslint-config-carbon": "*","husky": "^8.0.3","lint-staged": "^13.1.2","npm-run-all": "^4.1.5",@@ -57,7 +59,7 @@"node": ">=18"},"lint-staged": {- "(apps|packages|www)/**/*.{js,ts,jsx,tsx}": [+ "(apps|packages|shared|www)/**/*.{js,ts,jsx,tsx}": ["prettier --write","eslint --fix --max-warnings=0"],diff --git a/packages/database/SCHEMA.md b/packages/database/SCHEMA.mdindex 546d55c3e3..f5e6e873f9 100644--- a/packages/database/SCHEMA.md+++ b/packages/database/SCHEMA.md@@ -889,6 +889,8 @@ CREATE TABLE "customerAccount" (CREATE INDEX "customerAccount_customerId_index" ON "customerAccount"("customerId");++```@@ -1541,7 +1543,7 @@ CREATE POLICY "Employees with jobs_view can search for jobs" ON "search"-## `rbac`+## `abac````sql-- contact@@ -1838,7 +1840,6 @@ CREATE POLICY "Employees with sales_delete can delete customer contacts" ON "cusFOR DELETEUSING (coalesce(get_my_claim('sales_delete')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);--- supplierTypeALTER TABLE "supplierType" ENABLE ROW LEVEL SECURITY;@@ -1947,6 +1948,7 @@ CREATE POLICY "Employees with purchasing_delete can delete supplier contacts" ONFOR DELETEUSING (coalesce(get_my_claim('purchasing_delete')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);+```@@ -4367,7 +4369,6 @@ CREATE TABLE "shippingTerm" (CREATE TYPE "purchaseOrderType" AS ENUM (- 'Draft','Purchase','Return');@@ -4634,16 +4635,6 @@ CREATE OR REPLACE VIEW "purchaseOrders" ASLEFT JOIN "user" u2 ON u2."id" = p."updatedBy"LEFT JOIN "user" u3 ON u3."id" = p."closedBy";-ALTER TABLE "supplier"- ADD COLUMN "defaultCurrencyCode" TEXT,- ADD COLUMN "defaultPaymentTermId" TEXT,- ADD COLUMN "defaultShippingMethodId" TEXT,- ADD COLUMN "defaultShippingTermId" TEXT;--ALTER TABLE "supplier"- ADD CONSTRAINT "supplier_defaultPaymentTermId_fkey" FOREIGN KEY ("defaultPaymentTermId") REFERENCES "paymentTerm" ("id") ON DELETE SET NULL,- ADD CONSTRAINT "supplier_defaultShippingMethodId_fkey" FOREIGN KEY ("defaultShippingMethodId") REFERENCES "shippingMethod" ("id") ON DELETE SET NULL,- ADD CONSTRAINT "supplier_defaultShippingTermId_fkey" FOREIGN KEY ("defaultShippingTermId") REFERENCES "shippingTerm" ("id") ON DELETE SET NULL;CREATE OR REPLACE VIEW "purchaseOrderSuppliers" ASSELECT DISTINCT@@ -4661,17 +4652,29 @@ CREATE OR REPLACE VIEW "purchaseOrderSuppliers" AS```sqlCREATE TABLE "sequence" (+ "id" TEXT GENERATED ALWAYS AS (+ CASE WHEN prefix IS NULL AND suffix IS NULL THEN+ repeat('0', "size")+ WHEN prefix IS NULL THEN+ repeat('0', "size") || suffix+ WHEN suffix IS NULL THEN+ prefix || repeat('0', "size")+ ELSE+ prefix || repeat('0', "size") || suffix+ END+ )+ STORED,"table" TEXT NOT NULL,"name" TEXT NOT NULL,"prefix" TEXT,"suffix" TEXT,- "next" BIGINT NOT NULL DEFAULT 1,+ "next" INTEGER NOT NULL DEFAULT 1,"size" INTEGER NOT NULL DEFAULT 5,"step" INTEGER NOT NULL DEFAULT 1,"updatedAt" TIMESTAMP WITH TIME ZONE,"updatedBy" TEXT,- CONSTRAINT "sequence_pkey" PRIMARY KEY ("table"),+ CONSTRAINT "sequence_pkey" PRIMARY KEY ("id"),CONSTRAINT "sequence_next_check" CHECK ("next" >= 0),CONSTRAINT "sequence_size_check" CHECK ("size" >= 1),CONSTRAINT "sequence_step_check" CHECK ("step" >= 1),@@ -6463,24 +6466,6 @@ CREATE OR REPLACE VIEW "partQuantities" AS-## `customer-details`--```sql-ALTER TABLE "customer"- ADD COLUMN "defaultCurrencyCode" TEXT,- ADD COLUMN "defaultPaymentTermId" TEXT,- ADD COLUMN "defaultShippingMethodId" TEXT,- ADD COLUMN "defaultShippingTermId" TEXT;--ALTER TABLE "customer"- ADD CONSTRAINT "customer_defaultPaymentTermId_fkey" FOREIGN KEY ("defaultPaymentTermId") REFERENCES "paymentTerm" ("id") ON DELETE SET NULL,- ADD CONSTRAINT "customer_defaultShippingMethodId_fkey" FOREIGN KEY ("defaultShippingMethodId") REFERENCES "shippingMethod" ("id") ON DELETE SET NULL,- ADD CONSTRAINT "customer_defaultShippingTermId_fkey" FOREIGN KEY ("defaultShippingTermId") REFERENCES "shippingTerm" ("id") ON DELETE SET NULL;--```---## `accounts-payable````sql@@ -6501,12 +6486,15 @@ CREATE TABLE "purchaseInvoice" ("status" "purchaseInvoiceStatus" NOT NULL DEFAULT 'Draft',"supplierId" TEXT,"supplierReference" TEXT,- "supplierContactId" TEXT,+ "invoiceSupplierId" TEXT,+ "invoiceSupplierLocationId" TEXT,+ "invoiceSupplierContactId" TEXT,+ "paymentTermId" TEXT,+ "currencyCode" TEXT NOT NULL,+ "exchangeRate" NUMERIC(10, 4) NOT NULL DEFAULT 1,"dateIssued" DATE,"dateDue" DATE,"datePaid" DATE,- "currencyCode" TEXT NOT NULL,- "exchangeRate" NUMERIC(10, 4) NOT NULL DEFAULT 1,"subtotal" NUMERIC(10, 2) NOT NULL DEFAULT 0,"totalDiscount" NUMERIC(10, 2) NOT NULL DEFAULT 0,"totalAmount" NUMERIC(10, 2) NOT NULL DEFAULT 0,@@ -6519,7 +6507,10 @@ CREATE TABLE "purchaseInvoice" (CONSTRAINT "purchaseInvoice_pkey" PRIMARY KEY ("id"),CONSTRAINT "purchaseInvoice_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier" ("id"),- CONSTRAINT "purchaseInvoice_supplierContactId_fkey" FOREIGN KEY ("supplierContactId") REFERENCES "supplierContact" ("id"),+ CONSTRAINT "purchaseInvoice_invoiceSupplierId_fkey" FOREIGN KEY ("invoiceSupplierId") REFERENCES "supplier" ("id"),+ CONSTRAINT "purchaseInvoice_invoiceSupplierLocationId_fkey" FOREIGN KEY ("invoiceSupplierLocationId") REFERENCES "supplierLocation" ("id"),+ CONSTRAINT "purchaseInvoice_invoiceSupplierContactId_fkey" FOREIGN KEY ("invoiceSupplierContactId") REFERENCES "supplierContact" ("id"),+ CONSTRAINT "purchaseInvoice_paymentTermId_fkey" FOREIGN KEY ("paymentTermId") REFERENCES "paymentTerm" ("id"),CONSTRAINT "purchaseInvoice_currencyCode_fkey" FOREIGN KEY ("currencyCode") REFERENCES "currency" ("code"),CONSTRAINT "purchaseInvoice_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user" ("id"),CONSTRAINT "purchaseInvoice_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id")@@ -6561,6 +6552,8 @@ CREATE POLICY "Employees with invoicing_delete can delete AP invoices" ON "purchAND (get_my_claim('role'::text)) = '"employee"'::jsonb);++CREATE TABLE "purchaseInvoiceStatusHistory" ("id" TEXT NOT NULL DEFAULT xid(),"invoiceId" TEXT NOT NULL,@@ -6591,6 +6584,8 @@ CREATE TABLE "purchaseInvoiceLine" ("id" TEXT NOT NULL DEFAULT xid(),"invoiceId" TEXT NOT NULL,"invoiceLineType" "payableLineType" NOT NULL,+ "purchaseOrderId" TEXT,+ "purchaseOrderLineId" TEXT,"partId" TEXT,"accountNumber" TEXT,"assetId" TEXT,@@ -6606,7 +6601,9 @@ CREATE TABLE "purchaseInvoiceLine" ("updatedAt" TIMESTAMP WITH TIME ZONE,CONSTRAINT "purchaseInvoiceLines_pkey" PRIMARY KEY ("id"),- CONSTRAINT "purchaseInvoiceLines_invoiceId_fkey" FOREIGN KEY ("invoiceId") REFERENCES "purchaseInvoice" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,+ CONSTRAINT "purchaseInvoiceLines_invoiceId_fkey" FOREIGN KEY ("invoiceId") REFERENCES "purchaseInvoice" ("id") ON UPDATE CASCADE ON DELETE CASCADE,+ CONSTRAINT "purchaseInvoiceLines_purchaseOrderId_fkey" FOREIGN KEY ("purchaseOrderId") REFERENCES "purchaseOrder" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,+ CONSTRAINT "purchaseInvoiceLines_purchaseOrderLineId_fkey" FOREIGN KEY ("purchaseOrderLineId") REFERENCES "purchaseOrderLine" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,CONSTRAINT "purchaseInvoiceLines_partId_fkey" FOREIGN KEY ("partId") REFERENCES "part" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,CONSTRAINT "purchaseInvoiceLines_accountNumber_fkey" FOREIGN KEY ("accountNumber") REFERENCES "account" ("number") ON UPDATE CASCADE ON DELETE RESTRICT,-- CONSTRAINT "purchaseInvoiceLines_assetId_fkey" FOREIGN KEY ("assetId") REFERENCES "fixedAsset" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,@@ -6645,6 +6642,62 @@ CREATE POLICY "Employees with invoicing_delete can delete AP invoice lines" ON "AND (get_my_claim('role'::text)) = '"employee"'::jsonb);+CREATE TABLE "purchaseInvoicePriceChange" (+ "id" TEXT NOT NULL DEFAULT xid(),+ "invoiceId" TEXT NOT NULL,+ "invoiceLineId" TEXT NOT NULL,+ "previousPrice" NUMERIC(10, 2) NOT NULL DEFAULT 0,+ "newPrice" NUMERIC(10, 2) NOT NULL DEFAULT 0,+ "previousQuantity" NUMERIC(10, 2) NOT NULL DEFAULT 0,+ "newQuantity" NUMERIC(10, 2) NOT NULL DEFAULT 0,+ "updatedBy" TEXT NOT NULL,++ CONSTRAINT "purchaseInvoicePriceChange_pkey" PRIMARY KEY ("id"),+ CONSTRAINT "purchaseInvoicePriceChange_invoiceId_fkey" FOREIGN KEY ("invoiceId") REFERENCES "purchaseInvoice" ("id") ON UPDATE CASCADE ON DELETE CASCADE,+ CONSTRAINT "purchaseInvoicePriceChange_invoiceLineId_fkey" FOREIGN KEY ("invoiceLineId") REFERENCES "purchaseInvoiceLine" ("id") ON UPDATE CASCADE ON DELETE CASCADE,+ CONSTRAINT "purchaseInvoicePriceChange_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON UPDATE CASCADE ON DELETE RESTRICT+);++ALTER TABLE "purchaseInvoicePriceChange" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with invoicing_view can view AP invoice price changes" ON "purchaseInvoicePriceChange"+ FOR SELECT+ USING (+ coalesce(get_my_claim('invoicing_view')::boolean,false)+ AND (get_my_claim('role'::text)) = '"employee"'::jsonb+ );++CREATE OR REPLACE FUNCTION "purchaseInvoiceLine_update_price_change"()+ RETURNS TRIGGER AS $$+ BEGIN+ IF NEW."unitPrice" <> OLD."unitPrice" OR NEW."quantity" <> OLD."quantity" THEN+ INSERT INTO "purchaseInvoicePriceChange" (+ "invoiceId",+ "invoiceLineId",+ "previousPrice",+ "newPrice",+ "previousQuantity",+ "newQuantity",+ "updatedBy"+ ) VALUES (+ NEW."invoiceId",+ NEW."id",+ OLD."unitPrice",+ NEW."unitPrice",+ OLD."quantity",+ NEW."quantity",+ NEW."updatedBy"+ );+ END IF;+ RETURN NEW;+ END;+ $$ LANGUAGE plpgsql SECURITY DEFINER;++CREATE TRIGGER "purchaseInvoiceLine_update_price_change"+ AFTER UPDATE ON "purchaseInvoiceLine"+ FOR EACH ROW+ EXECUTE PROCEDURE "purchaseInvoiceLine_update_price_change"();+CREATE TABLE "purchasePayment" ("id" TEXT NOT NULL DEFAULT xid(),"paymentId" TEXT NOT NULL,@@ -6723,10 +6776,13 @@ CREATE OR REPLACE VIEW "purchaseInvoices" ASpi."invoiceId",pi."supplierId",pi."supplierReference",- pi."supplierContactId",+ pi."invoiceSupplierId",+ pi."invoiceSupplierLocationId",+ pi."invoiceSupplierContactId",pi."dateIssued",pi."dateDue",pi."datePaid",+ pi."paymentTermId",pi."currencyCode",pi."exchangeRate",pi."subtotal",@@ -6750,7 +6806,7 @@ CREATE OR REPLACE VIEW "purchaseInvoices" ASu2."fullName" AS "updatedByFullName"FROM "purchaseInvoice" piLEFT JOIN "supplier" s ON s.id = pi."supplierId"- LEFT JOIN "supplierContact" sc ON sc.id = pi."supplierContactId"+ LEFT JOIN "supplierContact" sc ON sc.id = pi."invoiceSupplierContactId"LEFT JOIN "contact" c ON c.id = sc."contactId"LEFT JOIN "user" u ON u."id" = pi."createdBy"LEFT JOIN "user" u2 ON u2."id" = pi."updatedBy";@@ -6760,3 +6816,170 @@ CREATE OR REPLACE VIEW "purchaseInvoices" ASALTER VIEW "purchaseInvoices" SET (security_invoker = on);```+++## `supplier-details`++```sql+++CREATE TABLE "supplierPayment" (+ "supplierId" TEXT NOT NULL,+ "invoiceSupplierId" TEXT,+ "invoiceSupplierLocationId" TEXT,+ "invoiceSupplierContactId" TEXT,+ "paymentTermId" TEXT,+ "currencyCode" TEXT,+ "updatedAt" TIMESTAMP WITH TIME ZONE,+ "updatedBy" TEXT,++ CONSTRAINT "supplierPayment_pkey" PRIMARY KEY ("supplierId"),+ CONSTRAINT "supplierPayment_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier"("id") ON UPDATE CASCADE ON DELETE CASCADE,+ CONSTRAINT "supplierPayment_invoiceSupplierId_fkey" FOREIGN KEY ("invoiceSupplierId") REFERENCES "supplier"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierPayment_invoiceSupplierLocationId_fkey" FOREIGN KEY ("invoiceSupplierLocationId") REFERENCES "supplierLocation"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierPayment_invoiceSupplierContactId_fkey" FOREIGN KEY ("invoiceSupplierContactId") REFERENCES "supplierContact"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierPayment_paymentTermId_fkey" FOREIGN KEY ("paymentTermId") REFERENCES "paymentTerm" ("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierPayment_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL+);++ALTER TABLE "supplierPayment" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with purchasing_view can view supplier payment" ON "supplierPayment"+ FOR SELECT+ USING (coalesce(get_my_claim('purchasing_view')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);++CREATE POLICY "Employees with purchasing_update can update supplier payment" ON "supplierPayment"+ FOR UPDATE+ USING (coalesce(get_my_claim('purchasing_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);+++CREATE TABLE "supplierShipping" (+ "supplierId" TEXT NOT NULL,+ "shippingSupplierId" TEXT,+ "shippingSupplierLocationId" TEXT,+ "shippingSupplierContactId" TEXT,+ "shippingTermId" TEXT,+ "shippingMethodId" TEXT,+ "updatedAt" TIMESTAMP WITH TIME ZONE,+ "updatedBy" TEXT,++ CONSTRAINT "supplierShipping_pkey" PRIMARY KEY ("supplierId"),+ CONSTRAINT "supplierShipping_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier"("id") ON UPDATE CASCADE ON DELETE CASCADE,+ CONSTRAINT "supplierShipping_shippingSupplierId_fkey" FOREIGN KEY ("shippingSupplierId") REFERENCES "supplier"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierShipping_shippingSupplierLocationId_fkey" FOREIGN KEY ("shippingSupplierLocationId") REFERENCES "supplierLocation"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierShipping_shippingSupplierContactId_fkey" FOREIGN KEY ("shippingSupplierContactId") REFERENCES "supplierContact"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierShipping_shippingTermId_fkey" FOREIGN KEY ("shippingTermId") REFERENCES "shippingTerm" ("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierShipping_shippingMethodId_fkey" FOREIGN KEY ("shippingMethodId") REFERENCES "shippingMethod" ("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierShipping_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL+);++ALTER TABLE "supplierShipping" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with purchasing_view can view supplier shipping" ON "supplierShipping"+ FOR SELECT+ USING (coalesce(get_my_claim('purchasing_view')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);++CREATE POLICY "Employees with purchasing_update can update supplier shipping" ON "supplierShipping"+ FOR UPDATE+ USING (coalesce(get_my_claim('purchasing_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);+++CREATE FUNCTION public.create_supplier_entries()+RETURNS TRIGGER AS $$+BEGIN+ INSERT INTO public."supplierPayment"("supplierId", "invoiceSupplierId")+ VALUES (new.id, new.id);+ INSERT INTO public."supplierShipping"("supplierId", "shippingSupplierId")+ VALUES (new.id, new.id);+ RETURN new;+END;+$$ LANGUAGE plpgsql SECURITY DEFINER;++CREATE TRIGGER create_supplier_entries+ AFTER INSERT on public.supplier+ FOR EACH ROW EXECUTE PROCEDURE public.create_supplier_entries();+```++++## `customer-details`++```sql++CREATE TABLE "customerPayment" (+ "customerId" TEXT NOT NULL,+ "invoiceCustomerId" TEXT,+ "invoiceCustomerLocationId" TEXT,+ "invoiceCustomerContactId" TEXT,+ "paymentTermId" TEXT,+ "currencyCode" TEXT,+ "updatedAt" TIMESTAMP WITH TIME ZONE,+ "updatedBy" TEXT,++ CONSTRAINT "customerPayment_pkey" PRIMARY KEY ("customerId"),+ CONSTRAINT "customerPayment_customerId_fkey" FOREIGN KEY ("customerId") REFERENCES "customer"("id") ON UPDATE CASCADE ON DELETE CASCADE,+ CONSTRAINT "customerPayment_invoiceCustomerId_fkey" FOREIGN KEY ("invoiceCustomerId") REFERENCES "customer"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerPayment_invoiceCustomerLocationId_fkey" FOREIGN KEY ("invoiceCustomerLocationId") REFERENCES "customerLocation"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerPayment_invoiceCustomerContactId_fkey" FOREIGN KEY ("invoiceCustomerContactId") REFERENCES "customerContact"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerPayment_paymentTermId_fkey" FOREIGN KEY ("paymentTermId") REFERENCES "paymentTerm"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerPayment_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL+);+++ALTER TABLE "customerPayment" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with sales_view can view customer payment" ON "customerPayment"+ FOR SELECT+ USING (coalesce(get_my_claim('sales_view')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);++CREATE POLICY "Employees with sales_update can update customer payment" ON "customerPayment"+ FOR UPDATE+ USING (coalesce(get_my_claim('sales_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);++CREATE TABLE "customerShipping" (+ "customerId" TEXT NOT NULL,+ "shippingCustomerId" TEXT,+ "shippingCustomerLocationId" TEXT,+ "shippingCustomerContactId" TEXT,+ "shippingTermId" TEXT,+ "shippingMethodId" TEXT,+ "updatedAt" TIMESTAMP WITH TIME ZONE,+ "updatedBy" TEXT,++ CONSTRAINT "customerShipping_pkey" PRIMARY KEY ("customerId"),+ CONSTRAINT "customerShipping_customerId_fkey" FOREIGN KEY ("customerId") REFERENCES "customer"("id") ON UPDATE CASCADE ON DELETE CASCADE,+ CONSTRAINT "customerShipping_shippingCustomerId_fkey" FOREIGN KEY ("shippingCustomerId") REFERENCES "customer"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerShipping_shippingCustomerLocationId_fkey" FOREIGN KEY ("shippingCustomerLocationId") REFERENCES "customerLocation"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerShipping_shippingCustomerContactId_fkey" FOREIGN KEY ("shippingCustomerContactId") REFERENCES "customerContact"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerShipping_shippingTermId_fkey" FOREIGN KEY ("shippingTermId") REFERENCES "shippingTerm" ("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerShipping_shippingMethodId_fkey" FOREIGN KEY ("shippingMethodId") REFERENCES "shippingMethod" ("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerShipping_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL+);++ALTER TABLE "customerShipping" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with purchasing_view can view customer shipping" ON "customerShipping"+ FOR SELECT+ USING (coalesce(get_my_claim('purchasing_view')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);++CREATE POLICY "Employees with purchasing_update can update customer shipping" ON "customerShipping"+ FOR UPDATE+ USING (coalesce(get_my_claim('purchasing_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);+++CREATE FUNCTION public.create_customer_entries()+RETURNS TRIGGER AS $$+BEGIN+ INSERT INTO public."customerPayment"("customerId", "invoiceCustomerId")+ VALUES (new.id, new.id);+ INSERT INTO public."customerShipping"("customerId", "shippingCustomerId")+ VALUES (new.id, new.id);+ RETURN new;+END;+$$ LANGUAGE plpgsql SECURITY DEFINER;++CREATE TRIGGER create_customer_entries+ AFTER INSERT on public.customer+ FOR EACH ROW EXECUTE PROCEDURE public.create_customer_entries();+```+diff --git a/packages/database/package.json b/packages/database/package.jsonindex cacc913a99..8e1346dd7c 100644--- a/packages/database/package.json+++ b/packages/database/package.json@@ -29,7 +29,7 @@},"devDependencies": {"@carbon/tsconfig": "*",- "@supabase/supabase-js": "^2.33.1",+ "@supabase/supabase-js": "^2.38.4","@types/node": "^18.15.0","@types/uuid": "^8.3.4","dotenv": "16.3.1",diff --git a/packages/database/src/types.ts b/packages/database/src/types.tsindex cd0d8fda82..cacbd1b082 100644--- a/packages/database/src/types.ts+++ b/packages/database/src/types.ts@@ -4,8214 +4,8777 @@ export type Json =| boolean| null| { [key: string]: Json | undefined }- | Json[];+ | Json[]export interface Database {graphql_public: {Tables: {- [_ in never]: never;- };+ [_ in never]: never+ }Views: {- [_ in never]: never;- };+ [_ in never]: never+ }Functions: {graphql: {Args: {- operationName?: string;- query?: string;- variables?: Json;- extensions?: Json;- };- Returns: Json;- };- };+ operationName?: string+ query?: string+ variables?: Json+ extensions?: Json+ }+ Returns: Json+ }+ }Enums: {- [_ in never]: never;- };+ [_ in never]: never+ }CompositeTypes: {- [_ in never]: never;- };- };+ [_ in never]: never+ }+ }public: {Tables: {ability: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- curve: Json;- id: string;- name: string;- shadowWeeks: number;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ curve: Json+ id: string+ name: string+ shadowWeeks: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- curve?: Json;- id?: string;- name: string;- shadowWeeks?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ curve?: Json+ id?: string+ name: string+ shadowWeeks?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- curve?: Json;- id?: string;- name?: string;- shadowWeeks?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ curve?: Json+ id?: string+ name?: string+ shadowWeeks?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "abilities_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "abilities_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "abilities_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "abilities_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "abilities_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "abilities_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "abilities_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "abilities_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }account: {Row: {- accountCategoryId: string | null;- accountSubcategoryId: string | null;- active: boolean;+ accountCategoryId: string | null+ accountSubcategoryId: string | null+ active: booleanconsolidatedRate:| Database["public"]["Enums"]["glConsolidatedRate"]- | null;- createdAt: string;- createdBy: string;- directPosting: boolean;- id: string;- incomeBalance: Database["public"]["Enums"]["glIncomeBalance"];- name: string;- normalBalance: Database["public"]["Enums"]["glNormalBalance"];- number: string;- type: Database["public"]["Enums"]["glAccountType"];- updatedAt: string | null;- updatedBy: string | null;- };+ | null+ createdAt: string+ createdBy: string+ directPosting: boolean+ id: string+ incomeBalance: Database["public"]["Enums"]["glIncomeBalance"]+ name: string+ normalBalance: Database["public"]["Enums"]["glNormalBalance"]+ number: string+ type: Database["public"]["Enums"]["glAccountType"]+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountCategoryId?: string | null;- accountSubcategoryId?: string | null;- active?: boolean;+ accountCategoryId?: string | null+ accountSubcategoryId?: string | null+ active?: booleanconsolidatedRate?:| Database["public"]["Enums"]["glConsolidatedRate"]- | null;- createdAt?: string;- createdBy: string;- directPosting?: boolean;- id?: string;- incomeBalance: Database["public"]["Enums"]["glIncomeBalance"];- name: string;- normalBalance: Database["public"]["Enums"]["glNormalBalance"];- number: string;- type: Database["public"]["Enums"]["glAccountType"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ | null+ createdAt?: string+ createdBy: string+ directPosting?: boolean+ id?: string+ incomeBalance: Database["public"]["Enums"]["glIncomeBalance"]+ name: string+ normalBalance: Database["public"]["Enums"]["glNormalBalance"]+ number: string+ type: Database["public"]["Enums"]["glAccountType"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountCategoryId?: string | null;- accountSubcategoryId?: string | null;- active?: boolean;+ accountCategoryId?: string | null+ accountSubcategoryId?: string | null+ active?: booleanconsolidatedRate?:| Database["public"]["Enums"]["glConsolidatedRate"]- | null;- createdAt?: string;- createdBy?: string;- directPosting?: boolean;- id?: string;- incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"];- name?: string;- normalBalance?: Database["public"]["Enums"]["glNormalBalance"];- number?: string;- type?: Database["public"]["Enums"]["glAccountType"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ | null+ createdAt?: string+ createdBy?: string+ directPosting?: boolean+ id?: string+ incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"]+ name?: string+ normalBalance?: Database["public"]["Enums"]["glNormalBalance"]+ number?: string+ type?: Database["public"]["Enums"]["glAccountType"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "account_accountCategoryId_fkey";- columns: ["accountCategoryId"];- referencedRelation: "accountCategory";- referencedColumns: ["id"];+ foreignKeyName: "account_accountCategoryId_fkey"+ columns: ["accountCategoryId"]+ referencedRelation: "accountCategory"+ referencedColumns: ["id"]},{- foreignKeyName: "account_accountCategoryId_fkey";- columns: ["accountCategoryId"];- referencedRelation: "accountCategories";- referencedColumns: ["id"];+ foreignKeyName: "account_accountCategoryId_fkey"+ columns: ["accountCategoryId"]+ referencedRelation: "accountCategories"+ referencedColumns: ["id"]},{- foreignKeyName: "account_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "account_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "account_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "account_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "account_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "account_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "account_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "account_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }accountCategory: {Row: {- category: string;- createdAt: string;- createdBy: string;- id: string;- incomeBalance: Database["public"]["Enums"]["glIncomeBalance"];- normalBalance: Database["public"]["Enums"]["glNormalBalance"];- updatedAt: string | null;- updatedBy: string | null;- };+ category: string+ createdAt: string+ createdBy: string+ id: string+ incomeBalance: Database["public"]["Enums"]["glIncomeBalance"]+ normalBalance: Database["public"]["Enums"]["glNormalBalance"]+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- category: string;- createdAt?: string;- createdBy: string;- id?: string;- incomeBalance: Database["public"]["Enums"]["glIncomeBalance"];- normalBalance: Database["public"]["Enums"]["glNormalBalance"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ category: string+ createdAt?: string+ createdBy: string+ id?: string+ incomeBalance: Database["public"]["Enums"]["glIncomeBalance"]+ normalBalance: Database["public"]["Enums"]["glNormalBalance"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- category?: string;- createdAt?: string;- createdBy?: string;- id?: string;- incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"];- normalBalance?: Database["public"]["Enums"]["glNormalBalance"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ category?: string+ createdAt?: string+ createdBy?: string+ id?: string+ incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"]+ normalBalance?: Database["public"]["Enums"]["glNormalBalance"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "accountCategory_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountCategory_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "accountCategory_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }accountDefault: {Row: {- accumulatedDepreciationAccount: string;- accumulatedDepreciationOnDisposalAccount: string;- assetAquisitionCostAccount: string;- assetAquisitionCostOnDisposalAccount: string;- assetDepreciationExpenseAccount: string;- assetGainsAndLossesAccount: string;- bankCashAccount: string;- bankForeignCurrencyAccount: string;- bankLocalCurrencyAccount: string;- capacityVarianceAccount: string;- costOfGoodsSoldAccount: string;- customerPaymentDiscountAccount: string;- directCostAppliedAccount: string;- id: boolean;- interestAccount: string;- inventoryAccount: string;- inventoryAdjustmentVarianceAccount: string;- inventoryInterimAccrualAccount: string;- inventoryReceivedNotInvoicedAccount: string;- inventoryShippedNotInvoicedAccount: string;- maintenanceAccount: string;- materialVarianceAccount: string;- overheadAccount: string;- overheadCostAppliedAccount: string;- payablesAccount: string;- prepaymentAccount: string;- purchaseAccount: string;- purchaseTaxPayableAccount: string;- purchaseVarianceAccount: string;- receivablesAccount: string;- retainedEarningsAccount: string;- reverseChargeSalesTaxPayableAccount: string;- roundingAccount: string;- salesAccount: string;- salesDiscountAccount: string;- salesTaxPayableAccount: string;- serviceChargeAccount: string;- supplierPaymentDiscountAccount: string;- updatedBy: string | null;- workInProgressAccount: string;- };+ accumulatedDepreciationAccount: string+ accumulatedDepreciationOnDisposalAccount: string+ assetAquisitionCostAccount: string+ assetAquisitionCostOnDisposalAccount: string+ assetDepreciationExpenseAccount: string+ assetGainsAndLossesAccount: string+ bankCashAccount: string+ bankForeignCurrencyAccount: string+ bankLocalCurrencyAccount: string+ capacityVarianceAccount: string+ costOfGoodsSoldAccount: string+ customerPaymentDiscountAccount: string+ directCostAppliedAccount: string+ id: boolean+ interestAccount: string+ inventoryAccount: string+ inventoryAdjustmentVarianceAccount: string+ inventoryInterimAccrualAccount: string+ inventoryReceivedNotInvoicedAccount: string+ inventoryShippedNotInvoicedAccount: string+ maintenanceAccount: string+ materialVarianceAccount: string+ overheadAccount: string+ overheadCostAppliedAccount: string+ payablesAccount: string+ prepaymentAccount: string+ purchaseAccount: string+ purchaseTaxPayableAccount: string+ purchaseVarianceAccount: string+ receivablesAccount: string+ retainedEarningsAccount: string+ reverseChargeSalesTaxPayableAccount: string+ roundingAccount: string+ salesAccount: string+ salesDiscountAccount: string+ salesTaxPayableAccount: string+ serviceChargeAccount: string+ supplierPaymentDiscountAccount: string+ updatedBy: string | null+ workInProgressAccount: string+ }Insert: {- accumulatedDepreciationAccount: string;- accumulatedDepreciationOnDisposalAccount: string;- assetAquisitionCostAccount: string;- assetAquisitionCostOnDisposalAccount: string;- assetDepreciationExpenseAccount: string;- assetGainsAndLossesAccount: string;- bankCashAccount: string;- bankForeignCurrencyAccount: string;- bankLocalCurrencyAccount: string;- capacityVarianceAccount: string;- costOfGoodsSoldAccount: string;- customerPaymentDiscountAccount: string;- directCostAppliedAccount: string;- id?: boolean;- interestAccount: string;- inventoryAccount: string;- inventoryAdjustmentVarianceAccount: string;- inventoryInterimAccrualAccount: string;- inventoryReceivedNotInvoicedAccount: string;- inventoryShippedNotInvoicedAccount: string;- maintenanceAccount: string;- materialVarianceAccount: string;- overheadAccount: string;- overheadCostAppliedAccount: string;- payablesAccount: string;- prepaymentAccount: string;- purchaseAccount: string;- purchaseTaxPayableAccount: string;- purchaseVarianceAccount: string;- receivablesAccount: string;- retainedEarningsAccount: string;- reverseChargeSalesTaxPayableAccount: string;- roundingAccount: string;- salesAccount: string;- salesDiscountAccount: string;- salesTaxPayableAccount: string;- serviceChargeAccount: string;- supplierPaymentDiscountAccount: string;- updatedBy?: string | null;- workInProgressAccount: string;- };+ accumulatedDepreciationAccount: string+ accumulatedDepreciationOnDisposalAccount: string+ assetAquisitionCostAccount: string+ assetAquisitionCostOnDisposalAccount: string+ assetDepreciationExpenseAccount: string+ assetGainsAndLossesAccount: string+ bankCashAccount: string+ bankForeignCurrencyAccount: string+ bankLocalCurrencyAccount: string+ capacityVarianceAccount: string+ costOfGoodsSoldAccount: string+ customerPaymentDiscountAccount: string+ directCostAppliedAccount: string+ id?: boolean+ interestAccount: string+ inventoryAccount: string+ inventoryAdjustmentVarianceAccount: string+ inventoryInterimAccrualAccount: string+ inventoryReceivedNotInvoicedAccount: string+ inventoryShippedNotInvoicedAccount: string+ maintenanceAccount: string+ materialVarianceAccount: string+ overheadAccount: string+ overheadCostAppliedAccount: string+ payablesAccount: string+ prepaymentAccount: string+ purchaseAccount: string+ purchaseTaxPayableAccount: string+ purchaseVarianceAccount: string+ receivablesAccount: string+ retainedEarningsAccount: string+ reverseChargeSalesTaxPayableAccount: string+ roundingAccount: string+ salesAccount: string+ salesDiscountAccount: string+ salesTaxPayableAccount: string+ serviceChargeAccount: string+ supplierPaymentDiscountAccount: string+ updatedBy?: string | null+ workInProgressAccount: string+ }Update: {- accumulatedDepreciationAccount?: string;- accumulatedDepreciationOnDisposalAccount?: string;- assetAquisitionCostAccount?: string;- assetAquisitionCostOnDisposalAccount?: string;- assetDepreciationExpenseAccount?: string;- assetGainsAndLossesAccount?: string;- bankCashAccount?: string;- bankForeignCurrencyAccount?: string;- bankLocalCurrencyAccount?: string;- capacityVarianceAccount?: string;- costOfGoodsSoldAccount?: string;- customerPaymentDiscountAccount?: string;- directCostAppliedAccount?: string;- id?: boolean;- interestAccount?: string;- inventoryAccount?: string;- inventoryAdjustmentVarianceAccount?: string;- inventoryInterimAccrualAccount?: string;- inventoryReceivedNotInvoicedAccount?: string;- inventoryShippedNotInvoicedAccount?: string;- maintenanceAccount?: string;- materialVarianceAccount?: string;- overheadAccount?: string;- overheadCostAppliedAccount?: string;- payablesAccount?: string;- prepaymentAccount?: string;- purchaseAccount?: string;- purchaseTaxPayableAccount?: string;- purchaseVarianceAccount?: string;- receivablesAccount?: string;- retainedEarningsAccount?: string;- reverseChargeSalesTaxPayableAccount?: string;- roundingAccount?: string;- salesAccount?: string;- salesDiscountAccount?: string;- salesTaxPayableAccount?: string;- serviceChargeAccount?: string;- supplierPaymentDiscountAccount?: string;- updatedBy?: string | null;- workInProgressAccount?: string;- };+ accumulatedDepreciationAccount?: string+ accumulatedDepreciationOnDisposalAccount?: string+ assetAquisitionCostAccount?: string+ assetAquisitionCostOnDisposalAccount?: string+ assetDepreciationExpenseAccount?: string+ assetGainsAndLossesAccount?: string+ bankCashAccount?: string+ bankForeignCurrencyAccount?: string+ bankLocalCurrencyAccount?: string+ capacityVarianceAccount?: string+ costOfGoodsSoldAccount?: string+ customerPaymentDiscountAccount?: string+ directCostAppliedAccount?: string+ id?: boolean+ interestAccount?: string+ inventoryAccount?: string+ inventoryAdjustmentVarianceAccount?: string+ inventoryInterimAccrualAccount?: string+ inventoryReceivedNotInvoicedAccount?: string+ inventoryShippedNotInvoicedAccount?: string+ maintenanceAccount?: string+ materialVarianceAccount?: string+ overheadAccount?: string+ overheadCostAppliedAccount?: string+ payablesAccount?: string+ prepaymentAccount?: string+ purchaseAccount?: string+ purchaseTaxPayableAccount?: string+ purchaseVarianceAccount?: string+ receivablesAccount?: string+ retainedEarningsAccount?: string+ reverseChargeSalesTaxPayableAccount?: string+ roundingAccount?: string+ salesAccount?: string+ salesDiscountAccount?: string+ salesTaxPayableAccount?: string+ serviceChargeAccount?: string+ supplierPaymentDiscountAccount?: string+ updatedBy?: string | null+ workInProgressAccount?: string+ }Relationships: [{- foreignKeyName: "accountDefault_accumulatedDepreciationAccount_fkey";- columns: ["accumulatedDepreciationAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_accumulatedDepreciationAccount_fkey"+ columns: ["accumulatedDepreciationAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_accumulatedDepreciationAccount_fkey";- columns: ["accumulatedDepreciationAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_accumulatedDepreciationAccount_fkey"+ columns: ["accumulatedDepreciationAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_accumulatedDepreciationOnDisposalAccount_fkey";- columns: ["accumulatedDepreciationOnDisposalAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_accumulatedDepreciationOnDisposalAccount_fkey"+ columns: ["accumulatedDepreciationOnDisposalAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_accumulatedDepreciationOnDisposalAccount_fkey";- columns: ["accumulatedDepreciationOnDisposalAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_accumulatedDepreciationOnDisposalAccount_fkey"+ columns: ["accumulatedDepreciationOnDisposalAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_aquisitionCostAccount_fkey";- columns: ["assetAquisitionCostAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_aquisitionCostAccount_fkey"+ columns: ["assetAquisitionCostAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_aquisitionCostAccount_fkey";- columns: ["assetAquisitionCostAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_aquisitionCostAccount_fkey"+ columns: ["assetAquisitionCostAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_aquisitionCostOnDisposalAccount_fkey";- columns: ["assetAquisitionCostOnDisposalAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_aquisitionCostOnDisposalAccount_fkey"+ columns: ["assetAquisitionCostOnDisposalAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_aquisitionCostOnDisposalAccount_fkey";- columns: ["assetAquisitionCostOnDisposalAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_aquisitionCostOnDisposalAccount_fkey"+ columns: ["assetAquisitionCostOnDisposalAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_assetDepreciationExpenseAccount_fkey";- columns: ["assetDepreciationExpenseAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_assetDepreciationExpenseAccount_fkey"+ columns: ["assetDepreciationExpenseAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_assetDepreciationExpenseAccount_fkey";- columns: ["assetDepreciationExpenseAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_assetDepreciationExpenseAccount_fkey"+ columns: ["assetDepreciationExpenseAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_assetGainsAndLossesAccount_fkey";- columns: ["assetGainsAndLossesAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_assetGainsAndLossesAccount_fkey"+ columns: ["assetGainsAndLossesAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_assetGainsAndLossesAccount_fkey";- columns: ["assetGainsAndLossesAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_assetGainsAndLossesAccount_fkey"+ columns: ["assetGainsAndLossesAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_bankCashAccount_fkey";- columns: ["bankCashAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_bankCashAccount_fkey"+ columns: ["bankCashAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_bankCashAccount_fkey";- columns: ["bankCashAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_bankCashAccount_fkey"+ columns: ["bankCashAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_bankForeignCurrencyAccount_fkey";- columns: ["bankForeignCurrencyAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_bankForeignCurrencyAccount_fkey"+ columns: ["bankForeignCurrencyAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_bankForeignCurrencyAccount_fkey";- columns: ["bankForeignCurrencyAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_bankForeignCurrencyAccount_fkey"+ columns: ["bankForeignCurrencyAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_bankLocalCurrencyAccount_fkey";- columns: ["bankLocalCurrencyAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_bankLocalCurrencyAccount_fkey"+ columns: ["bankLocalCurrencyAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_bankLocalCurrencyAccount_fkey";- columns: ["bankLocalCurrencyAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_bankLocalCurrencyAccount_fkey"+ columns: ["bankLocalCurrencyAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_capacityVarianceAccount_fkey";- columns: ["capacityVarianceAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_capacityVarianceAccount_fkey"+ columns: ["capacityVarianceAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_capacityVarianceAccount_fkey";- columns: ["capacityVarianceAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_capacityVarianceAccount_fkey"+ columns: ["capacityVarianceAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_costOfGoodsSoldAccount_fkey";- columns: ["costOfGoodsSoldAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_costOfGoodsSoldAccount_fkey"+ columns: ["costOfGoodsSoldAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_costOfGoodsSoldAccount_fkey";- columns: ["costOfGoodsSoldAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_costOfGoodsSoldAccount_fkey"+ columns: ["costOfGoodsSoldAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_customerPaymentDiscountAccount_fkey";- columns: ["customerPaymentDiscountAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_customerPaymentDiscountAccount_fkey"+ columns: ["customerPaymentDiscountAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_customerPaymentDiscountAccount_fkey";- columns: ["customerPaymentDiscountAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_customerPaymentDiscountAccount_fkey"+ columns: ["customerPaymentDiscountAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_directCostAppliedAccount_fkey";- columns: ["directCostAppliedAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_directCostAppliedAccount_fkey"+ columns: ["directCostAppliedAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_directCostAppliedAccount_fkey";- columns: ["directCostAppliedAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_directCostAppliedAccount_fkey"+ columns: ["directCostAppliedAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_interestAccount_fkey";- columns: ["interestAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_interestAccount_fkey"+ columns: ["interestAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_interestAccount_fkey";- columns: ["interestAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_interestAccount_fkey"+ columns: ["interestAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryAccount_fkey";- columns: ["inventoryAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryAccount_fkey"+ columns: ["inventoryAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryAccount_fkey";- columns: ["inventoryAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryAccount_fkey"+ columns: ["inventoryAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryAdjustmentVarianceAccount_fkey";- columns: ["inventoryAdjustmentVarianceAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryAdjustmentVarianceAccount_fkey"+ columns: ["inventoryAdjustmentVarianceAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryAdjustmentVarianceAccount_fkey";- columns: ["inventoryAdjustmentVarianceAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryAdjustmentVarianceAccount_fkey"+ columns: ["inventoryAdjustmentVarianceAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryInterimAccrualAccount_fkey";- columns: ["inventoryInterimAccrualAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryInterimAccrualAccount_fkey"+ columns: ["inventoryInterimAccrualAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryInterimAccrualAccount_fkey";- columns: ["inventoryInterimAccrualAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryInterimAccrualAccount_fkey"+ columns: ["inventoryInterimAccrualAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryReceivedNotInvoicedAccount_fkey";- columns: ["inventoryReceivedNotInvoicedAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryReceivedNotInvoicedAccount_fkey"+ columns: ["inventoryReceivedNotInvoicedAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryReceivedNotInvoicedAccount_fkey";- columns: ["inventoryReceivedNotInvoicedAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryReceivedNotInvoicedAccount_fkey"+ columns: ["inventoryReceivedNotInvoicedAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryShippedNotInvoicedAccount_fkey";- columns: ["inventoryShippedNotInvoicedAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryShippedNotInvoicedAccount_fkey"+ columns: ["inventoryShippedNotInvoicedAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_inventoryShippedNotInvoicedAccount_fkey";- columns: ["inventoryShippedNotInvoicedAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_inventoryShippedNotInvoicedAccount_fkey"+ columns: ["inventoryShippedNotInvoicedAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_maintenanceAccount_fkey";- columns: ["maintenanceAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_maintenanceAccount_fkey"+ columns: ["maintenanceAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_maintenanceAccount_fkey";- columns: ["maintenanceAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_maintenanceAccount_fkey"+ columns: ["maintenanceAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_materialVarianceAccount_fkey";- columns: ["materialVarianceAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_materialVarianceAccount_fkey"+ columns: ["materialVarianceAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_materialVarianceAccount_fkey";- columns: ["materialVarianceAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_materialVarianceAccount_fkey"+ columns: ["materialVarianceAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_overheadAccount_fkey";- columns: ["overheadAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_overheadAccount_fkey"+ columns: ["overheadAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_overheadAccount_fkey";- columns: ["overheadAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_overheadAccount_fkey"+ columns: ["overheadAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_overheadCostAppliedAccount_fkey";- columns: ["overheadCostAppliedAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_overheadCostAppliedAccount_fkey"+ columns: ["overheadCostAppliedAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_overheadCostAppliedAccount_fkey";- columns: ["overheadCostAppliedAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_overheadCostAppliedAccount_fkey"+ columns: ["overheadCostAppliedAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_payablesAccount_fkey";- columns: ["payablesAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_payablesAccount_fkey"+ columns: ["payablesAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_payablesAccount_fkey";- columns: ["payablesAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_payablesAccount_fkey"+ columns: ["payablesAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_prepaymentAccount_fkey";- columns: ["prepaymentAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_prepaymentAccount_fkey"+ columns: ["prepaymentAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_prepaymentAccount_fkey";- columns: ["prepaymentAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_prepaymentAccount_fkey"+ columns: ["prepaymentAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_purchaseAccount_fkey";- columns: ["purchaseAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_purchaseAccount_fkey"+ columns: ["purchaseAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_purchaseAccount_fkey";- columns: ["purchaseAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_purchaseAccount_fkey"+ columns: ["purchaseAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_purchaseTaxPayableAccount_fkey";- columns: ["purchaseTaxPayableAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_purchaseTaxPayableAccount_fkey"+ columns: ["purchaseTaxPayableAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_purchaseTaxPayableAccount_fkey";- columns: ["purchaseTaxPayableAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_purchaseTaxPayableAccount_fkey"+ columns: ["purchaseTaxPayableAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_purchaseVarianceAccount_fkey";- columns: ["purchaseVarianceAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_purchaseVarianceAccount_fkey"+ columns: ["purchaseVarianceAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_purchaseVarianceAccount_fkey";- columns: ["purchaseVarianceAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_purchaseVarianceAccount_fkey"+ columns: ["purchaseVarianceAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_receivablesAccount_fkey";- columns: ["receivablesAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_receivablesAccount_fkey"+ columns: ["receivablesAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_receivablesAccount_fkey";- columns: ["receivablesAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_receivablesAccount_fkey"+ columns: ["receivablesAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_retainedEarningsAccount_fkey";- columns: ["retainedEarningsAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_retainedEarningsAccount_fkey"+ columns: ["retainedEarningsAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_retainedEarningsAccount_fkey";- columns: ["retainedEarningsAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_retainedEarningsAccount_fkey"+ columns: ["retainedEarningsAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_reverseChargeSalesTaxPayableAccount_fkey";- columns: ["reverseChargeSalesTaxPayableAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_reverseChargeSalesTaxPayableAccount_fkey"+ columns: ["reverseChargeSalesTaxPayableAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_reverseChargeSalesTaxPayableAccount_fkey";- columns: ["reverseChargeSalesTaxPayableAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_reverseChargeSalesTaxPayableAccount_fkey"+ columns: ["reverseChargeSalesTaxPayableAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_roundingAccount_fkey";- columns: ["roundingAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_roundingAccount_fkey"+ columns: ["roundingAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_roundingAccount_fkey";- columns: ["roundingAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_roundingAccount_fkey"+ columns: ["roundingAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_salesAccount_fkey";- columns: ["salesAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_salesAccount_fkey"+ columns: ["salesAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_salesAccount_fkey";- columns: ["salesAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_salesAccount_fkey"+ columns: ["salesAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_salesDiscountAccount_fkey";- columns: ["salesDiscountAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_salesDiscountAccount_fkey"+ columns: ["salesDiscountAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_salesDiscountAccount_fkey";- columns: ["salesDiscountAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_salesDiscountAccount_fkey"+ columns: ["salesDiscountAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_salesTaxPayableAccount_fkey";- columns: ["salesTaxPayableAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_salesTaxPayableAccount_fkey"+ columns: ["salesTaxPayableAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_salesTaxPayableAccount_fkey";- columns: ["salesTaxPayableAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_salesTaxPayableAccount_fkey"+ columns: ["salesTaxPayableAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_serviceChargeAccount_fkey";- columns: ["serviceChargeAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_serviceChargeAccount_fkey"+ columns: ["serviceChargeAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_serviceChargeAccount_fkey";- columns: ["serviceChargeAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_serviceChargeAccount_fkey"+ columns: ["serviceChargeAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_supplierPaymentDiscountAccount_fkey";- columns: ["supplierPaymentDiscountAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_supplierPaymentDiscountAccount_fkey"+ columns: ["supplierPaymentDiscountAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_supplierPaymentDiscountAccount_fkey";- columns: ["supplierPaymentDiscountAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_supplierPaymentDiscountAccount_fkey"+ columns: ["supplierPaymentDiscountAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountDefault_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountDefault_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountDefault_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "accountDefault_workInProgressAccount_fkey";- columns: ["workInProgressAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_workInProgressAccount_fkey"+ columns: ["workInProgressAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "accountDefault_workInProgressAccount_fkey";- columns: ["workInProgressAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "accountDefault_workInProgressAccount_fkey"+ columns: ["workInProgressAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]}- ];- };+ ]+ }accountingPeriod: {Row: {- closedAt: string | null;- closedBy: string | null;- createdAt: string;- createdBy: string;- endDate: string;- id: string;- startDate: string;- status: Database["public"]["Enums"]["accountingPeriodStatus"];- updatedAt: string | null;- updatedBy: string | null;- };+ closedAt: string | null+ closedBy: string | null+ createdAt: string+ createdBy: string+ endDate: string+ id: string+ startDate: string+ status: Database["public"]["Enums"]["accountingPeriodStatus"]+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- closedAt?: string | null;- closedBy?: string | null;- createdAt?: string;- createdBy: string;- endDate: string;- id?: string;- startDate: string;- status?: Database["public"]["Enums"]["accountingPeriodStatus"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ closedAt?: string | null+ closedBy?: string | null+ createdAt?: string+ createdBy: string+ endDate: string+ id?: string+ startDate: string+ status?: Database["public"]["Enums"]["accountingPeriodStatus"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- closedAt?: string | null;- closedBy?: string | null;- createdAt?: string;- createdBy?: string;- endDate?: string;- id?: string;- startDate?: string;- status?: Database["public"]["Enums"]["accountingPeriodStatus"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ closedAt?: string | null+ closedBy?: string | null+ createdAt?: string+ createdBy?: string+ endDate?: string+ id?: string+ startDate?: string+ status?: Database["public"]["Enums"]["accountingPeriodStatus"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "accountingPeriod_closedBy_fkey";- columns: ["closedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountingPeriod_closedBy_fkey"+ columns: ["closedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountingPeriod_closedBy_fkey";- columns: ["closedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountingPeriod_closedBy_fkey"+ columns: ["closedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "accountingPeriod_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountingPeriod_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountingPeriod_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountingPeriod_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "accountingPeriod_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountingPeriod_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountingPeriod_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountingPeriod_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }accountSubcategory: {Row: {- accountCategoryId: string;- active: boolean;- createdAt: string;- createdBy: string;- id: string;- name: string;- updatedAt: string | null;- updatedBy: string | null;- };+ accountCategoryId: string+ active: boolean+ createdAt: string+ createdBy: string+ id: string+ name: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountCategoryId: string;- active?: boolean;- createdAt?: string;- createdBy: string;- id?: string;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountCategoryId: string+ active?: boolean+ createdAt?: string+ createdBy: string+ id?: string+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountCategoryId?: string;- active?: boolean;- createdAt?: string;- createdBy?: string;- id?: string;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountCategoryId?: string+ active?: boolean+ createdAt?: string+ createdBy?: string+ id?: string+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "accountSubcategory_accountCategoryId_fkey";- columns: ["accountCategoryId"];- referencedRelation: "accountCategory";- referencedColumns: ["id"];+ foreignKeyName: "accountSubcategory_accountCategoryId_fkey"+ columns: ["accountCategoryId"]+ referencedRelation: "accountCategory"+ referencedColumns: ["id"]},{- foreignKeyName: "accountSubcategory_accountCategoryId_fkey";- columns: ["accountCategoryId"];- referencedRelation: "accountCategories";- referencedColumns: ["id"];+ foreignKeyName: "accountSubcategory_accountCategoryId_fkey"+ columns: ["accountCategoryId"]+ referencedRelation: "accountCategories"+ referencedColumns: ["id"]},{- foreignKeyName: "accountSubcategory_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountSubcategory_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountSubcategory_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountSubcategory_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "accountSubcategory_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountSubcategory_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountSubcategory_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountSubcategory_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }address: {Row: {- addressLine1: string | null;- addressLine2: string | null;- city: string | null;- countryId: number | null;- fax: string | null;- id: string;- phone: string | null;- postalCode: string | null;- state: string | null;- };+ addressLine1: string | null+ addressLine2: string | null+ city: string | null+ countryId: number | null+ fax: string | null+ id: string+ phone: string | null+ postalCode: string | null+ state: string | null+ }Insert: {- addressLine1?: string | null;- addressLine2?: string | null;- city?: string | null;- countryId?: number | null;- fax?: string | null;- id?: string;- phone?: string | null;- postalCode?: string | null;- state?: string | null;- };+ addressLine1?: string | null+ addressLine2?: string | null+ city?: string | null+ countryId?: number | null+ fax?: string | null+ id?: string+ phone?: string | null+ postalCode?: string | null+ state?: string | null+ }Update: {- addressLine1?: string | null;- addressLine2?: string | null;- city?: string | null;- countryId?: number | null;- fax?: string | null;- id?: string;- phone?: string | null;- postalCode?: string | null;- state?: string | null;- };+ addressLine1?: string | null+ addressLine2?: string | null+ city?: string | null+ countryId?: number | null+ fax?: string | null+ id?: string+ phone?: string | null+ postalCode?: string | null+ state?: string | null+ }Relationships: [{- foreignKeyName: "address_countryId_fkey";- columns: ["countryId"];- referencedRelation: "country";- referencedColumns: ["id"];+ foreignKeyName: "address_countryId_fkey"+ columns: ["countryId"]+ referencedRelation: "country"+ referencedColumns: ["id"]}- ];- };+ ]+ }attributeDataType: {Row: {- id: number;- isBoolean: boolean;- isDate: boolean;- isList: boolean;- isNumeric: boolean;- isText: boolean;- isUser: boolean;- label: string;- };+ id: number+ isBoolean: boolean+ isDate: boolean+ isList: boolean+ isNumeric: boolean+ isText: boolean+ isUser: boolean+ label: string+ }Insert: {- id?: number;- isBoolean?: boolean;- isDate?: boolean;- isList?: boolean;- isNumeric?: boolean;- isText?: boolean;- isUser?: boolean;- label: string;- };+ id?: number+ isBoolean?: boolean+ isDate?: boolean+ isList?: boolean+ isNumeric?: boolean+ isText?: boolean+ isUser?: boolean+ label: string+ }Update: {- id?: number;- isBoolean?: boolean;- isDate?: boolean;- isList?: boolean;- isNumeric?: boolean;- isText?: boolean;- isUser?: boolean;- label?: string;- };- Relationships: [];- };+ id?: number+ isBoolean?: boolean+ isDate?: boolean+ isList?: boolean+ isNumeric?: boolean+ isText?: boolean+ isUser?: boolean+ label?: string+ }+ Relationships: []+ }contact: {Row: {- addressLine1: string | null;- addressLine2: string | null;- birthday: string | null;- city: string | null;- countryId: number | null;- email: string;- fax: string | null;- firstName: string;- fullName: string | null;- homePhone: string | null;- id: string;- lastName: string;- mobilePhone: string | null;- notes: string | null;- postalCode: string | null;- state: string | null;- title: string | null;- workPhone: string | null;- };+ addressLine1: string | null+ addressLine2: string | null+ birthday: string | null+ city: string | null+ countryId: number | null+ email: string+ fax: string | null+ firstName: string+ fullName: string | null+ homePhone: string | null+ id: string+ lastName: string+ mobilePhone: string | null+ notes: string | null+ postalCode: string | null+ state: string | null+ title: string | null+ workPhone: string | null+ }Insert: {- addressLine1?: string | null;- addressLine2?: string | null;- birthday?: string | null;- city?: string | null;- countryId?: number | null;- email: string;- fax?: string | null;- firstName: string;- fullName?: string | null;- homePhone?: string | null;- id?: string;- lastName: string;- mobilePhone?: string | null;- notes?: string | null;- postalCode?: string | null;- state?: string | null;- title?: string | null;- workPhone?: string | null;- };+ addressLine1?: string | null+ addressLine2?: string | null+ birthday?: string | null+ city?: string | null+ countryId?: number | null+ email: string+ fax?: string | null+ firstName: string+ fullName?: string | null+ homePhone?: string | null+ id?: string+ lastName: string+ mobilePhone?: string | null+ notes?: string | null+ postalCode?: string | null+ state?: string | null+ title?: string | null+ workPhone?: string | null+ }Update: {- addressLine1?: string | null;- addressLine2?: string | null;- birthday?: string | null;- city?: string | null;- countryId?: number | null;- email?: string;- fax?: string | null;- firstName?: string;- fullName?: string | null;- homePhone?: string | null;- id?: string;- lastName?: string;- mobilePhone?: string | null;- notes?: string | null;- postalCode?: string | null;- state?: string | null;- title?: string | null;- workPhone?: string | null;- };+ addressLine1?: string | null+ addressLine2?: string | null+ birthday?: string | null+ city?: string | null+ countryId?: number | null+ email?: string+ fax?: string | null+ firstName?: string+ fullName?: string | null+ homePhone?: string | null+ id?: string+ lastName?: string+ mobilePhone?: string | null+ notes?: string | null+ postalCode?: string | null+ state?: string | null+ title?: string | null+ workPhone?: string | null+ }Relationships: [{- foreignKeyName: "contact_countryId_fkey";- columns: ["countryId"];- referencedRelation: "country";- referencedColumns: ["id"];+ foreignKeyName: "contact_countryId_fkey"+ columns: ["countryId"]+ referencedRelation: "country"+ referencedColumns: ["id"]}- ];- };+ ]+ }contractor: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- hoursPerWeek: number;- id: string;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ hoursPerWeek: number+ id: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- hoursPerWeek?: number;- id: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ hoursPerWeek?: number+ id: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- hoursPerWeek?: number;- id?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ hoursPerWeek?: number+ id?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "contractor_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "contractor_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "contractor_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "contractor_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "contractor_id_fkey";- columns: ["id"];- referencedRelation: "supplierContact";- referencedColumns: ["id"];+ foreignKeyName: "contractor_id_fkey"+ columns: ["id"]+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]},{- foreignKeyName: "contractor_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "contractor_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "contractor_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "contractor_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }contractorAbility: {Row: {- abilityId: string;- contractorId: string;- createdAt: string;- createdBy: string;- };+ abilityId: string+ contractorId: string+ createdAt: string+ createdBy: string+ }Insert: {- abilityId: string;- contractorId: string;- createdAt?: string;- createdBy: string;- };+ abilityId: string+ contractorId: string+ createdAt?: string+ createdBy: string+ }Update: {- abilityId?: string;- contractorId?: string;- createdAt?: string;- createdBy?: string;- };+ abilityId?: string+ contractorId?: string+ createdAt?: string+ createdBy?: string+ }Relationships: [{- foreignKeyName: "contractorAbility_abilityId_fkey";- columns: ["abilityId"];- referencedRelation: "ability";- referencedColumns: ["id"];+ foreignKeyName: "contractorAbility_abilityId_fkey"+ columns: ["abilityId"]+ referencedRelation: "ability"+ referencedColumns: ["id"]},{- foreignKeyName: "contractorAbility_contractorId_fkey";- columns: ["contractorId"];- referencedRelation: "contractor";- referencedColumns: ["id"];+ foreignKeyName: "contractorAbility_contractorId_fkey"+ columns: ["contractorId"]+ referencedRelation: "contractor"+ referencedColumns: ["id"]},{- foreignKeyName: "contractorAbility_contractorId_fkey";- columns: ["contractorId"];- referencedRelation: "contractors";- referencedColumns: ["supplierContactId"];+ foreignKeyName: "contractorAbility_contractorId_fkey"+ columns: ["contractorId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierContactId"]},{- foreignKeyName: "contractorAbility_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "contractorAbility_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "contractorAbility_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "contractorAbility_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }country: {Row: {- code: string;- id: number;- name: string;- };+ code: string+ id: number+ name: string+ }Insert: {- code: string;- id?: number;- name: string;- };+ code: string+ id?: number+ name: string+ }Update: {- code?: string;- id?: number;- name?: string;- };- Relationships: [];- };+ code?: string+ id?: number+ name?: string+ }+ Relationships: []+ }crew: {Row: {- crewLeaderId: string | null;- description: string | null;- groupId: string;- id: string;- name: string;- workCellId: string | null;- };+ crewLeaderId: string | null+ description: string | null+ groupId: string+ id: string+ name: string+ workCellId: string | null+ }Insert: {- crewLeaderId?: string | null;- description?: string | null;- groupId: string;- id?: string;- name: string;- workCellId?: string | null;- };+ crewLeaderId?: string | null+ description?: string | null+ groupId: string+ id?: string+ name: string+ workCellId?: string | null+ }Update: {- crewLeaderId?: string | null;- description?: string | null;- groupId?: string;- id?: string;- name?: string;- workCellId?: string | null;- };+ crewLeaderId?: string | null+ description?: string | null+ groupId?: string+ id?: string+ name?: string+ workCellId?: string | null+ }Relationships: [{- foreignKeyName: "crew_crewLeaderId_fkey";- columns: ["crewLeaderId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "crew_crewLeaderId_fkey"+ columns: ["crewLeaderId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "crew_crewLeaderId_fkey";- columns: ["crewLeaderId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "crew_crewLeaderId_fkey"+ columns: ["crewLeaderId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "crew_groupId_fkey";- columns: ["groupId"];- referencedRelation: "group";- referencedColumns: ["id"];+ foreignKeyName: "crew_groupId_fkey"+ columns: ["groupId"]+ referencedRelation: "group"+ referencedColumns: ["id"]},{- foreignKeyName: "crew_workCellId_fkey";- columns: ["workCellId"];- referencedRelation: "workCell";- referencedColumns: ["id"];+ foreignKeyName: "crew_workCellId_fkey"+ columns: ["workCellId"]+ referencedRelation: "workCell"+ referencedColumns: ["id"]}- ];- };+ ]+ }crewAbility: {Row: {- abilityId: string;- active: boolean;- crewId: string;- id: string;- };+ abilityId: string+ active: boolean+ crewId: string+ id: string+ }Insert: {- abilityId: string;- active?: boolean;- crewId: string;- id?: string;- };+ abilityId: string+ active?: boolean+ crewId: string+ id?: string+ }Update: {- abilityId?: string;- active?: boolean;- crewId?: string;- id?: string;- };+ abilityId?: string+ active?: boolean+ crewId?: string+ id?: string+ }Relationships: [{- foreignKeyName: "crewAbility_abilityId_fkey";- columns: ["abilityId"];- referencedRelation: "ability";- referencedColumns: ["id"];+ foreignKeyName: "crewAbility_abilityId_fkey"+ columns: ["abilityId"]+ referencedRelation: "ability"+ referencedColumns: ["id"]},{- foreignKeyName: "crewAbility_crewId_fkey";- columns: ["crewId"];- referencedRelation: "crew";- referencedColumns: ["id"];+ foreignKeyName: "crewAbility_crewId_fkey"+ columns: ["crewId"]+ referencedRelation: "crew"+ referencedColumns: ["id"]}- ];- };+ ]+ }currency: {Row: {- active: boolean;- code: string;- createdAt: string;- createdBy: string;- exchangeRate: number;- id: string;- isBaseCurrency: boolean;- name: string;- symbol: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ code: string+ createdAt: string+ createdBy: string+ exchangeRate: number+ id: string+ isBaseCurrency: boolean+ name: string+ symbol: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- code: string;- createdAt?: string;- createdBy: string;- exchangeRate?: number;- id?: string;- isBaseCurrency?: boolean;- name: string;- symbol?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ code: string+ createdAt?: string+ createdBy: string+ exchangeRate?: number+ id?: string+ isBaseCurrency?: boolean+ name: string+ symbol?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- code?: string;- createdAt?: string;- createdBy?: string;- exchangeRate?: number;- id?: string;- isBaseCurrency?: boolean;- name?: string;- symbol?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ code?: string+ createdAt?: string+ createdBy?: string+ exchangeRate?: number+ id?: string+ isBaseCurrency?: boolean+ name?: string+ symbol?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "currency_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "currency_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "currency_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "currency_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "currency_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "currency_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "currency_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "currency_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }customer: {Row: {- accountManagerId: string | null;- createdAt: string;- createdBy: string | null;- customerStatusId: string | null;- customerTypeId: string | null;- defaultCurrencyCode: string | null;- defaultPaymentTermId: string | null;- defaultShippingMethodId: string | null;- defaultShippingTermId: string | null;- id: string;- logo: string | null;- name: string;- taxId: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ accountManagerId: string | null+ createdAt: string+ createdBy: string | null+ customerStatusId: string | null+ customerTypeId: string | null+ id: string+ logo: string | null+ name: string+ taxId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountManagerId?: string | null;- createdAt?: string;- createdBy?: string | null;- customerStatusId?: string | null;- customerTypeId?: string | null;- defaultCurrencyCode?: string | null;- defaultPaymentTermId?: string | null;- defaultShippingMethodId?: string | null;- defaultShippingTermId?: string | null;- id?: string;- logo?: string | null;- name: string;- taxId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountManagerId?: string | null+ createdAt?: string+ createdBy?: string | null+ customerStatusId?: string | null+ customerTypeId?: string | null+ id?: string+ logo?: string | null+ name: string+ taxId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountManagerId?: string | null;- createdAt?: string;- createdBy?: string | null;- customerStatusId?: string | null;- customerTypeId?: string | null;- defaultCurrencyCode?: string | null;- defaultPaymentTermId?: string | null;- defaultShippingMethodId?: string | null;- defaultShippingTermId?: string | null;- id?: string;- logo?: string | null;- name?: string;- taxId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountManagerId?: string | null+ createdAt?: string+ createdBy?: string | null+ customerStatusId?: string | null+ customerTypeId?: string | null+ id?: string+ logo?: string | null+ name?: string+ taxId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "customer_accountManagerId_fkey";- columns: ["accountManagerId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customer_accountManagerId_fkey"+ columns: ["accountManagerId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_accountManagerId_fkey";- columns: ["accountManagerId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customer_accountManagerId_fkey"+ columns: ["accountManagerId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "customer_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customer_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customer_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "customer_customerStatusId_fkey";- columns: ["customerStatusId"];- referencedRelation: "customerStatus";- referencedColumns: ["id"];+ foreignKeyName: "customer_customerStatusId_fkey"+ columns: ["customerStatusId"]+ referencedRelation: "customerStatus"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_customerTypeId_fkey";- columns: ["customerTypeId"];- referencedRelation: "customerType";- referencedColumns: ["id"];+ foreignKeyName: "customer_customerTypeId_fkey"+ columns: ["customerTypeId"]+ referencedRelation: "customerType"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_defaultPaymentTermId_fkey";- columns: ["defaultPaymentTermId"];- referencedRelation: "paymentTerm";- referencedColumns: ["id"];+ foreignKeyName: "customer_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_defaultShippingMethodId_fkey";- columns: ["defaultShippingMethodId"];- referencedRelation: "shippingMethod";- referencedColumns: ["id"];+ foreignKeyName: "customer_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ }+ ]+ }+ customerAccount: {+ Row: {+ customerId: string+ id: string+ }+ Insert: {+ customerId: string+ id: string+ }+ Update: {+ customerId?: string+ id?: string+ }+ Relationships: [+ {+ foreignKeyName: "customerAccount_customerId_fkey"+ columns: ["customerId"]+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_defaultShippingTermId_fkey";- columns: ["defaultShippingTermId"];- referencedRelation: "shippingTerm";- referencedColumns: ["id"];+ foreignKeyName: "customerAccount_customerId_fkey"+ columns: ["customerId"]+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customerAccount_id_fkey"+ columns: ["id"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customerAccount_id_fkey"+ columns: ["id"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };- customerAccount: {+ ]+ }+ customerContact: {Row: {- customerId: string;- id: string;- };+ contactId: string+ customerId: string+ customerLocationId: string | null+ id: string+ userId: string | null+ }Insert: {- customerId: string;- id: string;- };+ contactId: string+ customerId: string+ customerLocationId?: string | null+ id?: string+ userId?: string | null+ }Update: {- customerId?: string;- id?: string;- };+ contactId?: string+ customerId?: string+ customerLocationId?: string | null+ id?: string+ userId?: string | null+ }Relationships: [{- foreignKeyName: "customerAccount_customerId_fkey";- columns: ["customerId"];- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "customerContact_contactId_fkey"+ columns: ["contactId"]+ referencedRelation: "contact"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerContact_customerId_fkey"+ columns: ["customerId"]+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "customerAccount_customerId_fkey";- columns: ["customerId"];- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "customerContact_customerId_fkey"+ columns: ["customerId"]+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "customerAccount_id_fkey";- columns: ["id"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customerContact_customerLocationId_fkey"+ columns: ["customerLocationId"]+ referencedRelation: "customerLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "customerAccount_id_fkey";- columns: ["id"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customerContact_userId_fkey"+ columns: ["userId"]+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerContact_userId_fkey"+ columns: ["userId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };- customerContact: {+ ]+ }+ customerLocation: {Row: {- contactId: string;- customerId: string;- customerLocationId: string | null;- id: string;- userId: string | null;- };+ addressId: string+ customerId: string+ id: string+ }Insert: {- contactId: string;- customerId: string;- customerLocationId?: string | null;- id?: string;- userId?: string | null;- };+ addressId: string+ customerId: string+ id?: string+ }Update: {- contactId?: string;- customerId?: string;- customerLocationId?: string | null;- id?: string;- userId?: string | null;- };+ addressId?: string+ customerId?: string+ id?: string+ }Relationships: [{- foreignKeyName: "customerContact_contactId_fkey";- columns: ["contactId"];- referencedRelation: "contact";- referencedColumns: ["id"];+ foreignKeyName: "customerLocation_addressId_fkey"+ columns: ["addressId"]+ referencedRelation: "address"+ referencedColumns: ["id"]},{- foreignKeyName: "customerContact_customerId_fkey";- columns: ["customerId"];- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "customerLocation_customerId_fkey"+ columns: ["customerId"]+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "customerContact_customerId_fkey";- columns: ["customerId"];- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "customerLocation_customerId_fkey"+ columns: ["customerId"]+ referencedRelation: "customers"+ referencedColumns: ["id"]+ }+ ]+ }+ customerPayment: {+ Row: {+ currencyCode: string | null+ customerId: string+ invoiceCustomerContactId: string | null+ invoiceCustomerId: string | null+ invoiceCustomerLocationId: string | null+ paymentTermId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }+ Insert: {+ currencyCode?: string | null+ customerId: string+ invoiceCustomerContactId?: string | null+ invoiceCustomerId?: string | null+ invoiceCustomerLocationId?: string | null+ paymentTermId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Update: {+ currencyCode?: string | null+ customerId?: string+ invoiceCustomerContactId?: string | null+ invoiceCustomerId?: string | null+ invoiceCustomerLocationId?: string | null+ paymentTermId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Relationships: [+ {+ foreignKeyName: "customerPayment_customerId_fkey"+ columns: ["customerId"]+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "customerContact_customerLocationId_fkey";- columns: ["customerLocationId"];- referencedRelation: "customerLocation";- referencedColumns: ["id"];+ foreignKeyName: "customerPayment_customerId_fkey"+ columns: ["customerId"]+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "customerContact_userId_fkey";- columns: ["userId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customerPayment_invoiceCustomerContactId_fkey"+ columns: ["invoiceCustomerContactId"]+ referencedRelation: "customerContact"+ referencedColumns: ["id"]},{- foreignKeyName: "customerContact_userId_fkey";- columns: ["userId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customerPayment_invoiceCustomerId_fkey"+ columns: ["invoiceCustomerId"]+ referencedRelation: "customer"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerPayment_invoiceCustomerId_fkey"+ columns: ["invoiceCustomerId"]+ referencedRelation: "customers"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerPayment_invoiceCustomerLocationId_fkey"+ columns: ["invoiceCustomerLocationId"]+ referencedRelation: "customerLocation"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerPayment_paymentTermId_fkey"+ columns: ["paymentTermId"]+ referencedRelation: "paymentTerm"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerPayment_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerPayment_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };- customerLocation: {+ ]+ }+ customerShipping: {Row: {- addressId: string;- customerId: string;- id: string;- };+ customerId: string+ shippingCustomerContactId: string | null+ shippingCustomerId: string | null+ shippingCustomerLocationId: string | null+ shippingMethodId: string | null+ shippingTermId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- addressId: string;- customerId: string;- id?: string;- };+ customerId: string+ shippingCustomerContactId?: string | null+ shippingCustomerId?: string | null+ shippingCustomerLocationId?: string | null+ shippingMethodId?: string | null+ shippingTermId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- addressId?: string;- customerId?: string;- id?: string;- };+ customerId?: string+ shippingCustomerContactId?: string | null+ shippingCustomerId?: string | null+ shippingCustomerLocationId?: string | null+ shippingMethodId?: string | null+ shippingTermId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "customerLocation_addressId_fkey";- columns: ["addressId"];- referencedRelation: "address";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_customerId_fkey"+ columns: ["customerId"]+ referencedRelation: "customer"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerShipping_customerId_fkey"+ columns: ["customerId"]+ referencedRelation: "customers"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerShipping_shippingCustomerContactId_fkey"+ columns: ["shippingCustomerContactId"]+ referencedRelation: "customerContact"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerShipping_shippingCustomerId_fkey"+ columns: ["shippingCustomerId"]+ referencedRelation: "customer"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerShipping_shippingCustomerId_fkey"+ columns: ["shippingCustomerId"]+ referencedRelation: "customers"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerShipping_shippingCustomerLocationId_fkey"+ columns: ["shippingCustomerLocationId"]+ referencedRelation: "customerLocation"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerShipping_shippingMethodId_fkey"+ columns: ["shippingMethodId"]+ referencedRelation: "shippingMethod"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "customerShipping_shippingTermId_fkey"+ columns: ["shippingTermId"]+ referencedRelation: "shippingTerm"+ referencedColumns: ["id"]},{- foreignKeyName: "customerLocation_customerId_fkey";- columns: ["customerId"];- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customerLocation_customerId_fkey";- columns: ["customerId"];- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "customerShipping_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }customerStatus: {Row: {- createdAt: string;- id: string;- name: string;- updatedAt: string | null;- };+ createdAt: string+ id: string+ name: string+ updatedAt: string | null+ }Insert: {- createdAt?: string;- id?: string;- name: string;- updatedAt?: string | null;- };+ createdAt?: string+ id?: string+ name: string+ updatedAt?: string | null+ }Update: {- createdAt?: string;- id?: string;- name?: string;- updatedAt?: string | null;- };- Relationships: [];- };+ createdAt?: string+ id?: string+ name?: string+ updatedAt?: string | null+ }+ Relationships: []+ }customerType: {Row: {- color: string | null;- createdAt: string;- createdBy: string;- id: string;- name: string;- protected: boolean;- updatedAt: string | null;- updatedBy: string | null;- };+ color: string | null+ createdAt: string+ createdBy: string+ id: string+ name: string+ protected: boolean+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- color?: string | null;- createdAt?: string;- createdBy: string;- id?: string;- name: string;- protected?: boolean;- updatedAt?: string | null;- updatedBy?: string | null;- };+ color?: string | null+ createdAt?: string+ createdBy: string+ id?: string+ name: string+ protected?: boolean+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- color?: string | null;- createdAt?: string;- createdBy?: string;- id?: string;- name?: string;- protected?: boolean;- updatedAt?: string | null;- updatedBy?: string | null;- };+ color?: string | null+ createdAt?: string+ createdBy?: string+ id?: string+ name?: string+ protected?: boolean+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "customerType_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customerType_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customerType_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customerType_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "customerType_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "customerType_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "customerType_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "customerType_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }department: {Row: {- color: string;- createdAt: string;- createdBy: string;- id: string;- name: string;- parentDepartmentId: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ color: string+ createdAt: string+ createdBy: string+ id: string+ name: string+ parentDepartmentId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- color?: string;- createdAt?: string;- createdBy: string;- id?: string;- name: string;- parentDepartmentId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ color?: string+ createdAt?: string+ createdBy: string+ id?: string+ name: string+ parentDepartmentId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- color?: string;- createdAt?: string;- createdBy?: string;- id?: string;- name?: string;- parentDepartmentId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ color?: string+ createdAt?: string+ createdBy?: string+ id?: string+ name?: string+ parentDepartmentId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "department_parentDepartmentId_fkey";- columns: ["parentDepartmentId"];- referencedRelation: "department";- referencedColumns: ["id"];+ foreignKeyName: "department_parentDepartmentId_fkey"+ columns: ["parentDepartmentId"]+ referencedRelation: "department"+ referencedColumns: ["id"]}- ];- };+ ]+ }document: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- description: string | null;- id: string;- name: string;- path: string;- readGroups: string[] | null;- size: number;- type: string | null;- updatedAt: string | null;- updatedBy: string | null;- writeGroups: string[] | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ description: string | null+ id: string+ name: string+ path: string+ readGroups: string[] | null+ size: number+ type: string | null+ updatedAt: string | null+ updatedBy: string | null+ writeGroups: string[] | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- description?: string | null;- id?: string;- name: string;- path: string;- readGroups?: string[] | null;- size: number;- type?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- writeGroups?: string[] | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ description?: string | null+ id?: string+ name: string+ path: string+ readGroups?: string[] | null+ size: number+ type?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ writeGroups?: string[] | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- description?: string | null;- id?: string;- name?: string;- path?: string;- readGroups?: string[] | null;- size?: number;- type?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- writeGroups?: string[] | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ description?: string | null+ id?: string+ name?: string+ path?: string+ readGroups?: string[] | null+ size?: number+ type?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ writeGroups?: string[] | null+ }Relationships: [{- foreignKeyName: "document_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "document_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "document_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "document_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "document_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "document_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "document_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "document_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }documentFavorite: {Row: {- documentId: string;- userId: string;- };+ documentId: string+ userId: string+ }Insert: {- documentId: string;- userId: string;- };+ documentId: string+ userId: string+ }Update: {- documentId?: string;- userId?: string;- };+ documentId?: string+ userId?: string+ }Relationships: [{- foreignKeyName: "documentFavorites_documentId_fkey";- columns: ["documentId"];- referencedRelation: "document";- referencedColumns: ["id"];+ foreignKeyName: "documentFavorites_documentId_fkey"+ columns: ["documentId"]+ referencedRelation: "document"+ referencedColumns: ["id"]},{- foreignKeyName: "documentFavorites_documentId_fkey";- columns: ["documentId"];- referencedRelation: "documents";- referencedColumns: ["id"];+ foreignKeyName: "documentFavorites_documentId_fkey"+ columns: ["documentId"]+ referencedRelation: "documents"+ referencedColumns: ["id"]},{- foreignKeyName: "documentFavorites_userId_fkey";- columns: ["userId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "documentFavorites_userId_fkey"+ columns: ["userId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "documentFavorites_userId_fkey";- columns: ["userId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "documentFavorites_userId_fkey"+ columns: ["userId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }documentLabel: {Row: {- documentId: string;- label: string;- userId: string;- };+ documentId: string+ label: string+ userId: string+ }Insert: {- documentId: string;- label: string;- userId: string;- };+ documentId: string+ label: string+ userId: string+ }Update: {- documentId?: string;- label?: string;- userId?: string;- };+ documentId?: string+ label?: string+ userId?: string+ }Relationships: [{- foreignKeyName: "documentLabels_documentId_fkey";- columns: ["documentId"];- referencedRelation: "document";- referencedColumns: ["id"];+ foreignKeyName: "documentLabels_documentId_fkey"+ columns: ["documentId"]+ referencedRelation: "document"+ referencedColumns: ["id"]},{- foreignKeyName: "documentLabels_documentId_fkey";- columns: ["documentId"];- referencedRelation: "documents";- referencedColumns: ["id"];+ foreignKeyName: "documentLabels_documentId_fkey"+ columns: ["documentId"]+ referencedRelation: "documents"+ referencedColumns: ["id"]},{- foreignKeyName: "documentLabels_userId_fkey";- columns: ["userId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "documentLabels_userId_fkey"+ columns: ["userId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "documentLabels_userId_fkey";- columns: ["userId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "documentLabels_userId_fkey"+ columns: ["userId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }documentTransaction: {Row: {- createdAt: string;- documentId: string;- id: string;- type: Database["public"]["Enums"]["documentTransactionType"];- userId: string;- };+ createdAt: string+ documentId: string+ id: string+ type: Database["public"]["Enums"]["documentTransactionType"]+ userId: string+ }Insert: {- createdAt?: string;- documentId: string;- id?: string;- type: Database["public"]["Enums"]["documentTransactionType"];- userId: string;- };+ createdAt?: string+ documentId: string+ id?: string+ type: Database["public"]["Enums"]["documentTransactionType"]+ userId: string+ }Update: {- createdAt?: string;- documentId?: string;- id?: string;- type?: Database["public"]["Enums"]["documentTransactionType"];- userId?: string;- };+ createdAt?: string+ documentId?: string+ id?: string+ type?: Database["public"]["Enums"]["documentTransactionType"]+ userId?: string+ }Relationships: [{- foreignKeyName: "documentTransaction_documentId_fkey";- columns: ["documentId"];- referencedRelation: "document";- referencedColumns: ["id"];+ foreignKeyName: "documentTransaction_documentId_fkey"+ columns: ["documentId"]+ referencedRelation: "document"+ referencedColumns: ["id"]},{- foreignKeyName: "documentTransaction_documentId_fkey";- columns: ["documentId"];- referencedRelation: "documents";- referencedColumns: ["id"];+ foreignKeyName: "documentTransaction_documentId_fkey"+ columns: ["documentId"]+ referencedRelation: "documents"+ referencedColumns: ["id"]},{- foreignKeyName: "documentTransaction_userId_fkey";- columns: ["userId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "documentTransaction_userId_fkey"+ columns: ["userId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "documentTransaction_userId_fkey";- columns: ["userId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "documentTransaction_userId_fkey"+ columns: ["userId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }employee: {Row: {- employeeTypeId: string;- id: string;- };+ employeeTypeId: string+ id: string+ }Insert: {- employeeTypeId: string;- id: string;- };+ employeeTypeId: string+ id: string+ }Update: {- employeeTypeId?: string;- id?: string;- };+ employeeTypeId?: string+ id?: string+ }Relationships: [{- foreignKeyName: "employee_employeeTypeId_fkey";- columns: ["employeeTypeId"];- referencedRelation: "employeeType";- referencedColumns: ["id"];+ foreignKeyName: "employee_employeeTypeId_fkey"+ columns: ["employeeTypeId"]+ referencedRelation: "employeeType"+ referencedColumns: ["id"]},{- foreignKeyName: "employee_id_fkey";- columns: ["id"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "employee_id_fkey"+ columns: ["id"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "employee_id_fkey";- columns: ["id"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "employee_id_fkey"+ columns: ["id"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }employeeAbility: {Row: {- abilityId: string;- active: boolean;- employeeId: string;- id: string;- lastTrainingDate: string | null;- trainingCompleted: boolean | null;- trainingDays: number;- };+ abilityId: string+ active: boolean+ employeeId: string+ id: string+ lastTrainingDate: string | null+ trainingCompleted: boolean | null+ trainingDays: number+ }Insert: {- abilityId: string;- active?: boolean;- employeeId: string;- id?: string;- lastTrainingDate?: string | null;- trainingCompleted?: boolean | null;- trainingDays?: number;- };+ abilityId: string+ active?: boolean+ employeeId: string+ id?: string+ lastTrainingDate?: string | null+ trainingCompleted?: boolean | null+ trainingDays?: number+ }Update: {- abilityId?: string;- active?: boolean;- employeeId?: string;- id?: string;- lastTrainingDate?: string | null;- trainingCompleted?: boolean | null;- trainingDays?: number;- };+ abilityId?: string+ active?: boolean+ employeeId?: string+ id?: string+ lastTrainingDate?: string | null+ trainingCompleted?: boolean | null+ trainingDays?: number+ }Relationships: [{- foreignKeyName: "employeeAbilities_abilityId_fkey";- columns: ["abilityId"];- referencedRelation: "ability";- referencedColumns: ["id"];+ foreignKeyName: "employeeAbilities_abilityId_fkey"+ columns: ["abilityId"]+ referencedRelation: "ability"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeAbilities_employeeId_fkey";- columns: ["employeeId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "employeeAbilities_employeeId_fkey"+ columns: ["employeeId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeAbilities_employeeId_fkey";- columns: ["employeeId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "employeeAbilities_employeeId_fkey"+ columns: ["employeeId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }employeeJob: {Row: {- departmentId: string | null;- id: string;- locationId: string | null;- managerId: string | null;- shiftId: string | null;- startDate: string | null;- title: string | null;- workCellId: string | null;- };+ departmentId: string | null+ id: string+ locationId: string | null+ managerId: string | null+ shiftId: string | null+ startDate: string | null+ title: string | null+ workCellId: string | null+ }Insert: {- departmentId?: string | null;- id: string;- locationId?: string | null;- managerId?: string | null;- shiftId?: string | null;- startDate?: string | null;- title?: string | null;- workCellId?: string | null;- };+ departmentId?: string | null+ id: string+ locationId?: string | null+ managerId?: string | null+ shiftId?: string | null+ startDate?: string | null+ title?: string | null+ workCellId?: string | null+ }Update: {- departmentId?: string | null;- id?: string;- locationId?: string | null;- managerId?: string | null;- shiftId?: string | null;- startDate?: string | null;- title?: string | null;- workCellId?: string | null;- };+ departmentId?: string | null+ id?: string+ locationId?: string | null+ managerId?: string | null+ shiftId?: string | null+ startDate?: string | null+ title?: string | null+ workCellId?: string | null+ }Relationships: [{- foreignKeyName: "employeeJob_departmentId_fkey";- columns: ["departmentId"];- referencedRelation: "department";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_departmentId_fkey"+ columns: ["departmentId"]+ referencedRelation: "department"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_id_fkey";- columns: ["id"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_id_fkey"+ columns: ["id"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_id_fkey";- columns: ["id"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "employeeJob_id_fkey"+ columns: ["id"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "employeeJob_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "employeeJob_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "employeeJob_managerId_fkey";- columns: ["managerId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_managerId_fkey"+ columns: ["managerId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_managerId_fkey";- columns: ["managerId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "employeeJob_managerId_fkey"+ columns: ["managerId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "employeeJob_shiftId_fkey";- columns: ["shiftId"];- referencedRelation: "shift";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_shiftId_fkey"+ columns: ["shiftId"]+ referencedRelation: "shift"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_workCellId_fkey";- columns: ["workCellId"];- referencedRelation: "workCell";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_workCellId_fkey"+ columns: ["workCellId"]+ referencedRelation: "workCell"+ referencedColumns: ["id"]}- ];- };+ ]+ }employeeShift: {Row: {- employeeId: string;- id: string;- shiftId: string;- };+ employeeId: string+ id: string+ shiftId: string+ }Insert: {- employeeId: string;- id?: string;- shiftId: string;- };+ employeeId: string+ id?: string+ shiftId: string+ }Update: {- employeeId?: string;- id?: string;- shiftId?: string;- };+ employeeId?: string+ id?: string+ shiftId?: string+ }Relationships: [{- foreignKeyName: "employeeShift_employeeId_fkey";- columns: ["employeeId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "employeeShift_employeeId_fkey"+ columns: ["employeeId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeShift_employeeId_fkey";- columns: ["employeeId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "employeeShift_employeeId_fkey"+ columns: ["employeeId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "employeeShift_shiftId_fkey";- columns: ["shiftId"];- referencedRelation: "shift";- referencedColumns: ["id"];+ foreignKeyName: "employeeShift_shiftId_fkey"+ columns: ["shiftId"]+ referencedRelation: "shift"+ referencedColumns: ["id"]}- ];- };+ ]+ }employeeType: {Row: {- color: string;- createdAt: string;- id: string;- name: string;- protected: boolean;- updatedAt: string | null;- };+ color: string+ createdAt: string+ id: string+ name: string+ protected: boolean+ updatedAt: string | null+ }Insert: {- color?: string;- createdAt?: string;- id?: string;- name: string;- protected?: boolean;- updatedAt?: string | null;- };+ color?: string+ createdAt?: string+ id?: string+ name: string+ protected?: boolean+ updatedAt?: string | null+ }Update: {- color?: string;- createdAt?: string;- id?: string;- name?: string;- protected?: boolean;- updatedAt?: string | null;- };- Relationships: [];- };+ color?: string+ createdAt?: string+ id?: string+ name?: string+ protected?: boolean+ updatedAt?: string | null+ }+ Relationships: []+ }employeeTypePermission: {Row: {- create: boolean;- createdAt: string;- delete: boolean;- employeeTypeId: string;- featureId: string;- update: boolean;- updatedAt: string | null;- view: boolean;- };+ create: boolean+ createdAt: string+ delete: boolean+ employeeTypeId: string+ featureId: string+ update: boolean+ updatedAt: string | null+ view: boolean+ }Insert: {- create?: boolean;- createdAt?: string;- delete?: boolean;- employeeTypeId: string;- featureId: string;- update?: boolean;- updatedAt?: string | null;- view?: boolean;- };+ create?: boolean+ createdAt?: string+ delete?: boolean+ employeeTypeId: string+ featureId: string+ update?: boolean+ updatedAt?: string | null+ view?: boolean+ }Update: {- create?: boolean;- createdAt?: string;- delete?: boolean;- employeeTypeId?: string;- featureId?: string;- update?: boolean;- updatedAt?: string | null;- view?: boolean;- };+ create?: boolean+ createdAt?: string+ delete?: boolean+ employeeTypeId?: string+ featureId?: string+ update?: boolean+ updatedAt?: string | null+ view?: boolean+ }Relationships: [{- foreignKeyName: "employeeTypePermission_employeeTypeId_fkey";- columns: ["employeeTypeId"];- referencedRelation: "employeeType";- referencedColumns: ["id"];+ foreignKeyName: "employeeTypePermission_employeeTypeId_fkey"+ columns: ["employeeTypeId"]+ referencedRelation: "employeeType"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeTypePermission_featureId_fkey";- columns: ["featureId"];- referencedRelation: "feature";- referencedColumns: ["id"];+ foreignKeyName: "employeeTypePermission_featureId_fkey"+ columns: ["featureId"]+ referencedRelation: "feature"+ referencedColumns: ["id"]}- ];- };+ ]+ }equipment: {Row: {- active: boolean;- activeDate: string | null;- createdAt: string;- createdBy: string;- description: string | null;- equipmentTypeId: string;- id: string;- locationId: string;- name: string;- operatorsRequired: number;- setupHours: number;- updatedAt: string | null;- updatedBy: string | null;- workCellId: string | null;- };+ active: boolean+ activeDate: string | null+ createdAt: string+ createdBy: string+ description: string | null+ equipmentTypeId: string+ id: string+ locationId: string+ name: string+ operatorsRequired: number+ setupHours: number+ updatedAt: string | null+ updatedBy: string | null+ workCellId: string | null+ }Insert: {- active?: boolean;- activeDate?: string | null;- createdAt?: string;- createdBy: string;- description?: string | null;- equipmentTypeId: string;- id?: string;- locationId: string;- name: string;- operatorsRequired?: number;- setupHours?: number;- updatedAt?: string | null;- updatedBy?: string | null;- workCellId?: string | null;- };+ active?: boolean+ activeDate?: string | null+ createdAt?: string+ createdBy: string+ description?: string | null+ equipmentTypeId: string+ id?: string+ locationId: string+ name: string+ operatorsRequired?: number+ setupHours?: number+ updatedAt?: string | null+ updatedBy?: string | null+ workCellId?: string | null+ }Update: {- active?: boolean;- activeDate?: string | null;- createdAt?: string;- createdBy?: string;- description?: string | null;- equipmentTypeId?: string;- id?: string;- locationId?: string;- name?: string;- operatorsRequired?: number;- setupHours?: number;- updatedAt?: string | null;- updatedBy?: string | null;- workCellId?: string | null;- };+ active?: boolean+ activeDate?: string | null+ createdAt?: string+ createdBy?: string+ description?: string | null+ equipmentTypeId?: string+ id?: string+ locationId?: string+ name?: string+ operatorsRequired?: number+ setupHours?: number+ updatedAt?: string | null+ updatedBy?: string | null+ workCellId?: string | null+ }Relationships: [{- foreignKeyName: "equipment_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "equipment_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "equipment_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "equipment_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "equipment_equipmentTypeId_fkey";- columns: ["equipmentTypeId"];- referencedRelation: "equipmentType";- referencedColumns: ["id"];+ foreignKeyName: "equipment_equipmentTypeId_fkey"+ columns: ["equipmentTypeId"]+ referencedRelation: "equipmentType"+ referencedColumns: ["id"]},{- foreignKeyName: "equipment_locationId_fkey";- columns: ["locationId"];- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "equipment_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "equipment_locationId_fkey";- columns: ["locationId"];- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "equipment_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "equipment_locationId_fkey";- columns: ["locationId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "equipment_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "equipment_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "equipment_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "equipment_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "equipment_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "equipment_workCellId_fkey";- columns: ["workCellId"];- referencedRelation: "workCell";- referencedColumns: ["id"];+ foreignKeyName: "equipment_workCellId_fkey"+ columns: ["workCellId"]+ referencedRelation: "workCell"+ referencedColumns: ["id"]}- ];- };+ ]+ }equipmentType: {Row: {- active: boolean;- color: string;- createdAt: string;- createdBy: string;- description: string | null;- id: string;- name: string;- requiredAbility: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ color: string+ createdAt: string+ createdBy: string+ description: string | null+ id: string+ name: string+ requiredAbility: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- color?: string;- createdAt?: string;- createdBy: string;- description?: string | null;- id?: string;- name: string;- requiredAbility?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ color?: string+ createdAt?: string+ createdBy: string+ description?: string | null+ id?: string+ name: string+ requiredAbility?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- color?: string;- createdAt?: string;- createdBy?: string;- description?: string | null;- id?: string;- name?: string;- requiredAbility?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ color?: string+ createdAt?: string+ createdBy?: string+ description?: string | null+ id?: string+ name?: string+ requiredAbility?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "equipmentType_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "equipmentType_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "equipmentType_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "equipmentType_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "equipmentType_requiredAbility_fkey";- columns: ["requiredAbility"];- referencedRelation: "ability";- referencedColumns: ["id"];+ foreignKeyName: "equipmentType_requiredAbility_fkey"+ columns: ["requiredAbility"]+ referencedRelation: "ability"+ referencedColumns: ["id"]},{- foreignKeyName: "equipmentType_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "equipmentType_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "equipmentType_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "equipmentType_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }feature: {Row: {- createdAt: string;- id: string;- name: string;- updatedAt: string | null;- };+ createdAt: string+ id: string+ name: string+ updatedAt: string | null+ }Insert: {- createdAt?: string;- id?: string;- name: string;- updatedAt?: string | null;- };+ createdAt?: string+ id?: string+ name: string+ updatedAt?: string | null+ }Update: {- createdAt?: string;- id?: string;- name?: string;- updatedAt?: string | null;- };- Relationships: [];- };+ createdAt?: string+ id?: string+ name?: string+ updatedAt?: string | null+ }+ Relationships: []+ }fiscalYearSettings: {Row: {- id: boolean;- startMonth: Database["public"]["Enums"]["month"];- taxStartMonth: Database["public"]["Enums"]["month"];- updatedBy: string;- };+ id: boolean+ startMonth: Database["public"]["Enums"]["month"]+ taxStartMonth: Database["public"]["Enums"]["month"]+ updatedBy: string+ }Insert: {- id?: boolean;- startMonth?: Database["public"]["Enums"]["month"];- taxStartMonth?: Database["public"]["Enums"]["month"];- updatedBy: string;- };+ id?: boolean+ startMonth?: Database["public"]["Enums"]["month"]+ taxStartMonth?: Database["public"]["Enums"]["month"]+ updatedBy: string+ }Update: {- id?: boolean;- startMonth?: Database["public"]["Enums"]["month"];- taxStartMonth?: Database["public"]["Enums"]["month"];- updatedBy?: string;- };+ id?: boolean+ startMonth?: Database["public"]["Enums"]["month"]+ taxStartMonth?: Database["public"]["Enums"]["month"]+ updatedBy?: string+ }Relationships: [{- foreignKeyName: "fiscalYearSettings_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "fiscalYearSettings_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "fiscalYearSettings_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "fiscalYearSettings_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }group: {Row: {- createdAt: string;- id: string;- isCustomerOrgGroup: boolean;- isCustomerTypeGroup: boolean;- isEmployeeTypeGroup: boolean;- isIdentityGroup: boolean;- isSupplierOrgGroup: boolean;- isSupplierTypeGroup: boolean;- name: string;- updatedAt: string | null;- };+ createdAt: string+ id: string+ isCustomerOrgGroup: boolean+ isCustomerTypeGroup: boolean+ isEmployeeTypeGroup: boolean+ isIdentityGroup: boolean+ isSupplierOrgGroup: boolean+ isSupplierTypeGroup: boolean+ name: string+ updatedAt: string | null+ }Insert: {- createdAt?: string;- id?: string;- isCustomerOrgGroup?: boolean;- isCustomerTypeGroup?: boolean;- isEmployeeTypeGroup?: boolean;- isIdentityGroup?: boolean;- isSupplierOrgGroup?: boolean;- isSupplierTypeGroup?: boolean;- name: string;- updatedAt?: string | null;- };+ createdAt?: string+ id?: string+ isCustomerOrgGroup?: boolean+ isCustomerTypeGroup?: boolean+ isEmployeeTypeGroup?: boolean+ isIdentityGroup?: boolean+ isSupplierOrgGroup?: boolean+ isSupplierTypeGroup?: boolean+ name: string+ updatedAt?: string | null+ }Update: {- createdAt?: string;- id?: string;- isCustomerOrgGroup?: boolean;- isCustomerTypeGroup?: boolean;- isEmployeeTypeGroup?: boolean;- isIdentityGroup?: boolean;- isSupplierOrgGroup?: boolean;- isSupplierTypeGroup?: boolean;- name?: string;- updatedAt?: string | null;- };- Relationships: [];- };+ createdAt?: string+ id?: string+ isCustomerOrgGroup?: boolean+ isCustomerTypeGroup?: boolean+ isEmployeeTypeGroup?: boolean+ isIdentityGroup?: boolean+ isSupplierOrgGroup?: boolean+ isSupplierTypeGroup?: boolean+ name?: string+ updatedAt?: string | null+ }+ Relationships: []+ }holiday: {Row: {- createdAt: string;- createdBy: string;- date: string;- id: string;- name: string;- updatedAt: string | null;- updatedBy: string | null;- year: number | null;- };+ createdAt: string+ createdBy: string+ date: string+ id: string+ name: string+ updatedAt: string | null+ updatedBy: string | null+ year: number | null+ }Insert: {- createdAt?: string;- createdBy: string;- date: string;- id?: string;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- year?: number | null;- };+ createdAt?: string+ createdBy: string+ date: string+ id?: string+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ year?: number | null+ }Update: {- createdAt?: string;- createdBy?: string;- date?: string;- id?: string;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- year?: number | null;- };+ createdAt?: string+ createdBy?: string+ date?: string+ id?: string+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ year?: number | null+ }Relationships: [{- foreignKeyName: "holiday_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "holiday_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "holiday_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "holiday_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "holiday_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "holiday_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "holiday_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "holiday_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }journal: {Row: {- accountingPeriodId: string | null;- createdAt: string;- description: string | null;- id: number;- postingDate: string;- };+ accountingPeriodId: string | null+ createdAt: string+ description: string | null+ id: number+ postingDate: string+ }Insert: {- accountingPeriodId?: string | null;- createdAt?: string;- description?: string | null;- id?: number;- postingDate?: string;- };+ accountingPeriodId?: string | null+ createdAt?: string+ description?: string | null+ id?: number+ postingDate?: string+ }Update: {- accountingPeriodId?: string | null;- createdAt?: string;- description?: string | null;- id?: number;- postingDate?: string;- };+ accountingPeriodId?: string | null+ createdAt?: string+ description?: string | null+ id?: number+ postingDate?: string+ }Relationships: [{- foreignKeyName: "journal_accountPeriodId_fkey";- columns: ["accountingPeriodId"];- referencedRelation: "accountingPeriod";- referencedColumns: ["id"];+ foreignKeyName: "journal_accountPeriodId_fkey"+ columns: ["accountingPeriodId"]+ referencedRelation: "accountingPeriod"+ referencedColumns: ["id"]}- ];- };+ ]+ }journalLine: {Row: {- accountNumber: string;- amount: number;- createdAt: string;- description: string | null;- documentId: string | null;+ accountNumber: string+ amount: number+ createdAt: string+ description: string | null+ documentId: string | nulldocumentType:| Database["public"]["Enums"]["journalLineDocumentType"]- | null;- externalDocumentId: string | null;- id: string;- journalId: number;- };+ | null+ externalDocumentId: string | null+ id: string+ journalId: number+ }Insert: {- accountNumber: string;- amount: number;- createdAt?: string;- description?: string | null;- documentId?: string | null;+ accountNumber: string+ amount: number+ createdAt?: string+ description?: string | null+ documentId?: string | nulldocumentType?:| Database["public"]["Enums"]["journalLineDocumentType"]- | null;- externalDocumentId?: string | null;- id?: string;- journalId: number;- };+ | null+ externalDocumentId?: string | null+ id?: string+ journalId: number+ }Update: {- accountNumber?: string;- amount?: number;- createdAt?: string;- description?: string | null;- documentId?: string | null;+ accountNumber?: string+ amount?: number+ createdAt?: string+ description?: string | null+ documentId?: string | nulldocumentType?:| Database["public"]["Enums"]["journalLineDocumentType"]- | null;- externalDocumentId?: string | null;- id?: string;- journalId?: number;- };+ | null+ externalDocumentId?: string | null+ id?: string+ journalId?: number+ }Relationships: [{- foreignKeyName: "journalLine_accountNumber_fkey";- columns: ["accountNumber"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "journalLine_accountNumber_fkey"+ columns: ["accountNumber"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "journalLine_accountNumber_fkey";- columns: ["accountNumber"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "journalLine_accountNumber_fkey"+ columns: ["accountNumber"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]}- ];- };+ ]+ }location: {Row: {- addressLine1: string;- addressLine2: string | null;- city: string;- country: string | null;- createdAt: string;- createdBy: string;- id: string;- latitude: number | null;- longitude: number | null;- name: string;- postalCode: string;- state: string;- timezone: string;- updatedAt: string | null;- updatedBy: string | null;- };+ addressLine1: string+ addressLine2: string | null+ city: string+ country: string | null+ createdAt: string+ createdBy: string+ id: string+ latitude: number | null+ longitude: number | null+ name: string+ postalCode: string+ state: string+ timezone: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- addressLine1: string;- addressLine2?: string | null;- city: string;- country?: string | null;- createdAt?: string;- createdBy: string;- id?: string;- latitude?: number | null;- longitude?: number | null;- name: string;- postalCode: string;- state: string;- timezone: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ addressLine1: string+ addressLine2?: string | null+ city: string+ country?: string | null+ createdAt?: string+ createdBy: string+ id?: string+ latitude?: number | null+ longitude?: number | null+ name: string+ postalCode: string+ state: string+ timezone: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- addressLine1?: string;- addressLine2?: string | null;- city?: string;- country?: string | null;- createdAt?: string;- createdBy?: string;- id?: string;- latitude?: number | null;- longitude?: number | null;- name?: string;- postalCode?: string;- state?: string;- timezone?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };- Relationships: [];- };+ addressLine1?: string+ addressLine2?: string | null+ city?: string+ country?: string | null+ createdAt?: string+ createdBy?: string+ id?: string+ latitude?: number | null+ longitude?: number | null+ name?: string+ postalCode?: string+ state?: string+ timezone?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Relationships: []+ }membership: {Row: {- groupId: string;- id: number;- memberGroupId: string | null;- memberUserId: string | null;- };+ groupId: string+ id: number+ memberGroupId: string | null+ memberUserId: string | null+ }Insert: {- groupId: string;- id?: number;- memberGroupId?: string | null;- memberUserId?: string | null;- };+ groupId: string+ id?: number+ memberGroupId?: string | null+ memberUserId?: string | null+ }Update: {- groupId?: string;- id?: number;- memberGroupId?: string | null;- memberUserId?: string | null;- };+ groupId?: string+ id?: number+ memberGroupId?: string | null+ memberUserId?: string | null+ }Relationships: [{- foreignKeyName: "membership_groupId_fkey";- columns: ["groupId"];- referencedRelation: "group";- referencedColumns: ["id"];+ foreignKeyName: "membership_groupId_fkey"+ columns: ["groupId"]+ referencedRelation: "group"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberGroupId_fkey";- columns: ["memberGroupId"];- referencedRelation: "group";- referencedColumns: ["id"];+ foreignKeyName: "membership_memberGroupId_fkey"+ columns: ["memberGroupId"]+ referencedRelation: "group"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberUserId_fkey";- columns: ["memberUserId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "membership_memberUserId_fkey"+ columns: ["memberUserId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberUserId_fkey";- columns: ["memberUserId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "membership_memberUserId_fkey"+ columns: ["memberUserId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }note: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- documentId: string;- id: string;- note: string;- noteRichText: Json;- updatedAt: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ documentId: string+ id: string+ note: string+ noteRichText: Json+ updatedAt: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- documentId: string;- id?: string;- note: string;- noteRichText?: Json;- updatedAt?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ documentId: string+ id?: string+ note: string+ noteRichText?: Json+ updatedAt?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- documentId?: string;- id?: string;- note?: string;- noteRichText?: Json;- updatedAt?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ documentId?: string+ id?: string+ note?: string+ noteRichText?: Json+ updatedAt?: string | null+ }Relationships: [{- foreignKeyName: "notes_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "notes_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "notes_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "notes_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }part: {Row: {- active: boolean;- approved: boolean;- approvedBy: string | null;- blocked: boolean;- createdAt: string;- createdBy: string;- description: string | null;- fromDate: string | null;- id: string;- manufacturerPartNumber: string | null;- name: string;- partGroupId: string | null;- partType: Database["public"]["Enums"]["partType"];- replenishmentSystem: Database["public"]["Enums"]["partReplenishmentSystem"];- toDate: string | null;- unitOfMeasureCode: string;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ approved: boolean+ approvedBy: string | null+ blocked: boolean+ createdAt: string+ createdBy: string+ description: string | null+ fromDate: string | null+ id: string+ manufacturerPartNumber: string | null+ name: string+ partGroupId: string | null+ partType: Database["public"]["Enums"]["partType"]+ replenishmentSystem: Database["public"]["Enums"]["partReplenishmentSystem"]+ toDate: string | null+ unitOfMeasureCode: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- approved?: boolean;- approvedBy?: string | null;- blocked?: boolean;- createdAt?: string;- createdBy: string;- description?: string | null;- fromDate?: string | null;- id: string;- manufacturerPartNumber?: string | null;- name: string;- partGroupId?: string | null;- partType: Database["public"]["Enums"]["partType"];- replenishmentSystem: Database["public"]["Enums"]["partReplenishmentSystem"];- toDate?: string | null;- unitOfMeasureCode: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ approved?: boolean+ approvedBy?: string | null+ blocked?: boolean+ createdAt?: string+ createdBy: string+ description?: string | null+ fromDate?: string | null+ id: string+ manufacturerPartNumber?: string | null+ name: string+ partGroupId?: string | null+ partType: Database["public"]["Enums"]["partType"]+ replenishmentSystem: Database["public"]["Enums"]["partReplenishmentSystem"]+ toDate?: string | null+ unitOfMeasureCode: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- approved?: boolean;- approvedBy?: string | null;- blocked?: boolean;- createdAt?: string;- createdBy?: string;- description?: string | null;- fromDate?: string | null;- id?: string;- manufacturerPartNumber?: string | null;- name?: string;- partGroupId?: string | null;- partType?: Database["public"]["Enums"]["partType"];- replenishmentSystem?: Database["public"]["Enums"]["partReplenishmentSystem"];- toDate?: string | null;- unitOfMeasureCode?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ approved?: boolean+ approvedBy?: string | null+ blocked?: boolean+ createdAt?: string+ createdBy?: string+ description?: string | null+ fromDate?: string | null+ id?: string+ manufacturerPartNumber?: string | null+ name?: string+ partGroupId?: string | null+ partType?: Database["public"]["Enums"]["partType"]+ replenishmentSystem?: Database["public"]["Enums"]["partReplenishmentSystem"]+ toDate?: string | null+ unitOfMeasureCode?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "part_approvedBy_fkey";- columns: ["approvedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "part_approvedBy_fkey"+ columns: ["approvedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "part_approvedBy_fkey";- columns: ["approvedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "part_approvedBy_fkey"+ columns: ["approvedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "part_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "part_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "part_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "part_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "part_partGroupId_fkey";- columns: ["partGroupId"];- referencedRelation: "partGroup";- referencedColumns: ["id"];+ foreignKeyName: "part_partGroupId_fkey"+ columns: ["partGroupId"]+ referencedRelation: "partGroup"+ referencedColumns: ["id"]},{- foreignKeyName: "part_unitOfMeasureCode_fkey";- columns: ["unitOfMeasureCode"];- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "part_unitOfMeasureCode_fkey"+ columns: ["unitOfMeasureCode"]+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "part_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "part_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "part_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "part_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }partCost: {Row: {- costingMethod: Database["public"]["Enums"]["partCostingMethod"];- costIsAdjusted: boolean;- createdAt: string;- createdBy: string;- partId: string;- standardCost: number;- unitCost: number;- updatedAt: string | null;- updatedBy: string | null;- };+ costingMethod: Database["public"]["Enums"]["partCostingMethod"]+ costIsAdjusted: boolean+ createdAt: string+ createdBy: string+ partId: string+ standardCost: number+ unitCost: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- costingMethod: Database["public"]["Enums"]["partCostingMethod"];- costIsAdjusted?: boolean;- createdAt?: string;- createdBy: string;- partId: string;- standardCost?: number;- unitCost?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ costingMethod: Database["public"]["Enums"]["partCostingMethod"]+ costIsAdjusted?: boolean+ createdAt?: string+ createdBy: string+ partId: string+ standardCost?: number+ unitCost?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- costingMethod?: Database["public"]["Enums"]["partCostingMethod"];- costIsAdjusted?: boolean;- createdAt?: string;- createdBy?: string;- partId?: string;- standardCost?: number;- unitCost?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ costingMethod?: Database["public"]["Enums"]["partCostingMethod"]+ costIsAdjusted?: boolean+ createdAt?: string+ createdBy?: string+ partId?: string+ standardCost?: number+ unitCost?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partCost_partId_fkey";- columns: ["partId"];- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "partCost_partId_fkey"+ columns: ["partId"]+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "partCost_partId_fkey";- columns: ["partId"];- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "partCost_partId_fkey"+ columns: ["partId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "partCost_partId_fkey";- columns: ["partId"];- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "partCost_partId_fkey"+ columns: ["partId"]+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partGroup_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partGroup_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partGroup_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }partGroup: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- description: string | null;- id: string;- name: string;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ description: string | null+ id: string+ name: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- description?: string | null;- id?: string;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ description?: string | null+ id?: string+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- description?: string | null;- id?: string;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ description?: string | null+ id?: string+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partGroup_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partGroup_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partGroup_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partGroup_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partGroup_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partGroup_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }partInventory: {Row: {- createdAt: string;- createdBy: string;- defaultShelfId: string | null;- locationId: string;- partId: string;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string+ createdBy: string+ defaultShelfId: string | null+ locationId: string+ partId: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- defaultShelfId?: string | null;- locationId: string;- partId: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy: string+ defaultShelfId?: string | null+ locationId: string+ partId: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- defaultShelfId?: string | null;- locationId?: string;- partId?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy?: string+ defaultShelfId?: string | null+ locationId?: string+ partId?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partInventory_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partInventory_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partInventory_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partInventory_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partInventory_locationId_fkey";- columns: ["locationId"];- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "partInventory_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "partInventory_locationId_fkey";- columns: ["locationId"];- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "partInventory_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "partInventory_locationId_fkey";- columns: ["locationId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "partInventory_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "partInventory_partId_fkey";- columns: ["partId"];- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "partInventory_partId_fkey"+ columns: ["partId"]+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "partInventory_partId_fkey";- columns: ["partId"];- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "partInventory_partId_fkey"+ columns: ["partId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "partInventory_partId_fkey";- columns: ["partId"];- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "partInventory_partId_fkey"+ columns: ["partId"]+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "partInventory_shelfId_fkey";- columns: ["defaultShelfId", "locationId"];- referencedRelation: "shelf";- referencedColumns: ["id", "locationId"];+ foreignKeyName: "partInventory_shelfId_fkey"+ columns: ["defaultShelfId", "locationId"]+ referencedRelation: "shelf"+ referencedColumns: ["id", "locationId"]},{- foreignKeyName: "partInventory_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partInventory_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partInventory_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partInventory_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }partLedger: {Row: {- createdAt: string;- documentId: string | null;+ createdAt: string+ documentId: string | nulldocumentType:| Database["public"]["Enums"]["partLedgerDocumentType"]- | null;- entryNumber: number;- entryType: Database["public"]["Enums"]["partLedgerType"];- externalDocumentId: string | null;- id: string;- locationId: string | null;- partId: string;- postingDate: string;- quantity: number;- shelfId: string | null;- };+ | null+ entryNumber: number+ entryType: Database["public"]["Enums"]["partLedgerType"]+ externalDocumentId: string | null+ id: string+ locationId: string | null+ partId: string+ postingDate: string+ quantity: number+ shelfId: string | null+ }Insert: {- createdAt?: string;- documentId?: string | null;+ createdAt?: string+ documentId?: string | nulldocumentType?:| Database["public"]["Enums"]["partLedgerDocumentType"]- | null;- entryNumber?: number;- entryType: Database["public"]["Enums"]["partLedgerType"];- externalDocumentId?: string | null;- id?: string;- locationId?: string | null;- partId: string;- postingDate?: string;- quantity: number;- shelfId?: string | null;- };+ | null+ entryNumber?: number+ entryType: Database["public"]["Enums"]["partLedgerType"]+ externalDocumentId?: string | null+ id?: string+ locationId?: string | null+ partId: string+ postingDate?: string+ quantity: number+ shelfId?: string | null+ }Update: {- createdAt?: string;- documentId?: string | null;+ createdAt?: string+ documentId?: string | nulldocumentType?:| Database["public"]["Enums"]["partLedgerDocumentType"]- | null;- entryNumber?: number;- entryType?: Database["public"]["Enums"]["partLedgerType"];- externalDocumentId?: string | null;- id?: string;- locationId?: string | null;- partId?: string;- postingDate?: string;- quantity?: number;- shelfId?: string | null;- };+ | null+ entryNumber?: number+ entryType?: Database["public"]["Enums"]["partLedgerType"]+ externalDocumentId?: string | null+ id?: string+ locationId?: string | null+ partId?: string+ postingDate?: string+ quantity?: number+ shelfId?: string | null+ }Relationships: [{- foreignKeyName: "partLedger_locationId_fkey";- columns: ["locationId"];- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "partLedger_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "partLedger_locationId_fkey";- columns: ["locationId"];- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "partLedger_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "partLedger_locationId_fkey";- columns: ["locationId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "partLedger_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "partLedger_partId_fkey";- columns: ["partId"];- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "partLedger_partId_fkey"+ columns: ["partId"]+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "partLedger_partId_fkey";- columns: ["partId"];- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "partLedger_partId_fkey"+ columns: ["partId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "partLedger_partId_fkey";- columns: ["partId"];- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "partLedger_partId_fkey"+ columns: ["partId"]+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "partLedger_shelfId_fkey";- columns: ["shelfId", "locationId"];- referencedRelation: "shelf";- referencedColumns: ["id", "locationId"];+ foreignKeyName: "partLedger_shelfId_fkey"+ columns: ["shelfId", "locationId"]+ referencedRelation: "shelf"+ referencedColumns: ["id", "locationId"]}- ];- };+ ]+ }partLedgerValueLedgerRelation: {Row: {- partLedgerId: string;- valueLedgerId: string;- };+ partLedgerId: string+ valueLedgerId: string+ }Insert: {- partLedgerId: string;- valueLedgerId: string;- };+ partLedgerId: string+ valueLedgerId: string+ }Update: {- partLedgerId?: string;- valueLedgerId?: string;- };+ partLedgerId?: string+ valueLedgerId?: string+ }Relationships: [{- foreignKeyName: "partLedgerValueLedgerRelation_partLedgerId_fkey";- columns: ["partLedgerId"];- referencedRelation: "partLedger";- referencedColumns: ["id"];+ foreignKeyName: "partLedgerValueLedgerRelation_partLedgerId_fkey"+ columns: ["partLedgerId"]+ referencedRelation: "partLedger"+ referencedColumns: ["id"]},{- foreignKeyName: "partLedgerValueLedgerRelation_valueLedgerId_fkey";- columns: ["valueLedgerId"];- referencedRelation: "valueLedger";- referencedColumns: ["id"];+ foreignKeyName: "partLedgerValueLedgerRelation_valueLedgerId_fkey"+ columns: ["valueLedgerId"]+ referencedRelation: "valueLedger"+ referencedColumns: ["id"]}- ];- };+ ]+ }partner: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- hoursPerWeek: number;- id: string;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ hoursPerWeek: number+ id: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- hoursPerWeek?: number;- id: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ hoursPerWeek?: number+ id: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- hoursPerWeek?: number;- id?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ hoursPerWeek?: number+ id?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partner_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partner_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partner_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partner_id_fkey";- columns: ["id"];- referencedRelation: "supplierLocation";- referencedColumns: ["id"];+ foreignKeyName: "partner_id_fkey"+ columns: ["id"]+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partner_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partner_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partner_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }partnerAbility: {Row: {- abilityId: string;- createdAt: string;- createdBy: string;- partnerId: string;- };+ abilityId: string+ createdAt: string+ createdBy: string+ partnerId: string+ }Insert: {- abilityId: string;- createdAt?: string;- createdBy: string;- partnerId: string;- };+ abilityId: string+ createdAt?: string+ createdBy: string+ partnerId: string+ }Update: {- abilityId?: string;- createdAt?: string;- createdBy?: string;- partnerId?: string;- };+ abilityId?: string+ createdAt?: string+ createdBy?: string+ partnerId?: string+ }Relationships: [{- foreignKeyName: "partnerAbility_abilityId_fkey";- columns: ["abilityId"];- referencedRelation: "ability";- referencedColumns: ["id"];+ foreignKeyName: "partnerAbility_abilityId_fkey"+ columns: ["abilityId"]+ referencedRelation: "ability"+ referencedColumns: ["id"]},{- foreignKeyName: "partnerAbility_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partnerAbility_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partnerAbility_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partnerAbility_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partnerAbility_partnerId_fkey";- columns: ["partnerId"];- referencedRelation: "partner";- referencedColumns: ["id"];+ foreignKeyName: "partnerAbility_partnerId_fkey"+ columns: ["partnerId"]+ referencedRelation: "partner"+ referencedColumns: ["id"]},{- foreignKeyName: "partnerAbility_partnerId_fkey";- columns: ["partnerId"];- referencedRelation: "partners";- referencedColumns: ["supplierLocationId"];+ foreignKeyName: "partnerAbility_partnerId_fkey"+ columns: ["partnerId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierLocationId"]}- ];- };+ ]+ }partPlanning: {Row: {- createdAt: string;- createdBy: string;- critical: boolean;- demandAccumulationIncludesInventory: boolean;- demandAccumulationPeriod: number;- demandReschedulingPeriod: number;- locationId: string;- maximumOrderQuantity: number;- minimumOrderQuantity: number;- orderMultiple: number;- partId: string;- reorderingPolicy: Database["public"]["Enums"]["partReorderingPolicy"];- reorderMaximumInventory: number;- reorderPoint: number;- reorderQuantity: number;- safetyStockLeadTime: number;- safetyStockQuantity: number;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string+ createdBy: string+ critical: boolean+ demandAccumulationIncludesInventory: boolean+ demandAccumulationPeriod: number+ demandReschedulingPeriod: number+ locationId: string+ maximumOrderQuantity: number+ minimumOrderQuantity: number+ orderMultiple: number+ partId: string+ reorderingPolicy: Database["public"]["Enums"]["partReorderingPolicy"]+ reorderMaximumInventory: number+ reorderPoint: number+ reorderQuantity: number+ safetyStockLeadTime: number+ safetyStockQuantity: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- critical?: boolean;- demandAccumulationIncludesInventory?: boolean;- demandAccumulationPeriod?: number;- demandReschedulingPeriod?: number;- locationId: string;- maximumOrderQuantity?: number;- minimumOrderQuantity?: number;- orderMultiple?: number;- partId: string;- reorderingPolicy?: Database["public"]["Enums"]["partReorderingPolicy"];- reorderMaximumInventory?: number;- reorderPoint?: number;- reorderQuantity?: number;- safetyStockLeadTime?: number;- safetyStockQuantity?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy: string+ critical?: boolean+ demandAccumulationIncludesInventory?: boolean+ demandAccumulationPeriod?: number+ demandReschedulingPeriod?: number+ locationId: string+ maximumOrderQuantity?: number+ minimumOrderQuantity?: number+ orderMultiple?: number+ partId: string+ reorderingPolicy?: Database["public"]["Enums"]["partReorderingPolicy"]+ reorderMaximumInventory?: number+ reorderPoint?: number+ reorderQuantity?: number+ safetyStockLeadTime?: number+ safetyStockQuantity?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- critical?: boolean;- demandAccumulationIncludesInventory?: boolean;- demandAccumulationPeriod?: number;- demandReschedulingPeriod?: number;- locationId?: string;- maximumOrderQuantity?: number;- minimumOrderQuantity?: number;- orderMultiple?: number;- partId?: string;- reorderingPolicy?: Database["public"]["Enums"]["partReorderingPolicy"];- reorderMaximumInventory?: number;- reorderPoint?: number;- reorderQuantity?: number;- safetyStockLeadTime?: number;- safetyStockQuantity?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy?: string+ critical?: boolean+ demandAccumulationIncludesInventory?: boolean+ demandAccumulationPeriod?: number+ demandReschedulingPeriod?: number+ locationId?: string+ maximumOrderQuantity?: number+ minimumOrderQuantity?: number+ orderMultiple?: number+ partId?: string+ reorderingPolicy?: Database["public"]["Enums"]["partReorderingPolicy"]+ reorderMaximumInventory?: number+ reorderPoint?: number+ reorderQuantity?: number+ safetyStockLeadTime?: number+ safetyStockQuantity?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partPlanning_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partPlanning_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partPlanning_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partPlanning_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partPlanning_locationId_fkey";- columns: ["locationId"];- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "partPlanning_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "partPlanning_locationId_fkey";- columns: ["locationId"];- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "partPlanning_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "partPlanning_locationId_fkey";- columns: ["locationId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "partPlanning_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "partPlanning_partId_fkey";- columns: ["partId"];- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "partPlanning_partId_fkey"+ columns: ["partId"]+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "partPlanning_partId_fkey";- columns: ["partId"];- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "partPlanning_partId_fkey"+ columns: ["partId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "partPlanning_partId_fkey";- columns: ["partId"];- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "partPlanning_partId_fkey"+ columns: ["partId"]+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "partPlanning_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partPlanning_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partPlanning_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partPlanning_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }partReplenishment: {Row: {- conversionFactor: number;- createdAt: string;- createdBy: string;- lotSize: number | null;- manufacturingBlocked: boolean;- manufacturingLeadTime: number;- manufacturingPolicy: Database["public"]["Enums"]["partManufacturingPolicy"];- partId: string;- preferredSupplierId: string | null;- purchasingBlocked: boolean;- purchasingLeadTime: number;- purchasingUnitOfMeasureCode: string | null;- requiresConfiguration: boolean;- scrapPercentage: number;- updatedAt: string | null;- updatedBy: string | null;- };+ conversionFactor: number+ createdAt: string+ createdBy: string+ lotSize: number | null+ manufacturingBlocked: boolean+ manufacturingLeadTime: number+ manufacturingPolicy: Database["public"]["Enums"]["partManufacturingPolicy"]+ partId: string+ preferredSupplierId: string | null+ purchasingBlocked: boolean+ purchasingLeadTime: number+ purchasingUnitOfMeasureCode: string | null+ requiresConfiguration: boolean+ scrapPercentage: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- conversionFactor?: number;- createdAt?: string;- createdBy: string;- lotSize?: number | null;- manufacturingBlocked?: boolean;- manufacturingLeadTime?: number;- manufacturingPolicy?: Database["public"]["Enums"]["partManufacturingPolicy"];- partId: string;- preferredSupplierId?: string | null;- purchasingBlocked?: boolean;- purchasingLeadTime?: number;- purchasingUnitOfMeasureCode?: string | null;- requiresConfiguration?: boolean;- scrapPercentage?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ conversionFactor?: number+ createdAt?: string+ createdBy: string+ lotSize?: number | null+ manufacturingBlocked?: boolean+ manufacturingLeadTime?: number+ manufacturingPolicy?: Database["public"]["Enums"]["partManufacturingPolicy"]+ partId: string+ preferredSupplierId?: string | null+ purchasingBlocked?: boolean+ purchasingLeadTime?: number+ purchasingUnitOfMeasureCode?: string | null+ requiresConfiguration?: boolean+ scrapPercentage?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- conversionFactor?: number;- createdAt?: string;- createdBy?: string;- lotSize?: number | null;- manufacturingBlocked?: boolean;- manufacturingLeadTime?: number;- manufacturingPolicy?: Database["public"]["Enums"]["partManufacturingPolicy"];- partId?: string;- preferredSupplierId?: string | null;- purchasingBlocked?: boolean;- purchasingLeadTime?: number;- purchasingUnitOfMeasureCode?: string | null;- requiresConfiguration?: boolean;- scrapPercentage?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ conversionFactor?: number+ createdAt?: string+ createdBy?: string+ lotSize?: number | null+ manufacturingBlocked?: boolean+ manufacturingLeadTime?: number+ manufacturingPolicy?: Database["public"]["Enums"]["partManufacturingPolicy"]+ partId?: string+ preferredSupplierId?: string | null+ purchasingBlocked?: boolean+ purchasingLeadTime?: number+ purchasingUnitOfMeasureCode?: string | null+ requiresConfiguration?: boolean+ scrapPercentage?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partReplenishment_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partReplenishment_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partReplenishment_partId_fkey";- columns: ["partId"];- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_partId_fkey"+ columns: ["partId"]+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_partId_fkey";- columns: ["partId"];- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "partReplenishment_partId_fkey"+ columns: ["partId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "partReplenishment_partId_fkey";- columns: ["partId"];- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_partId_fkey"+ columns: ["partId"]+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_preferredSupplierId_fkey";- columns: ["preferredSupplierId"];- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_preferredSupplierId_fkey"+ columns: ["preferredSupplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_preferredSupplierId_fkey";- columns: ["preferredSupplierId"];- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "partReplenishment_preferredSupplierId_fkey"+ columns: ["preferredSupplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "partReplenishment_preferredSupplierId_fkey";- columns: ["preferredSupplierId"];- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "partReplenishment_preferredSupplierId_fkey"+ columns: ["preferredSupplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "partReplenishment_preferredSupplierId_fkey";- columns: ["preferredSupplierId"];- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_preferredSupplierId_fkey"+ columns: ["preferredSupplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_preferredSupplierId_fkey";- columns: ["preferredSupplierId"];- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_preferredSupplierId_fkey"+ columns: ["preferredSupplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_purchaseUnitOfMeasureCode_fkey";- columns: ["purchasingUnitOfMeasureCode"];- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "partReplenishment_purchaseUnitOfMeasureCode_fkey"+ columns: ["purchasingUnitOfMeasureCode"]+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "partReplenishment_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partReplenishment_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partReplenishment_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partReplenishment_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }partSupplier: {Row: {- active: boolean;- conversionFactor: number;- createdAt: string;- createdBy: string;- id: string;- minimumOrderQuantity: number | null;- partId: string;- supplierId: string;- supplierPartId: string | null;- supplierUnitOfMeasureCode: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ conversionFactor: number+ createdAt: string+ createdBy: string+ id: string+ minimumOrderQuantity: number | null+ partId: string+ supplierId: string+ supplierPartId: string | null+ supplierUnitOfMeasureCode: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- conversionFactor?: number;- createdAt?: string;- createdBy: string;- id?: string;- minimumOrderQuantity?: number | null;- partId: string;- supplierId: string;- supplierPartId?: string | null;- supplierUnitOfMeasureCode?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ conversionFactor?: number+ createdAt?: string+ createdBy: string+ id?: string+ minimumOrderQuantity?: number | null+ partId: string+ supplierId: string+ supplierPartId?: string | null+ supplierUnitOfMeasureCode?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- conversionFactor?: number;- createdAt?: string;- createdBy?: string;- id?: string;- minimumOrderQuantity?: number | null;- partId?: string;- supplierId?: string;- supplierPartId?: string | null;- supplierUnitOfMeasureCode?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ conversionFactor?: number+ createdAt?: string+ createdBy?: string+ id?: string+ minimumOrderQuantity?: number | null+ partId?: string+ supplierId?: string+ supplierPartId?: string | null+ supplierUnitOfMeasureCode?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partSupplier_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partSupplier_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partSupplier_partId_fkey";- columns: ["partId"];- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_partId_fkey"+ columns: ["partId"]+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_partId_fkey";- columns: ["partId"];- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "partSupplier_partId_fkey"+ columns: ["partId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "partSupplier_partId_fkey";- columns: ["partId"];- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_partId_fkey"+ columns: ["partId"]+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "partSupplier_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "partSupplier_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "partSupplier_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "partSupplier_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partSupplier_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partSupplier_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partSupplier_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }partUnitSalePrice: {Row: {- allowInvoiceDiscount: boolean;- createdAt: string;- createdBy: string;- currencyCode: string;- partId: string;- priceIncludesTax: boolean;- salesBlocked: boolean;- salesUnitOfMeasureCode: string | null;- unitSalePrice: number;- updatedAt: string | null;- updatedBy: string | null;- };+ allowInvoiceDiscount: boolean+ createdAt: string+ createdBy: string+ currencyCode: string+ partId: string+ priceIncludesTax: boolean+ salesBlocked: boolean+ salesUnitOfMeasureCode: string | null+ unitSalePrice: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- allowInvoiceDiscount?: boolean;- createdAt?: string;- createdBy: string;- currencyCode: string;- partId: string;- priceIncludesTax?: boolean;- salesBlocked?: boolean;- salesUnitOfMeasureCode?: string | null;- unitSalePrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ allowInvoiceDiscount?: boolean+ createdAt?: string+ createdBy: string+ currencyCode: string+ partId: string+ priceIncludesTax?: boolean+ salesBlocked?: boolean+ salesUnitOfMeasureCode?: string | null+ unitSalePrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- allowInvoiceDiscount?: boolean;- createdAt?: string;- createdBy?: string;- currencyCode?: string;- partId?: string;- priceIncludesTax?: boolean;- salesBlocked?: boolean;- salesUnitOfMeasureCode?: string | null;- unitSalePrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ allowInvoiceDiscount?: boolean+ createdAt?: string+ createdBy?: string+ currencyCode?: string+ partId?: string+ priceIncludesTax?: boolean+ salesBlocked?: boolean+ salesUnitOfMeasureCode?: string | null+ unitSalePrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "partUnitSalePrice_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partUnitSalePrice_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partUnitSalePrice_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partUnitSalePrice_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "partUnitSalePrice_currencyCode_fkey";- columns: ["currencyCode"];- referencedRelation: "currency";- referencedColumns: ["code"];+ foreignKeyName: "partUnitSalePrice_currencyCode_fkey"+ columns: ["currencyCode"]+ referencedRelation: "currency"+ referencedColumns: ["code"]},{- foreignKeyName: "partUnitSalePrice_partId_fkey";- columns: ["partId"];- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "partUnitSalePrice_partId_fkey"+ columns: ["partId"]+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "partUnitSalePrice_partId_fkey";- columns: ["partId"];- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "partUnitSalePrice_partId_fkey"+ columns: ["partId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "partUnitSalePrice_partId_fkey";- columns: ["partId"];- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "partUnitSalePrice_partId_fkey"+ columns: ["partId"]+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "partUnitSalePrice_salesUnitOfMeasureId_fkey";- columns: ["salesUnitOfMeasureCode"];- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "partUnitSalePrice_salesUnitOfMeasureId_fkey"+ columns: ["salesUnitOfMeasureCode"]+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "partUnitSalePrice_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "partUnitSalePrice_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "partUnitSalePrice_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "partUnitSalePrice_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }paymentTerm: {Row: {- active: boolean;- calculationMethod: Database["public"]["Enums"]["paymentTermCalculationMethod"];- createdAt: string;- createdBy: string;- daysDiscount: number;- daysDue: number;- discountPercentage: number;- id: string;- name: string;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ calculationMethod: Database["public"]["Enums"]["paymentTermCalculationMethod"]+ createdAt: string+ createdBy: string+ daysDiscount: number+ daysDue: number+ discountPercentage: number+ id: string+ name: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- calculationMethod?: Database["public"]["Enums"]["paymentTermCalculationMethod"];- createdAt?: string;- createdBy: string;- daysDiscount?: number;- daysDue?: number;- discountPercentage?: number;- id?: string;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ calculationMethod?: Database["public"]["Enums"]["paymentTermCalculationMethod"]+ createdAt?: string+ createdBy: string+ daysDiscount?: number+ daysDue?: number+ discountPercentage?: number+ id?: string+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- calculationMethod?: Database["public"]["Enums"]["paymentTermCalculationMethod"];- createdAt?: string;- createdBy?: string;- daysDiscount?: number;- daysDue?: number;- discountPercentage?: number;- id?: string;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ calculationMethod?: Database["public"]["Enums"]["paymentTermCalculationMethod"]+ createdAt?: string+ createdBy?: string+ daysDiscount?: number+ daysDue?: number+ discountPercentage?: number+ id?: string+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "paymentTerm_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "paymentTerm_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "paymentTerm_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "paymentTerm_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "paymentTerm_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "paymentTerm_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "paymentTerm_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "paymentTerm_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }postingGroupInventory: {Row: {- capacityVarianceAccount: string;- costOfGoodsSoldAccount: string;- directCostAppliedAccount: string;- id: string;- inventoryAccount: string;- inventoryAdjustmentVarianceAccount: string;- inventoryInterimAccrualAccount: string;- inventoryReceivedNotInvoicedAccount: string;- inventoryShippedNotInvoicedAccount: string;- locationId: string | null;- materialVarianceAccount: string;- overheadAccount: string;- overheadCostAppliedAccount: string;- partGroupId: string | null;- purchaseVarianceAccount: string;- updatedBy: string | null;- workInProgressAccount: string;- };+ capacityVarianceAccount: string+ costOfGoodsSoldAccount: string+ directCostAppliedAccount: string+ id: string+ inventoryAccount: string+ inventoryAdjustmentVarianceAccount: string+ inventoryInterimAccrualAccount: string+ inventoryReceivedNotInvoicedAccount: string+ inventoryShippedNotInvoicedAccount: string+ locationId: string | null+ materialVarianceAccount: string+ overheadAccount: string+ overheadCostAppliedAccount: string+ partGroupId: string | null+ purchaseVarianceAccount: string+ updatedBy: string | null+ workInProgressAccount: string+ }Insert: {- capacityVarianceAccount: string;- costOfGoodsSoldAccount: string;- directCostAppliedAccount: string;- id?: string;- inventoryAccount: string;- inventoryAdjustmentVarianceAccount: string;- inventoryInterimAccrualAccount: string;- inventoryReceivedNotInvoicedAccount: string;- inventoryShippedNotInvoicedAccount: string;- locationId?: string | null;- materialVarianceAccount: string;- overheadAccount: string;- overheadCostAppliedAccount: string;- partGroupId?: string | null;- purchaseVarianceAccount: string;- updatedBy?: string | null;- workInProgressAccount: string;- };+ capacityVarianceAccount: string+ costOfGoodsSoldAccount: string+ directCostAppliedAccount: string+ id?: string+ inventoryAccount: string+ inventoryAdjustmentVarianceAccount: string+ inventoryInterimAccrualAccount: string+ inventoryReceivedNotInvoicedAccount: string+ inventoryShippedNotInvoicedAccount: string+ locationId?: string | null+ materialVarianceAccount: string+ overheadAccount: string+ overheadCostAppliedAccount: string+ partGroupId?: string | null+ purchaseVarianceAccount: string+ updatedBy?: string | null+ workInProgressAccount: string+ }Update: {- capacityVarianceAccount?: string;- costOfGoodsSoldAccount?: string;- directCostAppliedAccount?: string;- id?: string;- inventoryAccount?: string;- inventoryAdjustmentVarianceAccount?: string;- inventoryInterimAccrualAccount?: string;- inventoryReceivedNotInvoicedAccount?: string;- inventoryShippedNotInvoicedAccount?: string;- locationId?: string | null;- materialVarianceAccount?: string;- overheadAccount?: string;- overheadCostAppliedAccount?: string;- partGroupId?: string | null;- purchaseVarianceAccount?: string;- updatedBy?: string | null;- workInProgressAccount?: string;- };+ capacityVarianceAccount?: string+ costOfGoodsSoldAccount?: string+ directCostAppliedAccount?: string+ id?: string+ inventoryAccount?: string+ inventoryAdjustmentVarianceAccount?: string+ inventoryInterimAccrualAccount?: string+ inventoryReceivedNotInvoicedAccount?: string+ inventoryShippedNotInvoicedAccount?: string+ locationId?: string | null+ materialVarianceAccount?: string+ overheadAccount?: string+ overheadCostAppliedAccount?: string+ partGroupId?: string | null+ purchaseVarianceAccount?: string+ updatedBy?: string | null+ workInProgressAccount?: string+ }Relationships: [{- foreignKeyName: "postingGroupInventory_capacityVarianceAccount_fkey";- columns: ["capacityVarianceAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_capacityVarianceAccount_fkey"+ columns: ["capacityVarianceAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_capacityVarianceAccount_fkey";- columns: ["capacityVarianceAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_capacityVarianceAccount_fkey"+ columns: ["capacityVarianceAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_costOfGoodsSoldAccount_fkey";- columns: ["costOfGoodsSoldAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_costOfGoodsSoldAccount_fkey"+ columns: ["costOfGoodsSoldAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_costOfGoodsSoldAccount_fkey";- columns: ["costOfGoodsSoldAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_costOfGoodsSoldAccount_fkey"+ columns: ["costOfGoodsSoldAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_directCostAppliedAccount_fkey";- columns: ["directCostAppliedAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_directCostAppliedAccount_fkey"+ columns: ["directCostAppliedAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_directCostAppliedAccount_fkey";- columns: ["directCostAppliedAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_directCostAppliedAccount_fkey"+ columns: ["directCostAppliedAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryAccount_fkey";- columns: ["inventoryAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryAccount_fkey"+ columns: ["inventoryAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryAccount_fkey";- columns: ["inventoryAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryAccount_fkey"+ columns: ["inventoryAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryAdjustmentVarianceAccount_fkey";- columns: ["inventoryAdjustmentVarianceAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryAdjustmentVarianceAccount_fkey"+ columns: ["inventoryAdjustmentVarianceAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryAdjustmentVarianceAccount_fkey";- columns: ["inventoryAdjustmentVarianceAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryAdjustmentVarianceAccount_fkey"+ columns: ["inventoryAdjustmentVarianceAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryInterimAccrualAccount_fkey";- columns: ["inventoryInterimAccrualAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryInterimAccrualAccount_fkey"+ columns: ["inventoryInterimAccrualAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryInterimAccrualAccount_fkey";- columns: ["inventoryInterimAccrualAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryInterimAccrualAccount_fkey"+ columns: ["inventoryInterimAccrualAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryReceivedNotInvoicedAccount_fkey";- columns: ["inventoryReceivedNotInvoicedAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryReceivedNotInvoicedAccount_fkey"+ columns: ["inventoryReceivedNotInvoicedAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryReceivedNotInvoicedAccount_fkey";- columns: ["inventoryReceivedNotInvoicedAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryReceivedNotInvoicedAccount_fkey"+ columns: ["inventoryReceivedNotInvoicedAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryShippedNotInvoicedAccount_fkey";- columns: ["inventoryShippedNotInvoicedAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryShippedNotInvoicedAccount_fkey"+ columns: ["inventoryShippedNotInvoicedAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_inventoryShippedNotInvoicedAccount_fkey";- columns: ["inventoryShippedNotInvoicedAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_inventoryShippedNotInvoicedAccount_fkey"+ columns: ["inventoryShippedNotInvoicedAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_locationId_fkey";- columns: ["locationId"];- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupInventory_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupInventory_locationId_fkey";- columns: ["locationId"];- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "postingGroupInventory_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "postingGroupInventory_locationId_fkey";- columns: ["locationId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "postingGroupInventory_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "postingGroupInventory_materialVarianceAccount_fkey";- columns: ["materialVarianceAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_materialVarianceAccount_fkey"+ columns: ["materialVarianceAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_materialVarianceAccount_fkey";- columns: ["materialVarianceAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_materialVarianceAccount_fkey"+ columns: ["materialVarianceAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_overheadAccount_fkey";- columns: ["overheadAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_overheadAccount_fkey"+ columns: ["overheadAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_overheadAccount_fkey";- columns: ["overheadAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_overheadAccount_fkey"+ columns: ["overheadAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_overheadCostAppliedAccount_fkey";- columns: ["overheadCostAppliedAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_overheadCostAppliedAccount_fkey"+ columns: ["overheadCostAppliedAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_overheadCostAppliedAccount_fkey";- columns: ["overheadCostAppliedAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_overheadCostAppliedAccount_fkey"+ columns: ["overheadCostAppliedAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_partGroupId_fkey";- columns: ["partGroupId"];- referencedRelation: "partGroup";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupInventory_partGroupId_fkey"+ columns: ["partGroupId"]+ referencedRelation: "partGroup"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupInventory_purchaseVarianceAccount_fkey";- columns: ["purchaseVarianceAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_purchaseVarianceAccount_fkey"+ columns: ["purchaseVarianceAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_purchaseVarianceAccount_fkey";- columns: ["purchaseVarianceAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_purchaseVarianceAccount_fkey"+ columns: ["purchaseVarianceAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupInventory_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupInventory_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "postingGroupInventory_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "postingGroupInventory_workInProgressAccount_fkey";- columns: ["workInProgressAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_workInProgressAccount_fkey"+ columns: ["workInProgressAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupInventory_workInProgressAccount_fkey";- columns: ["workInProgressAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupInventory_workInProgressAccount_fkey"+ columns: ["workInProgressAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]}- ];- };+ ]+ }postingGroupPurchasing: {Row: {- id: string;- partGroupId: string | null;- purchaseAccount: string;- purchaseCreditAccount: string;- purchaseDiscountAccount: string;- purchasePrepaymentAccount: string;- purchaseTaxPayableAccount: string;- supplierTypeId: string | null;- updatedBy: string | null;- };+ id: string+ partGroupId: string | null+ purchaseAccount: string+ purchaseCreditAccount: string+ purchaseDiscountAccount: string+ purchasePrepaymentAccount: string+ purchaseTaxPayableAccount: string+ supplierTypeId: string | null+ updatedBy: string | null+ }Insert: {- id?: string;- partGroupId?: string | null;- purchaseAccount: string;- purchaseCreditAccount: string;- purchaseDiscountAccount: string;- purchasePrepaymentAccount: string;- purchaseTaxPayableAccount: string;- supplierTypeId?: string | null;- updatedBy?: string | null;- };+ id?: string+ partGroupId?: string | null+ purchaseAccount: string+ purchaseCreditAccount: string+ purchaseDiscountAccount: string+ purchasePrepaymentAccount: string+ purchaseTaxPayableAccount: string+ supplierTypeId?: string | null+ updatedBy?: string | null+ }Update: {- id?: string;- partGroupId?: string | null;- purchaseAccount?: string;- purchaseCreditAccount?: string;- purchaseDiscountAccount?: string;- purchasePrepaymentAccount?: string;- purchaseTaxPayableAccount?: string;- supplierTypeId?: string | null;- updatedBy?: string | null;- };+ id?: string+ partGroupId?: string | null+ purchaseAccount?: string+ purchaseCreditAccount?: string+ purchaseDiscountAccount?: string+ purchasePrepaymentAccount?: string+ purchaseTaxPayableAccount?: string+ supplierTypeId?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "postingGroupPurchasing_partGroupId_fkey";- columns: ["partGroupId"];- referencedRelation: "partGroup";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupPurchasing_partGroupId_fkey"+ columns: ["partGroupId"]+ referencedRelation: "partGroup"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupPurchasing_purchaseAccount_fkey";- columns: ["purchaseAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseAccount_fkey"+ columns: ["purchaseAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchaseAccount_fkey";- columns: ["purchaseAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseAccount_fkey"+ columns: ["purchaseAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchaseCreditAccount_fkey";- columns: ["purchaseCreditAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseCreditAccount_fkey"+ columns: ["purchaseCreditAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchaseCreditAccount_fkey";- columns: ["purchaseCreditAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseCreditAccount_fkey"+ columns: ["purchaseCreditAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchaseDiscountAccount_fkey";- columns: ["purchaseDiscountAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseDiscountAccount_fkey"+ columns: ["purchaseDiscountAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchaseDiscountAccount_fkey";- columns: ["purchaseDiscountAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseDiscountAccount_fkey"+ columns: ["purchaseDiscountAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchasePrepaymentAccount_fkey";- columns: ["purchasePrepaymentAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchasePrepaymentAccount_fkey"+ columns: ["purchasePrepaymentAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchasePrepaymentAccount_fkey";- columns: ["purchasePrepaymentAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchasePrepaymentAccount_fkey"+ columns: ["purchasePrepaymentAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchaseTaxPayableAccount_fkey";- columns: ["purchaseTaxPayableAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseTaxPayableAccount_fkey"+ columns: ["purchaseTaxPayableAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_purchaseTaxPayableAccount_fkey";- columns: ["purchaseTaxPayableAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupPurchasing_purchaseTaxPayableAccount_fkey"+ columns: ["purchaseTaxPayableAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupPurchasing_supplierTypeId_fkey";- columns: ["supplierTypeId"];- referencedRelation: "supplierType";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupPurchasing_supplierTypeId_fkey"+ columns: ["supplierTypeId"]+ referencedRelation: "supplierType"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupPurchasing_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupPurchasing_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupPurchasing_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "postingGroupPurchasing_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }postingGroupSales: {Row: {- customerTypeId: string | null;- id: string;- partGroupId: string | null;- salesAccount: string;- salesCreditAccount: string;- salesDiscountAccount: string;- salesPrepaymentAccount: string;- salesTaxPayableAccount: string;- updatedBy: string | null;- };+ customerTypeId: string | null+ id: string+ partGroupId: string | null+ salesAccount: string+ salesCreditAccount: string+ salesDiscountAccount: string+ salesPrepaymentAccount: string+ salesTaxPayableAccount: string+ updatedBy: string | null+ }Insert: {- customerTypeId?: string | null;- id?: string;- partGroupId?: string | null;- salesAccount: string;- salesCreditAccount: string;- salesDiscountAccount: string;- salesPrepaymentAccount: string;- salesTaxPayableAccount: string;- updatedBy?: string | null;- };+ customerTypeId?: string | null+ id?: string+ partGroupId?: string | null+ salesAccount: string+ salesCreditAccount: string+ salesDiscountAccount: string+ salesPrepaymentAccount: string+ salesTaxPayableAccount: string+ updatedBy?: string | null+ }Update: {- customerTypeId?: string | null;- id?: string;- partGroupId?: string | null;- salesAccount?: string;- salesCreditAccount?: string;- salesDiscountAccount?: string;- salesPrepaymentAccount?: string;- salesTaxPayableAccount?: string;- updatedBy?: string | null;- };+ customerTypeId?: string | null+ id?: string+ partGroupId?: string | null+ salesAccount?: string+ salesCreditAccount?: string+ salesDiscountAccount?: string+ salesPrepaymentAccount?: string+ salesTaxPayableAccount?: string+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "postingGroupSales_customerTypeId_fkey";- columns: ["customerTypeId"];- referencedRelation: "customerType";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupSales_customerTypeId_fkey"+ columns: ["customerTypeId"]+ referencedRelation: "customerType"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupSales_partGroupId_fkey";- columns: ["partGroupId"];- referencedRelation: "partGroup";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupSales_partGroupId_fkey"+ columns: ["partGroupId"]+ referencedRelation: "partGroup"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupSales_salesAccount_fkey";- columns: ["salesAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesAccount_fkey"+ columns: ["salesAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesAccount_fkey";- columns: ["salesAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesAccount_fkey"+ columns: ["salesAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesCreditAccount_fkey";- columns: ["salesCreditAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesCreditAccount_fkey"+ columns: ["salesCreditAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesCreditAccount_fkey";- columns: ["salesCreditAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesCreditAccount_fkey"+ columns: ["salesCreditAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesDiscountAccount_fkey";- columns: ["salesDiscountAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesDiscountAccount_fkey"+ columns: ["salesDiscountAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesDiscountAccount_fkey";- columns: ["salesDiscountAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesDiscountAccount_fkey"+ columns: ["salesDiscountAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesPrepaymentAccount_fkey";- columns: ["salesPrepaymentAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesPrepaymentAccount_fkey"+ columns: ["salesPrepaymentAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesPrepaymentAccount_fkey";- columns: ["salesPrepaymentAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesPrepaymentAccount_fkey"+ columns: ["salesPrepaymentAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesTaxPayableAccount_fkey";- columns: ["salesTaxPayableAccount"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesTaxPayableAccount_fkey"+ columns: ["salesTaxPayableAccount"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_salesTaxPayableAccount_fkey";- columns: ["salesTaxPayableAccount"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "postingGroupSales_salesTaxPayableAccount_fkey"+ columns: ["salesTaxPayableAccount"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "postingGroupSales_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "postingGroupSales_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "postingGroupSales_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "postingGroupSales_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }purchaseInvoice: {Row: {- balance: number;- createdAt: string;- createdBy: string;- currencyCode: string;- dateDue: string | null;- dateIssued: string | null;- datePaid: string | null;- exchangeRate: number;- id: string;- invoiceId: string;- status: Database["public"]["Enums"]["purchaseInvoiceStatus"];- subtotal: number;- supplierContactId: string | null;- supplierId: string | null;- supplierReference: string | null;- totalAmount: number;- totalDiscount: number;- totalTax: number;- updatedAt: string | null;- updatedBy: string | null;- };+ balance: number+ createdAt: string+ createdBy: string+ currencyCode: string+ dateDue: string | null+ dateIssued: string | null+ datePaid: string | null+ exchangeRate: number+ id: string+ invoiceId: string+ invoiceSupplierContactId: string | null+ invoiceSupplierId: string | null+ invoiceSupplierLocationId: string | null+ paymentTermId: string | null+ status: Database["public"]["Enums"]["purchaseInvoiceStatus"]+ subtotal: number+ supplierId: string | null+ supplierReference: string | null+ totalAmount: number+ totalDiscount: number+ totalTax: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- balance?: number;- createdAt?: string;- createdBy: string;- currencyCode: string;- dateDue?: string | null;- dateIssued?: string | null;- datePaid?: string | null;- exchangeRate?: number;- id?: string;- invoiceId: string;- status?: Database["public"]["Enums"]["purchaseInvoiceStatus"];- subtotal?: number;- supplierContactId?: string | null;- supplierId?: string | null;- supplierReference?: string | null;- totalAmount?: number;- totalDiscount?: number;- totalTax?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ balance?: number+ createdAt?: string+ createdBy: string+ currencyCode: string+ dateDue?: string | null+ dateIssued?: string | null+ datePaid?: string | null+ exchangeRate?: number+ id?: string+ invoiceId: string+ invoiceSupplierContactId?: string | null+ invoiceSupplierId?: string | null+ invoiceSupplierLocationId?: string | null+ paymentTermId?: string | null+ status?: Database["public"]["Enums"]["purchaseInvoiceStatus"]+ subtotal?: number+ supplierId?: string | null+ supplierReference?: string | null+ totalAmount?: number+ totalDiscount?: number+ totalTax?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- balance?: number;- createdAt?: string;- createdBy?: string;- currencyCode?: string;- dateDue?: string | null;- dateIssued?: string | null;- datePaid?: string | null;- exchangeRate?: number;- id?: string;- invoiceId?: string;- status?: Database["public"]["Enums"]["purchaseInvoiceStatus"];- subtotal?: number;- supplierContactId?: string | null;- supplierId?: string | null;- supplierReference?: string | null;- totalAmount?: number;- totalDiscount?: number;- totalTax?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ balance?: number+ createdAt?: string+ createdBy?: string+ currencyCode?: string+ dateDue?: string | null+ dateIssued?: string | null+ datePaid?: string | null+ exchangeRate?: number+ id?: string+ invoiceId?: string+ invoiceSupplierContactId?: string | null+ invoiceSupplierId?: string | null+ invoiceSupplierLocationId?: string | null+ paymentTermId?: string | null+ status?: Database["public"]["Enums"]["purchaseInvoiceStatus"]+ subtotal?: number+ supplierId?: string | null+ supplierReference?: string | null+ totalAmount?: number+ totalDiscount?: number+ totalTax?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "purchaseInvoice_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoice_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ },+ {+ foreignKeyName: "purchaseInvoice_currencyCode_fkey"+ columns: ["currencyCode"]+ referencedRelation: "currency"+ referencedColumns: ["code"]+ },+ {+ foreignKeyName: "purchaseInvoice_invoiceSupplierContactId_fkey"+ columns: ["invoiceSupplierContactId"]+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseInvoice_currencyCode_fkey";- columns: ["currencyCode"];- referencedRelation: "currency";- referencedColumns: ["code"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseInvoice_supplierContactId_fkey";- columns: ["supplierContactId"];- referencedRelation: "supplierContact";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierLocationId_fkey"+ columns: ["invoiceSupplierLocationId"]+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseInvoice_paymentTermId_fkey"+ columns: ["paymentTermId"]+ referencedRelation: "paymentTerm"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseInvoice_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseInvoice_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoice_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoice_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }purchaseInvoiceLine: {Row: {- accountNumber: string | null;- assetId: string | null;- createdAt: string;- createdBy: string;- currencyCode: string;- description: string | null;- exchangeRate: number;- id: string;- invoiceId: string;- invoiceLineType: Database["public"]["Enums"]["payableLineType"];- partId: string | null;- quantity: number;- totalAmount: number | null;- unitPrice: number;- updatedAt: string | null;- updatedBy: string | null;- };+ accountNumber: string | null+ assetId: string | null+ createdAt: string+ createdBy: string+ currencyCode: string+ description: string | null+ exchangeRate: number+ id: string+ invoiceId: string+ invoiceLineType: Database["public"]["Enums"]["payableLineType"]+ partId: string | null+ purchaseOrderId: string | null+ purchaseOrderLineId: string | null+ quantity: number+ totalAmount: number | null+ unitPrice: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountNumber?: string | null;- assetId?: string | null;- createdAt?: string;- createdBy: string;- currencyCode: string;- description?: string | null;- exchangeRate?: number;- id?: string;- invoiceId: string;- invoiceLineType: Database["public"]["Enums"]["payableLineType"];- partId?: string | null;- quantity?: number;- totalAmount?: number | null;- unitPrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountNumber?: string | null+ assetId?: string | null+ createdAt?: string+ createdBy: string+ currencyCode: string+ description?: string | null+ exchangeRate?: number+ id?: string+ invoiceId: string+ invoiceLineType: Database["public"]["Enums"]["payableLineType"]+ partId?: string | null+ purchaseOrderId?: string | null+ purchaseOrderLineId?: string | null+ quantity?: number+ totalAmount?: number | null+ unitPrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountNumber?: string | null;- assetId?: string | null;- createdAt?: string;- createdBy?: string;- currencyCode?: string;- description?: string | null;- exchangeRate?: number;- id?: string;- invoiceId?: string;- invoiceLineType?: Database["public"]["Enums"]["payableLineType"];- partId?: string | null;- quantity?: number;- totalAmount?: number | null;- unitPrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountNumber?: string | null+ assetId?: string | null+ createdAt?: string+ createdBy?: string+ currencyCode?: string+ description?: string | null+ exchangeRate?: number+ id?: string+ invoiceId?: string+ invoiceLineType?: Database["public"]["Enums"]["payableLineType"]+ partId?: string | null+ purchaseOrderId?: string | null+ purchaseOrderLineId?: string | null+ quantity?: number+ totalAmount?: number | null+ unitPrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "purchaseInvoiceLines_accountNumber_fkey";- columns: ["accountNumber"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "purchaseInvoiceLines_accountNumber_fkey"+ columns: ["accountNumber"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "purchaseInvoiceLines_accountNumber_fkey";- columns: ["accountNumber"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "purchaseInvoiceLines_accountNumber_fkey"+ columns: ["accountNumber"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "purchaseInvoiceLines_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseInvoiceLines_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseInvoiceLines_currencyCode_fkey";- columns: ["currencyCode"];- referencedRelation: "currency";- referencedColumns: ["code"];+ foreignKeyName: "purchaseInvoiceLines_currencyCode_fkey"+ columns: ["currencyCode"]+ referencedRelation: "currency"+ referencedColumns: ["code"]},{- foreignKeyName: "purchaseInvoiceLines_invoiceId_fkey";- columns: ["invoiceId"];- referencedRelation: "purchaseInvoice";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_invoiceId_fkey"+ columns: ["invoiceId"]+ referencedRelation: "purchaseInvoice"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_invoiceId_fkey";- columns: ["invoiceId"];- referencedRelation: "purchaseInvoices";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_invoiceId_fkey"+ columns: ["invoiceId"]+ referencedRelation: "purchaseInvoices"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_partId_fkey";- columns: ["partId"];- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_partId_fkey"+ columns: ["partId"]+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_partId_fkey";- columns: ["partId"];- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "purchaseInvoiceLines_partId_fkey"+ columns: ["partId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "purchaseInvoiceLines_partId_fkey";- columns: ["partId"];- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_partId_fkey"+ columns: ["partId"]+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceLines_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ referencedRelation: "purchaseOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceLines_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseInvoiceLines_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoiceLines_purchaseOrderLineId_fkey"+ columns: ["purchaseOrderLineId"]+ referencedRelation: "purchaseOrderLine"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoiceLines_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoiceLines_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }purchaseInvoicePaymentRelation: {Row: {- id: string;- invoiceId: string;- paymentId: string;- };+ id: string+ invoiceId: string+ paymentId: string+ }Insert: {- id?: string;- invoiceId: string;- paymentId: string;- };+ id?: string+ invoiceId: string+ paymentId: string+ }Update: {- id?: string;- invoiceId?: string;- paymentId?: string;- };+ id?: string+ invoiceId?: string+ paymentId?: string+ }Relationships: [{- foreignKeyName: "purchasePayments_invoiceId_fkey";- columns: ["invoiceId"];- referencedRelation: "purchaseInvoice";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayments_invoiceId_fkey"+ columns: ["invoiceId"]+ referencedRelation: "purchaseInvoice"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayments_invoiceId_fkey";- columns: ["invoiceId"];- referencedRelation: "purchaseInvoices";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayments_invoiceId_fkey"+ columns: ["invoiceId"]+ referencedRelation: "purchaseInvoices"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayments_paymentId_fkey";- columns: ["paymentId"];- referencedRelation: "purchasePayment";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayments_paymentId_fkey"+ columns: ["paymentId"]+ referencedRelation: "purchasePayment"+ referencedColumns: ["id"]}- ];- };+ ]+ }+ purchaseInvoicePriceChange: {+ Row: {+ id: string+ invoiceId: string+ invoiceLineId: string+ newPrice: number+ newQuantity: number+ previousPrice: number+ previousQuantity: number+ updatedBy: string+ }+ Insert: {+ id?: string+ invoiceId: string+ invoiceLineId: string+ newPrice?: number+ newQuantity?: number+ previousPrice?: number+ previousQuantity?: number+ updatedBy: string+ }+ Update: {+ id?: string+ invoiceId?: string+ invoiceLineId?: string+ newPrice?: number+ newQuantity?: number+ previousPrice?: number+ previousQuantity?: number+ updatedBy?: string+ }+ Relationships: [+ {+ foreignKeyName: "purchaseInvoicePriceChange_invoiceId_fkey"+ columns: ["invoiceId"]+ referencedRelation: "purchaseInvoice"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoicePriceChange_invoiceId_fkey"+ columns: ["invoiceId"]+ referencedRelation: "purchaseInvoices"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoicePriceChange_invoiceLineId_fkey"+ columns: ["invoiceLineId"]+ referencedRelation: "purchaseInvoiceLine"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoicePriceChange_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoicePriceChange_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ }+ ]+ }purchaseInvoiceStatusHistory: {Row: {- createdAt: string;- id: string;- invoiceId: string;- status: Database["public"]["Enums"]["purchaseInvoiceStatus"];- };+ createdAt: string+ id: string+ invoiceId: string+ status: Database["public"]["Enums"]["purchaseInvoiceStatus"]+ }Insert: {- createdAt?: string;- id?: string;- invoiceId: string;- status: Database["public"]["Enums"]["purchaseInvoiceStatus"];- };+ createdAt?: string+ id?: string+ invoiceId: string+ status: Database["public"]["Enums"]["purchaseInvoiceStatus"]+ }Update: {- createdAt?: string;- id?: string;- invoiceId?: string;- status?: Database["public"]["Enums"]["purchaseInvoiceStatus"];- };+ createdAt?: string+ id?: string+ invoiceId?: string+ status?: Database["public"]["Enums"]["purchaseInvoiceStatus"]+ }Relationships: [{- foreignKeyName: "purchaseInvoiceStatusHistory_invoiceId_fkey";- columns: ["invoiceId"];- referencedRelation: "purchaseInvoice";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceStatusHistory_invoiceId_fkey"+ columns: ["invoiceId"]+ referencedRelation: "purchaseInvoice"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoiceStatusHistory_invoiceId_fkey";- columns: ["invoiceId"];- referencedRelation: "purchaseInvoices";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoiceStatusHistory_invoiceId_fkey"+ columns: ["invoiceId"]+ referencedRelation: "purchaseInvoices"+ referencedColumns: ["id"]}- ];- };+ ]+ }purchaseOrder: {Row: {- closedAt: string | null;- closedBy: string | null;- createdAt: string;- createdBy: string;- id: string;- notes: string | null;- orderDate: string;- purchaseOrderId: string;- status: Database["public"]["Enums"]["purchaseOrderStatus"];- supplierContactId: string | null;- supplierId: string;- supplierReference: string | null;- type: Database["public"]["Enums"]["purchaseOrderType"];- updatedAt: string | null;- updatedBy: string | null;- };+ closedAt: string | null+ closedBy: string | null+ createdAt: string+ createdBy: string+ id: string+ notes: string | null+ orderDate: string+ purchaseOrderId: string+ status: Database["public"]["Enums"]["purchaseOrderStatus"]+ supplierContactId: string | null+ supplierId: string+ supplierReference: string | null+ type: Database["public"]["Enums"]["purchaseOrderType"]+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- closedAt?: string | null;- closedBy?: string | null;- createdAt?: string;- createdBy: string;- id?: string;- notes?: string | null;- orderDate?: string;- purchaseOrderId: string;- status?: Database["public"]["Enums"]["purchaseOrderStatus"];- supplierContactId?: string | null;- supplierId: string;- supplierReference?: string | null;- type: Database["public"]["Enums"]["purchaseOrderType"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ closedAt?: string | null+ closedBy?: string | null+ createdAt?: string+ createdBy: string+ id?: string+ notes?: string | null+ orderDate?: string+ purchaseOrderId: string+ status?: Database["public"]["Enums"]["purchaseOrderStatus"]+ supplierContactId?: string | null+ supplierId: string+ supplierReference?: string | null+ type: Database["public"]["Enums"]["purchaseOrderType"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- closedAt?: string | null;- closedBy?: string | null;- createdAt?: string;- createdBy?: string;- id?: string;- notes?: string | null;- orderDate?: string;- purchaseOrderId?: string;- status?: Database["public"]["Enums"]["purchaseOrderStatus"];- supplierContactId?: string | null;- supplierId?: string;- supplierReference?: string | null;- type?: Database["public"]["Enums"]["purchaseOrderType"];- updatedAt?: string | null;- updatedBy?: string | null;- };+ closedAt?: string | null+ closedBy?: string | null+ createdAt?: string+ createdBy?: string+ id?: string+ notes?: string | null+ orderDate?: string+ purchaseOrderId?: string+ status?: Database["public"]["Enums"]["purchaseOrderStatus"]+ supplierContactId?: string | null+ supplierId?: string+ supplierReference?: string | null+ type?: Database["public"]["Enums"]["purchaseOrderType"]+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "purchaseOrder_closedBy_fkey";- columns: ["closedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_closedBy_fkey"+ columns: ["closedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_closedBy_fkey";- columns: ["closedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrder_closedBy_fkey"+ columns: ["closedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseOrder_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrder_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseOrder_supplierContactId_fkey";- columns: ["supplierContactId"];- referencedRelation: "supplierContact";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierContactId_fkey"+ columns: ["supplierContactId"]+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }purchaseOrderDelivery: {Row: {- customerId: string | null;- customerLocationId: string | null;- deliveryDate: string | null;- dropShipment: boolean;- id: string;- locationId: string | null;- notes: string | null;- receiptPromisedDate: string | null;- receiptRequestedDate: string | null;- shippingMethodId: string | null;- shippingTermId: string | null;- trackingNumber: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ customerId: string | null+ customerLocationId: string | null+ deliveryDate: string | null+ dropShipment: boolean+ id: string+ locationId: string | null+ notes: string | null+ receiptPromisedDate: string | null+ receiptRequestedDate: string | null+ shippingMethodId: string | null+ shippingTermId: string | null+ trackingNumber: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- customerId?: string | null;- customerLocationId?: string | null;- deliveryDate?: string | null;- dropShipment?: boolean;- id: string;- locationId?: string | null;- notes?: string | null;- receiptPromisedDate?: string | null;- receiptRequestedDate?: string | null;- shippingMethodId?: string | null;- shippingTermId?: string | null;- trackingNumber?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ customerId?: string | null+ customerLocationId?: string | null+ deliveryDate?: string | null+ dropShipment?: boolean+ id: string+ locationId?: string | null+ notes?: string | null+ receiptPromisedDate?: string | null+ receiptRequestedDate?: string | null+ shippingMethodId?: string | null+ shippingTermId?: string | null+ trackingNumber?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- customerId?: string | null;- customerLocationId?: string | null;- deliveryDate?: string | null;- dropShipment?: boolean;- id?: string;- locationId?: string | null;- notes?: string | null;- receiptPromisedDate?: string | null;- receiptRequestedDate?: string | null;- shippingMethodId?: string | null;- shippingTermId?: string | null;- trackingNumber?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ customerId?: string | null+ customerLocationId?: string | null+ deliveryDate?: string | null+ dropShipment?: boolean+ id?: string+ locationId?: string | null+ notes?: string | null+ receiptPromisedDate?: string | null+ receiptRequestedDate?: string | null+ shippingMethodId?: string | null+ shippingTermId?: string | null+ trackingNumber?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "purchaseOrderDelivery_customerId_fkey";- columns: ["customerId"];- referencedRelation: "customer";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_customerId_fkey"+ columns: ["customerId"]+ referencedRelation: "customer"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_customerId_fkey";- columns: ["customerId"];- referencedRelation: "customers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_customerId_fkey"+ columns: ["customerId"]+ referencedRelation: "customers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_customerLocationId_fkey";- columns: ["customerLocationId"];- referencedRelation: "customerLocation";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_customerLocationId_fkey"+ columns: ["customerLocationId"]+ referencedRelation: "customerLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_id_fkey";- columns: ["id"];- referencedRelation: "purchaseOrder";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_id_fkey"+ columns: ["id"]+ referencedRelation: "purchaseOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_id_fkey";- columns: ["id"];- referencedRelation: "purchaseOrders";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_id_fkey"+ columns: ["id"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_locationId_fkey";- columns: ["locationId"];- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_locationId_fkey";- columns: ["locationId"];- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "purchaseOrderDelivery_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "purchaseOrderDelivery_locationId_fkey";- columns: ["locationId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "purchaseOrderDelivery_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "purchaseOrderDelivery_shippingMethodId_fkey";- columns: ["shippingMethodId"];- referencedRelation: "shippingMethod";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_shippingMethodId_fkey"+ columns: ["shippingMethodId"]+ referencedRelation: "shippingMethod"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_shippingTermId_fkey";- columns: ["shippingTermId"];- referencedRelation: "shippingTerm";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_shippingTermId_fkey"+ columns: ["shippingTermId"]+ referencedRelation: "shippingTerm"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderDelivery_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderDelivery_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrderDelivery_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }purchaseOrderFavorite: {Row: {- purchaseOrderId: string;- userId: string;- };+ purchaseOrderId: string+ userId: string+ }Insert: {- purchaseOrderId: string;- userId: string;- };+ purchaseOrderId: string+ userId: string+ }Update: {- purchaseOrderId?: string;- userId?: string;- };+ purchaseOrderId?: string+ userId?: string+ }Relationships: [{- foreignKeyName: "purchaseOrderFavorites_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- referencedRelation: "purchaseOrder";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderFavorites_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ referencedRelation: "purchaseOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderFavorites_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderFavorites_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderFavorites_userId_fkey";- columns: ["userId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderFavorites_userId_fkey"+ columns: ["userId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderFavorites_userId_fkey";- columns: ["userId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrderFavorites_userId_fkey"+ columns: ["userId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }purchaseOrderLine: {Row: {- accountNumber: string | null;- assetId: string | null;- createdAt: string;- createdBy: string;- description: string | null;- id: string;- invoiceComplete: boolean;- locationId: string | null;- partId: string | null;- purchaseOrderId: string;- purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"];- purchaseQuantity: number | null;- quantityInvoiced: number | null;- quantityReceived: number | null;- quantityToInvoice: number | null;- quantityToReceive: number | null;- receivedComplete: boolean;- requiresInspection: boolean;- setupPrice: number | null;- shelfId: string | null;- unitOfMeasureCode: string | null;- unitPrice: number | null;- updatedAt: string | null;- updatedBy: string | null;- };+ accountNumber: string | null+ assetId: string | null+ createdAt: string+ createdBy: string+ description: string | null+ id: string+ invoiceComplete: boolean+ locationId: string | null+ partId: string | null+ purchaseOrderId: string+ purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"]+ purchaseQuantity: number | null+ quantityInvoiced: number | null+ quantityReceived: number | null+ quantityToInvoice: number | null+ quantityToReceive: number | null+ receivedComplete: boolean+ requiresInspection: boolean+ setupPrice: number | null+ shelfId: string | null+ unitOfMeasureCode: string | null+ unitPrice: number | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountNumber?: string | null;- assetId?: string | null;- createdAt?: string;- createdBy: string;- description?: string | null;- id?: string;- invoiceComplete?: boolean;- locationId?: string | null;- partId?: string | null;- purchaseOrderId: string;- purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"];- purchaseQuantity?: number | null;- quantityInvoiced?: number | null;- quantityReceived?: number | null;- quantityToInvoice?: number | null;- quantityToReceive?: number | null;- receivedComplete?: boolean;- requiresInspection?: boolean;- setupPrice?: number | null;- shelfId?: string | null;- unitOfMeasureCode?: string | null;- unitPrice?: number | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountNumber?: string | null+ assetId?: string | null+ createdAt?: string+ createdBy: string+ description?: string | null+ id?: string+ invoiceComplete?: boolean+ locationId?: string | null+ partId?: string | null+ purchaseOrderId: string+ purchaseOrderLineType: Database["public"]["Enums"]["purchaseOrderLineType"]+ purchaseQuantity?: number | null+ quantityInvoiced?: number | null+ quantityReceived?: number | null+ quantityToInvoice?: number | null+ quantityToReceive?: number | null+ receivedComplete?: boolean+ requiresInspection?: boolean+ setupPrice?: number | null+ shelfId?: string | null+ unitOfMeasureCode?: string | null+ unitPrice?: number | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountNumber?: string | null;- assetId?: string | null;- createdAt?: string;- createdBy?: string;- description?: string | null;- id?: string;- invoiceComplete?: boolean;- locationId?: string | null;- partId?: string | null;- purchaseOrderId?: string;- purchaseOrderLineType?: Database["public"]["Enums"]["purchaseOrderLineType"];- purchaseQuantity?: number | null;- quantityInvoiced?: number | null;- quantityReceived?: number | null;- quantityToInvoice?: number | null;- quantityToReceive?: number | null;- receivedComplete?: boolean;- requiresInspection?: boolean;- setupPrice?: number | null;- shelfId?: string | null;- unitOfMeasureCode?: string | null;- unitPrice?: number | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountNumber?: string | null+ assetId?: string | null+ createdAt?: string+ createdBy?: string+ description?: string | null+ id?: string+ invoiceComplete?: boolean+ locationId?: string | null+ partId?: string | null+ purchaseOrderId?: string+ purchaseOrderLineType?: Database["public"]["Enums"]["purchaseOrderLineType"]+ purchaseQuantity?: number | null+ quantityInvoiced?: number | null+ quantityReceived?: number | null+ quantityToInvoice?: number | null+ quantityToReceive?: number | null+ receivedComplete?: boolean+ requiresInspection?: boolean+ setupPrice?: number | null+ shelfId?: string | null+ unitOfMeasureCode?: string | null+ unitPrice?: number | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "purchaseOrderLine_accountNumber_fkey";- columns: ["accountNumber"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "purchaseOrderLine_accountNumber_fkey"+ columns: ["accountNumber"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "purchaseOrderLine_accountNumber_fkey";- columns: ["accountNumber"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "purchaseOrderLine_accountNumber_fkey"+ columns: ["accountNumber"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "purchaseOrderLine_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrderLine_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseOrderLine_partId_fkey";- columns: ["partId"];- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_partId_fkey"+ columns: ["partId"]+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_partId_fkey";- columns: ["partId"];- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "purchaseOrderLine_partId_fkey"+ columns: ["partId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "purchaseOrderLine_partId_fkey";- columns: ["partId"];- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_partId_fkey"+ columns: ["partId"]+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- referencedRelation: "purchaseOrder";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ referencedRelation: "purchaseOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_shelfId_fkey";- columns: ["shelfId", "locationId"];- referencedRelation: "shelf";- referencedColumns: ["id", "locationId"];+ foreignKeyName: "purchaseOrderLine_shelfId_fkey"+ columns: ["shelfId", "locationId"]+ referencedRelation: "shelf"+ referencedColumns: ["id", "locationId"]},{- foreignKeyName: "purchaseOrderLine_unitOfMeasureCode_fkey";- columns: ["unitOfMeasureCode"];- referencedRelation: "unitOfMeasure";- referencedColumns: ["code"];+ foreignKeyName: "purchaseOrderLine_unitOfMeasureCode_fkey"+ columns: ["unitOfMeasureCode"]+ referencedRelation: "unitOfMeasure"+ referencedColumns: ["code"]},{- foreignKeyName: "purchaseOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderLine_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrderLine_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }purchaseOrderPayment: {Row: {- currencyCode: string;- id: string;- invoiceSupplierContactId: string | null;- invoiceSupplierId: string | null;- invoiceSupplierLocationId: string | null;- paymentComplete: boolean;- paymentTermId: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ currencyCode: string+ id: string+ invoiceSupplierContactId: string | null+ invoiceSupplierId: string | null+ invoiceSupplierLocationId: string | null+ paymentComplete: boolean+ paymentTermId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- currencyCode?: string;- id: string;- invoiceSupplierContactId?: string | null;- invoiceSupplierId?: string | null;- invoiceSupplierLocationId?: string | null;- paymentComplete?: boolean;- paymentTermId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ currencyCode?: string+ id: string+ invoiceSupplierContactId?: string | null+ invoiceSupplierId?: string | null+ invoiceSupplierLocationId?: string | null+ paymentComplete?: boolean+ paymentTermId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- currencyCode?: string;- id?: string;- invoiceSupplierContactId?: string | null;- invoiceSupplierId?: string | null;- invoiceSupplierLocationId?: string | null;- paymentComplete?: boolean;- paymentTermId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ currencyCode?: string+ id?: string+ invoiceSupplierContactId?: string | null+ invoiceSupplierId?: string | null+ invoiceSupplierLocationId?: string | null+ paymentComplete?: boolean+ paymentTermId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "purchaseOrderPayment_currencyCode_fkey";- columns: ["currencyCode"];- referencedRelation: "currency";- referencedColumns: ["code"];+ foreignKeyName: "purchaseOrderPayment_currencyCode_fkey"+ columns: ["currencyCode"]+ referencedRelation: "currency"+ referencedColumns: ["code"]},{- foreignKeyName: "purchaseOrderPayment_id_fkey";- columns: ["id"];- referencedRelation: "purchaseOrder";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_id_fkey"+ columns: ["id"]+ referencedRelation: "purchaseOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderPayment_id_fkey";- columns: ["id"];- referencedRelation: "purchaseOrders";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_id_fkey"+ columns: ["id"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderPayment_invoiceSupplierContactId_fkey";- columns: ["invoiceSupplierContactId"];- referencedRelation: "supplierContact";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_invoiceSupplierContactId_fkey"+ columns: ["invoiceSupplierContactId"]+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey";- columns: ["invoiceSupplierId"];- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderPayment_invoiceSupplierLocationId_fkey";- columns: ["invoiceSupplierLocationId"];- referencedRelation: "supplierLocation";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_invoiceSupplierLocationId_fkey"+ columns: ["invoiceSupplierLocationId"]+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderPayment_paymentTermId_fkey";- columns: ["paymentTermId"];- referencedRelation: "paymentTerm";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderPayment_paymentTermId_fkey"+ columns: ["paymentTermId"]+ referencedRelation: "paymentTerm"+ referencedColumns: ["id"]}- ];- };+ ]+ }purchaseOrderStatusHistory: {Row: {- createdAt: string;- createdBy: string;- id: string;- purchaseOrderId: string;- status: Database["public"]["Enums"]["purchaseOrderStatus"];- };+ createdAt: string+ createdBy: string+ id: string+ purchaseOrderId: string+ status: Database["public"]["Enums"]["purchaseOrderStatus"]+ }Insert: {- createdAt?: string;- createdBy: string;- id?: string;- purchaseOrderId: string;- status: Database["public"]["Enums"]["purchaseOrderStatus"];- };+ createdAt?: string+ createdBy: string+ id?: string+ purchaseOrderId: string+ status: Database["public"]["Enums"]["purchaseOrderStatus"]+ }Update: {- createdAt?: string;- createdBy?: string;- id?: string;- purchaseOrderId?: string;- status?: Database["public"]["Enums"]["purchaseOrderStatus"];- };+ createdAt?: string+ createdBy?: string+ id?: string+ purchaseOrderId?: string+ status?: Database["public"]["Enums"]["purchaseOrderStatus"]+ }Relationships: [{- foreignKeyName: "purchaseOrderStatusHistory_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderStatusHistory_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderStatusHistory_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrderStatusHistory_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseOrderStatusHistory_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- referencedRelation: "purchaseOrder";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderStatusHistory_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ referencedRelation: "purchaseOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderStatusHistory_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderStatusHistory_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["id"]}- ];- };+ ]+ }purchaseOrderTransaction: {Row: {- createdAt: string;- id: string;- purchaseOrderId: string;- type: Database["public"]["Enums"]["purchaseOrderTransactionType"];- userId: string;- };+ createdAt: string+ id: string+ purchaseOrderId: string+ type: Database["public"]["Enums"]["purchaseOrderTransactionType"]+ userId: string+ }Insert: {- createdAt?: string;- id?: string;- purchaseOrderId: string;- type: Database["public"]["Enums"]["purchaseOrderTransactionType"];- userId: string;- };+ createdAt?: string+ id?: string+ purchaseOrderId: string+ type: Database["public"]["Enums"]["purchaseOrderTransactionType"]+ userId: string+ }Update: {- createdAt?: string;- id?: string;- purchaseOrderId?: string;- type?: Database["public"]["Enums"]["purchaseOrderTransactionType"];- userId?: string;- };+ createdAt?: string+ id?: string+ purchaseOrderId?: string+ type?: Database["public"]["Enums"]["purchaseOrderTransactionType"]+ userId?: string+ }Relationships: [{- foreignKeyName: "purchaseOrderTransaction_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- referencedRelation: "purchaseOrder";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderTransaction_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ referencedRelation: "purchaseOrder"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderTransaction_purchaseOrderId_fkey";- columns: ["purchaseOrderId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderTransaction_purchaseOrderId_fkey"+ columns: ["purchaseOrderId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderTransaction_userId_fkey";- columns: ["userId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrderTransaction_userId_fkey"+ columns: ["userId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrderTransaction_userId_fkey";- columns: ["userId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrderTransaction_userId_fkey"+ columns: ["userId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }purchasePayment: {Row: {- createdAt: string;- createdBy: string;- currencyCode: string;- exchangeRate: number;- id: string;- paymentDate: string | null;- paymentId: string;- supplierId: string;- totalAmount: number;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string+ createdBy: string+ currencyCode: string+ exchangeRate: number+ id: string+ paymentDate: string | null+ paymentId: string+ supplierId: string+ totalAmount: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- currencyCode: string;- exchangeRate?: number;- id?: string;- paymentDate?: string | null;- paymentId: string;- supplierId: string;- totalAmount?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy: string+ currencyCode: string+ exchangeRate?: number+ id?: string+ paymentDate?: string | null+ paymentId: string+ supplierId: string+ totalAmount?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- currencyCode?: string;- exchangeRate?: number;- id?: string;- paymentDate?: string | null;- paymentId?: string;- supplierId?: string;- totalAmount?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy?: string+ currencyCode?: string+ exchangeRate?: number+ id?: string+ paymentDate?: string | null+ paymentId?: string+ supplierId?: string+ totalAmount?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "purchasePayment_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayment_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayment_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchasePayment_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchasePayment_currencyCode_fkey";- columns: ["currencyCode"];- referencedRelation: "currency";- referencedColumns: ["code"];+ foreignKeyName: "purchasePayment_currencyCode_fkey"+ columns: ["currencyCode"]+ referencedRelation: "currency"+ referencedColumns: ["code"]},{- foreignKeyName: "purchasePayment_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayment_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayment_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchasePayment_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchasePayment_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchasePayment_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchasePayment_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayment_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayment_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayment_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayment_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchasePayment_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchasePayment_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchasePayment_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }receipt: {Row: {- createdAt: string;- createdBy: string;- externalDocumentId: string | null;- id: string;- invoiced: boolean | null;- locationId: string | null;- postingDate: string | null;- receiptId: string;+ createdAt: string+ createdBy: string+ externalDocumentId: string | null+ id: string+ invoiced: boolean | null+ locationId: string | null+ postingDate: string | null+ receiptId: stringsourceDocument:| Database["public"]["Enums"]["receiptSourceDocument"]- | null;- sourceDocumentId: string | null;- sourceDocumentReadableId: string | null;- status: Database["public"]["Enums"]["receiptStatus"];- supplierId: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ | null+ sourceDocumentId: string | null+ sourceDocumentReadableId: string | null+ status: Database["public"]["Enums"]["receiptStatus"]+ supplierId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- externalDocumentId?: string | null;- id?: string;- invoiced?: boolean | null;- locationId?: string | null;- postingDate?: string | null;- receiptId: string;+ createdAt?: string+ createdBy: string+ externalDocumentId?: string | null+ id?: string+ invoiced?: boolean | null+ locationId?: string | null+ postingDate?: string | null+ receiptId: stringsourceDocument?:| Database["public"]["Enums"]["receiptSourceDocument"]- | null;- sourceDocumentId?: string | null;- sourceDocumentReadableId?: string | null;- status?: Database["public"]["Enums"]["receiptStatus"];- supplierId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ | null+ sourceDocumentId?: string | null+ sourceDocumentReadableId?: string | null+ status?: Database["public"]["Enums"]["receiptStatus"]+ supplierId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- externalDocumentId?: string | null;- id?: string;- invoiced?: boolean | null;- locationId?: string | null;- postingDate?: string | null;- receiptId?: string;+ createdAt?: string+ createdBy?: string+ externalDocumentId?: string | null+ id?: string+ invoiced?: boolean | null+ locationId?: string | null+ postingDate?: string | null+ receiptId?: stringsourceDocument?:| Database["public"]["Enums"]["receiptSourceDocument"]- | null;- sourceDocumentId?: string | null;- sourceDocumentReadableId?: string | null;- status?: Database["public"]["Enums"]["receiptStatus"];- supplierId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ | null+ sourceDocumentId?: string | null+ sourceDocumentReadableId?: string | null+ status?: Database["public"]["Enums"]["receiptStatus"]+ supplierId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "receipt_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "receipt_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "receipt_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "receipt_locationId_fkey";- columns: ["locationId"];- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "receipt_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_locationId_fkey";- columns: ["locationId"];- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "receipt_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "receipt_locationId_fkey";- columns: ["locationId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "receipt_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "receipt_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "receipt_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }receiptLine: {Row: {- createdAt: string;- createdBy: string;- id: string;- lineId: string | null;- locationId: string | null;- orderQuantity: number;- outstandingQuantity: number;- partId: string;- receiptId: string;- receivedQuantity: number;- shelfId: string | null;- unitOfMeasure: string;- unitPrice: number;- updatedAt: string | null;- updatedBy: string | null;- };+ createdAt: string+ createdBy: string+ id: string+ lineId: string | null+ locationId: string | null+ orderQuantity: number+ outstandingQuantity: number+ partId: string+ receiptId: string+ receivedQuantity: number+ shelfId: string | null+ unitOfMeasure: string+ unitPrice: number+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- id?: string;- lineId?: string | null;- locationId?: string | null;- orderQuantity: number;- outstandingQuantity?: number;- partId: string;- receiptId: string;- receivedQuantity?: number;- shelfId?: string | null;- unitOfMeasure: string;- unitPrice: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy: string+ id?: string+ lineId?: string | null+ locationId?: string | null+ orderQuantity: number+ outstandingQuantity?: number+ partId: string+ receiptId: string+ receivedQuantity?: number+ shelfId?: string | null+ unitOfMeasure: string+ unitPrice: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- id?: string;- lineId?: string | null;- locationId?: string | null;- orderQuantity?: number;- outstandingQuantity?: number;- partId?: string;- receiptId?: string;- receivedQuantity?: number;- shelfId?: string | null;- unitOfMeasure?: string;- unitPrice?: number;- updatedAt?: string | null;- updatedBy?: string | null;- };+ createdAt?: string+ createdBy?: string+ id?: string+ lineId?: string | null+ locationId?: string | null+ orderQuantity?: number+ outstandingQuantity?: number+ partId?: string+ receiptId?: string+ receivedQuantity?: number+ shelfId?: string | null+ unitOfMeasure?: string+ unitPrice?: number+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "receiptLine_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "receiptLine_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "receiptLine_locationId_fkey";- columns: ["locationId"];- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_locationId_fkey";- columns: ["locationId"];- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "receiptLine_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "receiptLine_locationId_fkey";- columns: ["locationId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "receiptLine_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "receiptLine_partId_fkey";- columns: ["partId"];- referencedRelation: "part";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_partId_fkey"+ columns: ["partId"]+ referencedRelation: "part"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_partId_fkey";- columns: ["partId"];- referencedRelation: "partQuantities";- referencedColumns: ["partId"];+ foreignKeyName: "receiptLine_partId_fkey"+ columns: ["partId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["partId"]},{- foreignKeyName: "receiptLine_partId_fkey";- columns: ["partId"];- referencedRelation: "parts";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_partId_fkey"+ columns: ["partId"]+ referencedRelation: "parts"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_receiptId_fkey";- columns: ["receiptId"];- referencedRelation: "receipt";- referencedColumns: ["receiptId"];+ foreignKeyName: "receiptLine_receiptId_fkey"+ columns: ["receiptId"]+ referencedRelation: "receipt"+ referencedColumns: ["receiptId"]},{- foreignKeyName: "receiptLine_receiptId_fkey";- columns: ["receiptId"];- referencedRelation: "receiptsPostedNotInvoiced";- referencedColumns: ["receiptId"];+ foreignKeyName: "receiptLine_receiptId_fkey"+ columns: ["receiptId"]+ referencedRelation: "receiptsPostedNotInvoiced"+ referencedColumns: ["receiptId"]},{- foreignKeyName: "receiptLine_shelfId_fkey";- columns: ["shelfId", "locationId"];- referencedRelation: "shelf";- referencedColumns: ["id", "locationId"];+ foreignKeyName: "receiptLine_shelfId_fkey"+ columns: ["shelfId", "locationId"]+ referencedRelation: "shelf"+ referencedColumns: ["id", "locationId"]},{- foreignKeyName: "receiptLine_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "receiptLine_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "receiptLine_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "receiptLine_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }search: {Row: {- description: string | null;- entity: Database["public"]["Enums"]["searchEntity"] | null;- fts: unknown | null;- id: number;- link: string;- name: string;- uuid: string | null;- };+ description: string | null+ entity: Database["public"]["Enums"]["searchEntity"] | null+ fts: unknown | null+ id: number+ link: string+ name: string+ uuid: string | null+ }Insert: {- description?: string | null;- entity?: Database["public"]["Enums"]["searchEntity"] | null;- fts?: unknown | null;- id?: number;- link: string;- name: string;- uuid?: string | null;- };+ description?: string | null+ entity?: Database["public"]["Enums"]["searchEntity"] | null+ fts?: unknown | null+ id?: number+ link: string+ name: string+ uuid?: string | null+ }Update: {- description?: string | null;- entity?: Database["public"]["Enums"]["searchEntity"] | null;- fts?: unknown | null;- id?: number;- link?: string;- name?: string;- uuid?: string | null;- };- Relationships: [];- };+ description?: string | null+ entity?: Database["public"]["Enums"]["searchEntity"] | null+ fts?: unknown | null+ id?: number+ link?: string+ name?: string+ uuid?: string | null+ }+ Relationships: []+ }sequence: {Row: {- name: string;- next: number;- prefix: string | null;- size: number;- step: number;- suffix: string | null;- table: string;- updatedAt: string | null;- updatedBy: string | null;- };+ id: string+ name: string+ next: number+ prefix: string | null+ size: number+ step: number+ suffix: string | null+ table: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- name: string;- next?: number;- prefix?: string | null;- size?: number;- step?: number;- suffix?: string | null;- table: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ id?: string+ name: string+ next?: number+ prefix?: string | null+ size?: number+ step?: number+ suffix?: string | null+ table: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- name?: string;- next?: number;- prefix?: string | null;- size?: number;- step?: number;- suffix?: string | null;- table?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ id?: string+ name?: string+ next?: number+ prefix?: string | null+ size?: number+ step?: number+ suffix?: string | null+ table?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "sequence_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "sequence_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "sequence_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "sequence_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }shelf: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- id: string;- locationId: string;- updatedAt: string | null;- updatedBy: string | null;- warehouseId: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ id: string+ locationId: string+ updatedAt: string | null+ updatedBy: string | null+ warehouseId: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- id: string;- locationId: string;- updatedAt?: string | null;- updatedBy?: string | null;- warehouseId?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ id: string+ locationId: string+ updatedAt?: string | null+ updatedBy?: string | null+ warehouseId?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- id?: string;- locationId?: string;- updatedAt?: string | null;- updatedBy?: string | null;- warehouseId?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ id?: string+ locationId?: string+ updatedAt?: string | null+ updatedBy?: string | null+ warehouseId?: string | null+ }Relationships: [{- foreignKeyName: "shelf_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shelf_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shelf_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "shelf_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "shelf_locationId_fkey";- columns: ["locationId"];- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "shelf_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "shelf_locationId_fkey";- columns: ["locationId"];- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "shelf_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "shelf_locationId_fkey";- columns: ["locationId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "shelf_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "shelf_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shelf_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shelf_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "shelf_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "shelf_warehouseId_fkey";- columns: ["warehouseId"];- referencedRelation: "warehouse";- referencedColumns: ["id"];+ foreignKeyName: "shelf_warehouseId_fkey"+ columns: ["warehouseId"]+ referencedRelation: "warehouse"+ referencedColumns: ["id"]}- ];- };+ ]+ }shift: {Row: {- active: boolean;- endTime: string;- friday: boolean;- id: string;- locationId: string;- monday: boolean;- name: string;- saturday: boolean;- startTime: string;- sunday: boolean;- thursday: boolean;- tuesday: boolean;- wednesday: boolean;- };+ active: boolean+ endTime: string+ friday: boolean+ id: string+ locationId: string+ monday: boolean+ name: string+ saturday: boolean+ startTime: string+ sunday: boolean+ thursday: boolean+ tuesday: boolean+ wednesday: boolean+ }Insert: {- active?: boolean;- endTime: string;- friday?: boolean;- id?: string;- locationId: string;- monday?: boolean;- name: string;- saturday?: boolean;- startTime: string;- sunday?: boolean;- thursday?: boolean;- tuesday?: boolean;- wednesday?: boolean;- };+ active?: boolean+ endTime: string+ friday?: boolean+ id?: string+ locationId: string+ monday?: boolean+ name: string+ saturday?: boolean+ startTime: string+ sunday?: boolean+ thursday?: boolean+ tuesday?: boolean+ wednesday?: boolean+ }Update: {- active?: boolean;- endTime?: string;- friday?: boolean;- id?: string;- locationId?: string;- monday?: boolean;- name?: string;- saturday?: boolean;- startTime?: string;- sunday?: boolean;- thursday?: boolean;- tuesday?: boolean;- wednesday?: boolean;- };+ active?: boolean+ endTime?: string+ friday?: boolean+ id?: string+ locationId?: string+ monday?: boolean+ name?: string+ saturday?: boolean+ startTime?: string+ sunday?: boolean+ thursday?: boolean+ tuesday?: boolean+ wednesday?: boolean+ }Relationships: [{- foreignKeyName: "shifts_locationId_fkey";- columns: ["locationId"];- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "shifts_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "shifts_locationId_fkey";- columns: ["locationId"];- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "shifts_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "shifts_locationId_fkey";- columns: ["locationId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "shifts_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]}- ];- };+ ]+ }shippingMethod: {Row: {- active: boolean;- carrier: Database["public"]["Enums"]["shippingCarrier"];- carrierAccountId: string | null;- createdAt: string;- createdBy: string;- id: string;- name: string;- trackingUrl: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ carrier: Database["public"]["Enums"]["shippingCarrier"]+ carrierAccountId: string | null+ createdAt: string+ createdBy: string+ id: string+ name: string+ trackingUrl: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- carrier?: Database["public"]["Enums"]["shippingCarrier"];- carrierAccountId?: string | null;- createdAt?: string;- createdBy: string;- id?: string;- name: string;- trackingUrl?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ carrier?: Database["public"]["Enums"]["shippingCarrier"]+ carrierAccountId?: string | null+ createdAt?: string+ createdBy: string+ id?: string+ name: string+ trackingUrl?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- carrier?: Database["public"]["Enums"]["shippingCarrier"];- carrierAccountId?: string | null;- createdAt?: string;- createdBy?: string;- id?: string;- name?: string;- trackingUrl?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ carrier?: Database["public"]["Enums"]["shippingCarrier"]+ carrierAccountId?: string | null+ createdAt?: string+ createdBy?: string+ id?: string+ name?: string+ trackingUrl?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "shippingMethod_carrierAccountId_fkey";- columns: ["carrierAccountId"];- referencedRelation: "account";- referencedColumns: ["number"];+ foreignKeyName: "shippingMethod_carrierAccountId_fkey"+ columns: ["carrierAccountId"]+ referencedRelation: "account"+ referencedColumns: ["number"]},{- foreignKeyName: "shippingMethod_carrierAccountId_fkey";- columns: ["carrierAccountId"];- referencedRelation: "accounts";- referencedColumns: ["number"];+ foreignKeyName: "shippingMethod_carrierAccountId_fkey"+ columns: ["carrierAccountId"]+ referencedRelation: "accounts"+ referencedColumns: ["number"]},{- foreignKeyName: "shippingMethod_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shippingMethod_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingMethod_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "shippingMethod_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "shippingMethod_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shippingMethod_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingMethod_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "shippingMethod_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }shippingTerm: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- id: string;- name: string;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ id: string+ name: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- id?: string;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ id?: string+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- id?: string;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ id?: string+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "shippingTerm_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shippingTerm_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingTerm_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "shippingTerm_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "shippingTerm_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "shippingTerm_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "shippingTerm_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "shippingTerm_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }supplier: {Row: {- accountManagerId: string | null;- createdAt: string;- createdBy: string | null;- defaultCurrencyCode: string | null;- defaultPaymentTermId: string | null;- defaultShippingMethodId: string | null;- defaultShippingTermId: string | null;- id: string;- logo: string | null;- name: string;- supplierStatusId: string | null;- supplierTypeId: string | null;- taxId: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ accountManagerId: string | null+ createdAt: string+ createdBy: string | null+ id: string+ logo: string | null+ name: string+ supplierStatusId: string | null+ supplierTypeId: string | null+ taxId: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountManagerId?: string | null;- createdAt?: string;- createdBy?: string | null;- defaultCurrencyCode?: string | null;- defaultPaymentTermId?: string | null;- defaultShippingMethodId?: string | null;- defaultShippingTermId?: string | null;- id?: string;- logo?: string | null;- name: string;- supplierStatusId?: string | null;- supplierTypeId?: string | null;- taxId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountManagerId?: string | null+ createdAt?: string+ createdBy?: string | null+ id?: string+ logo?: string | null+ name: string+ supplierStatusId?: string | null+ supplierTypeId?: string | null+ taxId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountManagerId?: string | null;- createdAt?: string;- createdBy?: string | null;- defaultCurrencyCode?: string | null;- defaultPaymentTermId?: string | null;- defaultShippingMethodId?: string | null;- defaultShippingTermId?: string | null;- id?: string;- logo?: string | null;- name?: string;- supplierStatusId?: string | null;- supplierTypeId?: string | null;- taxId?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ accountManagerId?: string | null+ createdAt?: string+ createdBy?: string | null+ id?: string+ logo?: string | null+ name?: string+ supplierStatusId?: string | null+ supplierTypeId?: string | null+ taxId?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "supplier_accountManagerId_fkey";- columns: ["accountManagerId"];- referencedRelation: "user";- referencedColumns: ["id"];- },- {- foreignKeyName: "supplier_accountManagerId_fkey";- columns: ["accountManagerId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];- },- {- foreignKeyName: "supplier_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];- },- {- foreignKeyName: "supplier_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "supplier_accountManagerId_fkey"+ columns: ["accountManagerId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_defaultPaymentTermId_fkey";- columns: ["defaultPaymentTermId"];- referencedRelation: "paymentTerm";- referencedColumns: ["id"];+ foreignKeyName: "supplier_accountManagerId_fkey"+ columns: ["accountManagerId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "supplier_defaultShippingMethodId_fkey";- columns: ["defaultShippingMethodId"];- referencedRelation: "shippingMethod";- referencedColumns: ["id"];+ foreignKeyName: "supplier_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_defaultShippingTermId_fkey";- columns: ["defaultShippingTermId"];- referencedRelation: "shippingTerm";- referencedColumns: ["id"];+ foreignKeyName: "supplier_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "supplier_supplierStatusId_fkey";- columns: ["supplierStatusId"];- referencedRelation: "supplierStatus";- referencedColumns: ["id"];+ foreignKeyName: "supplier_supplierStatusId_fkey"+ columns: ["supplierStatusId"]+ referencedRelation: "supplierStatus"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_supplierTypeId_fkey";- columns: ["supplierTypeId"];- referencedRelation: "supplierType";- referencedColumns: ["id"];+ foreignKeyName: "supplier_supplierTypeId_fkey"+ columns: ["supplierTypeId"]+ referencedRelation: "supplierType"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplier_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "supplier_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }supplierAccount: {Row: {- id: string;- supplierId: string;- };+ id: string+ supplierId: string+ }Insert: {- id: string;- supplierId: string;- };+ id: string+ supplierId: string+ }Update: {- id?: string;- supplierId?: string;- };+ id?: string+ supplierId?: string+ }Relationships: [{- foreignKeyName: "supplierAccount_id_fkey";- columns: ["id"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplierAccount_id_fkey"+ columns: ["id"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierAccount_id_fkey";- columns: ["id"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "supplierAccount_id_fkey"+ columns: ["id"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "supplierAccount_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "supplierAccount_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierAccount_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierAccount_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierAccount_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierAccount_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierAccount_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierAccount_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierAccount_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierAccount_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]}- ];- };+ ]+ }supplierContact: {Row: {- contactId: string;- id: string;- supplierId: string;- supplierLocationId: string | null;- userId: string | null;- };+ contactId: string+ id: string+ supplierId: string+ supplierLocationId: string | null+ userId: string | null+ }Insert: {- contactId: string;- id?: string;- supplierId: string;- supplierLocationId?: string | null;- userId?: string | null;- };+ contactId: string+ id?: string+ supplierId: string+ supplierLocationId?: string | null+ userId?: string | null+ }Update: {- contactId?: string;- id?: string;- supplierId?: string;- supplierLocationId?: string | null;- userId?: string | null;- };+ contactId?: string+ id?: string+ supplierId?: string+ supplierLocationId?: string | null+ userId?: string | null+ }Relationships: [{- foreignKeyName: "supplierContact_contactId_fkey";- columns: ["contactId"];- referencedRelation: "contact";- referencedColumns: ["id"];+ foreignKeyName: "supplierContact_contactId_fkey"+ columns: ["contactId"]+ referencedRelation: "contact"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierContact_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "supplierContact_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierContact_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierContact_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierContact_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierContact_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierContact_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierContact_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierContact_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierContact_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierContact_supplierLocationId_fkey";- columns: ["supplierLocationId"];- referencedRelation: "supplierLocation";- referencedColumns: ["id"];+ foreignKeyName: "supplierContact_supplierLocationId_fkey"+ columns: ["supplierLocationId"]+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierContact_userId_fkey";- columns: ["userId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplierContact_userId_fkey"+ columns: ["userId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierContact_userId_fkey";- columns: ["userId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "supplierContact_userId_fkey"+ columns: ["userId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }supplierLedger: {Row: {- amount: number;- createdAt: string;- documentId: string | null;+ amount: number+ createdAt: string+ documentId: string | nulldocumentType:| Database["public"]["Enums"]["supplierLedgerDocumentType"]- | null;- entryNumber: number;- externalDocumentId: string | null;- id: string;- postingDate: string;- supplierId: string;- };+ | null+ entryNumber: number+ externalDocumentId: string | null+ id: string+ postingDate: string+ supplierId: string+ }Insert: {- amount: number;- createdAt?: string;- documentId?: string | null;+ amount: number+ createdAt?: string+ documentId?: string | nulldocumentType?:| Database["public"]["Enums"]["supplierLedgerDocumentType"]- | null;- entryNumber?: number;- externalDocumentId?: string | null;- id?: string;- postingDate?: string;- supplierId: string;- };+ | null+ entryNumber?: number+ externalDocumentId?: string | null+ id?: string+ postingDate?: string+ supplierId: string+ }Update: {- amount?: number;- createdAt?: string;- documentId?: string | null;+ amount?: number+ createdAt?: string+ documentId?: string | nulldocumentType?:| Database["public"]["Enums"]["supplierLedgerDocumentType"]- | null;- entryNumber?: number;- externalDocumentId?: string | null;- id?: string;- postingDate?: string;- supplierId?: string;- };+ | null+ entryNumber?: number+ externalDocumentId?: string | null+ id?: string+ postingDate?: string+ supplierId?: string+ }Relationships: [{- foreignKeyName: "supplierLedger_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "supplierLedger_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierLedger_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierLedger_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierLedger_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierLedger_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierLedger_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierLedger_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierLedger_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierLedger_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]}- ];- };+ ]+ }supplierLocation: {Row: {- addressId: string;- id: string;- supplierId: string;- };+ addressId: string+ id: string+ supplierId: string+ }Insert: {- addressId: string;- id?: string;- supplierId: string;- };+ addressId: string+ id?: string+ supplierId: string+ }Update: {- addressId?: string;- id?: string;- supplierId?: string;- };+ addressId?: string+ id?: string+ supplierId?: string+ }Relationships: [{- foreignKeyName: "supplierLocation_addressId_fkey";- columns: ["addressId"];- referencedRelation: "address";- referencedColumns: ["id"];+ foreignKeyName: "supplierLocation_addressId_fkey"+ columns: ["addressId"]+ referencedRelation: "address"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierLocation_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "supplierLocation_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierLocation_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierLocation_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierLocation_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "supplierLocation_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "supplierLocation_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierLocation_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierLocation_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "supplierLocation_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]}- ];- };+ ]+ }+ supplierPayment: {+ Row: {+ currencyCode: string | null+ invoiceSupplierContactId: string | null+ invoiceSupplierId: string | null+ invoiceSupplierLocationId: string | null+ paymentTermId: string | null+ supplierId: string+ updatedAt: string | null+ updatedBy: string | null+ }+ Insert: {+ currencyCode?: string | null+ invoiceSupplierContactId?: string | null+ invoiceSupplierId?: string | null+ invoiceSupplierLocationId?: string | null+ paymentTermId?: string | null+ supplierId: string+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Update: {+ currencyCode?: string | null+ invoiceSupplierContactId?: string | null+ invoiceSupplierId?: string | null+ invoiceSupplierLocationId?: string | null+ paymentTermId?: string | null+ supplierId?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Relationships: [+ {+ foreignKeyName: "supplierPayment_invoiceSupplierContactId_fkey"+ columns: ["invoiceSupplierContactId"]+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]+ },+ {+ foreignKeyName: "supplierPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]+ },+ {+ foreignKeyName: "supplierPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierPayment_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierPayment_invoiceSupplierLocationId_fkey"+ columns: ["invoiceSupplierLocationId"]+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierPayment_paymentTermId_fkey"+ columns: ["paymentTermId"]+ referencedRelation: "paymentTerm"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierPayment_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierPayment_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]+ },+ {+ foreignKeyName: "supplierPayment_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]+ },+ {+ foreignKeyName: "supplierPayment_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierPayment_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierPayment_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierPayment_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ }+ ]+ }+ supplierShipping: {+ Row: {+ shippingMethodId: string | null+ shippingSupplierContactId: string | null+ shippingSupplierId: string | null+ shippingSupplierLocationId: string | null+ shippingTermId: string | null+ supplierId: string+ updatedAt: string | null+ updatedBy: string | null+ }+ Insert: {+ shippingMethodId?: string | null+ shippingSupplierContactId?: string | null+ shippingSupplierId?: string | null+ shippingSupplierLocationId?: string | null+ shippingTermId?: string | null+ supplierId: string+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Update: {+ shippingMethodId?: string | null+ shippingSupplierContactId?: string | null+ shippingSupplierId?: string | null+ shippingSupplierLocationId?: string | null+ shippingTermId?: string | null+ supplierId?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }+ Relationships: [+ {+ foreignKeyName: "supplierShipping_shippingMethodId_fkey"+ columns: ["shippingMethodId"]+ referencedRelation: "shippingMethod"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierShipping_shippingSupplierContactId_fkey"+ columns: ["shippingSupplierContactId"]+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierShipping_shippingSupplierId_fkey"+ columns: ["shippingSupplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierShipping_shippingSupplierId_fkey"+ columns: ["shippingSupplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]+ },+ {+ foreignKeyName: "supplierShipping_shippingSupplierId_fkey"+ columns: ["shippingSupplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]+ },+ {+ foreignKeyName: "supplierShipping_shippingSupplierId_fkey"+ columns: ["shippingSupplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierShipping_shippingSupplierId_fkey"+ columns: ["shippingSupplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierShipping_shippingSupplierLocationId_fkey"+ columns: ["shippingSupplierLocationId"]+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierShipping_shippingTermId_fkey"+ columns: ["shippingTermId"]+ referencedRelation: "shippingTerm"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierShipping_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierShipping_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]+ },+ {+ foreignKeyName: "supplierShipping_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]+ },+ {+ foreignKeyName: "supplierShipping_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierShipping_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierShipping_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "supplierShipping_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]+ }+ ]+ }supplierStatus: {Row: {- createdAt: string;- id: string;- name: string;- updatedAt: string | null;- };+ createdAt: string+ id: string+ name: string+ updatedAt: string | null+ }Insert: {- createdAt?: string;- id?: string;- name: string;- updatedAt?: string | null;- };+ createdAt?: string+ id?: string+ name: string+ updatedAt?: string | null+ }Update: {- createdAt?: string;- id?: string;- name?: string;- updatedAt?: string | null;- };- Relationships: [];- };+ createdAt?: string+ id?: string+ name?: string+ updatedAt?: string | null+ }+ Relationships: []+ }supplierType: {Row: {- color: string | null;- createdAt: string;- createdBy: string;- id: string;- name: string;- protected: boolean;- updatedAt: string | null;- updatedBy: string | null;- };+ color: string | null+ createdAt: string+ createdBy: string+ id: string+ name: string+ protected: boolean+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- color?: string | null;- createdAt?: string;- createdBy: string;- id?: string;- name: string;- protected?: boolean;- updatedAt?: string | null;- updatedBy?: string | null;- };+ color?: string | null+ createdAt?: string+ createdBy: string+ id?: string+ name: string+ protected?: boolean+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- color?: string | null;- createdAt?: string;- createdBy?: string;- id?: string;- name?: string;- protected?: boolean;- updatedAt?: string | null;- updatedBy?: string | null;- };+ color?: string | null+ createdAt?: string+ createdBy?: string+ id?: string+ name?: string+ protected?: boolean+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "supplierType_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplierType_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierType_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "supplierType_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "supplierType_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "supplierType_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "supplierType_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "supplierType_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }unitOfMeasure: {Row: {- active: boolean;- code: string;- createdAt: string;- createdBy: string;- id: string;- name: string;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ code: string+ createdAt: string+ createdBy: string+ id: string+ name: string+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- code: string;- createdAt?: string;- createdBy: string;- id?: string;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ code: string+ createdAt?: string+ createdBy: string+ id?: string+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- code?: string;- createdAt?: string;- createdBy?: string;- id?: string;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ code?: string+ createdAt?: string+ createdBy?: string+ id?: string+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "unitOfMeasure_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "unitOfMeasure_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "unitOfMeasure_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "unitOfMeasure_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "unitOfMeasure_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "unitOfMeasure_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "unitOfMeasure_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "unitOfMeasure_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }user: {Row: {- about: string;- active: boolean | null;- avatarUrl: string | null;- createdAt: string;- email: string;- emailVerified: string | null;- firstName: string;- fullName: string | null;- id: string;- lastName: string;- updatedAt: string | null;- };+ about: string+ active: boolean | null+ avatarUrl: string | null+ createdAt: string+ email: string+ emailVerified: string | null+ firstName: string+ fullName: string | null+ id: string+ lastName: string+ updatedAt: string | null+ }Insert: {- about?: string;- active?: boolean | null;- avatarUrl?: string | null;- createdAt?: string;- email: string;- emailVerified?: string | null;- firstName: string;- fullName?: string | null;- id: string;- lastName: string;- updatedAt?: string | null;- };+ about?: string+ active?: boolean | null+ avatarUrl?: string | null+ createdAt?: string+ email: string+ emailVerified?: string | null+ firstName: string+ fullName?: string | null+ id: string+ lastName: string+ updatedAt?: string | null+ }Update: {- about?: string;- active?: boolean | null;- avatarUrl?: string | null;- createdAt?: string;- email?: string;- emailVerified?: string | null;- firstName?: string;- fullName?: string | null;- id?: string;- lastName?: string;- updatedAt?: string | null;- };- Relationships: [];- };+ about?: string+ active?: boolean | null+ avatarUrl?: string | null+ createdAt?: string+ email?: string+ emailVerified?: string | null+ firstName?: string+ fullName?: string | null+ id?: string+ lastName?: string+ updatedAt?: string | null+ }+ Relationships: []+ }userAttribute: {Row: {- active: boolean | null;- attributeDataTypeId: number;- canSelfManage: boolean | null;- createdAt: string;- createdBy: string;- id: string;- listOptions: string[] | null;- name: string;- sortOrder: number;- updatedAt: string | null;- updatedBy: string | null;- userAttributeCategoryId: string;- };+ active: boolean | null+ attributeDataTypeId: number+ canSelfManage: boolean | null+ createdAt: string+ createdBy: string+ id: string+ listOptions: string[] | null+ name: string+ sortOrder: number+ updatedAt: string | null+ updatedBy: string | null+ userAttributeCategoryId: string+ }Insert: {- active?: boolean | null;- attributeDataTypeId: number;- canSelfManage?: boolean | null;- createdAt?: string;- createdBy: string;- id?: string;- listOptions?: string[] | null;- name: string;- sortOrder?: number;- updatedAt?: string | null;- updatedBy?: string | null;- userAttributeCategoryId: string;- };+ active?: boolean | null+ attributeDataTypeId: number+ canSelfManage?: boolean | null+ createdAt?: string+ createdBy: string+ id?: string+ listOptions?: string[] | null+ name: string+ sortOrder?: number+ updatedAt?: string | null+ updatedBy?: string | null+ userAttributeCategoryId: string+ }Update: {- active?: boolean | null;- attributeDataTypeId?: number;- canSelfManage?: boolean | null;- createdAt?: string;- createdBy?: string;- id?: string;- listOptions?: string[] | null;- name?: string;- sortOrder?: number;- updatedAt?: string | null;- updatedBy?: string | null;- userAttributeCategoryId?: string;- };+ active?: boolean | null+ attributeDataTypeId?: number+ canSelfManage?: boolean | null+ createdAt?: string+ createdBy?: string+ id?: string+ listOptions?: string[] | null+ name?: string+ sortOrder?: number+ updatedAt?: string | null+ updatedBy?: string | null+ userAttributeCategoryId?: string+ }Relationships: [{- foreignKeyName: "userAttribute_attributeDataTypeId_fkey";- columns: ["attributeDataTypeId"];- referencedRelation: "attributeDataType";- referencedColumns: ["id"];+ foreignKeyName: "userAttribute_attributeDataTypeId_fkey"+ columns: ["attributeDataTypeId"]+ referencedRelation: "attributeDataType"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttribute_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttribute_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttribute_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "userAttribute_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "userAttribute_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttribute_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttribute_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "userAttribute_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "userAttribute_userAttributeCategoryId_fkey";- columns: ["userAttributeCategoryId"];- referencedRelation: "userAttributeCategory";- referencedColumns: ["id"];+ foreignKeyName: "userAttribute_userAttributeCategoryId_fkey"+ columns: ["userAttributeCategoryId"]+ referencedRelation: "userAttributeCategory"+ referencedColumns: ["id"]}- ];- };+ ]+ }userAttributeCategory: {Row: {- active: boolean | null;- createdAt: string;- createdBy: string;- id: string;- name: string;- protected: boolean | null;- public: boolean | null;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean | null+ createdAt: string+ createdBy: string+ id: string+ name: string+ protected: boolean | null+ public: boolean | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean | null;- createdAt?: string;- createdBy: string;- id?: string;- name: string;- protected?: boolean | null;- public?: boolean | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean | null+ createdAt?: string+ createdBy: string+ id?: string+ name: string+ protected?: boolean | null+ public?: boolean | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean | null;- createdAt?: string;- createdBy?: string;- id?: string;- name?: string;- protected?: boolean | null;- public?: boolean | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean | null+ createdAt?: string+ createdBy?: string+ id?: string+ name?: string+ protected?: boolean | null+ public?: boolean | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "userAttributeCategory_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeCategory_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeCategory_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "userAttributeCategory_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "userAttributeCategory_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeCategory_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "userAttributeCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }userAttributeValue: {Row: {- createdAt: string;- createdBy: string;- id: string;- updatedAt: string | null;- updatedBy: string | null;- userAttributeId: string;- userId: string;- valueBoolean: boolean | null;- valueDate: string | null;- valueNumeric: number | null;- valueText: string | null;- valueUser: string | null;- };+ createdAt: string+ createdBy: string+ id: string+ updatedAt: string | null+ updatedBy: string | null+ userAttributeId: string+ userId: string+ valueBoolean: boolean | null+ valueDate: string | null+ valueNumeric: number | null+ valueText: string | null+ valueUser: string | null+ }Insert: {- createdAt?: string;- createdBy: string;- id?: string;- updatedAt?: string | null;- updatedBy?: string | null;- userAttributeId: string;- userId: string;- valueBoolean?: boolean | null;- valueDate?: string | null;- valueNumeric?: number | null;- valueText?: string | null;- valueUser?: string | null;- };+ createdAt?: string+ createdBy: string+ id?: string+ updatedAt?: string | null+ updatedBy?: string | null+ userAttributeId: string+ userId: string+ valueBoolean?: boolean | null+ valueDate?: string | null+ valueNumeric?: number | null+ valueText?: string | null+ valueUser?: string | null+ }Update: {- createdAt?: string;- createdBy?: string;- id?: string;- updatedAt?: string | null;- updatedBy?: string | null;- userAttributeId?: string;- userId?: string;- valueBoolean?: boolean | null;- valueDate?: string | null;- valueNumeric?: number | null;- valueText?: string | null;- valueUser?: string | null;- };+ createdAt?: string+ createdBy?: string+ id?: string+ updatedAt?: string | null+ updatedBy?: string | null+ userAttributeId?: string+ userId?: string+ valueBoolean?: boolean | null+ valueDate?: string | null+ valueNumeric?: number | null+ valueText?: string | null+ valueUser?: string | null+ }Relationships: [{- foreignKeyName: "userAttributeValue_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "userAttributeValue_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "userAttributeValue_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "userAttributeValue_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "userAttributeValue_userAttributeId_fkey";- columns: ["userAttributeId"];- referencedRelation: "userAttribute";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_userAttributeId_fkey"+ columns: ["userAttributeId"]+ referencedRelation: "userAttribute"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_userId_fkey";- columns: ["userId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_userId_fkey"+ columns: ["userId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_userId_fkey";- columns: ["userId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "userAttributeValue_userId_fkey"+ columns: ["userId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "userAttributeValue_valueUser_fkey";- columns: ["valueUser"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "userAttributeValue_valueUser_fkey"+ columns: ["valueUser"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "userAttributeValue_valueUser_fkey";- columns: ["valueUser"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "userAttributeValue_valueUser_fkey"+ columns: ["valueUser"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }valueLedger: {Row: {- actualCostPostedToGl: number;- adjustment: boolean;- costAmountActual: number;- costAmountExpected: number;- costLedgerType: Database["public"]["Enums"]["costLedgerType"];- createdAt: string;- documentId: string | null;+ actualCostPostedToGl: number+ adjustment: boolean+ costAmountActual: number+ costAmountExpected: number+ costLedgerType: Database["public"]["Enums"]["costLedgerType"]+ createdAt: string+ documentId: string | nulldocumentType:| Database["public"]["Enums"]["partLedgerDocumentType"]- | null;- entryNumber: number;- expectedCostPostedToGl: number;- externalDocumentId: string | null;- id: string;- partLedgerType: Database["public"]["Enums"]["partLedgerType"];- postingDate: string;- };+ | null+ entryNumber: number+ expectedCostPostedToGl: number+ externalDocumentId: string | null+ id: string+ partLedgerType: Database["public"]["Enums"]["partLedgerType"]+ postingDate: string+ }Insert: {- actualCostPostedToGl?: number;- adjustment?: boolean;- costAmountActual?: number;- costAmountExpected?: number;- costLedgerType: Database["public"]["Enums"]["costLedgerType"];- createdAt?: string;- documentId?: string | null;+ actualCostPostedToGl?: number+ adjustment?: boolean+ costAmountActual?: number+ costAmountExpected?: number+ costLedgerType: Database["public"]["Enums"]["costLedgerType"]+ createdAt?: string+ documentId?: string | nulldocumentType?:| Database["public"]["Enums"]["partLedgerDocumentType"]- | null;- entryNumber?: number;- expectedCostPostedToGl?: number;- externalDocumentId?: string | null;- id?: string;- partLedgerType: Database["public"]["Enums"]["partLedgerType"];- postingDate?: string;- };+ | null+ entryNumber?: number+ expectedCostPostedToGl?: number+ externalDocumentId?: string | null+ id?: string+ partLedgerType: Database["public"]["Enums"]["partLedgerType"]+ postingDate?: string+ }Update: {- actualCostPostedToGl?: number;- adjustment?: boolean;- costAmountActual?: number;- costAmountExpected?: number;- costLedgerType?: Database["public"]["Enums"]["costLedgerType"];- createdAt?: string;- documentId?: string | null;+ actualCostPostedToGl?: number+ adjustment?: boolean+ costAmountActual?: number+ costAmountExpected?: number+ costLedgerType?: Database["public"]["Enums"]["costLedgerType"]+ createdAt?: string+ documentId?: string | nulldocumentType?:| Database["public"]["Enums"]["partLedgerDocumentType"]- | null;- entryNumber?: number;- expectedCostPostedToGl?: number;- externalDocumentId?: string | null;- id?: string;- partLedgerType?: Database["public"]["Enums"]["partLedgerType"];- postingDate?: string;- };- Relationships: [];- };+ | null+ entryNumber?: number+ expectedCostPostedToGl?: number+ externalDocumentId?: string | null+ id?: string+ partLedgerType?: Database["public"]["Enums"]["partLedgerType"]+ postingDate?: string+ }+ Relationships: []+ }valueLedgerJournalLineRelation: {Row: {- journalLineId: string;- valueLedgerId: string;- };+ journalLineId: string+ valueLedgerId: string+ }Insert: {- journalLineId: string;- valueLedgerId: string;- };+ journalLineId: string+ valueLedgerId: string+ }Update: {- journalLineId?: string;- valueLedgerId?: string;- };+ journalLineId?: string+ valueLedgerId?: string+ }Relationships: [{- foreignKeyName: "valueLedgerJournalLineRelation_journalLineId_fkey";- columns: ["journalLineId"];- referencedRelation: "journalLine";- referencedColumns: ["id"];+ foreignKeyName: "valueLedgerJournalLineRelation_journalLineId_fkey"+ columns: ["journalLineId"]+ referencedRelation: "journalLine"+ referencedColumns: ["id"]},{- foreignKeyName: "valueLedgerJournalLineRelation_valueLedgerId_fkey";- columns: ["valueLedgerId"];- referencedRelation: "valueLedger";- referencedColumns: ["id"];+ foreignKeyName: "valueLedgerJournalLineRelation_valueLedgerId_fkey"+ columns: ["valueLedgerId"]+ referencedRelation: "valueLedger"+ referencedColumns: ["id"]}- ];- };+ ]+ }warehouse: {Row: {- active: boolean;- createdAt: string;- createdBy: string;- id: string;- locationId: string;- name: string;- requiresBin: boolean;- requiresPick: boolean;- requiresPutAway: boolean;- requiresReceive: boolean;- requiresShipment: boolean;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ createdAt: string+ createdBy: string+ id: string+ locationId: string+ name: string+ requiresBin: boolean+ requiresPick: boolean+ requiresPutAway: boolean+ requiresReceive: boolean+ requiresShipment: boolean+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- createdAt?: string;- createdBy: string;- id?: string;- locationId: string;- name: string;- requiresBin?: boolean;- requiresPick?: boolean;- requiresPutAway?: boolean;- requiresReceive?: boolean;- requiresShipment?: boolean;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy: string+ id?: string+ locationId: string+ name: string+ requiresBin?: boolean+ requiresPick?: boolean+ requiresPutAway?: boolean+ requiresReceive?: boolean+ requiresShipment?: boolean+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- createdAt?: string;- createdBy?: string;- id?: string;- locationId?: string;- name?: string;- requiresBin?: boolean;- requiresPick?: boolean;- requiresPutAway?: boolean;- requiresReceive?: boolean;- requiresShipment?: boolean;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ createdAt?: string+ createdBy?: string+ id?: string+ locationId?: string+ name?: string+ requiresBin?: boolean+ requiresPick?: boolean+ requiresPutAway?: boolean+ requiresReceive?: boolean+ requiresShipment?: boolean+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "warehouse_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "warehouse_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "warehouse_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "warehouse_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "warehouse_locationId_fkey";- columns: ["locationId"];- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "warehouse_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "warehouse_locationId_fkey";- columns: ["locationId"];- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "warehouse_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "warehouse_locationId_fkey";- columns: ["locationId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "warehouse_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "warehouse_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "warehouse_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "warehouse_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "warehouse_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }workCell: {Row: {- active: boolean;- activeDate: string | null;- createdAt: string;- createdBy: string;- defaultStandardFactor: Database["public"]["Enums"]["factor"];- departmentId: string;- description: string | null;- id: string;- locationId: string | null;- name: string;- updatedAt: string | null;- updatedBy: string | null;- workCellTypeId: string;- };+ active: boolean+ activeDate: string | null+ createdAt: string+ createdBy: string+ defaultStandardFactor: Database["public"]["Enums"]["factor"]+ departmentId: string+ description: string | null+ id: string+ locationId: string | null+ name: string+ updatedAt: string | null+ updatedBy: string | null+ workCellTypeId: string+ }Insert: {- active?: boolean;- activeDate?: string | null;- createdAt?: string;- createdBy: string;- defaultStandardFactor?: Database["public"]["Enums"]["factor"];- departmentId: string;- description?: string | null;- id?: string;- locationId?: string | null;- name: string;- updatedAt?: string | null;- updatedBy?: string | null;- workCellTypeId: string;- };+ active?: boolean+ activeDate?: string | null+ createdAt?: string+ createdBy: string+ defaultStandardFactor?: Database["public"]["Enums"]["factor"]+ departmentId: string+ description?: string | null+ id?: string+ locationId?: string | null+ name: string+ updatedAt?: string | null+ updatedBy?: string | null+ workCellTypeId: string+ }Update: {- active?: boolean;- activeDate?: string | null;- createdAt?: string;- createdBy?: string;- defaultStandardFactor?: Database["public"]["Enums"]["factor"];- departmentId?: string;- description?: string | null;- id?: string;- locationId?: string | null;- name?: string;- updatedAt?: string | null;- updatedBy?: string | null;- workCellTypeId?: string;- };+ active?: boolean+ activeDate?: string | null+ createdAt?: string+ createdBy?: string+ defaultStandardFactor?: Database["public"]["Enums"]["factor"]+ departmentId?: string+ description?: string | null+ id?: string+ locationId?: string | null+ name?: string+ updatedAt?: string | null+ updatedBy?: string | null+ workCellTypeId?: string+ }Relationships: [{- foreignKeyName: "workCell_departmentId_fkey";- columns: ["departmentId"];- referencedRelation: "department";- referencedColumns: ["id"];+ foreignKeyName: "workCell_departmentId_fkey"+ columns: ["departmentId"]+ referencedRelation: "department"+ referencedColumns: ["id"]},{- foreignKeyName: "workCell_locationId_fkey";- columns: ["locationId"];- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "workCell_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "workCell_locationId_fkey";- columns: ["locationId"];- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "workCell_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "workCell_locationId_fkey";- columns: ["locationId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "workCell_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]},{- foreignKeyName: "workCell_workCellTypeId_fkey";- columns: ["workCellTypeId"];- referencedRelation: "workCellType";- referencedColumns: ["id"];+ foreignKeyName: "workCell_workCellTypeId_fkey"+ columns: ["workCellTypeId"]+ referencedRelation: "workCellType"+ referencedColumns: ["id"]}- ];- };+ ]+ }workCellType: {Row: {- active: boolean;- color: string;- createdAt: string;- createdBy: string;- description: string | null;- id: string;- name: string;- requiredAbility: string | null;- updatedAt: string | null;- updatedBy: string | null;- };+ active: boolean+ color: string+ createdAt: string+ createdBy: string+ description: string | null+ id: string+ name: string+ requiredAbility: string | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- active?: boolean;- color?: string;- createdAt?: string;- createdBy: string;- description?: string | null;- id?: string;- name: string;- requiredAbility?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ color?: string+ createdAt?: string+ createdBy: string+ description?: string | null+ id?: string+ name: string+ requiredAbility?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- active?: boolean;- color?: string;- createdAt?: string;- createdBy?: string;- description?: string | null;- id?: string;- name?: string;- requiredAbility?: string | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ active?: boolean+ color?: string+ createdAt?: string+ createdBy?: string+ description?: string | null+ id?: string+ name?: string+ requiredAbility?: string | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "workCellType_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "workCellType_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "workCellType_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "workCellType_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "workCellType_requiredAbility_fkey";- columns: ["requiredAbility"];- referencedRelation: "ability";- referencedColumns: ["id"];+ foreignKeyName: "workCellType_requiredAbility_fkey"+ columns: ["requiredAbility"]+ referencedRelation: "ability"+ referencedColumns: ["id"]},{- foreignKeyName: "workCellType_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "workCellType_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "workCellType_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "workCellType_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };- };+ ]+ }+ }Views: {accountCategories: {Row: {- category: string | null;- createdAt: string | null;- createdBy: string | null;- id: string | null;- incomeBalance: Database["public"]["Enums"]["glIncomeBalance"] | null;- normalBalance: Database["public"]["Enums"]["glNormalBalance"] | null;- subCategoriesCount: number | null;- updatedAt: string | null;- updatedBy: string | null;- };+ category: string | null+ createdAt: string | null+ createdBy: string | null+ id: string | null+ incomeBalance: Database["public"]["Enums"]["glIncomeBalance"] | null+ normalBalance: Database["public"]["Enums"]["glNormalBalance"] | null+ subCategoriesCount: number | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- category?: string | null;- createdAt?: string | null;- createdBy?: string | null;- id?: string | null;- incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null;- normalBalance?: Database["public"]["Enums"]["glNormalBalance"] | null;- subCategoriesCount?: never;- updatedAt?: string | null;- updatedBy?: string | null;- };+ category?: string | null+ createdAt?: string | null+ createdBy?: string | null+ id?: string | null+ incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null+ normalBalance?: Database["public"]["Enums"]["glNormalBalance"] | null+ subCategoriesCount?: never+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- category?: string | null;- createdAt?: string | null;- createdBy?: string | null;- id?: string | null;- incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null;- normalBalance?: Database["public"]["Enums"]["glNormalBalance"] | null;- subCategoriesCount?: never;- updatedAt?: string | null;- updatedBy?: string | null;- };+ category?: string | null+ createdAt?: string | null+ createdBy?: string | null+ id?: string | null+ incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null+ normalBalance?: Database["public"]["Enums"]["glNormalBalance"] | null+ subCategoriesCount?: never+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "accountCategory_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountCategory_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "accountCategory_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "accountCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "accountCategory_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "accountCategory_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }accounts: {Row: {- accountCategory: string | null;- accountCategoryId: string | null;- accountSubCategory: string | null;- accountSubcategoryId: string | null;- active: boolean | null;+ accountCategory: string | null+ accountCategoryId: string | null+ accountSubCategory: string | null+ accountSubcategoryId: string | null+ active: boolean | nullconsolidatedRate:| Database["public"]["Enums"]["glConsolidatedRate"]- | null;- createdAt: string | null;- createdBy: string | null;- directPosting: boolean | null;- id: string | null;- incomeBalance: Database["public"]["Enums"]["glIncomeBalance"] | null;- name: string | null;- normalBalance: Database["public"]["Enums"]["glNormalBalance"] | null;- number: string | null;- type: Database["public"]["Enums"]["glAccountType"] | null;- updatedAt: string | null;- updatedBy: string | null;- };+ | null+ createdAt: string | null+ createdBy: string | null+ directPosting: boolean | null+ id: string | null+ incomeBalance: Database["public"]["Enums"]["glIncomeBalance"] | null+ name: string | null+ normalBalance: Database["public"]["Enums"]["glNormalBalance"] | null+ number: string | null+ type: Database["public"]["Enums"]["glAccountType"] | null+ updatedAt: string | null+ updatedBy: string | null+ }Insert: {- accountCategory?: never;- accountCategoryId?: string | null;- accountSubCategory?: never;- accountSubcategoryId?: string | null;- active?: boolean | null;+ accountCategory?: never+ accountCategoryId?: string | null+ accountSubCategory?: never+ accountSubcategoryId?: string | null+ active?: boolean | nullconsolidatedRate?:| Database["public"]["Enums"]["glConsolidatedRate"]- | null;- createdAt?: string | null;- createdBy?: string | null;- directPosting?: boolean | null;- id?: string | null;- incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null;- name?: string | null;- normalBalance?: Database["public"]["Enums"]["glNormalBalance"] | null;- number?: string | null;- type?: Database["public"]["Enums"]["glAccountType"] | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ | null+ createdAt?: string | null+ createdBy?: string | null+ directPosting?: boolean | null+ id?: string | null+ incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null+ name?: string | null+ normalBalance?: Database["public"]["Enums"]["glNormalBalance"] | null+ number?: string | null+ type?: Database["public"]["Enums"]["glAccountType"] | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Update: {- accountCategory?: never;- accountCategoryId?: string | null;- accountSubCategory?: never;- accountSubcategoryId?: string | null;- active?: boolean | null;+ accountCategory?: never+ accountCategoryId?: string | null+ accountSubCategory?: never+ accountSubcategoryId?: string | null+ active?: boolean | nullconsolidatedRate?:| Database["public"]["Enums"]["glConsolidatedRate"]- | null;- createdAt?: string | null;- createdBy?: string | null;- directPosting?: boolean | null;- id?: string | null;- incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null;- name?: string | null;- normalBalance?: Database["public"]["Enums"]["glNormalBalance"] | null;- number?: string | null;- type?: Database["public"]["Enums"]["glAccountType"] | null;- updatedAt?: string | null;- updatedBy?: string | null;- };+ | null+ createdAt?: string | null+ createdBy?: string | null+ directPosting?: boolean | null+ id?: string | null+ incomeBalance?: Database["public"]["Enums"]["glIncomeBalance"] | null+ name?: string | null+ normalBalance?: Database["public"]["Enums"]["glNormalBalance"] | null+ number?: string | null+ type?: Database["public"]["Enums"]["glAccountType"] | null+ updatedAt?: string | null+ updatedBy?: string | null+ }Relationships: [{- foreignKeyName: "account_accountCategoryId_fkey";- columns: ["accountCategoryId"];- referencedRelation: "accountCategory";- referencedColumns: ["id"];+ foreignKeyName: "account_accountCategoryId_fkey"+ columns: ["accountCategoryId"]+ referencedRelation: "accountCategory"+ referencedColumns: ["id"]},{- foreignKeyName: "account_accountCategoryId_fkey";- columns: ["accountCategoryId"];- referencedRelation: "accountCategories";- referencedColumns: ["id"];+ foreignKeyName: "account_accountCategoryId_fkey"+ columns: ["accountCategoryId"]+ referencedRelation: "accountCategories"+ referencedColumns: ["id"]},{- foreignKeyName: "account_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "account_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "account_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "account_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "account_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "account_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "account_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "account_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }contractors: {Row: {- abilityIds: string[] | null;- active: boolean | null;- email: string | null;- firstName: string | null;- hoursPerWeek: number | null;- lastName: string | null;- supplierContactId: string | null;- supplierId: string | null;- supplierName: string | null;- };+ abilityIds: string[] | null+ active: boolean | null+ email: string | null+ firstName: string | null+ hoursPerWeek: number | null+ lastName: string | null+ supplierContactId: string | null+ supplierId: string | null+ supplierName: string | null+ }Relationships: [{- foreignKeyName: "contractor_id_fkey";- columns: ["supplierContactId"];- referencedRelation: "supplierContact";- referencedColumns: ["id"];+ foreignKeyName: "contractor_id_fkey"+ columns: ["supplierContactId"]+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]}- ];- };+ ]+ }customers: {Row: {- customerStatusId: string | null;- customerTypeId: string | null;- id: string | null;- name: string | null;- status: string | null;- type: string | null;- };+ customerStatusId: string | null+ customerTypeId: string | null+ id: string | null+ name: string | null+ status: string | null+ type: string | null+ }Relationships: [{- foreignKeyName: "customer_customerStatusId_fkey";- columns: ["customerStatusId"];- referencedRelation: "customerStatus";- referencedColumns: ["id"];+ foreignKeyName: "customer_customerStatusId_fkey"+ columns: ["customerStatusId"]+ referencedRelation: "customerStatus"+ referencedColumns: ["id"]},{- foreignKeyName: "customer_customerTypeId_fkey";- columns: ["customerTypeId"];- referencedRelation: "customerType";- referencedColumns: ["id"];+ foreignKeyName: "customer_customerTypeId_fkey"+ columns: ["customerTypeId"]+ referencedRelation: "customerType"+ referencedColumns: ["id"]}- ];- };+ ]+ }documentLabels: {Row: {- label: string | null;- userId: string | null;- };+ label: string | null+ userId: string | null+ }Relationships: [{- foreignKeyName: "documentLabels_userId_fkey";- columns: ["userId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "documentLabels_userId_fkey"+ columns: ["userId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "documentLabels_userId_fkey";- columns: ["userId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "documentLabels_userId_fkey"+ columns: ["userId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }documents: {Row: {- active: boolean | null;- createdAt: string | null;- createdBy: string | null;- createdByAvatar: string | null;- createdByFullName: string | null;- description: string | null;- favorite: boolean | null;- id: string | null;- labels: string[] | null;- lastActivityAt: string | null;- name: string | null;- path: string | null;- readGroups: string[] | null;- size: number | null;- type: string | null;- updatedAt: string | null;- updatedBy: string | null;- updatedByAvatar: string | null;- updatedByFullName: string | null;- writeGroups: string[] | null;- };+ active: boolean | null+ createdAt: string | null+ createdBy: string | null+ createdByAvatar: string | null+ createdByFullName: string | null+ description: string | null+ favorite: boolean | null+ id: string | null+ labels: string[] | null+ lastActivityAt: string | null+ name: string | null+ path: string | null+ readGroups: string[] | null+ size: number | null+ type: string | null+ updatedAt: string | null+ updatedBy: string | null+ updatedByAvatar: string | null+ updatedByFullName: string | null+ writeGroups: string[] | null+ }Relationships: [{- foreignKeyName: "document_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "document_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "document_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "document_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "document_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "document_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "document_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "document_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }groupMembers: {Row: {- groupId: string | null;- id: number | null;- isCustomerOrgGroup: boolean | null;- isCustomerTypeGroup: boolean | null;- isEmployeeTypeGroup: boolean | null;- isIdentityGroup: boolean | null;- isSupplierOrgGroup: boolean | null;- isSupplierTypeGroup: boolean | null;- memberGroupId: string | null;- memberUserId: string | null;- name: string | null;- user: Json | null;- };+ groupId: string | null+ id: number | null+ isCustomerOrgGroup: boolean | null+ isCustomerTypeGroup: boolean | null+ isEmployeeTypeGroup: boolean | null+ isIdentityGroup: boolean | null+ isSupplierOrgGroup: boolean | null+ isSupplierTypeGroup: boolean | null+ memberGroupId: string | null+ memberUserId: string | null+ name: string | null+ user: Json | null+ }Relationships: [{- foreignKeyName: "membership_groupId_fkey";- columns: ["groupId"];- referencedRelation: "group";- referencedColumns: ["id"];+ foreignKeyName: "membership_groupId_fkey"+ columns: ["groupId"]+ referencedRelation: "group"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberGroupId_fkey";- columns: ["memberGroupId"];- referencedRelation: "group";- referencedColumns: ["id"];+ foreignKeyName: "membership_memberGroupId_fkey"+ columns: ["memberGroupId"]+ referencedRelation: "group"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberUserId_fkey";- columns: ["memberUserId"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "membership_memberUserId_fkey"+ columns: ["memberUserId"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "membership_memberUserId_fkey";- columns: ["memberUserId"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "membership_memberUserId_fkey"+ columns: ["memberUserId"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }groups: {Row: {- id: string | null;- isCustomerOrgGroup: boolean | null;- isCustomerTypeGroup: boolean | null;- isEmployeeTypeGroup: boolean | null;- isSupplierOrgGroup: boolean | null;- isSupplierTypeGroup: boolean | null;- name: string | null;- parentId: string | null;- users: Json | null;- };- Relationships: [];- };+ id: string | null+ isCustomerOrgGroup: boolean | null+ isCustomerTypeGroup: boolean | null+ isEmployeeTypeGroup: boolean | null+ isSupplierOrgGroup: boolean | null+ isSupplierTypeGroup: boolean | null+ name: string | null+ parentId: string | null+ users: Json | null+ }+ Relationships: []+ }groups_recursive: {Row: {- groupId: string | null;- isCustomerOrgGroup: boolean | null;- isCustomerTypeGroup: boolean | null;- isEmployeeTypeGroup: boolean | null;- isIdentityGroup: boolean | null;- isSupplierOrgGroup: boolean | null;- isSupplierTypeGroup: boolean | null;- name: string | null;- parentId: string | null;- user: Json | null;- };- Relationships: [];- };+ groupId: string | null+ isCustomerOrgGroup: boolean | null+ isCustomerTypeGroup: boolean | null+ isEmployeeTypeGroup: boolean | null+ isIdentityGroup: boolean | null+ isSupplierOrgGroup: boolean | null+ isSupplierTypeGroup: boolean | null+ name: string | null+ parentId: string | null+ user: Json | null+ }+ Relationships: []+ }holidayYears: {Row: {- year: number | null;- };- Relationships: [];- };+ year: number | null+ }+ Relationships: []+ }partners: {Row: {- abilityIds: string[] | null;- active: boolean | null;- city: string | null;- hoursPerWeek: number | null;- state: string | null;- supplierId: string | null;- supplierLocationId: string | null;- supplierName: string | null;- };+ abilityIds: string[] | null+ active: boolean | null+ city: string | null+ hoursPerWeek: number | null+ state: string | null+ supplierId: string | null+ supplierLocationId: string | null+ supplierName: string | null+ }Relationships: [{- foreignKeyName: "partner_id_fkey";- columns: ["supplierLocationId"];- referencedRelation: "supplierLocation";- referencedColumns: ["id"];+ foreignKeyName: "partner_id_fkey"+ columns: ["supplierLocationId"]+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]}- ];- };+ ]+ }partQuantities: {Row: {- locationId: string | null;- partId: string | null;- quantityAvailable: number | null;- quantityOnHand: number | null;- quantityOnProdOrder: number | null;- quantityOnPurchaseOrder: number | null;- quantityOnSalesOrder: number | null;- };- Relationships: [];- };+ locationId: string | null+ partId: string | null+ quantityAvailable: number | null+ quantityOnHand: number | null+ quantityOnProdOrder: number | null+ quantityOnPurchaseOrder: number | null+ quantityOnSalesOrder: number | null+ }+ Relationships: []+ }parts: {Row: {- active: boolean | null;- description: string | null;- id: string | null;- name: string | null;- partGroup: string | null;- partGroupId: string | null;- partType: Database["public"]["Enums"]["partType"] | null;+ active: boolean | null+ description: string | null+ id: string | null+ name: string | null+ partGroup: string | null+ partGroupId: string | null+ partType: Database["public"]["Enums"]["partType"] | nullreplenishmentSystem:| Database["public"]["Enums"]["partReplenishmentSystem"]- | null;- supplierIds: string[] | null;- };+ | null+ supplierIds: string[] | null+ }Relationships: [{- foreignKeyName: "part_partGroupId_fkey";- columns: ["partGroupId"];- referencedRelation: "partGroup";- referencedColumns: ["id"];+ foreignKeyName: "part_partGroupId_fkey"+ columns: ["partGroupId"]+ referencedRelation: "partGroup"+ referencedColumns: ["id"]}- ];- };+ ]+ }purchaseInvoices: {Row: {- balance: number | null;- contactName: string | null;- createdAt: string | null;- createdBy: string | null;- createdByAvatar: string | null;- createdByFullName: string | null;- currencyCode: string | null;- dateDue: string | null;- dateIssued: string | null;- datePaid: string | null;- exchangeRate: number | null;- id: string | null;- invoiceId: string | null;- status: Database["public"]["Enums"]["purchaseInvoiceStatus"] | null;- subtotal: number | null;- supplierContactId: string | null;- supplierId: string | null;- supplierName: string | null;- supplierReference: string | null;- totalAmount: number | null;- totalDiscount: number | null;- totalTax: number | null;- updatedAt: string | null;- updatedBy: string | null;- updatedByAvatar: string | null;- updatedByFullName: string | null;- };+ balance: number | null+ contactName: string | null+ createdAt: string | null+ createdBy: string | null+ createdByAvatar: string | null+ createdByFullName: string | null+ currencyCode: string | null+ dateDue: string | null+ dateIssued: string | null+ datePaid: string | null+ exchangeRate: number | null+ id: string | null+ invoiceId: string | null+ invoiceSupplierContactId: string | null+ invoiceSupplierId: string | null+ invoiceSupplierLocationId: string | null+ paymentTermId: string | null+ status: Database["public"]["Enums"]["purchaseInvoiceStatus"] | null+ subtotal: number | null+ supplierId: string | null+ supplierName: string | null+ supplierReference: string | null+ totalAmount: number | null+ totalDiscount: number | null+ totalTax: number | null+ updatedAt: string | null+ updatedBy: string | null+ updatedByAvatar: string | null+ updatedByFullName: string | null+ }Relationships: [{- foreignKeyName: "purchaseInvoice_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseInvoice_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseInvoice_currencyCode_fkey";- columns: ["currencyCode"];- referencedRelation: "currency";- referencedColumns: ["code"];+ foreignKeyName: "purchaseInvoice_currencyCode_fkey"+ columns: ["currencyCode"]+ referencedRelation: "currency"+ referencedColumns: ["code"]},{- foreignKeyName: "purchaseInvoice_supplierContactId_fkey";- columns: ["supplierContactId"];- referencedRelation: "supplierContact";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierContactId_fkey"+ columns: ["invoiceSupplierContactId"]+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierId_fkey"+ columns: ["invoiceSupplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseInvoice_invoiceSupplierLocationId_fkey"+ columns: ["invoiceSupplierLocationId"]+ referencedRelation: "supplierLocation"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseInvoice_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseInvoice_paymentTermId_fkey"+ columns: ["paymentTermId"]+ referencedRelation: "paymentTerm"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]+ },+ {+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]+ },+ {+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoice_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoice_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]+ },+ {+ foreignKeyName: "purchaseInvoice_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }purchaseOrders: {Row: {- closedAt: string | null;- closedBy: string | null;- closedByAvatar: string | null;- closedByFullName: string | null;- createdAt: string | null;- createdBy: string | null;- createdByAvatar: string | null;- createdByFullName: string | null;- dropShipment: boolean | null;- favorite: boolean | null;- id: string | null;- lineCount: number | null;- locationId: string | null;- locationName: string | null;- notes: string | null;- orderDate: string | null;- purchaseOrderId: string | null;- receiptPromisedDate: string | null;- receiptRequestedDate: string | null;- status: Database["public"]["Enums"]["purchaseOrderStatus"] | null;- subtotal: number | null;- supplierContactId: string | null;- supplierId: string | null;- supplierName: string | null;- supplierReference: string | null;- type: Database["public"]["Enums"]["purchaseOrderType"] | null;- updatedAt: string | null;- updatedBy: string | null;- updatedByAvatar: string | null;- updatedByFullName: string | null;- };+ closedAt: string | null+ closedBy: string | null+ closedByAvatar: string | null+ closedByFullName: string | null+ createdAt: string | null+ createdBy: string | null+ createdByAvatar: string | null+ createdByFullName: string | null+ dropShipment: boolean | null+ favorite: boolean | null+ id: string | null+ lineCount: number | null+ locationId: string | null+ locationName: string | null+ notes: string | null+ orderDate: string | null+ purchaseOrderId: string | null+ receiptPromisedDate: string | null+ receiptRequestedDate: string | null+ status: Database["public"]["Enums"]["purchaseOrderStatus"] | null+ subtotal: number | null+ supplierContactId: string | null+ supplierId: string | null+ supplierName: string | null+ supplierReference: string | null+ type: Database["public"]["Enums"]["purchaseOrderType"] | null+ updatedAt: string | null+ updatedBy: string | null+ updatedByAvatar: string | null+ updatedByFullName: string | null+ }Relationships: [{- foreignKeyName: "purchaseOrder_closedBy_fkey";- columns: ["closedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_closedBy_fkey"+ columns: ["closedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_closedBy_fkey";- columns: ["closedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrder_closedBy_fkey"+ columns: ["closedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseOrder_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_createdBy_fkey";- columns: ["createdBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrder_createdBy_fkey"+ columns: ["createdBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]},{- foreignKeyName: "purchaseOrder_supplierContactId_fkey";- columns: ["supplierContactId"];- referencedRelation: "supplierContact";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierContactId_fkey"+ columns: ["supplierContactId"]+ referencedRelation: "supplierContact"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "user";- referencedColumns: ["id"];+ foreignKeyName: "purchaseOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "user"+ referencedColumns: ["id"]},{- foreignKeyName: "purchaseOrder_updatedBy_fkey";- columns: ["updatedBy"];- referencedRelation: "userDefaults";- referencedColumns: ["userId"];+ foreignKeyName: "purchaseOrder_updatedBy_fkey"+ columns: ["updatedBy"]+ referencedRelation: "userDefaults"+ referencedColumns: ["userId"]}- ];- };+ ]+ }purchaseOrderSuppliers: {Row: {- id: string | null;- name: string | null;- };- Relationships: [];- };+ id: string | null+ name: string | null+ }+ Relationships: []+ }receiptQuantityReceivedByLine: {Row: {- lineId: string | null;- receivedQuantity: number | null;- sourceDocumentId: string | null;- };- Relationships: [];- };+ lineId: string | null+ receivedQuantity: number | null+ sourceDocumentId: string | null+ }+ Relationships: []+ }receiptsPostedNotInvoiced: {Row: {- estimatedCost: number | null;- id: string | null;- postingDate: string | null;- receiptId: string | null;+ estimatedCost: number | null+ id: string | null+ postingDate: string | null+ receiptId: string | nullsourceDocument:| Database["public"]["Enums"]["receiptSourceDocument"]- | null;- sourceDocumentId: string | null;- sourceDocumentReadableId: string | null;- supplierId: string | null;- supplierName: string | null;- };+ | null+ sourceDocumentId: string | null+ sourceDocumentReadableId: string | null+ supplierId: string | null+ supplierName: string | null+ }Relationships: [{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "supplier";- referencedColumns: ["id"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "supplier"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "contractors";- referencedColumns: ["supplierId"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "contractors"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "partners";- referencedColumns: ["supplierId"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "partners"+ referencedColumns: ["supplierId"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "purchaseOrderSuppliers";- referencedColumns: ["id"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "purchaseOrderSuppliers"+ referencedColumns: ["id"]},{- foreignKeyName: "receipt_supplierId_fkey";- columns: ["supplierId"];- referencedRelation: "suppliers";- referencedColumns: ["id"];+ foreignKeyName: "receipt_supplierId_fkey"+ columns: ["supplierId"]+ referencedRelation: "suppliers"+ referencedColumns: ["id"]}- ];- };+ ]+ }suppliers: {Row: {- id: string | null;- name: string | null;- orderCount: number | null;- partCount: number | null;- status: string | null;- supplierStatusId: string | null;- supplierTypeId: string | null;- type: string | null;- };+ id: string | null+ name: string | null+ orderCount: number | null+ partCount: number | null+ status: string | null+ supplierStatusId: string | null+ supplierTypeId: string | null+ type: string | null+ }Relationships: [{- foreignKeyName: "supplier_supplierStatusId_fkey";- columns: ["supplierStatusId"];- referencedRelation: "supplierStatus";- referencedColumns: ["id"];+ foreignKeyName: "supplier_supplierStatusId_fkey"+ columns: ["supplierStatusId"]+ referencedRelation: "supplierStatus"+ referencedColumns: ["id"]},{- foreignKeyName: "supplier_supplierTypeId_fkey";- columns: ["supplierTypeId"];- referencedRelation: "supplierType";- referencedColumns: ["id"];+ foreignKeyName: "supplier_supplierTypeId_fkey"+ columns: ["supplierTypeId"]+ referencedRelation: "supplierType"+ referencedColumns: ["id"]}- ];- };+ ]+ }totalReceiptsPostedNotInvoiced: {Row: {- total: number | null;- };- Relationships: [];- };+ total: number | null+ }+ Relationships: []+ }userDefaults: {Row: {- locationId: string | null;- userId: string | null;- };+ locationId: string | null+ userId: string | null+ }Relationships: [{- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- referencedRelation: "location";- referencedColumns: ["id"];+ foreignKeyName: "employeeJob_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "location"+ referencedColumns: ["id"]},{- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- referencedRelation: "partQuantities";- referencedColumns: ["locationId"];+ foreignKeyName: "employeeJob_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "partQuantities"+ referencedColumns: ["locationId"]},{- foreignKeyName: "employeeJob_locationId_fkey";- columns: ["locationId"];- referencedRelation: "purchaseOrders";- referencedColumns: ["locationId"];+ foreignKeyName: "employeeJob_locationId_fkey"+ columns: ["locationId"]+ referencedRelation: "purchaseOrders"+ referencedColumns: ["locationId"]}- ];- };- };+ ]+ }+ }Functions: {_xid_machine_id: {- Args: Record<PropertyKey, never>;- Returns: number;- };+ Args: Record<PropertyKey, never>+ Returns: number+ }delete_claim: {Args: {- uid: string;- claim: string;- };- Returns: string;- };+ uid: string+ claim: string+ }+ Returns: string+ }get_claim: {Args: {- uid: string;- claim: string;- };- Returns: Json;- };+ uid: string+ claim: string+ }+ Returns: Json+ }get_claims: {Args: {- uid: string;- };- Returns: Json;- };+ uid: string+ }+ Returns: Json+ }get_my_claim: {Args: {- claim: string;- };- Returns: Json;- };+ claim: string+ }+ Returns: Json+ }get_my_claims: {- Args: Record<PropertyKey, never>;- Returns: Json;- };+ Args: Record<PropertyKey, never>+ Returns: Json+ }groups_for_user: {Args: {- uid: string;- };- Returns: unknown;- };+ uid: string+ }+ Returns: unknown+ }groups_query: {Args: {- _name?: string;- _uid?: string;- };+ _name?: string+ _uid?: string+ }Returns: {- id: string;- name: string;- parentId: string;- isEmployeeTypeGroup: boolean;- isCustomerOrgGroup: boolean;- isCustomerTypeGroup: boolean;- isSupplierOrgGroup: boolean;- isSupplierTypeGroup: boolean;- users: Json;- }[];- };+ id: string+ name: string+ parentId: string+ isEmployeeTypeGroup: boolean+ isCustomerOrgGroup: boolean+ isCustomerTypeGroup: boolean+ isSupplierOrgGroup: boolean+ isSupplierTypeGroup: boolean+ users: Json+ }[]+ }is_claims_admin: {- Args: Record<PropertyKey, never>;- Returns: boolean;- };+ Args: Record<PropertyKey, never>+ Returns: boolean+ }journalLinesByAccountNumber: {Args: {- from_date?: string;- to_date?: string;- };+ from_date?: string+ to_date?: string+ }Returns: {- number: string;- balance: number;- balanceAtDate: number;- netChange: number;- }[];- };+ number: string+ balance: number+ balanceAtDate: number+ netChange: number+ }[]+ }set_claim: {Args: {- uid: string;- claim: string;- value: Json;- };- Returns: string;- };+ uid: string+ claim: string+ value: Json+ }+ Returns: string+ }users_for_groups: {Args: {- groups: string[];- };- Returns: Json;- };+ groups: string[]+ }+ Returns: Json+ }xid: {Args: {- _at?: string;- };- Returns: unknown;- };+ _at?: string+ }+ Returns: unknown+ }xid_counter: {Args: {- _xid: unknown;- };- Returns: number;- };+ _xid: unknown+ }+ Returns: number+ }xid_decode: {Args: {- _xid: unknown;- };- Returns: unknown;- };+ _xid: unknown+ }+ Returns: unknown+ }xid_encode: {Args: {- _id: number[];- };- Returns: unknown;- };+ _id: number[]+ }+ Returns: unknown+ }xid_machine: {Args: {- _xid: unknown;- };- Returns: unknown;- };+ _xid: unknown+ }+ Returns: unknown+ }xid_pid: {Args: {- _xid: unknown;- };- Returns: number;- };+ _xid: unknown+ }+ Returns: number+ }xid_time: {Args: {- _xid: unknown;- };- Returns: string;- };- };+ _xid: unknown+ }+ Returns: string+ }+ }Enums: {- accountingPeriodStatus: "Inactive" | "Active";+ accountingPeriodStatus: "Inactive" | "Active"costLedgerType:| "Direct Cost"| "Revaluation"| "Rounding"| "Indirect Cost"| "Variance"- | "Total";+ | "Total"documentTransactionType:| "Download"| "Edit"| "Favorite"| "Label"| "Unfavorite"- | "Upload";+ | "Upload"factor:| "Hours/Piece"| "Hours/100 Pieces"@@ -8223,7 +8786,7 @@ export interface Database {| "Pieces/Minute"| "Seconds/Piece"| "Total Hours"- | "Total Minutes";+ | "Total Minutes"glAccountCategory:| "Bank"| "Accounts Receivable"@@ -8242,18 +8805,18 @@ export interface Database {| "Cost of Goods Sold"| "Expense"| "Other Income"- | "Other Expense";- glAccountType: "Posting" | "Heading" | "Begin Total" | "End Total";- glConsolidatedRate: "Average" | "Current" | "Historical";- glIncomeBalance: "Balance Sheet" | "Income Statement";- glNormalBalance: "Debit" | "Credit" | "Both";+ | "Other Expense"+ glAccountType: "Posting" | "Heading" | "Begin Total" | "End Total"+ glConsolidatedRate: "Average" | "Current" | "Historical"+ glIncomeBalance: "Balance Sheet" | "Income Statement"+ glNormalBalance: "Debit" | "Credit" | "Both"journalLineDocumentType:| "Quote"| "Order"| "Invoice"| "Credit Memo"| "Blanket Order"- | "Return Order";+ | "Return Order"month:| "January"| "February"@@ -8266,8 +8829,8 @@ export interface Database {| "September"| "October"| "November"- | "December";- partCostingMethod: "Standard" | "Average" | "LIFO" | "FIFO";+ | "December"+ partCostingMethod: "Standard" | "Average" | "LIFO" | "FIFO"partLedgerDocumentType:| "Sales Shipment"| "Sales Invoice"@@ -8285,7 +8848,7 @@ export interface Database {| "Posted Assembly"| "Inventory Receipt"| "Inventory Shipment"- | "Direct Transfer";+ | "Direct Transfer"partLedgerType:| "Purchase"| "Sale"@@ -8295,17 +8858,17 @@ export interface Database {| "Consumption"| "Output"| "Assembly Consumption"- | "Assembly Output";- partManufacturingPolicy: "Make to Order" | "Make to Stock";+ | "Assembly Output"+ partManufacturingPolicy: "Make to Order" | "Make to Stock"partReorderingPolicy:| "Manual Reorder"| "Demand-Based Reorder"| "Fixed Reorder Quantity"- | "Maximum Quantity";- partReplenishmentSystem: "Buy" | "Make" | "Buy and Make";- partType: "Inventory" | "Non-Inventory" | "Service";- payableLineType: "G/L Account" | "Part" | "Fixed Asset";- paymentTermCalculationMethod: "Net" | "End of Month" | "Day of Month";+ | "Maximum Quantity"+ partReplenishmentSystem: "Buy" | "Make" | "Buy and Make"+ partType: "Inventory" | "Non-Inventory" | "Service"+ payableLineType: "G/L Account" | "Part" | "Fixed Asset"+ paymentTermCalculationMethod: "Net" | "End of Month" | "Day of Month"purchaseInvoiceStatus:| "Draft"| "Submitted"@@ -8314,8 +8877,8 @@ export interface Database {| "Paid"| "Partially Paid"| "Overdue"- | "Voided";- purchaseOrderLineType: "Comment" | "G/L Account" | "Part" | "Fixed Asset";+ | "Voided"+ purchaseOrderLineType: "Comment" | "G/L Account" | "Part" | "Fixed Asset"purchaseOrderStatus:| "Draft"| "To Review"@@ -8324,15 +8887,15 @@ export interface Database {| "To Receive and Invoice"| "To Invoice"| "Completed"- | "Closed";+ | "Closed"purchaseOrderTransactionType:| "Edit"| "Favorite"| "Unfavorite"| "Approved"| "Reject"- | "Request Approval";- purchaseOrderType: "Draft" | "Purchase" | "Return";+ | "Request Approval"+ purchaseOrderType: "Purchase" | "Return"receiptSourceDocument:| "Sales Order"| "Sales Return Order"@@ -8341,8 +8904,8 @@ export interface Database {| "Inbound Transfer"| "Outbound Transfer"| "Manufacturing Consumption"- | "Manufacturing Output";- receiptStatus: "Draft" | "Pending" | "Posted";+ | "Manufacturing Output"+ receiptStatus: "Draft" | "Pending" | "Posted"searchEntity:| "Resource"| "Person"@@ -8352,197 +8915,198 @@ export interface Database {| "Part"| "Purchase Order"| "Sales Order"- | "Document";- shippingCarrier: "UPS" | "FedEx" | "USPS" | "DHL" | "Other";+ | "Document"+ shippingCarrier: "UPS" | "FedEx" | "USPS" | "DHL" | "Other"supplierLedgerDocumentType:| "Payment"| "Invoice"| "Credit Memo"| "Finance Charge Memo"| "Reminder"- | "Refund";- };+ | "Refund"+ }CompositeTypes: {- [_ in never]: never;- };- };+ [_ in never]: never+ }+ }storage: {Tables: {buckets: {Row: {- allowed_mime_types: string[] | null;- avif_autodetection: boolean | null;- created_at: string | null;- file_size_limit: number | null;- id: string;- name: string;- owner: string | null;- public: boolean | null;- updated_at: string | null;- };+ allowed_mime_types: string[] | null+ avif_autodetection: boolean | null+ created_at: string | null+ file_size_limit: number | null+ id: string+ name: string+ owner: string | null+ public: boolean | null+ updated_at: string | null+ }Insert: {- allowed_mime_types?: string[] | null;- avif_autodetection?: boolean | null;- created_at?: string | null;- file_size_limit?: number | null;- id: string;- name: string;- owner?: string | null;- public?: boolean | null;- updated_at?: string | null;- };+ allowed_mime_types?: string[] | null+ avif_autodetection?: boolean | null+ created_at?: string | null+ file_size_limit?: number | null+ id: string+ name: string+ owner?: string | null+ public?: boolean | null+ updated_at?: string | null+ }Update: {- allowed_mime_types?: string[] | null;- avif_autodetection?: boolean | null;- created_at?: string | null;- file_size_limit?: number | null;- id?: string;- name?: string;- owner?: string | null;- public?: boolean | null;- updated_at?: string | null;- };+ allowed_mime_types?: string[] | null+ avif_autodetection?: boolean | null+ created_at?: string | null+ file_size_limit?: number | null+ id?: string+ name?: string+ owner?: string | null+ public?: boolean | null+ updated_at?: string | null+ }Relationships: [{- foreignKeyName: "buckets_owner_fkey";- columns: ["owner"];- referencedRelation: "users";- referencedColumns: ["id"];+ foreignKeyName: "buckets_owner_fkey"+ columns: ["owner"]+ referencedRelation: "users"+ referencedColumns: ["id"]}- ];- };+ ]+ }migrations: {Row: {- executed_at: string | null;- hash: string;- id: number;- name: string;- };+ executed_at: string | null+ hash: string+ id: number+ name: string+ }Insert: {- executed_at?: string | null;- hash: string;- id: number;- name: string;- };+ executed_at?: string | null+ hash: string+ id: number+ name: string+ }Update: {- executed_at?: string | null;- hash?: string;- id?: number;- name?: string;- };- Relationships: [];- };+ executed_at?: string | null+ hash?: string+ id?: number+ name?: string+ }+ Relationships: []+ }objects: {Row: {- bucket_id: string | null;- created_at: string | null;- id: string;- last_accessed_at: string | null;- metadata: Json | null;- name: string | null;- owner: string | null;- path_tokens: string[] | null;- updated_at: string | null;- version: string | null;- };+ bucket_id: string | null+ created_at: string | null+ id: string+ last_accessed_at: string | null+ metadata: Json | null+ name: string | null+ owner: string | null+ path_tokens: string[] | null+ updated_at: string | null+ version: string | null+ }Insert: {- bucket_id?: string | null;- created_at?: string | null;- id?: string;- last_accessed_at?: string | null;- metadata?: Json | null;- name?: string | null;- owner?: string | null;- path_tokens?: string[] | null;- updated_at?: string | null;- version?: string | null;- };+ bucket_id?: string | null+ created_at?: string | null+ id?: string+ last_accessed_at?: string | null+ metadata?: Json | null+ name?: string | null+ owner?: string | null+ path_tokens?: string[] | null+ updated_at?: string | null+ version?: string | null+ }Update: {- bucket_id?: string | null;- created_at?: string | null;- id?: string;- last_accessed_at?: string | null;- metadata?: Json | null;- name?: string | null;- owner?: string | null;- path_tokens?: string[] | null;- updated_at?: string | null;- version?: string | null;- };+ bucket_id?: string | null+ created_at?: string | null+ id?: string+ last_accessed_at?: string | null+ metadata?: Json | null+ name?: string | null+ owner?: string | null+ path_tokens?: string[] | null+ updated_at?: string | null+ version?: string | null+ }Relationships: [{- foreignKeyName: "objects_bucketId_fkey";- columns: ["bucket_id"];- referencedRelation: "buckets";- referencedColumns: ["id"];+ foreignKeyName: "objects_bucketId_fkey"+ columns: ["bucket_id"]+ referencedRelation: "buckets"+ referencedColumns: ["id"]}- ];- };- };+ ]+ }+ }Views: {- [_ in never]: never;- };+ [_ in never]: never+ }Functions: {can_insert_object: {Args: {- bucketid: string;- name: string;- owner: string;- metadata: Json;- };- Returns: undefined;- };+ bucketid: string+ name: string+ owner: string+ metadata: Json+ }+ Returns: undefined+ }extension: {Args: {- name: string;- };- Returns: string;- };+ name: string+ }+ Returns: string+ }filename: {Args: {- name: string;- };- Returns: string;- };+ name: string+ }+ Returns: string+ }foldername: {Args: {- name: string;- };- Returns: unknown;- };+ name: string+ }+ Returns: unknown+ }get_size_by_bucket: {- Args: Record<PropertyKey, never>;+ Args: Record<PropertyKey, never>Returns: {- size: number;- bucket_id: string;- }[];- };+ size: number+ bucket_id: string+ }[]+ }search: {Args: {- prefix: string;- bucketname: string;- limits?: number;- levels?: number;- offsets?: number;- search?: string;- sortcolumn?: string;- sortorder?: string;- };+ prefix: string+ bucketname: string+ limits?: number+ levels?: number+ offsets?: number+ search?: string+ sortcolumn?: string+ sortorder?: string+ }Returns: {- name: string;- id: string;- updated_at: string;- created_at: string;- last_accessed_at: string;- metadata: Json;- }[];- };- };+ name: string+ id: string+ updated_at: string+ created_at: string+ last_accessed_at: string+ metadata: Json+ }[]+ }+ }Enums: {- [_ in never]: never;- };+ [_ in never]: never+ }CompositeTypes: {- [_ in never]: never;- };- };+ [_ in never]: never+ }+ }}+diff --git a/packages/database/supabase/functions/create-purchase-invoice-from-purchase-order/index.ts b/packages/database/supabase/functions/create-purchase-invoice-from-purchase-order/index.tsnew file mode 100644index 0000000000..9c5a58ea17--- /dev/null+++ b/packages/database/supabase/functions/create-purchase-invoice-from-purchase-order/index.ts@@ -0,0 +1,153 @@+import { serve } from "https://deno.land/[email protected]/http/server.ts";+import { DB, getConnectionPool, getDatabaseClient } from "../lib/database.ts";++import { Database } from "../../../src/types.ts";+import { corsHeaders } from "../lib/headers.ts";+import { getSupabaseServiceRole } from "../lib/supabase.ts";+import { getNextSequence } from "../shared/get-next-sequence.ts";++const pool = getConnectionPool(1);+const db = getDatabaseClient<DB>(pool);++serve(async (req: Request) => {+ if (req.method === "OPTIONS") {+ return new Response("ok", { headers: corsHeaders });+ }+ const { id: purchaseOrderId, userId } = await req.json();++ try {+ if (!purchaseOrderId) throw new Error("Payload is missing id");+ if (!userId) throw new Error("Payload is missing userId");++ const client = getSupabaseServiceRole(req.headers.get("Authorization"));++ const [purchaseOrder, purchaseOrderLines, purchaseOrderPayment] =+ await Promise.all([+ client+ .from("purchaseOrder")+ .select("*")+ .eq("id", purchaseOrderId)+ .single(),+ client+ .from("purchaseOrderLine")+ .select("*")+ .eq("purchaseOrderId", purchaseOrderId),+ client+ .from("purchaseOrderPayment")+ .select("*")+ .eq("id", purchaseOrderId)+ .single(),+ ]);++ if (!purchaseOrder.data) throw new Error("Purchase order not found");+ if (purchaseOrderLines.error)+ throw new Error(purchaseOrderLines.error.message);+ if (!purchaseOrderPayment.data)+ throw new Error("Purchase order payment not found");++ const uninvoicedLines = purchaseOrderLines?.data?.reduce<+ (typeof purchaseOrderLines)["data"]+ >((acc, line) => {+ if (line?.quantityToInvoice && line.quantityToInvoice > 0) {+ acc.push(line);+ }++ return acc;+ }, []);++ const uninvoicedSubtotal = uninvoicedLines?.reduce((acc, line) => {+ if (+ line?.quantityToInvoice &&+ line.unitPrice &&+ line.quantityToInvoice > 0+ ) {+ acc += line.quantityToInvoice * line.unitPrice;+ }++ return acc;+ }, 0);++ let purchaseInvoiceId = "";++ await db.transaction().execute(async (trx) => {+ purchaseInvoiceId = await getNextSequence(trx, "purchaseInvoice");++ const purchaseInvoice = await trx+ .insertInto("purchaseInvoice")+ .values({+ invoiceId: purchaseInvoiceId,+ status: "Draft",+ supplierId: purchaseOrder.data?.supplierId,+ supplierReference: purchaseOrder.data?.supplierReference,+ invoiceSupplierId: purchaseOrderPayment.data.invoiceSupplierId,+ invoiceSupplierContactId:+ purchaseOrderPayment.data.invoiceSupplierContactId,+ invoiceSupplierLocationId:+ purchaseOrderPayment.data.invoiceSupplierLocationId,+ paymentTermId: purchaseOrderPayment.data.paymentTermId,+ currencyCode: purchaseOrderPayment.data.currencyCode,+ exchangeRate: 1,+ subtotal: uninvoicedSubtotal,+ totalDiscount: 0,+ totalAmount: uninvoicedSubtotal,+ totalTax: 0,+ balance: uninvoicedSubtotal,+ createdBy: userId,+ })+ .returning(["id"])+ .executeTakeFirstOrThrow();++ if (!purchaseInvoice.id) throw new Error("Purchase invoice not created");+ purchaseInvoiceId = purchaseInvoice.id;++ const purchaseInvoiceLines = uninvoicedLines?.reduce<+ Database["public"]["Tables"]["purchaseInvoiceLine"]["Insert"][]+ >((acc, line) => {+ if (+ line.purchaseOrderLineType !== "Comment" &&+ line?.quantityToInvoice &&+ line.quantityToInvoice > 0+ ) {+ acc.push({+ invoiceId: purchaseInvoiceId,+ invoiceLineType: line.purchaseOrderLineType,+ purchaseOrderId: line.purchaseOrderId,+ purchaseOrderLineId: line.id,+ partId: line.partId,+ accountNumber: line.accountNumber,+ assetId: line.assetId,+ description: line.description,+ quantity: line.quantityToInvoice,+ unitPrice: line.unitPrice ?? 0,+ // TODO: currency code and exchange rate+ currencyCode: "USD",+ exchangeRate: 1,+ createdBy: userId,+ });+ }+ return acc;+ }, []);++ await trx+ .insertInto("purchaseInvoiceLine")+ .values(purchaseInvoiceLines)+ .execute();+ });++ return new Response(+ JSON.stringify({+ id: purchaseInvoiceId,+ }),+ {+ headers: { ...corsHeaders, "Content-Type": "application/json" },+ status: 201,+ }+ );+ } catch (err) {+ console.error(err);+ return new Response(JSON.stringify(err), {+ headers: { ...corsHeaders, "Content-Type": "application/json" },+ status: 500,+ });+ }+});diff --git a/packages/database/supabase/functions/create-purchase-invoice-from-receipt/index.ts b/packages/database/supabase/functions/create-purchase-invoice-from-receipt/index.tsnew file mode 100644index 0000000000..ea29803b86--- /dev/null+++ b/packages/database/supabase/functions/create-purchase-invoice-from-receipt/index.ts@@ -0,0 +1,37 @@+import { serve } from "https://deno.land/[email protected]/http/server.ts";+import { DB, getConnectionPool, getDatabaseClient } from "../lib/database.ts";++import { corsHeaders } from "../lib/headers.ts";+import { getSupabaseServiceRole } from "../lib/supabase.ts";++const pool = getConnectionPool(1);+const db = getDatabaseClient<DB>(pool);++serve(async (req: Request) => {+ if (req.method === "OPTIONS") {+ return new Response("ok", { headers: corsHeaders });+ }+ const { id } = await req.json();++ try {+ if (!id) throw new Error("Payload is missing id");++ const client = getSupabaseServiceRole(req.headers.get("Authorization"));+ await db.transaction().execute(async (trx) => {});++ return new Response(+ JSON.stringify({+ id: "abc",+ }),+ {+ headers: { ...corsHeaders, "Content-Type": "application/json" },+ }+ );+ } catch (err) {+ console.error(err);+ return new Response(JSON.stringify(err), {+ headers: { ...corsHeaders, "Content-Type": "application/json" },+ status: 500,+ });+ }+});diff --git a/packages/database/supabase/functions/lib/database.ts b/packages/database/supabase/functions/lib/database.tsindex 2d126ecb81..0a57586b10 100644--- a/packages/database/supabase/functions/lib/database.ts+++ b/packages/database/supabase/functions/lib/database.ts@@ -4,7 +4,7 @@ import {PostgresAdapter,PostgresIntrospector,PostgresQueryCompiler,-} from "https://esm.sh/[email protected]";+} from "https://esm.sh/[email protected]";import { Database } from "../../../src/types.ts";import { PostgresDriver } from "../lib/driver.ts";diff --git a/packages/database/supabase/functions/lib/driver.ts b/packages/database/supabase/functions/lib/driver.tsindex cd398f9dca..d929aee336 100644--- a/packages/database/supabase/functions/lib/driver.ts+++ b/packages/database/supabase/functions/lib/driver.ts@@ -8,13 +8,13 @@ import type {PostgresCursorConstructor,QueryResult,TransactionSettings,-} from "https://esm.sh/[email protected]";-import { CompiledQuery } from "https://esm.sh/[email protected]";+} from "https://esm.sh/[email protected]";+import { CompiledQuery } from "https://esm.sh/[email protected]";import {freeze,isFunction,-} from "https://esm.sh/[email protected]/dist/esm/util/object-utils.js";-import { extendStackTrace } from "https://esm.sh/[email protected]/dist/esm/util/stack-trace-utils.js";+} from "https://esm.sh/[email protected]/dist/esm/util/object-utils.js";+import { extendStackTrace } from "https://esm.sh/[email protected]/dist/esm/util/stack-trace-utils.js";export interface PostgresDialectConfig {pool: Pool | (() => Promise<Pool>);diff --git a/packages/database/supabase/functions/lib/utils.ts b/packages/database/supabase/functions/lib/utils.tsnew file mode 100644index 0000000000..56aa76f75c--- /dev/null+++ b/packages/database/supabase/functions/lib/utils.ts@@ -0,0 +1,24 @@+// used to generate sequences+export const interpolateSequenceDate = (value?: string | null) => {+ // replace all instances of %{year} with the current year+ if (!value) return "";+ let result = value;++ if (result.includes("%{")) {+ const date = new Date();+ const year = date.getFullYear();+ const month = date.getMonth() + 1;+ const day = date.getDate();+ const hours = date.getHours();+ const seconds = date.getSeconds();++ result = result.replace(/%{yyyy}/g, year.toString());+ result = result.replace(/%{yy}/g, year.toString().slice(-2));+ result = result.replace(/%{mm}/g, month.toString().padStart(2, "0"));+ result = result.replace(/%{dd}/g, day.toString().padStart(2, "0"));+ result = result.replace(/%{hh}/g, hours.toString().padStart(2, "0"));+ result = result.replace(/%{ss}/g, seconds.toString().padStart(2, "0"));+ }++ return result;+};diff --git a/packages/database/supabase/functions/post-receipt/index.ts b/packages/database/supabase/functions/post-receipt/index.tsindex 9dd9c31750..ace853b987 100644--- a/packages/database/supabase/functions/post-receipt/index.ts+++ b/packages/database/supabase/functions/post-receipt/index.ts@@ -1,5 +1,5 @@import { serve } from "https://deno.land/[email protected]/http/server.ts";-import { format } from "https://deno.land/[email protected]/datetime/mod.ts";+import { format } from "https://deno.land/[email protected]/datetime/mod.ts";import type { SupabaseClient } from "https://esm.sh/@supabase/[email protected]";import type { Database } from "../../../src/types.ts";import { DB, getConnectionPool, getDatabaseClient } from "../lib/database.ts";@@ -14,10 +14,12 @@ serve(async (req: Request) => {if (req.method === "OPTIONS") {return new Response("ok", { headers: corsHeaders });}+const { receiptId } = await req.json();+ const today = format(new Date(), "yyyy-MM-dd");try {- if (!receiptId) throw new Error("No receiptId provided");+ if (!receiptId) throw new Error("Payload is missing receiptId");const client = getSupabaseServiceRole(req.headers.get("Authorization"));@@ -230,10 +232,26 @@ serve(async (req: Request) => {.execute();}+ const areAllLinesReceived = Object.values(+ purchaseOrderLineUpdates+ ).every((line) => line.receivedComplete);++ const isInvoiced = purchaseOrder.data.status === "To Receive";++ if (areAllLinesReceived) {+ await trx+ .updateTable("purchaseOrder")+ .set({+ status: isInvoiced ? "Completed" : "To Invoice",+ })+ .where("id", "=", purchaseOrder.data.id)+ .execute();+ }+await trx.updateTable("purchaseOrderDelivery").set({- deliveryDate: format(new Date(), "yyyy-MM-dd"),+ deliveryDate: today,locationId: receipt.data.locationId,}).where("id", "=", receipt.data.sourceDocumentId)@@ -250,7 +268,7 @@ serve(async (req: Request) => {.values({accountingPeriodId,description: `Purchase Receipt ${receipt.data.receiptId}`,- postingDate: format(new Date(), "yyyy-MM-dd"),+ postingDate: today,}).returning(["id"]).execute();@@ -321,7 +339,7 @@ serve(async (req: Request) => {.updateTable("receipt").set({status: "Posted",- postingDate: format(new Date(), "yyyy-MM-dd"),+ postingDate: today,}).where("id", "=", receiptId).execute();diff --git a/packages/database/supabase/functions/shared/get-accounting-period.ts b/packages/database/supabase/functions/shared/get-accounting-period.tsindex 8c8d01e40f..4021daf7e7 100644--- a/packages/database/supabase/functions/shared/get-accounting-period.ts+++ b/packages/database/supabase/functions/shared/get-accounting-period.ts@@ -1,10 +1,14 @@import { format } from "https://deno.land/[email protected]/datetime/mod.ts";import { SupabaseClient } from "https://esm.sh/@supabase/[email protected]";-import { Kysely } from "https://esm.sh/[email protected]";+import { Kysely } from "https://esm.sh/[email protected]";import { Database } from "../../../src/types.ts";import { DB } from "../lib/database.ts";// TODO: refactor to use @internationalized/date when npm:<package>@<version> is supported+const isLeapYear = (year: number) => {+ return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;+};+const daysInMonths: Record<number, number> = {1: 31,2: 28,@@ -73,10 +77,14 @@ export async function getCurrentAccountingPeriod<T>(const year = new Date().getFullYear();const month = new Date().getMonth() + 1;const startDate = `${year}-${month.toString().padStart(2, "0")}-01`;- const endDate = `${year}-${month.toString().padStart(2, "0")}-${- daysInMonths[month - 1]+ let endDate = `${year}-${month.toString().padStart(2, "0")}-${+ daysInMonths[month]}`;+ if (month === 2 && isLeapYear(year)) {+ endDate = `${year}-${month.toString().padStart(2, "0")}-29`;+ }+await trx.updateTable("accountingPeriod").set({ status: "Inactive" })diff --git a/packages/database/supabase/functions/shared/get-next-sequence.ts b/packages/database/supabase/functions/shared/get-next-sequence.tsnew file mode 100644index 0000000000..427e199f5e--- /dev/null+++ b/packages/database/supabase/functions/shared/get-next-sequence.ts@@ -0,0 +1,33 @@+import { Transaction } from "https://esm.sh/[email protected]";+import { DB } from "../lib/database.ts";+import { interpolateSequenceDate } from "../lib/utils.ts";++export async function getNextSequence(trx: Transaction<DB>, tableName: string) {+ // get current purchase invoice sequence number+ const sequence = await trx+ .selectFrom("sequence")+ .selectAll()+ .where("table", "=", tableName)+ .executeTakeFirstOrThrow();++ const { prefix, suffix, next, size, step } = sequence;+ if (!Number.isInteger(step)) throw new Error("Next is not an integer");+ if (!Number.isInteger(step)) throw new Error("Step is not an integer");+ if (!Number.isInteger(size)) throw new Error("Size is not an integer");++ const nextValue = next! + step!;+ const nextSequence = nextValue.toString().padStart(size!, "0");+ const derivedPrefix = interpolateSequenceDate(prefix);+ const derivedSuffix = interpolateSequenceDate(suffix);++ await trx+ .updateTable("sequence")+ .set({+ next: nextValue,+ updatedBy: "system",+ })+ .where("table", "=", "purchaseInvoice")+ .execute();++ return `${derivedPrefix}${nextSequence}${derivedSuffix}`;+}diff --git a/packages/database/supabase/migrations/20230123004612_suppliers-and-customers.sql b/packages/database/supabase/migrations/20230123004612_suppliers-and-customers.sqlindex 216ebfd6f2..ce8af9e5ec 100644--- a/packages/database/supabase/migrations/20230123004612_suppliers-and-customers.sql+++ b/packages/database/supabase/migrations/20230123004612_suppliers-and-customers.sql@@ -219,3 +219,5 @@ CREATE TABLE "customerAccount" ();CREATE INDEX "customerAccount_customerId_index" ON "customerAccount"("customerId");++diff --git a/packages/database/supabase/migrations/20230126050441_rbac.sql b/packages/database/supabase/migrations/20230126050441_abac.sqlsimilarity index 100%rename from packages/database/supabase/migrations/20230126050441_rbac.sqlrename to packages/database/supabase/migrations/20230126050441_abac.sqlindex c4f5be86cd..8cc6be6264 100644--- a/packages/database/supabase/migrations/20230126050441_rbac.sql+++ b/packages/database/supabase/migrations/20230126050441_abac.sql@@ -292,7 +292,6 @@ CREATE POLICY "Employees with sales_delete can delete customer contacts" ON "cusFOR DELETEUSING (coalesce(get_my_claim('sales_delete')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);--- supplierTypeALTER TABLE "supplierType" ENABLE ROW LEVEL SECURITY;@@ -400,3 +399,4 @@ CREATE POLICY "Suppliers with purchasing_update can update their supplier contacCREATE POLICY "Employees with purchasing_delete can delete supplier contacts" ON "supplierContact"FOR DELETEUSING (coalesce(get_my_claim('purchasing_delete')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);+diff --git a/packages/database/supabase/migrations/20230510035345_purchasing.sql b/packages/database/supabase/migrations/20230510035345_purchasing.sqlindex 53b4aff880..9715988281 100644--- a/packages/database/supabase/migrations/20230510035345_purchasing.sql+++ b/packages/database/supabase/migrations/20230510035345_purchasing.sql@@ -143,7 +143,6 @@ CREATE TABLE "shippingTerm" (CREATE TYPE "purchaseOrderType" AS ENUM (- 'Draft','Purchase','Return');@@ -410,16 +409,6 @@ CREATE OR REPLACE VIEW "purchaseOrders" ASLEFT JOIN "user" u2 ON u2."id" = p."updatedBy"LEFT JOIN "user" u3 ON u3."id" = p."closedBy";-ALTER TABLE "supplier"- ADD COLUMN "defaultCurrencyCode" TEXT,- ADD COLUMN "defaultPaymentTermId" TEXT,- ADD COLUMN "defaultShippingMethodId" TEXT,- ADD COLUMN "defaultShippingTermId" TEXT;--ALTER TABLE "supplier"- ADD CONSTRAINT "supplier_defaultPaymentTermId_fkey" FOREIGN KEY ("defaultPaymentTermId") REFERENCES "paymentTerm" ("id") ON DELETE SET NULL,- ADD CONSTRAINT "supplier_defaultShippingMethodId_fkey" FOREIGN KEY ("defaultShippingMethodId") REFERENCES "shippingMethod" ("id") ON DELETE SET NULL,- ADD CONSTRAINT "supplier_defaultShippingTermId_fkey" FOREIGN KEY ("defaultShippingTermId") REFERENCES "shippingTerm" ("id") ON DELETE SET NULL;CREATE OR REPLACE VIEW "purchaseOrderSuppliers" ASSELECT DISTINCTdiff --git a/packages/database/supabase/migrations/20230525025310_sequences.sql b/packages/database/supabase/migrations/20230525025310_sequences.sqlindex 432d729e89..59dc1c82cf 100644--- a/packages/database/supabase/migrations/20230525025310_sequences.sql+++ b/packages/database/supabase/migrations/20230525025310_sequences.sql@@ -1,15 +1,27 @@CREATE TABLE "sequence" (+ "id" TEXT GENERATED ALWAYS AS (+ CASE WHEN prefix IS NULL AND suffix IS NULL THEN+ repeat('0', "size")+ WHEN prefix IS NULL THEN+ repeat('0', "size") || suffix+ WHEN suffix IS NULL THEN+ prefix || repeat('0', "size")+ ELSE+ prefix || repeat('0', "size") || suffix+ END+ )+ STORED,"table" TEXT NOT NULL,"name" TEXT NOT NULL,"prefix" TEXT,"suffix" TEXT,- "next" BIGINT NOT NULL DEFAULT 1,+ "next" INTEGER NOT NULL DEFAULT 1,"size" INTEGER NOT NULL DEFAULT 5,"step" INTEGER NOT NULL DEFAULT 1,"updatedAt" TIMESTAMP WITH TIME ZONE,"updatedBy" TEXT,- CONSTRAINT "sequence_pkey" PRIMARY KEY ("table"),+ CONSTRAINT "sequence_pkey" PRIMARY KEY ("id"),CONSTRAINT "sequence_next_check" CHECK ("next" >= 0),CONSTRAINT "sequence_size_check" CHECK ("size" >= 1),CONSTRAINT "sequence_step_check" CHECK ("step" >= 1),diff --git a/packages/database/supabase/migrations/20230923083559_customer-details.sql b/packages/database/supabase/migrations/20230923083559_customer-details.sqldeleted file mode 100644index c07073edbc..0000000000--- a/packages/database/supabase/migrations/20230923083559_customer-details.sql+++ /dev/null@@ -1,10 +0,0 @@-ALTER TABLE "customer"- ADD COLUMN "defaultCurrencyCode" TEXT,- ADD COLUMN "defaultPaymentTermId" TEXT,- ADD COLUMN "defaultShippingMethodId" TEXT,- ADD COLUMN "defaultShippingTermId" TEXT;--ALTER TABLE "customer"- ADD CONSTRAINT "customer_defaultPaymentTermId_fkey" FOREIGN KEY ("defaultPaymentTermId") REFERENCES "paymentTerm" ("id") ON DELETE SET NULL,- ADD CONSTRAINT "customer_defaultShippingMethodId_fkey" FOREIGN KEY ("defaultShippingMethodId") REFERENCES "shippingMethod" ("id") ON DELETE SET NULL,- ADD CONSTRAINT "customer_defaultShippingTermId_fkey" FOREIGN KEY ("defaultShippingTermId") REFERENCES "shippingTerm" ("id") ON DELETE SET NULL;diff --git a/packages/database/supabase/migrations/20230924004608_accounts-payable.sql b/packages/database/supabase/migrations/20230924004608_accounts-payable.sqlindex 43a89e53e4..e20150aede 100644--- a/packages/database/supabase/migrations/20230924004608_accounts-payable.sql+++ b/packages/database/supabase/migrations/20230924004608_accounts-payable.sql@@ -15,12 +15,15 @@ CREATE TABLE "purchaseInvoice" ("status" "purchaseInvoiceStatus" NOT NULL DEFAULT 'Draft',"supplierId" TEXT,"supplierReference" TEXT,- "supplierContactId" TEXT,+ "invoiceSupplierId" TEXT,+ "invoiceSupplierLocationId" TEXT,+ "invoiceSupplierContactId" TEXT,+ "paymentTermId" TEXT,+ "currencyCode" TEXT NOT NULL,+ "exchangeRate" NUMERIC(10, 4) NOT NULL DEFAULT 1,"dateIssued" DATE,"dateDue" DATE,"datePaid" DATE,- "currencyCode" TEXT NOT NULL,- "exchangeRate" NUMERIC(10, 4) NOT NULL DEFAULT 1,"subtotal" NUMERIC(10, 2) NOT NULL DEFAULT 0,"totalDiscount" NUMERIC(10, 2) NOT NULL DEFAULT 0,"totalAmount" NUMERIC(10, 2) NOT NULL DEFAULT 0,@@ -33,7 +36,10 @@ CREATE TABLE "purchaseInvoice" (CONSTRAINT "purchaseInvoice_pkey" PRIMARY KEY ("id"),CONSTRAINT "purchaseInvoice_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier" ("id"),- CONSTRAINT "purchaseInvoice_supplierContactId_fkey" FOREIGN KEY ("supplierContactId") REFERENCES "supplierContact" ("id"),+ CONSTRAINT "purchaseInvoice_invoiceSupplierId_fkey" FOREIGN KEY ("invoiceSupplierId") REFERENCES "supplier" ("id"),+ CONSTRAINT "purchaseInvoice_invoiceSupplierLocationId_fkey" FOREIGN KEY ("invoiceSupplierLocationId") REFERENCES "supplierLocation" ("id"),+ CONSTRAINT "purchaseInvoice_invoiceSupplierContactId_fkey" FOREIGN KEY ("invoiceSupplierContactId") REFERENCES "supplierContact" ("id"),+ CONSTRAINT "purchaseInvoice_paymentTermId_fkey" FOREIGN KEY ("paymentTermId") REFERENCES "paymentTerm" ("id"),CONSTRAINT "purchaseInvoice_currencyCode_fkey" FOREIGN KEY ("currencyCode") REFERENCES "currency" ("code"),CONSTRAINT "purchaseInvoice_createdBy_fkey" FOREIGN KEY ("createdBy") REFERENCES "user" ("id"),CONSTRAINT "purchaseInvoice_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id")@@ -75,6 +81,8 @@ CREATE POLICY "Employees with invoicing_delete can delete AP invoices" ON "purchAND (get_my_claim('role'::text)) = '"employee"'::jsonb);++CREATE TABLE "purchaseInvoiceStatusHistory" ("id" TEXT NOT NULL DEFAULT xid(),"invoiceId" TEXT NOT NULL,@@ -105,6 +113,8 @@ CREATE TABLE "purchaseInvoiceLine" ("id" TEXT NOT NULL DEFAULT xid(),"invoiceId" TEXT NOT NULL,"invoiceLineType" "payableLineType" NOT NULL,+ "purchaseOrderId" TEXT,+ "purchaseOrderLineId" TEXT,"partId" TEXT,"accountNumber" TEXT,"assetId" TEXT,@@ -120,7 +130,9 @@ CREATE TABLE "purchaseInvoiceLine" ("updatedAt" TIMESTAMP WITH TIME ZONE,CONSTRAINT "purchaseInvoiceLines_pkey" PRIMARY KEY ("id"),- CONSTRAINT "purchaseInvoiceLines_invoiceId_fkey" FOREIGN KEY ("invoiceId") REFERENCES "purchaseInvoice" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,+ CONSTRAINT "purchaseInvoiceLines_invoiceId_fkey" FOREIGN KEY ("invoiceId") REFERENCES "purchaseInvoice" ("id") ON UPDATE CASCADE ON DELETE CASCADE,+ CONSTRAINT "purchaseInvoiceLines_purchaseOrderId_fkey" FOREIGN KEY ("purchaseOrderId") REFERENCES "purchaseOrder" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,+ CONSTRAINT "purchaseInvoiceLines_purchaseOrderLineId_fkey" FOREIGN KEY ("purchaseOrderLineId") REFERENCES "purchaseOrderLine" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,CONSTRAINT "purchaseInvoiceLines_partId_fkey" FOREIGN KEY ("partId") REFERENCES "part" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,CONSTRAINT "purchaseInvoiceLines_accountNumber_fkey" FOREIGN KEY ("accountNumber") REFERENCES "account" ("number") ON UPDATE CASCADE ON DELETE RESTRICT,-- CONSTRAINT "purchaseInvoiceLines_assetId_fkey" FOREIGN KEY ("assetId") REFERENCES "fixedAsset" ("id") ON UPDATE CASCADE ON DELETE RESTRICT,@@ -159,6 +171,62 @@ CREATE POLICY "Employees with invoicing_delete can delete AP invoice lines" ON "AND (get_my_claim('role'::text)) = '"employee"'::jsonb);+CREATE TABLE "purchaseInvoicePriceChange" (+ "id" TEXT NOT NULL DEFAULT xid(),+ "invoiceId" TEXT NOT NULL,+ "invoiceLineId" TEXT NOT NULL,+ "previousPrice" NUMERIC(10, 2) NOT NULL DEFAULT 0,+ "newPrice" NUMERIC(10, 2) NOT NULL DEFAULT 0,+ "previousQuantity" NUMERIC(10, 2) NOT NULL DEFAULT 0,+ "newQuantity" NUMERIC(10, 2) NOT NULL DEFAULT 0,+ "updatedBy" TEXT NOT NULL,++ CONSTRAINT "purchaseInvoicePriceChange_pkey" PRIMARY KEY ("id"),+ CONSTRAINT "purchaseInvoicePriceChange_invoiceId_fkey" FOREIGN KEY ("invoiceId") REFERENCES "purchaseInvoice" ("id") ON UPDATE CASCADE ON DELETE CASCADE,+ CONSTRAINT "purchaseInvoicePriceChange_invoiceLineId_fkey" FOREIGN KEY ("invoiceLineId") REFERENCES "purchaseInvoiceLine" ("id") ON UPDATE CASCADE ON DELETE CASCADE,+ CONSTRAINT "purchaseInvoicePriceChange_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user" ("id") ON UPDATE CASCADE ON DELETE RESTRICT+);++ALTER TABLE "purchaseInvoicePriceChange" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with invoicing_view can view AP invoice price changes" ON "purchaseInvoicePriceChange"+ FOR SELECT+ USING (+ coalesce(get_my_claim('invoicing_view')::boolean,false)+ AND (get_my_claim('role'::text)) = '"employee"'::jsonb+ );++CREATE OR REPLACE FUNCTION "purchaseInvoiceLine_update_price_change"()+ RETURNS TRIGGER AS $$+ BEGIN+ IF NEW."unitPrice" <> OLD."unitPrice" OR NEW."quantity" <> OLD."quantity" THEN+ INSERT INTO "purchaseInvoicePriceChange" (+ "invoiceId",+ "invoiceLineId",+ "previousPrice",+ "newPrice",+ "previousQuantity",+ "newQuantity",+ "updatedBy"+ ) VALUES (+ NEW."invoiceId",+ NEW."id",+ OLD."unitPrice",+ NEW."unitPrice",+ OLD."quantity",+ NEW."quantity",+ NEW."updatedBy"+ );+ END IF;+ RETURN NEW;+ END;+ $$ LANGUAGE plpgsql SECURITY DEFINER;++CREATE TRIGGER "purchaseInvoiceLine_update_price_change"+ AFTER UPDATE ON "purchaseInvoiceLine"+ FOR EACH ROW+ EXECUTE PROCEDURE "purchaseInvoiceLine_update_price_change"();+CREATE TABLE "purchasePayment" ("id" TEXT NOT NULL DEFAULT xid(),"paymentId" TEXT NOT NULL,@@ -237,10 +305,13 @@ CREATE OR REPLACE VIEW "purchaseInvoices" ASpi."invoiceId",pi."supplierId",pi."supplierReference",- pi."supplierContactId",+ pi."invoiceSupplierId",+ pi."invoiceSupplierLocationId",+ pi."invoiceSupplierContactId",pi."dateIssued",pi."dateDue",pi."datePaid",+ pi."paymentTermId",pi."currencyCode",pi."exchangeRate",pi."subtotal",@@ -264,7 +335,7 @@ CREATE OR REPLACE VIEW "purchaseInvoices" ASu2."fullName" AS "updatedByFullName"FROM "purchaseInvoice" piLEFT JOIN "supplier" s ON s.id = pi."supplierId"- LEFT JOIN "supplierContact" sc ON sc.id = pi."supplierContactId"+ LEFT JOIN "supplierContact" sc ON sc.id = pi."invoiceSupplierContactId"LEFT JOIN "contact" c ON c.id = sc."contactId"LEFT JOIN "user" u ON u."id" = pi."createdBy"LEFT JOIN "user" u2 ON u2."id" = pi."updatedBy";diff --git a/packages/database/supabase/migrations/20231109050239_supplier-details.sql b/packages/database/supabase/migrations/20231109050239_supplier-details.sqlnew file mode 100644index 0000000000..99290a96dc--- /dev/null+++ b/packages/database/supabase/migrations/20231109050239_supplier-details.sql@@ -0,0 +1,77 @@+++CREATE TABLE "supplierPayment" (+ "supplierId" TEXT NOT NULL,+ "invoiceSupplierId" TEXT,+ "invoiceSupplierLocationId" TEXT,+ "invoiceSupplierContactId" TEXT,+ "paymentTermId" TEXT,+ "currencyCode" TEXT,+ "updatedAt" TIMESTAMP WITH TIME ZONE,+ "updatedBy" TEXT,++ CONSTRAINT "supplierPayment_pkey" PRIMARY KEY ("supplierId"),+ CONSTRAINT "supplierPayment_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier"("id") ON UPDATE CASCADE ON DELETE CASCADE,+ CONSTRAINT "supplierPayment_invoiceSupplierId_fkey" FOREIGN KEY ("invoiceSupplierId") REFERENCES "supplier"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierPayment_invoiceSupplierLocationId_fkey" FOREIGN KEY ("invoiceSupplierLocationId") REFERENCES "supplierLocation"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierPayment_invoiceSupplierContactId_fkey" FOREIGN KEY ("invoiceSupplierContactId") REFERENCES "supplierContact"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierPayment_paymentTermId_fkey" FOREIGN KEY ("paymentTermId") REFERENCES "paymentTerm" ("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierPayment_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL+);++ALTER TABLE "supplierPayment" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with purchasing_view can view supplier payment" ON "supplierPayment"+ FOR SELECT+ USING (coalesce(get_my_claim('purchasing_view')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);++CREATE POLICY "Employees with purchasing_update can update supplier payment" ON "supplierPayment"+ FOR UPDATE+ USING (coalesce(get_my_claim('purchasing_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);+++CREATE TABLE "supplierShipping" (+ "supplierId" TEXT NOT NULL,+ "shippingSupplierId" TEXT,+ "shippingSupplierLocationId" TEXT,+ "shippingSupplierContactId" TEXT,+ "shippingTermId" TEXT,+ "shippingMethodId" TEXT,+ "updatedAt" TIMESTAMP WITH TIME ZONE,+ "updatedBy" TEXT,++ CONSTRAINT "supplierShipping_pkey" PRIMARY KEY ("supplierId"),+ CONSTRAINT "supplierShipping_supplierId_fkey" FOREIGN KEY ("supplierId") REFERENCES "supplier"("id") ON UPDATE CASCADE ON DELETE CASCADE,+ CONSTRAINT "supplierShipping_shippingSupplierId_fkey" FOREIGN KEY ("shippingSupplierId") REFERENCES "supplier"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierShipping_shippingSupplierLocationId_fkey" FOREIGN KEY ("shippingSupplierLocationId") REFERENCES "supplierLocation"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierShipping_shippingSupplierContactId_fkey" FOREIGN KEY ("shippingSupplierContactId") REFERENCES "supplierContact"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierShipping_shippingTermId_fkey" FOREIGN KEY ("shippingTermId") REFERENCES "shippingTerm" ("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierShipping_shippingMethodId_fkey" FOREIGN KEY ("shippingMethodId") REFERENCES "shippingMethod" ("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "supplierShipping_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL+);++ALTER TABLE "supplierShipping" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with purchasing_view can view supplier shipping" ON "supplierShipping"+ FOR SELECT+ USING (coalesce(get_my_claim('purchasing_view')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);++CREATE POLICY "Employees with purchasing_update can update supplier shipping" ON "supplierShipping"+ FOR UPDATE+ USING (coalesce(get_my_claim('purchasing_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);+++CREATE FUNCTION public.create_supplier_entries()+RETURNS TRIGGER AS $$+BEGIN+ INSERT INTO public."supplierPayment"("supplierId", "invoiceSupplierId")+ VALUES (new.id, new.id);+ INSERT INTO public."supplierShipping"("supplierId", "shippingSupplierId")+ VALUES (new.id, new.id);+ RETURN new;+END;+$$ LANGUAGE plpgsql SECURITY DEFINER;++CREATE TRIGGER create_supplier_entries+ AFTER INSERT on public.supplier+ FOR EACH ROW EXECUTE PROCEDURE public.create_supplier_entries();\ No newline at end of filediff --git a/packages/database/supabase/migrations/20231109050252_customer-details.sql b/packages/database/supabase/migrations/20231109050252_customer-details.sqlnew file mode 100644index 0000000000..6d8375ce6d--- /dev/null+++ b/packages/database/supabase/migrations/20231109050252_customer-details.sql@@ -0,0 +1,76 @@++CREATE TABLE "customerPayment" (+ "customerId" TEXT NOT NULL,+ "invoiceCustomerId" TEXT,+ "invoiceCustomerLocationId" TEXT,+ "invoiceCustomerContactId" TEXT,+ "paymentTermId" TEXT,+ "currencyCode" TEXT,+ "updatedAt" TIMESTAMP WITH TIME ZONE,+ "updatedBy" TEXT,++ CONSTRAINT "customerPayment_pkey" PRIMARY KEY ("customerId"),+ CONSTRAINT "customerPayment_customerId_fkey" FOREIGN KEY ("customerId") REFERENCES "customer"("id") ON UPDATE CASCADE ON DELETE CASCADE,+ CONSTRAINT "customerPayment_invoiceCustomerId_fkey" FOREIGN KEY ("invoiceCustomerId") REFERENCES "customer"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerPayment_invoiceCustomerLocationId_fkey" FOREIGN KEY ("invoiceCustomerLocationId") REFERENCES "customerLocation"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerPayment_invoiceCustomerContactId_fkey" FOREIGN KEY ("invoiceCustomerContactId") REFERENCES "customerContact"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerPayment_paymentTermId_fkey" FOREIGN KEY ("paymentTermId") REFERENCES "paymentTerm"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerPayment_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL+);+++ALTER TABLE "customerPayment" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with sales_view can view customer payment" ON "customerPayment"+ FOR SELECT+ USING (coalesce(get_my_claim('sales_view')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);++CREATE POLICY "Employees with sales_update can update customer payment" ON "customerPayment"+ FOR UPDATE+ USING (coalesce(get_my_claim('sales_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);++CREATE TABLE "customerShipping" (+ "customerId" TEXT NOT NULL,+ "shippingCustomerId" TEXT,+ "shippingCustomerLocationId" TEXT,+ "shippingCustomerContactId" TEXT,+ "shippingTermId" TEXT,+ "shippingMethodId" TEXT,+ "updatedAt" TIMESTAMP WITH TIME ZONE,+ "updatedBy" TEXT,++ CONSTRAINT "customerShipping_pkey" PRIMARY KEY ("customerId"),+ CONSTRAINT "customerShipping_customerId_fkey" FOREIGN KEY ("customerId") REFERENCES "customer"("id") ON UPDATE CASCADE ON DELETE CASCADE,+ CONSTRAINT "customerShipping_shippingCustomerId_fkey" FOREIGN KEY ("shippingCustomerId") REFERENCES "customer"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerShipping_shippingCustomerLocationId_fkey" FOREIGN KEY ("shippingCustomerLocationId") REFERENCES "customerLocation"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerShipping_shippingCustomerContactId_fkey" FOREIGN KEY ("shippingCustomerContactId") REFERENCES "customerContact"("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerShipping_shippingTermId_fkey" FOREIGN KEY ("shippingTermId") REFERENCES "shippingTerm" ("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerShipping_shippingMethodId_fkey" FOREIGN KEY ("shippingMethodId") REFERENCES "shippingMethod" ("id") ON UPDATE CASCADE ON DELETE SET NULL,+ CONSTRAINT "customerShipping_updatedBy_fkey" FOREIGN KEY ("updatedBy") REFERENCES "user"("id") ON UPDATE CASCADE ON DELETE SET NULL+);++ALTER TABLE "customerShipping" ENABLE ROW LEVEL SECURITY;++CREATE POLICY "Employees with purchasing_view can view customer shipping" ON "customerShipping"+ FOR SELECT+ USING (coalesce(get_my_claim('purchasing_view')::boolean, false) = true AND (get_my_claim('role'::text)) = '"employee"'::jsonb);++CREATE POLICY "Employees with purchasing_update can update customer shipping" ON "customerShipping"+ FOR UPDATE+ USING (coalesce(get_my_claim('purchasing_update')::boolean,false) AND (get_my_claim('role'::text)) = '"employee"'::jsonb);+++CREATE FUNCTION public.create_customer_entries()+RETURNS TRIGGER AS $$+BEGIN+ INSERT INTO public."customerPayment"("customerId", "invoiceCustomerId")+ VALUES (new.id, new.id);+ INSERT INTO public."customerShipping"("customerId", "shippingCustomerId")+ VALUES (new.id, new.id);+ RETURN new;+END;+$$ LANGUAGE plpgsql SECURITY DEFINER;++CREATE TRIGGER create_customer_entries+ AFTER INSERT on public.customer+ FOR EACH ROW EXECUTE PROCEDURE public.create_customer_entries();\ No newline at end of filediff --git a/packages/database/supabase/seed.sql b/packages/database/supabase/seed.sqlindex e69de29bb2..469b3ddfb3 100644--- a/packages/database/supabase/seed.sql+++ b/packages/database/supabase/seed.sql@@ -0,0 +1,318 @@+-- users++INSERT INTO "user" ("id", "email", "firstName", "lastName")+VALUES ('system', '[email protected]', 'System', 'Operation');++-- currencies++INSERT INTO "currency" ("name", "code", "symbol", "exchangeRate", "isBaseCurrency", "createdBy")+VALUES ('US Dollar', 'USD', '$', 1.0000, true, 'system');++-- attribute types+++INSERT INTO "attributeDataType" ("label", "isBoolean", "isDate", "isList", "isNumeric", "isText", "isUser")+VALUES+ ('Yes/No', true, false, false, false, false, false),+ ('Date', false, true, false, false, false, false),+ ('List', false, false, true, false, false, false),+ ('Numeric', false, false, false, true, false, false),+ ('Text', false, false, false, false, true, false),+ ('User', false, false, false, false, false, true);+++-- supplier status++INSERT INTO "supplierStatus" ("name") VALUES ('Active'), ('Inactive'), ('Pending'), ('Rejected');++-- customer status++INSERT INTO "customerStatus" ("name") VALUES ('Active'), ('Inactive'), ('Prospect'), ('Lead'), ('On Hold'), ('Cancelled'), ('Archived');++-- unit of measure++INSERT INTO "unitOfMeasure" ("code", "name", "createdBy")+VALUES+( 'EA', 'Each', 'system'),+( 'PCS', 'Pieces', 'system');++-- payment terms++INSERT INTO "paymentTerm" ("name", "daysDue", "calculationMethod", "daysDiscount", "discountPercentage", "createdBy")+VALUES+ ('Net 15', 15, 'Net', 0, 0, 'system'),+ ('Net 30', 30, 'Net', 0, 0, 'system'),+ ('Net 50', 50, 'Net', 0, 0, 'system'),+ ('Net 60', 60, 'Net', 0, 0, 'system'),+ ('Net 90', 90, 'Net', 0, 0, 'system'),+ ('1% 10 Net 30', 30, 'Net', 10, 1, 'system'),+ ('2% 10 Net 30', 30, 'Net', 10, 2, 'system'),+ ('Due on Receipt', 0, 'Net', 0, 0, 'system'),+ ('Net EOM 10', 10, 'End of Month', 0, 0, 'system');++-- sequences++INSERT INTO "sequence" ("table", "name", "prefix", "suffix", "next", "size", "step")+VALUES+ ('purchaseOrder', 'Purchase Order', 'PO', NULL, 0, 6, 1),+ ('purchaseInvoice', 'Purchase Invoice', 'AP', NULL, 0, 6, 1),+ ('receipt', 'Receipt', 'RE', NULL, 0, 6, 1);++-- account categories++INSERT INTO public."accountCategory" (id, category, "incomeBalance", "normalBalance", "createdBy")+VALUES+ ('cjgo71si60lg1aoj5p40', 'Bank', 'Balance Sheet', 'Credit', 'system'),+ ('cjgo71si60lg1aoj5p4g', 'Accounts Receivable', 'Balance Sheet', 'Credit', 'system'),+ ('cjgo71si60lg1aoj5p50', 'Inventory', 'Balance Sheet', 'Debit', 'system'),+ ('cjgo71si60lg1aoj5p5g', 'Other Current Asset', 'Balance Sheet', 'Debit', 'system'),+ ('cjgo71si60lg1aoj5p60', 'Fixed Asset', 'Balance Sheet', 'Debit', 'system'),+ ('cjgo71si60lg1aoj5p6g', 'Accumulated Depreciation', 'Balance Sheet', 'Credit', 'system'),+ ('cjgo71si60lg1aoj5p70', 'Other Asset', 'Balance Sheet', 'Debit', 'system'),+ ('cjgo71si60lg1aoj5p7g', 'Accounts Payable', 'Balance Sheet', 'Debit', 'system'),+ ('cjgo71si60lg1aoj5p80', 'Other Current Liability', 'Balance Sheet', 'Debit', 'system'),+ ('cjgo71si60lg1aoj5p8g', 'Long Term Liability', 'Balance Sheet', 'Debit', 'system'),+ ('cjgo71si60lg1aoj5p90', 'Equity - No Close', 'Balance Sheet', 'Credit', 'system'),+ ('cjgo71si60lg1aoj5p9g', 'Equity - Close', 'Balance Sheet', 'Credit', 'system'),+ ('cjgo71si60lg1aoj5pa0', 'Retained Earnings', 'Balance Sheet', 'Credit', 'system'),+ ('cjgo71si60lg1aoj5pag', 'Income', 'Income Statement', 'Credit', 'system'),+ ('cjgo71si60lg1aoj5pb0', 'Cost of Goods Sold', 'Income Statement', 'Debit', 'system'),+ ('cjgo71si60lg1aoj5pbg', 'Expense', 'Income Statement', 'Debit', 'system'),+ ('cjgo71si60lg1aoj5pc0', 'Other Income', 'Income Statement', 'Credit', 'system'),+ ('cjgo71si60lg1aoj5pcg', 'Other Expense', 'Income Statement', 'Debit', 'system');++-- accounts++INSERT INTO public.account+ (number, name, type, "accountCategoryId", "accountSubcategoryId", "incomeBalance", "normalBalance", "consolidatedRate", "directPosting", active, "createdBy")+VALUES+ ('10000', 'Income Statement', 'Begin Total', 'cjgo71si60lg1aoj5pag', NULL, 'Income Statement', 'Both', 'Average', false, true, 'system'),+ ('11000', 'Revenue', 'Begin Total', 'cjgo71si60lg1aoj5pag', NULL, 'Income Statement', 'Credit', 'Average', false, true, 'system'),+ ('11210', 'Sales', 'Posting', 'cjgo71si60lg1aoj5pag', NULL, 'Income Statement', 'Credit', 'Average', true, true, 'system'),+ ('11600', 'Sales Discounts', 'Posting', 'cjgo71si60lg1aoj5pag', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('19999', 'Revenue, Total', 'End Total', 'cjgo71si60lg1aoj5pag', NULL, 'Income Statement', 'Credit', 'Average', false, true, 'system'),+ ('20000', 'Costs of Goods Sold', 'Begin Total', 'cjgo71si60lg1aoj5pb0', NULL, 'Income Statement', 'Debit', 'Average', false, true, 'system'),+ ('21210', 'Cost of Goods Sold', 'Posting', 'cjgo71si60lg1aoj5pb0', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('21410', 'Purchases', 'Posting', 'cjgo71si60lg1aoj5pb0', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('21590', 'Direct Cost Applied', 'Posting', 'cjgo71si60lg1aoj5pb0', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('21600', 'Overhead Applied', 'Posting', 'cjgo71si60lg1aoj5pb0', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('21610', 'Purchase Variance', 'Posting', 'cjgo71si60lg1aoj5pb0', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('21700', 'Inventory Adjustment', 'Posting', 'cjgo71si60lg1aoj5pb0', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('24999', 'Costs of Goods Sold, Total', 'End Total', 'cjgo71si60lg1aoj5pbg', NULL, 'Income Statement', 'Debit', 'Average', false, true, 'system'),+ ('25000', 'Direct Capacity Cost', 'Begin Total', 'cjgo71si60lg1aoj5pbg', NULL, 'Income Statement', 'Debit', 'Average', false, true, 'system'),+ ('25705', 'Material Variance', 'Posting', 'cjgo71si60lg1aoj5pbg', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('25710', 'Capacity Variance', 'Posting', 'cjgo71si60lg1aoj5pbg', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('25720', 'Overhead Accounts', 'Posting', 'cjgo71si60lg1aoj5pbg', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('47045', 'Maintenance Expense', 'Posting', 'cjgo71si60lg1aoj5pbg', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('49999', 'Direct Capacity Cost, Total', 'End Total', 'cjgo71si60lg1aoj5pbg', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('50000', 'Depreciation of Fixed Assets', 'Begin Total', 'cjgo71si60lg1aoj5pcg', NULL, 'Income Statement', 'Debit', 'Average', false, true, 'system'),+ ('50015', 'Depreciation Expense', 'Posting', 'cjgo71si60lg1aoj5pcg', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('50040', 'Gains and Losses on Disposal', 'Posting', 'cjgo71si60lg1aoj5pcg', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('50045', 'Service Charge Account', 'Posting', 'cjgo71si60lg1aoj5pcg', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('50999', 'Depreciation of Fixed Assets, Total', 'End Total', 'cjgo71si60lg1aoj5pcg', NULL, 'Income Statement', 'Debit', 'Average', false, true, 'system'),+ ('51000', 'Interest', 'Begin Total', 'cjgo71si60lg1aoj5pcg', NULL, 'Income Statement', 'Debit', 'Average', false, true, 'system'),+ ('51110', 'Interest Account', 'Posting', 'cjgo71si60lg1aoj5pcg', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('51115', 'Supplier Payment Discounts', 'Posting', 'cjgo71si60lg1aoj5pcg', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('51120', 'Customer Payment Discounts', 'Posting', 'cjgo71si60lg1aoj5pcg', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('51235', 'Rounding Account', 'Posting', 'cjgo71si60lg1aoj5pcg', NULL, 'Income Statement', 'Debit', 'Average', true, true, 'system'),+ ('51999', 'Interest, Total', 'End Total', 'cjgo71si60lg1aoj5pcg', NULL, 'Income Statement', 'Debit', 'Average', false, true, 'system'),+ ('79999', 'Income Statement, Total', 'End Total', 'cjgo71si60lg1aoj5pag', NULL, 'Income Statement', 'Both', 'Average', true, true, 'system'),+ ('80000', 'Balance Sheet', 'Begin Total', NULL, NULL, 'Balance Sheet', 'Both', 'Average', false, true, 'system'),+ ('80001', 'Assets', 'Begin Total', NULL, NULL, 'Balance Sheet', 'Debit', 'Average', false, true, 'system'),+ ('81000', 'Fixed Assets', 'Begin Total', NULL, NULL, 'Balance Sheet', 'Debit', 'Average', false, true, 'system'),+ ('81010', 'Fixed Asset Acquisition Cost', 'Posting', 'cjgo71si60lg1aoj5p60', NULL, 'Balance Sheet', 'Debit', 'Average', true, true, 'system'),+ ('81015', 'Fixed Asset Acquisition Cost on Disposal', 'Posting', 'cjgo71si60lg1aoj5p60', NULL, 'Balance Sheet', 'Debit', 'Average', true, true, 'system'),+ ('81020', 'Accumulated Depreciation', 'Posting', 'cjgo71si60lg1aoj5p6g', NULL, 'Balance Sheet', 'Credit', 'Average', true, true, 'system'),+ ('81030', 'Fixed Asset Acquisition Depreciation on Disposal', 'Posting', 'cjgo71si60lg1aoj5p6g', NULL, 'Balance Sheet', 'Credit', 'Average', true, true, 'system'),+ ('81999', 'Fixed Assets, Total', 'End Total', NULL, NULL, 'Balance Sheet', 'Debit', 'Average', false, true, 'system'),+ ('83000', 'Current Assets', 'Begin Total', NULL, NULL, 'Balance Sheet', 'Both', 'Average', false, true, 'system'),+ ('83105', 'Inventory', 'Posting', 'cjgo71si60lg1aoj5p50', NULL, 'Balance Sheet', 'Debit', 'Average', true, true, 'system'),+ ('83120', 'Inventory Interim', 'Posting', 'cjgo71si60lg1aoj5p50', NULL, 'Balance Sheet', 'Debit', 'Average', true, true, 'system'),+ ('83125', 'Work In Progress (WIP)', 'Posting', 'cjgo71si60lg1aoj5p50', NULL, 'Balance Sheet', 'Debit', 'Average', true, true, 'system'),+ ('85005', 'Receivables', 'Posting', 'cjgo71si60lg1aoj5p4g', NULL, 'Balance Sheet', 'Credit', 'Average', true, true, 'system'),+ ('85010', 'Inventory Shipped Not Invoiced', 'Posting', 'cjgo71si60lg1aoj5p4g', NULL, 'Balance Sheet', 'Credit', 'Average', true, true, 'system'),+ ('86005', 'Bank - Cash', 'Posting', 'cjgo71si60lg1aoj5p40', NULL, 'Balance Sheet', 'Credit', 'Average', true, true, 'system'),+ ('86010', 'Bank - Local Currency', 'Posting', 'cjgo71si60lg1aoj5p40', NULL, 'Balance Sheet', 'Credit', 'Average', false, true, 'system'),+ ('86015', 'Bank - Foreign Currency', 'Posting', 'cjgo71si60lg1aoj5p40', NULL, 'Balance Sheet', 'Credit', 'Average', false, true, 'system'),+ ('87999', 'Current Assets, Total', 'End Total', NULL, NULL, 'Balance Sheet', 'Both', 'Average', false, true, 'system'),+ ('89999', 'Assets, Total', 'End Total', NULL, NULL, 'Balance Sheet', 'Debit', 'Average', false, true, 'system'),+ ('90000', 'Liabilities', 'Begin Total', NULL, NULL, 'Balance Sheet', 'Debit', 'Average', false, true, 'system'),+ ('92210', 'Prepayments', 'Posting', 'cjgo71si60lg1aoj5p80', NULL, 'Balance Sheet', 'Debit', 'Average', true, true, 'system'),+ ('93005', 'Payables', 'Posting', 'cjgo71si60lg1aoj5p7g', NULL, 'Balance Sheet', 'Debit', 'Average', true, true, 'system'),+ ('93010', 'Inventory Received Not Invoiced', 'Posting', 'cjgo71si60lg1aoj5p7g', NULL, 'Balance Sheet', 'Debit', 'Average', true, true, 'system'),+ ('94100', 'Sales Tax Payable', 'Posting', 'cjgo71si60lg1aoj5p80', NULL, 'Balance Sheet', 'Debit', 'Average', true, true, 'system'),+ ('94110', 'Purchase Tax Payable', 'Posting', 'cjgo71si60lg1aoj5p80', NULL, 'Balance Sheet', 'Debit', 'Average', true, true, 'system'),+ ('94115', 'Reverse Charge Tax Payable', 'Posting', 'cjgo71si60lg1aoj5p80', NULL, 'Balance Sheet', 'Debit', 'Average', true, true, 'system'),+ ('94999', 'Liabilities, Total', 'End Total', NULL, NULL, 'Balance Sheet', 'Debit', 'Average', false, true, 'system'),+ ('95000', 'Equity', 'Begin Total', NULL, NULL, 'Balance Sheet', 'Debit', 'Average', false, true, 'system'),+ ('95010', 'Retained Earnings', 'Posting', 'cjgo71si60lg1aoj5pa0', NULL, 'Balance Sheet', 'Credit', 'Average', false, true, 'system'),+ ('96010', 'Owner Equity', 'Posting', 'cjgo71si60lg1aoj5p90', NULL, 'Balance Sheet', 'Both', 'Average', true, true, 'system'),+ ('96999', 'Equity, Total', 'End Total', NULL, NULL, 'Balance Sheet', 'Debit', 'Average', false, true, 'system'),+ ('99999', 'Balance Sheet, Total', 'End Total', NULL, NULL, 'Balance Sheet', 'Both', 'Average', false, true, 'system');++ INSERT INTO public."accountDefault" (+ "id",+ "salesAccount",+ "salesDiscountAccount",+ "costOfGoodsSoldAccount",+ "purchaseAccount",+ "directCostAppliedAccount",+ "overheadCostAppliedAccount",+ "purchaseVarianceAccount",+ "inventoryAdjustmentVarianceAccount",+ "materialVarianceAccount",+ "capacityVarianceAccount",+ "overheadAccount",+ "maintenanceAccount",+ "assetDepreciationExpenseAccount",+ "assetGainsAndLossesAccount",+ "serviceChargeAccount",+ "interestAccount",+ "supplierPaymentDiscountAccount",+ "customerPaymentDiscountAccount",+ "roundingAccount",+ "assetAquisitionCostAccount",+ "assetAquisitionCostOnDisposalAccount",+ "accumulatedDepreciationAccount",+ "accumulatedDepreciationOnDisposalAccount",+ "inventoryAccount",+ "inventoryInterimAccrualAccount",+ "workInProgressAccount",+ "receivablesAccount",+ "inventoryShippedNotInvoicedAccount",+ "bankCashAccount",+ "bankLocalCurrencyAccount",+ "bankForeignCurrencyAccount",+ "prepaymentAccount",+ "payablesAccount",+ "inventoryReceivedNotInvoicedAccount",+ "salesTaxPayableAccount",+ "purchaseTaxPayableAccount",+ "reverseChargeSalesTaxPayableAccount",+ "retainedEarningsAccount",+ "updatedBy"+ ) VALUES (+ true,+ '11210',+ '11600',+ '21210',+ '21410',+ '21590',+ '21600',+ '21610',+ '21700',+ '25705',+ '25710',+ '25720',+ '47045',+ '50015',+ '50040',+ '50045',+ '51110',+ '51115',+ '51120',+ '51235',+ '81010',+ '81015',+ '81020',+ '81030',+ '83105',+ '83120',+ '83125',+ '85005',+ '85010',+ '86005',+ '86010',+ '86015',+ '92210',+ '93005',+ '93010',+ '94100',+ '94110',+ '94115',+ '95010',+ 'system'+ );+++INSERT INTO "postingGroupInventory" (+ "partGroupId",+ "costOfGoodsSoldAccount",+ "inventoryAccount",+ "inventoryInterimAccrualAccount",+ "inventoryReceivedNotInvoicedAccount",+ "inventoryShippedNotInvoicedAccount",+ "workInProgressAccount",+ "directCostAppliedAccount",+ "overheadCostAppliedAccount",+ "purchaseVarianceAccount",+ "inventoryAdjustmentVarianceAccount",+ "materialVarianceAccount",+ "capacityVarianceAccount",+ "overheadAccount"+) SELECT+ NULL,+ "costOfGoodsSoldAccount",+ "inventoryAccount",+ "inventoryInterimAccrualAccount",+ "inventoryReceivedNotInvoicedAccount",+ "inventoryShippedNotInvoicedAccount",+ "workInProgressAccount",+ "directCostAppliedAccount",+ "overheadCostAppliedAccount",+ "purchaseVarianceAccount",+ "inventoryAdjustmentVarianceAccount",+ "materialVarianceAccount",+ "capacityVarianceAccount",+ "overheadAccount"+FROM "accountDefault" WHERE "id" = true;++INSERT INTO "postingGroupPurchasing" (+ "partGroupId",+ "supplierTypeId",+ "purchaseAccount",+ "purchaseDiscountAccount",+ "purchaseCreditAccount",+ "purchasePrepaymentAccount",+ "purchaseTaxPayableAccount",+ "updatedBy"+) SELECT+ NULL,+ NULL,+ "purchaseAccount",+ "purchaseAccount",+ "purchaseAccount",+ "prepaymentAccount",+ "purchaseTaxPayableAccount",+ 'system'+FROM "accountDefault" WHERE "id" = true;++INSERT INTO "postingGroupSales" (+ "partGroupId",+ "customerTypeId",+ "salesAccount",+ "salesDiscountAccount",+ "salesCreditAccount",+ "salesPrepaymentAccount",+ "salesTaxPayableAccount",+ "updatedBy"+) SELECT+ NULL,+ NULL,+ "salesAccount",+ "salesDiscountAccount",+ "salesAccount",+ "prepaymentAccount",+ "salesTaxPayableAccount",+ 'system'+FROM "accountDefault" WHERE "id" = true;++INSERT INTO "fiscalYearSettings" (+ "startMonth",+ "taxStartMonth",+ "updatedBy"+) VALUES (+ 'January',+ 'January',+ 'system'+);\ No newline at end of filediff --git a/packages/eslint-config-carbon/rules/import.js b/packages/eslint-config-carbon/rules/import.jsindex b98e759d54..cb278f8aaf 100644--- a/packages/eslint-config-carbon/rules/import.js+++ b/packages/eslint-config-carbon/rules/import.js@@ -1,9 +1,10 @@// const OFF = 0;-// const WARN = 1;+const WARN = 1;const ERROR = 2;module.exports = {"import/first": ERROR,"import/no-amd": ERROR,+ "import/no-duplicates": WARN,"import/no-webpack-loader-syntax": ERROR,};diff --git a/packages/react/src/Inputs/Date/DatePicker.tsx b/packages/react/src/Inputs/Date/DatePicker.tsxindex 2d3c9950f2..d87aa8d24c 100644--- a/packages/react/src/Inputs/Date/DatePicker.tsx+++ b/packages/react/src/Inputs/Date/DatePicker.tsx@@ -1,7 +1,3 @@-import { useRef } from "react";-import { useDatePickerState } from "@react-stately/datepicker";-import { useDatePicker } from "@react-aria/datepicker";-import { MdOutlineCalendarToday, MdOutlineDoNotDisturb } from "react-icons/md";import {Box,Icon,@@ -9,14 +5,18 @@ import {InputRightElement,useOutsideClick,} from "@chakra-ui/react";-import type { DatePickerProps } from "@react-types/datepicker";import type { CalendarDate } from "@internationalized/date";+import { useDatePicker } from "@react-aria/datepicker";+import { useDatePickerState } from "@react-stately/datepicker";+import type { DatePickerProps } from "@react-types/datepicker";+import { useRef } from "react";+import { MdOutlineCalendarToday, MdOutlineDoNotDisturb } from "react-icons/md";import { FieldButton } from "./components/Button";import { Calendar } from "./components/Calendar";+import DateField from "./components/DateField";import { Popover } from "./components/Popover";import { StyledField } from "./components/StyledField";-import DateField from "./components/DateField";const DatePicker = (props: DatePickerProps<CalendarDate>) => {const state = useDatePickerState({diff --git a/packages/react/src/Inputs/Date/components/Button.tsx b/packages/react/src/Inputs/Date/components/Button.tsxindex dc1e8bcc92..2c1275aa94 100644--- a/packages/react/src/Inputs/Date/components/Button.tsx+++ b/packages/react/src/Inputs/Date/components/Button.tsx@@ -1,15 +1,21 @@-import { useRef } from "react";+import type { IconButtonProps } from "@chakra-ui/react";+import { Button, IconButton } from "@chakra-ui/react";import { useButton } from "@react-aria/button";-import { Button } from "@chakra-ui/react";import type { AriaButtonProps } from "@react-types/button";+import { useRef } from "react";-export const CalendarButton = (props: AriaButtonProps) => {+export const CalendarButton = (props: AriaButtonProps & IconButtonProps) => {const ref = useRef<HTMLButtonElement>(null);let { buttonProps } = useButton(props, ref);return (- <Button {...buttonProps} ref={ref} size="sm" variant="solid">- {props.children}- </Button>+ <IconButton+ {...buttonProps}+ ref={ref}+ size="sm"+ rounded="full"+ variant="solid"+ {...props}+ />);};diff --git a/packages/react/src/Inputs/Date/components/Calendar.tsx b/packages/react/src/Inputs/Date/components/Calendar.tsxindex de6fa23d1c..969977397a 100644--- a/packages/react/src/Inputs/Date/components/Calendar.tsx+++ b/packages/react/src/Inputs/Date/components/Calendar.tsx@@ -1,11 +1,11 @@-import { useRef } from "react";-import { useCalendarState } from "@react-stately/calendar";+import { Box, Heading } from "@chakra-ui/react";+import type { CalendarDate, DateValue } from "@internationalized/date";+import { createCalendar } from "@internationalized/date";import type { CalendarProps } from "@react-aria/calendar";import { useCalendar } from "@react-aria/calendar";-import type { DateValue } from "@internationalized/date";-import { createCalendar } from "@internationalized/date";+import { useCalendarState } from "@react-stately/calendar";+import { useMemo, useRef } from "react";import { BiChevronLeft, BiChevronRight } from "react-icons/bi";-import { Box, Icon, Heading } from "@chakra-ui/react";import { CalendarButton } from "./Button";import { CalendarGrid } from "./CalendarGrid";@@ -19,23 +19,53 @@ export const Calendar = (props: CalendarProps<DateValue>) => {});const ref = useRef<HTMLDivElement>(null);- const { calendarProps, prevButtonProps, nextButtonProps, title } =- useCalendar(props, state);+ const { calendarProps, prevButtonProps, nextButtonProps } = useCalendar(+ props,+ state+ );++ const title = useLocalizedTitle(+ state.visibleRange.start,+ state.visibleRange.end,+ state.timeZone,+ "en-US"+ );return (<div {...calendarProps} ref={ref}><Box display="flex" alignItems="center" paddingBottom="4">- <CalendarButton {...prevButtonProps}>- <Icon as={BiChevronLeft} w={6} h={6} />- </CalendarButton>+ <CalendarButton+ {...prevButtonProps}+ icon={<BiChevronLeft />}+ aria-label="Previous"+ />+<Heading as="h2" size="md" flex="1" textAlign="center">{title}</Heading>- <CalendarButton {...nextButtonProps}>- <Icon as={BiChevronRight} w={6} h={6} />- </CalendarButton>+ <CalendarButton+ {...nextButtonProps}+ icon={<BiChevronRight />}+ aria-label="Next"+ /></Box><CalendarGrid state={state} /></div>);};++function useLocalizedTitle(+ startDate: CalendarDate,+ endDate: CalendarDate,+ timeZone: string,+ locale: string+) {+ const dateFormatter = useMemo(() => {+ return new Intl.DateTimeFormat(locale, {+ month: "long",+ year: "numeric",+ });+ }, [locale]);++ return dateFormatter.format(startDate.toDate(timeZone));+}diff --git a/packages/react/src/Inputs/Date/components/CalendarCell.tsx b/packages/react/src/Inputs/Date/components/CalendarCell.tsxindex 2f2adae93b..191cfe8288 100644--- a/packages/react/src/Inputs/Date/components/CalendarCell.tsx+++ b/packages/react/src/Inputs/Date/components/CalendarCell.tsx@@ -1,12 +1,12 @@-import { useRef } from "react";-import { useCalendarCell } from "@react-aria/calendar";+import { Button, Td } from "@chakra-ui/react";import type { CalendarDate } from "@internationalized/date";import { isSameMonth } from "@internationalized/date";-import { Button, Box } from "@chakra-ui/react";+import { useCalendarCell } from "@react-aria/calendar";import type {CalendarState,RangeCalendarState,} from "@react-stately/calendar";+import { useRef } from "react";export const CalendarCell = ({state,@@ -18,24 +18,44 @@ export const CalendarCell = ({currentMonth: CalendarDate;}) => {const ref = useRef<HTMLButtonElement>(null);- const { cellProps, buttonProps, isSelected, isInvalid, formattedDate } =- useCalendarCell({ date }, state, ref);+ const {+ cellProps,+ buttonProps,+ isSelected,+ isInvalid,+ isDisabled,+ isUnavailable,+ isFocused,+ formattedDate,+ } = useCalendarCell({ date }, state, ref);const isOutsideMonth = !isSameMonth(currentMonth, date);return (- <Box as="td" {...cellProps} textAlign="center">+ <Td {...cellProps} textAlign="center" p={1} border="none"><Button{...buttonProps}ref={ref}- hidden={isOutsideMonth}size="sm"colorScheme={isInvalid ? "red" : "brand"}- variant={isSelected ? "solid" : "ghost"}- width="100%"+ variant={isSelected || isFocused ? "solid" : "ghost"}+ w={8}+ h={8}+ p={0}+ rounded="full"+ opacity={+ isOutsideMonth+ ? 0.25+ : isInvalid || isDisabled || isUnavailable+ ? 0.5+ : 1+ }+ _hover={{+ bg: isSelected || isFocused ? undefined : "gray.200",+ }}>{formattedDate}</Button>- </Box>+ </Td>);};diff --git a/packages/react/src/Inputs/Date/components/CalendarGrid.tsx b/packages/react/src/Inputs/Date/components/CalendarGrid.tsxindex 3aebe16730..f696aee8af 100644--- a/packages/react/src/Inputs/Date/components/CalendarGrid.tsx+++ b/packages/react/src/Inputs/Date/components/CalendarGrid.tsx@@ -1,11 +1,12 @@-import { useCalendarGrid } from "@react-aria/calendar";-import { getWeeksInMonth, endOfMonth } from "@internationalized/date";+import { Table, Tbody, Td, Th, Thead, Tr } from "@chakra-ui/react";import type { DateDuration } from "@internationalized/date";-import { CalendarCell } from "./CalendarCell";+import { endOfMonth, getWeeksInMonth } from "@internationalized/date";+import { useCalendarGrid } from "@react-aria/calendar";import type {CalendarState,RangeCalendarState,} from "@react-stately/calendar";+import { CalendarCell } from "./CalendarCell";const locale = "en-US"; // TODO use user's locale@@ -30,17 +31,25 @@ export const CalendarGrid = ({const weeksInMonth = getWeeksInMonth(state.visibleRange.start, locale);return (- <table {...gridProps}>- <thead {...headerProps}>- <tr>+ <Table {...gridProps}>+ <Thead {...headerProps}>+ <Tr>{weekDays.map((day, index) => (- <th key={index}>{day}</th>+ <Th+ color="gray.500"+ fontSize="sm"+ key={index}+ textAlign="center"+ px={0}+ >+ {day}+ </Th>))}- </tr>- </thead>- <tbody>+ </Tr>+ </Thead>+ <Tbody>{[...new Array(weeksInMonth).keys()].map((weekIndex) => (- <tr key={weekIndex}>+ <Tr key={weekIndex} border="none">{state.getDatesInWeek(weekIndex, startDate).map((date, i) =>@@ -52,12 +61,12 @@ export const CalendarGrid = ({currentMonth={startDate}/>) : (- <td key={i} />+ <Td key={i} />))}- </tr>+ </Tr>))}- </tbody>- </table>+ </Tbody>+ </Table>);};diff --git a/packages/react/src/Theme/theme.ts b/packages/react/src/Theme/theme.tsindex be27e49d83..f5a42315a4 100644--- a/packages/react/src/Theme/theme.ts+++ b/packages/react/src/Theme/theme.ts@@ -64,6 +64,7 @@ export const theme = {borderColor: "gray.200",borderBottomWidth: "1px",borderBottomStyle: "solid",+ letterSpacing: "tight",},footer: {borderTopWidth: "1px",@@ -88,6 +89,7 @@ export const theme = {borderBottomWidth: "1px",borderBottomStyle: "solid",marginBottom: 4,+ letterSpacing: "tight",},footer: {borderColor: "gray.200",@@ -97,6 +99,11 @@ export const theme = {},defaultProps: {},},+ Heading: {+ baseStyle: {+ letterSpacing: "tight",+ },+ },Input: {defaultProps: {borderRadius: "md",@@ -116,6 +123,9 @@ export const theme = {},Modal: {baseStyle: {+ header: {+ letterSpacing: "tight",+ },overlay: {backdropFilter: "blur(3px)",},diff --git a/shared/app/jobs/get-exchange-rates.server.ts b/shared/app/jobs/get-exchange-rates.server.tsindex 2dc86e9cda..fc45b54bbf 100644--- a/shared/app/jobs/get-exchange-rates.server.ts+++ b/shared/app/jobs/get-exchange-rates.server.ts@@ -8,7 +8,7 @@ export const job = triggerClient.defineJob({name: "Update Currency Exchange Rates",version: "0.0.1",trigger: intervalTrigger({- seconds: 60 * 12, // twice per day+ seconds: 60 * 60 * 8, // thrice per day}),run: async (payload, io, ctx) => {await io.logger.info(`💵 Exchange Rates Job: ${payload.lastTimestamp}`);diff --git a/shared/app/root.tsx b/shared/app/root.tsxindex ea8048c77f..a256b6190b 100644--- a/shared/app/root.tsx+++ b/shared/app/root.tsx@@ -32,8 +32,8 @@ export default function App() {<body><Outlet /><ScrollRestoration />- <Scripts /><LiveReload />+ <Scripts /></body></html>);diff --git a/shared/package.json b/shared/package.jsonindex f099f02c88..2061f36de0 100644--- a/shared/package.json+++ b/shared/package.json@@ -15,17 +15,17 @@},"dependencies": {"@carbon/logger": "*",- "@remix-run/dev": "~2.0.0",- "@remix-run/eslint-config": "~2.0.0",- "@remix-run/node": "~2.0.0",- "@remix-run/react": "~2.0.0",- "@remix-run/serve": "~2.0.0",- "@supabase/supabase-js": "^2.33.1",+ "@remix-run/dev": "~2.2.0",+ "@remix-run/eslint-config": "~2.2.0",+ "@remix-run/node": "~2.2.0",+ "@remix-run/react": "~2.2.0",+ "@remix-run/serve": "~2.2.0",+ "@supabase/supabase-js": "^2.38.4","@trigger.dev/react": "^2.2.2","@trigger.dev/remix": "^2.2.2","@trigger.dev/sdk": "^2.2.2","@vercel/analytics": "^1.0.2",- "@vercel/remix": "2.0.0",+ "@vercel/remix": "2.2.0","axios": "1.5.1","isbot": "latest","remix-flat-routes": "^0.5.10",diff --git a/www/components/features.tsx b/www/components/features.tsxindex c0fd3d58dc..684c73f9f6 100644--- a/www/components/features.tsx+++ b/www/components/features.tsx@@ -1,7 +1,7 @@import React from "react";import { BsLightningCharge } from "react-icons/bs";-import { GoSync } from "react-icons/go";import { GiSpeedometer } from "react-icons/gi";+import { GoSync } from "react-icons/go";import { HiCode, HiFingerPrint } from "react-icons/hi";import { TbBuildingFactory2 } from "react-icons/tb";@@ -38,7 +38,7 @@ function Features() {<div className="grid grid-cols-2 gap-6 my-12 sm:grid-cols-3 ">{features.map(({ icon: Icon, ...feature }, i) => (<div- className="flex items-center space-x-4"+ className="flex items-center p-8 space-x-4 bg-black/[0.07] hover:bg-black/10 dark:bg-zinc-900 dark:hover:bg-zinc-800/50 sm:-inset-x-6 sm:rounded"key={feature.name.split(" ").join("-")}><div>diff --git a/www/components/pages/Home.tsx b/www/components/pages/Home.tsxindex 70729b1ba3..7e1a2c1e66 100644--- a/www/components/pages/Home.tsx+++ b/www/components/pages/Home.tsx@@ -12,17 +12,16 @@ export default function Home() {content="Carbon is an open-source, high-performance ERP"/></Head>-- <div className="px-4 py-16 mx-auto sm:pt-20 sm:pb-24 lg:max-w-7xl lg:pt-24">+ <div className="absolute inset-0 overflow-hidden">+ <div className="jumbo absolute -inset-[10px] opacity-50"></div>+ </div>+ <div className="relative px-4 py-16 mx-auto sm:pt-20 sm:pb-24 lg:max-w-7xl lg:pt-24"><div className="flex flex-col justify-between text-center"><div><h1 className="max-w-5xl mx-auto nx-text-6xl font-extrabold tracking-tighter leading-[1.1] text-6xl sm:text-7xl lg:nx-text-8xl xl:nx-text-8xl">- ERP - <span className="pr-1 inline-block text-transparent bg-clip-text bg-gradient-to-r from-green-500 to-blue-500 ">- for the builders- </span>+ ERP for the builders</h1>- <p className="mt-6 nx-text-xl font-medium leading-tight text-gray-400 sm:nx-text-2xl md:nx-text-3xl lg:nx-text-4xl">+ <p className="mt-6 nx-text-xl font-medium leading-tight text-black/60 dark:text-white/60 sm:nx-text-2xl md:nx-text-3xl lg:nx-text-4xl">Carbon ERP is an open-source, high performance ERP</p></div>@@ -44,7 +43,7 @@ export default function Home() {<h2 className="nx-text-4xl font-extrabold tracking-tight lg:nx-text-5xl xl:nx-text-6xl lg:text-center dark:text-white">Fully customizable and extensible</h2>- <p className="mx-auto mt-4 text-lg font-medium text-gray-400 lg:max-w-3xl lg:text-xl lg:text-center">+ <p className="mx-auto mt-4 text-lg font-medium text-black/60 dark:text-white/60 lg:max-w-3xl lg:text-xl lg:text-center">We've taken the best of modern, open-source technology and combinedit into a lightning-fast, easy-to-use, open-source ERP system.</p>diff --git a/www/pages/_app.tsx b/www/pages/_app.tsxindex e844ae9c5d..7c2cacf201 100644--- a/www/pages/_app.tsx+++ b/www/pages/_app.tsx@@ -1,8 +1,13 @@-import React from "react";import type { AppProps } from "next/app";-import "../styles.css";import "nextra-theme-docs/style.css";+import React from "react";+import "../styles.css";export default function Docs({ Component, pageProps }: AppProps) {+ React.useEffect(() => {+ const footer = document.querySelector("footer");+ if (footer) footer.classList.add("relative");+ }, []);+return <Component {...pageProps} />;}diff --git a/www/pages/docs/core-concepts/writing.mdx b/www/pages/docs/core-concepts/writing.mdxindex 0e98a2fe82..2cdc79f349 100644--- a/www/pages/docs/core-concepts/writing.mdx+++ b/www/pages/docs/core-concepts/writing.mdx@@ -146,7 +146,7 @@ The pattern for the transaction looks like this:```tsimport { serve } from "https://deno.land/[email protected]/http/server.ts";-import { format } from "https://deno.land/[email protected]/datetime/mod.ts";+import { format } from "https://deno.land/[email protected]/datetime/mod.ts";import type { SupabaseClient } from "https://esm.sh/@supabase/[email protected]";import type { Database } from "../../../src/types.ts";diff --git a/www/pages/docs/getting-started.mdx b/www/pages/docs/getting-started.mdxindex c69848477a..4089f15d2a 100644--- a/www/pages/docs/getting-started.mdx+++ b/www/pages/docs/getting-started.mdx@@ -7,7 +7,7 @@ description: Carbon is a high-performance, open-source ERPBefore getting started with development, it's good to have a basic understanding of our [tech stack](/docs/tech-stack).-You'll also need to have [Docker installed](https://docs.docker.com/desktop/install/mac-install/) on your system since this monorepo uses the Docker for local development.+You'll need to have [node >= 18](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) and [Docker](https://docs.docker.com/desktop/install/mac-install/) installed on your system since this monorepo uses the Docker for local development.After running the steps below you should be able to access the following apps/containers locally:@@ -23,46 +23,47 @@ After running the steps below you should be able to access the following apps/coFirst download and initialize the repository dependencies.```bash-$ nvm use # use node v20-$ npm install # install dependencies-$ npm run db:start # pull and run the containers+git clone https://github.com/barbinbrad/carbon+cd carbon+npm install # install dependencies+npm run db:start # pull and run the containers```Copy the environment variables from the initialization script to an `.env` file:-```-$ cp ./.env.example ./.env+```bash+cp ./.env.example ./.env```After you've set the enviroment variables to the output of `npm run db:start` you can run```bash-$ npm run db:build # run db migrations and seed script-$ npm run build # build the packages+npm run db:build # run db migrations and seed script+npm run build # build the packages```Finally, start the apps and packages:```bash-$ npm run dev # npm run dev in all apps & packages+npm run dev # npm run dev in all apps & packages```To kill the database containers in a non-recoverable way, you can run:```bash-$ npm run db:kill # stop and delete all database containers+npm run db:kill # stop and delete all database containers```To restart and reseed the database, you can run:```bash-$ npm run db:build # runs db:kill, db:start, and setup+npm run db:build # runs db:kill, db:start, and setup```To run a particular application, use the `-w workspace` flag.For example, to run test command in the `@carbon/react` package you can run:-```-$ npm run test -w @carbon/react+```bash+npm run test -w @carbon/react```diff --git a/www/pages/docs/tech-stack.mdx b/www/pages/docs/tech-stack.mdxindex 2dcc8c2159..d086389b78 100644--- a/www/pages/docs/tech-stack.mdx+++ b/www/pages/docs/tech-stack.mdx@@ -9,11 +9,11 @@ Our tech stack aims to be as simple as possible, while still being powerful enou- [TypeScript](https://www.typescriptlang.org) is the programming language- [React](https://reactjs.org) for the frontend-- [Chakra UI](https://chakra-ui.com) for the UI components- [Remix](https://remix.run) for the routing and compiling- [Supabase](https://supabase.io) for the database and authentication+- [Chakra UI](https://chakra-ui.com) for the UI components-We also use [Redis](https://redis.io) for caching and [Vercel](https://vercel.com) for hosting, though in most cases you probably won't need those.+We also use [Redis](https://redis.io) for caching and queues and [Vercel](https://vercel.com) for hosting, though in most cases you probably won't interact with those.In this page, we'll give you a basic overview of how the tech stack works together. If you want to learn more about any of the technologies, we recommend checking out their documentation.@@ -25,35 +25,27 @@ We chose TypeScript because it allows us to use a single, strongly-typed languag## React-[React](https://reactjs.org) is a JavaScript library for building user interfaces. It's the most popular frontend framework in the world, and it's used by many of the biggest companies in the world, including Facebook, Netflix, and Airbnb.--We have a package called [@carbon/react](https://github.com/barbinbrad/carbon/tree/main/packages/react/src) that has a bunch of React pre-built components that you can use to build your UI. You can also draw from a rich ecosystem of existing React component libraries.--## Chakra UI--[Chakra UI](https://chakra-ui.com) is a flexible component library that gives us accessibility, full-control, and simplicty. It implements the WAI-ARIA spec behaviors with some basic primitive components (like Button and Modal) while providing an easy-to-modify API for customizing the design.+[React](https://reactjs.org) is a JavaScript library for building user interfaces. React in 2023 is like the Honda Accord of frontend frameworks:-While it's not the most performant choice, it provides an easy-to-use developer experience that should allow contributors to quickly build out new features without an expertise in CSS.+- ✅ Proven+- ✅ Popular+- ✅ Flexible+- ✅ Reliable+- ✅ Well documented+- ✅ Easy to find related components+- ✅ Easy to find people to work on it-Here's an example of a Chakra UI button:+However:-```jsx-import { Button } from "@chakra-ui/react";+- 🚫 It's not the simplest+- 🚫 It's not the most modern+- 🚫 It's not “cool”-function App() {- return (- <Button size="lg" variant="outline">- Click me- </Button>- );-}-```--There are a lot of other component libraries out there, but we chose Chakra UI because it gives us a lot of flexibility while providing great user and developer experience. We're hopeful that Chakra will implement Panda under the hood in v4, which will give us high-level performance. If we had time, we'd probably move everything over to Radix + Tailwind (assuming we could keep things super simple for the developer).+We have a package called [@carbon/react](https://github.com/barbinbrad/carbon/tree/main/packages/react/src) that has a bunch of React pre-built components that you can use to build your UI. You can also draw from a rich ecosystem of existing React component libraries.## Remix-[Remix](https://remix.run) is a framework for building full-stack web applications. It's built on top of React, and it allows us to co-locate server-side code and client-side code in the same files. When combined with TypeScript and Supabase, this gives us type-safety from the database to the UI.+[Remix](https://remix.run) is a framework for building full-stack web applications. It's built on top of React, it is extremely cool. It allows us to co-locate server-side code and client-side code in the same files (routes). When combined with TypeScript and Supabase, this gives us type-safety from the database to the UI.Remix makes for a beautiful developer experience. It's use of nested routes, [loaders, actions and components](https://remix.run/blog/remix-data-flow) **minimizes the amount of code that needs written while maximzing performance**. To learn more about Remix, check out their documentation, and take a look at some files from our [routes](https://github.com/barbinbrad/carbon/tree/main/apps/carbon/app/routes) directory.@@ -140,3 +132,25 @@ LIMIT 10But unlike a raw SQL query, the data that we get back is strongly-typed, neatly-nested, with error handling built-in.{/* TODO: explain why this is actually a bad setup for joins -- recommend putting joins in SQL VIEWs and then using the supabase client to supabase.from("view").select("*") */}++## Chakra UI++[Chakra UI](https://chakra-ui.com) is a flexible component library that gives us accessibility, full-control, and simplicty. It implements the WAI-ARIA spec behaviors with some basic primitive components (like Button and Modal) while providing an easy-to-modify API for customizing the design.++While it's not the most performant choice, it provides an easy-to-use developer experience that should allow contributors to quickly build out new features without an expertise in CSS.++Here's an example of a Chakra UI button:++```jsx+import { Button } from "@chakra-ui/react";++function App() {+ return (+ <Button size="lg" variant="outline">+ Click me+ </Button>+ );+}+```++There are a lot of other component libraries out there, but we chose Chakra UI because it gives us a lot of flexibility while providing great user and developer experience. We're hopeful that Chakra will implement Panda under the hood in v4, which will give us high-level performance. If we had time, we'd probably move everything over to Radix + Tailwind (assuming we could keep things super simple for the developer).diff --git a/www/styles.css b/www/styles.cssindex d41d590ad5..a110f4ebd2 100644--- a/www/styles.css+++ b/www/styles.css@@ -4,6 +4,10 @@ code {@apply text-sm;}+:root {+ --nextra-primary-hue: 161deg;+}+body {background: linear-gradient(to bottom,@@ -39,9 +43,10 @@ body {--shiki-token-constant: var(--shiki-color-text);--shiki-token-comment: #999;--shiki-token-keyword: #ff0078;- --shiki-token-function: #0077ff;+ --shiki-token-function: #12ff00;--shiki-token-string-expression: #028265;--shiki-token-punctuation: var(--shiki-color-text);+ --shiki-token-string: #797afa;}.dark body {@@ -49,9 +54,10 @@ body {--shiki-token-constant: var(--shiki-color-text);--shiki-token-comment: #666;--shiki-token-keyword: #ff0078;- --shiki-token-function: #0099ff;+ --shiki-token-function: #12ff00;--shiki-token-string-expression: #50e3c2;--shiki-token-punctuation: var(--shiki-color-text);+ --shiki-token-string: #797afa;background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, #111 300px),fixed 0 0 / 20px 20px radial-gradient(#313131 1px, transparent 0),@@ -85,3 +91,75 @@ code[data-language="sh"] {#__next article.nextra-body h5 {font-size: 0.85em;}++@keyframes jumbo {+ from {+ background-position: 50% 50%, 50% 50%;+ }+ to {+ background-position: 350% 50%, 350% 50%;+ }+}++.jumbo {+ --stripes: repeating-linear-gradient(+ 100deg,+ #fff 0%,+ #fff 7%,+ transparent 10%,+ transparent 12%,+ #fff 16%+ );+ --stripesDark: repeating-linear-gradient(+ 100deg,+ #000 0%,+ #000 7%,+ transparent 10%,+ transparent 12%,+ #000 16%+ );+ --rainbow: repeating-linear-gradient(+ 100deg,+ #60a5fa 10%,+ #e879f9 15%,+ #60a5fa 20%,+ #5eead4 25%,+ #60a5fa 30%+ );+ background-image: var(--stripes), var(--rainbow);+ background-size: 300%, 200%;+ background-position: 50% 50%, 50% 50%;++ filter: blur(10px) invert(100%);++ mask-image: radial-gradient(ellipse at 100% 0%, black 40%, transparent 70%);++ pointer-events: none;+}++.jumbo::after {+ content: "";+ position: absolute;+ inset: 0;+ background-image: var(--stripes), var(--rainbow);+ background-size: 200%, 100%;+ animation: jumbo 60s linear infinite;+ background-attachment: fixed;+ mix-blend-mode: difference;+}++.dark .jumbo {+ background-image: var(--stripesDark), var(--rainbow);+ filter: blur(10px) opacity(50%) saturate(200%);+}+.dark .jumbo::after {+ background-image: var(--stripesDark), var(--rainbow);+}++.light .nx-text-primary-600 {+ --tw-text-opacity: 1;+ color: hsl(+ var(--nextra-primary-hue) var(--nextra-primary-saturation) 35% /+ var(--tw-text-opacity)+ );+}